From: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
To: "Du, Wenkai" <wenkai.du-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "'linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org'"
<linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"Westerberg,
Mika" <mika.westerberg-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
"'linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org'"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH V2] i2c-designware: Mask all interrupts during i2c controller enable
Date: Wed, 14 May 2014 17:53:41 +0200 [thread overview]
Message-ID: <20140514155341.GB12911@katana> (raw)
In-Reply-To: <7286EAF50D3F4E4AADE7FEECEBF8B5A547FF93E0-8oqHQFITsIHTXloPLtfHfbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1662 bytes --]
On Thu, Apr 10, 2014 at 11:03:19PM +0000, Du, Wenkai wrote:
> Hi all,
>
> Updated problem descriptions from Mika's feedback and new test data:
>
> There have been "i2c_designware 80860F41:00: controller timed out" errors
> on a number of Baytrail platforms. The issue is caused by incorrect value in
> Interrupt Mask Register (DW_IC_INTR_MASK) when i2c core is being enabled.
> This causes call to __i2c_dw_enable() to immediately start the transfer which
> leads to timeout. There are 3 failure modes observed:
>
> 1. Failure in S0 to S3 resume path
>
> The default value after reset for DW_IC_INTR_MASK is 0x8ff. When we start
> the first transaction after resuming from system sleep, TX_EMPTY interrupt
> is already unmasked because of the hardware default.
>
> 2. Failure in normal operational path
>
> This failure happens rarely and is hard to reproduce. Debug trace showed that
> DW_IC_INTR_MASK had value of 0x254 when failure occurred, which meant
> TX_EMPTY was unmasked.
>
> 2. Failure in S3 to S0 suspend path
>
> This failure also happens rarely and is hard to reproduce. Adding debug trace
> that read DW_IC_INTR_MASK made this failure not reproducible. But from ISR
> call trace we could conclude TX_EMPTY was unmasked when problem occurred.
>
>
> The patch masks all interrupts before the controller is enabled to resolve the
> faulty DW_IC_INTR_MASK conditions.
>
> Signed-off-by: Wenkai Du <wenkai.du-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Fixed the commit message and improved the comment to:
/* enforce disabled interrupts (due to HW issues) */"
Applied to for-current, thanks!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Wolfram Sang <wsa@the-dreams.de>
To: "Du, Wenkai" <wenkai.du@intel.com>
Cc: "'linux-i2c@vger.kernel.org'" <linux-i2c@vger.kernel.org>,
"Westerberg, Mika" <mika.westerberg@intel.com>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH V2] i2c-designware: Mask all interrupts during i2c controller enable
Date: Wed, 14 May 2014 17:53:41 +0200 [thread overview]
Message-ID: <20140514155341.GB12911@katana> (raw)
In-Reply-To: <7286EAF50D3F4E4AADE7FEECEBF8B5A547FF93E0@ORSMSX110.amr.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1632 bytes --]
On Thu, Apr 10, 2014 at 11:03:19PM +0000, Du, Wenkai wrote:
> Hi all,
>
> Updated problem descriptions from Mika's feedback and new test data:
>
> There have been "i2c_designware 80860F41:00: controller timed out" errors
> on a number of Baytrail platforms. The issue is caused by incorrect value in
> Interrupt Mask Register (DW_IC_INTR_MASK) when i2c core is being enabled.
> This causes call to __i2c_dw_enable() to immediately start the transfer which
> leads to timeout. There are 3 failure modes observed:
>
> 1. Failure in S0 to S3 resume path
>
> The default value after reset for DW_IC_INTR_MASK is 0x8ff. When we start
> the first transaction after resuming from system sleep, TX_EMPTY interrupt
> is already unmasked because of the hardware default.
>
> 2. Failure in normal operational path
>
> This failure happens rarely and is hard to reproduce. Debug trace showed that
> DW_IC_INTR_MASK had value of 0x254 when failure occurred, which meant
> TX_EMPTY was unmasked.
>
> 2. Failure in S3 to S0 suspend path
>
> This failure also happens rarely and is hard to reproduce. Adding debug trace
> that read DW_IC_INTR_MASK made this failure not reproducible. But from ISR
> call trace we could conclude TX_EMPTY was unmasked when problem occurred.
>
>
> The patch masks all interrupts before the controller is enabled to resolve the
> faulty DW_IC_INTR_MASK conditions.
>
> Signed-off-by: Wenkai Du <wenkai.du@intel.com>
Fixed the commit message and improved the comment to:
/* enforce disabled interrupts (due to HW issues) */"
Applied to for-current, thanks!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2014-05-14 15:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-10 23:03 [PATCH V2] i2c-designware: Mask all interrupts during i2c controller enable Du, Wenkai
2014-04-10 23:03 ` Du, Wenkai
2014-04-11 9:29 ` Westerberg, Mika
[not found] ` <7286EAF50D3F4E4AADE7FEECEBF8B5A547FF93E0-8oqHQFITsIHTXloPLtfHfbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-14 15:53 ` Wolfram Sang [this message]
2014-05-14 15:53 ` Wolfram Sang
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=20140514155341.GB12911@katana \
--to=wsa-z923lk4zbo2bacvfa/9k2g@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mika.westerberg-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=wenkai.du-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
/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.