Skip to contentSkip to conversation

drm/i915/guc: Load GuC on CFL

PATCH In review Anusha Srivatsa 3 participants 6 messages Jun 7, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 drm/i915/guc: Load GuC on CFL

Coffeelake reuses Kabylake's GuC.

---
 drivers/gpu/drm/i915/i915_pci.c         | 1 +
 drivers/gpu/drm/i915/intel_guc_loader.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_pci.c +1 -0
index d90942c..c356646 100644
@@ -435,6 +435,7 @@ static const struct intel_device_info intel_cannonlake_info = {
 	BDW_FEATURES, \
 	.gen = 9, \
 	.platform = INTEL_COFFEELAKE, \
+	.has_guc = 1, \
 	.ddb_size = 896
 
 static const struct intel_device_info intel_coffeelake_info = {
drivers/gpu/drm/i915/intel_guc_loader.c +1 -1
index d9045b6..8b0ae7f 100644
@@ -402,7 +402,7 @@ int intel_guc_select_fw(struct intel_guc *guc)
 		guc->fw.path = I915_BXT_GUC_UCODE;
 		guc->fw.major_ver_wanted = BXT_FW_MAJOR;
 		guc->fw.minor_ver_wanted = BXT_FW_MINOR;
-	} else if (IS_KABYLAKE(dev_priv)) {
+	} else if (IS_KABYLAKE(dev_priv) || IS_COFFEELAKE(dev_priv)) {
 		guc->fw.path = I915_KBL_GUC_UCODE;
 		guc->fw.major_ver_wanted = KBL_FW_MAJOR;
 		guc->fw.minor_ver_wanted = KBL_FW_MINOR;
Signature · 6 lines
2.7.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH 2/2 drm/i915/huc: Load HuC on Coffeelake

Coffeelake reuses Kabylake's HUC firmware.

---
 drivers/gpu/drm/i915/intel_huc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_huc.c +1 -1
index f5eb18d0e..6145fa0 100644
@@ -167,7 +167,7 @@ void intel_huc_select_fw(struct intel_huc *huc)
 		huc->fw.path = I915_BXT_HUC_UCODE;
 		huc->fw.major_ver_wanted = BXT_HUC_FW_MAJOR;
 		huc->fw.minor_ver_wanted = BXT_HUC_FW_MINOR;
-	} else if (IS_KABYLAKE(dev_priv)) {
+	} else if (IS_KABYLAKE(dev_priv) || IS_COFFEELAKE(dev_priv)) {
 		huc->fw.path = I915_KBL_HUC_UCODE;
 		huc->fw.major_ver_wanted = KBL_HUC_FW_MAJOR;
 		huc->fw.minor_ver_wanted = KBL_HUC_FW_MINOR;
Signature · 6 lines
2.7.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
maintainer Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] drm/i915/huc: Load HuC on Coffeelake

Same comments I put on GuC patch are valid here...

Quoted 13 lines · Anusha Srivatsa

Coffeelake reuses Kabylake's HUC firmware.

---
 drivers/gpu/drm/i915/intel_huc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_huc.c +0 -0
index f5eb18d0e..6145fa0 100644

drivers/gpu/drm/i915/intel_huc.c void intel_huc_select_fw(struct intel_huc *huc) · line 173

Quoted 8 lines
drivers/gpu/drm/i915/intel_huc.c +1 -1
@@ -167,7 +167,7 @@ void intel_huc_select_fw(struct intel_huc *huc)
 		huc->fw.path = I915_BXT_HUC_UCODE;
 		huc->fw.major_ver_wanted = BXT_HUC_FW_MAJOR;
 		huc->fw.minor_ver_wanted = BXT_HUC_FW_MINOR;
-	} else if (IS_KABYLAKE(dev_priv)) {
+	} else if (IS_KABYLAKE(dev_priv) || IS_COFFEELAKE(dev_priv)) {
 		huc->fw.path = I915_KBL_HUC_UCODE;
 		huc->fw.major_ver_wanted = KBL_HUC_FW_MAJOR;
 		huc->fw.minor_ver_wanted = KBL_HUC_FW_MINOR;

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw

Re: [PATCH 2/2] drm/i915/huc: Load HuC on Coffeelake

In reply to Anusha Srivatsa
Quoted 1 line · Anusha Srivatsa

Coffeelake reuses Kabylake's HUC firmware.

s/Coffeelake/Coffee Lake
That's how the other patches have it :)

Quoted 12 lines
---
 drivers/gpu/drm/i915/intel_huc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_huc.c +0 -0
index f5eb18d0e..6145fa0 100644

drivers/gpu/drm/i915/intel_huc.c void intel_huc_select_fw(struct intel_huc *huc) · line 173

Quoted 8 lines
drivers/gpu/drm/i915/intel_huc.c +1 -1
@@ -167,7 +167,7 @@ void intel_huc_select_fw(struct intel_huc *huc)
 		huc->fw.path = I915_BXT_HUC_UCODE;
 		huc->fw.major_ver_wanted = BXT_HUC_FW_MAJOR;
 		huc->fw.minor_ver_wanted = BXT_HUC_FW_MINOR;
-	} else if (IS_KABYLAKE(dev_priv)) {
+	} else if (IS_KABYLAKE(dev_priv) || IS_COFFEELAKE(dev_priv)) {
 		huc->fw.path = I915_KBL_HUC_UCODE;
 		huc->fw.major_ver_wanted = KBL_HUC_FW_MAJOR;
 		huc->fw.minor_ver_wanted = KBL_HUC_FW_MINOR;

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw

Re: [PATCH 2/2] drm/i915/huc: Load HuC on Coffeelake

Quoted 9 lines

-----Original Message-----
From: Pandiyan, Dhinakaran
Sent: Wednesday, June 7, 2017 3:46 PM
To: Srivatsa, Anusha <[email protected]>
Cc: [email protected]; Vivi, Rodrigo <[email protected]>
Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915/huc: Load HuC on Coffeelake

Quoted 5 lines
Quoted 1 line · Anusha Srivatsa

Coffeelake reuses Kabylake's HUC firmware.

s/Coffeelake/Coffee Lake
That's how the other patches have it :)

Oh yes. Thanks DK.

Anusha

Quoted 9 lines

Review

Quoted 8 lines
---
 drivers/gpu/drm/i915/intel_huc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/i915/intel_huc.c

Quoted 12 lines

drivers/gpu/drm/i915/intel_huc.c void intel_huc_select_fw(struct intel_huc *huc) · line 173

Quoted 12 lines

index f5eb18d0e..6145fa0 100644

drivers/gpu/drm/i915/intel_huc.c +1 -1
@@ -167,7 +167,7 @@ void intel_huc_select_fw(struct intel_huc *huc)
 		huc->fw.path = I915_BXT_HUC_UCODE;
 		huc->fw.major_ver_wanted = BXT_HUC_FW_MAJOR;
 		huc->fw.minor_ver_wanted = BXT_HUC_FW_MINOR;
-	} else if (IS_KABYLAKE(dev_priv)) {
+	} else if (IS_KABYLAKE(dev_priv) || IS_COFFEELAKE(dev_priv)) {
 		huc->fw.path = I915_KBL_HUC_UCODE;
 		huc->fw.major_ver_wanted = KBL_HUC_FW_MAJOR;
 		huc->fw.minor_ver_wanted = KBL_HUC_FW_MINOR;

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

maintainer Reviewed-by on v1 1/2
#5 lore raw
In reply to Anusha Srivatsa

With this approach we need to have in mind that any new kbl firmware version needs to be validated on both kbl and cfl by our QA before publishing.

However the differences are really minimal if not 0. So publishing 2 identical files with different names maybe doesn't make any sense and wouldn't save QA effort anyways.

So,

drivers/gpu/drm/i915/i915_pci.c static const struct intel_device_info intel_cannonlake_info = {

Quoted 14 lines · Anusha Srivatsa

Coffeelake reuses Kabylake's GuC.

---
 drivers/gpu/drm/i915/i915_pci.c         | 1 +
 drivers/gpu/drm/i915/intel_guc_loader.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_pci.c +0 -0
index d90942c..c356646 100644
@@ -435,6 +435,7 @@ static const struct intel_device_info intel_cannonlake_info = {

why is this below cnl?
ok, I need to rebase cfl on top and this will be above so a conflict that it will probably appear when rebasing this patch either...

Quoted 12 lines
drivers/gpu/drm/i915/i915_pci.c +1 -0
 	BDW_FEATURES, \
 	.gen = 9, \
 	.platform = INTEL_COFFEELAKE, \
+	.has_guc = 1, \
 	.ddb_size = 896
 
 static const struct intel_device_info intel_coffeelake_info = {
drivers/gpu/drm/i915/intel_guc_loader.c +0 -0
index d9045b6..8b0ae7f 100644

drivers/gpu/drm/i915/intel_guc_loader.c int intel_guc_select_fw(struct intel_guc *guc) · line 408

Quoted 8 lines
drivers/gpu/drm/i915/intel_guc_loader.c +1 -1
@@ -402,7 +402,7 @@ int intel_guc_select_fw(struct intel_guc *guc)
 		guc->fw.path = I915_BXT_GUC_UCODE;
 		guc->fw.major_ver_wanted = BXT_FW_MAJOR;
 		guc->fw.minor_ver_wanted = BXT_FW_MINOR;
-	} else if (IS_KABYLAKE(dev_priv)) {
+	} else if (IS_KABYLAKE(dev_priv) || IS_COFFEELAKE(dev_priv)) {
 		guc->fw.path = I915_KBL_GUC_UCODE;
 		guc->fw.major_ver_wanted = KBL_FW_MAJOR;
 		guc->fw.minor_ver_wanted = KBL_FW_MINOR;

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx