drm/i915: Squeeze iommu status into debugfs/i915_capabilities
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Sep 2019 11:46:55 +0000 (12:46 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Sep 2019 19:08:51 +0000 (20:08 +0100)
commit023a125d1dded8e1c21bd9974373b697544ba18d
treee37c095e728d2d38e8397cacfa547de4e08e4d79
parent7cb8468bbede8cac0d9ed69b2549788ecaa6b558
drm/i915: Squeeze iommu status into debugfs/i915_capabilities

There's no easy way of checking whether iommu is enabled for the GPU
(you can grep dmesg if you know the device, or you can grep
i915_gpu_info if that's available). We do have a central
i915_capabilities with the intent of listing such pertinent information,
so add the iommu status.

Suggested-by: Martin Peres <martin.peres@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Martin Peres <martin.peres@linux.intel.com>
Cc: Tomi Sarvela <tomi.p.sarvela@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Acked-by: Martin Peres <martin.peres@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190911114655.9254-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c