Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp790441ybe; Fri, 13 Sep 2019 06:26:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZ6nXnj5O4qynB5PTJMv7B/MistMkcsIBSwu1UGJkApYUr5JjxZJD57SlESeb+pXsXi/Ea X-Received: by 2002:a50:d55e:: with SMTP id f30mr48483118edj.35.1568381184618; Fri, 13 Sep 2019 06:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568381184; cv=none; d=google.com; s=arc-20160816; b=05a4vbuC/b5Irq60taUAvbDr04I8DMANOg8m2mwnX4f3vdy1mwUeaO8wD0k79267k8 KjjiDuBZXXLl+uEkq5rE+NRaQDFD80Fj2XprMblfp9TjDp+OZiQn/m7K+TMXv1r8lmk4 JDLZrtqBBLdg3yaTpW9Ed13dHQ7X2ezDXRp+Ct87nSyycDAA56b+rk0AV0ywpPDWFxJz QqKBGJ1DvncIMqMXye0gxrYZRJbWVhyFumj9b1ElaLnGOLDYEQx9xVX9AI/i/8WYOtOB KlT4a6BH+fnQIfcuEd71NUR5CBkbhngPmed8uY38FoSSxo0xVRyH+rFRHzv3nFsiFshw WnVw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LfWWun9vsoFnNGQOiL8bMK0HZFvI+Ytr9XHPIu0vm28=; b=oHJXqGYedaVYEGUELUj62qbRUE7ivnAlQM9Qvy6yG1P7k77npIj/hqRlqXWx/UClcW A4fX+J+a9AhwEq1ENFJwJ3qFliuj6GjiHzsLfmwyXwrd6RTlU1fDZepiwQFWeQT5RxeG 4H9yxnAxqsVeeuYELDtJFpqDDu/G/twNmVJTg6n+TodM07B6Ikm6bGJFH7wCuoOD5pHs 3Sb4vR0fJ2MKYUdVfmUlvK1ezLO0UqALeG/V/MX2/B9esgw28Egpa6bHsrOXjL/MSUsD OQwl7lcxytqWCGjLQKsR6JLTSTqbOPX3oaSy8Ydfr+ySQcQ1KFLUEcFLv/TO57hRj2px J6DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GNVcnDCY; 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 g3si7304888ejk.387.2019.09.13.06.26.00; Fri, 13 Sep 2019 06:26:24 -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; dkim=pass header.i=@kernel.org header.s=default header.b=GNVcnDCY; 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 S2390291AbfIMNXQ (ORCPT + 99 others); Fri, 13 Sep 2019 09:23:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:51354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390232AbfIMNVf (ORCPT ); Fri, 13 Sep 2019 09:21:35 -0400 Received: from localhost (unknown [104.132.45.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A8ABE216F4; Fri, 13 Sep 2019 13:21:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380895; bh=2vm8YHevuXCo4kKWe+2+Yss5Zn0lCSFJs4a64fJVIAM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GNVcnDCYkJAgFNtml5l08spPDWjAcztFY05a9vlgcpB2OU8qsGG9piFvKJtF9AzUw xwP1Y37RcDCFnOFrUFD1dpr9Suq8xH19KaPfN6WSncL3sFPwnGrNGEv8zUrmJhRnh/ c6Xo7JCm66UeFStFLVLWjpsuDjjaPCX542aOWdKI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Packham , Christophe Leroy , Chris Packham , Michael Ellerman Subject: [PATCH 5.2 13/37] powerpc/64e: Drop stale call to smp_processor_id() which hangs SMP startup Date: Fri, 13 Sep 2019 14:07:18 +0100 Message-Id: <20190913130515.860737471@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913130510.727515099@linuxfoundation.org> References: <20190913130510.727515099@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Christophe Leroy commit b9ee5e04fd77898208c51b1395fa0b5e8536f9b6 upstream. Commit ebb9d30a6a74 ("powerpc/mm: any thread in one core can be the first to setup TLB1") removed the need to know the cpu_id in early_init_this_mmu(), but the call to smp_processor_id() which was marked __maybe_used remained. Since commit ed1cd6deb013 ("powerpc: Activate CONFIG_THREAD_INFO_IN_TASK") thread_info cannot be reached before MMU is properly set up. Drop this stale call to smp_processor_id() which makes SMP hang when CONFIG_PREEMPT is set. Fixes: ebb9d30a6a74 ("powerpc/mm: any thread in one core can be the first to setup TLB1") Fixes: ed1cd6deb013 ("powerpc: Activate CONFIG_THREAD_INFO_IN_TASK") Cc: stable@vger.kernel.org # v5.1+ Reported-by: Chris Packham Signed-off-by: Christophe Leroy Tested-by: Chris Packham Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/bef479514f4c08329fa649f67735df8918bc0976.1565268248.git.christophe.leroy@c-s.fr Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/mm/nohash/tlb.c | 1 - 1 file changed, 1 deletion(-) --- a/arch/powerpc/mm/nohash/tlb.c +++ b/arch/powerpc/mm/nohash/tlb.c @@ -630,7 +630,6 @@ static void early_init_this_mmu(void) #ifdef CONFIG_PPC_FSL_BOOK3E if (mmu_has_feature(MMU_FTR_TYPE_FSL_E)) { unsigned int num_cams; - int __maybe_unused cpu = smp_processor_id(); bool map = true; /* use a quarter of the TLBCAM for bolted linear map */