Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp634546lqt; Thu, 6 Jun 2024 13:37:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXex6uRfKceABgJvHkrgS2e4rxMoXRdnGBaM3tEaLA+xYZiXsMfdu+YIaowZj+Abu+nzHVngISu8PvnCUQPQzKHPHvbzvpwncWtmGyRbQ== X-Google-Smtp-Source: AGHT+IHCw/au7QelqYx4s3HvdBsV5ihP2/vd7UyVH+WwbXHiLBiPe6gQDWrXnABFkb79vB6x0qgo X-Received: by 2002:a17:906:56ca:b0:a59:9b75:b90 with SMTP id a640c23a62f3a-a6cd561214emr49978866b.2.1717706259688; Thu, 06 Jun 2024 13:37:39 -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 a640c23a62f3a-a6c806dba44si98221266b.282.2024.06.06.13.37.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 13:37:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204999-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=qrKGiktd; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-204999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204999-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 3AA171F24872 for ; Thu, 6 Jun 2024 20:37:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11DE619B3D9; Thu, 6 Jun 2024 20:34:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="qrKGiktd" Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2073.outbound.protection.outlook.com [40.107.93.73]) (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 9D96719ADB8; Thu, 6 Jun 2024 20:34:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.73 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717706049; cv=fail; b=f6pBaG4xyEezKR54a5qTAyaOUfwgYvgwmSkVfdotcfXvg6s5zic5hVs+y/VQQNAfYZSi1Utjlq54HCUwzRTWtsPz0MgKHaEdRDSqMHPj0px/iqm4DaTqvhgzTSJVqKACgX+dg60aszELJ5Xh+skaGjDEVky0ZOU/LHzs8iaq7OU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717706049; c=relaxed/simple; bh=AeMMhQtlrucptAm1uHkX5q7loCFVcJ4EkJJ+fsjwe/A=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LvbTcDWDrdzL/z7gG68T2RCVmCPPb997EfcBuiznczG/Yd55n7L5BXzq3MTzEye6DzyM2dR3KDrOK0mATeeobwz+ixEyG2+jenrXhDTg9vmOsxJDvWCBR26JJbWO3QKdNtbeVrwiWRSKUZv/hQjDM5lC9lWVRXiajzaNkcBQeW8= 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=qrKGiktd; arc=fail smtp.client-ip=40.107.93.73 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=PaLTyjjYUwU+Thi2KTDpmGxxbB5XRDiBK7nJo6j+bPoo/+D9iDRxZfholoPyJZnIYugBuER1H0ti7PRTX/5LbWrYBEKJZaKqeqnPX5Cdl3beB1BOYd3ThAjQl7MtxwOXxsGzRAHrLyipSMHQR9PYljJMRYL5TbjVRvmWxxumem02qdDCmrMZUGsJoZgm/oxBKWiPsAgFceZv5e/S+ZeY6md1Tsnvvyvdl+/c6s3Lvgi1ZVmt4DY3JYBGPG8Sm4o4ik4OMEZ0jh5IRPhPlLc+4Ov+M0EM0iwQUFrBiO9ki/91wD+0AJP5DLmfi1ogHr4THbCCWmA8HRmQpO3IT8jPcQ== 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=rhENGeqn+Zn4TRwsxGj7qi01/XO7JTSoaeshs0+elDs=; b=jswjdye12dFS6gAJVlT/EzaZDi0pvmMtleJRchePr+nRylUyOKFN2xD+9v693Ztsrqu93Ym2A8wgPPA603rlT55d8WjlpEFBR+9N61hANSlO2w7wUw19szEn3DXG1kaXhsYKsGZi81lh/8RodRjIKeTvFOfFDqYAv/t+uVnVX31vzQAesxpopZ0PaQ9dMQn83kBYDhJl2KH+gDa6FQZOWswkzkbYaIAQiJGycbluoCEFZNY6hl7+CRywue/bXPHrPEZmV3Mx1wNww34rIeCxuSMOGCXIeqHNK30EMmC2qvIzwYxnwT67n1J7LOtQjFJaDislB18WhWSuRqIxVrShVw== 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=rhENGeqn+Zn4TRwsxGj7qi01/XO7JTSoaeshs0+elDs=; b=qrKGiktd9Tr9TvBIIZ6TXdmggSAlQiDPX9FE132GVWBDI+SLs/HGRLkpUgLKthoFfP/ocCCh8hQQ5lsy6iQ6SCq8g2Hf/pYVrVzlj7TXNUtATxwQYgvjfSP2dgPYizf0Memrn97OG6+a8Gb2oXwP+dE4ifb2PqybIG36QtOYW6U= Received: from CH2PR19CA0010.namprd19.prod.outlook.com (2603:10b6:610:4d::20) by IA1PR12MB6138.namprd12.prod.outlook.com (2603:10b6:208:3ea::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.27; Thu, 6 Jun 2024 20:34:04 +0000 Received: from CH3PEPF0000000F.namprd04.prod.outlook.com (2603:10b6:610:4d:cafe::f9) by CH2PR19CA0010.outlook.office365.com (2603:10b6:610:4d::20) 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:34:04 +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 CH3PEPF0000000F.mail.protection.outlook.com (10.167.244.40) 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:34:04 +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:34:03 -0500 From: John Allen To: , , , CC: , , , John Allen Subject: [PATCH v5 6/6] RAS/AMD/FMPM: Use atl internal.h for INVALID_SPA Date: Thu, 6 Jun 2024 20:33:13 +0000 Message-ID: <20240606203313.51197-7-john.allen@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240606203313.51197-1-john.allen@amd.com> References: <20240606203313.51197-1-john.allen@amd.com> 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: CH3PEPF0000000F:EE_|IA1PR12MB6138:EE_ X-MS-Office365-Filtering-Correlation-Id: 1ed1f8f6-fa67-4e38-a57b-08dc866801c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|82310400017|1800799015|36860700004; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?1Cge47+Lv2j3ZV8qHJa+z2TJOBGoz/aMXzjdRnTpt47pmZ1FFGioRqgIcAmQ?= =?us-ascii?Q?shcZyUaK4wIibaM6PD/Dj/VaRwMch9uyozlWMIg2xm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CKlgTEv8mTpY88Il0UrRBgRcmjBhY2IhPdP9EK5Rf16zU+?= =?us-ascii?Q?b6CAjT0rxUdPd74VeYTZ3O1dfIbC68HStP4gjoQyx99c0shqbe1cWI0nhmMN?= =?us-ascii?Q?wJAMq+DZ4WJpb74gnP2D9Z1Mh1Ipq8dTvd8zwWYC+CDX2kPGhq/nvrOYnAs5?= =?us-ascii?Q?JS8dLJIUoO2Utkfkf+YwjT8SF+t0cCCS3YgJ6rhzHMSFvccU/y5QgD0RHcVm?= =?us-ascii?Q?cH6Qo7kePJp1Pu7V4xFn0kG4OAkmUBNb4wwxYWVaflWhqpk6oYGfQCY7MIjQ?= =?us-ascii?Q?yThkSnRhogW5/OWSYMH9bOVWrOhT1Dw2DholXTw7IBVIggkEwvNSp1gKZ2pn?= =?us-ascii?Q?6ZpDXYwtyejEY8tf2eufmbzfdkKBI1OgwxEVCF9RqTDs5Jsa7yWG4b2pO7oN?= =?us-ascii?Q?UwAARU6H2d3Dr9ej1c9QFJk6+cz79zUEiIxO35jJb27YLxzMJA=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)(376005)(82310400017)(1800799015)(36860700004);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2024 20:34:04.3543 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1ed1f8f6-fa67-4e38-a57b-08dc866801c9 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: CH3PEPF0000000F.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6138 Both the AMD ATL and the FMPM driver define INVALID_SPA. Include the definition from the ATL internal.h header in the FMPM driver. Signed-off-by: John Allen --- v5: - New in v5. --- drivers/ras/amd/fmpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ras/amd/fmpm.c b/drivers/ras/amd/fmpm.c index 271dfad05d68..90de737fbc90 100644 --- a/drivers/ras/amd/fmpm.c +++ b/drivers/ras/amd/fmpm.c @@ -56,6 +56,8 @@ #include "../debugfs.h" +#include "atl/internal.h" + #define INVALID_CPU UINT_MAX /* Validation Bits */ @@ -116,8 +118,6 @@ static struct fru_rec **fru_records; /* system physical addresses array */ static u64 *spa_entries; -#define INVALID_SPA ~0ULL - static struct dentry *fmpm_dfs_dir; static struct dentry *fmpm_dfs_entries; -- 2.34.1