• Marius Vlad's avatar
    tests/kms_sysfs_edid_timing: Convert sh to C version. · 2e66e8db
    Marius Vlad authored
    The debug output for a HSW machine with two connectors (VGA and HDMI):
    
    DEBUG: card0-VGA-1: mean.max 12896229,00ns, 12896,23us, 12,90ms, mean.avg 12785055,80ns, 12785,06us, 12,79ms
    WARNING: card0-VGA-1: probe time exceed 10ms, max=12,90ms, avg=12,79ms
    DEBUG: card0-HDMI-A-1: mean.max 781433,00ns, 781,43us, 0,78ms, mean.avg 706643,20ns, 706,64us, 0,71ms
    
    v4:
    - do not include the time opening the fd (Chris Wilson)
    - include output from debug (Chris Wilson)
    
    v3:
    - use igt_mean for accounting (Chris Wilson)
    - make it Intel-agnostic when searching for connectors (Chris Wilson)
    
    v2:
    - don't read cached values (Chris Wilson)
    - warn on per connector, and fail per mean (Chris Wilson)
    
    These are synthetic: 10ms per connector, and 50ms for all.
    Signed-off-by: 's avatarMarius Vlad <marius.c.vlad@intel.com>
    Acked-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
    2e66e8db
kms_sysfs_edid_timing.c 2.87 KB