public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michal Nazarewicz <mina86@mina86.com>
To: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>,
	ralf@linux-mips.org, catalin.marinas@arm.com,
	will.deacon@arm.com, tglx@linutronix.de, mingo@redhat.com,
	hpa@zytor.com, arnd@arndb.de, gregkh@linuxfoundation.org,
	m.szyprowski@samsung.com
Cc: x86@kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-mips@linux-mips.org,
	linux-arch@vger.kernel.org
Subject: Re: [PATCH 4/4] mips: dma: Add cma support
Date: Wed, 16 Jul 2014 18:39:05 +0200	[thread overview]
Message-ID: <xa1t7g3db6mu.fsf@mina86.com> (raw)
In-Reply-To: <1405525892-60383-5-git-send-email-Zubair.Kakakhel@imgtec.com>

On Wed, Jul 16 2014, Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> wrote:
> Adds cma support to the mips architecture.
>
> cma uses memblock. However, mips uses bootmem.

Does cma_early_percent_memory work correctly then?

> bootmem is informed about any regions reserved by memblock

Alternatively maybe it would make sense to create a new definition of
dma_contiguous_reserve_area that uses bootmem and choose it based on
some CONFIG_CMA_USE_BOOTMEM which would be selected by MIPS.

> dma api is modified to use cma reserved memory regions when available
>
> Tested using cma_test. cma_test is a simple driver that assigns blocks
> of memory from cma reserved sections.
>
> Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>

Acked-by: Michal Nazarewicz <mina86@mina86.com>

> ---
>  arch/mips/Kconfig            |  1 +
>  arch/mips/include/asm/Kbuild |  1 +
>  arch/mips/kernel/setup.c     |  9 +++++++++
>  arch/mips/mm/dma-default.c   | 37 +++++++++++++++++++++++++------------
>  4 files changed, 36 insertions(+), 12 deletions(-)
>

-- 
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +--<mpn@google.com>--<xmpp:mina86@jabber.org>--ooO--(_)--Ooo--

  reply	other threads:[~2014-07-16 16:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-16 15:51 [PATCH 0/4] mips: Add cma support to mips Zubair Lutfullah Kakakhel
2014-07-16 15:51 ` [PATCH 1/4] asm-generic: Add dma-contiguous.h Zubair Lutfullah Kakakhel
2014-07-16 15:59   ` Will Deacon
2014-07-16 16:20   ` Michal Nazarewicz
2014-07-16 15:51 ` [PATCH 2/4] arm64: use generic dma-contiguous.h Zubair Lutfullah Kakakhel
2014-07-16 16:20   ` Michal Nazarewicz
2014-07-17 10:23   ` Catalin Marinas
2014-07-16 15:51 ` [PATCH 3/4] x86: " Zubair Lutfullah Kakakhel
2014-07-16 16:20   ` Michal Nazarewicz
2014-07-17  9:02     ` Zubair Lutfullah Kakakhel
2014-07-16 15:51 ` [PATCH 4/4] mips: dma: Add cma support Zubair Lutfullah Kakakhel
2014-07-16 16:39   ` Michal Nazarewicz [this message]
2014-07-17  9:17     ` Zubair Lutfullah Kakakhel
2014-07-16 16:18 ` [PATCH 0/4] mips: Add cma support to mips Manuel Lauss
2014-07-17 12:31 ` Marek Szyprowski

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=xa1t7g3db6mu.fsf@mina86.com \
    --to=mina86@mina86.com \
    --cc=Zubair.Kakakhel@imgtec.com \
    --cc=arnd@arndb.de \
    --cc=catalin.marinas@arm.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hpa@zytor.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=m.szyprowski@samsung.com \
    --cc=mingo@redhat.com \
    --cc=ralf@linux-mips.org \
    --cc=tglx@linutronix.de \
    --cc=will.deacon@arm.com \
    --cc=x86@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox