* [Bug 84431] Kernel crash when unloading radeon module for switcheroo card
2014-09-12 20:39 [Bug 84431] New: Kernel crash when unloading radeon module for switcheroo card bugzilla-daemon
@ 2014-09-12 20:41 ` bugzilla-daemon
2014-09-12 21:38 ` bugzilla-daemon
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2014-09-12 20:41 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=84431
Pali Rohár <pali.rohar@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #149991|0 |1
is patch| |
Attachment #149991|application/octet-stream |text/plain
mime type| |
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 84431] Kernel crash when unloading radeon module for switcheroo card
2014-09-12 20:39 [Bug 84431] New: Kernel crash when unloading radeon module for switcheroo card bugzilla-daemon
2014-09-12 20:41 ` [Bug 84431] " bugzilla-daemon
@ 2014-09-12 21:38 ` bugzilla-daemon
2014-09-12 21:44 ` bugzilla-daemon
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2014-09-12 21:38 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=84431
Alex Deucher <alexdeucher@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alexdeucher@gmail.com
--- Comment #1 from Alex Deucher <alexdeucher@gmail.com> ---
Care to generate a git patch and sign-off on it?
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 84431] Kernel crash when unloading radeon module for switcheroo card
2014-09-12 20:39 [Bug 84431] New: Kernel crash when unloading radeon module for switcheroo card bugzilla-daemon
2014-09-12 20:41 ` [Bug 84431] " bugzilla-daemon
2014-09-12 21:38 ` bugzilla-daemon
@ 2014-09-12 21:44 ` bugzilla-daemon
2014-09-12 22:08 ` bugzilla-daemon
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2014-09-12 21:44 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=84431
--- Comment #2 from Pali Rohár <pali.rohar@gmail.com> ---
I can, but I do not know if this is proper way how to fix it. I still think
that root of bug is in function vga_switcheroo_init_domain_pm_ops() which
overwrite dev->pm_domain, but does not restore it when driver/device
unregister.
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 84431] Kernel crash when unloading radeon module for switcheroo card
2014-09-12 20:39 [Bug 84431] New: Kernel crash when unloading radeon module for switcheroo card bugzilla-daemon
` (2 preceding siblings ...)
2014-09-12 21:44 ` bugzilla-daemon
@ 2014-09-12 22:08 ` bugzilla-daemon
2014-09-12 22:09 ` bugzilla-daemon
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2014-09-12 22:08 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=84431
--- Comment #3 from Alex Deucher <alexdeucher@gmail.com> ---
Created attachment 150001
--> https://bugzilla.kernel.org/attachment.cgi?id=150001&action=edit
patch 1/3
How about this patch set?
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 84431] Kernel crash when unloading radeon module for switcheroo card
2014-09-12 20:39 [Bug 84431] New: Kernel crash when unloading radeon module for switcheroo card bugzilla-daemon
` (3 preceding siblings ...)
2014-09-12 22:08 ` bugzilla-daemon
@ 2014-09-12 22:09 ` bugzilla-daemon
2014-09-12 22:09 ` bugzilla-daemon
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2014-09-12 22:09 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=84431
--- Comment #4 from Alex Deucher <alexdeucher@gmail.com> ---
Created attachment 150011
--> https://bugzilla.kernel.org/attachment.cgi?id=150011&action=edit
patch 2/3
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 84431] Kernel crash when unloading radeon module for switcheroo card
2014-09-12 20:39 [Bug 84431] New: Kernel crash when unloading radeon module for switcheroo card bugzilla-daemon
` (4 preceding siblings ...)
2014-09-12 22:09 ` bugzilla-daemon
@ 2014-09-12 22:09 ` bugzilla-daemon
2014-09-12 23:01 ` bugzilla-daemon
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2014-09-12 22:09 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=84431
--- Comment #5 from Alex Deucher <alexdeucher@gmail.com> ---
Created attachment 150021
--> https://bugzilla.kernel.org/attachment.cgi?id=150021&action=edit
patch 3/3
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 84431] Kernel crash when unloading radeon module for switcheroo card
2014-09-12 20:39 [Bug 84431] New: Kernel crash when unloading radeon module for switcheroo card bugzilla-daemon
` (5 preceding siblings ...)
2014-09-12 22:09 ` bugzilla-daemon
@ 2014-09-12 23:01 ` bugzilla-daemon
2014-09-21 10:15 ` bugzilla-daemon
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2014-09-12 23:01 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=84431
--- Comment #6 from Pali Rohár <pali.rohar@gmail.com> ---
I tested 1/3 and 2/3 on 3.13 kernel. And as expected (because patches doing
same thing) same result as with my patch - no kernel crash anymore. You can add
my Signed-off.
I do not have nvidia optimus card, so I cannot test last patch.
Anyway in vga_switcheroo.c is exported function
vga_switcheroo_init_domain_pm_optimus_hdmi_audio() which changing
dev->pm_domain too. But I do not see any driver which using it.
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 84431] Kernel crash when unloading radeon module for switcheroo card
2014-09-12 20:39 [Bug 84431] New: Kernel crash when unloading radeon module for switcheroo card bugzilla-daemon
` (6 preceding siblings ...)
2014-09-12 23:01 ` bugzilla-daemon
@ 2014-09-21 10:15 ` bugzilla-daemon
2014-11-26 22:56 ` bugzilla-daemon
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2014-09-21 10:15 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=84431
--- Comment #7 from Pali Rohár <pali.rohar@gmail.com> ---
Function vga_switcheroo_init_domain_pm_optimus_hdmi_audio() is used in
sound/pci/hda/hda_intel.c. So that driver has same problem and cause kernel
panic on driver unload.
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 84431] Kernel crash when unloading radeon module for switcheroo card
2014-09-12 20:39 [Bug 84431] New: Kernel crash when unloading radeon module for switcheroo card bugzilla-daemon
` (7 preceding siblings ...)
2014-09-21 10:15 ` bugzilla-daemon
@ 2014-11-26 22:56 ` bugzilla-daemon
2016-07-15 13:27 ` bugzilla-daemon
2016-08-05 19:18 ` bugzilla-daemon
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2014-11-26 22:56 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=84431
Joaquín Aramendía <samsagax@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |samsagax@gmail.com
--- Comment #8 from Joaquín Aramendía <samsagax@gmail.com> ---
Alex, That patchset indeed got rid of that bug, but for some reason it
introduced another one:
https://bugzilla.kernel.org/show_bug.cgi?id=86011
97d30fa3524ff60b43d450012abe8f961d280478 from stable kernel tree breaks nouveau
power management through vga-switcheroo.
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 84431] Kernel crash when unloading radeon module for switcheroo card
2014-09-12 20:39 [Bug 84431] New: Kernel crash when unloading radeon module for switcheroo card bugzilla-daemon
` (8 preceding siblings ...)
2014-11-26 22:56 ` bugzilla-daemon
@ 2016-07-15 13:27 ` bugzilla-daemon
2016-08-05 19:18 ` bugzilla-daemon
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-07-15 13:27 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=84431
Peter Wu <peter@lekensteyn.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peter@lekensteyn.nl
--- Comment #9 from Peter Wu <peter@lekensteyn.nl> ---
(In reply to Pali Rohár from comment #7)
> Function vga_switcheroo_init_domain_pm_optimus_hdmi_audio() is used in
> sound/pci/hda/hda_intel.c. So that driver has same problem and cause kernel
> panic on driver unload.
A patch for this issue is queued at
http://mailman.alsa-project.org/pipermail/alsa-devel/2016-July/110125.html
Joaquín, how does 97d30fa35 break nouveau vga-switcheroo? If you load nouveau
with runpm=0, then you can write OFF to debugfs' vga_switcheroo. However
runpm=1 (or -1 for Optimus systems) is recommended.
I think that the original bug is fixed, so this can be marked as resolved?
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 84431] Kernel crash when unloading radeon module for switcheroo card
2014-09-12 20:39 [Bug 84431] New: Kernel crash when unloading radeon module for switcheroo card bugzilla-daemon
` (9 preceding siblings ...)
2016-07-15 13:27 ` bugzilla-daemon
@ 2016-08-05 19:18 ` bugzilla-daemon
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-08-05 19:18 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=84431
--- Comment #10 from Joaquín Aramendía <samsagax@gmail.com> ---
> Joaquín, how does 97d30fa35 break nouveau vga-switcheroo? If you load
> nouveau with runpm=0, then you can write OFF to debugfs' vga_switcheroo.
> However runpm=1 (or -1 for Optimus systems) is recommended.
Just tested removing nouveau module with Ubuntu 16.04 on mainline kernel v4.6.5
and it worked correctly. Also modprobed it after that and worked correctly.
This bug should be marked as resolved.
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread