Any idea how to fix ipipe failing to compile with ARM LPAE enabled?
Any idea how to fix ipipe to not cause a linking error when LPAE is enabled on arm?
I see the function __ipipe_pin_range_globally is inside an ifdef block that says essentially:
#if !IPIPE
define __ipipe_pin_range_globally as do nothing
#else
#if !LPAE
define __ipipe_pin_range_globally function
#endif
#endif
So if IPIPE and LPAE are both true, then the function is never defined.
This is in arch/arm/mm/fault.c
Signature · 1 line
Len Sorensen
Quoted 12 lines · Lennart Sorensen
Any idea how to fix ipipe to not cause a linking error when LPAE is enabled on arm?
I see the function
__ipipe_pin_range_globallyis inside an ifdef block that says essentially:#if !IPIPE
define__ipipe_pin_range_globallyas do nothing
#else
#if !LPAE
define__ipipe_pin_range_globallyfunction
#endif
#endif
Quoted 4 lines
So if IPIPE and LPAE are both true, then the function is never defined.
This is in
arch/arm/mm/fault.c
I do not believe this is intentional. That being said, the Linux code in the #ifdef is not reassuring: exception handlers are not registered when the kernel is compiled with LPAE, which could mean that exceptions are used for LPAE when compiled with LPAE. If this is the case, then LPAE should not be enabled, otherwise your applications will not stay in primary mode when these faults happen. How much RAM do you have, can you really test LPAE ?
Signature · 1 line
Gilles.
Quoted 17 lines · Gilles Chanteperdrix
Quoted 12 lines · Lennart Sorensen
Any idea how to fix ipipe to not cause a linking error when LPAE is enabled on arm?
I see the function
__ipipe_pin_range_globallyis inside an ifdef block that says essentially:#if !IPIPE
define__ipipe_pin_range_globallyas do nothing
#else
#if !LPAE
define__ipipe_pin_range_globallyfunction
#endif
#endifQuoted 4 lines
So if IPIPE and LPAE are both true, then the function is never defined.
This is in
arch/arm/mm/fault.c
Quoted 7 lines
I do not believe this is intentional. That being said, the Linux code in the #ifdef is not reassuring: exception handlers are not registered when the kernel is compiled with LPAE, which could mean that exceptions are used for LPAE when compiled with LPAE. If this is the case, then LPAE should not be enabled, otherwise your applications will not stay in primary mode when these faults happen. How much RAM do you have, can you really test LPAE ?
No, I do not think that LPAE uses exceptions. You can try moving the #endif at the bottom of the file to above the #ifdef CONFIG_IPIPE.
Quoted 1 line
Signature · 1 line
Gilles.
Quoted 2 lines
No, I do not think that LPAE uses exceptions. You can try moving the #endif at the bottom of the file to above the #ifdef
CONFIG_IPIPE.
I did try that, and it did compile. Never did boot, although I think I may need to enable hypervisor mode in the boot loader before it will boot. I will experiment some more.
Signature · 1 line
Len Sorensen
Quoted 6 lines · Lennart Sorensen
Quoted 2 lines
No, I do not think that LPAE uses exceptions. You can try moving the #endif at the bottom of the file to above the #ifdef
CONFIG_IPIPE.I did try that, and it did compile. Never did boot, although I think I may need to enable hypervisor mode in the boot loader before it will boot. I will experiment some more.
Does the kernel configured without LPAE boot?
Signature · 1 line
Gilles.
Quoted 1 line · Gilles Chanteperdrix
Does the kernel configured without LPAE boot?
Yes. If I enable KVM (and hence LPAE), I get no console output at all. I don't think I tried LPAE without KVM yet. Maybe I should. I think I will finish moving from 3.12 to 3.14 first though.
Signature · 1 line
Len Sorensen
Quoted 17 lines · Gilles Chanteperdrix
Quoted 12 lines · Lennart Sorensen
Any idea how to fix ipipe to not cause a linking error when LPAE is enabled on arm?
I see the function
__ipipe_pin_range_globallyis inside an ifdef block that says essentially:#if !IPIPE
define__ipipe_pin_range_globallyas do nothing
#else
#if !LPAE
define__ipipe_pin_range_globallyfunction
#endif
#endifQuoted 4 lines
So if IPIPE and LPAE are both true, then the function is never defined.
This is in
arch/arm/mm/fault.c
Quoted 7 lines
I do not believe this is intentional. That being said, the Linux code in the #ifdef is not reassuring: exception handlers are not registered when the kernel is compiled with LPAE, which could mean that exceptions are used for LPAE when compiled with LPAE. If this is the case, then LPAE should not be enabled, otherwise your applications will not stay in primary mode when these faults happen. How much RAM do you have, can you really test LPAE ?
LPAE is required on arm to enable KVM, which we want to experiment with. Don't need it for the ram quantity.
Signature · 1 line
Len Sorensen