drm/nvc0: more vm fault reasons
authorBen Skeggs <bskeggs@redhat.com>
Mon, 28 Mar 2011 22:57:34 +0000 (08:57 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 May 2011 00:47:34 +0000 (10:47 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvc0_fifo.c

index 3eaf5d1e01cc63465d1021d4646935789d3c7437..e6cb17a7fb3e424ef1d4cdcf5bf16b612604642b 100644 (file)
@@ -371,10 +371,15 @@ struct nouveau_enum nvc0_fifo_fault_unit[] = {
 };
 
 struct nouveau_enum nvc0_fifo_fault_reason[] = {
-       { 0, "PT_NOT_PRESENT" },
-       { 1, "PT_TOO_SHORT" },
-       { 2, "PAGE_NOT_PRESENT" },
-       { 3, "VM_LIMIT_EXCEEDED" },
+       { 0x00, "PT_NOT_PRESENT" },
+       { 0x01, "PT_TOO_SHORT" },
+       { 0x02, "PAGE_NOT_PRESENT" },
+       { 0x03, "VM_LIMIT_EXCEEDED" },
+       { 0x04, "NO_CHANNEL" },
+       { 0x05, "PAGE_SYSTEM_ONLY" },
+       { 0x06, "PAGE_READ_ONLY" },
+       { 0x0a, "COMPRESSED_SYSRAM" },
+       { 0x0c, "INVALID_STORAGE_TYPE" },
        {}
 };