[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200904112117.GC16609@8bytes.org>
Date: Fri, 4 Sep 2020 13:21:18 +0200
From: Joerg Roedel <joro@...tes.org>
To: Miles Chen <miles.chen@...iatek.com>
Cc: Rob Herring <robh+dt@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
iommu@...ts.linux-foundation.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, wsd_upstream@...iatek.com,
Yong Wu <yong.wu@...iatek.com>,
Chao Hao <chao.hao@...iatek.com>,
Yingjoe Chen <yingjoe.chen@...iatek.com>,
Mike Rapoport <rppt@...ux.ibm.com>,
David Hildenbrand <david@...hat.com>,
Christoph Hellwig <hch@....de>, Rob Herring <robh@...nel.org>
Subject: Re: [RESEND PATCHv5] iommu/mediatek: check 4GB mode by reading
infracfg
On Fri, Sep 04, 2020 at 06:40:38PM +0800, Miles Chen wrote:
> In previous discussion [1] and [2], 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.
>
> [1] https://lore.kernel.org/lkml/20200603161132.2441-1-miles.chen@mediatek.com/
> [2] https://lore.kernel.org/lkml/20200604080120.2628-1-miles.chen@mediatek.com/
> [3] https://lore.kernel.org/lkml/20200715205120.GA778876@bogus/
Applied, thanks.
Powered by blists - more mailing lists