• Yan Zhao's avatar
    drm/i915/gvt: use cmd to restore in-context mmios to hw for gen9 platform · df2ea3c2
    Yan Zhao authored
    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: default avatarWeinan Li <weinan.z.li@intel.com>
    Signed-off-by: default avatarYan Zhao <yan.y.zhao@intel.com>
    Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
    df2ea3c2
cmd_parser.c 88.6 KB