Bug 1217512 - [RPi4] kernel: vc4_hdmi fef00700.hdmi: Could not register PCM component: -517
Summary: [RPi4] kernel: vc4_hdmi fef00700.hdmi: Could not register PCM component: -517
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Current
Hardware: aarch64 Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: openSUSE Kernel Bugs
QA Contact: E-mail List
URL: https://openqa.opensuse.org/tests/376...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-27 08:37 UTC by Guillaume GARDET
Modified: 2024-01-31 12:10 UTC (History)
9 users (show)

See Also:
Found By: openQA
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume GARDET 2023-11-27 08:37:20 UTC
## Observation

openQA test in scenario opensuse-Tumbleweed-JeOS-for-RPi-aarch64-jeos@RPi4 fails in
[journal_check](https://openqa.opensuse.org/tests/3760808/modules/journal_check/steps/11)

On Raspberry Pi 4, with latest updates, we now have the following kernel trace in journal: 
kernel: vc4_hdmi fef00700.hdmi: Could not register PCM component: -517


Related updates:
  raspberrypi-firmware (2023.04.25 -> 2023.11.21)
  raspberrypi-firmware-config (2023.04.25 -> 2023.11.21)
  raspberrypi-firmware-dt (2023.05.02 -> 2023.11.21)


## Test suite description
Maintainer: fvogt, mnowak

Start JeOS from the HDD image, configure it using the firstboot wizard and then run basic tests. console=tty0 added as needed for aarch64.


## Reproducible

Fails since (at least) Build [20231123](https://openqa.opensuse.org/tests/3754946)


## Expected result

Last good: [20231122](https://openqa.opensuse.org/tests/3750512) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=aarch64&distri=opensuse&flavor=JeOS-for-RPi&machine=RPi4&test=jeos&version=Tumbleweed)
Comment 1 Ivan Ivanov 2023-11-27 08:49:46 UTC
Adding DRM experts.
Comment 2 Takashi Iwai 2023-11-27 10:02:46 UTC
-517 is -EPROBE_DEFER, and this itself isn't wrong.  (The driver can use dev_err_probe() for hiding the EPROBE_DEFER error, though.)

Doesn't the device work afterward at all?
Comment 3 Guillaume GARDET 2023-11-27 10:43:03 UTC
(In reply to Takashi Iwai from comment #2)
> -517 is -EPROBE_DEFER, and this itself isn't wrong.  (The driver can use
> dev_err_probe() for hiding the EPROBE_DEFER error, though.)
> 
> Doesn't the device work afterward at all?

It has been detected on openQA headless RPi4 and my hdmi cable is broken, so I cannot test on my 2nd RPi4.

@Ivan, would you be able to test?
Comment 4 Ivan Ivanov 2023-11-27 12:47:02 UTC
(In reply to Takashi Iwai from comment #2)
> -517 is -EPROBE_DEFER, and this itself isn't wrong.  (The driver can use
> dev_err_probe() for hiding the EPROBE_DEFER error, though.)
> 
> Doesn't the device work afterward at all?

I'm afraid not, the HDMI output doesn't work.
Comment 5 Zaoliang Luo 2023-11-27 21:15:31 UTC
I checked this issue on my RPi compute module 4 which connected to monitor via HDMI.

compute:~ # journalctl | grep PCM
Nov 02 00:01:01 localhost kernel: vc4_hdmi fef00700.hdmi: Could not register PCM component: -517

HDMI is not working, no signal at all.
Comment 6 Patrik Jakobsson 2023-11-28 07:51:27 UTC
We don't see any issues in the nightly IGT tests so this is likely a firmware or DT issue.

Can someone test by rolling back the DT but not the firmware and config packages? That way we can isolate the problem further.
Comment 7 Ivan Ivanov 2023-11-28 09:54:54 UTC
Yes, as suspected update of raspberrypi-firmware-dt makes thing break.
I will have to take closer look why this is happening...
Comment 8 Tamás Németh 2023-12-05 22:30:42 UTC
My Raspberry Pi 4 running Tubleweed is sadly also affected by the problem. Since updating to raspberrypi-firmware-dt-2023.11.21-1.1.noarch I have no video signal via HDMI. After adding nomodeset to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub and then running grub2-mkconfig -o /boot/grub2/grub.cfg, I have HDMI video, but still no audio.

The corresponding messages in dmesg are the following (AFAIK):

vc4_hdmi fef00700.hdmi: Could not register PCM component: -517
platform gpu: deferred probe pending

My HDMI output was able to produce proper video and audio signal up until raspberrypi-firmware-dt-2023.04.25-2.1, so I finally downgraded to these packages from leap in order to regain HDMI video and audio support:

raspberrypi-eeprom-2023.01.11-2.1.noarch.rpm
raspberrypi-eeprom-firmware-2023.01.11-2.1.noarch.rpm
raspberrypi-firmware-2023.01.18-1.1.noarch.rpm
raspberrypi-firmware-config-2023.01.18-1.1.noarch.rpm
raspberrypi-firmware-dt-2023.01.20-1.1.noarch.rpm

(BTW, is there any history-like repository for tubleweed/aarch64 where I can still found 2023.04.25-2.1 ?)

Anyway, Red Hat users are also fighting the problem: https://bugzilla.redhat.com/show_bug.cgi?id=2246428

And they say, the root cause might be this patch: https://github.com/raspberrypi/linux/commit/0491a0aecb999b1a013ad4a6ad3816c535ac6e73
Comment 9 Ivan Ivanov 2023-12-07 08:05:28 UTC
Thank you, Tamás! Yep, this is it. 

I am afraid that vendor changes around new RPi5 makes new
device trees unusable without corresponding changes in DMA
driver, which I don't see to happen soon.

Guillaume, I think the safest resolution for the moment is 
to revert to prior device tree version.
Comment 10 Guillaume GARDET 2023-12-07 13:14:36 UTC
(In reply to Ivan Ivanov from comment #9)
> Thank you, Tamás! Yep, this is it. 
> 
> I am afraid that vendor changes around new RPi5 makes new
> device trees unusable without corresponding changes in DMA
> driver, which I don't see to happen soon.
> 
> Guillaume, I think the safest resolution for the moment is 
> to revert to prior device tree version.

Could we just revert DMA patches, maybe?
Comment 11 Ivan Ivanov 2023-12-11 08:36:46 UTC
(In reply to Guillaume GARDET from comment #10)

> Could we just revert DMA patches, maybe?

Ok, Let me check ...
Comment 12 Ivan Ivanov 2023-12-11 09:45:46 UTC
(In reply to Ivan Ivanov from comment #11)
> (In reply to Guillaume GARDET from comment #10)
> 
> > Could we just revert DMA patches, maybe?
> 
> Ok, Let me check ...

I am ashamed how easy this was :-| 

SR#1132457 is fixing this issue for me.

Thank you, Tamás!

https://build.opensuse.org/request/show/1132457
Comment 13 Tamás Németh 2023-12-11 14:30:02 UTC
(In reply to Ivan Ivanov from comment #12)
> (In reply to Ivan Ivanov from comment #11)
> > (In reply to Guillaume GARDET from comment #10)
> > 
> > > Could we just revert DMA patches, maybe?
> > 
> > Ok, Let me check ...
> 
> I am ashamed how easy this was :-| 
> 
> SR#1132457 is fixing this issue for me.
> 
> Thank you, Tamás!
> 
> https://build.opensuse.org/request/show/1132457

Thank you very-very much for fixing it!
Comment 14 Ivan Ivanov 2023-12-12 12:20:48 UTC
Closing.