From patchwork Mon Oct 10 13:46:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 13737 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 7B3C4C433FE for ; Mon, 10 Oct 2022 13:46:55 +0000 (UTC) Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by mx.groups.io with SMTP id smtpd.web10.6568.1665409613494043010 for ; Mon, 10 Oct 2022 06:46:53 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=h5NHO/yK; spf=pass (domain: ti.com, ip: 198.47.19.141, mailfrom: j-choudhary@ti.com) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29ADkqxL053680 for ; Mon, 10 Oct 2022 08:46:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1665409612; bh=etpjdDK1HBROjRbQtOqZLujDjkqajTMDnz+X1Y0r3dM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=h5NHO/yKq0daGY2eQ176nrAN8CQP9LcpHWpd3dyDbxRkSWvqKgbwBHxwKPe5TI5aa 592x5DlW8jk02zlIhrPmQ5akXFKlErslT2Xz6x/KMUiWXciRc1kOhuM3+FSTYOjnDF QhRe9LONXnUS2tpwFr44lVnMKDwBy0hZd2TJVeR0= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29ADkq4N028675 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 10 Oct 2022 08:46:52 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE113.ent.ti.com (157.170.170.24) 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 08:46:52 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE105.ent.ti.com (157.170.170.35) 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 08:46:52 -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 29ADkp2f024183; Mon, 10 Oct 2022 08:46:52 -0500 From: Jayesh Choudhary To: CC: , , , Subject: [meta-ti][dunfell PATCH 1/4] optee-os: Update SRCREV for OP-TEE TRNG in J784S4 Date: Mon, 10 Oct 2022 19:16:46 +0530 Message-ID: <20221010134649.20977-2-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221010134649.20977-1-j-choudhary@ti.com> References: <20221010134649.20977-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 13:46:55 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/15119 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 13:46:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 13738 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 7F886C4332F for ; Mon, 10 Oct 2022 13:46:55 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by mx.groups.io with SMTP id smtpd.web09.6394.1665409615006123800 for ; Mon, 10 Oct 2022 06:46:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=Isi9/euo; 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 29ADksCL095234 for ; Mon, 10 Oct 2022 08:46:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1665409614; bh=kkRMGDaQ9UJiPlCGgbAM0ka0ZsmgNTOJATtvkdvD8+k=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Isi9/euo9LMuc09Sw+YfscM97e9q4nQiYIRG6hJs39oRL+2f5t/mraz1xVWSDw/8E 7Hop4EgoL3T/wVMPDsf2UZ0l/bGXKSs983Btc4Rnrucpq6oqO4hB1lVhs/UaHDEaCG rQf/q3UV1gXmluT+eAhcLBGxruQFYaGlrTK5siyU= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29ADksdA031785 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 10 Oct 2022 08:46:54 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE113.ent.ti.com (10.64.6.34) 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 08:46:54 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE111.ent.ti.com (10.64.6.32) 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 08:46:54 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29ADkrXs062262; Mon, 10 Oct 2022 08:46:53 -0500 From: Jayesh Choudhary To: CC: , , , Subject: [meta-ti][dunfell PATCH 2/4] conf: machine: j784s4: Add OP-TEE flavour Date: Mon, 10 Oct 2022 19:16:47 +0530 Message-ID: <20221010134649.20977-3-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221010134649.20977-1-j-choudhary@ti.com> References: <20221010134649.20977-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 13:46:55 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/15120 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 13:46:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 13740 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 64B2AC433FE for ; Mon, 10 Oct 2022 13:47:05 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by mx.groups.io with SMTP id smtpd.web11.6294.1665409617054470948 for ; Mon, 10 Oct 2022 06:46:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=wymkJaaw; 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 29ADktq9095247 for ; Mon, 10 Oct 2022 08:46:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1665409615; bh=12rcIccgNqm+8xaxPjkzEMI+3bcb5iKEbYITrLfK+0E=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wymkJaawj9hLrUv+Bny7H4nDOiWUb2zouHYRgrj8y0pVzDySH0YBRrhywqKoslmh4 byP7alagQrYwuFUO+TLrhbk+6L/ZLRRJw+NauardeDXbx8Osl0N9McSuyqvOhtrj8f 6+63O9ddRXJ5TgCc2Rl78vG8w40ox4UyeQFfzi5s= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29ADkth3031796 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 10 Oct 2022 08:46:55 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE108.ent.ti.com (157.170.170.38) 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 08:46:55 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE107.ent.ti.com (157.170.170.37) 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 08:46:55 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29ADksqh024295; Mon, 10 Oct 2022 08:46:55 -0500 From: Jayesh Choudhary To: CC: , , , Subject: [meta-ti][dunfell PATCH 3/4] conf: machine: j721s2: Add OP-TEE flavour Date: Mon, 10 Oct 2022 19:16:48 +0530 Message-ID: <20221010134649.20977-4-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221010134649.20977-1-j-choudhary@ti.com> References: <20221010134649.20977-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 13:47:05 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/15121 Add the new OP-TEE flavour for J721S2 instead of default k3-j721e. The TI-SCI ID for MCU domain sa2ul/sa3ul are not the same for J721E and J721S2. So a new flavour is added in upstream OP-TEE. Signed-off-by: Jayesh Choudhary Acked-by: Andrew Davis --- 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 13:46:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 13739 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 6B993C4332F for ; Mon, 10 Oct 2022 13:47:05 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by mx.groups.io with SMTP id smtpd.web12.6429.1665409618115781496 for ; Mon, 10 Oct 2022 06:46:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=AIPEAO4y; spf=pass (domain: ti.com, ip: 198.47.23.248, mailfrom: j-choudhary@ti.com) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29ADkvC3095257 for ; Mon, 10 Oct 2022 08:46:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1665409617; bh=EdnPbFxpXW1pRocs2cvm6C0ccQunBwB/bGaYGY/beeE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AIPEAO4ymJFTJ8JsWuV8yB8h2ExfOtrauTqS8B9alnzB8rMeEVnnnWvkiXhALyC0g 1y+l2CTb1JRQIDmrksvxatWXFH2PsZ1QG0fOq8qou6A9FiGAa9Ic1XgTCEU/2pfNy2 URs0AGfdtUS2Af8BBxCElDy2SOCftZUyZfx/Ac28= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29ADkvO4126956 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 10 Oct 2022 08:46:57 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE108.ent.ti.com (157.170.170.38) 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 08:46:56 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE111.ent.ti.com (157.170.170.22) 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 08:46:57 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29ADkuRY062389; Mon, 10 Oct 2022 08:46:56 -0500 From: Jayesh Choudhary To: CC: , , , Subject: [meta-ti][dunfell PATCH 4/4] optee-os: Enable TRNG driver as OP-TEE support is added Date: Mon, 10 Oct 2022 19:16:49 +0530 Message-ID: <20221010134649.20977-5-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221010134649.20977-1-j-choudhary@ti.com> References: <20221010134649.20977-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 13:47:05 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/15122 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}