From: Julien Grall <julien.grall@arm.com>
To: Andrii Anisov <andrii_anisov@epam.com>,
Andrii Anisov <andrii.anisov@gmail.com>,
xen-devel@lists.xenproject.org
Cc: Wei Liu <wei.liu2@citrix.com>,
Stefano Stabellini <sstabellini@kernel.org>,
Ian Jackson <ian.jackson@eu.citrix.com>
Subject: Re: [RFC] scf: SCF device tree and configuration documentation
Date: Fri, 5 May 2017 14:49:33 +0100 [thread overview]
Message-ID: <45a2f090-ad45-8595-d125-d3569c51a503@arm.com> (raw)
In-Reply-To: <8a92d2a1-d6ee-45e3-7c60-f828d8ac4fb2@epam.com>
On 04/05/17 16:50, Andrii Anisov wrote:
> Julien,
Hi Andrii,
>>
>> What I would like to understand is what are the information that the
>> hypervisors as to know for sharing co-processor? So far I have:
>> - MMIOs
>> - Interrupts
>>
>> Anything else?
> IOMMU bindings.
> This knowledge enough to get the physical coprocessor shared.
>
> In order to spawn a virtual coprocessor (vcoproc) for some domain you
> have to provide additional configuration information:
> - Which physical coprocessor this vcoproc should represent to a
> domain ( a SoC could have several physical coprocs shared through the
> framework)
> - IRQ(s) (provided that no IRQ remapping is implemented in XEN)
> could be omitted (or used for verification only)
> - IOMEM ranges correspondence between this vcoproc instance and a
> physical coprocessor.
>
> The latest point in the configuration is the most complex.
> Let me explain a use case we faced now:
> - a GPU has two different firmwares implementing OpenGL and OpenCL
> - we need both GL and CL in the same domain working simultaneously
> (actually concurrently, but the concurrency should be transparent for
> domain, GPU drivers and firmwares)
> In current case we are lucky, the GPU has a single mmio range.
> We can implement such system using SCF: spawn two vcoprocs for a domain.
> Those vcoprocs will have own mmio range within the domain.
> In a hypervisor those mmio ranges would be served by the same handler,
> but must be associated with the own vcoproc context.
I have CCed Ian and Wei to comment on the difficult to describe a such
interface in libxl. They may have insights how to do this properly.
@Ian @Wei: Andrii is suggesting to use Device-Tree for describing
virtual co-processor as it seems it would be very difficult to do the
same with the configuration file. See the suggested binding in [1].
>
> In case a coprocessor has several mmio ranges things are getting worse.
>
> In a device tree configuration concept I explicitly link vcoproc to
> pcoproc and keep mmio ranges correspondency with names.
> I'm not sure how to keep this coincidence in a simple way.
>
Cheers,
[1] https://www.mail-archive.com/xen-devel@lists.xen.org/msg106924.html
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-05-05 13:49 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-04 9:32 [RFC] scf: SCF device tree and configuration documentation Andrii Anisov
2017-05-04 10:03 ` Andrii Anisov
2017-05-04 10:41 ` Julien Grall
2017-05-04 12:35 ` Andrii Anisov
2017-05-04 12:46 ` Julien Grall
2017-05-04 15:50 ` Andrii Anisov
2017-05-05 13:49 ` Julien Grall [this message]
2017-05-05 14:13 ` Ian Jackson
2017-05-05 17:07 ` Andrii Anisov
2017-05-05 17:20 ` Ian Jackson
2017-05-10 9:16 ` Andrii Anisov
2017-05-10 14:22 ` Ian Jackson
2017-05-10 16:26 ` Andrii Anisov
2017-05-04 16:13 ` Andrii Anisov
2017-05-05 14:12 ` Julien Grall
2017-05-05 15:27 ` Andrii Anisov
2017-05-05 17:51 ` Julien Grall
2017-05-10 15:30 ` Andrii Anisov
2017-05-10 17:40 ` Julien Grall
2017-05-10 17:47 ` Andrii Anisov
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=45a2f090-ad45-8595-d125-d3569c51a503@arm.com \
--to=julien.grall@arm.com \
--cc=andrii.anisov@gmail.com \
--cc=andrii_anisov@epam.com \
--cc=ian.jackson@eu.citrix.com \
--cc=sstabellini@kernel.org \
--cc=wei.liu2@citrix.com \
--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).