Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1346168rwb; Thu, 6 Oct 2022 11:39:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ku3wMAugzlts8Qn0vwgIanuzLhqN/kGstJJ0SQbXBTy92t566bqkj/eameBQNWBqi3Pdl X-Received: by 2002:a17:903:41d2:b0:17c:a90b:909b with SMTP id u18-20020a17090341d200b0017ca90b909bmr1181123ple.164.1665081559435; Thu, 06 Oct 2022 11:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665081559; cv=none; d=google.com; s=arc-20160816; b=IB5JPPyoyF+HoZEoEhQjzL7cnI6mJNmuKTiWHtpA1CQlUGAvdDAEeypnZVeqa+ZPh8 I8A/CB6qz8+KPPZND4KF+mbxC9uh1xPf3foNZzEtQAEqSq3bs1nNIA3781WHZYhx/3Al S6F8+rgLubTSqTA9EWp+dUokKTan5XH6jsWLoycNkmgqyd0lZTgvoYBBq9mX6rS9f22a 8DWg5xydfpiyH8se0A8nnJz4v16ZuCAGdpMpB62AoaxrkFgw5WXKsGIRqbKOpt0GgVIL NMjr7LhfqISj46mKeirTym9OVgLW+duRTFt6X179PAB+6+LVLKTMA0gq9GwjhYaTcpCo Avcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kvZZAbpP6BsRmYO8eDv4ALVmewEv2pB5Qkzc/cExC/c=; b=Qnc1ggHkeo2aDzxNOx7uGC8kVIgPMEeY3J5BU4QrzRHESpckZeCwU72oNyj+Jb2sCR kU+TzCGriW/OW/+AVfH9018FUowZ91JGV/YUnzMGK9nO1PAZe8iBw5FfET7rqrSz5OXk d4vzDJrPoziGiRFjuyU0+OSIqjvkmE70DIgecl6nLlEr3I4iuhjSE88/DO0wUB0FeuyC FlyEbrHCax9BZ19n5qdFqf1zXsJnKehxfKR+r/VOop0170YUKUvMtSkb7eg0YfvGSVgN QTRm+mG8JzkOxHZg1v3ukPSbl9L/3osBy8fIXY+nUybb80Z6lDV6Zk5CZCwvVtSbCA19 s/3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=LrEjH2cW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r8-20020a63fc48000000b0043b0096d4adsi177512pgk.466.2022.10.06.11.39.06; Thu, 06 Oct 2022 11:39:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=LrEjH2cW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231800AbiJFSUl (ORCPT + 99 others); Thu, 6 Oct 2022 14:20:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231676AbiJFSUj (ORCPT ); Thu, 6 Oct 2022 14:20:39 -0400 Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18E80696F8 for ; Thu, 6 Oct 2022 11:20:39 -0700 (PDT) Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-132e9bc5ff4so3117780fac.7 for ; Thu, 06 Oct 2022 11:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kvZZAbpP6BsRmYO8eDv4ALVmewEv2pB5Qkzc/cExC/c=; b=LrEjH2cWkq3csQCkPUASQkN9+IfYjOMJvwTATtoZz1Pey9Bh1q2Wem5Yxdo77vW1s3 KNzlvLsPIYCLT9GWyJU6iZLu0fjuqCLSWONMRP65fryja4NUDXuaDcm4mILly16tcGC1 E2fSpojOg8qHrBYMXiJgtQDxAH+RE/TguFFxw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kvZZAbpP6BsRmYO8eDv4ALVmewEv2pB5Qkzc/cExC/c=; b=t7CklJSYw/i/M7UXrOZeaSDEPYSkaYOcRwOd3A1DEDmveOqIBcdeTzksrmIq2LJOmC Qgq6WNc7hKV6Asns530gbgG54Td1PgMS1G4YUKjgQUMrO0UpcqIWp11XfVEpAcOw/uqn u9/nSdqUL4Rfhet38R1s4PPpUjR1WaWsh409DjD5WjscWJAUceZZm/rqco7w2BMBl4hj 58K8brQUXHpsCWoIe4mE/cIR7h/BCC6tZog9efq16B6EXnGErxxIxmTTstu0K0J3SaIx yb42Ah988Zc6O43rYkwwcBvAkq46YK70g6i+9TYA+mHTk8RdqhfTUrdt2MFt9O5fH7Xl JsKQ== X-Gm-Message-State: ACrzQf08SFoxLCQq+XDrb3xq3ghmtBNdIuG3IWtGU/FaUl3CiFXrkbM9 HQCosyxXgtkpmUYpXW8cTyCTWnOXG2+DbQ== X-Received: by 2002:a05:6870:4286:b0:132:756f:6b97 with SMTP id y6-20020a056870428600b00132756f6b97mr575676oah.38.1665080437204; Thu, 06 Oct 2022 11:20:37 -0700 (PDT) Received: from mail-oo1-f44.google.com (mail-oo1-f44.google.com. [209.85.161.44]) by smtp.gmail.com with ESMTPSA id y31-20020a056870459f00b0010bf07976c9sm146782oao.41.2022.10.06.11.20.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Oct 2022 11:20:34 -0700 (PDT) Received: by mail-oo1-f44.google.com with SMTP id c17-20020a4aa4d1000000b0047653e7c5f3so1981328oom.1 for ; Thu, 06 Oct 2022 11:20:33 -0700 (PDT) X-Received: by 2002:a05:6830:611:b0:65c:26ce:5dc with SMTP id w17-20020a056830061100b0065c26ce05dcmr531643oti.176.1665080433520; Thu, 06 Oct 2022 11:20:33 -0700 (PDT) MIME-Version: 1.0 References: <20221002002326.946620-1-ira.weiny@intel.com> <20221002002326.946620-3-ira.weiny@intel.com> In-Reply-To: From: Linus Torvalds Date: Thu, 6 Oct 2022 11:20:16 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/4] tee: Remove vmalloc page support To: Sumit Garg Cc: =?UTF-8?B?UGhpbCBDaGFuZyAo5by15LiW5YuzKQ==?= , "ira.weiny@intel.com" , Jens Wiklander , Andrew Morton , Al Viro , "Fabio M. De Francesco" , Christoph Hellwig , "op-tee@lists.trustedfirmware.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 5, 2022 at 11:24 PM Sumit Garg wrote: > > Sorry but you need to get your driver mainline in order to support > vmalloc interface. Actually, I think even then we shouldn't support vmalloc - and register_shm_helper() just needs to be changed to pass in an array of actual page pointers instead. At that point TEE_SHM_USER_MAPPED should also go away, because then it's the caller that should just do either the user space page pinning, or pass in the kernel page pointer. JensW, is there some reason that wouldn't work? Linus