Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1946540imm; Thu, 12 Jul 2018 10:22:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc3J/PQX+3DvXVQceEVw+WCGy+NpOwwFJfIJr0klVqSK9buo/RSwubD8CPp+rl7uSLTv6Mb X-Received: by 2002:a63:e60c:: with SMTP id g12-v6mr2950620pgh.308.1531416156305; Thu, 12 Jul 2018 10:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531416156; cv=none; d=google.com; s=arc-20160816; b=XLtAi0o3AEEvpPg+SDb4vOH0I42g3/QIOD1e47fQAsqAQyg570ggDpYUA8BjO4K9/q GsrmXecPOXkGA+Ro8o7C2S0E5vulOFbi39jFPDFMtBhSMkXcydbMuQSnNauS9Sdd5EHb AYkncGAgcW+VYNExStIln/Q0RaYHMR/gbYYSqXMQ58XlibZ+gCw61B5IVHE9jlgwpbMx usZq/TGhqkwt1hljS8d2kn0z3VriEZg+1s7S9/SI0uUgrgpk/zhnpw6UrR2e4wOyw0Hw HF6uR+69a7kOP1MRqCAvBNdrK/hP7KwbMZyPPDBSk3hDj84hXaz4ybrpsbgp+lPXd7+V 7rwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=TXdj/4GDDjY63k8RkvkpHsWdt8vcMXS+ar9cvWgI1nQ=; b=ubkXcpOn79O86bEYNn8TkpzlSZ9SKPKI/Oc8t27Aa0qe1mrzDzlyS31+MhxZFPlTX8 IQjGYz5JrEIhUAFMGGo7MZqZRT/O/cmcwWldFWx/DqURgGwN1iKij3B/CONbu5HQS4Et aA+DeAUw4xKliRxy8aSo+90ILT4+P5Fb/PSwsccXjGa3h2SobUCYSrT1G1erpjv4p3+J W1mwnUl/Eb1xtKM1FEpdVdcO0HgmjwNVdpX1UzaoS1L/FWuOx0r7i6WurAtjHy0Gg/a5 uyr5l9X5P3ucno+2y1BhTbLyLw/82gOjJuyb+wsrwJb7I7lwYenfpZ/UaChhlBTAqxEj xpqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b="Mi6O/Uy2"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7-v6si21329333pga.393.2018.07.12.10.22.20; Thu, 12 Jul 2018 10:22:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b="Mi6O/Uy2"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732624AbeGLRb4 (ORCPT + 99 others); Thu, 12 Jul 2018 13:31:56 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:35898 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727366AbeGLRbz (ORCPT ); Thu, 12 Jul 2018 13:31:55 -0400 Received: by mail-ed1-f66.google.com with SMTP id t3-v6so22472701eds.3 for ; Thu, 12 Jul 2018 10:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=TXdj/4GDDjY63k8RkvkpHsWdt8vcMXS+ar9cvWgI1nQ=; b=Mi6O/Uy2VOQBPlgF52Dq9BOU8MRHe1qog/abhXN6FjbKZV6U9alOqWBD1fA/o4mW1R zJPtd7OJf1v5m4jdWu7CzSl8vqE9X+oRjajAqDqD6N0EGcrS5foOx8Mx2CgZaE9c9eBi GssRQIIoLboxhMmfEFg1CBSiGwkRQVaLZ9zHo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=TXdj/4GDDjY63k8RkvkpHsWdt8vcMXS+ar9cvWgI1nQ=; b=gaIPQt0LBEeYrXmhkKfhyCWTcJ5YOvel2vYJgrw70W0nKVPSzcskGJM2T0d9PHfVIG dZ+/EN4R58kMZy5T9wujg5rGB0kQnPF6RhItBVxQzJDBD6N/fu1bTMla0KUO/Lha4wkF 6LOiTNLIbikBXljrXz57ZJhWvEg9zYNxklctRc2R3mm4uYCYl3cKDG8EQfvd8HgEny0/ wLqhqvo7RBWyO/ht6QwbbxFhCJi7u2EEh/z9JCytNeK16037op2jKCmULW0UCINeYldH 86BfunNZbdUNVRuVZ/RRx63H3EIzqbGLUP6DWwSDrhbhfGKtrEmPC8n1FGUtFQXv7Bnw Pv9w== X-Gm-Message-State: AOUpUlHXyEecyxcNrEtVRVYr9SElAnO4M8oD2jiF0r9Mnc8J3IMN9FNF 4i5RInCuL+6OJ+GYfsyZ4Fr2Tw== X-Received: by 2002:aa7:c592:: with SMTP id g18-v6mr3502248edq.214.1531416084557; Thu, 12 Jul 2018 10:21:24 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5628:0:496f:7dc5:66d7:a057]) by smtp.gmail.com with ESMTPSA id p18-v6sm5159443edc.5.2018.07.12.10.21.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Jul 2018 10:21:23 -0700 (PDT) Date: Thu, 12 Jul 2018 19:21:21 +0200 From: Daniel Vetter To: Lyude Paul Cc: nouveau@lists.freedesktop.org, David Airlie , Maarten Lankhorst , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , Archit Taneja Subject: Re: [PATCH 0/2] drm/nouveau: Add support for dp_mst_info in debugfs Message-ID: <20180712172121.GS3008@phenom.ffwll.local> Mail-Followup-To: Lyude Paul , nouveau@lists.freedesktop.org, David Airlie , Maarten Lankhorst , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , Archit Taneja References: <20180712171056.26359-1-lyude@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180712171056.26359-1-lyude@redhat.com> X-Operating-System: Linux phenom 4.14.0-3-amd64 User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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