Skip to content

RFC drm: Add comm/cmdline fdinfo fields

Rob Clark dri-devel linux-arm-msm linux-doc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/doc: Relax fdinfo string constraintsDocumentation/gpu/drm-usage-stats.rst+15 -141 reply
2/3drm/msm: Rework get_comm_cmdline() helperdrivers/gpu/drm/msm/adreno/adreno_gpu.c drivers/gpu/drm/msm/msm_drv.c drivers/gpu/drm/msm/msm_gpu.c +2 more+21 -117 replies
3/3drm/msm: Add comm/cmdline fieldsDocumentation/gpu/drm-usage-stats.rst drivers/gpu/drm/msm/msm_gpu.c+22 -04 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchTvrtko UrsulinEmil Velikov
1/3A-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 0/3] drm: Add comm/cmdline fdinfo fields

From: Rob Clark <[email protected]>

When many of the things using the GPU are processes in a VM guest, the actual client process is just a proxy. The msm driver has a way to let the proxy tell the kernel the actual VM client process's executable name and command-line, which has until now been used simply for GPU crash devcore dumps. Lets also expose this via fdinfo so that tools can expose who the actual user of the GPU is.

Rob Clark (3):
drm/doc: Relax fdinfo string constraints
drm/msm: Rework get_comm_cmdline() helper
drm/msm: Add comm/cmdline fields

 Documentation/gpu/drm-usage-stats.rst   | 37 +++++++++++++++----------
 drivers/gpu/drm/msm/adreno/adreno_gpu.c |  4 +--
 drivers/gpu/drm/msm/msm_drv.c           |  2 ++
 drivers/gpu/drm/msm/msm_gpu.c           | 27 +++++++++++++-----
 drivers/gpu/drm/msm/msm_gpu.h           | 12 ++++++--
 drivers/gpu/drm/msm/msm_submitqueue.c   |  1 +
 6 files changed, 58 insertions(+), 25 deletions(-)
Signature · 1 line
2.39.2