lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aPq99UduYHYOdlgq@lizhi-Precision-Tower-5810>
Date: Thu, 23 Oct 2025 19:44:53 -0400
From: Frank Li <Frank.li@....com>
To: Andy Shevchenko <andriy.shevchenko@...el.com>
Cc: Alexandre Belloni <alexandre.belloni@...tlin.com>,
	Miquel Raynal <miquel.raynal@...tlin.com>,
	Jonathan Cameron <jic23@...nel.org>,
	David Lechner <dlechner@...libre.com>,
	Nuno Sá <nuno.sa@...log.com>,
	Andy Shevchenko <andy@...nel.org>, Rob Herring <robh@...nel.org>,
	Krzysztof Kozlowski <krzk+dt@...nel.org>,
	Conor Dooley <conor+dt@...nel.org>, linux-i3c@...ts.infradead.org,
	linux-kernel@...r.kernel.org, imx@...ts.linux.dev,
	linux-iio@...r.kernel.org, joshua.yeong@...rfivetech.com,
	devicetree@...r.kernel.org, Carlos Song <carlos.song@....com>
Subject: Re: [PATCH v6 3/5] i3c: master: svc: Add basic HDR mode support

On Thu, Oct 23, 2025 at 09:25:00PM +0300, Andy Shevchenko wrote:
> On Thu, Oct 23, 2025 at 11:24:02AM -0400, Frank Li wrote:
> > On Thu, Oct 23, 2025 at 11:29:53AM +0300, Andy Shevchenko wrote:
> > > On Tue, Oct 14, 2025 at 12:40:02PM -0400, Frank Li wrote:
>
> ...
>
> > > > +	readl_poll_timeout(master->regs + SVC_I3C_MSTATUS, reg,
> > > > +			   SVC_I3C_MSTATUS_MCTRLDONE(reg), 0, 1000);
> > >
> > > No error checks? Why is it okay?
> > > Why is the first parameter 0 while it's not an _atomic() call?
> > >
> > > > +	udelay(1);
> > >
> > > No explanations given. Also is it really need to be atomic? If not, use
> > > fsleep() and it will choose the best suitable API under the hood.
> >
> > It is in atomic context. I will add comments.
>
> Not only, the call that's used in the code from iopoll.h is wrong in such a
> case. Haven't you tested this with debug atomic context?

not enable debug atomic, but I think it should be
readl_poll_timeout_atomic ().

Frank
>
> --
> With Best Regards,
> Andy Shevchenko
>
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