RE: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-15 Thread Bough Chen
x-...@vger.kernel.org; Linus Walleij > <linus.wall...@linaro.org>; Adrian Hunter <adrian.hun...@intel.com>; A.S. > Dong <aisheng.d...@nxp.com>; linux-kernel@vger.kernel.org; Gary Bisson > <gary.bis...@boundarydevices.com>; Fabio Estevam <feste...@gmail.com>; > S

RE: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-15 Thread Bough Chen
.kernel.org; Gary Bisson > ; Fabio Estevam ; > Shawn Guo > Subject: Re: eMMC boot problem: switch to bus width 8 ddr failed > > [...] > > > Hi Ulf and Shawn, > > > > Aisheng and I debug this issue these days, and we find the root cause. > > There are two t

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-13 Thread Ulf Hansson
[...] > Hi Ulf and Shawn, > > Aisheng and I debug this issue these days, and we find the root cause. There > are two things > to describe. > > 1) voltage switch issue. The properity "no-1-8-v" do not work for > MMC_TIMING_MMC_DDR52. > This is another bug, we need to fix, but has no relation

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-13 Thread Ulf Hansson
[...] > Hi Ulf and Shawn, > > Aisheng and I debug this issue these days, and we find the root cause. There > are two things > to describe. > > 1) voltage switch issue. The properity "no-1-8-v" do not work for > MMC_TIMING_MMC_DDR52. > This is another bug, we need to fix, but has no relation

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-13 Thread Ulf Hansson
[...] >>> > >>> > In the meantime, I will follow the process of Haibo Chen's debugging >>> > around the voltage switch issue and look into what Dong's suggesting >>> > around this may be. >>> > >>> > Just to be clear, I would definitely prefer a fix in the sdhci driver, >>> >>> yup, I prefer to

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-13 Thread Ulf Hansson
[...] >>> > >>> > In the meantime, I will follow the process of Haibo Chen's debugging >>> > around the voltage switch issue and look into what Dong's suggesting >>> > around this may be. >>> > >>> > Just to be clear, I would definitely prefer a fix in the sdhci driver, >>> >>> yup, I prefer to

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Dong Aisheng
Hi Shawn, On Fri, Jan 13, 2017 at 12:03 PM, Shawn Lin wrote: [...] > >> 2) root cause, in __mmc_switch, the process is send CMD6 --> set DDR52 >> timing --> polling for busy. >> For the DDR52 timing setting, we call set_ios(), in the set_ios, we first >> set DDR_EN

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Dong Aisheng
Hi Shawn, On Fri, Jan 13, 2017 at 12:03 PM, Shawn Lin wrote: [...] > >> 2) root cause, in __mmc_switch, the process is send CMD6 --> set DDR52 >> timing --> polling for busy. >> For the DDR52 timing setting, we call set_ios(), in the set_ios, we first >> set DDR_EN to config sdhc in ddr

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Dong Aisheng
hen >> <haibo.c...@nxp.com>; Gary Bisson <gary.bis...@boundarydevices.com>; >> Fabio Estevam <feste...@gmail.com>; Shawn Guo <shawn...@kernel.org> >> Subject: Re: eMMC boot problem: switch to bus width 8 ddr failed >> >> On 2017/1/13 0:51, Ul

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Dong Aisheng
x-...@vger.kernel.org; Linus Walleij >> ; Adrian Hunter ; A.S. >> Dong ; linux-kernel@vger.kernel.org; Bough Chen >> ; Gary Bisson ; >> Fabio Estevam ; Shawn Guo >> Subject: Re: eMMC boot problem: switch to bus width 8 ddr failed >> >> On 2017/1/13 0:51, Ulf H

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Shawn Lin
..@gmail.com>; Shawn Guo <shawn...@kernel.org> Subject: Re: eMMC boot problem: switch to bus width 8 ddr failed On 2017/1/13 0:51, Ulf Hansson wrote: + Haibo, Gary, Fabio, Shawn Gou On 6 January 2017 at 16:56, Clemens Gruber <clemens.gru...@pqgruber.com> wrote: On Fri, Jan 06,

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Shawn Lin
-kernel@vger.kernel.org; Bough Chen ; Gary Bisson ; Fabio Estevam ; Shawn Guo Subject: Re: eMMC boot problem: switch to bus width 8 ddr failed On 2017/1/13 0:51, Ulf Hansson wrote: + Haibo, Gary, Fabio, Shawn Gou On 6 January 2017 at 16:56, Clemens Gruber wrote: On Fri, Jan 06, 2017 at 10:33

