Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2694899ybi; Mon, 17 Jun 2019 09:04:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPurG1MpTX+oUdIlPs4lzIXhki9oL4bJZAS+Uqpy4a75QRL8KTrcvIA8U10zXHWnyIX/UH X-Received: by 2002:aa7:9ab5:: with SMTP id x21mr17583524pfi.139.1560787468366; Mon, 17 Jun 2019 09:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560787468; cv=none; d=google.com; s=arc-20160816; b=lsJbE/balSOmYoziOtNgw08OxWQE2z18hKzM08Rbnk0k9YK/CBt6iV5mQIE7gNa9UZ XZwbfnnG4YTs9JE3Vol3ZJj6f7cEffzK45g8xjApP6iRra2hRvnmuyUlh28VCS5UW7Vt HpjYnjjQdEi+Sc5hx3ZgTarRBsqVnUEOi3Ad9KxYar7qNt07aFzYN8Qe9Q/rH/qHpZOs i52jlBcvfr12dHi9c7MvEjo0yjEaZt+7iiBupAE6CMWzUO/ctupYtcLkziBwbVjUDsD6 E5QVCV/Ty5ghvxaFcJFv4tYWs3MchFHox/DeRQcyeqVR737iV0PF8tmNV11BKUcvN90q deXw== 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; bh=gldVmdE+kbOBaEyP28aTa8TNMptT/hmHnswBXsj9exw=; b=rDOFKxagKafIJGKRE3kI4AxjXReKYzJQmU8TSI+1PPcE8rZVMovVjJconsli+1Gdxy JCfxTQXYdGWtTB7SbZ8Ehb/k9at2rtACc7EB+o/E/d1Zx3th5pegEv85oFULymDiTrUl aBIKqrTqjD9gqqoWzTlscmO4oEJT90/S1c/1QNiReiH2/l8pxZ/h/d8PMU1uLNXf3UYD 9YKpwKkNB795TOujfYsj1uhrqdhUpFjBdCE8XXACHEHZbrjlztVp7IJAqjWXwBReNTJs AUHZJEOvP6K1cVS9mEW1scMOGPGfIyeyinpDXVZoqpWdQkRRkcMJ0Mmu7zei7Lfa5z+a 3tRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GEbgzSr+; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 123si11425471pfz.150.2019.06.17.09.04.08; Mon, 17 Jun 2019 09:04:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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=@gmail.com header.s=20161025 header.b=GEbgzSr+; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726248AbfFQQD5 (ORCPT + 99 others); Mon, 17 Jun 2019 12:03:57 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42183 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725995AbfFQQD5 (ORCPT ); Mon, 17 Jun 2019 12:03:57 -0400 Received: by mail-pg1-f196.google.com with SMTP id l19so6055515pgh.9; Mon, 17 Jun 2019 09:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gldVmdE+kbOBaEyP28aTa8TNMptT/hmHnswBXsj9exw=; b=GEbgzSr+SeiaUrlixmOsCdJZuCqzY/kMzs1C8A3pms8s+zRn2f/3dk9CM1gG0OqCjk WVFy1aT4H9J1bUa7KXcCdt4tgqz/cAzX5xiNV7hcqGMAbwUkNH1Bk6FoYZP9UaKZfMXn q3cdhwtaEcm+iwEQvbFuSKsVE9mSNV5CL7xvdQIDe035ksz3cF+I6PlmoiBxsw/C3Z4N PWVWgpfErh1rT1SjJApr+fCvcJdPki9qLNdmQzabGw++qkKTappAuxx1e6PFFg+dv+DW Fvfjd8uyE+t1mAjnOnGYOzvhGiQOJPCqSa86Np2BXsUKS5kOwjwdflNWzLPd0TZMcLoq TzCA== 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=gldVmdE+kbOBaEyP28aTa8TNMptT/hmHnswBXsj9exw=; b=ceBF+ld8pAG74ZkVvZmoz/bNo0kXl5Kh8pO7Seb2bKhd8faxEJXjat+eNUqay2Yevq hGzMUxxIn9jPcJCmOTAnsmzJL70uRM2tk/ZFpaY1NPu7jog5hu3yEHGUOGXE/EnQW5/i J60IFGQKnm37ugfQiM068q0BjXbGSwuvgMiQzM8drELii6iHdCU85BiUgbVHwdNvWSIQ FtmopBkAiftsjg+wmypZn6GGut9gggLNXReOZoEMjzgynB4vVVnlfzVP3ziV2P8TGf9w +OCC4lIMdK214zVNuJkDVsnJfLJcr5sUPSGFnnwQjH/QSoekVtNziTSBqOEBQ6bHu/uh r+1w== X-Gm-Message-State: APjAAAWHBKbmFr0fLpKmG+GI6rCa8NoGrqaL1sZ6marYy053PdhHKpqW /BIqFNn6NQoGF7gAheLxwRPAqiRvxPI= X-Received: by 2002:a63:a514:: with SMTP id n20mr20313003pgf.438.1560787436432; Mon, 17 Jun 2019 09:03:56 -0700 (PDT) Received: from localhost.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id d187sm12834073pfa.38.2019.06.17.09.03.54 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 17 Jun 2019 09:03:55 -0700 (PDT) From: Andrey Smirnov To: linux-crypto@vger.kernel.org Cc: Andrey Smirnov , Chris Spencer , Cory Tusar , Chris Healy , Lucas Stach , =?UTF-8?q?Horia=20Geant=C4=83?= , Aymen Sghaier , Leonard Crestez , linux-kernel@vger.kernel.org Subject: [PATCH v3 0/5] crypto: caam - Add i.MX8MQ support Date: Mon, 17 Jun 2019 09:03:34 -0700 Message-Id: <20190617160339.29179-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Everyone: Picking up where Chris left off (I chatted with him privately beforehead), this series adds support for i.MX8MQ to CAAM driver. Just like [v1], this series is i.MX8MQ only. Feedback is welcome! Thanks, Andrey Smirnov Changes since [v2]: - Dropped "crypto: caam - do not initialise clocks on the i.MX8" and replaced it with "crypto: caam - simplfy clock initialization" and "crypto: caam - add clock entry for i.MX8MQ" Changes since [v1] - Series reworked to continue using register based interface for queueing RNG initialization job, dropping "crypto: caam - use job ring for RNG instantiation instead of DECO" - Added a patch to share DMA mask selection code - Added missing Signed-off-by for authors of original NXP tree commits that this sereis is based on [v2] lore.kernel.org/r/20190607200225.21419-1-andrew.smirnov@gmail.com [v1] https://patchwork.kernel.org/cover/10825625/ Andrey Smirnov (4): crypto: caam - move DMA mask selection into a function crypto: caam - always select job ring via RSR on i.MX8MQ crypto: caam - simplfy clock initialization crypto: caam - add clock entry for i.MX8MQ Chris Spencer (1): crypto: caam - correct DMA address size for the i.MX8 drivers/crypto/caam/ctrl.c | 233 +++++++++++++++--------------- drivers/crypto/caam/desc_constr.h | 24 +-- drivers/crypto/caam/intern.h | 29 +++- drivers/crypto/caam/jr.c | 15 +- drivers/crypto/caam/pdb.h | 49 ++++--- drivers/crypto/caam/regs.h | 21 ++- 6 files changed, 193 insertions(+), 178 deletions(-) -- 2.21.0