Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp386717rwb; Thu, 12 Jan 2023 07:25:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXsDeKdCr+ZH76rC4EQzK9Pg0d36YsGV9Wo88S7gYI4CW9/gPwdArU0aK9k9o8/c7N2UGvng X-Received: by 2002:a17:907:a407:b0:84c:7974:8a73 with SMTP id sg7-20020a170907a40700b0084c79748a73mr60448451ejc.57.1673537158923; Thu, 12 Jan 2023 07:25:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673537158; cv=none; d=google.com; s=arc-20160816; b=X6NOR26trYEPnMrT/7pIwyixRVf/loLnw0+5VUXttEajRtghYQNposjIzvnx/qCs0j EEVLb81jtiIULcH+5Z+cZW6Qf1nkf2Uq/c4BNz+Ds671A2pPcc2pZS24MMgPKIyZiOy1 wrZylt12LuWilN2T09DWi/dqsWDv15BWBEPTIeDC5kjaleL65RFF/8F4T4aRLo8kCESB FnT1y+nCoQCbOgEBmQD8sLz3SEjcapTYmk8lmKRmWt+uYu8OBFYJIqWKsxgswbmT1/32 KQpv5o9llUlKeo6/EKCj5GrDFMZSkG/jahbsL9neWFdil+wJGqP+Q5EYkFm4zxFSNJzO DxqQ== 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 Return-Path: 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.25.46; Thu, 12 Jan 2023 07:25:58 -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 + 50 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 Content-Transfer-Encoding: 8bit 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 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(-) -- 2.25.1