]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54f8cc5cc234d1b94faf738b6b23e311b8e6f9ca
tree13352d0a3e7ca6a49a25da6db2c310501b7db094
parent79de6ce83f3ba5399e23fc88d5ee88d2bd11bb7d
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