Hello Oleksandr-san, > From: Oleksandr Tyshchenko, Sent: Sunday, November 28, 2021 2:52 AM > > From: Oleksandr Tyshchenko <[email protected]> > > This is a non-verbatim port of corresponding Linux upsteam commit: > 3667c9978b2911dc1ded77f5971df477885409c4 > > Original commit message: > commit 3667c9978b2911dc1ded77f5971df477885409c4 > Author: Yoshihiro Shimoda <[email protected]> > 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 <[email protected]> > Reviewed-by: Geert Uytterhoeven <[email protected]> > Reviewed-by: Niklas Söderlund <[email protected]> > Signed-off-by: Joerg Roedel <[email protected]> > > ********** > > 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 <[email protected]>
Thank you for the patch! Reviewed-by: Yoshihiro Shimoda <[email protected]> Best regards, Yoshihiro Shimoda
