Re: sdhci-omap: issues with PM features since 5.16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Le 27/01/2024 à 05:48, Tony Lindgren a écrit :
> Hi,
> 
> * Romain Naour <romain.naour@xxxxxxxx> [240126 20:53]:
>> Hello,
>>
>> I'm upgrading the kernel from 5.10.168 to 6.1.69 (both from TI tree) on a custom
>> board based on a AM574x SoC and I noticed a regression on the sdhci-omap driver.
>>
>> The emmc was working on the 5.10 kernel using mmc-hs200 powered at 1,8v (mmc2).
> 
> Is this limited to emmc or does it also happen with the micro-sd or wlan possibly?

I can't test with a wlan device but I noticed the same issue on micro-sd (the
mmc0 interface in my first post is a micro-sd)

> 
> If the issue is emmc related, do you have mmc-pwrseq-emmc configured in the dts?
> 
>> I'm able to reproduce on the IDK574x evaluation board (where the emmc is powered
>> at 3v3) with vanilla kernels.
> 
> OK, looks like only am5729-beagleboneai.dts has configured mmc-pwrseq-emmc.
> 
>> I had to revert all commits related to "PM runtime functions" [1] and "card
>> power off and enable aggressive PM" [2] from kernel 5.16 to use the emmc again
>> on both boards.
> 
> OK, this sounds like power sequence related when the emmc gets idled.

It seems mmc0 ios infos are lost at some point, just after the kernel boot they
are correct:

cat /sys/kernel/debug/mmc0/ios
clock:		50000000 Hz
vdd:		21 (3.3 ~ 3.4 V)
bus mode:	2 (push-pull)
chip select:	0 (don't care)
power mode:	2 (on)
bus width:	2 (4 bits)
timing spec:	2 (sd high-speed)
signal voltage:	0 (3.30 V)
driver type:	0 (driver type B)

And without notice, ios became wrong:

cat /sys/kernel/debug/mmc0/ios
clock:		0 Hz
vdd:		0 (invalid)
bus mode:	2 (push-pull)
chip select:	0 (don't care)
power mode:	0 (off)
bus width:	0 (1 bits)
timing spec:	0 (legacy)
signal voltage:	0 (3.30 V)
driver type:	0 (driver type B)

# cat /sys/bus/mmc/devices/mmc0:1234/type
SD

Best regards,
Romain


> 
> Regards,
> 
> Tony
> 
>> [1]
>> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f433e8aac6b94218394c6e7b80bb89e4e79c9549
>> [2]
>> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3edf588e7fe00e90d1dc7fb9e599861b2c2cf442
> 





[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux