Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1125415lqm; Thu, 2 May 2024 06:10:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNtRmhEd1nnOW5heG9EQYJAS7UDpPrgofQBHdsOs2ruA+icGe22fIVoNyJFPQVwthF4qU0XWIFtV0nlIpsSqRmsEo8AtcJla1PyoGFjg== X-Google-Smtp-Source: AGHT+IHAGMflMgwGO/TV95l5MI+1rCQj3BBsieA3O7KIGorvh8mzv+UbM74syTXUekcUiZsLjg6T X-Received: by 2002:a50:d55e:0:b0:572:67d9:6c3b with SMTP id f30-20020a50d55e000000b0057267d96c3bmr4545431edj.26.1714655448308; Thu, 02 May 2024 06:10:48 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b62-20020a509f44000000b00572befab32asi505539edf.664.2024.05.02.06.10.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 06:10:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="RRxg/f9X"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-166486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166486-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D36471F23AF5 for ; Thu, 2 May 2024 13:10:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5F4F84A21; Thu, 2 May 2024 13:10:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="RRxg/f9X" Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E42C32C60; Thu, 2 May 2024 13:10:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.40 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714655437; cv=fail; b=NY2zn4H7ExuBP+aerl0il+gyQ+dfVE/YsPagc0PcEsfwLNFTd8fwdyhrjwaltcZsGbRnp3dt02w1nlsxUQgZoHkZaiKJJuOtHDngKPEiil7V5w3oW15l0m2bJUQ25zjiWORTzpm6+pdBedkig3y1N8UHAcXl+fJt+gBGqsM4Ql8= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714655437; c=relaxed/simple; bh=00W5juSoKcwkhEp72jV05qml+g1duorhzyYB8KCvIUc=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=HzbCAug3oltVctOGYGc7CCNcoVl7ny2fqpSRWrHt23z9U0LxXvUHBkq7YkLr9KZI3q1bMNVtrS28Vx7yWcg92P5Y5lf8fm5vtLSADLG8h4128Qk2D5l2BQHq7SrBTxzyxWUg3ayD0HEvxRP4RZd1v9thWy2+qasg8jr+34Q5uEE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=RRxg/f9X; arc=fail smtp.client-ip=40.107.236.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DT9NvI+eClUW2cR6NulFFYvf2ZsFHeAfqNiMZ8+ZYoQNMuqaflJfI4VuBLAjqREhscgyGb4Z0sruo6N5e0DguHcDRKeBVm7wJbXK7RVWk2ysGmgdeTV4niFauG+Zs5chTsNvxBNLyZpgEA/hdBpIh5Egx9Qgwel1lUSkJ4XFdYBulr1IxARHuFv0DayVZWcvwC7ZxCSrV9JxrNlyHZ4S1MPLB02faDpIQfuUeudz6zsQTRr50pGju6n0tNCKlLh0MdKyPUJz0gArGBhptrheSbmkudEIkooCxEH9OI2HMVNNXCl1XTCDILmusY+rNMV7q6s7Menfyp5z4fPAyS7Ntg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PtnK0y6qGXF0nRccMRtT4Z26QalgCxHwXZxGW6kRTqs=; b=aL71+UCQIB/T85wvRYWheeMvuFZznw+JWxLesOwXScP5sFyVl5Ba7jmCsZGTyzU3X2WMFvFINS6zUKUMlYjZcz5AQRbZ6LjW3FGS0ciipMWYTHlXE5nQ764Jm+Jf1GiynN7oDdnTqF12WB7bMV8dgWBVY0irE0lj8Ad8iAassMVz78Vp1eD1gEaCkE3SumZHFJBXvMLVteagTWjphUJ5jH/NI4tWihlfHFkinv29MifMYH1BBY317tdfPGxPYt4Fp90OgfUUvY5JMyMUFugocvMJOZMKZZEInXeGZj9DP0oW7wWMhw2upd+TxfcQL8q5LftcjiZi3VZ4h6/ZCED14A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PtnK0y6qGXF0nRccMRtT4Z26QalgCxHwXZxGW6kRTqs=; b=RRxg/f9XycE4ywIe+7KFI/Fp1fCAJNxkPYKY+8m7MJinnb78QyhGf8HzMfltU+NmO+DlA1N+8/BczjvPRUmfDz7I5XR+VgVHy2p74ugfMu4fu721zj29iNgAEXb5YaeGfWE641dVF/0ElTtZEqlZ4PROq9mwHPM+PDBTHpT96wo= Received: from CH2PR15CA0007.namprd15.prod.outlook.com (2603:10b6:610:51::17) by MW4PR12MB6874.namprd12.prod.outlook.com (2603:10b6:303:20b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.35; Thu, 2 May 2024 13:10:31 +0000 Received: from CH2PEPF0000009F.namprd02.prod.outlook.com (2603:10b6:610:51:cafe::ba) by CH2PR15CA0007.outlook.office365.com (2603:10b6:610:51::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.29 via Frontend Transport; Thu, 2 May 2024 13:10:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH2PEPF0000009F.mail.protection.outlook.com (10.167.244.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Thu, 2 May 2024 13:10:31 +0000 Received: from rric.localdomain (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 2 May 2024 08:10:29 -0500 From: Robert Richter To: "Rafael J. Wysocki" CC: Dave Hansen , Dan Williams , Alison Schofield , , , , Robert Richter Subject: [PATCH v7 0/4] SRAT/CEDT fixes and updates Date: Thu, 2 May 2024 15:10:08 +0200 Message-ID: <20240502131012.2385725-1-rrichter@amd.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PEPF0000009F:EE_|MW4PR12MB6874:EE_ X-MS-Office365-Filtering-Correlation-Id: 71cde2b4-d54d-4c1b-b8a8-08dc6aa93ee3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|376005|1800799015; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?txe51iuvX8B4U9vyi7NfhjCxhNrdS02Gl53zurVDa5wNZDgR5RgAERQLkY7b?= =?us-ascii?Q?X7Ahx085u7vwN2TX1PWZEM0dISnscUHpitestnH8kVKpVE5wTChiGSku+kXz?= =?us-ascii?Q?s65xbNV+xmDLj9M6e0T/i6M5IlX/bETwFuU9hZxOUKcmy/+d9rNtxPuJ52aX?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VVblAU01abYScKVKrrXXu5OvMualH1eCdk9FdvqCjm8n?= =?us-ascii?Q?JGbEHMIhIEaSlIHsP/mOUkKk2HNsLK9wZQxsHhS9K/CpUSsAscb5rmqFZPJZ?= =?us-ascii?Q?HQMVZ0g09oXX1uWkgh5pIT4Djs9yAjYTmvcLZ3NZQpAfTpUVn832/xiaNmiz?= =?us-ascii?Q?32e6TwBnxEeeaHocByXJa5grXg0OWeoA+IcRWiJklV9wlzfgO3ePQqkQkb3L?= =?us-ascii?Q?m2PhKFBBDER9ADaF4kbmfYwipaKxvyzoLeMI9HiHjMOx2LiZcDdgWd/voJh0?= =?us-ascii?Q?9paegYvC0wybvmNTnNtSS/iDluaWawUcDrImb1voTQRR5bU99ire4fGBLZKA?= =?us-ascii?Q?pKHWTD1YZDqJsB5UOG9LwE1Bx/KF?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(36860700004)(376005)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2024 13:10:31.6271 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 71cde2b4-d54d-4c1b-b8a8-08dc6aa93ee3 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH2PEPF0000009F.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6874 Some fixes and updates for SRAT/CEDT parsing code. Patches can be applied individually and are independent. First patch fixes a page fault during boot (fix as suggested by Dan). Patches 2 to 4 remove architectural code no longer needed. Changelog: v7: * added Reviewed-by tags * dropped printout patches (#5 to #7) v6: * rebased onto cxl/fixes * fixed 0day build errors in patch #1: https://github.com/intel-lab-lkp/linux/commits/Robert-Richter/x86-numa-Fix-SRAT-lookup-of-CFMWS-ranges-with-numa_fill_memblks/20240429-205337 v5: * dropped: "x86/numa: Fix SRAT lookup of CFMWS ranges with numa_fill_memblks()" * added: "ACPI/NUMA: Return memblk modification state from numa_fill_memblks()" * conditionally print CEDT extended memblks v4: * updated SOB chains and desription * added patch "x86/numa: Remove numa_fill_memblks() from sparsemem.h using __weak" * Reordered patches to move CEDT table printout as an option at the end * split print table patch and added: "ACPI/NUMA: Add log messages for memory ranges found in CEDT" v3: * Rebased onto v6.9-rc1 * Fixing x86 build error in sparsemem.h [Dan/Alison] * Added CEDT node info [Alison] * Use pr_debug() for table output [Dan] * Refactoring split in 3 patches [Dan] * Fixed performance regression introduced [kbot] * Fixed checkpatch issues [Dan] Robert Richter (4): x86/numa: Fix SRAT lookup of CFMWS ranges with numa_fill_memblks() ACPI/NUMA: Remove architecture dependent remainings ACPI/NUMA: Squash acpi_numa_slit_init() into acpi_parse_slit() ACPI/NUMA: Squash acpi_numa_memory_affinity_init() into acpi_parse_memory_affinity() arch/x86/include/asm/sparsemem.h | 2 - arch/x86/mm/numa.c | 4 +- drivers/acpi/numa/srat.c | 82 +++++++++++++------------------- include/linux/acpi.h | 5 -- include/linux/numa.h | 7 +-- 5 files changed, 35 insertions(+), 65 deletions(-) base-commit: 5d211c7090590033581175d6405ae40917ca3a06 -- 2.39.2