On Thu, Jul 10, 2014 at 5:34 PM, Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
This series adds support for reclocking on GK20A. The first two patches touchHey Alex,
the clock subsystem to allow GK20A to operate, by making the presence of the
thermal and voltage devices optional, and allowing pstates to be provided
directly instead of being probed using the BIOS (which Tegra does not have).
I mentioned a while back I had some stuff in-progress to make
implementing this a bit cleaner for you, but as you can probably tell,
I didn't get to it yet. It's likely I won't manage to before the next
merge window either. So, I'll likely take these patches as-is
(assuming no objections on reviews here) and rebase my stuff on top.
Interesting. Can you give more details on how "PL" works exactly,
The last patch adds the GK20A clock device. Arguably the clock can be seen as a
stripped-down version of what is seen on NVE0, however instead of using NVE0
support has been written from scratch using the ChromeOS kernel as a basis.
There are several reasons for this:
- The ChromeOS driver uses a lookup table for the P coefficient which I could
not find in the NVE0 driver,
we'd been operating on the assumption (mainly inherited from code that
appeared in xf86-video-nv) that it was always a straight division.
- Some registers that NVE0 expects to find are not present on GK20A (e.g.It's something we can look to achieving down the road, but won't block
0x137120 and 0x137140),
- Calculation of MNP is done differently from what is performed in
nva3_pll_calc(), and it might be interesting to compare the two methods,
- All the same, the programming sequence is done differently in the ChromeOS
driver and NVE0 could possibly benefit from it (?)
It would be interesting to try and merge both, but for now I prefer to have the
two coexisting to ensure proper operation on GK20A and besure I don't break
dGPU support. :)
merging the support.
They don't *need* to depend on the BIOS, you can opt for an
Regarding the first patch, one might argue that I could as well add thermal
and voltage devices to GK20A. The reason this is not done is because these
currently depend heavily on the presence of a BIOS, and will require a rework
similar to that done in patch 2 for clocks. I would like to make sure this
approach is approved because applying it to other subdevs.
implementation that doesn't use the base classes that the rest of the
dGPU implementations do. But, it's fine to take the approach you've