drm/i915/tgl: add gen12 to stolen initialization

Add case for gen == 12 and add MISSING_CASE() for future gens. We were
already handling gen12 as the default, so this doesn't change the
current behavior.

BSpec: 19481 and 44980

Cc: CQ Tang <cq.tang@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190904213419.27547-7-jose.souza@intel.com
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
This commit is contained in:
Lucas De Marchi 2019-09-04 14:34:19 -07:00 committed by José Roberto de Souza
parent 8ffa4392a3
commit 5b548ae63d

View File

@ -425,8 +425,11 @@ int i915_gem_init_stolen(struct drm_i915_private *dev_priv)
bdw_get_stolen_reserved(dev_priv, bdw_get_stolen_reserved(dev_priv,
&reserved_base, &reserved_size); &reserved_base, &reserved_size);
break; break;
case 11:
default: default:
MISSING_CASE(INTEL_GEN(dev_priv));
/* fall-through */
case 11:
case 12:
icl_get_stolen_reserved(dev_priv, &reserved_base, icl_get_stolen_reserved(dev_priv, &reserved_base,
&reserved_size); &reserved_size);
break; break;