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 7BD53C433F5 for ; Tue, 16 Nov 2021 11:21:22 +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 1165C61994 for ; Tue, 16 Nov 2021 11:21:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1165C61994 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=walle.cc 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 147F9837F5; Tue, 16 Nov 2021 12:21:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=walle.cc header.i=@walle.cc header.b="JewOi4yf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B2CA0837F5; Tue, 16 Nov 2021 12:21:15 +0100 (CET) Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2E9B1837FC for ; Tue, 16 Nov 2021 12:21:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from mwalle01.kontron.local. (unknown [IPv6:2a02:810c:c240:2017:fa59:71ff:fe9b:b851]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id C21192223E; Tue, 16 Nov 2021 12:21:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1637061668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1dYoAQH3DST2MHDn3Fehgm36gIXnF4/r56a0ycqZOMo=; b=JewOi4yfi7stldmPSI4ZdySMlHnmjQfUxbsga1A3n16QiAGXiyokJZeSh0aaLCM7OvLECq MW8Urpcg2SpAcd8ZAeziNq4xFWEVA6xmGA3J2mANb5q/ktJUcPRwyinljKSpr3qjNiTLz3 jhOfkQK6X1vegGAT+HcaBTdnbccdTfE= From: Michael Walle To: gaurav.jain@nxp.com Cc: Shengzhou.Liu@nxp.com, V.Sethi@nxp.com, adrian.alonso@nxp.com, alison.wang@nxp.com, andy.tang@nxp.com, festevam@gmail.com, franck.lenormand@nxp.com, horia.geanta@nxp.com, ji.luo@nxp.com, meenakshi.aggarwal@nxp.com, mingkai.hu@nxp.com, olteanv@gmail.com, pankaj.gupta@nxp.com, peng.fan@nxp.com, pramod.kumar_1@nxp.com, priyanka.jain@nxp.com, rajesh.bhagat@nxp.com, sahil.malhotra@nxp.com, sbabic@denx.de, silvano.dininno@nxp.com, sjg@chromium.org, u-boot@lists.denx.de, uboot-imx@nxp.com, wasim.khan@nxp.com, ye.li@nxp.com, Michael Walle Subject: Re: [PATCH v5 13/16] Layerscape: Enable Job ring driver model in U-Boot. Date: Tue, 16 Nov 2021 12:20:59 +0100 Message-Id: <20211116112059.3588502-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211115070014.17586-14-gaurav.jain@nxp.com> References: <20211115070014.17586-14-gaurav.jain@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 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 > LS(1021/1012/1028/1043/1046/1088/2088), LX2160, LX2162 > platforms are enabled with JR driver model. > > removed sec_init() call from board files. > removed CONFIG_FSL_CAAM from defconfig files. > sec is initialized based on job ring information processed > from device tree. > > Signed-off-by: Gaurav Jain > Reviewed-by: Priyanka Jain > --- > 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 ++++++- > 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 ---- > 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 - > 36 files changed, 75 insertions(+), 102 deletions(-) board/kontron/sl28/sl28.c fixes are missing here. With this patch applied I'll get the following error during boot: U-Boot 2022.01-rc2-00026-gf82ded5126-dirty (Nov 16 2021 - 11:16:40 +0100) SoC: LS1028A Rev1.0 (0x870b0110) Clock Configuration: CPU0(A72):1300 MHz CPU1(A72):1300 MHz Bus: 400 MHz DDR: 1600 MT/s Reset Configuration Word (RCW): 00000000: 34004010 00000030 00000000 00000000 00000010: 00000000 008f0000 0030c000 00000000 00000020: 06200000 00002580 00000000 00019016 00000030: 00000000 00000048 00000000 00000000 00000040: 00000000 00000000 00000000 00000000 00000050: 00000000 00000000 00000000 00000000 00000060: 00000304 00000000 000e7000 00000000 00000070: bb580000 00020000 Model: Kontron SMARC-sAL28 (Dual PHY) EL: 3 CPLD: v64 DRAM: 4 GiB (DDR3, 32-bit, CL=11, ECC on) caam_jr: caam not found ^^ this error. please add the following hunk to this patch: diff --git a/board/kontron/sl28/sl28.c b/board/kontron/sl28/sl28.c index 9572502499..555e831f2a 100644 --- a/board/kontron/sl28/sl28.c +++ b/board/kontron/sl28/sl28.c @@ -31,9 +31,6 @@ int board_early_init_f(void) int board_init(void) { - if (CONFIG_IS_ENABLED(FSL_CAAM)) - sec_init(); - return 0; } > config ARCH_LS1028A > @@ -53,6 +57,9 @@ config ARCH_LS1028A > select SYS_FSL_ERRATUM_A011334 > select SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND > select RESV_RAM if GIC_V3_ITS > + select FSL_CAAM > + select FSL_BLOB > + select MISC There are boards like the sl28 which also have ARCH_LS1028A set and doesn't depend on neither FSL_CAAM nor FSL_BLOB. Please don't set this per architecture. Both should be set by the individual boards instead as they are optional and having this here will just increase binary size. Of course this is like to be true for all ARCH_LSxxx Kconfig options. > imply PANIC_HANG -michael