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 5AB25941B2C for ; Thu, 21 Mar 2024 16:00:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=YzGOGt0IHy9RmPwLlAy5KU/uonb+PH41fIdDQ5tVh5Q=; 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=1711036857; v=1; b=BeCurbxDHOwkiw2ykqoQe1QCICoh7g76j/xHeIUAJ71pEp0+TbSKiPQOu4B0NG+wpJuBG/D4 iy77UqlIYqN3ojUg5tN6Nu421nmiebMo3UhfNR5fP0tLfVfMpyCnb1KmtXAzCOF22TkN+V6xplw RLUUx4SO2zcRRmS5PswNpF6rwDPpPEshMCNO5QW2+KDD3CVGI07zr+pYgOk1zp7fuKrFdW3ENNG 7reMNg9OGiL9bfSLYFqv2sfAeRTbhd7ase73ymA0qAK74BBJZdC+ysONxD5vgd3mjn/OgkT9+st tBKgF+83+lN+FTPCt4FJiIPZsjBRRyDHqfhZEpXLFducA== X-Received: by 127.0.0.2 with SMTP id BcBOYY7687511xSaTaU2S4yG; Thu, 21 Mar 2024 09:00:57 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.630.1711036856265122483 for ; Thu, 21 Mar 2024 09:00:56 -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 41E8A1007; Thu, 21 Mar 2024 09:01:30 -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 723AF3F67D; Thu, 21 Mar 2024 09:00:53 -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 13/19] DynamicTablesPkg: Move PCC structure definitions to Arch Common Date: Thu, 21 Mar 2024 16:59:18 +0100 Message-Id: <20240321155924.707272-14-pierre.gondois@arm.com> In-Reply-To: <20240321155924.707272-1-pierre.gondois@arm.com> References: <20240321155924.707272-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 09:00:56 -0700 Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: UbsPmZrduc1cXVli9Td0qfMBx7686176AA= 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=BeCurbxD; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io From: Sami Mujawar Move PCC structure definitions from Arm Namespace header file to the Arch Common namespace header file. 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 --- .../Include/ArchCommonNameSpaceObjects.h | 72 +++++++++++++++++++ .../Include/ArmNameSpaceObjects.h | 72 ------------------- 2 files changed, 72 insertions(+), 72 deletions(-) diff --git a/DynamicTablesPkg/Include/ArchCommonNameSpaceObjects.h b/Dynami= cTablesPkg/Include/ArchCommonNameSpaceObjects.h index 63b24de2f2f1..e21e2ca4e0d2 100644 --- a/DynamicTablesPkg/Include/ArchCommonNameSpaceObjects.h +++ b/DynamicTablesPkg/Include/ArchCommonNameSpaceObjects.h @@ -451,6 +451,78 @@ typedef struct CmArchCommonCacheInfo { */=0D typedef AML_CPC_INFO CM_ARCH_COMMON_CPC_INFO;=0D =0D +/** A structure that describes a=0D + PCC Mailbox Register.=0D +*/=0D +typedef struct PccMailboxRegisterInfo {=0D + /// GAS describing the Register.=0D + EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE Register;=0D +=0D + /** Mask of bits to preserve when writing.=0D +=0D + This mask is also used for registers. The Register is only read=0D + and there is no write mask required. E.g.:=0D + - Error Status mask (Cf. PCC Subspace types 3/4/5).=0D + - Command Complete Check mask (Cf. PCC Subspace types 3/4/5).=0D + */=0D + UINT64 PreserveMask;=0D +=0D + /// Mask of bits to set when writing.=0D + UINT64 WriteMask;=0D +} PCC_MAILBOX_REGISTER_INFO;=0D +=0D +/** A structure that describes the=0D + PCC Subspace CHannel Timings.=0D +*/=0D +typedef struct PccSubspaceChannelTimingInfo {=0D + /// Expected latency to process a command, in microseconds.=0D + UINT32 NominalLatency;=0D +=0D + /** Maximum number of periodic requests that the subspace channel can=0D + support, reported in commands per minute. 0 indicates no limitation.= =0D +=0D + This field is ignored for the PCC Subspace type 5 (HW Registers based)= .=0D + */=0D + UINT32 MaxPeriodicAccessRate;=0D +=0D + /** Minimum amount of time that OSPM must wait after the completion=0D + of a command before issuing the next command, in microseconds.=0D + */=0D + UINT16 MinRequestTurnaroundTime;=0D +} PCC_SUBSPACE_CHANNEL_TIMING_INFO;=0D +=0D +/** A structure that describes a=0D + Generic PCC Subspace (Type 0).=0D +*/=0D +typedef struct PccSubspaceGenericInfo {=0D + /** Subspace Id.=0D +=0D + Cf. ACPI 6.4, s14.7 Referencing the PCC address space=0D + Cf. s14.1.2 Platform Communications Channel Subspace Structures=0D + The subspace ID of a PCC subspace is its index in the array of=0D + subspace structures, starting with subspace 0.=0D +=0D + At most 256 subspaces are supported.=0D + */=0D + UINT8 SubspaceId;=0D +=0D + /// Table type (or subspace).=0D + UINT8 Type;=0D +=0D + /// Base address of the shared memory range.=0D + /// This field is ignored for the PCC Subspace type 5 (HW Registers base= d).=0D + UINT64 BaseAddress;=0D +=0D + /// Address length.=0D + UINT64 AddressLength;=0D +=0D + /// Doorbell Register.=0D + PCC_MAILBOX_REGISTER_INFO DoorbellReg;=0D +=0D + /// Mailbox Timings.=0D + PCC_SUBSPACE_CHANNEL_TIMING_INFO ChannelTiming;=0D +} PCC_SUBSPACE_GENERIC_INFO;=0D +=0D #pragma pack()=0D =0D #endif // ARCH_COMMON_NAMESPACE_OBJECTS_H_=0D diff --git a/DynamicTablesPkg/Include/ArmNameSpaceObjects.h b/DynamicTables= Pkg/Include/ArmNameSpaceObjects.h index b9d1202be365..e9a2cb0fe6c5 100644 --- a/DynamicTablesPkg/Include/ArmNameSpaceObjects.h +++ b/DynamicTablesPkg/Include/ArmNameSpaceObjects.h @@ -714,78 +714,6 @@ typedef struct CmArmRmrDescriptor { UINT64 Length;=0D } CM_ARM_MEMORY_RANGE_DESCRIPTOR;=0D =0D -/** A structure that describes a=0D - PCC Mailbox Register.=0D -*/=0D -typedef struct PccMailboxRegisterInfo {=0D - /// GAS describing the Register.=0D - EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE Register;=0D -=0D - /** Mask of bits to preserve when writing.=0D -=0D - This mask is also used for registers. The Register is only read=0D - and there is no write mask required. E.g.:=0D - - Error Status mask (Cf. PCC Subspace types 3/4/5).=0D - - Command Complete Check mask (Cf. PCC Subspace types 3/4/5).=0D - */=0D - UINT64 PreserveMask;=0D -=0D - /// Mask of bits to set when writing.=0D - UINT64 WriteMask;=0D -} PCC_MAILBOX_REGISTER_INFO;=0D -=0D -/** A structure that describes the=0D - PCC Subspace CHannel Timings.=0D -*/=0D -typedef struct PccSubspaceChannelTimingInfo {=0D - /// Expected latency to process a command, in microseconds.=0D - UINT32 NominalLatency;=0D -=0D - /** Maximum number of periodic requests that the subspace channel can=0D - support, reported in commands per minute. 0 indicates no limitation.= =0D -=0D - This field is ignored for the PCC Subspace type 5 (HW Registers based)= .=0D - */=0D - UINT32 MaxPeriodicAccessRate;=0D -=0D - /** Minimum amount of time that OSPM must wait after the completion=0D - of a command before issuing the next command, in microseconds.=0D - */=0D - UINT16 MinRequestTurnaroundTime;=0D -} PCC_SUBSPACE_CHANNEL_TIMING_INFO;=0D -=0D -/** A structure that describes a=0D - Generic PCC Subspace (Type 0).=0D -*/=0D -typedef struct CmArmPccSubspaceGenericInfo {=0D - /** Subspace Id.=0D -=0D - Cf. ACPI 6.4, s14.7 Referencing the PCC address space=0D - Cf. s14.1.2 Platform Communications Channel Subspace Structures=0D - The subspace ID of a PCC subspace is its index in the array of=0D - subspace structures, starting with subspace 0.=0D -=0D - At most 256 subspaces are supported.=0D - */=0D - UINT8 SubspaceId;=0D -=0D - /// Table type (or subspace).=0D - UINT8 Type;=0D -=0D - /// Base address of the shared memory range.=0D - /// This field is ignored for the PCC Subspace type 5 (HW Registers base= d).=0D - UINT64 BaseAddress;=0D -=0D - /// Address length.=0D - UINT64 AddressLength;=0D -=0D - /// Doorbell Register.=0D - PCC_MAILBOX_REGISTER_INFO DoorbellReg;=0D -=0D - /// Mailbox Timings.=0D - PCC_SUBSPACE_CHANNEL_TIMING_INFO ChannelTiming;=0D -} PCC_SUBSPACE_GENERIC_INFO;=0D -=0D /** A structure that describes a=0D PCC Subspace of type 0 (Generic).=0D =0D --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116991): https://edk2.groups.io/g/devel/message/116991 Mute This Topic: https://groups.io/mt/105068168/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-