]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: remove invalid resource->start check v2
authorChristian König <christian.koenig@amd.com>
Fri, 15 Mar 2024 12:07:53 +0000 (13:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Apr 2024 15:11:42 +0000 (17:11 +0200)
commitdb74904a93a370807001e5fd64b5850a61f2bf65
treefb508b5fd6bbf8f16c57fe3cdd6a0846f72c3825
parentaa02d43367a9adf8c85fb382fea4171fb266c8d0
drm/amdgpu: remove invalid resource->start check v2

commit ca7c4507ba87e9fc22e0ecfa819c3664b3e8287b upstream.

The majority of those where removed in the commit aed01a68047b
("drm/amdgpu: Remove TTM resource->start visible VRAM condition v2")

But this one was missed because it's working on the resource and not the
BO. Since we also no longer use a fake start address for visible BOs
this will now trigger invalid mapping errors.

v2: also remove the unused variable

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: aed01a68047b ("drm/amdgpu: Remove TTM resource->start visible VRAM condition v2")
CC: stable@vger.kernel.org
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c