[PATCH 0/3] drm/amdgpu: Final fix for https://bugs.freedesktop.org/106872

Michel Dänzer michel at daenzer.net
Wed Jul 11 16:23:39 UTC 2018


From: Michel Dänzer <michel.daenzer at amd.com>

Finally got confirmation from the debugging patch in the bug report
that these values need to be atomic, or they can get corrupted.

Patch 1 is so that it's not necessary to use two atomic values for
computing the amount of non-pinned CPU visible VRAM, as that could
still give an inconsistent result if there are BOs being (un)pinned
concurrently.

Michel Dänzer (3):
  drm/amdgpu: Keep track of amount of pinned CPU visible VRAM
  drm/amdgpu: Make pin_size values atomic
  drm/amdgpu: Warn and update pin_size values when destroying a pinned
    BO

 drivers/gpu/drm/amd/amdgpu/amdgpu.h        |  6 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c     |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c    | 23 ++++++------
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 43 +++++++++++++++++-----
 4 files changed, 49 insertions(+), 25 deletions(-)

-- 
2.18.0



More information about the amd-gfx mailing list