Skip to content

aspeed/smc: fix data corruption on witherspoon machines

Cédric Le Goater qemu-arm qemu-devel 1 version Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2aspeed/smc: Add some tracingMakefile.objs hw/ssi/aspeed_smc.c hw/ssi/trace-events+27 -03 replies
2/2aspeed/smc: Fix User mode select/unselect schemehw/ssi/aspeed_smc.c hw/ssi/trace-events+24 -161 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndrew JefferyJoel StanleyPhilippe Mathieu-Daudé
1/2R-b R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] aspeed/smc: fix data corruption on witherspoon machines

Hello,

We have been seeing a squashfs corruption on the witherspoon-bmc machine for quite some time. It boots but quickly after boot corruption errors start to fill the console. This machine has two BMC chips with UBIfs on them. The romulus-bmc machine has a similar problem when both PNOR are enabled.

After some investigation, it appeared that the SPI transfers on the two chips were getting mixed and after more investigation, the User mode select/unselect scheme of the Aspeed SMC model proved to be broken. It's been there since the right beginning of the model. Here is a fix.

Kudos to Andrew J. for the time he spent on this and Andrew G. for his patience.

I pushed the code on my github branch aspeed-5.0 for more testing.

Thanks,

C.

Cédric Le Goater (2):
aspeed/smc: Add some tracing
aspeed/smc: Fix User mode select/unselect scheme

 Makefile.objs       |  1 +
 hw/ssi/aspeed_smc.c | 56 ++++++++++++++++++++++++++++++++-------------
 hw/ssi/trace-events | 10 ++++++++
 3 files changed, 51 insertions(+), 16 deletions(-)
 create mode 100644 hw/ssi/trace-events
Signature · 1 line
2.21.1