Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 11 Aug 2018 17:34:59 -0000 Received: from mail-pl0-x22a.google.com ([2607:f8b0:400e:c01::22a]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1foXmz-0000cJ-Ku for speck@linutronix.de; Sat, 11 Aug 2018 19:34:58 +0200 Received: by mail-pl0-x22a.google.com with SMTP id u11-v6so5286960plq.5 for ; Sat, 11 Aug 2018 10:34:57 -0700 (PDT) Received: from i7.lan (c-73-11-52-149.hsd1.or.comcast.net. [73.11.52.149]) by smtp.gmail.com with ESMTPSA id t15-v6sm22301922pfa.158.2018.08.11.10.34.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Aug 2018 10:34:49 -0700 (PDT) Sender: Linus Torvalds Date: Sat, 11 Aug 2018 10:34:47 -0700 (PDT) From: Linus Torvalds Subject: [MODERATED] Re: unreated arch broken by the fixes In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Sat, 11 Aug 2018, speck for Thomas Gleixner wrote: > On Sat, 11 Aug 2018, speck for Thomas Gleixner wrote: > > > > > > But I'm trying to convince the arm people to just fix it (and do it so > > > that the fix is simple to backport too). > > > > Sure, but is that going to happen before Tuesday? > > Any update on this? I'm trying to finalize the trees for Tuesday. Actually, Catalin has a very simple solution that works for arm: just re-order the calls to boot_cpu_state_init()/smp_prepare_boot_cpu() in start_kernel(). That _smells_ like the right solution. As Catalin says, "boot_cpuhp_state_init()" is about hotplug, so it's not like smp_prepare_boot_cpu() would depend on it. But the reverse is not true: the reason that the change caused problems in boot_cpu_state_init() was exactly that boot_cpu_state_init() depended on the architecture having set up the per-cpu base. So I'll double-check the other architectures, but I think I'll just reverse the two lines as Catalin suggested: - boot_cpu_state_init(); smp_prepare_boot_cpu(); /* arch-specific boot-cpu hooks */ + boot_cpuhp_state_init(); and that certainly is easy to backport too. Linus