From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A191C433DB for ; Fri, 26 Mar 2021 05:07:46 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C1A23619F7 for ; Fri, 26 Mar 2021 05:07:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C1A23619F7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4gLbGfgOv88Flyb2F4CD0yaJjqn3K+ddATyPU0KoeyU=; b=aeZIcSLNa3fapOQZ8A8jMi+/1 /GbeEC62B87qBuqNgO8mKDR1okx5//nLT07YVm84mb8z/wsezEez1d/2LJN7RPy5v7inu+zCaAKI3 Vds4pf4sQpRqID/Qb5F0+mlo8t+gs3T4+H9dxxAT64MR0MqA2XnVVvg0mLR2C+a63ec+yDlRxgtB2 xjnoKgh7aJ9fF9d98Qpk9kuoszT3IyalotmoUFchXP3D93VkfY3u3xP7niKRt6iiZSvwoJ5R6vu9q 7os6Roz1TBPbYFJSQwqeYyblNZrj0egvATR7Mi69SVVP0HOQOesFdP91MRMQtV9ACt8H1d5wjm5q0 SxzYG1Q1Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lPefK-002nJn-3V; Fri, 26 Mar 2021 05:05:46 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lPefC-002nJP-Se for linux-arm-kernel@lists.infradead.org; Fri, 26 Mar 2021 05:05:43 +0000 Received: by mail-lf1-x129.google.com with SMTP id a198so5829277lfd.7 for ; Thu, 25 Mar 2021 22:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R+P1w5UAdqHmM+w2WKoae+I32OQS1OCjKz2JQzblE8M=; b=jP2L1DmX3TfLmopz8uAi8n3zMS++AxhBtBdnPBPaq4CRD9wbuR29GZURrpZrvwgRWV 6kR1RCzfZ6d6CR6JDBb57/4H/wbnLI7H9hbckY6PArpbJOByNbt8/JAyC6VewNqhuHBM s6QZIPGWCLEYnmYOa9BokZ2QEf14YJ1ULHtp2OOAp/znczASaux1cXAbPQYSV+Ba/Fyh opOEjQTTij9iBf8gRJCmQcJNmd7J2aJkrnkAWT5yNWblavf8TSgfBZdclRzw5mwvYiGS JyBieeEVttCviBUEmB/x3Z2DAWSZc7wJbbUBHtL3BR957jIhROy2jev1F7TG+ZoJTMvH tgPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R+P1w5UAdqHmM+w2WKoae+I32OQS1OCjKz2JQzblE8M=; b=aNRKRRtiZYRTA1moj4YlsjPzI8y5wUpSaEQBc+5y1QewAVIvfD4XK5+WA0JA0kR5tu Txvk82C0/iO5lssvaUshtkKdatjm03bhAApAsN2JnWLuFxZaDofGJ2jTkiSowKRDDY27 VgHn0B64ufiv2uWbRkKO4aPihMChAXez7pp7uyChre+zZoMT9KAWuYCYxzKZwxvM/hK7 oaKfNc3dVFWLpLpwmKGVE02sYagOc79qN3oVsbTmE2RAp7dkKlMbLzr4YpopLPbB8dgq 4nwXgzyigRMvUnFLuXeGthaCPLKRO67PYyfez2zWyAXHydvv3kCokatIC2yz2L3s5NSP A8CA== X-Gm-Message-State: AOAM532xci+ZMq3UWUGZlC3OfSSpywPr8OkMn1Yn90qYzCMIe0D6v7Ut utwzkSSeV2QIFTumCniFqYIr14PpeRv5vmDhD1wIew== X-Google-Smtp-Source: ABdhPJxDTS/BzmmkUwmS24I15gC4uzsRkIi4ZptVl7DUUFVXNBPfeHGsGqp2yMsvqE65udXgJnXITl0tkkk2enrUaq0= X-Received: by 2002:ac2:4d9b:: with SMTP id g27mr7089312lfe.113.1616735135491; Thu, 25 Mar 2021 22:05:35 -0700 (PDT) MIME-Version: 1.0 References: <20210325143255.1532452-1-sudeep.holla@arm.com> <20210325143255.1532452-2-sudeep.holla@arm.com> In-Reply-To: <20210325143255.1532452-2-sudeep.holla@arm.com> From: Sumit Garg Date: Fri, 26 Mar 2021 10:35:23 +0530 Message-ID: Subject: Re: [PATCH v5 1/7] dt-bindings: Arm: Add Firmware Framework for Armv8-A (FF-A) binding To: Sudeep Holla Cc: linux-arm-kernel , Devicetree List , Trilok Soni , arve@android.com, Andrew Walbran , David Hartley , Achin Gupta , Jens Wiklander , Arunachalam Ganapathy , Marc Bonnici X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210326_050539_268472_AEB55589 X-CRM114-Status: GOOD ( 23.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Sudeep, Apologies for catching up late on this patch-set. On Thu, 25 Mar 2021 at 20:05, Sudeep Holla wrote: > > Since the FF-A v1.0 specification doesn't list the UUID of all the > partitions in the discovery API, we need to specify the UUID of the > partitions that need to be accessed by drivers within the kernel. > Wouldn't we be able to implement auto-discovery of ffa partitions? I think enumeration of ffa partitions on FFA bus should be quite similar to enumeration of TAs on TEE bus (see [1]). Otherwise we need to put these redundant DT entries for every ffa partition which IMHO would bloat up device trees for every platform. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/tee/optee/device.c#n153 -Sumit > This binding to provide the list of partitions that kernel drivers > may need to access. > > Signed-off-by: Sudeep Holla > --- > .../devicetree/bindings/arm/arm,ffa.yaml | 57 +++++++++++++++++++ > 1 file changed, 57 insertions(+) > create mode 100644 Documentation/devicetree/bindings/arm/arm,ffa.yaml > > diff --git a/Documentation/devicetree/bindings/arm/arm,ffa.yaml b/Documentation/devicetree/bindings/arm/arm,ffa.yaml > new file mode 100644 > index 000000000000..42ed33464ba7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/arm,ffa.yaml > @@ -0,0 +1,57 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/arm/arm,ffa.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Arm Firmware Framework for Arm v8-A (in-kernel users) > + > +maintainers: > + - Sudeep Holla > + > +description: | > + Firmware frameworks implementing partition according to the FF-A > + specification defined by ARM document number ARM DEN 0077A ("Arm Firmware > + Framework for Arm v8-A") [0], providing services to be used by other > + partitions. > + > + [0] https://developer.arm.com/docs/den0077/latest > + > +properties: > + $nodename: > + const: ffa > + > + compatible: > + oneOf: > + - const: arm,ffa-1.0 > + > +patternProperties: > + "^ffa-partition-[0-9]+$": > + type: object > + description: One or more child nodes, each describing an FFA partition. > + properties: > + $nodename: > + const: ffa_partition > + > + compatible: > + const: arm,ffa-1.0-partition > + > + uuid: > + $ref: '/schemas/types.yaml#definitions/string' > + description: | > + The 128-bit UUID [2] of the service implemented by this partition. > + > + [2] https://tools.ietf.org/html/rfc4122 > + > +additionalProperties: false > + > +examples: > + - | > + ffa { > + compatible = "arm,ffa-1.0"; > + > + ffa-partition-0 { > + compatible = "arm,ffa-1.0-partition"; > + uuid = "12345678-9abc-def0-1234-56789abcdef0"; > + }; > + }; > -- > 2.25.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel