From patchwork Fri May 13 06:26:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 572065 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:66c4:0:0:0:0 with SMTP id x4csp197281mal; Thu, 12 May 2022 23:28:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk1qLBZcGpGb4t07hB6BWzaQ+izMdSV8ngOf4HMFUpj3s9GTvvCfZxAehqhDv/M+32Smcb X-Received: by 2002:a17:907:9715:b0:6f4:6ab1:23c6 with SMTP id jg21-20020a170907971500b006f46ab123c6mr2903307ejc.144.1652423315696; Thu, 12 May 2022 23:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652423315; cv=none; d=google.com; s=arc-20160816; b=FNt9ARKwQv1YQAjThs8RBmMA7NqzAOnxKzVZRF3qRwX3eafgX+bmCXsbJWqS8psFzy HtSjwE1r7tfiMA0a7e73o2sILfXkWSeqBk7xxgffq+DLccTSyEAduvlOnzdUK1TNUCKQ qAC4AEcaDhYS/eTbi18ECcAMc821KODlNPbZkVTKP1dzNBURADp3NoRVzbLcNTWi45sG tYuABo1anvFt2nY1DcKHFYwsydzoYaUbwI5M4cXoYi/BdV+wYN3L7kfm51Oez1hi6IaE LtlX56x8VAl60yuXkpqCkZ3BV26j6evtuMwdT30PGJA2geBr3vosVSmHk+TeL+ImXnNG Okqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=xcrVxqcUTLXtPEIf4q4DJIRdgaBFdhzxb8vMGlyd4YA=; b=CfI8noooqQGdroN6QPP27+GQdAWYVGGrKPKmdnuxXDPEe0r1deXdYfaA18Nvr62ZRJ DR8xhBZnpPk1ndF6Ga9zzOy1+hs5RvnGnvcPZKl84XV7bkltVqEouelbfleg3Ce2Ptw9 2hRqkOqjZ9hkhtLiB+SAVfNakVXEowWRX9PW1qqtDjivbszqheW3AmGI2NHdiqiH9WT5 5rbBjkD/d/CFc+rjG6jh74gjOSa4RrGsvinsFwLzWexqbxQkGX+A6KTq0OoRHKnXluew pS25BmaFyOeogbWP14TYx0BzDHKD576QPFNkY0U+t8iLHqKsfRbvEfStaL2+zfjWKzGb gKtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hMqOfwvY; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id c10-20020a056402158a00b00418f60d9c5bsi1019827edv.236.2022.05.12.23.28.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 23:28:35 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hMqOfwvY; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CB6C783BF4; Fri, 13 May 2022 08:28:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="hMqOfwvY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3A69F83D8F; Fri, 13 May 2022 08:28:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 52C9883B20 for ; Fri, 13 May 2022 08:28:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=etienne.carriere@linaro.org Received: by mail-wm1-x32e.google.com with SMTP id a14-20020a7bc1ce000000b00393fb52a386so6360192wmj.1 for ; Thu, 12 May 2022 23:28:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xcrVxqcUTLXtPEIf4q4DJIRdgaBFdhzxb8vMGlyd4YA=; b=hMqOfwvYmVBTYJ6thbgjr0zlqnZwYV1hoK9KDiupHT0svn4X1RYcRpLd6XGcrgenZ0 Pqi2z3f5oMWLjNMeTp/kmR58A/mjQll6HP/FI5I4zEYcCrB7svOVvWuPufM5/qv01BpJ OBC27AXlf1hnn/qffwhfXs6ypKvqYgCToGiLonc7kWH0p9W83r/UgQqcQSJIK8LrTUVn JqYtLUx3sEZd9mz+rTs6IfvcwGjAVJMRK63nm1XgIL5xbimKVdRaq4lC9Mf+5/uT9VR+ c1j4mREZnYKIGoL14HDdLg0C5oHpfM8RkKN7dd28Xf87IsqmfbEGlQnHWGZ/RwFAtCHD B6nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xcrVxqcUTLXtPEIf4q4DJIRdgaBFdhzxb8vMGlyd4YA=; b=r8OPl0cOK8txIToZHONxSIsLtaKdGsZCTa1J4yudjGRtESrZ99fj02yRQhtnDJHFtw uYc++t6NqnXcFT/qwxz7UIWkDQGKijYGw6goKFf0ehowjcJdcdJreaKogmz1g29tfwAO 50fzEx8trWBd8dDM534wJsrx8+q1X8Z/usdfa6OUo6TBPLMsvWxDUqcfhdBIhh1XbFGZ IQHckTFYUJLKRM0l2NEr+8XWSyNUi4W6Ojg2v5Sz83L5pbSOqHk3PNFkrrd4nyW49uav mrybgoDkAis9YmBf3XqBers0/+VkT2lhQpZOYUB0O/qn6hnYlbqXxA3ZqhXFY3LUT8kF QKIg== X-Gm-Message-State: AOAM533WyfI8F7Bgx7/2rl9PgXpsGWrpgq5QvrWWcpGwo/28mt5OHj4I oK/qG6Ual9DFkKEuwSAyX9ctRB2wYVYsyg== X-Received: by 2002:a1c:721a:0:b0:394:7a5:a1f3 with SMTP id n26-20020a1c721a000000b0039407a5a1f3mr13176417wmc.104.1652423304527; Thu, 12 May 2022 23:28:24 -0700 (PDT) Received: from lmecxl1178.lme.st.com ([2a04:cec0:1194:a3aa:dc31:6fc0:bd75:771a]) by smtp.gmail.com with ESMTPSA id s18-20020a7bc0d2000000b003942a244eebsm1414235wmh.48.2022.05.12.23.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 23:28:23 -0700 (PDT) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Patrick Delaunay , Patrice Chotard , Etienne Carriere Subject: [PATCH 00/14] SCMI multi-channel and optee shm Date: Fri, 13 May 2022 08:26:08 +0200 Message-Id: <20220513062622.155433-1-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Dear all, This series implements 2 features in driver/firmware/scmi. First, a single change adds support for SCMI OP-TEE transport to use OP-TEE native shared memory. See the 1st patch in this series: "firmware: scmi: optee: use TEE shared memory for SCMI messages". Then come changes for supporting multi-channel in the SCMI drivers. I've split the implementation in 11 several small incremental changes in the hope it helps the review. Few minor fixup commits are also inserted in the series. Regards, Etienne Etienne Carriere (14): firmware: scmi: optee: use TEE shared memory for SCMI messages firmware: scmi: optee: fix inline description of PTA_SCMI_CMD_GET_CHANNEL firmware: scmi: prepare scmi uclass API to multi-channel firmware: scmi: prepare uclass to pass channel reference firmware: scmi: factorize scmi transport look up firmware: scmi: add multi-channel support firmware: scmi: mailbox transport: implement multi-channel firmware: scmi: smccc transport: implement multi-channel firmware: scmi: optee transport: implement multi-channel clk: scmi: support SCMI multi-channel reset: scmi: support SCMI multi-channel power: regulator: scmi: support SCMI multi-channel power: regulator: scmi: simplify scmi_voltd_set_enable() firmware: scmi: use multi channel in mailbox, optee and smccc agents drivers/clk/clk_scmi.c | 23 +++- drivers/firmware/scmi/mailbox_agent.c | 65 +++++++-- drivers/firmware/scmi/optee_agent.c | 147 ++++++++++++++++----- drivers/firmware/scmi/sandbox-scmi_agent.c | 1 + drivers/firmware/scmi/scmi_agent-uclass.c | 48 +++++-- drivers/firmware/scmi/smccc_agent.c | 56 +++++++- drivers/firmware/scmi/smt.c | 53 +++++++- drivers/firmware/scmi/smt.h | 45 ++++++- drivers/power/regulator/scmi_regulator.c | 26 ++-- drivers/reset/reset-scmi.c | 15 ++- include/scmi_agent-uclass.h | 15 ++- include/scmi_agent.h | 14 +- 12 files changed, 431 insertions(+), 77 deletions(-)