]> git.ipfire.org Git - thirdparty/linux.git/commit
media: platform: Add mali-c55 3a stats devnode
authorDaniel Scally <dan.scally@ideasonboard.com>
Tue, 11 Nov 2025 16:15:54 +0000 (16:15 +0000)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Fri, 14 Nov 2025 14:48:49 +0000 (15:48 +0100)
commit5d1f7403d681f8a4664c1b4072798eb236ae82be
treef391cb1686c4d2748b70d77fd096707141c6685e
parentc7f832f6f8129bb666346cb4805805ad056059b7
media: platform: Add mali-c55 3a stats devnode

Add a new code file to govern the 3a statistics capture node.

On ISP_START, fill the stats buffer by reading out the metering space
in the ISP's memory. This is done for the non-active config just as
the dma transfer of the registers is. To acheive that, move the
checking of the current config outside of mali_c55_swap_next_config()
so we can use it for both functions.

Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Acked-by: Nayden Kanchev <nayden.kanchev@arm.com>
Co-developed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
[hverkuil: remove deprecated vb2_ops_wait_prepare/finish callbacks]
drivers/media/platform/arm/mali-c55/Makefile
drivers/media/platform/arm/mali-c55/mali-c55-common.h
drivers/media/platform/arm/mali-c55/mali-c55-core.c
drivers/media/platform/arm/mali-c55/mali-c55-isp.c
drivers/media/platform/arm/mali-c55/mali-c55-registers.h
drivers/media/platform/arm/mali-c55/mali-c55-stats.c [new file with mode: 0644]