Hello Oleksandr-san, > From: Oleksandr Tyshchenko, Sent: Sunday, November 28, 2021 2:52 AM > > From: Oleksandr Tyshchenko <oleksandr_tyshche...@epam.com> > > This is a non-verbatim port of corresponding Linux upsteam commit: > 3667c9978b2911dc1ded77f5971df477885409c4 > > Original commit message: > commit 3667c9978b2911dc1ded77f5971df477885409c4 > Author: Yoshihiro Shimoda <yoshihiro.shimoda...@renesas.com> > Date: Wed Nov 6 11:35:49 2019 +0900 > > iommu/ipmmu-vmsa: Add helper functions for "uTLB" registers > > Since we will have changed memory mapping of the IPMMU in the future, > This patch adds helper functions ipmmu_utlb_reg() and > ipmmu_imu{asid,ctr}_write() for "uTLB" registers. No behavior change. > > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda...@renesas.com> > Reviewed-by: Geert Uytterhoeven <geert+rene...@glider.be> > Reviewed-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se> > Signed-off-by: Joerg Roedel <jroe...@suse.de> > > ********** > > This is a prereq work needed to add support for S4 series easily > in the future. > > Besides changes done in the original commit, we also need to introduce > ipmmu_imuctr_read() since Xen driver contains an additional logic in > ipmmu_utlb_enable() to prevent the use cases where devices which use > the same micro-TLB are assigned to different Xen domains. > > No change in behavior. > > Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshche...@epam.com>
Thank you for the patch! Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda...@renesas.com> Best regards, Yoshihiro Shimoda