Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2095471ybb; Sat, 11 Apr 2020 20:31:14 -0700 (PDT) X-Google-Smtp-Source: APiQypK8j/zcfYE8Vh7NRGVRkKm1opi+AbuFnzY/T2GunCjTS0ndKG06n5vZSb3u4SnsCCC2TrFD X-Received: by 2002:a37:88d:: with SMTP id 135mr10638122qki.211.1586662274205; Sat, 11 Apr 2020 20:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586662274; cv=none; d=google.com; s=arc-20160816; b=PTpYGyOJsoJa6iGceDFVZHAOPZ0elO0feXFQTqGPQOzFvreAhoRs7Mpu4UHrtGHoIM wD+cy/o5zjOilAQDDeV3tb7z2L6/rgHPg0ngL2Hu5T6oQSjPB1fifrGF4WjSAme1PLHS YqF/MbJnheWktKd7Fx54TDdV4aPZTzLLvZLJuoEWmkll7MM62STyPCIUny3NNgmfXwZg +cPxeGz1IZQ8P63vvPqiYMZ5TwsjpZwXTPy4iAryzzt9xoU9rKKKpFaJNLNIiDGJ/COs 7LT0XDvUvgWw+mh7jnZ9Abejbd15GqI98z3595EvWn9tWVdgg+sNzHYXcog1aiklFRHB 3a9w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XN4nkOtzi6y5LExoDs+AkQfcDqYSoNayAIbsuf/lZp4=; b=pLZ657tdXAS2pyYSI1mdlrD0yQhPZ9bDFqFfZUO83Epfe8XpsidS6OJ2hgYzhy9Gor XN0c67Cl+Aky3ShaVb5hH+lAaWH5hQyWo2jvvejD0yxF6asEAVElaPlMw7LSkWpWssgj 928S5ghZ5dyRW1Xfezq2pXF4dkJ6aTxJ2fMRTKQHdHN+xwTsf5NzpZC5nlFW6yzrnWAj mpBkUHYFmgVLtypfZee1xbkxg5r3uewR8H6fFSP6XSrgvzUrFc4h0NE14Xd+bqNRyfWK 1vx/uzhykXw5qA5mBx8g97yS/FZiyskoav5OLHNQX7fWzxbDwI6o1tTP9DRPWLf8mFqB r3Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=G6c6rQPj; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x19si4109075qkf.36.2020.04.11.20.31.00; Sat, 11 Apr 2020 20:31:14 -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=fail header.i=@flygoat.com header.s=vultr header.b=G6c6rQPj; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726916AbgDLDaU (ORCPT + 99 others); Sat, 11 Apr 2020 23:30:20 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:55030 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726798AbgDLDaT (ORCPT ); Sat, 11 Apr 2020 23:30:19 -0400 Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 074EA20D28; Sun, 12 Apr 2020 03:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1586662220; bh=n4+06mBFG2E/6pL4l2HWMXmoCzgCWYsl2JbLBTdqk/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G6c6rQPj7i8G4NQzr1+RrqfibhJZrKz05vJtbSnHpUi2899+XEDwnBocTlOdWvqav Z5qm4Nv07R3bGOBaBW75RlbHnfToqG74vRz+p48NLsqwQkCbflshXes1diVmo41aDL cC2QbgVWzT2IG2VTjJ/MHcfrwNaZ42c89fjkcmpWPKNJQFSxzim7pqz6JUph1w8DVE 1qBEF6becW1Leh8T5Tm7afBU/YEaWbkhdehIiSm8y1Xoy8XE0vv4gAnEgfpbK4XZJi Fu6xmqD5vmdHtzGXMElKA2nuIdJ//JB3NDC9ujK5H9kSb1sKyqMZZJTl152xIVUi9+ ezK78J/8oWKfw== From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: dietmar.eggemann@arm.com, Jiaxun Yang , Thomas Bogendoerfer , Huacai Chen , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Florian Fainelli , Robert Richter , Sudeep Holla , Greg Kroah-Hartman , "Rafael J. Wysocki" , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Paul Burton , Allison Randal , Enrico Weigelt , Kate Stewart , Vladimir Kondratiev , Paul Cercueil , Zhou Yanjie , =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0=20=28Zhou=20Yanjie=29?= , YunQiang Su , Arnd Bergmann , Serge Semin , Matt Redfearn , Steve Winslow , Richard Fontana , Alexios Zavras , Peter Xu , afzal mohammed , Oleksij Rempel , Mike Rapoport , Kamal Dasu , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, oprofile-list@lists.sf.net, linux-pm@vger.kernel.org Subject: [PATCH v2 09/11] MIPS: bmips: Switch to new topology interface Date: Sun, 12 Apr 2020 11:20:39 +0800 Message-Id: <20200412032123.3896114-10-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200412032123.3896114-1-jiaxun.yang@flygoat.com> References: <20200412032123.3896114-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change the parameter of cpu_set_core from cpudata to cpuid. Also set cluster id for bmips as it have different method to probe actual hwid of CPU, and smp_store_cpuinfo is using cluster id to determine if we should probe topology info again. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/smp-bmips.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c index 9058e9dcf080..c40bb37eab38 100644 --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c @@ -247,7 +247,8 @@ static void bmips_init_secondary(void) break; case CPU_BMIPS5000: write_c0_brcm_action(ACTION_CLR_IPI(smp_processor_id(), 0)); - cpu_set_core(¤t_cpu_data, (read_c0_brcm_config() >> 25) & 3); + cpu_set_core(smp_processor_id(), (read_c0_brcm_config() >> 25) & 3); + cpu_set_cluster(smp_processor_id(), 0); break; } } -- 2.26.0.rc2