Linux MultiMedia Card development
 help / color / mirror / Atom feed
* Unaligned access in drivers/mmc/host/sdhci-of-k1.c (arch:ariscv soc:spacemit k1)
@ 2025-12-05 21:00 Mohamed via Bugspray Bot
  2025-12-09  7:35 ` Adrian Hunter
  0 siblings, 1 reply; 3+ messages in thread
From: Mohamed via Bugspray Bot @ 2025-12-05 21:00 UTC (permalink / raw)
  To: linux-mmc, ulf.hansson

Mohamed writes via Kernel.org Bugzilla:

There is an unaligned access in spacemit_sdhci_set_uhs_signaling that calls spacemit_sdhci_setbits(host, SDHCI_CTRL_VDD_180, SDHCI_HOST_CONTROL2);

As SDHCI_HOST_CONTROL2	0x3E the helper function spacemit_sdhci_setbits uses readl and writel functions, 
ie.
/* All helper functions will update clr/set while preserve rest bits */
static inline void spacemit_sdhci_setbits(struct sdhci_host *host, u32 val, int reg)
{
	sdhci_writel(host, sdhci_readl(host, reg) | val, reg);
}

So you get an unaligned access exception/panic/oops with cause 5 on the read.

To reproduce this you need to enable the emmc in the dtb as none of the boards have this enabled. It seems a bit strange that the commit message says that the emmc is working, as it is disabled in the emmc, yet there is working version based on 6.6 which does work. Obviously, it must be my mistake as the commit message cannot possibly lie and say that a driver is complete and working.

View: https://bugzilla.kernel.org/show_bug.cgi?id=220841#c0
You can reply to this message to join the discussion.
-- 
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)


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

end of thread, other threads:[~2025-12-11  1:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-05 21:00 Unaligned access in drivers/mmc/host/sdhci-of-k1.c (arch:ariscv soc:spacemit k1) Mohamed via Bugspray Bot
2025-12-09  7:35 ` Adrian Hunter
2025-12-11  1:10   ` Yixun Lan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox