mbox series

[0/9] thunderbolt: Add debugfs support

Message ID 20200826110736.55186-1-mika.westerberg@linux.intel.com (mailing list archive)
Headers show
Series thunderbolt: Add debugfs support | expand

Message

Mika Westerberg Aug. 26, 2020, 11:07 a.m. UTC
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

Comments

Mika Westerberg Sept. 3, 2020, 9:27 a.m. UTC | #1
On Wed, Aug 26, 2020 at 02:07:27PM +0300, Mika Westerberg wrote:
> 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

All applied to thunderbolt.git/next.