Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10252576pxu; Tue, 29 Dec 2020 19:44:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSkgD4P8J6lpi8CHABI7Cti6aqPh0mya4ugoH5+LwwwjC144WDbsUO0IZQ7maUPqPMWHey X-Received: by 2002:a17:906:cb86:: with SMTP id mf6mr47018785ejb.57.1609299846440; Tue, 29 Dec 2020 19:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609299846; cv=none; d=google.com; s=arc-20160816; b=Czk8rJNFt2mfq8LrzuoWotsXsYaf3tqQEXm5v8zqaKI6QnGyB7utYo4YmdDsUxoDfA 4Xxb+PZF77J6uVRl6a1KptNtTHlIR2i+bq9TwZdz8hxlSw/s6gQGlqWX1Q2IowIj7ZfR wjwOTdi4ix8iRwvNgw/GMjy8wraphxyjYqUcwNLEP89BL02qAGF+lbAvza7L8k5cG2d4 fjDEwIfc5Yoznvp/o2KSUzUEDz+Rw6e5qiZNZCIgwLynHfv7gQ238Z+pcxsuqtp/O2ne 3J3wPEJnO3/3nfLv4oh28MJR/17lfgl+AP/n6NBm4PM9RMtNNE+qHuyCRIZHaFfjxNnO Oclg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=EnbvupgUcqMHnhhla+aVj4XmahMxnztlACAsry5tZ9Y=; b=QaoWrDAhyYQ/mC20Y9B+YRk1Jw1pDUf3Ep14vLzrpxtwJvlypi1S2647uBE+d1Ur0C gEFQyVUc+mX3yTBvpxJbGL8hbENDOjpkiULIBQZsQpAmDF1G59/AG4z7ziHGbnWoe+04 M9+I7vgPNpBtcw5NW3N9TFnHBYg5l7f7EnrXnWLwEH4+iPYwDpyjAzTBqKLAcQpmzzzH DhRgfu3wbjLqlHlo73NrrsIO81/n2WCoYANM4/6Z1r3aa6P1uMYxU4HbJDmkhplfopkr 3eHWfawYmeZ3mEucBqwnb5hHjzbog3Wl85gQuWhVzhT2GqS5DkiPGo5/EY812/QAu91w RjGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=Cq9jMCIg; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=KZZY9JVw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z102si22030237ede.307.2020.12.29.19.43.44; Tue, 29 Dec 2020 19:44:06 -0800 (PST) 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=@flygoat.com header.s=fm1 header.b=Cq9jMCIg; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=KZZY9JVw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726279AbgL3DlB (ORCPT + 99 others); Tue, 29 Dec 2020 22:41:01 -0500 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:45055 "EHLO wnew2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726138AbgL3DlA (ORCPT ); Tue, 29 Dec 2020 22:41:00 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 68B719F4; Tue, 29 Dec 2020 22:40:14 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 29 Dec 2020 22:40:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=EnbvupgUcqMHn hhla+aVj4XmahMxnztlACAsry5tZ9Y=; b=Cq9jMCIgW/GhuAWEiOp0gghMCPcio j/PCETrkoamqXDgD4Gg0nvmWLwAT7WRSA3My5axhGuTWuF4tkcBtRKT9+sZyOcAM dYuL7OAhdVNi6/TcBP/arls0EiManaoxvj4ycdnIKzWPnOO9fG2A3NJX5FJmpnuD 1qudTiZQ4yfhuwEGjvrqZV773QQheUqbNAt8JVSDpthuSmXNp9oYdQrFjz4dngU1 WmDBAOiQ5VdeE74eDf2wvNLer/NUxLR92tIFRajG/7cd+CqACkJ3DBowTvpAzZL9 YYF85nFZ6t9c88wmOLo3NveEx647iW/t3in3mrQfUs3mLtSd5tCeC7xpg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=EnbvupgUcqMHnhhla+aVj4XmahMxnztlACAsry5tZ9Y=; b=KZZY9JVw hcD7RS73QA7OfBLjKgyswZF/Wc0Dg+KnpiMDcN81cbB4jU+rKavQUTn48V1idIlp /ZT9wFpRH+X5N2U2llPR4MEPl1aGDmF+GiUwAn2YwPJiU/4ygfoXd0HQRivaf9Nx aYBQWGWPQnoLpF8jJNZD4k1d1zP6n0hdC92m0SbkK8xYahvazDt+JvZvrXNW5q9F aSpz6H8eMO9D1qJ3yJqg4087r2XhSiv+Uk6YPtEeaE4e0p829HpCBri2AcU4PHTh P4p9BDlPTeBYcmfVvArFU8iF0PuAMjBOr08e/zlLzwari+SL8ratR+SHltrzVCJG Qa9iRC5FGnA3zw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddvvddgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeflihgrgihu nhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqnecugg ftrfgrthhtvghrnhepjeeihffgteelkeelffdukedtheevudejvdegkeekjeefhffhhfet udetgfdtffeunecukfhppeeitddrudejjedrudekledrudejudenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdrhigrnhhgsehf lhihghhorghtrdgtohhm X-ME-Proxy: Received: from strike.202.net.flygoat.com (unknown [60.177.189.171]) by mail.messagingengine.com (Postfix) with ESMTPA id A3A13240057; Tue, 29 Dec 2020 22:40:10 -0500 (EST) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Tiezhu Yang , Thomas Bogendoerfer , Huacai Chen , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] MIPS: Loongson64: Set cluster for cores Date: Wed, 30 Dec 2020 11:39:49 +0800 Message-Id: <20201230033950.13839-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20201230033950.13839-1-jiaxun.yang@flygoat.com> References: <20201230033950.13839-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cluster is required for cacheinfo to set shared_cpu_map correctly. Signed-off-by: Jiaxun Yang Reviewed-by: Tiezhu Yang Tested-by: Tiezhu Yang --- arch/mips/loongson64/smp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/loongson64/smp.c b/arch/mips/loongson64/smp.c index e744e1bee49e..fae3a97d853c 100644 --- a/arch/mips/loongson64/smp.c +++ b/arch/mips/loongson64/smp.c @@ -403,6 +403,8 @@ static void __init loongson3_smp_setup(void) __cpu_number_map[i] = num; __cpu_logical_map[num] = i; set_cpu_possible(num, true); + /* Loongson processors are always grouped by 4 */ + cpu_set_cluster(&cpu_data[num], i / 4); num++; } i++; -- 2.30.0