All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oded Gabbay <oded.gabbay@amd.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: AMD GPU new API for new module
Date: Sun, 12 Oct 2014 11:13:39 +0300	[thread overview]
Message-ID: <543A3833.1060801@amd.com> (raw)
In-Reply-To: <CAKMK7uFRae6=w7K3kQKMZWECAyWNkDJj50pJgQ9POEBLaaf3BA@mail.gmail.com>



On 11/10/14 21:30, Daniel Vetter wrote:
> On Thu, Oct 9, 2014 at 8:33 PM, Oded Gabbay <oded.gabbay@amd.com> wrote:
>> Thanks for the input.
>> I do _not_ intend to fork IOCTLs for new H/W generations, if possible.
>> i.e, our driver now supports 2 h/w generations with the exact same set
>> of IOCTLs and I don't see how that would change in the future..
>>
>> What I'm more worried about is supporting different sets of UMD, which
>> will require different IOCTLs for the same operation, e.g. CreateQueue
>> for HSA runtime and OpenCL runtime.
>>
>> However, due to a very limited amount of UMDs, the "regular" way of
>> adding IOCTLs may be sufficient.
>>
>> Bottom line, need to think more about it :)
>
> Hm, generally the ioctls should be modelled on the hw for a generic
> umd.
Agreed.
Of course that's a bit hard in practice since predicting the
> unkown is difficult ;-). But on intel hw we have about 5+ different
> umd stacks if you count them all, and they all seem to be more-or-less
> happy with the same ioctl interface.
The problems start when you start migrating UMD from one kernel driver to 
another, which already has other UMDs. Then, you may need to create new IOCTLs.
Like I've said it does require a
> bit a mindset change though since clean-slate designs should only be
> done when there's overwhelming reasons that the old interfaces just
> don't cut it any more. Otoh you also need to make sure that all the
> different umd teams talk to each another since ime they also err on
> the other side and each come up with their own special hack to enable
> a given new feature.
Sounds familiar ;)
> -Daniel
>

  reply	other threads:[~2014-10-12  8:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-08 16:00 AMD GPU new API for new module Jerome Glisse
2014-10-08 16:43 ` Christian König
2014-10-09  6:54 ` Oded Gabbay
2014-10-09  8:02   ` Jerome Glisse
2014-10-09 10:15     ` Oded Gabbay
2014-10-09 15:55       ` Daniel Vetter
2014-10-09 18:33         ` Oded Gabbay
2014-10-11 18:30           ` Daniel Vetter
2014-10-12  8:13             ` Oded Gabbay [this message]
2014-10-12  9:33             ` Christian König
2014-10-09  7:32 ` Rob Clark
2014-10-09  7:54   ` Jerome Glisse
2014-10-09  9:49     ` Christian König
2014-10-09 12:13     ` Rob Clark
2014-10-09  9:20 ` Daniel Vetter
2014-10-13 21:13   ` Dave Airlie
2014-10-10  2:25 ` Olaf Buddenhagen

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=543A3833.1060801@amd.com \
    --to=oded.gabbay@amd.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.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.