diff options
author | Omer Shpigelman <oshpigelman@habana.ai> | 2020-05-10 14:10:15 +0300 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2020-05-19 14:48:41 +0300 |
commit | 9e5e49cd5b90cf53a6a403a04f003b8a9a084e46 (patch) | |
tree | 20bb5b9c11f8634def73c7cb1b914f0ed7caf469 /drivers/misc/habanalabs/habanalabs.h | |
parent | b75f22505ac97ea680bcc3e23dcd56f421252b43 (diff) | |
download | linux-9e5e49cd5b90cf53a6a403a04f003b8a9a084e46.tar.xz |
habanalabs: check if CoreSight is supported
Coresight is not supported on simulator, therefore add a boolean for
checking that (currently used by un-upstreamed code).
Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/habanalabs.h')
-rw-r--r-- | drivers/misc/habanalabs/habanalabs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/habanalabs.h b/drivers/misc/habanalabs/habanalabs.h index a68df32094f1..cfb306daa8d4 100644 --- a/drivers/misc/habanalabs/habanalabs.h +++ b/drivers/misc/habanalabs/habanalabs.h @@ -1415,6 +1415,7 @@ struct hl_device_idle_busy_ts { * @cdev_sysfs_created: were char devices and sysfs nodes created. * @stop_on_err: true if engines should stop on error. * @supports_sync_stream: is sync stream supported. + * @supports_coresight: is CoreSight supported. */ struct hl_device { struct pci_dev *pdev; @@ -1498,6 +1499,7 @@ struct hl_device { u8 cdev_sysfs_created; u8 stop_on_err; u8 supports_sync_stream; + u8 supports_coresight; /* Parameters for bring-up */ u8 mmu_enable; |