All of lore.kernel.org
 help / color / mirror / Atom feed
From: vladimir.murzin@arm.com (Vladimir Murzin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/9] ARM: ARMv7-M uses BE-8, not BE-32
Date: Fri, 19 Feb 2016 08:47:47 +0000	[thread overview]
Message-ID: <56C6D6B3.60605@arm.com> (raw)
In-Reply-To: <2702301.CTWUiSsjZR@wuerfel>

On 18/02/16 16:12, Arnd Bergmann wrote:
> On Thursday 18 February 2016 11:06:08 Nicolas Pitre wrote:
>> On Thu, 18 Feb 2016, Arnd Bergmann wrote:
>>
>>> When configuring the kernel for big-endian, we set either BE-8 or BE-32
>>> based on the CPU architecture level. Until linux-4.4, we did not have
>>> any ARMv7-M platform allowing big-endian builds, but now i.MX/Vybrid
>>> is in that category, adn we get a build error because of this:
>>>
>>> arch/arm/kernel/module-plts.c: In function 'get_module_plt':
>>> arch/arm/kernel/module-plts.c:60:46: error: implicit declaration of function '__opcode_to_mem_thumb32' [-Werror=implicit-function-declaration]
>>>
>>> This comes down to picking the wrong default, ARMv7-M uses BE8
>>> like ARMv7-A does. Changing the default gets the kernel to compile
>>> and presumably works.
>>
>> Was it tested without BE8 when it was submitted upstream? I don't think 
>> you can switch this freely on a given hardware platform and expect it to 
>> still work.
>>
>>
> 
> mach-imx contains a number of different SoCs, and one SoC was recently
> tested successfully after a number of endianess bugs got fixed. This was
> an i.mx6 using a Cortex-A9 core, but we are now also able to build
> vybrid vf610 big-endian based on that selection. This SoC supports
> Linux running either on its Cortex-A5 or its Cortex-M3 (or M4?) cores.
> 
> I am rather sure nobody has ever run Linux in big-endian mode on the
> Cortex-M platform, specifically because it was always wrong and could
> not be enabled in Kconfig.

Ah, it explains why my quick attempt to enable BE for MPS2 (M-class
platform) failed. With this patch applied I'm able to see Linux booting
on MPS2 FVP model in BE, not complete boot but it might be due to other
reasons. So this patch definitely improves things for me, if it helps

Tested-by: Vladimir Murzin <vladimir.murzin@arm.com>

Cheers
Vladimir

> 
> 	Arnd
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 
> 
> 

WARNING: multiple messages have this Message-ID (diff)
From: Vladimir Murzin <vladimir.murzin@arm.com>
To: Arnd Bergmann <arnd@arndb.de>, Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: Jon Medhurst <tixy@linaro.org>,
	Russell King <linux@arm.linux.org.uk>,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	Marc Zyngier <marc.zyngier@arm.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	linux-kernel@vger.kernel.org,
	Maxime Coquelin stm32 <mcoquelin.stm32@gmail.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/9] ARM: ARMv7-M uses BE-8, not BE-32
Date: Fri, 19 Feb 2016 08:47:47 +0000	[thread overview]
Message-ID: <56C6D6B3.60605@arm.com> (raw)
In-Reply-To: <2702301.CTWUiSsjZR@wuerfel>

On 18/02/16 16:12, Arnd Bergmann wrote:
> On Thursday 18 February 2016 11:06:08 Nicolas Pitre wrote:
>> On Thu, 18 Feb 2016, Arnd Bergmann wrote:
>>
>>> When configuring the kernel for big-endian, we set either BE-8 or BE-32
>>> based on the CPU architecture level. Until linux-4.4, we did not have
>>> any ARMv7-M platform allowing big-endian builds, but now i.MX/Vybrid
>>> is in that category, adn we get a build error because of this:
>>>
>>> arch/arm/kernel/module-plts.c: In function 'get_module_plt':
>>> arch/arm/kernel/module-plts.c:60:46: error: implicit declaration of function '__opcode_to_mem_thumb32' [-Werror=implicit-function-declaration]
>>>
>>> This comes down to picking the wrong default, ARMv7-M uses BE8
>>> like ARMv7-A does. Changing the default gets the kernel to compile
>>> and presumably works.
>>
>> Was it tested without BE8 when it was submitted upstream? I don't think 
>> you can switch this freely on a given hardware platform and expect it to 
>> still work.
>>
>>
> 
> mach-imx contains a number of different SoCs, and one SoC was recently
> tested successfully after a number of endianess bugs got fixed. This was
> an i.mx6 using a Cortex-A9 core, but we are now also able to build
> vybrid vf610 big-endian based on that selection. This SoC supports
> Linux running either on its Cortex-A5 or its Cortex-M3 (or M4?) cores.
> 
> I am rather sure nobody has ever run Linux in big-endian mode on the
> Cortex-M platform, specifically because it was always wrong and could
> not be enabled in Kconfig.

Ah, it explains why my quick attempt to enable BE for MPS2 (M-class
platform) failed. With this patch applied I'm able to see Linux booting
on MPS2 FVP model in BE, not complete boot but it might be due to other
reasons. So this patch definitely improves things for me, if it helps

Tested-by: Vladimir Murzin <vladimir.murzin@arm.com>

Cheers
Vladimir

> 
> 	Arnd
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 
> 
> 

  reply	other threads:[~2016-02-19  8:47 UTC|newest]

Thread overview: 83+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-18 14:01 [PATCH 0/9] ARM: randconfig testing fallout Arnd Bergmann
2016-02-18 14:01 ` [PATCH 1/9] ARM: ARMv7-M uses BE-8, not BE-32 Arnd Bergmann
2016-02-18 14:01   ` Arnd Bergmann
2016-02-18 16:06   ` Nicolas Pitre
2016-02-18 16:06     ` Nicolas Pitre
2016-02-18 16:12     ` Arnd Bergmann
2016-02-18 16:12       ` Arnd Bergmann
2016-02-19  8:47       ` Vladimir Murzin [this message]
2016-02-19  8:47         ` Vladimir Murzin
2016-02-19 10:17         ` Arnd Bergmann
2016-02-19 10:17           ` Arnd Bergmann
2016-02-18 14:01 ` [PATCH 2/9] ARM: change NR_IPIS to 8 Arnd Bergmann
2016-02-18 14:01   ` Arnd Bergmann
2016-02-18 14:26   ` Marc Zyngier
2016-02-18 14:26     ` Marc Zyngier
2016-02-18 14:37   ` Russell King - ARM Linux
2016-02-18 14:37     ` Russell King - ARM Linux
2016-02-18 15:18     ` Arnd Bergmann
2016-02-18 15:18       ` Arnd Bergmann
2018-09-18  8:19       ` Chunyan Zhang
2018-09-18  8:19         ` Chunyan Zhang
2016-02-18 14:01 ` [PATCH 3/9] ARM: make free_memmap as __init Arnd Bergmann
2016-02-18 14:01   ` Arnd Bergmann
2016-02-18 15:55   ` Nicolas Pitre
2016-02-18 15:55     ` Nicolas Pitre
2016-02-18 14:01 ` [PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values Arnd Bergmann
2016-02-18 14:01   ` Arnd Bergmann
2016-02-18 16:02   ` Nicolas Pitre
2016-02-18 16:02     ` Nicolas Pitre
2016-02-19  8:33     ` Arnd Bergmann
2016-02-19  8:33       ` Arnd Bergmann
2016-02-19 14:29       ` Chris Brandt
2016-02-19 14:29         ` Chris Brandt
2016-02-19 15:34         ` Arnd Bergmann
2016-02-19 15:34           ` Arnd Bergmann
2016-02-19 16:43           ` Russell King - ARM Linux
2016-02-19 16:43             ` Russell King - ARM Linux
2016-02-19 17:18             ` Chris Brandt
2016-02-19 17:18               ` Chris Brandt
2016-02-19 17:57             ` Nicolas Pitre
2016-02-19 17:57               ` Nicolas Pitre
2016-02-19 16:10       ` Nicolas Pitre
2016-02-19 16:10         ` Nicolas Pitre
2016-02-19 16:23         ` Arnd Bergmann
2016-02-19 16:23           ` Arnd Bergmann
2016-02-19 17:31           ` Nicolas Pitre
2016-02-19 17:31             ` Nicolas Pitre
2016-02-19 18:07             ` Russell King - ARM Linux
2016-02-19 18:07               ` Russell King - ARM Linux
2016-02-19 21:14               ` Arnd Bergmann
2016-02-19 21:14                 ` Arnd Bergmann
2016-02-18 14:01 ` [PATCH 5/9] ARM: atags_to_fdt: don't warn about stack size Arnd Bergmann
2016-02-18 14:01   ` Arnd Bergmann
2016-02-18 16:13   ` Nicolas Pitre
2016-02-18 16:13     ` Nicolas Pitre
2016-02-18 16:26     ` [PATCH v2] " Arnd Bergmann
2016-02-18 16:26       ` Arnd Bergmann
2016-02-18 17:14       ` Nicolas Pitre
2016-02-18 17:14         ` Nicolas Pitre
2016-02-19 16:58       ` Arnd Bergmann
2016-02-19 16:58         ` Arnd Bergmann
2016-02-18 14:01 ` [PATCH 6/9] ARM: uaccess: avoid warning for NOMMU in access_ok Arnd Bergmann
2016-02-18 14:01   ` Arnd Bergmann
2016-02-18 16:15   ` Nicolas Pitre
2016-02-18 16:15     ` Nicolas Pitre
2016-02-18 14:01 ` [PATCH 7/9] ARM: move NO_DMA definition to ecard.h Arnd Bergmann
2016-02-18 14:01   ` Arnd Bergmann
2016-02-18 16:17   ` Nicolas Pitre
2016-02-18 16:17     ` Nicolas Pitre
2016-02-18 14:02 ` [PATCH 8/9] ARM: do not use optimized do_div for ARMv3 Arnd Bergmann
2016-02-18 14:02   ` Arnd Bergmann
2016-02-18 17:20   ` Nicolas Pitre
2016-02-18 17:20     ` Nicolas Pitre
2016-02-19  9:03     ` Arnd Bergmann
2016-02-19  9:03       ` Arnd Bergmann
2016-02-19 18:44       ` Nicolas Pitre
2016-02-19 18:44         ` Nicolas Pitre
2016-02-18 14:02 ` [PATCH 9/9] ARM: fix kprobe test with CONFIG_CPU_32v3 Arnd Bergmann
2016-02-18 14:02   ` Arnd Bergmann
2016-02-18 14:21   ` Jon Medhurst (Tixy)
2016-02-18 14:21     ` Jon Medhurst (Tixy)
2016-02-18 16:21   ` Nicolas Pitre
2016-02-18 16:21     ` Nicolas Pitre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56C6D6B3.60605@arm.com \
    --to=vladimir.murzin@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.