[Intel-gfx] [PATCH] Skip MCHBAR queries when display is not available

Ville Syrjälä ville.syrjala at linux.intel.com
Wed Nov 20 10:23:57 UTC 2019


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 at linux.intel.com>

> 
> Signed-off-by: Stuart Summers <stuart.summers at 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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Ville Syrjälä
Intel


More information about the Intel-gfx mailing list