intel_th: Add Global Trace Hub driver
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Tue, 22 Sep 2015 12:47:16 +0000 (15:47 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 19:28:58 +0000 (20:28 +0100)
commitb27a6a3f97b90f05ed145f553de46d5d9d47d78d
tree7d622ac166ba32895f6edbada15a0be676701c3d
parent2b0b16d329add49d503ff08b45d7636731f493dc
intel_th: Add Global Trace Hub driver

Global Trace Hub (GTH) is the central component of Intel TH architecture;
it carries out switching between the trace sources and trace outputs, can
enable/disable tracing, perform STP encoding, internal buffering, control
backpressure from outputs to sources and so on.

This property is also reflected in the software model; GTH (switch) driver
is required for the other subdevices to probe, because it matches trace
output devices against its output ports and configures them accordingly.

It also implements an interface for output ports to request trace enabling
or disabling and a few other useful things.

For userspace, it provides an attribute group "masters", which allows
configuration of per-master trace output destinations for up to master 255
and "256+" meaning "masters 256 and above". It also provides an attribute
group to discover and configure some of the parameters of its output ports,
called "outputs". Via these the user can set up data retention policy for
an individual output port or check if it is in reset state.

Signed-off-by: Laurent Fert <laurent.fert@intel.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-intel_th-devices-gth [new file with mode: 0644]
drivers/hwtracing/intel_th/Kconfig
drivers/hwtracing/intel_th/Makefile
drivers/hwtracing/intel_th/gth.c [new file with mode: 0644]
drivers/hwtracing/intel_th/gth.h [new file with mode: 0644]