Re: [PATCH v4 0/3] drm: Fix dma_resv deadlock at drm object pin time
From: Boris Brezillon
Date: Wed May 29 2024 - 03:32:29 EST
On Thu, 23 May 2024 12:32:16 +0100
Adrián Larumbe <adrian.larumbe@xxxxxxxxxxxxx> wrote:
> This is v4 of https://lore.kernel.org/lkml/20240521181817.097af5e1@xxxxxxxxxxxxx/T/
>
> The goal of this patch series is fixing a deadlock upon locking the dma reservation
> of a DRM gem object when pinning it, at a prime import operation.
>
> Changelog:
> v3:
> - Split driver fixes into separate commits for Panfrost and Lima
> - Make drivers call drm_gem_shmem_pin_locked instead of drm_gem_shmem_object_pin
> - Improved commit message for first patch to explain why dma resv locking in the
> pin callback is no longer necessary.
> v2:
> - Removed comment explaining reason why an already-locked
> pin function replaced the locked variant inside Panfrost's
> object pin callback.
> - Moved already-assigned attachment warning into generic
> already-locked gem object pin function
>
>
> Adrián Larumbe (3):
> drm/panfrost: Fix dma_resv deadlock at drm object pin time
> drm/lima: Fix dma_resv deadlock at drm object pin time
> drm/gem-shmem: Add import attachment warning to locked pin function
Queued to drm-misc-fixes.
Thanks!
Boris