Skip to contentSkip to conversation

HID: intel-ish-hid: ipc: Specify no cache snooping on TGL and ADL

PATCH Applied Ye Xiang 3 participants 3 messages Dec 17, 2021 – Jan 6, 2022

Subsystems (3)
lore
Share & tools
lore

Ye Xiang

author
#0 lore raw

PATCH 1/1 HID: intel-ish-hid: ipc: Specify no cache snooping on TGL and ADL

Specify that both TGL and ADL don't support DMA cache snooping.

---
 drivers/hid/intel-ish-hid/ipc/ipc.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/hid/intel-ish-hid/ipc/ipc.c +5 -1
index 45e0c7b1c9ec..8ccb246b0114 100644
@@ -909,7 +909,11 @@ static uint32_t ish_ipc_get_header(struct ishtp_device *dev, int length,
  */
 static bool _dma_no_cache_snooping(struct ishtp_device *dev)
 {
-	return dev->pdev->device == EHL_Ax_DEVICE_ID;
+	return (dev->pdev->device == EHL_Ax_DEVICE_ID ||
+		dev->pdev->device == TGL_LP_DEVICE_ID ||
+		dev->pdev->device == TGL_H_DEVICE_ID ||
+		dev->pdev->device == ADL_S_DEVICE_ID ||
+		dev->pdev->device == ADL_P_DEVICE_ID);
 }
 
 static const struct ishtp_hw_ops ish_hw_ops = {
Signature · 1 line
2.17.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Ye Xiang

Specify that both TGL and ADL don't support DMA cache snooping.

Quoted 23 lines

---
 drivers/hid/intel-ish-hid/ipc/ipc.c | 6 +++++-

 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/hid/intel- renamed from drivers/hid/intel-ish-hid/ipc/ipc.c +0 -0

ish-hid/ipc/ipc.c
index 45e0c7b1c9ec..8ccb246b0114 100644

drivers/hid/intel-ish-hid/ipc/ipc.c +5 -1
@@ -909,7 +909,11 @@ static uint32_t ish_ipc_get_header(struct
 ishtp_device *dev, int length,
   */
  static bool _dma_no_cache_snooping(struct ishtp_device *dev)
  {
-       return dev->pdev->device == EHL_Ax_DEVICE_ID;
+       return (dev->pdev->device == EHL_Ax_DEVICE_ID ||
+               dev->pdev->device == TGL_LP_DEVICE_ID ||
+               dev->pdev->device == TGL_H_DEVICE_ID ||
+               dev->pdev->device == ADL_S_DEVICE_ID ||
+               dev->pdev->device == ADL_P_DEVICE_ID);
  }


 static const struct ishtp_hw_ops ish_hw_ops = {

maintainer Applied
#2 lore raw
In reply to Ye Xiang
Quoted 12 lines · Ye Xiang

Specify that both TGL and ADL don't support DMA cache snooping.

---
 drivers/hid/intel-ish-hid/ipc/ipc.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/hid/intel-ish-hid/ipc/ipc.c +0 -0
index 45e0c7b1c9ec..8ccb246b0114 100644

drivers/hid/intel-ish-hid/ipc/ipc.c static uint32_t ish_ipc_get_header(struct ishtp_device *dev, int length, · line 917

Quoted 10 lines
drivers/hid/intel-ish-hid/ipc/ipc.c +5 -1
@@ -909,7 +909,11 @@ static uint32_t ish_ipc_get_header(struct ishtp_device *dev, int length,
  */
 static bool _dma_no_cache_snooping(struct ishtp_device *dev)
 {
-	return dev->pdev->device == EHL_Ax_DEVICE_ID;
+	return (dev->pdev->device == EHL_Ax_DEVICE_ID ||
+		dev->pdev->device == TGL_LP_DEVICE_ID ||
+		dev->pdev->device == TGL_H_DEVICE_ID ||
+		dev->pdev->device == ADL_S_DEVICE_ID ||
+		dev->pdev->device == ADL_P_DEVICE_ID);
 }

Applied, thank you.

Signature · 2 lines
Jiri Kosina
SUSE Labs