[PATCH v2] mmc: Remove alignment hole for cmdidx in struct mmc_cmd

Tom Rini trini at konsulko.com
Fri Jan 24 23:17:34 CET 2025


On Mon, Jan 20, 2025 at 12:35:26AM +0100, Jonas Karlman wrote:
> Hi,
> 
> On 2024-04-03 02:00, Jaehoon Chung wrote:
> > Hi,
> > 
> > On 1/28/24 01:29, Jonas Karlman wrote:
> >> The alignment hole caused by cmdidx in struct mmc_cmd cause strange
> >> issues together with the peephole2 optimization on Amlogic SoCs.
> >> Following was observed while working on SPL support for Amlogic SoCs.
> >>
> >> sd_get_capabilities() normally issue a CMD55 followed by a CMD51.
> >> However, on at least Amlogic S905 (Cortex-A53) and S905X3 (Cortex-A55),
> >> CMD55 was instead followed by CMD8 (and a few reties) in SPL.
> > 
> > I read your RFC "https://patchwork.ozlabs.org/patch/1841495/
> > 
> > First, I will retry to reproduce your case with other compiler. 
> > After that, I will inform again about this patch.
> 
> Gentle ping, this patch has been on list for almost a year now.
> 
> Have you had any time to reproduce this or can this be merged as-is?
> 
> For some reason only Amlogic seem to be affected by this issue.

Poking around in Linux, it looks like this is equivalent to 'struct
mmc_command' in include/linux/mmc/core.h and so this makes us
equivalent.

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250124/99e6deb6/attachment.sig>


More information about the U-Boot mailing list