OSDN Git Service

habanalabs: add goya implementation for debug configuration
authorOmer Shpigelman <oshpigelman@habana.ai>
Mon, 1 Apr 2019 19:23:02 +0000 (22:23 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 1 Apr 2019 19:23:02 +0000 (22:23 +0300)
commit8ba2876ddf935b845340571e2d197347b428879e
treed8e3a84dc5483c4eff975baa85d6041ae4afc49d
parent315bc055ed5667232859b17adb837f87c1629f81
habanalabs: add goya implementation for debug configuration

This patch adds the ASIC-specific function for GOYA to configure the
coresight components.

Most of the components have an enabled/disabled flag, depending on whether
the user wants to enable the component or disable it.

For some of the components, such as ETR and SPMU, the user can also
request to read values from them. Those values are needed for the user to
parse the trace data.

The ETR configuration is also checked for security purposes, to make sure
the trace data is written to the device's DRAM.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/goya/goyaP.h
drivers/misc/habanalabs/goya/goya_coresight.c
drivers/misc/habanalabs/include/goya/asic_reg/goya_regs.h
drivers/misc/habanalabs/include/goya/asic_reg/pcie_wrap_regs.h [new file with mode: 0644]
drivers/misc/habanalabs/include/goya/goya_coresight.h [new file with mode: 0644]