Hi,

> > (And in the long run we should use or write a tool to generate EDIDs
> > instead of using assembly with macros. And like Jon already mentioned in
> > the other thread, even the assembly probably shouldn't be under
> > Documentation. But I digress.)
> 
> If we do that, maybe stuff the EDID things into Documentation/gpu? Would
> need an ack from media folks I think, but imo would make sense.

Oh, btw:  I've written a edid generator for qemu for the virtual display
devices, and I've also added a small test tool so you don't have to boot
a virtual machine to test the thing.  Will ship with the upcoming qemu
3.1 release.  You might find this useful ...

cheers,
  Gerd

============================== cut here ==============================
# qemu-edid -h

This is a test tool for the qemu edid generator.

Typically you'll pipe the output into edid-decode
to check if the generator works correctly.

usage: qemu-edid <options>
options:
    -h             print this text
    -o <file>      set output file (stdout by default)
    -v <vendor>    set monitor vendor (three letters)
    -n <name>      set monitor name
    -s <serial>    set monitor serial
    -d <dpi>       set display resolution
    -x <prefx>     set preferred width
    -y <prefy>     set preferred height
    -X <maxx>      set maximum width
    -Y <maxy>      set maximum height

# qemu-edid | edid-decode 
Extracted contents:
header:          00 ff ff ff ff ff ff 00
serial number:   49 14 34 12 00 00 00 00 2a 18
version:         01 04
basic params:    a5 28 1e 78 06
chroma info:     ee 91 a3 54 4c 99 26 0f 50 54
established:     21 08 00
standard:        e1 c0 d1 c0 01 01 01 01 01 01 01 01 01 01 01 01
descriptor 1:    25 20 00 66 41 00 1a 30 00 1e 33 40 93 2e 11 00 00 18
descriptor 2:    00 00 00 fd 00 32 7d 1e a0 78 01 0a 20 20 20 20 20 20
descriptor 3:    00 00 00 fc 00 51 45 4d 55 20 4d 6f 6e 69 74 6f 72 0a
descriptor 4:    00 00 00 f7 00 0a 00 4a a2 24 29 20 00 00 00 00 00 00
extensions:      01
checksum:        19

Manufacturer: RHT Model 1234 Serial Number 0
Made week 42 of 2014
EDID version: 1.4
Digital display
8 bits per primary color channel
DisplayPort interface
Maximum image size: 40 cm x 30 cm
Gamma: 2.20
Supported color formats: RGB 4:4:4
Default (sRGB) color space is primary color space
First detailed timing is preferred timing
Established timings supported:
  640x480@60Hz
  800x600@60Hz
  1024x768@60Hz
Standard timings supported:
  2048x1152@60Hz
  1920x1080@60Hz
Detailed mode: Clock 82.290 MHz, 403 mm x 302 mm
               1024 1280 1310 1382 hborder 0
                768  771  774  794 vborder 0
               -hsync -vsync 
Monitor ranges (bare limits): 50-125Hz V, 30-160kHz H, max dotclock 1200MHz
Monitor name: QEMU Monitor
Established timings III
Has 1 extension blocks
Checksum: 0x19 (valid)

CEA extension block
Extension version: 3
6 bytes of CEA data
  Video data block
    VIC 125 Unknown mode 
    VIC 101 4096x2160@50Hz 
    VIC  96 3840x2160@50Hz 
    VIC  89 2560x1080@50Hz 
    VIC  31 1920x1080@50Hz 
0 native detailed modes
Checksum: 0xf2 (valid)

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to