qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] aspeed/{xdma, rtc, sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN
@ 2025-11-25 14:26 Cédric Le Goater via
  2025-11-25 15:38 ` [PATCH] aspeed/{xdma,rtc,sdhci}: " Philippe Mathieu-Daudé
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Cédric Le Goater via @ 2025-11-25 14:26 UTC (permalink / raw)
  To: qemu-devel, qemu-arm
  Cc: Peter Maydell, Steven Lee, Troy Lee, Jamin Lin, Andrew Jeffery,
	Joel Stanley, Philippe Mathieu-Daudé, Cédric Le Goater

When the XDMA, RTC and SDHCI device models of the Aspeed SoCs were
first introduced, their MMIO regions inherited of a DEVICE_NATIVE_ENDIAN
endianness. It should be DEVICE_LITTLE_ENDIAN. Fix that.

Signed-off-by: Cédric Le Goater <clg@redhat.com>
---
 hw/misc/aspeed_xdma.c | 2 +-
 hw/rtc/aspeed_rtc.c   | 2 +-
 hw/sd/aspeed_sdhci.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hw/misc/aspeed_xdma.c b/hw/misc/aspeed_xdma.c
index 31662ea0f5cc..d9afb0cae1f7 100644
--- a/hw/misc/aspeed_xdma.c
+++ b/hw/misc/aspeed_xdma.c
@@ -113,7 +113,7 @@ static void aspeed_xdma_write(void *opaque, hwaddr addr, uint64_t val,
 static const MemoryRegionOps aspeed_xdma_ops = {
     .read = aspeed_xdma_read,
     .write = aspeed_xdma_write,
-    .endianness = DEVICE_NATIVE_ENDIAN,
+    .endianness = DEVICE_LITTLE_ENDIAN,
     .valid.min_access_size = 1,
     .valid.max_access_size = 4,
 };
diff --git a/hw/rtc/aspeed_rtc.c b/hw/rtc/aspeed_rtc.c
index c4feea23a0b3..6793e253f472 100644
--- a/hw/rtc/aspeed_rtc.c
+++ b/hw/rtc/aspeed_rtc.c
@@ -131,7 +131,7 @@ static void aspeed_rtc_reset(DeviceState *d)
 static const MemoryRegionOps aspeed_rtc_ops = {
     .read = aspeed_rtc_read,
     .write = aspeed_rtc_write,
-    .endianness = DEVICE_NATIVE_ENDIAN,
+    .endianness = DEVICE_LITTLE_ENDIAN,
 };
 
 static const VMStateDescription vmstate_aspeed_rtc = {
diff --git a/hw/sd/aspeed_sdhci.c b/hw/sd/aspeed_sdhci.c
index 7217e20c2a98..339a8d12df26 100644
--- a/hw/sd/aspeed_sdhci.c
+++ b/hw/sd/aspeed_sdhci.c
@@ -124,7 +124,7 @@ static void aspeed_sdhci_write(void *opaque, hwaddr addr, uint64_t val,
 static const MemoryRegionOps aspeed_sdhci_ops = {
     .read = aspeed_sdhci_read,
     .write = aspeed_sdhci_write,
-    .endianness = DEVICE_NATIVE_ENDIAN,
+    .endianness = DEVICE_LITTLE_ENDIAN,
     .valid.min_access_size = 1,
     .valid.max_access_size = 4,
 };
-- 
2.51.1



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

* Re: [PATCH] aspeed/{xdma,rtc,sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN
  2025-11-25 14:26 [PATCH] aspeed/{xdma, rtc, sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN Cédric Le Goater via
@ 2025-11-25 15:38 ` Philippe Mathieu-Daudé
  2025-11-25 17:35   ` Cédric Le Goater
  2025-11-25 21:51 ` Philippe Mathieu-Daudé
  2025-11-26  6:48 ` [PATCH] aspeed/{xdma, rtc, sdhci}: " Michael Tokarev
  2 siblings, 1 reply; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-11-25 15:38 UTC (permalink / raw)
  To: Cédric Le Goater, qemu-devel, qemu-arm
  Cc: Peter Maydell, Steven Lee, Troy Lee, Jamin Lin, Andrew Jeffery,
	Joel Stanley

On 25/11/25 15:26, Cédric Le Goater wrote:
> When the XDMA, RTC and SDHCI device models of the Aspeed SoCs were
> first introduced, their MMIO regions inherited of a DEVICE_NATIVE_ENDIAN
> endianness. It should be DEVICE_LITTLE_ENDIAN. Fix that.
> 
> Signed-off-by: Cédric Le Goater <clg@redhat.com>
> ---
>   hw/misc/aspeed_xdma.c | 2 +-
>   hw/rtc/aspeed_rtc.c   | 2 +-
>   hw/sd/aspeed_sdhci.c  | 2 +-
>   3 files changed, 3 insertions(+), 3 deletions(-)

\o/

Thanks for the help :)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>



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

* Re: [PATCH] aspeed/{xdma,rtc,sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN
  2025-11-25 15:38 ` [PATCH] aspeed/{xdma,rtc,sdhci}: " Philippe Mathieu-Daudé
@ 2025-11-25 17:35   ` Cédric Le Goater
  0 siblings, 0 replies; 6+ messages in thread
From: Cédric Le Goater @ 2025-11-25 17:35 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-arm
  Cc: Peter Maydell, Steven Lee, Troy Lee, Jamin Lin, Andrew Jeffery,
	Joel Stanley

On 11/25/25 16:38, Philippe Mathieu-Daudé wrote:
> On 25/11/25 15:26, Cédric Le Goater wrote:
>> When the XDMA, RTC and SDHCI device models of the Aspeed SoCs were
>> first introduced, their MMIO regions inherited of a DEVICE_NATIVE_ENDIAN
>> endianness. It should be DEVICE_LITTLE_ENDIAN. Fix that.
>>
>> Signed-off-by: Cédric Le Goater <clg@redhat.com>
>> ---
>>   hw/misc/aspeed_xdma.c | 2 +-
>>   hw/rtc/aspeed_rtc.c   | 2 +-
>>   hw/sd/aspeed_sdhci.c  | 2 +-
>>   3 files changed, 3 insertions(+), 3 deletions(-)
> 
> \o/
> 
> Thanks for the help :)

Only 379 left !

Cheers,

C.



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

* Re: [PATCH] aspeed/{xdma,rtc,sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN
  2025-11-25 14:26 [PATCH] aspeed/{xdma, rtc, sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN Cédric Le Goater via
  2025-11-25 15:38 ` [PATCH] aspeed/{xdma,rtc,sdhci}: " Philippe Mathieu-Daudé
@ 2025-11-25 21:51 ` Philippe Mathieu-Daudé
  2025-11-26  6:48 ` [PATCH] aspeed/{xdma, rtc, sdhci}: " Michael Tokarev
  2 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-11-25 21:51 UTC (permalink / raw)
  To: Cédric Le Goater, qemu-devel, qemu-arm
  Cc: Peter Maydell, Steven Lee, Troy Lee, Jamin Lin, Andrew Jeffery,
	Joel Stanley

On 25/11/25 15:26, Cédric Le Goater wrote:
> When the XDMA, RTC and SDHCI device models of the Aspeed SoCs were
> first introduced, their MMIO regions inherited of a DEVICE_NATIVE_ENDIAN
> endianness. It should be DEVICE_LITTLE_ENDIAN. Fix that.
> 
> Signed-off-by: Cédric Le Goater <clg@redhat.com>
> ---
>   hw/misc/aspeed_xdma.c | 2 +-
>   hw/rtc/aspeed_rtc.c   | 2 +-
>   hw/sd/aspeed_sdhci.c  | 2 +-
>   3 files changed, 3 insertions(+), 3 deletions(-)

Queued, thanks.


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

* Re: [PATCH] aspeed/{xdma, rtc, sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN
  2025-11-25 14:26 [PATCH] aspeed/{xdma, rtc, sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN Cédric Le Goater via
  2025-11-25 15:38 ` [PATCH] aspeed/{xdma,rtc,sdhci}: " Philippe Mathieu-Daudé
  2025-11-25 21:51 ` Philippe Mathieu-Daudé
@ 2025-11-26  6:48 ` Michael Tokarev
  2025-11-26 10:27   ` Cédric Le Goater
  2 siblings, 1 reply; 6+ messages in thread
From: Michael Tokarev @ 2025-11-26  6:48 UTC (permalink / raw)
  To: Cédric Le Goater, qemu-devel, qemu-arm
  Cc: Peter Maydell, Steven Lee, Troy Lee, Jamin Lin, Andrew Jeffery,
	Joel Stanley, Philippe Mathieu-Daudé, qemu-stable

On 11/25/25 17:26, Cédric Le Goater via wrote:
> When the XDMA, RTC and SDHCI device models of the Aspeed SoCs were
> first introduced, their MMIO regions inherited of a DEVICE_NATIVE_ENDIAN
> endianness. It should be DEVICE_LITTLE_ENDIAN. Fix that.

This looks like another bit for qemu-stable.  I'm picking it up
for 10.0 and 10.1 series.  Please let me know if I shouldn't.

Thanks,

/mjt



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

* Re: [PATCH] aspeed/{xdma, rtc, sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN
  2025-11-26  6:48 ` [PATCH] aspeed/{xdma, rtc, sdhci}: " Michael Tokarev
@ 2025-11-26 10:27   ` Cédric Le Goater
  0 siblings, 0 replies; 6+ messages in thread
From: Cédric Le Goater @ 2025-11-26 10:27 UTC (permalink / raw)
  To: Michael Tokarev, Cédric Le Goater, qemu-devel, qemu-arm
  Cc: Peter Maydell, Steven Lee, Troy Lee, Jamin Lin, Andrew Jeffery,
	Joel Stanley, Philippe Mathieu-Daudé, qemu-stable

On 11/26/25 07:48, Michael Tokarev wrote:
> On 11/25/25 17:26, Cédric Le Goater via wrote:
>> When the XDMA, RTC and SDHCI device models of the Aspeed SoCs were
>> first introduced, their MMIO regions inherited of a DEVICE_NATIVE_ENDIAN
>> endianness. It should be DEVICE_LITTLE_ENDIAN. Fix that.
> 
> This looks like another bit for qemu-stable.  I'm picking it up
> for 10.0 and 10.1 series.  Please let me know if I shouldn't.

You can. It shouldn't harm anyone.

Thanks,

C.




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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-25 14:26 [PATCH] aspeed/{xdma, rtc, sdhci}: Fix endianness to DEVICE_LITTLE_ENDIAN Cédric Le Goater via
2025-11-25 15:38 ` [PATCH] aspeed/{xdma,rtc,sdhci}: " Philippe Mathieu-Daudé
2025-11-25 17:35   ` Cédric Le Goater
2025-11-25 21:51 ` Philippe Mathieu-Daudé
2025-11-26  6:48 ` [PATCH] aspeed/{xdma, rtc, sdhci}: " Michael Tokarev
2025-11-26 10:27   ` Cédric Le Goater

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).