Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8c26622 authored by Ben Widawsky's avatar Ben Widawsky Committed by Daniel Vetter
Browse files

drm/i915: Setup less PPGTT on failed page_directory



The current code will both potentially print a WARN, and setup part of
the PPGTT structure. Neither of these harm the current code, it is
simply for clarity, and to perhaps prevent later bugs, or weird
debug messages.

Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
Signed-off-by: default avatarMichel Thierry <michel.thierry@intel.com>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 76643600
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -1032,11 +1032,14 @@ static int gen6_ppgtt_allocate_page_directories(struct i915_hw_ppgtt *ppgtt)
		goto alloc;
		goto alloc;
	}
	}


	if (ret)
		return ret;

	if (ppgtt->node.start < dev_priv->gtt.mappable_end)
	if (ppgtt->node.start < dev_priv->gtt.mappable_end)
		DRM_DEBUG("Forced to use aperture for PDEs\n");
		DRM_DEBUG("Forced to use aperture for PDEs\n");


	ppgtt->num_pd_entries = GEN6_PPGTT_PD_ENTRIES;
	ppgtt->num_pd_entries = GEN6_PPGTT_PD_ENTRIES;
	return ret;
	return 0;
}
}


static int gen6_ppgtt_allocate_page_tables(struct i915_hw_ppgtt *ppgtt)
static int gen6_ppgtt_allocate_page_tables(struct i915_hw_ppgtt *ppgtt)