All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: Felipe Balbi <balbi@ti.com>,
	linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: OMAP baseline test results for v3.7-rc1
Date: Fri, 19 Oct 2012 21:10:37 +0300	[thread overview]
Message-ID: <20121019181037.GA3036@arwen.pp.htv.fi> (raw)
In-Reply-To: <alpine.DEB.2.00.1210191752210.14522@utopia.booyaka.com>

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

Hi,

On Fri, Oct 19, 2012 at 05:56:48PM +0000, Paul Walmsley wrote:
> Hi Felipe,
> 
> On Fri, 19 Oct 2012, Felipe Balbi wrote:
> 
> > On Fri, Oct 19, 2012 at 04:55:38PM +0000, Paul Walmsley wrote:
> > > On Thu, 18 Oct 2012, Paul Walmsley wrote:
> > > 
> > > > Here are some basic OMAP test results for Linux v3.7-rc1.
> > > > Logs and other details at http://www.pwsan.com/omap/testlogs/test_v3.7-rc1/
> > > 
> > > > Failing tests: needing investigation
> > > > ------------------------------------
> > > >
> > > > Boot tests:
> > > 
> > > * 3530ES3 Beagle: I2C timeouts during userspace init
> > >   - May be related to the threaded IRQ conversion of the I2C driver
> > >   - Unknown cause
> > 
> > Doesn't seem like it's related to threaded IRQ. It says:
> > 
> > [   23.673858] omap_i2c omap_i2c.1: timeout waiting for bus ready
> > 
> > at that time we didn't even program the transfer yet, meaning we're not
> > even on wait_for_completion_timeout() inside omap_i2c_xfer_msg(). This
> > happens before:
> > 
> > > static int omap_i2c_wait_for_bb(struct omap_i2c_dev *dev)
> > > {
> > > 	unsigned long timeout;
> > > 
> > > 	timeout = jiffies + OMAP_I2C_TIMEOUT;
> > > 	while (omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG) & OMAP_I2C_STAT_BB) {
> > > 		if (time_after(jiffies, timeout)) {
> > > 			dev_warn(dev->dev, "timeout waiting for bus ready\n");
> > 
> > it' stopping here. And that's called...
> > 
> > > 			return -ETIMEDOUT;
> > > 		}
> > > 		msleep(1);
> > > 	}
> > > 
> > > 	return 0;
> > > }
> > 
> > [...]
> > 
> > > static int
> > > omap_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
> > > {
> > > 	struct omap_i2c_dev *dev = i2c_get_adapdata(adap);
> > > 	int i;
> > > 	int r;
> > > 
> > > 	r = pm_runtime_get_sync(dev->dev);
> > > 	if (IS_ERR_VALUE(r))
> > > 		goto out;
> > > 
> > > 	r = omap_i2c_wait_for_bb(dev);
> > 
> > right here. For whatever reason, the bus is kept busy (or at least the
> > driver thinks so).
> > 
> > Looking closely at the logs I see that definitely I2C was working during
> > early boot (we managed to mount file system on SD card and twl got
> > initialized properly). But then we have a long time where I2C isn't
> > used, so it probably suspended in between.
> > 
> > Then RTC wanted to read a register, I2C woke up, restored context, but
> > bus was kept busy, for whatever reason.
> > 
> > Does it happen all the time on multiple boots or is it ramdom ?
> 
> Just ran six boot tests here; it occurred in five of them.  Then tried 
> five boot tests on v3.6 and the error didn't show up in any of them.  
> Abbreviated log at the bottom.
> 
> Would be happy to send along a copy of the userspace that was used if it 
> would be useful to you.

no need for the userspace, I don't believe it will matter as the problem
happens when RTC is used somehow. I'll see if I can reproduce it here in
any way possible on my beagleXM (different OMAP, I know, but still.
Hopefully I'll trigger it, which means it's not a missing workaround).

cheers

-- 
balbi

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

WARNING: multiple messages have this Message-ID (diff)
From: balbi@ti.com (Felipe Balbi)
To: linux-arm-kernel@lists.infradead.org
Subject: OMAP baseline test results for v3.7-rc1
Date: Fri, 19 Oct 2012 21:10:37 +0300	[thread overview]
Message-ID: <20121019181037.GA3036@arwen.pp.htv.fi> (raw)
In-Reply-To: <alpine.DEB.2.00.1210191752210.14522@utopia.booyaka.com>

Hi,

On Fri, Oct 19, 2012 at 05:56:48PM +0000, Paul Walmsley wrote:
> Hi Felipe,
> 
> On Fri, 19 Oct 2012, Felipe Balbi wrote:
> 
> > On Fri, Oct 19, 2012 at 04:55:38PM +0000, Paul Walmsley wrote:
> > > On Thu, 18 Oct 2012, Paul Walmsley wrote:
> > > 
> > > > Here are some basic OMAP test results for Linux v3.7-rc1.
> > > > Logs and other details at http://www.pwsan.com/omap/testlogs/test_v3.7-rc1/
> > > 
> > > > Failing tests: needing investigation
> > > > ------------------------------------
> > > >
> > > > Boot tests:
> > > 
> > > * 3530ES3 Beagle: I2C timeouts during userspace init
> > >   - May be related to the threaded IRQ conversion of the I2C driver
> > >   - Unknown cause
> > 
> > Doesn't seem like it's related to threaded IRQ. It says:
> > 
> > [   23.673858] omap_i2c omap_i2c.1: timeout waiting for bus ready
> > 
> > at that time we didn't even program the transfer yet, meaning we're not
> > even on wait_for_completion_timeout() inside omap_i2c_xfer_msg(). This
> > happens before:
> > 
> > > static int omap_i2c_wait_for_bb(struct omap_i2c_dev *dev)
> > > {
> > > 	unsigned long timeout;
> > > 
> > > 	timeout = jiffies + OMAP_I2C_TIMEOUT;
> > > 	while (omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG) & OMAP_I2C_STAT_BB) {
> > > 		if (time_after(jiffies, timeout)) {
> > > 			dev_warn(dev->dev, "timeout waiting for bus ready\n");
> > 
> > it' stopping here. And that's called...
> > 
> > > 			return -ETIMEDOUT;
> > > 		}
> > > 		msleep(1);
> > > 	}
> > > 
> > > 	return 0;
> > > }
> > 
> > [...]
> > 
> > > static int
> > > omap_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
> > > {
> > > 	struct omap_i2c_dev *dev = i2c_get_adapdata(adap);
> > > 	int i;
> > > 	int r;
> > > 
> > > 	r = pm_runtime_get_sync(dev->dev);
> > > 	if (IS_ERR_VALUE(r))
> > > 		goto out;
> > > 
> > > 	r = omap_i2c_wait_for_bb(dev);
> > 
> > right here. For whatever reason, the bus is kept busy (or at least the
> > driver thinks so).
> > 
> > Looking closely at the logs I see that definitely I2C was working during
> > early boot (we managed to mount file system on SD card and twl got
> > initialized properly). But then we have a long time where I2C isn't
> > used, so it probably suspended in between.
> > 
> > Then RTC wanted to read a register, I2C woke up, restored context, but
> > bus was kept busy, for whatever reason.
> > 
> > Does it happen all the time on multiple boots or is it ramdom ?
> 
> Just ran six boot tests here; it occurred in five of them.  Then tried 
> five boot tests on v3.6 and the error didn't show up in any of them.  
> Abbreviated log at the bottom.
> 
> Would be happy to send along a copy of the userspace that was used if it 
> would be useful to you.

no need for the userspace, I don't believe it will matter as the problem
happens when RTC is used somehow. I'll see if I can reproduce it here in
any way possible on my beagleXM (different OMAP, I know, but still.
Hopefully I'll trigger it, which means it's not a missing workaround).

cheers

-- 
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121019/6b962a95/attachment.sig>

  reply	other threads:[~2012-10-19 18:16 UTC|newest]

Thread overview: 138+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-18  5:20 OMAP baseline test results for v3.7-rc1 Paul Walmsley
2012-10-18  5:20 ` Paul Walmsley
2012-10-18  6:48 ` Paul Walmsley
2012-10-18  6:48   ` Paul Walmsley
2012-10-18  8:37   ` Tero Kristo
2012-10-18  8:37     ` Tero Kristo
2012-10-18  8:48     ` Santosh Shilimkar
2012-10-18  8:48       ` Santosh Shilimkar
2012-10-20 17:30       ` Paul Walmsley
2012-10-20 17:30         ` Paul Walmsley
2012-10-19 16:55 ` Paul Walmsley
2012-10-19 16:55   ` Paul Walmsley
2012-10-19 17:01   ` Felipe Balbi
2012-10-19 17:01     ` Felipe Balbi
2012-10-19 17:56     ` Paul Walmsley
2012-10-19 17:56       ` Paul Walmsley
2012-10-19 18:10       ` Felipe Balbi [this message]
2012-10-19 18:10         ` Felipe Balbi
2012-10-19 19:03   ` Aaro Koskinen
2012-10-19 19:03     ` Aaro Koskinen
2012-10-19 19:01     ` Felipe Balbi
2012-10-19 19:01       ` Felipe Balbi
2012-10-19 19:38       ` Aaro Koskinen
2012-10-19 19:38         ` Aaro Koskinen
2012-10-22 17:21         ` Kevin Hilman
2012-10-22 17:21           ` Kevin Hilman
2012-10-22 20:43           ` Kevin Hilman
2012-10-22 20:43             ` Kevin Hilman
2012-10-20  6:14   ` Paul Walmsley
2012-10-20  6:14     ` Paul Walmsley
2012-10-22 16:12     ` Jean Pihet
2012-10-22 16:12       ` Jean Pihet
2012-10-22 17:26       ` Jean Pihet
2012-10-22 17:26         ` Jean Pihet
2012-10-23 19:19         ` Paul Walmsley
2012-10-23 19:19           ` Paul Walmsley
2012-10-23 19:23           ` Jean Pihet
2012-10-23 19:23             ` Jean Pihet
2012-10-25 10:12             ` Felipe Balbi
2012-10-25 10:12               ` Felipe Balbi
2012-10-26 20:15               ` Felipe Balbi
2012-10-26 20:15                 ` Felipe Balbi
2012-10-26 22:03                 ` Paul Walmsley
2012-10-26 22:03                   ` Paul Walmsley
2012-10-29 20:00                   ` Felipe Balbi
2012-10-29 20:00                     ` Felipe Balbi
2012-10-30 12:17                     ` Paul Walmsley
2012-10-30 12:17                       ` Paul Walmsley
2012-10-30 12:32                       ` Felipe Balbi
2012-10-30 12:32                         ` Felipe Balbi
2012-10-30 12:50                         ` Paul Walmsley
2012-10-30 12:50                           ` Paul Walmsley
2012-10-30 12:54                           ` Felipe Balbi
2012-10-30 12:54                             ` Felipe Balbi
2012-10-30 13:17                             ` Paul Walmsley
2012-10-30 13:17                               ` Paul Walmsley
2012-10-30 14:04                               ` Paul Walmsley
2012-10-30 14:04                                 ` Paul Walmsley
2012-10-31  8:34                                 ` Jean Pihet
2012-10-31  8:34                                   ` Jean Pihet
2012-10-31  9:05                                   ` Rafael J. Wysocki
2012-10-31  9:05                                     ` Rafael J. Wysocki
2012-10-31  8:22                               ` Jean Pihet
2012-10-31  8:22                                 ` Jean Pihet
2012-10-31 10:49                                 ` Kevin Hilman
2012-10-31 10:49                                   ` Kevin Hilman
2012-10-31 21:11                                   ` Jean Pihet
2012-10-31 21:11                                     ` Jean Pihet
2012-11-01  2:44                                     ` Paul Walmsley
2012-11-01  2:44                                       ` Paul Walmsley
2012-11-01  7:51                                       ` Jean Pihet
2012-11-01  7:51                                         ` Jean Pihet
2012-11-03 21:39                                         ` Jean Pihet
2012-11-03 21:39                                           ` Jean Pihet
2012-11-05  3:15                                           ` Paul Walmsley
2012-11-05  3:15                                             ` Paul Walmsley
2012-11-05  9:26                                             ` Jean Pihet
2012-11-05  9:26                                               ` Jean Pihet
2012-11-06  0:01                                               ` Kevin Hilman
2012-11-06  0:01                                                 ` Kevin Hilman
2012-11-06  9:27                                                 ` Jean Pihet
2012-11-06  9:27                                                   ` Jean Pihet
2012-11-06 16:13                                                   ` Paul Walmsley
2012-11-06 16:13                                                     ` Paul Walmsley
2012-11-06 10:06                                                 ` Shubhrajyoti Datta
2012-11-06 10:06                                                   ` Shubhrajyoti Datta
2012-10-30  4:16             ` Paul Walmsley
2012-10-30  4:16               ` Paul Walmsley
2012-10-30  8:54               ` Jean Pihet
2012-10-30  8:54                 ` Jean Pihet
2012-10-30 11:23                 ` Paul Walmsley
2012-10-30 11:23                   ` Paul Walmsley
2012-10-31  8:18                   ` Jean Pihet
2012-10-31  8:18                     ` Jean Pihet
2012-10-23 19:17       ` Kevin Hilman
2012-10-23 19:17         ` Kevin Hilman
2012-10-23 19:18       ` Paul Walmsley
2012-10-23 19:18         ` Paul Walmsley
2012-10-20  6:24   ` Paul Walmsley
2012-10-20  6:24     ` Paul Walmsley
2012-10-22 17:53     ` Kevin Hilman
2012-10-22 17:53       ` Kevin Hilman
2012-10-22 20:44       ` Kevin Hilman
2012-10-22 20:44         ` Kevin Hilman
2012-10-20 14:11 ` Richard Cochran
2012-10-20 14:11   ` Richard Cochran
2012-10-20 16:27   ` Paul Walmsley
2012-10-20 16:27     ` Paul Walmsley
2012-10-20 18:01     ` Richard Cochran
2012-10-20 18:01       ` Richard Cochran
2012-10-20 18:12       ` Paul Walmsley
2012-10-20 18:12         ` Paul Walmsley
2012-10-20 18:37         ` Richard Cochran
2012-10-20 18:37           ` Richard Cochran
2012-10-20 18:58           ` Paul Walmsley
2012-10-20 18:58             ` Paul Walmsley
2012-10-21 13:51             ` Matt Porter
2012-10-21 13:51               ` Matt Porter
2012-10-21 16:26               ` Paul Walmsley
2012-10-21 16:26                 ` Paul Walmsley
2012-10-22 21:56               ` Kevin Hilman
2012-10-22 21:56                 ` Kevin Hilman
2012-10-21  7:35     ` Richard Cochran
2012-10-21  7:35       ` Richard Cochran
2012-10-21  8:23       ` Paul Walmsley
2012-10-21  8:23         ` Paul Walmsley
2012-10-21 11:44         ` Richard Cochran
2012-10-21 11:44           ` Richard Cochran
2012-10-21 16:24           ` Paul Walmsley
2012-10-21 16:24             ` Paul Walmsley
2012-10-21 12:29       ` Mohammed, Afzal
2012-10-21 12:29         ` Mohammed, Afzal
2012-10-21 12:36         ` Richard Cochran
2012-10-21 12:36           ` Richard Cochran
2012-10-20 17:20 ` Paul Walmsley
2012-10-20 17:20   ` Paul Walmsley
2012-10-22 16:13   ` Tero Kristo
2012-10-22 16:13     ` Tero Kristo

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=20121019181037.GA3036@arwen.pp.htv.fi \
    --to=balbi@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.com \
    /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 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.