From: Dikshita Agarwal <quic_dikshita@quicinc.com>
To: Stefan Schmidt <stefan.schmidt@linaro.org>
Cc: "Vikash Garodia" <quic_vgarodia@quicinc.com>,
"Abhinav Kumar" <quic_abhinavk@quicinc.com>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Hans Verkuil" <hverkuil@xs4all.nl>,
"Sebastian Fricke" <sebastian.fricke@collabora.com>,
"Bryan O'Donoghue" <bryan.odonoghue@linaro.org>,
"Dmitry Baryshkov" <dmitry.baryshkov@linaro.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Nicolas Dufresne" <nicolas@ndufresne.ca>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Jianhua Lu" <lujianhua000@gmail.com>,
linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v8 16/28] media: iris: implement vb2 streaming ops
Date: Wed, 11 Dec 2024 15:04:33 +0530 [thread overview]
Message-ID: <27a2ca82-2e8c-8cf9-012c-602cd421bd66@quicinc.com> (raw)
In-Reply-To: <CAEvtbuus3scTvcjMuxxrfcqnd61+vqM5G=os-aUuM3+SLp2abQ@mail.gmail.com>
On 12/10/2024 6:20 PM, Stefan Schmidt wrote:
> Hello Dikshita,
>
> On Tue, 10 Dec 2024 at 12:07, Dikshita Agarwal
> <quic_dikshita@quicinc.com> wrote:
>>
>> +static int iris_hfi_gen1_session_stop(struct iris_inst *inst, u32 plane)
>> +{
>> + struct hfi_session_flush_pkt flush_pkt;
>> + struct iris_core *core = inst->core;
>> + struct hfi_session_pkt pkt;
>> + u32 flush_type = 0;
>> + int ret = 0;
>> +
>> + if ((V4L2_TYPE_IS_OUTPUT(plane) &&
>> + inst->state == IRIS_INST_INPUT_STREAMING) ||
>> + (V4L2_TYPE_IS_CAPTURE(plane) &&
>> + inst->state == IRIS_INST_OUTPUT_STREAMING) ||
>> + inst->state == IRIS_INST_ERROR) {
>> + reinit_completion(&inst->completion);
>> + iris_hfi_gen1_packet_session_cmd(inst, &pkt, HFI_CMD_SESSION_STOP);
>> + ret = iris_hfi_queue_cmd_write(core, &pkt, pkt.shdr.hdr.size);
>> + if (!ret)
>> + ret = iris_wait_for_session_response(inst, false);
>> +
>> + reinit_completion(&inst->completion);
>> + iris_hfi_gen1_packet_session_cmd(inst, &pkt, HFI_CMD_SESSION_RELEASE_RESOURCES);
>> + ret = iris_hfi_queue_cmd_write(core, &pkt, pkt.shdr.hdr.size);
>> + if (!ret)
>> + ret = iris_wait_for_session_response(inst, false);
>> + } else if (inst->state == IRIS_INST_STREAMING) {
>> + if (V4L2_TYPE_IS_OUTPUT(plane))
>> + flush_type = HFI_FLUSH_ALL;
>> + else if (V4L2_TYPE_IS_CAPTURE(plane))
>> + flush_type = HFI_FLUSH_OUTPUT;
>
> Below there is also HFI_FLUSH_OUTPUT2 defined. Do we need to handle
> this flush type here as well?
The behavior for HFI_FLUSH_OUTPUT2 is same as HFI_FLUSH_OUTPUT so there is
no need to add specific handling for HFI_FLUSH_OUTPUT2.
Thanks,
Dikshita
>
> [...]
>
>> +#define HFI_FLUSH_OUTPUT 0x1000002
>> +#define HFI_FLUSH_OUTPUT2 0x1000003
>
> regards
> Stefan Schmidt
next prev parent reply other threads:[~2024-12-11 9:34 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-10 11:05 [PATCH v8 00/28] Qualcomm iris video decoder driver Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 01/28] dt-bindings: media: Add video support for QCOM SM8550 SoC Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 02/28] media: iris: add platform driver for iris video device Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 03/28] media: iris: implement iris v4l2 file ops Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 04/28] media: iris: introduce iris core state management with shared queues Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 05/28] media: iris: implement video firmware load/unload Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 06/28] media: iris: implement boot sequence of the firmware Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 07/28] media: iris: introduce host firmware interface with necessary hooks Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 08/28] media: iris: implement power management Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 09/28] media: iris: implement reqbuf ioctl with vb2_queue_setup Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 10/28] media: iris: implement s_fmt, g_fmt and try_fmt ioctls Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 11/28] media: iris: implement g_selection ioctl Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 12/28] media: iris: implement enum_fmt and enum_framesizes ioctls Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 13/28] media: iris: implement subscribe_event and unsubscribe_event ioctls Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 14/28] media: iris: implement iris v4l2_ctrl_ops Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 15/28] media: iris: implement query_cap ioctl Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 16/28] media: iris: implement vb2 streaming ops Dikshita Agarwal
2024-12-10 12:50 ` Stefan Schmidt
2024-12-11 9:34 ` Dikshita Agarwal [this message]
2024-12-11 12:21 ` Stefan Schmidt
2024-12-10 11:05 ` [PATCH v8 17/28] media: iris: implement set properties to firmware during streamon Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 18/28] media: iris: subscribe parameters and properties to firmware for hfi_gen2 Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 19/28] media: iris: allocate, initialize and queue internal buffers Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 20/28] media: iris: implement vb2 ops for buf_queue and firmware response Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 21/28] media: iris: add support for dynamic resolution change Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 22/28] media: iris: handle streamoff/on from client in " Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 23/28] media: iris: add support for drain sequence Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 24/28] media: iris: add check whether the video session is supported or not Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 25/28] media: iris: implement power scaling for vpu2 and vpu3 Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 26/28] media: iris: add check to allow sub states transitions Dikshita Agarwal
2024-12-10 11:05 ` [PATCH v8 27/28] media: iris: enable video driver probe of SM8250 SoC Dikshita Agarwal
2024-12-10 16:23 ` Stefan Schmidt
2024-12-11 6:24 ` Dikshita Agarwal
2024-12-11 8:47 ` Dmitry Baryshkov
2024-12-11 9:07 ` Dikshita Agarwal
2024-12-11 10:00 ` Dmitry Baryshkov
2024-12-10 11:05 ` [PATCH v8 28/28] media: MAINTAINERS: add Qualcomm iris video accelerator driver Dikshita Agarwal
2024-12-10 16:50 ` [PATCH v8 00/28] Qualcomm iris video decoder driver Stefan Schmidt
2024-12-10 20:36 ` Stefan Schmidt
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=27a2ca82-2e8c-8cf9-012c-602cd421bd66@quicinc.com \
--to=quic_dikshita@quicinc.com \
--cc=bryan.odonoghue@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=hverkuil@xs4all.nl \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=lujianhua000@gmail.com \
--cc=mchehab@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=nicolas@ndufresne.ca \
--cc=p.zabel@pengutronix.de \
--cc=quic_abhinavk@quicinc.com \
--cc=quic_vgarodia@quicinc.com \
--cc=robh@kernel.org \
--cc=sebastian.fricke@collabora.com \
--cc=stefan.schmidt@linaro.org \
--cc=u.kleine-koenig@baylibre.com \
/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®