aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorCarlos Santa <carlos.santa@intel.com>2016-08-17 15:30:44 -0400
committerRodrigo Vivi <rodrigo.vivi@intel.com>2016-09-07 19:07:08 -0400
commit86f3624bf2750d22a6d7290f625f2d11227edb21 (patch)
tree63a9a64e53dfca95479ba52f6ce0c083ef7ac493 /drivers/gpu/drm
parent53233f084d3a756875ad5097440b0faf3348869b (diff)
drm/i915: Move HAS_RC6 definition to platform definition
Moving all GPU features to the platform struct definition allows for - standard place when adding new features from new platforms - possible to see supported features when dumping struct definitions Signed-off-by: Carlos Santa <carlos.santa@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h3
-rw-r--r--drivers/gpu/drm/i915/i915_pci.c5
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 80ca60d5ac16..c16e9cbeabc7 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -658,6 +658,7 @@ struct intel_csr {
658 func(has_runtime_pm) sep \ 658 func(has_runtime_pm) sep \
659 func(has_csr) sep \ 659 func(has_csr) sep \
660 func(has_resource_streamer) sep \ 660 func(has_resource_streamer) sep \
661 func(has_rc6) sep \
661 func(has_pipe_cxsr) sep \ 662 func(has_pipe_cxsr) sep \
662 func(has_hotplug) sep \ 663 func(has_hotplug) sep \
663 func(cursor_needs_physical) sep \ 664 func(cursor_needs_physical) sep \
@@ -2790,7 +2791,7 @@ struct drm_i915_cmd_table {
2790#define HAS_FPGA_DBG_UNCLAIMED(dev) (INTEL_INFO(dev)->has_fpga_dbg) 2791#define HAS_FPGA_DBG_UNCLAIMED(dev) (INTEL_INFO(dev)->has_fpga_dbg)
2791#define HAS_PSR(dev) (INTEL_INFO(dev)->has_psr) 2792#define HAS_PSR(dev) (INTEL_INFO(dev)->has_psr)
2792#define HAS_RUNTIME_PM(dev) (INTEL_INFO(dev)->has_runtime_pm) 2793#define HAS_RUNTIME_PM(dev) (INTEL_INFO(dev)->has_runtime_pm)
2793#define HAS_RC6(dev) (INTEL_INFO(dev)->gen >= 6) 2794#define HAS_RC6(dev) (INTEL_INFO(dev)->has_rc6)
2794#define HAS_RC6p(dev) (IS_GEN6(dev) || IS_IVYBRIDGE(dev)) 2795#define HAS_RC6p(dev) (IS_GEN6(dev) || IS_IVYBRIDGE(dev))
2795 2796
2796#define HAS_CSR(dev) (INTEL_INFO(dev)->has_csr) 2797#define HAS_CSR(dev) (INTEL_INFO(dev)->has_csr)
diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
index 46c48eda23f6..42108dcaba17 100644
--- a/drivers/gpu/drm/i915/i915_pci.c
+++ b/drivers/gpu/drm/i915/i915_pci.c
@@ -201,6 +201,7 @@ static const struct intel_device_info intel_ironlake_m_info = {
201 .has_fbc = 1, \ 201 .has_fbc = 1, \
202 .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ 202 .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \
203 .has_llc = 1, \ 203 .has_llc = 1, \
204 .has_rc6 = 1, \
204 GEN_DEFAULT_PIPEOFFSETS, \ 205 GEN_DEFAULT_PIPEOFFSETS, \
205 CURSOR_OFFSETS 206 CURSOR_OFFSETS
206 207
@@ -219,6 +220,7 @@ static const struct intel_device_info intel_sandybridge_m_info = {
219 .has_fbc = 1, \ 220 .has_fbc = 1, \
220 .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ 221 .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \
221 .has_llc = 1, \ 222 .has_llc = 1, \
223 .has_rc6 = 1, \
222 GEN_DEFAULT_PIPEOFFSETS, \ 224 GEN_DEFAULT_PIPEOFFSETS, \
223 IVB_CURSOR_OFFSETS 225 IVB_CURSOR_OFFSETS
224 226
@@ -243,6 +245,7 @@ static const struct intel_device_info intel_ivybridge_q_info = {
243 .gen = 7, .num_pipes = 2, \ 245 .gen = 7, .num_pipes = 2, \
244 .has_psr = 1, \ 246 .has_psr = 1, \
245 .has_runtime_pm = 1, \ 247 .has_runtime_pm = 1, \
248 .has_rc6 = 1, \
246 .need_gfx_hws = 1, .has_hotplug = 1, \ 249 .need_gfx_hws = 1, .has_hotplug = 1, \
247 .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \ 250 .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \
248 .display_mmio_offset = VLV_DISPLAY_BASE, \ 251 .display_mmio_offset = VLV_DISPLAY_BASE, \
@@ -293,6 +296,7 @@ static const struct intel_device_info intel_cherryview_info = {
293 .has_psr = 1, 296 .has_psr = 1,
294 .has_runtime_pm = 1, 297 .has_runtime_pm = 1,
295 .has_resource_streamer = 1, 298 .has_resource_streamer = 1,
299 .has_rc6 = 1,
296 .display_mmio_offset = VLV_DISPLAY_BASE, 300 .display_mmio_offset = VLV_DISPLAY_BASE,
297 GEN_CHV_PIPEOFFSETS, 301 GEN_CHV_PIPEOFFSETS,
298 CURSOR_OFFSETS, 302 CURSOR_OFFSETS,
@@ -327,6 +331,7 @@ static const struct intel_device_info intel_broxton_info = {
327 .has_pooled_eu = 0, 331 .has_pooled_eu = 0,
328 .has_csr = 1, 332 .has_csr = 1,
329 .has_resource_streamer = 1, 333 .has_resource_streamer = 1,
334 .has_rc6 = 1,
330 GEN_DEFAULT_PIPEOFFSETS, 335 GEN_DEFAULT_PIPEOFFSETS,
331 IVB_CURSOR_OFFSETS, 336 IVB_CURSOR_OFFSETS,
332 BDW_COLORS, 337 BDW_COLORS,