aspeed: Improve error handling and fix DMA issues
Status from this message: Applied to aspeed-next.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 3 repliesApplied
- v13 patches 5 repliesSuperseded
Changes in v2 from the cover letter
- v1 was taking into account patch :
https://lore.kernel.org/all/[email protected]
Rebased on upstream
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | hw/ssi/aspeed_smc: Convert mem ops to read/write_with_attrs for error handlinghw/ | +28 | 0 replies | |
| 2/3 | ftgmac100: Improve DMA error handlinghw/ | +8 | 2 replies | |
| 3/3 | hw/i2c/aspeed_i2c: Remove asserthw/ | +0 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Jamin Lin | Philippe Mathieu-Daudé |
|---|---|---|
| 1/3 | R-b | |
| 2/3 | R-b | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] aspeed: Improve error handling and fix DMA issues
Hello,
This series addresses several error handling issues in Aspeed device models that could lead to guest-triggerable denial of service or incorrect behavior.
The first two patches improve DMA error handling by properly propagating memory transaction errors to the guest. The aspeed_smc patch converts memory operations to use read/write_with_attrs to return MEMTX_ERROR on invalid conditions, while the ftgmac100 patch checks DMA operation return values.
The third patch fixes an incorrect assertion in the aspeed_i2c model that could be triggered when firmware uses the RX_BUF_LEN_W1T bit to program DMA length fields separately, which is valid per the Aspeed datasheet.
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/3335
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/3315
Thanks,
C.
Changes in v2:
- v1 was taking into account patch :
https://lore.kernel.org/all/[email protected]
Rebased on upstream
Cédric Le Goater (3):
hw/ssi/aspeed_smc: Convert mem ops to read/write_with_attrs for error
handling
ftgmac100: Improve DMA error handling
hw/i2c/aspeed_i2c: Remove assert
hw/i2c/aspeed_i2c.c | 1 - hw/net/ftgmac100.c | 10 +++++++-- hw/ssi/aspeed_smc.c | 49 ++++++++++++++++++++++++++------------------- 3 files changed, 36 insertions(+), 24 deletions(-)
Signature · 1 line
2.53.0