From: "Christian König" <deathsimple@vodafone.de>
To: Jerome Glisse <j.glisse@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: RFC: Radeon multi ring support branch
Date: Wed, 02 Nov 2011 11:12:42 +0100 [thread overview]
Message-ID: <4EB1179A.9050109@vodafone.de> (raw)
In-Reply-To: <20111031150538.GA3036@homer.localdomain>
On 31.10.2011 16:05, Jerome Glisse wrote:
> On Sat, Oct 29, 2011 at 03:00:28PM +0200, Christian König wrote:
>> Hello everybody,
>>
>> to support multiple compute rings, async DMA engines and UVD we need
>> to teach the radeon kernel module how to sync buffers between
>> different rings and make some changes to the command submission
>> ioctls.
>>
>> Since we can't release any documentation about async DMA or UVD
>> (yet), my current branch concentrates on getting the additional
>> compute rings on cayman running. Unfortunately those rings have
>> hardware bugs that can't be worked around, so they are actually not
>> very useful in a production environment, but they should do quite
>> well for this testing purpose.
>>
>> The branch can be found here:
>> http://cgit.freedesktop.org/~deathsimple/linux/log/
>>
>> Since some of the patches are quite intrusive, constantly rebaseing
>> them could get a bit painful. So I would like to see most of the
>> stuff included into drm-next, even if we don't make use of the new
>> functionality right now.
>>
>> Comments welcome,
>> Christian.
> So for all patches except the interface change see below
> Reviewed-by: Jerome Glisse<jglisse@redhat.com>
>
> For the interface change, as discussed previously, i believe prio
> should be a userspace argument, kernel could override it.
>
>
Yeah, I'm still not sure what we should do about the priority.
Say for example we have 2 processes. Process A is sending compute jobs
both with high and low priority, while process B is sending jobs with
only high priority. Unfortunately the jobs send by B doesn't utilizes
the hardware to its limits, so that even jobs on a lower priority rings
get their share of the compute resources.
The effect is that it reverses the priority A wants for its jobs. The
high priority jobs of A get executed much slower than the low priority
jobs of A, because B is spamming the hight priority ring with its under
utilizing jobs.
In such a situation it would be better to adjust the job scheduling a
bit so that jobs of process A gets on ring 1 on jobs from B get on ring
2, but I have now idea how to detect such a situation. Anyway, the
primary goal of the different compute rings is to separate compute from
GFX so that even with big compute jobs running the system still stays
responsible to user input, so I think adding a better scheduling for
compute jobs can be done much later.
Christian.
next prev parent reply other threads:[~2011-11-02 10:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-29 13:00 RFC: Radeon multi ring support branch Christian König
2011-10-31 15:05 ` Jerome Glisse
2011-11-02 10:12 ` Christian König [this message]
2011-11-02 14:24 ` Jerome Glisse
2011-11-15 19:32 ` Jerome Glisse
2011-11-15 23:19 ` Christian König
2011-11-16 0:24 ` Jerome Glisse
2011-11-17 16:24 ` Christian König
2011-11-17 16:58 ` Jerome Glisse
2011-11-18 12:19 ` Christian König
2011-11-18 14:21 ` Jerome Glisse
2011-11-18 15:41 ` Jerome Glisse
2011-11-17 20:16 ` Alex Deucher
2011-11-18 12:44 ` Alex Deucher
2011-11-18 16:34 ` Jerome Glisse
2011-11-20 21:04 ` Jerome Glisse
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=4EB1179A.9050109@vodafone.de \
--to=deathsimple@vodafone.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=j.glisse@gmail.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 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.