<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - drm_kms_helper.edid / EDID not working as expected"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93226">93226</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>drm_kms_helper.edid / EDID not working as expected
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Driver/intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>alex@znirp.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi,

first: I hope I've choosen the correct category for my bug.
Actually I'm facing an issue with drm_kms_helper.edid, which is not working
correctly.
OS is Ubuntu LTS 14.04.

What I Did:

###########

To get video and sound I'm using actual kernel 4.4-rc2

###########

sudo mkdir -p /lib/firmware/edid
sudo cp /sys/class/drm/card0-HDMI-A-2/edid /lib/firmware/edid/edid.bin

EDID file is exactly 256 Bytes long. 

###########

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=HDMI-A-2:1920x1080@60D
drm_kms_helper.edid_firmware=HDMI-A-2:edid/edid.bin"

Afterwards ran update-grub

root@kodi:~# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.4.0-040400rc2-generic root=/dev/mapper/live--vg-root ro
quiet splash video=HDMI-A-2:1920x1080@60D
drm_kms_helper.edid_firmware=HDMI-A-2:edid/edid.bin vt.handoff=7

###########

Additionally I used a initramfs hook to integrate EDID within the initramfs
(/etc/initramfs-tools/hooks/include-edid-data):

#!/bin/sh

PREREQ="udev"
prereqs()
{
   echo "$PREREQ"
}

case $1 in
prereqs)
   prereqs
   exit 0
   ;;
esac

. /usr/share/initramfs-tools/hook-functions
# Begin real processing below this line

if [ ! -e "${DESTDIR}/lib/firmware/edid" ]; then
    mkdir -p "${DESTDIR}/lib/firmware/edid"
fi

if [ -r "/lib/firmware/edid/edid.bin" ]; then
   cp "/lib/firmware/edid/edid.bin" "${DESTDIR}/lib/firmware/edid/"
fi

manual_add_modules i915 radeon
exit 0

After that, I'd made it executable and ran: update-initramfs -u

###########

So far everything is working like expected. When I reboot I've got picture and
sound.
What's not working is, when my PC turns on (without my TV and my AVR) and I
turn on both (AVR+TV) later (e.g. one hour later), I got no picture and no
sound.

Syslog is telling me:

Dec  3 13:27:14 kodi kernel: [ 3486.786132] [drm:drm_edid_block_valid [drm]]
*ERROR* EDID checksum is invalid, remainder is 15
Dec  3 13:27:14 kodi kernel: [ 3486.786135] Raw EDID:
Dec  3 13:27:14 kodi kernel: [ 3486.786136]     00 ff ff ff ff ff ff 00 11 ee
27 00 01 01 01 01
Dec  3 13:27:14 kodi kernel: [ 3486.786137]     00 15 01 03 80 50 2d 78 0a 0d
c9 a0 57 47 98 27
Dec  3 13:27:14 kodi kernel: [ 3486.786138]     12 48 4c 20 00 00 01 01 01 01
01 01 01 01 01 01
Dec  3 13:27:14 kodi kernel: [ 3486.786139]     ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
Dec  3 13:27:14 kodi kernel: [ 3486.786139]     ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
Dec  3 13:27:14 kodi kernel: [ 3486.786140]     ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
Dec  3 13:27:14 kodi kernel: [ 3486.786141]     ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
Dec  3 13:27:14 kodi kernel: [ 3486.786142]     ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
Dec  3 13:27:14 kodi kernel: [ 3486.798655] EDID block is all zeroes
Dec  3 13:27:14 kodi kernel: [ 3486.811157] EDID block is all zeroes
Dec  3 13:27:14 kodi kernel: [ 3486.823662] EDID block is all zeroes
Dec  3 13:27:14 kodi kernel: [ 3486.823667] i915 0000:00:02.0: HDMI-A-2: EDID
block 0 invalid.
Dec  3 13:27:14 kodi kernel: [ 3486.823740] [drm] Got external EDID base block
and 1 extension from "edid/edid.bin" for connector "HDMI-A-2"
Dec  3 13:27:19 kodi kernel: [ 3491.873675] [drm] Got external EDID base block
and 1 extension from "edid/edid.bin" for connector "HDMI-A-2"
Dec  3 13:27:19 kodi kernel: [ 3491.960732] [drm] Got external EDID base block
and 1 extension from "edid/edid.bin" for connector "HDMI-A-2"
Dec  3 13:27:19 kodi kernel: [ 3492.007403] [drm] Got external EDID base block
and 1 extension from "edid/edid.bin" for connector "HDMI-A-2"
Dec  3 13:27:19 kodi kernel: [ 3492.069470] [drm] Got external EDID base block
and 1 extension from "edid/edid.bin" for connector "HDMI-A-2"


If you need further information or explanation, please let me know.
Hoping someone can help me solving this issue.

Thanks in advance.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>