]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: flush the fence on the bo after we individualize the reservation object
authorxinhui pan <xinhui.pan@amd.com>
Wed, 15 Jan 2020 06:07:45 +0000 (14:07 +0800)
committerChristian König <christian.koenig@amd.com>
Wed, 22 Jan 2020 11:51:56 +0000 (12:51 +0100)
commit3fbe77b99f59df68e4a86232442df00135e4c2e0
tree21a8018efe487d684130b4a0d4fce5e3724a6d1b
parent419abf6a1fdcf660f944ae56c1215e14100c9e64
drm/ttm: flush the fence on the bo after we individualize the reservation object

As we move the ttm_bo_individualize_resv() upwards, we need flush the
copied fence too. Otherwise the driver keeps waiting for fence.

run&Kill kfdtest, then perf top.

  25.53%  [ttm]                     [k] ttm_bo_delayed_delete
  24.29%  [kernel]                  [k] dma_resv_test_signaled_rcu
  19.72%  [kernel]                  [k] ww_mutex_lock

Fix: 495691d7("drm/ttm: fix ttm_bo_cleanup_refs_or_queue once more")
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/series/72339/
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c