Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38195C433F5 for ; Mon, 13 Dec 2021 10:38:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236224AbhLMKiN (ORCPT ); Mon, 13 Dec 2021 05:38:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242714AbhLMKiD (ORCPT ); Mon, 13 Dec 2021 05:38:03 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 449EFC03325B for ; Mon, 13 Dec 2021 02:24:03 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id i63so22980751lji.3 for ; Mon, 13 Dec 2021 02:24:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=ut8m/pHjQ/juGIhmsdLwzZw5EmhQOWRBvf8EYOGONH4=; b=HAQyv/tjCG5mRHKhpIOFK9wl9h2+bZ6gQ8cEV6v40WKZCm823BO9gkAogkN3wz0FDf hiSSJ/pgU8R5s+d15YlWz+630rdg2TsHmDrwJhtKL2NG0gUXldFBYaunYjoWHiNyoDK/ aeVCIT3mm9ZMUuqenCGc824UG/HsIrJxYlRcv/pYxsXVXIZvtFGRyfFwRdHmTMq63zkn OBEHF8akbPSP9CBZtg1we5g2xj1q6PXAvk6UsxBuFfMmgkLS2TrdU/DNl7OdFLwBMG9c 4PxWmp7G9yq1XDCRlgbIeU9/ijwDd3NRuuo9s6V+zM2HJ7DiRHVhidGkqtRYGoMa/s3g w+GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=ut8m/pHjQ/juGIhmsdLwzZw5EmhQOWRBvf8EYOGONH4=; b=mcwYWp8gpIHxS0zIXRSUrguLC8C7ubYYiCNF+r+Ma6rga9IkNxcYaYeHpeV2tPbxNC LGJcTGYRuOKHKCWwonVgz0hLmFBoXayB41BJAqW1orqrsArehUyQjYlwBRQRIznsoxwp JwolfxAD/gkwKF80RmJ0vAZIeYPqLhQW8gICDAZjJDf77YIsaJEl53uSsV/rXrsXQx1Q i15n9xBtf4WyxFRzFpNYmPVfrKZzuLBIaCDPSJ56FeMLcAHmb1V15c1IXF/enWCfHxhE f7iVU4qz4N1cOAtAkrep9p5Q4PMdDWRmWp1WHGnctqRKt0WNgkt+OcVntUCJ9kxJD/KR eCmA== X-Gm-Message-State: AOAM530im9z0XKALQjuqOH9IgB3R9lr25nWDGczrdluTJHAKv9JyoV/z pAn9/vvQE9vjT2fVXinj9+i/QQ== X-Google-Smtp-Source: ABdhPJx/4K8Z4t6FEgQWd5ClisIx4aHYvKFbFIVbVb+MklUDPdcuGjpBcXB1nVsjDoEFR2A0EbdcuA== X-Received: by 2002:a05:651c:2123:: with SMTP id a35mr30019716ljq.174.1639391041082; Mon, 13 Dec 2021 02:24:01 -0800 (PST) Received: from jade (h-94-254-48-165.A175.priv.bahnhof.se. [94.254.48.165]) by smtp.gmail.com with ESMTPSA id f4sm1374617lfc.18.2021.12.13.02.24.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 02:24:00 -0800 (PST) Date: Mon, 13 Dec 2021 11:23:59 +0100 From: Jens Wiklander To: arm@kernel.org, soc@kernel.org Cc: op-tee@lists.trustedfirmware.org, Linux Kernel Mailing List Subject: [GIT PULL] OP-TEE add async notifications for v5.17 Message-ID: <20211213102359.GA1638682@jade> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello arm-soc maintainers, Please pull these patches which adds support for asynchronous notifications from OP-TEE in secure world to the OP-TEE driver. An edge-triggered interrupt is used to notify the the driver. These patches has been in linux-next for a few weeks already. Thanks, Jens The following changes since commit fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf: Linux 5.16-rc1 (2021-11-14 13:56:52 -0800) are available in the Git repository at: https://git.linaro.org/people/jens.wiklander/linux-tee.git tags/optee-async-notif-for-v5.17 for you to fetch changes up to b98aee466d194788bd651cb375b0e0f7e0e69865: optee: Fix NULL but dereferenced coccicheck error (2021-11-29 22:02:25 +0100) ---------------------------------------------------------------- OP-TEE Asynchronous notifications from secure world Adds support in the SMC based OP-TEE driver to receive asynchronous notifications from secure world using an edge-triggered interrupt as delivery mechanism. ---------------------------------------------------------------- Jens Wiklander (6): docs: staging/tee.rst: add a section on OP-TEE notifications dt-bindings: arm: optee: add interrupt property tee: fix put order in teedev_close_context() tee: export teedev_open() and teedev_close_context() optee: separate notification functions optee: add asynchronous notifications Yang Li (1): optee: Fix NULL but dereferenced coccicheck error .../bindings/arm/firmware/linaro,optee-tz.yaml | 8 + Documentation/staging/tee.rst | 30 +++ drivers/tee/optee/Makefile | 1 + drivers/tee/optee/core.c | 2 +- drivers/tee/optee/ffa_abi.c | 6 +- drivers/tee/optee/notif.c | 125 +++++++++++ drivers/tee/optee/optee_msg.h | 9 + drivers/tee/optee/optee_private.h | 28 ++- drivers/tee/optee/optee_rpc_cmd.h | 31 +-- drivers/tee/optee/optee_smc.h | 75 ++++++- drivers/tee/optee/rpc.c | 71 +----- drivers/tee/optee/smc_abi.c | 237 ++++++++++++++++++--- drivers/tee/tee_core.c | 10 +- include/linux/tee_drv.h | 14 ++ 14 files changed, 523 insertions(+), 124 deletions(-) create mode 100644 drivers/tee/optee/notif.c