AMD GPU new API for new module

Daniel Vetter daniel at ffwll.ch
Sat Oct 11 11:30:07 PDT 2014


On Thu, Oct 9, 2014 at 8:33 PM, Oded Gabbay <oded.gabbay at 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. 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. 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.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch


More information about the dri-devel mailing list