drm/amdgpu: sriov restrict max_pfn below AMDGPU_GMC_HOLE
authorwentalou <Wentao.Lou@amd.com>
Thu, 24 Jan 2019 03:24:59 +0000 (11:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Jan 2019 20:16:18 +0000 (15:16 -0500)
commitcdba61daf55090430a3e1aa495fbbe8f6768af39
treef84fc08c19347ef536262f8fec779a13eda4c6de
parent06ea4c34991570d1e3d175f81029a6ea4bd8f634
drm/amdgpu: sriov restrict max_pfn below AMDGPU_GMC_HOLE

sriov need to restrict max_pfn below AMDGPU_GMC_HOLE.
access the hole results in a range fault interrupt IIRC.

Signed-off-by: Wentao Lou <Wentao.Lou@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_csa.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c