drm/radeon/kms: Workaround RV410/R420 CP errata (V3)
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 6 Jan 2010 18:28:48 +0000 (19:28 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Jan 2010 03:09:46 +0000 (13:09 +1000)
commit62cdc0c20663ef840a94850892517b2b7f584904
treebbd68626995863c9c91bef7c146dc13ba5a0d887
parent06b6476d6b291473d0928ed242158a001d50c0f0
drm/radeon/kms: Workaround RV410/R420 CP errata (V3)

Long story short, this fixes sporadic hardlocks with my rv410 during
times of intense 2D acceleration (Flash on Fx3).

V2: Fix indentation and move errata_fini to suspend function so we
don't leak scratch register over suspend/resume cycle.
V3: Move scratch_reg to asic specific structure (aim is to slowly
    move stuff to asic specific structure and avoid poluting
    radeon_device struct with asic specific variables)

Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r420.c
drivers/gpu/drm/radeon/radeon.h