drm/gf119-/disp: fix debug output on update failure
authorBen Skeggs <bskeggs@redhat.com>
Wed, 4 Jun 2014 01:43:50 +0000 (11:43 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 11 Jun 2014 06:11:29 +0000 (16:11 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c

index 254a7a18c26dc5a8d07b1f3318f9642eac88bbce..b998040b5cca6b8dbad76a8ad0c74a202f8673bd 100644 (file)
@@ -1250,7 +1250,7 @@ nvd0_disp_intr_error(struct nv50_disp_priv *priv, int chid)
                 chid, (mthd & 0x0000ffc), data, mthd, unkn);
 
        if (chid == 0) {
-               switch (mthd) {
+               switch (mthd & 0xffc) {
                case 0x0080:
                        nv50_disp_mthd_chan(priv, NV_DBG_ERROR, chid - 0,
                                            impl->mthd.core);
@@ -1260,7 +1260,7 @@ nvd0_disp_intr_error(struct nv50_disp_priv *priv, int chid)
                }
        } else
        if (chid <= 4) {
-               switch (mthd) {
+               switch (mthd & 0xffc) {
                case 0x0080:
                        nv50_disp_mthd_chan(priv, NV_DBG_ERROR, chid - 1,
                                            impl->mthd.base);
@@ -1270,7 +1270,7 @@ nvd0_disp_intr_error(struct nv50_disp_priv *priv, int chid)
                }
        } else
        if (chid <= 8) {
-               switch (mthd) {
+               switch (mthd & 0xffc) {
                case 0x0080:
                        nv50_disp_mthd_chan(priv, NV_DBG_ERROR, chid - 5,
                                            impl->mthd.ovly);