linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ARM: bcm: Fix support for BCM2711 SoC which breaks other ARM platforms
@ 2019-12-14 22:04 H. Nikolaus Schaller
  2019-12-14 22:49 ` Florian Fainelli
  0 siblings, 1 reply; 3+ messages in thread
From: H. Nikolaus Schaller @ 2019-12-14 22:04 UTC (permalink / raw)
  To: Stefan Wahren, Florian Fainelli, Ray Jui, Scott Branden,
	bcm-kernel-feedback-list, Nicolas Saenz Julienne
  Cc: linux, Linux Kernel Mailing List, linux-rpi-kernel, arm-soc,
	Linux-OMAP, Tony Lindgren, letux-kernel, kernel,
	H. Nikolaus Schaller

commit 781fa0a95424 ("ARM: bcm: Add support for BCM2711 SoC")

breaks boot of many other platforms (e.g. OMAP or i.MX6) if
CONFIG_ARCH_BCM2835 is enabled in addition to some multiplatform
config (e.g. omap2plus_defconfig). The symptom is that the OMAP
based board does not show any activity beyond "Starting Kernel ..."
even with earlycon.

Reverting the mentioned commit makes it work again.

The real fix is to add the missing NULL sentinel to the
bcm2711_compat[] variable-length array.

Fixes: 781fa0a95424 ("ARM: bcm: Add support for BCM2711 SoC")
Acked-by: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/mach-bcm/bcm2711.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-bcm/bcm2711.c b/arch/arm/mach-bcm/bcm2711.c
index dbe296798647..fa0300d8c79d 100644
--- a/arch/arm/mach-bcm/bcm2711.c
+++ b/arch/arm/mach-bcm/bcm2711.c
@@ -13,6 +13,7 @@ static const char * const bcm2711_compat[] = {
 #ifdef CONFIG_ARCH_MULTI_V7
 	"brcm,bcm2711",
 #endif
+	NULL
 };
 
 DT_MACHINE_START(BCM2711, "BCM2711")
-- 
2.23.0


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

* Re: [PATCH v2] ARM: bcm: Fix support for BCM2711 SoC which breaks other ARM platforms
  2019-12-14 22:04 [PATCH v2] ARM: bcm: Fix support for BCM2711 SoC which breaks other ARM platforms H. Nikolaus Schaller
@ 2019-12-14 22:49 ` Florian Fainelli
  2019-12-15  7:48   ` H. Nikolaus Schaller
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Fainelli @ 2019-12-14 22:49 UTC (permalink / raw)
  To: H. Nikolaus Schaller, Stefan Wahren, Ray Jui, Scott Branden,
	bcm-kernel-feedback-list, Nicolas Saenz Julienne
  Cc: linux, Linux Kernel Mailing List, linux-rpi-kernel, arm-soc,
	Linux-OMAP, Tony Lindgren, letux-kernel, kernel



On 12/14/2019 2:04 PM, H. Nikolaus Schaller wrote:
> commit 781fa0a95424 ("ARM: bcm: Add support for BCM2711 SoC")
> 
> breaks boot of many other platforms (e.g. OMAP or i.MX6) if
> CONFIG_ARCH_BCM2835 is enabled in addition to some multiplatform
> config (e.g. omap2plus_defconfig). The symptom is that the OMAP
> based board does not show any activity beyond "Starting Kernel ..."
> even with earlycon.
> 
> Reverting the mentioned commit makes it work again.
> 
> The real fix is to add the missing NULL sentinel to the
> bcm2711_compat[] variable-length array.
> 
> Fixes: 781fa0a95424 ("ARM: bcm: Add support for BCM2711 SoC")
> Acked-by: Stefan Wahren <wahrenst@gmx.net>
> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>


This looks fine, I would just rephrase the commit subject as:

ARM: bcm: Add missing sentinel to bcm2711_compat[]

instead of indicating the breakage but not so much the fix, if that is
okay with you. And good catch, I will augment my local tests with a
basic multiplatform boot on several QEMU supported platforms.

> ---
>  arch/arm/mach-bcm/bcm2711.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-bcm/bcm2711.c b/arch/arm/mach-bcm/bcm2711.c
> index dbe296798647..fa0300d8c79d 100644
> --- a/arch/arm/mach-bcm/bcm2711.c
> +++ b/arch/arm/mach-bcm/bcm2711.c
> @@ -13,6 +13,7 @@ static const char * const bcm2711_compat[] = {
>  #ifdef CONFIG_ARCH_MULTI_V7
>  	"brcm,bcm2711",
>  #endif
> +	NULL
>  };
>  
>  DT_MACHINE_START(BCM2711, "BCM2711")
> 

-- 
Florian

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

* Re: [PATCH v2] ARM: bcm: Fix support for BCM2711 SoC which breaks other ARM platforms
  2019-12-14 22:49 ` Florian Fainelli
@ 2019-12-15  7:48   ` H. Nikolaus Schaller
  0 siblings, 0 replies; 3+ messages in thread
From: H. Nikolaus Schaller @ 2019-12-15  7:48 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: Stefan Wahren, Ray Jui, Scott Branden, bcm-kernel-feedback-list,
	Nicolas Saenz Julienne, linux, Linux Kernel Mailing List,
	linux-rpi-kernel, arm-soc, Linux-OMAP, Tony Lindgren,
	letux-kernel, kernel

Hi Florian,

> Am 14.12.2019 um 23:49 schrieb Florian Fainelli <f.fainelli@gmail.com>:
> 
> This looks fine, I would just rephrase the commit subject as:
> 
> ARM: bcm: Add missing sentinel to bcm2711_compat[]
> 
> instead of indicating the breakage but not so much the fix, if that is
> okay with you. 

Yes, is okay and indeed better.

> -- 
> Florian


BR and thanks,
Nikolaus


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

end of thread, other threads:[~2019-12-15  7:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-14 22:04 [PATCH v2] ARM: bcm: Fix support for BCM2711 SoC which breaks other ARM platforms H. Nikolaus Schaller
2019-12-14 22:49 ` Florian Fainelli
2019-12-15  7:48   ` H. Nikolaus Schaller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).