diff options
author | Matthew Garrett <mjg@redhat.com> | 2010-04-26 23:52:20 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-05-18 12:21:17 +0400 |
commit | 5876dd249e8e47c730cac090bf6edd88e5f04327 (patch) | |
tree | ce5c99862483dca878bef6ac8c8280c380344f4e /drivers/gpu/drm/radeon/radeon.h | |
parent | 2aba631c008e7d82e3ec45dd32bec1ea63a963cf (diff) | |
download | linux-5876dd249e8e47c730cac090bf6edd88e5f04327.tar.xz |
radeon: Unmap vram pages when reclocking
Touching vram while the card is reclocking can lead to lockups. Unmap
any pages that could be touched by the CPU and block any accesses to
vram until the reclocking is complete.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index cdcf5eaf6714..bed84b316bba 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -1024,6 +1024,7 @@ struct radeon_device { struct work_struct hotplug_work; int num_crtc; /* number of crtcs */ struct mutex dc_hw_i2c_mutex; /* display controller hw i2c mutex */ + struct mutex vram_mutex; /* audio stuff */ struct timer_list audio_timer; |