[Intel-gfx] [PATCH 6/8] drm/i915: preparation for using PAT index

Andi Shyti andi.shyti at linux.intel.com
Wed Apr 19 11:17:23 UTC 2023


Hi Fei,

[...]

> @@ -180,6 +182,14 @@ struct drm_i915_private *mock_gem_device(void)
>  		I915_GTT_PAGE_SIZE_2M;
>  
>  	RUNTIME_INFO(i915)->memory_regions = REGION_SMEM;
> +
> +

double space here, otherwise:

Reviewed-by: Andi Shyti <andi.shyti at linux.intel.com> 

Andi

> +	/* simply use legacy cache level for mock device */
> +	i915_info = (struct intel_device_info *)INTEL_INFO(i915);
> +	i915_info->max_pat_index = 3;
> +	for (i = 0; i < I915_MAX_CACHE_LEVEL; i++)
> +		i915_info->cachelevel_to_pat[i] = i;
> +
>  	intel_memory_regions_hw_probe(i915);
>  
>  	spin_lock_init(&i915->gpu_error.lock);
> -- 
> 2.25.1


More information about the Intel-gfx mailing list