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

7" HDMI Display does NOT work with KMS driver #4719

Open
rnayabed opened this issue Nov 20, 2021 · 25 comments
Open

7" HDMI Display does NOT work with KMS driver #4719

rnayabed opened this issue Nov 20, 2021 · 25 comments

Comments

@rnayabed
Copy link

Is this the right place for my bug report?
Should be, this is related to KMS/FKMS driver.

Describe the bug
Raspberry Pi OS Bullseye ships with KMS driver by default now. It has been a mixed bag for me, since none of the HDMI touch screens that I have from Waveshare (7", 5") work with it. I do get a rainbow screen and initial kernel log messages, but after some time it blanks and I get nothing on the screen.

I have not yet tried desktop mode, since i only use the lite package.

To reproduce
Just fresh install Raspberry Pi OS 32-bit Bullseye on an SD Card (preferably the lite version), try using an external 3rd party display like the ones from Waveshare and it's clones.

Expected behaviour
It should work fine. Using vc4-fkms-v3d works just fine. This problem can be blamed to only the vc4-kms-v3d overlay.

Actual behaviour
The System starts up. Rainbow Screen is showed, some basic kernel logs are shown. Then screen blanks and stays that way forever.

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:

  • Which model of Raspberry Pi?
    Pi 4B. But should be reproducible with other Pi as well

  • Which OS and version (cat /etc/rpi-issue)?

Raspberry Pi reference 2021-10-30
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 288b21fc27e128ea6b330777aca68e0061ebf4fe, stage2
  • Which firmware version (vcgencmd version)?
Oct 29 2021 10:47:33 
Copyright (c) 2012 Broadcom
version b8a114e5a9877e91ca8f26d1a5ce904b2ad3cf13 (clean) (release) (start)
  • Which kernel version (uname -a)?
