All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Stuart Summers <stuart.summers@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] Skip MCHBAR queries when display is not available
Date: Wed, 20 Nov 2019 12:23:57 +0200	[thread overview]
Message-ID: <20191120102357.GE1208@intel.com> (raw)
In-Reply-To: <20191120004505.149516-1-stuart.summers@intel.com>

On Tue, Nov 19, 2019 at 04:45:05PM -0800, Stuart Summers wrote:
> Platforms without display do not map the MCHBAR MMIO into the GFX
> device BAR. Skip this sequence when display is not available.

Slightly odd decision to hide this stuff in hw, but fine by me
since we need this only for display bandwidth/watermark stuff.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> 
> Signed-off-by: Stuart Summers <stuart.summers@intel.com>
> ---
>  drivers/gpu/drm/i915/i915_drv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
> index 8d7049792d62..f509d826fcc7 100644
> --- a/drivers/gpu/drm/i915/i915_drv.c
> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -1052,7 +1052,7 @@ intel_get_dram_info(struct drm_i915_private *dev_priv)
>  	 */
>  	dram_info->is_16gb_dimm = !IS_GEN9_LP(dev_priv);
>  
> -	if (INTEL_GEN(dev_priv) < 9)
> +	if (INTEL_GEN(dev_priv) < 9 || !HAS_DISPLAY(dev_priv))
>  		return;
>  
>  	if (IS_GEN9_LP(dev_priv))
> -- 
> 2.22.0
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

WARNING: multiple messages have this Message-ID (diff)
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Stuart Summers <stuart.summers@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] Skip MCHBAR queries when display is not available
Date: Wed, 20 Nov 2019 12:23:57 +0200	[thread overview]
Message-ID: <20191120102357.GE1208@intel.com> (raw)
Message-ID: <20191120102357.XrExGAetei57I66qFNYvd_gbOLlC0D-vhO1rKeUACqs@z> (raw)
In-Reply-To: <20191120004505.149516-1-stuart.summers@intel.com>

On Tue, Nov 19, 2019 at 04:45:05PM -0800, Stuart Summers wrote:
> Platforms without display do not map the MCHBAR MMIO into the GFX
> device BAR. Skip this sequence when display is not available.

Slightly odd decision to hide this stuff in hw, but fine by me
since we need this only for display bandwidth/watermark stuff.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> 
> Signed-off-by: Stuart Summers <stuart.summers@intel.com>
> ---
>  drivers/gpu/drm/i915/i915_drv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
> index 8d7049792d62..f509d826fcc7 100644
> --- a/drivers/gpu/drm/i915/i915_drv.c
> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -1052,7 +1052,7 @@ intel_get_dram_info(struct drm_i915_private *dev_priv)
>  	 */
>  	dram_info->is_16gb_dimm = !IS_GEN9_LP(dev_priv);
>  
> -	if (INTEL_GEN(dev_priv) < 9)
> +	if (INTEL_GEN(dev_priv) < 9 || !HAS_DISPLAY(dev_priv))
>  		return;
>  
>  	if (IS_GEN9_LP(dev_priv))
> -- 
> 2.22.0
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2019-11-20 10:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-20  0:45 [PATCH] Skip MCHBAR queries when display is not available Stuart Summers
2019-11-20  0:45 ` [Intel-gfx] " Stuart Summers
2019-11-20  1:35 ` ✓ Fi.CI.BAT: success for " Patchwork
2019-11-20  1:35   ` [Intel-gfx] " Patchwork
2019-11-20 10:23 ` Ville Syrjälä [this message]
2019-11-20 10:23   ` [Intel-gfx] [PATCH] " Ville Syrjälä
2019-11-20 15:10   ` Summers, Stuart
2019-11-20 15:10     ` [Intel-gfx] " Summers, Stuart
2019-11-20 17:32 ` ✗ Fi.CI.IGT: failure for " Patchwork
2019-11-20 17:32   ` [Intel-gfx] " 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=20191120102357.GE1208@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=stuart.summers@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.