diff mbox series

drm/i915: Skip MCHBAR queries on dgfx

Message ID 20191031151124.177930-1-stuart.summers@intel.com (mailing list archive)
State New, archived
Headers show
Series drm/i915: Skip MCHBAR queries on dgfx | expand

Commit Message

Summers, Stuart Oct. 31, 2019, 3:11 p.m. UTC
dgfx does not map the MCHBAR MMIO into the GFX device BAR.
Skip this sequence when running on dgfx.

Signed-off-by: Stuart Summers <stuart.summers@intel.com>
---
 drivers/gpu/drm/i915/i915_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ville Syrjälä Oct. 31, 2019, 3:58 p.m. UTC | #1
On Thu, Oct 31, 2019 at 08:11:24AM -0700, Stuart Summers wrote:
> dgfx does not map the MCHBAR MMIO into the GFX device BAR.
> Skip this sequence when running on dgfx.
> 
> Signed-off-by: Stuart Summers <stuart.summers@intel.com>

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.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 21273b516dbe..1de46bfa5a19 100644
> --- a/drivers/gpu/drm/i915/i915_drv.c
> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -1056,7 +1056,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 || IS_DGFX(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
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 21273b516dbe..1de46bfa5a19 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -1056,7 +1056,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 || IS_DGFX(dev_priv))
 		return;
 
 	if (IS_GEN9_LP(dev_priv))