[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 08/12] aspeed/smc: Calculate checksum on normal DMA
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PULL 08/12] aspeed/smc: Calculate checksum on normal DMA |
Date: |
Fri, 13 Sep 2019 16:49:48 +0100 |
From: Christian Svensson <address@hidden>
This patch adds the missing checksum calculation on normal DMA transfer.
According to the datasheet this is how the SMC should behave.
Verified on AST1250 that the hardware matches the behaviour.
Signed-off-by: Christian Svensson <address@hidden>
Reviewed-by: Joel Stanley <address@hidden>
Signed-off-by: Cédric Le Goater <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>
---
hw/ssi/aspeed_smc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/ssi/aspeed_smc.c b/hw/ssi/aspeed_smc.c
index 5c3436db5e8..9ffc7e01179 100644
--- a/hw/ssi/aspeed_smc.c
+++ b/hw/ssi/aspeed_smc.c
@@ -989,6 +989,7 @@ static void aspeed_smc_dma_rw(AspeedSMCState *s)
s->regs[R_DMA_FLASH_ADDR] += 4;
s->regs[R_DMA_DRAM_ADDR] += 4;
s->regs[R_DMA_LEN] -= 4;
+ s->regs[R_DMA_CHECKSUM] += data;
}
}
--
2.20.1
- [Qemu-devel] [PULL 00/12] target-arm queue, Peter Maydell, 2019/09/13
- [Qemu-devel] [PULL 03/12] aspeed: Remove unused SoC definitions, Peter Maydell, 2019/09/13
- [Qemu-devel] [PULL 02/12] aspeed: add a GPIO controller to the SoC, Peter Maydell, 2019/09/13
- [Qemu-devel] [PULL 04/12] aspeed: Use consistent typenames, Peter Maydell, 2019/09/13
- [Qemu-devel] [PULL 01/12] hw/gpio: Add basic Aspeed GPIO model for AST2400 and AST2500, Peter Maydell, 2019/09/13
- [Qemu-devel] [PULL 05/12] aspeed/smc: Add support for DMAs, Peter Maydell, 2019/09/13
- [Qemu-devel] [PULL 07/12] aspeed/smc: Inject errors in DMA checksum, Peter Maydell, 2019/09/13
- [Qemu-devel] [PULL 06/12] aspeed/smc: Add DMA calibration settings, Peter Maydell, 2019/09/13
- [Qemu-devel] [PULL 08/12] aspeed/smc: Calculate checksum on normal DMA,
Peter Maydell <=
- [Qemu-devel] [PULL 10/12] aspeed/scu: Introduce a aspeed_scu_get_apb_freq() routine, Peter Maydell, 2019/09/13
- [Qemu-devel] [PULL 11/12] atomic_template: fix indentation in GEN_ATOMIC_HELPER, Peter Maydell, 2019/09/13
- [Qemu-devel] [PULL 09/12] aspeed/scu: Introduce per-SoC SCU types, Peter Maydell, 2019/09/13
- [Qemu-devel] [PULL 12/12] qemu-ga: Convert invocation documentation to rST, Peter Maydell, 2019/09/13
- Re: [Qemu-devel] [PULL 12/12] qemu-ga: Convert invocation documentation to rST, Eric Blake, 2019/09/18
- Re: [Qemu-devel] [PULL 12/12] qemu-ga: Convert invocation documentation to rST, Alex Bennée, 2019/09/19
- Re: [Qemu-devel] [PULL 12/12] qemu-ga: Convert invocation documentation to rST, Peter Maydell, 2019/09/19
- Re: [Qemu-devel] [PULL 12/12] qemu-ga: Convert invocation documentation to rST, Eric Blake, 2019/09/19
- Re: [Qemu-devel] [PULL 12/12] qemu-ga: Convert invocation documentation to rST, Peter Maydell, 2019/09/19
- Re: [Qemu-devel] [PULL 12/12] qemu-ga: Convert invocation documentation to rST, Eric Blake, 2019/09/19