[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ae39c62a-7dc7-81f5-ea10-edfdbf905e9d@alliedtelesis.co.nz>
Date: Thu, 20 May 2021 03:36:58 +0000
From: Chris Packham <Chris.Packham@...iedtelesis.co.nz>
To: "wsa@...nel.org" <wsa@...nel.org>,
Joakim Tjernlund <Joakim.Tjernlund@...inera.com>
CC: "andy.shevchenko@...il.com" <andy.shevchenko@...il.com>,
"andriy.shevchenko@...ux.intel.com"
<andriy.shevchenko@...ux.intel.com>,
"mpe@...erman.id.au" <mpe@...erman.id.au>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-i2c@...r.kernel.org" <linux-i2c@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 0/4] P2040/P2041 i2c recovery erratum
On 13/05/21 3:01 am, wsa@...nel.org wrote:
>>> I've been doing my recent work with a P2040 and prior to that I did test
>>> out the recovery on a T2081 (which isn't documented to have this
>>> erratum) when I was re-working the driver. The "new" recovery actually
>>> seems better but I don't have a reliably faulty i2c device so that's
>>> only based on me writing some code to manually trigger the recovery
>>> (using the snippet below) and observing it with an oscilloscope.
>> You don't need a faulty device, just an aborted I2C read/write op.
> If you can wire GPIOs to the bus, you can use the I2C fault injector:
>
> Documentation/i2c/gpio-fault-injection.rst
>
> There are already two "incomplete transfer" injectors.
>
Just giving this thread a poke. I have been looking at my options for
triggering an i2c recovery but haven't really had time to do much. I
think the best option given what I've got access to is a modified SFP
that grounds the SDA line but I need to find a system where I can attach
an oscilloscope (should be a few of these in the office when I can get
on-site).
I can confirm that when manually triggered the existing recovery and the
new erratum workaround produce what I'd expect to observe on an
oscilloscope.
I haven't explored Joakim's alternative recovery but I don't think that
should hold up these changes, any improvement to the existing recovery
can be done later as a follow-up.
Powered by blists - more mailing lists