Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3388303pxb; Mon, 16 Nov 2020 13:18:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYHe16JTw3fhGkbknzm5K1ERESDwHu65IqhSHuXCbBd2A4FVh38vz/jGG1prLHRyDZ4Any X-Received: by 2002:a17:906:4dd4:: with SMTP id f20mr16303276ejw.94.1605561482165; Mon, 16 Nov 2020 13:18:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605561482; cv=none; d=google.com; s=arc-20160816; b=ZADLOIWdV0/RtHI37X/fbhklEtUA53276xWYUblcxYmu+poBjwvqQgLId8XeIrgilF cjcdxotRsi9PzsjSSbXE3L5JZy47cifBsofFjaU2vGS588NexBuqi1pHo7f2QUgn2RKC UeDAC30k6kdhpoEUxIgy1HnHxhiNWZlen3tTY0ClCvN80tXQEF+9WLo5vNx80RFQMCIt muE70cDeJGsYL6X56b3jdB8bER394CckCb3wAJ4q94KJCrATLdlAp+f1M70NQdXaChjw qA2DpqtqoLxPyYIIT0XaNbXbW10NMubbxkQlf1vBXb1s6jSvWQumASMEqnjZkk+NnuE2 xklQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gzLQvJSFF0LXRNerM4nY3ue5cxN3YlaC4OOvyx6gMQA=; b=IL2IKPrNI4IzAydvWNDjcSVN9bJ5ChXAScKKB07FA/c1nAvt8Zev6VusaA2pJdmPxj 1QI7vdjwoQWN6EdLUvN7NfnEOPu3T2VDxlQf7O4WbIZ1BoE99XgfQYukYMwy8FXBrWzm U51oIop6mJZBer/UHIJpa7cp2lUBih0MsF4kBSqAl/JngM+eHvfNwXFvG/j4XBGX7zyJ dHSiPfcwQ1vt3wy0NDg6B4ryt7UMnssAcDt+Is2gWvZ9CpMfFC8WKqBGR0e0E27OhOpG vbE+2Bcq++1NtVN2OVxrlaheShBlpWkW0qtXqlI3s88qLGJGQzn0Le7Owb1pf08K4ZeA LUTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=no7KwtrM; 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 n23si12666903edy.328.2020.11.16.13.17.28; Mon, 16 Nov 2020 13:18:02 -0800 (PST) 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=@kernel.org header.s=default header.b=no7KwtrM; 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 S1726774AbgKPSyx (ORCPT + 99 others); Mon, 16 Nov 2020 13:54:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:50332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726540AbgKPSyx (ORCPT ); Mon, 16 Nov 2020 13:54:53 -0500 Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 76E252231B; Mon, 16 Nov 2020 18:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605552892; bh=VUgJn3gCDf8LQvqGJa0Q1W2ju75Kaw313SrTYPIIguA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=no7KwtrMBTttsCn1fg0tI1bOmdl35zp7bdNWYTgYRLZ1Avqp9sXhE5Xtu5LgDWkFI x0mUv1e5sKqCguFn/uK09NdetwAut6wP8n2RmNcBrrlkKgFbrzRbTjXKR78hr9JJJk tOcdml4xDl3FRHh1Oe7Jh6gmp3+YaIcT9cdgvNsY= Received: by mail-ot1-f48.google.com with SMTP id f16so16995792otl.11; Mon, 16 Nov 2020 10:54:52 -0800 (PST) X-Gm-Message-State: AOAM532S3o+jbzuV6eJjHa5KSE2npB70FgoTYP7/1/7zIi7YeSZVrNLu 67yvJUiPOzz27dRSbweswFb8wxWgrvXL/qb/dg== X-Received: by 2002:a05:6830:2259:: with SMTP id t25mr532760otd.192.1605552891767; Mon, 16 Nov 2020 10:54:51 -0800 (PST) MIME-Version: 1.0 References: <20200916071950.1493-1-gilad@benyossef.com> <20200916071950.1493-2-gilad@benyossef.com> <20200923015702.GA3676455@bogus> In-Reply-To: From: Rob Herring Date: Mon, 16 Nov 2020 12:54:40 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: crypto: update ccree optional params To: Gilad Ben-Yossef Cc: Herbert Xu , "David S. Miller" , Ofir Drang , Linux Crypto Mailing List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux kernel mailing list , Robin Murphy , Steven Price Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Oct 22, 2020 at 1:18 AM Gilad Ben-Yossef wrote: > > > Hi again, > > Any opinion on the suggested below? Sorry, lost in the pile... > Thanks! > Gilad > > > On Tue, Sep 29, 2020 at 9:08 PM Gilad Ben-Yossef wrote: >> >> >> On Wed, Sep 23, 2020 at 4:57 AM Rob Herring wrote: >> > >> > 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. >> >> Indeed and these are the default. But not all SoC are born equal and >> we got a request to allow setting these. >> >> Maybe instead of numerical values have three possible verbal setting >> would be better? >> >> >> > > +- 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. >> >> I agree. Maybe >> >> sharability_domain: either "IS" or "OS"? It's still an Arm thing, so it would need at least an 'arm,' prefix. But ideally it wouldn't be Arm specific though I'm not sure if any such thing is needed for other arches. If common either for Arm or across arches, then it needs to be documented in a common doc with some wider agreement than what a device specific property needs. >> > These could also just be implied by the compatible string (and requiring >> > an SoC specific one). >> >> hm... we could do it but this will require us to know (and publicly >> acknowledge) of every SoC making use of this piece of hardware design. That's already a requirement in general. Sometimes we can avoid it, but that's cases of getting lucky. >> There is currently no other part of the driver that needs this. If your DT is part of firmware, then waiting until adding some driver feature or quirk based on a new DT property is too late. Whereas with a SoC specific compatible, you can handle any new feature or quirk without a DT change (e.g. just a stable kernel update). Some platforms may not care about that model, but in general that's the policy we follow. Not doing that, we end up with the DWC3 binding. A fallback compatible is how we avoid updating drivers for every single SoC unless needed. Rob