Extended dmc support for broxton.
Subsystems (2)
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
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.
--- drivers/gpu/drm/i915/intel_csr.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/i915/intel_csr.c +4 -0
@@ -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
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]>Signed-off-by Animesh Manna <[email protected]>--- drivers/gpu/drm/i915/intel_csr.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/i915/intel_csr.c +2
-0@@ -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
PATCH 2/3 drm/i915/bxt: Modified HAS_CSR, added support for BXT
In reply to Animesh MannaModified 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.
--- drivers/gpu/drm/i915/i915_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.h +1 -1
@@ -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
Re: [BXT DMC PATCHES 2/3] drm/i915/bxt: Modified HAS_CSR, added support for BXT
Quoted 5 lines · Animesh Manna
Modified
HAS_CSRmacro 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]>Signed-off-by Animesh Manna <[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@@ -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
PATCH 3/3 drm/i915/bxt: Stepping info added for bxt.
In reply to Animesh MannaAdded 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.
--- drivers/gpu/drm/i915/intel_csr.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/gpu/drm/i915/intel_csr.c +11 -0
@@ -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
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: ModifiedHAS_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