NVIDIA hardware reference headers
Hello,
The Tegra GPU system software team has begun to align our new-chip development efforts with Nouveau. In particular we would like to arrive at a place where the Nouveau kernel driver code base is our primary development environment.
To that end I'd like to add some "official" hardware reference headers to Nouveau. The headers are derived from the information we use internally. I have arranged the definitions such that the similarities and differences between GPUs is made explicit. I am happy to explain the rationale for any design choices and since I wrote the generator I am able to tweak them in almost any way the community prefers.
For this specific phase I can provide information already available for GK20A and GM20B (via either nvgpu and/or the ongoing work to add Tegra support to Nouveau). We have already gone through an internal IP review process on those... but, over the long-term I'm confident any information we need to fill-in functionality >= NV50/G80 will be made public eventually.
We just need to go through the internal steps necessary to make that happen.
I started a Nouveau branch of my own to treat as a scratch pad and for keeping track of discussion:
https://github.com/kfractal/nouveau/tree/hwref
That branch tracks:
https://github.com/Gnurou/nouveau/tree/staging
I also have:
https://github.com/kfractal/nouveau/tree/old-hwref
which has some earlier notes and discussion on use-patterns.
Once we're happy with the placement and organization of these headers and accessors, I've been given the freedom (i.e. time and space) to follow through and help make Nouveau our go-to chip development kernel driver.
I'm looking forward to comments and to actually, finally, jumping in :)
Thanks!
---
Ken Adams
[email protected]
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Hello again,
I've updated my nouveau branch to incorporate some suggested tweaks, etc. Also, this version breaks out all the chips separately. Seeing it expressed this way shows how many files it is... :) I've removed the drf macros from this version as well, as we can treat those separately.
https://github.com/kfractal/nouveau/commit/f2e6c736a0d9475bc65f5d41a9df3bf56a0c823c
---
ken
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 6 lines · Ken Adams
Hello again,
I've updated my nouveau branch to incorporate some suggested tweaks, etc. Also, this version breaks out all the chips separately. Seeing it expressed this way shows how many files it is... :) I've removed the drf macros from this version as well, as we can treat those separately.
Hey Ken,
Despite the fact it's a lot more LoC, I like this version a lot better. It's far easier to see what you're looking at exactly now :)
The only nit-pick I have left (I think...) is that the hwref/chipset/nv_device_hwref.h is a bit redundant, and could be hwref/chipset/device.h :)
What are the chances that the exposed registers can be expanded to (at least) cover the stuff that nouveau currently touches? For example, NV_PTIMER_TIME_0/1 (etc) doesn't seem particularly IP-sensitive and are missing ;) nv04-g7x would be nice too at some point!
Thanks,
Ben.
Quoted 5 lines
https://github.com/kfractal/nouveau/commit/f2e6c736a0d9475bc65f5d41a9df3bf5
6a0c823c
Quoted 7 lines
---
ken_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 9 lines · Ben Skeggs
Quoted 8 lines · Ken Adams
Hello again,
I've updated my nouveau branch to incorporate some suggested tweaks, etc.
Also, this version breaks out all the chips separately. Seeing it expressed this way shows how many files it is... :) I've removed the drf
macros from this version as well, as we can treat those separately.
Quoted 4 lines
Hey Ken,
Despite the fact it's a lot more LoC, I like this version a lot better. It's far easier to see what you're looking at exactly now :)
ok, we'll go with this flavor then.
Quoted 4 lines
The only nit-pick I have left (I think...) is that the
hwref/chipset/nv_device_hwref.his a bit redundant, and could behwref/chipset/device.h:)
ok, i'll fuse them or just use what's there.
Quoted 5 lines
What are the chances that the exposed registers can be expanded to (at least) cover the stuff that nouveau currently touches? For example, NV_PTIMER_TIME_0/1 (etc) doesn't seem particularly IP-sensitive and are missing ;) nv04-g7x would be nice too at some point!
we will have to perform an internal ip review for each instance (or block of same). it's a matter of crossing t's and dotting i's.
if someone can get me a bulk list of all the magic #s we want to exorcise (i say, all of them :) then i can begin that ball particular ball rolling.
thanks for taking a look, btw :)
---
ken
Quoted 18 lines
Thanks,
Ben.Quoted 14 lines
https://github.com/kfractal/nouveau/commit/f2e6c736a0d9475bc65f5d41a9df3b
f56a0c823c---
ken_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau