All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 34430] New: nouveau driver does not return VGA connector status breaking upower
@ 2011-02-18  9:25 bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
       [not found] ` <bug-34430-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  0 siblings, 1 reply; 7+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2011-02-18  9:25 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

           Summary: nouveau driver does not return VGA connector status
                    breaking upower
           Product: xorg
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Driver/nouveau
        AssignedTo: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
        ReportedBy: nuada-hjuaS3B0pPfVItvQsEIGlw@public.gmane.org
         QAContact: xorg-team-go0+a7rfsptAfugRpC6u6w@public.gmane.org


My laptop (Asus UL80VT) has hybrid graphics: intel+nvidia. After switching
nvidia card off using vgaswitcheroo, upower CPU consumption goes to 100%. If
nvidia card is switched back on, problem dissapeares.

This is caused by nouveau driver not returning VGA connector status properly.
When upowerd tries to read status of all connectors, it hangs waiting for VGA.

Gentoo Linux
kernel: 2.6.38-rc*
xorg-server: 1.9.4
upower: 0.9.8
KDE: 4.6.0

Steps to reproduce:
1. Log in to KDE
2. switch off nvidia:
    echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
3. cannot read VGA connector status:
    cat
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1/card1-VGA-1/status

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

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

* [Bug 34430] nouveau driver does not return VGA connector status breaking upower
       [not found] ` <bug-34430-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
@ 2012-09-22  6:46   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2012-10-15 18:19   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2012-09-22  6:46 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

Ilya Basin <basinilya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |basinilya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

--- Comment #1 from Ilya Basin <basinilya-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2012-09-22 06:46:53 UTC ---
Similar problem here. I added to /etc/rc.local:
  echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

When Gnome tries to start, upowerd eats 100% CPU. So, to start Gnome I have to
temporarily enable the card, then disable it again.
Similarly,
  cat
"/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0/card0-VGA-1/status"

hangs when the card is OFF.


Laptop Acer Aspire 5755G
Archlinux 64
kernel 3.5.3
upower 0.9.17
gnome 3.4.2

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

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

* [Bug 34430] nouveau driver does not return VGA connector status breaking upower
       [not found] ` <bug-34430-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  2012-09-22  6:46   ` [Bug 34430] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2012-10-15 18:19   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2013-05-27 16:13   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2012-10-15 18:19 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 2367 bytes --]

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

--- Comment #2 from Robert Varga <nite-IFLqPFswuwI@public.gmane.org> ---
For what it's worth, when upowerd enters 100%-cpu-hog mode, this is its stack
trace (Thinkpad W520, gentoo sources 3.6.2):

Oct 15 20:09:17 [kernel] [  319.663638] upowerd         R  running task       
0  2881      1 0x00000000
Oct 15 20:09:17 [kernel] [  319.663643]  ffffffff810440ac ffffffff81364879
ffff88023487d910 ffff88023538d320
Oct 15 20:09:17 [kernel] [  319.663649]  ffff880220075fd8 0000000000011280
ffff880220075fd8 ffff88023538d320
Oct 15 20:09:17 [kernel] [  319.663654]  0000000080000000 ffff880220075fd8
ffff880220074000 000000000061a804
Oct 15 20:09:17 [kernel] [  319.663660] Call Trace:
Oct 15 20:09:17 [kernel] [  319.663665]  [<ffffffff810440ac>] ?
need_resched+0x1a/0x23
Oct 15 20:09:17 [kernel] [  319.663670]  [<ffffffff81364879>] ?
__schedule+0x37c/0x393
Oct 15 20:09:17 [kernel] [  319.663676]  [<ffffffff810440ac>] ?
need_resched+0x1a/0x23
Oct 15 20:09:17 [kernel] [  319.663681]  [<ffffffff81364b46>] ?
preempt_schedule_irq+0x3f/0x47
Oct 15 20:09:17 [kernel] [  319.663686]  [<ffffffff81365796>] ?
retint_kernel+0x26/0x30
Oct 15 20:09:17 [kernel] [  319.663720]  [<ffffffffa01aa53f>] ?
nv04_timer_read+0x51/0x64 [nouveau]
Oct 15 20:09:17 [kernel] [  319.663734]  [<ffffffffa0189824>] ?
nouveau_wait_eq+0x56/0x73 [nouveau]
Oct 15 20:09:17 [kernel] [  319.663761]  [<ffffffffa01ee629>] ?
nv50_dac_detect+0x89/0x2c6 [nouveau]
Oct 15 20:09:17 [kernel] [  319.663784]  [<ffffffffa01a1535>] ?
nouveau_connector_detect+0x243/0x267 [nouveau]
Oct 15 20:09:17 [kernel] [  319.663790]  [<ffffffff81246976>] ?
status_show+0x31/0x6c
Oct 15 20:09:17 [kernel] [  319.663796]  [<ffffffff8129019c>] ?
dev_attr_show+0x1e/0x46
Oct 15 20:09:17 [kernel] [  319.663803]  [<ffffffff8108928a>] ?
__get_free_pages+0x10/0x3f
Oct 15 20:09:17 [kernel] [  319.663808]  [<ffffffff810fc203>] ?
sysfs_read_file+0xa8/0x12e
Oct 15 20:09:17 [kernel] [  319.663812]  [<ffffffff810b54e7>] ?
vfs_read+0x9b/0xc2
Oct 15 20:09:17 [kernel] [  319.663817]  [<ffffffff810b62f9>] ?
fget_light+0x85/0x8d
Oct 15 20:09:17 [kernel] [  319.663821]  [<ffffffff810b5553>] ?
sys_read+0x45/0x6b
Oct 15 20:09:17 [kernel] [  319.663826]  [<ffffffff81365da6>] ?
system_call_fastpath+0x1a/0x1f

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 3246 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

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

