[PATCH v10 1/4] drm: move drm based debugfs funcs to drm_debugfs.c

Jeff Hugo jeff.hugo at oss.qualcomm.com
Fri Jul 18 16:51:55 UTC 2025


On 7/4/2025 1:55 AM, Sunil Khatri wrote:
> Requirement is to create per client-id based directories to
> hold key debugging information and for that access to
> root debugfs dentry is need which is not in one place
> and that information cannot be stored in drm_device.
> 
> Move the debugfs functionality from drm_drv.c and drm_accel.c
> to drm_debugfs.c This enables debugfs root node reference
> directly drm_debugfs.c and hence enable to create per client-id
> directory.
> 
> v8: Create drm_accel dentry only if it's config is enabled (Jeff, Hugo)
> v8: Merge drm_drv and drm_accel debugfs patches (Koenig, Christian)
> 
> v10: Since we moved drm_debugfs_root, hence to handle drm bridge
> debugfs add a new function which call drm_bridge_debugfs_params where
> drm_debugfs_root is accessible.
> 
> Suggested-by: Christian König <christian.koenig at amd.com>
> Signed-off-by: Sunil Khatri <sunil.khatri at amd.com>

 From the Accel perspective, this seems ok.

Reviewed-by: Jeff Hugo <jeff.hugo at oss.qualcomm.com>


More information about the dri-devel mailing list