Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp633673lqt; Thu, 6 Jun 2024 13:35:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXagPgPZw9Fx2wdZ5SR2Ye9aeiZLYf4+eSAnH1hHFYbbRmi6y7XG8yvLHAlEabMsHZJc5FvPv8S42Z2kqu6jtKFhXs7bywlDNwSDototg== X-Google-Smtp-Source: AGHT+IGsPuPRM03Suh6xGcjYTnHDKsaOcva2eSE20iaEHj+wIR9knd02khorhnV/HmIijryd50jP X-Received: by 2002:a05:620a:36dd:b0:795:2072:59af with SMTP id af79cd13be357-7953c5f5008mr46518485a.64.1717706147430; Thu, 06 Jun 2024 13:35:47 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-7953284d74esi213299085a.111.2024.06.06.13.35.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 13:35:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204992-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=v3tC0zhZ; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-204992-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204992-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1D3E11C213B9 for ; Thu, 6 Jun 2024 20:35:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98F9613A40F; Thu, 6 Jun 2024 20:33:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="v3tC0zhZ" Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2065.outbound.protection.outlook.com [40.107.212.65]) (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 D5097502B2; Thu, 6 Jun 2024 20:33:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.212.65 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717706017; cv=fail; b=gYHbgtdGL6fGiD8kIqDGlIjxQt7o7Dp5SSMeXJLJb9KT9cFKUUgHLQbR3W0CULZ82QUv17kLYU+B2YVYNKZl/BjElZs68T6bAMvXLQGRhllliKIf4r3XCh3sAS2FxAj9rTPYDUSHMsnOTqSCKlTJ5mTDZmZGxLDimf7vGSSKZSk= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717706017; c=relaxed/simple; bh=7Ef9Sa4/2DrVsnKbPvkgX/opf61OMnniFIihv3dCRAU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=KAa7PAuvPaER8KgMipgjI6PYn88bh3u7B9Ixh/IiujRc6Ko2YFhCdBfWiLDZaIXs5W6Ld55VJbCQDmDeT9FfNN4Javk4ymGWJOK7RVDKokej8DvKQXAlB2AyzkKXUaItIf4h4SlbSQVsVPXhDEy9Dvl8fiPBXJ4tmiuVX/tw5Dk= 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=v3tC0zhZ; arc=fail smtp.client-ip=40.107.212.65 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=DrZywx1Vku1Q7Ely6Ni/AQK5stQPNdqQfMxQH+mlgi0S/KkFSASeoPVWb/bgJGihQCRXNS3ojIMtIzrEcAyQfnzNRiwifl4jsGY3Rff2UTkkRFvCq9qiwzD3eL0CGCFcmrUYB+j2NNnPnJRcoBpxcVVDpAe2WcFOjhLuQyW5WCBQwPG9U0KwCeAIg+xWpyMn+Yc4EMTdR17VGEjTCdxz0hMf183M+mC4Qmj3wiZOXoi74OyqZCQSa15bNdk6flXG1M+iLBatzR+Mbp3iTQGTZyqZHK5hvUJxnvt67L8Jjt+anQwUrEIryZnrX2gXftkbH5aUBQnYKJRB0btQ/Rsb7A== 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=TVJakZmE406vnFf73or+0SoSWOvg1UK0QhLB+ma23tc=; b=ln3QVx0nVExGw1ciwu43aDNmpe4TovGU1mn1PCckMSuCdvqspOjnCiz6rGh/lKeIuLaAAuzi1vuJeBRs3yJyt9YPgbtA0ZZwTtPt5v14uhroSROG4GgHaoEfMpgGe22VIdL1QL9OPvON3qiBvi6vLJGwwowBmzhXuJAtW4DhF0gCRQaZvqxdEn3ul+pQf0BikuradqzPltzf5du66MYJeYgZ/quGRWkpW1eX6a2f4ysgAo66hqoZyOuAazDiZXEgHdrNxht3Jq3BhwXZlWll9PHZvfI2OxRMKY9LAEMYIKAjnXLeTNlvhgGN1PwxdUP7NpHSq937kZneDNKAP/uaNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=alien8.de 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=TVJakZmE406vnFf73or+0SoSWOvg1UK0QhLB+ma23tc=; b=v3tC0zhZ6Z3M14LtZKqEBIX5jOtAq26ezq/TuI138ZySrKpW4uZx72bSkKSi+kJiZrMQxkDaBjth+oSRqHCDdqbngBCSdmFxoaKWd5oOAXYgfPH65x1dy3r50N1AcktgJeBsyNzmXZZAE4Sjy83ue8Ldt7jgTeTuobGJNIaVKe0= Received: from CH0P220CA0027.NAMP220.PROD.OUTLOOK.COM (2603:10b6:610:ef::21) by IA1PR12MB8239.namprd12.prod.outlook.com (2603:10b6:208:3f7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.33; Thu, 6 Jun 2024 20:33:32 +0000 Received: from CH3PEPF0000000A.namprd04.prod.outlook.com (2603:10b6:610:ef:cafe::36) by CH0P220CA0027.outlook.office365.com (2603:10b6:610:ef::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31 via Frontend Transport; Thu, 6 Jun 2024 20:33:32 +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 CH3PEPF0000000A.mail.protection.outlook.com (10.167.244.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Thu, 6 Jun 2024 20:33:32 +0000 Received: from jallen-jump-host.amd.com (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, 6 Jun 2024 15:33:31 -0500 From: John Allen To: , , , CC: , , , John Allen Subject: [PATCH v5 0/6] RAS: ATL: DF 4.5 NP2 Denormalization Date: Thu, 6 Jun 2024 20:33:07 +0000 Message-ID: <20240606203313.51197-1-john.allen@amd.com> X-Mailer: git-send-email 2.34.1 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: CH3PEPF0000000A:EE_|IA1PR12MB8239:EE_ X-MS-Office365-Filtering-Correlation-Id: 392a10c9-9879-4f74-06e6-08dc8667eeb5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|1800799015|82310400017|376005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?tEU4VTiBABXAQT8FrnmmXQpaHRlxLxmV7Hs3b4O5Rho2uKCaxWbkYZIqtQPA?= =?us-ascii?Q?mX2Gs/KUvIr8bBFt4miXl36l0F9rPop9XWhsj/cr7U9j7QxslvPksdWqK3+2?= =?us-ascii?Q?9iWTYkSe1q6Cv8/lqAaim/J5VC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Uk0r4R1pHGHlZbIwOQfJ4e7RR4mPt0UxgqVX1YhaO9iAw4U7UCaKxwpCw?= =?us-ascii?Q?kT9Ox2Wvil5KBghZAangcVMn/iuBfjPYprNGN7kUYKaRi4OAhZ/z69KroD6x?= =?us-ascii?Q?hQY0WfdipKyoF+UgUl+71BEOyJMpp1TnYABDt7No17DrOYvNJoEse4RxJxHl?= =?us-ascii?Q?ApFJKLqjWeOzLglnB3tryT7HnRR9E8lSNs0Rbjo3ti98LoHvCXYgo5Pcgick?= =?us-ascii?Q?xjAScO1286t3F9kcEPhlSkFYDQ4gAzJqPjEZXkQPu1dKms8C3TXIDo/oKmIH?= =?us-ascii?Q?A8V9g4XA9kPJ+T5GbHQlXOGjatu6v/ljedYhKZJWW0bcGljlkt/fsvF53Wxb?= =?us-ascii?Q?CocG7d3oqIRbOJOup4bIN2BHmxddMToL0JVpEX714lq0GwAFzg=3D=3D?= 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)(1800799015)(82310400017)(376005);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2024 20:33:32.3424 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 392a10c9-9879-4f74-06e6-08dc8667eeb5 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: CH3PEPF0000000A.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB8239 Implement non-power-of-two denormalization for Data Fabric 4.5 in the AMD address translation library. Tree: git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git Base commit: dadc295cbd03955cc1ba55af55e23a06713d1a5f (origin/edac-amd-atl) v2: - Fix compilation error. - Make remove_base_and_hole the inverse of add_base_and_hole. - Move all map validation checks to validate_address_map at the beginning of translation v3: - Fix bug where the legacy hole was not getting removed properly. - Minor rework of functions for matching the normalized address and logical cs fabric id. v4: - Merge common cases in map validation function. - Fix map validation for cases that don't have explicit checks. v5: - Add patches to add a pr_fmt prefix for the driver and share the internal.h header with the FMPM driver. - Don't fail to load driver if DRAM hole base can't be read. John Allen (6): RAS/AMD/ATL: Add amd_atl pr_fmt prefix RAS/AMD/ATL: Read DRAM hole base early RAS/AMD/ATL: Expand helpers for adding and removing base and hole RAS/AMD/ATL: Validate address map when information is gathered RAS/AMD/ATL: Implement DF 4.5 NP2 denormalization RAS/AMD/FMPM: Use atl internal.h for INVALID_SPA drivers/ras/amd/atl/core.c | 50 +-- drivers/ras/amd/atl/dehash.c | 43 --- drivers/ras/amd/atl/denormalize.c | 561 ++++++++++++++++++++++++++++++ drivers/ras/amd/atl/internal.h | 48 +++ drivers/ras/amd/atl/map.c | 97 ++++++ drivers/ras/amd/atl/system.c | 21 +- drivers/ras/amd/fmpm.c | 4 +- 7 files changed, 755 insertions(+), 69 deletions(-) -- 2.34.1