Re: vc4: HDMI Sink doesn't support RGB, something's wrong.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 14 Oct 2024 at 10:04, Maxime Ripard <mripard@xxxxxxxxxx> wrote:
>
> Hi,
>
> On Sun, Oct 13, 2024 at 09:57:58PM GMT, Stefan Wahren wrote:
> > Am 13.10.24 um 21:11 schrieb Dave Stevenson:
> > > Hi Stefan.
> > >
> > > On Sun, 13 Oct 2024, 18:19 Stefan Wahren, <wahrenst@xxxxxxx> wrote:
> > >
> > >     Hi,
> > >
> > >     i recently switch for my suspend2idle tests from Raspberry Pi Bullseye
> > >     to Bookworm. After that testing suspend2idle shows a new warning
> > >     which i
> > >     never saw before:
> > >
> > >     HDMI Sink doesn't support RGB, something's wrong.
> > >
> > >
> > > Can you provide the edid of your display please?
> >
> > Sure
> >
> > [    27.145] (II) modeset(0): Monitor name: HP ZR2440w
> > [    27.145] (II) modeset(0): Serial No: CN423402RL
> >
> > ...
> >
> > [    27.146] (II) modeset(0): EDID (in hex):
> > [    27.146] (II) modeset(0):     00ffffffffffff0022f0562901010101
> > [    27.146] (II) modeset(0):     22160103803420782afc81a4554d9d25
> > [    27.146] (II) modeset(0):     125054210800d1c081c0814081809500
> > [    27.146] (II) modeset(0):     a940b3000101283c80a070b023403020
> > [    27.146] (II) modeset(0):     360006442100001a000000fd00183c18
> > [    27.146] (II) modeset(0):     5011000a202020202020000000fc0048
> > [    27.146] (II) modeset(0):     50205a5232343430770a2020000000ff
> > [    27.146] (II) modeset(0):     00434e343233343032524c0a2020015b
> > [    27.146] (II) modeset(0):     02031ff14c901f051404130302070612
> > [    27.147] (II) modeset(0):     0165030c001000230907078301000002
> > [    27.147] (II) modeset(0):     3a801871382d40582c45000644210000
> > [    27.147] (II) modeset(0):     1e023a80d072382d40102c4580064421
> > [    27.147] (II) modeset(0):     00001e011d007251d01e206e28550006
> > [    27.147] (II) modeset(0):     442100001e011d00bc52d01e20b82855
> > [    27.147] (II) modeset(0):     4006442100001e8c0ad08a20e02d1010
> > [    27.147] (II) modeset(0):     3e9600064421000018000000000000c1
>
> It's a bit hard to extract, could you provide the output of
>
> cat /sys/class/drm/card/cardX-HDMI-A-X/edid | edid-decode --check

I reformatted it.
00ffffffffffff0022f0562901010101
22160103803420782afc81a4554d9d25
125054210800d1c081c0814081809500
a940b3000101283c80a070b023403020
360006442100001a000000fd00183c18
5011000a202020202020000000fc0048
50205a5232343430770a2020000000ff
00434e343233343032524c0a2020015b
02031ff14c901f051404130302070612
0165030c001000230907078301000002
3a801871382d40582c45000644210000
1e023a80d072382d40102c4580064421
00001e011d007251d01e206e28550006
442100001e011d00bc52d01e20b82855
4006442100001e8c0ad08a20e02d1010
3e9600064421000018000000000000c1

$ ./build/edid-decode --check StefanEDID.txt
edid-decode (hex):

00 ff ff ff ff ff ff 00 22 f0 56 29 01 01 01 01
22 16 01 03 80 34 20 78 2a fc 81 a4 55 4d 9d 25
12 50 54 21 08 00 d1 c0 81 c0 81 40 81 80 95 00
a9 40 b3 00 01 01 28 3c 80 a0 70 b0 23 40 30 20
36 00 06 44 21 00 00 1a 00 00 00 fd 00 18 3c 18
50 11 00 0a 20 20 20 20 20 20 00 00 00 fc 00 48
50 20 5a 52 32 34 34 30 77 0a 20 20 00 00 00 ff
00 43 4e 34 32 33 34 30 32 52 4c 0a 20 20 01 5b

02 03 1f f1 4c 90 1f 05 14 04 13 03 02 07 06 12
01 65 03 0c 00 10 00 23 09 07 07 83 01 00 00 02
3a 80 18 71 38 2d 40 58 2c 45 00 06 44 21 00 00
1e 02 3a 80 d0 72 38 2d 40 10 2c 45 80 06 44 21
00 00 1e 01 1d 00 72 51 d0 1e 20 6e 28 55 00 06
44 21 00 00 1e 01 1d 00 bc 52 d0 1e 20 b8 28 55
40 06 44 21 00 00 1e 8c 0a d0 8a 20 e0 2d 10 10
3e 96 00 06 44 21 00 00 18 00 00 00 00 00 00 c1

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

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.3
  Vendor & Product Identification:
    Manufacturer: HWP
    Model: 10582
    Serial Number: 16843009 (0x01010101)
    Made in: week 34 of 2012
  Basic Display Parameters & Features:
    Digital display
    Maximum image size: 52 cm x 32 cm
    Gamma: 2.20
    DPMS levels: Off
    RGB color display
    First detailed timing is the preferred timing
  Color Characteristics:
    Red  : 0.6435, 0.3349
    Green: 0.3037, 0.6132
    Blue : 0.1464, 0.0703
    White: 0.3125, 0.3291
  Established Timings I & II:
    DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
    DMT 0x09:   800x600    60.316541 Hz   4:3     37.879 kHz     40.000000 MHz
    DMT 0x10:  1024x768    60.003840 Hz   4:3     48.363 kHz     65.000000 MHz
  Standard Timings:
    DMT 0x52:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
    DMT 0x55:  1280x720    60.000000 Hz  16:9     45.000 kHz     74.250000 MHz
    DMT 0x20:  1280x960    60.000000 Hz   4:3     60.000 kHz    108.000000 MHz
    DMT 0x23:  1280x1024   60.019740 Hz   5:4     63.981 kHz    108.000000 MHz
    DMT 0x2f:  1440x900    59.887445 Hz  16:10    55.935 kHz    106.500000 MHz
    DMT 0x33:  1600x1200   60.000000 Hz   4:3     75.000 kHz    162.000000 MHz
    DMT 0x3a:  1680x1050   59.954250 Hz  16:10    65.290 kHz    146.250000 MHz
  Detailed Timing Descriptors:
    DTD 1:  1920x1200   59.950171 Hz  16:10    74.038 kHz
