From patchwork Wed Apr 24 15:48:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Richter X-Patchwork-Id: 13642151 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2056.outbound.protection.outlook.com [40.107.101.56]) (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 DA10F16079C; Wed, 24 Apr 2024 15:49:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.101.56 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713973772; cv=fail; b=tfggPN8CbtZrD+ovu1uNTiUmM5BeFJEa8nYsydmhZESRPhcYJhzyyld+WXOXeQWyc5TDaWSuSCGGq14TLJSprsRyRgDGPIj1pJa3cSNC+jtVPU15F3T/1ML4/t2jba8DBBdal9yThyCybX+z6tQzxn1bnoN0C17/qk13ebGdquM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713973772; c=relaxed/simple; bh=CbBWWmOXMZJr+vcvwQUw1+jmvgt/g91nyBpwqi4k33M=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ceGw0H02CTke9R+rf9nMqrBjJlnArzsJqdRgVWM4fe1BMvgAhTB1HmlhVk193MuR7+gXfPvLD5szKiyLNKT0TklgjmlMiSdB6r6KNaVTpbgd/ok41/mIptjGKx+CC9B+QlOHBEqC4R22h1+/qraK5GsMVSKwn22iDRUka2AV390= 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=oTNEOfyd; arc=fail smtp.client-ip=40.107.101.56 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="oTNEOfyd" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FTjL0d4l0gn8anbCKX7GAgyDF2x37KD0Jf5rRIT4Av9OUweLNx4d9DaHV3I39flLJRo2IPc7GCxojP+4aAtIc1AMj9xuzDWeFv+1sBJrOlTbjM3Y6kFjbESxyxgVG7koZKpxAz/q6xqCUG39oqRtkIXzDmkeEgtaU9SKDjkapfvDad0M8mGGbHi3wDCZUqAahsJmOKrx/ELlRAJqJpQn93xnx7AcrU/B4NqLTgFc5ozFHob+CaVVYifiOPavGI0rtJ61YR21VkIR0k6P3K1oNCXThmx/GiKyKwce+u8kKtMtjIV+NdPL/aWSt8qjnwAGzopJkwPOYx03UoJcP1ko2A== 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=Ob0xrBAzWy2sgbstIGdjZMOKVz6xPbKy5SjQ2fC0UZE=; b=MQX+uEZHdfS2ZHPn7ikdKcUyYByzzndiTgjXpfXgv8lpKrRlCcnRYCQng77B+48gDgRyBl7fT3yGFzQTTjVMo5bzKwExNFF169ejqTx5UFrhZ6K3P6JqpE2y4GuCast0eb2j+R/aBSg5uKcHZDdImU+jFma6h2Xx7mlHqJAQ8WpdPqamhIDQ3LjE7t8Ah+OK3bcFLLDhaDgcWH/yvRfzahUx6/wYlo4bAW1u4Tgdpm7qTQ18caFHvVQidXRPrKTwvPbwv0QkdbZ6L3EgfYeb45HHOirsvOgCemULB4+8WRU8f6EsCP+6rD0NDyP2b0p0b2lxBRtmniRyzx2CKl4uwA== 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=Ob0xrBAzWy2sgbstIGdjZMOKVz6xPbKy5SjQ2fC0UZE=; b=oTNEOfyda28hdQGSbcqXOU8AUuWq14bpFAxZ5Z/tkpv6Fecm56hHFVp/Gs81kkuRnUTo6pRHc8B2PL/w+abzeLHdY3D2fKOObndgHu2mJ70wFtmkrRbENqaYV+PfDncoDYWMfA92RYTBdaaw8oGCXGdtFSeUHl16odIOEMQDrVI= Received: from MN2PR05CA0011.namprd05.prod.outlook.com (2603:10b6:208:c0::24) by DS7PR12MB8420.namprd12.prod.outlook.com (2603:10b6:8:e9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22; Wed, 24 Apr 2024 15:49:29 +0000 Received: from BL6PEPF0001AB57.namprd02.prod.outlook.com (2603:10b6:208:c0:cafe::b2) by MN2PR05CA0011.outlook.office365.com (2603:10b6:208:c0::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.24 via Frontend Transport; Wed, 24 Apr 2024 15:49:28 +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 BL6PEPF0001AB57.mail.protection.outlook.com (10.167.241.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7519.19 via Frontend Transport; Wed, 24 Apr 2024 15:49:28 +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; Wed, 24 Apr 2024 10:49:26 -0500 From: Robert Richter To: "Rafael J. Wysocki" CC: Dave Hansen , Dan Williams , Alison Schofield , , , , Robert Richter , Len Brown Subject: [PATCH v4 6/7] ACPI/NUMA: Add log messages for memory ranges found in CEDT Date: Wed, 24 Apr 2024 17:48:45 +0200 Message-ID: <20240424154846.2152750-7-rrichter@amd.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240424154846.2152750-1-rrichter@amd.com> References: <20240424154846.2152750-1-rrichter@amd.com> Precedence: bulk X-Mailing-List: linux-cxl@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: BL6PEPF0001AB57:EE_|DS7PR12MB8420:EE_ X-MS-Office365-Filtering-Correlation-Id: ebbc7451-2034-4e2e-f2b4-08dc64762039 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|82310400014|376005|1800799015; X-Microsoft-Antispam-Message-Info: 64PXKo6orVqAgyg/T/jb3LzmsbP146CMqKuwaTU8CiUJP2YxU4y2CtkVx+iPEvpCZ2nAaoZH6LuNuSiI8/I3fTso+VzaTXLMLs5sSsk4RxJFiAx3CoHHl92v1QUkdQYSIUPf92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3bUPsLgrlIW/HJh/EDDDLi2Hgwme6t+3CgCZm3fy5ju4M+FQ18CnSEhcq3bXM/bg0L25jMlcZSkcTYFrfoMKzmPDK+rBX2ckk8aZuKvFYOvPcDvq1x1uHetE7zPQQGanOvrVKjiJYJMMn9LFF21At8BA0EsmupUzwYz0gNTojcKl1pdG/IZ32SKyu7irC0Owbq8uKG0EQ 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)(82310400014)(376005)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2024 15:49:28.8886 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ebbc7451-2034-4e2e-f2b4-08dc64762039 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: BL6PEPF0001AB57.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB8420 Adding a pr_info() when successfully adding a CFMWS memory range. Suggested-by: Alison Schofield Signed-off-by: Robert Richter --- drivers/acpi/numa/srat.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/numa/srat.c b/drivers/acpi/numa/srat.c index e3f26e71637a..c62e4636e472 100644 --- a/drivers/acpi/numa/srat.c +++ b/drivers/acpi/numa/srat.c @@ -338,8 +338,11 @@ static int __init acpi_parse_cfmws(union acpi_subtable_headers *header, * found for any portion of the window to cover the entire * window. */ - if (!numa_fill_memblks(start, end)) + if (!numa_fill_memblks(start, end)) { + pr_info("CEDT: memblk extended [mem %#010Lx-%#010Lx]\n", + (unsigned long long) start, (unsigned long long) end - 1); return 0; + } /* No SRAT description. Create a new node. */ node = acpi_map_pxm_to_node(*fake_pxm); @@ -354,8 +357,13 @@ static int __init acpi_parse_cfmws(union acpi_subtable_headers *header, pr_warn("ACPI NUMA: Failed to add memblk for CFMWS node %d [mem %#llx-%#llx]\n", node, start, end); } + node_set(node, numa_nodes_parsed); + pr_info("CEDT: Node %u PXM %u [mem %#010Lx-%#010Lx]\n", + node, *fake_pxm, + (unsigned long long) start, (unsigned long long) end - 1); + /* Set the next available fake_pxm value */ (*fake_pxm)++; return 0;