Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp311403pxv; Wed, 30 Jun 2021 06:16:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMGxdZALB2miuKE6JQDER51nLtKQcVMp+zwsZKO81nLNgufaVpoeyBiACearY2Kq24/zUY X-Received: by 2002:a02:a114:: with SMTP id f20mr1310305jag.60.1625058995625; Wed, 30 Jun 2021 06:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625058995; cv=none; d=google.com; s=arc-20160816; b=c5XRtHELMcSp4km7ckVUOvmeOQLjZtZ6sKBm95mC5h4dCVA2M0KS3jLr0hHwUo1rRG JAcH5DB/4wH3cFZ9HnJFYpM6RcArbAVHS9wj8ssiu2qbrGItV+VRi+ljMZ+2KWqBumm4 wWkvIPHGqVlIqi2UtsQuqk3GdWo94PkEtXlZ69aERYpm5e5kcPM/qFQVw+rXv7lzJSSl xGbnlNikNX+Ms5c/i5hkc72PldYE+9m7I2iu/AeALRtUPXhndZf2hlwue43Lk/3QBYYB 2IDc98JfBC7JxlD4yo/+EeT4LfOyoIm+Jz3hNu9mwrP/6tGCpVrK99qcISm+RtG2V/oD q+rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=XviBtcaiIFKkjYPKoIDSgkGZHmiV7FG2WKjNfV4Cc1k=; b=T82jg6G8/LifOEVlmEOfHZApiO/0pAtOecv/TwnWxHk5+sqcfPUOcN3A5k8S29wFiz Z8pKoN1F6FvARfSiF9zjwGyUQF9TLRtenOZRPs1er7zia4rCDgqP5H2H9opB4fWaAQQL HZjJ7KY1IzqV8fDSrK9GWP3CmFAUN2Oy80OO3I1Ey0Lj0hgDE5ROei3qffxkguvvCJaK xyA8suDCnsJuhK4XdIR8PpeE4oSt49ghgDnPNmq7iu3eKWBigz1H/oNtAK8wjGj+M+Ym lsXrsQ3I5Sc54iQju2qdJ+oaJZ5GiVfMxSoDOPg48bjN6d0Qrhl6KrARlwBNWAlHCf64 YNZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u8si7316640jat.6.2021.06.30.06.16.23; Wed, 30 Jun 2021 06:16:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234806AbhF3NRy (ORCPT + 99 others); Wed, 30 Jun 2021 09:17:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234713AbhF3NRv (ORCPT ); Wed, 30 Jun 2021 09:17:51 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D1D1C061766 for ; Wed, 30 Jun 2021 06:15:21 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4GFMK24Y0Xz9sVp; Wed, 30 Jun 2021 23:15:18 +1000 (AEST) From: Michael Ellerman To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Christophe Leroy Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: <8ee05934288994a65743a987acb1558f12c0c8c1.1624969450.git.christophe.leroy@csgroup.eu> References: <8ee05934288994a65743a987acb1558f12c0c8c1.1624969450.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH v2] powerpc/4xx: Fix setup_kuep() on SMP Message-Id: <162505885820.174506.3727018626821602076.b4-ty@ellerman.id.au> Date: Wed, 30 Jun 2021 23:14:18 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Jun 2021 12:24:21 +0000 (UTC), Christophe Leroy wrote: > On SMP, setup_kuep() is also called from start_secondary() since > commit 86f46f343272 ("powerpc/32s: Initialise KUAP and KUEP in C"). > > start_secondary() is not an __init function. > > Remove the __init marker from setup_kuep() and bail out when > not caller on the first CPU as the work is already done. Applied to powerpc/next. [1/1] powerpc/4xx: Fix setup_kuep() on SMP https://git.kernel.org/powerpc/c/fc4999864bca323f1b844fefe1b402632443c076 cheers