Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp320722rdb; Thu, 2 Nov 2023 05:00:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWikwg7Q+EUi3z6Oi0phi8XwDq78DV6oIHT23Y/mgfbX9QdixatEcrjeM6FTQMTG2eY5yl X-Received: by 2002:a05:6a21:71c7:b0:181:6f91:efe with SMTP id ay7-20020a056a2171c700b001816f910efemr3404028pzc.19.1698926402857; Thu, 02 Nov 2023 05:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698926402; cv=none; d=google.com; s=arc-20160816; b=TjBRDGQhFxFkYPDEgfiiXomSO0t5hn6ALVBloT2qW47bUf8o5Pkz5zGwqnNdg6xxvT XyolXXyzZp5xtP5VcCKgOAXBKG71dLXylZBObH6nwhapcROBcJ8nY0/CzMt5Qulru5yf 9rU1dXdlls6Eii5I9TFtJ+hJa6AE34dXxwPT4xkydwmPDQTRkj+CYGfiwdViGsUPs+GX opoc5cFiJTeNE+J+sps5UIfg/Xw9h860ZXyyi18bIi/YFv6cbkdjlrLkw4ccO264ckFw Abs+D5IW4+Y8jTOYQC2pFumfGGU8DL7TS6Hr1xeWFC/FaZdIXyT5Sehi+99L19T8Ej0P sZ9A== 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:dkim-signature; bh=v6GIry2u37qS/paTC8hDQ4u7eRD8q6M0WQU/suo4YZk=; fh=/6UCzSgYXw0IlQE5AO3ljdrf39y/wLGW4/NWK0cH3EY=; b=R6LPNLcTQgi3R6ypywhEilMXJ0jzqjq+8mDvOwp4bAVzrOI8ZE+qN4qo9i2vPvpAHq 1FpiMNxt/+AqYjxpoybv1N4cZXPYH2iQxGnipBSGOeZDTVYeI6Hj2g+nR01Ui0Q/2vxv yf1lOBIUpg6Q1usPzZDpEIrn3rkZy5xCZQq/k9ZobxFPuQvx3ieToDwtucdiBxn2PUp5 6tOjnC/GfWZtdvsmh3fX08okMU5EJ7D1qcvf7QQie/pvzJ5Uhd1mDwo3eFMGYu00OvsP A7mzho37Sz4VlgNGjk0xQCpyhuW5XieBQYMvATNL6bP0zd/mzjCslagkyYV5/Vznl6EX VmpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e3u5kGyh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id o13-20020a65614d000000b005b9a149e61esi1667338pgv.649.2023.11.02.05.00.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 05:00:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e3u5kGyh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 02D5F8029896; Thu, 2 Nov 2023 04:59:58 -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 S1345636AbjKBL7m (ORCPT + 99 others); Thu, 2 Nov 2023 07:59:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232877AbjKBL7l (ORCPT ); Thu, 2 Nov 2023 07:59:41 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7EC4C2 for ; Thu, 2 Nov 2023 04:59:35 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-5b999980689so617032a12.1 for ; Thu, 02 Nov 2023 04:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698926375; x=1699531175; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=v6GIry2u37qS/paTC8hDQ4u7eRD8q6M0WQU/suo4YZk=; b=e3u5kGyhqwIsfFu2wCDigy/6NsuA8c3G5jFNSo/rfGifZO1op9PUdiQ5l0lXqj3rLl 5tWb9wCycsD/yQga+AC1pF33P9o6rjAt4Q2O0Jj8yyrH+pk2fQjB5rT5SFl7Z8UBwogZ Sq3BBoyJbN3VWqg/LTEGKM+UXazsdzczOrUpjAdrDgphsByFhrQj6Ph2pYVdpj04TG+e HzqKLRYpAxDVtdlGiygddp9Jdr0iMLyln72BDH86V3gI9B89XdIg3dbtmBEovLix+Sh3 iduFnMdrsPJiUoeS9lZsx4rCel0unMfwxI5FQv6vGI5J9WeigPi2P4Nq0g2zSl1m5lml /03Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698926375; x=1699531175; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=v6GIry2u37qS/paTC8hDQ4u7eRD8q6M0WQU/suo4YZk=; b=UAjb4vVf47tEPuzQc4e5lMvVpsv2TQnOBBw4Nm6TXM502E8woHsuxrA5KnDOYVG5Ko 0M2rGqm9RlrVy9Rsqjcd3KfbKq9n12Kh4tPOXkr6gdvV2DONtYizdzYZpibNkgoQOJlq KpAa/cp6QzeLURaOahvoIxNcU1PSqmlYAUuPM8EoqBdoVN5CLkmzW/pyHcCfmHXzY8ak gvXTEfOSZMbG17gFpqVm7cw+YVo+Ab2hCykjO5vv6iPyBvARA2FAucZuN0sHv4KLN7At 2/gWVfQmEC/EzgtgadIBpSDAPbnXrnbtRt2QZ7Sd54in5ZXg+gkNwer52zn8XZN5//XU +OWg== X-Gm-Message-State: AOJu0YyUMYJbZfTP/WIVjB0idKJ6R8gCwoak3y2gb245bVAhmrrCd3/B By9OcUjcItMX+CgYKFnBo+tTMw== X-Received: by 2002:a05:6a20:7f93:b0:171:737:df99 with SMTP id d19-20020a056a207f9300b001710737df99mr19777401pzj.40.1698926375155; Thu, 02 Nov 2023 04:59:35 -0700 (PDT) Received: from rayden (h-217-31-164-171.A175.priv.bahnhof.se. [217.31.164.171]) by smtp.gmail.com with ESMTPSA id d21-20020aa78695000000b006c148c6767bsm2725910pfo.218.2023.11.02.04.59.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 04:59:34 -0700 (PDT) Date: Thu, 2 Nov 2023 12:59:25 +0100 From: Jens Wiklander To: Sumit Garg Cc: linux-kernel@vger.kernel.org, op-tee@lists.trustedfirmware.org, Jerome Forissier , Sudeep Holla , Marc Bonnici , Olivier Deprez , Lorenzo Pieralisi Subject: Re: [PATCH 0/2] OP-TEE FF-A notifications Message-ID: <20231102115925.GA1233092@rayden> References: <20231026080409.4149616-1-jens.wiklander@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, 02 Nov 2023 04:59:58 -0700 (PDT) Hi Sumit, On Mon, Oct 30, 2023 at 11:32:47AM +0530, Sumit Garg wrote: > Hi Jens, > > On Thu, 26 Oct 2023 at 13:34, Jens Wiklander wrote: > > > > Hi all, > > > > This patchset adds support for using FF-A notifications as a delivery > > mechanism of asynchronous notifications from OP-TEE running in the secure > > world. Support for asynchronous notifications via the SMC ABI was added in > > [1], here we add the counterpart needed when using the the FF-A ABI. > > > > Support for FF-A notifications is added with [2] and this patch set is based > > on Sudeeps tree at [3]. > > It's good to see FF-A notifications support coming through. The good > aspect here is that FF-A uses a common secure world SGI for > notifications and doesn't have to deal with platform specific reserved > SPI for notifications. > > From OP-TEE point of view I think most of the secure SGI donation base > would be common, so can we switch the SMC ABI to use this donated > secure world SGI for notifications too? The SMC ABI driver picks up the interrupt used for notification from device-tree, so there's a chance that it just works if a donated SGI is supplied instead. We'll need some changes in the secure world side of OP-TEE, but they wouldn't affect the ABI. Cheers, Jens > > -Sumit > > > > > [1] https://lore.kernel.org/lkml/20211103090255.998070-1-jens.wiklander@linaro.org/ > > [2] https://lore.kernel.org/linux-arm-kernel/20231005-ffa_v1-1_notif-v4-0-cddd3237809c@arm.com/ > > [3] https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git/tag/?h=ffa-updates-6.7 > > commit bcefd1bf63b1 ("firmware: arm_ffa: Upgrade the driver version to v1.1") > > > > Thanks, > > Jens > > > > Jens Wiklander (2): > > optee: provide optee_do_bottom_half() as a common function > > optee: ffa_abi: add asynchronous notifications > > > > drivers/tee/optee/call.c | 31 ++++++++++- > > drivers/tee/optee/ffa_abi.c | 91 ++++++++++++++++++++++++++++++- > > drivers/tee/optee/optee_ffa.h | 28 ++++++++-- > > drivers/tee/optee/optee_private.h | 9 ++- > > drivers/tee/optee/smc_abi.c | 36 ++---------- > > 5 files changed, 153 insertions(+), 42 deletions(-) > > > > > > base-commit: bcefd1bf63b1ec9bb08067021cf47f0fad96f395 > > -- > > 2.34.1 > >