All of lore.kernel.org
 help / color / mirror / Atom feed
* Regression: Kirkwood fails to boot because of bf35706f3d0929b
@ 2015-04-29 14:05 Andrew Lunn
  2015-04-29 14:37 ` Ard Biesheuvel
  2015-04-29 14:56 ` [PATCH] ARM: proc-feroceon: Fix feroceon_proc_info macro Andrew Lunn
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Lunn @ 2015-04-29 14:05 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Ard

It seems as thought all Kirkwood boards are dead in v4.1-rc1. They
fail to boot with the message:

Starting kernel ...                                                             
                                                                                
Uncompressing Linux... done, booting the kernel.                                
                                                                                
Error: unrecognized/unsupported processor variant (0x56251311).

With a bit of testing, Ezequiel and Florian have found the guilty
commit is:

bf35706f3d09 ("ARM: 8314/1: replace PROCINFO embedded branch with relative offset")

Author: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Date:   Wed Mar 18 07:29:32 2015 +0100

    ARM: 8314/1: replace PROCINFO embedded branch with relative offset
    
    This patch replaces the 'branch to setup()' instructions embedded
    in the PROCINFO structs with the offset to that setup function
    relative to the base of the struct. This preserves the position
    independent nature of that field, but uses a data item rather
    than an instruction.
    
    This is mainly done to prevent linker failures on large kernels,
    where the setup function is out of reach for the branch.


Kirkwood uses arch/arm/mm/proc-feroceon.S.

Please can you have this patch either fixed or reverted. Come by
#mvlinux if you want to chat with us, ask for testing, etc.

Thanks
	Andrew

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

* Regression: Kirkwood fails to boot because of bf35706f3d0929b
  2015-04-29 14:05 Regression: Kirkwood fails to boot because of bf35706f3d0929b Andrew Lunn
@ 2015-04-29 14:37 ` Ard Biesheuvel
  2015-04-29 14:56 ` [PATCH] ARM: proc-feroceon: Fix feroceon_proc_info macro Andrew Lunn
  1 sibling, 0 replies; 6+ messages in thread
From: Ard Biesheuvel @ 2015-04-29 14:37 UTC (permalink / raw)
  To: linux-arm-kernel

On 29 April 2015 at 16:05, Andrew Lunn <andrew@lunn.ch> wrote:
> Hi Ard
>
> It seems as thought all Kirkwood boards are dead in v4.1-rc1. They
> fail to boot with the message:
>
> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel.
>
> Error: unrecognized/unsupported processor variant (0x56251311).
>
> With a bit of testing, Ezequiel and Florian have found the guilty
> commit is:
>
> bf35706f3d09 ("ARM: 8314/1: replace PROCINFO embedded branch with relative offset")
>
> Author: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Date:   Wed Mar 18 07:29:32 2015 +0100
>
>     ARM: 8314/1: replace PROCINFO embedded branch with relative offset
>
>     This patch replaces the 'branch to setup()' instructions embedded
>     in the PROCINFO structs with the offset to that setup function
>     relative to the base of the struct. This preserves the position
>     independent nature of that field, but uses a data item rather
>     than an instruction.
>
>     This is mainly done to prevent linker failures on large kernels,
>     where the setup function is out of reach for the branch.
>
>
> Kirkwood uses arch/arm/mm/proc-feroceon.S.
>
> Please can you have this patch either fixed or reverted. Come by
> #mvlinux if you want to chat with us, ask for testing, etc.
>

Apologies for the breakage. Does this fix it?

diff --git a/arch/arm/mm/proc-feroceon.S b/arch/arm/mm/proc-feroceon.S
index e494d6d6acbe..92e08bf37aad 100644
--- a/arch/arm/mm/proc-feroceon.S
+++ b/arch/arm/mm/proc-feroceon.S
@@ -602,7 +602,6 @@ __\name\()_proc_info:
                PMD_SECT_AP_WRITE | \
                PMD_SECT_AP_READ
        initfn  __feroceon_setup, __\name\()_proc_info
