From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Stephen Boyd <sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
Cc: Paul Gortmaker
<paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>,
Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Joseph Lo <josephl-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH] ARM: move body of head-common.S back to text section
Date: Tue, 02 Jul 2013 20:44:20 -0600 [thread overview]
Message-ID: <51D39004.9000907@wwwdotorg.org> (raw)
In-Reply-To: <20130702232259.GH11625-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
On 07/02/2013 05:22 PM, Stephen Boyd wrote:
> On 07/02, Stephen Warren wrote:
>> From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>>
>> Commit 281ecb7 "arm: delete __cpuinit/__CPUINIT usage from all ARM
>> users" removed a __CPUINIT from head-common.S. However, the code
>> immediately before the removed tag was marked __INIT, and was missing
>> a match __FINIT. This caused code after the removed __CPUINIT to end
>> up in the init section rather than the main text section as desired.
>> This caused issues such as secondary CPU boot failures or crashes.
>> Add the missing __FINIT to solve this.
>>
>> Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>> ---
>> arch/arm/kernel/head-common.S | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/arch/arm/kernel/head-common.S b/arch/arm/kernel/head-common.S
>> index 529ce99..a9dc804 100644
>> --- a/arch/arm/kernel/head-common.S
>> +++ b/arch/arm/kernel/head-common.S
>> @@ -122,6 +122,8 @@ __mmap_switched_data:
>> .long init_thread_union + THREAD_START_SP @ sp
>> .size __mmap_switched_data, . - __mmap_switched_data
>>
>> + __FINIT
>> +
>> /*
>> * This provides a C-API version of __lookup_processor_type
>> */
>
> Shouldn't this come after lookup_processor_type()? Otherwise you
> just removed that function from the init section?
I think this is correct. Prior to "arm: delete __cpuinit/__CPUINIT usage
from all ARM users", lookup_processor_type() was in the cpuinit section.
After that commit, it moved to the init section and hence got dumped
soon after boot. The change above moves lookup_processor_type() back
into the regular text section, which I believe was the intent of the
__cpuinit removal patch.
WARNING: multiple messages have this Message-ID (diff)
From: swarren@wwwdotorg.org (Stephen Warren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: move body of head-common.S back to text section
Date: Tue, 02 Jul 2013 20:44:20 -0600 [thread overview]
Message-ID: <51D39004.9000907@wwwdotorg.org> (raw)
In-Reply-To: <20130702232259.GH11625@codeaurora.org>
On 07/02/2013 05:22 PM, Stephen Boyd wrote:
> On 07/02, Stephen Warren wrote:
>> From: Stephen Warren <swarren@nvidia.com>
>>
>> Commit 281ecb7 "arm: delete __cpuinit/__CPUINIT usage from all ARM
>> users" removed a __CPUINIT from head-common.S. However, the code
>> immediately before the removed tag was marked __INIT, and was missing
>> a match __FINIT. This caused code after the removed __CPUINIT to end
>> up in the init section rather than the main text section as desired.
>> This caused issues such as secondary CPU boot failures or crashes.
>> Add the missing __FINIT to solve this.
>>
>> Signed-off-by: Stephen Warren <swarren@nvidia.com>
>> ---
>> arch/arm/kernel/head-common.S | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/arch/arm/kernel/head-common.S b/arch/arm/kernel/head-common.S
>> index 529ce99..a9dc804 100644
>> --- a/arch/arm/kernel/head-common.S
>> +++ b/arch/arm/kernel/head-common.S
>> @@ -122,6 +122,8 @@ __mmap_switched_data:
>> .long init_thread_union + THREAD_START_SP @ sp
>> .size __mmap_switched_data, . - __mmap_switched_data
>>
>> + __FINIT
>> +
>> /*
>> * This provides a C-API version of __lookup_processor_type
>> */
>
> Shouldn't this come after lookup_processor_type()? Otherwise you
> just removed that function from the init section?
I think this is correct. Prior to "arm: delete __cpuinit/__CPUINIT usage
from all ARM users", lookup_processor_type() was in the cpuinit section.
After that commit, it moved to the init section and hence got dumped
soon after boot. The change above moves lookup_processor_type() back
into the regular text section, which I believe was the intent of the
__cpuinit removal patch.
WARNING: multiple messages have this Message-ID (diff)
From: Stephen Warren <swarren@wwwdotorg.org>
To: Stephen Boyd <sboyd@codeaurora.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>,
Russell King <linux@arm.linux.org.uk>,
Will Deacon <will.deacon@arm.com>,
linux-kernel@vger.kernel.org, Joseph Lo <josephl@nvidia.com>,
linux-tegra@vger.kernel.org, Stephen Warren <swarren@nvidia.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] ARM: move body of head-common.S back to text section
Date: Tue, 02 Jul 2013 20:44:20 -0600 [thread overview]
Message-ID: <51D39004.9000907@wwwdotorg.org> (raw)
In-Reply-To: <20130702232259.GH11625@codeaurora.org>
On 07/02/2013 05:22 PM, Stephen Boyd wrote:
> On 07/02, Stephen Warren wrote:
>> From: Stephen Warren <swarren@nvidia.com>
>>
>> Commit 281ecb7 "arm: delete __cpuinit/__CPUINIT usage from all ARM
>> users" removed a __CPUINIT from head-common.S. However, the code
>> immediately before the removed tag was marked __INIT, and was missing
>> a match __FINIT. This caused code after the removed __CPUINIT to end
>> up in the init section rather than the main text section as desired.
>> This caused issues such as secondary CPU boot failures or crashes.
>> Add the missing __FINIT to solve this.
>>
>> Signed-off-by: Stephen Warren <swarren@nvidia.com>
>> ---
>> arch/arm/kernel/head-common.S | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/arch/arm/kernel/head-common.S b/arch/arm/kernel/head-common.S
>> index 529ce99..a9dc804 100644
>> --- a/arch/arm/kernel/head-common.S
>> +++ b/arch/arm/kernel/head-common.S
>> @@ -122,6 +122,8 @@ __mmap_switched_data:
>> .long init_thread_union + THREAD_START_SP @ sp
>> .size __mmap_switched_data, . - __mmap_switched_data
>>
>> + __FINIT
>> +
>> /*
>> * This provides a C-API version of __lookup_processor_type
>> */
>
> Shouldn't this come after lookup_processor_type()? Otherwise you
> just removed that function from the init section?
I think this is correct. Prior to "arm: delete __cpuinit/__CPUINIT usage
from all ARM users", lookup_processor_type() was in the cpuinit section.
After that commit, it moved to the init section and hence got dumped
soon after boot. The change above moves lookup_processor_type() back
into the regular text section, which I believe was the intent of the
__cpuinit removal patch.
next prev parent reply other threads:[~2013-07-03 2:44 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-02 22:53 [PATCH] ARM: move body of head-common.S back to text section Stephen Warren
2013-07-02 22:53 ` Stephen Warren
[not found] ` <1372805629-18382-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-07-02 23:22 ` Stephen Boyd
2013-07-02 23:22 ` Stephen Boyd
2013-07-02 23:22 ` Stephen Boyd
[not found] ` <20130702232259.GH11625-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2013-07-03 2:44 ` Stephen Warren [this message]
2013-07-03 2:44 ` Stephen Warren
2013-07-03 2:44 ` Stephen Warren
[not found] ` <51D39004.9000907-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-07-03 5:19 ` Paul Gortmaker
2013-07-03 5:19 ` Paul Gortmaker
2013-07-03 5:19 ` Paul Gortmaker
2013-07-03 10:00 ` Russell King - ARM Linux
2013-07-03 10:00 ` Russell King - ARM Linux
[not found] ` <20130703100044.GG24642-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2013-07-03 15:30 ` Paul Gortmaker
2013-07-03 15:30 ` Paul Gortmaker
2013-07-03 15:30 ` Paul Gortmaker
[not found] ` <20130703153012.GK22702-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
2013-07-03 17:20 ` Russell King - ARM Linux
2013-07-03 17:20 ` Russell King - ARM Linux
2013-07-03 17:20 ` Russell King - ARM Linux
2013-07-04 0:22 ` Paul Gortmaker
2013-07-04 0:22 ` Paul Gortmaker
2013-07-04 0:22 ` Paul Gortmaker
[not found] ` <20130704002235.GL22702-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
2013-07-05 15:10 ` Dave P Martin
2013-07-05 15:10 ` Dave P Martin
2013-07-05 15:10 ` Dave P Martin
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=51D39004.9000907@wwwdotorg.org \
--to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
--cc=josephl-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org \
--cc=sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=will.deacon-5wv7dgnIgG8@public.gmane.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.