Skip to contentSkip to conversation

Extended dmc support for broxton.

PATCH In review Animesh Manna 4 participants 7 messages Aug 4, 2015 – Sep 23, 2015

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

cover Extended dmc support for broxton.

This patches will extend the support for broxton.

Earlier these patches are sent part of "Redesign of dmc firmware loading" patch series.
http://lists.freedesktop.org/archives/intel-gfx/2015-July/072331.html

To make it simple, bxt specific patches are seperated out and based on review comments from Sunil, minor changes are done.

Animesh Manna (3):
drm/i915/bxt: Path added of dmc firmware ver1 for BXT. drm/i915/bxt: Modified HAS_CSR, added support for BXT drm/i915/bxt: Stepping info added for bxt.

 drivers/gpu/drm/i915/i915_drv.h  |  2 +-
 drivers/gpu/drm/i915/intel_csr.c | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
Signature · 6 lines
2.0.2

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

PATCH 1/3 drm/i915/bxt: Path added of dmc firmware ver1 for BXT.

Broxton also has dmc to manage low-power display engine state. Path of the firmware added in intel_csr.c.

Naming convention followed as <platform>_dmc_<api-version>.bin

v1: Initial version.

v2: Commit description added based on review comment from Sunil.

Cc Damien Lespiau <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Sunil Kamath <[email protected]>
---
 drivers/gpu/drm/i915/intel_csr.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/i915/intel_csr.c +4 -0
index 18a0670..c89b9ce 100644
@@ -42,8 +42,10 @@
  */
 
 #define I915_CSR_SKL "i915/skl_dmc_ver1.bin"
+#define I915_CSR_BXT "i915/bxt_dmc_ver1.bin"
 
 MODULE_FIRMWARE(I915_CSR_SKL);
+MODULE_FIRMWARE(I915_CSR_BXT);
 
 struct intel_css_header {
 	/* 0x09 for DMC */
@@ -372,6 +374,8 @@ void intel_csr_ucode_init(struct drm_i915_private *dev_priv)
 
 	if (IS_SKYLAKE(dev_priv))
 		csr->fw_path = I915_CSR_SKL;
+	else if (IS_BROXTON(dev_priv))
+		csr->fw_path = I915_CSR_BXT;
 	else {
 		DRM_ERROR("Unexpected: no known CSR firmware for platform\n");
 		return;
Signature · 6 lines
2.0.2

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

Re: [BXT DMC PATCHES 1/3] drm/i915/bxt: Path added of dmc firmware ver1 for BXT.

Quoted 33 lines · Animesh Manna

Broxton also has dmc to manage low-power display engine state. Path of the firmware added in intel_csr.c.

Naming convention followed as <platform>_dmc_<api-version>.bin

v1: Initial version.

v2: Commit description added based on review comment from Sunil.

Cc Damien Lespiau <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Sunil Kamath <[email protected]>
---
 drivers/gpu/drm/i915/intel_csr.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/i915/intel_csr.c +2 -0
index 18a0670..c89b9ce 100644
@@ -42,8 +42,10 @@
  */
 
 #define I915_CSR_SKL "i915/skl_dmc_ver1.bin"
+#define I915_CSR_BXT "i915/bxt_dmc_ver1.bin"
 
 MODULE_FIRMWARE(I915_CSR_SKL);
+MODULE_FIRMWARE(I915_CSR_BXT);
 
 struct intel_css_header {
 	/* 0x09 for DMC */

drivers/gpu/drm/i915/intel_csr.c void intel_csr_ucode_init(struct drm_i915_private *dev_priv) · line 381

Quoted 8 lines
drivers/gpu/drm/i915/intel_csr.c +2 -0
@@ -372,6 +374,8 @@ void intel_csr_ucode_init(struct drm_i915_private *dev_priv)
 
 	if (IS_SKYLAKE(dev_priv))
 		csr->fw_path = I915_CSR_SKL;
+	else if (IS_BROXTON(dev_priv))
+		csr->fw_path = I915_CSR_BXT;
 	else {
 		DRM_ERROR("Unexpected: no known CSR firmware for platform\n");
 		return;

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

#3 lore raw

PATCH 2/3 drm/i915/bxt: Modified HAS_CSR, added support for BXT

In reply to Animesh Manna

Modified HAS_CSR macro defination which earlier only supported for skl, now added support for BXT.

v1: Initial version.

v2: Instaed of skylake/broxton check added gen9 check alone based on review comment from Sunil.

Cc Vetter, Daniel <[email protected]>
Cc Damien Lespiau <[email protected]>
Cc Imre Deak <[email protected]>
Cc Sunil Kamath <[email protected]>
---
 drivers/gpu/drm/i915/i915_drv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.h +1 -1
index 773883d..c9a887f 100644
@@ -2533,7 +2533,7 @@ struct drm_i915_cmd_table {
 #define HAS_RC6(dev)		(INTEL_INFO(dev)->gen >= 6)
 #define HAS_RC6p(dev)		(INTEL_INFO(dev)->gen == 6 || IS_IVYBRIDGE(dev))
 
-#define HAS_CSR(dev)	(IS_SKYLAKE(dev))
+#define HAS_CSR(dev)	(IS_GEN9(dev))
 
 #define HAS_RESOURCE_STREAMER(dev) (IS_HASWELL(dev) || \
 				    INTEL_INFO(dev)->gen >= 8)
Signature · 6 lines
2.0.2

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

Re: [BXT DMC PATCHES 2/3] drm/i915/bxt: Modified HAS_CSR, added support for BXT

Quoted 5 lines · Animesh Manna

Modified HAS_CSR macro defination which earlier only supported for skl, now added support for BXT.

v1: Initial version.

Quoted 8 lines

v2: Instaed of skylake/broxton check added gen9 check alone based on review comment from Sunil.

Cc Vetter, Daniel <[email protected]>
Cc Damien Lespiau <[email protected]>
Cc Imre Deak <[email protected]>
Cc Sunil Kamath <[email protected]>

The feature-enabling patch should always be last, to avoid breaking machines in the middle of your patch series. I've reordered them while applying the entire patch series.
-Daniel

Quoted 24 lines
---
 drivers/gpu/drm/i915/i915_drv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.h +1 -1
index 773883d..c9a887f 100644
@@ -2533,7 +2533,7 @@ struct drm_i915_cmd_table {
 #define HAS_RC6(dev)		(INTEL_INFO(dev)->gen >= 6)
 #define HAS_RC6p(dev)		(INTEL_INFO(dev)->gen == 6 || IS_IVYBRIDGE(dev))
 
-#define HAS_CSR(dev)	(IS_SKYLAKE(dev))
+#define HAS_CSR(dev)	(IS_GEN9(dev))
 
 #define HAS_RESOURCE_STREAMER(dev) (IS_HASWELL(dev) || \
 				    INTEL_INFO(dev)->gen >= 8)
Signature · 6 lines
2.0.2

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#5 lore raw

PATCH 3/3 drm/i915/bxt: Stepping info added for bxt.

In reply to Animesh Manna

Added stepping info in intel_csr.c which is required to extract specific firmware from packaged dmc firmware.

Stepping info is aligned with current bspec info.

Cc Vetter, Daniel <[email protected]>
Cc Damien Lespiau <[email protected]>
Cc Imre Deak <[email protected]>
Cc Sunil Kamath <[email protected]>
---
 drivers/gpu/drm/i915/intel_csr.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/gpu/drm/i915/intel_csr.c +11 -0
index c89b9ce..06b46b1 100644
@@ -167,11 +167,19 @@ static const struct stepping_info skl_stepping_info[] = {
 	{'G', '0'}, {'H', '0'}, {'I', '0'}
 };
 
+static struct stepping_info bxt_stepping_info[] = {
+	{'A', '0'}, {'A', '1'}, {'A', '2'},
+	{'B', '0'}, {'B', '1'}, {'B', '2'}
+};
+
 static char intel_get_stepping(struct drm_device *dev)
 {
 	if (IS_SKYLAKE(dev) && (dev->pdev->revision <
 				ARRAY_SIZE(skl_stepping_info)))
 		return skl_stepping_info[dev->pdev->revision].stepping;
+	else if (IS_BROXTON(dev) && (dev->pdev->revision <
+				ARRAY_SIZE(bxt_stepping_info)))
+		return bxt_stepping_info[dev->pdev->revision].stepping;
 	else
 		return -ENODATA;
 }
@@ -181,6 +189,9 @@ static char intel_get_substepping(struct drm_device *dev)
 	if (IS_SKYLAKE(dev) && (dev->pdev->revision <
 				ARRAY_SIZE(skl_stepping_info)))
 		return skl_stepping_info[dev->pdev->revision].substepping;
+	else if (IS_BROXTON(dev) && (dev->pdev->revision <
+			ARRAY_SIZE(bxt_stepping_info)))
+		return bxt_stepping_info[dev->pdev->revision].substepping;
 	else
 		return -ENODATA;
 }
Signature · 6 lines
2.0.2

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on the v1 series
#6 lore raw
In reply to Animesh Manna
Quoted 6 lines · Animesh Manna

This patches will extend the support for broxton.

Earlier these patches are sent part of "Redesign of dmc firmware loading" patch series.
http://lists.freedesktop.org/archives/intel-gfx/2015-July/072331.html

Quoted 7 lines

To make it simple, bxt specific patches are seperated out and based on review comments from Sunil, minor changes are done.

Animesh Manna (3):
drm/i915/bxt: Path added of dmc firmware ver1 for BXT. drm/i915/bxt: Modified HAS_CSR, added support for BXT drm/i915/bxt: Stepping info added for bxt.

Patch 3/3 needs rebasing, other than that patches 2-3 look ok:

With Rodrigo's r-b on patch 1 all the patches in this patchset have an r-b now.

Quoted 5 lines
 drivers/gpu/drm/i915/i915_drv.h  |  2 +-
 drivers/gpu/drm/i915/intel_csr.c | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

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