summaryrefslogtreecommitdiff
path: root/drivers/accel
diff options
context:
space:
mode:
authorWachowski, Karol <karol.wachowski@intel.com>2024-06-11 15:04:21 +0300
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>2024-06-14 10:12:58 +0300
commit52ab5be191c42fe1bffac97ee248a237b9712889 (patch)
treef1afbe54f7a5c56105df31862c269e2545ef6b6e /drivers/accel
parent7d4b4c74432d536a4d8139e0504cf41993d5ee6e (diff)
downloadlinux-52ab5be191c42fe1bffac97ee248a237b9712889.tar.xz
accel/ivpu: Disable disable_clock_relinquish WA for LNL B0+
This WA is only needed for LNL revision A. Signed-off-by: Wachowski, Karol <karol.wachowski@intel.com> Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240611120433.1012423-5-jacek.lawrynowicz@linux.intel.com
Diffstat (limited to 'drivers/accel')
-rw-r--r--drivers/accel/ivpu/ivpu_drv.h2
-rw-r--r--drivers/accel/ivpu/ivpu_hw.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/accel/ivpu/ivpu_drv.h b/drivers/accel/ivpu/ivpu_drv.h
index dc6ad1978a3b..d340bd8d66eb 100644
--- a/drivers/accel/ivpu/ivpu_drv.h
+++ b/drivers/accel/ivpu/ivpu_drv.h
@@ -32,6 +32,8 @@
#define IVPU_HW_IP_50XX 50
#define IVPU_HW_IP_60XX 60
+#define IVPU_HW_IP_REV_LNL_B0 4
+
#define IVPU_HW_BTRS_MTL 1
#define IVPU_HW_BTRS_LNL 2
diff --git a/drivers/accel/ivpu/ivpu_hw.c b/drivers/accel/ivpu/ivpu_hw.c
index daf1e4afb479..09398a17c710 100644
--- a/drivers/accel/ivpu/ivpu_hw.c
+++ b/drivers/accel/ivpu/ivpu_hw.c
@@ -61,7 +61,8 @@ static void wa_init(struct ivpu_device *vdev)
if (ivpu_hw_btrs_gen(vdev) == IVPU_HW_BTRS_MTL)
vdev->wa.interrupt_clear_with_0 = ivpu_hw_btrs_irqs_clear_with_0_mtl(vdev);
- if (ivpu_device_id(vdev) == PCI_DEVICE_ID_LNL)
+ if (ivpu_device_id(vdev) == PCI_DEVICE_ID_LNL &&
+ ivpu_revision(vdev) < IVPU_HW_IP_REV_LNL_B0)
vdev->wa.disable_clock_relinquish = true;
if (ivpu_hw_ip_gen(vdev) == IVPU_HW_IP_37XX)