* [PULL 0/3] aspeed queue
@ 2020-09-18 7:27 Cédric Le Goater
2020-09-18 7:39 ` no-reply
2020-09-18 14:07 ` Peter Maydell
0 siblings, 2 replies; 18+ messages in thread
From: Cédric Le Goater @ 2020-09-18 7:27 UTC (permalink / raw)
To: qemu-devel; +Cc: Peter Maydell, Cédric Le Goater
The following changes since commit de39a045bd8d2b49e4f3d07976622c29d58e0bac:
Merge remote-tracking branch 'remotes/kraxel/tags/vga-20200915-pull-request' into staging (2020-09-15 14:25:05 +0100)
are available in the Git repository at:
https://github.com/legoater/qemu/ tags/pull-aspeed-20200918
for you to fetch changes up to 204dab83fe00a3e0781d93ad7899192a9409e987:
misc: aspeed_scu: Update AST2600 silicon id register (2020-09-18 09:04:36 +0200)
----------------------------------------------------------------
Aspeed patches :
* Couple of cleanups
* New machine properties to define the flash models
----------------------------------------------------------------
Cédric Le Goater (1):
hw/arm/aspeed: Add machine properties to define the flash models
Joel Stanley (1):
misc: aspeed_scu: Update AST2600 silicon id register
Philippe Mathieu-Daudé (1):
hw/arm/aspeed: Map the UART5 device unconditionally
docs/system/arm/aspeed.rst | 18 ++++++++++++++++++
hw/arm/aspeed.c | 45 +++++++++++++++++++++++++++++++++++++++++++--
hw/arm/aspeed_ast2600.c | 8 +++-----
hw/arm/aspeed_soc.c | 8 +++-----
hw/misc/aspeed_scu.c | 7 ++++++-
5 files changed, 73 insertions(+), 13 deletions(-)
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PULL 0/3] aspeed queue
2020-09-18 7:27 Cédric Le Goater
@ 2020-09-18 7:39 ` no-reply
2020-09-18 14:07 ` Peter Maydell
1 sibling, 0 replies; 18+ messages in thread
From: no-reply @ 2020-09-18 7:39 UTC (permalink / raw)
To: clg; +Cc: peter.maydell, qemu-devel, clg
Patchew URL: https://patchew.org/QEMU/20200918072703.331138-1-clg@kaod.org/
Hi,
This series seems to have some coding style problems. See output below for
more information:
N/A. Internal error while reading log file
The full log is available at
http://patchew.org/logs/20200918072703.331138-1-clg@kaod.org/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PULL 0/3] aspeed queue
2020-09-18 7:27 Cédric Le Goater
2020-09-18 7:39 ` no-reply
@ 2020-09-18 14:07 ` Peter Maydell
1 sibling, 0 replies; 18+ messages in thread
From: Peter Maydell @ 2020-09-18 14:07 UTC (permalink / raw)
To: Cédric Le Goater; +Cc: QEMU Developers
On Fri, 18 Sep 2020 at 08:27, Cédric Le Goater <clg@kaod.org> wrote:
>
> The following changes since commit de39a045bd8d2b49e4f3d07976622c29d58e0bac:
>
> Merge remote-tracking branch 'remotes/kraxel/tags/vga-20200915-pull-request' into staging (2020-09-15 14:25:05 +0100)
>
> are available in the Git repository at:
>
> https://github.com/legoater/qemu/ tags/pull-aspeed-20200918
>
> for you to fetch changes up to 204dab83fe00a3e0781d93ad7899192a9409e987:
>
> misc: aspeed_scu: Update AST2600 silicon id register (2020-09-18 09:04:36 +0200)
>
> ----------------------------------------------------------------
> Aspeed patches :
>
> * Couple of cleanups
> * New machine properties to define the flash models
>
> ----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.2
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PULL 0/3] aspeed queue
@ 2021-10-22 7:57 Cédric Le Goater
2021-10-22 17:36 ` Richard Henderson
0 siblings, 1 reply; 18+ messages in thread
From: Cédric Le Goater @ 2021-10-22 7:57 UTC (permalink / raw)
To: Peter Maydell
Cc: Andrew Jeffery, Cédric Le Goater, qemu-arm, Joel Stanley,
qemu-devel
The following changes since commit afc9fcde55296b83f659de9da3cdf044812a6eeb:
Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2021-10-20 06:10:51 -0700)
are available in the Git repository at:
https://github.com/legoater/qemu/ tags/pull-aspeed-20211022
for you to fetch changes up to b12fa6118f4d838d19720ec6476a1666a1b43474:
speed/sdhci: Add trace events (2021-10-22 09:52:17 +0200)
----------------------------------------------------------------
Aspeed patches :
* New fp5280g2-bmc board (John)
* Small cleanup in Aspeed SMC model (Cedric)
----------------------------------------------------------------
Cédric Le Goater (2):
aspeed/smc: Use a container for the flash mmio address space
speed/sdhci: Add trace events
John Wang (1):
aspeed: Add support for the fp5280g2-bmc board
include/hw/ssi/aspeed_smc.h | 2 +-
hw/arm/aspeed.c | 74 +++++++++++++++++++++++++++++++++++++++++++++
hw/sd/aspeed_sdhci.c | 5 +++
hw/ssi/aspeed_smc.c | 11 ++++---
hw/sd/trace-events | 4 +++
5 files changed, 91 insertions(+), 5 deletions(-)
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PULL 0/3] aspeed queue
2021-10-22 7:57 Cédric Le Goater
@ 2021-10-22 17:36 ` Richard Henderson
0 siblings, 0 replies; 18+ messages in thread
From: Richard Henderson @ 2021-10-22 17:36 UTC (permalink / raw)
To: Cédric Le Goater, Peter Maydell
Cc: Andrew Jeffery, qemu-arm, Joel Stanley, qemu-devel
On 10/22/21 12:57 AM, Cédric Le Goater wrote:
> The following changes since commit afc9fcde55296b83f659de9da3cdf044812a6eeb:
>
> Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2021-10-20 06:10:51 -0700)
>
> are available in the Git repository at:
>
> https://github.com/legoater/qemu/ tags/pull-aspeed-20211022
>
> for you to fetch changes up to b12fa6118f4d838d19720ec6476a1666a1b43474:
>
> speed/sdhci: Add trace events (2021-10-22 09:52:17 +0200)
>
> ----------------------------------------------------------------
> Aspeed patches :
>
> * New fp5280g2-bmc board (John)
> * Small cleanup in Aspeed SMC model (Cedric)
>
> ----------------------------------------------------------------
> Cédric Le Goater (2):
> aspeed/smc: Use a container for the flash mmio address space
> speed/sdhci: Add trace events
>
> John Wang (1):
> aspeed: Add support for the fp5280g2-bmc board
>
> include/hw/ssi/aspeed_smc.h | 2 +-
> hw/arm/aspeed.c | 74 +++++++++++++++++++++++++++++++++++++++++++++
> hw/sd/aspeed_sdhci.c | 5 +++
> hw/ssi/aspeed_smc.c | 11 ++++---
> hw/sd/trace-events | 4 +++
> 5 files changed, 91 insertions(+), 5 deletions(-)
Applied, thanks.
r~
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PULL 0/3] aspeed queue
@ 2025-03-23 17:45 Cédric Le Goater
2025-03-24 19:17 ` Stefan Hajnoczi
2025-03-24 20:36 ` Michael Tokarev
0 siblings, 2 replies; 18+ messages in thread
From: Cédric Le Goater @ 2025-03-23 17:45 UTC (permalink / raw)
To: qemu-arm, qemu-devel; +Cc: Cédric Le Goater
The following changes since commit 527dede083d3e3e5a13ee996776926e0a0c4e258:
Merge tag 'pull-request-2025-03-19' of https://gitlab.com/thuth/qemu into staging (2025-03-20 08:41:25 -0400)
are available in the Git repository at:
https://github.com/legoater/qemu/ tags/pull-aspeed-20250323
for you to fetch changes up to 78877b2e06464f49f777e086845e094ea7bc82ef:
hw/misc/aspeed_hace: Fix buffer overflow in has_padding function (2025-03-23 18:42:16 +0100)
----------------------------------------------------------------
aspeed queue:
* Fix AST2700 SoC model
----------------------------------------------------------------
Jamin Lin (1):
hw/misc/aspeed_hace: Fix buffer overflow in has_padding function
Steven Lee (1):
hw/intc/aspeed: Fix IRQ handler mask check
Troy Lee (1):
aspeed: Fix maximum number of spi controller
include/hw/arm/aspeed_soc.h | 2 +-
hw/intc/aspeed_intc.c | 2 +-
hw/misc/aspeed_hace.c | 5 +++++
3 files changed, 7 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PULL 0/3] aspeed queue
2025-03-23 17:45 Cédric Le Goater
@ 2025-03-24 19:17 ` Stefan Hajnoczi
2025-03-24 20:36 ` Michael Tokarev
1 sibling, 0 replies; 18+ messages in thread
From: Stefan Hajnoczi @ 2025-03-24 19:17 UTC (permalink / raw)
To: Cédric Le Goater; +Cc: qemu-arm, qemu-devel, Cédric Le Goater
[-- Attachment #1: Type: text/plain, Size: 116 bytes --]
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/10.0 for any user-visible changes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PULL 0/3] aspeed queue
2025-03-23 17:45 Cédric Le Goater
2025-03-24 19:17 ` Stefan Hajnoczi
@ 2025-03-24 20:36 ` Michael Tokarev
2025-03-24 20:46 ` Cédric Le Goater
1 sibling, 1 reply; 18+ messages in thread
From: Michael Tokarev @ 2025-03-24 20:36 UTC (permalink / raw)
To: Cédric Le Goater, qemu-arm, qemu-devel, qemu-stable
Cc: Jamin Lin, Steven Lee
23.03.2025 20:45, Cédric Le Goater wrote:
> Jamin Lin (1):
> hw/misc/aspeed_hace: Fix buffer overflow in has_padding function
>
> Steven Lee (1):
> hw/intc/aspeed: Fix IRQ handler mask check
>
> Troy Lee (1):
> aspeed: Fix maximum number of spi controller
Is there anything in there worth to pick up for stable series?
Thanks,
/mjt
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PULL 0/3] aspeed queue
2025-03-24 20:36 ` Michael Tokarev
@ 2025-03-24 20:46 ` Cédric Le Goater
2025-03-24 21:08 ` Michael Tokarev
0 siblings, 1 reply; 18+ messages in thread
From: Cédric Le Goater @ 2025-03-24 20:46 UTC (permalink / raw)
To: Michael Tokarev, qemu-arm, qemu-devel, qemu-stable; +Cc: Jamin Lin, Steven Lee
On 3/24/25 21:36, Michael Tokarev wrote:
> 23.03.2025 20:45, Cédric Le Goater wrote:
>> Jamin Lin (1):
>> hw/misc/aspeed_hace: Fix buffer overflow in has_padding function
>>
>> Steven Lee (1):
>> hw/intc/aspeed: Fix IRQ handler mask check
>>
>> Troy Lee (1):
>> aspeed: Fix maximum number of spi controller
>
> Is there anything in there worth to pick up for stable series?
you are fast !
- "aspeed: Fix maximum number of spi controller" is QEMU 10.0 material.
- "hw/intc/aspeed: Fix IRQ handler mask check" was merged in QEMU 9.1
- "hw/misc/aspeed_hace: Fix buffer overflow in has_padding function"
was merged in QEMU 7.1
The last 2 deserve to be backported IMO. They will need some massaging.
Thanks,
C.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PULL 0/3] aspeed queue
2025-03-24 20:46 ` Cédric Le Goater
@ 2025-03-24 21:08 ` Michael Tokarev
2025-03-25 6:33 ` Cédric Le Goater
0 siblings, 1 reply; 18+ messages in thread
From: Michael Tokarev @ 2025-03-24 21:08 UTC (permalink / raw)
To: Cédric Le Goater, qemu-arm, qemu-devel, qemu-stable
Cc: Jamin Lin, Steven Lee
24.03.2025 23:46, Cédric Le Goater wrote:
>> Is there anything in there worth to pick up for stable series?
>
> you are fast !
I was just about to send final announcements for a bunch of next
stable releases, and noticed another pull request has been merged.. :)
> - "aspeed: Fix maximum number of spi controller" is QEMU 10.0 material.
> - "hw/intc/aspeed: Fix IRQ handler mask check" was merged in QEMU 9.1
> - "hw/misc/aspeed_hace: Fix buffer overflow in has_padding function"
> was merged in QEMU 7.1
>
> The last 2 deserve to be backported IMO. They will need some massaging.
The "buffer overflow" fix seems to be okay for 9.2, 8.2 and 7.2.
The "IRQ handler mask check" seems to be this (for 9.2). Does it look sane?
Author: Steven Lee <steven_lee@aspeedtech.com>
Date: Thu Mar 20 17:25:43 2025 +0800
hw/intc/aspeed: Fix IRQ handler mask check
Updated the IRQ handler mask check to AND with select variable.
This ensures that the interrupt service routine is correctly triggered
for the interrupts within the same irq group.
For example, both `eth0` and the debug UART are handled in `GICINT132`.
Without this fix, the debug console may hang if the `eth0` ISR is not
handled.
Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Change-Id: Ic3609eb72218dfd68be6057d78b8953b18828709
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Fixes: d831c5fd8682 ("aspeed/intc: Add AST2700 support")
Link: https://lore.kernel.org/qemu-devel/20250320092543.4040672-2-steven_lee@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
(cherry picked from commit 7b8cbe5162e69ad629c5326bf3c158b81857955d)
(Mjt: update for before v9.2.0-2466-g5824e8bf6beb
"hw/intc/aspeed: Introduce IRQ handler function to reduce code duplication")
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
diff --git a/hw/intc/aspeed_intc.c b/hw/intc/aspeed_intc.c
index 126b711b94..495fd2bdfa 100644
--- a/hw/intc/aspeed_intc.c
+++ b/hw/intc/aspeed_intc.c
@@ -92,7 +92,7 @@ static void aspeed_intc_set_irq(void *opaque, int irq, int level)
trace_aspeed_intc_select(select);
- if (s->mask[irq] || s->regs[status_addr]) {
+ if ((s->mask[irq] & select) || (s->regs[status_addr] & select)) {
/*
* a. mask is not 0 means in ISR mode
* sources interrupt routine are executing.
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PULL 0/3] aspeed queue
2025-03-24 21:08 ` Michael Tokarev
@ 2025-03-25 6:33 ` Cédric Le Goater
0 siblings, 0 replies; 18+ messages in thread
From: Cédric Le Goater @ 2025-03-25 6:33 UTC (permalink / raw)
To: Michael Tokarev, qemu-arm, qemu-devel, qemu-stable; +Cc: Jamin Lin, Steven Lee
On 3/24/25 22:08, Michael Tokarev wrote:
> 24.03.2025 23:46, Cédric Le Goater wrote:
>
>>> Is there anything in there worth to pick up for stable series?
>>
>> you are fast !
>
> I was just about to send final announcements for a bunch of next
> stable releases, and noticed another pull request has been merged.. :)
>
>
>> - "aspeed: Fix maximum number of spi controller" is QEMU 10.0 material.
>> - "hw/intc/aspeed: Fix IRQ handler mask check" was merged in QEMU 9.1
>> - "hw/misc/aspeed_hace: Fix buffer overflow in has_padding function"
>> was merged in QEMU 7.1
>>
>> The last 2 deserve to be backported IMO. They will need some massaging.
>
> The "buffer overflow" fix seems to be okay for 9.2, 8.2 and 7.2.
>
> The "IRQ handler mask check" seems to be this (for 9.2). Does it look sane?
It does.
Thanks,
C.
> Author: Steven Lee <steven_lee@aspeedtech.com>
> Date: Thu Mar 20 17:25:43 2025 +0800
>
> hw/intc/aspeed: Fix IRQ handler mask check
>
> Updated the IRQ handler mask check to AND with select variable.
> This ensures that the interrupt service routine is correctly triggered
> for the interrupts within the same irq group.
>
> For example, both `eth0` and the debug UART are handled in `GICINT132`.
> Without this fix, the debug console may hang if the `eth0` ISR is not
> handled.
>
> Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
> Change-Id: Ic3609eb72218dfd68be6057d78b8953b18828709
> Reviewed-by: Cédric Le Goater <clg@redhat.com>
> Fixes: d831c5fd8682 ("aspeed/intc: Add AST2700 support")
> Link: https://lore.kernel.org/qemu-devel/20250320092543.4040672-2-steven_lee@aspeedtech.com
> Signed-off-by: Cédric Le Goater <clg@redhat.com>
> (cherry picked from commit 7b8cbe5162e69ad629c5326bf3c158b81857955d)
> (Mjt: update for before v9.2.0-2466-g5824e8bf6beb
> "hw/intc/aspeed: Introduce IRQ handler function to reduce code duplication")
> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
>
> diff --git a/hw/intc/aspeed_intc.c b/hw/intc/aspeed_intc.c
> index 126b711b94..495fd2bdfa 100644
> --- a/hw/intc/aspeed_intc.c
> +++ b/hw/intc/aspeed_intc.c
> @@ -92,7 +92,7 @@ static void aspeed_intc_set_irq(void *opaque, int irq, int level)
>
> trace_aspeed_intc_select(select);
>
> - if (s->mask[irq] || s->regs[status_addr]) {
> + if ((s->mask[irq] & select) || (s->regs[status_addr] & select)) {
> /*
> * a. mask is not 0 means in ISR mode
> * sources interrupt routine are executing.
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PULL 0/3] aspeed queue
@ 2025-11-24 7:05 Cédric Le Goater
2025-11-24 7:05 ` [PULL 1/3] hw/arm/ast27x0: Fix typo in LTPI address Cédric Le Goater
` (4 more replies)
0 siblings, 5 replies; 18+ messages in thread
From: Cédric Le Goater @ 2025-11-24 7:05 UTC (permalink / raw)
To: qemu-arm, qemu-devel; +Cc: Cédric Le Goater
The following changes since commit fb241d0a1fd36a1b67ecced29d8b533316cf9e2d:
Merge tag 'staging-pull-request' of https://gitlab.com/peterx/qemu into staging (2025-11-23 11:46:53 -0800)
are available in the Git repository at:
https://github.com/legoater/qemu/ tags/pull-aspeed-20251124
for you to fetch changes up to e9a8b04dbb98fba7942b23b3ac5c35f2f0b9c4a0:
hw/pci-host/aspeed_pcie: Update ASPEED PCIe Root Port capabilities and enable MSI to support hotplug (2025-11-24 07:52:42 +0100)
----------------------------------------------------------------
aspeed queue:
* Fixed typo in the AST2700 LTPI device
* Fixed missing wiring of the SPI IRQ in AST10x0, AST2600, AST2700 SoCs
* Updated ASPEED PCIe Root Port capabilities and MSI support
----------------------------------------------------------------
Jamin Lin (2):
hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt failure
hw/pci-host/aspeed_pcie: Update ASPEED PCIe Root Port capabilities and enable MSI to support hotplug
Nabih Estefan (1):
hw/arm/ast27x0: Fix typo in LTPI address
hw/arm/aspeed_ast10x0.c | 2 ++
hw/arm/aspeed_ast2600.c | 2 ++
hw/arm/aspeed_ast27x0.c | 4 +++-
hw/pci-host/aspeed_pcie.c | 40 +++++++++++++++++++++++++++++++++++++++-
4 files changed, 46 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PULL 1/3] hw/arm/ast27x0: Fix typo in LTPI address
2025-11-24 7:05 [PULL 0/3] aspeed queue Cédric Le Goater
@ 2025-11-24 7:05 ` Cédric Le Goater
2025-11-24 7:05 ` [PULL 2/3] hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt failure Cédric Le Goater
` (3 subsequent siblings)
4 siblings, 0 replies; 18+ messages in thread
From: Cédric Le Goater @ 2025-11-24 7:05 UTC (permalink / raw)
To: qemu-arm, qemu-devel; +Cc: Nabih Estefan, Cédric Le Goater
From: Nabih Estefan <nabihestefan@google.com>
The address for LTPI has one more 0 that it should, bug introduced in
commit 91064bea6b2d747a981cb3bd2904e56f443e6c67.
Signed-off-by: Nabih Estefan <nabihestefan@google.com>
Fixes: 91064bea6b2d ("aspeed: ast27x0: Map unimplemented devices in SoC memory")
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20251104233742.2147367-1-nabihestefan@google.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
---
hw/arm/aspeed_ast27x0.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/arm/aspeed_ast27x0.c b/hw/arm/aspeed_ast27x0.c
index c484bcd4e22f..1e6f4695382e 100644
--- a/hw/arm/aspeed_ast27x0.c
+++ b/hw/arm/aspeed_ast27x0.c
@@ -87,11 +87,11 @@ static const hwaddr aspeed_soc_ast2700_memmap[] = {
[ASPEED_DEV_UART11] = 0x14C33A00,
[ASPEED_DEV_UART12] = 0x14C33B00,
[ASPEED_DEV_WDT] = 0x14C37000,
+ [ASPEED_DEV_LTPI] = 0x30000000,
[ASPEED_DEV_PCIE_MMIO0] = 0x60000000,
[ASPEED_DEV_PCIE_MMIO1] = 0x80000000,
[ASPEED_DEV_PCIE_MMIO2] = 0xA0000000,
[ASPEED_DEV_SPI_BOOT] = 0x100000000,
- [ASPEED_DEV_LTPI] = 0x300000000,
[ASPEED_DEV_SDRAM] = 0x400000000,
};
--
2.51.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PULL 2/3] hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt failure
2025-11-24 7:05 [PULL 0/3] aspeed queue Cédric Le Goater
2025-11-24 7:05 ` [PULL 1/3] hw/arm/ast27x0: Fix typo in LTPI address Cédric Le Goater
@ 2025-11-24 7:05 ` Cédric Le Goater
2025-11-24 7:05 ` [PULL 3/3] hw/pci-host/aspeed_pcie: Update ASPEED PCIe Root Port capabilities and enable MSI to support hotplug Cédric Le Goater
` (2 subsequent siblings)
4 siblings, 0 replies; 18+ messages in thread
From: Cédric Le Goater @ 2025-11-24 7:05 UTC (permalink / raw)
To: qemu-arm, qemu-devel; +Cc: Jamin Lin, Cédric Le Goater
From: Jamin Lin <jamin_lin@aspeedtech.com>
It did not connect SPI IRQ to the Interrupt Controller, so even the SPI
model raised the IRQ, the interrupt was not received. The CPU therefore
did not trigger an interrupt via the controller, and the firmware never
received the interrupt.
Fixes: 356b230ed13889e09d087a96498887de695df17e ("aspeed/soc: Add AST1030 support")
Fixes: f25c0ae1079dc0b9de02676eb3e3949a09df9f41 ("aspeed/soc: Add AST2600 support")
Fixes: 5dd883ab0635c9f715c77cc32622e458a0724581 ("aspeed/soc: Add AST2700 support")
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20251106084925.1253704-2-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
---
hw/arm/aspeed_ast10x0.c | 2 ++
hw/arm/aspeed_ast2600.c | 2 ++
hw/arm/aspeed_ast27x0.c | 2 ++
3 files changed, 6 insertions(+)
diff --git a/hw/arm/aspeed_ast10x0.c b/hw/arm/aspeed_ast10x0.c
index 7f49c13391be..ca487774aeed 100644
--- a/hw/arm/aspeed_ast10x0.c
+++ b/hw/arm/aspeed_ast10x0.c
@@ -372,6 +372,8 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
sc->memmap[ASPEED_DEV_SPI1 + i]);
aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 1,
ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+ sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+ aspeed_soc_ast1030_get_irq(s, ASPEED_DEV_SPI1 + i));
}
/* Secure Boot Controller */
diff --git a/hw/arm/aspeed_ast2600.c b/hw/arm/aspeed_ast2600.c
index 498d1ecc078b..4c5a42ea1742 100644
--- a/hw/arm/aspeed_ast2600.c
+++ b/hw/arm/aspeed_ast2600.c
@@ -557,6 +557,8 @@ static void aspeed_soc_ast2600_realize(DeviceState *dev, Error **errp)
sc->memmap[ASPEED_DEV_SPI1 + i]);
aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 1,
ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+ sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+ aspeed_soc_ast2600_get_irq(s, ASPEED_DEV_SPI1 + i));
}
/* EHCI */
diff --git a/hw/arm/aspeed_ast27x0.c b/hw/arm/aspeed_ast27x0.c
index 1e6f4695382e..95f155fcf1ad 100644
--- a/hw/arm/aspeed_ast27x0.c
+++ b/hw/arm/aspeed_ast27x0.c
@@ -831,6 +831,8 @@ static void aspeed_soc_ast2700_realize(DeviceState *dev, Error **errp)
sc->memmap[ASPEED_DEV_SPI0 + i]);
aspeed_mmio_map(s->memory, SYS_BUS_DEVICE(&s->spi[i]), 1,
ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base);
+ sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0,
+ aspeed_soc_ast2700_get_irq(s, ASPEED_DEV_SPI0 + i));
}
/* EHCI */
--
2.51.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PULL 3/3] hw/pci-host/aspeed_pcie: Update ASPEED PCIe Root Port capabilities and enable MSI to support hotplug
2025-11-24 7:05 [PULL 0/3] aspeed queue Cédric Le Goater
2025-11-24 7:05 ` [PULL 1/3] hw/arm/ast27x0: Fix typo in LTPI address Cédric Le Goater
2025-11-24 7:05 ` [PULL 2/3] hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt failure Cédric Le Goater
@ 2025-11-24 7:05 ` Cédric Le Goater
2025-11-24 18:36 ` [PULL 0/3] aspeed queue Richard Henderson
2025-11-24 20:36 ` Michael Tokarev
4 siblings, 0 replies; 18+ messages in thread
From: Cédric Le Goater @ 2025-11-24 7:05 UTC (permalink / raw)
To: qemu-arm, qemu-devel
Cc: Jamin Lin, Cédric Le Goater, Nabih Estefan,
Philippe Mathieu-Daudé
From: Jamin Lin <jamin_lin@aspeedtech.com>
This patch updates the ASPEED PCIe Root Port capability layout and interrupt
handling to match the hardware-defined capability structure as documented in
the PCI Express Controller (PCIE) chapter of the ASPEED SoC datasheet.
The following capability offsets and fields are now aligned with the actual
hardware implementation (validated using EVB config-space dumps via
'lspci -s <bdf> -vvv'):
- Added MSI capability at offset 0x50 and enabled 1-vector MSI support
- Added PCI Express Capability structure at offset 0x80
- Added Secondary Subsystem Vendor ID (SSVID) at offset 0xC0
- Added AER capability at offset 0x100
- Implemented aer_vector() callback and MSI init/uninit hooks
- Updated Root Port SSID to 0x1150 to reflect the platform default
Enabling MSI is required for proper PCIe Hotplug event signaling. This change
improves correctness and ensures QEMU Root Port behavior matches the behavior
of ASPEED hardware and downstream kernel expectations.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Fixes: 2af56518fa91 ("hw/pci-host/aspeed: Add AST2600 PCIe Root Port and make address configurable")
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Nabih Estefan <nabihestefan@google.com>
Tested-by: Nabih Estefan <nabihestefan@google.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/qemu-devel/20251121050108.3407445-2-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
---
hw/pci-host/aspeed_pcie.c | 40 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 39 insertions(+), 1 deletion(-)
diff --git a/hw/pci-host/aspeed_pcie.c b/hw/pci-host/aspeed_pcie.c
index f7593444fc42..1fc2c617727d 100644
--- a/hw/pci-host/aspeed_pcie.c
+++ b/hw/pci-host/aspeed_pcie.c
@@ -68,6 +68,38 @@ static const TypeInfo aspeed_pcie_root_device_info = {
* PCIe Root Port
*/
+#define ASPEED_PCIE_ROOT_PORT_MSI_OFFSET 0x50
+#define ASPEED_PCIE_ROOT_PORT_MSI_NR_VECTOR 1
+#define ASPEED_PCIE_ROOT_PORT_SSVID_OFFSET 0xC0
+#define ASPEED_PCIE_ROOT_PORT_EXP_OFFSET 0x80
+#define ASPEED_PCIE_ROOT_PORT_AER_OFFSET 0x100
+
+static uint8_t aspeed_pcie_root_port_aer_vector(const PCIDevice *d)
+{
+ return 0;
+}
+
+static int aspeed_pcie_root_port_interrupts_init(PCIDevice *d, Error **errp)
+{
+ int rc;
+
+ rc = msi_init(d, ASPEED_PCIE_ROOT_PORT_MSI_OFFSET,
+ ASPEED_PCIE_ROOT_PORT_MSI_NR_VECTOR,
+ PCI_MSI_FLAGS_MASKBIT & PCI_MSI_FLAGS_64BIT,
+ PCI_MSI_FLAGS_MASKBIT & PCI_MSI_FLAGS_MASKBIT,
+ errp);
+ if (rc < 0) {
+ assert(rc == -ENOTSUP);
+ }
+
+ return rc;
+}
+
+static void aspeed_pcie_root_port_interrupts_uninit(PCIDevice *d)
+{
+ msi_uninit(d);
+}
+
static void aspeed_pcie_root_port_class_init(ObjectClass *klass,
const void *data)
{
@@ -80,7 +112,13 @@ static void aspeed_pcie_root_port_class_init(ObjectClass *klass,
k->device_id = 0x1150;
dc->user_creatable = true;
- rpc->aer_offset = 0x100;
+ rpc->aer_vector = aspeed_pcie_root_port_aer_vector;
+ rpc->interrupts_init = aspeed_pcie_root_port_interrupts_init;
+ rpc->interrupts_uninit = aspeed_pcie_root_port_interrupts_uninit;
+ rpc->exp_offset = ASPEED_PCIE_ROOT_PORT_EXP_OFFSET;
+ rpc->aer_offset = ASPEED_PCIE_ROOT_PORT_AER_OFFSET;
+ rpc->ssvid_offset = ASPEED_PCIE_ROOT_PORT_SSVID_OFFSET;
+ rpc->ssid = 0x1150;
}
static const TypeInfo aspeed_pcie_root_port_info = {
--
2.51.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PULL 0/3] aspeed queue
2025-11-24 7:05 [PULL 0/3] aspeed queue Cédric Le Goater
` (2 preceding siblings ...)
2025-11-24 7:05 ` [PULL 3/3] hw/pci-host/aspeed_pcie: Update ASPEED PCIe Root Port capabilities and enable MSI to support hotplug Cédric Le Goater
@ 2025-11-24 18:36 ` Richard Henderson
2025-11-24 20:36 ` Michael Tokarev
4 siblings, 0 replies; 18+ messages in thread
From: Richard Henderson @ 2025-11-24 18:36 UTC (permalink / raw)
To: Cédric Le Goater, qemu-arm, qemu-devel
On 11/23/25 23:05, Cédric Le Goater wrote:
> The following changes since commit fb241d0a1fd36a1b67ecced29d8b533316cf9e2d:
>
> Merge tag 'staging-pull-request' ofhttps://gitlab.com/peterx/qemu into staging (2025-11-23 11:46:53 -0800)
>
> are available in the Git repository at:
>
> https://github.com/legoater/qemu/ tags/pull-aspeed-20251124
>
> for you to fetch changes up to e9a8b04dbb98fba7942b23b3ac5c35f2f0b9c4a0:
>
> hw/pci-host/aspeed_pcie: Update ASPEED PCIe Root Port capabilities and enable MSI to support hotplug (2025-11-24 07:52:42 +0100)
>
> ----------------------------------------------------------------
> aspeed queue:
>
> * Fixed typo in the AST2700 LTPI device
> * Fixed missing wiring of the SPI IRQ in AST10x0, AST2600, AST2700 SoCs
> * Updated ASPEED PCIe Root Port capabilities and MSI support
Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/10.2 as appropriate.
r~
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PULL 0/3] aspeed queue
2025-11-24 7:05 [PULL 0/3] aspeed queue Cédric Le Goater
` (3 preceding siblings ...)
2025-11-24 18:36 ` [PULL 0/3] aspeed queue Richard Henderson
@ 2025-11-24 20:36 ` Michael Tokarev
2025-11-25 7:37 ` Cédric Le Goater
4 siblings, 1 reply; 18+ messages in thread
From: Michael Tokarev @ 2025-11-24 20:36 UTC (permalink / raw)
To: Cédric Le Goater, qemu-arm, qemu-devel; +Cc: Nabih Estefan, qemu-stable
On 11/24/25 10:05, Cédric Le Goater wrote:
..
> aspeed queue:
>
> * Fixed typo in the AST2700 LTPI device
> * Fixed missing wiring of the SPI IRQ in AST10x0, AST2600, AST2700 SoCs
> * Updated ASPEED PCIe Root Port capabilities and MSI support
>
> ----------------------------------------------------------------
> Jamin Lin (2):
> hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt failure
> hw/pci-host/aspeed_pcie: Update ASPEED PCIe Root Port capabilities and enable MSI to support hotplug
>
> Nabih Estefan (1):
> hw/arm/ast27x0: Fix typo in LTPI address
Are the two patches - "Fix typo in LTPI address" and
"Fix missing SPI IRQ connection causing DMA interrupt failure" -
worth picking up to stable (first to 10.1.x, second to 10.0.x
and 10.1.x)?
Will there be migration issues with these in place?
Thanks,
/mjt
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PULL 0/3] aspeed queue
2025-11-24 20:36 ` Michael Tokarev
@ 2025-11-25 7:37 ` Cédric Le Goater
0 siblings, 0 replies; 18+ messages in thread
From: Cédric Le Goater @ 2025-11-25 7:37 UTC (permalink / raw)
To: Michael Tokarev, qemu-arm, qemu-devel; +Cc: Nabih Estefan, qemu-stable
On 11/24/25 21:36, Michael Tokarev wrote:
> On 11/24/25 10:05, Cédric Le Goater wrote:
> ..
>> aspeed queue:
>>
>> * Fixed typo in the AST2700 LTPI device
>> * Fixed missing wiring of the SPI IRQ in AST10x0, AST2600, AST2700 SoCs
>> * Updated ASPEED PCIe Root Port capabilities and MSI support
>>
>> ----------------------------------------------------------------
>> Jamin Lin (2):
>> hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt failure
>> hw/pci-host/aspeed_pcie: Update ASPEED PCIe Root Port capabilities and enable MSI to support hotplug
>>
>> Nabih Estefan (1):
>> hw/arm/ast27x0: Fix typo in LTPI address
>
> Are the two patches - "Fix typo in LTPI address" and
> "Fix missing SPI IRQ connection causing DMA interrupt failure" -
> worth picking up to stable (first to 10.1.x, second to 10.0.x
> and 10.1.x)?
Yes you can take these.
>
> Will there be migration issues with these in place?
I doubt it.
The Aspeed machines are not versioned and we never claimed to
maintain compatibility. I think there are other issues related
to the secure state of the CPU that prevent migration to work
anyway.
Thanks,
C.
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2025-11-25 7:39 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-24 7:05 [PULL 0/3] aspeed queue Cédric Le Goater
2025-11-24 7:05 ` [PULL 1/3] hw/arm/ast27x0: Fix typo in LTPI address Cédric Le Goater
2025-11-24 7:05 ` [PULL 2/3] hw/arm/aspeed: Fix missing SPI IRQ connection causing DMA interrupt failure Cédric Le Goater
2025-11-24 7:05 ` [PULL 3/3] hw/pci-host/aspeed_pcie: Update ASPEED PCIe Root Port capabilities and enable MSI to support hotplug Cédric Le Goater
2025-11-24 18:36 ` [PULL 0/3] aspeed queue Richard Henderson
2025-11-24 20:36 ` Michael Tokarev
2025-11-25 7:37 ` Cédric Le Goater
-- strict thread matches above, loose matches on Subject: below --
2025-03-23 17:45 Cédric Le Goater
2025-03-24 19:17 ` Stefan Hajnoczi
2025-03-24 20:36 ` Michael Tokarev
2025-03-24 20:46 ` Cédric Le Goater
2025-03-24 21:08 ` Michael Tokarev
2025-03-25 6:33 ` Cédric Le Goater
2021-10-22 7:57 Cédric Le Goater
2021-10-22 17:36 ` Richard Henderson
2020-09-18 7:27 Cédric Le Goater
2020-09-18 7:39 ` no-reply
2020-09-18 14:07 ` 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).