* mt1873-evb: MMC failing with linux-next
@ 2016-02-09 1:18 Kevin Hilman
[not found] ` <7hegcmadfk.fsf-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Kevin Hilman @ 2016-02-09 1:18 UTC (permalink / raw)
To: linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Matthias Brugger
Cc: Sascha Hauer, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Hello,
I tried getting MMC working with linux-next (next-20160208) on
mt8173-evb by enabling a few options[1] on top of the default defconfig,
and this results in a kernel that hangs as soon as it starts userspace.
The MMC driver seems to start, though has some regulator issues:
[ 0.526380] sdhci: Secure Digital Host Controller Interface driver
[ 0.527176] sdhci: Copyright(c) Pierre Ossman
[ 0.528835] vio18: unsupportable voltage range: 3300000-1980000uV
[ 0.529610] mtk-msdc 11230000.mmc: Regulator set error -22: 3300000 - 3300000
[ 0.563731] mtk-msdc 11240000.mmc: Got CD GPIO
The driver appears to be attempting to set 3.3V but using a 1.8V
regulator (vio18), which is failing.
Then, the kernel hangs after freeing unused memory:
[ 0.616386] hctosys: unable to open rtc device (rtc0)
[ 0.624118] usb_vbus: disabling
[ 0.624547] vusb: disabling
[ 0.624929] vgp6: disabling
[ 0.625635] ALSA device list:
[ 0.626009] No soundcards found.
[ 0.626963] Freeing unused kernel memory: 724K (ffffffc000977000 - ffffffc000a2c000)
And nothing further here.
It boots fine when disabling the MMC driver (CONFIG_MMC_MTK=n).
Any ideas?
Kevin
[1]
CONFIG_MMC_MTK=y
CONFIG_MFD_MT6397=y
CONFIG_REGULATOR_MT6397=y
CONFIG_MTK_PMIC_WRAP=y
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mt1873-evb: MMC failing with linux-next
[not found] ` <7hegcmadfk.fsf-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
@ 2016-02-12 15:24 ` Matthias Brugger
2016-02-12 15:28 ` Matthias Brugger
[not found] ` <56BDF937.60208-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-02-15 3:52 ` Eddie Huang
1 sibling, 2 replies; 6+ messages in thread
From: Matthias Brugger @ 2016-02-12 15:24 UTC (permalink / raw)
To: Kevin Hilman, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Cc: Sascha Hauer, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
[-- Attachment #1: Type: text/plain, Size: 1700 bytes --]
Hi Kevin,
On 09/02/16 02:18, Kevin Hilman wrote:
> Hello,
>
> I tried getting MMC working with linux-next (next-20160208) on
> mt8173-evb by enabling a few options[1] on top of the default defconfig,
> and this results in a kernel that hangs as soon as it starts userspace.
>
> The MMC driver seems to start, though has some regulator issues:
>
> [ 0.526380] sdhci: Secure Digital Host Controller Interface driver
> [ 0.527176] sdhci: Copyright(c) Pierre Ossman
> [ 0.528835] vio18: unsupportable voltage range: 3300000-1980000uV
> [ 0.529610] mtk-msdc 11230000.mmc: Regulator set error -22: 3300000 - 3300000
> [ 0.563731] mtk-msdc 11240000.mmc: Got CD GPIO
>
> The driver appears to be attempting to set 3.3V but using a 1.8V
> regulator (vio18), which is failing.
>
> Then, the kernel hangs after freeing unused memory:
>
> [ 0.616386] hctosys: unable to open rtc device (rtc0)
> [ 0.624118] usb_vbus: disabling
> [ 0.624547] vusb: disabling
> [ 0.624929] vgp6: disabling
> [ 0.625635] ALSA device list:
> [ 0.626009] No soundcards found.
> [ 0.626963] Freeing unused kernel memory: 724K (ffffffc000977000 - ffffffc000a2c000)
>
> And nothing further here.
>
I can see the warning from the mmc regulator access, but after that my
board boots just fine.
I'm using linux-next as of today (20160212).
I attached my config, it should be defconfig plus the config options you
mentioned (and an initramfs).
Is this the configuration you have?
Regards,
Matthias
> It boots fine when disabling the MMC driver (CONFIG_MMC_MTK=n).
>
> Any ideas?
>
> Kevin
>
> [1]
> CONFIG_MMC_MTK=y
> CONFIG_MFD_MT6397=y
> CONFIG_REGULATOR_MT6397=y
> CONFIG_MTK_PMIC_WRAP=y
>
[-- Attachment #2: .config --]
[-- Type: application/x-config, Size: 92807 bytes --]
[-- Attachment #3: Type: text/plain, Size: 200 bytes --]
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mt1873-evb: MMC failing with linux-next
2016-02-12 15:24 ` Matthias Brugger
@ 2016-02-12 15:28 ` Matthias Brugger
[not found] ` <56BDF937.60208-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
1 sibling, 0 replies; 6+ messages in thread
From: Matthias Brugger @ 2016-02-12 15:28 UTC (permalink / raw)
To: Kevin Hilman, linux-mediatek; +Cc: Sascha Hauer, linux-arm-kernel
Hi,
I just resend as the attachment was to too big for linux-arm-kernel.
On 12/02/16 16:24, Matthias Brugger wrote:
> Hi Kevin,
>
> On 09/02/16 02:18, Kevin Hilman wrote:
>> Hello,
>>
>> I tried getting MMC working with linux-next (next-20160208) on
>> mt8173-evb by enabling a few options[1] on top of the default defconfig,
>> and this results in a kernel that hangs as soon as it starts userspace.
>>
>> The MMC driver seems to start, though has some regulator issues:
>>
>> [ 0.526380] sdhci: Secure Digital Host Controller Interface driver
>> [ 0.527176] sdhci: Copyright(c) Pierre Ossman
>> [ 0.528835] vio18: unsupportable voltage range: 3300000-1980000uV
>> [ 0.529610] mtk-msdc 11230000.mmc: Regulator set error -22:
>> 3300000 - 3300000
>> [ 0.563731] mtk-msdc 11240000.mmc: Got CD GPIO
>>
>> The driver appears to be attempting to set 3.3V but using a 1.8V
>> regulator (vio18), which is failing.
>>
>> Then, the kernel hangs after freeing unused memory:
>>
>> [ 0.616386] hctosys: unable to open rtc device (rtc0)
>> [ 0.624118] usb_vbus: disabling
>> [ 0.624547] vusb: disabling
>> [ 0.624929] vgp6: disabling
>> [ 0.625635] ALSA device list:
>> [ 0.626009] No soundcards found.
>> [ 0.626963] Freeing unused kernel memory: 724K (ffffffc000977000 -
>> ffffffc000a2c000)
>>
>> And nothing further here.
>>
>
> I can see the warning from the mmc regulator access, but after that my
> board boots just fine.
> I'm using linux-next as of today (20160212).
> I attached my config, it should be defconfig plus the config options you
> mentioned (and an initramfs).
>
Instead of attaching my config, you can find it here:
http://pastebin.com/5uhXtSHj
> Is this the configuration you have?
>
> Regards,
> Matthias
>
>> It boots fine when disabling the MMC driver (CONFIG_MMC_MTK=n).
>>
>> Any ideas?
>>
>> Kevin
>>
>> [1]
>> CONFIG_MMC_MTK=y
>> CONFIG_MFD_MT6397=y
>> CONFIG_REGULATOR_MT6397=y
>> CONFIG_MTK_PMIC_WRAP=y
>>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mt1873-evb: MMC failing with linux-next
[not found] ` <56BDF937.60208-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2016-02-12 16:01 ` Matthias Brugger
[not found] ` <56BE01D6.40908-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Matthias Brugger @ 2016-02-12 16:01 UTC (permalink / raw)
To: Kevin Hilman, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Cc: Sascha Hauer, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On 12/02/16 16:24, Matthias Brugger wrote:
> Hi Kevin,
>
> On 09/02/16 02:18, Kevin Hilman wrote:
>> Hello,
>>
>> I tried getting MMC working with linux-next (next-20160208) on
>> mt8173-evb by enabling a few options[1] on top of the default defconfig,
>> and this results in a kernel that hangs as soon as it starts userspace.
>>
>> The MMC driver seems to start, though has some regulator issues:
>>
>> [ 0.526380] sdhci: Secure Digital Host Controller Interface driver
>> [ 0.527176] sdhci: Copyright(c) Pierre Ossman
>> [ 0.528835] vio18: unsupportable voltage range: 3300000-1980000uV
>> [ 0.529610] mtk-msdc 11230000.mmc: Regulator set error -22:
>> 3300000 - 3300000
>> [ 0.563731] mtk-msdc 11240000.mmc: Got CD GPIO
>>
>> The driver appears to be attempting to set 3.3V but using a 1.8V
>> regulator (vio18), which is failing.
>>
>> Then, the kernel hangs after freeing unused memory:
>>
>> [ 0.616386] hctosys: unable to open rtc device (rtc0)
>> [ 0.624118] usb_vbus: disabling
>> [ 0.624547] vusb: disabling
>> [ 0.624929] vgp6: disabling
>> [ 0.625635] ALSA device list:
>> [ 0.626009] No soundcards found.
>> [ 0.626963] Freeing unused kernel memory: 724K (ffffffc000977000 -
>> ffffffc000a2c000)
>>
>> And nothing further here.
>>
>
> I can see the warning from the mmc regulator access, but after that my
> board boots just fine.
> I'm using linux-next as of today (20160212).
> I attached my config, it should be defconfig plus the config options you
> mentioned (and an initramfs).
>
> Is this the configuration you have?
I spotted an error in my scripts to build the kernel. After fixing this
I can reproduce your error.
Regards,
Matthias
>
> Regards,
> Matthias
>
>> It boots fine when disabling the MMC driver (CONFIG_MMC_MTK=n).
>>
>> Any ideas?
>>
>> Kevin
>>
>> [1]
>> CONFIG_MMC_MTK=y
>> CONFIG_MFD_MT6397=y
>> CONFIG_REGULATOR_MT6397=y
>> CONFIG_MTK_PMIC_WRAP=y
>>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mt1873-evb: MMC failing with linux-next
[not found] ` <56BE01D6.40908-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2016-02-12 21:42 ` Kevin Hilman
0 siblings, 0 replies; 6+ messages in thread
From: Kevin Hilman @ 2016-02-12 21:42 UTC (permalink / raw)
To: Matthias Brugger
Cc: Sascha Hauer, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Matthias Brugger <matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> On 12/02/16 16:24, Matthias Brugger wrote:
>> Hi Kevin,
>>
>> On 09/02/16 02:18, Kevin Hilman wrote:
>>> Hello,
>>>
>>> I tried getting MMC working with linux-next (next-20160208) on
>>> mt8173-evb by enabling a few options[1] on top of the default defconfig,
>>> and this results in a kernel that hangs as soon as it starts userspace.
>>>
>>> The MMC driver seems to start, though has some regulator issues:
>>>
>>> [ 0.526380] sdhci: Secure Digital Host Controller Interface driver
>>> [ 0.527176] sdhci: Copyright(c) Pierre Ossman
>>> [ 0.528835] vio18: unsupportable voltage range: 3300000-1980000uV
>>> [ 0.529610] mtk-msdc 11230000.mmc: Regulator set error -22:
>>> 3300000 - 3300000
>>> [ 0.563731] mtk-msdc 11240000.mmc: Got CD GPIO
>>>
>>> The driver appears to be attempting to set 3.3V but using a 1.8V
>>> regulator (vio18), which is failing.
>>>
>>> Then, the kernel hangs after freeing unused memory:
>>>
>>> [ 0.616386] hctosys: unable to open rtc device (rtc0)
>>> [ 0.624118] usb_vbus: disabling
>>> [ 0.624547] vusb: disabling
>>> [ 0.624929] vgp6: disabling
>>> [ 0.625635] ALSA device list:
>>> [ 0.626009] No soundcards found.
>>> [ 0.626963] Freeing unused kernel memory: 724K (ffffffc000977000 -
>>> ffffffc000a2c000)
>>>
>>> And nothing further here.
>>>
>>
>> I can see the warning from the mmc regulator access, but after that my
>> board boots just fine.
>> I'm using linux-next as of today (20160212).
>> I attached my config, it should be defconfig plus the config options you
>> mentioned (and an initramfs).
>>
>> Is this the configuration you have?
>
> I spotted an error in my scripts to build the kernel. After fixing
> this I can reproduce your error.
OK, let me know if you need anything else to help debug, or want me to
test anything further. Otherwise I'll leave it in your capable hands.
Kevin
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mt1873-evb: MMC failing with linux-next
[not found] ` <7hegcmadfk.fsf-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-02-12 15:24 ` Matthias Brugger
@ 2016-02-15 3:52 ` Eddie Huang
1 sibling, 0 replies; 6+ messages in thread
From: Eddie Huang @ 2016-02-15 3:52 UTC (permalink / raw)
To: Kevin Hilman
Cc: Matthias Brugger, Sascha Hauer,
linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Hi Kevin,
On Mon, 2016-02-08 at 17:18 -0800, Kevin Hilman wrote:
> Hello,
>
> I tried getting MMC working with linux-next (next-20160208) on
> mt8173-evb by enabling a few options[1] on top of the default defconfig,
> and this results in a kernel that hangs as soon as it starts userspace.
>
> The MMC driver seems to start, though has some regulator issues:
>
> [ 0.526380] sdhci: Secure Digital Host Controller Interface driver
> [ 0.527176] sdhci: Copyright(c) Pierre Ossman
> [ 0.528835] vio18: unsupportable voltage range: 3300000-1980000uV
> [ 0.529610] mtk-msdc 11230000.mmc: Regulator set error -22: 3300000 - 3300000
> [ 0.563731] mtk-msdc 11240000.mmc: Got CD GPIO
>
> The driver appears to be attempting to set 3.3V but using a 1.8V
> regulator (vio18), which is failing.
This message shows set 3.3V to vio18 fail. Then MMC core will set 1.8V
to vio18 again, this time should be ok.
>
> Then, the kernel hangs after freeing unused memory:
>
> [ 0.616386] hctosys: unable to open rtc device (rtc0)
> [ 0.624118] usb_vbus: disabling
> [ 0.624547] vusb: disabling
> [ 0.624929] vgp6: disabling
> [ 0.625635] ALSA device list:
> [ 0.626009] No soundcards found.
> [ 0.626963] Freeing unused kernel memory: 724K (ffffffc000977000 - ffffffc000a2c000)
>
> And nothing further here.
>
> It boots fine when disabling the MMC driver (CONFIG_MMC_MTK=n).
>
> Any ideas?
MT8173-evb use MT8173 engineer sample, which has one bug that if disable
USB power domain, vcore (include mmc) power will be disabled too. MT8173
mass production chip already fix this bug. Sascha send one patch to fix
this issue [1] before. But I think it is not a good solution because if
mmc runtime suspend, vcore power will be disabled too. Please apply
following code and try again, I will send this fixup to public later.
By the way, you should set MMC_BLOCK_MINORS=32 because partition number
on eMMC is larger than default value 8.
diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
b/arch/arm64/boot/dts/mediatek/mt8173-evb.d
index e427f04..7453a47 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
@@ -214,6 +214,9 @@
};
&pwrap {
+ /* Only MT8173 E1 needs USB power domain */
+ power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
+
pmic: mt6397 {
compatible = "mediatek,mt6397";
interrupt-parent = <&pio>;
[1]:http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/358065.html
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-02-15 3:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-09 1:18 mt1873-evb: MMC failing with linux-next Kevin Hilman
[not found] ` <7hegcmadfk.fsf-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-02-12 15:24 ` Matthias Brugger
2016-02-12 15:28 ` Matthias Brugger
[not found] ` <56BDF937.60208-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-02-12 16:01 ` Matthias Brugger
[not found] ` <56BE01D6.40908-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-02-12 21:42 ` Kevin Hilman
2016-02-15 3:52 ` Eddie Huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox