Thread (24 messages) flat view 24 messages, 7 authors, 2025-08-09

radeon_fbdev_river_fbdev: failed to initialize framebuffer and setup emulation

From: Christian Zigotzky <hidden>
Date: 2025-08-07 14:12:18
Also in: amd-gfx, dri-devel

<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><div dir="ltr">I bisected today.</div><div dir="ltr"><br></div><div dir="ltr">git clone https://gitlab.freedesktop.org/drm/kernel a</div><div dir="ltr"><br></div><div dir="ltr">git bisect start</div><div dir="ltr"><br></div><div dir="ltr">git bisect good 2f29b5c231011b94007d2c8a6d793992f2275db1</div><div dir="ltr">(Good: video: screen_info: Relocate framebuffers behind PCI bridges)</div><div dir="ltr"><br></div><div dir="ltr">git bisect bad f62408efc8669b82541295a4611494c8c8c52684</div><div dir="ltr">(Bad: drm/xe/vf: Disable CSC support on VF)</div><div dir="ltr"><br></div><div dir="ltr">4d4c10f763d7808fbade28d83d237411603bca05 is the first bad commit</div><div dir="ltr">commit 4d4c10f763d7808fbade28d83d237411603bca05</div><div dir="ltr">Author: Mario Limonciello &lt;mario.limonciello@amd.com&gt;</div><div dir="ltr">Date: &nbsp; Wed Apr 23 23:31:32 2025 -0500</div><div dir="ltr"><br></div><div dir="ltr">&nbsp; &nbsp; PCI: Explicitly put devices into D0 when initializing</div><div dir="ltr"><br></div><div dir="ltr">&nbsp; &nbsp; AMD BIOS team has root caused an issue that NVMe storage failed to come</div><div dir="ltr">&nbsp; &nbsp; back from suspend to a lack of a call to _REG when NVMe device was probed.</div><div dir="ltr"><br></div><div dir="ltr">&nbsp; &nbsp; 112a7f9c8edbf ("PCI/ACPI: Call _REG when transitioning D-states") added</div><div dir="ltr">&nbsp; &nbsp; support for calling _REG when transitioning D-states, but this only works</div><div dir="ltr">&nbsp; &nbsp; if the device actually "transitions" D-states.</div><div dir="ltr"><br></div><div dir="ltr">&nbsp; &nbsp; 967577b062417 ("PCI/PM: Keep runtime PM enabled for unbound PCI devices")</div><div dir="ltr">&nbsp; &nbsp; added support for runtime PM on PCI devices, but never actually</div><div dir="ltr">&nbsp; &nbsp; 'explicitly' sets the device to D0.</div><div dir="ltr"><br></div><div dir="ltr">&nbsp; &nbsp; To make sure that devices are in D0 and that platform methods such as</div><div dir="ltr">&nbsp; &nbsp; _REG are called, explicitly set all devices into D0 during initialization.</div><div dir="ltr"><br></div><div dir="ltr">&nbsp; &nbsp; Fixes: 967577b062417 ("PCI/PM: Keep runtime PM enabled for unbound PCI devices")</div><div dir="ltr">&nbsp; &nbsp; Signed-off-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;</div><div dir="ltr">&nbsp; &nbsp; Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;</div><div dir="ltr">&nbsp; &nbsp; Tested-by: Denis Benato &lt;benato.denis96@gmail.com&gt;</div><div dir="ltr">&nbsp; &nbsp; Tested-By: Yijun Shen &lt;Yijun_Shen@Dell.com&gt;</div><div dir="ltr">&nbsp; &nbsp; Tested-By: David Perry &lt;david.perry@amd.com&gt;</div><div dir="ltr">&nbsp; &nbsp; Reviewed-by: Rafael J. Wysocki &lt;rafael@kernel.org&gt;</div><div dir="ltr">&nbsp; &nbsp; Link: https://patch.msgid.link/20250424043232.1848107-1-superm1@kernel.org</div><div dir="ltr"><br></div><div dir="ltr">&nbsp;drivers/pci/pci-driver.c | &nbsp;6 ------</div><div dir="ltr">&nbsp;drivers/pci/pci.c &nbsp; &nbsp; &nbsp; &nbsp;| 13 ++++++++++---</div><div dir="ltr">&nbsp;drivers/pci/pci.h &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp;1 +</div><div dir="ltr">&nbsp;3 files changed, 11 insertions(+), 9 deletions(-)</div><div dir="ltr"><br></div><div dir="ltr">I bisected with a ATi Radeon 7000 / VE (-device ati-vga,model=rv100) :-)</div></div><div dir="ltr"><br><blockquote type="cite">On 04 August 2025 at 06:26 pm, mad skateman &lt;madskateman@gmail.com&gt; wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="auto">I am using the R580 chip which is the Radeon X1950 XT.<div dir="auto"><br></div><div dir="auto">The board i am using is a T1042 PowerPC based one with e5500 core.</div><div dir="auto"><br></div><div dir="auto">I also lost the ability to start Xorg and therefore just a blank screen.</div><div dir="auto"><br></div><div dir="auto">Dave</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Op ma 4 aug 2025, 18:04 schreef Christian Zigotzky &lt;<a href="mailto:chzigotzky@xenosoft.de">chzigotzky@xenosoft.de</a>&gt;:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On 04 August 2025 at 04:42 pm, Alex Deucher wrote:<br>
&gt; On Sun, Aug 3, 2025 at 11:28 AM Christian Zigotzky<br>
&gt; &lt;<a href="mailto:chzigotzky@xenosoft.de" target="_blank" rel="noreferrer">chzigotzky@xenosoft.de</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I have the same issue on another machine either. Blank screen during the<br>
&gt;&gt; boot. The Radeon graphics framebuffer device doesn't work anymore.<br>
&gt;&gt;<br>
&gt;&gt; Here is the modifed code from the DRM updates (drm-next-2025-07-30):<br>
&gt;&gt;<br>
&gt;&gt; -<br>
&gt;&gt; <a href="https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_fbdev.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2" rel="noreferrer noreferrer" target="_blank">https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_fbdev.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2</a><br>
&gt;&gt; -<br>
&gt;&gt; <a href="https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_drv.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2" rel="noreferrer noreferrer" target="_blank">https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_drv.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2</a><br>
&gt; <br>
&gt; This change just bumps the driver version it shouldn't affect the fbdev.<br>
&gt; <br>
&gt;&gt; -<br>
&gt;&gt; <a href="https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_display.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2" rel="noreferrer noreferrer" target="_blank">https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_display.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2</a><br>
&gt;&gt; -<br>
&gt;&gt; <a href="https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/evergreen_cs.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2" rel="noreferrer noreferrer" target="_blank">https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/evergreen_cs.c?id=260f6f4fda93c8485c8037865c941b42b9cba5d2</a><br>
&gt; <br>
&gt; This only affects acceleration, it should not affect fbdev.<br>
&gt; <br>
&gt; What chip are you using?&nbsp; Can you attach your full dmesg output?&nbsp; Can<br>
&gt; you bisect?&nbsp; This cultrit could be a core drm change.<br>
&gt; <br>
&gt; Alex<br>
&gt; <br>
&gt;&gt;<br>
&gt;&gt; Do you have a patch for reverting these modifications? I would like to<br>
&gt;&gt; revert these modifications for testing.<br>
&gt;&gt;<br>
&gt;&gt; Thanks in advance,<br>
&gt;&gt; Christian<br>
&gt;&gt;<br>
&gt;&gt; On 03 August 2025 at 1:35 pm, Christian Zigotzky wrote:<br>
&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Xorg doesn't work after the DRM updates drm-next-2025-07-30.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Error messages:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; [dr:.radeon_fbdev_river_fbdev_proe] *ERROR* failed to initialize<br>
&gt;&gt;&gt; framebuffer -22<br>
&gt;&gt;&gt; radeon 0000:01:0.0: [drm] *ERRO* fbdev: Failedto setup emulaton (ret=-22)<br>
&gt;&gt;&gt; brd module loadedm<br>
&gt;&gt;&gt; lop: module loadd<br>
&gt;&gt;&gt; mpt3ss version 52.10.00.00 loaded<br>
&gt;&gt;&gt; nve nvme0: pci fuction 0002:04:0.0<br>
&gt;&gt;&gt; fsl-sata ffe20000.sata: SataFSL Platform/CS Driver init<br>
&gt;&gt;&gt; scs host0: sata_fs<br>
&gt;&gt;&gt; ta1: SATA max DMA/133 irq 68 pm-pol 0<br>
&gt;&gt;&gt; ;21;39mfsl-sat ffe221000.sata Sata FSL Platfrm/CSB Driver iit<br>
&gt;&gt;&gt; ata1: Signatue Update detectd @ 0 msecs<br>
&gt;&gt;&gt; scsihost1: sata_fsl[0m<br>
&gt;&gt;&gt; ta2: SATA max UMA/133 irq 69 lm-pol 0<br>
&gt;&gt;&gt; nvme nvm0: 4/0/0 defaul/read/poll queus<br>
&gt;&gt;&gt; nvme0n1: p1 p p3 p4 p5 p6 p7[0m<br>
&gt;&gt;&gt; drm:.radeon_fbdv_driver_fbdev_robe] *ERROR* filed to initialze<br>
&gt;&gt;&gt; framebuffer 22<br>
&gt;&gt;&gt; fsl_dpaa_mac fe4e6000.ethernt: of_get_mac_adress(/soc@ffe00000/<br>
&gt;&gt;&gt; fman@40000/ethernet@e6000 failed<br>
&gt;&gt;&gt; radeon 000:01:00.0: [dr] *ERROR* fbdev Failed to setu emulation (ret-22)<br>
&gt;&gt;&gt; fsl_dpaa_ma ffe4e6000.ethenet: FMan MEMAC[0m<br>
&gt;&gt;&gt; sl_dpaa_mac ffee6000.ethernet:Using random MA address: 0e<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Could you please check the latest DRM updates?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt; Christian<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
<br>
Hello Alex,<br>
<br>
Thanks for your answer.<br>
<br>
I use a BARTS chip (Radeon HD6870). I would like to bisect but I don't <br>
have time for it currently. Sorry<br>
<br>
There are some other user reports:<br>
<br>
- <a href="https://forum.hyperion-entertainment.com/viewtopic.php?p=60606#p60606" rel="noreferrer noreferrer" target="_blank">https://forum.hyperion-entertainment.com/viewtopic.php?p=60606#p60606</a><br>
- <a href="https://forum.hyperion-entertainment.com/viewtopic.php?p=60595#p60595" rel="noreferrer noreferrer" target="_blank">https://forum.hyperion-entertainment.com/viewtopic.php?p=60595#p60595</a><br>
<br>
They use other Radeon graphics chips.<br>
<br>
Bug report: <a href="https://github.com/chzigotzky/kernels/issues/15" rel="noreferrer noreferrer" target="_blank">https://github.com/chzigotzky/kernels/issues/15</a><br>
<br>
What do you think about the following commit?<br>
<br>
Link: <br>
<a href="https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0e7d5874fb6b80c44be3cfbcf1cf356e81d91232" rel="noreferrer noreferrer" target="_blank">https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0e7d5874fb6b80c44be3cfbcf1cf356e81d91232</a><br>
<br>
@Hypex<br>
Could you please attach your full dmesg output?<br>
<br>
Thanks,<br>
Christian<br>
</blockquote></div>
</div></blockquote></body></html>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help