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

Best resolution for monitor is not respected at boot (native is 1366x768, effective is 1920x1080) #6142

Open
token47 opened this issue May 1, 2024 · 7 comments

Comments

@token47
Copy link

token47 commented May 1, 2024

Describe the bug

Booting linux on a Raspberry Pi 4 B 2GB with a monitor that has native resolution of 1366x768 plugged in the HDMI0 port, it does get image but image is very low quality and letters seem very small, a consequence of actual chosen resolution for boot being 1920x1080 instead.

The EDID does list the correct mode and does mention that that is the prerefed one, but it seem not to be respected.

Steps to reproduce the behaviour

Boot current image of ubuntu in a raspberry pi 4 b and watch chosen resolution at boot time (from firmware to kernel).

More details below.

Device (s)

Raspberry Pi 4 Mod. B

System

I don't think the distribution matters here because it seems to happen before that, but in any case I'm testing with the just released Ubuntu noble preinstalled image for arm64+raspi, server edition (not sure if desktop edition would make any difference).

Logs

The firmware boots:

RPi: BOOTSYS release VERSION:0b7b6f28 DATE: 2024/04/17 TIME: 13:51:36
BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1713358296 serial a0940f46 boardrev b03111 stc 452522
PM_RSTS: 0x00001000
(lines suppreseed)

RPi: BOOTLOADER release VERSION:0b7b6f28 DATE: 2024/04/17 TIME: 13:51:36
BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1713358296 serial a0940f46 boardrev b03111 stc 1777411
(lines suppreseed)
Boot mode: USB-MSD (04) order e
HDMI0 edid block 0 offset 0
00ffffffffffff0049f7000000000000
011a0103800000000ad7a5a2594a9624
145054afce0081c00101010101010101
0101010101017f2156aa51001e30468f
33003f432100001ea91a00a050001630
3020370020560000001a000000fd0032
4c1e5010000a202020202020000000fc
004141410a20202020202020200a016f
HDMI0 edid block 1 offset 128
020323744f109f140504131216111503
0702060123090f038301000066030c00
100080011d00bc52d01e20b8285540c4
8e2100001e011d80d0721c1620102c25
80c48e2100009e8c0ad08a20e02d1010
3e9600138e210000188c0ad090204031
200c405500138e210000180000000000
0000000000000000000000000000009d
HDMI0: best-mode 1 (limit 1) 1280x720 60 Hz CEA modes fe007f80000000000000000000000000 extensions 1
(lines suppreseed)
Read config.txt bytes     1235 hnd 0x80fa2
[MSD [03:00] 3.32 000000:03] vl805.bin not found
[MSD [03:00] 3.32 000000:03] pieeprom.upd not found
[MSD [03:00] 3.32 000000:03] recover4.elf not found
[MSD [03:00] 3.32 000000:03] recovery.elf not found
Read start4.elf bytes  2256224 hnd 0x734ef
Read fixup4.dat bytes     5434 hnd 0x79769
0x00b03111 0x00000000 0x00001fff
MEM GPU: 76 ARM: 947 TOTAL: 1023
Firmware: f4e2138c2adc8f3a92a3a65939e458f11d7298ba Feb 29 2024 12:24:53
Starting start4.elf @ 0xfeb00200 partition 0
+
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 6.8.0-1004-raspi (buildd@bos03-arm64-035) (aarch64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #4-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 
02:29:55 UTC 2024 (Ubuntu 6.8.0-1004.4-raspi 6.8.1)
[    0.000000] KASLR enabled
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.1
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000027c00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
(lines suppreseed)

As you can see, the EDID is correctly received, and it does indicate that best resolution is 1280x720, which does not seem correct but at least would not be too far from it.

As soon as the kernel starts and the four raspberries appear at the top of the screen, the resolution is already wrong at 1920x1080. It does finish booting and when I get a chance to run commands, I can see that:

ubuntu@ubuntu:~$ sudo fbset -s

mode "1920x1080"
    geometry 1920 1080 1920 1080 32
    timings 0 0 0 0 0 0 0
    rgba 8/16,8/8,8/0,8/24
endmode

This happens both with config.txt overlay for "vc4-kms-v3d", for "vc4-fkms-v3d" or without any of them.

I'll add the decoded EDID next.

Additional context

No response

@token47
Copy link
Author

token47 commented May 1, 2024

edid-decode (hex):

00 ff ff ff ff ff ff 00 49 f7 00 00 00 00 00 00
01 1a 01 03 80 00 00 00 0a d7 a5 a2 59 4a 96 24
14 50 54 af ce 00 81 c0 01 01 01 01 01 01 01 01
01 01 01 01 01 01 7f 21 56 aa 51 00 1e 30 46 8f
33 00 3f 43 21 00 00 1e a9 1a 00 a0 50 00 16 30
30 20 37 00 20 56 00 00 00 1a 00 00 00 fd 00 32
4c 1e 50 10 00 0a 20 20 20 20 20 20 00 00 00 fc
00 41 41 41 0a 20 20 20 20 20 20 20 20 0a 01 6f

02 03 23 74 4f 10 9f 14 05 04 13 12 16 11 15 03
07 02 06 01 23 09 0f 03 83 01 00 00 66 03 0c 00
10 00 80 01 1d 00 bc 52 d0 1e 20 b8 28 55 40 c4
8e 21 00 00 1e 01 1d 80 d0 72 1c 16 20 10 2c 25
80 c4 8e 21 00 00 9e 8c 0a d0 8a 20 e0 2d 10 10
3e 96 00 13 8e 21 00 00 18 8c 0a d0 90 20 40 31
20 0c 40 55 00 13 8e 21 00 00 18 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 9d

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.3
  Vendor & Product Identification:
    Manufacturer: ROW
    Model: 0
    Made in: week 1 of 2016
  Basic Display Parameters & Features:
    Digital display
    Image size is variable
    Gamma: 1.00
    RGB color display
    First detailed timing is the preferred timing
  Color Characteristics:
    Red  : 0.6357, 0.3486
    Green: 0.2900, 0.5888
    Blue : 0.1425, 0.0800
    White: 0.3134, 0.3291
  Established Timings I & II:
    IBM     :   720x400    70.081663 Hz   9:5     31.467 kHz     28.320000 MHz
    DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
    DMT 0x05:   640x480    72.808802 Hz   4:3     37.861 kHz     31.500000 MHz
    DMT 0x06:   640x480    75.000000 Hz   4:3     37.500 kHz     31.500000 MHz
    DMT 0x08:   800x600    56.250000 Hz   4:3     35.156 kHz     36.000000 MHz
    DMT 0x09:   800x600    60.316541 Hz   4:3     37.879 kHz     40.000000 MHz
    DMT 0x0a:   800x600    72.187572 Hz   4:3     48.077 kHz     50.000000 MHz
    DMT 0x0b:   800x600    75.000000 Hz   4:3     46.875 kHz     49.500000 MHz
    DMT 0x10:  1024x768    60.003840 Hz   4:3     48.363 kHz     65.000000 MHz
    DMT 0x11:  1024x768    70.069359 Hz   4:3     56.476 kHz     75.000000 MHz
    DMT 0x12:  1024x768    75.028582 Hz   4:3     60.023 kHz     78.750000 MHz
  Standard Timings:
    DMT 0x55:  1280x720    60.000000 Hz  16:9     45.000 kHz     74.250000 MHz
  Detailed Timing Descriptors:
    DTD 1:  1366x768    59.964364 Hz 683:384   47.852 kHz     85.750000 MHz (575 mm x 323 mm)
                 Hfront   70 Hsync 143 Hback  213 Hpol P
                 Vfront    3 Vsync   3 Vback   24 Vpol P
    DTD 2:  1280x768    59.994726 Hz   5:3     47.396 kHz     68.250000 MHz (32 mm x 86 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol P
                 Vfront    3 Vsync   7 Vback   12 Vpol N
    Display Range Limits:
      Monitor ranges (GTF): 50-76 Hz V, 30-80 kHz H, max dotclock 160 MHz
    Display Product Name: 'AAA'
  Extension blocks: 1
Checksum: 0x6f

----------------

Block 1, CTA-861 Extension Block:
  Revision: 3
  Basic audio support
  Supports YCbCr 4:4:4
  Supports YCbCr 4:2:2
  Native detailed modes: 4
  Video Data Block:
    VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
    VIC  31:  1920x1080   50.000000 Hz  16:9     56.250 kHz    148.500000 MHz (native)
    VIC  20:  1920x1080i  50.000000 Hz  16:9     28.125 kHz     74.250000 MHz
    VIC   5:  1920x1080i  60.000000 Hz  16:9     33.750 kHz     74.250000 MHz
    VIC   4:  1280x720    60.000000 Hz  16:9     45.000 kHz     74.250000 MHz
    VIC  19:  1280x720    50.000000 Hz  16:9     37.500 kHz     74.250000 MHz
    VIC  18:   720x576    50.000000 Hz  16:9     31.250 kHz     27.000000 MHz
    VIC  22:  1440x576i   50.000000 Hz  16:9     15.625 kHz     27.000000 MHz
    VIC  17:   720x576    50.000000 Hz   4:3     31.250 kHz     27.000000 MHz
    VIC  21:  1440x576i   50.000000 Hz   4:3     15.625 kHz     27.000000 MHz
    VIC   3:   720x480    59.940060 Hz  16:9     31.469 kHz     27.000000 MHz
    VIC   7:  1440x480i   59.940060 Hz  16:9     15.734 kHz     27.000000 MHz
    VIC   2:   720x480    59.940060 Hz   4:3     31.469 kHz     27.000000 MHz
    VIC   6:  1440x480i   59.940060 Hz   4:3     15.734 kHz     27.000000 MHz
    VIC   1:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
  Audio Data Block:
    Linear PCM:
      Max channels: 2
      Supported sample rates (kHz): 88.2 48 44.1 32
      Supported sample sizes (bits): 20 16
  Speaker Allocation Data Block:
    FL/FR - Front Left/Right
  Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
    Source physical address: 1.0.0.0
    Supports_AI
  Detailed Timing Descriptors:
    DTD 3:  1280x720    50.000000 Hz  16:9     37.500 kHz     74.250000 MHz (708 mm x 398 mm)
                 Hfront  440 Hsync  40 Hback  220 Hpol P
                 Vfront    5 Vsync   5 Vback   20 Vpol P
    DTD 4:  1920x1080i  50.000000 Hz  16:9     28.125 kHz     74.250000 MHz (708 mm x 398 mm)
                 Hfront  528 Hsync  44 Hback  148 Hpol P
                 Vfront    2 Vsync   5 Vback   15 Vpol P Vfront +0.5 Odd Field
                 Vfront    2 Vsync   5 Vback   15 Vpol P Vback  +0.5 Even Field
    DTD 5:   720x480    59.940060 Hz   3:2     31.469 kHz     27.000000 MHz (531 mm x 398 mm)
                 Hfront   16 Hsync  62 Hback   60 Hpol N
                 Vfront    9 Vsync   6 Vback   30 Vpol N
    DTD 6:   720x576    50.000000 Hz   5:4     31.250 kHz     27.000000 MHz (531 mm x 398 mm)
                 Hfront   12 Hsync  64 Hback   68 Hpol N
                 Vfront    5 Vsync   5 Vback   39 Vpol N
Checksum: 0x9d

As can be seen, the "First detailed timing is the preferred timing" and the DTD1 is 1366x768.

@popcornmix
Copy link
Collaborator

I'll need to check the logic the kernel chooses, but:

    VIC  31:  1920x1080   50.000000 Hz  16:9     56.250 kHz    148.500000 MHz (native)

does show the monitor reports 1920x1080 is native resolution.

@token47
Copy link
Author

token47 commented May 1, 2024

Complete boot from firmware to kernel:

RPi: BOOTSYS release VERSION:0b7b6f28 DATE: 2024/04/17 TIME: 13:51:36
BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1713358296 serial a0940f46 boardrev b03111 stc 452522
PM_RSTS: 0x00001000
part 00000000 reset_info 00000000
uSD voltage 3.3V
Initialising SDRAM 'Micron' 16Gb x1 total-size: 16 Gbit 3200
DDR 3200 0 0 16 152
OTP boardrev b03111 bootrom 8b0 8b0
Customer key hash 0000000000000000000000000000000000000000000000000000000000000000
VC-JTAG unlocked


RPi: BOOTLOADER release VERSION:0b7b6f28 DATE: 2024/04/17 TIME: 13:51:36
BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1713358296 serial a0940f46 boardrev b03111 stc 1777292
PCI0 init
PCI0 reset
PCIe scan 00001106:00003483
XHCI-STOP
xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
USBSTS 11
xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
xHC0 ports 5 slots 32 intrs 4
Reset USB port-power 1000 ms
xhci_set_port_power 1 0
xhci_set_port_power 2 0
xhci_set_port_power 3 0
xhci_set_port_power 4 0
xhci_set_port_power 5 0
xhci_set_port_power 1 1
xhci_set_port_power 2 1
xhci_set_port_power 3 1
xhci_set_port_power 4 1
xhci_set_port_power 5 1
XHCI-STOP
xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
USBSTS 18
XHCI-STOP
xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
USBSTS 19
xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
xHC0 ports 5 slots 32 intrs 4
Boot mode: USB-MSD (04) order e
HDMI0 edid block 0 offset 0
00ffffffffffff0049f7000000000000
011a0103800000000ad7a5a2594a9624
145054afce0081c00101010101010101
0101010101017f2156aa51001e30468f
33003f432100001ea91a00a050001630
3020370020560000001a000000fd0032
4c1e5010000a202020202020000000fc
004141410a20202020202020200a016f
HDMI0 edid block 1 offset 128
020323744f109f140504131216111503
0702060123090f038301000066030c00
100080011d00bc52d01e20b8285540c4
8e2100001e011d80d0721c1620102c25
80c48e2100009e8c0ad08a20e02d1010
3e9600138e210000188c0ad090204031
200c405500138e210000180000000000
0000000000000000000000000000009d
HDMI0: best-mode 1 (limit 1) 1280x720 60 Hz CEA modes fe007f80000000000000000000000000 extensions 1
USB2[1] 400202e1 connected
USB2 root HUB port 1 init
DEV [01:00] 2.16 000000:01 class 9 VID 2109 PID 3431
HUB init [01:00] 2.16 000000:01
HUB [01:00] 2.16 000000:01 init port 4 speed 1
DEV [02:01] 2.00 000004:01 class 0 VID 046d PID c52b
HID [02:01] 2.00 000004:01 register HID
XHCI-STOP
xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
USBSTS 18
XHCI-STOP
xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
USBSTS 19
xHC0 ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
xHC0 ports 5 slots 32 intrs 4
USB2[1] 400202e1 connected
USB2 root HUB port 1 init
DEV [01:00] 2.16 000000:01 class 9 VID 2109 PID 3431
HUB init [01:00] 2.16 000000:01
HUB [01:00] 2.16 000000:01 init port 4 speed 1
DEV [02:01] 2.00 000004:01 class 0 VID 046d PID c52b
HID [02:01] 2.00 000004:01 register HID
USB3[3] 00021203 connected enabled
USB3 root HUB port 3 init
DEV [03:00] 3.32 000000:03 class 0 VID 0bda PID 9210
MSD device [03:00] 3.32 000000:03 conf 0 iface 0 ep 81#1024 02#1024
MSD [03:00] 3.32 000000:03 register MSD
MSD [03:00] 3.32 000000:03 LUN 0
MSD INQUIRY [03:00] 3.32 000000:03
MSD [03:00] 3.32 000000:03 lun 0 block-count 1953525168 block-size 512
MBR: 0x00000800, 1048576 type: 0x0c
MBR: 0x00100800,1952474511 type: 0x83
MBR: 0x00000000,       0 type: 0x00
MBR: 0x00000000,       0 type: 0x00
Trying partition: 0
type: 32 lba: 2048 'mkfs.fat' ' system-boot' clusters 1032412 (1)
rsc 32 fat-sectors 8066 root dir cluster 2 sectors 0 entries 0
FAT32 clusters 1032412
[MSD [03:00] 3.32 000000:03] autoboot.txt not found
Select partition rsts 0 C(boot_partition) 0 EEPROM config 0 result 0
Trying partition: 0
type: 32 lba: 2048 'mkfs.fat' ' system-boot' clusters 1032408 (1)
rsc 32 fat-sectors 8066 root dir cluster 2 sectors 0 entries 0
FAT32 clusters 1032408
Read config.txt bytes     1235 hnd 0x80fa2
[MSD [03:00] 3.32 000000:03] vl805.bin not found
[MSD [03:00] 3.32 000000:03] pieeprom.upd not found
[MSD [03:00] 3.32 000000:03] recover4.elf not found
[MSD [03:00] 3.32 000000:03] recovery.elf not found
Read start4.elf bytes  2256224 hnd 0x734ef
Read fixup4.dat bytes     5434 hnd 0x79769
0x00b03111 0x00000000 0x00001fff
MEM GPU: 76 ARM: 947 TOTAL: 1023
Firmware: f4e2138c2adc8f3a92a3a65939e458f11d7298ba Feb 29 2024 12:24:53
Starting start4.elf @ 0xfeb00200 partition 0
+
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 6.8.0-1004-raspi (buildd@bos03-arm64-035) (aarch64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #4-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 
02:29:55 UTC 2024 (Ubuntu 6.8.0-1004.4-raspi 6.8.1)
[    0.000000] KASLR enabled
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.1
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000027c00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x0000000027c00000..0x000000002bbfffff (65536 KiB) map reusable linux,cma
[    0.000000] OF: reserved mem: 0x000000003ee643a0..0x000000003ee6459f (0 KiB) nomap non-reusable nvram@1
[    0.000000] OF: reserved mem: 0x000000003ee645e0..0x000000003ee64631 (0 KiB) nomap non-reusable nvram@0
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b2fffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0, zone DMA32: 19712 pages in unavailable ranges
[    0.000000] percpu: Embedded 52 pages/cpu s88232 r8192 d116568 u212992
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-v3a
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] CPU features: detected: ARM erratum 1742098
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm
2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:31:88:DB vc_mem.mem_base=0x3eb00000 vc_mem.mem_size=0x3ff00000  console=ttyS0,115200 multipath=off dwc_otg.lpm_enable=0 console=tty1 root=LABEL=writable rootfstype=ext4
 rootwait fixrtc
[    0.000000] Unknown kernel command line parameters "fixrtc multipath=off", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 496692
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x0000000037300000-0x000000003b300000] (64MB)
[    0.000000] Memory: 1763820K/2018304K available (15040K kernel code, 2704K rwdata, 4760K rodata, 6528K init, 853K bss, 188948K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 44819 entries in 176 pages
[    0.000000] ftrace: allocated 176 pages with 3 groups
[    0.000000] trace event string verifier disabled
[    0.000000] Dynamic Preempt: full
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    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 100 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000001] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000400] Console: colour dummy device 80x25
[    0.000420] printk: legacy console [tty1] enabled
[    0.001180] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=54000)
[    0.001222] pid_max: default: 32768 minimum: 301
[    0.002059] LSM: initializing lsm=lockdown,capability,yama,apparmor,integrity
[    0.002544] Yama: becoming mindful.
[    0.002726] AppArmor: AppArmor initialized
[    0.003137] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.003186] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.007064] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.007286] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.007452] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.007883] rcu: Hierarchical SRCU implementation.
[    0.007909] rcu: 	Max phase no-delay instances is 400.
[    0.010979] smp: Bringing up secondary CPUs ...
[    0.011931] Detected PIPT I-cache on CPU1
[    0.012058] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.013142] Detected PIPT I-cache on CPU2
[    0.013238] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.014239] Detected PIPT I-cache on CPU3
[    0.014337] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.014500] smp: Brought up 1 node, 4 CPUs
[    0.014594] SMP: Total of 4 processors activated.
[    0.014614] CPU: All CPU(s) started at EL2
[    0.014645] CPU features: detected: 32-bit EL0 Support
[    0.014664] CPU features: detected: 32-bit EL1 Support
[    0.014686] CPU features: detected: CRC32 instructions
[    0.014795] alternatives: applying system-wide alternatives
[    0.015761] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.017206] devtmpfs: initialized
[    0.028797] Enabled cp15_barrier support
[    0.028864] Enabled setend support
[    0.029114] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.029164] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.031093] pinctrl core: initialized pinctrl subsystem
[    0.032903] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.034589] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.034895] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.035722] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.035826] audit: initializing netlink subsys (disabled)
[    0.036150] audit: type=2000 audit(0.035:1): state=initialized audit_enabled=0 res=1
[    0.036792] thermal_sys: Registered thermal governor 'fair_share'
[    0.036807] thermal_sys: Registered thermal governor 'bang_bang'
[    0.036833] thermal_sys: Registered thermal governor 'step_wise'
[    0.036854] thermal_sys: Registered thermal governor 'user_space'
[    0.036951] cpuidle: using governor ladder
[    0.037044] cpuidle: using governor menu
[    0.037391] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.037605] ASID allocator initialised with 32768 entries
[    0.038895] Serial: AMBA PL011 UART driver
[    0.048221] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.057035] raspberrypi-firmware soc:firmware: Attached to firmware from 2024-02-29T12:24:53, variant start
[    0.058043] raspberrypi-firmware soc:firmware: Firmware hash is f4e2138c2adc8f3a92a3a65939e458f11d7298ba
[    0.064261] platform fd500000.pcie: Fixed dependency cycle(s) with /scb/pcie@7d500000
[    0.067810] Modules: 2G module region forced by RANDOMIZE_MODULE_REGION_FULL
[    0.067840] Modules: 0 pages in range for non-PLT usage
[    0.067850] Modules: 516768 pages in range for PLT usage
[    0.069589] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.069636] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.069662] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.069683] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.069706] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.069727] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.069750] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.069770] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.075096] bcm2835-dma fe007000.dma-controller: DMA legacy API manager, dmachans=0x1
[    0.078307] iommu: Default domain type: Translated
[    0.078348] iommu: DMA domain TLB invalidation policy: strict mode
[    0.080861] SCSI subsystem initialized
[    0.081107] usbcore: registered new interface driver usbfs
[    0.081176] usbcore: registered new interface driver hub
[    0.081254] usbcore: registered new device driver usb
[    0.081357] pps_core: LinuxPPS API ver. 1 registered
[    0.081380] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.081422] PTP clock support registered
[    0.081484] EDAC MC: Ver: 3.0.0
[    0.083387] NetLabel: Initializing
[    0.083419] NetLabel:  domain hash size = 128
[    0.083439] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.083548] NetLabel:  unlabeled traffic allowed by default
[    0.084210] clocksource: Switched to clocksource arch_sys_counter
[    0.114879] VFS: Disk quotas dquot_6.6.0
[    0.115022] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.116295] AppArmor: AppArmor Filesystem Enabled
[    0.128442] NET: Registered PF_INET protocol family
[    0.128714] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.131794] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.131857] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.131993] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.132120] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.132638] TCP: Hash tables configured (established 16384 bind 16384)
[    0.133058] MPTCP token hash table entries: 2048 (order: 3, 49152 bytes, linear)
[    0.133243] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.133297] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.133612] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.133679] NET: Registered PF_XDP protocol family
[    0.133726] PCI: CLS 0 bytes, default 64
[    0.134064] Trying to unpack rootfs image as initramfs...
[    0.136379] kvm [1]: IPA Size Limit: 44 bits
[    0.138129] kvm [1]: vgic interrupt IRQ9
[    0.138258] kvm [1]: Hyp mode initialized successfully
[    0.140579] Initialise system trusted keyrings
[    0.140679] Key type blacklist registered
[    0.141068] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.141237] zbud: loaded
[    0.144608] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.212265] Key type asymmetric registered
[    0.212319] Asymmetric key parser 'x509' registered
[    0.212450] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.212802] io scheduler mq-deadline registered
[    0.221085] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.221154] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    0.221274] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    0.221365] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x007fffffff -> 0x0400000000
[    0.222574] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.222621] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.222652] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    0.222749] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400 PCIe Root Port
[    0.222825] pci 0000:00:00.0: PCI bridge to [bus 00]
[    0.222862] pci 0000:00:00.0:   bridge window [mem 0x638000000-0x6380fffff]
[    0.223027] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.227161] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.227489] pci_bus 0000:01: supply vpcie3v3 not found, using dummy regulator
[    0.227707] pci_bus 0000:01: supply vpcie3v3aux not found, using dummy regulator
[    0.227833] pci_bus 0000:01: supply vpcie12v not found, using dummy regulator
[    0.329276] brcm-pcie fd500000.pcie: clkreq-mode set to default
[    0.331408] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    0.331618] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330 PCIe Endpoint
[    0.331756] pci 0000:01:00.0: BAR 0 [mem 0x00000000-0x00000fff 64bit]
[    0.332279] pci 0000:01:00.0: PME# supported from D0 D3cold
[    0.333144] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.333254] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff]: assigned
[    0.333293] pci 0000:01:00.0: BAR 0 [mem 0x600000000-0x600000fff 64bit]: assigned
[    0.333347] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.333378] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.333848] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    0.334124] pcieport 0000:00:00.0: PME: Signaling with IRQ 26
[    0.334740] pcieport 0000:00:00.0: AER: enabled with IRQ 26
[    0.418067] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.419379] bcm2835-aux-uart fe215040.serial: there is not valid maps for state default
[    0.421259] printk: legacy console [ttyS0] disabled
[    0.421973] fe215040.serial: ttyS0 at MMIO 0xfe215040 (irq = 27, base_baud = 62500000) is a 16550
[    0.422081] printk: legacy console [ttyS0] enabled
[    0.891906] Freeing initrd memory: 51548K
[    0.895851] iproc-rng200 fe104000.rng: hwrng registered
[    1.724162] vc-mem: phys_addr:0x00000000 mem_base=0x3eb00000 mem_size:0x3ff00000(1023 MiB)
[    1.744262] loop: module loaded
[    1.748506] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.760080] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.958344] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.965740] usbcore: registered new interface driver lan78xx
[    1.971582] usbcore: registered new interface driver smsc95xx
[    1.977878] mousedev: PS/2 mouse device common for all mice
[    1.983586] i2c_dev: i2c /dev entries driver
[    1.990076] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.999384] sdhci: Secure Digital Host Controller Interface driver
[    2.005690] sdhci: Copyright(c) Pierre Ossman
[    2.010224] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.018106] ledtrig-cpu: registered to indicate activity on CPUs
[    2.024333] hid: raw HID events driver (C) Jiri Kosina
[    2.035353] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    2.043887] watchdog: Delayed init of the lockup detector failed: -19
[    2.047236] mmc1: SDHCI controller on fe300000.mmcnr [fe300000.mmcnr] using PIO
[    2.047627] NET: Registered PF_INET6 protocol family
[    2.050503] watchdog: Hard watchdog permanently disabled
[    2.072496] mmc1: Controller never released inhibit bit(s).
[    2.079118] Segment Routing with IPv6
[    2.082936] In-situ OAM (IOAM) with IPv6
[    2.087021] NET: Registered PF_PACKET protocol family
[    2.092308] Key type dns_resolver registered
[    2.100475] registered taskstats version 1
[    2.104825] Loading compiled-in X.509 certificates
[    2.111259] Loaded X.509 cert 'Build time autogenerated kernel key: 23a9763780cae64c76af031dc700af860b732859'
[    2.122555] Loaded X.509 cert 'Canonical Ltd. Live Patch Signing: 14df34d1a87cf37625abec039ef2bf521249b969'
[    2.133688] Loaded X.509 cert 'Canonical Ltd. Kernel Module Signing: 88f752e560a1e0737e31163a466ad7b70a850c19'
[    2.143850] blacklist: Loading compiled-in revocation X.509 certificates
[    2.150700] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing: 61482aa2830d0ab2ad5af10b7250da9033ddcef0'
[    2.160720] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2017): 242ade75ac4a15e50d50c84b0d45ff3eae707a03'
[    2.161589] mmc1: new high speed SDIO card at address 0001
[    2.171352] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (ESM 2018): 365188c1d374d6b07c3c8f240f8ef722433d6a8b'
[    2.187873] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2019): c0746fd6c5da3ae827864651ad66ae47fe24b3e8'
[    2.198512] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v1): a8d54bbb3825cfb94fa13c9f8a594a195c107b8d'
[    2.209407] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v2): 4cf046892d6fd3c9a5b03f98d845f90851dc6a8c'
[    2.220341] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (2021 v3): 100437bb6de6e469b581e61cd66bce3ef4ed53af'
[    2.231260] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing (Ubuntu Core 2019): c1d57b8f6b743f23ee41f4f7ee292f06eecadfb9'
[    2.251535] Key type .fscrypt registered
[    2.255606] Key type fscrypt-provisioning registered
[    2.346465] Key type encrypted registered
[    2.350584] AppArmor: AppArmor sha256 policy hashing enabled
[    2.356363] ima: No TPM chip found, activating TPM-bypass!
[    2.361956] ima: Allocated hash algorithm: sha1
[    2.366578] ima: No architecture policies found
[    2.371225] evm: Initialising EVM extended attributes:
[    2.376457] evm: security.selinux
[    2.379829] evm: security.SMACK64
[    2.383209] evm: security.SMACK64EXEC
[    2.386933] evm: security.SMACK64TRANSMUTE
[    2.391096] evm: security.SMACK64MMAP
[    2.394827] evm: security.apparmor
[    2.398281] evm: security.ima
[    2.401293] evm: security.capability
[    2.404934] evm: HMAC attrs: 0x1
[    2.412379] uart-pl011 fe201000.serial: there is not valid maps for state default
[    2.420468] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    2.427266] fe201000.serial: ttyAMA1 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
[    2.436465] serial serial0: tty port ttyAMA1 registered
[    2.442497] of_cfs_init
[    2.445081] of_cfs_init: OK
[    2.448113] clk: Disabling unused clocks
[    2.492170] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    2.508681] Freeing unused kernel memory: 6528K
[    2.524991] Checked W+X mappings: passed, no W+X pages found
[    2.530796] Run /init as init process
[    3.309251] xhci_hcd 0000:01:00.0: enabling device (0000 -> 0002)
[    3.323368] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    3.340236] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    3.371394] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0300240000000890
[    3.381531] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    3.386939] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    3.394213] dwc2 fe980000.usb: supply vusb_d not found, using dummy regulator
[    3.394484] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    3.401869] dwc2 fe980000.usb: supply vusb_a not found, using dummy regulator
[    3.408346] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.08
[    3.423863] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.431275] usb usb1: Product: xHCI Host Controller
[    3.436292] usb usb1: Manufacturer: Linux 6.8.0-1004-raspi xhci-hcd
[    3.442725] usb usb1: SerialNumber: 0000:01:00.0
[    3.448544] hub 1-0:1.0: USB hub found
[    3.452544] hub 1-0:1.0: 1 port detected
[    3.457446] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.08
[    3.465927] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.473340] usb usb2: Product: xHCI Host Controller
[    3.478572] usb usb2: Manufacturer: Linux 6.8.0-1004-raspi xhci-hcd
[    3.485027] usb usb2: SerialNumber: 0000:01:00.0
[    3.490267] hub 2-0:1.0: USB hub found
[    3.494249] hub 2-0:1.0: 4 ports detected
[    3.625369] dwc2 fe980000.usb: EPs: 8, dedicated fifos, 4080 entries in SPRAM
[    3.633119] dwc2 fe980000.usb: DWC OTG Controller
[    3.637952] dwc2 fe980000.usb: new USB bus registered, assigned bus number 3
[    3.645206] dwc2 fe980000.usb: irq 43, io mem 0xfe980000
[    3.650944] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.08
[    3.659415] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.666779] usb usb3: Product: DWC OTG Controller
[    3.671617] usb usb3: Manufacturer: Linux 6.8.0-1004-raspi dwc2_hsotg
[    3.678216] usb usb3: SerialNumber: fe980000.usb
[    3.683424] hub 3-0:1.0: USB hub found
[    3.687333] hub 3-0:1.0: 1 port detected
[    3.702229] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    3.837860] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    3.846244] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.853524] usb 1-1: Product: USB2.0 Hub
[    3.859481] hub 1-1:1.0: USB hub found
[    3.863590] hub 1-1:1.0: 4 ports detected
[    3.951083] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
[    3.983099] usb 2-2: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=20.01
[    3.991456] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.998728] usb 2-2: Product: RTL9210B-CG
[    4.002836] usb 2-2: Manufacturer: Realtek
[    4.007019] usb 2-2: SerialNumber: 012345678904
[    4.045696] usb 2-2: Enable of device-initiated U1 failed.
[    4.052147] usb 2-2: Enable of device-initiated U2 failed.
[    4.071918] usbcore: registered new interface driver usb-storage
[    4.147259] usb 1-1.4: new full-speed USB device number 3 using xhci_hcd
[    4.239359] usb 1-1.4: New USB device found, idVendor=046d, idProduct=c52b, bcdDevice=24.10
[    4.247903] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.255363] usb 1-1.4: Product: USB Receiver
[    4.259729] usb 1-1.4: Manufacturer: Logitech
[    4.518924] usb 2-2: Enable of device-initiated U1 failed.
[    4.525429] usb 2-2: Enable of device-initiated U2 failed.
[    4.555542] scsi host0: uas
[    4.558769] usbcore: registered new interface driver uas
[    4.561395] scsi 0:0:0:0: Direct-Access     Realtek  RTL9210B-CG      1.00 PQ: 0 ANSI: 6
[    4.562552] usbcore: registered new interface driver usbhid
[    4.562558] usbhid: USB HID core driver
[    4.608058] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    4.610956] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    4.622441] sd 0:0:0:0: [sda] Write Protect is off
[    4.629682] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.639917] sd 0:0:0:0: [sda] Preferred minimum I/O size 512 bytes
[    4.646211] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes
[    4.661591]  sda: sda1 sda2
[    4.664842] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.686280] input: Logitech USB Receiver as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:046D:C52B.0001/input/input0
[    4.753667] hid-generic 0003:046D:C52B.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:01:00.0-1.4/input0
[    4.767561] input: Logitech USB Receiver Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.1/0003:046D:C52B.0002/input/input1
[    4.784526] input: Logitech USB Receiver Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.1/0003:046D:C52B.0002/input/input2
[    4.853724] input: Logitech USB Receiver System Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.1/0003:046D:C52B.0002/input/input3
[    4.871654] hid-generic 0003:046D:C52B.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:01:00.0-1.4/input1
[    4.885989] hid-generic 0003:046D:C52B.0003: hiddev1,hidraw2: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:01:00.0-1.4/input2
[    4.988646] logitech-djreceiver 0003:046D:C52B.0003: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:01:00.0-1.4/input2
[    5.112814] input: Logitech Wireless Device PID:408a Keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.2/0003:046D:C52B.0003/0003:046D:408A.0004/input
/input5
[    5.147760] input: Logitech Wireless Device PID:408a Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.2/0003:046D:C52B.0003/0003:046D:408A.0004/input/in
put6
[    5.173993] hid-generic 0003:046D:408A.0004: input,hidraw1: USB HID v1.11 Keyboard [Logitech Wireless Device PID:408a] on usb-0000:01:00.0-1.4/input2:1
[    5.189659] input: Logitech Wireless Device PID:400a Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.2/0003:046D:C52B.0003/0003:046D:400A.0005/input/in
put10
[    5.210178] hid-generic 0003:046D:400A.0005: input,hidraw2: USB HID v1.11 Mouse [Logitech Wireless Device PID:400a] on usb-0000:01:00.0-1.4/input2:2
[    5.268653] input: Logitech MX Keys as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.2/0003:046D:C52B.0003/0003:046D:408A.0004/input/input14
[    5.286717] logitech-hidpp-device 0003:046D:408A.0004: input,hidraw1: USB HID v1.11 Keyboard [Logitech MX Keys] on usb-0000:01:00.0-1.4/input2:1
[    5.324106] input: Logitech M325 as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.2/0003:046D:C52B.0003/0003:046D:400A.0005/input/input15
[    5.341811] logitech-hidpp-device 0003:046D:400A.0005: input,hidraw2: USB HID v1.11 Mouse [Logitech M325] on usb-0000:01:00.0-1.4/input2:2
[    5.664211] raid6: neonx8   gen()  3966 MB/s
[    5.685236] raid6: neonx4   gen()  4086 MB/s
[    5.706231] raid6: neonx2   gen()  3348 MB/s
[    5.727218] raid6: neonx1   gen()  2456 MB/s
[    5.748216] raid6: int64x8  gen()  2531 MB/s
[    5.769216] raid6: int64x4  gen()  2519 MB/s
[    5.790213] raid6: int64x2  gen()  2380 MB/s
[    5.811218] raid6: int64x1  gen()  1820 MB/s
[    5.815566] raid6: using algorithm neonx4 gen() 4086 MB/s
[    5.837211] raid6: .... xor() 2742 MB/s, rmw enabled
[    5.842258] raid6: using neon recovery algorithm
[    5.851079] xor: measuring software checksum speed
[    5.857343]    8regs           :  7253 MB/sec
[    5.863040]    32regs          :  7751 MB/sec
[    5.870394]    arm64_neon      :  3365 MB/sec
[    5.874831] xor: using function: 32regs (7751 MB/sec)
[    5.882079] async_tx: api initialized (async)
[    6.098304] Btrfs loaded, zoned=yes, fsverity=no
[    6.424641] EXT4-fs (sda2): mounted filesystem c711ccfa-0386-4932-86cd-bd357d00dd99 ro with ordered data mode. Quota mode: none.
[    7.146088] systemd[1]: Inserted module 'autofs4'
[    7.207502] systemd[1]: systemd 255.4-1ubuntu8 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +L
IBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)

