• Zhenyu Wang's avatar
    drm/i915/gvt: Fix workload request allocation before request add · f0e99437
    Zhenyu Wang authored
    In commit 6bb2a2af ("drm/i915/gvt: Fix crash after request->hw_context change"),
    forgot to handle workload scan path in ELSP handler case which was to
    optimize scanning earlier instead of in gvt submission thread, so request
    alloc and add was splitting then which is against right process.
    
    This trys to do a partial revert of that commit which still has workload
    request alloc helper and make sure shadow state population is handled after
    request alloc for target state buffer.
    
    v3: Fix missed workload status setting in request alloc error path
    v2: Fix dispatch workload err path that should add request after alloc anyway.
    
    Fixes: 6bb2a2af ("drm/i915/gvt: Fix crash after request->hw_context change")
    Cc: Bin Yang <bin.yang@intel.com>
    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Tested-by: default avatarBin Yang <bin.yang@intel.com>
    Reviewed-by: default avatarXiaolin Zhang <xiaolin.zhang@intel.com>
    Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
    f0e99437
scheduler.h 4.82 KB