Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4133041pxk; Tue, 8 Sep 2020 11:30:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5wdyd3hR142tQDHoE1RyBpCc1jt6TCpTdHP+IIuwfpgkEgynMugTe3gWQF7GHkUIMH2te X-Received: by 2002:a50:e44b:: with SMTP id e11mr292896edm.73.1599589817376; Tue, 08 Sep 2020 11:30:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589817; cv=none; d=google.com; s=arc-20160816; b=VPEKTzY/vmKaAkj0xafbgPB5cs+XjT+Lkg/1gsF9kyrnR5O2podrm8yd9D9JFuKtZp JVnRhQkmx5RejaYxlItlY2OoYlqCBhiluf5hbGDZepEPBdvbBfnzmW1sQzknbOdYCokC NEnoeIoy40lUEiVGjMkG+QrttI89ZNZGeqhMLpJM80BqbL14XTHEGXVwOJ+s2Q3bq6mk JHYzqRaxn67c13GxIrpxyUEhrQlGOU9OMWIh89YdF0IBF/g7KtCuMtagPqszTdmYq3sA gYtDSiFqmL34nyBTt4P+ZJQEwUTnDIEHLYy8JMRoioR5KXdWp+EM3uGkdPKF2gIZZypy gcgQ== 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=MpGq6wV425FxVqymtMheLHobqxC3jpCEU5V83DlKmjY=; b=G3lw8NI4bo75VYIUm40SmAG1JZB+teTLZIzH9GpSNkLfC8IagYE6b4MMufO3lhibyS 548mzpRj3fdgX18XzKuu2o/JMVQq+uwKwx02EqbKTa3moH4snEAU/DESACorOvDx03oo bQ5CWPzvb2Te6CsAikAx4YhB8det4A22MxhxvcCuJnf7RRgHS0nIzqBi/L5MIb2dAdfx UD5wL7qiVjficFQ0aeRSsFLIkiNji/heJuPMQyn/EOU63SFlt4nYnH2PoCc+t7RqVBHw kVYd5iq8bclB3XEPo+2ExyOTxu8ezJ0JKrrQqAlVCkGkA+eHZzzbuurWsphxSYWPyCzR +kHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="rDpaMT/g"; 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 v2si7814893ejw.741.2020.09.08.11.29.54; Tue, 08 Sep 2020 11:30:17 -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="rDpaMT/g"; 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 S1731736AbgIHS2v (ORCPT + 99 others); Tue, 8 Sep 2020 14:28:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:56082 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731411AbgIHQKZ (ORCPT ); Tue, 8 Sep 2020 12:10:25 -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 1DD08247FB; Tue, 8 Sep 2020 15:42:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599579779; bh=o8ytTSftI7XVW2R+n1HOjHjSy6g05GtHLbG+3/m5OBw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rDpaMT/g9SEawE9VysfQ3u+6927818TeP0HHBwscGTHMucbh2aO4dWAGCf26Kiagg dOcUaClWDxeOu4WTQGZ9LpFFoNEdXaExTuuH3zUJXme7gr4O0SJOPm32ZlHtPLZYd5 yD5qJjQJga8x+3Iwv+ad8QIo7RDZDReb+xnqcDcE= 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 5.4 030/129] MIPS: BMIPS: Also call bmips_cpu_setup() for secondary cores Date: Tue, 8 Sep 2020 17:24:31 +0200 Message-Id: <20200908152231.192551243@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200908152229.689878733@linuxfoundation.org> References: <20200908152229.689878733@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 712c15de6ab9f..6b304acf506fe 100644 --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c @@ -241,6 +241,8 @@ static int 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