From patchwork Thu Feb 22 14:22:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 129251 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp650765lja; Thu, 22 Feb 2018 06:23:23 -0800 (PST) X-Google-Smtp-Source: AH8x227qnWUBrNWRektKAFto0GVSlm75BXNHVy3SOoDz1LnpKLrUgmTakbzlZBR4JAVpPJld6yfQ X-Received: by 10.101.71.129 with SMTP id e1mr5818072pgs.430.1519309403311; Thu, 22 Feb 2018 06:23:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519309403; cv=none; d=google.com; s=arc-20160816; b=PSpVwunjMFTyllzy/54DdXkgH16eb79Bcp0dKWFOo18ypnS/ZD98Ft6UeCVZnW4wRX mBHX4SZ9LbKkjwExyoM//Nd/oc6k3A47zcM65VfW8Gsbog8ihSvzlUdfb86/hvmjnmID EfBEAmvvE1Oan9QQ0qXiLoQ7X2D72n58PAFzKyUA+6ZhQYVm5IgTwI5UrEyY1WLOYbaD 0/keAVRqzchRp1oxjFtStZ/mdO3kat2snXeI52bIbJ56k7xZ9pvosrGcL1IzL0Fu61Ww 7+1UOsr2P/mCCtxVG4kMtseValiZsSmWsrDLv+qEp290FBhGsVWCoYqRpgZjGHCoHt2h 1PWg== 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 g2-v6si113248pll.556.2018.02.22.06.23.23; Thu, 22 Feb 2018 06:23:23 -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 S932812AbeBVOXU (ORCPT + 28 others); Thu, 22 Feb 2018 09:23:20 -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 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