From: Julien Grall <julien.grall@arm.com>
To: Iurii Mykhalskyi <iurii.mykhalskyi@globallogic.com>,
xen-devel@lists.xenproject.org,
Stefano Stabellini <sstabellini@kernel.org>
Subject: Re: [ARM] Handling CMA pool device nodes in Dom0
Date: Tue, 29 Nov 2016 13:49:51 +0000 [thread overview]
Message-ID: <f8f67a66-af2b-064f-5699-340bbe7d4308@arm.com> (raw)
In-Reply-To: <CAC+yBMtsFSHe32_=EST+bgK0p9HTLnLEt5fUmb+7Bah=s1nyGA@mail.gmail.com>
(CC Stefano)
On 25/11/16 12:19, Iurii Mykhalskyi wrote:
> Hello!
Hi Iurii,
>
> I'm working under Renesas Gen3 H3 board with 4GB RAM (Salvator-X)
> support in Xen mainline.
>
> Salvator-X has several CMA pool nodes, for example:
>
> 1:
> adsp_reserved: linux,adsp {
> compatible = "shared-dma-pool";
> reusable;
> reg = <0x00000000 0x57000000 0x0 0x01000000>;
> };
>
> 2:
> linux,cma {
> compatible = "shared-dma-pool";
> reusable;
> reg = <0x00000000 0x58000000 0x0 0x18000000>;
> linux,cma-default;
> };
>
> During Dom0 allocation, we can't guarantee, that allocated memory will
> contain mentioned regions.
> In second сase, we can actually hardcode mapped region by using separate
> DTS for Dom0 with changed memory regions.
> But for first one, this in not an option - this pool is used for audio
> DSP and its firmware relies on this addresses.
>
> What is the correct way to solve this situation?
> Does Xen has some mechanism to handle such cases?
From my understanding all the nodes you mentioned are living under the
node /reserved-memory, right? Currently Xen is not parsing this node.
Before answering about possible implementation in Xen, I would like to
understand what are the constraints on these reserved memory regions.
I understand that when "reg" property is specified, it is a static
allocation and we need to be able to map those regions at the same
address in DOM0.
However, do these regions need to be included in memory node?
Regards,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-11-29 13:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-25 12:19 [ARM] Handling CMA pool device nodes in Dom0 Iurii Mykhalskyi
2016-11-29 13:49 ` Julien Grall [this message]
2016-12-01 0:12 ` Stefano Stabellini
2017-07-26 15:04 ` Reserved-memory node handling in XEN ( WAS Re: [ARM] Handling CMA pool device nodes in Dom0) Andrii Anisov
2017-07-26 17:06 ` Julien Grall
2017-07-27 9:24 ` Andrii Anisov
2017-07-27 9:55 ` Julien Grall
2017-07-27 10:36 ` Andrii Anisov
2017-07-27 10:56 ` Julien Grall
2017-07-27 11:02 ` Andrii Anisov
2016-12-02 7:26 ` [ARM] Handling CMA pool device nodes in Dom0 Peng Fan
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=f8f67a66-af2b-064f-5699-340bbe7d4308@arm.com \
--to=julien.grall@arm.com \
--cc=iurii.mykhalskyi@globallogic.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.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;
as well as URLs for NNTP newsgroup(s).