summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/gaudi/gaudiP.h
diff options
context:
space:
mode:
authorOded Gabbay <ogabbay@kernel.org>2021-11-30 21:32:13 +0100
committerOded Gabbay <ogabbay@kernel.org>2021-12-26 07:59:08 +0100
commit6798676f7ef5916133e0c915be73b7a3b7e2a312 (patch)
tree489bf00630c7c9603acaf7599805d8f83537c7e4 /drivers/misc/habanalabs/gaudi/gaudiP.h
parenthabanalabs: save ctx inside encaps signal (diff)
downloadlinux-6798676f7ef5916133e0c915be73b7a3b7e2a312.tar.xz
linux-6798676f7ef5916133e0c915be73b7a3b7e2a312.zip
habanalabs: fix etr asid configuration
Pass the user's context pointer into the etr configuration function to extract its ASID. Using the compute_ctx pointer is an error as it is just an indication of whether a user has opened the compute device. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/gaudi/gaudiP.h')
-rw-r--r--drivers/misc/habanalabs/gaudi/gaudiP.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/habanalabs/gaudi/gaudiP.h b/drivers/misc/habanalabs/gaudi/gaudiP.h
index f325e36a71e6..8ac16a9b7d15 100644
--- a/drivers/misc/habanalabs/gaudi/gaudiP.h
+++ b/drivers/misc/habanalabs/gaudi/gaudiP.h
@@ -357,8 +357,8 @@ void gaudi_init_security(struct hl_device *hdev);
void gaudi_ack_protection_bits_errors(struct hl_device *hdev);
void gaudi_add_device_attr(struct hl_device *hdev,
struct attribute_group *dev_attr_grp);
-int gaudi_debug_coresight(struct hl_device *hdev, void *data);
-void gaudi_halt_coresight(struct hl_device *hdev);
+int gaudi_debug_coresight(struct hl_device *hdev, struct hl_ctx *ctx, void *data);
+void gaudi_halt_coresight(struct hl_device *hdev, struct hl_ctx *ctx);
void gaudi_mmu_prepare_reg(struct hl_device *hdev, u64 reg, u32 asid);
#endif /* GAUDIP_H_ */