drm: Track clients by tgid and not tid
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 14 Mar 2023 14:18:55 +0000 (14:18 +0000)
committerChristian König <christian.koenig@amd.com>
Wed, 15 Mar 2023 13:03:00 +0000 (14:03 +0100)
commit4230cea89cafb11b2c2e4dcac8b505e7a766b386
treee0f48d54032109d733b22c9741abc02ac97384b4
parente2945e6c5111726536c6046eaa1b840636e066a8
drm: Track clients by tgid and not tid

Thread group id (aka pid from userspace point of view) is a more
interesting thing to show as an owner of a DRM fd, so track and show that
instead of the thread id.

In the next patch we will make the owner updated post file descriptor
handover, which will also be tgid based to avoid ping-pong when multiple
threads access the fd.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230314141904.1210824-2-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/drm_debugfs.c
drivers/gpu/drm/drm_file.c
drivers/gpu/drm/vmwgfx/vmwgfx_gem.c