[PATCH 0/2] media: qcom: camss: Avoid useless RUP_DONE interrupts on TFE
From: Loic Poulain
Date: Tue Nov 24 2026 - 11:48:11 EST
On the TFE (VFE 340), every buffer queued at runtime is followed by a
register update, which makes the hardware raise a RUP_DONE interrupt on
top of the BUF_DONE one. We therefore take two interrupts per frame where
one would do.
That register update is pointless here: the TFE bus image address
register is a FIFO and not a shadow register, so the address written by
vfe_wm_update() is picked up by the hardware on its own and needs no
latching.
The first patch replaces the sequences open-coded at the three call sites
with a single helper, which calls addr_update() when the generation
provides one and falls back to reg_update() otherwise, all generations
implementing the latter. The second one implements addr_update() as a
no-op for VFE 340, which removes the per-buffer register update and gets
the TFE down to a single interrupt per frame.
Side effect:
VFE 1080 loses the register update that used to follow each address
update at runtime. __csid_addr_update() already writes the AUP mask and
then the RUP_SET trigger, so the latch should be complete without it,
but a confirmation from someone with 1080 hardware would be welcome.
Signed-off-by: Loic Poulain <loic.poulain@xxxxxxxxxxxxxxxx>
---
Loic Poulain (2):
media: qcom: camss: Latch buffer addresses through a single helper
media: qcom: camss: vfe-340: Skip the register update when queuing a buffer
drivers/media/platform/qcom/camss/camss-vfe-340.c | 6 +++++
drivers/media/platform/qcom/camss/camss-vfe.c | 33 +++++++++++++++++------
2 files changed, 31 insertions(+), 8 deletions(-)
---
base-commit: 2ad58ca589da80990b7afbcff018777851577f89
change-id: 20261124-tfe-fix-irq-eb8fd293791a
Best regards,
--
Loic Poulain <loic.poulain@xxxxxxxxxxxxxxxx>