clear-pkgs-linux-iot-lts2018/0958-media-Disable-FW-IRQ-a...

42 lines
1.3 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Meng Wei <wei.meng@intel.com>
Date: Mon, 10 Dec 2018 11:09:17 +0800
Subject: [PATCH] media: Disable FW IRQ and response of EOF
Disabling FW IRQ and response of EOF to decrease CPU wake up by 1
for every frame.
Change-Id: Iac018eada4f66699fea78f611daf606a892026ba
Tracked-On: PKT-1691
Signed-off-by: Hongyu Yi <hongyu.yi@intel.com>
Signed-off-by: Meng Wei <wei.meng@intel.com>
---
drivers/media/pci/intel/ipu-isys-queue.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/media/pci/intel/ipu-isys-queue.c b/drivers/media/pci/intel/ipu-isys-queue.c
index 2f0db1af3744..a88c0d7e9ca9 100644
--- a/drivers/media/pci/intel/ipu-isys-queue.c
+++ b/drivers/media/pci/intel/ipu-isys-queue.c
@@ -488,11 +488,15 @@ void ipu_isys_buffer_list_to_ipu_fw_isys_frame_buff_set(
set->send_irq_sof = 1;
set->send_resp_sof = 1;
- set->send_irq_eof = 1;
- set->send_resp_eof = 1;
+
#if defined(CONFIG_VIDEO_INTEL_IPU4) || defined(CONFIG_VIDEO_INTEL_IPU4P)
set->send_irq_capture_ack = 1;
set->send_irq_capture_done = 1;
+ set->send_irq_eof = 1;
+ set->send_resp_eof = 1;
+#else
+ set->send_irq_eof = 0;
+ set->send_resp_eof = 0;
#endif
list_for_each_entry(ib, &bl->head, head) {
--
https://clearlinux.org