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: [RFC v2 PATCH 11/23] ARM: sleep: allow it to be build for R-class
Date: Wed, 30 Nov 2016 09:54:21 +0000	[thread overview]
Message-ID: <583EA1CD.5090508@arm.com> (raw)
In-Reply-To: <20161129171145.GW14217@n2100.armlinux.org.uk>

On 29/11/16 17:11, Russell King - ARM Linux wrote:
> On Tue, Nov 29, 2016 at 12:39:53PM +0000, Vladimir Murzin wrote:
>> Dependency on MMU is quite strict and prevent R-class from being built -
>> relax this condition and guard against M-class only
> 
> I thought I'd already commented on some of this change, but it seems
> not.
> 
>> diff --git a/arch/arm/kernel/sleep.S b/arch/arm/kernel/sleep.S
>> index 0f6c100..0e7fddf 100644
>> --- a/arch/arm/kernel/sleep.S
>> +++ b/arch/arm/kernel/sleep.S
>> @@ -119,14 +119,12 @@ ENDPROC(cpu_resume_after_mmu)
>>  	.text
>>  	.align
>>  
>> -#ifdef CONFIG_MMU
>>  	.arm
>>  ENTRY(cpu_resume_arm)
>>   THUMB(	badr	r9, 1f		)	@ Kernel is entered in ARM.
>>   THUMB(	bx	r9		)	@ If this is a Thumb-2 kernel,
>>   THUMB(	.thumb			)	@ switch to Thumb now.
>>   THUMB(1:			)
>> -#endif
>>  
>>  ENTRY(cpu_resume)
>>  ARM_BE8(setend be)			@ ensure we are in BE mode
>> @@ -160,9 +158,7 @@ THUMB(	mov	sp, r2			)
>>  THUMB(	bx	r3			)
>>  ENDPROC(cpu_resume)
>>  
>> -#ifdef CONFIG_MMU
>>  ENDPROC(cpu_resume_arm)
>> -#endif
> 
> These ifdefs were introduced to fix EFM32.  The commit description needs
> to state why it's safe to remove them now (presumably because of the
> dependency on !CPU_V7M).  However, it also needs to explain why it's
> not going to cause a regression for EFM32 - EFM32 _was_ capable of
> building this code.
> 

After looking at 2678bb9f ("ARM: fix EFM32 build breakage caused by
cpu_resume_arm") I think the right fix should be based on CONFIG_CPU_THUMBONLY
rather than disallowing this code to be build for CPU_V7M. 

Indeed, I've just tried that it it works fine, so I'll update the patch to
reflect that.

Thanks for your valuable comment!

Cheers
Vladimir

  reply	other threads:[~2016-11-30  9:54 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-29 12:39 [RFC v2 PATCH 00/23] Allow NOMMU for MULTIPLATFORM Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 01/23] ARM: NOMMU: define stubs for fixup Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 02/23] ARM: NOMMU: define debug_ll_io_ini Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 03/23] ARM: NOMMU: define SECTION_xxx macros Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 04/23] ARM: NOMMU: define dummy user structure for feroceon Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 05/23] ARM: NOMMU: define __arm_ioremap_exec and pci_ioremap functions Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 06/23] ARM: NOMMU: relax restriction on MPU existence Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 07/23] ARM: NOMMU: fix head-nommu build for pre-ARMv7 CPUs Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 08/23] ARM: NOMMU: implement secondary_startup_arm Vladimir Murzin
2016-11-29 17:14   ` Russell King - ARM Linux
2016-11-30  9:57     ` Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 09/23] ARM: move arm_heavy_mb to MMU/noMMU neutral place Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 10/23] ARM: tlbflush: drop dependency on CONFIG_SMP Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 11/23] ARM: sleep: allow it to be build for R-class Vladimir Murzin
2016-11-29 17:11   ` Russell King - ARM Linux
2016-11-30  9:54     ` Vladimir Murzin [this message]
2016-11-29 12:39 ` [RFC v2 PATCH 12/23] ARM: setup: move call to erratum_a15_798181_init under CONFIG_MMU Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 13/23] ARM: kexec: disallow kexec for NOMMU builds Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 14/23] ARM: ep93xx: select ARM_PATCH_PHYS_VIRT for MMU builds only Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 15/23] ARM: omap: do not select HIGHMEM explicitly Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 16/23] ARM: sa1100: move CPU specific copy code under its own config Vladimir Murzin
2016-11-29 12:39 ` [RFC v2 PATCH 17/23] ARM: sa11x0: assabet: add dependency on MMU Vladimir Murzin
2016-11-29 12:40 ` [RFC v2 PATCH 18/23] ARM: i.MX: remove map_io callback Vladimir Murzin
2016-11-29 12:40 ` [RFC v2 PATCH 19/23] PCI: tegra: limit to MMU build only Vladimir Murzin
2016-11-29 12:40 ` [RFC v2 PATCH 20/23] IB: add dependency on MMU Vladimir Murzin
2016-11-29 12:40 ` [RFC v2 PATCH 21/23] cnic: " Vladimir Murzin
2016-11-29 12:40 ` [RFC v2 PATCH 22/23] scsi: bnx2i: bnx2fc: " Vladimir Murzin
2016-11-29 12:40 ` [RFC v2 PATCH 23/23] ARM: Allow ARCH_MULTIPLATFORM to be selected for NOMMU Vladimir Murzin
2016-11-29 17:22   ` Russell King - ARM Linux
2016-11-30 10:01     ` Vladimir Murzin
2016-12-01 20:11       ` Chris Brandt

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=583EA1CD.5090508@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.