From deb728adb9d4e8be1bdee8dd70579744cde3b678 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sun, 16 Jan 2022 18:57:31 +0900 Subject: [PATCH] m1n1.fw.asc: Invalidate DART after making new mappings Signed-off-by: Hector Martin --- proxyclient/m1n1/fw/asc/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxyclient/m1n1/fw/asc/__init__.py b/proxyclient/m1n1/fw/asc/__init__.py index 4cdf381f..5b708bd2 100644 --- a/proxyclient/m1n1/fw/asc/__init__.py +++ b/proxyclient/m1n1/fw/asc/__init__.py @@ -47,7 +47,10 @@ class StandardASC(ASC): def iomap(self, addr, size): if self.dart is None: return addr - return self.DVA_OFFSET | self.dart.iomap(0, addr, size) + dva = self.DVA_OFFSET | self.dart.iomap(0, addr, size) + + self.dart.invalidate_streams(1) + return dva def ioalloc(self, size): paddr = self.u.memalign(0x4000, size)