We can use pfn_to_page in realmode for other configs. Hence remove the
CONFIG_FLATMEM ifdef
Fixes: 8e0861fa3c4ed (powerpc: Prepare to support kernel handling of IOMMU map/unmap)
Cc: Alexey Kardashevskiy <redacted>
Signed-off-by: Aneesh Kumar K.V <redacted>
---
arch/powerpc/mm/init_64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
We can use pfn_to_page in realmode for other configs. Hence remove the
CONFIG_FLATMEM ifdef
For CONFIG_SPARSEMEM and CONFIG_DISCONTIGMEM and others (I am struggling to
find the full list :) )? Are you sure about that? If I recall correctly, at
the time realmode_pfn_to_page() could not work for all of them, what changed?
On Wednesday 28 June 2017 12:48 PM, Alexey Kardashevskiy wrote:
On 28/06/17 16:09, Aneesh Kumar K.V wrote:
quoted
We can use pfn_to_page in realmode for other configs. Hence remove the
CONFIG_FLATMEM ifdef
For CONFIG_SPARSEMEM and CONFIG_DISCONTIGMEM and others (I am struggling to
find the full list :) )? Are you sure about that? If I recall correctly, at
the time realmode_pfn_to_page() could not work for all of them, what changed?
That is one thing I wanted to check. Everything other than
SPARSEMEM_VMEMMAP should use linear mapping which can work with real
mode also right ? Or am i missing something ?
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2017-06-29 05:50:57
"Aneesh Kumar K.V" [off-list ref] writes:
On Wednesday 28 June 2017 12:48 PM, Alexey Kardashevskiy wrote:
quoted
On 28/06/17 16:09, Aneesh Kumar K.V wrote:
quoted
We can use pfn_to_page in realmode for other configs. Hence remove the
CONFIG_FLATMEM ifdef
For CONFIG_SPARSEMEM and CONFIG_DISCONTIGMEM and others (I am struggling to
find the full list :) )? Are you sure about that? If I recall correctly, at
the time realmode_pfn_to_page() could not work for all of them, what changed?
That is one thing I wanted to check. Everything other than
SPARSEMEM_VMEMMAP should use linear mapping which can work with real
mode also right ? Or am i missing something ?
I think that's right. But I'm going to make you test it anyway :)
cheers
On Wednesday 28 June 2017 12:48 PM, Alexey Kardashevskiy wrote:
quoted
On 28/06/17 16:09, Aneesh Kumar K.V wrote:
quoted
We can use pfn_to_page in realmode for other configs. Hence remove the
CONFIG_FLATMEM ifdef
For CONFIG_SPARSEMEM and CONFIG_DISCONTIGMEM and others (I am struggling to
find the full list :) )? Are you sure about that? If I recall correctly, at
the time realmode_pfn_to_page() could not work for all of them, what changed?
That is one thing I wanted to check. Everything other than
SPARSEMEM_VMEMMAP should use linear mapping which can work with real
mode also right ? Or am i missing something ?
I think that's right. But I'm going to make you test it anyway :)
Tested this by printing page->flags with FLATMEM, SPARSEMEM and
SPARSEMEM_VMEMMAP in kvm real mode handler.
-aneesh
From: Michael Ellerman <hidden> Date: 2017-07-27 12:37:17
On Wed, 2017-06-28 at 06:09:28 UTC, "Aneesh Kumar K.V" wrote:
We can use pfn_to_page in realmode for other configs. Hence remove the
CONFIG_FLATMEM ifdef
Fixes: 8e0861fa3c4ed (powerpc: Prepare to support kernel handling of IOMMU map/unmap)
Cc: Alexey Kardashevskiy <redacted>
Signed-off-by: Aneesh Kumar K.V <redacted>