drm/radeon/kms: set gart pages to invalid on unbind and point to dummy page
authorDave Airlie <airlied@redhat.com>
Fri, 5 Feb 2010 06:00:07 +0000 (16:00 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Feb 2010 09:11:32 +0000 (19:11 +1000)
commit82568565683b4991964a5fc89a9ca0c7122818e8
tree3c04fa40a00a440a322c802abd41175e90b71e21
parente34398952e056bbd99f9099fae77be26e5c6aa78
drm/radeon/kms: set gart pages to invalid on unbind and point to dummy page

this uses a new entrypoint to invalidate gart entries instead of using 0.
Changed to rather than pointing to 0 address point empty entry to dummy
page. This might help to avoid hard lockup if for some wrong
reasons GPU try to access unmapped GART entry.

I'm not 100% sure this is going to work, we probably need to allocate
a dummy page and point all the GTT entries at it similiar to what AGP does.
but we can test this first I suppose.

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/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_device.c
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