Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 10 Aug 2018 16:48:34 -0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1foAaX-0002rq-6u for speck@linutronix.de; Fri, 10 Aug 2018 18:48:33 +0200 Received: by mail-pf1-x42e.google.com with SMTP id k21-v6so4776573pff.11 for ; Fri, 10 Aug 2018 09:48:33 -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 y27-v6sm27320622pff.181.2018.08.10.09.48.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 09:48:25 -0700 (PDT) Sender: Linus Torvalds Date: Fri, 10 Aug 2018 09:48:24 -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 Fri, 10 Aug 2018, speck for Vlastimil Babka wrote: > > Patch "cpu/hotplug: Boot HT siblings at least once" does this > > void __init boot_cpu_state_init(void) > { > - per_cpu_ptr(&cpuhp_state, smp_processor_id())->state = CPUHP_ONLINE; > + this_cpu_write(cpuhp_state.booted_once, true); > + this_cpu_write(cpuhp_state.state, CPUHP_ONLINE); > } > > but > > this_cpu accessors fails in boot_cpu_state_init() because tpidr_el1 is not > initialized at this point. I'll send an email to Catalin and Will. We'll need to get arm64 fixed, because otherwise this will keep happening elsewhere too. Linus