Commit 9e5e49cd authored by Omer Shpigelman's avatar Omer Shpigelman Committed by Oded Gabbay

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: default avatarOmer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent b75f2250
...@@ -751,6 +751,7 @@ static int goya_sw_init(struct hl_device *hdev) ...@@ -751,6 +751,7 @@ static int goya_sw_init(struct hl_device *hdev)
} }
spin_lock_init(&goya->hw_queues_lock); spin_lock_init(&goya->hw_queues_lock);
hdev->supports_coresight = true;
return 0; return 0;
......
...@@ -1415,6 +1415,7 @@ struct hl_device_idle_busy_ts { ...@@ -1415,6 +1415,7 @@ struct hl_device_idle_busy_ts {
* @cdev_sysfs_created: were char devices and sysfs nodes created. * @cdev_sysfs_created: were char devices and sysfs nodes created.
* @stop_on_err: true if engines should stop on error. * @stop_on_err: true if engines should stop on error.
* @supports_sync_stream: is sync stream supported. * @supports_sync_stream: is sync stream supported.
* @supports_coresight: is CoreSight supported.
*/ */
struct hl_device { struct hl_device {
struct pci_dev *pdev; struct pci_dev *pdev;
...@@ -1498,6 +1499,7 @@ struct hl_device { ...@@ -1498,6 +1499,7 @@ struct hl_device {
u8 cdev_sysfs_created; u8 cdev_sysfs_created;
u8 stop_on_err; u8 stop_on_err;
u8 supports_sync_stream; u8 supports_sync_stream;
u8 supports_coresight;
/* Parameters for bring-up */ /* Parameters for bring-up */
u8 mmu_enable; u8 mmu_enable;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment