diff options
author | Carlos Santa <carlos.santa@intel.com> | 2016-08-17 15:30:57 -0400 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2016-09-07 19:07:09 -0400 |
commit | 3d810fbedec403a8c0ac54fd6a08586ab08831d7 (patch) | |
tree | f93934d09dc89dbb6adf42eb5f21e23c45dc5e6c /drivers/gpu/drm | |
parent | 3177659a41cc4362cb740c24a982c2097962eb1b (diff) |
drm/i915: Move HAS_GUC definition to platform definition
Moving all GPU features to the platform definition allows for
- standard place when adding new features from new platform
- 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.h | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_pci.c | 5 |
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 755799e06a21..f39bede7664c 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -666,6 +666,7 @@ struct intel_csr { | |||
666 | func(has_logical_ring_contexts) sep \ | 666 | func(has_logical_ring_contexts) sep \ |
667 | func(has_l3_dpf) sep \ | 667 | func(has_l3_dpf) sep \ |
668 | func(has_gmch_display) sep \ | 668 | func(has_gmch_display) sep \ |
669 | func(has_guc) sep \ | ||
669 | func(has_pipe_cxsr) sep \ | 670 | func(has_pipe_cxsr) sep \ |
670 | func(has_hotplug) sep \ | 671 | func(has_hotplug) sep \ |
671 | func(cursor_needs_physical) sep \ | 672 | func(cursor_needs_physical) sep \ |
@@ -2807,7 +2808,7 @@ struct drm_i915_cmd_table { | |||
2807 | * command submission once loaded. But these are logically independent | 2808 | * command submission once loaded. But these are logically independent |
2808 | * properties, so we have separate macros to test them. | 2809 | * properties, so we have separate macros to test them. |
2809 | */ | 2810 | */ |
2810 | #define HAS_GUC(dev) (IS_GEN9(dev)) | 2811 | #define HAS_GUC(dev) (INTEL_INFO(dev)->has_guc) |
2811 | #define HAS_GUC_UCODE(dev) (HAS_GUC(dev)) | 2812 | #define HAS_GUC_UCODE(dev) (HAS_GUC(dev)) |
2812 | #define HAS_GUC_SCHED(dev) (HAS_GUC(dev)) | 2813 | #define HAS_GUC_SCHED(dev) (HAS_GUC(dev)) |
2813 | 2814 | ||
diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c index 05603b151acd..d771870ddd2b 100644 --- a/drivers/gpu/drm/i915/i915_pci.c +++ b/drivers/gpu/drm/i915/i915_pci.c | |||
@@ -327,6 +327,7 @@ static const struct intel_device_info intel_skylake_info = { | |||
327 | .is_skylake = 1, | 327 | .is_skylake = 1, |
328 | .gen = 9, | 328 | .gen = 9, |
329 | .has_csr = 1, | 329 | .has_csr = 1, |
330 | .has_guc = 1, | ||
330 | }; | 331 | }; |
331 | 332 | ||
332 | static const struct intel_device_info intel_skylake_gt3_info = { | 333 | static const struct intel_device_info intel_skylake_gt3_info = { |
@@ -334,6 +335,7 @@ static const struct intel_device_info intel_skylake_gt3_info = { | |||
334 | .is_skylake = 1, | 335 | .is_skylake = 1, |
335 | .gen = 9, | 336 | .gen = 9, |
336 | .has_csr = 1, | 337 | .has_csr = 1, |
338 | .has_guc = 1, | ||
337 | .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING, | 339 | .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING, |
338 | }; | 340 | }; |
339 | 341 | ||
@@ -355,6 +357,7 @@ static const struct intel_device_info intel_broxton_info = { | |||
355 | .has_gmbus_irq = 1, | 357 | .has_gmbus_irq = 1, |
356 | .has_hw_contexts = 1, | 358 | .has_hw_contexts = 1, |
357 | .has_logical_ring_contexts = 1, | 359 | .has_logical_ring_contexts = 1, |
360 | .has_guc = 1, | ||
358 | GEN_DEFAULT_PIPEOFFSETS, | 361 | GEN_DEFAULT_PIPEOFFSETS, |
359 | IVB_CURSOR_OFFSETS, | 362 | IVB_CURSOR_OFFSETS, |
360 | BDW_COLORS, | 363 | BDW_COLORS, |
@@ -365,6 +368,7 @@ static const struct intel_device_info intel_kabylake_info = { | |||
365 | .is_kabylake = 1, | 368 | .is_kabylake = 1, |
366 | .gen = 9, | 369 | .gen = 9, |
367 | .has_csr = 1, | 370 | .has_csr = 1, |
371 | .has_guc = 1, | ||
368 | }; | 372 | }; |
369 | 373 | ||
370 | static const struct intel_device_info intel_kabylake_gt3_info = { | 374 | static const struct intel_device_info intel_kabylake_gt3_info = { |
@@ -372,6 +376,7 @@ static const struct intel_device_info intel_kabylake_gt3_info = { | |||
372 | .is_kabylake = 1, | 376 | .is_kabylake = 1, |
373 | .gen = 9, | 377 | .gen = 9, |
374 | .has_csr = 1, | 378 | .has_csr = 1, |
379 | .has_guc = 1, | ||
375 | .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING, | 380 | .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING, |
376 | }; | 381 | }; |
377 | 382 | ||