From patchwork Wed May 10 19:11:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9720567 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D5B5360364 for ; Wed, 10 May 2017 19:11:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBA762862D for ; Wed, 10 May 2017 19:11:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E03D128631; Wed, 10 May 2017 19:11:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5CFDE2862D for ; Wed, 10 May 2017 19:11:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: References:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NguwEf+tb0g1kNrYLMKkHxhyJy4uCmmVnh14+l11A6s=; b=A5DhtvBwyZ4AZA zeFuj0y02fbMgHmufz/4+spZ5UxIrY9WrSkGGwQU54Cpkk2xDeAJ+g76CZx8yU3xuKCgUBbAgmsxH CEuxs6PLCZplKsqwg2PokfzgbfkpGV0grLTTUha/ppAcmI86dPfK5coapC4d7exRjHWYqiGBqspsw zV4p/0qgKzLyCPJOTMcY6bT4ffMNanVbNGD8Qf68eEiM1tlpCVf4Rmc14ju40m+6aBgEk3qgBiRXw ZsgPBH3mVPGyHdGjMdq2UVmzhiWVw//QzxI20zfoy8Wc31hCYW220231GZRxBFlmxdL5aykyAiYzf qt+peobDD/vMn5mIR/nA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d8X1O-0000mr-Tt; Wed, 10 May 2017 19:11:38 +0000 Received: from mail-oi0-x243.google.com ([2607:f8b0:4003:c06::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d8X1D-0000jA-Bt for linux-arm-kernel@lists.infradead.org; Wed, 10 May 2017 19:11:37 +0000 Received: by mail-oi0-x243.google.com with SMTP id h4so786778oib.0 for ; Wed, 10 May 2017 12:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=5tHZSsp4FsDEQbeE1UnvNtwrIWyKbN3ocrH8/bRZdME=; b=SW9mEkUXZdPFV0u7JIhieGNwrhliXevoMHEwHlSgVJiaWhswY5PgXCtgVBrD8F+/y/ PclmSCcSYW+0nMjy3hzD6B7WOUrPVHz8WWRUWX9FJmrygc39XOLjCNnsnzzPi3IK1E+M K3TkSTDkzwBMO4oo01Db9PP0qti+y6XB4FZLAK0sMEEPif2R+CmJvAlsjlGxnBesBSXw 2Q9+ddyOYBheffGSNRkk8F4qEu+2Rj8b3VSib1dzFE8mFQdoSmdZ7UPxkdyzMvvHdkb0 iF8E/tsI4rSyNSF/xPp1KELSFZxuISjz1ZG+toqs93gvGthl8CaKb4Y7myC3tFxJw6B8 T88g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=5tHZSsp4FsDEQbeE1UnvNtwrIWyKbN3ocrH8/bRZdME=; b=pynBB/ByTAKkyC4oCQbiVeYnpddRgCIi85+fj9ekw/e1uBiaggA8Mvl4Hfg8d8V9Hc aQAzvDIkXDknK9dopIrHIz8kCHULIjBd1hozGesKEojwHLhCknQpFLbkBdyLq2pXlyiT d8wmDe0jjwa+Epkf4ZdtRQjTPUkJRlazjY3UaDREGC0sBpL7RTbSy3vHYP7iUO12mB+d zaCC8SyOgFJJmtJt+LmPrEemUNme16v8shW9PTaPEESlgfqBO0W6iS02MnNq+LtS7q2D 8t7+aY6muOM9JS6mDLCoLNvr6i+cH0NOu/SkZI9U089srJt91fgHW42g/qDIcZ+8DfVC gV2A== X-Gm-Message-State: AODbwcDFhPtZQvUmfYGvYmkTEhqYjfftKO179ZXYRj2KuAP71G/qK18V coXQIB8J3ATnfurzDe7oVfplw6w7GlIe5Dqy3g== X-Received: by 10.202.72.17 with SMTP id v17mr3371949oia.78.1494443466016; Wed, 10 May 2017 12:11:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.66.2 with HTTP; Wed, 10 May 2017 12:11:05 -0700 (PDT) In-Reply-To: References: From: Arnd Bergmann Date: Wed, 10 May 2017 21:11:05 +0200 X-Google-Sender-Auth: fSx6iHaAggr4swotbPSU6Lz98As Message-ID: Subject: Re: [GIT PULL] TEE driver infrastructure and OP-TEE drivers To: Linus Torvalds X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170510_121127_576240_20D7AF04 X-CRM114-Status: GOOD ( 16.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arm-soc , Linux Kernel Mailing List , Linux ARM , Jens Wiklander Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On Wed, May 10, 2017 at 8:55 PM, Linus Torvalds wrote: > On Tue, May 9, 2017 at 12:05 PM, Arnd Bergmann wrote: > > https://lkml.org/lkml/2017/3/10/1277 > > Oh well, that wasn't very useful right now.. Hopefully it comes back eventually. For now, the same contents are also at https://lwn.net/Articles/716737/ >> TEE driver infrastructure and OP-TEE drivers > > Another note: right now this adds a config question for TEE support, > but the only actual TEE driver has a > > depends on HAVE_ARM_SMCCC > > on it. > > Until we get more TEE drivers, might I suggest that we perhaps make > the TEE config option have > > depends on HAVE_ARM_SMCCC || COMPILE_TEST > > so that the generic tee code still gets the compile test coverage, but > we don't confuse people by asking about infrastructure that they can't > possibly use.. > > Hmm? Yes, good idea. I've added this patch to the arm-soc fixes branch that already contains a couple of other things you will get in a few days: From efd467ff4f611d67e9009de2391ce484f9436054 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Wed, 10 May 2017 21:05:16 +0200 Subject: [PATCH] tee: add ARM_SMCCC dependency For the moment, the tee subsystem only makes sense in combination with the op-tee driver that depends on ARM_SMCCC, so let's hide the subsystem from users that can't select that. Suggested-by: Linus Torvalds Signed-off-by: Arnd Bergmann diff --git a/drivers/tee/Kconfig b/drivers/tee/Kconfig index 2330a4eb4e8b..2824398fc5d6 100644 --- a/drivers/tee/Kconfig +++ b/drivers/tee/Kconfig @@ -1,6 +1,7 @@ # Generic Trusted Execution Environment Configuration config TEE tristate "Trusted Execution Environment support" + depends on HAVE_ARM_SMCCC || COMPILE_TEST # until we have more than one driver select DMA_SHARED_BUFFER select GENERIC_ALLOCATOR help