Received: by 10.223.185.116 with SMTP id b49csp1982012wrg; Thu, 22 Feb 2018 06:25:03 -0800 (PST) X-Google-Smtp-Source: AH8x225GeRW7shh1aKl9b5gIhw7a+mjFD5ap3rXBjVZpFWKpgzPPYV0O5NhzY9uQ5LW00w6K5r4C X-Received: by 10.101.73.7 with SMTP id p7mr5753774pgs.250.1519309503769; Thu, 22 Feb 2018 06:25:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519309503; cv=none; d=google.com; s=arc-20160816; b=cGbiPEY6qC1Axq1gku/kFhcsjiZgVXBx9YUh2evI+slhzyuaYJF2cXWixG1YPECxaK d0BG4oQhcYl3yIg5dPtSFJa5bFiED2aAcRYVp3VLTUL8e6Q6SW2kcu63kRvj1F8v8xmj ONcLxOt4dakhulgfpS3LG/YZ8/MqVAy81V4Noz9KH0tiBXqqN2KUUTHPOYUyIZHH5O6S pZaEeKPabB59svUft2P03kAhOMS++Vl9gxyve1TermEgvbQ3byr22K/pMauZYVAIRpcm u0UA1t+3zNFXOFHjGP2pxqNynR3vi5m0kg2MR/M+tW5BsOcI22DoWew8xkj9qzBgRbYU bR2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=6L8Fw/4r12LfaJJ94qF32/YMkDyoCSm6umEQZa+lq2Y=; b=fYQfbOwq1eEG3QMJhHsyNkVGhUehCIoW9w34Ju/lys4QQnYaRHqAlOmjyQcCEFShpk 4XTIpzh8WkhJpjO3rhL5OS6sUjA93d8c82TNMbqCPDw8P4YSGuPPFzmwRvbwuC062jyJ 69GzYtoFuseSyUcZ1qEV8DGUWhpU1GwVWuCxfLjBQ4r2YG4+11HI1s6Hf086se9n5Zju MATXuKVJsde1SQYUbqjGOG/mx0LEJxPePM9cJIv5wWVQYx4qyZ5VZriSv1ZFq11mEaDR w6xt1vs7gUwXlcUZql9NKzzIn4gfCLTx0DNIyQwp8oGC2NuFJBxjXNyB66nRre8KcAW0 JtAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yubjvk8w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10si88280pgc.78.2018.02.22.06.24.49; Thu, 22 Feb 2018 06:25:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yubjvk8w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932801AbeBVOXT (ORCPT + 99 others); Thu, 22 Feb 2018 09:23:19 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:43057 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932726AbeBVOXR (ORCPT ); Thu, 22 Feb 2018 09:23:17 -0500 Received: by mail-wr0-f195.google.com with SMTP id u49so10732367wrc.10 for ; Thu, 22 Feb 2018 06:23:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6L8Fw/4r12LfaJJ94qF32/YMkDyoCSm6umEQZa+lq2Y=; b=Yubjvk8wPkeqE7lKIAx9ZJpNS5nISiPXbt8bNKwkCMI3aA2aW1a/nVyDlxmJoyWSJq v+flZiTFAljQDwiHs8+O7A7trTyXAQSvhItknCq1vCDHinkoNpUj58tIV88UoqagKV64 9xFDO3gLkONoOI5dt4R7a1Lq80WtJL+PawDVs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6L8Fw/4r12LfaJJ94qF32/YMkDyoCSm6umEQZa+lq2Y=; b=Q93e6PedXEJTJluwXUGQz0Ehzc7w0XVszsbp4bdT8E8444BKE3AMqG3B2bp64udMJM XwGNAAGUM90ZGaba40LbMxpzKSsU3unM4mxgOMjcnj0O2CQ5NREgRtPLpzTiegaa7Nju 5ULJ3419yrgJvAyFLLBOl4brz+xIndg0SV3iJeud4ZvjQPnoISSAHvCuJjAasTO0DRLo 612qEWYrQAES1jw4jvT/2YbPUwKZnjC3IM95CsnZ5EEnieiJ1u86cNnQbmMOmbHl8qbS sfHkHEwOWQwZloC4qLmKRm3bSKBcfyOLULUbfReWsshRcXH/eUqqMWaVrpeQBAg9j4PY +5LQ== X-Gm-Message-State: APf1xPAECa2Qz/Bymbs/kuujzY5YxR7jhPhZDb+vMyOGQ/Samg2Tavjb 1854hly84qYEpRj8T+nnuFMKjA== X-Received: by 10.223.144.46 with SMTP id h43mr6197325wrh.125.1519309396509; Thu, 22 Feb 2018 06:23:16 -0800 (PST) Received: from arch-late.localdomain (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id g96sm239784wrd.73.2018.02.22.06.23.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 06:23:15 -0800 (PST) From: Rui Miguel Silva To: horia.geanta@nxp.com, aymen.sghaier@nxp.com, Herbert Xu Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Ryan Harkin , Bryan O'Donoghue , Rui Miguel Silva Subject: [PATCH v4 0/4] Enable CAAM on i.MX7s fix TrustZone issues Date: Thu, 22 Feb 2018 14:22:46 +0000 Message-Id: <20180222142250.31348-1-rui.silva@linaro.org> X-Mailer: git-send-email 2.16.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For v4 I am taking over this patch series as all the left over patches were implemented by me. V4: - removed patch: [PATCH v3 2/5] crypto: caam: Fix endless loop when RNG is already initialized from the series since Horia presented a better fix for the endless loop in case of fail to acquire DECO: 225ece3e7dad4 crypto: caam - fix endless loop when DECO acquire fails - add Fabio Estevam reviewed by tag in PATCH 3/3. - removed CAAM ERA from dts since bootloader will add it - Horia. V3: - Added Cc: clk driver maintainers - Fabio Estevam - Added Cc: i.MX arch maintainers - Fabio Estevam - Removed bouncing email address for Herbert Xu V2-resend: - Patch 0005 lost in the ether - resending V2: - Endian detection is ok with TrustZone enabled Horia. Endian detection logic tested with TrustZone enabled. The register that this relies on though isn't affected by the lock-down in the first page. Assuming set of affected registers is actually just the 'deco' registers though there is no formal statement of that, that I am aware of. - Moving of TrustZone work-around into u-boot This set actually doesn't need to deal with TrustZone at all now but, for the sake of consistency keeping thread title https://patchwork.ozlabs.org/patch/866460/ https://patchwork.ozlabs.org/patch/866462/ https://patchwork.ozlabs.org/patch/865890/ - Reworded endless loop fix to read a bit better - Fixes to DTS additions - Rui - Fixes to number of clocks declared - Rui V1: This patch-set enables CAAM on the i.MX7s and fixes a number of issues identified with the CAAM driver and hardware when TrustZone mode is enabled. The first block of patches are simple bug-fixes, followed by a second block of patches which are simple enabling patches for the i.MX7Solo - note we aren't enabling for the i.MX7Dual since we don't have hardware to test that out but it should be a 1:1 mapping for others to enable when appropriate. Cheers, Rui Rui Miguel Silva (4): crypto: caam - Fix null dereference at error path crypto: caam - do not use mem and emi_slow clock for imx7x clk: imx7d: add CAAM clock ARM: dts: imx7s: add CAAM device node arch/arm/boot/dts/imx7s.dtsi | 30 +++++++++++++++++++++++ drivers/clk/imx/clk-imx7d.c | 1 + drivers/crypto/caam/ctrl.c | 42 +++++++++++++++++++-------------- include/dt-bindings/clock/imx7d-clock.h | 3 ++- 4 files changed, 57 insertions(+), 19 deletions(-) -- 2.16.2