This patch series starts by collecting a patch sent from Dan in the past
which improves the HW slot programming on V2H(P) to avoid losing frames
under heavy system load conditions.
Tommaso also sent a series a few months ago for the CRU from which I
collected the first two patches.
Around it, I've reworked a bit the locking in the driver which is a bit
coarse and causes lost of frames under heavy system load conditions.
Along with these, bit of drive-by cometic changes here and there to
modernize the driver code.
I've tested on V2H(P) but I've also modified the G2L IRQ handler, so if
anyone could test on G2L and G3E it would be great!
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
Changes in v2:
- Add tags
- Remove now unused macros for FrameStart interrupt handling
- Do not include cleanup.h
- Add a patch to remove dev_dbg() from irq handlers
- Move lockdep assertions to later in the series
- Minor cosmetics
- Link to v1: https://lore.kernel.org/r/20260327-b4-cru-rework-v1-0-3b7d0430f538@ideasonboard.com
---
Daniel Scally (1):
media: rzg2l-cru: Rework rzg2l_cru_fill_hw_slot()
Jacopo Mondi (12):
media: rzg2l-cru: Modernize locking usage with guards
media: rzg2l-cru: Use proper guard() in irq handler
media: rzg2l-cru: Remove locking from start/stop routines
media: rzg2l-cru: Do not use irqsave when not needed
media: rzg2l-cru: Remove wrong locking comment
media: rz2gl-cru: Introduce a spinlock for hw operations
media: rzg2l-cru: Split hw locking from buffers
media: rzg2l-cru: Manually track active slot number
media: rz2gl-cru: Return pending buffers in order
media: rzg2l-cru: Remove the 'state' variable
media: rzg2l-cru: Remove debug printouts from irq
media: rzg2l-cru: Simplify irq return value handling
Tommaso Merciai (2):
media: rzg2l-cru: Skip ICnMC configuration when ICnSVC is used
media: rzg2l-cru: Use only frame end interrupts
.../platform/renesas/rzg2l-cru/rzg2l-cru-regs.h | 4 +-
.../media/platform/renesas/rzg2l-cru/rzg2l-cru.h | 29 +-
.../media/platform/renesas/rzg2l-cru/rzg2l-video.c | 326 ++++++++-------------
3 files changed, 137 insertions(+), 222 deletions(-)
---
base-commit: 4fbeef21f5387234111b5d52924e77757626faa5
change-id: 20260326-b4-cru-rework-ba3b712bc715
Best regards,
--
Jacopo Mondi <jacopo.mondi@ideasonboard.com>