OSDN Git Service

drm/i915/debugfs: Enable upper layer interfaces to act on all gt's
authorAndi Shyti <andi.shyti@linux.intel.com>
Sat, 18 Mar 2023 20:36:16 +0000 (21:36 +0100)
committerAndi Shyti <andi.shyti@linux.intel.com>
Tue, 21 Mar 2023 09:10:49 +0000 (10:10 +0100)
commit80ac788a8d2fc8904cce97b7873b6d8fd513a46d
tree8b50bc1d9fd2683575fbab58442eb560fc3bce99
parent70b5ffb393f3f1fbb00ac52c5288d233ae6e991e
drm/i915/debugfs: Enable upper layer interfaces to act on all gt's

The commit 82a149a62b6b ("drm/i915/gt: move remaining debugfs
interfaces into gt") moved gt-related debugfs files in the gtX/
directories to operate on individual gt's.

However, the original files were only functioning on the root
GT (GT 0) and have been left in the same location to maintain
compatibility with userspace users.

Add multiplexing functionality to the higher directories' files.
This enables the operations to be performed on all the GTs with
a single write. In the case of reads, the files provide an or'ed
value across all the tiles.

Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Maciej Patelczyk <maciej.patelczyk@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230318203616.183765-4-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/i915_debugfs.c