From: Tony Lindgren <tony@atomide.com>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>,
linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org
Subject: Re: [PATCH 3/3] ARM: OMAP: Remove plat-omap/common.c
Date: Mon, 5 Nov 2012 08:12:21 -0800 [thread overview]
Message-ID: <20121105161221.GI4953@atomide.com> (raw)
In-Reply-To: <5097DFD9.5030800@ti.com>
* Tomi Valkeinen <tomi.valkeinen@ti.com> [121105 07:50]:
> On 2012-11-05 17:36, Tony Lindgren wrote:
> > * Tomi Valkeinen <tomi.valkeinen@ti.com> [121105 00:06]:
> >> On 2012-11-02 20:54, Tony Lindgren wrote:
> >>>> * Santosh Shilimkar <santosh.shilimkar@ti.com> [121102 01:56]:
> >>>>> On Friday 02 November 2012 02:19 PM, Tomi Valkeinen wrote:
> >>>>>> On 2012-11-02 08:38, Santosh Shilimkar wrote:
> >>>>>>>
> >>>>>>> Lets not move this in DMA code since the above is really related
> >>>>>>> to frame buffer. It reserves more DMA area for dma_alloc_coherent()
> >>>>>>> etc than default 2 MB. Infact, we should no longer need this with
> >>>>>>> CMA and memblock in place.
> >>>>>>>
> >>>>>>> Tomi,
> >>>>>>> Can we not get rid of the above memory reservation ?
> >>>>>>
> >>>>>> Yes, I think so. This one is only used for the old omapfb, i.e. omap1,
> >>>>>> and I have no means to test it out, though. But below is a patch to
> >>>>>> remove it. I also attached the patch, as it looks like thunderbird wants
> >>>>>> to reformat the pasted patch... I'll remove the
> >>>>>> CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE from the omapfb driver's Kconfig file
> >>>>>> in my tree later.
> >>>
> >>> Hmm actually, is it safe to remove for omap1, or should we
> >>> still keep it around for omap1?
> >>
> >> Why wouldn't it be safe? Do you mean that CMA doesn't work on omap1,
> >> or...? I'm no expert on CMA, but as far as I can see with it's ARM
> >> generic stuff.
> >
> > Just wondering after your comment "This one is only used for the old
> > omapfb, i.e. omap1". But sounds like it should no longer be needed
> > there either if I parse that right.
>
> I meant that the code that was moved in the patch "Remove
> plat-omap/common.c" is only compiled and ran on omap1, when the old
> omapfb has been enabled in the Kconfig. It's not used on omap2+.
>
> old omapfb uses dma_alloc_*() to allocate memory, so if CMA works on
> omap1, I think this code in question can be removed, as done in my patch.
OK thanks for clarifying it.
Regards,
Tony
prev parent reply other threads:[~2012-11-05 16:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-01 22:48 [PATCH 0/3] more omap clean-up for ARCH_MULTIPLATFORM Tony Lindgren
2012-11-01 22:48 ` [PATCH 1/3] ARM: OMAP: Remove unnecessary mach and plat includes Tony Lindgren
2012-11-01 22:48 ` [PATCH 2/3] ARM: OMAP: Remove NEED_MACH_GPIO_H Tony Lindgren
2012-11-02 14:25 ` Mark Brown
2012-11-01 22:48 ` [PATCH 3/3] ARM: OMAP: Remove plat-omap/common.c Tony Lindgren
2012-11-01 23:14 ` Tony Lindgren
2012-11-02 6:37 ` Santosh Shilimkar
2012-11-02 6:38 ` Santosh Shilimkar
2012-11-02 8:49 ` Tomi Valkeinen
2012-11-02 8:55 ` Santosh Shilimkar
2012-11-02 15:49 ` Tony Lindgren
2012-11-02 18:54 ` Tony Lindgren
2012-11-05 8:04 ` Tomi Valkeinen
2012-11-05 15:36 ` Tony Lindgren
2012-11-05 15:48 ` Tomi Valkeinen
2012-11-05 16:12 ` Tony Lindgren [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=20121105161221.GI4953@atomide.com \
--to=tony@atomide.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=santosh.shilimkar@ti.com \
--cc=tomi.valkeinen@ti.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).