Re: [PATCH 0/2] drm/nouveau: Add support for dp_mst_info in debugfs

From: Daniel Vetter
Date: Thu Jul 12 2018 - 13:21:29 EST


On Thu, Jul 12, 2018 at 01:10:45PM -0400, Lyude Paul wrote:
> This hooks up the DRM helpers for dumping information on the current
> status of each MST topology from nouveau's perspective to debugfs files,
> similar to what i915 does (albeit, i915 labels their debugfs node for
> this as i915_dp_mst_info).
>
> Lyude Paul (2):
> drm/nouveau: Expose nv50 MST structures in disp.h
> drm/nouveau: Hook up dp_mst_info in debugfs

We already register the i2c-over-aux and dp_aux devnodes in
drm_dp_aux_register(). Could we do the same with a per-devnode debugfs
file for mst? The topology manager sits on top of the dp aux abstraction,
so this could work, with s/encoder->name/dp_aux->name/.

Would give us mst info on every driver for free (plus we could nuke the
ad-hoc version in i915).
-Daniel

>
> drivers/gpu/drm/nouveau/dispnv50/disp.c | 34 ----------------
> drivers/gpu/drm/nouveau/dispnv50/disp.h | 35 +++++++++++++++++
> drivers/gpu/drm/nouveau/nouveau_debugfs.c | 47 ++++++++++++++++++++++-
> 3 files changed, 80 insertions(+), 36 deletions(-)
>
> --
> 2.17.1
>

--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch