[Bug 1105282] New: vc4 not working in linuxrc because of PCM
http://bugzilla.suse.com/show_bug.cgi?id=1105282 Bug ID: 1105282 Summary: vc4 not working in linuxrc because of PCM Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: afaerber@suse.com Reporter: agraf@suse.com QA Contact: qa-bugs@suse.de CC: sndirsch@suse.com, snwint@suse.com, tzimmermann@suse.com Found By: --- Blocker: --- When I boot up the current Tumbleweed installer system on the Raspberry Pi, HDMI output is not showing. This is related to the vc4 driver being unable to properly load: [ 17.735109] vc4_hdmi 3f902000.hdmi: Could not register PCM component: -517 [ 17.742312] vc4-drm soc:gpu: failed to bind 3f902000.hdmi (ops vc4_hdmi_ops [vc4]): -517 [ 17.750679] vc4-drm soc:gpu: master bind failed: -517 I think there are 2 bugs here really: The first one is with vc4. It shouldn't declare itself as viable graphics output driver (kicking out the well working efifb one) when it can not find all of its dependencies. The other one is that we probably need to include snd_pcm and snd_soc_core in the linuxrc initrd so that vc4 does load properly and allows us to install: rpi31:~ # lsmod | grep -i snd snd_soc_core 237568 1 vc4 snd_pcm_dmaengine 16384 1 snd_soc_core snd_pcm 151552 3 vc4,snd_pcm_dmaengine,snd_soc_core snd_timer 36864 1 snd_pcm snd 106496 3 snd_timer,snd_soc_core,snd_pcm soundcore 20480 1 snd I'll leave it to Andreas to determine who to assign this bug to and thus which path of the 2 to fix this we should take ;). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1105282
Alexander Graf
http://bugzilla.suse.com/show_bug.cgi?id=1105282
Alexander Graf
http://bugzilla.suse.com/show_bug.cgi?id=1105282
http://bugzilla.suse.com/show_bug.cgi?id=1105282#c1
--- Comment #1 from Stefan Dirsch
The first one is with vc4. It shouldn't declare itself as viable graphics output driver (kicking out the well working efifb one) when it can not find all of its dependencies.
mbrugger/yKaukab (our Hardware enablement team members dedicated to ARM)
The other one is that we probably need to include snd_pcm and snd_soc_core in the linuxrc initrd so that vc4 does load properly and allows us to install:
snwint? (installation-images) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1105282
http://bugzilla.suse.com/show_bug.cgi?id=1105282#c2
--- Comment #2 from Steffen Winterfeldt
http://bugzilla.suse.com/show_bug.cgi?id=1105282
http://bugzilla.suse.com/show_bug.cgi?id=1105282#c3
--- Comment #3 from Stefan Dirsch
Even if I add snd_pcm manually nobody will load it automatically unless the dependencies are right. So, if snd_pcm is needed for vc4 to function properly, please add a module dependency.
Sure, this is bug number one. ;-) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1105282
Stefan Dirsch
http://bugzilla.suse.com/show_bug.cgi?id=1105282
http://bugzilla.suse.com/show_bug.cgi?id=1105282#c4
Andreas Färber
http://bugzilla.suse.com/show_bug.cgi?id=1105282
http://bugzilla.suse.com/show_bug.cgi?id=1105282#c5
--- Comment #5 from Takashi Iwai
Matthias/Yousaf, please take a look at why vc4 is pulling in snd_pcm without dracut noticing. Understanding that would be the first step to figuring out who can fix in which way.
It's simply because vc4 driver supports HDMI audio. And there is no option to disable it, hence loading the sound module beforehand is mandatory as a hard dependency. This doesn't happen on other graphics drivers on PC, because they have a dynamic binding using component (i915) or communicating indirectly via HD-audio bus (AMD, Nvidia) regarding HDMI audio. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1105282
Andreas Färber
http://bugzilla.suse.com/show_bug.cgi?id=1105282
http://bugzilla.suse.com/show_bug.cgi?id=1105282#c6
Petr Tesařík
https://bugzilla.suse.com/show_bug.cgi?id=1105282
https://bugzilla.suse.com/show_bug.cgi?id=1105282#c7
Petr Tesa����k
https://bugzilla.suse.com/show_bug.cgi?id=1105282
https://bugzilla.suse.com/show_bug.cgi?id=1105282#c8
--- Comment #8 from Ivan Ivanov
@Ivan: Can you check if this is still an issue with current Tumbleweed, please?
Tested with openSUSE-Tumbleweed-DVD-aarch64-Snapshot20210517-Media.iso On both RPi 3 and 4 HDMI output is initialised fine and GUI of the installer is visible on external monitor. # lsmod | grep -i snd snd_soc_core 299008 1 vc4 snd_compress 32768 1 snd_soc_core ac97_bus 16384 1 snd_soc_core snd_pcm_dmaengine 20480 1 snd_soc_core snd_pcm 163840 4 vc4,snd_compress,snd_soc_core,snd_pcm_dmaengine snd_timer 45056 1 snd_pcm snd 114688 4 snd_timer,snd_compress,snd_soc_core,snd_pcm soundcore 20480 1 snd # grep vc4 /var/log/boot.msg <6>[ 38.555010] rc rc0: vc4 as /devices/platform/soc/3f902000.hdmi/rc/rc0 <6>[ 38.555346] input: vc4 as /devices/platform/soc/3f902000.hdmi/rc/rc0/input0 <3>[ 38.556421] debugfs: Directory '3f902000.hdmi' with parent 'vc4-hdmi' already present! <6>[ 38.562996] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4]) <6>[ 38.563385] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4]) <6>[ 38.563664] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4]) <6>[ 38.563991] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4]) <6>[ 38.564287] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4]) <6>[ 38.564615] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4]) <6>[ 38.564884] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4]) <6>[ 38.565102] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4]) <6>[ 38.565887] fb0: switching to vc4drmfb from EFI VGA <6>[ 38.591288] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0 <6>[ 38.744472] vc4-drm soc:gpu: [drm] fb0: vc4drmfb frame buffer device -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1105282
https://bugzilla.suse.com/show_bug.cgi?id=1105282#c9
Ivan Ivanov
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com