Linux pi4b 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux

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

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.63-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1459 SMP Wed Oct 6 16:41:57 BST 2021
[    0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.2
[    0.000000] random: fast init done
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x000000001ac00000, size 320 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000037efffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 491264
[    0.000000]   DMA zone: 1728 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 294656 pages, LIFO batch:63
[    0.000000] percpu: Embedded 20 pages/cpu s50828 r8192 d22900 u81920
[    0.000000] pcpu-alloc: s50828 r8192 d22900 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 489536
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1024x600M@60 smsc95xx.macaddr=DC:A6:32:CF:48:9B vc_mem.mem_base=0x3eb00000 vc_mem.mem_size=0x3ff00000  console=ttyS0,115200 console=tty1 root=PARTUUID=5e63546e-02 rootfstype=ext4 fsck.repair=yes rootwait
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x0000000015a00000-0x0000000019a00000] (64MB)
[    0.000000] Memory: 1533568K/1965056K available (10240K kernel code, 1364K rwdata, 3192K rodata, 2048K init, 891K bss, 103808K reserved, 327680K cma-reserved, 1178624K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 34315 entries in 68 pages
[    0.000000] ftrace: allocated 68 pages with 2 groups
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7ef00100, parent irq: 25)
[    0.000000] random: get_random_bytes called from start_kernel+0x3c8/0x59c with crng_init=1
[    0.000007] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000034] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000095] bcm2835: system timer (irq = 26)
[    0.000748] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000770] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000793] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000811] Switching to timer-based delay loop, resolution 18ns
[    0.001071] Console: colour dummy device 80x30
[    0.001825] printk: console [tty1] enabled
[    0.001893] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[    0.001947] pid_max: default: 32768 minimum: 301
[    0.002121] LSM: Security Framework initializing
[    0.002324] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002369] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.003870] cgroup: Disabling memory control group subsystem
[    0.004123] CPU: Testing write buffer coherency: ok
[    0.004602] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.005834] Setting up static identity map for 0x200000 - 0x20003c
[    0.006051] rcu: Hierarchical SRCU implementation.
[    0.006995] smp: Bringing up secondary CPUs ...
[    0.008225] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.009601] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.010994] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.011154] smp: Brought up 1 node, 4 CPUs
[    0.011201] SMP: Total of 4 processors activated (432.00 BogoMIPS).
[    0.011231] CPU: All CPU(s) started in HYP mode.
[    0.011259] CPU: Virtualization extensions available.
[    0.012128] devtmpfs: initialized
[    0.026460] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
[    0.026695] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.026748] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.035027] pinctrl core: initialized pinctrl subsystem
[    0.036127] NET: Registered protocol family 16
[    0.040064] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.040920] audit: initializing netlink subsys (disabled)
[    0.041201] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.041767] thermal_sys: Registered thermal governor 'step_wise'
[    0.042445] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.042499] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.042928] Serial: AMBA PL011 UART driver
[    0.086477] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.100911] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-10-29T10:47:33, variant start
[    0.110924] raspberrypi-firmware soc:firmware: Firmware hash is b8a114e5a9877e91ca8f26d1a5ce904b2ad3cf13
[    0.151821] Kprobes globally optimized
[    0.157151] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.161597] vgaarb: loaded
[    0.162063] SCSI subsystem initialized
[    0.162311] usbcore: registered new interface driver usbfs
[    0.162388] usbcore: registered new interface driver hub
[    0.162476] usbcore: registered new device driver usb
[    0.162894] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.164850] clocksource: Switched to clocksource arch_sys_counter
[    1.124158] VFS: Disk quotas dquot_6.6.0
[    1.124283] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.124465] FS-Cache: Loaded
[    1.124680] CacheFiles: Loaded
[    1.125789] simple-framebuffer 3e863000.framebuffer: framebuffer at 0x3e863000, 0x260000 bytes, mapped to 0x(ptrval)
[    1.125835] simple-framebuffer 3e863000.framebuffer: format=a8r8g8b8, mode=1024x600x32, linelength=4096
[    1.129347] Console: switching to colour frame buffer device 128x37
[    1.132389] simple-framebuffer 3e863000.framebuffer: fb0: simplefb registered!
[    1.142567] NET: Registered protocol family 2
[    1.144241] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.147025] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.148623] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.150138] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.151653] TCP: Hash tables configured (established 8192 bind 8192)
[    1.153251] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.154735] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.156898] NET: Registered protocol family 1
[    1.159073] RPC: Registered named UNIX socket transport module.
[    1.160513] RPC: Registered udp transport module.
[    1.161911] RPC: Registered tcp transport module.
[    1.163267] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.164649] PCI: CLS 0 bytes, default 64
[    1.169316] Initialise system trusted keyrings
[    1.170891] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    1.180657] zbud: loaded
[    1.183799] FS-Cache: Netfs 'nfs' registered for caching
[    1.185993] NFS: Registering the id_resolver key type
[    1.187456] Key type id_resolver registered
[    1.188850] Key type id_legacy registered
[    1.190335] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.191732] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.194140] Key type asymmetric registered
[    1.195558] Asymmetric key parser 'x509' registered
[    1.197133] bounce: pool size: 64 pages
[    1.198531] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.200134] io scheduler mq-deadline registered
[    1.201514] io scheduler kyber registered
[    1.207608] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.209000] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.210444] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.211873] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x007fffffff -> 0x0400000000
[    1.266958] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    1.268616] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.269886] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.271132] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    1.272493] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    1.273993] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.278811] PCI: bus0: Fast back to back transfers disabled
[    1.280416] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    1.281791] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    1.283473] pci 0000:01:00.0: PME# supported from D0 D3cold
[    1.288257] PCI: bus1: Fast back to back transfers disabled
[    1.289600] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    1.290903] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    1.292265] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.293544] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    1.295307] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    1.296807] pcieport 0000:00:00.0: PME: Signaling with IRQ 80
[    1.308032] iproc-rng200 fe104000.rng: hwrng registered
[    1.309685] vc-mem: phys_addr:0x00000000 mem_base=0x3eb00000 mem_size:0x3ff00000(1023 MiB)
[    1.311967] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.325731] brd: module loaded
[    1.339606] loop: module loaded
[    1.342752] Loading iSCSI transport class v2.0-870.
[    1.347348] libphy: Fixed MDIO Bus: probed
[    1.350509] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.364921] libphy: bcmgenet MII bus: probed
[    1.445039] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.447546] usbcore: registered new interface driver r8152
[    1.448887] usbcore: registered new interface driver lan78xx
[    1.450186] usbcore: registered new interface driver smsc95xx
[    1.453008] xhci_hcd 0000:01:00.0: enabling device (0140 -> 0142)
[    1.454407] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.455704] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.460320] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000060000000890
[    1.462935] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    1.464222] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.465499] usb usb1: Product: xHCI Host Controller
[    1.466737] usb usb1: Manufacturer: Linux 5.10.63-v7l+ xhci-hcd
[    1.467981] usb usb1: SerialNumber: 0000:01:00.0
[    1.469966] hub 1-0:1.0: USB hub found
[    1.471272] hub 1-0:1.0: 1 port detected
[    1.473153] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.474370] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.475640] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.477389] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[    1.478647] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.479896] usb usb2: Product: xHCI Host Controller
[    1.481128] usb usb2: Manufacturer: Linux 5.10.63-v7l+ xhci-hcd
[    1.482373] usb usb2: SerialNumber: 0000:01:00.0
[    1.484303] hub 2-0:1.0: USB hub found
[    1.485598] hub 2-0:1.0: 4 ports detected
[    1.488584] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.490105] dwc_otg: FIQ enabled
[    1.490120] dwc_otg: NAK holdoff enabled
[    1.490135] dwc_otg: FIQ split-transaction FSM enabled
[    1.490152] Module dwc_common_port init
[    1.490624] usbcore: registered new interface driver uas
[    1.491903] usbcore: registered new interface driver usb-storage
[    1.493266] mousedev: PS/2 mouse device common for all mice
[    1.496525] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.501292] sdhci: Secure Digital Host Controller Interface driver
[    1.502495] sdhci: Copyright(c) Pierre Ossman
[    1.504431] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    1.506368] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.511895] ledtrig-cpu: registered to indicate activity on CPUs
[    1.513502] hid: raw HID events driver (C) Jiri Kosina
[    1.516191] usbcore: registered new interface driver usbhid
[    1.517441] usbhid: USB HID core driver
[    1.524708] Initializing XFRM netlink socket
[    1.526023] NET: Registered protocol family 17
[    1.527322] Key type dns_resolver registered
[    1.528835] Registering SWP/SWPB emulation handler
[    1.530275] registered taskstats version 1
[    1.531459] Loading compiled-in X.509 certificates
[    1.533448] Key type ._fscrypt registered
[    1.534623] Key type .fscrypt registered
[    1.535818] Key type fscrypt-provisioning registered
[    1.548987] uart-pl011 fe201000.serial: there is not valid maps for state default
[    1.550532] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.551786] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 38, base_baud = 0) is a PL011 rev2
[    1.559687] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.561989] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.563301] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.592378] of_cfs_init
[    1.593856] of_cfs_init: OK
[    1.614947] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.617946] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.620817] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.625010] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.627839] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.630138] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    1.631935] Waiting for root device PARTUUID=5e63546e-02...
[    1.675559] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[    1.699760] mmc1: new high speed SDIO card at address 0001
[    1.706778] usb 2-1: New USB device found, idVendor=0781, idProduct=5595, bcdDevice= 1.00
[    1.707976] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.709150] usb 2-1: Product: Ultra USB 3.0
[    1.710300] usb 2-1: Manufacturer: SanDisk
[    1.711436] usb 2-1: SerialNumber: 040103d5579488c1fe9d6b31c0f72f6ebe60a8d557013008335b731fd885db5e20c0000000000000000000003313b9b2ff846d189555810768292584
[    1.717718] usb-storage 2-1:1.0: USB Mass Storage device detected
[    1.719690] scsi host0: usb-storage 2-1:1.0
[    1.854889] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    2.037526] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    2.038841] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.040151] usb 1-1: Product: USB2.0 Hub
[    2.043125] hub 1-1:1.0: USB hub found
[    2.044648] hub 1-1:1.0: 4 ports detected
[    2.364887] usb 1-1.4: new full-speed USB device number 3 using xhci_hcd
[    2.501964] usb 1-1.4: New USB device found, idVendor=0eef, idProduct=0005, bcdDevice= 2.00
[    2.503307] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.504609] usb 1-1.4: Product: WS170120
[    2.505896] usb 1-1.4: Manufacturer: WaveShare
[    2.507136] usb 1-1.4: SerialNumber: *Ö85554\x19N409
[    2.519939] input: WaveShare WS170120 as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0EEF:0005.0001/input/input0
[    2.523121] hid-generic 0003:0EEF:0005.0001: input,hidraw0: USB HID v1.10 Device [WaveShare WS170120] on usb-0000:01:00.0-1.4/input0
[    2.796124] scsi 0:0:0:0: Direct-Access     SanDisk  Ultra USB 3.0    1.00 PQ: 0 ANSI: 6
[    2.799125] sd 0:0:0:0: [sda] 60088320 512-byte logical blocks: (30.8 GB/28.7 GiB)
[    2.802048] sd 0:0:0:0: [sda] Write Protect is off
[    2.803650] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[    2.804396] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.814362]  sda: sda1 sda2
[    2.820260] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.838479] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    2.840187] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[    2.845555] devtmpfs: mounted
[    2.857097] Freeing unused kernel memory: 2048K
[    2.905242] Run /sbin/init as init process
[    2.906833]   with arguments:
[    2.906848]     /sbin/init
[    2.906862]   with environment:
[    2.906876]     HOME=/
[    2.906890]     TERM=linux
[    3.142075] systemd[1]: System time before build time, advancing clock.
[    3.226612] NET: Registered protocol family 10
[    3.229568] Segment Routing with IPv6
[    3.280957] systemd[1]: systemd 247.3-6+rpi1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[    3.286724] systemd[1]: Detected architecture arm.
[    3.304443] systemd[1]: Set hostname to <pi4b>.
[    4.171713] systemd[1]: Queued start job for default target Multi-User System.
[    4.174984] random: systemd: uninitialized urandom read (16 bytes read)
[    4.179150] systemd[1]: Created slice system-getty.slice.
[    4.183439] random: systemd: uninitialized urandom read (16 bytes read)
[    4.186211] systemd[1]: Created slice system-modprobe.slice.
[    4.190125] random: systemd: uninitialized urandom read (16 bytes read)
[    4.192681] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    4.197234] systemd[1]: Created slice User and Session Slice.
[    4.201313] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    4.205419] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    4.210080] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    4.214163] systemd[1]: Reached target Local Encrypted Volumes.
[    4.218365] systemd[1]: Reached target Paths.
[    4.222372] systemd[1]: Reached target Slices.
[    4.226395] systemd[1]: Reached target Swap.
[    4.231056] systemd[1]: Listening on Syslog Socket.
[    4.235422] systemd[1]: Listening on fsck to fsckd communication Socket.
[    4.239418] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    4.244170] systemd[1]: Listening on Journal Audit Socket.
[    4.248827] systemd[1]: Listening on Journal Socket (/dev/log).
[    4.253440] systemd[1]: Listening on Journal Socket.
[    4.260514] systemd[1]: Listening on udev Control Socket.
[    4.264980] systemd[1]: Listening on udev Kernel Socket.
[    4.269405] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    4.275852] systemd[1]: Mounting POSIX Message Queue File System...
[    4.285250] systemd[1]: Mounting RPC Pipe File System...
[    4.296050] systemd[1]: Mounting Kernel Debug File System...
[    4.307411] systemd[1]: Mounting Kernel Trace File System...
[    4.312222] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    4.321521] systemd[1]: Starting Restore / save the current clock...
[    4.335179] systemd[1]: Starting Set the console keyboard layout...
[    4.346723] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    4.358678] systemd[1]: Starting Load Kernel Module configfs...
[    4.370057] systemd[1]: Starting Load Kernel Module drm...
[    4.381092] systemd[1]: Starting Load Kernel Module fuse...
[    4.389083] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    4.397806] systemd[1]: Starting File System Check on Root Device...
[    4.442942] systemd[1]: Starting Journal Service...
[    4.446564] fuse: init (API version 7.32)
[    4.466089] systemd[1]: Starting Load Kernel Modules...
[    4.480534] systemd[1]: Starting Coldplug All udev Devices...
[    4.506992] systemd[1]: Mounted POSIX Message Queue File System.
[    4.513870] systemd[1]: Mounted RPC Pipe File System.
[    4.519980] systemd[1]: Mounted Kernel Debug File System.
[    4.525792] systemd[1]: Mounted Kernel Trace File System.
[    4.533344] systemd[1]: Finished Restore / save the current clock.
[    4.542817] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    4.550743] systemd[1]: modprobe@configfs.service: Succeeded.
[    4.554683] systemd[1]: Finished Load Kernel Module configfs.
[    4.562041] systemd[1]: modprobe@drm.service: Succeeded.
[    4.575835] systemd[1]: Finished Load Kernel Module drm.
[    4.581377] systemd[1]: modprobe@fuse.service: Succeeded.
[    4.584340] systemd[1]: Finished Load Kernel Module fuse.
[    4.590499] systemd[1]: Finished Load Kernel Modules.
[    4.601091] systemd[1]: Mounting FUSE Control File System...
[    4.624697] systemd[1]: Mounting Kernel Configuration File System...
[    4.636055] systemd[1]: Started File System Check Daemon to report status.
[    4.650898] systemd[1]: Starting Apply Kernel Variables...
[    4.684660] systemd[1]: Mounted FUSE Control File System.
[    4.701780] systemd[1]: Mounted Kernel Configuration File System.
[    4.763574] systemd[1]: Finished File System Check on Root Device.
[    4.768132] systemd[1]: Finished Apply Kernel Variables.
[    4.776142] systemd[1]: Starting Remount Root and Kernel File Systems...
[    4.841746] systemd[1]: Started Journal Service.
[    4.947827] EXT4-fs (sda2): re-mounted. Opts: (null)
[    5.024043] systemd-journald[133]: Received client request to flush runtime journal.
[    5.042901] systemd-journald[133]: File /var/log/journal/45677fd33dca4b97838c0214e7692911/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    6.025348] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    6.028146] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    6.029073] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    6.030443] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    6.072866] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    6.077185] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    6.077248] [vc_sm_connected_init]: start
[    6.087319] [vc_sm_connected_init]: installed successfully
[    6.091085] mc: Linux media interface: v0.10
[    6.096829] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    6.128593] bcm2835_audio bcm2835_audio: card created with 8 channels
[    6.131802] videodev: Linux video capture interface: v2.00
[    6.182446] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    6.183498] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    6.214759] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    6.225650] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    6.227212] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    6.232215] checking generic (3e863000 260000) vs hw (0 ffffffffffffffff)
[    6.232242] fb0: switching to vc4drmfb from simple
[    6.233534] Console: switching to colour dummy device 80x30
[    6.255079] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    6.266840] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    6.274313] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    6.274920] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    6.277709] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    6.277741] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    6.277767] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    6.277791] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    6.277814] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    6.277972] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    6.278017] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    6.278920] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    6.282021] brcmstb-i2c fef04500.i2c:  @97500hz registered in polling mode
[    6.282122] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    6.282166] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    6.282725] brcmstb-i2c fef09500.i2c:  @97500hz registered in polling mode
[    6.285441] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    6.289690] Registered IR keymap rc-cec
[    6.290341] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    6.291325] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input1
[    6.293086] vc4_hdmi fef00700.hdmi: Could not register sound card: -517
[    6.295384] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    6.295431] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    6.302860] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    6.302906] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    6.432962] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    6.447096] Registered IR keymap rc-cec
[    6.447288] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    6.447519] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input2
[    6.448624] vc4_hdmi fef00700.hdmi: Could not register sound card: -517
[    6.515858] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.594467] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 1
[    6.614006] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.619314] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    6.619759] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    6.632400] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    6.662554] Registered IR keymap rc-cec
[    6.662740] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    6.662981] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input3
[    6.722156] brcmfmac: F1 signature read @0x18000000=0x15264345
[    6.726530] vc4_hdmi fef00700.hdmi: Could not register sound card: -517
[    6.730425] input: WaveShare WS170120 as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0EEF:0005.0001/input/input4
[    6.734757] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.735724] usbcore: registered new interface driver brcmfmac
[    6.835933] hid-multitouch 0003:0EEF:0005.0001: input,hidraw0: USB HID v1.10 Device [WaveShare WS170120] on usb-0000:01:00.0-1.4/input0
[    6.844058] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    6.876776] Registered IR keymap rc-cec
[    6.877018] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    6.877382] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input5
[    6.878595] vc4_hdmi fef00700.hdmi: Could not register sound card: -517
[    6.984295] random: crng init done
[    6.984310] random: 7 urandom warning(s) missed due to ratelimiting
[    7.012482] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.012608] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.023580] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jan  4 2021 19:56:29 version 7.45.229 (617f1f5 CY) FWID 01-2dbd9d2e
[    7.359622] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    7.371721] Registered IR keymap rc-cec
[    7.371928] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    7.372151] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input6
[    7.387528] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[    7.406129] Registered IR keymap rc-cec
[    7.406329] rc rc1: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[    7.406549] input: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input7
[    7.410593] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[    7.411050] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[    7.411390] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.411712] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.412105] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.412413] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.412818] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[    7.427339] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 0
[    7.427523] vc4-drm gpu: [drm] Cannot find any crtc or sizes
[    8.679532] 8021q: 802.1Q VLAN Support v1.8
[    8.681418] uart-pl011 fe201000.serial: no DMA platform data
[    8.954910] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k FS
[    9.168253] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    9.450809] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    9.451472] bcmgenet fd580000.ethernet eth0: Link is Down
[   11.515245] bcmgenet fd580000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   11.515298] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   12.315897] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   15.818400] Bluetooth: Core ver 2.22
[   15.818456] NET: Registered protocol family 31
[   15.818462] Bluetooth: HCI device and connection manager initialized
[   15.818476] Bluetooth: HCI socket layer initialized
[   15.818486] Bluetooth: L2CAP socket layer initialized
[   15.818501] Bluetooth: SCO socket layer initialized
[   15.832345] Bluetooth: HCI UART driver ver 2.3
[   15.832356] Bluetooth: HCI UART protocol H4 registered
[   15.832413] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   15.832578] Bluetooth: HCI UART protocol Broadcom registered
[   16.023526] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   16.023536] Bluetooth: BNEP filters: protocol multicast
[   16.023550] Bluetooth: BNEP socket layer initialized
[   16.036667] NET: Registered protocol family 38
[   16.064975] cryptd: max_cpu_qlen set to 1000
@rnayabed
Copy link
Author

