Bug 141741

Summary: drm:radeon_get_bios [radeon]] *ERROR* Unable to locate a BIOS ROM
Product: Drivers Reporter: Michael Schenaerts (baygon)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: RESOLVED CODE_FIX    
Severity: normal CC: alexdeucher, bjorn, davidmartos96, deathsimple, dri-devel, josemanuelbarros, lukas-pichler, scrt.arc, tero.roponen, valentin.quequet, vedran
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 4.6.4 Subsystem:
Regression: Yes Bisected commit-id:
Attachments: DMESG on 4.5.5
DMESG on 4.6.4
LSPCI on 4.5.5
LSPCI on 4.6.4
XRANDR 4.5.5
XRANDR 4.6.4
dmesg | egrep 'drm|radeon' on 4.6.0-kali1-amd64

Description Michael Schenaerts 2016-07-24 10:03:23 UTC
Hi, 

Video is working fine with kernel 4.5.5 but once upgraded to 4.6.4, the video driver doesn't work anymore.

I'm on Ferora 24 but I had the same problem with Antergos.

How to reproduce : Uppdate the kernel and reboot.
Comment 1 Michael Schenaerts 2016-07-24 10:04:31 UTC
Created attachment 225671 [details]
DMESG on 4.5.5
Comment 2 Michael Schenaerts 2016-07-24 10:05:02 UTC
Created attachment 225681 [details]
DMESG on 4.6.4
Comment 3 Michael Schenaerts 2016-07-24 10:05:33 UTC
Created attachment 225691 [details]
LSPCI on 4.5.5
Comment 4 Michael Schenaerts 2016-07-24 10:05:56 UTC
Created attachment 225701 [details]
LSPCI on 4.6.4
Comment 5 Michael Schenaerts 2016-07-24 10:06:20 UTC
Created attachment 225711 [details]
XRANDR 4.5.5
Comment 6 Michael Schenaerts 2016-07-24 10:06:44 UTC
Created attachment 225721 [details]
XRANDR 4.6.4
Comment 7 Michel Dänzer 2016-07-25 03:42:37 UTC
Can you bisect?
Comment 8 Michael Schenaerts 2016-07-25 16:49:41 UTC
??
Comment 9 Christian König 2016-07-25 17:26:49 UTC
What Michel means is using "git bisect" to find which patch introduced the problem.

E.g. you do "git bisect start v4.6.4 v4.5.5" on the kernel source and git will jump into the middle between those two versions.

Then you compile the kernel and test it. If it works you do "git bisect good" in the kernel source directory, if it doesn't work you do "git bisect bad".

Git will send narrow down which patch was the bad one who introduced the problem.
Comment 10 Michael Schenaerts 2016-07-26 06:07:30 UTC
I'll be glad to help but I don't know where to start.
Do you have some documentation ?

Thanks
Michaël
Comment 11 Vedran Miletić 2016-07-26 15:52:27 UTC
(In reply to Michael Schenaerts from comment #10)
> I'll be glad to help but I don't know where to start.
> Do you have some documentation ?
> 
> Thanks
> Michaël

This might be helpful: https://fedoraproject.org/wiki/Building_a_custom_kernel
Comment 12 Michael Schenaerts 2016-07-27 06:17:52 UTC
Thx, I'll try right away
Comment 13 Michael Schenaerts 2016-08-02 06:44:37 UTC
I did the bisect with no luck. Evrything was running fine

I built the 4.6 and even the 4.7 with the config files from the 4.5 I set the other options to default and... it works.

I'll try to build them with the 4.6 config as soon as I have the time.
Comment 14 Jose Barros 2016-09-20 21:47:04 UTC
Created attachment 239331 [details]
dmesg | egrep 'drm|radeon' on 4.6.0-kali1-amd64
Comment 15 Alex Deucher 2016-09-21 13:14:41 UTC
Can you bisect?
Comment 16 Lukas P 2016-09-27 21:35:21 UTC
It may be the same problem as Bug 120321.

At my PC the latest Antergos live-image does work normal although it has kernel 4.7.4. The installed version and every other distros i tried with the distro or vanilla kernel version has the problem with a kernel version of 4.6 and higher.
Comment 17 Alex Deucher 2016-09-27 22:06:57 UTC
(In reply to Lukas P from comment #16)
> It may be the same problem as Bug 120321.
> 
> At my PC the latest Antergos live-image does work normal although it has
> kernel 4.7.4. The installed version and every other distros i tried with the
> distro or vanilla kernel version has the problem with a kernel version of
> 4.6 and higher.

Can you bisect?
Comment 18 David Martos 2016-09-28 22:26:21 UTC
I can say that I am also affected by this problem. Same errors as the ones posted here and the ones posted in https://bugzilla.kernel.org/show_bug.cgi?id=120321

I tried with different OS's with kernel >4.5 (Antergos and Fedora) and all of them give the same results. Using the fallback kernel 4.5 for Fedora gives no problems whatsoever
Comment 19 Lukas P 2016-10-20 20:18:38 UTC
I did a bisect and it reported the following commit as the first bad one:
30b5b8808c12bcd947dd474980482561b69c1bcb

diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig
index a1f37db..209292e 100644
--- a/drivers/pci/Kconfig
+++ b/drivers/pci/Kconfig
@@ -128,4 +128,5 @@ config PCI_HYPERV
           The PCI device frontend driver allows the kernel to import arbitrary
           PCI devices from a PCI backend to support PCI driver domains.
 
+source "drivers/pci/hotplug/Kconfig"
 source "drivers/pci/host/Kconfig"

If I remove the changed line in the source of v4.6 everything works normally.
Comment 20 Socrates Archer 2016-11-12 22:39:09 UTC
Affected use here as well.
Toshiba Satellite c850 on Arch

kernel 4.6+ fails during boot journalctl shows this

[drm:radeon_get_bios [radeon]] *ERROR* Unable to locate a BIOS ROMradeon 0000:01:00.0: Fatal error during GPU init
[drm] radeon: finishing device.
Comment 21 Tero Roponen 2016-11-14 15:28:17 UTC
(In reply to Lukas P from comment #19)
> I did a bisect and it reported the following commit as the first bad one:
> 30b5b8808c12bcd947dd474980482561b69c1bcb
> 
> diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig
> index a1f37db..209292e 100644
> --- a/drivers/pci/Kconfig
> +++ b/drivers/pci/Kconfig
> @@ -128,4 +128,5 @@ config PCI_HYPERV
>            The PCI device frontend driver allows the kernel to import
> arbitrary
>            PCI devices from a PCI backend to support PCI driver domains.
>  
> +source "drivers/pci/hotplug/Kconfig"
>  source "drivers/pci/host/Kconfig"
> 
> If I remove the changed line in the source of v4.6 everything works normally.

I'm not an expert, but removing the inclusion of drivers/pci/hotplug/Kconfig equals to disabling all the HOTPLUG_PCI_* options in the config ("Support for PCI Hotplug" in menuconfig). You could try disabling those one by one to see which one causes the problem.
Comment 22 Valentin QUEQUET 2016-11-24 10:08:53 UTC
Hello,

You're right Tero Roponen, it is the tree that hides the forest !

I recently opened bug #175391 ( https://bugzilla.kernel.org/show_bug.cgi?id=175391 ) and it was reported by Michael Schenaerts that it was a potential duplicate of this one (#141741).

Thanks to my determination to inquire in that matter and close this bug, we got what happened wrong and Bjorn Helgaas wrote a fix.

Bug #175391 Bjorn's patch made it in both mainline (4.9-rc5) and GregKH's -stable (4.8.9).

I invite you to then carefully read the full thread of bug #175391.

In hope this helps.

Sincerely,
Valentin
Comment 23 Bjorn Helgaas 2016-12-27 17:38:47 UTC
Michael, Jose, Lukas, David, Socrates, could you test this with v4.9?  It includes a change that is related: 
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=16d917b130d7 ("PCI: Don't attempt to claim shadow copies of ROM").

If the problem still occurs on v4.9, please attach the complete dmesg log.
Comment 24 Bjorn Helgaas 2017-03-03 02:44:15 UTC
Closing on the assumption that the patch mentioned in comment #23 fixes the problem.

If the problem still occurs on v4.9 or later, please reopen this and attach the complete dmesg log.