xen/arch/arm/gic-v3-its.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
From: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
From: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
There is no need to invalidate cache entry because we just wrote that
memory. So it is guaranteed that cache entry is valid.
But we need to clean (flush) cache line to be sure that ITS sees
command written into the memory.
Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Signed-off-by: Daisuke Nishimura <nishimura@valinux.co.jp>
---
(cherry picked from commit fe7142bca56b5c8c8109f581444f89ae09b7544f xen-troops)
---
xen/arch/arm/gic-v3-its.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/xen/arch/arm/gic-v3-its.c b/xen/arch/arm/gic-v3-its.c
index 325835b0ad..dc44666233 100644
--- a/xen/arch/arm/gic-v3-its.c
+++ b/xen/arch/arm/gic-v3-its.c
@@ -207,8 +207,7 @@ static int its_send_command(struct host_its *hw_its, const void *its_cmd)
memcpy(hw_its->cmd_buf + writep, its_cmd, ITS_CMD_SIZE);
if ( hw_its->flags & HOST_ITS_FLUSH_CMD_QUEUE )
- clean_and_invalidate_dcache_va_range(hw_its->cmd_buf + writep,
- ITS_CMD_SIZE);
+ clean_dcache_va_range(hw_its->cmd_buf + writep, ITS_CMD_SIZE);
else
dsb(ishst);
--
2.43.0
I'm sorry that the 'From:' lines are duplicate. I will resend a correct patch later. On Tue, 17 Nov 2026 11:45:18 +0900 Daisuke Nishimura <nishimura@valinux.co.jp> wrote: > From: Volodymyr Babchuk <volodymyr_babchuk@epam.com> > > From: Volodymyr Babchuk <volodymyr_babchuk@epam.com> > > There is no need to invalidate cache entry because we just wrote that > memory. So it is guaranteed that cache entry is valid. > > But we need to clean (flush) cache line to be sure that ITS sees > command written into the memory. > > Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com> > Signed-off-by: Daisuke Nishimura <nishimura@valinux.co.jp> > --- > (cherry picked from commit fe7142bca56b5c8c8109f581444f89ae09b7544f > xen-troops) --- > xen/arch/arm/gic-v3-its.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/xen/arch/arm/gic-v3-its.c b/xen/arch/arm/gic-v3-its.c > index 325835b0ad..dc44666233 100644 > --- a/xen/arch/arm/gic-v3-its.c > +++ b/xen/arch/arm/gic-v3-its.c > @@ -207,8 +207,7 @@ static int its_send_command(struct host_its > *hw_its, const void *its_cmd) > memcpy(hw_its->cmd_buf + writep, its_cmd, ITS_CMD_SIZE); > if ( hw_its->flags & HOST_ITS_FLUSH_CMD_QUEUE ) > - clean_and_invalidate_dcache_va_range(hw_its->cmd_buf + > writep, > - ITS_CMD_SIZE); > + clean_dcache_va_range(hw_its->cmd_buf + writep, > ITS_CMD_SIZE); else > dsb(ishst); >
© 2016 - 2026 Red Hat, Inc.