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

Pi 5: i2c: i2c_designware: controller timed out, requiring power cycle to fix #5784

Closed
Gadgetoid opened this issue Dec 11, 2023 · 46 comments
Closed

Comments

@Gadgetoid
Copy link
Contributor

Gadgetoid commented Dec 11, 2023

Describe the bug

When using i2c on either of the display connectors to drive an IO expander and touch, I'm getting frequent hard crashes of the i2c controller, requiring a full power cycle to fix:

[    6.593324] i2c_designware 1f00088000.i2c: controller timed out
[    6.593343] (NULL device *): regmap_read of register 0x1 failed: -ETIMEDOUT

Steps to reproduce the behaviour

I don't have a minimum repro since I'm connecting and trying to talk to i2c hardware, normally I'd chalk this up as user-error but I'm concerned that a fault like this should be cleared on a soft reboot...

This is the dtoverlay that may or may not be triggering the problem-

/dts-v1/;
/plugin/;

/ {
	compatible = "brcm,bcm2835";

	fragment@0 {
		target = <&i2c0if>;
		__overlay__ {
			status = "okay";
		};
	};
		
	fragment@1 {
		target = <&i2c0mux>;
		__overlay__ {
			status = "okay";
		};
	};

	fragment@2 {};

	pca9685: fragment@3 {
		target = <&i2c_csi_dsi>;
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

			pca: pca@56 {
				compatible = "nxp,pca9685-pwm";
				#pwm-cells = <2>;
				gpio-controller;
				#gpio-cells = <2>;
				reg = <0x56>;
				status = "okay";

				gpio-line-names = "PCA_PWM0",
					"PCA_PWM1",
					"PCA_PWM2",
					"PCA_PWM3",
					"PCA_PWM4",
					"PCA_PWM5",
					"PCA_PWM6",
					"PCA_PWM7",
					"PCA_GPIO8_LCD_RST",
					"PCA_PWM9_LCD_BL",
					"PCA_GPIO10_TOUCH_RST",
					"PCA_PWM11",
					"PCA_PWM12",
					"PCA_PWM13",
					"PCA_PWM14",
					"PCA_PWM15";
			};
		};
	};

	fragment@4 {
		target-path = "/";
		__overlay__ {
			backlight_lcd: backlight_lcd {
				compatible = "pwm-backlight";
				brightness-levels = <0 4095>;
				num-interpolated-steps = <4096>;
				default-brightness-level = <4096>;
				pwms = <&pca 9 5000000>;
				status = "okay";
			};

			reg_touch: reg_touch@1 {
				compatible = "regulator-fixed";
				regulator-name = "touch_reg";
				gpio = <&pca 10 0>;
				enable-active-high;
			};

            reg_panel: reg_panel@1 {
                compatible = "regulator-fixed";
                regulator-name = "panel_reg";
                gpio = <&pca 8 0>;
                enable-active-high;
            };

		};
	};

	gt9271: fragment@5 {
		target = <&i2c_csi_dsi>;
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

			gt9271@5d {
				compatible = "goodix,gt9271";
				reg = <0x5d>;
				VDDIO-supply = <&reg_touch>;
			};
		};
	};

	panel: fragment@6 {
		target = <&dsi1>;

		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

			port {
				dsi_out_port: endpoint {
					remote-endpoint = <&panel_dsi_in>;
				};
			};

			panel_dsi: panel@0 {
				compatible = "pimoroni,lcd";

				reg = <0>;
				label = "lcd";
				power-supply = <&reg_panel>;
				port {
					panel_dsi_in: endpoint {
						remote-endpoint = <&dsi_out_port>;
					};
				};
			};

		};
	};

	__overrides__ {
		dsi0 = <&panel>, "target:0=",<&dsi0>,
			<&gt9271>, "target:0=",<&i2c_csi_dsi0>,
			<&pca9685>, "target:0=",<&i2c_csi_dsi0>;
	};

};

Device (s)

Raspberry Pi 5 Model B Rev 1.0

System

Raspberry Pi reference 2023-12-05
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 70cd6f2a1e34d07f5cba7047aea5b92457372e05, stage4
version c2da2ae7 (release) (embedded)
Linux pi4 6.1.0-rpi7-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux

Logs

