From: linux@roeck-us.net (Guenter Roeck)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: switch_to: calculate cpu context pointer using separate register
Date: Mon, 20 Jul 2015 07:25:54 -0700 [thread overview]
Message-ID: <55AD04F2.7000605@roeck-us.net> (raw)
In-Reply-To: <1437401693-3273-1-git-send-email-will.deacon@arm.com>
On 07/20/2015 07:14 AM, Will Deacon wrote:
> Commit 0c8c0f03e3a2 ("x86/fpu, sched: Dynamically allocate 'struct fpu'")
> moved the thread_struct to the bottom of task_struct. As a result, the
> offset is now too large to be used in an immediate add on arm64 with
> some kernel configs:
>
> arch/arm64/kernel/entry.S: Assembler messages:
> arch/arm64/kernel/entry.S:588: Error: immediate out of range
> arch/arm64/kernel/entry.S:597: Error: immediate out of range
>
> This patch calculates the offset using an additional register instead of
> an immediate offset.
>
> Fixes: 0c8c0f03e3a2 ("x86/fpu, sched: Dynamically allocate 'struct fpu'")
> Cc: Dave Hansen <dave.hansen@linux.intel.com>
> Cc: Olof Johansson <olof@lixom.net>
> Cc: Ingo Molnar <mingo@kernel.org>
> Signed-off-by: Will Deacon <will.deacon@arm.com>
With qemu:
Tested-by: Guenter Roeck <linux@roeck-us.net>
Guenter
WARNING: multiple messages have this Message-ID (diff)
From: Guenter Roeck <linux@roeck-us.net>
To: Will Deacon <will.deacon@arm.com>, catalin.marinas@arm.com
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Dave Hansen <dave.hansen@linux.intel.com>,
Olof Johansson <olof@lixom.net>, Ingo Molnar <mingo@kernel.org>
Subject: Re: [PATCH] arm64: switch_to: calculate cpu context pointer using separate register
Date: Mon, 20 Jul 2015 07:25:54 -0700 [thread overview]
Message-ID: <55AD04F2.7000605@roeck-us.net> (raw)
In-Reply-To: <1437401693-3273-1-git-send-email-will.deacon@arm.com>
On 07/20/2015 07:14 AM, Will Deacon wrote:
> Commit 0c8c0f03e3a2 ("x86/fpu, sched: Dynamically allocate 'struct fpu'")
> moved the thread_struct to the bottom of task_struct. As a result, the
> offset is now too large to be used in an immediate add on arm64 with
> some kernel configs:
>
> arch/arm64/kernel/entry.S: Assembler messages:
> arch/arm64/kernel/entry.S:588: Error: immediate out of range
> arch/arm64/kernel/entry.S:597: Error: immediate out of range
>
> This patch calculates the offset using an additional register instead of
> an immediate offset.
>
> Fixes: 0c8c0f03e3a2 ("x86/fpu, sched: Dynamically allocate 'struct fpu'")
> Cc: Dave Hansen <dave.hansen@linux.intel.com>
> Cc: Olof Johansson <olof@lixom.net>
> Cc: Ingo Molnar <mingo@kernel.org>
> Signed-off-by: Will Deacon <will.deacon@arm.com>
With qemu:
Tested-by: Guenter Roeck <linux@roeck-us.net>
Guenter
next prev parent reply other threads:[~2015-07-20 14:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-20 14:14 [PATCH] arm64: switch_to: calculate cpu context pointer using separate register Will Deacon
2015-07-20 14:14 ` Will Deacon
2015-07-20 14:25 ` Guenter Roeck [this message]
2015-07-20 14:25 ` Guenter Roeck
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=55AD04F2.7000605@roeck-us.net \
--to=linux@roeck-us.net \
--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.