Skip to content

Commit 615c164

Browse files
virtuosogregkh
authored andcommitted
intel_th: msu: Introduce buffer interface
Introduces a concept of external buffers, which is a mechanism for creating trace sinks that would receive trace data from MSC buffers and transfer it elsewhere. A external buffer can implement its own window allocation/deallocation if it has to. It must provide a callback that's used to notify it when a window fills up, so that it can then start a DMA transaction from that window 'elsewhere'. This window remains in a 'locked' state and won't be used for storing new trace data until the buffer 'unlocks' it with a provided API call, at which point the window can be used again for storing trace data. This relies on a functional "last block" interrupt, so not all versions of Trace Hub can use this feature, which does not reflect on existing users. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20190705141425.19894-2-alexander.shishkin@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent db4ad30 commit 615c164

5 files changed

Lines changed: 461 additions & 30 deletions

File tree

‎Documentation/ABI/testing/sysfs-bus-intel_th-devices-msc‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Description: (RW) Configure MSC operating mode:
1212
- "single", for contiguous buffer mode (high-order alloc);
1313
- "multi", for multiblock mode;
1414
- "ExI", for DCI handler mode;
15-
- "debug", for debug mode.
15+
- "debug", for debug mode;
16+
- any of the currently loaded buffer sinks.
1617
If operating mode changes, existing buffer is deallocated,
1718
provided there are no active users and tracing is not enabled,
1819
otherwise the write will fail.

‎MAINTAINERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8360,6 +8360,7 @@ M: Alexander Shishkin <alexander.shishkin@linux.intel.com>
83608360
S: Supported
83618361
F: Documentation/trace/intel_th.rst
83628362
F: drivers/hwtracing/intel_th/
8363+
F: include/linux/intel_th.h
83638364

83648365
INTEL(R) TRUSTED EXECUTION TECHNOLOGY (TXT)
83658366
M: Ning Sun <ning.sun@intel.com>

0 commit comments

Comments
 (0)