From nobody Wed Dec 17 08:11:58 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62FC2CDB482 for ; Fri, 13 Oct 2023 09:39:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231613AbjJMJjA (ORCPT ); Fri, 13 Oct 2023 05:39:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231260AbjJMJiP (ORCPT ); Fri, 13 Oct 2023 05:38:15 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF577CE; Fri, 13 Oct 2023 02:38:12 -0700 (PDT) Date: Fri, 13 Oct 2023 09:38:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1697189891; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+TVQpBz9OvZUNUEZoSqTL7RJLRy7xgCTMC4+YJjROzQ=; b=OYxEXeO4I7YU7Mlf55z7zBZ8fGtwZlBkklqW+/SLvb8N0rAEXGsO4IpMjv3No3BVvGOJ6G PPUYNtbmRDIG61gWh5eFBuZoaF28G5/5zbp86um2dmGvN9VPAG6/4PRe8yap5ipvTff7xL 1zoZJCyuGX3ro9ECSrLEoRtVtfppKlNhKu1s1+aybFwpr8v61gQMl2fGMhMnS7X8KFuGDA 51phujLRslfwfsZjgi/5gGjnKK1SuOVXNLm8W/qrbF5PXtniwt/YnQ0xJZX3DqW+rlznLJ K7j/5C2a9pGsSDtI+yZUFeD/zVr2EqH71GgsS+uwzdAQyKEs7VQpA2MrahiqwQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1697189891; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+TVQpBz9OvZUNUEZoSqTL7RJLRy7xgCTMC4+YJjROzQ=; b=6/FwhmgWZxggQsfaZ5oqkqS8l/aD8VwPd+WpJBOSn91WP7ElYg4Lg/ry5up2zjgmu71jJK a8WZW4NqYMr1QFCQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/core] scsi: lpfc: Use topology_core_id() Cc: Thomas Gleixner , Juergen Gross , Sohil Mehta , Michael Kelley , "Peter Zijlstra (Intel)" , Zhang Rui , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230814085112.446856860@linutronix.de> References: <20230814085112.446856860@linutronix.de> MIME-Version: 1.0 Message-ID: <169718989092.3135.5794542143977033088.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/core branch of tip: Commit-ID: 09253672b5d9f911b96651400a02ad6666b7ae2c Gitweb: https://git.kernel.org/tip/09253672b5d9f911b96651400a02ad666= 6b7ae2c Author: Thomas Gleixner AuthorDate: Mon, 14 Aug 2023 10:18:32 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 10 Oct 2023 14:38:17 +02:00 scsi: lpfc: Use topology_core_id() Use the provided topology helper. Signed-off-by: Thomas Gleixner Tested-by: Juergen Gross Tested-by: Sohil Mehta Tested-by: Michael Kelley Tested-by: Peter Zijlstra (Intel) Tested-by: Zhang Rui Acked-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20230814085112.446856860@linutronix.de --- drivers/scsi/lpfc/lpfc_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 3543772..e7c47ee 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -12456,7 +12456,7 @@ lpfc_cpu_affinity_check(struct lpfc_hba *phba, int = vectors) cpup =3D &phba->sli4_hba.cpu_map[cpu]; #ifdef CONFIG_X86 cpup->phys_id =3D topology_physical_package_id(cpu); - cpup->core_id =3D cpuinfo->cpu_core_id; + cpup->core_id =3D topology_core_id(cpu); if (lpfc_find_hyper(phba, cpu, cpup->phys_id, cpup->core_id)) cpup->flag |=3D LPFC_CPU_MAP_HYPER; #else