From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.48]) by mx.groups.io with SMTP id smtpd.web12.7974.1585129186804373436 for ; Wed, 25 Mar 2020 02:39:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=w0GqhB8r; spf=pass (domain: arm.com, ip: 40.107.8.48, mailfrom: krzysztof.koch@arm.com) 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=/Y1VDTi/f+lD4E9CO2AGVCBgafD5OtdMShtwiaXTA6o=; b=w0GqhB8riwaVwsaftYGgIiedBRWuBLE7Q19gMKfilV11Ffl487XCn/oHFvYItrA/K+CmOdCGuOrHWud9qn/lb7iBH8LHmiPEmELQ8LncWL6hH43JXxIZ0SDfKr16GLVuCpdO5Jc3k0ErEsVF/RhQRZfcH3qTJSS71+yyp1NzS6s= Received: from AM6PR10CA0088.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:8c::29) by DB7PR08MB3002.eurprd08.prod.outlook.com (2603:10a6:5:20::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.20; Wed, 25 Mar 2020 09:39:43 +0000 Received: from AM5EUR03FT054.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8c:cafe::e8) by AM6PR10CA0088.outlook.office365.com (2603:10a6:209:8c::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.19 via Frontend Transport; Wed, 25 Mar 2020 09:39:43 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT054.mail.protection.outlook.com (10.152.16.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17 via Frontend Transport; Wed, 25 Mar 2020 09:39:43 +0000 Received: ("Tessian outbound 8f06d475fc37:v48"); Wed, 25 Mar 2020 09:39:43 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 77e2be142c129172 X-CR-MTA-TID: 64aa7808 Received: from 5009d650fe31.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D971A713-9F48-4B58-8B02-8CCC014F9304.1; Wed, 25 Mar 2020 09:39:37 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5009d650fe31.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 25 Mar 2020 09:39:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mC9tiPZiRIi9OUWrxN+KLClSNicdlsNXzrRplqRAuChd3fb2dljcYd1kUxp123Ii51ntDWp93LeBjmu8Oj6Jqu0sV4FyWXphG90BgITgh1QRJ2e8KLkwyK7XzEqHm9h9J885CC5Vx/sb2uTnlBFGOBvH/oaIgnquPtY+gEqGZMtKStJVo8sVqZ+4KYhyMLx/XKAP6LZqhiS+i4j7eMAPi7zdKwKZkCqyxhXrSiqG/wXm5gf0P63VoDFPRDWMeG/sLvVR2cGLF/p1cmy6szzXHB6nYN2cLjvKzCPXsL5I4z3VcRrXIWRBR09vreinwOkQrgKAiBX7C+sm96WR5hNHfg== 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-SenderADCheck; bh=/Y1VDTi/f+lD4E9CO2AGVCBgafD5OtdMShtwiaXTA6o=; b=QgL0BQxrrvRU4tsIGLTr1Jbqko9P4hWeiaJe8GCUJHdUJ5fRDk0nacDoowrZr6QAH62xn+FsIp87C/Rwhm+8754Ul7Nv46F3JastWkoWF5j864UFAfaNZuZzzKzTFDgyI94qkmrqduuT9DmTdTbJzsnQJ1SGOVrJh4EYaJGT9EASXm33u/oFC8UfJduKano8uMeKGlYnZSiQhONogKeZde+1Yxoc6qH/atFFe+iYrL4Pb70uAFEUOIBm0Sr9tambYnQGTS7bNgFDivjbsnepcGFURANrpt0uI1idpq52l+N0TNgqjFc3A+tnTvtJFjY4nvzqX0MRlovQ18nCCilMtw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=bestguesspass action=none header.from=arm.com; dkim=none (message not signed); arc=none 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=/Y1VDTi/f+lD4E9CO2AGVCBgafD5OtdMShtwiaXTA6o=; b=w0GqhB8riwaVwsaftYGgIiedBRWuBLE7Q19gMKfilV11Ffl487XCn/oHFvYItrA/K+CmOdCGuOrHWud9qn/lb7iBH8LHmiPEmELQ8LncWL6hH43JXxIZ0SDfKr16GLVuCpdO5Jc3k0ErEsVF/RhQRZfcH3qTJSS71+yyp1NzS6s= Received: from AM0PR10CA0021.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::31) by VI1PR0801MB1838.eurprd08.prod.outlook.com (2603:10a6:800:56::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.18; Wed, 25 Mar 2020 09:39:36 +0000 Received: from VE1EUR03FT055.eop-EUR03.prod.protection.outlook.com (2603:10a6:208:17c:cafe::84) by AM0PR10CA0021.outlook.office365.com (2603:10a6:208:17c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.20 via Frontend Transport; Wed, 25 Mar 2020 09:39:35 +0000 Authentication-Results-Original: spf=pass (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=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT055.mail.protection.outlook.com (10.152.19.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.2856.17 via Frontend Transport; Wed, 25 Mar 2020 09:39:35 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1415.2; Wed, 25 Mar 2020 09:39:25 +0000 Received: from E119924.Arm.com (10.57.55.133) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Wed, 25 Mar 2020 09:39:25 +0000 From: "Krzysztof Koch" To: CC: , , , , , Subject: [PATCH v1 0/3] Check if required ACPI tables are installed Date: Wed, 25 Mar 2020 09:39:21 +0000 Message-ID: <20200325093924.22884-1-krzysztof.koch@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;IPV:;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(346002)(376002)(396003)(136003)(46966005)(2906002)(336012)(4326008)(36756003)(70586007)(356004)(82740400003)(2616005)(44832011)(6666004)(6916009)(5660300002)(426003)(70206006)(47076004)(81156014)(316002)(81166006)(478600001)(8676002)(1076003)(8936002)(86362001)(7696005)(54906003)(186003)(26005)(966005);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0801MB1838;H:nebula.arm.com;FPR:;SPF:Pass;LANG:en;PTR:InfoDomainNonexistent; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fa0f380c-9a5e-420f-86ce-08d7d0a072bb X-MS-TrafficTypeDiagnostic: VI1PR0801MB1838:|DB7PR08MB3002: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:8882;OLM:8882; X-Forefront-PRVS: 0353563E2B X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: R8/X2ypLlnl23PtA9EpmctrJGb8am1qO/luoQNdwNs5/GZThPbSM8wSj8xdyi2bRwIwfFrW13YInPpgqjD6rvRuN/TF86yzkOMafw9xVnbe1HZTVu3kL+mz+6B5HXnlYlcQeY9PW/T9xUuy4j+7qimhgeiwXRV5wYjQjwuI0G8hIw2S0Yn7TMzjoa4xGzn5HZaX6G+jRIPDzDSYFNx6nhJ3NaF1dRU+iO4G8eUrHdiof/7qCYaoEKPrvYhCkjtM+jsAcZGiB6kKFnRDOEyaWHoDNgotTydHTfu6hXt6D3mJQGCqdDdSqkaWOYe0CvP2lEK1h7aA94YE3SIEKKB4NJw7OIQWE3HzXGm0lZqc+zDkhegTMLSAb5s16llkoNTbs7CjyIlp+WAkB5qire4unYm0ghr89a3kts5qVdVLesLimaN5aSdqujc9jvKZy26cgXFg37jRN+vOQb15BBFxflqJutl8fTHYY0cMGfTOjjkqCvUnbSUcGhURnwx9obUXc1yBpcx4jaosglojyPAHdMQITu/I3QS6OcXkdNXLehI1lapNTVUMk6zQdURrIMsKoId4Ox4UCVYG8UvjYbYv4xEUXx1aYrF1rlQSbz+nwnxM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1838 Original-Authentication-Results: spf=pass (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=bestguesspass action=none header.from=arm.com; Return-Path: Krzysztof.Koch@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT054.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;IPV:CAL;SCL:-1;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(136003)(376002)(39860400002)(396003)(346002)(46966005)(8936002)(47076004)(4326008)(54906003)(7696005)(82740400003)(8676002)(5660300002)(81156014)(316002)(186003)(81166006)(36906005)(36756003)(44832011)(2906002)(336012)(86362001)(1076003)(70206006)(26826003)(6666004)(26005)(426003)(70586007)(966005)(478600001)(2616005)(6916009);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR08MB3002;H:64aa7808-outbound-1.mta.getcheckrecipient.com;FPR:;SPF:Pass;LANG:en;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; X-MS-Office365-Filtering-Correlation-Id-Prvs: f5e595ee-c179-4e31-18c6-08d7d0a06de9 X-Forefront-PRVS: 0353563E2B X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a/FgmiRbeEXw725uhqP1KG1QMT0lyLI55uGF6zXZpK+KUMiwYn5PqdCKbZ3E3BHQ00U69DacPvEXLQvJHqhX2lP6iAg9vzNljNG+dp2GKWAh/OoEdLycD/d1m2wwnr35W11jqHxSuCtOJbURavlKuFPQAn58KNTa//fXJXs1L2ms/gE40MsNXcDtfxC8nbg+Gh8/9n+CIE5mdzLpw7FrXTT2o1fgOUJzgN78u7aweY+2KX+raJYp+Glgrutxgg803kjYTFvttf4/8kzaP6SilUHEBSKK7KEPF0n0b6gK89pzn6mQxMCo/jnHdYqhdpmL1tJSPENdFGRr+rC3Ssn99Yo5oXK+wc6iyVMhZJbiFIlVGqPspt2huUnCmMg7derSYJkzIql2A4avgKtKNy0iGufVcuoaO45IlLV9/gfORQqEKdeUBdG4LtiQDyKUXxZU6pR1zj1ZNkygm4slSsCzcM2HS91tEa30QzOKZnFn/1U9wsGV5UkCs59z7ETx0StFfm18DcmIQNCN9g2rCxdz/v2vJOJsmmyZ7AL4JMQ3/hxTlusoIgII7S0MUZZJCIpST9Uz0xYXtVpdShlfty675x9TPNqP/jz6mLYA12xxa8k= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2020 09:39:43.3831 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fa0f380c-9a5e-420f-86ce-08d7d0a072bb X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3002 Content-Type: text/plain This patch series adds a new capability to the Acpiview UEFI shell tool. Using the -r command line parameter, it is now possible to choose a specification which lists mandatory ACPI tables. The parameter value is then consumed by a library which validates ACPI tables identified on the platform against these requirements. The -r parameter is architecture agnostic. However, as of now, the possible values for the parameter are only defined in the context of the Arm architecture. For Arm-based platforms, it is now possible to validate that Server Base Boot Requirements (SBBR) mandatory ACPI tables are present on the platform. Changes can be seen at: https://github.com/KrzysztofKoch1/edk2/tree/617_sbbr_validate_acpi_table_counts_v1 Krzysztof Koch (3): ShellPkg: acpiview: Add -r parameter for table requirements validation ShellPkg: acpiview: Add library for SBBR ACPI requirements validation ShellPkg: acpiview: Check if SBBR mandatory ACPI tables are installed ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiTableParser.c | 16 ++ ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c | 104 ++++++++- ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.h | 44 +++- ShellPkg/Library/UefiShellAcpiViewCommandLib/Arm/SbbrValidator.c | 222 ++++++++++++++++++++ ShellPkg/Library/UefiShellAcpiViewCommandLib/Arm/SbbrValidator.h | 91 ++++++++ ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf | 6 +- ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.uni | 14 +- 7 files changed, 492 insertions(+), 5 deletions(-) create mode 100644 ShellPkg/Library/UefiShellAcpiViewCommandLib/Arm/SbbrValidator.c create mode 100644 ShellPkg/Library/UefiShellAcpiViewCommandLib/Arm/SbbrValidator.h -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'