On Thu, Oct 9, 2014 at 8:33 PM, Oded Gabbay <oded.gabbay@xxxxxxx> 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 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel