]> 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)
commit563e9e9da0d5c8be90791018acb0d2c74d59fb20
treef608717f57d9860f9c723b9cb2121b0aab918d35
parent60e1d2c89b7b6d8390e89e4497288dd684a9a0ee
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