qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm: allwinner: fix endianness bugs in sdhost and sun8i-emac
@ 2023-04-24 16:50 Peter Maydell
  2023-04-24 16:50 ` [PATCH 1/2] hw/sd/allwinner-sdhost: Correctly byteswap descriptor fields Peter Maydell
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Peter Maydell @ 2023-04-24 16:50 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: Beniamino Galvani, Strahinja Jankovic, qemu-stable

This patchset fixes bugs in the sd controller and ethernet controller
devices used in the orangepi-pc board model. The bug is the same in
both cases: we read and write a descriptor struct from guest memory
without byte-swapping it, so the code only does the right thing on
a little-endian host.

These fixes (together with some of the others I've sent out earlier
today) are enough to get the BootLinuxConsole.test_arm_orangepi_sd
avocado test passing on an s390x host.

thanks
-- PMM

Peter Maydell (2):
  hw/sd/allwinner-sdhost: Correctly byteswap descriptor fields
  hw/net/allwinner-sun8i-emac: Correctly byteswap descriptor fields

 hw/net/allwinner-sun8i-emac.c | 22 +++++++++++++++-------
 hw/sd/allwinner-sdhost.c      | 31 ++++++++++++++++++++++++++-----
 2 files changed, 41 insertions(+), 12 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2023-05-02 10:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-24 16:50 [PATCH 0/2] arm: allwinner: fix endianness bugs in sdhost and sun8i-emac Peter Maydell
2023-04-24 16:50 ` [PATCH 1/2] hw/sd/allwinner-sdhost: Correctly byteswap descriptor fields Peter Maydell
2023-04-24 17:32   ` Thomas Huth
2023-04-24 17:42   ` Alex Bennée
2023-04-25 15:46   ` Philippe Mathieu-Daudé
2023-04-24 16:50 ` [PATCH 2/2] hw/net/allwinner-sun8i-emac: " Peter Maydell
2023-04-24 17:36   ` Thomas Huth
2023-04-24 17:44   ` Alex Bennée
2023-04-25 15:45   ` Philippe Mathieu-Daudé
2023-05-02 10:34 ` [PATCH 0/2] arm: allwinner: fix endianness bugs in sdhost and sun8i-emac Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).