Re: [PATCH] iommu/mediatek: Use totalram_pages to setup enable_4GB
From: Christoph Hellwig <hch@infradead.org>
Date: 2020-06-04 15:06:51
Also in:
linux-iommu, linux-mediatek, lkml
From: Christoph Hellwig <hch@infradead.org>
Date: 2020-06-04 15:06:51
Also in:
linux-iommu, linux-mediatek, lkml
On Thu, Jun 04, 2020 at 01:32:40PM +0200, David Hildenbrand wrote:
Just a thought: If memory hotplug is applicable as well, you might either want to always assume data->enable_4GB, or handle memory hotplug events from the memory notifier, when new memory gets onlined (not sure how tricky that is).
We probably want a highest_pfn_possible() or similar API instead of having drivers poking into random VM internals. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel