[PATCH v5] iommu/mediatek: check 4GB mode by reading infracfg
miles.chen at mediatek.com
Fri Sep 4 06:28:44 EDT 2020
On Fri, 2020-09-04 at 11:42 +0200, Joerg Roedel wrote:
> On Mon, Aug 31, 2020 at 06:56:39PM +0800, Miles Chen wrote:
> > In previous discussion  and , we found that it is risky to
> > use max_pfn or totalram_pages to tell if 4GB mode is enabled.
> > Check 4GB mode by reading infracfg register, remove the usage
> > of the un-exported symbol max_pfn.
> > This is a step towards building mtk_iommu as a kernel module.
> >  https://email@example.com/
> >  https://firstname.lastname@example.org/
> >  https://lore.kernel.org/lkml/20200715205120.GA778876@bogus/
> > Cc: Mike Rapoport <rppt at linux.ibm.com>
> > Cc: David Hildenbrand <david at redhat.com>
> > Cc: Yong Wu <yong.wu at mediatek.com>
> > Cc: Yingjoe Chen <yingjoe.chen at mediatek.com>
> > Cc: Christoph Hellwig <hch at lst.de>
> > Cc: Rob Herring <robh at kernel.org>
> > Cc: Matthias Brugger <matthias.bgg at gmail.com>
> > Signed-off-by: Miles Chen <miles.chen at mediatek.com>
> You forgot to add the tags here from v4, at least Matthias' Reviewed-by
> is missing. Please add the missing tags and resend.
Thanks for reminding. I'll add the tag and resend this patch ASAP.
More information about the linux-arm-kernel