All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 23592] New: Radeon tries to execute atombios on a card powered off by vgaswitcheroo
@ 2010-11-23  0:22 bugzilla-daemon
  2011-04-05  8:07 ` [Bug 23592] " bugzilla-daemon
  2011-04-05  8:08 ` bugzilla-daemon
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla-daemon @ 2010-11-23  0:22 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=23592

           Summary: Radeon tries to execute atombios on a card powered off
                    by vgaswitcheroo
           Product: Drivers
           Version: 2.5
    Kernel Version: 2.6.34+
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Video(DRI - non Intel)
        AssignedTo: drivers_video-dri@kernel-bugs.osdl.org
        ReportedBy: debbugs@javispedro.com
        Regression: No


Created an attachment (id=37912)
 --> (https://bugzilla.kernel.org/attachment.cgi?id=37912)
dmesg with added WARN_ON() on atom_execute_table_locked

During Xorg shutdown, dmesg gets filled with lots of repeating:

[  101.804993] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than
5secs aborting
[  101.805045] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing
CD0C (len 62, WS 0, PS 0) @ 0xCD28

Xorg does NOT terminate properly until after a handful of these messages, so
the system takes a long time to shutdown.

Steps to reproduce, on a Acer 5820TG (Intel Clarkdale+Radeon Evergreen
switchable graphics):
1. Boot kernel with vgaswitcheroo enabled.
2. Start Xorg with no xorg.conf. Defaults to using Intel card.
3. While Xorg is running, echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
(powers off the Radeon card).
4. Try to quit Xorg (either by SIGTERM or Zap key sequence).

Expected result:
Xorg quits in a few seconds

Actual results:
Lots of messages on dmesg, Xorg takes minutes to die.


For convenience, I added a WARN_ON() on atom_execute_table_locked() right where
it printks the above warning message. The resulting backtrace is attached.

Seemingly, drm_helper_disable_unused_functions is called by the Intel driver
which ends up calling some Readeon DPMS functions (atombios_crtc_disable) which
eventually try to run Atombios code while rdev->powered_down is TRUE. 

A trivial workaround is to patch atombios_crtc_disable and do nothing if
rdev->powered_down is TRUE. That works for me but I don't really know if it's
exactly the ideal solution.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
--

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug 23592] Radeon tries to execute atombios on a card powered off by vgaswitcheroo
  2010-11-23  0:22 [Bug 23592] New: Radeon tries to execute atombios on a card powered off by vgaswitcheroo bugzilla-daemon
@ 2011-04-05  8:07 ` bugzilla-daemon
  2011-04-05  8:08 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2011-04-05  8:07 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=23592





--- Comment #1 from Dave Airlie <airlied@linux.ie>  2011-04-05 08:07:05 ---
Created an attachment (id=53542)
 --> (https://bugzilla.kernel.org/attachment.cgi?id=53542)
attempt at fix by avoiding hitting the radeon driver.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug 23592] Radeon tries to execute atombios on a card powered off by vgaswitcheroo
  2010-11-23  0:22 [Bug 23592] New: Radeon tries to execute atombios on a card powered off by vgaswitcheroo bugzilla-daemon
  2011-04-05  8:07 ` [Bug 23592] " bugzilla-daemon
@ 2011-04-05  8:08 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2011-04-05  8:08 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=23592


Dave Airlie <airlied@linux.ie> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|drivers_video-dri@kernel-bu |airlied@linux.ie
                   |gs.osdl.org                 |




-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-05  8:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-23  0:22 [Bug 23592] New: Radeon tries to execute atombios on a card powered off by vgaswitcheroo bugzilla-daemon
2011-04-05  8:07 ` [Bug 23592] " bugzilla-daemon
2011-04-05  8:08 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.