From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id E06FBD801B2 for ; Thu, 21 Mar 2024 15:54:11 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Eu9Mu6LrffwAQQhAQJY4nOh0qC+aowyyX2o721r8NKI=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1711036450; v=1; b=l96xA9fnKRk3xW1KlrUH+aDJD3u9nWATH25XL1ILofXmF9//t6E2nka5C9z3rHvRzKoTgvVh kMgR65f0XFcC1QSpI21CYXjIw7XDqcQzKDeIFLfq88h/qoXh1tW+DP2AZw1XLV6j2R4unnprQTa 202nC/fR4V68uur460frQgGtAuMxYmQFGsLmLXN8Pmx8g5uRzDPL14anHS5qDzmXn25ZkDNe+dF mFvMArVXpN4UKFOPG1HKB5fcL7Gi4o2KsBUk8SatyJ+9nZ6GI0ksivfZmwjWLshhrTs3IYh2la8 7CRg+cyWVHMWWlGZuiIzJTD9wJNOx6H6YRP67MZBs0N5A== X-Received: by 127.0.0.2 with SMTP id F3yEYY7687511x8ji9Yfp6Ws; Thu, 21 Mar 2024 08:54:10 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.365.1711036449976850442 for ; Thu, 21 Mar 2024 08:54:10 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EEB1C1007; Thu, 21 Mar 2024 08:54:43 -0700 (PDT) X-Received: from e126645.nice.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 542BB3F67D; Thu, 21 Mar 2024 08:54:07 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io Cc: Pierre Gondois , Sami Mujawar , Pierre Gondois , Yeo Reum Yun , Sunil V L , AbdulLateef Attar , Jeshua Smith , Jeff Brasen , Girish Mahadevan , Leif Lindholm , Meenakshi Aggarwal Subject: [edk2-devel] [PATCH 06/16] DynamicTablesPkg: TokenFixer: Return Non Arm NS objs as unsupported Date: Thu, 21 Mar 2024 16:53:09 +0100 Message-Id: <20240321155319.701355-7-pierre.gondois@arm.com> In-Reply-To: <20240321155319.701355-1-pierre.gondois@arm.com> References: <20240321155319.701355-1-pierre.gondois@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 21 Mar 2024 08:54:10 -0700 Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: qNikA7Z7vmVuSyQ3ixFnjzdWx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=l96xA9fn; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none) From: Sami Mujawar Update the Token Fixer to return objects other than Arm Namespace objects as unsupported. Cc: Pierre Gondois Cc: Yeo Reum Yun Cc: AbdulLateef Attar Cc: Jeshua Smith Cc: Jeff Brasen Cc: Girish Mahadevan Cc: Leif Lindholm Cc: Meenakshi Aggarwal Signed-off-by: Sami Mujawar Signed-off-by: Pierre Gondois --- .../Common/DynamicPlatRepoLib/CmObjectTokenFixer.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTok= enFixer.c b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectToke= nFixer.c index 9a6ab2a274aa..bbbb81ea31b0 100644 --- a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer= .c +++ b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer= .c @@ -209,12 +209,15 @@ FixupCmObjectSelfToken ( CM_OBJECT_TOKEN_FIXER TokenFixerFunc;=0D CM_OBJECT_ID ArmNamespaceObjId;=0D =0D + if (CmObjDesc =3D=3D NULL) {=0D + ASSERT (0);=0D + return EFI_INVALID_PARAMETER;=0D + }=0D +=0D // Only support Arm objects for now.=0D - if ((CmObjDesc =3D=3D NULL) ||=0D - (GET_CM_NAMESPACE_ID (CmObjDesc->ObjectId) !=3D EObjNameSpaceArm))=0D - {=0D + if (GET_CM_NAMESPACE_ID (CmObjDesc->ObjectId) !=3D EObjNameSpaceArm) {=0D ASSERT (0);=0D - return EFI_INVALID_PARAMETER;=0D + return EFI_UNSUPPORTED;=0D }=0D =0D ArmNamespaceObjId =3D GET_CM_OBJECT_ID (CmObjDesc->ObjectId);=0D --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116967): https://edk2.groups.io/g/devel/message/116967 Mute This Topic: https://groups.io/mt/105067972/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-