From: Imre Deak <imre.deak@intel.com>
To: Ander Conselvan de Oliveira
<ander.conselvan.de.oliveira@intel.com>,
intel-gfx@lists.freedesktop.org
Cc: Praveen Paneri <praveen.paneri@intel.com>
Subject: Re: [PATCH] drm/i915: Don't sanitize has_decoupled_mmio if platform is not broxton
Date: Thu, 24 Nov 2016 17:45:46 +0200 [thread overview]
Message-ID: <1480002346.19768.7.camel@intel.com> (raw)
In-Reply-To: <1479993439-28900-1-git-send-email-ander.conselvan.de.oliveira@intel.com>
On to, 2016-11-24 at 15:17 +0200, Ander Conselvan de Oliveira wrote:
> The check in __intel_uncore_early_sanitize() to disable decoupled mmio
> would disable it for every platform that is not broxton. While that's
> not a problem now since only broxton supports that, simply setting
> .has_decoupled_mmio in a new platform's device info wouldn't suffice. So
> avoid future confusion and change the workaround to only change the
> value of has_decoupled_mmio for broxton.
>
> Cc: Praveen Paneri <praveen.paneri@intel.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> Cc: Imre Deak <imre.deak@intel.com>
> Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
> ---
> drivers/gpu/drm/i915/i915_drv.h | 1 +
> drivers/gpu/drm/i915/intel_uncore.c | 3 +--
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index 01f5067..5a0b3e2 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -2579,6 +2579,7 @@ intel_info(const struct drm_i915_private *dev_priv)
> #define BXT_REVID_A0 0x0
> #define BXT_REVID_A1 0x1
> #define BXT_REVID_B0 0x3
> +#define BXT_REVID_B_LAST 0x8
> #define BXT_REVID_C0 0x9
>
> #define IS_BXT_REVID(dev_priv, since, until) \
> diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c
> index d7be0d9..c861509 100644
> --- a/drivers/gpu/drm/i915/intel_uncore.c
> +++ b/drivers/gpu/drm/i915/intel_uncore.c
> @@ -421,8 +421,7 @@ static void __intel_uncore_early_sanitize(struct drm_i915_private *dev_priv,
> GT_FIFO_CTL_RC6_POLICY_STALL);
> }
>
> - /* Enable Decoupled MMIO only on BXT C stepping onwards */
> - if (!IS_BXT_REVID(dev_priv, BXT_REVID_C0, REVID_FOREVER))
> + if (IS_BXT_REVID(dev_priv, 0, BXT_REVID_B_LAST)
> info->has_decoupled_mmio = false;
>
> intel_uncore_forcewake_reset(dev_priv, restore_forcewake);
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-11-24 15:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-24 13:17 [PATCH] drm/i915: Don't sanitize has_decoupled_mmio if platform is not broxton Ander Conselvan de Oliveira
2016-11-24 13:23 ` [PATCH v2] " Ander Conselvan de Oliveira
2016-11-24 14:45 ` ✗ Fi.CI.BAT: warning for drm/i915: Don't sanitize has_decoupled_mmio if platform is not broxton (rev2) Patchwork
2016-11-24 15:09 ` Saarinen, Jani
2016-11-24 15:31 ` Ville Syrjälä
2016-11-25 15:10 ` Ander Conselvan De Oliveira
2016-11-24 15:43 ` Saarinen, Jani
2016-11-24 15:45 ` Imre Deak [this message]
2016-11-25 4:07 ` [PATCH] drm/i915: Don't sanitize has_decoupled_mmio if platform is not broxton kbuild test robot
2016-11-25 4:37 ` kbuild test robot
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=1480002346.19768.7.camel@intel.com \
--to=imre.deak@intel.com \
--cc=ander.conselvan.de.oliveira@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=praveen.paneri@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.