• O
    drm/i915/bdw: Initialization for Logical Ring Contexts · ede7d42b
    Oscar Mateo 提交于
    For the moment this is just a placeholder, but it shows one of the
    main differences between the good ol' HW contexts and the shiny
    new Logical Ring Contexts: LR contexts allocate  and free their
    own backing objects. Another difference is that the allocation is
    deferred (as the create function name suggests), but that does not
    happen in this patch yet, because for the moment we are only dealing
    with the default context.
    
    Early in the series we had our own gen8_gem_context_init/fini
    functions, but the truth is they now look almost the same as the
    legacy hw context init/fini functions. We can always split them
    later if this ceases to be the case.
    
    Also, we do not fall back to legacy ringbuffers when logical ring
    context initialization fails (not very likely to happen and, even
    if it does, hw contexts would probably fail as well).
    
    v2: Daniel says "explain, do not showcase".
    Signed-off-by: NOscar Mateo <oscar.mateo@intel.com>
    Reviewed-by: NDamien Lespiau <damien.lespiau@intel.com>
    [danvet: s/BUG_ON/WARN_ON/.]
    Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
    ede7d42b
i915_gem_context.c 24.9 KB