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 27680AC100F for ; Mon, 29 Jan 2024 12:08:41 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=RYja2RDEruP15yCYtaT3PdokYR0zHTmos+UiE8+Bf1I=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1706530119; v=1; b=DSfulf8T2tWeFJ7UkKKl5vEwjAPu5L1ER3AxAorm6/uSvYaGrj6t/ALV//shrJy1bHJMTx5B 7q8yC0DN4WqTkWTrSRX9vYZ6X2dHLZyE6mH8CCd/YrffYxap0qUV33pf2dyhEdjFHCodzdDIZl1 ldBbwPpe2JboJ2oxyuX9iKSs= X-Received: by 127.0.0.2 with SMTP id 1agVYY7687511xNzQgEjy1lV; Mon, 29 Jan 2024 04:08:39 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.13242.1706530118595026151 for ; Mon, 29 Jan 2024 04:08:39 -0800 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 579161FB; Mon, 29 Jan 2024 04:09:21 -0800 (PST) X-Received: from cam-smtp0.cambridge.arm.com (e126645.nice.arm.com [10.34.100.129]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D4FB83F5A1; Mon, 29 Jan 2024 04:08:36 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io Cc: Sami Mujawar , Thomas Abraham , Pierre Gondois Subject: [edk2-devel] [PATCH v6 0/3] Platform/ARM: Enable _CPC/_PSD generation on Juno-r2 Date: Mon, 29 Jan 2024 13:08:22 +0100 Message-Id: <20240129120825.139755-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 Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: l6GWttpj8D7oC1KBAfnsAEmUx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=DSfulf8T; 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: Pierre Gondois v1: - https://edk2.groups.io/g/devel/message/104127 v2: - https://edk2.groups.io/g/devel/message/110048 - Rebase patches on latest version. - Correct frequency values which were advertised in KHz when CPPC spec require them to be in MHz. v3: - https://edk2.groups.io/g/devel/message/111579 - Rebase on latest master - Use ACPI 6.5 definitions instead of 6.4 previously - Renamed ArmScmiInfoLib to DynamicTablesScmiInfoLib v4: - https://edk2.groups.io/g/devel/message/112378 - Removed Change-id left in commit messages. v5: [PATCH v4 3/3] Platform/ARM: Juno: Generate _CPC objects for JunoR2 - Removed unnecessary _CPC initialization - Moved PopulateCpcInfo() to InitializePlatformRepository() - Moved Juno revision check to InitializePlatformRepository() Added new patch - 'Platform/ARM: Juno: Use PcdDevelopmentPlatformRelaxations for _CPC' v6: -Merged patches into one patch: - 'Platform/ARM: Juno: Use PcdDevelopmentPlatformRelaxations for _CPC' - 'Platform/ARM: Juno: Generate _CPC objects for JunoR2' - Return correct error code in GetCpcInfo()/GetpsdInfo() - Make PopulateCpcObjects() use an input parameter: PlatformRepo - Add ENABLE_CPC build parameter to enable CPC generation via command line. A recent patchset [1] allows the generation of _PSD/_CPC ACPI objects by querying the relevant information through the SCMI protocol. - The _PSD object describes to which performance domain a CPU belongs. CPUs in the same performance domain have the same frequency. - The _CPC object describes an interface to control the performance level of a CPU (i.e. its frequency). Demonstrate the _PSD/_CPC generation functionality on Juno-r2 platforms. In order to work, the SCP must describe performance levels on a unified scale (i.e. not as frequencies). The following performance level values where used for testing: - little CPUs OPPs: [181, 322, 383] * 1000 - big CPUs OPPs: [512, 833, 1024] * 1024 The SCP should also: - have fast channel enabled - set the `approximate_level` feature to allow performance level requests in between OPP leveles. [1] https://edk2.groups.io/g/devel/message/114410 Pierre Gondois (3): Platform/ARM: Juno: Fix typo Platform/ARM: Juno: Generate _PSD objects Platform/ARM: Juno: Generate _CPC objects for JunoR2 Platform/ARM/JunoPkg/ArmJuno.dsc | 11 + .../ConfigurationManager.c | 352 +++++++++++++++++- .../ConfigurationManager.h | 31 +- .../ConfigurationManagerDxe.inf | 3 + 4 files changed, 384 insertions(+), 13 deletions(-) --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114690): https://edk2.groups.io/g/devel/message/114690 Mute This Topic: https://groups.io/mt/104029700/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-