[PULL 00/83] aspeed queue

Cédric Le Goater posted 83 patches 2 weeks ago
Failed in applying to current master (apply log)
Maintainers: "Daniel P. Berrangé" <berrange@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, "Cédric Le Goater" <clg@kaod.org>, Steven Lee <steven_lee@aspeedtech.com>, Troy Lee <leetroy@gmail.com>, Jamin Lin <jamin_lin@aspeedtech.com>, Kane Chen <kane_chen@aspeedtech.com>, Andrew Jeffery <andrew@codeconstruct.com.au>, Joel Stanley <joel@jms.id.au>, "Philippe Mathieu-Daudé" <philmd@mailo.com>, Zhao Liu <zhao1.liu@intel.com>, Glenn Miles <milesg@linux.ibm.com>, Alistair Francis <alistair@alistair23.me>, Eric Blake <eblake@redhat.com>, Markus Armbruster <armbru@redhat.com>, Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>
There is a newer version of this series
qapi/crypto.json                                   |   4 +-
crypto/cipherpriv.h                                |   8 +
hw/usb/hcd-ehci.h                                  |  42 +-
include/crypto/cipher.h                            |  36 +
include/hw/arm/aspeed_ast1700.h                    |   2 +-
include/hw/arm/aspeed_coprocessor.h                |  16 +-
include/hw/arm/aspeed_soc.h                        |   1 +
include/hw/gpio/pca9552.h                          |  31 +-
include/hw/gpio/pca9554.h                          |   3 +
include/hw/i2c/aspeed_i2c.h                        |   2 +
include/hw/misc/aspeed_hace.h                      |   1 -
include/hw/misc/aspeed_scu.h                       |   5 +
include/hw/sensor/adc128d818.h                     |  14 +
include/hw/ssi/aspeed_smc.h                        |   3 +-
tests/qtest/aspeed-hace-utils.h                    |  20 +
tests/qtest/aspeed-smc-utils.h                     |  35 +-
crypto/cipher.c                                    |  32 +
hw/arm/aspeed.c                                    |   2 +-
hw/arm/aspeed_ast2600_anacapa.c                    |  27 +-
hw/arm/aspeed_ast2600_catalina.c                   |  54 +-
hw/arm/aspeed_ast27x0-fc.c                         |  38 +-
hw/arm/aspeed_ast27x0-ssp.c                        |  56 +-
hw/arm/aspeed_ast27x0-tsp.c                        |  56 +-
hw/arm/aspeed_ast27x0.c                            |  21 +-
hw/arm/aspeed_coprocessor_common.c                 |   2 -
hw/core/machine.c                                  |   2 +
hw/gpio/pca9552.c                                  | 256 ++++--
hw/gpio/pca9554.c                                  | 175 +++--
hw/i2c/aspeed_i2c.c                                |  79 ++
hw/misc/aspeed_hace.c                              | 461 ++++++++++-
hw/misc/aspeed_scu.c                               |  20 +-
hw/sensor/adc128d818.c                             | 696 +++++++++++++++++
hw/ssi/aspeed_smc.c                                | 117 ++-
hw/usb/hcd-ehci.c                                  | 214 ++++--
tests/qtest/adc128d818-test.c                      | 856 +++++++++++++++++++++
tests/qtest/aspeed-hace-utils.c                    | 693 +++++++++++++++++
tests/qtest/aspeed-smc-utils.c                     | 294 ++++++-
tests/qtest/aspeed_hace-test.c                     |  18 +
tests/qtest/aspeed_smc-test.c                      |  71 +-
tests/qtest/ast2700-hace-test.c                    |   9 +
tests/qtest/ast2700-smc-test.c                     |  16 +
tests/qtest/pca9552-test.c                         |  76 ++
tests/qtest/pca9554-test.c                         | 223 ++++++
tests/qtest/pca9555-test.c                         | 251 ++++++
tests/unit/test-crypto-cipher.c                    | 240 ++++++
crypto/cipher-gcrypt.c.inc                         | 101 +++
crypto/cipher-gnutls.c.inc                         | 154 ++++
crypto/cipher-nettle.c.inc                         | 128 +++
hw/arm/Kconfig                                     |   7 +-
hw/pci-host/Kconfig                                |   1 +
hw/sensor/Kconfig                                  |   4 +
hw/sensor/meson.build                              |   1 +
hw/sensor/trace-events                             |   8 +
hw/usb/trace-events                                |  26 +-
tests/functional/aarch64/test_aspeed_ast2700a1.py  |  34 +-
tests/functional/aarch64/test_aspeed_ast2700a2.py  |  34 +-
tests/functional/aarch64/test_aspeed_ast2700fc.py  |  21 +-
tests/functional/arm/test_aspeed_ast1030.py        |  12 +-
tests/functional/arm/test_aspeed_ast1060.py        |  14 +-
tests/functional/arm/test_aspeed_ast2500_sdk.py    |   8 +-
.../functional/arm/test_aspeed_ast2500_sdk_515.py  |   8 +-
tests/functional/arm/test_aspeed_ast2600_sdk.py    |   8 +-
.../functional/arm/test_aspeed_ast2600_sdk_515.py  |   8 +-
.../functional/arm/test_aspeed_ast2600_sdk_otp.py  |   8 +-
tests/qtest/meson.build                            |   9 +-
65 files changed, 5404 insertions(+), 468 deletions(-)
create mode 100644 include/hw/sensor/adc128d818.h
create mode 100644 hw/sensor/adc128d818.c
create mode 100644 tests/qtest/adc128d818-test.c
create mode 100644 tests/qtest/pca9554-test.c
create mode 100644 tests/qtest/pca9555-test.c
[PULL 00/83] aspeed queue
Posted by Cédric Le Goater 2 weeks ago
The following changes since commit 84f07211cc5b4fc6a371559bf8a5de4fb068e648:

  Update version for v11.1.0 release (2026-08-11 10:04:46 -0400)

are available in the Git repository at:

  https://github.com/legoater/qemu/ tags/pull-aspeed-20260811

for you to fetch changes up to 0375f6498eee6188089924bb766c653492ff8857:

  tests/qtest/aspeed-hace: Test the crypto command on the AST2700 (2026-08-11 18:25:58 +0200)

----------------------------------------------------------------
aspeed queue:

* Fixes missing Kconfig dependencies for Aspeed boards
* Adds 64-bit addressing support to the EHCI USB controller model.
  Enable it on the AST2700
* Extends Aspeed SMC qtest coverage with fast-read, DOR and QOR
  read modes
* Introduces a separate Aspeed2700SCUState type and shares the SCUIO,
  FMC and SCU instances across the AST2700 PSP, SSP and TSP
  coprocessors
* Adds Data FIFO-based flash access for the AST2700 FMC controller
* Adds the ADC128D818 12-bit 8-channel ADC sensor device with tests,
  wired up on the Anacapa board
* Reworks the PCA9552/PCA9555 GPIO/LED driver: polarity inversion,
  datasheet-conformant command handling, GPIO QOM properties, reset
  via the Resettable interface, and extensive qtest coverage
* Reworks the PCA9554 GPIO driver: output-to-input reflection,
  PCA9536 support, pin direction property, and qtest coverage
* Adds PCA9555 IO expanders and temperature sensors to the Catalina
  board
* Adds AST2700 I2C master buffer mode support
* Updates ASPEED functional tests to SDK v11.03 and Zephyr SDK v03.08
* Adds AES-GCM support to the QEMU crypto cipher layer (gcrypt,
  nettle, gnutls backends) with unit tests
* Adds crypto (AES) command emulation to the Aspeed HACE model:
  direct access, scatter-gather, CTR, GCM modes, 64-bit DMA, with
  qtest coverage on AST2500, AST2600, AST1030 and AST2700

----------------------------------------------------------------
Carlo Marcelo Arenas Belón (1):
      hw/arm/aspeed: avoid sign mismatch on sscanf for uart property

Cédric Le Goater (4):
      tests/qtest: aspeed_smc: Introduce read_page_mem_fn for page read helpers
      tests/qtest: aspeed_smc: Add fast-read test coverage
      tests/qtest: aspeed_smc: Add Dual Output Read (DOR) test coverage
      tests/qtest: aspeed_smc: Add Quad Output Read (QOR) test coverage

Emmanuel Blot (32):
      hw/sensor: adc128d818: add 12-bit 8-channel ADC device
      tests/qtest: adc128d818: add test harness and register access
      tests/qtest: adc128d818: test voltage and temperature conversion
      tests/qtest: adc128d818: test limit interrupts
      tests/qtest: adc128d818: test operating modes and power control
      hw/arm/aspeed: anacapa: use ASCII in comments
      hw/arm: anacapa: add ADC128D818 devices
      hw/gpio: pca9552: register types with DEFINE_TYPES()
      hw/gpio: pca9552: move PCA955xState definition out of the header
      hw/gpio: pca9552: rename I2CSlave member to parent_obj
      hw/gpio: pca9552: default description to the instantiated type name
      hw/gpio: pca9552: declare pca9555 device as an alias of pca9535 device
      hw/gpio: pca9552: use the Resettable interface instead of legacy reset
      hw/gpio: pca9552: apply input polarity inversion on read
      hw/gpio: pca9552: conform GPIO command handling to the datasheet
      hw/gpio: pca9552: expose GPIO pins as pin%d QOM properties
      tests/qtest: add PCA9555 register access tests
      tests/qtest: pca9555: test output-to-input reflection and pull-ups
      tests/qtest: pca9555: test polarity inversion
      tests/qtest: pca9555: test auto-increment and command wrapping
      tests/qtest: pca9552: test behaviour specific to the LED variant
      hw/gpio: pca9554: add PCA9536 support
      hw/gpio: pca9554: add hw-dir property honoring the configured pin direction
      hw/gpio: pca9554: reflect push-pull outputs in the input register
      hw/gpio: pca9554: expose pin%d as a string property
      tests/qtest: add PCA9554 register access tests
      tests/qtest: pca9554: test output-to-input reflection and pull-ups
      tests/qtest: pca9554: test polarity inversion
      tests/qtest: pca9554: test absence of command auto-increment
      tests/qtest: pca9554: test the PCA9536 4-bit variant
      hw/arm: catalina: model PCA9555 IO expanders with their own type
      hw/arm: catalina: add NIC and FIO temperature sensors

Jamin Lin (43):
      hw/usb/hcd-ehci: Change descriptor addresses to 64-bit with migration compatibility
      hw/usb/hcd-ehci: Add property to advertise 64-bit addressing capability
      hw/usb/hcd-ehci: Implement 64-bit QH descriptor addressing
      hw/usb/hcd-ehci: Implement 64-bit qTD descriptor addressing
      hw/usb/hcd-ehci: Implement 64-bit iTD descriptor addressing
      hw/usb/hcd-ehci: Implement 64-bit siTD descriptor addressing
      hw/usb/hcd-ehci: Add ctrldssegment-default property
      hw/arm/aspeed_ast27x0: Set EHCI ctrldssegment-default
      hw/arm/aspeed_ast27x0: Enable 64-bit EHCI DMA addressing
      tests/functional/aarch64/test_aspeed_ast2700: Add USB EHCI test for AST2700 A1/A2
      hw/misc/aspeed_scu: Introduce Aspeed2700SCUState
      hw/arm/aspeed: Use Aspeed2700SCUState for AST2700 users
      hw/arm/aspeed_ast27x0: Move SCU link into AST27x0 coprocessors
      hw/misc/aspeed_scu: Add separate reset handler for AST2700 SCUIO
      hw/arm/aspeed_ast27x0: Pass realized PSP SoC to SSP/TSP initialization
      hw/arm/ast27x0: Share single SCUIO instance across PSP, SSP, and TSP
      hw/arm/ast27x0: Share FMC controller with SSP and TSP
      hw/ssi/aspeed_smc: Add Data FIFO-based flash access support for AST2700
      tests/qtest/ast2700-smc-test: Add Data FIFO mode test
      hw/i2c/aspeed_i2c: Support the AST2700 master buffer mode
      tests/functional/aarch64/test_aspeed_ast2700a2: Update ASPEED SDK v11.03
      tests/functional/aarch64/test_aspeed_ast2700a1: Update ASPEED SDK v11.03
      tests/functional/aarch64/test_aspeed_ast2700fc: Update ASPEED SDK v11.03
      tests/functional/arm/test_aspeed_ast2600_sdk: Update ASPEED SDK v11.03
      tests/functional/arm/test_aspeed_ast2500_sdk: Update ASPEED SDK v11.03
      tests/functional/arm/test_aspeed_ast1030: Update ASPEED Zephyr SDK v03.08
      tests/functional/arm/test_aspeed_ast1060: Update ASPEED ZEPHYR PROJECT v03.07
      hw/misc/aspeed_hace: Support the crypto command in direct access mode
      tests/qtest/aspeed-hace: Test the crypto command on the AST2500
      hw/misc/aspeed_hace: Support scatter-gather mode for the crypto command
      hw/misc/aspeed_hace: Support the CTR mode for the crypto command
      tests/qtest/aspeed-hace: Test the crypto command on the AST2600
      tests/qtest/aspeed-hace: Test the crypto command on the AST1030
      crypto/cipher: Add GCM to QCryptoCipherMode
      crypto/cipher: Add setaad/gettag for AEAD modes
      crypto/cipher-gcrypt: Implement AES-GCM
      crypto/cipher-nettle: Implement AES-GCM
      crypto/cipher-gnutls: Implement AES-GCM
      tests/unit/test-crypto-cipher: Test AES-GCM mode
      hw/misc/aspeed_hace: Support 64-bit DMA for the crypto command
      hw/misc/aspeed_hace: Support the AES-GCM mode for the crypto command
      hw/misc/aspeed_hace: Enable the crypto command on the AST2700
      tests/qtest/aspeed-hace: Test the crypto command on the AST2700

Philippe Mathieu-Daudé (3):
      hw/arm/aspeed: Add missing PCI_EXPRESS -> PCIE_PORT Kconfig dependency
      hw/arm/aspeed: Add missing Kconfig dependencies on required components
      hw/arm/aspeed: Add missing Kconfig dependencies on optional components

 qapi/crypto.json                                   |   4 +-
 crypto/cipherpriv.h                                |   8 +
 hw/usb/hcd-ehci.h                                  |  42 +-
 include/crypto/cipher.h                            |  36 +
 include/hw/arm/aspeed_ast1700.h                    |   2 +-
 include/hw/arm/aspeed_coprocessor.h                |  16 +-
 include/hw/arm/aspeed_soc.h                        |   1 +
 include/hw/gpio/pca9552.h                          |  31 +-
 include/hw/gpio/pca9554.h                          |   3 +
 include/hw/i2c/aspeed_i2c.h                        |   2 +
 include/hw/misc/aspeed_hace.h                      |   1 -
 include/hw/misc/aspeed_scu.h                       |   5 +
 include/hw/sensor/adc128d818.h                     |  14 +
 include/hw/ssi/aspeed_smc.h                        |   3 +-
 tests/qtest/aspeed-hace-utils.h                    |  20 +
 tests/qtest/aspeed-smc-utils.h                     |  35 +-
 crypto/cipher.c                                    |  32 +
 hw/arm/aspeed.c                                    |   2 +-
 hw/arm/aspeed_ast2600_anacapa.c                    |  27 +-
 hw/arm/aspeed_ast2600_catalina.c                   |  54 +-
 hw/arm/aspeed_ast27x0-fc.c                         |  38 +-
 hw/arm/aspeed_ast27x0-ssp.c                        |  56 +-
 hw/arm/aspeed_ast27x0-tsp.c                        |  56 +-
 hw/arm/aspeed_ast27x0.c                            |  21 +-
 hw/arm/aspeed_coprocessor_common.c                 |   2 -
 hw/core/machine.c                                  |   2 +
 hw/gpio/pca9552.c                                  | 256 ++++--
 hw/gpio/pca9554.c                                  | 175 +++--
 hw/i2c/aspeed_i2c.c                                |  79 ++
 hw/misc/aspeed_hace.c                              | 461 ++++++++++-
 hw/misc/aspeed_scu.c                               |  20 +-
 hw/sensor/adc128d818.c                             | 696 +++++++++++++++++
 hw/ssi/aspeed_smc.c                                | 117 ++-
 hw/usb/hcd-ehci.c                                  | 214 ++++--
 tests/qtest/adc128d818-test.c                      | 856 +++++++++++++++++++++
 tests/qtest/aspeed-hace-utils.c                    | 693 +++++++++++++++++
 tests/qtest/aspeed-smc-utils.c                     | 294 ++++++-
 tests/qtest/aspeed_hace-test.c                     |  18 +
 tests/qtest/aspeed_smc-test.c                      |  71 +-
 tests/qtest/ast2700-hace-test.c                    |   9 +
 tests/qtest/ast2700-smc-test.c                     |  16 +
 tests/qtest/pca9552-test.c                         |  76 ++
 tests/qtest/pca9554-test.c                         | 223 ++++++
 tests/qtest/pca9555-test.c                         | 251 ++++++
 tests/unit/test-crypto-cipher.c                    | 240 ++++++
 crypto/cipher-gcrypt.c.inc                         | 101 +++
 crypto/cipher-gnutls.c.inc                         | 154 ++++
 crypto/cipher-nettle.c.inc                         | 128 +++
 hw/arm/Kconfig                                     |   7 +-
 hw/pci-host/Kconfig                                |   1 +
 hw/sensor/Kconfig                                  |   4 +
 hw/sensor/meson.build                              |   1 +
 hw/sensor/trace-events                             |   8 +
 hw/usb/trace-events                                |  26 +-
 tests/functional/aarch64/test_aspeed_ast2700a1.py  |  34 +-
 tests/functional/aarch64/test_aspeed_ast2700a2.py  |  34 +-
 tests/functional/aarch64/test_aspeed_ast2700fc.py  |  21 +-
 tests/functional/arm/test_aspeed_ast1030.py        |  12 +-
 tests/functional/arm/test_aspeed_ast1060.py        |  14 +-
 tests/functional/arm/test_aspeed_ast2500_sdk.py    |   8 +-
 .../functional/arm/test_aspeed_ast2500_sdk_515.py  |   8 +-
 tests/functional/arm/test_aspeed_ast2600_sdk.py    |   8 +-
 .../functional/arm/test_aspeed_ast2600_sdk_515.py  |   8 +-
 .../functional/arm/test_aspeed_ast2600_sdk_otp.py  |   8 +-
 tests/qtest/meson.build                            |   9 +-
 65 files changed, 5404 insertions(+), 468 deletions(-)
 create mode 100644 include/hw/sensor/adc128d818.h
 create mode 100644 hw/sensor/adc128d818.c
 create mode 100644 tests/qtest/adc128d818-test.c
 create mode 100644 tests/qtest/pca9554-test.c
 create mode 100644 tests/qtest/pca9555-test.c


Re: [PULL 00/83] aspeed queue
Posted by Richard Henderson 1 week, 6 days ago
On 8/11/26 09:28, Cédric Le Goater wrote:
> The following changes since commit 84f07211cc5b4fc6a371559bf8a5de4fb068e648:
> 
>    Update version for v11.1.0 release (2026-08-11 10:04:46 -0400)
> 
> are available in the Git repository at:
> 
>    https://github.com/legoater/qemu/ tags/pull-aspeed-20260811
> 
> for you to fetch changes up to 0375f6498eee6188089924bb766c653492ff8857:
> 
>    tests/qtest/aspeed-hace: Test the crypto command on the AST2700 (2026-08-11 18:25:58 +0200)
> 
> ----------------------------------------------------------------
> aspeed queue:
> 
> * Fixes missing Kconfig dependencies for Aspeed boards
> * Adds 64-bit addressing support to the EHCI USB controller model.
>    Enable it on the AST2700
> * Extends Aspeed SMC qtest coverage with fast-read, DOR and QOR
>    read modes
> * Introduces a separate Aspeed2700SCUState type and shares the SCUIO,
>    FMC and SCU instances across the AST2700 PSP, SSP and TSP
>    coprocessors
> * Adds Data FIFO-based flash access for the AST2700 FMC controller
> * Adds the ADC128D818 12-bit 8-channel ADC sensor device with tests,
>    wired up on the Anacapa board
> * Reworks the PCA9552/PCA9555 GPIO/LED driver: polarity inversion,
>    datasheet-conformant command handling, GPIO QOM properties, reset
>    via the Resettable interface, and extensive qtest coverage
> * Reworks the PCA9554 GPIO driver: output-to-input reflection,
>    PCA9536 support, pin direction property, and qtest coverage
> * Adds PCA9555 IO expanders and temperature sensors to the Catalina
>    board
> * Adds AST2700 I2C master buffer mode support
> * Updates ASPEED functional tests to SDK v11.03 and Zephyr SDK v03.08
> * Adds AES-GCM support to the QEMU crypto cipher layer (gcrypt,
>    nettle, gnutls backends) with unit tests
> * Adds crypto (AES) command emulation to the Aspeed HACE model:
>    direct access, scatter-gather, CTR, GCM modes, 64-bit DMA, with
>    qtest coverage on AST2500, AST2600, AST1030 and AST2700

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/11.2 as appropriate.

r~