From patchwork Mon Sep 10 08:57:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Victor Chong X-Patchwork-Id: 146293 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2249234ljw; Mon, 10 Sep 2018 01:58:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZaRMPKz0hldmovzyGcMkEUvwi89qN0Ks1HABksm++n/hpopSlVm88WJhEfgjH4jezVmFfs X-Received: by 2002:a63:f501:: with SMTP id w1-v6mr21464165pgh.446.1536569894553; Mon, 10 Sep 2018 01:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536569894; cv=none; d=google.com; s=arc-20160816; b=LsiO8+RYTCpzzU1epnfNXf8UTvWncxTSY2Afb1kzdouEcrzyaTHWgQI3Li3uNEWeIi Bc8CxBMn65An2PwDN8xCM6FjcdidaL2Bn2udH5kO2vWkljVDdFpWUIBaN88eGDOyivmG qKvxtINCgxOP5RMwRwgj9/KadIqkno2wxFoCpo8Xhe9BbPZa1xTQLW/32WwZSVDeedE8 TYtv2Ns9VMuxp8COZGKEeHLMhooNUVceIYzbE8wLGF4pMLxhHXhS+9+g8WG5IHYdNEru QQq0/mc4rY5vfj3rhJsL+9FyF03+H4lGjwZ3kW193eNrG9L2OmLGxqxfejI3+lKbdywN pjCw== 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 x69-v6si17035534pfe.318.2018.09.10.01.58.14; Mon, 10 Sep 2018 01:58:14 -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 S1727801AbeIJNvL (ORCPT + 32 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 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(+) -- 2.17.1 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: