From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-26.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A46ADC47082 for ; Mon, 31 May 2021 07:42:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 77A846023F for ; Mon, 31 May 2021 07:42:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230381AbhEaHns (ORCPT ); Mon, 31 May 2021 03:43:48 -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