• Rob Clark's avatar
    drm/msm: Add SYSPROF param (v2) · 90f45c42
    Rob Clark authored
    Add a SYSPROF param for system profiling tools like Mesa's pps-producer
    (perfetto) to control behavior related to system-wide performance
    counter collection.  In particular, for profiling, one wants to ensure
    that GPU context switches do not effect perfcounter state, and might
    want to suppress suspend (which would cause counters to lose state).
    
    v2: Swap the order in msm_file_private_set_sysprof() [sboyd] and
        initialize the sysprof_active refcount to one (because the under/
        overflow checking in refcount_t doesn't expect a 0->1 transition)
        meaning that values greater than 1 means sysprof is active.
    Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
    Link: https://lore.kernel.org/r/20220304005317.776110-4-robdclark@gmail.com
    90f45c42
msm_submitqueue.c 6.24 KB