From patchwork Thu Jan 12 14:54:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 3919 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3941910wrt; Thu, 12 Jan 2023 07:24:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXsFAFvkxKvihMFw1vQv+thJdCJLw70Ihon6ULmSrGMat+YIB4Uu4m31A+NuA5jeyOkQHcub X-Received: by 2002:a17:906:5dad:b0:7c0:dfba:54d3 with SMTP id n13-20020a1709065dad00b007c0dfba54d3mr8166728ejv.20.1673537096557; Thu, 12 Jan 2023 07:24:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673537096; cv=none; d=google.com; s=arc-20160816; b=H57Pm9EMbXvaTis6mSIr7kJA2HJbd6NU/afXCT9YNRrmWtLKJhAMdBWpv41IkY74/o NEkhvS8qtmGsXwiWOPGXGyOaotNr7lbhanSGmM3kypG/AY0wu3/0m56ESLVe13vSr+NA NQoFT+I2ojCRULQQbRMRltw/h5C47KRB4Fdq7MDjFti2AyfsO1KXUDCC6pZIDftj16J4 ieacU/KMYgEmbfZVD6K7pLJBfCYLR9tGCq04Z6MVActm6wjw7a1WnA4jmrHsyKm+LqG7 EOmw/YQcGa6ZLd5foEb6ohrKr5BklL5F/hT7TSFDPMgdcfR/DmNM763Ss9tl7UO3smZl o2uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hshBgHMAbsj8P7ZG9SJ1XlZXn0deMwOcwI0cVFQUWUA=; b=lSzSM9wMu5tzbnmmxuLd1tG6sRCoda7CHjF5gocZT55lf9SDZ79rOprs1gPvH4gdhx rIk0YknvwDZxDVGCpHtm+wcReYbfa0jcJkrYop8yaX4KmVuRFjWDdeQxypYnH7wzYGiV gSBo7+VKljYDfC/KysS96OqpSOZAOuAGwgN8JjPgiWuB/A1DMS/NgE84xgLVFTN9s2It cjiP2qajp51AhW3tNLKqSksmF8BGkykWZLPtWWLBZ4Tc3ym9/A2CIdmETJ4RLiPMpzKw 3JNjp/CKQOUpsN1rhD7M4PCz7iaCo4SoAeu2eiIoAAgrtMBzlZNymvL2vFu6qtY7ET/h 01NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GvFzbbOm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw17-20020a170906479100b0073db353cb25si20515780ejc.869.2023.01.12.07.24.32; Thu, 12 Jan 2023 07:24:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GvFzbbOm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233937AbjALPHs (ORCPT + 99 others); Thu, 12 Jan 2023 10:07:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240318AbjALPGs (ORCPT ); Thu, 12 Jan 2023 10:06:48 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB565CC5 for ; Thu, 12 Jan 2023 06:55:38 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id ay12-20020a05600c1e0c00b003d9ea12bafcso11359263wmb.3 for ; Thu, 12 Jan 2023 06:55:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hshBgHMAbsj8P7ZG9SJ1XlZXn0deMwOcwI0cVFQUWUA=; b=GvFzbbOmsqenKzZlLKqqRLe8IvHGcinjLwT+6ORe7S0N5KqDyun3Rl2bz89Mcq2v6T HR9hkSIPszIUHj4iE4JSIrsAVZahUuT3VddBeaPduxj7ze8qfvDAGJInbqa9L7FpOavk 7PO1WWEISo5m0YJhVbl221HLGxE5JXnQwwmRdCnuVjT6YFvT5pfv27E7PHmFytLs4nRs KMBNIFEJi3aBxHEqY8nJU4/HoAQ+gkbBMlcYYBbQZ3ESUGRkStOVuuoRUJt1oNh/wTp0 gFUpSM6sejzS3N6CLrD5VQS61DMNGhQ1WQ6IUKId4WX7cQGf/83BvTPvQ4+nBGBxawIt d3pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hshBgHMAbsj8P7ZG9SJ1XlZXn0deMwOcwI0cVFQUWUA=; b=E7mr0ZR3WE4loJI6eeFMVhLpgv4Aqii7l/fKWgXHVqpeh8nRQ7N/DdQNRC6WvnjUR3 f0bZn4U9nKTW7pEMcVBXkY9ft5x14DXtr6adjLFuvKe6IYie2WUz/dvrCm0sXSUg/prf q5+TiqufyJaGuaW6T3l2sjX67h7DtRbxnylnIbmI9xNW0+eZl20HOuMiWoislSUghIuA KNwPzI8RakqDNMtNtYotYCt4j4V2cjQ8vSzEwdcYgJHBpsGCzc0rQeqiPkRvdLbhFPYf Jwfcm2vJVsQIc5uo+3pWHq1tUxhpUvl3FU1r9yKO76TARNZzh1/IuX9BrcK0jhIC9hy/ Tzpw== X-Gm-Message-State: AFqh2kqedsZoiNKdWgMqNvd4DyKwZY7ehZvPgVI1JAp1fiE+FCGOm8SB lrCwpj9BnCAVjuoHWsvLFkXrR+M7cCaO6Vx+ X-Received: by 2002:a05:600c:154b:b0:3cf:674a:aefe with SMTP id f11-20020a05600c154b00b003cf674aaefemr55646987wmg.22.1673535336869; Thu, 12 Jan 2023 06:55:36 -0800 (PST) Received: from lmecxl1178.lme.st.com ([80.215.38.209]) by smtp.gmail.com with ESMTPSA id v14-20020adff68e000000b002365730eae8sm16599779wrp.55.2023.01.12.06.55.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 06:55:36 -0800 (PST) From: Etienne Carriere To: linux-kernel@vger.kernel.org Cc: Jens Wiklander , Sumit Garg , Marc Zyngier , op-tee@lists.trustedfirmware.org, devicetree@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , Etienne Carriere Subject: [PATCH 0/3] optee: async notif with PPI + interrupt provider Date: Thu, 12 Jan 2023 15:54:21 +0100 Message-Id: <20230112145424.3791276-1-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754830834319607184?= X-GMAIL-MSGID: =?utf-8?q?1754830834319607184?= Dear all, This small series aggregates 2 change proposals related to OP-TEE async notif. I've made a single series since the 2 patches hit the same portions of optee driver source file and I think this will help the review. If you prefer having independent post and deal with the conflicts afterward, please tell me. Patch "optee: add per cpu asynchronous notification" aims at allowing optee to use a per-cpu interrupt (PPI on Arm CPUs) for async notif instead of a shared peripheral interrupt. The 2 next patches implement a new feature in OP-TEE, based on optee async notif. The allow optee driver to behave as an interrupt controller, for when a secure OP-TEE event is to be delivered to the Linux kernel as a interrupt event. Regards, Etienne Etienne Carriere (3): optee: add per cpu asynchronous notification dt-bindings: arm: optee: add interrupt controller properties optee core: add irq chip using optee async notification .../arm/firmware/linaro,optee-tz.yaml | 19 +- drivers/tee/optee/optee_private.h | 24 ++ drivers/tee/optee/optee_smc.h | 78 +++++- drivers/tee/optee/smc_abi.c | 249 +++++++++++++++++- 4 files changed, 358 insertions(+), 12 deletions(-)