* [PATCH] drm/imagination: Fix the value of ROGUE_COMPUTE_FLAG_PREVENT_ALL_OVERLAP
@ 2026-11-18 17:19 Ryan Brue
2026-11-20 5:36 ` Brajesh Gupta
0 siblings, 1 reply; 2+ messages in thread
From: Ryan Brue @ 2026-11-18 17:19 UTC (permalink / raw)
To: Alessio Belle, Luigi Santivetti, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
Donald Robson, Sarah Walker
Cc: imagination, dri-devel, linux-kernel, Ryan Brue
The firmware takes "prevent all overlap" from bit 1 of a compute
command's flags; bit 2 is FORCE_TPU_CLK. The kernel has used bit 2 since
the FWIF headers were added, so the firmware has never seen
DRM_PVR_SUBMIT_JOB_COMPUTE_CMD_PREVENT_ALL_OVERLAP.
On a GX6250 (MT8173), a compute job overlapping fragment work from
another context hangs both data masters. With every compute job
submitted with bit 1 set, a test that hit the hang on every run no longer
does; with bit 2 set instead it still hangs.
Fixes: a26f067feac1 ("drm/imagination: Add FWIF headers")
Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
---
Found while chasing GPU hangs on an MT8173 tablet (GX6250, BVNC
4.40.2.51) under Mesa's PowerVR Vulkan driver: a compute job running
next to fragment work from another context hangs the GPU, and Mesa's
request to serialise compute never reached the firmware.
The value comes from Imagination's firmware interface as carried in
Mesa (src/imagination/vulkan/winsys/pvrsrvkm/fw-api/pvr_rogue_fwif.h:
PREVENT_ALL_OVERLAP 0x2, FORCE_TPU_CLK 0x4), and the board confirms it:
forcing bit 1 into every compute command stops the hangs, forcing bit 2
does not. The other compute, fragment and transfer flag values in
pvr_rogue_fwif_client.h match that header.
This patch was developed with the help of an LLM.
---
drivers/gpu/drm/imagination/pvr_rogue_fwif_client.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/imagination/pvr_rogue_fwif_client.h b/drivers/gpu/drm/imagination/pvr_rogue_fwif_client.h
index 6e224400083a..967e903bdca6 100644
--- a/drivers/gpu/drm/imagination/pvr_rogue_fwif_client.h
+++ b/drivers/gpu/drm/imagination/pvr_rogue_fwif_client.h
@@ -74,7 +74,7 @@
* Flags supported by the compute DM command i.e. &struct rogue_fwif_cmd_compute.
*/
-#define ROGUE_COMPUTE_FLAG_PREVENT_ALL_OVERLAP BIT_MASK(2)
+#define ROGUE_COMPUTE_FLAG_PREVENT_ALL_OVERLAP BIT_MASK(1)
/*!< Use single core in a multi core setup. */
#define ROGUE_COMPUTE_FLAG_SINGLE_CORE BIT_MASK(5)
---
base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
change-id: 20261118-rbrue-suez-pvr-compute-overlap-flag-3695ceab9ab6
Best regards,
--
Ryan Brue <ryanbrue.dev@gmail.com>
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] drm/imagination: Fix the value of ROGUE_COMPUTE_FLAG_PREVENT_ALL_OVERLAP
2026-11-18 17:19 [PATCH] drm/imagination: Fix the value of ROGUE_COMPUTE_FLAG_PREVENT_ALL_OVERLAP Ryan Brue
@ 2026-11-20 5:36 ` Brajesh Gupta
0 siblings, 0 replies; 2+ messages in thread
From: Brajesh Gupta @ 2026-11-20 5:36 UTC (permalink / raw)
To: Luigi Santivetti, tzimmermann, simona, donald.robson, airlied,
Alessio Belle, ryanbrue.dev, maarten.lankhorst, mripard,
sarah.walker
Cc: dri-devel, imagination, linux-kernel
On Wed, 2026-11-18 at 11:19 -0600, Ryan Brue wrote:
Hi Ryan,
> The firmware takes "prevent all overlap" from bit 1 of a compute
> command's flags; bit 2 is FORCE_TPU_CLK. The kernel has used bit 2 since
> the FWIF headers were added, so the firmware has never seen
> DRM_PVR_SUBMIT_JOB_COMPUTE_CMD_PREVENT_ALL_OVERLAP.
>
> On a GX6250 (MT8173), a compute job overlapping fragment work from
> another context hangs both data masters. With every compute job
> submitted with bit 1 set, a test that hit the hang on every run no longer
> does; with bit 2 set instead it still hangs.
>
> Fixes: a26f067feac1 ("drm/imagination: Add FWIF headers")
> Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
> ---
Please include stable tag as well.
Reviewed-by: Brajesh Gupta <brajesh.gupta@imgtec.com>
Thanks,
Brajesh
> Found while chasing GPU hangs on an MT8173 tablet (GX6250, BVNC
> 4.40.2.51) under Mesa's PowerVR Vulkan driver: a compute job running
> next to fragment work from another context hangs the GPU, and Mesa's
> request to serialise compute never reached the firmware.
>
> The value comes from Imagination's firmware interface as carried in
> Mesa (src/imagination/vulkan/winsys/pvrsrvkm/fw-api/pvr_rogue_fwif.h:
> PREVENT_ALL_OVERLAP 0x2, FORCE_TPU_CLK 0x4), and the board confirms it:
> forcing bit 1 into every compute command stops the hangs, forcing bit 2
> does not. The other compute, fragment and transfer flag values in
> pvr_rogue_fwif_client.h match that header.
>
> This patch was developed with the help of an LLM.
> ---
> drivers/gpu/drm/imagination/pvr_rogue_fwif_client.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/imagination/pvr_rogue_fwif_client.h b/drivers/gpu/drm/imagination/pvr_rogue_fwif_client.h
> index 6e224400083a..967e903bdca6 100644
> --- a/drivers/gpu/drm/imagination/pvr_rogue_fwif_client.h
> +++ b/drivers/gpu/drm/imagination/pvr_rogue_fwif_client.h
> @@ -74,7 +74,7 @@
> * Flags supported by the compute DM command i.e. &struct rogue_fwif_cmd_compute.
> */
>
> -#define ROGUE_COMPUTE_FLAG_PREVENT_ALL_OVERLAP BIT_MASK(2)
> +#define ROGUE_COMPUTE_FLAG_PREVENT_ALL_OVERLAP BIT_MASK(1)
> /*!< Use single core in a multi core setup. */
> #define ROGUE_COMPUTE_FLAG_SINGLE_CORE BIT_MASK(5)
>
>
> ---
> base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
> change-id: 20261118-rbrue-suez-pvr-compute-overlap-flag-3695ceab9ab6
>
> Best regards,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-20 5:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18 17:19 [PATCH] drm/imagination: Fix the value of ROGUE_COMPUTE_FLAG_PREVENT_ALL_OVERLAP Ryan Brue
2026-11-20 5:36 ` Brajesh Gupta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®