summaryrefslogtreecommitdiff
path: root/mali_kbase/platform
diff options
context:
space:
mode:
authorJeremy Kemp <jeremykemp@google.com>2022-08-16 11:37:28 +0100
committerJeremy Kemp <jeremykemp@google.com>2023-01-13 18:03:10 +0000
commitbd306f4f24cc491ed598e93676361dea00158e9f (patch)
treec7a89502f4f2e8f0ea7f6ced88d18298351e2641 /mali_kbase/platform
parent91dbcd44f872bb1bed7df1d665239f404a81ff04 (diff)
downloadgpu-bd306f4f24cc491ed598e93676361dea00158e9f.tar.gz
mali_kbase: Fix GPU_DBG timeout logging.
Fixes off-by one error in awaiting debug command. Bug: 260770411 Test: IFPO debug runs Change-Id: I939dc38b0293b221668c47eb420878b9fd125a95 Signed-off-by: Jeremy Kemp <jeremykemp@google.com>
Diffstat (limited to 'mali_kbase/platform')
-rw-r--r--mali_kbase/platform/pixel/pixel_gpu_debug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mali_kbase/platform/pixel/pixel_gpu_debug.c b/mali_kbase/platform/pixel/pixel_gpu_debug.c
index f7bd5ea..f08f0b0 100644
--- a/mali_kbase/platform/pixel/pixel_gpu_debug.c
+++ b/mali_kbase/platform/pixel/pixel_gpu_debug.c
@@ -33,10 +33,13 @@ static bool gpu_debug_check_dbg_active(struct kbase_device *kbdev)
val = kbase_reg_read(kbdev, GPU_CONTROL_REG(GPU_STATUS));
} while ((val & GPU_DBG_ACTIVE_BIT) && i++ < GPU_DBG_ACTIVE_MAX_LOOPS);
- if (i == GPU_DBG_ACTIVE_MAX_LOOPS) {
+ if (val & GPU_DBG_ACTIVE_BIT) {
dev_err(kbdev->dev, "Timed out waiting for GPU DBG command to complete");
return false;
}
+
+ dev_dbg(kbdev->dev, "Waited for %d iterations before GPU DBG command completed", i);
+
return true;
}