+#if (CONFIG_GFXUMA == 1) /* UMA or SP. */
+ /* For now we assume the UMA space is at the end of memory below 4GB */
+ if (var_state.hole_startk || var_state.hole_sizek) {
+ printk(BIOS_DEBUG, "Warning: Can't set up MTRR hole for UMA due to pre-existing MTRR hole.\n");
+ } else {
+#if CONFIG_VAR_MTRR_HOLE
+ // Increase the base range and set up UMA as an UC hole instead
+ var_state.range_sizek += (uma_memory_size >> 10);
+
+ var_state.hole_startk = (uma_memory_base >> 10);
+ var_state.hole_sizek = (uma_memory_size >> 10);
+#endif
+ }
+#endif