]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms: consolidate GART code, fix segfault after GPU lockup V2
authorJerome Glisse <jglisse@redhat.com>
Thu, 3 Nov 2011 15:16:49 +0000 (11:16 -0400)
committerDave Airlie <airlied@redhat.com>
Fri, 4 Nov 2011 10:39:51 +0000 (10:39 +0000)
commitad99eebe0805820acc08251a70fce4140e3fc51f
tree7f27b6d926b44184f8ef089527be81d981c08b9f
parent51b76833f76289f5bb2009f6e94b378caccdc300
drm/radeon/kms: consolidate GART code, fix segfault after GPU lockup V2

After GPU lockup VRAM gart table is unpinned and thus its pointer
becomes unvalid. This patch move the unpin code to a common helper
function and set pointer to NULL so that page update code can check
if it should update GPU page table or not. That way bo still bound
to GART can be unbound (pci_unmap_page for all there page) properly
while there is no need to update the GPU page table.

V2 move the test for null gart out of the loop, small optimization

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r300.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_gart.c
drivers/gpu/drm/radeon/rs400.c
drivers/gpu/drm/radeon/rs600.c
drivers/gpu/drm/radeon/rv770.c