LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: <Yasunari.Takiguchi@sony.com>
To: <mchehab+samsung@kernel.org>, <laurent.pinchart@ideasonboard.com>,
<fabien.dessenne@st.com>, <jean-christophe.trotin@st.com>,
<sakari.ailus@linux.intel.com>
Cc: <mcgrof@kernel.org>, <linux-mm@kvack.org>,
<linux-kernel@vger.kernel.org>, <linux-media@vger.kernel.org>,
<Yasunari.Takiguchi@sony.com>
Subject: RE: Are media drivers abusing of GFP_DMA? - was: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love
Date: Thu, 10 May 2018 04:39:58 +0000 [thread overview]
Message-ID: <02699364973B424C83A42A84B04FDA854A3893@JPYOKXMS113.jp.sony.com> (raw)
In-Reply-To: <20180505130815.53a26955@vento.lan>
Dear Mauro
> -----Original Message-----
>
> 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?
About drivers/media/spi/cxd2880-spi.c,
we referred to kmalloc of driver/spi/spi.c spi_write_then_read() function and made this code.
Regards,
Takiguchi
prev parent reply other threads:[~2018-05-10 4:40 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-26 21:54 Luis R. Rodriguez
2018-04-27 1:09 ` [Lsf-pc] " Rik van Riel
2018-04-27 5:35 ` Christoph Hellwig
2018-04-27 7:18 ` Michal Hocko
2018-04-27 16:07 ` Christopher Lameter
2018-04-27 16:18 ` Matthew Wilcox
2018-04-27 16:36 ` Christopher Lameter
2018-04-28 8:33 ` Christoph Hellwig
2018-04-27 16:37 ` Michal Hocko
2018-04-28 8:33 ` Christoph Hellwig
2018-04-28 8:30 ` Christoph Hellwig
2018-04-27 16:14 ` Luis R. Rodriguez
2018-04-27 16:28 ` Matthew Wilcox
2018-04-28 8:42 ` Christoph Hellwig
2018-04-28 18:55 ` Luis R. Rodriguez
2018-04-28 19:46 ` Julia Lawall
2018-04-28 20:41 ` Matthew Wilcox
2018-04-29 14:34 ` Julia Lawall
[not found] ` <CAFhKne8u7KcBkpgiQ0fFZyh5_EorfY-_MJJaEYk3feCOd9LsRQ@mail.gmail.com>
2018-05-03 12:03 ` Michal Hocko
2018-05-03 12:13 ` Christoph Hellwig
2018-05-03 8:20 ` Geert Uytterhoeven
2018-05-05 16:08 ` Are media drivers abusing of GFP_DMA? - was: " Mauro Carvalho Chehab
2018-05-07 13:26 ` Laurent Pinchart
2018-05-07 15:19 ` Mauro Carvalho Chehab
2018-05-14 8:00 ` Fabien DESSENNE
2018-05-14 10:35 ` Mauro Carvalho Chehab
2018-05-14 10:39 ` Mauro Carvalho Chehab
2018-05-15 7:30 ` Fabien DESSENNE
2018-05-15 8:27 ` Laurent Pinchart
2018-05-15 10:30 ` Mauro Carvalho Chehab
2018-05-15 16:24 ` Luis R. Rodriguez
2018-05-10 4:39 ` Yasunari.Takiguchi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=02699364973B424C83A42A84B04FDA854A3893@JPYOKXMS113.jp.sony.com \
--to=yasunari.takiguchi@sony.com \
--cc=fabien.dessenne@st.com \
--cc=jean-christophe.trotin@st.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mcgrof@kernel.org \
--cc=mchehab+samsung@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--subject='RE: Are media drivers abusing of GFP_DMA? - was: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).