154.000000 MHz (518 mm x 324 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol P
                 Vfront    3 Vsync   6 Vback   26 Vpol N
    Display Range Limits:
      Monitor ranges (GTF): 24-60 Hz V, 24-80 kHz H, max dotclock 170 MHz
    Display Product Name: 'HP ZR2440w'
    Display Product Serial Number: 'CN423402RL'
  Extension blocks: 1
Checksum: 0x5b

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

Block 1, CTA-861 Extension Block:
  Revision: 3
  Underscans IT Video Formats by default
  Basic audio support
  Supports YCbCr 4:4:4
  Supports YCbCr 4:2:2
  Native detailed modes: 1
  Video Data Block:
    VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz
148.500000 MHz (native)
    VIC  31:  1920x1080   50.000000 Hz  16:9     56.250 kHz    148.500000 MHz
    VIC   5:  1920x1080i  60.000000 Hz  16:9     33.750 kHz     74.250000 MHz
    VIC  20:  1920x1080i  50.000000 Hz  16:9     28.125 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   3:   720x480    59.940060 Hz  16:9     31.469 kHz     27.000000 MHz
    VIC   2:   720x480    59.940060 Hz   4:3     31.469 kHz     27.000000 MHz
    VIC   7:  1440x480i   59.940060 Hz  16:9     15.734 kHz     27.000000 MHz
    VIC   6:  1440x480i   59.940060 Hz   4:3     15.734 kHz     27.000000 MHz
    VIC  18:   720x576    50.000000 Hz  16:9     31.250 kHz     27.000000 MHz
    VIC   1:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
  Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
    Source physical address: 1.0.0.0
  Audio Data Block:
    Linear PCM:
      Max channels: 2
      Supported sample rates (kHz): 48 44.1 32
      Supported sample sizes (bits): 24 20 16
  Speaker Allocation Data Block:
    FL/FR - Front Left/Right
  Detailed Timing Descriptors:
    DTD 2:  1920x1080   60.000000 Hz  16:9     67.500 kHz
148.500000 MHz (518 mm x 324 mm)
                 Hfront   88 Hsync  44 Hback  148 Hpol P
                 Vfront    4 Vsync   5 Vback   36 Vpol P
    DTD 3:  1920x1080   50.000000 Hz  16:9     56.250 kHz
148.500000 MHz (518 mm x 324 mm)
                 Hfront  528 Hsync  44 Hback  148 Hpol P
                 Vfront    4 Vsync   5 Vback   36 Vpol P
    DTD 4:  1280x720    60.000000 Hz  16:9     45.000 kHz
74.250000 MHz (518 mm x 324 mm)
                 Hfront  110 Hsync  40 Hback  220 Hpol P
                 Vfront    5 Vsync   5 Vback   20 Vpol P
    DTD 5:  1280x720    50.000000 Hz  16:9     37.500 kHz
74.250000 MHz (518 mm x 324 mm)
                 Hfront  440 Hsync  40 Hback  220 Hpol P
                 Vfront    5 Vsync   5 Vback   20 Vpol P
    DTD 6:   720x480    59.940060 Hz   3:2     31.469 kHz
27.000000 MHz (518 mm x 324 mm)
                 Hfront   16 Hsync  62 Hback   60 Hpol N
                 Vfront    9 Vsync   6 Vback   30 Vpol N
Checksum: 0xc1  Unused space in Extension Block: 6 bytes

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

edid-decode SHA: 88d457cbcabc 2024-09-03 14:12:56

Warnings:

Block 0, Base EDID:
  Vendor & Product Identification: The serial number is one of the
known dummy values, it should probably be set to 0.
Block 1, CTA-861 Extension Block:
  Video Data Block: VIC 16 and the first DTD are not identical. Is
this intended?
  Display Product Serial Number is set, so the Serial Number in the
Base EDID should be 0.
  Add a Colorimetry Data Block with the sRGB colorimetry bit set to
avoid interop issues.
EDID:
  Base EDID: Some timings are out of range of the Monitor Ranges:
    Horizontal Freq: 15.734 - 75.000 kHz (Monitor: 24.000 - 80.000 kHz)

Failures:

Block 1, CTA-861 Extension Block:
  Missing VCDB, needed for Set Selectable RGB Quantization to avoid
interop issues.
EDID:
  CTA-861: Native progressive timings are a mix of several resolutions.

EDID conformity: FAIL


The failure is coming from sink_supports_format_bpc()[1], but the flag
for DRM_COLOR_FORMAT_RGB444 should have been set from
update_display_info()[2] parsing the EDID.

Loading that EDID in via drm.edid_firmware has given me a console at
1920x1200@60 without any issues, so I'm a little confused as to what
is going on.

  Dave

[1] https://elixir.bootlin.com/linux/v6.12-rc2/source/drivers/gpu/drm/display/drm_hdmi_state_helper.c#L130
[2] https://elixir.bootlin.com/linux/v6.12-rc2/source/drivers/gpu/drm/drm_edid.c#L6669



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux