diff options
| author | Florian Fuchs <fuchsfl@gmail.com> | 2026-10-22 18:32:41 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-10-23 21:34:09 +0200 |
| commit | 0d01f90b07e877ef31f9959e9b0bc6bcca9b99df (patch) | |
| tree | 4a81e9c48632cd731d2a5e47d3438f98fbffb366 /scripts/Makefile.thinlto | |
| parent | 9a8b6b459e3a0e677cec7c0cab18602b6f3bba45 (diff) | |
| download | linux-0d01f90b07e877ef31f9959e9b0bc6bcca9b99df.tar.gz linux-0d01f90b07e877ef31f9959e9b0bc6bcca9b99df.zip | |
ALSA: sh: aica: Fix spu_memset() stride
spu_memset() writes one 32-bit word per iteration, but advances the
destination offset by only one byte. spu_reset() calls it with
0x200000 / 4 words to clear the 2 MiB of sound RAM, so:
- three out of four writel() calls target an unaligned address. The
SH4 can't do that. Each one traps and is emulated by the unaligned
access fixup. This call to spu_memset() causes 393216 unaligned
accesses, visible in /proc/cpu/alignment.
- the clear covered only about 512 KiB of sound RAM, not 2 MiB.
Advance the offset by the size of the written word, to clear the full
sound RAM using aligned writes.
Fixes: 198de43d758c ("[ALSA] Add ALSA support for the SEGA Dreamcast PCM device")
Signed-off-by: Florian Fuchs <fuchsfl@gmail.com>
Acked-by: Adrian McMenamin <adrianmcmenamin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20261022163241.2504922-1-fuchsfl@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
