]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/prime: Extend DMA reservation object lock
authorThierry Reding <treding@nvidia.com>
Mon, 16 Sep 2019 14:19:24 +0000 (16:19 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 17 Sep 2019 04:50:15 +0000 (14:50 +1000)
commite9723678fccd98578c61871d25550f9e99fce487
tree3e3418f6a8ba19d80573c1574e8cec323ac8d1b3
parentf4f87d0bb390c9f1aa027713b875f8f0d2f97d30
drm/nouveau/prime: Extend DMA reservation object lock

Prior to commit 26ea454bbfed ("drm/nouveau: Initialize GEM object before
TTM object"), the reservation object was locked across all of the buffer
object creation.

After splitting nouveau_bo_new() into separate nouveau_bo_alloc() and
nouveau_bo_init() functions, the reservation object is passed to the
latter, so the lock needs to be held across that function as well.

Fixes: 26ea454bbfed ("drm/nouveau: Initialize GEM object before TTM object")
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_prime.c