Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp97368pxv; Wed, 7 Jul 2021 21:25:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaMFp90sbsIg2jKRy+h15Y++1zsTjqxA4kWcznIbugXVOUj3ps6LRK2CnEjeSQI4O6865S X-Received: by 2002:a17:906:1495:: with SMTP id x21mr23962914ejc.209.1625718345143; Wed, 07 Jul 2021 21:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625718345; cv=none; d=google.com; s=arc-20160816; b=AHJiacPCC2ovdPkEHtCMykRtg+tdmGcuk9GEzUnPsaBi1fV8LSGxbNvd/6PuBI3WyD uFHfNs9OjlZ3YU2+5n/CnANvQ4vSAl+zXz+Zlm9qMsudTG0leKAAe6OKDihd6brS577Z feCxAzRMeGjBDUF8lEfUxJHxyvIhKjhFqq3Kq/uxB/r52wNzhqTKZbSsCtT8fVJY78J/ sOEWgBHlLcWRgxWGQZZS+cs6aySXomMZAJbvyE/N1PCZrqGsbG+bKit1GNANdRE3Rkip CUx9Wsg1K8ePK1jVe5J+BDjRGPj86uNnRmiYS7nCIsVTprn75JNaPZtLnGoHznG7havX 86Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=77m8A8TvwRFVR/JL6IH9OVAJZSv5m+xL9r+uut0gWrE=; b=IcyqWojB1zlaeqAg2lsBejJxeRDnqeHaev6c50xgztXRTx0rMNqURni3R/TWgla0JE BPb1OqKwoPUk5ueuGvpCpfyWclKubg3k8Lbx1vCd/lE2+VLDLZ7/C5jjZTwJyGgwjRbn GBI5eB29Q+9yTMRJP8y0rYQ6nXRfS5O1EB2JSiQQbUlUcHbQYoKhYZTo0wVs2MSqJzW3 67eqa9D6iMyuf/KtJvMjoQXjJPJmFjuZ9rT170zjGSRa17w2S8Xq3mboVStyLFNFs3ZI o+TWjLm2fla//DZmlLSl3M3QlZE8u2mPCmR18qnSQbebGuBpZg4ZuVtu98oX1KpoJghs ORPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XPt01X6U; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd17si1564107ejc.732.2021.07.07.21.25.21; Wed, 07 Jul 2021 21:25:45 -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=@infradead.org header.s=casper.20170209 header.b=XPt01X6U; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbhGHEYE (ORCPT + 99 others); Thu, 8 Jul 2021 00:24:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbhGHEYC (ORCPT ); Thu, 8 Jul 2021 00:24:02 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 815A4C061574; Wed, 7 Jul 2021 21:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=77m8A8TvwRFVR/JL6IH9OVAJZSv5m+xL9r+uut0gWrE=; b=XPt01X6UkV7rGd6LHEXZR1NKe4 3yW7hiUcn60dUf2JhvwoW4h0q/Wu7LtxE+5EazlbwldAKTxr19PIvq+MCPol0O6DC8NjXFcqJ/WKX TjWv3OT6OB81SAXqjy4FsIVWSmxeCZ8FncVaHc540DT0r0OzOaawhAwnRSR4Ing9OSxJb8O0ke31Q YbpZeSn3Y3HtJdYkyZCRMqg70Qm53VTdYsIY/9aKL21jMOW9AMiOzicFQ3eg5LQGLrwYuPCM0z1pb 5/1FxXV97+cOCmgWBHl2dZhNe9bXkjHSeMTkKYNk8A54+Y2fIJh3LoUeNvNUE8so8qyA82+kJq78O HiV1XAew==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m1LWv-00D4oo-4R; Thu, 08 Jul 2021 04:21:02 +0000 Date: Thu, 8 Jul 2021 05:20:53 +0100 From: Christoph Hellwig To: John Stultz Cc: Christoph Hellwig , lkml , Daniel Vetter , Christian Koenig , Sumit Semwal , Liam Mark , Chris Goldsworthy , Laura Abbott , Brian Starkey , Hridya Valsaraju , Suren Baghdasaryan , Sandeep Patil , Daniel Mentz , ??rjan Eide , Robin Murphy , Ezequiel Garcia , Simon Ser , James Jones , linux-media , dri-devel , Mel Gorman , linux-mm Subject: Re: page pools, was Re: [PATCH v9 1/5] drm: Add a sharable drm page-pool implementation Message-ID: References: <20210630013421.735092-1-john.stultz@linaro.org> <20210630013421.735092-2-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 07, 2021 at 12:35:23PM -0700, John Stultz wrote: > So, as Christian mentioned, on the TTM side it's useful, as they are > trying to avoid TLB flushes when changing caching attributes. > > For the dmabuf system heap purposes, the main benefit is moving the > page zeroing to the free path, rather than the allocation path. This > on its own doesn't save much, but allows us to defer frees (and thus > the zeroing) to the background, which can get that work out of the hot > path. I really do no think that is worth it to fragment the free pages.