]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdgpu: fix the page fault of raven2
authorHuang Rui <ray.huang@amd.com>
Fri, 21 Sep 2018 10:15:01 +0000 (18:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Sep 2018 02:09:20 +0000 (21:09 -0500)
commit75986276217b8fcb4d5aa8fb76540fbb26c061de
treeb0d7fd2f5e4ad8c61682154b731d6ef5ed8fd2e1
parentd355f149d082e43ff9f5194afc3ebb32707ae01d
drm/amdgpu: fix the page fault of raven2

While the apg_end address is 0xffffffff, if add 1 with it, the value will be
overflow and roll back to 0. So when 0 is written to
mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, the system aperture is actually disabled. And
so any access to vram will trigger a page fault.

Raven2's HW issue only need increase the vram end address, and needn't do it on
the agp.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c