diff options
author | Jörg Wagner <jorwag@google.com> | 2024-01-06 14:24:35 +0000 |
---|---|---|
committer | Jörg Wagner <jorwag@google.com> | 2024-01-09 08:46:33 +0000 |
commit | 2604fb576c84d5afdadae2238a1307a0aa00a1b6 (patch) | |
tree | 7b85bd15aabde10ef4b17e63bca125e2d150df8d | |
parent | 11473542814286e59a89a70c969fb50a25ba921f (diff) | |
download | gpu-2604fb576c84d5afdadae2238a1307a0aa00a1b6.tar.gz |
Increase verbosity for hardstop / reset cases
Emit job slot and ctx information for atoms hitting
hard-stop and reset timeouts.
Bug: 300182515
Change-Id: Iabbd35e24a19ce0d826bb14b3de44899370721dd
Signed-off-by: Jörg Wagner <jorwag@google.com>
-rw-r--r-- | mali_kbase/backend/gpu/mali_kbase_js_backend.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mali_kbase/backend/gpu/mali_kbase_js_backend.c b/mali_kbase/backend/gpu/mali_kbase_js_backend.c index 2afc06a..be72c4a 100644 --- a/mali_kbase/backend/gpu/mali_kbase_js_backend.c +++ b/mali_kbase/backend/gpu/mali_kbase_js_backend.c @@ -172,8 +172,8 @@ static enum hrtimer_restart timer_callback(struct hrtimer *timer) u32 ms = js_devdata->scheduling_period_ns / 1000000u; dev_warn( kbdev->dev, - "JS: Job Hard-Stopped (took more than %u ticks at %u ms/tick)", - ticks, ms); + "JS: Job Slot %u from ctx_%d_%d Hard-Stopped (took more than %u ticks at %u ms/tick)", + s, atom->kctx->tgid, atom->kctx->pid, ticks, ms); kbase_job_slot_hardstop(atom->kctx, s, atom); #endif } else if (ticks == gpu_reset_ticks) { @@ -183,6 +183,8 @@ static enum hrtimer_restart timer_callback(struct hrtimer *timer) * Signal that the GPU needs to be * reset. */ + dev_err(kbdev->dev, "JS: Job Slot %u from ctx_%d_%d has been on the GPU for too long.", + s, atom->kctx->tgid, atom->kctx->pid); reset_needed = true; } #else /* !CONFIG_MALI_JOB_DUMP */ |