dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 33851] [KMS Evergreen bisected] Crash on modeset on HP dv6-3050eo laptop
Date: Wed,  2 Feb 2011 15:23:23 -0800 (PST)	[thread overview]
Message-ID: <20110202232323.AEF3C13004E@annarchy.freedesktop.org> (raw)
In-Reply-To: <bug-33851-502@http.bugs.freedesktop.org/>

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

--- Comment #5 from Alex Deucher <agd5f@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.

  parent reply	other threads:[~2011-02-02 23:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-02 21:44 [Bug 33851] New: [KMS Evergreen bisected] Crash on modeset on HP dv6-3050eo laptop bugzilla-daemon
2011-02-02 21:48 ` [Bug 33851] " bugzilla-daemon
2011-02-02 21:50 ` bugzilla-daemon
2011-02-02 22:44 ` bugzilla-daemon
2011-02-02 23:07 ` bugzilla-daemon
2011-02-02 23:23 ` bugzilla-daemon [this message]
2011-02-02 23:25 ` bugzilla-daemon
2011-02-02 23:40 ` bugzilla-daemon
2011-02-02 23:46 ` bugzilla-daemon
2011-02-03  0:07 ` bugzilla-daemon
2011-02-03  0:11 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110202232323.AEF3C13004E@annarchy.freedesktop.org \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox