All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels
@ 2019-03-19  5:40 Jonathan Liu
  2019-03-21 17:05 ` [U-Boot] [linux-sunxi] " Jagan Teki
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Liu @ 2019-03-19  5:40 UTC (permalink / raw)
  To: u-boot

Old sunxi kernels fail to boot with ARMV7_LPAE enabled.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 arch/arm/cpu/armv7/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/cpu/armv7/Kconfig b/arch/arm/cpu/armv7/Kconfig
index 73d57a2aae..cdb7e402b4 100644
--- a/arch/arm/cpu/armv7/Kconfig
+++ b/arch/arm/cpu/armv7/Kconfig
@@ -53,7 +53,7 @@ config ARMV7_PSCI_NR_CPUS
 config ARMV7_LPAE
 	bool "Use LPAE page table format" if EXPERT
 	depends on CPU_V7A
-	default y if ARMV7_VIRT
+	default y if ARMV7_VIRT && !OLD_SUNXI_KERNEL_COMPAT
 	---help---
 	Say Y here to use the long descriptor page table format. This is
 	required if U-Boot runs in HYP mode.
-- 
2.21.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [U-Boot] [linux-sunxi] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels
  2019-03-19  5:40 [U-Boot] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels Jonathan Liu
@ 2019-03-21 17:05 ` Jagan Teki
  2019-03-21 21:01   ` Jonathan Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Jagan Teki @ 2019-03-21 17:05 UTC (permalink / raw)
  To: u-boot

On Tue, Mar 19, 2019 at 11:09 AM Jonathan Liu <net147@gmail.com> wrote:
>
> Old sunxi kernels fail to boot with ARMV7_LPAE enabled.

Any idea why? I don't have relevant stuff with to test this.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [linux-sunxi] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels
  2019-03-21 17:05 ` [U-Boot] [linux-sunxi] " Jagan Teki
@ 2019-03-21 21:01   ` Jonathan Liu
  2019-04-12  6:32     ` Jagan Teki
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Liu @ 2019-03-21 21:01 UTC (permalink / raw)
  To: u-boot

Hi Jagan,

On Fri., 22 Mar. 2019 at 4:05 am, Jagan Teki <jagan@amarulasolutions.com>
wrote:

> On Tue, Mar 19, 2019 at 11:09 AM Jonathan Liu <net147@gmail.com> wrote:
> >
> > Old sunxi kernels fail to boot with ARMV7_LPAE enabled.
>
> Any idea why? I don't have relevant stuff with to test this.
>
I don't know why. It failed to boot linux-sunxi 3.4.104 kernel on A20
OLinuXino-MICRO after updating from 2018.07 to 2018.09-rc1 and would hang
at "Starting kernel...".

I bisected the issue to:
https://git.denx.de/?p=u-boot.git;a=commit;h=d32e86bde8a31a49cf4a9b233ad91ecdfc96ba2a

No problems booting mainline kernel.

Thanks.

Regards,
Jonathan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [linux-sunxi] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels
  2019-03-21 21:01   ` Jonathan Liu
@ 2019-04-12  6:32     ` Jagan Teki
  2019-04-12 13:03       ` Mark Kettenis
  0 siblings, 1 reply; 6+ messages in thread
From: Jagan Teki @ 2019-04-12  6:32 UTC (permalink / raw)
  To: u-boot

On Fri, Mar 22, 2019 at 2:31 AM Jonathan Liu <net147@gmail.com> wrote:
>
> Hi Jagan,
>
> On Fri., 22 Mar. 2019 at 4:05 am, Jagan Teki <jagan@amarulasolutions.com> wrote:
>>
>> On Tue, Mar 19, 2019 at 11:09 AM Jonathan Liu <net147@gmail.com> wrote:
>> >
>> > Old sunxi kernels fail to boot with ARMV7_LPAE enabled.
>>
>> Any idea why? I don't have relevant stuff with to test this.
>
> I don't know why. It failed to boot linux-sunxi 3.4.104 kernel on A20 OLinuXino-MICRO after updating from 2018.07 to 2018.09-rc1 and would hang at "Starting kernel...".
>
> I bisected the issue to:
> https://git.denx.de/?p=u-boot.git;a=commit;h=d32e86bde8a31a49cf4a9b233ad91ecdfc96ba2a
>
> No problems booting mainline kernel.

Can you update full details of bug on the commit message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [linux-sunxi] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels
  2019-04-12  6:32     ` Jagan Teki
@ 2019-04-12 13:03       ` Mark Kettenis
  2019-04-12 20:56         ` U.Mutlu
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Kettenis @ 2019-04-12 13:03 UTC (permalink / raw)
  To: u-boot

> From: Jagan Teki <jagan@amarulasolutions.com>
> Date: Fri, 12 Apr 2019 12:02:06 +0530
> 
> On Fri, Mar 22, 2019 at 2:31 AM Jonathan Liu <net147@gmail.com> wrote:
> >
> > Hi Jagan,
> >
> > On Fri., 22 Mar. 2019 at 4:05 am, Jagan Teki <jagan@amarulasolutions.com> wrote:
> >>
> >> On Tue, Mar 19, 2019 at 11:09 AM Jonathan Liu <net147@gmail.com> wrote:
> >> >
> >> > Old sunxi kernels fail to boot with ARMV7_LPAE enabled.
> >>
> >> Any idea why? I don't have relevant stuff with to test this.
> >
> > I don't know why. It failed to boot linux-sunxi 3.4.104 kernel on A20 OLinuXino-MICRO after updating from 2018.07 to 2018.09-rc1 and would hang at "Starting kernel...".
> >
> > I bisected the issue to:
> > https://git.denx.de/?p=u-boot.git;a=commit;h=d32e86bde8a31a49cf4a9b233ad91ecdfc96ba2a
> >
> > No problems booting mainline kernel.
> 
> Can you update full details of bug on the commit message.

Technically I think the right thing to do would be disabling
ARMV7_VIRT as my understanding is that booting into HYP mode doesn't
work without LPAE support.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [linux-sunxi] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels
  2019-04-12 13:03       ` Mark Kettenis
@ 2019-04-12 20:56         ` U.Mutlu
  0 siblings, 0 replies; 6+ messages in thread
From: U.Mutlu @ 2019-04-12 20:56 UTC (permalink / raw)
  To: u-boot

Mark Kettenis wrote on 04/12/2019 03:03 PM:
>> From: Jagan Teki <jagan@amarulasolutions.com>
>> Date: Fri, 12 Apr 2019 12:02:06 +0530
>>
>> On Fri, Mar 22, 2019 at 2:31 AM Jonathan Liu <net147@gmail.com> wrote:
>>>
>>> Hi Jagan,
>>>
>>> On Fri., 22 Mar. 2019 at 4:05 am, Jagan Teki <jagan@amarulasolutions.com> wrote:
>>>>
>>>> On Tue, Mar 19, 2019 at 11:09 AM Jonathan Liu <net147@gmail.com> wrote:
>>>>>
>>>>> Old sunxi kernels fail to boot with ARMV7_LPAE enabled.
>>>>
>>>> Any idea why? I don't have relevant stuff with to test this.
>>>
>>> I don't know why. It failed to boot linux-sunxi 3.4.104 kernel on A20 OLinuXino-MICRO after updating from 2018.07 to 2018.09-rc1 and would hang at "Starting kernel...".
>>>
>>> I bisected the issue to:
>>> https://git.denx.de/?p=u-boot.git;a=commit;h=d32e86bde8a31a49cf4a9b233ad91ecdfc96ba2a
>>>
>>> No problems booting mainline kernel.
>>
>> Can you update full details of bug on the commit message.
>
> Technically I think the right thing to do would be disabling
> ARMV7_VIRT as my understanding is that booting into HYP mode doesn't
> work without LPAE support.

Some days ago I tried to disable HYP mode for SVC mode.
But with SVC the PSCI is not loading (u-boot bug?), and without PSCI
only the 1st core of the CPU gets used. I had documented the case here:
https://lists.denx.de/pipermail/u-boot/2019-April/364192.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-04-12 20:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-19  5:40 [U-Boot] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels Jonathan Liu
2019-03-21 17:05 ` [U-Boot] [linux-sunxi] " Jagan Teki
2019-03-21 21:01   ` Jonathan Liu
2019-04-12  6:32     ` Jagan Teki
2019-04-12 13:03       ` Mark Kettenis
2019-04-12 20:56         ` U.Mutlu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.