<bbrezillon>
alyssa----: was trying to dump the counters as they were dumped with the non-drm driver
<bbrezillon>
and that layout didn't match my version
<alyssa---->
bbrezillon: It's different for every rev of the hardware and it's not exactly discoverable either. The gator source code handles it with some hard-to-follow heuristics. Maybe we can normalize it a bit, but that's still probably a userspace task (don't want to lug around all that complexity in the kernel for maintenance reasons)
pH5 has quit [Quit: bye]
<bbrezillon>
alyssa----: the layout can be extracted from the GPU features/caps regs
<bbrezillon>
I just followed what mali kbase does
<alyssa---->
bbrezillon: *can*, it's just inconvenient :P
<bbrezillon>
not sure what you mean
<bbrezillon>
you'll anyway need to do that from userspace based on the same set of info, right?
<bbrezillon>
I did abstract quite a few things to make userspace's life easier
<bbrezillon>
figuring out counter names is still left to userspace, but the driver provides a map of valid counters and block instances (see the GET_PERFCNT_LAYOUT ioctl)
* alyssa----
will look when she gets a chance
<robher>
bbrezillon: LGTM other than my few nits. Though I am wondering why GPU perf counters aren't wired into existing kernel perf counter infrastructure (perf).