public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
To: Patrik Jakobsson <patrik.jakobsson@linux.intel.com>,
	"Vivi, Rodrigo" <rodrigo.vivi@intel.com>,
	"Prigent, Christophe" <christophe.prigent@intel.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH v2] drm/i915/dmc: Step away from symbolic links
Date: Mon, 27 Jun 2016 14:20:37 +0300	[thread overview]
Message-ID: <1467026437.20290.4.camel@intel.com> (raw)
In-Reply-To: <20160627105747.GA28262@patrik-desktop.isw.intel.com>

Adding Christophe, he was supposed to make the release after
validation. I don't think it prevents merging this patch though, the
result is failure to load the firmware in either case.

--Imre

On ma, 2016-06-27 at 12:57 +0200, Patrik Jakobsson wrote:
> On Wed, Jun 15, 2016 at 12:11:55AM +0000, Vivi, Rodrigo wrote:
> > On Mon, 2016-05-23 at 10:57 +0200, Patrik Jakobsson wrote:
> > > On Wed, May 18, 2016 at 01:24:12PM +0300, Mika Kuoppala wrote:
> > > > Patrik Jakobsson <patrik.jakobsson@linux.intel.com> writes:
> > > > 
> > > > > [ text/plain ]
> > > > > Load specific firmware versions for the DMC instead of using
> > > > > symbolic
> > > > > links. The currently recommended versions are: SKL 1.26, KBL 1.01
> > > > > and
> > > > > BXT 1.07.
> > > > > 
> > > > > Certain DMC versions need workarounds in the driver which forces
> > > > > us to
> > > > > have a tight dependency between firmware and driver. In order to
> > > > > be able
> > > > > to provide a tested and known working configuration we must lock
> > > > > down on
> > > > > a specific DMC firmware version.
> > > > > 
> > > > > Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > > > > Cc: Imre Deak <imre.deak@intel.com>
> > > > > Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> > > > > Signed-off-by: Patrik Jakobsson 
> > > > > > 
> > > > 
> > > > Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
> > > > 
> > > > We need ack from Rodrigo and/or whomever is handling
> > > > the fw releasing side.
> > > > 
> > > > -Mika
> > > > 
> > > 
> > > As discussed on IRC, Rodrigo is currently away but since he requested
> > > this
> > > feature we indirectly have his ACK.
> > 
> > indeed! ;)
> 
> I assume we need BXT 1.07 released on 01.org before merging this. Any status on
> that?



