]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdfb9b11aabf61173f8da7be46f5d64be209b9d11
treed8e3a84dc5483c4eff975baa85d6041ae4afc49d
parent3054a03818fd4c860d550e254f2312e039d19ed1
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]