From mboxrd@z Thu Jan 1 00:00:00 1970 From: nobuhiro1.iwamatsu@toshiba.co.jp (Nobuhiro Iwamatsu) Date: Tue, 7 May 2019 11:11:47 +0900 Subject: [cip-dev] [PATCH 4.19.y 02/29] iommu/ipmmu-vmsa: Modify ipmmu_slave_whitelist() to check SoC revisions In-Reply-To: References: <1556706143-11898-1-git-send-email-fabrizio.castro@bp.renesas.com> <1556706143-11898-3-git-send-email-fabrizio.castro@bp.renesas.com> <20190502212731.GB19728@amd> Message-ID: <20190507111147.6d952d70@fdyp522> To: cip-dev@lists.cip-project.org List-Id: cip-dev.lists.cip-project.org Hi, On Fri, 3 May 2019 09:34:56 +0000 Fabrizio Castro wrote: > Hello Pavel, > > Thank you for your feedback! > > > From: Pavel Machek > > Sent: 02 May 2019 22:28 > > Subject: Re: [cip-dev] [PATCH 4.19.y 02/29] iommu/ipmmu-vmsa: > > Modify ipmmu_slave_whitelist() to check SoC revisions > > > > Hi! > > > > > commit b7ee92c6ff0e023a473b2500d771f6bf504fcc1a upstream. > > > > > > Some R-Car Gen3 SoCs has hardware restrictions on the IPMMU. So, > > > to check whether this R-Car Gen3 SoC can use the IPMMU correctly, > > > this patch modifies the ipmmu_slave_whitelist(). > > > > > > Signed-off-by: Yoshihiro Shimoda > > > Reviewed-by: Geert > > > Uytterhoeven Reviewed-by: Simon Horman > > > Signed-off-by: Joerg Roedel > > > Signed-off-by: Fabrizio Castro > > > --- > > > drivers/iommu/ipmmu-vmsa.c | 34 > > > ++++++++++++++++++++++++++-------- 1 file changed, 26 > > > insertions(+), 8 deletions(-) > > > > > static int ipmmu_of_xlate(struct device *dev, > > > struct of_phandle_args *spec) > > > { > > > - /* For R-Car Gen3 use a white list to opt-in slave > > > devices */ > > > - if (soc_device_match(soc_rcar_gen3) > > > && !ipmmu_slave_whitelist(dev)) > > > + if (!ipmmu_slave_whitelist(dev)) > > > return -ENODEV; > > > > > > > I just want to make sure "soc_device_match(soc_rcar_gen3) &&" > > deletion is intentional here... > > It is. I wasn't sure about backporting patch > 807596491d33d016e420d217cf1350aef2d2b3f7, but It didn't seem to add > any value, what's your take on that? As you wrote, there are no changes that have an impact. But these these commits are like a set If I look at the content eatch commit. Best regards, Nobuhiro