From patchwork Fri Aug 23 13:21:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kardashevskiy X-Patchwork-Id: 13775220 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2046.outbound.protection.outlook.com [40.107.96.46]) (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 C19FA186E2E; Fri, 23 Aug 2024 13:28:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.96.46 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724419697; cv=fail; b=T5acpEZWfVB+aKLGBcbe53hznJDrO/YBsYdFr54/AKPMzcKKOeRV4Y6lZTqAL+LLu65ab454JxT7noukmQDx9rpxKwioHibRPXuI4Gz1rJD4gcREXiILj7QU0Y5vjA+JZdKBEryL1dILykucPzs2+hORR7RC7es78S7SJS92IZE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724419697; c=relaxed/simple; bh=cgmQ4ZyBdo1nDOdqDWpiK6RX7psT+/mLZf9PRsToARk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nxF+KG+qYAM/wAVwebhaq8RYFJ1Y4CmSv6NDB8CUjVPLBiYzlpOXZIeOUDI/j8KbFmXN11ePgzqCXkVyo1xg9umishkXaU1bgVM+30AGjddRcCAzGiEaIdaFPPe15G0VykK1jPpH6Ewqx8GCi8vwxR8OCS9JOuhX7SVepjsawA4= 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=E+YIARNa; arc=fail smtp.client-ip=40.107.96.46 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="E+YIARNa" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=soXzfpfs7Veqvjq3Tn58x4EwjAunt+hj4MGsolIZTwj/zOrqomn4M1DK/CEf12jXThF+OG0t3y+W6//6IAQPeY8KKc/IAmDTpjeNIWSRT1eTjna1H8Y74D4tjQEU/N223APkUbXrnjv5crw+BvGnb5Gry2Rsapcw8cZgYWg21aIfu/BE7y0CZENclrBGN6OeIMgel/qvwnQk4RK9MMMw/UrSrVo85ArnIGiFyBAudH7vo92cwv33eN66td2jclK0Pp0yTXpVl9BvX/Bdr2f3Rwl+2/DiDT5sg4eYAZ5iggM0/FiG4o52otLVKobQgr+0Z471z5dqUFhn47fBWfjX/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=4MfnhXbC6eEvw4KXOfYX4A7QfJIE1AMdSlfvO6KhLNU=; b=asVvwhZ28LnitFes4aV3EX9hxoqSDk+DeNTBRjGosXjk1v0v6srlqmLdClgAtLU4vin8Z13DdjTCv7cO3HCVcytTF8DjyvdxqwbM7ImekmF5qJC+SL2Whj2Azi9Mzt388Ec7GIJuYaqGKf0UPub63A1HnD8Nie+S2hMPqR7XqEp9oWtaMOUVYzU0LlgB+U5bUa2OiOOKMuPYWSOkaG/f+yePI+8Uosr1uL30BbLrhkInnHpMbYwB9WqfGlG3MqhDrYBqPosAjXBOi1vliU9zhMTm9Ga+PxBsYlIUOj6hNBj4AM1WyxsnxtEuCG9JRbqBC8k0K+LSjUTZsFvVuuqrSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.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=4MfnhXbC6eEvw4KXOfYX4A7QfJIE1AMdSlfvO6KhLNU=; b=E+YIARNaTea4eZcgPYaxN0rE2E1PlDlTyXCY+qnt7bWE4u8goWTNOvzrNUj997OvVFE1fn489VYoUUXX/jKKfpEMsLsHPmcxo9ZD9pOW5zi2gC+V8mo47DTcU1vTYIg+Msf91tBsafw58jOT0M/5GMGh/Dn4hc3wIN6rcYAZr1s= Received: from CH2PR04CA0009.namprd04.prod.outlook.com (2603:10b6:610:52::19) by IA1PR12MB6458.namprd12.prod.outlook.com (2603:10b6:208:3aa::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.19; Fri, 23 Aug 2024 13:28:11 +0000 Received: from DS2PEPF00003440.namprd02.prod.outlook.com (2603:10b6:610:52:cafe::50) by CH2PR04CA0009.outlook.office365.com (2603:10b6:610:52::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.19 via Frontend Transport; Fri, 23 Aug 2024 13:28:11 +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 DS2PEPF00003440.mail.protection.outlook.com (10.167.18.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7897.11 via Frontend Transport; Fri, 23 Aug 2024 13:28:11 +0000 Received: from aiemdee.2.ozlabs.ru (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.39; Fri, 23 Aug 2024 08:28:06 -0500 From: Alexey Kardashevskiy To: CC: , , , Suravee Suthikulpanit , Alex Williamson , Dan Williams , , , , , Santosh Shukla , Tom Lendacky , Michael Roth , "Alexander Graf" , Nikunj A Dadhania , Vasant Hegde , Lukas Wunner , Alexey Kardashevskiy Subject: [RFC PATCH 03/21] pci: Define TEE-IO bit in PCIe device capabilities Date: Fri, 23 Aug 2024 23:21:17 +1000 Message-ID: <20240823132137.336874-4-aik@amd.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240823132137.336874-1-aik@amd.com> References: <20240823132137.336874-1-aik@amd.com> Precedence: bulk X-Mailing-List: linux-pci@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: DS2PEPF00003440:EE_|IA1PR12MB6458:EE_ X-MS-Office365-Filtering-Correlation-Id: 236fd4ef-5e67-4ed1-1bd0-08dcc3776f60 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|82310400026|376014|1800799024; X-Microsoft-Antispam-Message-Info: MgiTxUAzToOIbvvngD/AFQc3b4VRARG7xMABCNGfGhqm5lXy0WWUrOL3BVjpFnowy9Tc4l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j+fMml913MjJXjBBX9i3bzuTLMggMrun79mVm2pPWbiuBkHSj8fREEt0/RPfSMMGG1I5UlbPZqkJebegchIMWROb7FlZznXqN/zy7zg0NzPQXva1/3cDmB4Qlhkg5U9KSxQxNYky1NZUdhMdPiR5ajwyGMN3WOL/4kOd3sFqtI+bpleCCRPz5FBj4aoXUemo1i2SHyBaQugdO14Tzp5C+PdkD8azwO+GV+Pmb1XBcsS4Kd8USFXgwvexGg/O9MxPB+plm4BsmC1TRbyCa1KJMpsBNCnGXFmIKzNmDm3JVUcS/63tkGIK1jNjLSXA 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:(13230040)(36860700013)(82310400026)(376014)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2024 13:28:11.5924 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 236fd4ef-5e67-4ed1-1bd0-08dcc3776f60 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: DS2PEPF00003440.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6458 A new bit #30 from the PCI Express Device Capabilities Register is defined in PCIe 6.1 as "TEE Device Interface Security Protocol (TDISP)". Define the macro. Signed-off-by: Alexey Kardashevskiy --- include/uapi/linux/pci_regs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index 94c00996e633..0011a301b8c5 100644 --- a/include/uapi/linux/pci_regs.h +++ b/include/uapi/linux/pci_regs.h @@ -498,6 +498,7 @@ #define PCI_EXP_DEVCAP_PWR_VAL 0x03fc0000 /* Slot Power Limit Value */ #define PCI_EXP_DEVCAP_PWR_SCL 0x0c000000 /* Slot Power Limit Scale */ #define PCI_EXP_DEVCAP_FLR 0x10000000 /* Function Level Reset */ +#define PCI_EXP_DEVCAP_TEE_IO 0x40000000 /* TEE-IO Supported (TDISP) */ #define PCI_EXP_DEVCTL 0x08 /* Device Control */ #define PCI_EXP_DEVCTL_CERE 0x0001 /* Correctable Error Reporting En. */ #define PCI_EXP_DEVCTL_NFERE 0x0002 /* Non-Fatal Error Reporting Enable */