Am 23.01.2018 um 17:47 schrieb Tomi Valkeinen tomi.valkeinen@ti.com:
On 23/01/18 18:22, H. Nikolaus Schaller wrote:
Well, you can refer to
https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html#open-source-userspace...
Interesting.
But I don't see how it is related to OMAP-SGX at all (except that it is about a GFX subsystem).
I understand that this is for the case we would plan to craft a proper DRM based solution so that DRM API and user space libs can be used.
At least the latest SGX driver is DRM based.
Is it DRM based or does it "use" DRM for allocating the framebuffer?
I have studied the code a little but did not yet understand how to use it. Tony has recommended to make this project more public to get help for making this work because someone may be able to help fixing it.
But true, the old driver may not be.
At least it has a -DDRM compile option. Maybe the 5.0 drivers need a little help by backporting things from 6.0.
Or both can be merged by forward-porting sgx530 support into the 6.0 drivers.
The code structure of both drivers is the same, just diffs here and there.
For example services4/3rdparty/linux_drm/pvr_drm_stubs.c has just 4 diffs. Of course some files have been completely overhauled, but the structure has remained the same.
But if it's not, I think it's even more unlikely that it would be merged to mainline.
Yes, that might happen, but we don't know before we try.
And of course it depends on what the omap community wants to have and how intensive it asks for inclusion of such things.
This is why I appreciate Tony's idea to make it known to linux-omap@vger.kernel.org soon to get a broader set of opinions and hopefully support.
This is obviously far beyond feasibility and maybe the fifth or tenth step.
But we want to do what can be done.
My idea is also to get it placed in drivers/staging/pvr and not drivers/gpu/drm.
I don't think staging wants to merge something that's never going to be moved out from staging.
Yes, that can happen. But do we really know before?
And note that I'm not trying dismiss the work you've done, I think it's great to clean up the old driver if people use it. I'm just trying to be realistic about the possible goals =).
Well, I have myself been too many times "realistic" just to see others do exactly or almost the same. And succeed...
BR and thanks, Nikolaus