Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp817797ybz; Fri, 24 Apr 2020 09:46:21 -0700 (PDT) X-Google-Smtp-Source: APiQypIzo4en8jf8Aq1lvPpaiMrk7WmRtv1TJTXENjEKoXrs3o1uFzCf2hR+0Tt1ibZe5vwwk/7F X-Received: by 2002:a05:6402:22ed:: with SMTP id dn13mr7973577edb.212.1587746781527; Fri, 24 Apr 2020 09:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587746781; cv=none; d=google.com; s=arc-20160816; b=C+r7eKbbQ5oslhOUiLbCGhsEqGFViSoQ1hte7qJp4imzFAlavAmOmqp2+TjexwFqHD oY3nrFrFekpdK3teCi44xxrz8ovPKHC0f+HdQemFTEjsBhWIH6U3JeSoDRJu2Z0ngkRJ 8YfIrYma068JKjmyhjed43TQPyxuXtGuetZYQoOTCY1qdnRevuVAj8/0su76Gcaa7cZ5 SW6U5ZPXfQNPrsQ6ZWBM0O5vhpjJrenok/ZKzrcbSXZ2Zj3ReTQFEJYUUncKgmctQPE/ XIwlKG01TgMniuUW/a693/tXLrsisY+LC9brENBPMeqjenNKTD/6NXi5ZvAl42WT2dOq SO6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:to :from:dkim-signature; bh=UFAZuZOFMTb8IXoTM322zKhgW1j96v9ZEMarM751rl8=; b=GO2zfXv8TuF/Qt47/lS1EQSF7ppZIv0m3HQzAZA0EgJ+NItZmDsO9vpcjEXCLmFWCh zj/9LOvHpb8JyP93LiTJts08tVUlsfKbsLH0UIPy5UYeOmTQYeRn53DRRabV/Fydwy7t W3adWq9nsY8O4rwR7yctleq7hreC2c68x+Tu59esWStnlyY6pC7Aeri3z4y32QxbpjAv zElwMW3d0iU2HWDEH8inu+NZgTVwjlbKIEPPukaCxhvB5fpBWDu9bXirTuYiD/pe01kJ 0wgSoDfjhWflR4YqhT6PADDw/30bytDt71k8WpzhP0JMtRCtlgVDxB2DCbvkV8nHptvd LTiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vaduqBPC; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l27si3600486edj.537.2020.04.24.09.45.07; Fri, 24 Apr 2020 09:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vaduqBPC; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727089AbgDXQpC (ORCPT + 99 others); Fri, 24 Apr 2020 12:45:02 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:36500 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727031AbgDXQpB (ORCPT ); Fri, 24 Apr 2020 12:45:01 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 03OGipKm125914; Fri, 24 Apr 2020 11:44:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1587746691; bh=UFAZuZOFMTb8IXoTM322zKhgW1j96v9ZEMarM751rl8=; h=From:To:Subject:Date; b=vaduqBPCAyi8yOr8FUJGUmCqOlKplc13fZlX0q41CmEook1IJV01f4CbJviFgLr5U a8uDs/pKuudVMnwNaOLYx2++AzKY4mZZ1rdRBdwiidpcwxglcLltV71PYSVMklEeGu 70yQsX8QzClf2Lj8CS/xJmC68XAMgNiM1Vyyt2b8= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 03OGipvK105539 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Apr 2020 11:44:51 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 24 Apr 2020 11:44:51 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 24 Apr 2020 11:44:51 -0500 Received: from sokoban.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 03OGinT5033554; Fri, 24 Apr 2020 11:44:50 -0500 From: Tero Kristo To: , , Subject: [PATCHv2 0/7] crypto: TI SA2UL crypto accelerator support Date: Fri, 24 Apr 2020 19:44:23 +0300 Message-ID: <20200424164430.3288-1-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi, This is 2nd revision of the series [1] Keerthy posted quite a while back, I've sort of adopted the series for now. Compared to v1, there has been pretty major re-design I've done across the driver to fix any review comments, fix any bugs I've encountered, and get the full crypto self-test suite working with the driver, including the extra tests. I've also tested the driver with tcrypt and IPSec suite just to root out any issues. This series applies on top of 5.7-rc1 also and has no dependencies. The DTS patches are provided for reference here only, and should be merged separately via ARM SoC tree once the driver is ready. There is maybe one aspect of the driver I am somewhat uncertain myself, and that is the init/update/final handling with the hash algorithm support, or the caching part of it actually. If someone calls the device with init+update sequences never finalizing the data, we end up with memory leaks. Any thoughts on that how to handle it? I could maybe add some timeout to purge stale buffers or alternatively just drop to SW fallback completely for non-digest type hashing, but that would prevent openssl/devcrypto from using the crypto accelerator completely; it uses init+update+final sequence heavily. -Tero [1] https://patchwork.kernel.org/cover/11021337/ -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki