drm/radeon: Restore GART table contents after pinning it in VRAM v3
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 22 Jan 2015 09:58:46 +0000 (18:58 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Jan 2015 16:47:00 +0000 (11:47 -0500)
commit5636d2f842c7bd7800002868ead3d6b809d385a0
tree0385ee543710c7c61ff4628ea678af262646b6e5
parentcb65890610dca287718a63bd8a5d9ce3dc80c3d7
drm/radeon: Restore GART table contents after pinning it in VRAM v3

The GART table BO has to be moved out of VRAM for suspend/resume. Any
updates to the GART table during that time were silently dropped without
this change. This caused GPU lockups on resume in some cases, see the bug
reports referenced below.

This might also make GPU reset more robust in some cases, as we no longer
rely on the GART table in VRAM being preserved across the GPU
lockup/reset.

v2: Add logic to radeon_gart_table_vram_pin directly instead of
    reinstating radeon_gart_restore
v3: Move code after assignment of rdev->gart.table_addr so that the GART
    TLB flush can work as intended, add code comment explaining why we're
    doing this

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85204
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86267
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_gart.c
This page took 0.02447 seconds and 5 git commands to generate.