[Intel-gfx] [PATCH 6/6] drm/i915: Added BXT check in i915_ring_freq_table function

Daniel Vetter daniel at ffwll.ch
Mon Jun 22 08:45:24 PDT 2015


On Fri, Jun 19, 2015 at 11:07:31PM +0530, akash.goel at intel.com wrote:
> From: Akash Goel <akash.goel at intel.com>
> 
> Updated the i915_ring_freq_table debugfs function to add
> the broxton check, so as to disallow the read of ring frequency
> table for it.
> 
> Issue: VIZ-5144
> Signed-off-by: Akash Goel <akash.goel at intel.com>
> ---
>  drivers/gpu/drm/i915/i915_debugfs.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
> index 2666d8a..daf6bdc 100644
> --- a/drivers/gpu/drm/i915/i915_debugfs.c
> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> @@ -1747,7 +1747,8 @@ static int i915_ring_freq_table(struct seq_file *m, void *unused)
>  	int gpu_freq, ia_freq;
>  	unsigned int max_gpu_freq, min_gpu_freq;
>  
> -	if ((INTEL_INFO(dev)->gen < 6) || IS_VALLEYVIEW(dev)) {
> +	if ((INTEL_INFO(dev)->gen < 6) || IS_VALLEYVIEW(dev) ||
> +	    IS_BROXTON(dev)) {

Yup, imo add a HAS_FOO feature macro here over all the place in one patch,
then do 1 patch to fix things up to exclude bxt everywhere. Lots of
different patches with lots of different checks makes reviewing this
properly unecesarily hard imo.
-Daniel

>  		seq_puts(m, "unsupported on this chipset\n");
>  		return 0;
>  	}
> -- 
> 1.9.2
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the Intel-gfx mailing list