From 2604fb576c84d5afdadae2238a1307a0aa00a1b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Wagner?= Date: Sat, 6 Jan 2024 14:24:35 +0000 Subject: Increase verbosity for hardstop / reset cases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- mali_kbase/backend/gpu/mali_kbase_js_backend.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mali_kbase') 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 */ -- cgit v1.2.3