From: Hung-Chun Tseng <alan.tseng.cs@gmail.com>
To: Yixun Lan <dlan@kernel.org>
Cc: "Kathpalia, Tanmay" <tanmay.kathpalia@altera.com>,
Tanmay Kathpalia <tanmay.kathpalia@gmail.com>,
Dave Klotz <DaveWK225@protonmail.com>,
Zixian Zeng <sycamoremoon376@gmail.com>,
Eric Chung <eric.chung@riscstar.com>, Peng Fan <peng.fan@nxp.com>,
Jaehoon Chung <jh80.chung@samsung.com>,
Tom Rini <trini@konsulko.com>, Anand Moon <linux.amoon@gmail.com>,
u-boot@lists.u-boot-project.org, u-boot-spacemit@groups.io
Subject: Re: [PATCH v2 2/3] mmc: k1: let the SPL read SD cards more than one block at a time
Date: Sat, 17 Oct 2026 00:40:06 +0800 [thread overview]
Message-ID: <20261016164006.393531-1-alan.tseng.cs@gmail.com> (raw)
In-Reply-To: <20261014212835-GKM26088@kernel.org>
Hi Yixun, Tanmay,
On Wed, Oct 14, 2026 at 09:28:35PM +0000, Yixun Lan wrote:
> I'd suggest we try to see if able to go with setting DT property,
> assigned-clock-parents or assigned-clock-rates
> the advantage is it will also work on Linux kernel side
That makes sense, so please consider my RFC "mmc: k1: do not require
max-frequency in the device tree" withdrawn in favour of the
assigned-clock-* approach.
For what it's worth, I finally got a working UART on a Milk-V Jupiter
and ran the mainline SPL from an SD card. Two data points that may help
Tanmay with the respin:
- 2/3: Jupiter shows the same failure as the BPI-F3. With
set_vdd_mmc() putting aldo1 (the SD vqmmc) at 1.8 V, the card runs
at SD High Speed, 50 MHz, 4-bit. Single-block reads return the right
data (protective MBR, "EFI PART" header), but a 32-block read of the
GPT entries returns 0 blocks, so part_get_info() fails and SPL gives
up. With aldo1 set to 3.3 V instead (a local hack, not a proposal),
multi-block reads work, the SPL loads u-boot.itb from the "uboot"
partition and U-Boot proper reaches the prompt; "mmc read" of 2048
blocks also succeeds there. So dropping set_vdd_mmc() in favour of
SPL_MMC_IO_VOLTAGE looks right from Jupiter's side too.
- A side note on debugging this: the SPL printed "Error: -38", which
is misleading. The real error from part_get_info() was -ENOENT; the
-ENOSYS comes from the SYS_MMCSD_FS_BOOT fallback, which runs after
the raw read fails and has no SPL filesystem enabled to try.
- The io clock that BootROM leaves for sdhci0 on Jupiter is
204.8 MHz, matching the SD rate you mention.
Tanmay, I'm happy to test the next version on the Jupiter and reply
with a Tested-by.
Thanks,
Hung-Chun
next prev parent reply other threads:[~2026-10-16 16:40 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 21:29 [PATCH 0/3] mmc: k1: fixes for the SpacemiT K1 SDHCI driver Dave Klotz
2026-10-02 21:29 ` [PATCH 1/3] mmc: k1: handle a missing max-frequency and clk_set_rate()'s return value Dave Klotz
2026-10-04 9:14 ` Kathpalia, Tanmay
2026-10-04 9:30 ` Kathpalia, Tanmay
2026-10-05 17:46 ` Dave Klotz
2026-10-02 21:29 ` [PATCH 2/3] mmc: k1: let the SPL read SD cards more than one block at a time Dave Klotz
2026-10-04 9:28 ` Kathpalia, Tanmay
2026-10-02 21:29 ` [PATCH 3/3] mmc: k1: do not release the shared AXI clock and reset on probe failure Dave Klotz
2026-10-04 9:28 ` Kathpalia, Tanmay
2026-10-02 22:06 ` [PATCH 0/3] mmc: k1: fixes for the SpacemiT K1 SDHCI driver Dave Klotz
2026-10-05 17:50 ` [PATCH v2 " Dave Klotz
2026-10-05 17:55 ` [PATCH v2 1/3] mmc: k1: handle a missing max-frequency and clk_set_rate()'s return value Dave Klotz
2026-10-06 5:40 ` Kathpalia, Tanmay
2026-10-10 8:45 ` Yixun Lan
2026-10-05 18:01 ` [PATCH v2 2/3] mmc: k1: let the SPL read SD cards more than one block at a time Dave Klotz
2026-10-10 6:17 ` Zixian Zeng
2026-10-10 19:02 ` Kathpalia, Tanmay
2026-10-10 19:16 ` Kathpalia, Tanmay
2026-10-11 3:38 ` Zixian Zeng
2026-10-11 14:31 ` Kathpalia, Tanmay
2026-10-11 15:33 ` Anand Moon
2026-10-11 19:41 ` Kathpalia, Tanmay
2026-10-12 13:15 ` Zixian Zeng
2026-10-12 14:00 ` Kathpalia, Tanmay
2026-10-12 14:30 ` Yixun Lan
2026-10-12 14:50 ` Kathpalia, Tanmay
2026-10-12 15:22 ` Yixun Lan
2026-10-14 19:59 ` Dave Klotz
2026-10-14 20:34 ` Kathpalia, Tanmay
2026-10-14 21:31 ` Yixun Lan
2026-10-18 21:33 ` Kathpalia, Tanmay
2026-10-18 23:30 ` Hung-Chun Tseng
2026-10-18 23:33 ` Hung-Chun Tseng
2026-10-14 21:28 ` Yixun Lan
2026-10-16 16:40 ` Hung-Chun Tseng [this message]
2026-10-12 16:07 ` Anand Moon
2026-10-13 0:15 ` Yixun Lan
2026-10-13 3:44 ` Anand Moon
2026-10-05 18:11 ` [PATCH v2 3/3] mmc: k1: do not release the shared AXI clock and reset on probe failure Dave Klotz
2026-10-10 7:14 ` Yixun Lan
2026-10-10 19:27 ` Kathpalia, Tanmay
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=20261016164006.393531-1-alan.tseng.cs@gmail.com \
--to=alan.tseng.cs@gmail.com \
--cc=DaveWK225@protonmail.com \
--cc=dlan@kernel.org \
--cc=eric.chung@riscstar.com \
--cc=jh80.chung@samsung.com \
--cc=linux.amoon@gmail.com \
--cc=peng.fan@nxp.com \
--cc=sycamoremoon376@gmail.com \
--cc=tanmay.kathpalia@altera.com \
--cc=tanmay.kathpalia@gmail.com \
--cc=trini@konsulko.com \
--cc=u-boot-spacemit@groups.io \
--cc=u-boot@lists.u-boot-project.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox