[Intel-gfx] [PATCH 6/7] drm/i915: expose command stream timestamp frequency to userspace

2017-11-10 Thread Lionel Landwerlin
We use to have this fixed per generation, but starting with CNL userspace cannot tell just off the PCI ID. Let's make this information available. This is particularly useful for performance monitoring where much of the normalization work is done using those timestamps (this include pipeline statist

Re: [Intel-gfx] [PATCH 6/7] drm/i915: expose command stream timestamp frequency to userspace

2017-11-10 Thread Chris Wilson
Quoting Lionel Landwerlin (2017-11-10 19:08:44) > +static u64 read_timestamp_frequency(struct drm_i915_private *dev_priv) > +{ > + u64 f12_5_mhz = 1250; > + u64 f19_2_mhz = 1920; > + u64 f24_mhz = 2400; > + > + if (INTEL_GEN(dev_priv) <= 4) { > + /*

Re: [Intel-gfx] [PATCH 6/7] drm/i915: expose command stream timestamp frequency to userspace

2017-11-13 Thread Sagar Arun Kamble
On 11/11/2017 12:38 AM, Lionel Landwerlin wrote: We use to have this fixed per generation, but starting with CNL userspace cannot tell just off the PCI ID. Let's make this information available. This is particularly useful for performance monitoring where much of the normalization work is done

Re: [Intel-gfx] [PATCH 6/7] drm/i915: expose command stream timestamp frequency to userspace

2017-12-01 Thread Paulo Zanoni
Em Sex, 2017-11-10 às 19:08 +, Lionel Landwerlin escreveu: > We use to have this fixed per generation, but starting with CNL > userspace > cannot tell just off the PCI ID. Let's make this information > available. This > is particularly useful for performance monitoring where much of the > norma

Re: [Intel-gfx] [PATCH 6/7] drm/i915: expose command stream timestamp frequency to userspace

2017-12-01 Thread Lionel Landwerlin
On 01/12/17 20:02, Paulo Zanoni wrote: Em Sex, 2017-11-10 às 19:08 +, Lionel Landwerlin escreveu: We use to have this fixed per generation, but starting with CNL userspace cannot tell just off the PCI ID. Let's make this information available. This is particularly useful for performance moni