From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: linux-usb@vger.kernel.org
Cc: Michael Jamet <michael.jamet@intel.com>,
Yehezkel Bernat <YehezkelShB@gmail.com>,
Andreas Noever <andreas.noever@gmail.com>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Gil Fine <gil.fine@intel.com>, Lukas Wunner <lukas@wunner.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: [PATCH 0/9] thunderbolt: Add debugfs support
Date: Wed, 26 Aug 2020 14:07:27 +0300 [thread overview]
Message-ID: <20200826110736.55186-1-mika.westerberg@linux.intel.com> (raw)
Hi all,
This series adds debugfs support to the driver. This is useful when
debugging different hardware/software issues as the developer can dump
different config spaces of the router including adapter, path and counters
config spaces. Each connected router is exposed in debugfs under
thunderbolt directory, and the naming follows what we have in sysfs.
This also adds a capability to write certain registers but that needs to be
enabled through Kconfig option, not supposed to be enabled by distros (or
regular users).
The series is based on top of my "Power Management improvements" patches
which can be viewed in the below link:
https://lore.kernel.org/linux-usb/20200819115905.59834-1-mika.westerberg@linux.intel.com/
Gil Fine (2):
thunderbolt: Introduce tb_switch_is_tiger_lake()
thunderbolt: Add debugfs interface
Mika Westerberg (7):
thunderbolt: Move struct tb_cap_any to tb_regs.h
thunderbolt: Introduce tb_port_next_cap()
thunderbolt: Introduce tb_switch_next_cap()
thunderbolt: Introduce tb_port_is_nhi()
thunderbolt: Check for Intel vendor ID when identifying controller
thunderbolt: Introduce tb_switch_is_ice_lake()
thunderbolt: No need to warn in TB_CFG_ERROR_INVALID_CONFIG_SPACE
drivers/thunderbolt/Kconfig | 10 +
drivers/thunderbolt/Makefile | 1 +
drivers/thunderbolt/cap.c | 126 ++++--
drivers/thunderbolt/ctl.c | 5 +-
drivers/thunderbolt/debugfs.c | 700 ++++++++++++++++++++++++++++++++++
drivers/thunderbolt/domain.c | 13 +-
drivers/thunderbolt/switch.c | 5 +-
drivers/thunderbolt/tb.h | 109 ++++--
drivers/thunderbolt/tb_regs.h | 18 +-
9 files changed, 909 insertions(+), 78 deletions(-)
create mode 100644 drivers/thunderbolt/debugfs.c
--
2.28.0
next reply other threads:[~2020-08-26 11:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-26 11:07 Mika Westerberg [this message]
2020-08-26 11:07 ` [PATCH 1/9] thunderbolt: Move struct tb_cap_any to tb_regs.h Mika Westerberg
2020-08-26 11:07 ` [PATCH 2/9] thunderbolt: Introduce tb_port_next_cap() Mika Westerberg
2020-08-26 11:07 ` [PATCH 3/9] thunderbolt: Introduce tb_switch_next_cap() Mika Westerberg
2020-09-01 9:01 ` [PATCH v2 " Mika Westerberg
2020-08-26 11:07 ` [PATCH 4/9] thunderbolt: Introduce tb_port_is_nhi() Mika Westerberg
2020-08-26 11:07 ` [PATCH 5/9] thunderbolt: Check for Intel vendor ID when identifying controller Mika Westerberg
2020-08-26 11:07 ` [PATCH 6/9] thunderbolt: Introduce tb_switch_is_ice_lake() Mika Westerberg
2020-08-26 11:07 ` [PATCH 7/9] thunderbolt: Introduce tb_switch_is_tiger_lake() Mika Westerberg
2020-08-26 11:07 ` [PATCH 8/9] thunderbolt: No need to warn in TB_CFG_ERROR_INVALID_CONFIG_SPACE Mika Westerberg
2020-08-26 11:07 ` [PATCH 9/9] thunderbolt: Add debugfs interface Mika Westerberg
2020-08-26 11:22 ` Greg Kroah-Hartman
2020-08-26 11:40 ` Mika Westerberg
2020-09-03 9:27 ` [PATCH 0/9] thunderbolt: Add debugfs support Mika Westerberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200826110736.55186-1-mika.westerberg@linux.intel.com \
--to=mika.westerberg@linux.intel.com \
--cc=YehezkelShB@gmail.com \
--cc=andreas.noever@gmail.com \
--cc=gil.fine@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=michael.jamet@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).