drm/i915: Don't try to use DDR DVFS on CHV when disabled in the BIOS
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 8 Sep 2015 18:05:12 +0000 (21:05 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 10 Sep 2015 12:40:02 +0000 (15:40 +0300)
commit58590c14d80defc94e900308a9d8fa55284de6f2
tree13352d0a3e7ca6a49a25da6db2c310501b7db094
parent982b0b2dd590c00f089fc6fe915bd0cb302a7f5c
drm/i915: Don't try to use DDR DVFS on CHV when disabled in the BIOS

If one disables DDR DVFS in the BIOS, Punit will apparently ignores
all DDR DVFS request. Currently we assume that DDR DVFS is always
operational, which leads to errors in dmesg when the DDR DVFS requests
time out.

Fix the problem by gently prodding Punit during driver load to find out
whether it will respond to DDR DVFS requests. If the request times out,
we assume that DDR DVFS has been permanenly disabled in the BIOS and
no longer perster the Punit about it.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91629
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Clint Taylor <Clinton.A.Taylor@intel.com>
Tested-by: Clint Taylor <Clinton.A.Taylor@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c