[Openpvrsgx-devgroup] [PATCH] staging: pvr: Add a simplified pvr-drv.c as replacement for messy pvr_drm.c

Tony Lindgren tony at atomide.com
Thu Nov 7 17:14:40 CET 2019

* H. Nikolaus Schaller <hns at goldelico.com> [191107 10:23]:
> > Am 07.11.2019 um 08:43 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> > I'll try asap and then comment.
> I did and can only say: great work!
> Just added the patch, rebuilt the kernel and was able to run the
> gpu-demo on the omap5 Pyra.

OK great good to hear :)

> Then I added some printk and debugging to your code to verify that
> it is really running and doing the work.
> And it did work as well.
> So I can add it to our openpvrsgx-devgroup repo.


> And I like the approach to "move" rewritten driver code to
> the final place. This allows to easily separate what has already
> been worked on.

Yeah I see no need for trying to fix up the Imagination DDK
code. We tried that long time ago with the musb code vendor
provided code, and it was a waste of time. Hundreds of clean-up
patches to try to convert it into a proper Linux driver and
it's still a source of regular problems. It's better to just
understand and rewrite the parts we need for a Linux driver.

So now we could remove the old files to avoid confusion:


The module.c above might still have some dependencies left
though that should be obvious to fix now if removing it
breaks compile or demos.

Those are probably best removed by some clean-up script you
can run again later on too if we update the Imagination DDK.

The new driver should do the right thing with current kernels
with pretty much any version of the Imagination DDK, so
updating should be easyish :) It should also be possible
to make it work with the omap3 branch if somebody still
needs it.

But since you now have omap3 and omap5 working, can we
just remove the old versions? That's the files at:


Or do you only have the module loading still for omap3
without the demos working?

At least for me it took quite a bit of grepping around and
being confused with these around. And they can be brought
back from the git repo if needed for comparing.



More information about the openpvrsgx-devgroup mailing list