mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* next-20240814: bcm2711-rpi-4-b boot failed
@ 2024-08-14 15:24 Naresh Kamboju
  2024-08-14 15:26 ` Naresh Kamboju
  0 siblings, 1 reply; 5+ messages in thread
From: Naresh Kamboju @ 2024-08-14 15:24 UTC (permalink / raw)
  To: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list, Linux ARM, lkft-triage, Linux Regressions
  Cc: Stefan Wahren, Florian Fainelli, krzk+dt, Rob Herring,
	Arnd Bergmann, Dan Carpenter, Anders Roxell

The arm64 kernel booting on bcm2711-rpi-4-b boot failed with today's Linux
next-20240814 tag. The boot failed with half boot log [1]

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

 GOOD: next-20240813
 BAD:  next-20240814

The first investigation show the following to changes and I have reverted the
following two commits and the boot test is back to pass [2].

$ git log --oneline  next-20240813..next-20240814
arch/arm64/boot/dts/broadcom/
  6e7b99d720da6 ARM: dts: bcm271x: add missing properties to local_intc
  eb81f43c901ff ARM: dts: bcm2837/bcm2712: adjust local intc node names

Links:
---
 Boot failed log:
  [1] https://lkft.validation.linaro.org/scheduler/job/7799601#L430
 Boot pass log after the reverts:
  [2] https://lkft.validation.linaro.org/scheduler/job/7799885#L440

metadata:
-------
  git_describe: next-20240814
  git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
  git_sha: 320eb81df4f6c1a1814fd02ebb4ba41eb80a3c7e
  kernel_version: 6.11.0-rc3
  toolchain: gcc-13
  artifact-location:
https://storage.tuxsuite.com/public/linaro/lkft/builds/2kdXLykPUNEquDyvXHZbubB5T4p/
  build-url: https://storage.tuxsuite.com/public/linaro/lkft/builds/2kdXLykPUNEquDyvXHZbubB5T4p/
  kernel-config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/2kdXLykPUNEquDyvXHZbubB5T4p/config
  build_name: gcc-13-lkftconfig-debug

--
Linaro LKFT
https://lkft.linaro.org

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

* Re: next-20240814: bcm2711-rpi-4-b boot failed
  2024-08-14 15:24 next-20240814: bcm2711-rpi-4-b boot failed Naresh Kamboju
@ 2024-08-14 15:26 ` Naresh Kamboju
  2024-08-14 16:19   ` Stefan Wahren
  0 siblings, 1 reply; 5+ messages in thread
From: Naresh Kamboju @ 2024-08-14 15:26 UTC (permalink / raw)
  To: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list, Linux ARM, lkft-triage, Linux Regressions
  Cc: Stefan Wahren, Florian Fainelli, krzk+dt, Rob Herring,
	Arnd Bergmann, Dan Carpenter, Anders Roxell

On Wed, 14 Aug 2024 at 20:54, Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
>
> The arm64 kernel booting on bcm2711-rpi-4-b boot failed with today's Linux
> next-20240814 tag. The boot failed with half boot log [1]
>
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
>
>  GOOD: next-20240813
>  BAD:  next-20240814
>
> The first investigation show the following to changes and I have reverted the
> following two commits and the boot test is back to pass [2].
>
> $ git log --oneline  next-20240813..next-20240814
> arch/arm64/boot/dts/broadcom/
>   6e7b99d720da6 ARM: dts: bcm271x: add missing properties to local_intc
>   eb81f43c901ff ARM: dts: bcm2837/bcm2712: adjust local intc node names
>

Anders bisected down to first bad commit as,
   6e7b99d720da ("ARM: dts: bcm271x: add missing properties to local_intc")

> Links:
> ---
>  Boot failed log:
>   [1] https://lkft.validation.linaro.org/scheduler/job/7799601#L430
>  Boot pass log after the reverts:
>   [2] https://lkft.validation.linaro.org/scheduler/job/7799885#L440
>
> metadata:
> -------
>   git_describe: next-20240814
>   git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
>   git_sha: 320eb81df4f6c1a1814fd02ebb4ba41eb80a3c7e
>   kernel_version: 6.11.0-rc3
>   toolchain: gcc-13
>   artifact-location:
> https://storage.tuxsuite.com/public/linaro/lkft/builds/2kdXLykPUNEquDyvXHZbubB5T4p/
>   build-url: https://storage.tuxsuite.com/public/linaro/lkft/builds/2kdXLykPUNEquDyvXHZbubB5T4p/
>   kernel-config:
> https://storage.tuxsuite.com/public/linaro/lkft/builds/2kdXLykPUNEquDyvXHZbubB5T4p/config
>   build_name: gcc-13-lkftconfig-debug
>
> --
> Linaro LKFT
> https://lkft.linaro.org

- Naresh

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

* Re: next-20240814: bcm2711-rpi-4-b boot failed
  2024-08-14 15:26 ` Naresh Kamboju
@ 2024-08-14 16:19   ` Stefan Wahren
  2024-08-14 19:48     ` Florian Fainelli
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Wahren @ 2024-08-14 16:19 UTC (permalink / raw)
  To: Naresh Kamboju,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list, Linux ARM, lkft-triage, Linux Regressions
  Cc: Florian Fainelli, krzk+dt, Rob Herring, Arnd Bergmann,
	Dan Carpenter, Anders Roxell

Hi Naresh,

Am 14.08.24 um 17:26 schrieb Naresh Kamboju:
> On Wed, 14 Aug 2024 at 20:54, Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
>> The arm64 kernel booting on bcm2711-rpi-4-b boot failed with today's Linux
>> next-20240814 tag. The boot failed with half boot log [1]
>>
>> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
>>
>>   GOOD: next-20240813
>>   BAD:  next-20240814
>>
>> The first investigation show the following to changes and I have reverted the
>> following two commits and the boot test is back to pass [2].
>>
>> $ git log --oneline  next-20240813..next-20240814
>> arch/arm64/boot/dts/broadcom/
>>    6e7b99d720da6 ARM: dts: bcm271x: add missing properties to local_intc
>>    eb81f43c901ff ARM: dts: bcm2837/bcm2712: adjust local intc node names
>>
> Anders bisected down to first bad commit as,
>     6e7b99d720da ("ARM: dts: bcm271x: add missing properties to local_intc")
thank you for the report and sorry about that mess. I don't why i was
under the impression they were harmless DT properties. I look into this,
so a revert is the proper solution for now.

Regards

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

* Re: next-20240814: bcm2711-rpi-4-b boot failed
  2024-08-14 16:19   ` Stefan Wahren
@ 2024-08-14 19:48     ` Florian Fainelli
  2024-08-14 20:50       ` Stefan Wahren
  0 siblings, 1 reply; 5+ messages in thread
From: Florian Fainelli @ 2024-08-14 19:48 UTC (permalink / raw)
  To: Stefan Wahren, Naresh Kamboju,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list, Linux ARM, lkft-triage, Linux Regressions
  Cc: krzk+dt, Rob Herring, Arnd Bergmann, Dan Carpenter, Anders Roxell

On 8/14/24 09:19, Stefan Wahren wrote:
> Hi Naresh,
> 
> Am 14.08.24 um 17:26 schrieb Naresh Kamboju:
>> On Wed, 14 Aug 2024 at 20:54, Naresh Kamboju 
>> <naresh.kamboju@linaro.org> wrote:
>>> The arm64 kernel booting on bcm2711-rpi-4-b boot failed with today's 
>>> Linux
>>> next-20240814 tag. The boot failed with half boot log [1]
>>>
>>> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
>>>
>>>   GOOD: next-20240813
>>>   BAD:  next-20240814
>>>
>>> The first investigation show the following to changes and I have 
>>> reverted the
>>> following two commits and the boot test is back to pass [2].
>>>
>>> $ git log --oneline  next-20240813..next-20240814
>>> arch/arm64/boot/dts/broadcom/
>>>    6e7b99d720da6 ARM: dts: bcm271x: add missing properties to local_intc
>>>    eb81f43c901ff ARM: dts: bcm2837/bcm2712: adjust local intc node names
>>>
>> Anders bisected down to first bad commit as,
>>     6e7b99d720da ("ARM: dts: bcm271x: add missing properties to 
>> local_intc")
> thank you for the report and sorry about that mess. I don't why i was
> under the impression they were harmless DT properties. I look into this,
> so a revert is the proper solution for now.

Without the 'interrupt-controller' of_irq_init() would not be picking up 
the interrupt-controller@7cd00000 node and it would not attempt to 
register the driver. We can see that the GIC is still the primary 
interrupt controller for that system:

[    0.000000] Root IRQ handler: gic_handle_irq

my suspicion here is that irq-bcm2836.c still wants to own the inter 
processor operations and calls set_smp_ipi_range() which then replaces 
what the GIC has installed, thus diverting all interrupts towards 
itself, when it should not, and that won't work as there is no 
coordination with the ARM GIC driver. Stefan do you know how the VPU 
decides between one interrupt controller versus the other, assuming 
there is even a choice offered to users? Is it via adding/removing the 
'interrupt-controller' property, or is it via the more conventional 
'status' property?

FWIW, I did changes back in the days to support the 7211 sister chip of 
2711:

https://lore.kernel.org/lkml/20191015185919.GA26464@bogus/T/

Dropping the patch for now, thanks!
-- 
Florian


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

* Re: next-20240814: bcm2711-rpi-4-b boot failed
  2024-08-14 19:48     ` Florian Fainelli