RE: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Bough Chen
lt;feste...@gmail.com>; Shawn Guo <shawn...@kernel.org> > Subject: Re: eMMC boot problem: switch to bus width 8 ddr failed > > On 2017/1/13 0:51, Ulf Hansson wrote: > > + Haibo, Gary, Fabio, Shawn Gou > > > > On 6 January 2017 at 16:56, Clemens Gruber > <cleme

RE: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Bough Chen
x-kernel@vger.kernel.org; Bough Chen > ; Gary Bisson ; > Fabio Estevam ; Shawn Guo > Subject: Re: eMMC boot problem: switch to bus width 8 ddr failed > > On 2017/1/13 0:51, Ulf Hansson wrote: > > + Haibo, Gary, Fabio, Shawn Gou > > > > On 6 January 2017 at 16:56, Cl

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Shawn Lin
On 2017/1/13 0:51, Ulf Hansson wrote: + Haibo, Gary, Fabio, Shawn Gou On 6 January 2017 at 16:56, Clemens Gruber wrote: On Fri, Jan 06, 2017 at 10:33:49AM +0800, Shawn Lin wrote: On 2017/1/6 8:41, Clemens Gruber wrote: Hi, with the current mainline 4.10-rc2

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Shawn Lin
On 2017/1/13 0:51, Ulf Hansson wrote: + Haibo, Gary, Fabio, Shawn Gou On 6 January 2017 at 16:56, Clemens Gruber wrote: On Fri, Jan 06, 2017 at 10:33:49AM +0800, Shawn Lin wrote: On 2017/1/6 8:41, Clemens Gruber wrote: Hi, with the current mainline 4.10-rc2 kernel, I can no longer boot

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Ulf Hansson
+ Haibo, Gary, Fabio, Shawn Gou On 6 January 2017 at 16:56, Clemens Gruber wrote: > On Fri, Jan 06, 2017 at 10:33:49AM +0800, Shawn Lin wrote: >> On 2017/1/6 8:41, Clemens Gruber wrote: >> > Hi, >> > >> > with the current mainline 4.10-rc2 kernel, I can no longer

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Ulf Hansson
+ Haibo, Gary, Fabio, Shawn Gou On 6 January 2017 at 16:56, Clemens Gruber wrote: > On Fri, Jan 06, 2017 at 10:33:49AM +0800, Shawn Lin wrote: >> On 2017/1/6 8:41, Clemens Gruber wrote: >> > Hi, >> > >> > with the current mainline 4.10-rc2 kernel, I can no longer boot from >> > the eMMC on my

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-10 Thread Dong Aisheng
On Tue, Jan 10, 2017 at 6:25 AM, Jagan Teki wrote: > On Fri, Jan 6, 2017 at 5:07 PM, Clemens Gruber > wrote: >> On Fri, Jan 06, 2017 at 10:54:35AM +0800, Shawn Lin wrote: >>> On 2017/1/6 8:41, Clemens Gruber wrote: >>> > Hi, >>> > >>> > with the

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-10 Thread Dong Aisheng
On Tue, Jan 10, 2017 at 6:25 AM, Jagan Teki wrote: > On Fri, Jan 6, 2017 at 5:07 PM, Clemens Gruber > wrote: >> On Fri, Jan 06, 2017 at 10:54:35AM +0800, Shawn Lin wrote: >>> On 2017/1/6 8:41, Clemens Gruber wrote: >>> > Hi, >>> > >>> > with the current mainline 4.10-rc2 kernel, I can no longer

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-10 Thread Dong Aisheng
On Fri, Jan 6, 2017 at 8:41 AM, Clemens Gruber wrote: > Hi, > > with the current mainline 4.10-rc2 kernel, I can no longer boot from > the eMMC on my i.MX6Q board. > > Details: > The eMMC is a Micron MTFC4GACAJCN-1M WT but as the i.MX6Q only supports > eMMC 4.41

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-10 Thread Dong Aisheng
On Fri, Jan 6, 2017 at 8:41 AM, Clemens Gruber wrote: > Hi, > > with the current mainline 4.10-rc2 kernel, I can no longer boot from > the eMMC on my i.MX6Q board. > > Details: > The eMMC is a Micron MTFC4GACAJCN-1M WT but as the i.MX6Q only supports > eMMC 4.41 features and we did not implement

RE: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-10 Thread Bough Chen
gt;; linux-...@vger.kernel.org > Cc: shawn@rock-chips.com; Ulf Hansson <ulf.hans...@linaro.org>; Linus > Walleij <linus.wall...@linaro.org>; Adrian Hunter <adrian.hun...@intel.com>; > A.S. Dong <aisheng.d...@nxp.com>; linux-kernel@vger.kernel.org > Subject: Re:

RE: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-10 Thread Bough Chen
; Ulf Hansson ; Linus > Walleij ; Adrian Hunter ; > A.S. Dong ; linux-kernel@vger.kernel.org > Subject: Re: eMMC boot problem: switch to bus width 8 ddr failed > > On 2017/1/6 23:56, Clemens Gruber wrote: > > On Fri, Jan 06, 2017 at 10:33:49AM +0800, Shawn Lin wrote: > >&g

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-09 Thread Shawn Lin
Hi Jagan, On 2017/1/10 6:25, Jagan Teki wrote: On Fri, Jan 6, 2017 at 5:07 PM, Clemens Gruber wrote: On Fri, Jan 06, 2017 at 10:54:35AM +0800, Shawn Lin wrote: On 2017/1/6 8:41, Clemens Gruber wrote: Hi, with the current mainline 4.10-rc2 kernel, I can no

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-09 Thread Shawn Lin
Hi Jagan, On 2017/1/10 6:25, Jagan Teki wrote: On Fri, Jan 6, 2017 at 5:07 PM, Clemens Gruber wrote: On Fri, Jan 06, 2017 at 10:54:35AM +0800, Shawn Lin wrote: On 2017/1/6 8:41, Clemens Gruber wrote: Hi, with the current mainline 4.10-rc2 kernel, I can no longer boot from the eMMC on my

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-09 Thread Jagan Teki
On Fri, Jan 6, 2017 at 5:07 PM, Clemens Gruber wrote: > On Fri, Jan 06, 2017 at 10:54:35AM +0800, Shawn Lin wrote: >> On 2017/1/6 8:41, Clemens Gruber wrote: >> > Hi, >> > >> > with the current mainline 4.10-rc2 kernel, I can no longer boot from >> > the eMMC on my

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-09 Thread Jagan Teki
On Fri, Jan 6, 2017 at 5:07 PM, Clemens Gruber wrote: > On Fri, Jan 06, 2017 at 10:54:35AM +0800, Shawn Lin wrote: >> On 2017/1/6 8:41, Clemens Gruber wrote: >> > Hi, >> > >> > with the current mainline 4.10-rc2 kernel, I can no longer boot from >> > the eMMC on my i.MX6Q board. >> > >> >

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-08 Thread Shawn Lin
On 2017/1/7 0:07, Clemens Gruber wrote: On Fri, Jan 06, 2017 at 10:54:35AM +0800, Shawn Lin wrote: On 2017/1/6 8:41, Clemens Gruber wrote: Hi, with the current mainline 4.10-rc2 kernel, I can no longer boot from the eMMC on my i.MX6Q board. Details: The eMMC is a Micron MTFC4GACAJCN-1M WT

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-08 Thread Shawn Lin
On 2017/1/7 0:07, Clemens Gruber wrote: On Fri, Jan 06, 2017 at 10:54:35AM +0800, Shawn Lin wrote: On 2017/1/6 8:41, Clemens Gruber wrote: Hi, with the current mainline 4.10-rc2 kernel, I can no longer boot from the eMMC on my i.MX6Q board. Details: The eMMC is a Micron MTFC4GACAJCN-1M WT

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-08 Thread Shawn Lin
On 2017/1/6 23:56, Clemens Gruber wrote: On Fri, Jan 06, 2017 at 10:33:49AM +0800, Shawn Lin wrote: On 2017/1/6 8:41, Clemens Gruber wrote: Hi, with the current mainline 4.10-rc2 kernel, I can no longer boot from the eMMC on my i.MX6Q board. Details: The eMMC is a Micron MTFC4GACAJCN-1M WT

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-08 Thread Shawn Lin
On 2017/1/6 23:56, Clemens Gruber wrote: On Fri, Jan 06, 2017 at 10:33:49AM +0800, Shawn Lin wrote: On 2017/1/6 8:41, Clemens Gruber wrote: Hi, with the current mainline 4.10-rc2 kernel, I can no longer boot from the eMMC on my i.MX6Q board. Details: The eMMC is a Micron MTFC4GACAJCN-1M WT

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-06 Thread Clemens Gruber
On Fri, Jan 06, 2017 at 10:54:35AM +0800, Shawn Lin wrote: > On 2017/1/6 8:41, Clemens Gruber wrote: > > Hi, > > > > with the current mainline 4.10-rc2 kernel, I can no longer boot from > > the eMMC on my i.MX6Q board. > > > > Details: > > The eMMC is a Micron MTFC4GACAJCN-1M WT but as the

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-06 Thread Clemens Gruber
On Fri, Jan 06, 2017 at 10:54:35AM +0800, Shawn Lin wrote: > On 2017/1/6 8:41, Clemens Gruber wrote: > > Hi, > > > > with the current mainline 4.10-rc2 kernel, I can no longer boot from > > the eMMC on my i.MX6Q board. > > > > Details: > > The eMMC is a Micron MTFC4GACAJCN-1M WT but as the

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-06 Thread Clemens Gruber
On Fri, Jan 06, 2017 at 10:33:49AM +0800, Shawn Lin wrote: > On 2017/1/6 8:41, Clemens Gruber wrote: > > Hi, > > > > with the current mainline 4.10-rc2 kernel, I can no longer boot from > > the eMMC on my i.MX6Q board. > > > > Details: > > The eMMC is a Micron MTFC4GACAJCN-1M WT but as the

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-06 Thread Clemens Gruber
On Fri, Jan 06, 2017 at 10:33:49AM +0800, Shawn Lin wrote: > On 2017/1/6 8:41, Clemens Gruber wrote: > > Hi, > > > > with the current mainline 4.10-rc2 kernel, I can no longer boot from > > the eMMC on my i.MX6Q board. > > > > Details: > > The eMMC is a Micron MTFC4GACAJCN-1M WT but as the

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-05 Thread Shawn Lin
On 2017/1/6 8:41, Clemens Gruber wrote: Hi, with the current mainline 4.10-rc2 kernel, I can no longer boot from the eMMC on my i.MX6Q board. Details: The eMMC is a Micron MTFC4GACAJCN-1M WT but as the i.MX6Q only supports eMMC 4.41 features and we did not implement voltage switching from 3.3V

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-05 Thread Shawn Lin
On 2017/1/6 8:41, Clemens Gruber wrote: Hi, with the current mainline 4.10-rc2 kernel, I can no longer boot from the eMMC on my i.MX6Q board. Details: The eMMC is a Micron MTFC4GACAJCN-1M WT but as the i.MX6Q only supports eMMC 4.41 features and we did not implement voltage switching from 3.3V

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-05 Thread Shawn Lin
On 2017/1/6 8:41, Clemens Gruber wrote: Hi, with the current mainline 4.10-rc2 kernel, I can no longer boot from the eMMC on my i.MX6Q board. Details: The eMMC is a Micron MTFC4GACAJCN-1M WT but as the i.MX6Q only supports eMMC 4.41 features and we did not implement voltage switching from 3.3V

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-05 Thread Shawn Lin
On 2017/1/6 8:41, Clemens Gruber wrote: Hi, with the current mainline 4.10-rc2 kernel, I can no longer boot from the eMMC on my i.MX6Q board. Details: The eMMC is a Micron MTFC4GACAJCN-1M WT but as the i.MX6Q only supports eMMC 4.41 features and we did not implement voltage switching from 3.3V

eMMC boot problem: switch to bus width 8 ddr failed

2017-01-05 Thread Clemens Gruber
Hi, with the current mainline 4.10-rc2 kernel, I can no longer boot from the eMMC on my i.MX6Q board. Details: The eMMC is a Micron MTFC4GACAJCN-1M WT but as the i.MX6Q only supports eMMC 4.41 features and we did not implement voltage switching from 3.3V to 1.8V or lower, I did add no-1-8-v;

eMMC boot problem: switch to bus width 8 ddr failed

2017-01-05 Thread Clemens Gruber
Hi, with the current mainline 4.10-rc2 kernel, I can no longer boot from the eMMC on my i.MX6Q board. Details: The eMMC is a Micron MTFC4GACAJCN-1M WT but as the i.MX6Q only supports eMMC 4.41 features and we did not implement voltage switching from 3.3V to 1.8V or lower, I did add no-1-8-v;