]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/fdinfo: Don't show engine classes not present
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 16 Jun 2022 14:00:56 +0000 (15:00 +0100)
committerJani Nikula <jani.nikula@intel.com>
Mon, 20 Jun 2022 10:07:49 +0000 (13:07 +0300)
commit275c56f61ff83a3ad979fc4c9d8beda5eb5542af
treef5346ebbc786ddead2cadf685d0ba0de34d19c2b
parentc8c7c628d33d4af2b89356ebbdfa74881ca99bfd
drm/i915/fdinfo: Don't show engine classes not present

Stop displaying engine classes with no engines - it is not a huge problem
if they are shown, since the values will correctly be all zeroes, but it
does count as misleading.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Fixes: 0c54e57fcfac ("drm/i915: Expose client engine utilisation via fdinfo")
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220616140056.559074-1-tvrtko.ursulin@linux.intel.com
(cherry picked from commit 9f1b1d0b2242171b2891a0398def233801601c14)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_drm_client.c