aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/include
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-09 16:04:24 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-14 16:42:39 -0700
commit358372b256622569e292449238aa573051b7ab81 (patch)
tree4388c62bf0ec78d0ef8c9d9b0f507a59194f01e6 /src/panfrost/include
parentf5cc5ef40444fbfa40e2d95e9335ee7e33bd1a9b (diff)
pan/decode: Decode invalid access type upon fault
We don't have a good way to confirm this, but it parallels the kernel definitons for MMU faults nicely. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/include')
-rw-r--r--src/panfrost/include/panfrost-job.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h
index 51e9e78b8bd..77b9bc9c7af 100644
--- a/src/panfrost/include/panfrost-job.h
+++ b/src/panfrost/include/panfrost-job.h
@@ -652,6 +652,21 @@ struct mali_job_descriptor_header {
};
} __attribute__((packed));
+/* These concern exception_status */
+
+/* Access type causing a fault, paralleling AS_FAULTSTATUS_* entries in the
+ * kernel */
+
+enum mali_exception_access {
+ /* Atomic in the kernel for MMU, but that doesn't make sense for a job
+ * fault so it's just unused */
+ MALI_EXCEPTION_ACCESS_NONE = 0,
+
+ MALI_EXCEPTION_ACCESS_EXECUTE = 1,
+ MALI_EXCEPTION_ACCESS_READ = 2,
+ MALI_EXCEPTION_ACCESS_WRITE = 3
+};
+
struct mali_payload_set_value {
u64 out;
u64 unknown;