From patchwork Mon Oct 10 15:30:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 13746 X-Patchwork-Delegate: reatmon@ti.com 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 2ECAAC43217 for ; Mon, 10 Oct 2022 15:31:06 +0000 (UTC) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by mx.groups.io with SMTP id smtpd.web08.7632.1665415862183962286 for ; Mon, 10 Oct 2022 08:31:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=hKS6khSP; spf=pass (domain: ti.com, ip: 198.47.19.142, mailfrom: j-choudhary@ti.com) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29AFV1Ag038657 for ; Mon, 10 Oct 2022 10:31:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1665415861; bh=etpjdDK1HBROjRbQtOqZLujDjkqajTMDnz+X1Y0r3dM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=hKS6khSPcUM6/89pUtX+ES/rnJqcuGnQGPsBW13npG7E1bv9UppRziHpTR1aCdiC2 IWTmyBcc2Z3xs7eABmq7bgh2ilWsa5/ZBNMBAH9ZusjeMG8jxh72qkA5F3LNPOP3LU oCUR97A3hSoh0FOGNzyDCVE7pAPSOGAu0M+i2pcg= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29AFV1G9093112 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 10 Oct 2022 10:31:01 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Mon, 10 Oct 2022 10:31:01 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Mon, 10 Oct 2022 10:31:01 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29AFV0GQ020020; Mon, 10 Oct 2022 10:31:00 -0500 From: Jayesh Choudhary To: CC: , , , Subject: [meta-ti][dunfell PATCH v2 1/4] optee-os: Update SRCREV for OP-TEE TRNG in J784S4 Date: Mon, 10 Oct 2022 21:00:55 +0530 Message-ID: <20221010153058.28310-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221010153058.28310-1-j-choudhary@ti.com> References: <20221010153058.28310-1-j-choudhary@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 ; Mon, 10 Oct 2022 15:31:06 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/15127 Update the SRCREV to the commit when sa3ul support was added in upstream OP-TEE for J784S4 platform to access rng. Signed-off-by: Jayesh Choudhary --- recipes-security/optee/optee-os_%.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-security/optee/optee-os_%.bbappend b/recipes-security/optee/optee-os_%.bbappend index e7de5157..ff639baa 100644 --- a/recipes-security/optee/optee-os_%.bbappend +++ b/recipes-security/optee/optee-os_%.bbappend @@ -1,5 +1,5 @@ PV_ti-soc = "3.18.0+git${SRCPV}" -SRCREV_ti-soc = "8e155bae3a5eb9d1a3ed9260bd7281a7a35f5086" +SRCREV_ti-soc = "6bf4a81a8f5388e6cb6b1d7e8ebe57c5089c0954" SRC_URI_ti-soc = "git://github.com/OP-TEE/optee_os.git;protocol=https" DEPENDS_append_ti-soc = " python3-cryptography-native" From patchwork Mon Oct 10 15:30:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 13745 X-Patchwork-Delegate: reatmon@ti.com 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 1536AC433F5 for ; Mon, 10 Oct 2022 15:31:06 +0000 (UTC) Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by mx.groups.io with SMTP id smtpd.web08.7633.1665415864286503559 for ; Mon, 10 Oct 2022 08:31:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=lhVPss+3; spf=pass (domain: ti.com, ip: 198.47.19.141, mailfrom: j-choudhary@ti.com) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29AFV3Y3079230 for ; Mon, 10 Oct 2022 10:31:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1665415863; bh=kkRMGDaQ9UJiPlCGgbAM0ka0ZsmgNTOJATtvkdvD8+k=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lhVPss+3wYsvdj8EQRKk6fa2qyStuBNs4u1O0wPibs53IEfmLT1aiSpIYH6dBpzcp utyjoFx8HxxThYFV8k9mYj4DvTHFxniyilK6dUOSbL93y/tOPMNmODapfoxLEc6yks OAc2AiC+zpj8h3kOACl7GXkx0Tk5HfxzY3qBiVJU= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29AFV3hb093187 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 10 Oct 2022 10:31:03 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Mon, 10 Oct 2022 10:31:02 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Mon, 10 Oct 2022 10:31:02 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29AFV19V020084; Mon, 10 Oct 2022 10:31:02 -0500 From: Jayesh Choudhary To: CC: , , , Subject: [meta-ti][dunfell PATCH v2 2/4] conf: machine: j784s4: Add OP-TEE flavour Date: Mon, 10 Oct 2022 21:00:56 +0530 Message-ID: <20221010153058.28310-3-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221010153058.28310-1-j-choudhary@ti.com> References: <20221010153058.28310-1-j-choudhary@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 ; Mon, 10 Oct 2022 15:31:06 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/15128 Add the new OP-TEE flavour for J784S4 instead of default k3-j721e. The TI-SCI ID for MCU domain sa2ul/sa3ul are not the same for J721E and J784S4. So a new flavour is added in upstream OP-TEE. Signed-off-by: Jayesh Choudhary --- conf/machine/j784s4-evm.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/machine/j784s4-evm.conf b/conf/machine/j784s4-evm.conf index a8ad25f6..4696b07b 100644 --- a/conf/machine/j784s4-evm.conf +++ b/conf/machine/j784s4-evm.conf @@ -9,6 +9,7 @@ MACHINE_FEATURES += "gpu" SERIAL_CONSOLES = "115200;ttyS10" SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" TFA_K3_USART = "0x8" +OPTEEMACHINE = "k3-j784s4" OPTEE_K3_USART = "0x8" KERNEL_DEVICETREE = " \ From patchwork Mon Oct 10 15:30:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 13747 X-Patchwork-Delegate: reatmon@ti.com 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 1115DC433FE for ; Mon, 10 Oct 2022 15:31:06 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by mx.groups.io with SMTP id smtpd.web08.7635.1665415865163682641 for ; Mon, 10 Oct 2022 08:31:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=jS/7CL3+; spf=pass (domain: ti.com, ip: 198.47.23.248, mailfrom: j-choudhary@ti.com) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29AFV4ON120451 for ; Mon, 10 Oct 2022 10:31:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1665415864; bh=LE+zb7Bg0J+Be9pxrgZ4iNdiJcWzIey5vCJS0JG8prI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jS/7CL3+3F3rFGC1kbvQQWC5XNKUNS7UOsJK4ktnp0NXj4u8tHhLpiQ9tg6VjGXq/ Z9NvgTiHgw7+8KL7b6WdQs/XAEPo/wqWxBrh2aFMtVOfwyUG25/tvn2gK6Tj8Ju0tb /kfX5mqJmLdUvzxa5mprrlzIuuHBDfgj7uj3GCM0= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29AFV45o027479 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 10 Oct 2022 10:31:04 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Mon, 10 Oct 2022 10:31:04 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Mon, 10 Oct 2022 10:31:04 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29AFV3uc020144; Mon, 10 Oct 2022 10:31:03 -0500 From: Jayesh Choudhary To: CC: , , , Subject: [meta-ti][dunfell PATCH v2 3/4] conf: machine: j721s2: Add OP-TEE flavour Date: Mon, 10 Oct 2022 21:00:57 +0530 Message-ID: <20221010153058.28310-4-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221010153058.28310-1-j-choudhary@ti.com> References: <20221010153058.28310-1-j-choudhary@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 ; Mon, 10 Oct 2022 15:31:06 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/15129 Change the OP-TEE flavour from default k3-j721e to k3-j784s4 as sa3ul support for j784s4 is upstreamed in OP-TEE and we can use the same settings in j721s2 to access TRNG. Signed-off-by: Jayesh Choudhary --- conf/machine/j721s2-evm.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/machine/j721s2-evm.conf b/conf/machine/j721s2-evm.conf index ba5e8def..ec9b7454 100644 --- a/conf/machine/j721s2-evm.conf +++ b/conf/machine/j721s2-evm.conf @@ -9,6 +9,7 @@ MACHINE_FEATURES += "gpu" SERIAL_CONSOLES = "115200;ttyS10" SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" TFA_K3_USART = "0x8" +OPTEEMACHINE = "k3-j784s4" OPTEE_K3_USART = "0x8" KERNEL_DEVICETREE = " \ From patchwork Mon Oct 10 15:30:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 13748 X-Patchwork-Delegate: reatmon@ti.com 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 EABB5C433F5 for ; Mon, 10 Oct 2022 15:31:15 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by mx.groups.io with SMTP id smtpd.web10.7794.1665415866678751865 for ; Mon, 10 Oct 2022 08:31:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=ybaELjvh; spf=pass (domain: ti.com, ip: 198.47.23.248, mailfrom: j-choudhary@ti.com) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29AFV6xC120461 for ; Mon, 10 Oct 2022 10:31:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1665415866; bh=EdnPbFxpXW1pRocs2cvm6C0ccQunBwB/bGaYGY/beeE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ybaELjvh6cpcTPNDYsBzbyb2NG2tDxS5kxL+k9H8LYgfGHiAEH6ICoNouLpCULo0e 0INg8v1U3pa1FnLIHYg/hrU2AN+mOv3gK1b50F5VoCd/Ph/eK71eg63aSUOSexOSoW 7iBlamI4nzCgNL213BtPq23UgPebOt0fMBHgEiAw= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29AFV60m093230 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 10 Oct 2022 10:31:06 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Mon, 10 Oct 2022 10:31:05 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Mon, 10 Oct 2022 10:31:05 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29AFV43G030628; Mon, 10 Oct 2022 10:31:05 -0500 From: Jayesh Choudhary To: CC: , , , Subject: [meta-ti][dunfell PATCH v2 4/4] optee-os: Enable TRNG driver as OP-TEE support is added Date: Mon, 10 Oct 2022 21:00:58 +0530 Message-ID: <20221010153058.28310-5-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221010153058.28310-1-j-choudhary@ti.com> References: <20221010153058.28310-1-j-choudhary@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 ; Mon, 10 Oct 2022 15:31:15 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/15130 OP-TEE upstream now has support for sa3ul for j721s2 platform. Re-enable the trng driver which was disabled earlier. Signed-off-by: Jayesh Choudhary --- recipes-security/optee/optee-os_%.bbappend | 2 -- 1 file changed, 2 deletions(-) diff --git a/recipes-security/optee/optee-os_%.bbappend b/recipes-security/optee/optee-os_%.bbappend index ff639baa..38d1ce50 100644 --- a/recipes-security/optee/optee-os_%.bbappend +++ b/recipes-security/optee/optee-os_%.bbappend @@ -8,8 +8,6 @@ EXTRA_OEMAKE_append_k3 = "${@ 'CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if EXTRA_OEMAKE_append_am62xx-evm = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1" EXTRA_OEMAKE_append_am62xx-lp-evm = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1" -EXTRA_OEMAKE_append_j721s2-evm = " CFG_WITH_SOFTWARE_PRNG=y" -EXTRA_OEMAKE_append_j721s2-hs-evm = " CFG_WITH_SOFTWARE_PRNG=y" do_compile_prepend_ti-soc() { export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}