Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2222406pxb; Fri, 5 Feb 2021 12:00:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmjI8V78jkHFY4PBjFqa18hdn+Bsu110c6JKo+yBE0sEM+MbYythfTcf2AwkGnzjNJ/iuW X-Received: by 2002:a50:ff0d:: with SMTP id a13mr5065288edu.321.1612555208181; Fri, 05 Feb 2021 12:00:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612555208; cv=none; d=google.com; s=arc-20160816; b=nVVbrg2fTISSvsgFh/CHxly3LU2gvGmq4millM0m9tGWyPCVx0qSTrzZ/5cjPYgmZT tQ8AsGOOjB94SH4DS/KLrbT3pkYFYikDlSMglEtGZye+itRgiCqn3oOklWCVP/eLmGlX 9KY5EPOEXbOCevvH2rewf+WkAGcChbZT7XrZ72/bxS+p9PwK2vZ3HBbTxFfntscr2Dn7 6SLNQYkX7lwns86JDfIGSGl5p8NUee1rOx1jmjEVRuY8ySP2kX83HY0ykJ89pNQJSq2u ptLBUKiga61zLAS9zmp52ZC2R+C1AN1l8TxeFQMR7igHF7QxHrsR/Ofcvk7Irdu2TN9z 4kpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=JpFQEtQj4C0OZQX0JhcEbS+mtM0J6361EvZ8pnT2TSE=; b=D0JgppohAWpQfX8TN9kidj14GlGz9s7H/i9Fn/g42KA1IMUM16ji2DMo3O1YTB+xbs ltY23wC0KdV3MtaczB3XKiR5qANLrRWWWIJvUz+4S8Wi2l6/c6MQT8nUqeGAdVdoLwZ6 XZ1e9yqZDPtpPUIZ/tElIdcEraW8aU9xpNoIMuLiQd8FpU6fGINENDqC7YzrD1mLSt/d FD1yMTMobgOgNyR2PhNIPhlxsxFoxQ5IXXWhbBBEEkKkcmaPUmZaH5FP6YOSFaWEaEER dCDIPwLzQZUaT8/f2rJ3RFI+3OXs/7dXMK+tVPgQzxo0hVw6NWMj37ASSN5+zhoprY3Z /flQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="L/O8FpF6"; 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 e17si6482547edz.241.2021.02.05.11.59.42; Fri, 05 Feb 2021 12:00:08 -0800 (PST) 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="L/O8FpF6"; 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 S233244AbhBESLu (ORCPT + 99 others); Fri, 5 Feb 2021 13:11:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233572AbhBESF6 (ORCPT ); Fri, 5 Feb 2021 13:05:58 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 044C3C061756 for ; Fri, 5 Feb 2021 11:47:40 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id m22so11542697lfg.5 for ; Fri, 05 Feb 2021 11:47:39 -0800 (PST) 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:content-transfer-encoding; bh=JpFQEtQj4C0OZQX0JhcEbS+mtM0J6361EvZ8pnT2TSE=; b=L/O8FpF6LlQ1+mtrZtK+VtKD+UUwgDHsysQWj+/uvhSwZGo1Eh2QdS4GfGMzmkCV/L dDZA9pKSv4B4myTCSTpIhhomB2+Z/K4c+q2WwpEg3Xwbj+ZBIPKawEHR0zlgnwaP1gAK Z1x5iSvolMkSNC0wpljVeFY3ptOa5llNld5RUARcT8gw66Aed7NI/BbM+AczKGjIEqTz r6wsUKUQaXnzMUvn6NGWqiMk7ykLYy/iHQGcyltHzQJo5Gl4qLat0QDAP/QPgZyuKIVv RczfcHPCgoEYDvo3BXUC64rPEIgnPcyVpl9/7EgSRfq4SEZq8zOSlOBbcbSWxpBn8YVC w/WA== 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:content-transfer-encoding; bh=JpFQEtQj4C0OZQX0JhcEbS+mtM0J6361EvZ8pnT2TSE=; b=A0pN0oVHCZqGiWg307Q2N7JRQM2eg9xhd7UGeoGQdUNwZuCosuxCXHXNVr0J5f6c57 aiNctui+9a5KTbXCLFZ8qzBAXB+kERI4Kwxu6SwO4JRDDI4UPn2wYnVnXnM8durh8g6I +aosQJxUvGo7WMqK69+fnkpYo61Hi+vD/miu9GGfhPg/q/uGg7B/sjCbmI2w6JzGGTr1 6pShsTuhgH4ILdvyW4374m0ZNfdWvVfF8xVhD+vU22EAmQbuktHViJMgmv4ppTKcHfTa z4PJY3w9Pvb6hx94gj0Mk5mKEo4l02MO9StwcF2fX2V2aFdoNWuNKPcowZVQMtW9+k/l A2MQ== X-Gm-Message-State: AOAM533uCVFfu3YSO+yTIWPmTjDNR3MpbXwFxcDM42L52hhGxbYZetik cPjgVQplAZLN69dt0RvGR4sR3ZgPpu3RA/F2IHKNWQ== X-Received: by 2002:ac2:5590:: with SMTP id v16mr3187334lfg.626.1612554458492; Fri, 05 Feb 2021 11:47:38 -0800 (PST) MIME-Version: 1.0 References: <20210205080621.3102035-1-john.stultz@linaro.org> <20210205080621.3102035-4-john.stultz@linaro.org> <8a4cacb7-3042-53c7-02fe-de18cc49fc0e@amd.com> In-Reply-To: <8a4cacb7-3042-53c7-02fe-de18cc49fc0e@amd.com> From: John Stultz Date: Fri, 5 Feb 2021 11:47:25 -0800 Message-ID: Subject: Re: [RFC][PATCH v6 3/7] drm: ttm_pool: Rework ttm_pool_free_page to allow us to use it as a function pointer To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: lkml , Daniel Vetter , Sumit Semwal , Liam Mark , Chris Goldsworthy , Laura Abbott , Brian Starkey , Hridya Valsaraju , Suren Baghdasaryan , Sandeep Patil , Daniel Mentz , =?UTF-8?Q?=C3=98rjan_Eide?= , Robin Murphy , Ezequiel Garcia , Simon Ser , James Jones , linux-media , dri-devel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 5, 2021 at 12:28 AM Christian K=C3=B6nig wrote: > Am 05.02.21 um 09:06 schrieb John Stultz: > > This refactors ttm_pool_free_page(), and by adding extra entries > > to ttm_pool_page_dat, we then use it for all allocations, which > > allows us to simplify the arguments needed to be passed to > > ttm_pool_free_page(). > > This is a clear NAK since the peer page data is just a workaround for > the DMA-API hack to grab pages from there. > > Adding this to all pages would increase the memory footprint drastically. Yea, that's a good point! Hrm... bummer. I'll have to see if there's some other way I can get the needed context for the free from the generic page-pool side. Thanks so much for the review! -john