On Fri, Jun 19, 2015 at 11:07:31PM +0530, akash.goel@xxxxxxxxx wrote: > From: Akash Goel <akash.goel@xxxxxxxxx> > > 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@xxxxxxxxx> > --- > 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@xxxxxxxxxxxxxxxxxxxxx > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx