From: Tony Lindgren <tony@atomide.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/2] ARM: omapfb: add coherent dma memory support
Date: Tue, 07 Jan 2014 23:59:51 +0000 [thread overview]
Message-ID: <20140107235951.GH5074@atomide.com> (raw)
In-Reply-To: <1388409550-10720-2-git-send-email-tomi.valkeinen@ti.com>
* Tomi Valkeinen <tomi.valkeinen@ti.com> [131230 05:21]:
> The omapfb driver uses dma_alloc to reserve memory for the framebuffers.
> However, on some use cases, even when CMA is in use, it's quite probable
> that omapfb fails to allocate the fb, either due to not enough free dma
> memory, fragmented dma memory, or CMA failing to make enough contiguous
> space.
>
> This patch adds a kernel cmdline parameter 'omapfb_vram' which can be
> used to give the size of a memory area reserved exclusively for omapfb,
> and optionally a physical address where the memory area is reserved.
>
> The memory area is reserved with memblock, and assigned to omapfb with
> dma_declare_coherent_memory. The dma_alloc function will first try to
> allocate the fb from the coherent memory area, and if that fails, it'll
> use the normal method of allocation.
>
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
> Cc: Ivaylo Dimitrov <freemangordon@abv.bg>
Feel free to queue this along with the DSS patches:
Acked-by: Tony Lindgren <tony@atomide.com>
WARNING: multiple messages have this Message-ID (diff)
From: Tony Lindgren <tony@atomide.com>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Ivaylo Dimitrov <freemangordon@abv.bg>,
Vaibhav Hiremath <hvaibhav@ti.com>,
linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-fbdev@vger.kernel.org
Subject: Re: [PATCH 1/2] ARM: omapfb: add coherent dma memory support
Date: Tue, 7 Jan 2014 15:59:51 -0800 [thread overview]
Message-ID: <20140107235951.GH5074@atomide.com> (raw)
In-Reply-To: <1388409550-10720-2-git-send-email-tomi.valkeinen@ti.com>
* Tomi Valkeinen <tomi.valkeinen@ti.com> [131230 05:21]:
> The omapfb driver uses dma_alloc to reserve memory for the framebuffers.
> However, on some use cases, even when CMA is in use, it's quite probable
> that omapfb fails to allocate the fb, either due to not enough free dma
> memory, fragmented dma memory, or CMA failing to make enough contiguous
> space.
>
> This patch adds a kernel cmdline parameter 'omapfb_vram' which can be
> used to give the size of a memory area reserved exclusively for omapfb,
> and optionally a physical address where the memory area is reserved.
>
> The memory area is reserved with memblock, and assigned to omapfb with
> dma_declare_coherent_memory. The dma_alloc function will first try to
> allocate the fb from the coherent memory area, and if that fails, it'll
> use the normal method of allocation.
>
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
> Cc: Ivaylo Dimitrov <freemangordon@abv.bg>
Feel free to queue this along with the DSS patches:
Acked-by: Tony Lindgren <tony@atomide.com>
WARNING: multiple messages have this Message-ID (diff)
From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ARM: omapfb: add coherent dma memory support
Date: Tue, 7 Jan 2014 15:59:51 -0800 [thread overview]
Message-ID: <20140107235951.GH5074@atomide.com> (raw)
In-Reply-To: <1388409550-10720-2-git-send-email-tomi.valkeinen@ti.com>
* Tomi Valkeinen <tomi.valkeinen@ti.com> [131230 05:21]:
> The omapfb driver uses dma_alloc to reserve memory for the framebuffers.
> However, on some use cases, even when CMA is in use, it's quite probable
> that omapfb fails to allocate the fb, either due to not enough free dma
> memory, fragmented dma memory, or CMA failing to make enough contiguous
> space.
>
> This patch adds a kernel cmdline parameter 'omapfb_vram' which can be
> used to give the size of a memory area reserved exclusively for omapfb,
> and optionally a physical address where the memory area is reserved.
>
> The memory area is reserved with memblock, and assigned to omapfb with
> dma_declare_coherent_memory. The dma_alloc function will first try to
> allocate the fb from the coherent memory area, and if that fails, it'll
> use the normal method of allocation.
>
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
> Cc: Ivaylo Dimitrov <freemangordon@abv.bg>
Feel free to queue this along with the DSS patches:
Acked-by: Tony Lindgren <tony@atomide.com>
next prev parent reply other threads:[~2014-01-07 23:59 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-30 13:19 [PATCH 0/2] omapfb: option to use coherent dma mem Tomi Valkeinen
2013-12-30 13:19 ` Tomi Valkeinen
2013-12-30 13:19 ` Tomi Valkeinen
2013-12-30 13:19 ` [PATCH 1/2] ARM: omapfb: add coherent dma memory support Tomi Valkeinen
2013-12-30 13:19 ` Tomi Valkeinen
2013-12-30 13:19 ` Tomi Valkeinen
2014-01-05 14:16 ` Ivaylo Dimitrov
2014-01-05 14:16 ` Ivaylo Dimitrov
2014-01-05 14:16 ` Ivaylo Dimitrov
2014-01-07 23:59 ` Tony Lindgren [this message]
2014-01-07 23:59 ` Tony Lindgren
2014-01-07 23:59 ` Tony Lindgren
2014-01-08 14:13 ` Tomi Valkeinen
2014-01-08 14:13 ` Tomi Valkeinen
2014-01-08 14:13 ` Tomi Valkeinen
2014-01-09 5:06 ` Hiremath, Vaibhav
2014-01-09 5:06 ` Hiremath, Vaibhav
2014-01-09 5:06 ` Hiremath, Vaibhav
2014-01-09 7:34 ` Ivaylo Dimitrov
2014-01-09 7:34 ` Ivaylo Dimitrov
2014-01-09 7:34 ` Ivaylo Dimitrov
2014-01-09 8:08 ` Hiremath, Vaibhav
2014-01-09 8:08 ` Hiremath, Vaibhav
2014-01-09 8:08 ` Hiremath, Vaibhav
2014-01-09 8:27 ` Tomi Valkeinen
2014-01-09 8:27 ` Tomi Valkeinen
2014-01-09 8:27 ` Tomi Valkeinen
2014-01-09 8:31 ` Hiremath, Vaibhav
2014-01-09 8:31 ` Hiremath, Vaibhav
2014-01-09 8:31 ` Hiremath, Vaibhav
2014-01-11 13:28 ` Ivaylo Dimitrov
2014-01-11 13:28 ` Ivaylo Dimitrov
2014-01-11 13:28 ` Ivaylo Dimitrov
2014-01-22 21:08 ` Ivaylo Dimitrov
2014-01-22 21:08 ` Ivaylo Dimitrov
2014-01-22 21:08 ` Ivaylo Dimitrov
2014-01-24 8:47 ` Hiremath, Vaibhav
2014-01-24 8:47 ` Hiremath, Vaibhav
2014-01-24 8:47 ` Hiremath, Vaibhav
2014-01-24 10:35 ` Tomi Valkeinen
2014-01-24 10:35 ` Tomi Valkeinen
2014-01-24 10:35 ` Tomi Valkeinen
2014-01-09 8:21 ` Tomi Valkeinen
2014-01-09 8:21 ` Tomi Valkeinen
2014-01-09 8:21 ` Tomi Valkeinen
2014-01-09 8:31 ` Hiremath, Vaibhav
2014-01-09 8:31 ` Hiremath, Vaibhav
2014-01-09 8:31 ` Hiremath, Vaibhav
2014-01-09 13:02 ` Hiremath, Vaibhav
2014-01-09 13:02 ` Hiremath, Vaibhav
2014-01-09 13:02 ` Hiremath, Vaibhav
2013-12-30 13:19 ` [PATCH 2/2] omapfb: add support to reserve fb at specified phys address Tomi Valkeinen
2013-12-30 13:19 ` Tomi Valkeinen
2013-12-30 13:19 ` Tomi Valkeinen
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=20140107235951.GH5074@atomide.com \
--to=tony@atomide.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.