[Intel-gfx] [PATCH] drm/i915: check ppgtt validity when init reg state
Chris Wilson
chris at chris-wilson.co.uk
Mon Jan 9 12:04:14 UTC 2017
On Mon, Jan 09, 2017 at 05:16:01PM +0800, Zhenyu Wang wrote:
> Check if ppgtt is valid for context when init reg state. For gvt
> context which has no i915 allocated ppgtt, failed to check that
> would cause kernel null ptr reference error.
>
> Signed-off-by: Zhenyu Wang <zhenyuw at linux.intel.com>
Bah, we could remove the !48bit path here since we always set it prior
to submission (i.e. if (ppgtt && USE_FULL_48BIT_PPGTT()) {} )
That would look more symmetrical.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list