OSDN Git Service

drm/amdgpu: Limit the max mc address to hole start
authorEmily Deng <Emily.Deng@amd.com>
Wed, 10 Oct 2018 07:43:47 +0000 (15:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Oct 2018 19:48:02 +0000 (14:48 -0500)
commitf2d9bbc9968997c139d906162b3da9d97ffbed6f
treef608717f57d9860f9c723b9cb2121b0aab918d35
parentf9f97e3c7fe681bc8dcb9625856a559e2c7e11d8
drm/amdgpu: Limit the max mc address to hole start

For the vram_start is 0 case, the gart range will be from 0x0000FFFF00000000
to 0x0000FFFF1FFFFFFF, which will cause the engine hang.

So to avoid the hole, limit the max mc address to AMDGPU_GMC_HOLE_START.:wq

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c