Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH 0/2] media: vsp1: Detect display list wrong usage patterns
@ 2025-05-29 16:36 Jacopo Mondi
  2025-05-29 16:36 ` [PATCH 1/2] media: vsp1: vsp1_dl: Add usage counter Jacopo Mondi
  2025-05-29 16:36 ` [PATCH 2/2] media: vsp1: vsp1_dl: Count display lists Jacopo Mondi
  0 siblings, 2 replies; 6+ messages in thread
From: Jacopo Mondi @ 2025-05-29 16:36 UTC (permalink / raw)
  To: Laurent Pinchart, Kieran Bingham, Mauro Carvalho Chehab
  Cc: linux-media, linux-renesas-soc, linux-kernel, Jacopo Mondi

The VSP1 library driver offers support for programming the VSP
using display lists.

Display lists are created in a pool and users can get them and use them
to program the VSP. Once done the display list shall be returned to
the display list pool.

The correct management of the display list pool is left to the user
of the helpers, and it's helpful to add a few checks to detect invalid
usage patterns, such as a double release or a non-returned display list.

Add two counters to detect double releases of a display list, and a
counter to the display list to make sure that once it is reset all the
display lists have been returned.

Tested with vsp-tests
170 tests: 165 passed, 0 failed, 5 skipped

However I got a (hopefully unrelated) warning:

[  795.547528] [<000000007d841fd6>] vsp1_irq_handler
[  795.552448] Disabling IRQ #43
[  795.653324] vsp1 fea20000.vsp: Underrun occurred at WPF1 (total underruns 1)

Signed-off-by: Jacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
---
Jacopo Mondi (2):
      media: vsp1: vsp1_dl: Add usage counter
      media: vsp1: vsp1_dl: Count display lists

 drivers/media/platform/renesas/vsp1/vsp1_dl.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
---
base-commit: 5e1ff2314797bf53636468a97719a8222deca9ae
change-id: 20250529-vsp1_dl_list_count-156d27a2d5b1

Best regards,
-- 
Jacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>


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

end of thread, other threads:[~2025-06-16 14:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29 16:36 [PATCH 0/2] media: vsp1: Detect display list wrong usage patterns Jacopo Mondi
2025-05-29 16:36 ` [PATCH 1/2] media: vsp1: vsp1_dl: Add usage counter Jacopo Mondi
2025-06-16 13:20   ` Laurent Pinchart
2025-05-29 16:36 ` [PATCH 2/2] media: vsp1: vsp1_dl: Count display lists Jacopo Mondi
2025-06-16 13:31   ` Laurent Pinchart
2025-06-16 14:35     ` Jacopo Mondi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox