Message ID | 1434735451-12063-7-git-send-email-akash.goel@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, Jun 19, 2015 at 11:07:31PM +0530, akash.goel@intel.com wrote: > From: Akash Goel <akash.goel@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@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@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com)
Task id: 6578
-------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
ILK 303/303 303/303
SNB 312/312 312/312
IVB 343/343 343/343
BYT 284/284 284/284
HSW 380/380 380/380
-------------------------------------Detailed-------------------------------------
Platform Test drm-intel-nightly Series Applied
Note: You need to pay more attention to line start with '*'
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)) { seq_puts(m, "unsupported on this chipset\n"); return 0; }