* [PATCH v2 0/2] IPU6 fixes following multi-stream support
@ 2026-09-30 9:37 Sakari Ailus
2026-09-30 9:37 ` [PATCH v2 1/2] media: ipu6: Reset need_reset in ISYS suspend Sakari Ailus
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Sakari Ailus @ 2026-09-30 9:37 UTC (permalink / raw)
To: linux-media; +Cc: Antti Laakso, Sapre, Sarang, Manik Bajpai, Divyamani Tripathi
Hi all,
There's a small but important fix for the ipu6 driver's ipu7 support -- on
ipu7 streaming works only once, and apparently this is because the ISYS
needs a power reset between streaming instances. The patch addresses
detecting this, which got broken in the multi-stream support set.
The second patch adds a warning on needing a reset.
Addressing why the reset is needed is out of scope of this set.
since v1:
- Just print the message when setting need_reset to true.
Sakari Ailus (2):
media: ipu6: Reset need_reset in ISYS suspend
media: ipu6: Warn if the active list isn't empty when returning
buffers
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c | 2 ++
drivers/media/pci/intel/ipu6/ipu6-isys.c | 4 ++++
2 files changed, 6 insertions(+)
base-commit: 58348f64125e9a3e44d3abb275ca7f4e6c9641e5
--
2.47.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] media: ipu6: Reset need_reset in ISYS suspend
2026-09-30 9:37 [PATCH v2 0/2] IPU6 fixes following multi-stream support Sakari Ailus
@ 2026-09-30 9:37 ` Sakari Ailus
2026-09-30 9:37 ` [PATCH v2 2/2] media: ipu6: Warn if the active list isn't empty when returning buffers Sakari Ailus
2026-09-30 9:53 ` [PATCH v2 0/2] IPU6 fixes following multi-stream support Antti Laakso
2 siblings, 0 replies; 4+ messages in thread
From: Sakari Ailus @ 2026-09-30 9:37 UTC (permalink / raw)
To: linux-media; +Cc: Antti Laakso, Sapre, Sarang, Manik Bajpai, Divyamani Tripathi
The need_reset field in struct ipu6_isys tells whether the device needs a
power-on reset. Resetting the field was removed unintentionally in commit
70e3fac3ec78 ("media: ipu6: Move firmware init/cleanup to RPM callbacks").
Add it back.
Fixes: 70e3fac3ec78 ("media: ipu6: Move firmware init/cleanup to RPM callbacks")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
drivers/media/pci/intel/ipu6/ipu6-isys.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/media/pci/intel/ipu6/ipu6-isys.c b/drivers/media/pci/intel/ipu6/ipu6-isys.c
index 60f5f9ea2910..74bb48c1f814 100644
--- a/drivers/media/pci/intel/ipu6/ipu6-isys.c
+++ b/drivers/media/pci/intel/ipu6/ipu6-isys.c
@@ -826,6 +826,10 @@ static int isys_runtime_pm_suspend(struct device *dev)
ret = -EIO;
}
+ mutex_lock(&isys->mutex);
+ isys->need_reset = false;
+ mutex_unlock(&isys->mutex);
+
isys->phy_termcal_val = 0;
cpu_latency_qos_update_request(&isys->pm_qos, PM_QOS_DEFAULT_VALUE);
--
2.47.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] media: ipu6: Warn if the active list isn't empty when returning buffers
2026-09-30 9:37 [PATCH v2 0/2] IPU6 fixes following multi-stream support Sakari Ailus
2026-09-30 9:37 ` [PATCH v2 1/2] media: ipu6: Reset need_reset in ISYS suspend Sakari Ailus
@ 2026-09-30 9:37 ` Sakari Ailus
2026-09-30 9:53 ` [PATCH v2 0/2] IPU6 fixes following multi-stream support Antti Laakso
2 siblings, 0 replies; 4+ messages in thread
From: Sakari Ailus @ 2026-09-30 9:37 UTC (permalink / raw)
To: linux-media; +Cc: Antti Laakso, Sapre, Sarang, Manik Bajpai, Divyamani Tripathi
The ISYS needs a reset when the active buffer list isn't empty. Warn about
this.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/media/pci/intel/ipu6/ipu6-isys-queue.c b/drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
index 2608e3b91acb..23d00e1f89e8 100644
--- a/drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
+++ b/drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
@@ -467,6 +467,8 @@ static void return_buffers(struct ipu6_isys_queue *aq,
mutex_lock(&av->isys->mutex);
av->isys->need_reset = true;
mutex_unlock(&av->isys->mutex);
+ dev_warn(&av->isys->adev->auxdev.dev,
+ "buffer list not empty, needs isys reset\n");
}
}
--
2.47.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/2] IPU6 fixes following multi-stream support
2026-09-30 9:37 [PATCH v2 0/2] IPU6 fixes following multi-stream support Sakari Ailus
2026-09-30 9:37 ` [PATCH v2 1/2] media: ipu6: Reset need_reset in ISYS suspend Sakari Ailus
2026-09-30 9:37 ` [PATCH v2 2/2] media: ipu6: Warn if the active list isn't empty when returning buffers Sakari Ailus
@ 2026-09-30 9:53 ` Antti Laakso
2 siblings, 0 replies; 4+ messages in thread
From: Antti Laakso @ 2026-09-30 9:53 UTC (permalink / raw)
To: Sakari Ailus; +Cc: linux-media, Sapre, Sarang, Manik Bajpai, Divyamani Tripathi
On Wed, Sep 30, 2026 at 12:37:07PM +0300, Sakari Ailus wrote:
> Hi all,
>
> There's a small but important fix for the ipu6 driver's ipu7 support -- on
> ipu7 streaming works only once, and apparently this is because the ISYS
> needs a power reset between streaming instances. The patch addresses
> detecting this, which got broken in the multi-stream support set.
>
> The second patch adds a warning on needing a reset.
>
> Addressing why the reset is needed is out of scope of this set.
>
> since v1:
>
> - Just print the message when setting need_reset to true.
>
> Sakari Ailus (2):
> media: ipu6: Reset need_reset in ISYS suspend
> media: ipu6: Warn if the active list isn't empty when returning
> buffers
>
> drivers/media/pci/intel/ipu6/ipu6-isys-queue.c | 2 ++
> drivers/media/pci/intel/ipu6/ipu6-isys.c | 4 ++++
> 2 files changed, 6 insertions(+)
>
>
> base-commit: 58348f64125e9a3e44d3abb275ca7f4e6c9641e5
> --
> 2.47.3
>
Reviewed-by: Antti Laakso <antti.laakso@linux.intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-09-30 9:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-30 9:37 [PATCH v2 0/2] IPU6 fixes following multi-stream support Sakari Ailus
2026-09-30 9:37 ` [PATCH v2 1/2] media: ipu6: Reset need_reset in ISYS suspend Sakari Ailus
2026-09-30 9:37 ` [PATCH v2 2/2] media: ipu6: Warn if the active list isn't empty when returning buffers Sakari Ailus
2026-09-30 9:53 ` [PATCH v2 0/2] IPU6 fixes following multi-stream support Antti Laakso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox