Re: [PATCH v2 3/5] drm/i915: Add 'render basic' Gen8+ OA unit configs

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

 



On 23 March 2017 at 20:18, Robert Bragg <robert@xxxxxxxxxxxxx> wrote:
> Adds a static OA unit, MUX, B Counter + Flex EU configurations for basic
> render metrics on Broadwell, Cherryview, Skylake and Broxton. These are
> auto generated from an XML description of metric sets, currently
> maintained in gputop, ref:
>
>  https://github.com/rib/gputop
>  > gputop-data/oa-*.xml
>  > scripts/i915-perf-kernelgen.py
>
>  $ make -C gputop-data -f Makefile.xml WHITELIST=RenderBasic
>
> Signed-off-by: Robert Bragg <robert@xxxxxxxxxxxxx>

<SNIP>

> +
> +int i915_oa_select_metric_set_bdw(struct drm_i915_private *dev_priv)
> +{
> +       dev_priv->perf.oa.mux_regs = NULL;
> +       dev_priv->perf.oa.mux_regs_len = 0;
> +       dev_priv->perf.oa.b_counter_regs = NULL;
> +       dev_priv->perf.oa.b_counter_regs_len = 0;
> +       dev_priv->perf.oa.flex_regs = NULL;
> +       dev_priv->perf.oa.flex_regs_len = 0;
> +
> +       switch (dev_priv->perf.oa.metrics_set) {
> +       case METRIC_SET_ID_RENDER_BASIC:
> +               dev_priv->perf.oa.mux_regs =
> +                       get_render_basic_mux_config(dev_priv,
> +                                                   &dev_priv->perf.oa.mux_regs_len);
> +               if (!dev_priv->perf.oa.mux_regs) {
> +                       DRM_DEBUG_DRIVER("No suitable MUX config for \"RENDER_BASIC\" metric set");
You forgot to update your script ;)

> +
> +                       /* EINVAL because *_register_sysfs already checked this
> +                        * and so it wouldn't have been advertised so userspace and
> +                        * so shouldn't have been requested
s/so userspace/to userspace/ ?

Otherwise assuming the configs are indeed correct:
Reviewed-by: Matthew Auld <matthew.auld@xxxxxxxxx>
_______________________________________________
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