From: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
To: "Evgeniy.Didin@synopsys.com" <Evgeniy.Didin@synopsys.com>
Cc: "ulf.hansson@linaro.org" <ulf.hansson@linaro.org>,
"Vineet.Gupta1@synopsys.com" <Vineet.Gupta1@synopsys.com>,
"Alexey.Brodkin@synopsys.com" <Alexey.Brodkin@synopsys.com>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
"dianders@chromium.org" <dianders@chromium.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>,
"jh80.chung@samsung.com" <jh80.chung@samsung.com>,
"linux-snps-arc@lists.infradead.org"
<linux-snps-arc@lists.infradead.org>,
"Eugeniy.Paltsev@synopsys.com" <Eugeniy.Paltsev@synopsys.com>,
"shawn.lin@rock-chips.com" <shawn.lin@rock-chips.com>
Subject: Re: [PATCH v2] mmc: dw_mmc: Fix the DTO timeout overflow calculation for 32-bit systems
Date: Thu, 22 Feb 2018 16:03:35 +0000 [thread overview]
Message-ID: <1519315414.19466.9.camel@synopsys.com> (raw)
In-Reply-To: <bec45955-1e84-400b-961f-35b5342c671f@rock-chips.com>
Hi Shawn,
On Thu, 2018-02-22 at 23:28 +0800, Shawn Lin wrote:
[snip]
> > > Stack Trace:
> > > arc_unwind_core.constprop.1+0xd0/0xf4
> > > dump_stack+0x68/0x80
> > > warn_slowpath_null+0x4e/0xec
> > > sg_miter_next+0x28/0x20c
> > > dw_mci_read_data_pio+0x44/0x190
> > > dw_mmc f000a000.mmc: Unexpected interrupt latency
>
> I think we tested SD cards but the main reason we missed
> this is that we don't use pio mode since dw_mmc decides
> the transfer mode via HCON register but we don't have one
> platform at hand then to do that. Given the data-transfer-over
> interrupt should come after the data hit the RAM, so pio mode
> could probably consume more time than IDMAC.
That's really interesting.
I was under impression that we use internal DMA controller (AKA IDMAC)
on that platform (HSDK).
This is what we typically see in bootlog (this extract is taken from
4.15-r9):
--------------------------------->8--------------------------------
dw_mmc f000a000.mmc: 'num-slots' was deprecated.
dw_mmc f000a000.mmc: IDMAC supports 32-bit address mode.
dw_mmc f000a000.mmc: Using internal DMA controller.
dw_mmc f000a000.mmc: Version ID is 290a
dw_mmc f000a000.mmc: DW MMC controller at irq 12,32 bit host data width,16 deep fifo
--------------------------------->8--------------------------------
I'm not really sure how PIO mode (which stands for non-DMA mode) got used
given we have IDMAC in the hardware.
@ Evgeniy, could you please check why IDMAC is not used?
-Alexey
WARNING: multiple messages have this Message-ID (diff)
From: Alexey.Brodkin@synopsys.com (Alexey Brodkin)
To: linux-snps-arc@lists.infradead.org
Subject: [PATCH v2] mmc: dw_mmc: Fix the DTO timeout overflow calculation for 32-bit systems
Date: Thu, 22 Feb 2018 16:03:35 +0000 [thread overview]
Message-ID: <1519315414.19466.9.camel@synopsys.com> (raw)
In-Reply-To: <bec45955-1e84-400b-961f-35b5342c671f@rock-chips.com>
Hi Shawn,
On Thu, 2018-02-22@23:28 +0800, Shawn Lin wrote:
[snip]
> > > Stack Trace:
> > > arc_unwind_core.constprop.1+0xd0/0xf4
> > > dump_stack+0x68/0x80
> > > warn_slowpath_null+0x4e/0xec
> > > sg_miter_next+0x28/0x20c
> > > dw_mci_read_data_pio+0x44/0x190
> > > dw_mmc f000a000.mmc: Unexpected interrupt latency
>
> I think we tested SD cards but the main reason we missed
> this is that we don't use pio mode since dw_mmc decides
> the transfer mode via HCON register but we don't have one
> platform at hand then to do that. Given the data-transfer-over
> interrupt should come after the data hit the RAM, so pio mode
> could probably consume more time than IDMAC.
That's really interesting.
I was under impression that we use internal DMA controller (AKA IDMAC)
on that platform (HSDK).
This is what we typically see in bootlog (this extract is taken from
4.15-r9):
--------------------------------->8--------------------------------
dw_mmc f000a000.mmc: 'num-slots' was deprecated.
dw_mmc f000a000.mmc: IDMAC supports 32-bit address mode.
dw_mmc f000a000.mmc: Using internal DMA controller.
dw_mmc f000a000.mmc: Version ID is 290a
dw_mmc f000a000.mmc: DW MMC controller at irq 12,32 bit host data width,16 deep fifo
--------------------------------->8--------------------------------
I'm not really sure how PIO mode (which stands for non-DMA mode) got used
given we have IDMAC in the hardware.
@ Evgeniy, could you please check why IDMAC is not used?
-Alexey
WARNING: multiple messages have this Message-ID (diff)
From: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
To: "Evgeniy.Didin@synopsys.com" <Evgeniy.Didin@synopsys.com>
Cc: "jh80.chung@samsung.com" <jh80.chung@samsung.com>,
"Alexey.Brodkin@synopsys.com" <Alexey.Brodkin@synopsys.com>,
"dianders@chromium.org" <dianders@chromium.org>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
"Vineet.Gupta1@synopsys.com" <Vineet.Gupta1@synopsys.com>,
"Eugeniy.Paltsev@synopsys.com" <Eugeniy.Paltsev@synopsys.com>,
"linux-snps-arc@lists.infradead.org"
<linux-snps-arc@lists.infradead.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>,
"shawn.lin@rock-chips.com" <shawn.lin@rock-chips.com>,
"ulf.hansson@linaro.org" <ulf.hansson@linaro.org>
Subject: Re: [PATCH v2] mmc: dw_mmc: Fix the DTO timeout overflow calculation for 32-bit systems
Date: Thu, 22 Feb 2018 16:03:35 +0000 [thread overview]
Message-ID: <1519315414.19466.9.camel@synopsys.com> (raw)
In-Reply-To: <bec45955-1e84-400b-961f-35b5342c671f@rock-chips.com>
Hi Shawn,
On Thu, 2018-02-22 at 23:28 +0800, Shawn Lin wrote:
[snip]
> > > Stack Trace:
> > > arc_unwind_core.constprop.1+0xd0/0xf4
> > > dump_stack+0x68/0x80
> > > warn_slowpath_null+0x4e/0xec
> > > sg_miter_next+0x28/0x20c
> > > dw_mci_read_data_pio+0x44/0x190
> > > dw_mmc f000a000.mmc: Unexpected interrupt latency
>
> I think we tested SD cards but the main reason we missed
> this is that we don't use pio mode since dw_mmc decides
> the transfer mode via HCON register but we don't have one
> platform at hand then to do that. Given the data-transfer-over
> interrupt should come after the data hit the RAM, so pio mode
> could probably consume more time than IDMAC.
That's really interesting.
I was under impression that we use internal DMA controller (AKA IDMAC)
on that platform (HSDK).
This is what we typically see in bootlog (this extract is taken from
4.15-r9):
--------------------------------->8--------------------------------
dw_mmc f000a000.mmc: 'num-slots' was deprecated.
dw_mmc f000a000.mmc: IDMAC supports 32-bit address mode.
dw_mmc f000a000.mmc: Using internal DMA controller.
dw_mmc f000a000.mmc: Version ID is 290a
dw_mmc f000a000.mmc: DW MMC controller at irq 12,32 bit host data width,16 deep fifo
--------------------------------->8--------------------------------
I'm not really sure how PIO mode (which stands for non-DMA mode) got used
given we have IDMAC in the hardware.
@ Evgeniy, could you please check why IDMAC is not used?
-Alexey
next prev parent reply other threads:[~2018-02-22 16:03 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-22 13:34 [PATCH v2] mmc: dw_mmc: Fix the DTO timeout overflow calculation for 32-bit systems Evgeniy Didin
2018-02-22 13:34 ` Evgeniy Didin
2018-02-22 13:34 ` Evgeniy Didin
2018-02-22 15:28 ` Shawn Lin
2018-02-22 15:28 ` Shawn Lin
2018-02-22 15:28 ` Shawn Lin
2018-02-22 16:03 ` Alexey Brodkin [this message]
2018-02-22 16:03 ` Alexey Brodkin
2018-02-22 16:03 ` Alexey Brodkin
2018-02-22 16:36 ` Shawn Lin
2018-02-22 16:36 ` Shawn Lin
2018-02-22 16:36 ` Shawn Lin
2018-02-22 17:38 ` Vineet Gupta
2018-02-22 17:38 ` Vineet Gupta
2018-02-22 17:38 ` Vineet Gupta
2018-02-23 3:24 ` Jisheng Zhang
2018-02-23 3:24 ` Jisheng Zhang
2018-02-23 3:24 ` Jisheng Zhang
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=1519315414.19466.9.camel@synopsys.com \
--to=alexey.brodkin@synopsys.com \
--cc=Eugeniy.Paltsev@synopsys.com \
--cc=Evgeniy.Didin@synopsys.com \
--cc=Vineet.Gupta1@synopsys.com \
--cc=dianders@chromium.org \
--cc=jh80.chung@samsung.com \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-snps-arc@lists.infradead.org \
--cc=shawn.lin@rock-chips.com \
--cc=stable@vger.kernel.org \
--cc=ulf.hansson@linaro.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.