Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp66402pxk; Tue, 22 Sep 2020 18:57:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqGCXudbg4V8RJGwkAwDAuL+dVy8Wp2PuuiR38yhOZH4XEsv9BGoxk9p8eUP82HQ2H5lYX X-Received: by 2002:a17:906:8258:: with SMTP id f24mr7729826ejx.551.1600826262857; Tue, 22 Sep 2020 18:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600826262; cv=none; d=google.com; s=arc-20160816; b=grgeserZ1/blFRN5iErjEfE66nldauvvp1V+ZnuTf+CDrn+B4xA+TMb7YQTDoFanJo sgyQAcZ83tnUug1P0q8B/dX2dF9rmO0aK/jOe3OeKnERZw9kOZPv5EV8N4H0IgVwZQAM LAIQMXyM/jlRT1N/DKVcxn96YOVVSqrTWunxCLySC9hb0YdEYdz1u0AI+z+Ig+holJ3d AoaRoBQk7x54jV3Y8bpb2PGo4bx89gxa73XGtfMmtJAM0mEEaY/6jnynmtsu3wTrG+oa IcPolSnJtZ2uTvUBw2B33yqctGRxBbYNaSfelCfMjEhuPXEawU7vMEAARFtuJfKe7wRU ctmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=34pMhFQ28SHC3mzxbMUDtsJGYufWbe2RlD1uSSeVBbQ=; b=ZL+iXTmeIZU0LTvUmsUzoBKNy8npjDvjiHUqYWDT0uO9Utkhegn3IsCznNrwmiwF1K JNAtD8jIQ8s6k+fYi8lIYx//UNplRPrrkvrybj7lv/072zBqeq/OaNVOEs4o82mOLgqz XMRN/sEBcKAvlLLi6v19wTIKMTtgoMyjEMjWZ5IAnWNJ8hudOQVo92/vRCnLsPEX7+4J ZhOzTWpNODhDuhi816Mj+L8lS21vePWw2ZChV7aoWnykwciIyVAZkwE6QpgaVser64uh cxwsZiuYCAF9nTlmtEhkVrVUz9zjm8wt1kHF/VObHR/9bccIhaTwD29A3WBdxbfOEhTE b97A== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b19si11435928ejd.451.2020.09.22.18.57.09; Tue, 22 Sep 2020 18:57:42 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726960AbgIWB5F (ORCPT + 99 others); Tue, 22 Sep 2020 21:57:05 -0400 Received: from mail-il1-f195.google.com ([209.85.166.195]:45385 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbgIWB5F (ORCPT ); Tue, 22 Sep 2020 21:57:05 -0400 Received: by mail-il1-f195.google.com with SMTP id h2so19285152ilo.12; Tue, 22 Sep 2020 18:57:04 -0700 (PDT) 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=34pMhFQ28SHC3mzxbMUDtsJGYufWbe2RlD1uSSeVBbQ=; b=ngMgJreq97y7VSnZSbgLuwuw8XXk9scYsIiN/FDI/FpB+Uh9Jm2ggdhPKP1PGGSOdd 1Yq1LcelwojMnbwmBZ1m7WA9fBgWSI7jU3q9VV9XrbqAf9/2BGSMkpriLJQukqD15FJi aQiAT9JARR4dgHue/eO3oHbhX+TAewFmPSZMJ5U2XiYtnKWvOgKVlR4QH9JdH3tbSrla lpb7uatxq+R4z7yPqkf8hrXMOFUGSFL2Byp5ca4Pbn50YQRq0dz2fGFzOLImUeeDRe6W hKgT6lyCyfRbKPgsw5dBdA+cFI7yKVnwyuDKIo8+LNMKnQvI/AkCzGyw6jb5Ta0qE8fO SSYA== X-Gm-Message-State: AOAM533Q+bOanVzc1sV/xf3sQ0eeePcO05pzg597y9ZafSOA8Fsz+KN9 f7vB0+ALzTmJw+Z86+gTqg== X-Received: by 2002:a92:c7b0:: with SMTP id f16mr6998290ilk.137.1600826224427; Tue, 22 Sep 2020 18:57:04 -0700 (PDT) Received: from xps15 ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id j77sm10254679ili.31.2020.09.22.18.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 18:57:03 -0700 (PDT) Received: (nullmailer pid 3701896 invoked by uid 1000); Wed, 23 Sep 2020 01:57:02 -0000 Date: Tue, 22 Sep 2020 19:57:02 -0600 From: Rob Herring To: Gilad Ben-Yossef Cc: Herbert Xu , "David S. Miller" , Ofir Drang , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: crypto: update ccree optional params Message-ID: <20200923015702.GA3676455@bogus> References: <20200916071950.1493-1-gilad@benyossef.com> <20200916071950.1493-2-gilad@benyossef.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200916071950.1493-2-gilad@benyossef.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Sep 16, 2020 at 10:19:49AM +0300, Gilad Ben-Yossef wrote: > Document ccree driver supporting new optional parameters allowing to > customize the DMA transactions cache parameters and ACE bus sharability > properties. > > Signed-off-by: Gilad Ben-Yossef > --- > Documentation/devicetree/bindings/crypto/arm-cryptocell.txt | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/crypto/arm-cryptocell.txt b/Documentation/devicetree/bindings/crypto/arm-cryptocell.txt > index 6130e6eb4af8..1a1603e457a8 100644 > --- a/Documentation/devicetree/bindings/crypto/arm-cryptocell.txt > +++ b/Documentation/devicetree/bindings/crypto/arm-cryptocell.txt > @@ -13,6 +13,10 @@ Required properties: > Optional properties: > - clocks: Reference to the crypto engine clock. > - dma-coherent: Present if dma operations are coherent. > +- awcache: Set write transactions cache attributes > +- arcache: Set read transactions cache attributes dma-coherent already implies these are 011x, 101x or 111x. In my limited experience configuring these (Calxeda SATA and ethernet), writeback, write-allocate was pretty much always optimal. > +- awdomain: Set write transactions ACE sharability domain (712, 703, 713 only) > +- ardomain: Set read transactions ACE sharability domain (712, 703, 713 only) This probably needs something common. We may need something for Mali, too. I don't think different settings for read and write makes much sense nor does anything beyond IS or OS. These could also just be implied by the compatible string (and requiring an SoC specific one). Rob