Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2498763imm; Mon, 10 Sep 2018 02:01:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbdiQYCtp2uFngwxPPbWNnlUoYVI+0t+c9yZsqOp1XjQHZzzcwns4KTVYWuG8uEpwduZCFw X-Received: by 2002:a17:902:b492:: with SMTP id y18-v6mr20890255plr.208.1536570078496; Mon, 10 Sep 2018 02:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536570078; cv=none; d=google.com; s=arc-20160816; b=X+GgkFCOsp4fxMFwBRuAmzOqfymoermWCAR9eKaBAn138VeH6djYg9OHBlG1BARy4o mtbkPtJfBOXoYYyRvM1GDYh5RyJ9qUrVskMyyoegxBDj5zTG6duTIcPArqSacJA+FCnx mskFP17zyZM53xVyXgR+SZRC5Aj4lEItGk0YfuPcugYBVwjpWUXaLO8KXKWuruotMuWZ fb7pKLUdCNpf+bIxW12TJ3g3pLNr7jjYwIQJetdh6gxT/Yzx4/Jc3DJjDQ1G7K78FWNB GIj0YjOidOXgTTbNK6jxXgk8EaxnwPm+xpf9sHuHDqgXw21yM+mnG8UPvMINP3cPBzBy V/CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=WcKozNf/E/SqeBTKAgm33oNv/Y5p9ukod/O5JDKoYDY=; b=onuGmN5crt+T48W4TMTDTa4gEW0aLaUqCL2Ihsc8wghQHbDEluVU+bfjy219UWztsG 1o3w9V1P+ulRJBG8fP3ONcYfUJbDlaFF4EgetfrnSuVNT30jnP4Uecd4J0yVSnah9sZh 7uJnB8BofsQf0vbO2+1mAvat8tbkbe0YBU1rmXGHN/gUlYzdqM5DF2O/MwI5rmHChO66 vlOuHrf5XUmlWPT7BrjhqZY2ZvFsOApksbuI6AaugHVg07e34tTk2zYplzU4+a/B6aYU nyVbb1ifrOOw6JwBm63jRbyEFH3uBaY9C5MXZjCAlFKemCpjS4APJ0Lp3Huvyf9P4zbb PpSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SkDPTcHl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7-v6si16055978pgh.473.2018.09.10.02.01.02; Mon, 10 Sep 2018 02:01:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SkDPTcHl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727796AbeIJNvL (ORCPT + 99 others); Mon, 10 Sep 2018 09:51:11 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:37871 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbeIJNvL (ORCPT ); Mon, 10 Sep 2018 09:51:11 -0400 Received: by mail-lf1-f65.google.com with SMTP id j8-v6so16759758lfb.4 for ; Mon, 10 Sep 2018 01:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=WcKozNf/E/SqeBTKAgm33oNv/Y5p9ukod/O5JDKoYDY=; b=SkDPTcHlXuiu1oU7tB8VZ3314ULuOCXx3tktqslNA6x/OXgk86fm16/SQpppXnW3XK TwncQpm5DbTzZ+iQjOQj1zMXzVS/uokoLrM5/d1CDtVSBM5RrC4Lt73x+S9rPP6mVIob ilgpV2o1P/qXUtmNZNNVle2i68+KtXbCDhOG4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=WcKozNf/E/SqeBTKAgm33oNv/Y5p9ukod/O5JDKoYDY=; b=KsO+HsdAdGVyLkIDjaY09fM8gfgYiNrdVX7i9eieXChgr6kyZzTLQ+56nWAitnanz2 aUqH13Fw3nWnexmWUpkmlBRcJNykgm7D+LQcFTlPCRTKjwm4Mr4SjyUHlDx6g67NDyN1 RKaSViBagws6dJHKu89OrxYr3OpcmsL2Gq/mA096gnMgvgTKiup9BbwThAQ8IgLGpqiW +P0uMWGcrRD8IyIWWQ5RN6pZYGOzC09DQGEEWemELS3FWCf/2hMjmh3dJCf6rtQ2IQMx qMo+z+u+ASJrYqDiPRIOWjJp47zZm2A38rXq/EhvPVXeT4GcUeAXSbVeupTLJJCXttEZ iAxQ== X-Gm-Message-State: APzg51D03tgnQhWvSUpj9Rw+Gqezxuiy9L5gL/cfCdrhM54/dyVlK8sY acVWSucpeLWuD5zWpKFLFDr+k+taqMcqR8z4MnAK5A== X-Received: by 2002:a19:4e4e:: with SMTP id c75-v6mr11663297lfb.116.1536569889295; Mon, 10 Sep 2018 01:58:09 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:118f:0:0:0:0:0 with HTTP; Mon, 10 Sep 2018 01:57:28 -0700 (PDT) In-Reply-To: References: From: Victor Chong Date: Mon, 10 Sep 2018 17:57:28 +0900 Message-ID: Subject: Fwd: [PATCH] tee: optee: log message if dynamic shm is enabled To: Jens Wiklander Cc: tee-dev@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Suggested-by: Jerome Forissier Signed-off-by: Victor Chong Reviewed-by: Jerome Forissier --- drivers/tee/optee/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index e1aafe842d66..cca5c091e55a 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c @@ -631,6 +631,9 @@ static struct optee *optee_probe(struct device_node *np) optee_enable_shm_cache(optee); + if (optee->sec_caps & OPTEE_SMC_SEC_CAP_DYNAMIC_SHM) + pr_info("dynamic shared memory is enabled\n"); + pr_info("initialized driver\n"); return optee; err: -- 2.17.1