From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
rfoss@kernel.org, todor.too@gmail.com, agross@kernel.org,
andersson@kernel.org, mchehab@kernel.org,
hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com,
sakari.ailus@linux.intel.com, andrey.konovalov@linaro.org
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 06/13] media: qcom: camss: Assign the correct number of RDIs per VFE
Date: Fri, 18 Aug 2023 14:26:13 +0200 [thread overview]
Message-ID: <1f52f47a-d3d9-4740-a9c7-ef0bc99d7925@linaro.org> (raw)
In-Reply-To: <20230817143812.677554-7-bryan.odonoghue@linaro.org>
On 17.08.2023 16:38, Bryan O'Donoghue wrote:
> Each Video Front End - VFE - has a variable number of Raw Data Interfaces -
> RDIs associated with it.
>
> The CAMSS code started from a naive implementation where a fixed define was
> used as a control in a for(){} loop iterating through RDIs.
>
> That model scales badly. An attempt was made with VFE_LINE_NUM_GEN2 and
> VFE_LINE_NUM_GEN1 to differentiate between SoCs but, the problem with that
> is "gen1" and "gen2" have no meaning in the silicon. There is no fixed
> constraint in the silicon between VFE and RDI, it is entirely up to the SoC
> designers how many VFEs are populated and how many RDIs to associate with
> each VFE.
>
> As an example sdm845 has VFE version 175 and sm8250 VFE version 480.
> sdm845 has 2 VFEs with 4 RDIs and 1 VFE Lite with 4 RDIs.
> sm8250 has 2 VFEs with 3 RDIs and 2 VFE Lite with 4 RDIs.
>
> Clearly then we need a more granular model to capture the necessary data.
>
> The defines have gone away to be replaced with per-SoC data but, we haven't
> populated the parameter data with the real values.
>
> Let's call those values out now
>
> msm8916:
> 1 x VFE
> 3 x RDI per VFE (not 4)
>
> msm8996:
> 2 x VFE
> 3 x RDI per VFE (not 4)
>
> sdm660:
> 2 x VFE
> 3 x RDI per VFE (not 4)
>
> sdm845:
> 2 x VFE
> 4 x RDI per VFE (not 3)
> 1 x VFE Lite
> 4 x RDI per VFE Lite (not 3)
>
> sm8250:
> 2 x VFE
> 3 x RDI per VFE (not 4)
> 2 x VFE Lite
> 4 x RDI per VFE
>
> This more complex and correct mapping was not possible prior to passing
> values via driver data. Now that we have that change in place we can
> correctly map VFEs to RDIs for each VFE.
>
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> ---
Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Konrad
next prev parent reply other threads:[~2023-08-18 12:27 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-17 14:37 [PATCH v2 00/13] media: qcom: camss: Add parameter passing to remove several outstanding bugs Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 01/13] media: qcom: camss: Amalgamate struct resource with struct resource_ispif Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 02/13] media: qcom: camss: Start to move to module compat matched resources Bryan O'Donoghue
2023-08-18 12:22 ` Konrad Dybcio
2023-08-17 14:38 ` [PATCH v2 03/13] media: qcom: camss: Pass icc bandwidth table as a platform parameter Bryan O'Donoghue
2023-08-18 12:22 ` Konrad Dybcio
2023-08-17 14:38 ` [PATCH v2 04/13] media: qcom: camss: Pass remainder of variables as resources Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 05/13] media: qcom: camss: Pass line_num from compat resources Bryan O'Donoghue
2023-08-18 12:27 ` Konrad Dybcio
2023-08-17 14:38 ` [PATCH v2 06/13] media: qcom: camss: Assign the correct number of RDIs per VFE Bryan O'Donoghue
2023-08-18 12:26 ` Konrad Dybcio [this message]
2023-08-17 14:38 ` [PATCH v2 07/13] media: qcom: camss: Use >= CAMSS_SDM845 for vfe_get/vfe_put Bryan O'Donoghue
2023-08-18 12:28 ` Konrad Dybcio
2023-08-18 12:29 ` Konrad Dybcio
2023-08-19 14:56 ` Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 08/13] media: qcom: camss: Untangle if/else spaghetti in camss Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 09/13] media: qcom: camss: Improve error printout on icc_get fail Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 10/13] media: qcom: camss: Allow clocks vfeN vfe_liteN or vfe_lite Bryan O'Donoghue
2023-08-18 12:30 ` Konrad Dybcio
2023-08-19 14:49 ` Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 11/13] media: qcom: camss: Functionally decompose CSIPHY clock lookups Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 12/13] media: qcom: camss: Add support for setting CSIPHY clock name csiphyX Bryan O'Donoghue
2023-08-18 12:32 ` Konrad Dybcio
2023-08-19 14:21 ` Bryan O'Donoghue
2023-08-17 14:38 ` [PATCH v2 13/13] media: qcom: camss: Support RDI3 for VFE 17x Bryan O'Donoghue
2023-08-18 12:32 ` Konrad Dybcio
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=1f52f47a-d3d9-4740-a9c7-ef0bc99d7925@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=andrey.konovalov@linaro.org \
--cc=bryan.odonoghue@linaro.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=rfoss@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=todor.too@gmail.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®