• Daisy Sun's avatar
    drm/i915/bdw: BDW Software Turbo · c76bb61a
    Daisy Sun authored
    BDW supports GT C0 residency reporting in constant time unit. Driver
    calculates GT utilization based on C0 residency and adjusts RP
    frequency up/down accordingly. For offscreen workload specificly,
    set frequency to RP0.
    
    Offscreen task is not restricted by frame rate, it can be
    executed as soon as possible. Transcoding and serilized workload
    between CPU and GPU both need high GT performance, RP0 is a good
    option in this case. RC6 will kick in to compensate power
    consumption when GT is not active.
    
    v2: Rebase on recent drm-intel-nightly
    v3: Add flip timerout monitor, when no flip is deteced within
    100ms, set frequency to RP0.
    Signed-off-by: default avatarDaisy Sun <daisy.sun@intel.com>
    [torourke: rebased on latest and resolved conflict]
    Signed-off-by: default avatarTom O'Rourke <Tom.O'Rourke@intel.com>
    Acked-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    c76bb61a
intel_display.c 373 KB