Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2395987pxj; Mon, 31 May 2021 00:43:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/IP2hGXwf+fCOCqyWL90VyYc8NbFzJITOkKcbVkbY7A74d5sciOeACE9DdpktAPxWUpqS X-Received: by 2002:a05:6638:2181:: with SMTP id s1mr19315695jaj.66.1622447007531; Mon, 31 May 2021 00:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622447007; cv=none; d=google.com; s=arc-20160816; b=vc1Xb8chUNdkVUlXfp1C9B5T4jzYp6RBMF8vfr5mq7aMBBDECTmEegfVcpfNbmvNB6 dwJPJhHW2yAvtKxHakjjojGhGbUT5NR/nQA/5EnPyThhD931qqgpyfSqp8/du5Wz1Uf+ KrvJXXllByR+DYrEuvHCyRsJF9vfn8xPuD9BTW+2ora/HvaxLuSzQU7FvppOUUb2w1WC p8j7aWpcUgA1uMO7kUSdTVn0lGibW5X2j7Wo1l8oncNPWPQlpfGcYVx3pi7MSVOzz3Ut ZANXapFQubfJy2A/B0j0EsWT4lQ45ApgGuvi39HbCPzoZQJa1B859wD0M9emBaLzvrid DB1A== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=YhAUisS/fLN6E+FWvha/XrO7IzCg7dvX4MvgIwJw0DU=; b=a55VUHxEev0tLCsAy5V+6CraHK9A66LHXn4teMjvyeJk1/uxvEkzvA03Lu3YZ9M7p1 6YLsdUFV84Izelch7SSjdDvwBqiskxljG2immH3Oo3ZLqKs1D/StlkkrO5o59xgCXJPn iopwR8WYmfwB7FqKchFFRMc/tnsueh9h4MMfyW+fTUq4Xt95i2eMTXBsWKwWy+Qr2lN3 OvKfe1Jtyb9t2f5sfgY9QLO81vazEh2zCrIcf04KJG/Ft0UH0vu50XlXYj7mQHnlteLN KmYWS88DqhmCZxhFXFMYboPkoYJ9dlupxrX4/opFMMjiwuetg48gp5PauZxdJu+ExiBE zeXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=in3pdezQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si6342490ilc.147.2021.05.31.00.43.14; Mon, 31 May 2021 00:43:27 -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=@linux.microsoft.com header.s=default header.b=in3pdezQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230426AbhEaHnr (ORCPT + 99 others); Mon, 31 May 2021 03:43:47 -0400 Received: from linux.microsoft.com ([13.77.154.182]:54488 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231132AbhEaHmi (ORCPT ); Mon, 31 May 2021 03:42:38 -0400 Received: from localhost.localdomain (unknown [106.201.36.115]) by linux.microsoft.com (Postfix) with ESMTPSA id B121620B7178; Mon, 31 May 2021 00:40:56 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B121620B7178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1622446859; bh=YhAUisS/fLN6E+FWvha/XrO7IzCg7dvX4MvgIwJw0DU=; h=From:To:Cc:Subject:Date:From; b=in3pdezQoum4Z+VcwkiTO9CHskSKXDo6XMdA5+ET0xZ7ZGlFqJSuVxDi/EOPh1I7M LImlQfep7uOioaz+k9vtUzFcjo6nn7ffpL7FDlPvkK4RuqDbyCtjVA3R+CuNMJAxWc LG6CJr89CVKXrnZOQrUK693KXO8s6NRlWIlmOgF8= From: Praveen Kumar To: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de Subject: [PATCH] x86/hyperv: LP creation with lp_index on same CPU-id Date: Mon, 31 May 2021 13:10:46 +0530 Message-Id: <20210531074046.113452-1-kumarpraveen@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The hypervisor expects the lp_index to be same as cpu-id during LP creation This fix correct the same, as cpu_physical_id can give different cpu-id. Signed-off-by: Praveen Kumar --- arch/x86/kernel/cpu/mshyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c index 22f13343b5da..4fa0a4280895 100644 --- a/arch/x86/kernel/cpu/mshyperv.c +++ b/arch/x86/kernel/cpu/mshyperv.c @@ -236,7 +236,7 @@ static void __init hv_smp_prepare_cpus(unsigned int max_cpus) for_each_present_cpu(i) { if (i == 0) continue; - ret = hv_call_add_logical_proc(numa_cpu_node(i), i, cpu_physical_id(i)); + ret = hv_call_add_logical_proc(numa_cpu_node(i), i, i); BUG_ON(ret); } -- 2.25.1