Received: by 10.192.165.148 with SMTP id m20csp3203938imm; Mon, 7 May 2018 08:20:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq2x7/Dd7/vacN7bT6LEvVM1oyUYGHQFA2I0bxMIytgkfNsjRjgLz4J/rfh5O+3JbYaFKJf X-Received: by 2002:a24:7d87:: with SMTP id b129-v6mr1510922itc.61.1525706400437; Mon, 07 May 2018 08:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525706400; cv=none; d=google.com; s=arc-20160816; b=c6BeoQ+s3JQHqBOZHs9uMxWvPQgJ5SZx3y9JpwJ5+qa1Y7WmwJQO4mL8Xe0sk9o3Ce 2QyjXIUfy+XnDR4mEsF5snKzEl6Xsb2BPEPh8gZJB0HbO0uch+HY4v0PmLkR7N4GtUOW rsTlg2ULTXG+M19Q3Pf5Ow7N29IBbp5lg+9TmJjiFI/bEh5YlhaXOczMv9TogtOhfboM 9+zNEt7UE4ATgWdnXjSLO9sPPwkzIilsiUuryyR1ZucRRHiaOWQ0JTN2QgiH9HoAz4A1 phP6AaBXr3RpPaYdvPB85ZMnsZCl+lwqqBHO8WFk3LP4S2sCcpIv1apJduo268asFOd6 aM/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=4ExGttDVV7I8iu0xkX3yvfYVz7+EUu5Gr9DPwfpE8sA=; b=UeSYHDk4ju1Osk3XRxbDSKRGbZMN8yRBZqre90Xb6v1fytxoRAtGS2/ftJ6HSrR0q3 C+O6K6KAbASISoaKquJdSKurnQdtAgyXKVOGhT9mxkIGwQny/LbTx1D9IUg9gMyqOnr+ VUgBiMBk5tpYMxM3b69aMttf+odgBjdAitksLZHU3ZRYdvlN+EjGWFnXV8gjOOSjC7ED S2cviS7ToybtdEm9ounz3AjPELGOP8y2Yo3yOnfvxzZdGrNJ0fkdVjkmm0LjKQHvX7Jb QzRwkDvmT1a/uXwpzyi9gwN7r4hdZwaEglVUaOXWWsbjhKIAHKIsFLNgQehBovTCWJqr CuLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=g/KTXi1U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z184-v6si7205588itd.97.2018.05.07.08.19.46; Mon, 07 May 2018 08:20:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=g/KTXi1U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752360AbeEGPTa (ORCPT + 99 others); Mon, 7 May 2018 11:19:30 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55810 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752276AbeEGPT1 (ORCPT ); Mon, 7 May 2018 11:19:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4ExGttDVV7I8iu0xkX3yvfYVz7+EUu5Gr9DPwfpE8sA=; b=g/KTXi1U6LYwHk26gb8mJzkue eMdhN0Kn8iIwZF5zfC87bz54UyRvi4zyV/4lD4y/+VXEDRLb+WiATygP5S9yyOeVPB1J1yG7m9xHH WR1taXZ2UJrEu4yLk5lXIdxOjF0q37UB6l5jO4bZSCyw5JgEBh/0i5Aa2Y6zaynhZ+80m/44Qtl7t EBia2qadVTffLfJLvqZpUC/bhj2yH4l8B0PbFks0DgcNwr0941jcTOh+li6z1CCFQuZXIujP9Blyw ExJdkGKqVu2xNbo1toQKfeuhwDmWzY+D43KCjrYKGNFtCe8+xTB5VCjySMdpDF8iwlFOJoz/Of7Tj m96kTXYlQ==; Received: from 177.41.109.86.dynamic.adsl.gvt.net.br ([177.41.109.86] helo=vento.lan) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fFhv7-0001h8-EH; Mon, 07 May 2018 15:19:21 +0000 Date: Mon, 7 May 2018 12:19:16 -0300 From: Mauro Carvalho Chehab To: Laurent Pinchart Cc: Fabien Dessenne , Jean-Christophe Trotin , Yasunari Takiguchi , Sakari Ailus , "Luis R. Rodriguez" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: Are media drivers abusing of GFP_DMA? - was: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love Message-ID: <20180507121916.4eb7f5b2@vento.lan> In-Reply-To: <3561479.qPIcrWnXEC@avalon> References: <20180426215406.GB27853@wotan.suse.de> <20180505130815.53a26955@vento.lan> <3561479.qPIcrWnXEC@avalon> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 07 May 2018 16:26:08 +0300 Laurent Pinchart escreveu: > Hi Mauro, > > On Saturday, 5 May 2018 19:08:15 EEST Mauro Carvalho Chehab wrote: > > There was a recent discussion about the use/abuse of GFP_DMA flag when > > allocating memories at LSF/MM 2018 (see Luis notes enclosed). > > > > The idea seems to be to remove it, using CMA instead. Before doing that, > > better to check if what we have on media is are valid use cases for it, or > > if it is there just due to some misunderstanding (or because it was > > copied from some other code). > > > > Hans de Goede sent us today a patch stopping abuse at gspca, and I'm > > also posting today two other patches meant to stop abuse of it on USB > > drivers. Still, there are 4 platform drivers using it: > > > > $ git grep -l -E "GFP_DMA\\b" drivers/media/ > > drivers/media/platform/omap3isp/ispstat.c > > drivers/media/platform/sti/bdisp/bdisp-hw.c > > drivers/media/platform/sti/hva/hva-mem.c > > drivers/media/spi/cxd2880-spi.c > > > > Could you please check if GFP_DMA is really needed there, or if it is > > just because of some cut-and-paste from some other place? > > I started looking at that for the omap3isp driver but Sakari beat me at > submitting a patch. GFP_DMA isn't needed for omap3isp. > Thank you both for looking into it. Regards, Mauro Thanks, Mauro