mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dan Scally <dan.scally@ideasonboard.com>
To: Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
	David Carlier <devnexen@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH] media: mali-c55: Fix AEXP IHIST disable bit shift
Date: Wed, 10 Jun 2026 09:18:42 +0100	[thread overview]
Message-ID: <d327a464-6a8d-4f36-884e-52f3e396762a@ideasonboard.com> (raw)
In-Reply-To: <aie1vqkd96-8uCmA@zed>



On 09/06/2026 07:42, Jacopo Mondi wrote:
> Hi David
> 
> On Tue, Jun 09, 2026 at 06:32:31AM +0100, David Carlier wrote:
>> The post-Iridix auto-exposure histogram disable bit in
>> MALI_C55_REG_METERING_CONFIG is bit 16, but MALI_C55_AEXP_IHIST_DISABLE
>> was defined with a shift of 12, copied from the AEXP_HIST definition
>> above it. As the value is masked with the BIT(16) disable mask when it
>> is programmed, the result is always zero and the disable bit is never
>> set. The IHIST can therefore never be disabled, neither at ISP init nor
>> via a parameters block flagged V4L2_ISP_PARAMS_FL_BLOCK_DISABLE, and the
>> hardware keeps producing histogram statistics that userspace believes
>> are switched off.
>>
>> Use a shift of 16 so the disable request takes effect.
>>
>> Fixes: d5f281f3dd29 ("media: mali-c55: Add Mali-C55 ISP driver")
>> Cc: stable@vger.kernel.org
>> Assisted-by: Claude:claude-opus-4-8
>> Signed-off-by: David Carlier <devnexen@gmail.com>
>> ---
>>   drivers/media/platform/arm/mali-c55/mali-c55-registers.h | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/media/platform/arm/mali-c55/mali-c55-registers.h b/drivers/media/platform/arm/mali-c55/mali-c55-registers.h
>> index f098effde..4cd13b702 100644
>> --- a/drivers/media/platform/arm/mali-c55/mali-c55-registers.h
>> +++ b/drivers/media/platform/arm/mali-c55/mali-c55-registers.h
>> @@ -173,7 +173,7 @@ enum mali_c55_interrupts {
>>   #define MALI_C55_AEXP_HIST_SWITCH_MASK			GENMASK(14, 13)
>>   #define MALI_C55_AEXP_HIST_SWITCH(x)			((x) << 13)
>>   #define MALI_C55_AEXP_IHIST_DISABLE_MASK		BIT(16)
>> -#define MALI_C55_AEXP_IHIST_DISABLE			(0x01 << 12)
>> +#define MALI_C55_AEXP_IHIST_DISABLE			(0x01 << 16)
> 
> Thanks, this indeed was a bad copy and paste I presume
> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>

Yup, looks like it to me

Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
> 
>>   #define MALI_C55_AEXP_SRC_MASK				BIT(24)
>>
>>   #define MALI_C55_REG_TPG_CH0				0x18ed8
>> --
>> 2.53.0
>>


      reply	other threads:[~2026-06-10  8:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-09  5:32 David Carlier
2026-06-09  6:42 ` Jacopo Mondi
2026-06-10  8:18   ` Dan Scally [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d327a464-6a8d-4f36-884e-52f3e396762a@ideasonboard.com \
    --to=dan.scally@ideasonboard.com \
    --cc=devnexen@gmail.com \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®