Re: [PATCH i-g-t v2] pm_rps: Changes in waitboost scenario

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Dec, Katarzyna (2017-08-21 11:43:35)
> I just saw comments for the code (in first patch version)
> 
> >  static void boost_freq(int fd, int *boost_freqs)  {
> >         int64_t timeout = 1;
> > -       int ring = -1;
> >         igt_spin_t *load;
> > +       unsigned int engine;
> >  
> > -       load = igt_spin_batch_new(fd, ring, 0);
> > -
> > +       /* put boost on the same engine as low load */
> > +       engine = I915_EXEC_RENDER;
> > +       if (intel_gen(lh.devid) >= 6)
> > +               engine = I915_EXEC_BLT;
> > +       load = igt_spin_batch_new(fd, engine, 0);
> 
> >Something to note is that spin-batch will also force the GPU to maximum.
> So we can get rid of gem_wait in this case?

No. Since the test is all about the wait -> boost scenario, not that
high load generates high cocks.
 
> >You could set the boost freq > max freq to differentiate
> What do you mean by that?

If you set the max freq to less than the boost freq, the only way to get
to the boost freq is via the wait, and through the ordinary system load.
It is another way to prove that boosting is in effect, and also the
independence of the control knobs.

> >         /* Waiting will grant us a boost to maximum */
> >         gem_wait(fd, load->handle, &timeout);
> >  
> >         read_freqs(boost_freqs);
> >         dump(boost_freqs);
> > +       igt_assert_eq(is_in_boost(), 1);
> 
> >Will fail on older kernels.
> This assert was changed in v2 to igt_assert(). Will this also fail on older kernels? If yes, why?

The field you are looking for is a recent addition to the file. Within
reason, we expect igt to be agnostic of kernel version (aiming for
forwards compatibility with future kernels for minimum effort, and
backwards for maximum coverage). Sometimes we can't write the test we
want without relying on a new kernel.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux