drm/i915: Add ddb size field to device info structure
authorDeepak M <m.deepak@intel.com>
Thu, 15 Sep 2016 09:31:10 +0000 (15:01 +0530)
committerJani Nikula <jani.nikula@intel.com>
Thu, 15 Sep 2016 10:57:36 +0000 (13:57 +0300)
commit6f3fff602e8179c74249a66046cf88767e1923b2
tree3f859930034076acc2b9a1b7d34e6b63445bed5f
parent7a9347f947757f6c5ea432b299a8ba33ef7b78c7
drm/i915: Add ddb size field to device info structure

Adding the ddb size into the devide info will avoid
platform checks while computing wm.

v2: Added comment and WARN_ON if ddb size is zero.(Jani)
v3: Added WARN_ON at the right place.(Jani)

Suggested-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Deepak M <m.deepak@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1473931870-7724-1-git-send-email-m.deepak@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_pm.c