@token47
Copy link
Author

token47 commented May 1, 2024

I'll need to check the logic the kernel chooses, but:

    VIC  31:  1920x1080   50.000000 Hz  16:9     56.250 kHz    148.500000 MHz (native)

does show the monitor reports 1920x1080 is native resolution.

Yeah, that does not seem correct and in fact justifies this being an allowed resolution, but historically the prefered one has been used until very recently (latest images from Noble) it started to do this.

It might be something on Ubuntu's kernel, or it might be the latest firmware that I upgraded recently on Rpi4.

@6by9
Copy link
Contributor

6by9 commented May 1, 2024

As documented at https://www.raspberrypi.com/documentation/computers/config_txt.html#hdmi-pipeline-for-raspberry-pi-4-and-5, your 1366x768 isn't supported on Pi4 due to

Hfront   70 Hsync 143 Hback  213 Hpol P

Are you booting to a Window Manager (ie X11, Wayfire, or similar), or just to the console? Most of the window managers ignore native and preferred modes and go for the highest resolution.

The kernel DRM framebuffer emulation I seem to recall does go for the preferred mode (if available), but otherwise the largest. You can override it with a video=HDMI-A-1:1280x720@60 type entry on the kernel command line.

@token47
Copy link
Author

token47 commented May 1, 2024

Wow, that is very specific:

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

There is only one incompatible mode in the CEA and DMT standards: DMT mode 81, 1366x768 @ 60Hz. This mode has odd-numbered values for the horizontal sync and back porch timings and a width that indivisible by 8.

If your monitor has this resolution, Raspberry Pi 4 or 5 automatically drops down to the next mode advertised by the monitor; typically 1280x720.

Indeed this seems to be the reason for the mode to be excluded. Indeed I was using that monitor in a rpi3 where it worked great at native resolution and after moving it to pi4 it started to behave like this (but I also upgraded the firmware and ubuntu versions at the same time so it was not clear where the issue was).

One thing that I would expect then is that, according to the documentation quoted above, it would discard DTD1 and fall back to DTD2 (which is indeed 1280x720), but instead it went for a different one.

Thank you very much for pointing this out. I will test overriding the resolution in kernel cmdline and confirm here.

@token47
Copy link
Author

token47 commented May 1, 2024

Answering your previous question, I'm only using the console. No graphical environment on this device.

On the video mode override, it mostly worked. Kernel still gets the screen at 1920x1080p when boot starts but later, almost at the end of the boot (but before init/systemd) it switches to 1280x720p.

I used "video=HDMI-A-1:1280x720@60" at the end of cmdline.txt.

Just as a curiosity I tried forcing the "1366x768@60" mode and the screen flashes but comes back still in 1080p.

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

3 participants