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)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 12 Apr 2024 04:33:51 +0000 (00:33 -0400)
commitc8962679af3538deaf6d90e90bbdceb0f66b6e98
treef58dc61b0a23893151e4206e3122c1a788250bea
parenta0e002cdac429d7b2ae8b66baf51263193a935c8
drm/amdgpu: remove invalid resource->start check v2

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c