All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 00/17] drm/panfrost: Resume long jobs instead of resetting, and mapping error path fixes
@ 2026-11-26  9:36 ` Arun Iyengar
  0 siblings, 0 replies; 37+ messages in thread
From: Arun Iyengar via B4 Relay @ 2026-11-26  9:36 UTC (permalink / raw)
  To: Boris Brezillon, Rob Herring, Steven Price, Adrián Larumbe,
	Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter
  Cc: dri-devel, linux-kernel, Arun Iyengar

Fixes for problems found running the GLES, Vulkan and OpenCL
conformance tests with Mesa on a Mali-G31 (Allwinner H616), and for
problems Sashiko found around them:
- 1-4, 14, 15: reset and timeout paths vs power management, heap BO
  cache sync, a mapping being freed.
- 5-8: BO mapping error paths.
- 9-13: races around panfrost_reset().
- 16: soft-stop and resume a job still active at the timeout.
- 17: name the BOs around an unhandled page fault.

Open points: a job that keeps reaching task boundaries is never killed;
stopping a long job holds all slots (here at most 349 ms); 16 can go
separately.

Tested on v7.3 with Mesa 26.2: no regressions in 1196 dEQP/KHR cases
and 9 OpenCL CTS groups. 2-4 and 9-12 were not reproduced.

Developed with Claude (Anthropic) as coding assistant (investigation,
code, commit messages); I reviewed them and ran the tests.

---
Changes in v4:
- New patches 1, 14 and 15 (Sashiko on v3). Patch 2 clears
  reset.pending in runtime resume and leaves system sleep to patch 1.
- Shorter commit messages and comments; test results in 1, 6, 7, 14
  and 15.
- Renumbered: v3 1-12 are now 2-13, v3 13 and 14 are now 16 and 17.
- Rebased onto the current drm-misc-next.
- Link to v3: https://patch.msgid.link/20261113-panfrost-long-jobs-v3-0-80ae78d38f6e@gmail.com

Changes in v3:
- Patch 1: disable the reset work across system sleep (Sashiko).
- New patches 7, 10 and 11 (Sashiko); shorter messages and comments.
- Renumbered and rebased onto the current drm-misc-next.
- Link to v2: https://patch.msgid.link/20261112-panfrost-long-jobs-v2-0-a06830da3d99@gmail.com

Changes in v2:
- New patches 1-3, 7 and 8 for Sashiko's findings on v1.
- Patches 6, 10 and 11 reworked and v1 4/7 dropped after Sashiko's review.
- Renumbered and rebased onto the current drm-misc-next.
- Link to v1: https://lore.kernel.org/r/20261110-panfrost-long-jobs-v1-0-24508939ae8d@gmail.com

---
Arun Iyengar (17):
      drm/panfrost: Freeze the reset workqueue during system sleep
      drm/panfrost: Power the GPU up for a reset queued from the MMU code
      drm/panfrost: Refuse to sync the CPU caches of a heap BO
      drm/panfrost: Don't take a reference on a mapping that is being freed
      drm/panfrost: Don't WARN when a GEM mapping cannot get its pages
      drm/panfrost: Unwind a failed GPU mapping without dropping its pages
      drm/panfrost: Give back the pages of a heap chunk that failed to map
      drm/panfrost: Don't WARN for a heap folio a neighbouring chunk filled
      drm/panfrost: Don't signal a job cancelled from _NEXT at a reset as done
      drm/panfrost: Don't cancel a job that completed during a reset
      drm/panfrost: Drop the cycle counter only for a job that holds it
      drm/panfrost: Don't take a job that was never started for done
      drm/panfrost: Wait for the soft-stopped slots with the live slot status
      drm/panfrost: Keep the GPU powered in the job timeout handler
      drm/panfrost: Keep the job interrupts masked during a reset
      drm/panfrost: Soft-stop and resume a job that outlives the timeout
      drm/panfrost: Name the BOs around an unhandled page fault

 drivers/gpu/drm/panfrost/panfrost_device.c |   1 +
 drivers/gpu/drm/panfrost/panfrost_gem.c    |   3 +
 drivers/gpu/drm/panfrost/panfrost_job.c    | 254 ++++++++++++++++++++++-------
 drivers/gpu/drm/panfrost/panfrost_job.h    |   3 +
 drivers/gpu/drm/panfrost/panfrost_mmu.c    | 145 ++++++++++++++--
 5 files changed, 333 insertions(+), 73 deletions(-)
---
base-commit: 8a6e49c8557d3ba0fe4c7f1cb7f428289b13bfed
change-id: 20261110-panfrost-long-jobs-1643287a2ac1

Best regards,
--  
Arun Iyengar <aiyengar1990@gmail.com>



^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2026-11-26 11:39 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26  9:36 [PATCH v4 00/17] drm/panfrost: Resume long jobs instead of resetting, and mapping error path fixes Arun Iyengar via B4 Relay
2026-11-26  9:36 ` Arun Iyengar
2026-11-26  9:36 ` [PATCH v4 01/17] drm/panfrost: Freeze the reset workqueue during system sleep Arun Iyengar via B4 Relay
2026-11-26  9:36   ` Arun Iyengar
2026-11-26  9:36 ` [PATCH v4 02/17] drm/panfrost: Power the GPU up for a reset queued from the MMU code Arun Iyengar
2026-11-26  9:36   ` Arun Iyengar via B4 Relay
2026-11-26  9:36 ` [PATCH v4 03/17] drm/panfrost: Refuse to sync the CPU caches of a heap BO Arun Iyengar via B4 Relay
2026-11-26  9:36   ` Arun Iyengar
2026-11-26  9:36 ` [PATCH v4 04/17] drm/panfrost: Don't take a reference on a mapping that is being freed Arun Iyengar
2026-11-26  9:36   ` Arun Iyengar via B4 Relay
2026-11-26  9:36 ` [PATCH v4 05/17] drm/panfrost: Don't WARN when a GEM mapping cannot get its pages Arun Iyengar via B4 Relay
2026-11-26  9:36   ` Arun Iyengar
2026-11-26  9:36 ` [PATCH v4 06/17] drm/panfrost: Unwind a failed GPU mapping without dropping " Arun Iyengar via B4 Relay
2026-11-26  9:36   ` Arun Iyengar
2026-11-26  9:36 ` [PATCH v4 07/17] drm/panfrost: Give back the pages of a heap chunk that failed to map Arun Iyengar
2026-11-26  9:36   ` Arun Iyengar via B4 Relay
2026-11-26  9:36 ` [PATCH v4 08/17] drm/panfrost: Don't WARN for a heap folio a neighbouring chunk filled Arun Iyengar
2026-11-26  9:36   ` Arun Iyengar via B4 Relay
2026-11-26  9:36 ` [PATCH v4 09/17] drm/panfrost: Don't signal a job cancelled from _NEXT at a reset as done Arun Iyengar
2026-11-26  9:36   ` Arun Iyengar via B4 Relay
2026-11-26  9:36 ` [PATCH v4 10/17] drm/panfrost: Don't cancel a job that completed during a reset Arun Iyengar
2026-11-26  9:36   ` Arun Iyengar via B4 Relay
2026-11-26  9:36 ` [PATCH v4 11/17] drm/panfrost: Drop the cycle counter only for a job that holds it Arun Iyengar
2026-11-26  9:36   ` Arun Iyengar via B4 Relay
2026-11-26  9:36 ` [PATCH v4 12/17] drm/panfrost: Don't take a job that was never started for done Arun Iyengar
2026-11-26  9:36   ` Arun Iyengar via B4 Relay
2026-11-26  9:36 ` [PATCH v4 13/17] drm/panfrost: Wait for the soft-stopped slots with the live slot status Arun Iyengar
2026-11-26  9:36   ` Arun Iyengar via B4 Relay
2026-11-26  9:36 ` [PATCH v4 14/17] drm/panfrost: Keep the GPU powered in the job timeout handler Arun Iyengar
2026-11-26  9:36   ` Arun Iyengar via B4 Relay
2026-11-26  9:36 ` [PATCH v4 15/17] drm/panfrost: Keep the job interrupts masked during a reset Arun Iyengar
2026-11-26  9:36   ` Arun Iyengar via B4 Relay
2026-11-26 11:38   ` sashiko-bot
2026-11-26  9:36 ` [PATCH v4 16/17] drm/panfrost: Soft-stop and resume a job that outlives the timeout Arun Iyengar
2026-11-26  9:36   ` Arun Iyengar via B4 Relay
2026-11-26  9:37 ` [PATCH v4 17/17] drm/panfrost: Name the BOs around an unhandled page fault Arun Iyengar
2026-11-26  9:37   ` Arun Iyengar via B4 Relay

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.