Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp348455pxj; Thu, 10 Jun 2021 02:12:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuCeX1U50vzhh++et1BlEEZsZij8D+VIYqTu0cVruz6Gh387BHeFoR/mAZrVUwx7SuqcW1 X-Received: by 2002:a17:907:7747:: with SMTP id kx7mr3543879ejc.400.1623316326937; Thu, 10 Jun 2021 02:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623316326; cv=none; d=google.com; s=arc-20160816; b=LSW3wgygXtg2FwMwTrlWL/XiqYLFI7AkEKVWkhb1ntwlnzXTeVN0cdmgmGkfm7SFtC 3vHeS7CxuB2tOauuaJe9mYyBFuGvEJ295CB63Ok64DqXK8M9x22xd7xTLdrbhlLdUwJb D83tMz6oZm0884L++UuMS2bE1/u/rovQRHnWZ+MaMkAvHjT11UHmxO/7MDWpk2R1uLWV 8jfWJwDI8mb0ckdjifTgdDNcSwJS4+hHXp4J6fnjeNYRTLFEcKTdCxP+jOG5UnzPuNdx vhMIFlDaBZ2lnEVDfWQoL0h5QoPuBz5b0oCc/yEkTEFAId3sJQHI0L/lqv6qut8GTA6l Pn4Q== 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=9sWa4PTmyAX1nPFLXf55YhYnjMvPUrhFAQy3A/xW4Ro=; b=FqgLpYjTxgZXS9BgxDvXtKU6HCOzeq6n04keNEu8ek9Ee0F9TaXzuB1+5zUiHQ9Rn7 z5tIV9OVpEj4l8xd9g1qmnucs0UrnLIT9Oa5w6h+v6nAOpeG7akRCJgUieoqTng9E/ZV h0p2RqQHj5JoCDAVsK7xUcu5K9lxil/6AK30JnSKoKint8X3MJzXFGH5taEWp90havSm JviwL2XtDNVdmfW8kOQVZjWYK2Zw1l+MiPUnLpm4YK6+f+pW4Ye+JiIcaXRGLOB28Xxz 28EJ8NXev64bIZAkRe7gTOBznJcS0LeMKOpbt4utRUUVcJjb+6vfeHnHkFq02teieJ9W +ixQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tcvwXsQc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l5si1912806ejx.554.2021.06.10.02.11.41; Thu, 10 Jun 2021 02:12:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tcvwXsQc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230026AbhFJJL3 (ORCPT + 99 others); Thu, 10 Jun 2021 05:11:29 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:51076 "EHLO mail-wm1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbhFJJL3 (ORCPT ); Thu, 10 Jun 2021 05:11:29 -0400 Received: by mail-wm1-f45.google.com with SMTP id d184so5733829wmd.0 for ; Thu, 10 Jun 2021 02:09:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9sWa4PTmyAX1nPFLXf55YhYnjMvPUrhFAQy3A/xW4Ro=; b=tcvwXsQcFO4v2O30nFo/+ootpa3l5mnUGTfVmArzpX2Q6gSj6uNQbr/Hq82FdJDy2n QFEysE0lLnnB+vp5iGctu6f+ADXysjN6bJ81UPXfRe67bk2Ufjz69p8B6nobT98v1rxG zX5QasRn4NreeJwvCbtod2288rYVJlI8kr9Il0F6SxuMhT0uDVuXZSHLIRfzNy5oNep4 rGvAV1bcWJhF9yct/An65qa030UVVyd4jhUA5PDbS97uVrpW+Rk5tBDtpmxfl7RIDxgz VtA65n7qkCPaDjQvmJd1sRgWOjyRw7TwC7cZdQZ82q+XB8rJ/7T2VzBtxhCsJt0+w09H 70qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9sWa4PTmyAX1nPFLXf55YhYnjMvPUrhFAQy3A/xW4Ro=; b=mOmPzYCApvxIv9SGpLjG4S1nSFpLhVW3CIKIo4NcpDmCwApFqXlcSiXRNGfoNhQxJu i4UM3Fa26rftD4ZI8Fos+mm3SLrb1PN55AMB/+/CxWNdkUFq96gvtdPaycM55oA8sReL Y3ZO6xUt8HMS9u8+B0RDEd2dUTAciO3OhePyomeuwI95elDBbcAI8E9t/9GDqA/drZWC +Vx7LlmEw+PQ6COy+BYe4Z30sDybkd6euY5IRWXRGEv8Gksxc+lFapTFc0p5+XlIgKIx ZdtGHSpD7aQ/vsR2IoKHu9JMBHYS28ASGn5tCa09lklTKXYNfRnYSh2jdQsK+UTCdaZ8 EeNg== X-Gm-Message-State: AOAM533jiGRsMl2zxmkshaTwEUG2Se95rwwnvC2X9DgUSbaj2/6mNARg VF2oCuragX9vVWkJbfzBjdSnUIcfVREH0H1B8Vcs3w== X-Received: by 2002:a7b:c853:: with SMTP id c19mr14237840wml.30.1623316107589; Thu, 10 Jun 2021 02:08:27 -0700 (PDT) MIME-Version: 1.0 References: <20210609102324.2222332-1-jens.wiklander@linaro.org> <20210609102324.2222332-7-jens.wiklander@linaro.org> <20210609145811.GJ4910@sequoia> In-Reply-To: <20210609145811.GJ4910@sequoia> From: Jens Wiklander Date: Thu, 10 Jun 2021 11:08:16 +0200 Message-ID: Subject: Re: [PATCH 6/7] firmware: tee_bnxt: use tee_shm_alloc_kernel_buf() To: Tyler Hicks Cc: Linux Kernel Mailing List , Linux ARM , OP-TEE TrustedFirmware , Sumit Garg , Herbert Xu , Sakkinen , Sasha Levin , Thirupathaiah Annapureddy , Vikas Gupta , "David S . Miller" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 9, 2021 at 4:58 PM Tyler Hicks wrote: > > On 2021-06-09 12:23:23, Jens Wiklander wrote: > > Uses the new simplified tee_shm_alloc_kernel_buf() function instead of > > the old deprecated tee_shm_alloc() function which required specific > > TEE_SHM-flags. > > > > Signed-off-by: Jens Wiklander > > Since this series is essentially a rewrite of the shm allocation logic, > it is worth pointing out that the rewrite still uses contiguous > allocations (from alloc_pages()). The tee_bnxt_fw driver is performing > an order-10 allocation which is the max, by default. I've only tested > tee_bnxt_fw when it was built-in to the kernel and tee_bnxt_fw_probe() > was called early in boot but I suspect that it might not succeed when > built as a module and loaded later after memory is segmented. I think > this driver would benefit from being able to request a non-contiguous > allocation. > > Is this rewrite a good time to offer drivers a way to perform a > non-contiguous allocation? Good idea, I'll look into that. I'll add it as a separate patch if it works OK. Cheers, Jens