Received: by 10.192.165.148 with SMTP id m20csp3085381imm; Mon, 7 May 2018 06:27:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqwWkaVmMGUdukDHex4Fr2rvqMADe8Lba94F9L2GB5kDUQrAtwjvVwWkZizyXfDzUKI+2A4 X-Received: by 2002:a63:7250:: with SMTP id c16-v6mr29610273pgn.385.1525699645948; Mon, 07 May 2018 06:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525699645; cv=none; d=google.com; s=arc-20160816; b=gtB0S28E6S1pfmWi4REQNOAnFAjKPpuadcpSBNd1RNo7YxdhYdX0svgUo76fMULspp CwqgJ4KD0mvrS+OiAdzMier2a5oEVAXYfMNM/tTfA5lmeLx56Nch2Zo+VHyS3Ajbj1Ru b5kV/saOko21j4vynwmFVDKBW/nSqKy5eNYBW2/Wea3TGL1RFTOgNc3owHsDmSuyLtKq OYL5LaqMfvjGJfTMVbXePny0BBWJsRwbUzLhoZVrx69lIeEirTipn8PgKRaSaZCAi4XY h5drmIly2ybQr/FiKwQ0K+p+mXV/KzFb4uhS78saRa5wjlcdKnVE9wej+9uNYLw8xkYZ gVDA== 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:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=1HbP3rInsq5wDSuRvRIxT/NNbFEb4qWFhA/LrArJuFs=; b=EmMvjRt6hjZcpTjwuYtLuaQ41ETcatbdbO2tviYpFfMn5h0K4JZOBCi32z7tOo3aMQ 5++B1LyZK8zZqR+QxnZW44PSXV9y37vGyxrI/9uISv5FjOg62hmTvTpIWHbJJ0YAZcSE Dmr+NVXq0A2Net4s5QFBfT96Jv7mYhZw/9grlZMFJkFJfeWqouq+l80L0KRYhscyOEUw dHYdSCYCSqrLWYKIdTUSwB/jQWb7ap0Glr2HC63M4RmnEscU+1uq+BpzoWALuSNqRrd+ EpjzBqxSijcnaPjFCu1E1ScwNL5Hhv6AhWc5AH4oEbk6AGaEPGlbbd1OAYKeoCLBpWkY cWXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HonEe/cq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8-v6si12851725plp.468.2018.05.07.06.27.10; Mon, 07 May 2018 06:27:25 -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=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HonEe/cq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752290AbeEGNZ4 (ORCPT + 99 others); Mon, 7 May 2018 09:25:56 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:51050 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751884AbeEGNZx (ORCPT ); Mon, 7 May 2018 09:25:53 -0400 Received: from avalon.localnet (i60-36-34-191.s41.a047.ap.plala.or.jp [60.36.34.191]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 04DE155C2; Mon, 7 May 2018 15:25:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1525699552; bh=PBRS37V0e86BiL9qPVSnEjKJUQV0+89PdOUJ6M3gk/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HonEe/cq3ub+nUUmNxdd/ojQGrxgMNFW3R13fjMm8VVEgjXHzY4CA7XeQuLMRJiwe pIwym7xzY3FggJf7jBtsiE0J7od2Czo/70kvnDoxCZZzBbWYNgZdFFOO+mF+SELzXC KNK8gR5JpcF/EJrCspb6QBzmxrBZSs1e0f8GwEmQ= From: Laurent Pinchart To: Mauro Carvalho Chehab 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 Date: Mon, 07 May 2018 16:26:08 +0300 Message-ID: <3561479.qPIcrWnXEC@avalon> Organization: Ideas on Board Oy In-Reply-To: <20180505130815.53a26955@vento.lan> References: <20180426215406.GB27853@wotan.suse.de> <20180505130815.53a26955@vento.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Regards, Laurent Pinchart