Commit 8727dc09 authored by Rodrigo Vivi's avatar Rodrigo Vivi

drm/i915: Expand is_lp backwards to gen8_lp and gen7_lp.

Valleyview/Baytrail (gen7_lp) and Cherryview/Braswell (gen8_lp)
are both Atom platforms like Broxton/Apollolake and Geminilake.

So let's expand this is_lp back to these platforms and
create the IS_LP(dev_priv) so we can start simplifying a bit
our if/else for platform lists.
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: default avatarAnder Conselvan de Oliveira <conselvan2@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1482096988-400-1-git-send-email-rodrigo.vivi@intel.com
parent 9f2bdb00
...@@ -2829,6 +2829,7 @@ intel_info(const struct drm_i915_private *dev_priv) ...@@ -2829,6 +2829,7 @@ intel_info(const struct drm_i915_private *dev_priv)
#define IS_GEN9(dev_priv) (!!((dev_priv)->info.gen_mask & BIT(8))) #define IS_GEN9(dev_priv) (!!((dev_priv)->info.gen_mask & BIT(8)))
#define IS_GEN9_LP(dev_priv) (IS_GEN9(dev_priv) && INTEL_INFO(dev_priv)->is_lp) #define IS_GEN9_LP(dev_priv) (IS_GEN9(dev_priv) && INTEL_INFO(dev_priv)->is_lp)
#define IS_LP(dev_priv) (INTEL_INFO(dev_priv)->is_lp)
#define ENGINE_MASK(id) BIT(id) #define ENGINE_MASK(id) BIT(id)
#define RENDER_RING ENGINE_MASK(RCS) #define RENDER_RING ENGINE_MASK(RCS)
......
...@@ -267,6 +267,7 @@ static const struct intel_device_info intel_ivybridge_q_info = { ...@@ -267,6 +267,7 @@ static const struct intel_device_info intel_ivybridge_q_info = {
#define VLV_FEATURES \ #define VLV_FEATURES \
.gen = 7, .num_pipes = 2, \ .gen = 7, .num_pipes = 2, \
.is_lp = 1, \
.has_psr = 1, \ .has_psr = 1, \
.has_runtime_pm = 1, \ .has_runtime_pm = 1, \
.has_rc6 = 1, \ .has_rc6 = 1, \
...@@ -326,6 +327,7 @@ static const struct intel_device_info intel_broadwell_gt3_info = { ...@@ -326,6 +327,7 @@ static const struct intel_device_info intel_broadwell_gt3_info = {
static const struct intel_device_info intel_cherryview_info = { static const struct intel_device_info intel_cherryview_info = {
.gen = 8, .num_pipes = 3, .gen = 8, .num_pipes = 3,
.has_hotplug = 1, .has_hotplug = 1,
.is_lp = 1,
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING,
.platform = INTEL_CHERRYVIEW, .platform = INTEL_CHERRYVIEW,
.has_64bit_reloc = 1, .has_64bit_reloc = 1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment