]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Double check mem_type of BO while eviction
authorxinhui pan <xinhui.pan@amd.com>
Wed, 10 Nov 2021 04:31:49 +0000 (12:31 +0800)
committerChristian König <christian.koenig@amd.com>
Thu, 11 Nov 2021 08:08:08 +0000 (09:08 +0100)
commit74070399b2e583cf4fe40757fb8a9f71f7949387
tree9f8f26aff1373e05b2e150f5384cd0eb178ebaa5
parent1820d24d1a2425fd4765f112d99f713b3382f7be
drm/ttm: Double check mem_type of BO while eviction

BO might sit in a wrong lru list as there is a small period of memory
moving and lru list updating.

Lets skip eviction if we hit such mismatch.

Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211110043149.57554-2-xinhui.pan@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c