• Matthew Auld's avatar
    drm/xe/uapi: restrict system wide accounting · 1105ac15
    Matthew Auld authored
    Since this is considered an info leak (system wide accounting), rather
    hide behind perfmon_capable().
    
    v2:
      - Without perfmon_capable() it likely makes more sense to report as zero,
        instead of reporting as used == total size. This should give similar
        behaviour as i915 which rather tracks free instead of used.
    Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
    Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
    Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
    Cc: Lucas De Marchi <lucas.demarchi@intel.com>
    Cc: José Roberto de Souza <jose.souza@intel.com>
    Cc: Filip Hazubski <filip.hazubski@intel.com>
    Cc: Carl Zhang <carl.zhang@intel.com>
    Cc: Effie Yu <effie.yu@intel.com>
    Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
    Reviewed-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
    Reviewed-by: default avatarGwan-gyeong Mun <gwan-gyeong.mun@intel.com>
    Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
    1105ac15
xe_query.c 9.84 KB