Skip to content
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

Blank screen in current kernel 5.10.74-rt54-v7l+ 32bit #23

Closed
guysoft opened this issue Mar 8, 2022 · 2 comments
Closed

Blank screen in current kernel 5.10.74-rt54-v7l+ 32bit #23

guysoft opened this issue Mar 8, 2022 · 2 comments

Comments

@guysoft
Copy link

guysoft commented Mar 8, 2022

Is this the right place for my bug report?

Describe the bug
I am building a nightly build for realtimepi.
The screen does not work, I can ssh to the pi and it works, but at some point during initrd it just blanks.

I used an official rasberrypi power supply and a raspberrypi 4B 4GB.

To reproduce

  1. Download latest rpi os and install kernel 5.10.74-rt54-v7l+
    Or better yet, Install and Flash RaltimePi.
    You can install it from the pi-imager from the unofficial tab at: https://github.com/guysoft/pi-imager

Expected behaviour
Screen should work

Actual behaviour
Screen blacks after inird

System
Copy and paste the results of the raspinfo command in to this section. Alternatively, copy and paste a pastebin link, or add answers to the following questions:

  • raspberrypi 4B 4GB
  • Which OS and version (cat /etc/rpi-issue)?
Raspberry Pi reference 2022-01-28
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, f01430c9d8f67a4b9719cc00e74a2079d3834d5d, stage2
  • Which firmware version (vcgencmd version)?
Jan 20 2022 13:56:48 
Copyright (c) 2012 Broadcom
version bd88f66f8952d34e4e0613a85c7a6d3da49e13e2 (clean) (release) (start)
  • Which kernel version (uname -a)?
Linux realtimepi 5.10.74-rt54-v7l+ #1 SMP PREEMPT_RT Fri Oct 22 02:21:31 PDT 2021 armv7l GNU/Linu

Logs
If applicable, add the relevant output from dmesg or similar.
dmesg output:

[    4.146628] systemd[1]: Mounted Kernel Debug File System.
[    4.152996] systemd[1]: Mounted Kernel Trace File System.
[    4.173659] systemd[1]: Finished Restore / save the current clock.
[    4.187902] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    4.200033] systemd[1]: modprobe@configfs.service: Succeeded.
[    4.213432] systemd[1]: Finished Load Kernel Module configfs.
[    4.223920] systemd[1]: modprobe@drm.service: Succeeded.
[    4.231243] systemd[1]: Finished Load Kernel Module drm.
[    4.241935] systemd[1]: modprobe@fuse.service: Succeeded.
[    4.249425] systemd[1]: Finished Load Kernel Module fuse.
[    4.268826] systemd[1]: Finished Load Kernel Modules.
[    4.293133] systemd[1]: Mounting FUSE Control File System...
[    4.345472] systemd[1]: Mounting Kernel Configuration File System...
[    4.384652] systemd[1]: Started File System Check Daemon to report status.
[    4.439373] systemd[1]: Starting Apply Kernel Variables...
[    4.481896] systemd[1]: Finished Set the console keyboard layout.
[    4.497278] systemd[1]: Finished File System Check on Root Device.
[    4.503397] systemd[1]: Mounted FUSE Control File System.
[    4.508859] systemd[1]: Mounted Kernel Configuration File System.
[    4.521887] systemd[1]: Finished Apply Kernel Variables.
[    4.537956] systemd[1]: Starting Remount Root and Kernel File Systems...
[    4.652412] systemd[1]: Started Journal Service.
[    4.753670] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    4.843932] systemd-journald[152]: Received client request to flush runtime journal.
[    4.857779] systemd-journald[152]: File /var/log/journal/36dea56754e648649a5e65b630af15c7/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    6.198665] random: crng init done
[    6.198681] random: 7 urandom warning(s) missed due to ratelimiting
[    7.929098] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    7.966272] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    8.011083] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    8.053107] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    8.353747] mc: Linux media interface: v0.10
[    8.487857] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    8.493975] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    8.598891] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    8.598917] [vc_sm_connected_init]: start
[    8.606735] videodev: Linux video capture interface: v2.00
[    8.654297] [vc_sm_connected_init]: installed successfully
[    8.757137] bcm2835_audio bcm2835_audio: card created with 8 channels
[    8.852396] brcmstb-i2c fef04500.i2c:  @97500hz registered in polling mode
[    8.938198] brcmstb-i2c fef09500.i2c:  @97500hz registered in polling mode
[    9.147468] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    9.168995] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    9.270388] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    9.273901] of_clk_hw_onecell_get: invalid index 5
[    9.273924] v3d fec00000.v3d: Failed to get clock (-2)
[    9.275119] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    9.282342] v3d: probe of fec00000.v3d failed with error -2
[    9.321411] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    9.595697] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    9.660770] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    9.721310] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    9.746610] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    9.746658] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    9.781844] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    9.781879] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    9.781897] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    9.781913] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    9.781928] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    9.827207] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    9.827247] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    9.845850] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    9.900047] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    9.900090] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    9.938317] checking generic (3e2fd000 8ca000) vs hw (0 ffffffffffffffff)
[    9.938334] fb0: switching to vc4drmfb from simple
[    9.970024] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    9.970088] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[   10.029987] Console: switching to colour dummy device 80x30
[   10.070660] of_clk_hw_onecell_get: invalid index 4
[   10.070682] vc4_hvs fe400000.hvs: Couldn't get core clock
[   10.070717] vc4-drm gpu: failed to bind fe400000.hvs (ops vc4_hvs_ops [vc4]): -2
[   10.071247] vc4-drm gpu: master bind failed: -2
[   10.078111] vc4-drm: probe of gpu failed with error -2
[   10.518175] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   10.704846] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   10.726249] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[   11.113873] brcmfmac: F1 signature read @0x18000000=0x15264345
[   11.130372] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[   11.200041] usbcore: registered new interface driver brcmfmac
[   11.408987] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[   11.409141] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[   11.417271] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov  1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[   15.532980] 8021q: 802.1Q VLAN Support v1.8
[   16.027842] uart-pl011 fe201000.serial: no DMA platform data
[   16.976648] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[   17.060877] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[   17.353072] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[   17.353890] bcmgenet fd580000.ethernet eth0: Link is Down
[   22.546970] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   23.149865] Bluetooth: Core ver 2.22
[   23.150002] NET: Registered protocol family 31
[   23.150011] Bluetooth: HCI device and connection manager initialized
[   23.150053] Bluetooth: HCI socket layer initialized
[   23.150088] Bluetooth: L2CAP socket layer initialized
[   23.150147] Bluetooth: SCO socket layer initialized
[   23.164978] Bluetooth: HCI UART driver ver 2.3
[   23.164999] Bluetooth: HCI UART protocol H4 registered
[   23.165110] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   23.165349] Bluetooth: HCI UART protocol Broadcom registered
[   23.682098] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   23.682115] Bluetooth: BNEP filters: protocol multicast
[   23.682157] Bluetooth: BNEP socket layer initialized
[   23.713725] NET: Registered protocol family 38
[   23.767244] cryptd: max_cpu_qlen set to 1000
[   24.614239] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.wlan0.retrans_time - use net.ipv6.neigh.wlan0.retrans_time_ms instead

Additional context
Related:
guysoft/RealtimePi#35

@guysoft guysoft changed the title Blank screen in current kernel 32bit Blank screen in current kernel 5.10.74-rt54-v7l+ 32bit Mar 8, 2022
@kdoren
Copy link
Owner

kdoren commented Mar 9, 2022

@guysoft

  1. does "screen" mean HDMI monitor? Plugged into which connector? I think it needs to be the one near the USB-C power connector.
  2. Please update your firmware, another user reported a booting issue:
    Kernel won't boot on Raspi OS 2022-01-28 #21
  3. please post your config,txt and cmdline.txt files.
  4. I posted a release of 5.10.91-rt61, please try with that.
  5. I made some changes to the install procedure, please use the latest:
    https://github.com/kdoren/linux/wiki/Installation-of-kernel-from-deb-package-%28Raspberry-Pi-OS%29

kdoren pushed a commit that referenced this issue Apr 2, 2022
[ Upstream commit 4224cfd ]

When bringing down the netdevice or system shutdown, a panic can be
triggered while accessing the sysfs path because the device is already
removed.

    [  755.549084] mlx5_core 0000:12:00.1: Shutdown was called
    [  756.404455] mlx5_core 0000:12:00.0: Shutdown was called
    ...
    [  757.937260] BUG: unable to handle kernel NULL pointer dereference at           (null)
    [  758.031397] IP: [<ffffffff8ee11acb>] dma_pool_alloc+0x1ab/0x280

    crash> bt
    ...
    PID: 12649  TASK: ffff8924108f2100  CPU: 1   COMMAND: "amsd"
    ...
     #9 [ffff89240e1a38b0] page_fault at ffffffff8f38c778
        [exception RIP: dma_pool_alloc+0x1ab]
        RIP: ffffffff8ee11acb  RSP: ffff89240e1a3968  RFLAGS: 00010046
        RAX: 0000000000000246  RBX: ffff89243d874100  RCX: 0000000000001000
        RDX: 0000000000000000  RSI: 0000000000000246  RDI: ffff89243d874090
        RBP: ffff89240e1a39c0   R8: 000000000001f080   R9: ffff8905ffc03c00
        R10: ffffffffc04680d4  R11: ffffffff8edde9fd  R12: 00000000000080d0
        R13: ffff89243d874090  R14: ffff89243d874080  R15: 0000000000000000
        ORIG_RAX: ffffffffffffffff  CS: 0010  SS: 0018
    raspberrypi#10 [ffff89240e1a39c8] mlx5_alloc_cmd_msg at ffffffffc04680f3 [mlx5_core]
    #11 [ffff89240e1a3a18] cmd_exec at ffffffffc046ad62 [mlx5_core]
    raspberrypi#12 [ffff89240e1a3ab8] mlx5_cmd_exec at ffffffffc046b4fb [mlx5_core]
    #13 [ffff89240e1a3ae8] mlx5_core_access_reg at ffffffffc0475434 [mlx5_core]
    #14 [ffff89240e1a3b40] mlx5e_get_fec_caps at ffffffffc04a7348 [mlx5_core]
    #15 [ffff89240e1a3bb0] get_fec_supported_advertised at ffffffffc04992bf [mlx5_core]
    #16 [ffff89240e1a3c08] mlx5e_get_link_ksettings at ffffffffc049ab36 [mlx5_core]
    #17 [ffff89240e1a3ce8] __ethtool_get_link_ksettings at ffffffff8f25db46
    #18 [ffff89240e1a3d48] speed_show at ffffffff8f277208
    raspberrypi#19 [ffff89240e1a3dd8] dev_attr_show at ffffffff8f0b70e3
    #20 [ffff89240e1a3df8] sysfs_kf_seq_show at ffffffff8eedbedf
    #21 [ffff89240e1a3e18] kernfs_seq_show at ffffffff8eeda596
    #22 [ffff89240e1a3e28] seq_read at ffffffff8ee76d10
    #23 [ffff89240e1a3e98] kernfs_fop_read at ffffffff8eedaef5
    #24 [ffff89240e1a3ed8] vfs_read at ffffffff8ee4e3ff
    #25 [ffff89240e1a3f08] sys_read at ffffffff8ee4f27f
    raspberrypi#26 [ffff89240e1a3f50] system_call_fastpath at ffffffff8f395f92

    crash> net_device.state ffff89443b0c0000
      state = 0x5  (__LINK_STATE_START| __LINK_STATE_NOCARRIER)

To prevent this scenario, we also make sure that the netdevice is present.

Signed-off-by: suresh kumar <suresh2514@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
@kdoren
Copy link
Owner

kdoren commented Apr 2, 2022

Closing due to inactivity and newer releases 5.10.90-rt61 and 5.15.32-rt39.

@kdoren kdoren closed this as completed Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants