Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1632267

Re: [PATCH] arm64: cpufeature: use static_branch_enable_cpuslocked()

From Suzuki K Poulose <Suzuki.Poulose@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH] arm64: cpufeature: use static_branch_enable_cpuslocked()
Date 2017-04-27 19:10 +0200
Message-ID <tAV5v-3A6-1@gated-at.bofh.it> (permalink)
References (6 earlier) <tAOnn-7ap-5@gated-at.bofh.it> <tAOx3-7td-7@gated-at.bofh.it> <tAQSd-Bq-3@gated-at.bofh.it> <tATQ6-2Ak-19@gated-at.bofh.it> <tAUCu-3ai-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 27/04/17 17:35, Suzuki K Poulose wrote:
> rom f3b0809224e4915197d3ae4a38ebe7f210e74abf Mon Sep 17 00:00:00 2001
> From: Mark Rutland <mark.rutland@arm.com>
> Date: Thu, 27 Apr 2017 16:48:06 +0100
> Subject: [PATCH] arm64: cpufeature: use static_branch_enable_cpuslocked()
>

Build break alert. There are some issues with patch below.

>
> Signed-off-by: Mark Rutland <mark.rutland@arm.com>
> Reported-by: Catalin Marinas <catalin.marinas@arm.com>
> Suggested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> Suggested-by: Thomas Gleixner <tglx@linutronix.de>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: Suzuki Poulose <suzuki,poulose@arm.com>
> Signed-off-by: Mark Rutland <mark.rutland@arm.com>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
> ---
>  arch/arm64/include/asm/cpufeature.h |  5 +++--
>  arch/arm64/kernel/cpu_errata.c      | 13 ++++++++++++-
>  arch/arm64/kernel/cpufeature.c      |  5 ++++-
>  arch/arm64/kernel/smp.c             |  7 +++----
>  4 files changed, 22 insertions(+), 8 deletions(-)
>


>  void __init enable_errata_workarounds(void)
> diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
> index 94b8f7f..62bdab4 100644
> --- a/arch/arm64/kernel/cpufeature.c
> +++ b/arch/arm64/kernel/cpufeature.c
> @@ -966,6 +966,7 @@ static void __init setup_elf_hwcaps(const struct arm64_cpu_capabilities *hwcaps)
>  			cap_set_elf_hwcap(hwcaps);
>  }
>
> +/* Should be called with CPU hotplug lock held */
>  void update_cpu_capabilities(const struct arm64_cpu_capabilities *caps,
>  			    const char *info)
>  {
> @@ -1092,7 +1093,9 @@ void check_local_cpu_capabilities(void)
>
>  static void __init setup_feature_capabilities(void)
>  {
> -	update_cpu_capabilities(arm64_features, "detected feature:");
> +	get_online_cpus();
> +	update_cpu_capabilities(arm6_features, "detected feature:");

s/arm6_features/arm64_features

And we need the following hunk:

diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 62bdab4..19c359a 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -1086,7 +1086,7 @@ void check_local_cpu_capabilities(void)
          * advertised capabilities.
          */
         if (!sys_caps_initialised)
-               update_cpu_errata_workarounds();
+               update_secondary_cpu_errata_workarounds();
         else
                 verify_local_cpu_capabilities();
  }

Sorry about that.

Suzuki

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [patch V2 00/24] cpu/hotplug: Convert get_online_cpus() to a  percpu_rwsem Mark Rutland <mark.rutland@arm.com> - 2017-04-25 18:20 +0200
  Re: [patch V2 00/24] cpu/hotplug: Convert get_online_cpus() to a  percpu_rwsem Sebastian Siewior <bigeasy@linutronix.de> - 2017-04-25 19:30 +0200
    Re: [patch V2 00/24] cpu/hotplug: Convert get_online_cpus() to a  percpu_rwsem Mark Rutland <mark.rutland@arm.com> - 2017-04-26 11:10 +0200
      Re: [patch V2 00/24] cpu/hotplug: Convert get_online_cpus() to a  percpu_rwsem Suzuki K Poulose <Suzuki.Poulose@arm.com> - 2017-04-26 12:00 +0200
        Re: [patch V2 00/24] cpu/hotplug: Convert get_online_cpus() to a  percpu_rwsem Mark Rutland <mark.rutland@arm.com> - 2017-04-26 12:40 +0200
          Re: [patch V2 00/24] cpu/hotplug: Convert get_online_cpus() to a  percpu_rwsem Sebastian Siewior <bigeasy@linutronix.de> - 2017-04-27 10:30 +0200
            Re: [patch V2 00/24] cpu/hotplug: Convert get_online_cpus() to a  percpu_rwsem Mark Rutland <mark.rutland@arm.com> - 2017-04-27 12:00 +0200
              Re: [patch V2 00/24] cpu/hotplug: Convert get_online_cpus() to a  percpu_rwsem Thomas Gleixner <tglx@linutronix.de> - 2017-04-27 12:10 +0200
                Re: [patch V2 00/24] cpu/hotplug: Convert get_online_cpus() to a  percpu_rwsem Mark Rutland <mark.rutland@arm.com> - 2017-04-27 14:40 +0200
                [PATCH] arm64: cpufeature: use static_branch_enable_cpuslocked()  (was: Re: [patch V2 00/24] cpu/hotplug: Convert get_online_cpus() to a  percpu_rwsem) Mark Rutland <mark.rutland@arm.com> - 2017-04-27 17:50 +0200
                Re: [PATCH] arm64: cpufeature: use static_branch_enable_cpuslocked()  (was: Re: [patch V2 00/24] cpu/hotplug: Convert get_online_cpus() to a  percpu_rwsem) Suzuki K Poulose <Suzuki.Poulose@arm.com> - 2017-04-27 18:40 +0200
                Re: [PATCH] arm64: cpufeature: use static_branch_enable_cpuslocked() Suzuki K Poulose <Suzuki.Poulose@arm.com> - 2017-04-27 19:10 +0200
                Re: [PATCH] arm64: cpufeature: use static_branch_enable_cpuslocked() Mark Rutland <mark.rutland@arm.com> - 2017-04-27 19:20 +0200

csiph-web