Message ID | 20230505173012.881083-4-etienne.carriere@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63372C7EE24 for <linux-arm-kernel@archiver.kernel.org>; Fri, 5 May 2023 17:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KfSi+IBxjI6kEYdh2dzSaBRfoULZqD7+GtT+xUHSm08=; b=UHH4U6X8yb03mm a3aIB+nlU8jDhfY/LVchYRzBDjxwcTLJjCyap77iiSxG5lCkP1q+dGpWkjARknpzEp4OrmXfrpNwP 0caeu0T/Fptvj8v2torercwxZqohK4m8YIFWC8xDRJyxQ7u/iQ56sfHvuE8hFCq0Yyq29RrDhBB4v 2+n9YKmG++vqVk48WZ9BfVfhStrxFB0jG10PuFku4e4bSz7tOEpfOMaaFyrwSHkbJIptWdLUgan7Y mV7wn2VQgNcDaxbkv0Ua8PeSFvCBUUat2xWvMSFSQV3IrpwMUkwnbcOrQNz7eIo5TmnUi/ZcIsgP9 7CCxQoiGW5uM2+spBr8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1puzH9-00BPeG-2n; Fri, 05 May 2023 17:31:23 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1puzH3-00BPbn-04 for linux-arm-kernel@lists.infradead.org; Fri, 05 May 2023 17:31:18 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-306f9df5269so1426048f8f.3 for <linux-arm-kernel@lists.infradead.org>; Fri, 05 May 2023 10:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683307874; x=1685899874; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=R88W/MsLhp/0NL5NeVi4LXMj0r/Vf48QsjmcL+kmlyQ=; b=DPiEEnWfbn7ckQyPjyDlULKRh9dJjv+GQ4atmaoe7clzBaXVyhNOhOdT+2gPAkxoIw 7gQ03OHdUbJ5xOEMdtULkckaNMkF+FRYKV1X/Diimu2YS+RVC1Pex+Iw3uxuI4X6ehdl O0xgXDgw5tR9ZyqBk/6UujKh8BoCb/jwWzr5LNTBoBd6HI8tINwTQY2F4YhSPzQYY0DE x+bncsomV7ZhZvQV4gJAZDPl2KIHurJTLbYT4xfL7yowy1gM70Oxb+xeLOUglPUFV42X 9XubP6qAC3+I2yQfsKPVtVY9CLYp+fJ/+oUkYA4W0DKSA6ieSsy0EnremMqhesfMHiBf UMTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683307874; x=1685899874; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R88W/MsLhp/0NL5NeVi4LXMj0r/Vf48QsjmcL+kmlyQ=; b=bHeNz/LOvNBkpSlsAb40VGFZv1ZWUPiXZSSjGn3dYd54+YQVYdkUEy4imk4EIfYalB bUoP7UkUar/kECMiyGvimZ91LByqC/3u1Bs+sQ1jBz0bV2IRZet0X3p8dBqU00mjb/YJ KWv5hSdO0HEaCZrQVRvAw2cpxrAkGH6n6bXbn7WBeET44CyE20wFOodY7eJZ9W5BByOf kMa4NLwX8fJyXHJ95E9JYzYL19Z5ELP4zI1dgpU6UM5y4+/B6fQb5JL6/VsF/T8C1WFs VjsGp/nfJ26wAsCBOHjnIbumbDhI907MUh2ZiqL657p2tWlOhGr795qZi06Onor/d+Ic iRzg== X-Gm-Message-State: AC+VfDyiz+OMHygCHhPzN+lTx5iHI1/WHIEL/Zpejjtnnxi9dyBiePpn dPMh78IyynDFnA8YoQmSTd9tBQ== X-Google-Smtp-Source: ACHHUZ4whgdo/RENRnIVSm+7sYZPG8thfRpLMhsFcNRIV66nqszXsRWG7/OcrlktRY0AylG/JxOenA== X-Received: by 2002:a5d:4101:0:b0:306:2c43:7255 with SMTP id l1-20020a5d4101000000b003062c437255mr2094516wrp.35.1683307873831; Fri, 05 May 2023 10:31:13 -0700 (PDT) Received: from lmecxl1178.lme.st.com (lfbn-nan-1-1169-52.w86-212.abo.wanadoo.fr. [86.212.112.52]) by smtp.gmail.com with ESMTPSA id a15-20020adff7cf000000b002f6176cc6desm2971170wrq.110.2023.05.05.10.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 10:31:13 -0700 (PDT) From: Etienne Carriere <etienne.carriere@linaro.org> To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, op-tee@lists.trustedfirmware.org, Sumit Garg <sumit.garg@linaro.org>, Jens Wiklander <jens.wiklander@linaro.org>, Sudeep Holla <sudeep.holla@arm.com>, Cristian Marussi <cristian.marussi@arm.com>, Etienne Carriere <etienne.carriere@linaro.org> Subject: [PATCH v6 4/4] firmware: arm_scmi: optee: use optee system invocation Date: Fri, 5 May 2023 19:30:12 +0200 Message-Id: <20230505173012.881083-4-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230505173012.881083-1-etienne.carriere@linaro.org> References: <20230505173012.881083-1-etienne.carriere@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230505_103117_056118_0A946745 X-CRM114-Status: GOOD ( 13.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[v6,1/4] tee: optee: system call property
|
expand
|
diff --git a/drivers/firmware/arm_scmi/optee.c b/drivers/firmware/arm_scmi/optee.c index e123de6e8c67..25bfb465484d 100644 --- a/drivers/firmware/arm_scmi/optee.c +++ b/drivers/firmware/arm_scmi/optee.c @@ -440,6 +440,10 @@ static int scmi_optee_chan_setup(struct scmi_chan_info *cinfo, struct device *de if (ret) goto err_free_shm; + ret = tee_client_system_session(scmi_optee_private->tee_ctx, channel->tee_session); + if (ret) + dev_warn(dev, "Could not switch to system session, do best effort\n"); + ret = get_channel(channel); if (ret) goto err_close_sess;