Re: [PATCH 10/26] hw/sd: sdhci: Support version 4 ADMA 64-bit addressing
Philippe Mathieu-Daudé <[email protected]>
| Newsgroups | org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
On 23/7/26 17:18, Bin Meng wrote: > The Cadence Linux driver enables version 4 mode and 64-bit addressing in > Host Control 2 but retains the ADMA2 encoding in Host Control 1. QEMU > treats the transfer as 32-bit ADMA and uses 12-byte descriptors because > it only decodes Host Control 1. > > Resolve the DMA type from both control registers and use 16-byte version > 4 descriptors. Preserve the legacy 12-byte ADMA2 64-bit format when > version 4 mode is disabled. > > Signed-off-by: Bin Meng <[email protected]> > --- > > hw/sd/sdhci.c | 25 ++++++++++++++++++++++--- > 1 file changed, 22 insertions(+), 3 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <[email protected]>