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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 26 Apr 2016 23:10:38 +0200
From:	Wolfram Sang <wsa@...-dreams.de>
To:	Jan Glauber <jglauber@...ium.com>
Cc:	linux-kernel@...r.kernel.org, linux-i2c@...r.kernel.org,
	David Daney <ddaney@...iumnetworks.com>,
	Peter Swain <pswain@...ium.com>
Subject: Re: [PATCH v7 08/15] i2c: octeon: Improve performance if interrupt
 is early

On Mon, Apr 25, 2016 at 04:33:37PM +0200, Jan Glauber wrote:
> From: Peter Swain <pswain@...ium.com>
> 
> There is a race between the TWSI interrupt and the condition
> that is required before proceeding:
> 
> Low-level: interrupt flag bit must be set
> High-level controller: valid bit must be clear
> 
> If the interrupt comes too early and the condition is not met
> the wait will time out, and the transfer is aborted leading
> to very poor performance.
> 
> To avoid this race retry for the condition ~80 µs later.
> The retry is avoided on the very first invocation of
> wait_event_timeout() (which tests the condition before entering
> the wait and is therefore always wrong in this case).
> 
> EEPROM reads on 100kHz i2c now measure ~5.2kB/s, about 1/2 what's
> achievable, and much better than the worst-case 100 bytes/sec before.
> 
> While at it remove the debug print from the low-level wait function.
> 
> Signed-off-by: Peter Swain <pswain@...ium.com>
> Signed-off-by: Jan Glauber <jglauber@...ium.com>

Applied to for-next, thanks!

Assigned 'true' instead of '1' to bool...


Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