drm/imagination: Set scheduler timeout period higher than Firmware timeout
Subsystems (3)
PATCH 1/1 drm/imagination: Set scheduler timeout period higher than Firmware timeout
Firmware schedule workloads on the GPU and tracks progress. It is also responsible for detecting any lockup and triggering recovery.
Update the GPU scheduler timeout to a resonalbly high value to avoid premature timeout at the GPU scheduler end.
--- drivers/gpu/drm/imagination/pvr_queue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/imagination/pvr_queue.c +2 -1
@@ -17,6 +17,7 @@#include "pvr_rogue_fwif_client.h" #define MAX_DEADLINE_MS 30000 +#define SCHED_TIMEOUT_PERIOD (2 * MAX_DEADLINE_MS)#define CTX_COMPUTE_CCCB_SIZE_LOG2 15#define CTX_FRAG_CCCB_SIZE_LOG2 15
@@ -1283,7 +1284,7 @@ struct pvr_queue *pvr_queue_create(struct pvr_context *ctx, .submit_wq = pvr_dev->sched_wq, .credit_limit = 64 * 1024, .hang_limit = 1, - .timeout = msecs_to_jiffies(500), + .timeout = msecs_to_jiffies(SCHED_TIMEOUT_PERIOD), .timeout_wq = pvr_dev->sched_wq, .name = "pvr-queue", .dev = pvr_dev->base.dev,
---
base-commit: e55fead22ff9ee047ab9f1903860c4b43043514e
change-id: 20260729-sched_timeout-c981f354e853
Best regards,
Signature · 1 line
Brajesh Gupta <[email protected]>
Quoted 4 lines · Brajesh Gupta
Firmware schedule workloads on the GPU and tracks progress. It is also responsible for detecting any lockup and triggering recovery.
Update the GPU scheduler timeout to a resonalbly high value to avoid
nit: resonalbly -> reasonably (will fix when applying this)
Quoted 3 lines
premature timeout at the GPU scheduler end.
Signed-off-by Brajesh Gupta <[email protected]>
Thanks,
Alessio
Quoted 31 lines
--- drivers/gpu/drm/imagination/pvr_queue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/imagination/pvr_queue.c +2
-2@@ -17,6 +17,7 @@#include "pvr_rogue_fwif_client.h" #define MAX_DEADLINE_MS 30000 +#define SCHED_TIMEOUT_PERIOD (2 * MAX_DEADLINE_MS)#define CTX_COMPUTE_CCCB_SIZE_LOG2 15#define CTX_FRAG_CCCB_SIZE_LOG2 15@@ -1283,7 +1284,7 @@ struct pvr_queue *pvr_queue_create(struct pvr_context *ctx, .submit_wq = pvr_dev->sched_wq, .credit_limit = 64 * 1024, .hang_limit = 1, - .timeout = msecs_to_jiffies(500), + .timeout = msecs_to_jiffies(SCHED_TIMEOUT_PERIOD), .timeout_wq = pvr_dev->sched_wq, .name = "pvr-queue", .dev = pvr_dev->base.dev, ---base-commit:
e55fead22ff9ee047ab9f1903860c4b43043514e
change-id: 20260729-sched_timeout-c981f354e853Best regards,
Quoted 8 lines · Brajesh Gupta
Firmware schedule workloads on the GPU and tracks progress. It is also responsible for detecting any lockup and triggering recovery.
Update the GPU scheduler timeout to a resonalbly high value to avoid premature timeout at the GPU scheduler end.
[...]
Applied to drm-misc-next, thanks!
[1/1] drm/imagination: Set scheduler timeout period higher than Firmware timeout
commit: 2224d6642136767ec01d146d48ffc881b55b32f7
Best regards,
Signature · 1 line
Alessio Belle <[email protected]>