* [Bug 34430] nouveau driver does not return VGA connector status breaking upower
       [not found] ` <bug-34430-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  2012-09-22  6:46   ` [Bug 34430] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2012-10-15 18:19   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2013-05-27 16:13   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2013-05-27 16:23   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2013-05-27 16:13 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 1280 bytes --]

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

--- Comment #3 from Robert Varga <nite-IFLqPFswuwI@public.gmane.org> ---
Since this is not moving ahead, here's a stack trace from 3.9.4:

Call Trace:
 <IRQ>  [<ffffffff81268e82>] ? showacpu+0x42/0x60
 [<ffffffff8108b0b5>] ? generic_smp_call_function_single_interrupt+0xb5/0x120
 [<ffffffff81023c42>] ? smp_call_function_interrupt+0x22/0x40 
 [<ffffffff814a553a>] ? call_function_interrupt+0x6a/0x70
 <EOI>  [<ffffffff814a3fd6>] ? retint_kernel+0x26/0x30
 [<ffffffff8123aa02>] ? ioread32+0x42/0x50
 [<ffffffffa03c1ce2>] ? nv04_timer_read+0x32/0x60 [nouveau]
 [<ffffffffa03c1a2a>] ? nouveau_timer_wait_eq+0x6a/0xd0 [nouveau]
 [<ffffffffa03cb40e>] ? nv50_dac_power+0x3e/0xa0 [nouveau]
 [<ffffffffa0439ed5>] ? nv50_dac_detect+0x75/0x90 [nouveau]
 [<ffffffffa0425ead>] ? nouveau_connector_detect+0x3cd/0x3e0 [nouveau]
 [<ffffffff812deebf>] ? status_show+0x3f/0x90
 [<ffffffff81350ac7>] ? dev_attr_show+0x17/0x50
 [<ffffffff810e0d02>] ? __get_free_pages+0x12/0x50
 [<ffffffff8118b15e>] ? sysfs_read_file+0xae/0x1a0
 [<ffffffff81124ce0>] ? vfs_read+0xa0/0x160
 [<ffffffff81124f31>] ? sys_read+0x51/0xa0
 [<ffffffff814a4616>] ? system_call_fastpath+0x1a/0x1f

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2177 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

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

* [Bug 34430] nouveau driver does not return VGA connector status breaking upower
       [not found] ` <bug-34430-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (2 preceding siblings ...)
  2013-05-27 16:13   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2013-05-27 16:23   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2015-01-17  0:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2019-12-04  8:25   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2013-05-27 16:23 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 357 bytes --]

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

--- Comment #4 from Robert Varga <nite-IFLqPFswuwI@public.gmane.org> ---
Created attachment 79854
  --> https://bugs.freedesktop.org/attachment.cgi?id=79854&action=edit
Proposed fix

Tested on 3.9.4, seems to hide/fix the issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1333 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

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

* [Bug 34430] nouveau driver does not return VGA connector status breaking upower
       [not found] ` <bug-34430-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (3 preceding siblings ...)
  2013-05-27 16:23   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2015-01-17  0:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2019-12-04  8:25   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2015-01-17  0:12 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 602 bytes --]

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

Pierre Moreau <pierre.morrow-GANU6spQydw@public.gmane.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #5 from Pierre Moreau <pierre.morrow-GANU6spQydw@public.gmane.org> ---
I did a quick check and it doesn't seem like the proposed fix was merged. Does
it still occur on a recent kernel (3.18, 3.19-rc4)?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1929 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

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

* [Bug 34430] nouveau driver does not return VGA connector status breaking upower
       [not found] ` <bug-34430-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (4 preceding siblings ...)
  2015-01-17  0:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2019-12-04  8:25   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2019-12-04  8:25 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 869 bytes --]

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

Martin Peres <martin.peres-GANU6spQydw@public.gmane.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |MOVED
             Status|NEEDINFO                    |RESOLVED

--- Comment #6 from Martin Peres <martin.peres-GANU6spQydw@public.gmane.org> ---
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this link
to our GitLab instance:
https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/issues/15.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2470 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

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

end of thread, other threads:[~2019-12-04  8:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-18  9:25 [Bug 34430] New: nouveau driver does not return VGA connector status breaking upower bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
     [not found] ` <bug-34430-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2012-09-22  6:46   ` [Bug 34430] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2012-10-15 18:19   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-05-27 16:13   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-05-27 16:23   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-01-17  0:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2019-12-04  8:25   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ

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.