[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/18] aspeed/i2c: Fix DMA address mask
From: |
Cédric Le Goater |
Subject: |
[PULL 03/18] aspeed/i2c: Fix DMA address mask |
Date: |
Mon, 3 May 2021 07:25:45 +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>
Message-Id: <20210407171637.777743-4-clg@kaod.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
- [PULL 10/18] tests/acceptance: Test ast2600 machine, (continued)
- [PULL 10/18] tests/acceptance: Test ast2600 machine, Cédric Le Goater, 2021/05/03
- [PULL 11/18] hw/misc/aspeed_xdma: Add AST2600 support, Cédric Le Goater, 2021/05/03
- [PULL 04/18] aspeed/i2c: Rename DMA address space, Cédric Le Goater, 2021/05/03
- [PULL 18/18] aspeed: Add support for the quanta-q7l1-bmc board, Cédric Le Goater, 2021/05/03
- [PULL 05/18] hw/arm/aspeed: Do not sysbus-map mmio flash region directly, use alias, Cédric Le Goater, 2021/05/03
- [PULL 07/18] aspeed: Integrate HACE, Cédric Le Goater, 2021/05/03
- [PULL 12/18] aspeed/smc: Add a 'features' attribute to the object class, Cédric Le Goater, 2021/05/03
- [PULL 16/18] aspeed: Add support for the rainier-bmc board, Cédric Le Goater, 2021/05/03
- [PULL 09/18] tests/acceptance: Test ast2400 and ast2500 machines, Cédric Le Goater, 2021/05/03
- [PULL 08/18] tests/qtest: Add test for Aspeed HACE, Cédric Le Goater, 2021/05/03
- [PULL 03/18] aspeed/i2c: Fix DMA address mask,
Cédric Le Goater <=
- [PULL 01/18] aspeed/smc: Use the RAM memory region for DMAs, Cédric Le Goater, 2021/05/03
- [PULL 14/18] tests/qtest: Rename m25p80 test in aspeed_smc test, Cédric Le Goater, 2021/05/03
- [PULL 06/18] hw: Model ASPEED's Hash and Crypto Engine, Cédric Le Goater, 2021/05/03
- [PULL 02/18] aspeed/smc: Remove unused "sdram-base" property, Cédric Le Goater, 2021/05/03
- [PULL 17/18] hw/block: m25p80: Add support for mt25ql02g and mt25qu02g, Cédric Le Goater, 2021/05/03
- [PULL 13/18] aspeed/smc: Add extra controls to request DMA, Cédric Le Goater, 2021/05/03
- Re: [PULL 00/18] aspeed queue (v2), Peter Maydell, 2021/05/05