From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BA780CCF9E3 for ; Mon, 10 Nov 2025 09:01:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Cc:To:Subject:From:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=x2xzfDbyxcVZR112vzt2KQqlRtZCpSqSjl3kTqobDnI=; b=4zgwfAciihL3uIKqoEe6sGENj4 Upd9g0WBk0bJOZUOXLvk9Yj2XWGx6y89YxVq+LKHkg9rYu8dKDRm7R4IQ5dObZqjaUZ5LJMF1LtrC ZKXLUiQjIwPfHQ8a9O5Cn6TS4DP6UjuxwUGM4YFtenKbmzjG9fHHi2gAp1cpfYkewRcEzarv998Nq wkYdsZTKIHZ7/aP6uATmNM+CHdedOoDKb3iIjMJX73GnO5U7loJUAZ+CAWDBJesnIWqCsG//amxm0 amCP2bi+683J4a54tu7zOw5SrU+bWXmnlBb0dbLQrTon2Eye3dfl/yfvedI/EAS41KzGqjstFcSV7 xKiZ62Sw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vINmH-000000052Td-2u7O; Mon, 10 Nov 2025 09:01:33 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vINmA-000000052SH-1feP for linux-arm-kernel@lists.infradead.org; Mon, 10 Nov 2025 09:01:31 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id B0EB741720; Mon, 10 Nov 2025 09:01:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B8A4C116B1; Mon, 10 Nov 2025 09:01:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1762765285; bh=gSjPQJmyRvp5FhE0nx669b4kg80b70C6/WXDHAf5wEE=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=D84k4GckFjHjwrv48lQ/D9n+GEKWWgXvOkSbUqwc5artvOBfq80Mwwk5SLy5cJ4mn p/Mh+mZUlmpD4A1G1cffHwAwKT6dX5ONntumJemLW6i+YR58yN5CfGQ/0HHViZdS6D HTdUdzm5VmfYybkMetHZUFNUzqF/aRAFnXAp9jROpw4DoHGJbArVvcehjllIvSXWm2 TJQiFMzGss6wGXcpsPJ+3nsJL1d+qc6sxdcRs4bNOZOP0fJ+h/obzSRED1JXDQ72C2 CG/lu2AC/Cz/M/ztiWSTGLwzSdUGATbhuXtFkvCaESBqIMMClHsaC90lyOUuJ1ApSF aT4XfEE/x6nkA== Message-ID: <843d646a-a720-4431-b9cb-5a0a9bdc9d59@kernel.org> Date: Mon, 10 Nov 2025 10:01:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Hans Verkuil Subject: Re: [PATCH 00/18] media: microchip-isc: Color correction and histogram stats To: Balamanikandan Gunasundar , Mauro Carvalho Chehab Cc: Eugen Hristev , Chas Williams <3chas3@gmail.com>, Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Balakrishnan Sambath , Hans Verkuil , Ricardo Ribalda , Laurent Pinchart , Jacopo Mondi , Daniel Scally , Tomi Valkeinen , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20251009155251.102472-1-balamanikandan.gunasundar@microchip.com> Content-Language: en-US, nl In-Reply-To: <20251009155251.102472-1-balamanikandan.gunasundar@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251110_010126_490162_E92EC59E X-CRM114-Status: GOOD ( 19.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Balamanikandan, On 09/10/2025 17:52, Balamanikandan Gunasundar wrote: > Hi, > > This patch series has a set of enhancements to the Microchip Image Sensor > Controller driver. The objective is to expand its image processing > capabilities and to improve the colors. > > This series also introduces a new stats driver that exposes the histogram > data to userspace via v4l2 controls. This allows applications such as > libcamera to access real time image statistics for advanced image > processing like automatic exposure, white balance adjustments etc. Most of this series is fine, but the histogram part needs more work. I would recommend splitting up this series in two parts: one for the various fixes and improvements, and one for the histogram feature. The first series with the fixes I can take easily. In fact, if you post that this week (no later than Thursday), then I can pick it up in time for v6.19. As mentioned the histogram part needs more work. Mostly small stuff, but the documentation is the major missing part. I also want to see the output of 'v4l2-compliance -m0 -s' (i.e. with streaming) in the cover letter of the histogram series to be certain nothing was forgotten. Make sure you compile v4l2-compliance straight from the git repo, don't use a distro version since that's usually out of date. Regards, Hans > > Balakrishnan Sambath (11): > media: microchip-isc: Enable GDC and CBC module flags for RGB formats > media: microchip-isc: Improve histogram calculation with outlier > rejection > media: microchip-isc: Use channel averages for Grey World AWB > media: microchip-isc: Add range based black level correction > media: platform: microchip: Extend gamma table and control range > media: platform: microchip: Add new histogram submodule > media: microchip-isc: Register and unregister statistics device > media: microchip-isc: Always enable histogram for all RAW formats > media: microchip-isc: fix histogram state initialization order > media: microchip-isc: decouple histogram cycling from AWB mode > media: microchip-isc: enable userspace histogram statistics export > > Balamanikandan Gunasundar (7): > media: platform: microchip: set maximum resolution for sam9x7 > media: platform: microchip: Include DPC modules flags in pipeline > media: microchip-isc: expose hue and saturation as v4l2 controls > media: microchip-isc: Rename CBC to CBHS > media: microchip-isc: Store histogram data of all channels > media: videodev2.h, v4l2-ioctl: Add microchip statistics format > media: microchip-isc: expose color correction registers as v4l2 > controls > > drivers/media/platform/microchip/Kconfig | 2 + > drivers/media/platform/microchip/Makefile | 2 +- > .../platform/microchip/microchip-isc-base.c | 373 ++++++++++-- > .../platform/microchip/microchip-isc-regs.h | 3 + > .../platform/microchip/microchip-isc-stats.c | 549 ++++++++++++++++++ > .../media/platform/microchip/microchip-isc.h | 44 +- > .../microchip/microchip-sama5d2-isc.c | 2 +- > .../microchip/microchip-sama7g5-isc.c | 73 ++- > drivers/media/v4l2-core/v4l2-ioctl.c | 1 + > include/linux/atmel-isc-media.h | 13 + > include/uapi/linux/videodev2.h | 3 + > 11 files changed, 1001 insertions(+), 64 deletions(-) > create mode 100644 drivers/media/platform/microchip/microchip-isc-stats.c >