[igt-dev] [PATCH i-g-t 05/13] lib: Add GPU power measurement

Chris Wilson chris at chris-wilson.co.uk
Tue Feb 5 12:31:55 UTC 2019


Quoting Katarzyna Dec (2019-02-05 12:27:57)
> On Mon, Feb 04, 2019 at 08:36:06AM +0000, Chris Wilson wrote:
> > +     power->scale = rapl_gpu_power_scale();
> > +     if (isnan(power->scale) || !power->scale) {
> > +             close(power->fd);
> > +             goto err;
> > +     }
> > +     power->scale *= 1e9;
> Where this scale value is coming from? I looked at this parameter on my desktop
> and it is e-10.

The timestamps are in nanoseconds. Pick your poison.
-Chris


More information about the igt-dev mailing list