Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2539022rdh; Sun, 29 Oct 2023 23:03:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcW0S2eE2NRNg6yTL0MiWEk7llJM3FCl99OpB5AnGpDptqZacOxqm7PZwlAEndHf1KJ5IS X-Received: by 2002:a05:6808:1790:b0:3b2:f54b:8b45 with SMTP id bg16-20020a056808179000b003b2f54b8b45mr12726734oib.40.1698645794326; Sun, 29 Oct 2023 23:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698645794; cv=none; d=google.com; s=arc-20160816; b=jzeGjfcVYIDvEZOADA6leFBg5+YpFen2m2pgrWB518ZMDnYiOkiuB2hM9CyB+BMiFq Xijkc5a3iSzn+0sNEofT9DMPX8a+lcwhoFWe01gfUaw7MHNMOCou5rtPg8ZYtywe4mVa nMBgrAq6Ye/hmh4zmAcaWmNrqEOLbpb4royOT6+4dGOg6KPnDjHlyDxmwjO3ZFoDsMbX M+FY2XXaZHwEs6RXv5NFotqpx+ZyNUDdsGg7XltdsX5IJC9O29Tbwc0Yfy7WTmZJUUsR vAF8sVE7nJS3hKyR5Bopm5S5TJUl0U3whifSXSfDrRbG8diXJMShDtdNd0pAsfgQd4Ds Qxjg== 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=VkvQvRoKugnm9tC1bRof4BrUBBGpF31eP4mmFwkt2H0=; fh=/44CS7tbriKr8nEcchhrlQQpZYEnMHU8gEEtStHzjO0=; b=pd1kIb6MomMVWTEKGApcKC+jnSU1+x+EYiBR/4uU4nylStQ7r6Y36iNBwTXCY0QXUY ydchfZjEyY8RvCGjhV2uP9U54o20AqlLeFWJlysqEZ0Zh3ZY6o0DS6ut4wXbYyrpMQG1 bNqfe9TjQDNgcYYIfYnN6rz+1HCfImIHJny8T1QKAVSBjD8E7/u54zL3f121AdCm4S9b +nT2mSktEgfbmuF9xA9Cpk4Lx8BUsFmK3GTQr/KnlXGmdw0b8FRMhsMUKX+9PkeYKXqE 4EejVLyAOoxWZ2XIme3jBEz0gQSMOvfv8DxiyQBbkXdFK5fIX3nHF3wXpMAjGtJEmyIN 6uBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hjyawQBM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id i13-20020a636d0d000000b0058986c07537si4567111pgc.220.2023.10.29.23.03.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 23:03:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hjyawQBM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id BD4E08054BE7; Sun, 29 Oct 2023 23:03:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231230AbjJ3GDE (ORCPT + 99 others); Mon, 30 Oct 2023 02:03:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230262AbjJ3GDC (ORCPT ); Mon, 30 Oct 2023 02:03:02 -0400 Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56C12B7 for ; Sun, 29 Oct 2023 23:02:59 -0700 (PDT) Received: by mail-ua1-x930.google.com with SMTP id a1e0cc1a2514c-7b652e785dbso1740684241.0 for ; Sun, 29 Oct 2023 23:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698645778; x=1699250578; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VkvQvRoKugnm9tC1bRof4BrUBBGpF31eP4mmFwkt2H0=; b=hjyawQBMn67tMyrUJ4MoX70VEEY+6RqFBMBDaeQFzzIdmrIioG46pAiOle7KPN74oq TFegrEGvnrOXd8h7za8KV8bNoLFf/BfZxMhSCcTq13kCFyNHQ60qgsz/6uZqueoWrNVe /ej0pkyIwKzXD1L+B1+wANQotEOqNloHzd1V8HELsxiAHAo2sDrEEmwWQW7AjAEe6jz3 1L9wAOa3IIujm6pa2NDOrRv/kUB7h9JSu5LPtHiFDcOfD+dhkBUdBLT3yNQc61U9SJf7 +e8oZ2AvZ72O73ZwAMsCUJOhA/CLWAIXBivgSpClS2JPDpjq6mHvoXWIXqn6wsQwUouo mwdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698645778; x=1699250578; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VkvQvRoKugnm9tC1bRof4BrUBBGpF31eP4mmFwkt2H0=; b=Txp03F0U8wjJTVbOS1R6PzIW4sT669bqn5506NLbYJq3WcpyqfBv/ROXovrKlf5UMh k0sL7gIZArBkeV12nuH//QaQRB4r8uhLu1ixJ3Y3JJNY+vZYK6UWEk949Lh0ZRV8JNx3 RelqIn3DTZC+wD29tDqCcYN4X9RMQbuyeCdNMctbu46aR31m309e7RRxkCGj9TaVhF5a 9S7qphfeXH4YA8Po5neVa5uRAY0C84hgFjBloTU33K0I9/lDgazVgwYNGcw3+wvHp3qT nU2E+DGNNxlp23FdbY6opJfNJMJGiZiyoWvV28h15DFSoQlIwuUgldpNIK6JxQ6VzesC MMpg== X-Gm-Message-State: AOJu0YzxjA2YK2I1s4emCR10sehZbroQgmNMYzLspmRlUu+CLI32cI4i CZXkwoHlnRv2bWkFKsRG8rdAmC+94gzsYGE2ttQwuWa/k1VPOVCV X-Received: by 2002:a05:6102:4a4:b0:457:b9da:db12 with SMTP id r4-20020a05610204a400b00457b9dadb12mr7419748vsa.12.1698645778379; Sun, 29 Oct 2023 23:02:58 -0700 (PDT) MIME-Version: 1.0 References: <20231026080409.4149616-1-jens.wiklander@linaro.org> In-Reply-To: <20231026080409.4149616-1-jens.wiklander@linaro.org> From: Sumit Garg Date: Mon, 30 Oct 2023 11:32:47 +0530 Message-ID: Subject: Re: [PATCH 0/2] OP-TEE FF-A notifications To: Jens Wiklander Cc: linux-kernel@vger.kernel.org, op-tee@lists.trustedfirmware.org, Jerome Forissier , Sudeep Holla , Marc Bonnici , Olivier Deprez , Lorenzo Pieralisi Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 howler.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 (howler.vger.email [0.0.0.0]); Sun, 29 Oct 2023 23:03:11 -0700 (PDT) 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? -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 >