linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* stm32mp157c eMMC DDR50 mode
@ 2022-12-02  7:27 Sean Nyekjaer
  2022-12-02 16:37 ` Yann Gautier
  0 siblings, 1 reply; 2+ messages in thread
From: Sean Nyekjaer @ 2022-12-02  7:27 UTC (permalink / raw)
  To: Alexandre Torgue, Yann Gautier, Christophe Kerello,
	Ludovic Barre, linux-mmc, linux-stm32, linux-arm-kernel

Hi,

We are testing using the Octavo RED board with OSD32MP157c SoC 
(stm32mp157c).

We are using vanilla u-boot 2022.10(in basic mode without TF-A) and 
Linux kernel version 6.0.x.
I have ported the devicetree's from Octavo combined with upstream 
stm32mp1 boards.
But we are facing issues with running the eMMC in DDR50 mode, works fine 
in normal 50Mhz mode (without the mmc-ddr-3_3v in dts).

It works fine though, with the ST u-boot and ST Linux kernel.

One further note is it seems to work fine, when mounting a squashfs (aka 
readonly) in DDR50.

But ext4 fails with:
root@osd32mp1-red:~# mount /dev/mmcblk0p7 /media/
I/O error, dev mmcblk0, sector 1060144 op 0x1:(WRITE) flags 0x800 
phys_seg 1 prio class 2
Buffer I/O error on dev mmcblk0p7, logical block 422, lost async page write
I/O error, dev mmcblk0, sector 1060016 op 0x1:(WRITE) flags 0x800 
phys_seg 1 prio class 2
Buffer I/O error on dev mmcblk0p7, logical block 406, lost async page write
I/O error, dev mmcblk0, sector 1056768 op 0x1:(WRITE) flags 0x800 
phys_seg 2 prio class 2
Buffer I/O error on dev mmcblk0p7, logical block 0, lost async page write
Buffer I/O error on dev mmcblk0p7, logical block 1, lost async page write

/Sean

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: stm32mp157c eMMC DDR50 mode
  2022-12-02  7:27 stm32mp157c eMMC DDR50 mode Sean Nyekjaer
@ 2022-12-02 16:37 ` Yann Gautier
  0 siblings, 0 replies; 2+ messages in thread
From: Yann Gautier @ 2022-12-02 16:37 UTC (permalink / raw)
  To: Sean Nyekjaer, Alexandre Torgue, Christophe Kerello,
	Ludovic Barre, linux-mmc, linux-stm32, linux-arm-kernel,
	Neeraj Dantu

On 12/2/22 08:27, Sean Nyekjaer wrote:
> Hi,
> 
> We are testing using the Octavo RED board with OSD32MP157c SoC 
> (stm32mp157c).
> 
> We are using vanilla u-boot 2022.10(in basic mode without TF-A) and 
> Linux kernel version 6.0.x.
> I have ported the devicetree's from Octavo combined with upstream 
> stm32mp1 boards.
> But we are facing issues with running the eMMC in DDR50 mode, works fine 
> in normal 50Mhz mode (without the mmc-ddr-3_3v in dts).
> 
> It works fine though, with the ST u-boot and ST Linux kernel.
> 
> One further note is it seems to work fine, when mounting a squashfs (aka 
> readonly) in DDR50.
> 
> But ext4 fails with:
> root@osd32mp1-red:~# mount /dev/mmcblk0p7 /media/
> I/O error, dev mmcblk0, sector 1060144 op 0x1:(WRITE) flags 0x800 
> phys_seg 1 prio class 2
> Buffer I/O error on dev mmcblk0p7, logical block 422, lost async page write
> I/O error, dev mmcblk0, sector 1060016 op 0x1:(WRITE) flags 0x800 
> phys_seg 1 prio class 2
> Buffer I/O error on dev mmcblk0p7, logical block 406, lost async page write
> I/O error, dev mmcblk0, sector 1056768 op 0x1:(WRITE) flags 0x800 
> phys_seg 2 prio class 2
> Buffer I/O error on dev mmcblk0p7, logical block 0, lost async page write
> Buffer I/O error on dev mmcblk0p7, logical block 1, lost async page write
> 
> /Sean

Hi Sean,

I've seen from the Octavo website, that the DT was available here:
https://github.com/octavosystems/OSD32MP1-RED-Device-tree

I've added Neeraj Dantu who made this DT, maybe he has more info.
 From github, it seems the DT was made for kernel 5.10.
And it has the mmc-ddr-3_3v property.
Was DDR52 mode properly working on the eMMC with this kernel version?

If yes, then could you bisect the issue and try to find the patch that 
caused the regression?

Maybe you could also enable dynamic traces on mmc.
That could help tracking the issue.


Best regards,
Yann



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-02 16:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-02  7:27 stm32mp157c eMMC DDR50 mode Sean Nyekjaer
2022-12-02 16:37 ` Yann Gautier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).