From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754791AbcAHNmS (ORCPT ); Fri, 8 Jan 2016 08:42:18 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:52942 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751025AbcAHNmQ (ORCPT ); Fri, 8 Jan 2016 08:42:16 -0500 Date: Fri, 8 Jan 2016 05:42:01 -0800 From: Christoph Hellwig To: Douglas Anderson Cc: Russell King , Robin Murphy , Tomasz Figa , Marek Szyprowski , Pawel Osciak , Dmitry Torokhov , corbet@lwn.net, akpm@linux-foundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/3] common: DMA-mapping: add DMA_ATTR_NOHUGEPAGE attribute Message-ID: <20160108134201.GA20665@infradead.org> References: <1452213405-22942-1-git-send-email-dianders@chromium.org> <1452213405-22942-3-git-send-email-dianders@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1452213405-22942-3-git-send-email-dianders@chromium.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2016 at 04:36:44PM -0800, Douglas Anderson wrote: > This patch adds the DMA_ATTR_NOHUGEPAGE attribute to the DMA-mapping > subsystem. > > This attribute can be used as a hint to the DMA-mapping subsystem that > it's likely not worth it to try to allocation large pages behind the > scenes. Large pages are likely to make an IOMMU TLB work more > efficiently but may not be worth it. See the Documentation contained in > this patch for more details about this attribute and when to use it. > > Note that the name of the hint (DMA_ATTR_NOHUGEPAGE) is based on the > name MADV_NOHUGEPAGE, which has the same meaning. If we have expected > users, we could also add MADV_HUGEPAGE which has the opposite meaning of > this hint. A user of this features seems to be missing in the series. Please don't add any clutter with unclear usage to the kernel unless there is a real need which can be deonstrated in form of patches and numbers.