[    7.427523] vc4-drm gpu: [drm] Cannot find any crtc or sizes

@6by9
Copy link
Contributor

6by9 commented Nov 20, 2021

Not finding any displays implies the HDMI monitor does incorrect things via hotplug and/or EDID reading.

Bullseye should have modetest available via apt. I don't recall which package it is in, or if it is installed by default, but if not installed then apt-cache search modetest should tell you the relevant package.
Run modetest -M vc4 and post the output (you can skip the planes section as it is effectively static information that is repeated multiple times for each plane).

The key thing is likely to be knowing the connected status of the HDMI interfaces. You should also be able to read it via cat /sys/class/drm/card1-HDMI-1/status (may be card0, and you'll also have HDMI-2). If it reads disconnected then the panel isn't setting hotplug correctly.

@rnayabed
Copy link
Author

@6by9 Sorry if i sound dumb, but why is it that the KMS driver doesnt work without correct EDID? FKMS driver and legacy driver seem to just work fine ? Just before the KMS driver is even loaded, I can see the rainbow screen and kernel logs

@rnayabed
Copy link
Author

rnayabed commented Nov 20, 2021

Bullseye should have modetest available via apt. I don't recall which package it is in, or if it is installed by default, but if not installed then apt-cache search modetest should tell you the relevant package.
Run modetest -M vc4 and post the output (you can skip the planes section as it is effectively static information that is repeated multiple times for each plane).

apt-cache search modetest returns nothing.

The key thing is likely to be knowing the connected status of the HDMI interfaces. You should also be able to read it via cat /sys/class/drm/card1-HDMI-1/status (may be card0, and you'll also have HDMI-2). If it reads disconnected then the panel isn't setting hotplug correctly.

Sadly, that seems to be the issue. I am getting disconnected all the time.

pi@pi4b:~ $ cat /sys/class/drm/card1-HDMI-A-1/status
disconnected
pi@pi4b:~ $ cat /sys/class/drm/card1-HDMI-A-2/status
disconnected

@rnayabed
Copy link
Author

Hmm, with FKMS driver i get connected 🤔🤔

@6by9
Copy link
Contributor

6by9 commented Nov 20, 2021

FKMS doesn't support hotplug - https://github.com/raspberrypi/linux/blob/rpi-5.10.y/drivers/gpu/drm/vc4/vc4_firmware_kms.c#L1303 will always return connected. What is connected at boot is what you get until you reboot.

KMS supports hotplug properly, so changing monitors will result in it reconfiguring correctly. It does require the device to follow the HDMI standard for hotplug though, which it sounds like your display doesn't.

You can try forcing the output to be enabled at a particular resolution by adding an entry video=HDMI-1:1280x720M@60D to /boot/cmdline.txt (do not add any carriage returns to that file). As documented in https://github.com/torvalds/linux/blob/master/Documentation/fb/modedb.rst, the 'D' on the end forces the output to be enabled and use a digital output. Replace the resolution and refresh rate with the correct values for your display.

@6by9
Copy link
Contributor

6by9 commented Nov 20, 2021

Under FKMS you could run tvservice -M to monitor the events as you connect and disconnect the display. I suspect it won't change.

@rnayabed
Copy link
Author

ADDING video=HDMI-A-1:1024x600M@60D fixed itt

@6by9
Copy link
Contributor

6by9 commented Nov 20, 2021

We are aware that shifting to the standard Linux approaches is heavily reliant on devices following the relevant specifications. There are many workaround hacks that have been added to the firmware over the years for devices that misbehave, and those are effectively being discarded. It looks like your displays rely on one of those hacks, which probably means it will misbehave on almost any other HDMI device that uses Linux.

(IIRC the firmware tries reading the EDID from the display even if no hotplug signal, and views the display as connected if it gets a valid EDID back).

@rnayabed
Copy link
Author

@6by9 is there a way we can ask the Pi to not look for any EDID/hotplugging and just still connect it, so that we do not have to put any cmdline addition like that ?

FKMS already works that way, it doesnt rely on EDID as you said. Would it be possible to do the same for KMS?

@6by9
Copy link
Contributor

6by9 commented Nov 20, 2021

You have that way of getting the Pi to not look at hotplug by modifying /boot/cmdline.txt.

The KMS driver did also do an EDID probe as well as checking hotplug, however there are significant issues with that approach when HDMI2.0 and scrambling (required for >4k30) are involved, as hotplug being deasserted (regardless of whether an EDID can still be read) requires a renegotiation/reenabling of scrambling. Hence that check was removed.

@AnttiNannimus
Copy link

This was also a problem for me using the RPi-branded 7" Touch Screen and Bullseye on an RPi 3B+. This solution worked for me:

Issue can be resolved as a work around with the following line placed in /boot/config.txt

dtparam=i2c_vc_baudrate=50000

From: https://raspberrypi.stackexchange.com/questions/133490/blank-touch-screen-after-upgrade-to-bullseye

Good luck!

@6by9
Copy link
Contributor

6by9 commented Nov 26, 2021

This was also a problem for me using the RPi-branded 7" Touch Screen and Bullseye on an RPi 3B+. This solution worked for me:

Totally unrelated to this issue about HDMI displays, and covered by #4686.

rnayabed originally posted on that thread, but because it was unrelated to the DSI display was requested to start a new issue, which is this one!

@rnayabed
Copy link
Author

ADDING video=HDMI-A-1:1024x600M@60D fixed it

almost 2 years later, this method no longer works.
I get this additional error now:

[    7.126949] vc4-drm gpu: [drm] User-defined mode not supported: "1024x600": 60 49000 1024 1029 1042 1312 600 602 605 622 0x68 0xa

@6by9

pi@raspberrypi:~ $ cat /etc/rpi-issue
Raspberry Pi reference 2023-05-03
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 47eee1f0ddcf8811559d51eea1c1bb48335e3e88, stage4
pi@raspberrypi:~ $ vcgencmd version
Mar 17 2023 10:50:39 
Copyright (c) 2012 Broadcom
version 82f3750a65fadae9a38077e3c2e217ad158c8d54 (clean) (release) (start)
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
pi@raspberrypi:~ $ 

@rnayabed rnayabed reopened this Jun 10, 2023
@rnayabed
Copy link
Author

dmesg:

pi@raspberrypi:~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 6.1.21-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.2
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x000000000ec00000, size 512 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0, zone DMA32: 19456 pages in unavailable ranges
[    0.000000] percpu: Embedded 29 pages/cpu s78504 r8192 d32088 u118784
[    0.000000] pcpu-alloc: s78504 r8192 d32088 u118784 alloc=29*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-v3a
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] CPU features: detected: ARM erratum 1742098
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 496944
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 video=HDMI-A-1:1024x600M@60 smsc95xx.macaddr=DC:A6:32:CF:48:9B vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=75402b78-02 rootfstype=ext4 fsck.repair=yes video=HDMI-A-1:1024x600M@60D rootwait
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x0000000037400000-0x000000003b400000] (64MB)
[    0.000000] Memory: 1365148K/2019328K available (11776K kernel code, 2106K rwdata, 3688K rodata, 4160K init, 1077K bss, 129892K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 39744 entries in 156 pages
[    0.000000] ftrace: allocated 156 pages with 4 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000001] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000317] Console: colour dummy device 80x25
[    0.000913] printk: console [tty1] enabled
[    0.000982] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.001022] pid_max: default: 32768 minimum: 301
[    0.001165] LSM: Security Framework initializing
[    0.001373] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001428] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.002731] cgroup: Disabling memory control group subsystem
[    0.004993] cblist_init_generic: Setting adjustable number of callback queues.
[    0.005031] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.005222] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.005414] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.005864] rcu: Hierarchical SRCU implementation.
[    0.005889] rcu:     Max phase no-delay instances is 1000.
[    0.007231] EFI services will not be available.
[    0.007775] smp: Bringing up secondary CPUs ...
[    0.008947] Detected PIPT I-cache on CPU1
[    0.009105] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.010245] Detected PIPT I-cache on CPU2
[    0.010366] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.011474] Detected PIPT I-cache on CPU3
[    0.011595] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.011742] smp: Brought up 1 node, 4 CPUs
[    0.011831] SMP: Total of 4 processors activated.
[    0.011853] CPU features: detected: 32-bit EL0 Support
[    0.011871] CPU features: detected: 32-bit EL1 Support
[    0.011893] CPU features: detected: CRC32 instructions
[    0.012078] CPU: All CPU(s) started at EL2
[    0.012114] alternatives: applying system-wide alternatives
[    0.013902] devtmpfs: initialized
[    0.026037] Enabled cp15_barrier support
[    0.026105] Enabled setend support
[    0.026337] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.026389] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.040268] pinctrl core: initialized pinctrl subsystem
[    0.041204] DMI not present or invalid.
[    0.041916] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.045540] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.045861] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.046821] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.046931] audit: initializing netlink subsys (disabled)
[    0.047211] audit: type=2000 audit(0.044:1): state=initialized audit_enabled=0 res=1
[    0.047822] thermal_sys: Registered thermal governor 'step_wise'
[    0.047914] cpuidle: using governor menu
[    0.048361] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.048574] ASID allocator initialised with 32768 entries
[    0.048754] Serial: AMBA PL011 UART driver
[    0.062451] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.084307] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-03-17T10:50:39, variant start
[    0.088322] raspberrypi-firmware soc:firmware: Firmware hash is 82f3750a65fadae9a38077e3c2e217ad158c8d54
[    0.104288] KASLR enabled
[    0.138492] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.144262] SCSI subsystem initialized
[    0.144550] usbcore: registered new interface driver usbfs
[    0.144623] usbcore: registered new interface driver hub
[    0.144702] usbcore: registered new device driver usb
[    0.145103] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.145332] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[    0.145701] pps_core: LinuxPPS API ver. 1 registered
[    0.145726] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.145767] PTP clock support registered
[    0.146943] vgaarb: loaded
[    0.147714] clocksource: Switched to clocksource arch_sys_counter
[    0.148487] VFS: Disk quotas dquot_6.6.0
[    0.148584] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.148780] FS-Cache: Loaded
[    0.148978] CacheFiles: Loaded
[    0.160005] NET: Registered PF_INET protocol family
[    0.160411] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.163141] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.163202] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.163345] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.163481] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.164086] TCP: Hash tables configured (established 16384 bind 16384)
[    0.164323] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.164387] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.164659] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.165486] RPC: Registered named UNIX socket transport module.
[    0.165518] RPC: Registered udp transport module.
[    0.165537] RPC: Registered tcp transport module.
[    0.165556] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.165591] PCI: CLS 0 bytes, default 64
[    0.168607] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.169028] kvm [1]: IPA Size Limit: 44 bits
[    0.170366] kvm [1]: vgic interrupt IRQ9
[    0.170603] kvm [1]: Hyp mode initialized successfully
[    1.311993] Initialise system trusted keyrings
[    1.312516] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    1.320176] zbud: loaded
[    1.323154] NFS: Registering the id_resolver key type
[    1.323223] Key type id_resolver registered
[    1.323245] Key type id_legacy registered
[    1.323368] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.323397] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.324920] Key type asymmetric registered
[    1.324955] Asymmetric key parser 'x509' registered
[    1.325047] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.325335] io scheduler mq-deadline registered
[    1.325362] io scheduler kyber registered
[    1.327222] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7ef00100, parent irq: 27)
[    1.335876] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.335947] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.336051] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.336150] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x007fffffff -> 0x0400000000
[    1.337203] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.337237] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.337265] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    1.337356] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    1.337626] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.341813] pci_bus 0000:01: supply vpcie3v3 not found, using dummy regulator
[    1.342028] pci_bus 0000:01: supply vpcie3v3aux not found, using dummy regulator
[    1.342164] pci_bus 0000:01: supply vpcie12v not found, using dummy regulator
[    1.389808] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    1.389987] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    1.390124] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    1.390586] pci 0000:01:00.0: PME# supported from D0 D3cold
[    1.391364] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    1.391404] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    1.391461] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.391493] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    1.392614] simple-framebuffer 3e967000.framebuffer: framebuffer at 0x3e967000, 0x260000 bytes
[    1.392651] simple-framebuffer 3e967000.framebuffer: format=a8r8g8b8, mode=1024x600x32, linelength=4096
[    1.395659] Console: switching to colour frame buffer device 128x37
[    1.398126] simple-framebuffer 3e967000.framebuffer: fb0: simplefb registered!
[    1.410992] iproc-rng200 fe104000.rng: hwrng registered
[    1.411623] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.413285] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.426504] brd: module loaded
[    1.435379] loop: module loaded
[    1.436338] Loading iSCSI transport class v2.0-870.
[    1.442897] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.503876] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.506202] usbcore: registered new interface driver r8152
[    1.507415] usbcore: registered new interface driver lan78xx
[    1.508621] usbcore: registered new interface driver smsc95xx
[    1.511324] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    1.512475] xhci_hcd 0000:01:00.0: enabling device (0000 -> 0002)
[    1.513665] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.514771] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.516609] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000e40000000890
[    1.518743] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.519834] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.520909] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.522374] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.523474] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.524591] usb usb1: Product: xHCI Host Controller
[    1.525681] usb usb1: Manufacturer: Linux 6.1.21-v8+ xhci-hcd
[    1.526759] usb usb1: SerialNumber: 0000:01:00.0
[    1.528577] hub 1-0:1.0: USB hub found
[    1.529720] hub 1-0:1.0: 1 port detected
[    1.531734] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    1.532798] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.533843] usb usb2: Product: xHCI Host Controller
[    1.534855] usb usb2: Manufacturer: Linux 6.1.21-v8+ xhci-hcd
[    1.535885] usb usb2: SerialNumber: 0000:01:00.0
[    1.537628] hub 2-0:1.0: USB hub found
[    1.538683] hub 2-0:1.0: 4 ports detected
[    1.541404] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.542685] dwc_otg: FIQ enabled
[    1.542696] dwc_otg: NAK holdoff enabled
[    1.542706] dwc_otg: FIQ split-transaction FSM enabled
[    1.542726] Module dwc_common_port init
[    1.543297] usbcore: registered new interface driver uas
[    1.544382] usbcore: registered new interface driver usb-storage
[    1.545536] mousedev: PS/2 mouse device common for all mice
[    1.552866] sdhci: Secure Digital Host Controller Interface driver
[    1.553829] sdhci: Copyright(c) Pierre Ossman
[    1.555427] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.560039] ledtrig-cpu: registered to indicate activity on CPUs
[    1.561426] hid: raw HID events driver (C) Jiri Kosina
[    1.562562] usbcore: registered new interface driver usbhid
[    1.563531] usbhid: USB HID core driver
[    1.573479] NET: Registered PF_PACKET protocol family
[    1.574640] Key type dns_resolver registered
[    1.577062] registered taskstats version 1
[    1.578217] Loading compiled-in X.509 certificates
[    1.580105] Key type .fscrypt registered
[    1.581053] Key type fscrypt-provisioning registered
[    1.597643] uart-pl011 fe201000.serial: there is not valid maps for state default
[    1.599333] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.600485] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
[    1.610656] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.612152] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.614477] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.615479] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.646636] of_cfs_init
[    1.647857] of_cfs_init: OK
[    1.679471] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    1.680950] Waiting for root device PARTUUID=75402b78-02...
[    1.733274] mmc1: new high speed SDIO card at address 0001
[    1.780076] mmc0: new ultra high speed DDR50 SDXC card at address 59b4
[    1.782137] mmcblk0: mmc0:59b4 EC1S5 59.7 GiB 
[    1.783784] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.786735]  mmcblk0: p1 p2
[    1.788375] mmcblk0: mmc0:59b4 EC1S5 59.7 GiB
[    1.798664] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    1.799775] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    1.918633] EXT4-fs (mmcblk0p2): recovery complete
[    1.923998] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[    1.925142] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.927150] devtmpfs: mounted
[    1.934393] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.936050] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.937354] Freeing unused kernel memory: 4160K
[    1.937565] usb 1-1: Product: USB2.0 Hub
[    1.938839] Run /sbin/init as init process
[    1.940952]   with arguments:
[    1.940964]     /sbin/init
[    1.940976]   with environment:
[    1.940985]     HOME=/
[    1.940994]     TERM=linux
[    1.942769] hub 1-1:1.0: USB hub found
[    1.944250] hub 1-1:1.0: 4 ports detected
[    2.243761] usb 1-1.1: new full-speed USB device number 3 using xhci_hcd
[    2.259834] systemd[1]: System time before build time, advancing clock.
[    2.354146] usb 1-1.1: New USB device found, idVendor=046d, idProduct=c534, bcdDevice=29.01
[    2.355334] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.356459] usb 1-1.1: Product: USB Receiver
[    2.357532] usb 1-1.1: Manufacturer: Logitech
[    2.370866] input: Logitech USB Receiver as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:046D:C534.0001/input/input0
[    2.432816] hid-generic 0003:046D:C534.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:01:00.0-1.1/input0
[    2.448743] input: Logitech USB Receiver Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:046D:C534.0002/input/input1
[    2.451884] input: Logitech USB Receiver Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:046D:C534.0002/input/input2
[    2.462081] NET: Registered PF_INET6 protocol family
[    2.465486] Segment Routing with IPv6
[    2.466882] In-situ OAM (IOAM) with IPv6
[    2.512257] input: Logitech USB Receiver System Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:046D:C534.0002/input/input3
[    2.515633] hid-generic 0003:046D:C534.0002: input,hiddev96,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:01:00.0-1.1/input1
[    2.540701] systemd[1]: systemd 247.3-7+rpi1+deb11u2 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[    2.546370] systemd[1]: Detected architecture arm64.
[    2.566255] systemd[1]: Set hostname to <raspberrypi>.
[    2.607785] usb 1-1.2: new full-speed USB device number 4 using xhci_hcd
[    2.715484] usb 1-1.2: New USB device found, idVendor=0eef, idProduct=0005, bcdDevice= 2.00
[    2.717316] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.719146] usb 1-1.2: Product: WS170120
[    2.720966] usb 1-1.2: Manufacturer: WaveShare
[    2.722719] usb 1-1.2: SerialNumber: *Ö85554\x19N409
[    2.739367] input: WaveShare WS170120 as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.0/0003:0EEF:0005.0003/input/input6
[    2.744077] hid-generic 0003:0EEF:0005.0003: input,hidraw2: USB HID v1.10 Device [WaveShare WS170120] on usb-0000:01:00.0-1.2/input0
[    3.183918] systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
[    3.482584] systemd[1]: Queued start job for default target Multi-User System.
[    3.503120] systemd[1]: Created slice system-getty.slice.
[    3.508315] systemd[1]: Created slice system-modprobe.slice.
[    3.512891] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    3.517322] systemd[1]: Created slice User and Session Slice.
[    3.521224] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    3.525751] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    3.529702] systemd[1]: Reached target Slices.
[    3.533121] systemd[1]: Reached target Swap.
[    3.537515] systemd[1]: Listening on Syslog Socket.
[    3.541609] systemd[1]: Listening on fsck to fsckd communication Socket.
[    3.545279] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    3.549955] systemd[1]: Listening on Journal Audit Socket.
[    3.554156] systemd[1]: Listening on Journal Socket (/dev/log).
[    3.558496] systemd[1]: Listening on Journal Socket.
[    3.563496] systemd[1]: Listening on udev Control Socket.
[    3.567397] systemd[1]: Listening on udev Kernel Socket.
[    3.571330] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    3.600234] systemd[1]: Mounting POSIX Message Queue File System...
[    3.608707] systemd[1]: Mounting RPC Pipe File System...
[    3.618123] systemd[1]: Mounting Kernel Debug File System...
[    3.627907] systemd[1]: Mounting Kernel Trace File System...
[    3.632121] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    3.640565] systemd[1]: Starting Restore / save the current clock...
[    3.649855] systemd[1]: Starting Set the console keyboard layout...
[    3.659743] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    3.670153] systemd[1]: Starting Load Kernel Module configfs...
[    3.680052] systemd[1]: Starting Load Kernel Module drm...
[    3.690133] systemd[1]: Starting Load Kernel Module fuse...
[    3.696463] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    3.704487] systemd[1]: Starting File System Check on Root Device...
[    3.720755] systemd[1]: Starting Journal Service...
[    3.733463] systemd[1]: Starting Load Kernel Modules...
[    3.743133] systemd[1]: Starting Coldplug All udev Devices...
[    3.760317] systemd[1]: Mounted POSIX Message Queue File System.
[    3.764957] systemd[1]: Mounted RPC Pipe File System.
[    3.774610] systemd[1]: Mounted Kernel Debug File System.
[    3.780965] systemd[1]: Mounted Kernel Trace File System.
[    3.797710] fuse: init (API version 7.37)
[    3.800906] systemd[1]: Finished Restore / save the current clock.
[    3.807337] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    3.818688] systemd[1]: modprobe@configfs.service: Succeeded.
[    3.822268] i2c_dev: i2c /dev entries driver
[    3.824902] systemd[1]: Finished Load Kernel Module configfs.
[    3.830424] systemd[1]: modprobe@fuse.service: Succeeded.
[    3.833372] systemd[1]: Finished Load Kernel Module fuse.
[    3.839194] systemd[1]: Finished Load Kernel Modules.
[    3.884496] systemd[1]: Mounting FUSE Control File System...
[    3.904044] systemd[1]: Mounting Kernel Configuration File System...
[    3.948388] systemd[1]: Started File System Check Daemon to report status.
[    3.957150] systemd[1]: Starting Apply Kernel Variables...
[    3.971341] systemd[1]: modprobe@drm.service: Succeeded.
[    3.985532] systemd[1]: Finished Load Kernel Module drm.
[    4.005778] systemd[1]: Mounted FUSE Control File System.
[    4.009617] systemd[1]: Mounted Kernel Configuration File System.
[    4.032642] systemd[1]: Finished Apply Kernel Variables.
[    4.040410] systemd[1]: Finished File System Check on Root Device.
[    4.047217] systemd[1]: Starting Remount Root and Kernel File Systems...
[    4.147598] systemd[1]: Started Journal Service.
[    4.198906] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[    4.286842] systemd-journald[146]: Received client request to flush runtime journal.
[    4.312400] systemd-journald[146]: File /var/log/journal/de8dbd1785dd4a79b7d0d8764113d787/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    5.562212] mc: Linux media interface: v0.10
[    5.583289] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    5.603101] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    5.603149] [vc_sm_connected_init]: start
[    5.612197] [vc_sm_connected_init]: installed successfully
[    5.692682] videodev: Linux video capture interface: v2.00
[    5.740303] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    5.750343] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    5.757235] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    5.757791] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    5.758253] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    5.758584] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    5.758615] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    5.758646] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    5.758666] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    5.758683] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    5.763279] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    5.763976] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    5.765529] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    5.766191] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    5.766228] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    5.766250] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    5.766268] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    5.766296] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    5.766509] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    5.815867] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    5.838403] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned.
[    5.847884] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    5.847957] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    5.859868] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    5.859930] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    5.866489] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    5.866547] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    5.875889] rpivid feb10000.codec: Device registered as /dev/video19
[    5.883146] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    5.883204] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    5.891810] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[    5.891886] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[    5.916159] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    5.922588] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    5.952891] bcm2835_audio bcm2835_audio: card created with 8 channels
[    6.083595] brcmstb-i2c fef04500.i2c:  @97500hz registered in polling mode
[    6.118163] brcmstb-i2c fef09500.i2c:  @97500hz registered in polling mode
[    6.642749] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[    6.671597] logitech-djreceiver 0003:046D:C534.0001: hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:01:00.0-1.1/input0
[    6.736267] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.776929] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.787644] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    6.889039] brcmfmac: F1 signature read @0x18000000=0x15264345
[    6.909162] input: WaveShare WS170120 as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.0/0003:0EEF:0005.0003/input/input7
[    6.909875] hid-multitouch 0003:0EEF:0005.0003: input,hidraw2: USB HID v1.10 Device [WaveShare WS170120] on usb-0000:01:00.0-1.2/input0
[    6.916144] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.917411] usbcore: registered new interface driver brcmfmac
[    7.199827] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov  1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[    7.237996] Console: switching to colour dummy device 80x25
[    7.278994] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[    7.281183] [drm] forcing HDMI-A-1 connector on
[    7.360224] Registered IR keymap rc-cec
[    7.460350] rc rc0: vc4-hdmi-0 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[    7.465606] input: vc4-hdmi-0 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input8
[    7.554502] logitech-djreceiver 0003:046D:C534.0002: hiddev96,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:01:00.0-1.1/input1
[    7.599686] uart-pl011 fe201000.serial: no DMA platform data
[    7.626443] logitech-djreceiver 0003:046D:C534.0002: device of type eQUAD nano Lite (0x0a) connected on slot 1
[    7.642434] logitech-djreceiver 0003:046D:C534.0002: device of type eQUAD nano Lite (0x0a) connected on slot 2
[    7.700052] input: Logitech Wireless Keyboard PID:4023 Keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:046D:C534.0002/0003:046D:4023.0004/input/input9
[    7.744306] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[    7.746689] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    7.773272] Registered IR keymap rc-cec
[    7.773813] rc rc1: vc4-hdmi-1 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[    7.774414] input: vc4-hdmi-1 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input14
[    7.847023] 8021q: 802.1Q VLAN Support v1.8
[    7.871968] hid-generic 0003:046D:4023.0004: input,hidraw3: USB HID v1.11 Keyboard [Logitech Wireless Keyboard PID:4023] on usb-0000:01:00.0-1.1/input1:1
[    7.893930] input: Logitech Wireless Mouse PID:4022 Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:046D:C534.0002/0003:046D:4022.0005/input/input15
[    8.008030] hid-generic 0003:046D:4022.0005: input,hidraw4: USB HID v1.11 Mouse [Logitech Wireless Mouse PID:4022] on usb-0000:01:00.0-1.1/input1:2
[    8.013876] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    8.022869] bcmgenet fd580000.ethernet eth0: Link is Down
[    8.342140] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[    8.384931] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[    8.418716] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    8.510614] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    8.557721] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[    8.558180] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[    8.615470] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[    8.641311] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[    8.675938] vc4-drm gpu: [drm] User-defined mode not supported: "1024x600": 60 49000 1024 1029 1042 1312 600 602 605 622 0x68 0xa
[    8.683928] vc4-drm gpu: [drm] Cannot find any crtc or sizes
[    9.477860] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    9.659299] input: Logitech Wireless Keyboard PID:4023 as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:046D:C534.0002/0003:046D:4023.0004/input/input19
[    9.660218] logitech-hidpp-device 0003:046D:4023.0004: input,hidraw3: USB HID v1.11 Keyboard [Logitech Wireless Keyboard PID:4023] on usb-0000:01:00.0-1.1/input1:1
[    9.754964] input: Logitech Wireless Mouse PID:4022 as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:046D:C534.0002/0003:046D:4022.0005/input/input20
[    9.755438] logitech-hidpp-device 0003:046D:4022.0005: input,hidraw4: USB HID v1.11 Mouse [Logitech Wireless Mouse PID:4022] on usb-0000:01:00.0-1.1/input1:2
[   13.930472] systemd-journald[146]: File /var/log/journal/de8dbd1785dd4a79b7d0d8764113d787/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.
[   15.177695] Bluetooth: Core ver 2.22
[   15.177836] NET: Registered PF_BLUETOOTH protocol family
[   15.177846] Bluetooth: HCI device and connection manager initialized
[   15.177872] Bluetooth: HCI socket layer initialized
[   15.177886] Bluetooth: L2CAP socket layer initialized
[   15.177910] Bluetooth: SCO socket layer initialized
[   15.190075] Bluetooth: HCI UART driver ver 2.3
[   15.190097] Bluetooth: HCI UART protocol H4 registered
[   15.190171] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   15.190358] Bluetooth: HCI UART protocol Broadcom registered
[   15.405609] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   15.405630] Bluetooth: BNEP filters: protocol multicast
[   15.405646] Bluetooth: BNEP socket layer initialized
[   15.412462] Bluetooth: MGMT ver 1.22
[   15.422055] NET: Registered PF_ALG protocol family
[   15.498387] Bluetooth: RFCOMM TTY layer initialized
[   15.498417] Bluetooth: RFCOMM socket layer initialized
[   15.498441] Bluetooth: RFCOMM ver 1.11
[   20.370690] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

@rnayabed
Copy link
Author

cat /sys/class/drm/card1-HDMI-A-1/status shows connected now but I get blank screen. I am using KMS driver.

@6by9
Copy link
Contributor

6by9 commented Jun 12, 2023

From your timing
"1024x600": 60 49000 1024 1029 1042 1312
ie 1024 active pixels,
1029-1024 = 5 pixels as the horizontal front porch
1032-1029 = 3 pixels as the horizontal sync period
1312-1032 = 280 pixels as the horizontal back porch.

https://www.raspberrypi.com/documentation/computers/config_txt.html#raspberry-pi-4-hdmi-pipeline

Running everything at 2 pixels per clock means that the Raspberry Pi 4 can not support a timing where any of the horizontal timings are not divisible by 2. The firmware and Linux kernel will filter out any mode that does not fulfill this criteria.

Since commit 57fb32e in Nov 2020 that requirement has been enforced by the driver.

Sorry this is largely down to the display being non-compliant with the HDMI specs.
Does it have an EDID? Does sudo modprobe i2c-dev sudo i2c-detect -y -r 20 return address 0x50 responding?
If so, then i2cdump -y 20 0x50 i should dump it out and allow some analysis to be done. You can also tell the kernel to use a file based on that instead of trying to read it from the display.

@rnayabed
Copy link
Author

I see.. I cannot find anything named i2c-detect, but i2cdetect.

Running sudo i2cdetect -y -r 20 returns Error: Could not open file /dev/i2c-20' or /dev/i2c/20': No such file or directory.

Running the i2c dump command returns the same.

Note that I was using FKMS driver on a Pi 0 W while writing this.

@pelwell
Copy link
Contributor

pelwell commented Jun 16, 2023

The output of i2cdetect -l would be useful.

@6by9
Copy link
Contributor

6by9 commented Jun 16, 2023

sudo modprobe i2c-dev may be required to expose the I2C buses to userspace.

Note that I was using FKMS driver on a Pi 0 W while writing this.

What's the relevance of this?

@rnayabed
Copy link
Author

sudo modprobe i2c-dev may be required to expose the I2C buses to userspace.

Note that I was using FKMS driver on a Pi 0 W while writing this.

What's the relevance of this?

I just thought it would be better if I specify the model just to be sure :)

@rnayabed
Copy link
Author

I did run sudo modprobe i2c-dev.

Running i2cdetect -l returns nothing.

@6by9
Copy link
Contributor

6by9 commented Jun 16, 2023

sudo modprobe i2c-dev may be required to expose the I2C buses to userspace.

Note that I was using FKMS driver on a Pi 0 W while writing this.

What's the relevance of this?

I just thought it would be better if I specify the model just to be sure :)

??!?!

This is your issue with the subject "7" HDMI Display does NOT work with KMS driver" and first post saying

Using vc4-fkms-v3d works just fine. This problem can be blamed to only the vc4-kms-v3d overlay

You then post information saying you're running FKMS. So how much of your recent posts is related to FKMS vs that related to KMS?

FKMS is considered deprecated, and no further work will be done on it.

@rnayabed
Copy link
Author

There has been a misunderstanding. I meant to say that the results are the same even in fkms mode. (no output by i2c programs). running the commands that you have given show no output regardless of fkms or kms mode.

Sorry, wont use fkms in this discussion anymore until asked to! Only kms!

@d-griet
Copy link

d-griet commented Jul 26, 2024

From your timing "1024x600": 60 49000 1024 1029 1042 1312 ie 1024 active pixels, 1029-1024 = 5 pixels as the horizontal front porch 1032-1029 = 3 pixels as the horizontal sync period 1312-1032 = 280 pixels as the horizontal back porch.

https://www.raspberrypi.com/documentation/computers/config_txt.html#raspberry-pi-4-hdmi-pipeline

Running everything at 2 pixels per clock means that the Raspberry Pi 4 can not support a timing where any of the horizontal timings are not divisible by 2. The firmware and Linux kernel will filter out any mode that does not fulfill this criteria.

Since commit 57fb32e in Nov 2020 that requirement has been enforced by the driver.

Sorry this is largely down to the display being non-compliant with the HDMI specs. Does it have an EDID? Does sudo modprobe i2c-dev sudo i2c-detect -y -r 20 return address 0x50 responding? If so, then i2cdump -y 20 0x50 i should dump it out and allow some analysis to be done. You can also tell the kernel to use a file based on that instead of trying to read it from the display.

Thanks for this information!

I had the exact same issue, adjusting the framerate to 59Hz (instead of 60Hz) has solved it for me.
So using video=HDMI-A-2:1024x600@59 in the cmdline.txt works!

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

5 participants