Re: [PATCH] mm/memblock: export max_pfn for kernel modules

2020-06-03 Thread Miles Chen
On Wed, 2020-06-03 at 18:16 +0200, David Hildenbrand wrote: > On 03.06.20 18:11, Miles Chen wrote: > > max_pfn is uesd to get the highest pfn in the system. Drivers like > > drivers/iommu/mtk_iommu.c checks max_pfn to see if it should enable > > its "4GB mode". > > > > This patch exports the

Re: [PATCH] mm/memblock: export max_pfn for kernel modules

2020-06-03 Thread Miles Chen
On Wed, 2020-06-03 at 20:06 +0300, Mike Rapoport wrote: > On Thu, Jun 04, 2020 at 12:11:32AM +0800, Miles Chen wrote: > > max_pfn is uesd to get the highest pfn in the system. Drivers like > > drivers/iommu/mtk_iommu.c checks max_pfn to see if it should enable > > its "4GB mode". > > > > This

Re: [PATCH] mm/memblock: export max_pfn for kernel modules

2020-06-03 Thread Mike Rapoport
On Thu, Jun 04, 2020 at 12:11:32AM +0800, Miles Chen wrote: > max_pfn is uesd to get the highest pfn in the system. Drivers like > drivers/iommu/mtk_iommu.c checks max_pfn to see if it should enable > its "4GB mode". > > This patch exports the max_pfn symbol, so we can build the driver as > a

Re: [PATCH] mm/memblock: export max_pfn for kernel modules

2020-06-03 Thread David Hildenbrand
On 03.06.20 18:11, Miles Chen wrote: > max_pfn is uesd to get the highest pfn in the system. Drivers like > drivers/iommu/mtk_iommu.c checks max_pfn to see if it should enable > its "4GB mode". > > This patch exports the max_pfn symbol, so we can build the driver as > a kernel module. Please add

[PATCH] mm/memblock: export max_pfn for kernel modules

2020-06-03 Thread Miles Chen
max_pfn is uesd to get the highest pfn in the system. Drivers like drivers/iommu/mtk_iommu.c checks max_pfn to see if it should enable its "4GB mode". This patch exports the max_pfn symbol, so we can build the driver as a kernel module. Signed-off-by: Miles Chen --- mm/memblock.c | 1 + 1 file