Skip to contentSkip to conversation

New: [regression] Radeon Oops on shutdown

Bug 178421 [email protected] 1 participant 12 messages Oct 19, 2016 – Nov 17, 2016

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 178421
           Summary: [regression] Radeon Oops on shutdown
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.9-rc1
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Video(DRI - non Intel)
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Created attachment 241971
--> https://bugzilla.kernel.org/attachment.cgi?id=241971&action=edit
picture of panic

Between 4.8 and 4.9-rc1 shutdown stopped working without power button. There was blinking caps- and scroll lock leds on custom kernel. There was no blinking leds on 4.9.0-040900rc1-generic from ubuntu kernel ppa. But it didn't power off either. Suspend worked at least with custom kernel.

I tried to bisect. There was some uncertainity. Still bisect said c0d5fb4d0d9224ccaad0475c9b58740873970e7e is the first bad commit. I tried git revert -n -m 1 c0d5fb4d0d9224ccaad0475c9b58740873970e7e which gave Oops on screen after shutdown attemp. Picture is attached.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

[Bug 178421] [regression] Radeon Oops on shutdown

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

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Alex Deucher <[email protected]> --- Already fixed:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=b0c80bd5d2e317f7596fe2badc1a3379fb3211e5
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=9305ee6fe52035f63d70d023235b792ba22107f0

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

[Bug 178421] [regression] Radeon Oops on shutdown

In reply to [email protected]

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

Kevin <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from Kevin <[email protected]> ---
Will these fixes be added to kernel 4.8 in a future minor version? or will I have to wait till 4.9?

I cant shutdown since update to 4.8. reboot is ok though.

radeon 7870
arch linux at 4.8.3-ck

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

[Bug 178421] [regression] Radeon Oops on shutdown

In reply to [email protected]

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

--- Comment #3 from Jouni Mettälä <[email protected]> --- Created attachment 242511
--> https://bugzilla.kernel.org/attachment.cgi?id=242511&action=edit
recent picture of panic

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

[Bug 178421] [regression] Radeon Oops on shutdown

In reply to [email protected]

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

--- Comment #4 from Jouni Mettälä <[email protected]> ---
I still get oops on 4.9-rc2. Picture is attached. It looks different than already fixed bug, for me at least.

Kevin, you have probably different bug. Reboot doesn't work for me. What is last known good kernel for you?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

[Bug 178421] [regression] Radeon Oops on shutdown

In reply to [email protected]

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

--- Comment #5 from Michel Dänzer <[email protected]> --- (In reply to Jouni Mettälä from comment #0)

Quoted 2 lines

I tried to bisect. There was some uncertainity. Still bisect said c0d5fb4d0d9224ccaad0475c9b58740873970e7e is the first bad commit.

That's a pure merge commit, so the problem can't really have started at that commit. In order to avoid getting an incorrect bisection result again:

* Manually apply the patches referenced in comment 1 for each commit where they're not applied yet
* Test every commit multiple times before marking it as "good"
* Only mark commits as "bad" which show exactly the same symptoms, otherwise "skip" (for commits which fail to shut down / reboot for other reasons) or "good"

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

[Bug 178421] [regression] Radeon Oops on shutdown

In reply to [email protected]

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

Jouni Mettälä <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Regression|No |Yes

--- Comment #6 from Jouni Mettälä <[email protected]> --- With patches referenced in comment 1, bisect pointed to 6b25e21fa6f26d0f0d45f161d169029411c84286
Merge tag 'drm-for-v4.9' of git://people.freedesktop.org/~airlied/linux

I was still bit unsure but after removing these shutdown seems to work.

@@ -362,6 +361,17 @@ radeon_pci_remove(struct pci_dev *pdev)

     drm_put_dev(dev);

}

+static void
+radeon_pci_shutdown(struct pci_dev *pdev)
+{
+ /* if we are running in a VM, make sure the device

+     * torn down properly on reboot/shutdown.
+     * unfortunately we can't detect certain
+     * hypervisors so just do this all the time.
+     */

+ radeon_pci_remove(pdev);
+}
+
static int radeon_pmops_suspend(struct device *dev)

 {
     struct pci_dev *pdev = to_pci_dev(dev);

@@ -574,6 +588,7 @@ static struct pci_driver radeon_kms_pci_driver = {
.id_table = pciidlist,
.probe = radeon_pci_probe,
.remove = radeon_pci_remove,
+ .shutdown = radeon_pci_shutdown,
.driver.pm = &radeon_pm_ops,
};

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_drv.c?id=6b25e21fa6f26d0f0d45f161d169029411c84286

During bisect some kernels failed to boot with initrd and UUID. Without initrd they booted but still didn't shutdown.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw

[Bug 178421] [regression] Radeon Oops on shutdown

In reply to [email protected]

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

--- Comment #7 from Alex Deucher <[email protected]> --- As per comment 1, shutdown was working even with the commit that adds the shutdown callback earlier in the cycle. Some other change appears to have regressed it.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

[Bug 178421] [regression] Radeon Oops on shutdown

In reply to [email protected]

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

--- Comment #8 from Borislav Petkov <[email protected]> --- What about this one:

https://lkml.kernel.org/r/[email protected]

I don't know the code so I can't say whether testing the ->ddc_bus ptr is the proper fix...

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

[Bug 178421] [regression] Radeon Oops on shutdown

In reply to [email protected]

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

--- Comment #9 from Alex Deucher <[email protected]> ---
Yes, that should fix it. All of the board I tested with had a ddc bus on all connectors so it never came up before. This only triggers on really old boards with TV connectors which don't have a DDC bus for those connectors.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#10 lore raw

[Bug 178421] [regression] Radeon Oops on shutdown

In reply to [email protected]

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

--- Comment #10 from Borislav Petkov <[email protected]> --- Yap, it does. Just did two suspend-to-disk runs.

Thanks.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#11 lore raw

[Bug 178421] [regression] Radeon Oops on shutdown

In reply to [email protected]

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

Jouni Mettälä <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #11 from Jouni Mettälä <[email protected]> --- This bug is fixed between 4.9-rc4 and 4.9-rc5.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel