public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Sami Mujawar" <sami.mujawar@arm.com>
To: Pranav Madhu <pranav.madhu@arm.com>, devel@edk2.groups.io
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>, nd@arm.com
Subject: Re: [edk2-platforms][PATCH V1 4/6] Platform/Sgi: ACPI CPPC support for RD-N2-Cfg1
Date: Mon, 24 May 2021 15:14:14 +0100	[thread overview]
Message-ID: <c436eca8-5bf1-1eec-547d-cd0b2798807c@arm.com> (raw)
In-Reply-To: <20210519082247.3003-5-pranav.madhu@arm.com>

[-- Attachment #1: Type: text/plain, Size: 5517 bytes --]

Hi Pranav,

This patch looks good to me.

Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>

Regards,

Sami Mujawar


On 19/05/2021 09:22 AM, Pranav Madhu wrote:
> Enable ACPI CPPC mechanism for RD-N2-Cfg1 as defined by the ACPI
> specification. The implementation uses AMU registers accessible as
> Fixed-feature Hardware (FFixedHW) for monitoring the performance.
> Non-secure SCMI fastchannels are used to communicate with SCP to set
> the desired performance. RD-N2-Cfg1 platform does not support CPPC
> revision 1 and below. So update the _OSC method to let OSPM know about
> this fact.
>
> Signed-off-by: Pranav Madhu <pranav.madhu@arm.com>
> ---
>   Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1/Dsdt.asl | 78 ++++++++++++++++++++
>   1 file changed, 78 insertions(+)
>
> diff --git a/Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1/Dsdt.asl b/Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1/Dsdt.asl
> index 55f51cc26aff..411eff84334a 100644
> --- a/Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1/Dsdt.asl
> +++ b/Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1/Dsdt.asl
> @@ -35,6 +35,12 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 2, "ARMLTD", "ARMSGI",
>               And (CAP0, Not (OSC_CAP_OS_INITIATED_LPI), CAP0)
>               Or (STS0, OSC_STS_CAPABILITY_MASKED, STS0)
>             }
> +
> +          If (And (CAP0, OSC_CAP_CPPC_SUPPORT)) {
> +            /* CPPC revision 1 and below not supported */
> +            And (CAP0, Not (OSC_CAP_CPPC_SUPPORT), CAP0)
> +            Or (STS0, OSC_STS_CAPABILITY_MASKED, STS0)
> +          }
>           } Else {
>             And (STS0, Not (OSC_STS_MASK), STS0)
>             Or (STS0, Or (OSC_STS_FAILURE, OSC_STS_UNRECOGNIZED_REV), STS0)
> @@ -133,6 +139,15 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 2, "ARMLTD", "ARMSGI",
>           Name (_UID, 0)
>           Name (_STA, 0xF)
>   
> +        Name (_CPC, Package()
> +          CPPC_PACKAGE_INIT (0x06000500, 0x06000504, 20, 160, 160, 115, 115, 5)
> +        )
> +
> +        Name (_PSD, Package () {
> +          Package ()
> +            PSD_INIT (0)
> +        })
> +
>           Method (_LPI, 0, NotSerialized) {
>             Return (\_SB.PLPI)
>           }
> @@ -151,6 +166,15 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 2, "ARMLTD", "ARMSGI",
>           Name (_UID, 1)
>           Name (_STA, 0xF)
>   
> +        Name (_CPC, Package()
> +          CPPC_PACKAGE_INIT (0x06000518, 0x0600051C, 20, 160, 160, 115, 115, 5)
> +        )
> +
> +        Name (_PSD, Package () {
> +          Package ()
> +            PSD_INIT (1)
> +        })
> +
>           Method (_LPI, 0, NotSerialized) {
>             Return (\_SB.PLPI)
>           }
> @@ -169,6 +193,15 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 2, "ARMLTD", "ARMSGI",
>           Name (_UID, 2)
>           Name (_STA, 0xF)
>   
> +        Name (_CPC, Package()
> +          CPPC_PACKAGE_INIT (0x06000530, 0x06000534, 20, 160, 160, 115, 115, 5)
> +        )
> +
> +        Name (_PSD, Package () {
> +          Package ()
> +            PSD_INIT (2)
> +        })
> +
>           Method (_LPI, 0, NotSerialized) {
>             Return (\_SB.PLPI)
>           }
> @@ -187,6 +220,15 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 2, "ARMLTD", "ARMSGI",
>           Name (_UID, 3)
>           Name (_STA, 0xF)
>   
> +        Name (_CPC, Package()
> +          CPPC_PACKAGE_INIT (0x06000548, 0x0600054C, 20, 160, 160, 115, 115, 5)
> +        )
> +
> +        Name (_PSD, Package () {
> +          Package ()
> +            PSD_INIT (3)
> +        })
> +
>           Method (_LPI, 0, NotSerialized) {
>             Return (\_SB.PLPI)
>           }
> @@ -205,6 +247,15 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 2, "ARMLTD", "ARMSGI",
>           Name (_UID, 4)
>           Name (_STA, 0xF)
>   
> +        Name (_CPC, Package()
> +          CPPC_PACKAGE_INIT (0x06000560, 0x06000564, 20, 160, 160, 115, 115, 5)
> +        )
> +
> +        Name (_PSD, Package () {
> +          Package ()
> +            PSD_INIT (4)
> +        })
> +
>           Method (_LPI, 0, NotSerialized) {
>             Return (\_SB.PLPI)
>           }
> @@ -223,6 +274,15 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 2, "ARMLTD", "ARMSGI",
>           Name (_UID, 5)
>           Name (_STA, 0xF)
>   
> +        Name (_CPC, Package()
> +          CPPC_PACKAGE_INIT (0x06000578, 0x0600057C, 20, 160, 160, 115, 115, 5)
> +        )
> +
> +        Name (_PSD, Package () {
> +          Package ()
> +            PSD_INIT (5)
> +        })
> +
>           Method (_LPI, 0, NotSerialized) {
>             Return (\_SB.PLPI)
>           }
> @@ -241,6 +301,15 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 2, "ARMLTD", "ARMSGI",
>           Name (_UID, 6)
>           Name (_STA, 0xF)
>   
> +        Name (_CPC, Package()
> +          CPPC_PACKAGE_INIT (0x06000590, 0x06000594, 20, 160, 160, 115, 115, 5)
> +        )
> +
> +        Name (_PSD, Package () {
> +          Package ()
> +            PSD_INIT (6)
> +        })
> +
>           Method (_LPI, 0, NotSerialized) {
>             Return (\_SB.PLPI)
>           }
> @@ -259,6 +328,15 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 2, "ARMLTD", "ARMSGI",
>           Name (_UID, 7)
>           Name (_STA, 0xF)
>   
> +        Name (_CPC, Package()
> +          CPPC_PACKAGE_INIT (0x060005A8, 0x060005AC, 20, 160, 160, 115, 115, 5)
> +        )
> +
> +        Name (_PSD, Package () {
> +          Package ()
> +            PSD_INIT (7)
> +        })
> +
>           Method (_LPI, 0, NotSerialized) {
>             Return (\_SB.PLPI)
>           }


[-- Attachment #2: Type: text/html, Size: 6134 bytes --]

  reply	other threads:[~2021-05-24 14:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-19  8:22 [edk2-platforms][PATCH V1 0/6] Platform/Sgi: Add initial support for RD-N2-Cfg1 platform Pranav Madhu
2021-05-19  8:22 ` [edk2-platforms][PATCH V1 1/6] " Pranav Madhu
2021-05-24 14:12   ` Sami Mujawar
2021-05-19  8:22 ` [edk2-platforms][PATCH V1 2/6] Platform/Sgi: ACPI PPTT table " Pranav Madhu
2021-05-24 14:13   ` Sami Mujawar
2021-05-19  8:22 ` [edk2-platforms][PATCH V1 3/6] Platform/Sgi: Low Power Idle states for RD-N2-Cfg1 Pranav Madhu
2021-05-24 14:13   ` Sami Mujawar
2021-05-19  8:22 ` [edk2-platforms][PATCH V1 4/6] Platform/Sgi: ACPI CPPC support " Pranav Madhu
2021-05-24 14:14   ` Sami Mujawar [this message]
2021-05-19  8:22 ` [edk2-platforms][PATCH V1 5/6] Platform/Sgi: Define RD-N2-Cfg1 platform id values Pranav Madhu
2021-05-24 14:14   ` Sami Mujawar
2021-05-19  8:22 ` [edk2-platforms][PATCH V1 6/6] Platform/Sgi: Extend SMBIOS support for RD-N2-Cfg1 Pranav Madhu
2021-05-24 14:15   ` Sami Mujawar
2021-05-19 11:42 ` [edk2-devel] [edk2-platforms][PATCH V1 0/6] Platform/Sgi: Add initial support for RD-N2-Cfg1 platform Thomas Abraham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c436eca8-5bf1-1eec-547d-cd0b2798807c@arm.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox