From: Sudeep.KarkadaNagesha@arm.com (Sudeep KarkadaNagesha)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM64: DT: define ARM64 specific arch_match_cpu_phys_id
Date: Wed, 30 Oct 2013 11:40:50 +0000 [thread overview]
Message-ID: <5270F042.6060600@arm.com> (raw)
In-Reply-To: <1382358582-32726-1-git-send-email-Sudeep.KarkadaNagesha@arm.com>
Hi Catalin,
On 21/10/13 13:29, Sudeep KarkadaNagesha wrote:
> From: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
>
> OF/DT core library provides architecture specific hook to match the
> logical cpu index with the corresponding physical identifier.
>
> On ARM64, the MPIDR_EL1 contains specific bitfields(MPIDR_EL1.Aff{3..0})
> which uniquely identify a CPU, in addition to some non-identifying
> information and reserved bits. The ARM cpu binding defines the 'reg'
> property to only contain the affinity bits, and any cpu nodes with other
> bits set in their 'reg' entry are skipped.
>
> This patch overrides the weak definition of arch_match_cpu_phys_id
> with ARM64 specific version using MPIDR_EL1.Aff{3..0} as cpu physical
> identifiers.
>
Can you take this trivial patch for v3.13 ?
Regards,
Sudeep
> Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
> Acked-by: Mark Rutland <mark.rutland@arm.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> ---
> arch/arm64/kernel/setup.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
> index 055cfb8..ff629f9 100644
> --- a/arch/arm64/kernel/setup.c
> +++ b/arch/arm64/kernel/setup.c
> @@ -97,6 +97,11 @@ void __init early_print(const char *str, ...)
> printk("%s", buf);
> }
>
> +bool arch_match_cpu_phys_id(int cpu, u64 phys_id)
> +{
> + return phys_id == cpu_logical_map(cpu);
> +}
> +
> static void __init setup_processor(void)
> {
> struct cpu_info *cpu_info;
>
next prev parent reply other threads:[~2013-10-30 11:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-21 12:29 [PATCH] ARM64: DT: define ARM64 specific arch_match_cpu_phys_id Sudeep KarkadaNagesha
2013-10-30 11:40 ` Sudeep KarkadaNagesha [this message]
2013-10-30 12:06 ` Catalin Marinas
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=5270F042.6060600@arm.com \
--to=sudeep.karkadanagesha@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.