-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning in boot log about vc4/vc4_hdmi_phy.c #3594
Comments
I thought @popcornmix had already committed a fix for this. The correct value is 0x18. |
It was cherry picked by you into #3535 but that PR got delayed. |
Thanks @popcornmix - I'm glad someone remembers these things! |
@6by9 You mean the return value from Out of curiosity, is the datasheet publicly available? Thanks! |
They are values provided by Broadcom.
No. |
I'm just testing this, then I'll close the issue. |
I can confirm the warning goes away with 71d5db1. Thanks! |
kernel: vc4_hdmi: Add CEC support for 2711 See: raspberrypi/linux#3601 kernel: overlays: Move fixed-clock nodes to the root See: raspberrypi/linux#3607 kernel: bcm2835_isp fixes for constness See: raspberrypi/linux#3592 kernel: video: bcm2708_fb: Disable FB if no displays found See: raspberrypi/linux#3598 kernel: vc4_hdmi_phy: Fix typo in phy_get_cp_current See: raspberrypi/linux#3594 kernel: configs: Add missing TOUCHSCREEN_RASPBERRYPI_FW=m See: Hexxeh/rpi-firmware#223 kernel: configs: Add missing PPS configs See: raspberrypi/linux#3593 kernel: overlays: gpio-keys: Avoid open-drain warnings See: #1381 kernel: overlays: Make the i2c-gpio overlay safe again kernel: ARM: dts: bcm2711: Allow 40-bit DMA for SPI See: raspberrypi/linux#3570 firmware: In KMS mode, prevent use of the firmware rotations firmware: power: Adjust ARM:AXI divider ratio if ARM freq > 1500 MHz firmware: imx477: Remove STILLS flag from 720p mode userland: tvservice: Fix freeze on old firmware
kernel: vc4_hdmi: Add CEC support for 2711 See: raspberrypi/linux#3601 kernel: overlays: Move fixed-clock nodes to the root See: raspberrypi/linux#3607 kernel: bcm2835_isp fixes for constness See: raspberrypi/linux#3592 kernel: video: bcm2708_fb: Disable FB if no displays found See: raspberrypi/linux#3598 kernel: vc4_hdmi_phy: Fix typo in phy_get_cp_current See: raspberrypi/linux#3594 kernel: configs: Add missing TOUCHSCREEN_RASPBERRYPI_FW=m See: #223 kernel: configs: Add missing PPS configs See: raspberrypi/linux#3593 kernel: overlays: gpio-keys: Avoid open-drain warnings See: raspberrypi/firmware#1381 kernel: overlays: Make the i2c-gpio overlay safe again kernel: ARM: dts: bcm2711: Allow 40-bit DMA for SPI See: raspberrypi/linux#3570 firmware: In KMS mode, prevent use of the firmware rotations firmware: power: Adjust ARM:AXI divider ratio if ARM freq > 1500 MHz firmware: imx477: Remove STILLS flag from 720p mode userland: tvservice: Fix freeze on old firmware
Is this the right place for my bug report?
Possibly, it's to do with the HDMI component of the vc4 driver. I don't know if this should live here or in github.com/raspberrypi/firmware.
Describe the bug
On Raspberry Pi 4 with
dtoverlay=vc4-kms-v3d
ordtoverlay=vc4-kms-v3d-pi4
, I see a warning at boot time relating to the vc4 HDMI component.To reproduce
Connect rpi4 to HDMI display. Build and boot rpi-5.4.y on Raspberry Pi 4. Check dmesg.
Expected behaviour
There should be no warning.
Actual behaviour
A warning appears in the boot log
System
cat /etc/rpi-issue
)? Custom OS, but I believe this is a kernel issue.vcgencmd version
)? I'm not sure how to check this withoutvcgencmd
uname -a
)?Linux localhost 5.4.35-v8 #1 SMP PREEMPT Fri May 1 17:22:32 UTC 2020 aarch64 GNU/Linux
Logs
Full dmesg https://pastebin.com/4NYaaEffper
Additional context
The warning comes from the VC4_SET_FIELD macro, which checks that the register value is contained within the register mask. It looks like the warning is because phy_get_cp_current returns an 8-bit value, but the mask is only 6 bits. Either way the mask is applied so the 0xc8 turns into 0x08.
I need to find out what the register is supposed to be set to and what the effect of setting it to 0x08 is, but I don't know where the datasheet for the BCM2711 HDMI registers is.
Please can someone point me to the datasheet containing the registers for the BCM2711 HDMI peripheral.
Thanks!
The text was updated successfully, but these errors were encountered: