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 22:06:53 -0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1foFYa-0006fo-5k for speck@linutronix.de; Sat, 11 Aug 2018 00:06:52 +0200 Received: by mail-pg1-x52e.google.com with SMTP id y4-v6so4976764pgp.9 for ; Fri, 10 Aug 2018 15:06:52 -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 z5-v6sm23419763pfi.4.2018.08.10.15.06.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 15:06:44 -0700 (PDT) Sender: Linus Torvalds Date: Fri, 10 Aug 2018 15:06:43 -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, Linus Torvalds wrote: > > I'll send an email to Catalin and Will. We'll need to get arm64 fixed, > because otherwise this will keep happening elsewhere too. Catalin sees the problem and is thinking of a solution. It's a bit inconvenient, because the arm64 cases use the generic setup_per_cpu_areas() function that do not know to update the percpu base pointer. On x86, that happens as part of the x86 setup_per_cpu_areas() code. On ARM, right now there's no way to hook into the generic code. End result: for back-ports, it might be better to continue to use the rather inconvenient syntax of per_cpu_ptr(&cpuhp_state, smp_processor_id())->member = value; in this code. 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). Linus