From: Johan Hovold <johan@kernel.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Dikshita Agarwal <quic_dikshita@quicinc.com>,
quic_vgarodia@quicinc.com, mchehab@kernel.org, robh@kernel.org,
krzk+dt@kernel.org, p.zabel@pengutronix.de, hverkuil@xs4all.nl,
sebastian.fricke@collabora.com, bryan.odonoghue@linaro.org,
neil.armstrong@linaro.org, nicolas@ndufresne.ca,
u.kleine-koenig@baylibre.com, stefan.schmidt@linaro.org,
lujianhua000@gmail.com, linux-arm-msm@vger.kernel.org,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, krzysztof.kozlowski@linaro.org
Subject: Re: [RFC PATCH v10 1/2] media: iris: introduce helper module to select video driver
Date: Tue, 4 Feb 2025 17:00:31 +0100 [thread overview]
Message-ID: <Z6I5nx2Wt3bbBmSI@hovoldconsulting.com> (raw)
In-Reply-To: <hpcf7olw3ody7ns4ibdeoc5qrkmh3fgeqbhjd4eqwfuanevzoa@plenabtrjqi5>
On Tue, Feb 04, 2025 at 04:55:58PM +0200, Dmitry Baryshkov wrote:
> On Tue, Feb 04, 2025 at 10:31:49AM +0100, Johan Hovold wrote:
> > On Mon, Feb 03, 2025 at 05:16:50PM +0200, Dmitry Baryshkov wrote:
> > > On Mon, Feb 03, 2025 at 09:22:51AM +0100, Johan Hovold wrote:
> > > > On Fri, Jan 31, 2025 at 10:44:28AM -0800, Abhinav Kumar wrote:
> > And we're still waiting to hear the answers to all of Hans' questions. I
> > still haven't seen anyone explaining why any of this is needed. You
> > could have just continued letting Venus support 8250 so presumably there
> > is some benefit in using Iris instead. Which? And is that potential
> > benefit important enough to not just wait until Iris is up to par
> > feature wise?
>
> Because that's exactly opposite of what Iris developers are trying to
> do: SM8250 and SM8550 belong to two different generations of the FW
> interface. By supporting both of them in the Iris driver the developers
> can verify that the internal driver abstractions are good enough. It has
> been discussed in one of the threads (or in telcos) related to the first
> iterations of this driver. We definitely don't want to end up in Venus
> situation, where the abstractions were added afterwards and in some
> cases they are not the best ones.
Ok, but as I've said a number of times already, information like this
needs to be included in the cover letter and commit message of what is
posted to the list.
Maintainers and reviewers obviously have no idea what you discussed in
some internal teleconference and can't be expected to remember or dig
this out from some old email thread either.
> The plan is to use sm8250 as a "bridge" between two drivers, verifying
> that they are on par during development, then drop sm8250 from Venus
> driver. Then move sc7280 support too, drop all HFD_VERSION_6XX support
> from Venus, cleanup the remnants.
Ok, but venus would still remain for some older hardware? It's just the
"hfi gen1" ones that would move to the iris eventually?
> I think most of that information should have been a part of the main
> Iris series. If it is not, please comment there, so that those commit
> messages can be updated.
Unfortunately it was not, which I also pointed in my comments to the
Iris series.
> > I'm sure you have some answers, but you need to provide them as part of
> > the series.
> > Unbinding and rebinding drivers is not part of any normal work flow
> > expect possibly during development. And a developer can easily compare
> > Venus and Iris for 8250 without a module parameter too.
>
> Yes, we are talking about development. And yes, modparam helps. If you'd
> like to do two separate kernel builds, that's fine.
Please just motivate why you think this is needed as part of the
submission. And make sure that the implementation is sane (e.g. not some
random probe defer indefinitely thing).
Like I said, having two drivers for the same hardware is normally not
something that is acceptable, and this would need to be a transitional
thing as we both agree. One way to guarantee that is to not expose it to
regular users until it is ready (e.g. a Kconfig hidden behind
CONFIG_EXPERT or similar). Otherwise, I fear you'll end up supporting
both forever (with at least one of them bitrotting behind that module
parameter over time).
Johan
next prev parent reply other threads:[~2025-02-04 16:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-28 8:04 [RFC PATCH v10 0/2] Add helper module to select video driver Dikshita Agarwal
2025-01-28 8:04 ` [RFC PATCH v10 1/2] media: iris: introduce " Dikshita Agarwal
2025-01-28 16:14 ` Dmitry Baryshkov
2025-01-29 9:53 ` Dikshita Agarwal
2025-01-29 11:27 ` Dmitry Baryshkov
2025-01-29 10:44 ` Krzysztof Kozlowski
2025-01-31 18:44 ` Abhinav Kumar
2025-02-03 8:22 ` Johan Hovold
2025-02-03 15:16 ` Dmitry Baryshkov
2025-02-03 16:34 ` Krzysztof Kozlowski
2025-02-04 9:35 ` Johan Hovold
2025-02-04 9:31 ` Johan Hovold
2025-02-04 14:55 ` Dmitry Baryshkov
2025-02-04 16:00 ` Johan Hovold [this message]
2025-02-04 23:09 ` Dmitry Baryshkov
2025-02-05 6:17 ` Dikshita Agarwal
2025-02-05 8:30 ` Johan Hovold
2025-02-04 15:08 ` Vikash Garodia
2025-02-04 16:05 ` Johan Hovold
2025-01-28 8:04 ` [RFC PATCH v10 2/2] media: iris: enable video driver probe of SM8250 SoC Dikshita Agarwal
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=Z6I5nx2Wt3bbBmSI@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=hverkuil@xs4all.nl \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=krzysztof.kozlowski@linaro.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_dikshita@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