drm/nouveau/mxm: handle DCB 4.1 modification
authorBen Skeggs <bskeggs@redhat.com>
Mon, 5 Dec 2016 23:03:04 +0000 (09:03 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 5 Dec 2016 23:08:23 +0000 (09:08 +1000)
Allows MXM DCB modification to be handled on GM20x and newer boards.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c

index db14fad2ddfc9a405329e84b90d5d8ded5d8fd2a..d4ecc43b927578f64fd5609b9884a121ed32e666 100644 (file)
@@ -190,7 +190,7 @@ mxm_dcb_sanitise(struct nvkm_mxm *mxm)
        struct nvkm_bios *bios = subdev->device->bios;
        u8  ver, hdr, cnt, len;
        u16 dcb = dcb_table(bios, &ver, &hdr, &cnt, &len);
-       if (dcb == 0x0000 || ver != 0x40) {
+       if (dcb == 0x0000 || (ver != 0x40 && ver != 0x41)) {
                nvkm_debug(subdev, "unsupported DCB version\n");
                return;
        }