raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.08k stars 4.96k forks source link

RPi3B+: Bookworm Kernel EDID complaints flood logs #5732

Closed pcollinson closed 10 months ago

pcollinson commented 10 months ago

Describe the bug

I have an ancient flat screen (Dell 1706FPVt) with a DVI interface plugged into an RP3B+ with a DVI to HDMI interface. For bookworm, I've included video=HDMI-A-1:1280x1024@60 on the kernel command line. The screen works fine but every minute I get three messages like:

EDID block 0 (tag 0x00) checksum is invalid, remainder is 24

written on the console. So researching this, I find that the approved way of adding such devices is to add a compiled appropriate EDID file, provided with the kernel source in tools/edid. So I tried this. The code compiles easily from a Makefile and generates the /lib/firmware/edid files. However, the only change is that I now get is a message flood saying that it's loading the information, again three times a minute and flooding logs.

Maybe I can stop this output by changing /proc/sys/kernel/printk . It seems not.

I've also tried switching between X11 and Wayland, there is no discernible difference.

Now this isn't anything like a show stopper, but it's shortening the life of my storage devices and anything like this is just annoying because it wipes out logs that might be important.

Steps to reproduce the behaviour

Use vanilla bookworm on an RPI3B+, with a DVI screen connected using a DVI to HDMI adapter. Change the kernel command line to include an appropriate screen setting for the device.

Device (s)

Raspberry Pi 3 Mod. B+

System

System Information
------------------

Raspberry Pi 3 Model B Plus Rev 1.3
PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"

Raspberry Pi reference 2023-10-10
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, fb56ad562991cf3ae5c96ab50983e1deeaefc7b6, stage4

Linux toby 6.1.0-rpi6-rpi-v7 #1 SMP Raspbian 1:6.1.58-1+rpt2 (2023-10-27) armv7l GNU/Linux
Revision    : a020d3
Serial      : 000000006b29969c
Model       : Raspberry Pi 3 Model B Plus Rev 1.3
Throttled flag  : throttled=0x80000
Camera          : supported=0 detected=0, libcamera interfaces=0

Videocore information
---------------------

Oct 17 2023 15:42:39 
Copyright (c) 2012 Broadcom
version 30f0c5e4d076da3ab4f341d88e7d505760b93ad7 (clean) (release) (start)

alloc failures:     0
compactions:        0
legacy block fails: 0

Filesystem information
----------------------
Filesystem     1K-blocks    Used Available Use% Mounted on
udev              332700       0    332700   0% /dev
tmpfs              94412     960     93452   2% /run
/dev/sda2       28875676 5874348  21509156  22% /
tmpfs             472044       8    472036   1% /dev/shm
tmpfs               5120       8      5112   1% /run/lock
/dev/sda1         523248  116096    407152  23% /boot/firmware
tmpfs              94408      40     94368   1% /run/user/1001

Filename                Type        Size        Used        Priority
/var/swap                               file        102396      0       -2
/dev/zram0                              partition   262140      3840        100

Package version information
---------------------------
raspberrypi-ui-mods:
  Installed: 1.20231115
raspberrypi-sys-mods:
  Installed: 20231003
openbox:
  Installed: 3.6.1-10+rpt1
lxpanel:
  Installed: 0.10.1-2+rpt19
pcmanfm:
  Installed: 1.3.2-1+rpt18
rpd-plym-splash:
  Installed: 0.36

Networking Information
----------------------

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet x.x.x.x  netmask x.x.x.x  broadcast x.x.x.x
        inet6 y::y.y.y.y  prefixlen 64  scopeid 0x20<link>
        ether m.m.m.m  txqueuelen 1000  (Ethernet)
        RX packets 739730  bytes 55623692 (53.0 MiB)
        RX errors 0  dropped 41119  overruns 0  frame 0
        TX packets 2016958  bytes 3023716532 (2.8 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet x.x.x.x  netmask x.x.x.x
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 146  bytes 21157 (20.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 146  bytes 21157 (20.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

USB Information
---------------

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/3p, 480M
            |__ Port 2: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            |__ Port 3: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            |__ Port 3: Dev 6, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
            |__ Port 1: Dev 7, If 0, Class=Vendor Specific Class, Driver=lan78xx, 480M
        |__ Port 3: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M

Display Information
-------------------

Running (F)KMS and X

Screen 0: minimum 1728 x 1093, current 1728 x 1093, maximum 3456 x 2234
default connected 1728x1093+0+0 (0xf9) normal (normal) 0mm x 0mm
    Identifier: 0xd0
    Timestamp:  1046052364
    Subpixel:   unknown
    Clones:    
    CRTC:       0
    CRTCs:      0
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter: 
    non-desktop: 0 
        supported: 0, 1
  1920x1200 (0xd1) 276.480MHz
        h: width  1920 start    0 end    0 total 1920 skew    0 clock 144.00KHz
        v: height 1200 start    0 end    0 total 1200           clock 120.00Hz
  1920x1200 (0xd2) 138.240MHz
        h: width  1920 start    0 end    0 total 1920 skew    0 clock  72.00KHz
        v: height 1200 start    0 end    0 total 1200           clock  60.00Hz
  1920x1200 (0xd3) 115.200MHz
        h: width  1920 start    0 end    0 total 1920 skew    0 clock  60.00KHz
        v: height 1200 start    0 end    0 total 1200           clock  50.00Hz
  1920x1200 (0xd4) 110.592MHz
        h: width  1920 start    0 end    0 total 1920 skew    0 clock  57.60KHz
        v: height 1200 start    0 end    0 total 1200           clock  48.00Hz
  2336x1460 (0xd5) 409.267MHz
        h: width  2336 start    0 end    0 total 2336 skew    0 clock 175.20KHz
        v: height 1460 start    0 end    0 total 1460           clock 120.00Hz
  2336x1460 (0xd6) 204.634MHz
        h: width  2336 start    0 end    0 total 2336 skew    0 clock  87.60KHz
        v: height 1460 start    0 end    0 total 1460           clock  60.00Hz
  2336x1460 (0xd7) 170.528MHz
        h: width  2336 start    0 end    0 total 2336 skew    0 clock  73.00KHz
        v: height 1460 start    0 end    0 total 1460           clock  50.00Hz
  2336x1460 (0xd8) 163.707MHz
        h: width  2336 start    0 end    0 total 2336 skew    0 clock  70.08KHz
        v: height 1460 start    0 end    0 total 1460           clock  48.00Hz
  2336x1510 (0xd9) 423.283MHz
        h: width  2336 start    0 end    0 total 2336 skew    0 clock 181.20KHz
        v: height 1510 start    0 end    0 total 1510           clock 120.00Hz
  2336x1510 (0xda) 211.642MHz
        h: width  2336 start    0 end    0 total 2336 skew    0 clock  90.60KHz
        v: height 1510 start    0 end    0 total 1510           clock  60.00Hz
  2336x1510 (0xdb) 176.368MHz
        h: width  2336 start    0 end    0 total 2336 skew    0 clock  75.50KHz
        v: height 1510 start    0 end    0 total 1510           clock  50.00Hz
  2336x1510 (0xdc) 169.313MHz
        h: width  2336 start    0 end    0 total 2336 skew    0 clock  72.48KHz
        v: height 1510 start    0 end    0 total 1510           clock  48.00Hz
  2560x1600 (0xdd) 491.520MHz
        h: width  2560 start    0 end    0 total 2560 skew    0 clock 192.00KHz
        v: height 1600 start    0 end    0 total 1600           clock 120.00Hz
  2560x1600 (0xde) 245.760MHz
        h: width  2560 start    0 end    0 total 2560 skew    0 clock  96.00KHz
        v: height 1600 start    0 end    0 total 1600           clock  60.00Hz
  2560x1600 (0xdf) 204.800MHz
        h: width  2560 start    0 end    0 total 2560 skew    0 clock  80.00KHz
        v: height 1600 start    0 end    0 total 1600           clock  50.00Hz
  2560x1600 (0xe0) 196.608MHz
        h: width  2560 start    0 end    0 total 2560 skew    0 clock  76.80KHz
        v: height 1600 start    0 end    0 total 1600           clock  48.00Hz
  2624x1640 (0xe1) 516.403MHz
        h: width  2624 start    0 end    0 total 2624 skew    0 clock 196.80KHz
        v: height 1640 start    0 end    0 total 1640           clock 120.00Hz
  2624x1640 (0xe2) 258.202MHz
        h: width  2624 start    0 end    0 total 2624 skew    0 clock  98.40KHz
        v: height 1640 start    0 end    0 total 1640           clock  60.00Hz
  2624x1640 (0xe3) 215.168MHz
        h: width  2624 start    0 end    0 total 2624 skew    0 clock  82.00KHz
        v: height 1640 start    0 end    0 total 1640           clock  50.00Hz
  2624x1640 (0xe4) 206.561MHz
        h: width  2624 start    0 end    0 total 2624 skew    0 clock  78.72KHz
        v: height 1640 start    0 end    0 total 1640           clock  48.00Hz
  2624x1696 (0xe5) 534.036MHz
        h: width  2624 start    0 end    0 total 2624 skew    0 clock 203.52KHz
        v: height 1696 start    0 end    0 total 1696           clock 120.00Hz
  2624x1696 (0xe6) 267.018MHz
        h: width  2624 start    0 end    0 total 2624 skew    0 clock 101.76KHz
        v: height 1696 start    0 end    0 total 1696           clock  60.00Hz
  2624x1696 (0xe7) 222.515MHz
        h: width  2624 start    0 end    0 total 2624 skew    0 clock  84.80KHz
        v: height 1696 start    0 end    0 total 1696           clock  50.00Hz
  2624x1696 (0xe8) 213.615MHz
        h: width  2624 start    0 end    0 total 2624 skew    0 clock  81.41KHz
        v: height 1696 start    0 end    0 total 1696           clock  48.00Hz
  2992x1870 (0xe9) 671.405MHz
        h: width  2992 start    0 end    0 total 2992 skew    0 clock 224.40KHz
        v: height 1870 start    0 end    0 total 1870           clock 120.00Hz
  2992x1870 (0xea) 335.702MHz
        h: width  2992 start    0 end    0 total 2992 skew    0 clock 112.20KHz
        v: height 1870 start    0 end    0 total 1870           clock  60.00Hz
  2992x1870 (0xeb) 279.752MHz
        h: width  2992 start    0 end    0 total 2992 skew    0 clock  93.50KHz
        v: height 1870 start    0 end    0 total 1870           clock  50.00Hz
  2992x1870 (0xec) 268.562MHz
        h: width  2992 start    0 end    0 total 2992 skew    0 clock  89.76KHz
        v: height 1870 start    0 end    0 total 1870           clock  48.00Hz
  2992x1934 (0xed) 694.383MHz
        h: width  2992 start    0 end    0 total 2992 skew    0 clock 232.08KHz
        v: height 1934 start    0 end    0 total 1934           clock 120.00Hz
  2992x1934 (0xee) 347.192MHz
        h: width  2992 start    0 end    0 total 2992 skew    0 clock 116.04KHz
        v: height 1934 start    0 end    0 total 1934           clock  60.00Hz
  2992x1934 (0xef) 289.326MHz
        h: width  2992 start    0 end    0 total 2992 skew    0 clock  96.70KHz
        v: height 1934 start    0 end    0 total 1934           clock  50.00Hz
  2992x1934 (0xf0) 277.753MHz
        h: width  2992 start    0 end    0 total 2992 skew    0 clock  92.83KHz
        v: height 1934 start    0 end    0 total 1934           clock  48.00Hz
  3456x2160 (0xf1) 895.795MHz
        h: width  3456 start    0 end    0 total 3456 skew    0 clock 259.20KHz
        v: height 2160 start    0 end    0 total 2160           clock 120.00Hz
  3456x2160 (0xf2) 447.898MHz
        h: width  3456 start    0 end    0 total 3456 skew    0 clock 129.60KHz
        v: height 2160 start    0 end    0 total 2160           clock  60.00Hz
  3456x2160 (0xf3) 373.248MHz
        h: width  3456 start    0 end    0 total 3456 skew    0 clock 108.00KHz
        v: height 2160 start    0 end    0 total 2160           clock  50.00Hz
  3456x2160 (0xf4) 358.318MHz
        h: width  3456 start    0 end    0 total 3456 skew    0 clock 103.68KHz
        v: height 2160 start    0 end    0 total 2160           clock  48.00Hz
  3456x2234 (0xf5) 926.484MHz
        h: width  3456 start    0 end    0 total 3456 skew    0 clock 268.08KHz
        v: height 2234 start    0 end    0 total 2234           clock 120.00Hz
  3456x2234 (0xf6) 463.242MHz
        h: width  3456 start    0 end    0 total 3456 skew    0 clock 134.04KHz
        v: height 2234 start    0 end    0 total 2234           clock  60.00Hz
  3456x2234 (0xf7) 386.035MHz
        h: width  3456 start    0 end    0 total 3456 skew    0 clock 111.70KHz
        v: height 2234 start    0 end    0 total 2234           clock  50.00Hz
  3456x2234 (0xf8) 370.594MHz
        h: width  3456 start    0 end    0 total 3456 skew    0 clock 107.23KHz
        v: height 2234 start    0 end    0 total 2234           clock  48.00Hz
  1728x1093 (0xf9)  1.889MHz *current
        h: width  1728 start    0 end    0 total 1728 skew    0 clock   1.09KHz
        v: height 1093 start    0 end    0 total 1093           clock   1.00Hz
  1728x1117 (0xfa)  3.860MHz
        h: width  1728 start    0 end    0 total 1728 skew    0 clock   2.23KHz
        v: height 1117 start    0 end    0 total 1117           clock   2.00Hz

Connector 0 (32) HDMI-A-1 (connected)
  Encoder 0 (31) TMDS
    Crtc 3 (90) 1280x1024@60.00 108.879 1280/80/136/216/- 1024/1/3/32/+ 60 (60.00)  
      Plane 3 (80) fb-id: 294 (crtcs: 3) 0,0 1280x1024 -> 0,0 1280x1024 (XR24 AR24 AB24 XB24 RG16 BG16 AR15 XR15 RG24 BG24 YU16 YV16 YU24 YV24 YU12 YV12 NV12 NV21 NV16 NV61 RGB8 BGR8 XR12 AR12 XB12 AB12 BX12 BA12 RX12 RA12)
        FB 294 1280x1024 XR24
      Plane 23 (281) fb-id: 292 (crtcs: 3) 0,0 64x64 -> 982,287 64x64 (XR24 AR24 AB24 XB24 RG16 BG16 AR15 XR15 RG24 BG24 YU16 YV16 YU24 YV24 YU12 YV12 NV12 NV21 NV16 NV61 RGB8 BGR8 XR12 AR12 XB12 AB12 BX12 BA12 RX12 RA12)
        FB 292 64x64 AR24

Connector 0 (32) HDMI-A-1 (connected)
   0 1280x1024@60.00  108.879 1280/80/136/216/-  1024/1/3/32/+      60 (60.00) U     

/sys/kernel/debug/dri/0/state:
plane[41]: plane-0
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=0
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[58]: plane-1
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=0
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[69]: plane-2
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=0
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[80]: plane-3
    crtc=pixelvalve-2
    fb=294
        allocated by = Xorg
        refcount=2
        format=XR24 little-endian (0x34325258)
        modifier=0x0
        size=1280x1024
        layers:
            size[0]=1280x1024
            pitch[0]=5120
            offset[0]=0
            obj[0]:
                name=0
                refcount=3
                start=00010280
                size=5242880
                imported=no
    crtc-pos=1280x1024+0+0
    src-pos=1280.000000x1024.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=0
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[91]: plane-4
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=1
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[101]: plane-5
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=2
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[111]: plane-6
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=3
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[121]: plane-7
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=4
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[131]: plane-8
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=5
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[141]: plane-9
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=6
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[151]: plane-10
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=7
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[161]: plane-11
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=8
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[171]: plane-12
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=9
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[181]: plane-13
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=a
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[191]: plane-14
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=b
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[201]: plane-15
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=c
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[211]: plane-16
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=d
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[221]: plane-17
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=e
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[231]: plane-18
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=f
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[241]: plane-19
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=10
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[251]: plane-20
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=11
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[261]: plane-21
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=11
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[271]: plane-22
    crtc=(null)
    fb=0
    crtc-pos=0x0+0+0
    src-pos=0.000000x0.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=11
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
plane[281]: plane-23
    crtc=pixelvalve-2
    fb=292
        allocated by = Xorg
        refcount=1
        format=AR24 little-endian (0x34325241)
        modifier=0x0
        size=64x64
        layers:
            size[0]=64x64
            pitch[0]=256
            offset[0]=0
            obj[0]:
                name=0
                refcount=3
                start=0001078c
                size=16384
                imported=no
    crtc-pos=64x64+982+287
    src-pos=64.000000x64.000000+0.000000+0.000000
    rotation=1
    normalized-zpos=1
    color-encoding=ITU-R BT.709 YCbCr
    color-range=YCbCr limited range
crtc[51]: txp
    enable=0
    active=0
    self_refresh_active=0
    planes_changed=0
    mode_changed=0
    active_changed=0
    connectors_changed=0
    color_mgmt_changed=0
    plane_mask=0
    connector_mask=0
    encoder_mask=0
    mode: "": 0 0 0 0 0 0 0 0 0 0 0x0 0x0
crtc[68]: pixelvalve-0
    enable=0
    active=0
    self_refresh_active=0
    planes_changed=0
    mode_changed=0
    active_changed=0
    connectors_changed=0
    color_mgmt_changed=0
    plane_mask=0
    connector_mask=0
    encoder_mask=0
    mode: "": 0 0 0 0 0 0 0 0 0 0 0x0 0x0
crtc[79]: pixelvalve-1
    enable=0
    active=0
    self_refresh_active=0
    planes_changed=0
    mode_changed=0
    active_changed=0
    connectors_changed=0
    color_mgmt_changed=0
    plane_mask=0
    connector_mask=0
    encoder_mask=0
    mode: "": 0 0 0 0 0 0 0 0 0 0 0x0 0x0
crtc[90]: pixelvalve-2
    enable=1
    active=1
    self_refresh_active=0
    planes_changed=0
    mode_changed=0
    active_changed=0
    connectors_changed=0
    color_mgmt_changed=0
    plane_mask=800008
    connector_mask=1
    encoder_mask=1
    mode: "": 60 108879 1280 1360 1496 1712 1024 1025 1028 1060 0x0 0x6
connector[32]: HDMI-A-1
    crtc=pixelvalve-2
    self_refresh_aware=0
    max_requested_bpc=8
connector[57]: Writeback-1
    crtc=(null)
    self_refresh_aware=0
    max_requested_bpc=0

config.txt
----------

aphy_params_current=819
arm_boost=1
arm_freq=1400
arm_freq_min=600
audio_pwm_mode=514
auto_initramfs=1
camera_auto_detect=1
config_hdmi_boost=5
core_freq=400
desired_osc_freq=0x331df0
desired_osc_freq_boost=0x3c45b0
disable_commandline_tags=2
disable_fw_kms_setup=1
disable_l2cache=1
disable_overscan=1
display_auto_detect=1
display_hdmi_rotate=-1
display_lcd_rotate=-1
dphy_params_current=547
dvfs=3
enable_tvout=1
enable_uart=1
force_eeprom_read=1
force_pwm_open=1
framebuffer_ignore_alpha=1
framebuffer_swap=1
gpu_freq=300
hdmi_enable_4kp60=-1
init_uart_clock=0x2dc6c00
lcd_framerate=60
mask_gpu_interrupt0=3072
mask_gpu_interrupt1=26370
max_framebuffers=2
over_voltage_avs=31250
over_voltage_avs_boost=0x2191c
pause_burst_frames=1
pciex4_reset=1
program_serial_random=1
sdram_freq=450
total_mem=1024
hdmi_force_cec_address:0=65535
hdmi_force_cec_address:1=65535
hdmi_pixel_freq_limit:0=0x9a7ec80
hdmi_pixel_freq_limit:1=0x9a7ec80
device_tree=-
overlay_prefix=overlays/
hdmi_cvt:0=
hdmi_cvt:1=
hdmi_edid_filename:0=
hdmi_edid_filename:1=
hdmi_timings:0=
hdmi_timings:1=

cmdline.txt
-----------
coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_hdmi=0  vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyAMA0,115200 console=tty1 root=PARTUUID=09701a8f-02 rootfstype=ext4 fsck.repair=yes rootwait plymouth.ignore-serial-consoles video=HDMI-A-1:1280x1024@60 cfg80211.ieee80211_regdom=GB

pin configuration
-----------------

 0: ip    -- | hi // ID_SDA/GPIO0 = input
 1: ip    -- | hi // ID_SCL/GPIO1 = input
 2: ip    -- | hi // SDA1/GPIO2 = input
 3: ip    -- | hi // SCL1/GPIO3 = input
 4: ip    -- | hi // GPIO_GCLK/GPIO4 = input
 5: ip    -- | hi // GPIO5 = input
 6: ip    -- | hi // GPIO6 = input
 7: ip    -- | hi // SPI_CE1_N/GPIO7 = input
 8: ip    -- | hi // SPI_CE0_N/GPIO8 = input
 9: ip    -- | lo // SPI_MISO/GPIO9 = input
10: ip    -- | lo // SPI_MOSI/GPIO10 = input
11: ip    -- | lo // SPI_SCLK/GPIO11 = input
12: ip    -- | lo // GPIO12 = input
13: ip    -- | lo // GPIO13 = input
14: a0    -- | hi // TXD1/GPIO14 = TXD0
15: a0    -- | hi // RXD1/GPIO15 = RXD0
16: ip    -- | lo // GPIO16 = input
17: ip    -- | lo // GPIO17 = input
18: ip    -- | lo // GPIO18 = input
19: ip    -- | lo // GPIO19 = input
20: ip    -- | lo // GPIO20 = input
21: ip    -- | lo // GPIO21 = input
22: ip    -- | lo // GPIO22 = input
23: ip    -- | lo // GPIO23 = input
24: ip    -- | lo // GPIO24 = input
25: ip    -- | lo // GPIO25 = input
26: ip    -- | lo // GPIO26 = input
27: ip    -- | lo // GPIO27 = input
28: ip    -- | lo // HDMI_HPD_N/GPIO28 = input
29: op -- -- | lo // STATUS_LED_G/GPIO29 = output
30: ip    -- | hi // CTS0/GPIO30 = input
31: ip    -- | hi // RTS0/GPIO31 = input
32: ip    -- | lo // TXD0/GPIO32 = input
33: ip    -- | lo // RXD0/GPIO33 = input
34: ip    -- | hi // SD1_CLK/GPIO34 = input
35: ip    -- | hi // SD1_CMD/GPIO35 = input
36: ip    -- | hi // SD1_DATA0/GPIO36 = input
37: ip    -- | hi // SD1_DATA1/GPIO37 = input
38: ip    -- | hi // SD1_DATA2/GPIO38 = input
39: ip    -- | hi // SD1_DATA3/GPIO39 = input
40: a0    -- | lo // PWM0_OUT/GPIO40 = PWM0
41: a0    -- | lo // PWM1_OUT/GPIO41 = PWM1
42: a0    -- | hi // ETH_CLK/GPIO42 = GPCLK1
43: a0    -- | hi // WIFI_CLK/GPIO43 = GPCLK2
44: ip    -- | hi // SDA0/GPIO44 = input
45: ip    -- | hi // SCL0/GPIO45 = input
46: ip    -- | hi // SMPS_SCL/GPIO46 = input
47: op -- -- | hi // SMPS_SDA/GPIO47 = output
48: a0    -- | lo // SD_CLK_R/GPIO48 = SD0_CLK
49: a0    -- | hi // SD_CMD_R/GPIO49 = SD0_CMD
50: a0    -- | hi // SD_DATA0_R/GPIO50 = SD0_DAT0
51: a0    -- | hi // SD_DATA1_R/GPIO51 = SD0_DAT1
52: a0    -- | hi // SD_DATA2_R/GPIO52 = SD0_DAT2
53: a0    -- | hi // SD_DATA3_R/GPIO53 = SD0_DAT3

vcdbg log messages
------------------

Failed to allocate -201253077 bytes for message buffer

dmesg log
---------

[62553.843342] EDID block 0 (tag 0x00) checksum is invalid, remainder is 24
....
Removed a full buffer of replicated messages
....
[82276.179596] EDID block 0 (tag 0x00) checksum is invalid, remainder is 24

Logs

dmesg is currently 1927 lines showing the error above.

Additional context

No response

popcornmix commented 10 months ago

Normally the EDID is only re-read when hotplug deasserts/reasserts to indicate display has changed its reported features (or a different display is attached).

I wonder if a hardware fault it triggering this unwantedly? Can you try adding vc4.force_hotplug=1 to cmdline.txt (on existing line) which should cause the hotpug line to be ignored.

pcollinson commented 10 months ago

Thanks for the speedy response.

Adding vc4.force_hotplug=1 makes the screen stay on - so is an improvement, it's no longer turning off as the system switches from the firmware boot to the kernel boot.

However, it's made no difference to the report

EDID block 0 (tag 0x00) checksum is invalid, remainder is 24

which still happens 3 times a minute.

I tried adding back in the EDID binaries, installing the compiled code in /lib/firmware/edid and adding:

drm.edid_firmware=edid/1280x1024.bin

into the kernel command line.

I now get:

kernel: [drm] Got built-in EDID base block and 0 extensions from "edid/1280x1024.bin" for connector "HDMI-A-1"

but it happens 6 times a minute. So I've removed it. However, is it using a cached copy of the data or actually re-reading the file every time?

Just be good to get rid of this printf down to a single repeat.

popcornmix commented 10 months ago

If you unplug hdmi cable do the 3 (or 6) times a minute messages continue? The vc4.force_hotplug=1 should mean the Pi doesn't see the disconnect, so I'd expect it to continue. If it does, that rules out the display as provoking the message.

The other test is to try a clean install of bookworm (with vc4.force_hotplug=1) and check if messages occur. If they don't then perhaps some installed (but not default) software is triggering it.

pcollinson commented 10 months ago

OK. It looks like the display is triggering this, sorry I didn't think of that.

Turning the display off - no change. Unplugging when off or on: logs stop. Plugging back in again: logs start again. So it looks like something in this early display is doing it. It must be over 20 years old.

I found I could do a Factory Reset on the display - but that had no effect.

So I'll unplug the screen when not needed.

Thanks for your assistance.

popcornmix commented 10 months ago

The only thing I can think of that the display is doing to provoke this is toggling the hotplug detect line. But I'd expect vc4.force_hotplug=1 to hide that. Just to confirm, that setting is working can you show output of:

cat /proc/cmdline
cat /sys/module/vc4/parameters/force_hotplug
pcollinson commented 10 months ago

Hotplug is definitely working....

~# cat /proc/cmdline
coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_hdmi=0  vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyAMA0,115200 console=tty1 root=PARTUUID=09701a8f-02 rootfstype=ext4 fsck.repair=yes rootwait plymouth.ignore-serial-consoles video=HDMI-A-1:1280x1024@60 vc4.force_hotplug=1 cfg80211.ieee80211_regdom=GB
~# cat /sys/module/vc4/parameters/force_hotplug
1
pcollinson commented 10 months ago

Perhaps the designers wanted to detect DVI or VGA input and switch automatically - which I think it does.