All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] i2c: davinci: Fix problems discovered on Keystone CPU
@ 2015-03-11 13:08 Alexander Sverdlin
       [not found] ` <55003E60.3070306-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Sverdlin @ 2015-03-11 13:08 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA, Wolfram Sang, Kevin Hilman,
	Sekhar Nori, Grygorii Strashko, Santosh Shilimkar,
	Vishwanathrao Badarkhe, Manish, Murali Karicheri
  Cc: Lawnick Michael 61283229, Mike Looijmans, Mastalski Bartosz

During intensive I2C tests on Keystone CPU we've discovered several problems
with the i2c-davinci driver. Maybe Keystone is the first relatively powerful CPU
utilizing davinci controller and therefore the races in the driver became more
obvious, but it's clear that many users had problems with the driver and even
though driver has received many band aids over the years, nobody addressed the
original racy design.

The series address the follwing problems:
"i2c: davinci: Rework racy ISR" -- stop the parallel activities in the driver
including concurrect registers access. Also simplifies the design and removes
some bad aids.
"i2c: davinci: Refactor i2c_davinci_wait_bus_not_busy()" -- the routine is
over-designed and instead of "waiting" will trigger the bus recovering
immediately.
"i2c: davinci: Avoid sending to own address" -- works around one davinci
controller issue when it unexpectedly switches to some sort of slave mode
trying to send to its own address. The controller remains in this locked state
until reset, so it's better to avoid this situation than to deal with transfer
timeouts.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/3] i2c: davinci: Fix problems discovered on Keystone CPU
       [not found] ` <55003E60.3070306-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
@ 2015-03-11 18:35   ` Grygorii.Strashko-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org
       [not found]     ` <55008AF1.80405-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Grygorii.Strashko-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org @ 2015-03-11 18:35 UTC (permalink / raw)
  To: Alexander Sverdlin, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	Wolfram Sang, Kevin Hilman, Sekhar Nori, Karicheri, Muralidharan,
	Vishwanathrao Badarkhe, Manish
  Cc: Lawnick Michael 61283229, Mike Looijmans, Mastalski Bartosz

On 03/11/2015 03:08 PM, Alexander Sverdlin wrote:
> During intensive I2C tests on Keystone CPU we've discovered several problems
> with the i2c-davinci driver. Maybe Keystone is the first relatively powerful CPU
> utilizing davinci controller and therefore the races in the driver became more
> obvious, but it's clear that many users had problems with the driver and even
> though driver has received many band aids over the years, nobody addressed the
> original racy design.
> 
> The series address the follwing problems:
> "i2c: davinci: Rework racy ISR" -- stop the parallel activities in the driver
> including concurrect registers access. Also simplifies the design and removes
> some bad aids.
> "i2c: davinci: Refactor i2c_davinci_wait_bus_not_busy()" -- the routine is
> over-designed and instead of "waiting" will trigger the bus recovering
> immediately.
> "i2c: davinci: Avoid sending to own address" -- works around one davinci
> controller issue when it unexpectedly switches to some sort of slave mode
> trying to send to its own address. The controller remains in this locked state
> until reset, so it's better to avoid this situation than to deal with transfer
> timeouts.
> 


Have you used git format-patch --cover-letter?
Overall stats and list of patches are missing.

Also I think It'll be better to send patches 2/3 first, as
they have more chances to be merged. 

regards,
-grygorii

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/3] i2c: davinci: Fix problems discovered on Keystone CPU
       [not found]     ` <55008AF1.80405-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2015-03-12  7:52       ` Alexander Sverdlin
       [not found]         ` <550145C7.20503-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Sverdlin @ 2015-03-12  7:52 UTC (permalink / raw)
  To: ext Grygorii.Strashko-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA

Hi!

On 11/03/15 19:35, ext Grygorii.Strashko-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org wrote:
>> The series address the follwing problems:
>> > "i2c: davinci: Rework racy ISR" -- stop the parallel activities in the driver
>> > including concurrect registers access. Also simplifies the design and removes
>> > some bad aids.
>> > "i2c: davinci: Refactor i2c_davinci_wait_bus_not_busy()" -- the routine is
>> > over-designed and instead of "waiting" will trigger the bus recovering
>> > immediately.
>> > "i2c: davinci: Avoid sending to own address" -- works around one davinci
>> > controller issue when it unexpectedly switches to some sort of slave mode
>> > trying to send to its own address. The controller remains in this locked state
>> > until reset, so it's better to avoid this situation than to deal with transfer
>> > timeouts.
>> > 
> 
> Have you used git format-patch --cover-letter?
> Overall stats and list of patches are missing.

Will do in v2...

> Also I think It'll be better to send patches 2/3 first, as
> they have more chances to be merged. 

First patch is an important fix for blocking problem and therefore a candidate for
-stable backports. So, it should be less dependent of the less-important 2 and 3.

-- 
Best regards,
Alexander Sverdlin.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/3] i2c: davinci: Fix problems discovered on Keystone CPU
       [not found]         ` <550145C7.20503-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
@ 2015-04-03 20:14           ` Wolfram Sang
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2015-04-03 20:14 UTC (permalink / raw)
  To: Alexander Sverdlin
  Cc: ext Grygorii.Strashko-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]

On Thu, Mar 12, 2015 at 08:52:39AM +0100, Alexander Sverdlin wrote:
> Hi!
> 
> On 11/03/15 19:35, ext Grygorii.Strashko-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org wrote:
> >> The series address the follwing problems:
> >> > "i2c: davinci: Rework racy ISR" -- stop the parallel activities in the driver
> >> > including concurrect registers access. Also simplifies the design and removes
> >> > some bad aids.
> >> > "i2c: davinci: Refactor i2c_davinci_wait_bus_not_busy()" -- the routine is
> >> > over-designed and instead of "waiting" will trigger the bus recovering
> >> > immediately.
> >> > "i2c: davinci: Avoid sending to own address" -- works around one davinci
> >> > controller issue when it unexpectedly switches to some sort of slave mode
> >> > trying to send to its own address. The controller remains in this locked state
> >> > until reset, so it's better to avoid this situation than to deal with transfer
> >> > timeouts.
> >> > 
> > 
> > Have you used git format-patch --cover-letter?
> > Overall stats and list of patches are missing.
> 
> Will do in v2...

And please make sure the patches are chained to the cover-letter. That
makes reviewing much easier.

> First patch is an important fix for blocking problem and therefore a candidate for
> -stable backports. So, it should be less dependent of the less-important 2 and 3.

IMO this patch is too intrusive for stable, so I won't add the tag. You
may request that individually to stable maintainers, though, if you
disagree.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-03 20:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-11 13:08 [PATCH 0/3] i2c: davinci: Fix problems discovered on Keystone CPU Alexander Sverdlin
     [not found] ` <55003E60.3070306-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2015-03-11 18:35   ` Grygorii.Strashko-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org
     [not found]     ` <55008AF1.80405-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-03-12  7:52       ` Alexander Sverdlin
     [not found]         ` <550145C7.20503-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2015-04-03 20:14           ` Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.