From patchwork Wed Sep 10 09:03:44 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 69912 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38146CA0FED for ; Wed, 10 Sep 2025 09:03:59 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.12992.1757495032013991607 for ; Wed, 10 Sep 2025 02:03:52 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) 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 2A56B16F8 for ; Wed, 10 Sep 2025 02:03:43 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id F1B333F63F for ; Wed, 10 Sep 2025 02:03:50 -0700 (PDT) From: Ross Burton To: meta-arm@lists.yoctoproject.org Subject: [PATCH 1/3] CI: no need to configure coresight explicitly Date: Wed, 10 Sep 2025 10:03:44 +0100 Message-ID: <20250910090346.1623394-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 10 Sep 2025 09:03:59 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/6692 The oe-core perf recipe will now enable coresight support automatically if the coresight MACHINE_FEATURE is set[1], so we can remove the manual configuration in our CI and let the machines enable it where appropriate. [1] oe-core c455bd03910 ("perf: enable coresight if enabled in MACHINE_FEATURES") Signed-off-by: Ross Burton --- ci/base.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ci/base.yml b/ci/base.yml index 86c924f70e..d89533901c 100644 --- a/ci/base.yml +++ b/ci/base.yml @@ -30,11 +30,9 @@ local_conf_header: base: | CONF_VERSION = "2" BB_SERVER_TIMEOUT = "300" - setup: | - PACKAGECONFIG:append:pn-perf = " coresight" INHERIT += "rm_work" extrapackages: | - CORE_IMAGE_EXTRA_INSTALL += "perf opencsd" + CORE_IMAGE_EXTRA_INSTALL += "perf" CORE_IMAGE_EXTRA_INSTALL:append:aarch64 = " gator-daemon" machine: unset From patchwork Wed Sep 10 09:03:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 69910 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39233CAC587 for ; Wed, 10 Sep 2025 09:03:59 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.13065.1757495032750488716 for ; Wed, 10 Sep 2025 02:03:52 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) 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 CE79F1756 for ; Wed, 10 Sep 2025 02:03:43 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A35E83F63F for ; Wed, 10 Sep 2025 02:03:51 -0700 (PDT) From: Ross Burton To: meta-arm@lists.yoctoproject.org Subject: [PATCH 2/3] arm-bsp/corstone1000: add coresight MACHINE_FEATURE Date: Wed, 10 Sep 2025 10:03:45 +0100 Message-ID: <20250910090346.1623394-2-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250910090346.1623394-1-ross.burton@arm.com> References: <20250910090346.1623394-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 10 Sep 2025 09:03:59 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/6693 The Corstone1000 supports Arm CoreSight, so add it to MACHINE_FEATURES. Note that currently the FVP model doesn't support this[1] so we only enable it for MPS3. This is useful because oe-core's perf recipe will now enable coresight support automatically if this feature is present[1]. [1] https://developer.arm.com/documentation/100966/1128/Arm--Corstone-1000-FVP/Corstone-1000-FVP-modeled-components [2] oe-core c455bd03910 ("perf: enable coresight if enabled in MACHINE_FEATURES") Signed-off-by: Ross Burton --- meta-arm-bsp/conf/machine/corstone1000-mps3.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-arm-bsp/conf/machine/corstone1000-mps3.conf b/meta-arm-bsp/conf/machine/corstone1000-mps3.conf index 88d01b096f..cefe184bf7 100644 --- a/meta-arm-bsp/conf/machine/corstone1000-mps3.conf +++ b/meta-arm-bsp/conf/machine/corstone1000-mps3.conf @@ -9,3 +9,6 @@ TFA_TARGET_PLATFORM = "fpga" PLATFORM_IS_FVP = "FALSE" TS_PLATFORM = "arm/corstone1000-mps3" + +# Unlike the FVP, MPS3 supports CoreSight +MACHINE_FEATURES += "coresight" From patchwork Wed Sep 10 09:03:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 69911 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E934CA101F for ; Wed, 10 Sep 2025 09:03:59 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.13066.1757495033193487080 for ; Wed, 10 Sep 2025 02:03:53 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) 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 7F9DD16F8 for ; Wed, 10 Sep 2025 02:03:44 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 542A53F63F for ; Wed, 10 Sep 2025 02:03:52 -0700 (PDT) From: Ross Burton To: meta-arm@lists.yoctoproject.org Subject: [PATCH 3/3] arm-bsp/juno: add coresight MACHINE_FEATURE Date: Wed, 10 Sep 2025 10:03:46 +0100 Message-ID: <20250910090346.1623394-3-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250910090346.1623394-1-ross.burton@arm.com> References: <20250910090346.1623394-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 10 Sep 2025 09:03:59 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/6694 The Juno board supports Arm CoreSight, so add it to MACHINE_FEATURES. This is useful because oe-core's perf recipe will now enable coresight support automatically if this feature is present[1]. [1] oe-core c455bd03910 ("perf: enable coresight if enabled in MACHINE_FEATURES") Signed-off-by: Ross Burton --- meta-arm-bsp/conf/machine/juno.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-arm-bsp/conf/machine/juno.conf b/meta-arm-bsp/conf/machine/juno.conf index 6c666efcc5..28a9237140 100644 --- a/meta-arm-bsp/conf/machine/juno.conf +++ b/meta-arm-bsp/conf/machine/juno.conf @@ -8,7 +8,7 @@ TUNE_FEATURES = "aarch64" require conf/machine/include/arm/arch-armv8a.inc -MACHINE_FEATURES = "usbhost usbgadget alsa screen wifi bluetooth optee pci" +MACHINE_FEATURES = "usbhost usbgadget alsa screen wifi bluetooth optee pci coresight" KERNEL_IMAGETYPE = "Image.gz" KERNEL_DEVICETREE = "arm/juno.dtb arm/juno-r1.dtb arm/juno-r2.dtb"