Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp422401pxk; Fri, 11 Sep 2020 10:26:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlq+hg14KObYs6BEfMPXBDHKsMjiIb3DuhYNjhNO6JKjg6tnt2CogNie02KaQJI9oAFuVj X-Received: by 2002:aa7:cf0e:: with SMTP id a14mr3337741edy.81.1599845182140; Fri, 11 Sep 2020 10:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599845182; cv=none; d=google.com; s=arc-20160816; b=FUkt7GHaPUonwvW6Le53eWoF3q2UcySOEtqURjBx9H7bs3tzgTfKYCs2XT4QuoMGz2 FXDnPd4RoTM8lly56gw35k//LLT210mZUJZuZE3fTvb5X3WHofsfmv9nbsyx+6NpOCbO 5/Xb9DFQnKlXxQCAEB2ERtklGlAMhjkU4aiIWZzazpgG8cOCJoBu6p5CyzpTpuF2hNHh USJnpMEz37SR5mt5hnNhkXHbXghW5CPDgHRu8X8x66HqwS39sePzaRxp2vOtrdXyhIFS sh1RynB+NNtDxtbLFFfEnMpmDofK/h7RNiBAkhxHbO1YW8C8q+9FpN/SFcYe8WV1BbW2 OX3g== 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=lNVC10ovJX7sdSGWrgEsi6DAxrP4UdQ/Xvg5Ee1BA2I=; b=NCdvNlivTRFL6IK2TMmsD3oeP3J7ALjlRnPsSDzr6hmfZ8/0Q0N9c5x82Ff5LzhB1w rVYLXhPONdP4znhWwnRLIJzuj+IblYQs+5mHnEIh6E0ySGKcifJ60ZQqLWJfDW91Uh+3 uzFFPYYae/dCpvokBUXDjGQ9MKQ1c8k+pTO0MWTey8riErPbiJbw/zZS3VXo7/TVwkA+ AoXJIFDkSJpdM0ArSlXVdbBBAD77AaDCgrUy3yqhaXyqHQQTMSqqFjy0beAlnRebuJCI 0JAzLJE8YEgjYIyqi3dcojjLtnKyN6FWTC88IcGW6kpMlH529mvnw0+Yp4KbbaCyD/Ze b5rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YcOa1v1a; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m64si1798705ede.91.2020.09.11.10.25.59; Fri, 11 Sep 2020 10:26:22 -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; dkim=pass header.i=@kernel.org header.s=default header.b=YcOa1v1a; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726322AbgIKRXy (ORCPT + 99 others); Fri, 11 Sep 2020 13:23:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:49794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726122AbgIKNAK (ORCPT ); Fri, 11 Sep 2020 09:00:10 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 A08E622265; Fri, 11 Sep 2020 12:56:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599828966; bh=fNBNcOgX4i+Hl3AzT2MSyxtmGujHH77lcqB5weddF+w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YcOa1v1aQBf36cmQoywuCB1+HmRq3+K5jw1Lwr2PW4KOYyMnN3XualWmvJV1CEpfR CKLkCZQZmwrQUAI6RPsJhktuAXRKmLOfwcsYZjOFYD6+gPv7wpOLaUZII0ykdMujmW jLrTX5RhL/gAi3uCst5B9sg+huVigzPGLV4peprI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Fainelli , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 4.9 14/71] MIPS: BMIPS: Also call bmips_cpu_setup() for secondary cores Date: Fri, 11 Sep 2020 14:45:58 +0200 Message-Id: <20200911122505.655396485@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200911122504.928931589@linuxfoundation.org> References: <20200911122504.928931589@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: Florian Fainelli [ Upstream commit e14f633b66902615cf7faa5d032b45ab8b6fb158 ] The initialization done by bmips_cpu_setup() typically affects both threads of a given core, on 7435 which supports 2 cores and 2 threads, logical CPU number 2 and 3 would not run this initialization. Fixes: 738a3f79027b ("MIPS: BMIPS: Add early CPU initialization code") Signed-off-by: Florian Fainelli Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/kernel/smp-bmips.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c index 416d53f587e7c..6e36717527754 100644 --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c @@ -236,6 +236,8 @@ static void bmips_boot_secondary(int cpu, struct task_struct *idle) */ static void bmips_init_secondary(void) { + bmips_cpu_setup(); + switch (current_cpu_type()) { case CPU_BMIPS4350: case CPU_BMIPS4380: -- 2.25.1