[Intel-gfx] [PATCH v5 2/2] drm/i915/icl: Define MOCS table for Icelake

Michal Wajdeczko michal.wajdeczko at intel.com
Tue Nov 6 17:43:26 UTC 2018


On Tue, 06 Nov 2018 17:47:27 +0100, Tomasz Lis <tomasz.lis at intel.com>  
wrote:

[snip]

> +static const struct drm_i915_mocs_entry icelake_mocs_table[] = {
> +	GEN11_MOCS_ENTRIES
> +	[16] = {
> +	  /* Reserved - For future use */
> +	  .control_value = MOCS_CONTROL_VALUE(LE_PAGETABLE, LE_TC_PAGETABLE,
> +					      0, 0, 0, 0, 0, 0, 0, 0),
> +	  .l3cc_value = MOCS_L3CC_VALUE(0, 0, L3_DIRECT),
> +	},
> +	[17] = {
> +	  /* Reserved - For future use */
> +	  .control_value = MOCS_CONTROL_VALUE(LE_PAGETABLE, LE_TC_PAGETABLE,
> +					      0, 0, 0, 0, 0, 0, 0, 0),
> +	  .l3cc_value = MOCS_L3CC_VALUE(0, 0, L3_DIRECT),
> +	},

Hmm, these 2 entries are reserved (and all zeros) so maybe there so no need
to define them explicitly ? No one shall use them right now (same as  
entries
24-61). If in the future these entries will be unreserved and correctly  
defined
(table v2) then we can provide meaningful definitions back here.

Michal


More information about the Intel-gfx mailing list