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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86410C433EF for ; Tue, 19 Oct 2021 08:51:00 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A26556115A for ; Tue, 19 Oct 2021 08:50:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A26556115A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6E67D81F0D; Tue, 19 Oct 2021 10:50:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1634633457; bh=c8Ta18Egl0LhWXxJK8EphGPAcmlo7cMheAPG88BQ1yU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=XAXwycQ+mkGnZeKJAPqQTeLJ5fbLIGFUgZ7TP1gWg0E6IDh8bCIcS2gIgDaoOg2Et 7oNYyG/CzPFGQpPaOWgH5oAHDUXxNEq9tCzYfSKklp/LFkrts4bXYXDhaA0xo4xpCY 03clvpC2H5AfYCPXGnk6yLNNkKhvY+wituX93014cnvJZwIyyL6BIcSuu81dPHccGb y8+8Bi5nU3wI+jhfo6dlBOXjrgZw7OqqZ8Bf5QxuWA+DIXOspW1i20ExJdZg6AVYVg FcqPwgPPA6vqRiOLfxD34s5UNgBaGxMPt7NWUhs0Mt3mJxtr42mi3H42Se5lTA3RDu RxQ2UOmnnE+mg== Received: from [IPv6:2001:a61:603e:fa01:5d22:b781:1dd1:ca44] (unknown [IPv6:2001:a61:603e:fa01:5d22:b781:1dd1:ca44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbabic@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D0B6480F5F; Tue, 19 Oct 2021 10:50:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1634633455; bh=c8Ta18Egl0LhWXxJK8EphGPAcmlo7cMheAPG88BQ1yU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=o+p1UdUUthhTC6KXUeVpfMSx4BH18tkUyQZ08cZKsE3PS6obYQsMzmBQ4VxAZTlub s62EVGVEu+8VlyxFIygqySQZUJ2pSwg416mNf+pdzcPj07hptUDlpfv7a33BoJxlRl dyrsWIuMcD+uOG/xljaoxLO0nQojOtPNn3MYG2a3mpclSfCc0wFVtTUDeUDetghQMX 7g6Fw9dPi+vTLcTLa4bpSrBgWOIfiiAteAAlVV+I6/FasQtrCtfGu/lk27GTmDTAgy Y9ZWEK9cYIO/5GCmtSdBePS+tbdIPsVcwznthJz3KuLCoDQGJyC+8hw+uGIZEToOiq rezYNRqpQ1mMw== Subject: Re: [PATCH v3 00/16] Add CAAM driver model support To: Gaurav Jain , u-boot@lists.denx.de Cc: Stefano Babic , Fabio Estevam , Peng Fan , Simon Glass , Priyanka Jain , Ye Li , Horia Geanta , Ji Luo , Franck Lenormand , Silvano Di Ninno , Sahil malhotra , Pankaj Gupta , Varun Sethi , "NXP i . MX U-Boot Team" , Shengzhou Liu , Mingkai Hu , Rajesh Bhagat , Meenakshi Aggarwal , Wasim Khan , Alison Wang , Pramod Kumar , Tang Yuantian , Adrian Alonso , Vladimir Oltean References: <20211005053929.9454-1-gaurav.jain@nxp.com> From: Stefano Babic Message-ID: <0d7bef8d-aee0-ba02-c9d7-bf49c2028384@denx.de> Date: Tue, 19 Oct 2021 10:50:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211005053929.9454-1-gaurav.jain@nxp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi Gaurav, On 05.10.21 07:39, Gaurav Jain wrote: > This patchset adds the support for following: > 1) CAAM Driver model for all i.MX, layerscape, PPC platforms. > 2) Added crypto node in device tree files. > 3) CAAM support for blob key encryption key(bkek), random number generation. > 4) fix build issue for mx6sabre: Remove SPL DTB related configs and SPL_OF_CONTROL. > 5) fixed hwrng performance issue in kernel. > I have built with this series applied, I have rebased some of them, but I get build errors for the PowerPC architecture. Taking into account that I had to rebase some of them, can you check PowerPC build and repost after rebasing ? Thanks, Stefano > i.MX platforms: > i.MX6, i.MX7, i.MX7ULP, i.MX8MM/MN/MP/MQ, i.MX8QM/QXP > > Layerscape platforms: > LS1021, LS1012, LS1028, LS1043, LS1046, LS1088, LS2088, LX2160, LX2162 > > Powerpc platforms: > P3041, P4080, P5040, P2041, T1024, T1042, T2080, T4240 > > Gaurav Jain (14): > crypto/fsl: Add support for CAAM Job ring driver model > crypto/fsl: Add CAAM support for bkek, random number generation > i.MX8M: crypto: updated device tree for supporting DM in SPL > crypto/fsl: i.MX8M: Enable Job ring driver model in SPL and U-Boot. > i.MX6: Enable Job ring driver model in U-Boot. > i.MX7: Enable Job ring driver model in U-Boot. > i.MX7ULP: Enable Job ring driver model in U-Boot. > i.MX8: Add crypto node in device tree > crypto/fsl: i.MX8: Enable Job ring driver model in SPL and U-Boot. > Layerscape: Add crypto node in device tree > Layerscape: Enable Job ring driver model in U-Boot. > PPC: Add crypto node in device tree > PPC: Enable Job ring driver model in U-Boot > update CAAM MAINTAINER > > Ye Li (2): > mx6sabre: Remove unnecessary SPL configs > crypto/fsl: Fix kick_trng > > MAINTAINERS | 7 + > arch/arm/Kconfig | 9 +- > arch/arm/cpu/armv7/ls102xa/Kconfig | 4 + > arch/arm/cpu/armv7/ls102xa/cpu.c | 16 + > arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 27 + > arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 10 +- > arch/arm/dts/fsl-imx8dx.dtsi | 61 ++- > arch/arm/dts/fsl-imx8qm-mek-u-boot.dtsi | 34 +- > arch/arm/dts/fsl-imx8qm.dtsi | 61 ++- > arch/arm/dts/fsl-imx8qxp-mek-u-boot.dtsi | 34 +- > arch/arm/dts/fsl-ls1012a.dtsi | 46 +- > arch/arm/dts/fsl-ls1028a.dtsi | 41 +- > arch/arm/dts/fsl-ls1043a.dtsi | 45 +- > arch/arm/dts/fsl-ls1046a.dtsi | 44 ++ > arch/arm/dts/fsl-ls1088a.dtsi | 39 ++ > arch/arm/dts/fsl-ls2080a.dtsi | 39 ++ > arch/arm/dts/fsl-lx2160a.dtsi | 41 +- > arch/arm/dts/imx7ulp.dtsi | 24 + > arch/arm/dts/imx8mm-evk-u-boot.dtsi | 18 +- > arch/arm/dts/imx8mm.dtsi | 1 + > arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 18 +- > arch/arm/dts/imx8mn.dtsi | 1 + > arch/arm/dts/imx8mp-evk-u-boot.dtsi | 18 +- > arch/arm/dts/imx8mp.dtsi | 1 + > arch/arm/dts/imx8mq.dtsi | 1 + > arch/arm/dts/ls1021a.dtsi | 40 ++ > arch/arm/include/asm/arch-imx8/imx-regs.h | 5 +- > arch/arm/include/asm/arch-imx8m/imx-regs.h | 1 + > arch/arm/mach-imx/cmd_dek.c | 1 + > arch/arm/mach-imx/imx8/Kconfig | 9 + > arch/arm/mach-imx/imx8/cpu.c | 16 +- > arch/arm/mach-imx/imx8m/Kconfig | 23 + > arch/arm/mach-imx/imx8m/soc.c | 10 +- > arch/arm/mach-imx/mx6/Kconfig | 20 + > arch/arm/mach-imx/mx6/soc.c | 12 +- > arch/arm/mach-imx/mx7/Kconfig | 3 + > arch/arm/mach-imx/mx7/soc.c | 11 +- > arch/arm/mach-imx/mx7ulp/Kconfig | 4 + > arch/arm/mach-imx/mx7ulp/soc.c | 16 + > arch/powerpc/cpu/mpc85xx/Kconfig | 44 ++ > arch/powerpc/cpu/mpc85xx/cpu_init.c | 17 +- > arch/powerpc/dts/p2041si-post.dtsi | 1 + > arch/powerpc/dts/p3041si-post.dtsi | 1 + > arch/powerpc/dts/p4080si-post.dtsi | 1 + > arch/powerpc/dts/p5040si-post.dtsi | 1 + > arch/powerpc/dts/qoriq-sec4.0-0.dtsi | 74 +++ > arch/powerpc/dts/qoriq-sec4.2-0.dtsi | 83 ++++ > arch/powerpc/dts/qoriq-sec5.2-0.dtsi | 92 ++++ > arch/powerpc/dts/t1023si-post.dtsi | 1 + > arch/powerpc/dts/t1042si-post.dtsi | 1 + > arch/powerpc/dts/t2080si-post.dtsi | 1 + > arch/powerpc/dts/t4240si-post.dtsi | 1 + > arch/powerpc/include/asm/u-boot-ppc.h | 13 + > arch/powerpc/include/asm/u-boot.h | 1 + > board/freescale/imx8mm_evk/spl.c | 9 +- > board/freescale/imx8mn_evk/spl.c | 8 +- > board/freescale/imx8mp_evk/spl.c | 13 +- > board/freescale/imx8mq_evk/spl.c | 9 +- > board/freescale/imx8qm_mek/spl.c | 6 +- > board/freescale/imx8qxp_mek/spl.c | 6 +- > board/freescale/ls1012afrdm/ls1012afrdm.c | 7 +- > board/freescale/ls1012aqds/ls1012aqds.c | 6 +- > board/freescale/ls1012ardb/ls1012ardb.c | 6 +- > board/freescale/ls1021aiot/ls1021aiot.c | 6 +- > board/freescale/ls1021aqds/ls1021aqds.c | 6 +- > board/freescale/ls1021atsn/ls1021atsn.c | 7 +- > board/freescale/ls1021atwr/ls1021atwr.c | 8 +- > board/freescale/ls1028a/ls1028a.c | 6 +- > board/freescale/ls1043ardb/ls1043ardb.c | 6 +- > board/freescale/ls1046afrwy/ls1046afrwy.c | 7 +- > board/freescale/ls1046aqds/ls1046aqds.c | 7 +- > board/freescale/ls1046ardb/ls1046ardb.c | 6 +- > board/freescale/ls1088a/ls1088a.c | 6 +- > board/freescale/ls2080aqds/ls2080aqds.c | 6 +- > board/freescale/ls2080ardb/ls2080ardb.c | 9 +- > board/freescale/lx2160a/lx2160a.c | 5 - > cmd/Kconfig | 1 + > configs/P2041RDB_defconfig | 1 - > configs/P3041DS_defconfig | 1 - > configs/P4080DS_defconfig | 1 - > configs/P5040DS_defconfig | 1 - > configs/T1024RDB_defconfig | 1 - > configs/T1042D4RDB_defconfig | 1 - > configs/T2080QDS_defconfig | 1 - > configs/T2080RDB_defconfig | 1 - > configs/T4240RDB_defconfig | 1 - > configs/ls1021aiot_qspi_defconfig | 1 - > configs/ls1021aqds_nor_defconfig | 1 - > configs/ls1021aqds_qspi_defconfig | 1 - > configs/ls1021atsn_qspi_defconfig | 1 - > configs/ls1021atwr_nor_defconfig | 1 - > ...s1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 1 + > configs/ls1028ardb_tfa_defconfig | 1 - > configs/ls1043ardb_tfa_defconfig | 1 - > configs/ls1046afrwy_tfa_defconfig | 1 - > configs/ls1046aqds_tfa_defconfig | 1 - > configs/ls1046ardb_tfa_defconfig | 1 - > configs/ls2088aqds_tfa_defconfig | 1 - > configs/ls2088ardb_tfa_defconfig | 1 - > configs/lx2160aqds_tfa_defconfig | 1 - > configs/lx2160ardb_tfa_defconfig | 1 - > configs/lx2162aqds_tfa_defconfig | 1 - > configs/mx6sabreauto_defconfig | 2 - > configs/mx6sabresd_defconfig | 4 - > drivers/crypto/fsl/Kconfig | 9 +- > drivers/crypto/fsl/Makefile | 3 +- > drivers/crypto/fsl/desc.h | 5 + > drivers/crypto/fsl/fsl_blob.c | 82 ++++ > drivers/crypto/fsl/jobdesc.c | 20 +- > drivers/crypto/fsl/jobdesc.h | 4 + > drivers/crypto/fsl/jr.c | 461 +++++++++++++----- > drivers/crypto/fsl/jr.h | 14 + > include/fsl_sec.h | 13 +- > scripts/config_whitelist.txt | 1 + > 114 files changed, 1649 insertions(+), 293 deletions(-) > create mode 100644 arch/powerpc/dts/qoriq-sec4.0-0.dtsi > create mode 100644 arch/powerpc/dts/qoriq-sec4.2-0.dtsi > create mode 100644 arch/powerpc/dts/qoriq-sec5.2-0.dtsi > create mode 100644 arch/powerpc/include/asm/u-boot-ppc.h > -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de =====================================================================