> 
> -Patrik
> 
> > 
> > 
> > Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > 
> > > -Patrik
> > > 
> > > > > ---
> > > > >  drivers/gpu/drm/i915/intel_csr.c | 29 ++++++++++++++------------
> > > > > ---
> > > > >  1 file changed, 14 insertions(+), 15 deletions(-)
> > > > > 
> > > > > diff --git a/drivers/gpu/drm/i915/intel_csr.c
> > > > > b/drivers/gpu/drm/i915/intel_csr.c
> > > > > index 2b3b428..ea047cd 100644
> > > > > --- a/drivers/gpu/drm/i915/intel_csr.c
> > > > > +++ b/drivers/gpu/drm/i915/intel_csr.c
> > > > > @@ -41,15 +41,15 @@
> > > > >   * be moved to FW_FAILED.
> > > > >   */
> > > > >  
> > > > > -#define I915_CSR_KBL "i915/kbl_dmc_ver1.bin"
> > > > > +#define I915_CSR_KBL "i915/kbl_dmc_ver1_01.bin"
> > > > >  MODULE_FIRMWARE(I915_CSR_KBL);
> > > > >  #define KBL_CSR_VERSION_REQUIRED	CSR_VERSION(1, 1)
> > > > >  
> > > > > -#define I915_CSR_SKL "i915/skl_dmc_ver1.bin"
> > > > > +#define I915_CSR_SKL "i915/skl_dmc_ver1_26.bin"
> > > > >  MODULE_FIRMWARE(I915_CSR_SKL);
> > > > > -#define SKL_CSR_VERSION_REQUIRED	CSR_VERSION(1, 23)
> > > > > +#define SKL_CSR_VERSION_REQUIRED	CSR_VERSION(1, 26)
> > > > >  
> > > > > -#define I915_CSR_BXT "i915/bxt_dmc_ver1.bin"
> > > > > +#define I915_CSR_BXT "i915/bxt_dmc_ver1_07.bin"
> > > > >  MODULE_FIRMWARE(I915_CSR_BXT);
> > > > >  #define BXT_CSR_VERSION_REQUIRED	CSR_VERSION(1, 7)
> > > > >  
> > > > > @@ -286,7 +286,7 @@ static uint32_t *parse_csr_fw(struct
> > > > > drm_i915_private *dev_priv,
> > > > >  	uint32_t dmc_offset = CSR_DEFAULT_FW_OFFSET, readcount =
> > > > > 0, nbytes;
> > > > >  	uint32_t i;
> > > > >  	uint32_t *dmc_payload;
> > > > > -	uint32_t required_min_version;
> > > > > +	uint32_t required_version;
> > > > >  
> > > > >  	if (!fw)
> > > > >  		return NULL;
> > > > > @@ -303,24 +303,23 @@ static uint32_t *parse_csr_fw(struct
> > > > > drm_i915_private *dev_priv,
> > > > >  	csr->version = css_header->version;
> > > > >  
> > > > >  	if (IS_KABYLAKE(dev_priv)) {
> > > > > -		required_min_version = KBL_CSR_VERSION_REQUIRED;
> > > > > +		required_version = KBL_CSR_VERSION_REQUIRED;
> > > > >  	} else if (IS_SKYLAKE(dev_priv)) {
> > > > > -		required_min_version = SKL_CSR_VERSION_REQUIRED;
> > > > > +		required_version = SKL_CSR_VERSION_REQUIRED;
> > > > >  	} else if (IS_BROXTON(dev_priv)) {
> > > > > -		required_min_version = BXT_CSR_VERSION_REQUIRED;
> > > > > +		required_version = BXT_CSR_VERSION_REQUIRED;
> > > > >  	} else {
> > > > >  		MISSING_CASE(INTEL_REVID(dev_priv));
> > > > > -		required_min_version = 0;
> > > > > +		required_version = 0;
> > > > >  	}
> > > > >  
> > > > > -	if (csr->version < required_min_version) {
> > > > > -		DRM_INFO("Refusing to load old DMC firmware
> > > > > v%u.%u,"
> > > > > -			 " please upgrade to v%u.%u or later"
> > > > > -			   " [" FIRMWARE_URL "].\n",
> > > > > +	if (csr->version != required_version) {
> > > > > +		DRM_INFO("Refusing to load DMC firmware v%u.%u,"
> > > > > +			 " please use v%u.%u [" FIRMWARE_URL
> > > > > "].\n",
> > > > >  			 CSR_VERSION_MAJOR(csr->version),
> > > > >  			 CSR_VERSION_MINOR(csr->version),
> > > > > -			 CSR_VERSION_MAJOR(required_min_version)
> > > > > ,
> > > > > -			 CSR_VERSION_MINOR(required_min_version)
> > > > > );
> > > > > +			 CSR_VERSION_MAJOR(required_version),
> > > > > +			 CSR_VERSION_MINOR(required_version));
> > > > >  		return NULL;
> > > > >  	}
> > > > >  
> > > > > -- 
> > > > > 2.5.0
> > > 
> 
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-06-27 11:20 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-10 11:59 [PATCH] drm/i915/dmc: Step away from symbolic links Patrik Jakobsson
2016-05-10 12:45 ` ✗ Ro.CI.BAT: failure for " Patchwork
2016-05-10 12:52 ` [PATCH] " Mika Kuoppala
2016-05-10 15:05   ` Patrik Jakobsson
2016-05-10 17:00     ` Jani Nikula
2016-05-11  9:26       ` Mika Kuoppala
2016-05-16  9:30 ` [PATCH v2] " Patrik Jakobsson
2016-05-16 12:04   ` Jani Nikula
2016-05-18 10:24   ` Mika Kuoppala
2016-05-23  8:57     ` Patrik Jakobsson
2016-06-15  0:11       ` Vivi, Rodrigo
2016-06-27 10:57         ` Patrik Jakobsson
2016-06-27 11:20           ` Imre Deak [this message]
2016-06-27 16:32             ` Vivi, Rodrigo
2016-06-27 16:51               ` Imre Deak
2016-06-27 17:12                 ` Vivi, Rodrigo
2016-06-27 18:45                   ` Patrik Jakobsson
2016-06-27 21:29                     ` Vivi, Rodrigo
2016-05-16 10:00 ` ✓ Ro.CI.BAT: success for drm/i915/dmc: Step away from symbolic links (rev2) Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1467026437.20290.4.camel@intel.com \
    --to=imre.deak@intel.com \
    --cc=christophe.prigent@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=patrik.jakobsson@linux.intel.com \
    --cc=rodrigo.vivi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox