mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bryan O'Donoghue <bod@kernel.org>
To: "Gjorgji Rosikopulos (Consultant)"
	<gjorgji.rosikopulos@oss.qualcomm.com>,
	bryan.odonoghue@linaro.org,
	Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>,
	Loic Poulain <loic.poulain@oss.qualcomm.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/9] media: qcom: camss: Introduce SOF sequence tracking
Date: Tue, 3 Nov 2026 14:39:39 +0000	[thread overview]
Message-ID: <2cfa4a92-2be2-4f13-84bf-ecac133b525f@kernel.org> (raw)
In-Reply-To: <d4d0161f-37d1-4b93-8b54-202e691d66b7@oss.qualcomm.com>

On 03/11/2026 14:35, Gjorgji Rosikopulos (Consultant) wrote:
> Hi Bryan,
> 
> On 11/3/2026 3:27 PM, Bryan O'Donoghue wrote:
>> On 03/11/2026 13:13, Gjorgji Rosikopulos (Consultant) wrote:
>>>>> More than that though, there is in-fact a VFE specific SOF/EOF and EPOCH
>>>>> event but these require the CSID feeding a frame into the VFE pipeline
>>>>> and the VFE moving through its own state-machine to process that frame.
>>>>>
>>>>> So they are separate signals and separate logical events representing
>>>>> different things with different timings in hardware, meaning different
>>>>> things to userspace.
>>>> Well that make sense i agree that it make sense to be part of the csid
>>>> but it should be documented somewhere, maybe proper thing to do is update
>>>> the comment in videodev2.h and update the documentation for camss driver.
>>> Just an proposal if it is decided the id to be used, it make sense to contain
>>> stream_id. Then userspace based on the stream routing can map SOF
>>> for the stream of interest. But the API for retrieving stream_id is still
>>> experimental and i am not sure if will be well accepted.
>>>
>> Ah yes right I didn't really grok your point about .id = <integer> yes I
>> agree with you, the assignment of port/line number should be dropped and
>> left @ 0 - also what is the point of stuffing the line id into the .id
>> field is not warranted.
>>
>> Agreed, that's a mistake.
> Maybe this is a good point to raise. My concern is with the multistream patches:
> the id field is also used when subscribing to an event,  so it would be useful
> for userspace to identify which SOF it receives in a GMSL use case.
> 
> We can leave the id as 0 for this series, but I think we should discuss how to
> handle cases where two different cameras arrive on the same PHY over different
> virtual channels—for example, one using RDI0 and the other RDI1.
> For sure what is currently missing  in stream_api support is the events and
> how they can be adopted to be per stream/streams.
> 
> I hope that clarifies my intent—I’m not looking to hold up the series...

Off the top of my head VC kind of makes sense here.

OTOH it probably makes more sense - the VC differentiator in the VFE 
delivering the data but I think we end up debating if the SOF triggered 
in that VFE is the VFE SOF (yes) or he CSID (no) and if the VFE SOF 
really transmits any real data user-space cares about...

Leaving this series @ 0 is compliant with existing stuff elsewhere and 
lets us reason about the multi-stream stuff separately and potentially 
as you say addressing a gap in what's upstream for multi-stream right now.

---
bod

  reply	other threads:[~2026-11-03 14:39 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-02 13:56 [PATCH v2 0/9] Add SOF sequence logic bryan.odonoghue
2026-11-02 13:56 ` [PATCH v2 1/9] media: qcom: camss: Introduce CPU latency QoS during streaming bryan.odonoghue
2026-11-02 14:20   ` Loic Poulain
2026-11-02 13:56 ` [PATCH v2 2/9] media: qcom: camss: Introduce SOF sequence tracking bryan.odonoghue
2026-11-02 14:47   ` Loic Poulain
2026-11-03  7:11   ` Gjorgji Rosikopulos (Consultant)
2026-11-03  9:33     ` Loic Poulain
2026-11-03  9:42       ` Gjorgji Rosikopulos (Consultant)
2026-11-03  9:53         ` Loic Poulain
2026-11-03  9:56           ` Loic Poulain
2026-11-03 10:26             ` Gjorgji Rosikopulos (Consultant)
2026-11-03 12:19     ` Bryan O'Donoghue
2026-11-03 12:30       ` Gjorgji Rosikopulos (Consultant)
2026-11-03 13:13         ` Gjorgji Rosikopulos (Consultant)
2026-11-03 13:27           ` Bryan O'Donoghue
2026-11-03 14:35             ` Gjorgji Rosikopulos (Consultant)
2026-11-03 14:39               ` Bryan O'Donoghue [this message]
2026-11-03 14:54                 ` Gjorgji Rosikopulos (Consultant)
2026-11-02 13:56 ` [PATCH v2 3/9] media: qcom: camss: Use SOF sequence tracking for vb.sequence bryan.odonoghue
2026-11-02 14:55   ` Loic Poulain
2026-11-02 13:56 ` [PATCH v2 4/9] media: qcom: camss: csid-gen3: Enable RDI SOF driving bryan.odonoghue
2026-11-02 15:10   ` Loic Poulain
2026-11-02 13:56 ` [PATCH v2 5/9] media: qcom: camss: csid-680: Enable RDI SOF tracking bryan.odonoghue
2026-11-02 15:11   ` Loic Poulain
2026-11-02 13:56 ` [PATCH v2 6/9] media: qcom: camss: csid-gen2: " bryan.odonoghue
2026-11-02 15:18   ` Loic Poulain
2026-11-02 13:56 ` [PATCH v2 7/9] media: qcom: camss: Switch on frame_sync_en logic for csid-gen3 bryan.odonoghue
2026-11-02 13:56 ` [PATCH v2 8/9] media: qcom: camss: Switch on frame_sync_en for x1e/x2e bryan.odonoghue
2026-11-02 14:32   ` Konrad Dybcio
2026-11-02 15:54     ` Bryan O'Donoghue
2026-11-02 15:55       ` Bryan O'Donoghue
2026-11-02 13:56 ` [PATCH v2 9/9] media: qcom: camss: Switch on frame_sync_en for csid-gen2 bryan.odonoghue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2cfa4a92-2be2-4f13-84bf-ecac133b525f@kernel.org \
    --to=bod@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=gjorgji.rosikopulos@oss.qualcomm.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=mchehab@kernel.org \
    --cc=vladimir.zapolskiy@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®