Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp60321pxa; Wed, 26 Aug 2020 04:55:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaUXTGAZ+pFLQbSLbP8IlG4ub7DvCGGM98VmFOXR5UXB0PBUxfsmtNBFVuCjdIN5YeVPpp X-Received: by 2002:a05:6402:7cf:: with SMTP id u15mr15094587edy.90.1598442943338; Wed, 26 Aug 2020 04:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598442943; cv=none; d=google.com; s=arc-20160816; b=w4svGqzQv4VzlKWzCixFvVa60edw/W88Zbso9ZF1EZBhhtKZWuM5ik9UKBlkpX1fUF paRDKj9BW3Zw+axN1RGjrFuI8P/5ycZ4mmYkNpT+P2GyJLXmRAaY/KG9ZsolVwBCqArx KNsD6Pijm5oCeHTzRfrOxflRsAwi01nspopgMbeN1efkfyQ5Th5eFnqLd9CO+1SWzk1E wJeSKpibFlbHMWCIrBzye4XZpB1Axjcyg3drM4ylBhaed10RnesDXpN7AA3cppfqtmhE QSgE1fT52dBQgNqJXbM+BX5EwzBzxcMhziq9OWXj7Eqxm75WooLSwgzpsWz61NRxBUhM uVwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pv1UwrcfHZa0qjph5LSIk0g8XgKzUh94wpAXHeKDylU=; b=r79aR1FXHoYhvnmt8Ij0wbubAat5RcmlCWchlNHlWzs6q2hHcLb8wM5ZKlafWtvvqr zDxiMj38V7DPXlXoQj+eNgTtvieKAEf7tGd0G9/zdMSf2NQ8fHXpkMus0V9/nIRsKs76 +cUemzeJBSWiW37gDDRx4DciQ16im8gspXPB+JaGqCdUQ+jubDgbPph1SNUSIMgwReyZ H57zaCOjVZo14Wx9+HBakypKAFuSpWAiBLCBy2+HTRtunXx44b3+OYA70f9EkeGW48vj WMBoUKLdrFQIpfNYV/vbunGQjVe1bcNCpc4NBBt8UyveUTSzerZLaELMZ6kOhBAZ9v4q IzYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fl4slJKu; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch15si1407878ejb.539.2020.08.26.04.55.18; Wed, 26 Aug 2020 04:55:43 -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=@gmail.com header.s=20161025 header.b=Fl4slJKu; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729214AbgHZLwe (ORCPT + 99 others); Wed, 26 Aug 2020 07:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727122AbgHZLwN (ORCPT ); Wed, 26 Aug 2020 07:52:13 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89176C061574 for ; Wed, 26 Aug 2020 04:52:12 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id x5so1463633wmi.2 for ; Wed, 26 Aug 2020 04:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=pv1UwrcfHZa0qjph5LSIk0g8XgKzUh94wpAXHeKDylU=; b=Fl4slJKuET8CzoZ+aMD2Lw6sOO+PrVFE5RoTrtGJ+Gp/Yt0KvcHe/S33TptLfVFX7v 0xlPFDyq2SPd5XXMNGuYlYL8jTVL3jvsFZESKFg2ZJ2/E4eStHLrdE90aOXOlFuUwRo3 KIaYvfGqYHrAm07oAw43uqI0tYKSDELBqbIPbH9F5o6TLxIv18HForaCXXm3PiuDXTV5 JP+OMTZ1MzAm/VV3oRLvBm+sZFYBrgyUGxC8V4xmmmOCpHUiOLFNZ4gpKjXKbDFj7o0c d2YI4hDLZzmLShKN2dyZ8LgcVgiZRprknYp6Gy7s4nFVvE5DJHnknbpcmIeI7r0BvEaB sC6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pv1UwrcfHZa0qjph5LSIk0g8XgKzUh94wpAXHeKDylU=; b=cysF2KIAn1QRqG/+JuOW4u4OBkbUrQO6/lG26c27q/nlu0uhruWs8yGtP7KhaUO/dN PuZwhsCqFzEP6l2t/HcO13bWb/9i1KarKLrAfh1LJYWEcUv/4/Df2QCW/rBGHHgMv8sS MXWIWAjRgGOGyRdylHVILs221FNpU0ynxODN5O/ABfeGtEckc2BJV50kk55i1XORFk1F 6yOwbg8fljgJo4TvN4y9rvF+BWl4GL9eeAsCkBS2j2+oKQdQT2HITlGigFPV2O1CDM0w SzcMjNgb3Mnzy0FmBRzbtce3cJ1OopxCm8i8Nb4nlsS0II/XoT6qAX/+fP0iUJRRxawe o0Sg== X-Gm-Message-State: AOAM531goyIRhYwGllbgOQVr3M8JCC6glCFXHynzmoZVrXMt8DaUpBDj 2GwRREyjfG5b/eulDUWdFzc= X-Received: by 2002:a1c:e006:: with SMTP id x6mr7178397wmg.128.1598442731250; Wed, 26 Aug 2020 04:52:11 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id u17sm6329729wrp.81.2020.08.26.04.52.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 04:52:10 -0700 (PDT) Date: Wed, 26 Aug 2020 13:52:09 +0200 From: Corentin Labbe To: Martin Cerveny Cc: Maxime Ripard , Chen-Yu Tsai , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: PROBLEM: SHA1 on Allwinner V3s failed Message-ID: <20200826115209.GA830@Red> References: <20200826090738.GA6772@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Aug 26, 2020 at 01:33:20PM +0200, Martin Cerveny wrote: > Hello. > > On Wed, 26 Aug 2020, Corentin Labbe wrote: > > On Wed, Aug 26, 2020 at 09:52:30AM +0200, Martin Cerveny wrote: > >> Hello. > >> > >> [1.] One line summary of the problem: > >> > >> SHA1 on Allwinner V3s failed > >> > > Since only SHA1 is failling, could you try to use the "allwinner,sun8i-a33-crypto", just in case V3s has the same SHA1 HW quirck than A33. > > Yes. This do the trick. All startup verification passes now. > Performance (SHA1 with sha1-sun4i-ss) "tcrypt mode=303 sec=1" test output attached. > So, all seems to be working now. Released new patch with possibility to merge. > > https://github.com/mcerveny/linux/commit/e3c76436de3d8cd2b2ddaeadef879a4a4d723bf4 > > Regards, Martin For proper solution, a new compatible "allwinner,sun8i-v3s-crypto" should be added instead. Furthermore it should be added in sun4i-ss-core.s along with a new variant for v3s with .sha1_in_be = True. The new compatible should also be added in Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml Regards