Message ID | 1437850839-16782-4-git-send-email-animesh.manna@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Sunday 26 July 2015 12:30 AM, Animesh Manna wrote: > Added stepping info in intel_csr.c which is required to extract > specific firmware from packaged dmc firmware. > > Cc: Vetter, Daniel <daniel.vetter@intel.com> > Cc: Damien Lespiau <damien.lespiau@intel.com> > Cc: Imre Deak <imre.deak@intel.com> > Cc: Sunil Kamath <sunil.kamath@intel.com> > Signed-off-by: Animesh Manna <animesh.manna@intel.com> > --- > drivers/gpu/drm/i915/intel_csr.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel_csr.c b/drivers/gpu/drm/i915/intel_csr.c > index 1866426..f440299 100644 > --- a/drivers/gpu/drm/i915/intel_csr.c > +++ b/drivers/gpu/drm/i915/intel_csr.c > @@ -183,11 +183,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'} > +}; > + I understand that these stepping structure is as per present limited info. > 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; > } > @@ -197,6 +205,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; > }
diff --git a/drivers/gpu/drm/i915/intel_csr.c b/drivers/gpu/drm/i915/intel_csr.c index 1866426..f440299 100644 --- a/drivers/gpu/drm/i915/intel_csr.c +++ b/drivers/gpu/drm/i915/intel_csr.c @@ -183,11 +183,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; } @@ -197,6 +205,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; }
Added stepping info in intel_csr.c which is required to extract specific firmware from packaged dmc firmware. Cc: Vetter, Daniel <daniel.vetter@intel.com> Cc: Damien Lespiau <damien.lespiau@intel.com> Cc: Imre Deak <imre.deak@intel.com> Cc: Sunil Kamath <sunil.kamath@intel.com> Signed-off-by: Animesh Manna <animesh.manna@intel.com> --- drivers/gpu/drm/i915/intel_csr.c | 11 +++++++++++ 1 file changed, 11 insertions(+)