Mesa (master): panfrost/decode: Decode exception status

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 27 07:14:20 UTC 2019


Module: Mesa
Branch: master
Commit: fa36c194fd72067eb0fe8110283ce7f8a54b6823
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fa36c194fd72067eb0fe8110283ce7f8a54b6823

Author: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Date:   Tue Jun 25 08:22:30 2019 +0200

panfrost/decode: Decode exception status

Arm's kernel driver mentions how to decode this field, which makes a bit
clearer what had happened.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>

---

 src/gallium/drivers/panfrost/pandecode/decode.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pandecode/decode.c b/src/gallium/drivers/panfrost/pandecode/decode.c
index 8f96624872a..4547f52e5fe 100644
--- a/src/gallium/drivers/panfrost/pandecode/decode.c
+++ b/src/gallium/drivers/panfrost/pandecode/decode.c
@@ -2171,8 +2171,12 @@ pandecode_replay_jc(mali_ptr jc_gpu_va, bool bifrost)
                 if (h->job_descriptor_size)
                         pandecode_prop("job_descriptor_size = %d", h->job_descriptor_size);
 
-                if (h->exception_status)
-                        pandecode_prop("exception_status = %d", h->exception_status);
+                if (h->exception_status != 0x1)
+                        pandecode_prop("exception_status = %x (source ID: 0x%x access: 0x%x exception: 0x%x)",
+                                       h->exception_status,
+                                       (h->exception_status >> 16) & 0xFFFF,
+                                       (h->exception_status >> 8) & 0x3,
+                                       h->exception_status  & 0xFF);
 
                 if (h->first_incomplete_task)
                         pandecode_prop("first_incomplete_task = %d", h->first_incomplete_task);




More information about the mesa-commit mailing list