[Bug 33851] [KMS Evergreen bisected] Crash on modeset on HP dv6-3050eo laptop

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 2 15:23:23 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=33851

--- Comment #5 from Alex Deucher <agd5f at yahoo.com> 2011-02-02 15:23:23 PST ---
I see the problem, you have more power modes than space allocated to hold them.
 This patch should fix the issue:

diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index 49a6890..59750dc 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -815,7 +815,7 @@ struct radeon_pm {
        fixed20_12              mclk;
        fixed20_12              needed_bandwidth;
        /* XXX: use a define for num power modes */
-       struct radeon_power_state power_state[8];
+       struct radeon_power_state power_state[16];
        /* number of valid power states */
        int                     num_power_states;
        int                     current_power_state_index;


I'll write up a better one to dynamically allocate space depending on the
number of tables.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the dri-devel mailing list