[Intel-gfx] [PATCH v2] drm/i915: check ppgtt validity when init reg state

Chris Wilson chris at chris-wilson.co.uk
Mon Jan 9 13:22:40 UTC 2017

On Mon, Jan 09, 2017 at 09:14:53PM +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.
> v2: remove !48bit ppgtt case as we'll always update before submit (Chris)
> Signed-off-by: Zhenyu Wang <zhenyuw at linux.intel.com>

In the absence of any ppgtt, the reg state is zeroed (and before any use
by hw in !48bit). That seems reasonable,

Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

Chris Wilson, Intel Open Source Technology Centre

More information about the Intel-gfx mailing list