From f6bf17391fbb94086a1142a18f6301c24535df30 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Tue, 6 Dec 2016 09:03:04 +1000 Subject: [PATCH] drm/nouveau/mxm: handle DCB 4.1 modification Allows MXM DCB modification to be handled on GM20x and newer boards. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c index db14fad2ddfc..d4ecc43b9275 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c @@ -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; } -- 2.20.1