Full dmesg output of a failure state:

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x414fd0b1]
[    0.000000] Linux version 6.1.0-rpi7-rpi-2712 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24)
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi 5 Model B Rev 1.0
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000018000000, 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-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000007ffff]
[    0.000000]   node   0: [mem 0x0000000000080000-0x000000003f7fffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000001ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000001ffffffff]
[    0.000000] On node 0, zone DMA: 512 pages in unavailable ranges
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 14 pages/cpu s177448 r8192 d43736 u229376
[    0.000000] pcpu-alloc: s177448 r8192 d43736 u229376 alloc=14*16384
[    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: Virtualization Host Extensions
[    0.000000] CPU features: detected: Hardware dirty bit management
[    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] alternatives: applying boot alternatives
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 521728
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=D8:3A:DD:79:FE:F9 vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000  console=ttyAMA10,115200 console=tty1 root=PARTUUID=2d4d4fe5-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=GB
[    0.000000] Unknown kernel command line parameters "splash", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 1048576 (order: 9, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 8, 4194304 bytes, linear)
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000fbffc000-0x00000000ffffc000] (64MB)
[    0.000000] Memory: 7894048K/8380416K available (12352K kernel code, 2186K rwdata, 4112K rodata, 4480K init, 1216K bss, 158688K reserved, 327680K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 40061 entries in 40 pages
[    0.000000] ftrace: allocated 40 pages with 2 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.000000] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000156] Console: colour dummy device 80x25
[    0.000177] printk: console [tty1] enabled
[    0.000197] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000204] pid_max: default: 32768 minimum: 301
[    0.000228] LSM: Security Framework initializing
[    0.000301] Mount-cache hash table entries: 16384 (order: 3, 131072 bytes, linear)
[    0.000334] Mountpoint-cache hash table entries: 16384 (order: 3, 131072 bytes, linear)
[    0.000779] cgroup: Disabling memory control group subsystem
[    0.001305] cblist_init_generic: Setting adjustable number of callback queues.
[    0.001309] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.001352] cblist_init_generic: Setting adjustable number of callback queues.
[    0.001354] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.001387] cblist_init_generic: Setting adjustable number of callback queues.
[    0.001389] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.001476] rcu: Hierarchical SRCU implementation.
[    0.001478] rcu: 	Max phase no-delay instances is 1000.
[    0.002103] EFI services will not be available.
[    0.002205] smp: Bringing up secondary CPUs ...
[    0.002424] Detected PIPT I-cache on CPU1
[    0.002470] CPU1: Booted secondary processor 0x0000000100 [0x414fd0b1]
[    0.002703] Detected PIPT I-cache on CPU2
[    0.002740] CPU2: Booted secondary processor 0x0000000200 [0x414fd0b1]
[    0.002972] Detected PIPT I-cache on CPU3
[    0.003006] CPU3: Booted secondary processor 0x0000000300 [0x414fd0b1]
[    0.003042] smp: Brought up 1 node, 4 CPUs
[    0.003047] SMP: Total of 4 processors activated.
[    0.003050] CPU features: detected: 32-bit EL0 Support
[    0.003054] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.003057] CPU features: detected: Common not Private translations
[    0.003059] CPU features: detected: CRC32 instructions
[    0.003062] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.003064] CPU features: detected: LSE atomic instructions
[    0.003067] CPU features: detected: Privileged Access Never
[    0.003069] CPU features: detected: RAS Extension Support
[    0.003073] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.003111] CPU: All CPU(s) started at EL2
[    0.003113] alternatives: applying system-wide alternatives
[    0.005022] devtmpfs: initialized
[    0.007650] Enabled cp15_barrier support
[    0.007657] Enabled setend support
[    0.007723] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.007731] futex hash table entries: 1024 (order: 2, 65536 bytes, linear)
[    0.008645] pinctrl core: initialized pinctrl subsystem
[    0.008869] DMI not present or invalid.
[    0.009059] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.010279] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.010332] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.010408] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.010432] audit: initializing netlink subsys (disabled)
[    0.010496] audit: type=2000 audit(0.008:1): state=initialized audit_enabled=0 res=1
[    0.010630] thermal_sys: Registered thermal governor 'step_wise'
[    0.010649] cpuidle: using governor menu
[    0.010719] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.010765] ASID allocator initialised with 32768 entries
[    0.011056] Serial: AMBA PL011 UART driver
[    0.013032] bcm2835-mbox 107c013880.mailbox: mailbox enabled
[    0.013730] 107d001000.serial: ttyAMA10 at MMIO 0x107d001000 (irq = 15, base_baud = 0) is a PL011 rev2
[    0.013767] printk: console [ttyAMA10] enabled
[    0.020774] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-10-18T17:30:17, variant start_cd
[    0.024776] raspberrypi-firmware soc:firmware: Firmware hash is c2da2ae700000000000000000000000000000000
[    0.033494] KASLR enabled
[    0.043433] bcm2835-dma 1000010000.dma: DMA legacy API manager, dmachans=0x1
[    0.044516] iommu: Default domain type: Translated 
[    0.044520] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.044615] SCSI subsystem initialized
[    0.044667] usbcore: registered new interface driver usbfs
[    0.044678] usbcore: registered new interface driver hub
[    0.044689] usbcore: registered new device driver usb
[    0.044796] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.044886] pps_core: LinuxPPS API ver. 1 registered
[    0.044889] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.044895] PTP clock support registered
[    0.045144] vgaarb: loaded
[    0.045281] clocksource: Switched to clocksource arch_sys_counter
[    0.045443] VFS: Disk quotas dquot_6.6.0
[    0.045461] VFS: Dquot-cache hash table entries: 2048 (order 0, 16384 bytes)
[    0.045497] FS-Cache: Loaded
[    0.045526] CacheFiles: Loaded
[    0.046949] NET: Registered PF_INET protocol family
[    0.047119] IP idents hash table entries: 131072 (order: 6, 1048576 bytes, linear)
[    0.049545] tcp_listen_portaddr_hash hash table entries: 4096 (order: 2, 65536 bytes, linear)
[    0.049595] Table-perturb hash table entries: 65536 (order: 4, 262144 bytes, linear)
[    0.049602] TCP established hash table entries: 65536 (order: 5, 524288 bytes, linear)
[    0.049872] TCP bind hash table entries: 65536 (order: 7, 2097152 bytes, linear)
[    0.051646] TCP: Hash tables configured (established 65536 bind 65536)
[    0.051793] MPTCP token hash table entries: 8192 (order: 3, 196608 bytes, linear)
[    0.051913] UDP hash table entries: 4096 (order: 3, 131072 bytes, linear)
[    0.052013] UDP-Lite hash table entries: 4096 (order: 3, 131072 bytes, linear)
[    0.052167] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.052347] RPC: Registered named UNIX socket transport module.
[    0.052351] RPC: Registered udp transport module.
[    0.052353] RPC: Registered tcp transport module.
[    0.052356] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.052361] PCI: CLS 0 bytes, default 64
[    0.052496] Trying to unpack rootfs image as initramfs...
[    0.061855] hw perfevents: enabled with armv8_cortex_a76 PMU driver, 7 counters available
[    0.062025] kvm [1]: IPA Size Limit: 40 bits
[    0.062038] kvm [1]: GICV region size/alignment is unsafe, using trapping (reduced performance)
[    0.062091] kvm [1]: vgic interrupt IRQ9
[    0.062138] kvm [1]: VHE mode initialized successfully
[    0.305030] Freeing initrd memory: 16704K
[    0.339491] Initialise system trusted keyrings
[    0.339637] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.341464] zbud: loaded
[    0.342030] NFS: Registering the id_resolver key type
[    0.342041] Key type id_resolver registered
[    0.342044] Key type id_legacy registered
[    0.342064] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.342067] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.342136] F2FS not supported on PAGE_SIZE(16384) != 4096
[    0.342222] Key type asymmetric registered
[    0.342225] Asymmetric key parser 'x509' registered
[    0.342246] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.342317] io scheduler mq-deadline registered
[    0.342322] io scheduler kyber registered
[    0.343024] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7c502000, parent irq: 31)
[    0.343172] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d503000, parent irq: 32)
[    0.343287] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d508380, parent irq: 33)
[    0.343407] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d508400, parent irq: 34)
[    0.343519] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7d510600, parent irq: 35)
[    0.343631] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d517b00, parent irq: 36)
[    0.345417] gpio-461 (RP1 RUN pin): hogged as output/high
[    0.346245] simple-framebuffer 3f800000.framebuffer: framebuffer at 0x3f800000, 0x3f4800 bytes
[    0.346251] simple-framebuffer 3f800000.framebuffer: format=r5g6b5, mode=1920x1080x16, linelength=3840
[    0.346386] Console: switching to colour frame buffer device 240x67
[    0.347917] simple-framebuffer 3f800000.framebuffer: fb0: simplefb registered!
[    0.380781] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.381380] 107d50c000.serial: ttyS0 at MMIO 0x107d50c000 (irq = 38, base_baud = 6000000) is a 16550A
[    0.381427] serial serial0: tty port ttyS0 registered
[    0.382005] iproc-rng200 107d208000.rng: hwrng registered
[    0.382138] vc-mem: phys_addr:0x00000000 mem_base=0x3fc00000 mem_size:0x40000000(1024 MiB)
[    0.382842] bcm2712-iommu-cache 1000005b00.iommuc: bcm2712_iommu_cache_probe
[    0.384818] brd: module loaded
[    0.386354] loop: module loaded
[    0.386579] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    0.386763] Loading iSCSI transport class v2.0-870.
[    0.387849] usbcore: registered new interface driver r8152
[    0.387862] usbcore: registered new interface driver lan78xx
[    0.387872] usbcore: registered new interface driver smsc95xx
[    0.388013] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.388092] dwc_otg: FIQ enabled
[    0.388094] dwc_otg: NAK holdoff enabled
[    0.388097] dwc_otg: FIQ split-transaction FSM enabled
[    0.388100] Module dwc_common_port init
[    0.388369] usbcore: registered new interface driver uas
[    0.388389] usbcore: registered new interface driver usb-storage
[    0.388591] mousedev: PS/2 mouse device common for all mice
[    0.396370] rpi-rtc soc:rpi_rtc: registered as rtc0
[    0.397818] rpi-rtc soc:rpi_rtc: setting system clock to 2023-12-11T15:16:18 UTC (1702307778)
[    0.398487] bcm2835-wdt bcm2835-wdt: Poweroff handler already present!
[    0.398491] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.401223] sdhci: Secure Digital Host Controller Interface driver
[    0.401227] sdhci: Copyright(c) Pierre Ossman
[    0.401390] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.401822] ledtrig-cpu: registered to indicate activity on CPUs
[    0.401860] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    0.401872] hid: raw HID events driver (C) Jiri Kosina
[    0.401896] usbcore: registered new interface driver usbhid
[    0.401899] usbhid: USB HID core driver
[    0.402092] NET: Registered PF_PACKET protocol family
[    0.402123] Key type dns_resolver registered
[    0.402382] registered taskstats version 1
[    0.402402] Loading compiled-in X.509 certificates
[    0.408873] Loaded X.509 cert 'Debian Secure Boot CA: 6ccece7e4c6c0d1f6149f3dd27dfcc5cbb419ea1'
[    0.408902] Loaded X.509 cert 'Debian Secure Boot Signer 2022 - linux: 14011249c2675ea8e5148542202005810584b25f'
[    0.409086] Key type .fscrypt registered
[    0.409089] Key type fscrypt-provisioning registered
[    0.410948] brcm-pcie 1000120000.pcie: host bridge /axi/pcie@120000 ranges:
[    0.410958] brcm-pcie 1000120000.pcie:   No bus range found for /axi/pcie@120000, using [bus 00-ff]
[    0.410984] brcm-pcie 1000120000.pcie:      MEM 0x1f00000000..0x1ffffffffb -> 0x0000000000
[    0.410997] brcm-pcie 1000120000.pcie:      MEM 0x1c00000000..0x1effffffff -> 0x0400000000
[    0.411022] brcm-pcie 1000120000.pcie:   IB MEM 0x1f00000000..0x1f003fffff -> 0x0000000000
[    0.411035] brcm-pcie 1000120000.pcie:   IB MEM 0x0000000000..0x0fffffffff -> 0x1000000000
[    0.412226] brcm-pcie 1000120000.pcie: setting SCB_ACCESS_EN, READ_UR_MODE, MAX_BURST_SIZE
[    0.412237] brcm-pcie 1000120000.pcie: Forcing gen 2
[    0.412281] brcm-pcie 1000120000.pcie: PCI host bridge to bus 0000:00
[    0.412285] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.412289] pci_bus 0000:00: root bus resource [mem 0x1f00000000-0x1ffffffffb] (bus address [0x00000000-0xfffffffb])
[    0.412294] pci_bus 0000:00: root bus resource [mem 0x1c00000000-0x1effffffff pref] (bus address [0x400000000-0x6ffffffff])
[    0.412312] pci 0000:00:00.0: [14e4:2712] type 01 class 0x060400
[    0.412371] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.413386] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.521287] brcm-pcie 1000120000.pcie: link up, 5.0 GT/s PCIe x4 (!SSC)
[    0.521315] pci 0000:01:00.0: [1de4:0001] type 00 class 0x020000
[    0.521333] pci 0000:01:00.0: reg 0x10: [mem 0xffffc000-0xffffffff]
[    0.521344] pci 0000:01:00.0: reg 0x14: [mem 0xffc00000-0xffffffff]
[    0.521353] pci 0000:01:00.0: reg 0x18: [mem 0xffff0000-0xffffffff]
[    0.521445] pci 0000:01:00.0: supports D1
[    0.521447] pci 0000:01:00.0: PME# supported from D0 D1 D3hot D3cold
[    0.533295] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.533307] pci 0000:00:00.0: BAR 8: assigned [mem 0x1f00000000-0x1f005fffff]
[    0.533313] pci 0000:01:00.0: BAR 1: assigned [mem 0x1f00000000-0x1f003fffff]
[    0.533319] pci 0000:01:00.0: BAR 2: assigned [mem 0x1f00400000-0x1f0040ffff]
[    0.533325] pci 0000:01:00.0: BAR 0: assigned [mem 0x1f00410000-0x1f00413fff]
[    0.533332] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.533337] pci 0000:00:00.0:   bridge window [mem 0x1f00000000-0x1f005fffff]
[    0.533346] pci 0000:00:00.0: Max Payload Size set to  256/ 512 (was  128), Max Read Rq  512
[    0.533357] pci 0000:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  512
[    0.533485] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    0.533539] pcieport 0000:00:00.0: PME: Signaling with IRQ 39
[    0.533627] pcieport 0000:00:00.0: AER: enabled with IRQ 39
[    0.533802] rp1 0000:01:00.0: bar0 len 0x4000, start 0x1f00410000, end 0x1f00413fff, flags, 0x40200
[    0.533807] rp1 0000:01:00.0: bar1 len 0x400000, start 0x1f00000000, end 0x1f003fffff, flags, 0x40200
[    0.533819] rp1 0000:01:00.0: enabling device (0000 -> 0002)
[    0.534971] rp1 0000:01:00.0: chip_id 0x20001927
[    0.557350] macb 1f00100000.ethernet eth0: Cadence GEM rev 0x00070109 at 0x1f00100000 irq 107 (d8:3a:dd:79:fe:f9)
[    0.558127] dw_axi_dmac_platform 1f00188000.dma: DesignWare AXI DMA Controller, 8 channels
[    0.617395] xhci-hcd xhci-hcd.0: xHCI Host Controller
[    0.617404] xhci-hcd xhci-hcd.0: new USB bus registered, assigned bus number 1
[    0.617873] xhci-hcd xhci-hcd.0: hcc params 0x0240fe6d hci version 0x110 quirks 0x0000000000010810
[    0.617890] xhci-hcd xhci-hcd.0: irq 132, io mem 0x1f00200000
[    0.617971] xhci-hcd xhci-hcd.0: xHCI Host Controller
[    0.617975] xhci-hcd xhci-hcd.0: new USB bus registered, assigned bus number 2
[    0.617980] xhci-hcd xhci-hcd.0: Host supports USB 3.0 SuperSpeed
[    0.618057] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    0.618061] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.618065] usb usb1: Product: xHCI Host Controller
[    0.618068] usb usb1: Manufacturer: Linux 6.1.0-rpi7-rpi-2712 xhci-hcd
[    0.618072] usb usb1: SerialNumber: xhci-hcd.0
[    0.618228] hub 1-0:1.0: USB hub found
[    0.618247] hub 1-0:1.0: 2 ports detected
[    0.618454] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    0.618459] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.618462] usb usb2: Product: xHCI Host Controller
[    0.618465] usb usb2: Manufacturer: Linux 6.1.0-rpi7-rpi-2712 xhci-hcd
[    0.618468] usb usb2: SerialNumber: xhci-hcd.0
[    0.618582] hub 2-0:1.0: USB hub found
[    0.618602] hub 2-0:1.0: 1 port detected
[    0.677381] xhci-hcd xhci-hcd.1: xHCI Host Controller
[    0.677387] xhci-hcd xhci-hcd.1: new USB bus registered, assigned bus number 3
[    0.677847] xhci-hcd xhci-hcd.1: hcc params 0x0240fe6d hci version 0x110 quirks 0x0000000000010810
[    0.677862] xhci-hcd xhci-hcd.1: irq 137, io mem 0x1f00300000
[    0.677935] xhci-hcd xhci-hcd.1: xHCI Host Controller
[    0.677939] xhci-hcd xhci-hcd.1: new USB bus registered, assigned bus number 4
[    0.677944] xhci-hcd xhci-hcd.1: Host supports USB 3.0 SuperSpeed
[    0.678026] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    0.678030] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.678034] usb usb3: Product: xHCI Host Controller
[    0.678037] usb usb3: Manufacturer: Linux 6.1.0-rpi7-rpi-2712 xhci-hcd
[    0.678040] usb usb3: SerialNumber: xhci-hcd.1
[    0.678158] hub 3-0:1.0: USB hub found
[    0.678175] hub 3-0:1.0: 2 ports detected
[    0.678368] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    0.678372] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.678376] usb usb4: Product: xHCI Host Controller
[    0.678378] usb usb4: Manufacturer: Linux 6.1.0-rpi7-rpi-2712 xhci-hcd
[    0.678381] usb usb4: SerialNumber: xhci-hcd.1
[    0.678496] hub 4-0:1.0: USB hub found
[    0.678511] hub 4-0:1.0: 1 port detected
[    0.678775] platform 1f00118000.dsi: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/dsi@110000/panel@0/port/endpoint
[    0.679891] bcm2712-iommu 1000005100.iommu: bcm2712_iommu_init: DEBUG_INFO = 0x20804774
[    0.680318] platform 1000800000.codec: bcm2712_iommu_probe_device: MMU 1000005100.iommu
[    0.680321] platform 1000800000.codec: bcm2712_iommu_device_group: MMU 1000005100.iommu
[    0.680327] platform 1000800000.codec: Adding to iommu group 0
[    0.680362] platform 1000880000.pisp_be: bcm2712_iommu_probe_device: MMU 1000005100.iommu
[    0.680365] platform 1000880000.pisp_be: bcm2712_iommu_device_group: MMU 1000005100.iommu
[    0.680370] platform 1000880000.pisp_be: Adding to iommu group 0
[    0.680443] platform 1000800000.codec: bcm2712_iommu_attach_dev: MMU 1000005100.iommu
[    0.680447] platform 1000880000.pisp_be: bcm2712_iommu_attach_dev: MMU 1000005100.iommu
[    0.680454] bcm2712-iommu 1000005100.iommu: bcm2712_iommu_probe: Success
[    0.681066] bcm2712-iommu 1000005200.iommu: bcm2712_iommu_init: DEBUG_INFO = 0x20804774
[    0.681442] platform axi:gpu: bcm2712_iommu_probe_device: MMU 1000005200.iommu
[    0.681445] platform axi:gpu: bcm2712_iommu_device_group: MMU 1000005200.iommu
[    0.681452] platform axi:gpu: Adding to iommu group 1
[    0.681523] platform axi:gpu: bcm2712_iommu_attach_dev: MMU 1000005200.iommu
[    0.681529] bcm2712-iommu 1000005200.iommu: bcm2712_iommu_probe: Success
[    0.682028] bcm2712-iommu 1000005280.iommu: bcm2712_iommu_init: DEBUG_INFO = 0x20804774
[    0.682424] platform 1f00118000.dsi: bcm2712_iommu_probe_device: MMU 1000005280.iommu
[    0.682427] platform 1f00118000.dsi: bcm2712_iommu_device_group: MMU 1000005280.iommu
[    0.682432] platform 1f00118000.dsi: Adding to iommu group 2
[    0.682438] platform 1f00118000.dsi: bcm2712_iommu_attach_dev: MMU 1000005280.iommu
[    0.682444] bcm2712-iommu 1000005280.iommu: bcm2712_iommu_probe: Success
[    0.682652] sdhci-brcmstb 1000fff000.mmc: there is not valid maps for state default
[    0.683039] mmc0: CQHCI version 5.10
[    0.683086] mmc1: CQHCI version 5.10
[    0.684547] of_cfs_init
[    0.684583] of_cfs_init: OK
[    0.718871] mmc0: SDHCI controller on 1000fff000.mmc [1000fff000.mmc] using ADMA 64-bit
[    0.817951] mmc0: new ultra high speed SDR104 SDHC card at address aaaa
[    0.818217] mmcblk0: mmc0:aaaa SH32G 29.7 GiB 
[    0.819813]  mmcblk0: p1 p2
[    0.819916] mmcblk0: mmc0:aaaa SH32G 29.7 GiB (quirks 0x00004000)
[    0.871826] mmc1: SDHCI controller on 1001100000.mmc [1001100000.mmc] using ADMA 64-bit
[    0.874885] Freeing unused kernel memory: 4480K
[    0.874937] Run /init as init process
[    0.874940]   with arguments:
[    0.874942]     /init
[    0.874944]     splash
[    0.874947]   with environment:
[    0.874949]     HOME=/
[    0.874951]     TERM=linux
[    0.902703] mmc1: new ultra high speed DDR50 SDIO card at address 0001
[    0.937425] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[    1.083162] input: pwr_button as /devices/platform/pwr_button/input/input0
[    1.091788] [drm] Initialized v3d 1.0.0 20180419 for 1002000000.v3d on minor 0
[    1.094603] usb 3-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
[    1.094613] usb 3-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.094617] usb 3-1: Product: USB2.0 Hub
[    1.101127] drm-rp1-dsi 1f00118000.dsi: bcm2712_iommu_of_xlate: MMU 1000005280.iommu
[    1.133512] brcmstb-i2c 107d508200.i2c:  @200000hz registered in interrupt mode
[    1.133839] brcmstb-i2c 107d508280.i2c:  @200000hz registered in interrupt mode
[    1.165712] hub 3-1:1.0: USB hub found
[    1.166020] hub 3-1:1.0: 4 ports detected
[    1.168112] vc4-drm axi:gpu: bcm2712_iommu_of_xlate: MMU 1000005200.iommu
[    1.169416] Console: switching to colour dummy device 80x25
[    1.171666] vc4-drm axi:gpu: bound 107c580000.hvs (ops vc4_hvs_ops [vc4])
[    1.174030] Registered IR keymap rc-cec
[    1.174079] rc rc0: vc4-hdmi-0 as /devices/platform/soc/107c701400.hdmi/rc/rc0
[    1.174128] input: vc4-hdmi-0 as /devices/platform/soc/107c701400.hdmi/rc/rc0/input1
[    1.174858] vc4-drm axi:gpu: bound 107c701400.hdmi (ops vc4_hdmi_ops [vc4])
[    1.177211] Registered IR keymap rc-cec
[    1.177252] rc rc1: vc4-hdmi-1 as /devices/platform/soc/107c706400.hdmi/rc/rc1
[    1.177312] input: vc4-hdmi-1 as /devices/platform/soc/107c706400.hdmi/rc/rc1/input2
[    1.178818] vc4-drm axi:gpu: bound 107c706400.hdmi (ops vc4_hdmi_ops [vc4])
[    1.178963] vc4-drm axi:gpu: bound 107c500000.mop (ops vc4_txp_ops [vc4])
[    1.179048] vc4-drm axi:gpu: bound 107c501000.moplet (ops vc4_txp_ops [vc4])
[    1.179140] vc4-drm axi:gpu: bound 107c410000.pixelvalve (ops vc4_crtc_ops [vc4])
[    1.179221] vc4-drm axi:gpu: bound 107c411000.pixelvalve (ops vc4_crtc_ops [vc4])
[    1.225950] [drm] Initialized vc4 0.0.0 20140616 for axi:gpu on minor 2
[    1.280116] Console: switching to colour frame buffer device 240x67
[    1.298397] vc4-drm axi:gpu: [drm] fb0: vc4drmfb frame buffer device
[    1.441285] usb 3-2: new high-speed USB device number 3 using xhci-hcd
[    1.619244] usb 3-2: New USB device found, idVendor=0bda, idProduct=0306, bcdDevice= 1.17
[    1.619250] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.619253] usb 3-2: Product: USB3.0 Card Reader
[    1.619257] usb 3-2: Manufacturer: Realtek
[    1.619260] usb 3-2: SerialNumber: 201506301013
[    1.624846] usb-storage 3-2:1.0: USB Mass Storage device detected
[    1.625010] scsi host0: usb-storage 3-2:1.0
[    1.673290] usb 3-1.1: new low-speed USB device number 4 using xhci-hcd
[    1.797613] usb 3-1.1: New USB device found, idVendor=04d9, idProduct=0006, bcdDevice= 1.10
[    1.797618] usb 3-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.797622] usb 3-1.1: Product: RPI Wired Keyboard 1
[    1.797625] usb 3-1.1: Manufacturer:  
[    1.926108] input:   RPI Wired Keyboard 1 as /devices/platform/axi/1000120000.pcie/1f00300000.usb/xhci-hcd.1/usb3/3-1/3-1.1/3-1.1:1.0/0003:04D9:0006.0001/input/input3
[    1.985453] hid-generic 0003:04D9:0006.0001: input,hidraw0: USB HID v1.11 Keyboard [  RPI Wired Keyboard 1] on usb-xhci-hcd.1-1.1/input0
[    2.022074] input:   RPI Wired Keyboard 1 as /devices/platform/axi/1000120000.pcie/1f00300000.usb/xhci-hcd.1/usb3/3-1/3-1.1/3-1.1:1.1/0003:04D9:0006.0002/input/input4
[    2.081367] hid-generic 0003:04D9:0006.0002: input,hidraw1: USB HID v1.11 Device [  RPI Wired Keyboard 1] on usb-xhci-hcd.1-1.1/input1
[    2.161285] usb 3-1.2: new low-speed USB device number 5 using xhci-hcd
[    2.264944] usb 3-1.2: New USB device found, idVendor=093a, idProduct=2510, bcdDevice= 1.00
[    2.264949] usb 3-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.264953] usb 3-1.2: Product: USB Optical Mouse
[    2.264956] usb 3-1.2: Manufacturer: PixArt
[    2.342097] input: PixArt USB Optical Mouse as /devices/platform/axi/1000120000.pcie/1f00300000.usb/xhci-hcd.1/usb3/3-1/3-1.2/3-1.2:1.0/0003:093A:2510.0003/input/input5
[    2.342188] hid-generic 0003:093A:2510.0003: input,hidraw2: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.1-1.2/input0
[    2.604512] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[    2.677395] scsi 0:0:0:0: Direct-Access     Generic- USB3.0 CRW   -SD 1.00 PQ: 0 ANSI: 4
[    2.680057] sd 0:0:0:0: [sda] Media removed, stopped polling
[    2.680371] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.688766] scsi 0:0:0:1: Direct-Access     Generic- USB3.0 CRW   -SD 1.00 PQ: 0 ANSI: 4
[    2.976240] NET: Registered PF_INET6 protocol family
[    2.976692] Segment Routing with IPv6
[    2.976700] In-situ OAM (IOAM) with IPv6
[    4.142627] sd 0:0:0:1: [sdb] 249670656 512-byte logical blocks: (128 GB/119 GiB)
[    4.143238] sd 0:0:0:1: [sdb] Write Protect is off
[    4.143242] sd 0:0:0:1: [sdb] Mode Sense: 2f 00 00 00
[    4.143733] sd 0:0:0:1: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.153687]  sdb: sdb1 sdb2
[    4.153799] sd 0:0:0:1: [sdb] Attached SCSI removable disk
[    4.188625] systemd[1]: systemd 252.19-1~deb12u1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[    4.188639] systemd[1]: Detected architecture arm64.
[    4.201449] systemd[1]: Hostname set to <pi4>.
[    4.294507] uart-pl011 107d001000.serial: no DMA platform data
[    4.599102] systemd[1]: Queued start job for default target graphical.target.
[    4.626156] systemd[1]: Created slice system-getty.slice - Slice /system/getty.
[    4.626549] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe.
[    4.626849] systemd[1]: Created slice system-serial\x2dgetty.slice - Slice /system/serial-getty.
[    4.627147] systemd[1]: Created slice system-systemd\x2dfsck.slice - Slice /system/systemd-fsck.
[    4.627335] systemd[1]: Created slice user.slice - User and Session Slice.
[    4.627451] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[    4.627714] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
[    4.627792] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes.
[    4.627846] systemd[1]: Reached target nss-user-lookup.target - User and Group Name Lookups.
[    4.627889] systemd[1]: Reached target slices.target - Slice Units.
[    4.627918] systemd[1]: Reached target swap.target - Swaps.
[    4.627960] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes.
[    4.628154] systemd[1]: Listening on systemd-fsckd.socket - fsck to fsckd communication Socket.
[    4.628238] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[    4.628649] systemd[1]: Listening on systemd-journald-audit.socket - Journal Audit Socket.
[    4.628842] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[    4.629061] systemd[1]: Listening on systemd-journald.socket - Journal Socket.
[    4.631870] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket.
[    4.632052] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[    4.632279] systemd[1]: dev-hugepages.mount - Huge Pages File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
[    4.633332] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System...
[    4.634536] systemd[1]: Mounting sys-kernel-debug.mount - Kernel Debug File System...
[    4.635832] systemd[1]: Mounting sys-kernel-tracing.mount - Kernel Trace File System...
[    4.636036] systemd[1]: auth-rpcgss-module.service - Kernel Module supporting RPCSEC_GSS was skipped because of an unmet condition check (ConditionPathExists=/etc/krb5.keytab).
[    4.639142] systemd[1]: Starting fake-hwclock.service - Restore / save the current clock...
[    4.642426] systemd[1]: Starting keyboard-setup.service - Set the console keyboard layout...
[    4.643858] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes...
[    4.645647] systemd[1]: Starting modprobe@configfs.service - Load Kernel Module configfs...
[    4.647536] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
[    4.649674] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
[    4.651748] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
[    4.653767] systemd[1]: Starting modprobe@fuse.service - Load Kernel Module fuse...
[    4.655816] systemd[1]: Starting modprobe@loop.service - Load Kernel Module loop...
[    4.656126] systemd[1]: systemd-fsck-root.service - File System Check on Root Device was skipped because of an unmet condition check (ConditionPathExists=!/run/initramfs/fsck-root).
[    4.659195] systemd[1]: Starting systemd-journald.service - Journal Service...
[    4.671733] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
[    4.673242] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
[    4.675057] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices...
[    4.677633] systemd[1]: Finished kmod-static-nodes.service - Create List of Static Device Nodes.
[    4.678568] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[    4.678773] systemd[1]: Finished modprobe@configfs.service - Load Kernel Module configfs.
[    4.679387] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
[    4.679594] systemd[1]: Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
[    4.680135] systemd[1]: modprobe@drm.service: Deactivated successfully.
[    4.680318] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm.
[    4.680800] systemd[1]: modprobe@loop.service: Deactivated successfully.
[    4.680963] systemd[1]: Finished modprobe@loop.service - Load Kernel Module loop.
[    4.681982] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
[    4.682550] systemd[1]: Mounting sys-kernel-config.mount - Kernel Configuration File System...
[    4.685593] systemd[1]: modprobe@dm_mod.service: Deactivated successfully.
[    4.685903] systemd[1]: Finished modprobe@dm_mod.service - Load Kernel Module dm_mod.
[    4.686371] systemd[1]: systemd-repart.service - Repartition Root Disk was skipped because no trigger condition checks were met.
[    4.693968] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System.
[    4.694374] systemd[1]: Mounted sys-kernel-debug.mount - Kernel Debug File System.
[    4.694668] systemd[1]: Mounted sys-kernel-tracing.mount - Kernel Trace File System.
[    4.694715] fuse: init (API version 7.37)
[    4.694991] systemd[1]: Mounted sys-kernel-config.mount - Kernel Configuration File System.
[    4.695756] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[    4.696210] systemd[1]: Finished modprobe@fuse.service - Load Kernel Module fuse.
[    4.698475] systemd[1]: Mounting sys-fs-fuse-connections.mount - FUSE Control File System...
[    4.702334] systemd[1]: Mounted sys-fs-fuse-connections.mount - FUSE Control File System.
[    4.714102] i2c_dev: i2c /dev entries driver
[    4.715164] systemd[1]: Finished systemd-modules-load.service - Load Kernel Modules.
[    4.716286] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[    4.716812] systemd[1]: Starting systemd-sysctl.service - Apply Kernel Variables...
[    4.718493] systemd[1]: Finished systemd-remount-fs.service - Remount Root and Kernel File Systems.
[    4.718989] systemd[1]: systemd-firstboot.service - First Boot Wizard was skipped because of an unmet condition check (ConditionFirstBoot=yes).
[    4.719090] systemd[1]: systemd-pstore.service - Platform Persistent Storage Archival was skipped because of an unmet condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).
[    4.720370] systemd[1]: Starting systemd-random-seed.service - Load/Save Random Seed...
[    4.721987] systemd[1]: Starting systemd-sysusers.service - Create System Users...
[    4.759887] systemd[1]: Started systemd-journald.service - Journal Service.
[    4.785792] systemd-journald[317]: Received client request to flush runtime journal.
[    5.562806] pimoroni_panel_ilitek_ili9881c: loading out-of-tree module taints kernel.
[    5.565316] rpi-gpiomem 107d508500.gpiomem: window base 0x107d508500 size 0x00000040
[    5.565437] rpi-gpiomem 107d508500.gpiomem: initialised 1 regions as /dev/gpiomem1
[    5.565554] rpi-gpiomem 107d517c00.gpiomem: window base 0x107d517c00 size 0x00000040
[    5.565628] rpi-gpiomem 107d517c00.gpiomem: initialised 1 regions as /dev/gpiomem2
[    5.565721] rpi-gpiomem 107d504100.gpiomem: window base 0x107d504100 size 0x00000020
[    5.566330] rpi-gpiomem 107d504100.gpiomem: initialised 1 regions as /dev/gpiomem3
[    5.566938] rpi-gpiomem 107d510700.gpiomem: window base 0x107d510700 size 0x00000020
[    5.568130] rpi-gpiomem 107d510700.gpiomem: initialised 1 regions as /dev/gpiomem4
[    5.569480] rpi-gpiomem 1f000d0000.gpiomem: window base 0x1f000d0000 size 0x00030000
[    5.571896] rpi-gpiomem 1f000d0000.gpiomem: initialised 1 regions as /dev/gpiomem0
[    5.672328] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.692956] mc: Linux media interface: v0.10
[    5.721455] sd 0:0:0:1: Attached scsi generic sg1 type 0
[    5.743093] videodev: Linux video capture interface: v2.00
[    5.750406] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.750762] cfg80211: Loaded X.509 cert 'benh@debian.org: 577e021cb980e0e820821ba7b54b4961b8b4fadf'
[    5.751073] cfg80211: Loaded X.509 cert 'romain.perier@gmail.com: 3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'
[    5.751390] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.822107] brcmfmac: F1 signature read @0x18000000=0x15264345
[    5.825778] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.842498] usbcore: registered new interface driver brcmfmac
[    5.859999] pispbe 1000880000.pisp_be: bcm2712_iommu_of_xlate: MMU 1000005100.iommu
[    5.860184] pispbe 1000880000.pisp_be: pispbe_probe: HW version:  0x02252700
[    5.860190] pispbe 1000880000.pisp_be: pispbe_probe: BatchStatus: 0x00000000
[    5.860193] pispbe 1000880000.pisp_be: pispbe_probe: Status:      0x00000000
[    5.860197] pispbe 1000880000.pisp_be: Register nodes for group 0
[    5.865170] pispbe 1000880000.pisp_be: input device node registered as /dev/video20
[    5.866342] pispbe 1000880000.pisp_be: tdn_input device node registered as /dev/video21
[    5.866551] pispbe 1000880000.pisp_be: stitch_input device node registered as /dev/video22
[    5.871146] pispbe 1000880000.pisp_be: hog_output device node registered as /dev/video23
[    5.871551] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned.
[    5.872461] pispbe 1000880000.pisp_be: output0 device node registered as /dev/video24
[    5.873323] rpivid 1000800000.codec: bcm2712_iommu_of_xlate: MMU 1000005100.iommu
[    5.874085] pispbe 1000880000.pisp_be: output1 device node registered as /dev/video25
[    5.874159] pispbe 1000880000.pisp_be: tdn_output device node registered as /dev/video26
[    5.874210] pispbe 1000880000.pisp_be: stitch_output device node registered as /dev/video27
[    5.874257] pispbe 1000880000.pisp_be: config device node registered as /dev/video28
[    5.874571] pispbe 1000880000.pisp_be: Register nodes for group 1
[    5.874701] pispbe 1000880000.pisp_be: input device node registered as /dev/video29
[    5.875119] pispbe 1000880000.pisp_be: tdn_input device node registered as /dev/video30
[    5.875218] pispbe 1000880000.pisp_be: stitch_input device node registered as /dev/video31
[    5.875309] pispbe 1000880000.pisp_be: hog_output device node registered as /dev/video32
[    5.875393] pispbe 1000880000.pisp_be: output0 device node registered as /dev/video33
[    5.875484] pispbe 1000880000.pisp_be: output1 device node registered as /dev/video34
[    5.875605] pispbe 1000880000.pisp_be: tdn_output device node registered as /dev/video35
[    5.875750] pispbe 1000880000.pisp_be: stitch_output device node registered as /dev/video36
[    5.875857] pispbe 1000880000.pisp_be: config device node registered as /dev/video37
[    5.884263] rpivid 1000800000.codec: Device registered as /dev/video19
[    6.020132] Bluetooth: Core ver 2.22
[    6.020183] NET: Registered PF_BLUETOOTH protocol family
[    6.020187] Bluetooth: HCI device and connection manager initialized
[    6.020199] Bluetooth: HCI socket layer initialized
[    6.020203] Bluetooth: L2CAP socket layer initialized
[    6.020212] Bluetooth: SCO socket layer initialized
[    6.028063] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov  1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[    6.054656] Bluetooth: HCI UART driver ver 2.3
[    6.054666] Bluetooth: HCI UART protocol H4 registered
[    6.054705] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    6.054851] Bluetooth: HCI UART protocol Broadcom registered
[    6.054938] hci_uart_bcm serial0-0: supply vbat not found, using dummy regulator
[    6.055009] hci_uart_bcm serial0-0: supply vddio not found, using dummy regulator
[    6.409928] Bluetooth: hci0: BCM: chip id 107
[    6.410378] Bluetooth: hci0: BCM: features 0x2f
[    6.411845] Bluetooth: hci0: BCM4345C0
[    6.411856] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0000
[    6.417873] Bluetooth: hci0: BCM4345C0 'brcm/BCM4345C0.raspberrypi,5-model-b.hcd' Patch
[    6.584488] Adding 102384k swap on /var/swap.  Priority:-2 extents:1 across:102384k SSFS
[    6.881301] i2c_designware 1f00088000.i2c: controller timed out
[    6.881321] (NULL device *): regmap_read of register 0x1 failed: -ETIMEDOUT
[    6.881358] pca9685-pwm: probe of 6-0056 failed with error -110
[    7.149970] Bluetooth: hci0: BCM: features 0x2f
[    7.151379] Bluetooth: hci0: BCM43455 37.4MHz Raspberry Pi 3+-0190
[    7.151389] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0382
[    7.151738] Bluetooth: hci0: BCM: Using default device address (43:45:c0:00:1f:ac)
[    7.450912] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    7.450923] Bluetooth: BNEP filters: protocol multicast
[    7.450933] Bluetooth: BNEP socket layer initialized
[    7.454315] Bluetooth: MGMT ver 1.22
[    7.463357] NET: Registered PF_ALG protocol family
[    7.512224] macb 1f00100000.ethernet eth0: PHY [1f00100000.ethernet-ffffffff:01] driver [Broadcom BCM54213PE] (irq=POLL)
[    7.512245] macb 1f00100000.ethernet eth0: configuring for phy/rgmii-id link mode
[    7.515110] pps pps0: new PPS source ptp0
[    7.516916] macb 1f00100000.ethernet: gem-ptp-timer ptp clock registered.
[    7.529509] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    9.496973] Bluetooth: RFCOMM TTY layer initialized
[    9.496986] Bluetooth: RFCOMM socket layer initialized
[    9.496996] Bluetooth: RFCOMM ver 1.11
[   12.365945] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Quota mode: none.
[   12.896309] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   13.173343] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   17.117551] platform backlight_lcd: deferred probe pending
[   17.117558] platform reg_panel@1: deferred probe pending
[   17.117560] platform reg_touch@1: deferred probe pending
[   17.117563] mipi-dsi 1f00118000.dsi.0: deferred probe pending
[   17.117565] i2c 6-005d: deferred probe pending

Additional context

No response

@Gadgetoid
Copy link
Contributor Author

This bug has just happened to me on 6.6.5 too.

@pelwell
Copy link
Contributor

pelwell commented Dec 20, 2023

After the first instance, before I had the logic analyser attached (running a simple program to mirror the levels of GPIOs 40&41 onto GPIOs 6&7), I can't get this to fail. Whether I load the overlay from config.txt or at runtime using "sudo dtoverlay hyperportal10" (*) doesn't seem to make a difference - it's still solid. The only errors I see are:

[    7.206607] Goodix-TS 4-005d: Error reading 1 bytes from 0x8140: -121
[    7.263835] Goodix-TS 4-005d: Invalid config (0, 0, 0), using defaults

The first of these is because the Goodix controller NAKs the first read, not surprising since it happens less than a millisecond after the reset is released. The retry that happens about 37ms later is successful.
I'm not sure about the second error yet.

It may also be worth saying that I see the backlight turn on, and a flickering band of largely white pixels about 6cm wide across one side (in landscape) of the display.

(*) The overlay needs some sanitisation before the kernel will accept it at runtime, but it ends up looking like this:

/dts-v1/;
/plugin/;

/ {
	compatible = "brcm,bcm2835";

	fragment@0 {
		target = <&i2c0if>;
		__overlay__ {
			status = "okay";
		};
	};
		
	fragment@1 {
		target = <&i2c0mux>;
		__overlay__ {
			status = "okay";
		};
	};

	i2cbus: fragment@2 {
		target = <&i2c_csi_dsi>;
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

			pca: pca@56 {
				compatible = "nxp,pca9685-pwm";
				reg = <0x56>;
				#pwm-cells = <2>;
				gpio-controller;
				#gpio-cells = <2>;
				status = "okay";

				gpio-line-names = "PCA_PWM0",
					"PCA_PWM1",
					"PCA_PWM2",
					"PCA_PWM3",
					"PCA_PWM4",
					"PCA_PWM5",
					"PCA_PWM6",
					"PCA_PWM7",
					"PCA_GPIO8_LCD_RST",
					"PCA_PWM9_LCD_BL",
					"PCA_GPIO10_TOUCH_RST",
					"PCA_PWM11",
					"PCA_PWM12",
					"PCA_PWM13",
					"PCA_PWM14",
					"PCA_PWM15";
			};

			gt9271@5d {
				compatible = "goodix,gt9271";
				reg = <0x5d>;
				VDDIO-supply = <&reg_touch>;
				//interrupt-parent = <&pca>;
				//reset-gpios = <&pca 10 0>;
			};
		};
	};

	fragment@3 {
		target-path = "/";
		__overlay__ {
			backlight_lcd: backlight_lcd {
				compatible = "pwm-backlight";
				brightness-levels = <0 4095>;
				num-interpolated-steps = <4096>;
				default-brightness-level = <4096>;
				pwms = <&pca 9 5000000>;
			};

			reg_touch: reg_touch {
				compatible = "regulator-fixed";
				regulator-name = "touch_reg";
				gpio = <&pca 10 0>;
				enable-active-high;
			};

			reg_panel: reg_panel {
				compatible = "regulator-fixed";
				regulator-name = "panel_reg";
				gpio = <&pca 8 0>;
				enable-active-high;
			};
		};
	};

	panel: fragment@4 {
		target = <&dsi1>;
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

			port {
				dsi_out_port: endpoint {
					remote-endpoint = <&panel_dsi_in>;
				};
			};

			panel_dsi: panel@0 {
				compatible = "pimoroni,lcd10";

				reg = <0>;
				label = "hyperportal0";
				//reset-gpios = <&pca 8 1>;
				power-supply = <&reg_panel>;
				port {
					panel_dsi_in: endpoint {
						remote-endpoint = <&dsi_out_port>;
					};
				};
			};
		};
	};

	__overrides__ {
		dsi0 = <&panel>, "target:0=",<&dsi0>,
			<&i2cbus>, "target:0=",<&i2c_csi_dsi0>;
	};
};