@ 2024-08-14 20:50       ` Stefan Wahren
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Wahren @ 2024-08-14 20:50 UTC (permalink / raw)
  To: Florian Fainelli, Naresh Kamboju,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list, Linux ARM, lkft-triage, Linux Regressions,
	kernel-list
  Cc: krzk+dt, Rob Herring, Arnd Bergmann, Dan Carpenter, Anders Roxell

Hi,

[add Raspberry Pi kernel list]

Am 14.08.24 um 21:48 schrieb Florian Fainelli:
> On 8/14/24 09:19, Stefan Wahren wrote:
>> Hi Naresh,
>>
>> Am 14.08.24 um 17:26 schrieb Naresh Kamboju:
>>> On Wed, 14 Aug 2024 at 20:54, Naresh Kamboju
>>> <naresh.kamboju@linaro.org> wrote:
>>>> The arm64 kernel booting on bcm2711-rpi-4-b boot failed with
>>>> today's Linux
>>>> next-20240814 tag. The boot failed with half boot log [1]
>>>>
>>>> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
>>>>
>>>>   GOOD: next-20240813
>>>>   BAD:  next-20240814
>>>>
>>>> The first investigation show the following to changes and I have
>>>> reverted the
>>>> following two commits and the boot test is back to pass [2].
>>>>
>>>> $ git log --oneline  next-20240813..next-20240814
>>>> arch/arm64/boot/dts/broadcom/
>>>>    6e7b99d720da6 ARM: dts: bcm271x: add missing properties to
>>>> local_intc
>>>>    eb81f43c901ff ARM: dts: bcm2837/bcm2712: adjust local intc node
>>>> names
>>>>
>>> Anders bisected down to first bad commit as,
>>>     6e7b99d720da ("ARM: dts: bcm271x: add missing properties to
>>> local_intc")
>> thank you for the report and sorry about that mess. I don't why i was
>> under the impression they were harmless DT properties. I look into this,
>> so a revert is the proper solution for now.
>
> Without the 'interrupt-controller' of_irq_init() would not be picking
> up the interrupt-controller@7cd00000 node and it would not attempt to
> register the driver. We can see that the GIC is still the primary
> interrupt controller for that system:
>
> [    0.000000] Root IRQ handler: gic_handle_irq
>
> my suspicion here is that irq-bcm2836.c still wants to own the inter
> processor operations and calls set_smp_ipi_range() which then replaces
> what the GIC has installed, thus diverting all interrupts towards
> itself, when it should not, and that won't work as there is no
> coordination with the ARM GIC driver. Stefan do you know how the VPU
> decides between one interrupt controller versus the other, assuming
> there is even a choice offered to users?
Unfortunately not, i hope someone from the Raspberry Pi guys can tell us.
> Is it via adding/removing the 'interrupt-controller' property, or is
> it via the more conventional 'status' property?
>
> FWIW, I did changes back in the days to support the 7211 sister chip
> of 2711:
>
> https://lore.kernel.org/lkml/20191015185919.GA26464@bogus/T/
Thanks for pointing out, now i better understand the complexity behind
it. So the missing properties were intended.
>
> Dropping the patch for now, thanks!


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

end of thread, other threads:[~2024-08-14 20:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-14 15:24 next-20240814: bcm2711-rpi-4-b boot failed Naresh Kamboju
2024-08-14 15:26 ` Naresh Kamboju
2024-08-14 16:19   ` Stefan Wahren
2024-08-14 19:48     ` Florian Fainelli
2024-08-14 20:50       ` Stefan Wahren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®