All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] drm/v3d: Miscellaneous fixes
@ 2026-07-03 15:33 Maíra Canal
  2026-07-03 15:33 ` [PATCH v3 1/3] drm/v3d: Associate BOs with every job that accesses them Maíra Canal
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Maíra Canal @ 2026-07-03 15:33 UTC (permalink / raw)
  To: Melissa Wen, Iago Toral Quiroga, David Airlie, Simona Vetter
  Cc: kernel-dev, dri-devel, Maíra Canal

Being brief, this small series collects a correctness fix (#1) reported by
Sashiko, a error-path fix (#2) reported by Sashiko, and a cleanup (#3)
found while reading the code.

The first patch is the only notable one: a v3d submission expands into a
chain of jobs (e.g. BIN + RENDER + CACHE CLEAN), but the BO list was only
ever attached to the last job. Since implicit synchronization is added
per-job and gated on job->bo_count, every job before the last one silently
skipped implicit dependencies. In practice the RENDER job could read a
buffer object while another context was still writing it. It's fixed by
looking up the BOs onto every job that references them.

Best regards,
- Maíra

To: Melissa Wen <mwen@igalia.com>
To: Iago Toral Quiroga <itoral@igalia.com>
To: David Airlie <airlied@gmail.com>
To: Simona Vetter <simona@ffwll.ch>
Cc: kernel-dev@igalia.com
Cc: dri-devel@lists.freedesktop.org

v1 -> v2: https://lore.kernel.org/r/20260610-v3d-cpu-job-fixes-v1-0-0d9c88989edc@igalia.com

- [1/3] Don't attach implicit dependencies to BIN jobs (Iago Toral)
- [2/3, 3/3] Add Iago's R-b (Iago Toral)

v2 -> v3: https://lore.kernel.org/r/20260618-v3d-cpu-job-fixes-v2-0-fec132484fc4@igalia.com

- [1/3] Add a comment clarifing why we don't attach BOs to BIN jobs (Iago Toral)
- [1/3] Add Iago's R-b (Iago Toral)

---
Maíra Canal (3):
      drm/v3d: Associate BOs with every job that accesses them
      drm/v3d: Reject invalid indirect BO handle in indirect CSD setup
      drm/v3d: Use write_to_buffer() helper in performance query copy

 drivers/gpu/drm/v3d/v3d_sched.c  | 11 ++--------
 drivers/gpu/drm/v3d/v3d_submit.c | 44 +++++++++++++++++++++++-----------------
 2 files changed, 27 insertions(+), 28 deletions(-)
---
base-commit: 903f8773ee96c5dc5fb9aec65227f39fd3e7a1dc
change-id: 20260609-v3d-cpu-job-fixes-fbe2051bee3a


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

end of thread, other threads:[~2026-07-07 22:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-03 15:33 [PATCH v3 0/3] drm/v3d: Miscellaneous fixes Maíra Canal
2026-07-03 15:33 ` [PATCH v3 1/3] drm/v3d: Associate BOs with every job that accesses them Maíra Canal
2026-07-03 15:54   ` sashiko-bot
2026-07-03 15:33 ` [PATCH v3 2/3] drm/v3d: Reject invalid indirect BO handle in indirect CSD setup Maíra Canal
2026-07-03 15:49   ` sashiko-bot
2026-07-03 15:33 ` [PATCH v3 3/3] drm/v3d: Use write_to_buffer() helper in performance query copy Maíra Canal
2026-07-03 15:43   ` sashiko-bot
2026-07-07 22:00 ` [PATCH v3 0/3] drm/v3d: Miscellaneous fixes Maíra Canal

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.