From patchwork Mon Dec 11 10:52:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 176601 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp6958256vqy; Mon, 11 Dec 2023 02:53:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+O9bO97qo/d1eZHTEJARLUd15LzYFpdikgmltY8SPDhIlXcJl6yLHXbuYH7mpRUqhTs6n X-Received: by 2002:a17:903:26c5:b0:1d0:6ffd:6e4e with SMTP id jg5-20020a17090326c500b001d06ffd6e4emr1837350plb.70.1702291985893; Mon, 11 Dec 2023 02:53:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702291985; cv=none; d=google.com; s=arc-20160816; b=nLkhiPgFXLi5dV3IBvAqnzufSFNF77RAkDHJpsvx/7HHR1xwKkMYJ68sQPSlRZjCB5 JZrfMqLZsD7YKz29Dazf8fuwrk4WG4mY9bUZ+QAOL5Mjuae9YCWMMFVnkd6WRUG0FP5j DFcvuWnS9Qv/4s7Sl0Mg8LkejUjyZjaQ1M6K1w+W+5iVOvI2VCtkwfBAwN8E7f8/FrSQ BCI7hObCRkP3B9WIyCnNL/SOPqplwcZG5VxWcs+I5aPyHA2+Ip0I4N1IAyJ+fFdES7i7 tdo78wRQ9C21ZDTdc+JAcTlOOL0U4SOdN9oD+51VvBnu+SyC/oNNiD8Blx++ImPnJGWZ T0bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=dy0Zb8GZwtRwUsfyN7YDaLjZK7xM4pji8PYYJ7g0zJs=; fh=xnht4pQ9f8P1nyM2kg93ErgW6hACwhIqYxdbjAKXgSo=; b=h1n8zE1V+v6UkNdB+dWieoXXaabuFZGErutqkc/Z9USvme12XUoiNYUKnoWPV7+bZi 7wGtetfcbIRXu8wNZNPh0/1tDDt3HsmUqLmgQyEEGjiRsSpmGkRrJGd4sw32/zVLnbcZ lv6qiEo1iw0InedvK3VUkpkHBXYkZ6RRRppLNbnaFDYh0ru8wlFRhKSHTRwE7ZCjP3bH VIZ5H48YpHwKqQi3t3rXf8QufeO17BCL2ytzo+ahcNCPsVr4OCEwlVEvgeDvR0zjMC7Z EQM6i5io8S95tI9lV8YFiJ3L7mBiDnwoaaT1DCX8Mj4ihqNwdix6KvUOwJLeCaV2Oqed MR4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DOEktdAF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bh8-20020a170902a98800b001cc23d2bb92si5675068plb.650.2023.12.11.02.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 02:53:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DOEktdAF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 9B2828093433; Mon, 11 Dec 2023 02:53:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234220AbjLKKwy (ORCPT + 99 others); Mon, 11 Dec 2023 05:52:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234059AbjLKKwv (ORCPT ); Mon, 11 Dec 2023 05:52:51 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 244C79F for ; Mon, 11 Dec 2023 02:52:58 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-5c6ce4dffb5so2149397a12.0 for ; Mon, 11 Dec 2023 02:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702291977; x=1702896777; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=dy0Zb8GZwtRwUsfyN7YDaLjZK7xM4pji8PYYJ7g0zJs=; b=DOEktdAFFTbgeH7ZOC4q8gvH/Gfa/YU7Dr+QKq3PRcXOY/q+4JZH3w0Liaa3re1MUF bM+8Ii0J8QqiXHdIzalQw9Tg+L0/rU0P93LFCKgd+w0BrrtspqTJTEn+up2INvvZe4ed NAxwXQ+UpmN8REasM1AQ0va63P9IWxNaiSPPlhNcXyrBpkxMk2olGkV3k9+ogsteQmDR KK+dYmfBMWh4DbG/8cVr3zM55KIIOUJGHXBFc8nXDwCgNVf8oe7EYl0wxTaO8M7C6Vh6 GeWvCBrQChBdAVBfELyWA399Aw3pJNVYy3bMJpfD7+4YQp1r0UfJKUO4td0LySH9OduT d09A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702291977; x=1702896777; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dy0Zb8GZwtRwUsfyN7YDaLjZK7xM4pji8PYYJ7g0zJs=; b=PR8XARtlz4T3wTVPgroghTlNKZWqwclTkz1D4Kdo2E/Oksoie71GB2H8UzOXidsbOm 26b5Zu3JRRHFOwYeZRmtFW+tZRDLlykN+Ae3rxuvTKZXE+BwJksuk4atIDG9HQsrybpN BC2O+xm5TYhATm52u32GD7lXin2XZ8GzU7kOGDeLn6L/NLD222iCta97QyjYgCHmMGXj S0QODqgaxFkqiIJW8SJhQmYGW5cuy4CEWHTWY6Ltx0yKIF/xBdVKTkRqPn9zc7kVI8o7 rSSFyDnfa4QC5AleF5UvZojvRxC9q3j1I7GYyeEtdPDbyAOxzBN1oXfgxTL8T/Us4fGa 5eEA== X-Gm-Message-State: AOJu0YxrGyOjfzsFg0q/yKrw/BpssClxri0l/jqlN3dxXTxZvUbZRrAZ DAb7XETka0hk2Tj0DkZAtVGjew== X-Received: by 2002:a05:6a20:394a:b0:18c:ab4:f6c9 with SMTP id r10-20020a056a20394a00b0018c0ab4f6c9mr2003960pzg.56.1702291977599; Mon, 11 Dec 2023 02:52:57 -0800 (PST) Received: from rayden (h-217-31-164-171.A175.priv.bahnhof.se. [217.31.164.171]) by smtp.gmail.com with ESMTPSA id 19-20020a17090a1a5300b002802a080d1dsm7302776pjl.16.2023.12.11.02.52.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 02:52:57 -0800 (PST) Date: Mon, 11 Dec 2023 11:52:49 +0100 From: Jens Wiklander To: arm@kernel.org, soc@kernel.org Cc: Linux Kernel Mailing List , op-tee@lists.trustedfirmware.org Subject: [GIT PULL] OP-TEE FF-A asynchronous notifications for 6.8 Message-ID: <20231211105249.GA587253@rayden> MIME-Version: 1.0 Content-Disposition: inline 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 11 Dec 2023 02:53:02 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784982521370862594 X-GMAIL-MSGID: 1784982521370862594 Hello arm-soc maintainers, Please pull these patches that enables asynchronous notifications in OP-TEE FF-A driver. This pull request is on top of the "system_thread_for_v6.8" pull request to avoid a merge conflict. Thanks, Jens The following changes since commit 4b391c9c37646f25118355f414b9e6d9fefe782f: firmware: arm_scmi: optee: use optee system invocation (2023-11-17 15:48:03 +0100) are available in the Git repository at: https://git.linaro.org/people/jens.wiklander/linux-tee.git tags/ffa-notif-for-v6.8 for you to fetch changes up to d0476a59de064205f4aaa8f7c6d6f32bc28a44d4: optee: ffa_abi: add asynchronous notifications (2023-11-17 15:55:41 +0100) ---------------------------------------------------------------- OP-TEE: asynchronous notifications with FF-A Add support for asynchronous notifications in the OP-TEE FF-A driver. This is the FF-A counterpart to the asynchronous notifications already available in the OP-TEE SMC ABI. ---------------------------------------------------------------- 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 | 93 +++++++++++++++++++++++++++++++++++++-- drivers/tee/optee/optee_ffa.h | 28 ++++++++++-- drivers/tee/optee/optee_private.h | 9 +++- drivers/tee/optee/smc_abi.c | 36 ++------------- 5 files changed, 155 insertions(+), 42 deletions(-)