[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/24] aspeed/i2c: Fix DMA address mask
From: |
Cédric Le Goater |
Subject: |
[PATCH 03/24] aspeed/i2c: Fix DMA address mask |
Date: |
Wed, 7 Apr 2021 19:16:16 +0200 |
The RAM memory region is now used for DMAs accesses instead of the
memory address space region. Mask off the top bits of the DMA address
to reflect this change.
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
hw/i2c/aspeed_i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c
index 518a3f5c6f9d..e7133528899f 100644
--- a/hw/i2c/aspeed_i2c.c
+++ b/hw/i2c/aspeed_i2c.c
@@ -601,7 +601,7 @@ static void aspeed_i2c_bus_write(void *opaque, hwaddr
offset,
break;
}
- bus->dma_addr = value & 0xfffffffc;
+ bus->dma_addr = value & 0x3ffffffc;
break;
case I2CD_DMA_LEN:
--
2.26.3
- [PATCH 22/24] hw/misc: Add Infineon DPS310 sensor model, (continued)
- [PATCH 22/24] hw/misc: Add Infineon DPS310 sensor model, Cédric Le Goater, 2021/04/07
- [PATCH 08/24] tests/qtest: Add test for Aspeed HACE, Cédric Le Goater, 2021/04/07
- [PATCH 09/24] aspeed: Add Scater-Gather support for HACE Hash, Cédric Le Goater, 2021/04/07
- [PATCH 07/24] aspeed: Integrate HACE, Cédric Le Goater, 2021/04/07
- [PATCH 05/24] hw/arm/aspeed: Do not sysbus-map mmio flash region directly, use alias, Cédric Le Goater, 2021/04/07
- [PATCH 10/24] tests: Aspeed HACE Scatter-Gather tests, Cédric Le Goater, 2021/04/07
- [PATCH 20/24] aspeed: Emulate the AST2600A3, Cédric Le Goater, 2021/04/07
- [PATCH 03/24] aspeed/i2c: Fix DMA address mask,
Cédric Le Goater <=
- [PATCH 12/24] tests/acceptance: Test ast2600 machine, Cédric Le Goater, 2021/04/07
- [PATCH 01/24] aspeed/smc: Use the RAM memory region for DMAs, Cédric Le Goater, 2021/04/07
- [PATCH 13/24] hw/misc/aspeed_xdma: Add AST2600 support, Cédric Le Goater, 2021/04/07
- [PATCH 04/24] aspeed/i2c: Rename DMA address space, Cédric Le Goater, 2021/04/07