[Intel-gfx] [PATCH 20/20] drm/i915/slpc: Add Kabylake SLPC support
Sagar Arun Kamble
sagar.a.kamble at intel.com
Fri Sep 1 07:25:23 UTC 2017
Adds has_slpc to kabylake info and adds kabylake firmware version check
to sanitize_slpc_option.
Signed-off-by: Sagar Arun Kamble <sagar.a.kamble at intel.com>
---
drivers/gpu/drm/i915/i915_pci.c | 1 +
drivers/gpu/drm/i915/intel_slpc.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
index 37d76d9..bb71f01 100644
--- a/drivers/gpu/drm/i915/i915_pci.c
+++ b/drivers/gpu/drm/i915/i915_pci.c
@@ -415,6 +415,7 @@
.platform = INTEL_KABYLAKE, \
.has_csr = 1, \
.has_guc = 1, \
+ .has_slpc = 1, \
.ddb_size = 896
static const struct intel_device_info intel_kabylake_info = {
diff --git a/drivers/gpu/drm/i915/intel_slpc.c b/drivers/gpu/drm/i915/intel_slpc.c
index 093d670..8ccdb4c 100644
--- a/drivers/gpu/drm/i915/intel_slpc.c
+++ b/drivers/gpu/drm/i915/intel_slpc.c
@@ -71,9 +71,9 @@ static unsigned int slpc_get_platform_sku(struct drm_i915_private *dev_priv)
{
enum slpc_platform_sku platform_sku;
- if (IS_SKL_ULX(dev_priv))
+ if (IS_SKL_ULX(dev_priv) || IS_KBL_ULX(dev_priv))
platform_sku = SLPC_PLATFORM_SKU_ULX;
- else if (IS_SKL_ULT(dev_priv))
+ else if (IS_SKL_ULT(dev_priv) || IS_KBL_ULT(dev_priv))
platform_sku = SLPC_PLATFORM_SKU_ULT;
else
platform_sku = SLPC_PLATFORM_SKU_DT;
--
1.9.1
More information about the Intel-gfx
mailing list