drm/nouveau/mxm: add some extra debug output
authorBen Skeggs <bskeggs@redhat.com>
Wed, 19 Oct 2016 02:14:24 +0000 (12:14 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Nov 2016 04:04:13 +0000 (14:04 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c

index 21b65ee254e4d5a9d07f95d1bf87804ef4b3ad7b..e3e2f5e838152bfc5f6f0eaa6b6b4fe1cbc15a84 100644 (file)
@@ -250,6 +250,10 @@ nvkm_mxm_new_(struct nvkm_device *device, int index, struct nvkm_mxm **pmxm)
        }
 
        nvkm_info(&mxm->subdev, "BIOS version %d.%d\n", ver >> 4, ver & 0x0f);
+       nvkm_debug(&mxm->subdev, "module flags: %02x\n",
+                  nvbios_rd08(bios, data + 0x01));
+       nvkm_debug(&mxm->subdev, "config flags: %02x\n",
+                  nvbios_rd08(bios, data + 0x02));
 
        if (mxm_shadow(mxm, ver)) {
                nvkm_warn(&mxm->subdev, "failed to locate valid SIS\n");