• Y
    drm/i915/gvt: use cmd to restore in-context mmios to hw for gen9 platform · df2ea3c2
    Yan Zhao 提交于
    for restore-inhibit context, hardware will not load in-context mmios
    (engine context part) to hardware, but hardware will save the mmio
    values in hardware back to context image. So, in order to save correct
    values of vGPU back to context image, values of vGPU mmios have to be
    loaded into hardware first for restore-inhibit context.
    
    In this patch, the mechanism is applied to all gen9 platform.
    
    The reason excluding gen8 platforms is only because of lacking of testing
    on those platforms.
    
    v3: for mocs registers, goto in-context mmios save-restore path for skl
    platform as well (weinan li)
    v2: update vreg when scanning indirect context for inhibit context for
    gen9
    
    Cc: Weinan Li <weinan.z.li@intel.com>
    Acked-by: NWeinan Li <weinan.z.li@intel.com>
    Signed-off-by: NYan Zhao <yan.y.zhao@intel.com>
    Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
    df2ea3c2
mmio_context.c 17.2 KB