@pelwell
Copy link
Contributor

pelwell commented Dec 20, 2023

And then it failed hard, with SCL high and SDA held low:

pi@raspberrypi:~$ i2cdetect -y 4
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         [  106.864317] i2c_designware 1f00080000.i2c: controller timed out
-- [  107.888296] i2c_designware 1f00080000.i2c: controller timed out
-- [  108.912255] i2c_designware 1f00080000.i2c: controller timed out
-- [  109.936233] i2c_designware 1f00080000.i2c: controller timed out
-- [  110.960209] i2c_designware 1f00080000.i2c: controller timed out
-- [  111.984188] i2c_designware 1f00080000.i2c: controller timed out
-- [  113.008155] i2c_designware 1f00080000.i2c: controller timed out
-- [  114.032134] i2c_designware 1f00080000.i2c: controller timed out
--
10: [  115.056110] i2c_designware 1f00080000.i2c: controller timed out
-- [  116.080086] i2c_designware 1f00080000.i2c: controller timed out
-- [  117.104065] i2c_designware 1f00080000.i2c: controller timed out
-- [  118.128058] i2c_designware 1f00080000.i2c: controller timed out
-- [  119.152032] i2c_designware 1f00080000.i2c: controller timed out
-- [  120.176012] i2c_designware 1f00080000.i2c: controller timed out
-- [  121.199983] i2c_designware 1f00080000.i2c: controller timed out
-- [  122.223957] i2c_designware 1f00080000.i2c: controller timed out
-- [  123.247940] i2c_designware 1f00080000.i2c: controller timed out
-- [  124.271916] i2c_designware 1f00080000.i2c: controller timed out
-- [  125.295901] i2c_designware 1f00080000.i2c: controller timed out
-- [  126.319881] i2c_designware 1f00080000.i2c: controller timed out
-- [  127.343857] i2c_designware 1f00080000.i2c: controller timed out
-- [  128.367843] i2c_designware 1f00080000.i2c: controller timed out
-- [  129.391824] i2c_designware 1f00080000.i2c: controller timed out
-- [  130.415804] i2c_designware 1f00080000.i2c: controller timed out
--

Until I flipped the catch on the touchscreen cable and it sprang into life:

20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- 56 -- -- -- -- -- -- 5d -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~$ i2cdetect -y 4
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- 56 -- -- -- -- -- -- 5d -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

In other words, I think the touchscreen controller (or perhaps the PWM/GPIO chip) is holding the SDA line low and causing the bus to malfunction. It's hard to tell which, since they are both on the other end of an I2C bus and my bucket has a hole.

@Gadgetoid
Copy link
Contributor Author

Oh good grief. Thank you for looking into this. I should have known it would be our hardware. This would explain why it took a full power-cycle to recover.

The display flickering is expected. It works on Pi 4 (possibly due to timings being more forgiving) but I have not yet found the right magic incantations to get it working on 5.

At a guess I'd pin it on the touchscreen controller. It's quite possible that using a vreg instead of a proper reset pin assignment causes much more trouble than I'd imagined. I will have to dig deeper into the reset logic of the driver and reconcile that with #5777

@mozcelikors
Copy link

mozcelikors commented Feb 27, 2024

@Gadgetoid Hi, I have a similar issue with i2c_designware on Pi 5 when plugging in a Waveshare 4.3inch Capacitive on a custom kernel 6.1.77 I built from here. I was wondering if you had any update on this.

This doesn't happen on Raspberry Pi OS Bookworm, but only happens when I custom compile the kernel. Even tried copying and using exact dtbo from Bookworm, no help.
Issue can be viewed here: https://forums.raspberrypi.com/viewtopic.php?t=366281

@pelwell I also saw contributions by you, Phil, regarding these topics, it would be great to have some insight on the issue I am having, which seems similar here. SCL held high and SDA held low.

Help is greately appreciated. Thanks

@pelwell
Copy link
Contributor

pelwell commented Feb 28, 2024

You're asking me to guess what you have got wrong in your configuration, in a forum which is intended for reporting problems in our kernel, not for general help requests.

You need to put a logic analyser on the I2C lines to see what is going wrong, which may then help you figure out why. But if you are getting the same timeout errors as above then it's likely that the device is holding one or both of the lines low when it shouldn't.

@mozcelikors
Copy link

@pelwell Okay, thanks regardless. Will do.
I understand that this might be the wrong place to ask this, but I have seen many similar questions asked&answered, so I took a shot. Not a problem. Not the first time I received such attitude in this repo :)

@JamesH65
Copy link
Contributor

@pelwell Okay, thanks regardless. Will do. I understand that this might be the wrong place to ask this, but I have seen many similar questions asked&answered, so I took a shot. Not a problem. Not the first time I received such attitude in this repo :)

For general help requests, the forums are the right place to ask. forums.raspberrypi.com. You are likely to get a faster response as well, since there are more people there with knowledge than hang around here.

@mozcelikors
Copy link

mozcelikors commented Mar 3, 2024

The problem I have described above (not the original) is fixed when Linux kernel is downgraded to 6.1.63 (official Bookworm kernel version that worked). I guess the fixes in i2c_designware that was introduced after 6.1.63 regarding I2C timings doesn't really get along with some of the devices, causing "i2c timed out" issues.
I haven't tested with official display, but this is the case for Waveshare display. I hope this helps others having the same issue.
Cheers.

@steveiliop56
Copy link

I have the exact same problem with the 4.3 inch screen from waveshare. Most of the times it works but sometimes the display will not show anything and I will just keep getting these i2c timeouts.

@pelwell
Copy link
Contributor

pelwell commented Mar 8, 2024

As I said above:

it's likely that the device is holding one or both of the lines low when it shouldn't.

If you are also on a Pi 5 then you can check the state of the I2C lines with:

pi@raspberrypi:~$ pinctrl 38-41
38: ip    pd | hi // CD0_SDA/GPIO38 = input
39: ip    pd | hi // CD0_SCL/GPIO39 = input
40: a2    pu | hi // CD1_SDA/GPIO40 = SDA4
41: a2    pu | hi // CD1_SCL/GPIO41 = SCL4

Run this command next time the display doesn't work. One of the pairs - probably 40&41 - will be SDA and SCL, and all of the signal levels should be hi if it's idle.

@steveiliop56
Copy link

Is there any fix for that, I mean how would you know waveshare hardware but maybe there is a way? Or just don't buy waveshare things ever again?

@pelwell
Copy link
Contributor

pelwell commented Mar 8, 2024

If (and it currently is an "if") the hardware is permanently holding one of the I2C lines low, possibly as a result of an incomplete reset, then there is nothing we can do. If it turns out that the device is intentionally using clock stretching and that it is exceeding some time limit programmed into the I2C controller then there may be a possibility to increase the time limit.

@steveiliop56
Copy link

Is there any way to tell the pi to actually reset the screen? Like a "dsi-reinit" thing?

@steveiliop56
Copy link

Also the funny thing is that for some reason even after 50 reboots the display won't reset. In some cases it crashes so bad I have to format the SD card for it to work again.

@pelwell
Copy link
Contributor

pelwell commented Mar 8, 2024

I don't know if there is a generic way to reset a display, but I doubt it. The DSI interface is only for pixel data, the control signals must go via I2C or SPI etc.

I feel the only reliable reset mechanism is with a dedicated reset line driven by a GPIO. The driver for the display must be told which GPIO to use, usually via Device Tree.

@steveiliop56
Copy link

steveiliop56 commented Mar 8, 2024

Also the funny thing is that for some reason even after 50 reboots the display won't reset. In some cases it crashes so bad I have to format the SD card for it to work again.

Hmm what do you think of that? I understand the crash of the controller due to the display but even if I unplug power let it sit there for a bit for the capacitors to run out, still the display won't show anything. It's like it remembers not to work or something. Also because I am fed up with waveshare and their products, is the support for displays like the hyperpixel one better? Would you recommend that driver-wise?

@6by9
Copy link
Contributor

6by9 commented Mar 8, 2024

Whilst I don't have the Waveshare 4.3" panel, I do have a couple of the others (2.8", 7.9", and 10.1")
They're all fairly similar in design.

You have several largely independent items making up the panel.

  • ChipOne ICN6211 DSI to DPI bridge connecting the DSI signals to the panel.
  • Microcontroller (MCU) connected over I2C, which provides the backlight PWM, basic power control to the panel, and configuration to the ChipOne ICN6211.
  • Touch controller connected to the I2C bus.

There are no commands sent over DSI, just image data.
If you look at the MCU driver, there are very few commands that are sent to it, only for power control and setting backlight PWM level.
If an I2C peripheral decides to hold either SDA or SCL low, then there is relatively little that can be done. There is a recovery mechanism if SDA sticks low, but it still depends on the exact implementation of the peripheral.

I will check the latest kernels against my panels on a Pi5 to see if they also show issues.

HyperPixel displays are DPI, not DSI, so you lose almost all your GPIOs.

@steveiliop56
Copy link

Yeah it takes all the gpio pins. Well everything leans towards the official display for me or a solution to the waveshare panel. If you have any hardware mod for an x solution that I could try on the screen part I will be happy to do so.

@pelwell
Copy link
Contributor

pelwell commented Mar 8, 2024

Most of the times it works but sometimes the display will not show anything and I will just keep getting these i2c timeouts.

even if I unplug power let it sit there for a bit for the capacitors to run out, still the display won't show anything.

The first of those statements makes it sound like an occasional problem, the second makes it sound almost permanent. What's the reality?

@steveiliop56
Copy link

It's kind of both. When the problem appears (usually after a reboot) I can't do anything, if I am lucky after 2-3 reboots or unplugging the cable it works if not I just format the SD card because I can't do anything else. The weird thing is that it doesn't seem to happen at all with a pi4.

@6by9
Copy link
Contributor

6by9 commented Mar 8, 2024

If the panel isn't responding, do some basic diagnostics of why.

  • Are there error messages in the kernel logs?
  • Does i2cdetect report the MCU and/or touch controller as responding on an I2C level
  • Does pinctrl 38-41 report one or more of the GPIOs stuck low?

Now that you say it, I do vaguely recall warm boots on that panel causing problems on I2C at one point. It's just possible that the order in which signals come up are being misinterpreted as an I2C start by the Waveshare MCU.

@steveiliop56
Copy link

steveiliop56 commented Mar 8, 2024

