Re: Re: [PATCH 09/18] clk: qcom: gcc-sm8250: Set delay for Venus CLK resets
From: Bjorn Andersson
Date: Sat Jan 27 2024 - 18:06:01 EST
On Tue, Jan 09, 2024 at 10:33:39AM +0100, Konrad Dybcio wrote:
>
>
> On 1/9/24 01:34, Bryan O'Donoghue wrote:
> > On 08/01/2024 12:32, Konrad Dybcio wrote:
> > > Some Venus resets may require more time when toggling. Describe that.
> >
> > May or does ?
> >
> > I'd prefer a strong declaration of where this value came from and why its being added.
> >
> > May is ambiguous.
> >
> > "Downstream has a 150 us delay for this. My own testing shows this to be necessary in upstream"
>
> Alright
>
> >
> > Later commits want to add a 1000 us delay. Have all of these delays been tested ?
>
> No, we don't support Venus on many of the newer SoCs..
>
>
> >
> > If not please describe where the values come.
>
> They come from the downstream Venus driver as you mentioned.
> I checked a couple different downstream SoC kernel trees and
> tried to assign the values based on what I found in a kernel
> for that platform. Some are fairly educated guesses.
>
It would be nice to have documented for which cases you guessed (and in
which downstream kernel you found other values?), so that if anyone is
coming to the tree later with conflicting information they have a better
chance to reason about the discrepancy.
Thanks,
Bjorn