]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4e448abb8b51b3801c414014811a0a1f3ff874c
treef608717f57d9860f9c723b9cb2121b0aab918d35
parenteb6282600eeaa6078ed825c710dba9ed45c0f1d7
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