-       .long __feroceon_setup
        .long   cpu_arch_name
        .long   cpu_elf_name
        .long   HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP


Regards,
Ard.

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

* [PATCH] ARM: proc-feroceon: Fix feroceon_proc_info macro
  2015-04-29 14:05 Regression: Kirkwood fails to boot because of bf35706f3d0929b Andrew Lunn
  2015-04-29 14:37 ` Ard Biesheuvel
@ 2015-04-29 14:56 ` Andrew Lunn
  2015-04-29 15:05   ` Ard Biesheuvel
                     ` (2 more replies)
  1 sibling, 3 replies; 6+ messages in thread
From: Andrew Lunn @ 2015-04-29 14:56 UTC (permalink / raw)
  To: linux-arm-kernel

bf35706f3d09 ("ARM: 8314/1: replace PROCINFO embedded branch with
relative offset") broke booting for Kirkwood. The kernel would say:

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported processor variant (0x56251311).

Fix it by removing the extraneous .long __feroceon_setup from the
feroceon_proc_info macro.

Reported-by: Florian Fainelli <f.fainelli@gmail.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Fixes: bf35706f3d09 ("ARM: 8314/1: replace PROCINFO embedded branch with relative offset")
---
 arch/arm/mm/proc-feroceon.S | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/mm/proc-feroceon.S b/arch/arm/mm/proc-feroceon.S
index e494d6d6acbe..92e08bf37aad 100644
--- a/arch/arm/mm/proc-feroceon.S
+++ b/arch/arm/mm/proc-feroceon.S
@@ -602,7 +602,6 @@ __\name\()_proc_info:
 		PMD_SECT_AP_WRITE | \
 		PMD_SECT_AP_READ
 	initfn	__feroceon_setup, __\name\()_proc_info
-	.long __feroceon_setup
 	.long	cpu_arch_name
 	.long	cpu_elf_name
 	.long	HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
-- 
2.1.4

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

* [PATCH] ARM: proc-feroceon: Fix feroceon_proc_info macro
  2015-04-29 14:56 ` [PATCH] ARM: proc-feroceon: Fix feroceon_proc_info macro Andrew Lunn
@ 2015-04-29 15:05   ` Ard Biesheuvel
  2015-04-29 16:33   ` Florian Fainelli
  2015-05-02 19:35   ` Aaro Koskinen
  2 siblings, 0 replies; 6+ messages in thread
From: Ard Biesheuvel @ 2015-04-29 15:05 UTC (permalink / raw)
  To: linux-arm-kernel

On 29 April 2015 at 16:56, Andrew Lunn <andrew@lunn.ch> wrote:
> bf35706f3d09 ("ARM: 8314/1: replace PROCINFO embedded branch with
> relative offset") broke booting for Kirkwood. The kernel would say:
>
> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel.
>
> Error: unrecognized/unsupported processor variant (0x56251311).
>
> Fix it by removing the extraneous .long __feroceon_setup from the
> feroceon_proc_info macro.
>
> Reported-by: Florian Fainelli <f.fainelli@gmail.com>
> Suggested-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Fixes: bf35706f3d09 ("ARM: 8314/1: replace PROCINFO embedded branch with relative offset")

Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>


> ---
>  arch/arm/mm/proc-feroceon.S | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/arch/arm/mm/proc-feroceon.S b/arch/arm/mm/proc-feroceon.S
> index e494d6d6acbe..92e08bf37aad 100644
> --- a/arch/arm/mm/proc-feroceon.S
> +++ b/arch/arm/mm/proc-feroceon.S
> @@ -602,7 +602,6 @@ __\name\()_proc_info:
>                 PMD_SECT_AP_WRITE | \
>                 PMD_SECT_AP_READ
>         initfn  __feroceon_setup, __\name\()_proc_info
> -       .long __feroceon_setup
>         .long   cpu_arch_name
>         .long   cpu_elf_name
>         .long   HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
> --
> 2.1.4
>

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

* [PATCH] ARM: proc-feroceon: Fix feroceon_proc_info macro
  2015-04-29 14:56 ` [PATCH] ARM: proc-feroceon: Fix feroceon_proc_info macro Andrew Lunn
  2015-04-29 15:05   ` Ard Biesheuvel
@ 2015-04-29 16:33   ` Florian Fainelli
  2015-05-02 19:35   ` Aaro Koskinen
  2 siblings, 0 replies; 6+ messages in thread
From: Florian Fainelli @ 2015-04-29 16:33 UTC (permalink / raw)
  To: linux-arm-kernel

On 29/04/15 07:56, Andrew Lunn wrote:
> bf35706f3d09 ("ARM: 8314/1: replace PROCINFO embedded branch with
> relative offset") broke booting for Kirkwood. The kernel would say:
> 
> Starting kernel ...
> 
> Uncompressing Linux... done, booting the kernel.
> 
> Error: unrecognized/unsupported processor variant (0x56251311).
> 
> Fix it by removing the extraneous .long __feroceon_setup from the
> feroceon_proc_info macro.
> 
> Reported-by: Florian Fainelli <f.fainelli@gmail.com>
> Suggested-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>

Tested-by: Florian Fainelli <f.fainelli@gmail.com>

Thanks everyone!

> Fixes: bf35706f3d09 ("ARM: 8314/1: replace PROCINFO embedded branch with relative offset")
> ---
>  arch/arm/mm/proc-feroceon.S | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/arch/arm/mm/proc-feroceon.S b/arch/arm/mm/proc-feroceon.S
> index e494d6d6acbe..92e08bf37aad 100644
> --- a/arch/arm/mm/proc-feroceon.S
> +++ b/arch/arm/mm/proc-feroceon.S
> @@ -602,7 +602,6 @@ __\name\()_proc_info:
>  		PMD_SECT_AP_WRITE | \
>  		PMD_SECT_AP_READ
>  	initfn	__feroceon_setup, __\name\()_proc_info
> -	.long __feroceon_setup
>  	.long	cpu_arch_name
>  	.long	cpu_elf_name
>  	.long	HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
> 


-- 
Florian

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

* [PATCH] ARM: proc-feroceon: Fix feroceon_proc_info macro
  2015-04-29 14:56 ` [PATCH] ARM: proc-feroceon: Fix feroceon_proc_info macro Andrew Lunn
  2015-04-29 15:05   ` Ard Biesheuvel
  2015-04-29 16:33   ` Florian Fainelli
@ 2015-05-02 19:35   ` Aaro Koskinen
  2 siblings, 0 replies; 6+ messages in thread
From: Aaro Koskinen @ 2015-05-02 19:35 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

On Wed, Apr 29, 2015 at 04:56:55PM +0200, Andrew Lunn wrote:
> bf35706f3d09 ("ARM: 8314/1: replace PROCINFO embedded branch with
> relative offset") broke booting for Kirkwood. The kernel would say:
> 
> Starting kernel ...
> 
> Uncompressing Linux... done, booting the kernel.
> 
> Error: unrecognized/unsupported processor variant (0x56251311).
> 
> Fix it by removing the extraneous .long __feroceon_setup from the
> feroceon_proc_info macro.
> 
> Reported-by: Florian Fainelli <f.fainelli@gmail.com>
> Suggested-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Fixes: bf35706f3d09 ("ARM: 8314/1: replace PROCINFO embedded branch with relative offset")

Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>

A.

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

end of thread, other threads:[~2015-05-02 19:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-29 14:05 Regression: Kirkwood fails to boot because of bf35706f3d0929b Andrew Lunn
2015-04-29 14:37 ` Ard Biesheuvel
2015-04-29 14:56 ` [PATCH] ARM: proc-feroceon: Fix feroceon_proc_info macro Andrew Lunn
2015-04-29 15:05   ` Ard Biesheuvel
2015-04-29 16:33   ` Florian Fainelli
2015-05-02 19:35   ` Aaro Koskinen

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.