So the problems I have found are a) controller will just keep failing and vnc will not even open b) ic2detect -y 4 (if that's relevant) will just say no such file or directory and the os won't even see the screen, like if I vnc to it I will see the headless resolution. I am very confused as to why it works with a format. Like it doesn't work I format the SD card and magically works again.

@steveiliop56
Copy link

steveiliop56 commented Mar 8, 2024

Soo it happened again. Here is the output of the pinctrl command

39: ip    pd | hi // CD0_SCL/GPIO39 = input
40: a2    pu | lo // CD1_SDA/GPIO40 = SDA4
41: a2    pu | hi // CD1_SCL/GPIO41 = SCL4

Dmesg:

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x414fd0b1]
[    0.000000] Linux version 6.1.0-rpi8-rpi-2712 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25)
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi 5 Model B Rev 1.0
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000018000000, 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-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000007ffff]
[    0.000000]   node   0: [mem 0x0000000000080000-0x000000003fbfffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000001ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000001ffffffff]
[    0.000000] On node 0, zone DMA: 256 pages in unavailable ranges
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 14 pages/cpu s177448 r8192 d43736 u229376
[    0.000000] pcpu-alloc: s177448 r8192 d43736 u229376 alloc=14*16384
[    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: Virtualization Host Extensions
[    0.000000] CPU features: detected: Hardware dirty bit management
[    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] alternatives: applying boot alternatives
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 521984
[    0.000000] Kernel command line: reboot=w coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=D8:3A:DD:D7:9E:1C vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000  console=ttyAMA10,115200 console=tty1 root=PARTUUID=17bc0e40-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=GR
[    0.000000] Unknown kernel command line parameters "splash", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 1048576 (order: 9, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 8, 4194304 bytes, linear)
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000fbffc000-0x00000000ffffc000] (64MB)
[    0.000000] Memory: 7897536K/8384512K available (12352K kernel code, 2184K rwdata, 4112K rodata, 4480K init, 1217K bss, 159296K reserved, 327680K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 40078 entries in 40 pages
[    0.000000] ftrace: allocated 40 pages with 2 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.000000] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000151] Console: colour dummy device 80x25
[    0.000169] printk: console [tty1] enabled
[    0.000183] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000188] pid_max: default: 32768 minimum: 301
[    0.000207] LSM: Security Framework initializing
[    0.000263] Mount-cache hash table entries: 16384 (order: 3, 131072 bytes, linear)
[    0.000287] Mountpoint-cache hash table entries: 16384 (order: 3, 131072 bytes, linear)
[    0.000616] cgroup: Disabling memory control group subsystem
[    0.000963] cblist_init_generic: Setting adjustable number of callback queues.
[    0.000966] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.000994] cblist_init_generic: Setting adjustable number of callback queues.
[    0.000996] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.001017] cblist_init_generic: Setting adjustable number of callback queues.
[    0.001019] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.001078] rcu: Hierarchical SRCU implementation.
[    0.001080] rcu:     Max phase no-delay instances is 1000.
[    0.001687] EFI services will not be available.
[    0.001779] smp: Bringing up secondary CPUs ...
[    0.001942] Detected PIPT I-cache on CPU1
[    0.001990] CPU1: Booted secondary processor 0x0000000100 [0x414fd0b1]
[    0.002173] Detected PIPT I-cache on CPU2
[    0.002209] CPU2: Booted secondary processor 0x0000000200 [0x414fd0b1]
[    0.002385] Detected PIPT I-cache on CPU3
[    0.002418] CPU3: Booted secondary processor 0x0000000300 [0x414fd0b1]
[    0.002443] smp: Brought up 1 node, 4 CPUs
[    0.002447] SMP: Total of 4 processors activated.
[    0.002450] CPU features: detected: 32-bit EL0 Support
[    0.002451] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.002453] CPU features: detected: Common not Private translations
[    0.002454] CPU features: detected: CRC32 instructions
[    0.002456] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.002458] CPU features: detected: LSE atomic instructions
[    0.002459] CPU features: detected: Privileged Access Never
[    0.002460] CPU features: detected: RAS Extension Support
[    0.002463] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.002496] CPU: All CPU(s) started at EL2
[    0.002497] alternatives: applying system-wide alternatives
[    0.004220] devtmpfs: initialized
[    0.006790] Enabled cp15_barrier support
[    0.006795] Enabled setend support
[    0.006854] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.006860] futex hash table entries: 1024 (order: 2, 65536 bytes, linear)
[    0.007710] pinctrl core: initialized pinctrl subsystem
[    0.007883] DMI not present or invalid.
[    0.008093] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.008626] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.008672] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.008719] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.008742] audit: initializing netlink subsys (disabled)
[    0.008789] audit: type=2000 audit(0.008:1): state=initialized audit_enabled=0 res=1
[    0.008901] thermal_sys: Registered thermal governor 'step_wise'
[    0.008912] cpuidle: using governor menu
[    0.008978] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.009007] ASID allocator initialised with 32768 entries
[    0.009298] Serial: AMBA PL011 UART driver
[    0.010277] bcm2835-mbox 107c013880.mailbox: mailbox enabled
[    0.010546] 107d001000.serial: ttyAMA10 at MMIO 0x107d001000 (irq = 15, base_baud = 0) is a PL011 rev2
[    0.010579] printk: console [ttyAMA10] enabled
[    0.016002] raspberrypi-firmware soc:firmware: Attached to firmware from 2024-02-16T15:28:41, variant start_cd
[    0.020002] raspberrypi-firmware soc:firmware: Firmware hash is 4c845bd300000000000000000000000000000000
[    0.026296] KASLR enabled
[    0.034694] bcm2835-dma 1000010000.dma: DMA legacy API manager, dmachans=0x1
[    0.035210] iommu: Default domain type: Translated
[    0.035213] iommu: DMA domain TLB invalidation policy: strict mode
[    0.035301] SCSI subsystem initialized
[    0.035347] usbcore: registered new interface driver usbfs
[    0.035355] usbcore: registered new interface driver hub
[    0.035362] usbcore: registered new device driver usb
[    0.035402] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.035466] pps_core: LinuxPPS API ver. 1 registered
[    0.035468] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.035471] PTP clock support registered
[    0.035689] vgaarb: loaded
[    0.035799] clocksource: Switched to clocksource arch_sys_counter
[    0.035920] VFS: Disk quotas dquot_6.6.0
[    0.035933] VFS: Dquot-cache hash table entries: 2048 (order 0, 16384 bytes)
[    0.035955] FS-Cache: Loaded
[    0.035983] CacheFiles: Loaded
[    0.037128] NET: Registered PF_INET protocol family
[    0.037273] IP idents hash table entries: 131072 (order: 6, 1048576 bytes, linear)
[    0.039679] tcp_listen_portaddr_hash hash table entries: 4096 (order: 2, 65536 bytes, linear)
[    0.039722] Table-perturb hash table entries: 65536 (order: 4, 262144 bytes, linear)
[    0.039728] TCP established hash table entries: 65536 (order: 5, 524288 bytes, linear)
[    0.040005] TCP bind hash table entries: 65536 (order: 7, 2097152 bytes, linear)
[    0.041586] TCP: Hash tables configured (established 65536 bind 65536)
[    0.041713] MPTCP token hash table entries: 8192 (order: 3, 196608 bytes, linear)
[    0.041819] UDP hash table entries: 4096 (order: 3, 131072 bytes, linear)
[    0.041918] UDP-Lite hash table entries: 4096 (order: 3, 131072 bytes, linear)
[    0.042063] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.042203] RPC: Registered named UNIX socket transport module.
[    0.042205] RPC: Registered udp transport module.
[    0.042206] RPC: Registered tcp transport module.
[    0.042208] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.042211] PCI: CLS 0 bytes, default 64
[    0.042318] Trying to unpack rootfs image as initramfs...
[    0.042579] hw perfevents: enabled with armv8_cortex_a76 PMU driver, 7 counters available
[    0.042694] kvm [1]: IPA Size Limit: 40 bits
[    0.042707] kvm [1]: GICV region size/alignment is unsafe, using trapping (reduced performance)
[    0.042740] kvm [1]: vgic interrupt IRQ9
[    0.042768] kvm [1]: VHE mode initialized successfully
[    0.294736] Freeing initrd memory: 17296K
[    0.329183] Initialise system trusted keyrings
[    0.329308] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.331054] zbud: loaded
[    0.331586] NFS: Registering the id_resolver key type
[    0.331594] Key type id_resolver registered
[    0.331596] Key type id_legacy registered
[    0.331620] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.331622] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.331677] F2FS not supported on PAGE_SIZE(16384) != 4096
[    0.331753] Key type asymmetric registered
[    0.331756] Asymmetric key parser 'x509' registered
[    0.331771] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.331835] io scheduler mq-deadline registered
[    0.331838] io scheduler kyber registered
[    0.332257] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7c502000, parent irq: 30)
[    0.332328] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d503000, parent irq: 31)
[    0.332375] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d508380, parent irq: 32)
[    0.332413] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d508400, parent irq: 33)
[    0.332453] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7d510600, parent irq: 34)
[    0.332494] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d517b00, parent irq: 35)
[    0.333384] gpio-461 (RP1 RUN pin): hogged as output/high
[    0.367404] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.367694] 107d50c000.serial: ttyS0 at MMIO 0x107d50c000 (irq = 37, base_baud = 6000000) is a 16550A
[    0.367727] serial serial0: tty port ttyS0 registered
[    0.368039] iproc-rng200 107d208000.rng: hwrng registered
[    0.368095] vc-mem: phys_addr:0x00000000 mem_base=0x3fc00000 mem_size:0x40000000(1024 MiB)
[    0.368311] bcm2712-iommu-cache 1000005b00.iommuc: bcm2712_iommu_cache_probe
[    0.370020] brd: module loaded
[    0.371369] loop: module loaded
[    0.371491] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    0.371607] Loading iSCSI transport class v2.0-870.
[    0.372381] usbcore: registered new device driver r8152-cfgselector
[    0.372392] usbcore: registered new interface driver r8152
[    0.372403] usbcore: registered new interface driver lan78xx
[    0.372410] usbcore: registered new interface driver smsc95xx
[    0.372495] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.372517] dwc_otg: FIQ enabled
[    0.372518] dwc_otg: NAK holdoff enabled
[    0.372519] dwc_otg: FIQ split-transaction FSM enabled
[    0.372522] Module dwc_common_port init
[    0.372652] usbcore: registered new interface driver uas
[    0.372662] usbcore: registered new interface driver usb-storage
[    0.372743] mousedev: PS/2 mouse device common for all mice
[    0.380723] rpi-rtc soc:rpi_rtc: registered as rtc0
[    0.382226] rpi-rtc soc:rpi_rtc: setting system clock to 2024-03-08T15:33:33 UTC (1709912013)
[    0.382536] bcm2835-wdt bcm2835-wdt: Poweroff handler already present!
[    0.382539] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.384899] sdhci: Secure Digital Host Controller Interface driver
[    0.384901] sdhci: Copyright(c) Pierre Ossman
[    0.384940] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.385110] ledtrig-cpu: registered to indicate activity on CPUs
[    0.385145] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    0.385156] hid: raw HID events driver (C) Jiri Kosina
[    0.385179] usbcore: registered new interface driver usbhid
[    0.385181] usbhid: USB HID core driver
[    0.385309] NET: Registered PF_PACKET protocol family
[    0.385331] Key type dns_resolver registered
[    0.385532] registered taskstats version 1
[    0.385545] Loading compiled-in X.509 certificates
[    0.391291] Loaded X.509 cert 'Debian Secure Boot CA: 6ccece7e4c6c0d1f6149f3dd27dfcc5cbb419ea1'
[    0.391318] Loaded X.509 cert 'Debian Secure Boot Signer 2022 - linux: 14011249c2675ea8e5148542202005810584b25f'
[    0.391457] Key type .fscrypt registered
[    0.391460] Key type fscrypt-provisioning registered
[    0.392648] brcm-pcie 1000120000.pcie: host bridge /axi/pcie@120000 ranges:
[    0.392655] brcm-pcie 1000120000.pcie:   No bus range found for /axi/pcie@120000, using [bus 00-ff]
[    0.392666] brcm-pcie 1000120000.pcie:      MEM 0x1f00000000..0x1ffffffffb -> 0x0000000000
[    0.392672] brcm-pcie 1000120000.pcie:      MEM 0x1c00000000..0x1effffffff -> 0x0400000000
[    0.392680] brcm-pcie 1000120000.pcie:   IB MEM 0x1f00000000..0x1f003fffff -> 0x0000000000
[    0.392685] brcm-pcie 1000120000.pcie:   IB MEM 0x0000000000..0x0fffffffff -> 0x1000000000
[    0.393890] brcm-pcie 1000120000.pcie: setting SCB_ACCESS_EN, READ_UR_MODE, MAX_BURST_SIZE
[    0.393898] brcm-pcie 1000120000.pcie: Forcing gen 2
[    0.393934] brcm-pcie 1000120000.pcie: PCI host bridge to bus 0000:00
[    0.393937] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.393940] pci_bus 0000:00: root bus resource [mem 0x1f00000000-0x1ffffffffb] (bus address [0x00000000-0xfffffffb])
[    0.393943] pci_bus 0000:00: root bus resource [mem 0x1c00000000-0x1effffffff pref] (bus address [0x400000000-0x6ffffffff])
[    0.393955] pci 0000:00:00.0: [14e4:2712] type 01 class 0x060400
[    0.393981] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.394931] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.499802] brcm-pcie 1000120000.pcie: link up, 5.0 GT/s PCIe x4 (!SSC)
[    0.499823] pci 0000:01:00.0: [1de4:0001] type 00 class 0x020000
[    0.499837] pci 0000:01:00.0: reg 0x10: [mem 0xffffc000-0xffffffff]
[    0.499846] pci 0000:01:00.0: reg 0x14: [mem 0xffc00000-0xffffffff]
[    0.499853] pci 0000:01:00.0: reg 0x18: [mem 0xffff0000-0xffffffff]
[    0.499923] pci 0000:01:00.0: supports D1
[    0.499925] pci 0000:01:00.0: PME# supported from D0 D1 D3hot D3cold
[    0.511809] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.511818] pci 0000:00:00.0: BAR 8: assigned [mem 0x1f00000000-0x1f005fffff]
[    0.511822] pci 0000:01:00.0: BAR 1: assigned [mem 0x1f00000000-0x1f003fffff]
[    0.511827] pci 0000:01:00.0: BAR 2: assigned [mem 0x1f00400000-0x1f0040ffff]
[    0.511831] pci 0000:01:00.0: BAR 0: assigned [mem 0x1f00410000-0x1f00413fff]
[    0.511836] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.511840] pci 0000:00:00.0:   bridge window [mem 0x1f00000000-0x1f005fffff]
[    0.511844] pci 0000:00:00.0: Max Payload Size set to  256/ 512 (was  128), Max Read Rq  512
[    0.511853] pci 0000:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  512
[    0.511919] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    0.511953] pcieport 0000:00:00.0: PME: Signaling with IRQ 38
[    0.512009] pcieport 0000:00:00.0: AER: enabled with IRQ 38
[    0.512078] rp1 0000:01:00.0: bar0 len 0x4000, start 0x1f00410000, end 0x1f00413fff, flags, 0x40200
[    0.512081] rp1 0000:01:00.0: bar1 len 0x400000, start 0x1f00000000, end 0x1f003fffff, flags, 0x40200
[    0.512090] rp1 0000:01:00.0: enabling device (0000 -> 0002)
[    0.513102] rp1 0000:01:00.0: chip_id 0x20001927
[    0.535338] macb 1f00100000.ethernet eth0: Cadence GEM rev 0x00070109 at 0x1f00100000 irq 106 (d8:3a:dd:d7:9e:1c)
[    0.535879] dw_axi_dmac_platform 1f00188000.dma: DesignWare AXI DMA Controller, 8 channels
[    0.595872] xhci-hcd xhci-hcd.0: xHCI Host Controller
[    0.595880] xhci-hcd xhci-hcd.0: new USB bus registered, assigned bus number 1
[    0.596337] xhci-hcd xhci-hcd.0: hcc params 0x0240fe6d hci version 0x110 quirks 0x0000000000010810
[    0.596348] xhci-hcd xhci-hcd.0: irq 131, io mem 0x1f00200000
[    0.596420] xhci-hcd xhci-hcd.0: xHCI Host Controller
[    0.596424] xhci-hcd xhci-hcd.0: new USB bus registered, assigned bus number 2
[    0.596427] xhci-hcd xhci-hcd.0: Host supports USB 3.0 SuperSpeed
[    0.596471] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    0.596475] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.596478] usb usb1: Product: xHCI Host Controller
[    0.596480] usb usb1: Manufacturer: Linux 6.1.0-rpi8-rpi-2712 xhci-hcd
[    0.596482] usb usb1: SerialNumber: xhci-hcd.0
[    0.596607] hub 1-0:1.0: USB hub found
[    0.596620] hub 1-0:1.0: 2 ports detected
[    0.596741] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    0.596744] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.596746] usb usb2: Product: xHCI Host Controller
[    0.596749] usb usb2: Manufacturer: Linux 6.1.0-rpi8-rpi-2712 xhci-hcd
[    0.596750] usb usb2: SerialNumber: xhci-hcd.0
[    0.596827] hub 2-0:1.0: USB hub found
[    0.596838] hub 2-0:1.0: 1 port detected
[    0.655863] xhci-hcd xhci-hcd.1: xHCI Host Controller
[    0.655869] xhci-hcd xhci-hcd.1: new USB bus registered, assigned bus number 3
[    0.656323] xhci-hcd xhci-hcd.1: hcc params 0x0240fe6d hci version 0x110 quirks 0x0000000000010810
[    0.656334] xhci-hcd xhci-hcd.1: irq 136, io mem 0x1f00300000
[    0.656396] xhci-hcd xhci-hcd.1: xHCI Host Controller
[    0.656399] xhci-hcd xhci-hcd.1: new USB bus registered, assigned bus number 4
[    0.656402] xhci-hcd xhci-hcd.1: Host supports USB 3.0 SuperSpeed
[    0.656437] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    0.656440] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.656443] usb usb3: Product: xHCI Host Controller
[    0.656445] usb usb3: Manufacturer: Linux 6.1.0-rpi8-rpi-2712 xhci-hcd
[    0.656447] usb usb3: SerialNumber: xhci-hcd.1
[    0.656536] hub 3-0:1.0: USB hub found
[    0.656548] hub 3-0:1.0: 2 ports detected
[    0.656658] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    0.656661] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.656663] usb usb4: Product: xHCI Host Controller
[    0.656665] usb usb4: Manufacturer: Linux 6.1.0-rpi8-rpi-2712 xhci-hcd
[    0.656667] usb usb4: SerialNumber: xhci-hcd.1
[    0.656745] hub 4-0:1.0: USB hub found
[    0.656755] hub 4-0:1.0: 1 port detected
[    0.656877] platform 1f00130000.dsi: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/dsi@128000/bridge@0/ports/port@0/endpoint
[    0.657506] bcm2712-iommu 1000005100.iommu: bcm2712_iommu_init: DEBUG_INFO = 0x20804774
[    0.657830] platform 1000800000.codec: bcm2712_iommu_probe_device: MMU 1000005100.iommu
[    0.657833] platform 1000800000.codec: bcm2712_iommu_device_group: MMU 1000005100.iommu
[    0.657837] platform 1000800000.codec: Adding to iommu group 0
[    0.657849] platform 1000880000.pisp_be: bcm2712_iommu_probe_device: MMU 1000005100.iommu
[    0.657852] platform 1000880000.pisp_be: bcm2712_iommu_device_group: MMU 1000005100.iommu
[    0.657856] platform 1000880000.pisp_be: Adding to iommu group 0
[    0.657886] platform 1000800000.codec: bcm2712_iommu_attach_dev: MMU 1000005100.iommu
[    0.657888] platform 1000880000.pisp_be: bcm2712_iommu_attach_dev: MMU 1000005100.iommu
[    0.657892] bcm2712-iommu 1000005100.iommu: bcm2712_iommu_probe: Success
[    0.658241] bcm2712-iommu 1000005200.iommu: bcm2712_iommu_init: DEBUG_INFO = 0x20804774
[    0.658528] platform axi:gpu: bcm2712_iommu_probe_device: MMU 1000005200.iommu
[    0.658530] platform axi:gpu: bcm2712_iommu_device_group: MMU 1000005200.iommu
[    0.658534] platform axi:gpu: Adding to iommu group 1
[    0.658563] platform axi:gpu: bcm2712_iommu_attach_dev: MMU 1000005200.iommu
[    0.658566] bcm2712-iommu 1000005200.iommu: bcm2712_iommu_probe: Success
[    0.658871] bcm2712-iommu 1000005280.iommu: bcm2712_iommu_init: DEBUG_INFO = 0x20804774
[    0.659169] platform 1f00130000.dsi: bcm2712_iommu_probe_device: MMU 1000005280.iommu
[    0.659171] platform 1f00130000.dsi: bcm2712_iommu_device_group: MMU 1000005280.iommu
[    0.659175] platform 1f00130000.dsi: Adding to iommu group 2
[    0.659179] platform 1f00130000.dsi: bcm2712_iommu_attach_dev: MMU 1000005280.iommu
[    0.659182] bcm2712-iommu 1000005280.iommu: bcm2712_iommu_probe: Success
[    0.659294] sdhci-brcmstb 1000fff000.mmc: there is not valid maps for state default
[    0.659640] mmc0: CQHCI version 5.10
[    0.659665] mmc1: CQHCI version 5.10
[    0.660780] of_cfs_init
[    0.660811] of_cfs_init: OK
[    0.695449] mmc0: SDHCI controller on 1000fff000.mmc [1000fff000.mmc] using ADMA 64-bit
[    0.794628] mmc0: new ultra high speed SDR104 SDHC card at address e624
[    0.794864] mmcblk0: mmc0:e624 SC32G 29.7 GiB
[    0.797035]  mmcblk0: p1 p2
[    0.797128] mmcblk0: mmc0:e624 SC32G 29.7 GiB (quirks 0x00004000)
[    0.850342] mmc1: SDHCI controller on 1001100000.mmc [1001100000.mmc] using ADMA 64-bit
[    0.853085] Freeing unused kernel memory: 4480K
[    0.853130] Run /init as init process
[    0.853132]   with arguments:
[    0.853133]     /init
[    0.853135]     splash
[    0.853136]   with environment:
[    0.853137]     HOME=/
[    0.853138]     TERM=linux
[    0.880793] mmc1: new ultra high speed DDR50 SDIO card at address 0001
[    0.986762] input: pwr_button as /devices/platform/pwr_button/input/input0
[    1.002910] brcmstb-i2c 107d508200.i2c:  @200000hz registered in interrupt mode
[    1.003023] brcmstb-i2c 107d508280.i2c:  @200000hz registered in interrupt mode
[    1.051771] drm-rp1-dsi 1f00130000.dsi: bcm2712_iommu_of_xlate: MMU 1000005280.iommu
[    1.054036] mipi-dsi 1f00130000.dsi.0: Fixed dependency cycle(s) with /panel_disp@1/port/endpoint
[    1.065881] [drm] Initialized v3d 1.0.0 20180419 for 1002000000.v3d on minor 1
[    1.086778] vc4-drm axi:gpu: bcm2712_iommu_of_xlate: MMU 1000005200.iommu
[    1.089410] vc4-drm axi:gpu: bound 107c580000.hvs (ops vc4_hvs_ops [vc4])
[    1.091705] Registered IR keymap rc-cec
[    1.091745] rc rc0: vc4-hdmi-0 as /devices/platform/soc/107c701400.hdmi/rc/rc0
[    1.091788] input: vc4-hdmi-0 as /devices/platform/soc/107c701400.hdmi/rc/rc0/input1
[    1.092393] vc4-drm axi:gpu: bound 107c701400.hdmi (ops vc4_hdmi_ops [vc4])
[    1.094700] Registered IR keymap rc-cec
[    1.094737] rc rc1: vc4-hdmi-1 as /devices/platform/soc/107c706400.hdmi/rc/rc1
[    1.094784] input: vc4-hdmi-1 as /devices/platform/soc/107c706400.hdmi/rc/rc1/input2
[    1.095501] vc4-drm axi:gpu: bound 107c706400.hdmi (ops vc4_hdmi_ops [vc4])
[    1.095624] vc4-drm axi:gpu: bound 107c500000.mop (ops vc4_txp_ops [vc4])
[    1.095695] vc4-drm axi:gpu: bound 107c501000.moplet (ops vc4_txp_ops [vc4])
[    1.095767] vc4-drm axi:gpu: bound 107c410000.pixelvalve (ops vc4_crtc_ops [vc4])
[    1.095854] vc4-drm axi:gpu: bound 107c411000.pixelvalve (ops vc4_crtc_ops [vc4])
[    1.096386] [drm] Initialized vc4 0.0.0 20140616 for axi:gpu on minor 2
[    1.100343] vc4-drm axi:gpu: [drm] Cannot find any crtc or sizes
[    1.104637] vc4-drm axi:gpu: [drm] Cannot find any crtc or sizes
[    1.108564] vc4-drm axi:gpu: [drm] Cannot find any crtc or sizes
[    1.128762] i2c_designware 1f00080000.i2c: i2c_dw_handle_tx_abort: lost arbitration
[    1.223899] raid6: neonx8   gen()  7776 MB/s
[    1.291810] raid6: neonx4   gen()  6550 MB/s
[    1.359802] raid6: neonx2   gen()  5022 MB/s
[    1.427817] raid6: neonx1   gen()  4593 MB/s
[    1.495817] raid6: int64x8  gen()  3232 MB/s
[    1.563826] raid6: int64x4  gen()  3058 MB/s
[    1.631808] raid6: int64x2  gen()  2399 MB/s
[    1.699803] raid6: int64x1  gen()  2285 MB/s
[    1.699805] raid6: using algorithm neonx8 gen() 7776 MB/s
[    1.767797] raid6: .... xor() 5298 MB/s, rmw enabled
[    1.767799] raid6: using neon recovery algorithm
[    1.768651] xor: measuring software checksum speed
[    1.769648]    8regs           :  9938 MB/sec
[    1.770652]    32regs          :  9836 MB/sec
[    1.771387]    arm64_neon      : 13432 MB/sec
[    1.771388] xor: using function: arm64_neon (13432 MB/sec)
[    1.771746] async_tx: api initialized (async)
[    2.012801] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[    2.147806] i2c_designware 1f00080000.i2c: controller timed out
[    2.153952] drm-rp1-dsi 1f00130000.dsi: rp1dsi_host_attach: Attach DSI device name=tc358762 channel=0 lanes=1 format=0 flags=0x815 hs_rate=0 lp_rate=0
[    2.154439] [drm] Initialized drm-rp1-dsi 1.0.0 0 for 1f00130000.dsi on minor 0
[    3.171808] i2c_designware 1f00080000.i2c: controller timed out
[    4.195802] i2c_designware 1f00080000.i2c: controller timed out
[    5.219804] i2c_designware 1f00080000.i2c: controller timed out
[    6.243801] i2c_designware 1f00080000.i2c: controller timed out
[    6.331882] drm-rp1-dsi 1f00130000.dsi: [drm] rp1dsi: Nominal byte clock 72000000; scale by 4/12
[    7.363806] i2c_designware 1f00080000.i2c: controller timed out
[    8.387801] i2c_designware 1f00080000.i2c: controller timed out
[    9.411803] i2c_designware 1f00080000.i2c: controller timed out
[   10.435802] i2c_designware 1f00080000.i2c: controller timed out
[   11.459801] i2c_designware 1f00080000.i2c: controller timed out
[   12.803798] i2c_designware 1f00080000.i2c: controller timed out
[   13.827799] i2c_designware 1f00080000.i2c: controller timed out
[   14.851801] i2c_designware 1f00080000.i2c: controller timed out
[   15.875799] i2c_designware 1f00080000.i2c: controller timed out
[   16.899799] i2c_designware 1f00080000.i2c: controller timed out
[   17.923799] i2c_designware 1f00080000.i2c: controller timed out
[   18.947799] i2c_designware 1f00080000.i2c: controller timed out
[   19.971799] i2c_designware 1f00080000.i2c: controller timed out
[   20.995799] i2c_designware 1f00080000.i2c: controller timed out
[   22.019799] i2c_designware 1f00080000.i2c: controller timed out
[   22.019804] panel-simple 100000001.panel_disp: [drm:drm_panel_enable [drm]] failed to enable backlight: -110
[   22.025378] Console: switching to colour frame buffer device 100x30
[   22.042923] drm-rp1-dsi 1f00130000.dsi: [drm] fb0: drm-rp1-dsidrmf frame buffer device
[   22.055803] drm-rp1-dsi 1f00130000.dsi: rp1dsi_bind succeeded
[   22.114319] NET: Registered PF_INET6 protocol family
[   22.114727] Segment Routing with IPv6
[   22.114735] In-situ OAM (IOAM) with IPv6
[   22.149069] systemd[1]: systemd 252.22-1~deb12u1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[   22.149079] systemd[1]: Detected architecture arm64.
[   22.158433] systemd[1]: Hostname set to <raspberrypi5>.
[   22.241468] uart-pl011 107d001000.serial: no DMA platform data
[   22.496219] systemd[1]: Queued start job for default target graphical.target.
[   22.524494] systemd[1]: Created slice system-getty.slice - Slice /system/getty.
[   22.524833] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe.
[   22.525101] systemd[1]: Created slice system-serial\x2dgetty.slice - Slice /system/serial-getty.
[   22.525361] systemd[1]: Created slice system-systemd\x2dfsck.slice - Slice /system/systemd-fsck.
[   22.525506] systemd[1]: Created slice user.slice - User and Session Slice.
[   22.525594] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[   22.525800] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
[   22.525828] systemd[1]: Expecting device dev-disk-by\x2dpartuuid-17bc0e40\x2d01.device - /dev/disk/by-partuuid/17bc0e40-01...
[   22.525843] systemd[1]: Expecting device dev-ttyAMA10.device - /dev/ttyAMA10...
[   22.525884] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes.
[   22.525918] systemd[1]: Reached target network-pre.target - Preparation for Network.
[   22.525945] systemd[1]: Reached target nss-user-lookup.target - User and Group Name Lookups.
[   22.525978] systemd[1]: Reached target slices.target - Slice Units.
[   22.526009] systemd[1]: Reached target swap.target - Swaps.
[   22.526036] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes.
[   22.526185] systemd[1]: Listening on systemd-fsckd.socket - fsck to fsckd communication Socket.
[   22.526250] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[   22.526528] systemd[1]: Listening on systemd-journald-audit.socket - Journal Audit Socket.
[   22.526651] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[   22.526779] systemd[1]: Listening on systemd-journald.socket - Journal Socket.
[   22.526936] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket.
[   22.527041] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[   22.527206] systemd[1]: dev-hugepages.mount - Huge Pages File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
[   22.528058] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System...
[   22.529069] systemd[1]: Mounting sys-kernel-debug.mount - Kernel Debug File System...
[   22.530136] systemd[1]: Mounting sys-kernel-tracing.mount - Kernel Trace File System...
[   22.530353] systemd[1]: auth-rpcgss-module.service - Kernel Module supporting RPCSEC_GSS was skipped because of an unmet condition check (ConditionPathExists=/etc/krb5.keytab).
[   22.532103] systemd[1]: Starting fake-hwclock.service - Restore / save the current clock...
[   22.533874] systemd[1]: Starting keyboard-setup.service - Set the console keyboard layout...
[   22.535423] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes...
[   22.537059] systemd[1]: Starting modprobe@configfs.service - Load Kernel Module configfs...
[   22.538747] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
[   22.540449] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
[   22.542177] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
[   22.544739] systemd[1]: Starting modprobe@fuse.service - Load Kernel Module fuse...
[   22.546598] systemd[1]: Starting modprobe@loop.service - Load Kernel Module loop...
[   22.546852] systemd[1]: systemd-fsck-root.service - File System Check on Root Device was skipped because of an unmet condition check (ConditionPathExists=!/run/initramfs/fsck-root).
[   22.549138] systemd[1]: Starting systemd-journald.service - Journal Service...
[   22.555391] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
[   22.556770] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
[   22.558020] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices...
[   22.560236] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System.
[   22.560576] systemd[1]: Mounted sys-kernel-debug.mount - Kernel Debug File System.
[   22.560807] systemd[1]: Mounted sys-kernel-tracing.mount - Kernel Trace File System.
[   22.561158] systemd[1]: Finished kmod-static-nodes.service - Create List of Static Device Nodes.
[   22.561685] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[   22.561904] systemd[1]: Finished modprobe@configfs.service - Load Kernel Module configfs.
[   22.562264] systemd[1]: modprobe@drm.service: Deactivated successfully.
[   22.562460] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm.
[   22.562791] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
[   22.562910] systemd[1]: Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
[   22.563234] systemd[1]: modprobe@loop.service: Deactivated successfully.
[   22.563377] systemd[1]: Finished modprobe@loop.service - Load Kernel Module loop.
[   22.564199] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
[   22.564741] systemd[1]: Mounting sys-kernel-config.mount - Kernel Configuration File System...
[   22.565374] systemd[1]: modprobe@dm_mod.service: Deactivated successfully.
[   22.565602] systemd[1]: Finished modprobe@dm_mod.service - Load Kernel Module dm_mod.
[   22.565878] systemd[1]: systemd-repart.service - Repartition Root Disk was skipped because no trigger condition checks were met.
[   22.567092] fuse: init (API version 7.37)
[   22.567547] systemd[1]: Mounted sys-kernel-config.mount - Kernel Configuration File System.
[   22.568142] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[   22.568324] systemd[1]: Finished modprobe@fuse.service - Load Kernel Module fuse.
[   22.569656] systemd[1]: Mounting sys-fs-fuse-connections.mount - FUSE Control File System...
[   22.572331] systemd[1]: Mounted sys-fs-fuse-connections.mount - FUSE Control File System.
[   22.585468] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[   22.586881] systemd[1]: Finished fake-hwclock.service - Restore / save the current clock.
[   22.587440] systemd[1]: Finished systemd-remount-fs.service - Remount Root and Kernel File Systems.
[   22.587735] systemd[1]: systemd-firstboot.service - First Boot Wizard was skipped because of an unmet condition check (ConditionFirstBoot=yes).
[   22.587788] systemd[1]: systemd-pstore.service - Platform Persistent Storage Archival was skipped because of an unmet condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).
[   22.589071] systemd[1]: Starting systemd-random-seed.service - Load/Save Random Seed...
[   22.590267] i2c_dev: i2c /dev entries driver
[   22.592289] systemd[1]: Starting systemd-sysusers.service - Create System Users...
[   22.592872] systemd[1]: Finished systemd-modules-load.service - Load Kernel Modules.
[   22.594656] systemd[1]: Starting systemd-sysctl.service - Apply Kernel Variables...
[   22.624214] systemd[1]: Finished systemd-random-seed.service - Load/Save Random Seed.
[   22.624556] systemd[1]: first-boot-complete.target - First Boot Complete was skipped because of an unmet condition check (ConditionFirstBoot=yes).
[   22.630033] systemd[1]: Finished systemd-sysctl.service - Apply Kernel Variables.
[   22.633136] systemd[1]: Started systemd-journald.service - Journal Service.
[   22.649424] systemd-journald[346]: Received client request to flush runtime journal.
[   23.336124] rpi-gpiomem 107d508500.gpiomem: window base 0x107d508500 size 0x00000040
[   23.336462] rpi-gpiomem 107d508500.gpiomem: initialised 1 regions as /dev/gpiomem1
[   23.336514] rpi-gpiomem 107d517c00.gpiomem: window base 0x107d517c00 size 0x00000040
[   23.336545] rpi-gpiomem 107d517c00.gpiomem: initialised 1 regions as /dev/gpiomem2
[   23.336570] rpi-gpiomem 107d504100.gpiomem: window base 0x107d504100 size 0x00000020
[   23.336601] rpi-gpiomem 107d504100.gpiomem: initialised 1 regions as /dev/gpiomem3
[   23.336630] rpi-gpiomem 107d510700.gpiomem: window base 0x107d510700 size 0x00000020
[   23.336667] rpi-gpiomem 107d510700.gpiomem: initialised 1 regions as /dev/gpiomem4
[   23.336786] rpi-gpiomem 1f000d0000.gpiomem: window base 0x1f000d0000 size 0x00030000
[   23.336834] rpi-gpiomem 1f000d0000.gpiomem: initialised 1 regions as /dev/gpiomem0
[   23.368959] mc: Linux media interface: v0.10
[   23.398972] videodev: Linux video capture interface: v2.00
[   23.454993] pispbe 1000880000.pisp_be: bcm2712_iommu_of_xlate: MMU 1000005100.iommu
[   23.462356] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned.
[   23.464417] rpivid 1000800000.codec: bcm2712_iommu_of_xlate: MMU 1000005100.iommu
[   23.470328] pispbe 1000880000.pisp_be: pispbe_probe: HW version:  0x02252700
[   23.470336] pispbe 1000880000.pisp_be: pispbe_probe: BatchStatus: 0x00000000
[   23.470338] pispbe 1000880000.pisp_be: pispbe_probe: Status:      0x00000000
[   23.470341] pispbe 1000880000.pisp_be: Register nodes for group 0
[   23.476449] rpivid 1000800000.codec: Device registered as /dev/video19
[   23.476724] pispbe 1000880000.pisp_be: input device node registered as /dev/video20
[   23.476958] pispbe 1000880000.pisp_be: tdn_input device node registered as /dev/video21
[   23.477075] pispbe 1000880000.pisp_be: stitch_input device node registered as /dev/video22
[   23.477161] pispbe 1000880000.pisp_be: hog_output device node registered as /dev/video23
[   23.477252] pispbe 1000880000.pisp_be: output0 device node registered as /dev/video24
[   23.477333] pispbe 1000880000.pisp_be: output1 device node registered as /dev/video25
[   23.477419] pispbe 1000880000.pisp_be: tdn_output device node registered as /dev/video26
[   23.477511] pispbe 1000880000.pisp_be: stitch_output device node registered as /dev/video27
[   23.477644] pispbe 1000880000.pisp_be: config device node registered as /dev/video28
[   23.477996] pispbe 1000880000.pisp_be: Register nodes for group 1
[   23.478127] pispbe 1000880000.pisp_be: input device node registered as /dev/video29
[   23.478280] pispbe 1000880000.pisp_be: tdn_input device node registered as /dev/video30
[   23.478387] pispbe 1000880000.pisp_be: stitch_input device node registered as /dev/video31
[   23.480956] pispbe 1000880000.pisp_be: hog_output device node registered as /dev/video32
[   23.483110] pispbe 1000880000.pisp_be: output0 device node registered as /dev/video33
[   23.483249] pispbe 1000880000.pisp_be: output1 device node registered as /dev/video34
[   23.483344] pispbe 1000880000.pisp_be: tdn_output device node registered as /dev/video35
[   23.483439] pispbe 1000880000.pisp_be: stitch_output device node registered as /dev/video36
[   23.483517] pispbe 1000880000.pisp_be: config device node registered as /dev/video37
[   23.529077] Bluetooth: Core ver 2.22
[   23.529120] NET: Registered PF_BLUETOOTH protocol family
[   23.529123] Bluetooth: HCI device and connection manager initialized
[   23.529131] Bluetooth: HCI socket layer initialized
[   23.529135] Bluetooth: L2CAP socket layer initialized
[   23.529141] Bluetooth: SCO socket layer initialized
[   23.538623] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   23.538980] cfg80211: Loaded X.509 cert 'benh@debian.org: 577e021cb980e0e820821ba7b54b4961b8b4fadf'
[   23.539301] cfg80211: Loaded X.509 cert 'romain.perier@gmail.com: 3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'
[   23.539634] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   23.543642] cfg80211: Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[   23.557204] Bluetooth: HCI UART driver ver 2.3
[   23.557212] Bluetooth: HCI UART protocol H4 registered
[   23.557237] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   23.557314] Bluetooth: HCI UART protocol Broadcom registered
[   23.557395] hci_uart_bcm serial0-0: supply vbat not found, using dummy regulator
[   23.557462] hci_uart_bcm serial0-0: supply vddio not found, using dummy regulator
[   23.579402] edt_ft5x06 4-0038: supply iovcc not found, using dummy regulator
[   23.608865] brcmfmac: F1 signature read @0x18000000=0x15264345
[   23.614009] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[   23.614181] usbcore: registered new interface driver brcmfmac
[   23.816286] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Apr 15 2021 03:03:20 version 7.45.234 (4ca95bb CY) FWID 01-996384e2
[   23.920238] Bluetooth: hci0: BCM: chip id 107
[   23.920445] Bluetooth: hci0: BCM: features 0x2f
[   23.921557] Bluetooth: hci0: BCM4345C0
[   23.921560] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0000
[   23.924859] Bluetooth: hci0: BCM4345C0 'brcm/BCM4345C0.raspberrypi,5-model-b.hcd' Patch
[   24.579804] i2c_designware 1f00080000.i2c: controller timed out
[   24.596432] Bluetooth: hci0: BCM: features 0x2f
[   24.597818] Bluetooth: hci0: BCM43455 37.4MHz Raspberry Pi 3+-0190
[   24.597820] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0382
[   24.598139] Bluetooth: hci0: BCM: Using default device address (43:45:c0:00:1f:ac)
[   25.603810] i2c_designware 1f00080000.i2c: controller timed out
[   26.627802] i2c_designware 1f00080000.i2c: controller timed out
[   27.651804] i2c_designware 1f00080000.i2c: controller timed out
[   28.675801] i2c_designware 1f00080000.i2c: controller timed out
[   29.699802] i2c_designware 1f00080000.i2c: controller timed out
[   30.723801] i2c_designware 1f00080000.i2c: controller timed out
[   31.747805] i2c_designware 1f00080000.i2c: controller timed out
[   32.771805] i2c_designware 1f00080000.i2c: controller timed out
[   33.795803] i2c_designware 1f00080000.i2c: controller timed out
[   34.819801] i2c_designware 1f00080000.i2c: controller timed out
[   35.843807] i2c_designware 1f00080000.i2c: controller timed out
[   36.867800] i2c_designware 1f00080000.i2c: controller timed out
[   37.891800] i2c_designware 1f00080000.i2c: controller timed out
[   37.891806] edt_ft5x06 4-0038: touchscreen probe failed
[   37.891901] edt_ft5x06: probe of 4-0038 failed with error -110
[   38.915808] i2c_designware 1f00080000.i2c: controller timed out
[   39.939802] i2c_designware 1f00080000.i2c: controller timed out
[   40.963804] i2c_designware 1f00080000.i2c: controller timed out
[   41.987810] i2c_designware 1f00080000.i2c: controller timed out
[   43.011807] i2c_designware 1f00080000.i2c: controller timed out
[   44.035804] i2c_designware 1f00080000.i2c: controller timed out
[   45.059803] i2c_designware 1f00080000.i2c: controller timed out
[   46.083802] i2c_designware 1f00080000.i2c: controller timed out
[   47.107803] i2c_designware 1f00080000.i2c: controller timed out
[   47.377565] Adding 102368k swap on /var/swap.  Priority:-2 extents:1 across:102368k SSFS
[   47.501061] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   47.501068] Bluetooth: BNEP filters: protocol multicast
[   47.501075] Bluetooth: BNEP socket layer initialized
[   47.503507] Bluetooth: MGMT ver 1.22
[   47.519088] NET: Registered PF_ALG protocol family
[   48.163812] i2c_designware 1f00080000.i2c: controller timed out
[   48.265910] macb 1f00100000.ethernet eth0: PHY [1f00100000.ethernet-ffffffff:01] driver [Broadcom BCM54213PE] (irq=POLL)
[   48.265919] macb 1f00100000.ethernet eth0: configuring for phy/rgmii-id link mode
[   48.268703] pps pps0: new PPS source ptp0
[   48.268878] macb 1f00100000.ethernet: gem-ptp-timer ptp clock registered.
[   48.279291] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[   49.187809] i2c_designware 1f00080000.i2c: controller timed out
[   49.982244] tun: Universal TUN/TAP device driver, 1.6
[   50.211809] i2c_designware 1f00080000.i2c: controller timed out
[   50.355116] Bluetooth: RFCOMM TTY layer initialized
[   50.355130] Bluetooth: RFCOMM socket layer initialized
[   50.355138] Bluetooth: RFCOMM ver 1.11
[   51.235804] i2c_designware 1f00080000.i2c: controller timed out
[   52.263816] i2c_designware 1f00080000.i2c: controller timed out
[   53.283810] i2c_designware 1f00080000.i2c: controller timed out
[   53.739670] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   54.307810] i2c_designware 1f00080000.i2c: controller timed out
[   55.331803] i2c_designware 1f00080000.i2c: controller timed out
[   56.355805] i2c_designware 1f00080000.i2c: controller timed out
[   57.379804] i2c_designware 1f00080000.i2c: controller timed out
[   58.435804] i2c_designware 1f00080000.i2c: controller timed out
[   59.459813] i2c_designware 1f00080000.i2c: controller timed out
[   60.483807] i2c_designware 1f00080000.i2c: controller timed out
[   61.507817] i2c_designware 1f00080000.i2c: controller timed out
[   62.531813] i2c_designware 1f00080000.i2c: controller timed out
[   63.555805] i2c_designware 1f00080000.i2c: controller timed out
[   64.579810] i2c_designware 1f00080000.i2c: controller timed out
[   65.603811] i2c_designware 1f00080000.i2c: controller timed out
[   66.627812] i2c_designware 1f00080000.i2c: controller timed out
[   67.651824] i2c_designware 1f00080000.i2c: controller timed out
[   68.739811] i2c_designware 1f00080000.i2c: controller timed out
[   69.804432] i2c_designware 1f00080000.i2c: controller timed out
[   70.870794] i2c_designware 1f00080000.i2c: controller timed out
[   71.931299] i2c_designware 1f00080000.i2c: controller timed out
[   72.986971] i2c_designware 1f00080000.i2c: controller timed out
[   74.038533] i2c_designware 1f00080000.i2c: controller timed out
[   75.086433] i2c_designware 1f00080000.i2c: controller timed out
[   76.131172] i2c_designware 1f00080000.i2c: controller timed out
[   77.173303] i2c_designware 1f00080000.i2c: controller timed out
[   78.213127] i2c_designware 1f00080000.i2c: controller timed out
[   79.283237] i2c_designware 1f00080000.i2c: controller timed out
[   80.319121] i2c_designware 1f00080000.i2c: controller timed out
[   81.353494] i2c_designware 1f00080000.i2c: controller timed out
[   82.386508] i2c_designware 1f00080000.i2c: controller timed out
[   83.418369] i2c_designware 1f00080000.i2c: controller timed out
[   84.449220] i2c_designware 1f00080000.i2c: controller timed out
[   85.479226] i2c_designware 1f00080000.i2c: controller timed out
[   86.508444] i2c_designware 1f00080000.i2c: controller timed out
[   87.536963] i2c_designware 1f00080000.i2c: controller timed out
[   88.564909] i2c_designware 1f00080000.i2c: controller timed out
[   89.656545] i2c_designware 1f00080000.i2c: controller timed out
[   90.683517] i2c_designware 1f00080000.i2c: controller timed out
[   91.710117] i2c_designware 1f00080000.i2c: controller timed out
[   92.736382] i2c_designware 1f00080000.i2c: controller timed out
[   93.762378] i2c_designware 1f00080000.i2c: controller timed out
[   94.788092] i2c_designware 1f00080000.i2c: controller timed out
[   95.813602] i2c_designware 1f00080000.i2c: controller timed out
[   96.838919] i2c_designware 1f00080000.i2c: controller timed out
[   97.864067] i2c_designware 1f00080000.i2c: controller timed out
[   98.889070] i2c_designware 1f00080000.i2c: controller timed out
[   99.978009] i2c_designware 1f00080000.i2c: controller timed out
[  101.002754] i2c_designware 1f00080000.i2c: controller timed out
[  102.026867] i2c_designware 1f00080000.i2c: controller timed out
[  103.050429] i2c_designware 1f00080000.i2c: controller timed out
[  104.073962] i2c_designware 1f00080000.i2c: controller timed out
[  105.097646] i2c_designware 1f00080000.i2c: controller timed out
[  106.121433] i2c_designware 1f00080000.i2c: controller timed out
[  107.145188] i2c_designware 1f00080000.i2c: controller timed out
[  108.168871] i2c_designware 1f00080000.i2c: controller timed out
[  109.192648] i2c_designware 1f00080000.i2c: controller timed out
[  110.280302] i2c_designware 1f00080000.i2c: controller timed out
[  111.304076] i2c_designware 1f00080000.i2c: controller timed out
[  112.327852] i2c_designware 1f00080000.i2c: controller timed out
[  113.351673] i2c_designware 1f00080000.i2c: controller timed out
[  114.375442] i2c_designware 1f00080000.i2c: controller timed out
[  115.399262] i2c_designware 1f00080000.i2c: controller timed out
[  116.423092] i2c_designware 1f00080000.i2c: controller timed out
[  117.446989] i2c_designware 1f00080000.i2c: controller timed out
[  118.470769] i2c_designware 1f00080000.i2c: controller timed out
[  119.494621] i2c_designware 1f00080000.i2c: controller timed out
[  120.550492] i2c_designware 1f00080000.i2c: controller timed out
[  121.574360] i2c_designware 1f00080000.i2c: controller timed out
[  122.598201] i2c_designware 1f00080000.i2c: controller timed out
[  123.622103] i2c_designware 1f00080000.i2c: controller timed out
[  124.645961] i2c_designware 1f00080000.i2c: controller timed out
[  125.669866] i2c_designware 1f00080000.i2c: controller timed out
[  126.693740] i2c_designware 1f00080000.i2c: controller timed out
[  127.717631] i2c_designware 1f00080000.i2c: controller timed out
[  128.741541] i2c_designware 1f00080000.i2c: controller timed out
[  129.765445] i2c_designware 1f00080000.i2c: controller timed out
[  130.853398] i2c_designware 1f00080000.i2c: controller timed out
[  131.877307] i2c_designware 1f00080000.i2c: controller timed out
[  132.901215] i2c_designware 1f00080000.i2c: controller timed out
[  133.925137] i2c_designware 1f00080000.i2c: controller timed out
[  134.949047] i2c_designware 1f00080000.i2c: controller timed out
[  135.972963] i2c_designware 1f00080000.i2c: controller timed out
[  136.996886] i2c_designware 1f00080000.i2c: controller timed out
[  138.020812] i2c_designware 1f00080000.i2c: controller timed out
[  139.044720] i2c_designware 1f00080000.i2c: controller timed out
[  140.068676] i2c_designware 1f00080000.i2c: controller timed out
[  141.124569] i2c_designware 1f00080000.i2c: controller timed out
[  142.148506] i2c_designware 1f00080000.i2c: controller timed out
[  143.172438] i2c_designware 1f00080000.i2c: controller timed out
[  144.196379] i2c_designware 1f00080000.i2c: controller timed out
[  145.220304] i2c_designware 1f00080000.i2c: controller timed out
[  146.244248] i2c_designware 1f00080000.i2c: controller timed out
[  147.268174] i2c_designware 1f00080000.i2c: controller timed out
[  148.292142] i2c_designware 1f00080000.i2c: controller timed out
[  149.316060] i2c_designware 1f00080000.i2c: controller timed out
[  150.340016] i2c_designware 1f00080000.i2c: controller timed out
[  151.427945] i2c_designware 1f00080000.i2c: controller timed out
[  152.451887] i2c_designware 1f00080000.i2c: controller timed out
[  153.475838] i2c_designware 1f00080000.i2c: controller timed out
[  154.499813] i2c_designware 1f00080000.i2c: controller timed out
[  155.523733] i2c_designware 1f00080000.i2c: controller timed out
[  156.547687] i2c_designware 1f00080000.i2c: controller timed out
[  157.571627] i2c_designware 1f00080000.i2c: controller timed out
[  158.595586] i2c_designware 1f00080000.i2c: controller timed out
[  159.619539] i2c_designware 1f00080000.i2c: controller timed out
[  160.643487] i2c_designware 1f00080000.i2c: controller timed out
[  161.667429] i2c_designware 1f00080000.i2c: controller timed out
[  162.691386] i2c_designware 1f00080000.i2c: controller timed out
[  163.715351] i2c_designware 1f00080000.i2c: controller timed out
[  164.739295] i2c_designware 1f00080000.i2c: controller timed out
[  165.763293] i2c_designware 1f00080000.i2c: controller timed out
[  166.787353] i2c_designware 1f00080000.i2c: controller timed out
[  167.811402] i2c_designware 1f00080000.i2c: controller timed out
[  168.835456] i2c_designware 1f00080000.i2c: controller timed out
[  169.859523] i2c_designware 1f00080000.i2c: controller timed out
[  170.883549] i2c_designware 1f00080000.i2c: controller timed out
[  171.907599] i2c_designware 1f00080000.i2c: controller timed out
[  172.931661] i2c_designware 1f00080000.i2c: controller timed out
[  173.955668] i2c_designware 1f00080000.i2c: controller timed out
[  174.979706] i2c_designware 1f00080000.i2c: controller timed out
[  176.003735] i2c_designware 1f00080000.i2c: controller timed out
[  177.027774] i2c_designware 1f00080000.i2c: controller timed out
[  178.051798] i2c_designware 1f00080000.i2c: controller timed out
[  179.075824] i2c_designware 1f00080000.i2c: controller timed out
[  180.099852] i2c_designware 1f00080000.i2c: controller timed out
[  181.123875] i2c_designware 1f00080000.i2c: controller timed out
[  182.147901] i2c_designware 1f00080000.i2c: controller timed out
[  183.171917] i2c_designware 1f00080000.i2c: controller timed out
[  184.195942] i2c_designware 1f00080000.i2c: controller timed out
[  185.219953] i2c_designware 1f00080000.i2c: controller timed out
[  186.243977] i2c_designware 1f00080000.i2c: controller timed out
[  187.267989] i2c_designware 1f00080000.i2c: controller timed out
[  188.292007] i2c_designware 1f00080000.i2c: controller timed out
[  189.316015] i2c_designware 1f00080000.i2c: controller timed out
[  190.340023] i2c_designware 1f00080000.i2c: controller timed out
[  191.364030] i2c_designware 1f00080000.i2c: controller timed out
[  192.388065] i2c_designware 1f00080000.i2c: controller timed out
[  193.412041] i2c_designware 1f00080000.i2c: controller timed out
[  194.436078] i2c_designware 1f00080000.i2c: controller timed out
[  195.460053] i2c_designware 1f00080000.i2c: controller timed out
[  196.484069] i2c_designware 1f00080000.i2c: controller timed out
[  197.508057] i2c_designware 1f00080000.i2c: controller timed out
[  198.532086] i2c_designware 1f00080000.i2c: controller timed out
[  199.556062] i2c_designware 1f00080000.i2c: controller timed out
[  200.580059] i2c_designware 1f00080000.i2c: controller timed out
[  201.604050] i2c_designware 1f00080000.i2c: controller timed out
[  202.628048] i2c_designware 1f00080000.i2c: controller timed out

@pelwell
Copy link
Contributor

pelwell commented Mar 8, 2024

40: a2    pu | lo // CD1_SDA/GPIO40 = SDA4

If that state is semi-permanent (you can monitor the line for changes with pinctrl poll 40) then that is the cause of the problem.

@steveiliop56
Copy link

Is there any way to reset it? Reboot doesn't do anything...

@pelwell
Copy link
Contributor

pelwell commented Mar 8, 2024

You are asking for help with a third-party display I don't possess.

Any suggestions, @waveshare?

@steveiliop56
Copy link

Yeah indeed, well I sent an email to waveshare detailing everything, hopefully they know how to fix their own hardware...

@6by9
Copy link
Contributor

6by9 commented Mar 8, 2024

Oops, thought you were using the Waveshare displays that don't emulate the Pi display, but you're not (it's the 800x480 Pi panel clone). Sorry, no idea on those panels.

If the pictures on https://www.waveshare.com/4.3inch-DSI-LCD.htm are correct, then it's also using the ICN6211. I don't see a MCU on there though, so I don't know what they're doing there. It's also possible that they have updated their code to avoid I2C issues.

@steveiliop56
Copy link

Unfortunately waveshare's product quality is so good that its one leg broke of because apparently you are not supposed to screw it in all they way for it to balance? And the other screw pad just fell off, tried to solder it, no luck. Here is a picture of @waveshare quality:

20240308_182845

to be honest tho I tried to screw it using a small drill because it wouldn't screw in all they way but I barely clicked the button, it was from these analog drills that turn as much as you press the button. But still it only did one turn, one turn and it broke, I have done this with other displays and they were ok!

@pelwell
Copy link
Contributor

pelwell commented Mar 8, 2024

I don't want this issue to degenerate into a criticism of Waveshare - it's chatty enough as it is.

@steveiliop56
Copy link

Yeah anyway I don't have anything to test on so thank you for your help.

@vhelmer
Copy link

vhelmer commented Mar 12, 2024

I'm encountering a similar issue to steveiliop56 with a Raspberry Pi 5 and the Waveshare 7inch DSI LCD (C) https://www.waveshare.com/wiki/7inch_DSI_LCD_(C) on the Raspbian OS Lite.

IMG_4516

After approximately every fifth reboot, the display stops working, and subsequent reboots fail to bring it back up.

Upon failure, the pinctrl output reads:

0: a3    pu | hi // ID_SD/GPIO0 = SDA0
1: a3    pu | hi // ID_SC/GPIO1 = SCL0
2: a3    pu | lo // PIN3/GPIO2 = SDA1
3: a3    pu | hi // PIN5/GPIO3 = SCL1

The screen resumes working only after physically reconnecting the Raspberry Pi power supply.

After hours of attempting to troubleshoot how to bring the display up after a reboot that didn't start the screen, I discovered that the only solution is to execute the following command:

pinctrl 2-3 op dh
sudo reboot

Subsequent reboots then successfully bring the display back. Nonetheless, I assume this is not an ideal solution.

@pelwell
Copy link
Contributor

pelwell commented Mar 13, 2024

pinctrl 2-3 op dh
sudo reboot

That's an interesting find, and may help others in the same situation.

If you have the time, I would be interested to hear if pinctrl 2-3 ip also works, i.e. making them inputs instead of outputs driving high, and what the output of pinctrl 2-3 is after making them inputs. This will help to confirm whether the problem is with a device on the bus or whether the I2C controller is malfunctioning.

Nonetheless, I assume this is not an ideal solution.

No, it's definitely not ideal.

@JinShil
Copy link
Contributor

JinShil commented Mar 14, 2024

I am able to reproduce this symptom using different slave devices (MCP23017, PCA9675, and GP8403). For me it results repeated "controller timed out" and "i2c_dw_handle_tx_abort: lost arbitration" messages in dmesg.

After running pinctrl 2-3 ip, SDA remains low. Even after rebooting, SDA remains low, indicating that the slave device is holding SDA low. However, running pinctrl 2-3 op dh followed by pinctrl 2-3 a3 sometimes gets things working again, though only temporarily. I can also get things working again by power cycling the slave.

Using Linux raspberrypi 6.6.20-v8-16k+ #1738 SMP PREEMPT Tue Mar 5 14:57:35 GMT 2024 aarch64

@vhelmer
Copy link

vhelmer commented Mar 14, 2024

I can confirm that SDA1 remains low after executing pinctrl 2-3 ip, and the display did not come up after the reboot.

Here are the results:

pi@raspberrypi:~$ pinctrl 2-3
 2: a3    pu | lo // PIN3/GPIO2 = SDA1
 3: a3    pu | hi // PIN5/GPIO3 = SCL1
pi@raspberrypi:~$ pinctrl 2-3 ip
pi@raspberrypi:~$ pinctrl 2-3
 2: ip    pu | lo // PIN3/GPIO2 = input
 3: ip    pu | hi // PIN5/GPIO3 = input
pi@raspberrypi:~$ sudo reboot
pi@raspberrypi:~$ pinctrl 2-3
 2: a3    pu | lo // PIN3/GPIO2 = SDA1
 3: a3    pu | hi // PIN5/GPIO3 = SCL1

@neuralassembly
Copy link

I have a similar problem when AQM0802-based LCD is connected to Pi 5 with recent kernel (6.6.20+).
While executing "i2cdetect -y 1", dmesg showed the following errors many times.

[ 189.544399] i2c_designware 1f00074000.i2c: controller timed out

In my case, I could avoid this tourble by adding the following configuration in /boot/firmware/config.txt
(100000 is a default value).

dtparam=i2c_baudrate=50000

I felt that 20000 is more stable. Timing might be severe on Pi 5 with recent kernel.

@pelwell
Copy link
Contributor

pelwell commented Mar 18, 2024

FYI there's a PR (#6050) that may help with this issue. Similar failures are seen when the device fails to ACK data in time, and the PR changes the mark/space ratio on SCL to give the device longer to respond at any given clock speed.

@neuralassembly
Copy link

Dear pelwell,

Thank you for creating the pull request.

I tried "sudo rpi-update pulls/6050".
However, this pull request did not improve the behavior of my device.

When my device stops responding to my program, only the folloiwng error appeared in dmesg.

[ 161.891681] i2c_designware 1f00074000.i2c: i2c_dw_handle_tx_abort: lost arbitration

After that, I tried "i2cdetect -y 1", and the following output appeared.

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         08 09 0a 0b 0c 0d 0e 0f
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30: -- -- -- -- -- -- -- -- 38 39 3a 3b 3c 3d 3e 3f
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70: 70 71 72 73 74 75 76 77

When "--" is shown, the following error appeared.

[ 248.307349] i2c_designware 1f00074000.i2c: controller timed out

So, after "i2cdetect" finishes, the above error appeared 24 times.

@pelwell
Copy link
Contributor

pelwell commented Mar 19, 2024

That's not a failure mode I've encountered.

At this point I think you should open a new issue, explaining the behaviour you were seeing.

@steveiliop56
Copy link

So is the issue fixed with the new 6.6 kernel? Because that's the response I got from waveshare was to try with 6.1 kernel and replace the dtb file with one from here (that was before a week tho).

@talksik
Copy link

talksik commented Apr 21, 2024

@steveiliop56 I just tried copying over the dtbo file from 6.6 /boot/overlays into my current system image. It doesn't load the module when querying: lsmod | grep waveshare.

I am running into a different type of error. Anyone there to help?

  • I have a yocto custom boot2qt image that enables i2c via meta-raspberrypi settings.
  • My config has dtoverlay=vc4-kms-dsi-waveshare-panel,2_8_inch as waveshare's guide says.
  • I've tried every different variant of vc4-fkms-v3d and vc4-kms-v3d and vc4-kms-v3d-pi4

Output of lsmod | grep waveshare

root@b2qt-raspberrypi4-64:~# lsmod | grep waveshare
panel_waveshare_dsi    16384  0
backlight              24576  1 panel_waveshare_dsi

Output of ls /dev/dri

root@b2qt-raspberrypi4-64:~# ls /dev/dri/
by-path     card0       card1       renderD128

My config.txt file:

# Enable SPI bus
dtparam=spi=on
# Enable I2C
dtparam=i2c1=on
dtparam=i2c_arm=on

# Enable VC4 Graphics
# dtoverlay=vc4-kms-v3d # was causing problems with DSI display
# https://bugreports.qt.io/browse/QTBUG-106112
# https://forum.qt.io/topic/152160/official-7-raspberry-touch-screen-lcd-isn-t-working-with-boot2qt-6-6-for-raspberry-pi-4-64-bit/2
dtoverlay=vc4-fkms-v3d
# dtoverlay=vc4-kms-v3d-pi4

# Enable USB peripheral mode
dtoverlay=dwc2,dr_mode=peripheral
# Enable the onboard ALSA audio 
dtparam=audio=on 
dtoverlay=vc4-kms-dsi-waveshare-panel,2_8_inch 

# enable both hdmi outputs
# max_framebuffers=2 # disabled to prevent conflict with DSI display

Linux kernel version:

root@b2qt-raspberrypi4-64:~# uname -a
Linux b2qt-raspberrypi4-64 6.1.54-v8 #1 SMP PREEMPT Wed Sep 20 14:13:53 UTC 2023 aarch64 GNU/Linux

Confirmed that I have waveshare overlay:

root@b2qt-raspberrypi4-64:~# ls /boot/overlays/ | grep waveshare
vc4-kms-dsi-waveshare-panel.dtbo
waveshare-can-fd-hat-mode-a.dtbo
waveshare-can-fd-hat-mode-b.dtbo

Here is the dmesg error that repeats endlessly:

...
[  469.247935] Goodix-TS 10-0014: Error writing 1 bytes to 0x814e: -110
[  470.271888] i2c-bcm2835 fe205000.i2c: i2c transfer timed out
[  470.271936] Goodix-TS 10-0014: Error reading 10 bytes from 0x814e: -110
[  471.295900] i2c-bcm2835 fe205000.i2c: i2c transfer timed out
[  471.295949] Goodix-TS 10-0014: Error writing 1 bytes to 0x814e: -110
[  472.319893] i2c-bcm2835 fe205000.i2c: i2c transfer timed out
[  472.319944] Goodix-TS 10-0014: Error reading 10 bytes from 0x814e: -110
...

Problem: my screen is blank. My Qt app says "No screens available" or "No DRM device" depending on which vc4-* overlay I load.

Ahh, I'm out of ideas and lost. If anyone can give me any sort of hints that helped them, I'd appreciate it!

@6by9
Copy link
Contributor

6by9 commented Apr 22, 2024

@talksik 2 things:

  1. This thread is about Pi5. Seeing as your logs include errors on i2c-10, and your hostname is b2qt-raspberrypi4-64, I strongly suspect you're on a Pi4, and therefore all your comments are totally irrelevant to this issue.

  2. I'll point you at https://github.com/raspberrypi/linux/blob/rpi-6.6.y/arch/arm/boot/dts/overlays/README#L5146 or dtoverlay -h vc4-kms-dsi-waveshare-panel

Requires vc4-kms-v3d to be loaded.

The original config.txt that you posted is MASSIVE! My memory says there is a maximum size the bootloader will load, so trim it down substantially.

@timg236
Copy link
Contributor

timg236 commented Apr 22, 2024

@talksik 2 things:

  1. This thread is about Pi5. Seeing as your logs include errors on i2c-10, and your hostname is b2qt-raspberrypi4-64, I strongly suspect you're on a Pi4, and therefore all your comments are totally irrelevant to this issue.
  2. I'll point you at https://github.com/raspberrypi/linux/blob/rpi-6.6.y/arch/arm/boot/dts/overlays/README#L5146 or dtoverlay -h vc4-kms-dsi-waveshare-panel

Requires vc4-kms-v3d to be loaded.

The original config.txt that you posted is MASSIVE! My memory says there is a maximum size the bootloader will load, so trim it down substantially.

On Pi4 the config.txt file should be <= 4KB, otherwise, network boot will truncate it.

On Pi5 there an individual config.txt file (or include) can be up to 16KB,.

@talksik
Copy link

talksik commented Apr 22, 2024

Thanks @6by9 and @timg236 !! I found that there was an issue with enabling camera which caused i2c conflict with the DSI display.

@pelwell
Copy link
Contributor

pelwell commented Apr 22, 2024

I'm not aware of any outstanding Pi 5 I2C problems using the latest kernel, so I'm tentatively closing this issue.

@pelwell pelwell closed this as completed Apr 22, 2024
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