Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3716735ybi; Tue, 18 Jun 2019 05:32:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5p/9n++0xak7h0rPf52DrdcmWwUQmPxo8h/qd2zdcm977yEANB+JY/Lg9iD6z+JBECEfb X-Received: by 2002:a62:640e:: with SMTP id y14mr115710158pfb.109.1560861123975; Tue, 18 Jun 2019 05:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560861123; cv=none; d=google.com; s=arc-20160816; b=dTOlLqJUZ4wZqm+dZEuaHJvZXlhVlAJZzywgUXeFAqSoepfuGT4VyLldYZKS64qp3k huO+fBeDW2RazrG78cPp5TKfZppO3oReQ7t2YJA0kSljqiZjlh0iGkrzm8VgI4LYtS9n Q71vOi+hg6a3E3HuJA1X5yGcfLpAKKKEogyqAXq/qKOKUgPdfl0pGqV7fKq2FUbHZBQl tyFZUHA1VPnYWqr31+7Sno4iVQYC7cxcyMf+QJqXGWWXB5NmRkRLCHxWnCIWZ1cgfE6s 0dtIFriC/t0Aa9Kgnfue90zf6lJJjYnZRfBB8L1cOSuaEkAPagY9LZ/hakxQDVeQK+JJ dWiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=Z+9q8uUDode6y19kR7w99EteyzCH4O3G1IawtFbLFXw=; b=kMfQR5CIFAk0nF3HgdnKkncYjYyw+aZBM7TUmnKyRPm/TP1JFGpg7hK+861BovNyZE 7RNDbWIJyISZBJ02lrmzS8WeKIePrxVbJBndFBLPaLJDUcY7oC8Dy/VGp+/SCNH1K9/V frKaLlIaSd9DXkVPSSuz1SgAoBGXH+x7SaNyyFFdT3p83ZjbPBsSnZ0nSTLub4L1IWDX ro3VyoBYX2xLdPM4gIY0HFrYlVyf4Naf2WqUhqyzFClHZkvSB33JLNDPjA/dKijlbuFf Pqh9QBn8/2e1cBN/x+8q1tf1LBBVD/WzwPoHUCQ2ggvbW+FSVP4UYv072rLcyVTOtE35 Kgug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1si13998482pld.110.2019.06.18.05.31.48; Tue, 18 Jun 2019 05:32:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726037AbfFRMbh convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Jun 2019 08:31:37 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:42101 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbfFRMbh (ORCPT ); Tue, 18 Jun 2019 08:31:37 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 45SnWN5bq5z9s9y; Tue, 18 Jun 2019 22:31:28 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , erhard_f@mailbox.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/32s: fix initial setup of segment registers on secondary CPU In-Reply-To: References: Date: Tue, 18 Jun 2019 22:31:26 +1000 Message-ID: <87h88noz1d.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > Le 11/06/2019 à 17:47, Christophe Leroy a écrit : >> The patch referenced below moved the loading of segment registers >> out of load_up_mmu() in order to do it earlier in the boot sequence. >> However, the secondary CPU still needs it to be done when loading up >> the MMU. >> >> Reported-by: Erhard F. >> Fixes: 215b823707ce ("powerpc/32s: set up an early static hash table for KASAN") > > Cc: stable@vger.kernel.org Sorry patchwork didn't pick that up and I missed it. The AUTOSEL bot will probably pick it up anyway though. cheers >> diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S >> index 1d5f1bd0dacd..f255e22184b4 100644 >> --- a/arch/powerpc/kernel/head_32.S >> +++ b/arch/powerpc/kernel/head_32.S >> @@ -752,6 +752,7 @@ __secondary_start: >> stw r0,0(r3) >> >> /* load up the MMU */ >> + bl load_segment_registers >> bl load_up_mmu >> >> /* ptr to phys current thread */ >>