[Intel-gfx] [PATCH 8/8] drm/i915: Support alias ppgtt in VM if ppgtt is enabled

Chris Wilson chris at chris-wilson.co.uk
Mon Sep 22 13:27:07 CEST 2014


On Mon, Sep 22, 2014 at 07:17:41PM +0800, Jike Song wrote:
> Thanks for the demo. Currently sanitize_enable_ppgtt() is called by i915_gem_gtt_init(), before
> intel_check_vgpu().
> 
> I'm trying to detect VGPU as early as possible, maybe between intel_detect_pch() and intel_uncore_init(),
> using bare readq/readw instead of I915_READxx.

I am thinking that the right level for check_vgpu is uncore_init. Using
raw mmio is acceptable at that point, and once you know you have a vgpu
you can forgo all the mmio emulation.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list