* [PATCH v3 0/8] media: qcom: camss: Report the hardware SOF timestamp
@ 2026-11-27 16:11 Loic Poulain
2026-11-27 16:11 ` [PATCH v3 1/8] media: qcom: camss: csid: Add an operation to read the " Loic Poulain
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Loic Poulain @ 2026-11-27 16:11 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Bryan O'Donoghue, Vladimir Zapolskiy
Cc: linux-media, linux-kernel, linux-arm-msm, Loic Poulain
The CAMSS CSID latches the ARM architected counter on every start of
frame. This series uses that time to stamp the captured buffers.
V4L2 defines vb2_buf.timestamp as the time the first data byte was
captured, but CAMSS stamps buffers from the write master done interrupt,
once the frame has finished being written out to memory, which is about
a frame period late. The hardware value is free of interrupt latency and
is directly comparable with CLOCK_MONOTONIC, so it can be correlated
with other timestamped data such as IMU samples.
Patch 1 adds a CSID operation for reading the counter latched at SOF,
converts it to CLOCK_MONOTONIC once in the CSID core and keeps it for
the frame being captured. Patches 2 to 6 implement that operation on
csid-340, csid-gen2 and csid-gen3. Patch 7 uses it to stamp the buffers
and patch 8 reports the new source to userspace.
Patches 3 and 4 are picked from the timestamp support Bryan shared
earlier, with patch 4 adapted to the operation added in patch 1 rather
than doing its own conversion.
Tested on QCM2290 (Arduino UNO Q) with an IMX219 sensor. Over ~1030
consecutive frames at 60 fps, the jitter of the timestamp the CSID
computes, measured as the residual against a least-squares fit of the
frame cadence, against the interrupt time it replaces:
hardware SOF interrupt time
median 43 ns 356 ns
p95 113 ns 1135 ns
p99 139 ns 4901 ns
max 181 ns 10680 ns
rms 60 ns 1123 ns
cycle-to-cycle 72 ns 2658 ns
That is 19x tighter in rms and 59x in the worst case, and what is left
is essentially the 52 ns period of the 19.2 MHz counter the value comes
from.
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
---
Changes in v3:
- Dropped the v4l2-event patch and with it the event timestamp. The
series now only changes the buffer timestamp, and the SOF time is kept
for the frame being captured rather than put in the frame sync event.
Reporting it through V4L2_EVENT_FRAME_SYNC needs the core change and a
decision on the raw-value field asked for in v2, so it comes
separately.
- New patches 5 and 6: implement the SOF timestamp on csid-gen3. Titan
690 moved the timestamp controls from RDI_CFG0 to RDI_CFG1, so patch 5
picks the register per SoC before patch 6 reports the value.
- Patch 1: fall back to the interrupt time when the CSID has no usable
clock snapshot, and keep the first SOF of a stream on that fallback -
the register update arming the latch is only committed at the frame
boundary that same SOF signals, so no counter value is captured there.
As a result the stored timestamp is never 0 and needs no fallback of
its own.
- Add measured jitter numbers to this cover letter.
- Link to v2: https://lore.kernel.org/r/20261125-camss-hw-ts-v2-0-24c955e43d75@oss.qualcomm.com
Changes in v2:
- Patch 2: read the latched counter through a new csid_hw_ops operation
and do the conversion once in the CSID core, instead of passing the
time into csid_sof_event() and open coding the register read in every
CSI decoder (Bryan).
- New patch 7: report the timestamp source as V4L2_BUF_FLAG_TSTAMP_SRC_SOE
on the SoCs that can track SOF, rather than leaving the queue
advertising V4L2_BUF_FLAG_TSTAMP_SRC_EOF.
- Link to v1: https://lore.kernel.org/r/20261123-camss-hw-ts-v1-0-7b62dda6d7a9@oss.qualcomm.com
---
Bryan O'Donoghue (2):
media: camss: Define timestamp registers for csid-gen2
media: camss: csid-gen2: Report the hardware SOF timestamp
Loic Poulain (6):
media: qcom: camss: csid: Add an operation to read the SOF timestamp
media: qcom: camss: csid-340: Report the hardware SOF timestamp
media: qcom: camss: csid-gen3: Fix the RDI timestamp controls on Titan 690
media: qcom: camss: csid-gen3: Report the hardware SOF timestamp
media: qcom: camss: Timestamp buffers at start of frame
media: qcom: camss: Tell userspace we're using start-of-frame timestamps
drivers/media/platform/qcom/camss/camss-csid-340.c | 37 ++++++-
.../media/platform/qcom/camss/camss-csid-gen2.c | 31 ++++++
.../media/platform/qcom/camss/camss-csid-gen3.c | 44 +++++++-
drivers/media/platform/qcom/camss/camss-csid.c | 112 ++++++++++++++++++++-
drivers/media/platform/qcom/camss/camss-csid.h | 19 ++++
drivers/media/platform/qcom/camss/camss-vfe-17x.c | 7 +-
drivers/media/platform/qcom/camss/camss-vfe.c | 8 +-
drivers/media/platform/qcom/camss/camss-vfe.h | 1 +
drivers/media/platform/qcom/camss/camss-video.c | 2 +
drivers/media/platform/qcom/camss/camss.c | 6 ++
drivers/media/platform/qcom/camss/camss.h | 1 +
11 files changed, 253 insertions(+), 15 deletions(-)
---
base-commit: 9bac1a31a7d2c1b9022913e52adffaff63c0784e
change-id: 20261123-camss-hw-ts-e0297adb69d9
Best regards,
--
Loic Poulain <loic.poulain@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 1/8] media: qcom: camss: csid: Add an operation to read the SOF timestamp
2026-11-27 16:11 [PATCH v3 0/8] media: qcom: camss: Report the hardware SOF timestamp Loic Poulain
@ 2026-11-27 16:11 ` Loic Poulain
2026-11-27 16:11 ` [PATCH v3 2/8] media: qcom: camss: csid-340: Report the hardware " Loic Poulain
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Loic Poulain @ 2026-11-27 16:11 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Bryan O'Donoghue, Vladimir Zapolskiy
Cc: linux-media, linux-kernel, linux-arm-msm, Loic Poulain
Modern CSID revisions latch the global timestamp counter at SOF. That
counter is the ARM architected counter, so correlating it with
CLOCK_MONOTONIC through ktime_get_snapshot_id() turns the latched value
into the time the frame actually started, rather than the time the
interrupt handler ran.
Add a hardware operation returning that counter value and do the
correlation in one place, leaving a CSID revision with nothing to do but
read its own registers. Keep the result for the frame being captured so
a consumer can pick it up the same way it already picks up the SOF
sequence number. Revisions not implementing the operation keep reporting
the time the SOF interrupt was handled.
Suggested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
---
drivers/media/platform/qcom/camss/camss-csid.c | 112 ++++++++++++++++++++++++-
drivers/media/platform/qcom/camss/camss-csid.h | 19 +++++
2 files changed, 129 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/qcom/camss/camss-csid.c b/drivers/media/platform/qcom/camss/camss-csid.c
index 588122beec854ae5b78de9997b68c7a81d4207e1..436478fe1f65642ff11ae3707df726d619801a8d 100644
--- a/drivers/media/platform/qcom/camss/camss-csid.c
+++ b/drivers/media/platform/qcom/camss/camss-csid.c
@@ -8,14 +8,17 @@
* Copyright (C) 2015-2018 Linaro Ltd.
*/
#include <linux/clk.h>
+#include <linux/clocksource_ids.h>
#include <linux/completion.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/kernel.h>
+#include <linux/math64.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/regulator/consumer.h>
+#include <linux/timekeeping.h>
#include <media/media-entity.h>
#include <media/mipi-csi2.h>
#include <media/v4l2-device.h>
@@ -37,6 +40,16 @@
#define LANE_CFG_BITWIDTH 4
+/*
+ * The CSID latches the global timestamp counter on SOF. That counter is
+ * the ARM architected counter, 56 bit wide and ticking at 19.2 MHz.
+ */
+#define CSID_TIMESTAMP_WIDTH 56
+#define CSID_TIMESTAMP_MASK GENMASK_ULL(CSID_TIMESTAMP_WIDTH - 1, 0)
+#define CSID_TIMESTAMP_NS_MUL 10000 /* NSEC_PER_SEC / 19.2 MHz, reduced */
+#define CSID_TIMESTAMP_NS_DIV 192
+#define CSID_TIMESTAMP_MAX_AGE_NS (2 * NSEC_PER_MSEC)
+
#define MSM_CSID_NAME "msm_csid"
const char * const csid_testgen_modes[] = {
@@ -779,9 +792,11 @@ static int csid_set_stream(struct v4l2_subdev *sd, int enable)
}
if (csid->phy.need_vc_update) {
- /* Set to -1 as we want to do atomic_inc_return to read */
- for (i = 0; i < MSM_CSID_MAX_SRC_STREAMS; i++)
+ for (i = 0; i < MSM_CSID_MAX_SRC_STREAMS; i++) {
+ /* Set to -1 as we want to do atomic_inc_return to read */
atomic_set(&csid->sof_seq[i], -1);
+ atomic64_set(&csid->sof_ts[i], 0);
+ }
csid->res->hw_ops->configure_stream(csid, enable);
csid->phy.need_vc_update = false;
@@ -1370,14 +1385,107 @@ atomic_t *csid_get_sof_seq(struct media_pad *pad)
return &csid->sof_seq[pad->index - MSM_CSID_PAD_FIRST_SRC];
}
+atomic64_t *csid_get_sof_ts(struct media_pad *pad)
+{
+ struct csid_device *csid;
+
+ if (!pad || pad->index < MSM_CSID_PAD_FIRST_SRC)
+ return NULL;
+
+ csid = v4l2_get_subdevdata(media_entity_to_v4l2_subdev(pad->entity));
+ if (!csid->res->frame_sync_en)
+ return NULL;
+
+ return &csid->sof_ts[pad->index - MSM_CSID_PAD_FIRST_SRC];
+}
+
+static u64 csid_timestamp_to_ns(u64 ticks)
+{
+ return mul_u64_u32_div(ticks, CSID_TIMESTAMP_NS_MUL, CSID_TIMESTAMP_NS_DIV);
+}
+
+static u64 csid_timestamp_to_monotonic(struct csid_device *csid, u64 ticks)
+{
+ struct system_time_snapshot snap;
+ u64 delta, delta_ns, now;
+
+ ktime_get_snapshot_id(CLOCK_MONOTONIC, &snap);
+
+ if (!snap.valid) {
+ dev_warn_once(csid->camss->dev,
+ "CSID%u: Can't use hardware timestamp, no clock snapshot\n",
+ csid->id);
+ return ktime_get_ns();
+ }
+
+ now = ktime_to_ns(snap.systime);
+
+ /*
+ * Translating requires reading the counter the CSID latched from.
+ * If timekeeping is driven by something else there is nothing to
+ * correlate against, so report the time this event was handled.
+ * Below CSID means clock-source ID.
+ */
+ if (snap.cs_id != CSID_ARM_ARCH_COUNTER) {
+ dev_warn_once(csid->camss->dev,
+ "CSID%u: Can't use hardware timestamp, invalid clock source (%d)\n",
+ csid->id, snap.cs_id);
+ return now;
+ }
+
+ /* How long ago, in counter ticks, the timestamp was latched */
+ delta = (snap.cycles - ticks) & CSID_TIMESTAMP_MASK;
+ delta_ns = csid_timestamp_to_ns(delta);
+
+ /* Fall back rather than reporting a nonsensical timestamp */
+ if (delta_ns > now) {
+ dev_warn_once(csid->camss->dev,
+ "CSID%u: SOF timestamp predates CLOCK_MONOTONIC, ignoring\n",
+ csid->id);
+ return now;
+ }
+
+ if (delta_ns > CSID_TIMESTAMP_MAX_AGE_NS)
+ dev_warn_ratelimited(csid->camss->dev,
+ "CSID%u: Too slow! SOF timestamp is %llu us old\n",
+ csid->id, delta_ns / NSEC_PER_USEC);
+
+ return now - delta_ns;
+}
+
+static u64 csid_hw_sof_ts(struct csid_device *csid, unsigned int id)
+{
+ const struct csid_hw_ops *hw_ops = csid->res->hw_ops;
+ u64 ticks;
+
+ if (!hw_ops->sof_ts)
+ return ktime_get_ns();
+
+ ticks = hw_ops->sof_ts(csid, id);
+
+ /*
+ * For double-buffered CSID registers, the CSID configuration is
+ * only latched on the first SOF, so no timestamp is captured for
+ * that first SOF.
+ */
+ if (!ticks && atomic_read(&csid->sof_seq[id]) == -1)
+ return ktime_get_ns();
+
+ return csid_timestamp_to_monotonic(csid, ticks);
+}
+
void csid_sof_event(struct csid_device *csid, unsigned int id)
{
+ /* Read before the sequence number below, which arms the first SOF */
+ u64 ts = csid_hw_sof_ts(csid, id);
struct v4l2_event event = {
.type = V4L2_EVENT_FRAME_SYNC,
.u.frame_sync.frame_sequence =
atomic_inc_return(&csid->sof_seq[id]),
};
+ atomic64_set(&csid->sof_ts[id], ts);
+
if (atomic_read(&csid->frame_sync_users))
v4l2_event_queue(csid->subdev.devnode, &event);
}
diff --git a/drivers/media/platform/qcom/camss/camss-csid.h b/drivers/media/platform/qcom/camss/camss-csid.h
index ccafdbf3a9fe0c282da68ccdd04661b3fab81ff5..f7c0935ea25cee5ac87cca470803a7391c12f9f0 100644
--- a/drivers/media/platform/qcom/camss/camss-csid.h
+++ b/drivers/media/platform/qcom/camss/camss-csid.h
@@ -111,6 +111,15 @@ struct csid_hw_ops {
*/
int (*reset)(struct csid_device *csid);
+ /*
+ * sof_ts - Read the counter value the hardware latched at SOF
+ * @csid: CSID device
+ * @id: CSID src-stream ID
+ *
+ * Return the raw counter value of the most recent SOF
+ */
+ u64 (*sof_ts)(struct csid_device *csid, unsigned int id);
+
/*
* src_pad_code - Pick an output/src format based on the input/sink format
* @csid: CSID device
@@ -179,6 +188,7 @@ struct csid_device {
const struct csid_subdev_resources *res;
atomic_t frame_sync_users;
atomic_t sof_seq[MSM_CSID_MAX_SRC_STREAMS];
+ atomic64_t sof_ts[MSM_CSID_MAX_SRC_STREAMS];
};
struct camss_subdev_resources;
@@ -279,4 +289,13 @@ void csid_sof_event(struct csid_device *csid, unsigned int id);
*/
atomic_t *csid_get_sof_seq(struct media_pad *pad);
+/*
+ * csid_get_sof_ts - Get a pointer to the SOF timestamp variable.
+ * @pad: Remote pad of a consumer's sink pad
+ *
+ * Return the timestamp or NULL if @pad isn't a CSID or the CSID doesn't support
+ * SOF tracking. It reads as 0 until the first SOF of the stream.
+ */
+atomic64_t *csid_get_sof_ts(struct media_pad *pad);
+
#endif /* QC_MSM_CAMSS_CSID_H */
--
2.34.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 2/8] media: qcom: camss: csid-340: Report the hardware SOF timestamp
2026-11-27 16:11 [PATCH v3 0/8] media: qcom: camss: Report the hardware SOF timestamp Loic Poulain
2026-11-27 16:11 ` [PATCH v3 1/8] media: qcom: camss: csid: Add an operation to read the " Loic Poulain
@ 2026-11-27 16:11 ` Loic Poulain
2026-11-27 16:11 ` [PATCH v3 3/8] media: camss: Define timestamp registers for csid-gen2 Loic Poulain
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Loic Poulain @ 2026-11-27 16:11 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Bryan O'Donoghue, Vladimir Zapolskiy
Cc: linux-media, linux-kernel, linux-arm-msm, Loic Poulain
The CSID latches the global timestamp counter at start-of-frame into a
per-interface register pair. Implement the sof_ts operation to
read it, so that the frame sync event carries the time the frame
actually started rather than the time the interrupt handler ran.
Measured on QCM2290 that removes around 36 us of delay, with ~8 us of
jitter, from the timestamp userspace sees on a 60 fps stream.
TIMESTAMP_EN is not at the same bit in the PIX and the RDI layouts of
CSID_CFG0, so replace the single define with one for each.
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
---
drivers/media/platform/qcom/camss/camss-csid-340.c | 37 +++++++++++++++++++---
1 file changed, 33 insertions(+), 4 deletions(-)
diff --git a/drivers/media/platform/qcom/camss/camss-csid-340.c b/drivers/media/platform/qcom/camss/camss-csid-340.c
index 42ff629ce410d33f21930ee56d714f41911cc077..ec4b1d9a86fcf08c2ceb12b4c4c2b85b5c7b8e51 100644
--- a/drivers/media/platform/qcom/camss/camss-csid-340.c
+++ b/drivers/media/platform/qcom/camss/camss-csid-340.c
@@ -49,7 +49,8 @@
#define CSID_CFG0(iface) (0x200 + 0x100 * (iface))
#define CSID_CFG0_BYTE_CNTR_EN BIT(0)
-#define CSID_CFG0_TIMESTAMP_EN BIT(1)
+#define CSID_CFG0_PIX_TIMESTAMP_EN BIT(1)
+#define CSID_CFG0_RDI_TIMESTAMP_EN BIT(2)
#define CSID_CFG0_DECODE_FORMAT_MASK GENMASK(15, 12)
#define CSID_CFG0_DECODE_FORMAT_NOP CSID_CFG0_DECODE_FORMAT_MASK
#define CSID_CFG0_DT_MASK GENMASK(21, 16)
@@ -61,6 +62,13 @@
#define CSID_CTRL_HALT_AT_FRAME_BOUNDARY 0
#define CSID_CTRL_RESUME_AT_FRAME_BOUNDARY 1
+/*
+ * SOF timestamp of the most recent frame, a pair of registers holding a 56-bit
+ * counter value, the low 32 bits in the first and the high 24 in the second.
+ */
+#define CSID_TIMESTAMP_CURR0_SOF(iface) (0x290 + 0x100 * (iface))
+#define CSID_TIMESTAMP_CURR1_SOF(iface) (0x294 + 0x100 * (iface))
+
enum csid_iface {
CSID_IFACE_PIX,
CSID_IFACE_RDI0,
@@ -108,6 +116,7 @@ static void __csid_configure_stream(struct csid_device *csid, u8 enable, u8 port
input_format->code);
enum csid_iface iface = csid_port_iface_map[port];
+ u32 timestamp_en;
u8 dt_id;
u32 val;
@@ -125,17 +134,21 @@ static void __csid_configure_stream(struct csid_device *csid, u8 enable, u8 port
*/
dt_id = port & 0x03;
- if (iface == CSID_IFACE_PIX)
+ if (iface == CSID_IFACE_PIX) {
val = FIELD_PREP(CSID_CFG0_DECODE_FORMAT_MASK, format->decode_format);
- else /* RDI is raw, no decoding */
+ timestamp_en = CSID_CFG0_PIX_TIMESTAMP_EN;
+ } else {
+ /* RDI is raw, no decoding */
val = CSID_CFG0_DECODE_FORMAT_NOP;
+ timestamp_en = CSID_CFG0_RDI_TIMESTAMP_EN;
+ }
val |= FIELD_PREP(CSID_CFG0_DT_MASK, format->data_type);
val |= FIELD_PREP(CSID_CFG0_VC_MASK, vc);
val |= FIELD_PREP(CSID_CFG0_DTID_MASK, dt_id);
if (enable)
- val |= CSID_CFG0_ENABLE;
+ val |= CSID_CFG0_ENABLE | timestamp_en;
dev_dbg(csid->camss->dev, "CSID%u: Stream %s (dt:0x%x df=0x%x port=%u vc=%u)\n",
csid->id, enable ? "enable" : "disable", format->data_type,
@@ -184,6 +197,21 @@ static int csid_reset(struct csid_device *csid)
return 0;
}
+static u64 csid_sof_ts(struct csid_device *csid, unsigned int id)
+{
+ enum csid_iface iface = csid_port_iface_map[id];
+ u32 lo, hi;
+
+ /*
+ * The pair is latched on SOF rather than counting, so it can be read
+ * one word at a time without tearing.
+ */
+ lo = readl_relaxed(csid->base + CSID_TIMESTAMP_CURR0_SOF(iface));
+ hi = readl_relaxed(csid->base + CSID_TIMESTAMP_CURR1_SOF(iface));
+
+ return ((u64)hi << 32) | lo;
+}
+
static irqreturn_t csid_isr(int irq, void *dev)
{
struct csid_device *csid = dev;
@@ -233,6 +261,7 @@ const struct csid_hw_ops csid_ops_340 = {
.hw_version = csid_hw_version,
.isr = csid_isr,
.reset = csid_reset,
+ .sof_ts = csid_sof_ts,
.src_pad_code = csid_src_pad_code,
.subdev_init = csid_subdev_init,
};
--
2.34.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 3/8] media: camss: Define timestamp registers for csid-gen2
2026-11-27 16:11 [PATCH v3 0/8] media: qcom: camss: Report the hardware SOF timestamp Loic Poulain
2026-11-27 16:11 ` [PATCH v3 1/8] media: qcom: camss: csid: Add an operation to read the " Loic Poulain
2026-11-27 16:11 ` [PATCH v3 2/8] media: qcom: camss: csid-340: Report the hardware " Loic Poulain
@ 2026-11-27 16:11 ` Loic Poulain
2026-11-27 16:11 ` [PATCH v3 4/8] media: camss: csid-gen2: Report the hardware SOF timestamp Loic Poulain
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Loic Poulain @ 2026-11-27 16:11 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Bryan O'Donoghue, Vladimir Zapolskiy
Cc: linux-media, linux-kernel, linux-arm-msm, Loic Poulain
From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Timestamp registers inside of the CSID block are available at different
offsets from the CSID base depending on whether the CSID is lite or not.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
---
drivers/media/platform/qcom/camss/camss-csid-gen2.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/media/platform/qcom/camss/camss-csid-gen2.c b/drivers/media/platform/qcom/camss/camss-csid-gen2.c
index a351ac4b91728b981fe80e030fcb5ebfdab138b2..85e9eaf78df75f95d5f44f83b45dc7a3633401d0 100644
--- a/drivers/media/platform/qcom/camss/camss-csid-gen2.c
+++ b/drivers/media/platform/qcom/camss/camss-csid-gen2.c
@@ -121,6 +121,22 @@
+ 0x100 * (rdi))
#define CSID_RDI_RPP_LINE_DROP_PERIOD(rdi) ((csid_is_lite(csid) ? 0x230 : 0x330)\
+ 0x100 * (rdi))
+#define CSID_RDI_TIMESTAMP_CURR0_SOF(rdi) ((csid_is_lite(csid) ? 0x290 : 0x390)\
+ + 0x100 * (rdi))
+#define CSID_RDI_TIMESTAMP_CURR1_SOF(rdi) ((csid_is_lite(csid) ? 0x294 : 0x394)\
+ + 0x100 * (rdi))
+#define CSID_RDI_TIMESTAMP_PREV0_SOF(rdi) ((csid_is_lite(csid) ? 0x298 : 0x398)\
+ + 0x100 * (rdi))
+#define CSID_RDI_TIMESTAMP_PREV1_SOF(rdi) ((csid_is_lite(csid) ? 0x29C : 0x39C)\
+ + 0x100 * (rdi))
+#define CSID_RDI_TIMESTAMP_CURR0_EOF(rdi) ((csid_is_lite(csid) ? 0x2A0 : 0x3A0)\
+ + 0x100 * (rdi))
+#define CSID_RDI_TIMESTAMP_CURR1_EOF(rdi) ((csid_is_lite(csid) ? 0x2A4 : 0x3A4)\
+ + 0x100 * (rdi))
+#define CSID_RDI_TIMESTAMP_PREV0_EOF(rdi) ((csid_is_lite(csid) ? 0x2A8 : 0x3A8)\
+ + 0x100 * (rdi))
+#define CSID_RDI_TIMESTAMP_PREV1_EOF(rdi) ((csid_is_lite(csid) ? 0x2AC : 0x3AC)\
+ + 0x100 * (rdi))
#define CSID_TPG_CTRL 0x600
#define TPG_CTRL_TEST_EN 0
--
2.34.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 4/8] media: camss: csid-gen2: Report the hardware SOF timestamp
2026-11-27 16:11 [PATCH v3 0/8] media: qcom: camss: Report the hardware SOF timestamp Loic Poulain
` (2 preceding siblings ...)
2026-11-27 16:11 ` [PATCH v3 3/8] media: camss: Define timestamp registers for csid-gen2 Loic Poulain
@ 2026-11-27 16:11 ` Loic Poulain
2026-11-27 16:11 ` [PATCH v3 5/8] media: qcom: camss: csid-gen3: Fix the RDI timestamp controls on Titan 690 Loic Poulain
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Loic Poulain @ 2026-11-27 16:11 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Bryan O'Donoghue, Vladimir Zapolskiy
Cc: linux-media, linux-kernel, linux-arm-msm, Loic Poulain
From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
The CSID latches a free-running timer value for every RDI at
start-of-frame, a timer that keeps running across system suspend. The
driver already enables that latching, it just never reads the result,
leaving the frame sync event to be timestamped when the interrupt
handler gets around to queueing it.
Implement the sof_ts operation to read the CURRENT_SOF pair
instead, and let the CSID core put it on the CLOCK_MONOTONIC timebase
the event carries. CURRENT_EOF and the PREVIOUS_* pairs are left alone,
following the reference Qualcomm Camx code which only interacts with
CURRENT_SOF.
Upstream CAMSS uses a fixed mapping of RDI to virtual channel, hence
VC0 => RDI0 and VC1 => RDI1, so the event id indexes the register block
directly.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
---
drivers/media/platform/qcom/camss/camss-csid-gen2.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/drivers/media/platform/qcom/camss/camss-csid-gen2.c b/drivers/media/platform/qcom/camss/camss-csid-gen2.c
index 85e9eaf78df75f95d5f44f83b45dc7a3633401d0..47b0881e9c9942eeeaef53d8aa6b466ca21a366a 100644
--- a/drivers/media/platform/qcom/camss/camss-csid-gen2.c
+++ b/drivers/media/platform/qcom/camss/camss-csid-gen2.c
@@ -376,6 +376,20 @@ static int csid_configure_testgen_pattern(struct csid_device *csid, s32 val)
return 0;
}
+static u64 csid_sof_ts(struct csid_device *csid, unsigned int rdi)
+{
+ u32 lo, hi;
+
+ /*
+ * The pair is latched on SOF rather than counting, so it can be read
+ * one word at a time without tearing.
+ */
+ lo = readl_relaxed(csid->base + CSID_RDI_TIMESTAMP_CURR0_SOF(rdi));
+ hi = readl_relaxed(csid->base + CSID_RDI_TIMESTAMP_CURR1_SOF(rdi));
+
+ return ((u64)hi << 32) | lo;
+}
+
/*
* csid_isr - CSID module interrupt service routine
* @irq: Interrupt line
@@ -459,6 +473,7 @@ const struct csid_hw_ops csid_ops_gen2 = {
.hw_version = csid_hw_version,
.isr = csid_isr,
.reset = csid_reset,
+ .sof_ts = csid_sof_ts,
.src_pad_code = csid_src_pad_code,
.subdev_init = csid_subdev_init,
};
--
2.34.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 5/8] media: qcom: camss: csid-gen3: Fix the RDI timestamp controls on Titan 690
2026-11-27 16:11 [PATCH v3 0/8] media: qcom: camss: Report the hardware SOF timestamp Loic Poulain
` (3 preceding siblings ...)
2026-11-27 16:11 ` [PATCH v3 4/8] media: camss: csid-gen2: Report the hardware SOF timestamp Loic Poulain
@ 2026-11-27 16:11 ` Loic Poulain
2026-11-27 16:11 ` [PATCH v3 6/8] media: qcom: camss: csid-gen3: Report the hardware SOF timestamp Loic Poulain
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Loic Poulain @ 2026-11-27 16:11 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Bryan O'Donoghue, Vladimir Zapolskiy
Cc: linux-media, linux-kernel, linux-arm-msm, Loic Poulain
The RDI timestamp enable and strobe select bits are programmed at fixed
positions in RDI_CFG0, but Titan 690 moved both controls to RDI_CFG1 and
narrowed the strobe select from bits [9:8] to bits [1:0]. On 8775P and
8300 the current values therefore land on unrelated fields of RDI_CFG0
and the timestamp latch is never armed.
Pick the register and the bit positions per SoC, and program them with a
read-modify-write of their own rather than folding them into the
RDI_CFG0 value, which is where they no longer necessarily belong.
No functional change on the SoCs that keep the controls in RDI_CFG0.
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
---
.../media/platform/qcom/camss/camss-csid-gen3.c | 23 +++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/drivers/media/platform/qcom/camss/camss-csid-gen3.c b/drivers/media/platform/qcom/camss/camss-csid-gen3.c
index 6a538d825f78be5cf64691c351149b0a8fa68c3d..5dce6f722d05817f43341d22560cbe32def08cf0 100644
--- a/drivers/media/platform/qcom/camss/camss-csid-gen3.c
+++ b/drivers/media/platform/qcom/camss/camss-csid-gen3.c
@@ -80,8 +80,6 @@
#define CSID_RDI_CFG0(rdi) (csid_is_lite(csid) && IS_CSID_690(csid) ?\
(0x300 + 0x100 * (rdi)) :\
(0x500 + 0x100 * (rdi)))
-#define RDI_CFG0_TIMESTAMP_EN BIT(6)
-#define RDI_CFG0_TIMESTAMP_STB_SEL BIT(8)
#define RDI_CFG0_DECODE_FORMAT 12
#define RDI_CFG0_DT 16
#define RDI_CFG0_VC 22
@@ -103,6 +101,17 @@
#define RDI_CFG1_PIX_STORE BIT(10)
#define RDI_CFG1_PACKING_FORMAT_MIPI BIT(15)
+/*
+ * Titan 690 moved the timestamp controls from RDI_CFG0 to RDI_CFG1, with the
+ * strobe selecting which event latches TIMESTAMP_CURRx at bits [1:0] instead
+ * of [9:8].
+ */
+#define CSID_RDI_TIMESTAMP_CFG(rdi) (IS_CSID_690(csid) ?\
+ CSID_RDI_CFG1(rdi) :\
+ CSID_RDI_CFG0(rdi))
+#define RDI_CFG_TIMESTAMP_EN (IS_CSID_690(csid) ? BIT(4) : BIT(6))
+#define RDI_CFG_TIMESTAMP_STB_SEL (IS_CSID_690(csid) ? BIT(0) : BIT(8))
+
#define CSID_RDI_IRQ_SUBSAMPLE_PATTERN(rdi) (csid_is_lite(csid) && IS_CSID_690(csid) ?\
(0x348 + 0x100 * (rdi)) :\
(0x548 + 0x100 * (rdi)))
@@ -188,10 +197,8 @@ static void __csid_configure_rdi_stream(struct csid_device *csid, u8 enable, u8
*/
u8 dt_id = port & 0x03;
- val = RDI_CFG0_TIMESTAMP_EN;
- val |= RDI_CFG0_TIMESTAMP_STB_SEL;
/* note: for non-RDI path, this should be format->decode_format */
- val |= DECODE_FORMAT_PAYLOAD_ONLY << RDI_CFG0_DECODE_FORMAT;
+ val = DECODE_FORMAT_PAYLOAD_ONLY << RDI_CFG0_DECODE_FORMAT;
val |= vc << RDI_CFG0_VC;
val |= format->data_type << RDI_CFG0_DT;
val |= dt_id << RDI_CFG0_DT_ID;
@@ -207,6 +214,12 @@ static void __csid_configure_rdi_stream(struct csid_device *csid, u8 enable, u8
writel(val, csid->base + CSID_RDI_CFG1(port));
+ /* Arm the SOF timestamp latch, whichever register holds its controls */
+ val = readl(csid->base + CSID_RDI_TIMESTAMP_CFG(port));
+ val |= RDI_CFG_TIMESTAMP_EN;
+ val |= RDI_CFG_TIMESTAMP_STB_SEL;
+ writel(val, csid->base + CSID_RDI_TIMESTAMP_CFG(port));
+
val = 0;
writel(val, csid->base + CSID_RDI_IRQ_SUBSAMPLE_PERIOD(port));
--
2.34.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 6/8] media: qcom: camss: csid-gen3: Report the hardware SOF timestamp
2026-11-27 16:11 [PATCH v3 0/8] media: qcom: camss: Report the hardware SOF timestamp Loic Poulain
` (4 preceding siblings ...)
2026-11-27 16:11 ` [PATCH v3 5/8] media: qcom: camss: csid-gen3: Fix the RDI timestamp controls on Titan 690 Loic Poulain
@ 2026-11-27 16:11 ` Loic Poulain
2026-11-27 16:11 ` [PATCH v3 7/8] media: qcom: camss: Timestamp buffers at start of frame Loic Poulain
2026-11-27 16:11 ` [PATCH v3 8/8] media: qcom: camss: Tell userspace we're using start-of-frame timestamps Loic Poulain
7 siblings, 0 replies; 9+ messages in thread
From: Loic Poulain @ 2026-11-27 16:11 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Bryan O'Donoghue, Vladimir Zapolskiy
Cc: linux-media, linux-kernel, linux-arm-msm, Loic Poulain
The CSID latches the ARM architected counter into TIMESTAMP_CURR0/1_SOF
on every start of frame. Implement the sof_ts operation so that the
value is used for the frame sync event and the buffer timestamp, instead
of the time at which the interrupt happened to be serviced.
The register pair is latched, not free running, so the two halves belong
to the same SOF whatever the read order.
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
---
drivers/media/platform/qcom/camss/camss-csid-gen3.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/drivers/media/platform/qcom/camss/camss-csid-gen3.c b/drivers/media/platform/qcom/camss/camss-csid-gen3.c
index 5dce6f722d05817f43341d22560cbe32def08cf0..5da77dcd3471033525f6fecde547892fff5965a8 100644
--- a/drivers/media/platform/qcom/camss/camss-csid-gen3.c
+++ b/drivers/media/platform/qcom/camss/camss-csid-gen3.c
@@ -118,6 +118,12 @@
#define CSID_RDI_IRQ_SUBSAMPLE_PERIOD(rdi) (csid_is_lite(csid) && IS_CSID_690(csid) ?\
(0x34C + 0x100 * (rdi)) :\
(0x54C + 0x100 * (rdi)))
+#define CSID_RDI_TIMESTAMP_CURR0_SOF(rdi) (csid_is_lite(csid) && IS_CSID_690(csid) ?\
+ (0x394 + 0x100 * (rdi)) :\
+ (0x594 + 0x100 * (rdi)))
+#define CSID_RDI_TIMESTAMP_CURR1_SOF(rdi) (csid_is_lite(csid) && IS_CSID_690(csid) ?\
+ (0x398 + 0x100 * (rdi)) :\
+ (0x598 + 0x100 * (rdi)))
#define CSI2_RX_CFG0_PHY_SEL_BASE_IDX 1
static void __csid_configure_rx(struct csid_device *csid,
@@ -391,12 +397,27 @@ static void csid_subdev_init(struct csid_device *csid)
csid->testgen.nmodes = CSID_PAYLOAD_MODE_DISABLED;
}
+static u64 csid_sof_ts(struct csid_device *csid, unsigned int rdi)
+{
+ u32 lo, hi;
+
+ /*
+ * The pair is latched on SOF rather than counting, so it can be read
+ * one word at a time without tearing.
+ */
+ lo = readl_relaxed(csid->base + CSID_RDI_TIMESTAMP_CURR0_SOF(rdi));
+ hi = readl_relaxed(csid->base + CSID_RDI_TIMESTAMP_CURR1_SOF(rdi));
+
+ return ((u64)hi << 32) | lo;
+}
+
const struct csid_hw_ops csid_ops_gen3 = {
.configure_stream = csid_configure_stream,
.configure_testgen_pattern = csid_configure_testgen_pattern,
.hw_version = csid_hw_version,
.isr = csid_isr,
.reset = csid_reset,
+ .sof_ts = csid_sof_ts,
.src_pad_code = csid_src_pad_code,
.subdev_init = csid_subdev_init,
.reg_update = csid_subdev_reg_update,
--
2.34.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 7/8] media: qcom: camss: Timestamp buffers at start of frame
2026-11-27 16:11 [PATCH v3 0/8] media: qcom: camss: Report the hardware SOF timestamp Loic Poulain
` (5 preceding siblings ...)
2026-11-27 16:11 ` [PATCH v3 6/8] media: qcom: camss: csid-gen3: Report the hardware SOF timestamp Loic Poulain
@ 2026-11-27 16:11 ` Loic Poulain
2026-11-27 16:11 ` [PATCH v3 8/8] media: qcom: camss: Tell userspace we're using start-of-frame timestamps Loic Poulain
7 siblings, 0 replies; 9+ messages in thread
From: Loic Poulain @ 2026-11-27 16:11 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Bryan O'Donoghue, Vladimir Zapolskiy
Cc: linux-media, linux-kernel, linux-arm-msm, Loic Poulain
Buffers are stamped from the write master done interrupt, once the frame
has been written out to memory, while V4L2 defines vb2_buf.timestamp as
the time the first data byte was captured. Use the SOF time the CSID
already computes instead, handed to the VFE the same way as the SOF
sequence number. Hardware without SOF tracking keeps using the buf done
time.
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
---
drivers/media/platform/qcom/camss/camss-vfe-17x.c | 7 +++++--
drivers/media/platform/qcom/camss/camss-vfe.c | 8 ++++++--
drivers/media/platform/qcom/camss/camss-vfe.h | 1 +
3 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/drivers/media/platform/qcom/camss/camss-vfe-17x.c b/drivers/media/platform/qcom/camss/camss-vfe-17x.c
index 4972d3ab65078387735ef2e853bf1c9c3d82baee..6b8df1f6e2a731ccd0e739edaa82221c18203f74 100644
--- a/drivers/media/platform/qcom/camss/camss-vfe-17x.c
+++ b/drivers/media/platform/qcom/camss/camss-vfe-17x.c
@@ -472,7 +472,6 @@ static void vfe_isr_wm_done(struct vfe_device *vfe, u8 wm)
struct vfe_output *output;
unsigned long flags;
u32 index;
- u64 ts = ktime_get_ns();
spin_lock_irqsave(&vfe->output_lock, flags);
@@ -490,7 +489,11 @@ static void vfe_isr_wm_done(struct vfe_device *vfe, u8 wm)
goto out_unlock;
}
- ready_buf->vb.vb2_buf.timestamp = ts;
+ if (line->sof_ts)
+ ready_buf->vb.vb2_buf.timestamp = atomic64_read(line->sof_ts);
+ else
+ ready_buf->vb.vb2_buf.timestamp = ktime_get_ns();
+
if (line->sof_seq)
ready_buf->vb.sequence = atomic_read(line->sof_seq);
else
diff --git a/drivers/media/platform/qcom/camss/camss-vfe.c b/drivers/media/platform/qcom/camss/camss-vfe.c
index f9bd2367671f6e50c6948a6405f78b8c2b03e5f7..ab4edb14ed7486724f12fbd024e0600d70f8355d 100644
--- a/drivers/media/platform/qcom/camss/camss-vfe.c
+++ b/drivers/media/platform/qcom/camss/camss-vfe.c
@@ -456,7 +456,6 @@ void vfe_buf_done(struct vfe_device *vfe, int wm)
struct vfe_output *output;
unsigned long flags;
u32 index;
- u64 ts = ktime_get_ns();
spin_lock_irqsave(&vfe->output_lock, flags);
@@ -474,7 +473,11 @@ void vfe_buf_done(struct vfe_device *vfe, int wm)
goto out_unlock;
}
- ready_buf->vb.vb2_buf.timestamp = ts;
+ if (line->sof_ts)
+ ready_buf->vb.vb2_buf.timestamp = atomic64_read(line->sof_ts);
+ else
+ ready_buf->vb.vb2_buf.timestamp = ktime_get_ns();
+
if (line->sof_seq)
ready_buf->vb.sequence = atomic_read(line->sof_seq);
else
@@ -532,6 +535,7 @@ int vfe_enable_output_v2(struct vfe_line *line)
csid_pad = media_pad_remote_pad_first(&line->pads[MSM_VFE_PAD_SINK]);
line->sof_seq = csid_get_sof_seq(csid_pad);
+ line->sof_ts = csid_get_sof_ts(csid_pad);
spin_lock_irqsave(&vfe->output_lock, flags);
diff --git a/drivers/media/platform/qcom/camss/camss-vfe.h b/drivers/media/platform/qcom/camss/camss-vfe.h
index c37526caf9a6fc052c3f4ab4215e635167f6da95..8eda4592257169d04027a9a3c45233ac937eecae 100644
--- a/drivers/media/platform/qcom/camss/camss-vfe.h
+++ b/drivers/media/platform/qcom/camss/camss-vfe.h
@@ -95,6 +95,7 @@ struct vfe_line {
const struct camss_format_info *formats;
unsigned int nformats;
atomic_t *sof_seq;
+ atomic64_t *sof_ts;
};
struct vfe_device;
--
2.34.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 8/8] media: qcom: camss: Tell userspace we're using start-of-frame timestamps
2026-11-27 16:11 [PATCH v3 0/8] media: qcom: camss: Report the hardware SOF timestamp Loic Poulain
` (6 preceding siblings ...)
2026-11-27 16:11 ` [PATCH v3 7/8] media: qcom: camss: Timestamp buffers at start of frame Loic Poulain
@ 2026-11-27 16:11 ` Loic Poulain
7 siblings, 0 replies; 9+ messages in thread
From: Loic Poulain @ 2026-11-27 16:11 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Bryan O'Donoghue, Vladimir Zapolskiy
Cc: linux-media, linux-kernel, linux-arm-msm, Loic Poulain
On the SoCs whose CSID can track the start of frame, the buffer
timestamp is taken when the reception of the frame begins, not once it
has been written out to memory. Show this to userspace with the
V4L2_BUF_FLAG_TSTAMP_SRC_SOE buffer flag, the closest the API has to
offer, it is defined as the start of the exposure, which on a rolling
shutter sensor precedes the start of the readout by the exposure time
of the first row.
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
---
drivers/media/platform/qcom/camss/camss-video.c | 2 ++
drivers/media/platform/qcom/camss/camss.c | 6 ++++++
drivers/media/platform/qcom/camss/camss.h | 1 +
3 files changed, 9 insertions(+)
diff --git a/drivers/media/platform/qcom/camss/camss-video.c b/drivers/media/platform/qcom/camss/camss-video.c
index 5de6ff5ecc76a2863e536fca1c40ae6b2de6dc0c..4ce87527b9b984068f5c9a9cc3bbdca645cff1d3 100644
--- a/drivers/media/platform/qcom/camss/camss-video.c
+++ b/drivers/media/platform/qcom/camss/camss-video.c
@@ -698,6 +698,8 @@ int msm_video_register(struct camss_video *video, struct v4l2_device *v4l2_dev,
q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
q->io_modes = VB2_DMABUF | VB2_MMAP | VB2_READ;
q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
+ if (camss_has_frame_sync(video->camss))
+ q->timestamp_flags |= V4L2_BUF_FLAG_TSTAMP_SRC_SOE;
q->buf_struct_size = sizeof(struct camss_buffer);
q->dev = video->camss->dev;
q->lock = &video->q_lock;
diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c
index 26e3f2aa3ef2485e0486eaa89f93b804926b6e32..e60aa29051e71cd70bd3564a01655251ba2f37e6 100644
--- a/drivers/media/platform/qcom/camss/camss.c
+++ b/drivers/media/platform/qcom/camss/camss.c
@@ -4839,6 +4839,12 @@ int camss_get_pixel_clock(struct media_entity *entity, u64 *pixel_clock)
return 0;
}
+bool camss_has_frame_sync(struct camss *camss)
+{
+ /* All the CSIDs of a given SoC have the same capability */
+ return camss->res->csid_res[0].csid.frame_sync_en;
+}
+
int camss_pm_domain_on(struct camss *camss, int id)
{
int ret = 0;
diff --git a/drivers/media/platform/qcom/camss/camss.h b/drivers/media/platform/qcom/camss/camss.h
index 8154fab54f99b12456cb377dc4ddfcadfcf8278e..da1095c436323639bc0fda5ebac8026a09565108 100644
--- a/drivers/media/platform/qcom/camss/camss.h
+++ b/drivers/media/platform/qcom/camss/camss.h
@@ -177,6 +177,7 @@ struct media_pad *camss_find_sensor_pad(struct media_entity *entity);
s64 camss_get_link_freq(struct media_entity *entity, unsigned int bpp,
unsigned int lanes);
int camss_get_pixel_clock(struct media_entity *entity, u64 *pixel_clock);
+bool camss_has_frame_sync(struct camss *camss);
int camss_pm_domain_on(struct camss *camss, int id);
void camss_pm_domain_off(struct camss *camss, int id);
int camss_vfe_get(struct camss *camss, int id);
--
2.34.1
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-11-27 16:12 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 16:11 [PATCH v3 0/8] media: qcom: camss: Report the hardware SOF timestamp Loic Poulain
2026-11-27 16:11 ` [PATCH v3 1/8] media: qcom: camss: csid: Add an operation to read the " Loic Poulain
2026-11-27 16:11 ` [PATCH v3 2/8] media: qcom: camss: csid-340: Report the hardware " Loic Poulain
2026-11-27 16:11 ` [PATCH v3 3/8] media: camss: Define timestamp registers for csid-gen2 Loic Poulain
2026-11-27 16:11 ` [PATCH v3 4/8] media: camss: csid-gen2: Report the hardware SOF timestamp Loic Poulain
2026-11-27 16:11 ` [PATCH v3 5/8] media: qcom: camss: csid-gen3: Fix the RDI timestamp controls on Titan 690 Loic Poulain
2026-11-27 16:11 ` [PATCH v3 6/8] media: qcom: camss: csid-gen3: Report the hardware SOF timestamp Loic Poulain
2026-11-27 16:11 ` [PATCH v3 7/8] media: qcom: camss: Timestamp buffers at start of frame Loic Poulain
2026-11-27 16:11 ` [PATCH v3 8/8] media: qcom: camss: Tell userspace we're using start-of-frame timestamps Loic Poulain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®