[Intel-gfx] [PATCH] drm/i915/selftests: Measure the energy consumed while in RC6
Chris Wilson
chris at chris-wilson.co.uk
Tue Sep 29 07:59:48 UTC 2020
Quoting Lucas De Marchi (2020-09-29 00:56:54)
> On Tue, Mar 24, 2020 at 1:45 PM Chris Wilson <chris at chris-wilson.co.uk> wrote:
> >
> > Measure and compare the energy consumed, as reported by the rapl MSR,
> > by the GPU while in RC0 and RC6 states. Throw an error if RC6 does not
> > at least halve the energy consumption of RC0, as this more than likely
> > means we failed to enter RC0 correctly.
> >
> > If we can't measure the energy draw with the MSR, then it will report 0
> > for both measurements. Since the measurement works on all gen6+, this seems
> > worth flagging as an error.
>
> I'm confused by this statement here. MSR is a *CPU* register and you are using
> it here, mixed with RC6. How is that supposed to work with, e.g., dgfx?
You abstract it with the right interface for hwmon. The card reports
energy draw, so the test remains the same, verify that a low power state
does consume substantially less energy (and if we can get fine enough
granularity that the GT powerwells draw 0).
-Chris
More information about the Intel-gfx
mailing list