From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=nIhKHvUQ; spf=pass (domain: arm.com, ip: 40.107.1.84, mailfrom: krzysztof.koch@arm.com) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (EUR02-HE1-obe.outbound.protection.outlook.com [40.107.1.84]) by groups.io with SMTP; Wed, 12 Jun 2019 09:31:25 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n5Q0NIKlneLx/f4tgGtsXnWArC9rD+yCC9uWZuH5L2Q=; b=nIhKHvUQEVMGqwCXcBVSLhJN5ytGjIdgp0dwMPO+P45Igd++RoucK9kbnBlXKHe3HAb2ZSRJX08s9NpfCvr32FW+Xbh0R+6tF/9zeusNXFTG18aCkx1JF14HkqcH5fVjqIs+GpVicCELzaykGzolQoOiAblRSavC5Q74aHj2gEo= Received: from VI1PR0802CA0008.eurprd08.prod.outlook.com (2603:10a6:800:aa::18) by AM6PR08MB4599.eurprd08.prod.outlook.com (2603:10a6:20b:90::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Wed, 12 Jun 2019 16:31:21 +0000 Received: from VE1EUR03FT027.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::203) by VI1PR0802CA0008.outlook.office365.com (2603:10a6:800:aa::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1965.12 via Frontend Transport; Wed, 12 Jun 2019 16:31:21 +0000 Authentication-Results: spf=temperror (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=temperror action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT027.mail.protection.outlook.com (10.152.18.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.1987.11 via Frontend Transport; Wed, 12 Jun 2019 16:31:20 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1415.2; Wed, 12 Jun 2019 12:31:08 +0000 Received: from E119924.Arm.com (10.1.199.124) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Wed, 12 Jun 2019 12:31:08 +0000 From: "Krzysztof Koch" To: CC: , , , , , Subject: [PATCH v1 1/2] MdePkg: Add Generic Initiator Affinity Structure definitions to SRAT Date: Wed, 12 Jun 2019 13:31:00 +0100 Message-ID: <20190612123101.65584-2-krzysztof.koch@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20190612123101.65584-1-krzysztof.koch@arm.com> References: <20190612123101.65584-1-krzysztof.koch@arm.com> Return-Path: Krzysztof.Koch@arm.com MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:40.67.248.234;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(346002)(396003)(376002)(39860400002)(2980300002)(189003)(199004)(7696005)(478600001)(6666004)(26005)(51416003)(356004)(50226002)(77096007)(53936002)(966005)(8936002)(47776003)(2906002)(4326008)(72206003)(186003)(336012)(1076003)(6306002)(70206006)(16586007)(446003)(44832011)(8676002)(11346002)(48376002)(53416004)(2616005)(316002)(54906003)(81166006)(476003)(486006)(81156014)(126002)(305945005)(50466002)(63350400001)(426003)(6916009)(63370400001)(68736007)(19627235002)(2351001)(5660300002)(76176011)(86362001)(70586007)(14444005)(36756003)(41533002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR08MB4599;H:nebula.arm.com;FPR:;SPF:TempError;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b1fe1aff-2299-4a21-735d-08d6ef5366e9 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328);SRVR:AM6PR08MB4599; X-MS-TrafficTypeDiagnostic: AM6PR08MB4599: X-MS-Exchange-PUrlCount: 1 NoDisclaimer: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-Forefront-PRVS: 0066D63CE6 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: 147TrMLWSFaued8nR5WivgQ4A13GKkIbyHqSFI7z2y1buoYZpAq8CXsK/rxl9yjisORd/Mo1zsAR1Jnx0id3GVbGkdv6QzbwIsTD80Z3H2pCs4iVFi4JbNAMh8xKQkvr3weqP1EpCIEJy8oEDNC9SrVGVs4ArspOTuuW1cEhQhKmgWpJyuUgIMDCf+zgGS/4rfnWabeB6gvfLWgG/7EpTny9xtzSzI+Z/MdZCeXXQkBz4cruzjorT+8rFi6kHONn2w+nH5y+9h2TAY5qZa5HHD5bjUAgPnOerfsOHmz/niEVWIpsVlKP9Wkg1jiFoyqJSpT00HzVTWGqDD526KxkazM4J3rA8wlQ2chOLr53hWP7z5epnwsL8hnNR4HS5hTmX2+rPPU68a3aTc33AOojJF9JeJUVzYHwieUbzwWZxPY= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2019 16:31:20.6172 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b1fe1aff-2299-4a21-735d-08d6ef5366e9 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[40.67.248.234];Helo=[nebula.arm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4599 Content-Type: text/plain Add Generic Initiator Affinity Structure to the list of recognised System Resource Affinity Table (SRAT) structure types. Add definitions for Device Handle Types inside the Generic Initiator Affinity Structure. References: - ACPI 6.3 January 2019, Table 5-78 Signed-off-by: Krzysztof Koch --- Changes can be seen at: https://github.com/KrzysztofKoch1/edk2/tree/582_acpiview_6_3_srat_v1 Notes: v1: - define the SRAT Generic Initiator Affinity Struct type [Krzysztof] - define the SRAT Device Handle Types [Krzysztof] MdePkg/Include/IndustryStandard/Acpi63.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi63.h b/MdePkg/Include/IndustryStandard/Acpi63.h index a8e011579ffcf070ecdfd2c6726a16d1afd65891..eca1f9357b70f10887e680ff13c97c0beab3600b 100644 --- a/MdePkg/Include/IndustryStandard/Acpi63.h +++ b/MdePkg/Include/IndustryStandard/Acpi63.h @@ -639,7 +639,7 @@ typedef struct { // // SRAT structure types. -// All other values between 0x05 an 0xFF are reserved and +// All other values between 0x06 an 0xFF are reserved and // will be ignored by OSPM. // #define EFI_ACPI_6_3_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00 @@ -647,6 +647,7 @@ typedef struct { #define EFI_ACPI_6_3_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02 #define EFI_ACPI_6_3_GICC_AFFINITY 0x03 #define EFI_ACPI_6_3_GIC_ITS_AFFINITY 0x04 +#define EFI_ACPI_6_3_GENERIC_INITIATOR_AFFINITY 0x05 /// /// Processor Local APIC/SAPIC Affinity Structure Definition @@ -733,6 +734,14 @@ typedef struct { UINT32 ItsId; } EFI_ACPI_6_3_GIC_ITS_AFFINITY_STRUCTURE; +// +// Generic Initiator Affinity Structure Device Handle Types +// All other values between 0x02 an 0xFF are reserved and +// will be ignored by OSPM. +// +#define EFI_ACPI_6_3_ACPI_DEVICE_HANDLE 0x00 +#define EFI_ACPI_6_3_PCI_DEVICE_HANDLE 0x01 + /// /// Device Handle - ACPI /// -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'