Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp405045rdb; Thu, 5 Oct 2023 09:09:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG24SWYnKAutRd+6mypFTce1QRCplxFq4e7fOSY4ir/CwGJlTULEsZOjGWNH8l9zsaOmrdg X-Received: by 2002:a05:6a00:1495:b0:68e:2b6b:2723 with SMTP id v21-20020a056a00149500b0068e2b6b2723mr6414880pfu.29.1696522184488; Thu, 05 Oct 2023 09:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696522184; cv=none; d=google.com; s=arc-20160816; b=ND6MbGjyEJUhqcR9O/1Rys2gyATNKRYLNGokPxZhZsz/ZRVWzDPEu2SfKU4iLK5OoI /5L9+gCJ5okv9RxlADeWV3fb4bpMiWAcbwCiMpWHzNAbIDo8HvmyI1/tDFvMNFXCV/8Q Js/IssKn/CGMkRlABJ+E4owBb2QxICecXbmFBSriQCdYZ9a/VNXe2ZPp/UK9vdE5YHRS rwM4PlwE6kOKYtxWPRUAFML6OjGJf7WSDuFN397PgfbNF4QOmCH7LErWSAIhzMwWupTX nuuFdalMHM9Xcjs+NnfNsl5Dv4qvbyfTL/UxX4KMOPtPl0MbJa0Lxm9BY5CqVKZEMVjJ HuAg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jLUAhL1nlrAsMxgTmulNtN/pneLzJhKIv/BCS1hoz5s=; fh=a5ysT8je3vD1RFtgKLQo1SiPTvNIJDRtBHCvALDatV0=; b=wHBqG4WLIs/x+1OBuXRgVAmsE525BwqQCoE+j5aK0DKmKRqg5Jq9/nnFxFJxIro1MF jQEHxvGP6FSUGoKKxwmM9X+zPM9rdgzymBLcSbZg9WZ1tz4tTGAdnUixNmcGSU1Ciapm NvJ07Sx5WgZGXUTOY4A91qO3iVKYkl1dQicRK0bNk0Wbwpp85/5gOJwoYwlqggyCRX1I zmRmHDaXCLtodW7UWiXtlQ43VTRdPl+wzvjpfYig/VDS+JpBbU+eeXvKICbUYmI/qBKp ZwQa+OA4VehlVLMsixmrysJY0p4g100oiOivojXKV/AsumC0kVQQNRs8icNN36wfcGny PXMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id cj22-20020a056a00299600b0068fc7ab1fd5si1665418pfb.269.2023.10.05.09.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:09:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B15068076E53; Thu, 5 Oct 2023 09:09:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239038AbjJEQHG (ORCPT + 99 others); Thu, 5 Oct 2023 12:07:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239083AbjJEQEj (ORCPT ); Thu, 5 Oct 2023 12:04:39 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5F12F10B for ; Thu, 5 Oct 2023 06:48:18 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7A0FF1682; Thu, 5 Oct 2023 06:32:36 -0700 (PDT) Received: from bogus (unknown [10.57.93.106]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3C3B43F641; Thu, 5 Oct 2023 06:31:56 -0700 (PDT) Date: Thu, 5 Oct 2023 14:30:24 +0100 From: Sudeep Holla To: Jens Wiklander Cc: Olivier Deprez , Sudeep Holla , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Marc Bonnici , Coboy Chen , Lorenzo Pieralisi Subject: Re: [PATCH v3 03/17] firmware: arm_ffa: Implement the notification bind and unbind interface Message-ID: <20231005133024.kdxfajmruedli4ne@bogus> References: <20230929-ffa_v1-1_notif-v3-0-c8e4f15190c8@arm.com> <20230929-ffa_v1-1_notif-v3-3-c8e4f15190c8@arm.com> <20231004091154.GB1091193@rayden> <20231004153234.ktk6egntk7drao47@bogus> <20231005084946.vn4mbizdisaw4q5d@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:09:12 -0700 (PDT) On Thu, Oct 05, 2023 at 11:56:22AM +0200, Jens Wiklander wrote: > On Thu, Oct 5, 2023 at 10:51 AM Sudeep Holla wrote: [...] > > A receiver(FF-A driver) must bind a non-framework notification to a > > sender(SP) before the latter can signal the notification to the former. > > Only the sender can ring these doorbells. A receiver uses the > > FFA_NOTIFICATION_BIND interface to bind one or more notifications to the > > sender. > > > > So, based on this text(modified to refer sender and receiver in the driver > > context) from the spec, my understanding is the driver is the receiver > > and the SP is the sender of the notification. > > > > Do you think I am missing someting here ? Sorry for agreeing with you > > in v2 and silently changing it back without this actual discussion. > > Olivier raised the issue and then when I went back and looked at the > > spec, I realised why I had it this way from the beginning. > > Thanks for the explanation, now I get it. My mistake was that I > thought that sender and receiver meant the sender and receiver of the > actual message being sent like with a direct request, it is using the > same register and the same wording after all. Instead, it means the > sender and receiver of an eventual notification, which of course is > the exact opposite. > Thanks for the response. Glad we are on same page now with respect to this. -- Regards, Sudeep