* [PATCH v2 1/1] arm64: defconfig: Enable SDM660 Clock Controllers
@ 2023-11-15 20:53 Petr Vorel
2023-11-15 21:40 ` Martin Botka
2023-12-07 16:30 ` Bjorn Andersson
0 siblings, 2 replies; 8+ messages in thread
From: Petr Vorel @ 2023-11-15 20:53 UTC (permalink / raw)
To: linux-arm-msm
Cc: Petr Vorel, Bjorn Andersson, Martin Botka,
AngeloGioacchino Del Regno, Konrad Dybcio, Aboothahir U
From: Petr Vorel <petr.vorel@gmail.com>
Enable support for the multimedia clock controller on SDM660 devices
and graphics clock controller on SDM630/636/660 devices.
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
Changes v1->v2:
* added commit message (not just the subject)
NOTE motivation for this is that some not yet mainlined DTS already use
both:
https://github.com/sdm660-mainline/linux/blob/sdm660-next-stable/arch/arm64/boot/dts/qcom/sdm636-asus-x00td.dts
Kind regards,
Petr
arch/arm64/configs/defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index acba803835b9..10a098aa8b1b 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1235,6 +1235,8 @@ CONFIG_SC_GCC_8180X=y
CONFIG_SC_GCC_8280XP=y
CONFIG_SC_GPUCC_8280XP=m
CONFIG_SC_LPASSCC_8280XP=m
+CONFIG_SDM_MMCC_660=m
+CONFIG_SDM_GPUCC_660=y
CONFIG_SDM_CAMCC_845=m
CONFIG_SDM_GPUCC_845=y
CONFIG_SDM_VIDEOCC_845=y
--
2.42.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] arm64: defconfig: Enable SDM660 Clock Controllers
2023-11-15 20:53 [PATCH v2 1/1] arm64: defconfig: Enable SDM660 Clock Controllers Petr Vorel
@ 2023-11-15 21:40 ` Martin Botka
2023-12-07 16:30 ` Bjorn Andersson
1 sibling, 0 replies; 8+ messages in thread
From: Martin Botka @ 2023-11-15 21:40 UTC (permalink / raw)
To: Petr Vorel
Cc: linux-arm-msm, Petr Vorel, Bjorn Andersson,
AngeloGioacchino Del Regno, Konrad Dybcio, Aboothahir U
On Wed, Nov 15 2023 at 09:53:18 PM +01:00:00, Petr Vorel
<pvorel@suse.cz> wrote:
> From: Petr Vorel <petr.vorel@gmail.com>
>
> Enable support for the multimedia clock controller on SDM660 devices
> and graphics clock controller on SDM630/636/660 devices.
>
> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> ---
> Changes v1->v2:
> * added commit message (not just the subject)
>
> NOTE motivation for this is that some not yet mainlined DTS already
> use
> both:
>
> https://github.com/sdm660-mainline/linux/blob/sdm660-next-stable/arch/arm64/boot/dts/qcom/sdm636-asus-x00td.dts
>
> Kind regards,
> Petr
>
> arch/arm64/configs/defconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/configs/defconfig
> b/arch/arm64/configs/defconfig
> index acba803835b9..10a098aa8b1b 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -1235,6 +1235,8 @@ CONFIG_SC_GCC_8180X=y
> CONFIG_SC_GCC_8280XP=y
> CONFIG_SC_GPUCC_8280XP=m
> CONFIG_SC_LPASSCC_8280XP=m
> +CONFIG_SDM_MMCC_660=m
> +CONFIG_SDM_GPUCC_660=y
> CONFIG_SDM_CAMCC_845=m
> CONFIG_SDM_GPUCC_845=y
> CONFIG_SDM_VIDEOCC_845=y
> --
> 2.42.0
>
Reviewed-by: Martin Botka <martin.botka@somainline.org>
Cheers,
Martin
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] arm64: defconfig: Enable SDM660 Clock Controllers
2023-11-15 20:53 [PATCH v2 1/1] arm64: defconfig: Enable SDM660 Clock Controllers Petr Vorel
2023-11-15 21:40 ` Martin Botka
@ 2023-12-07 16:30 ` Bjorn Andersson
2023-12-07 18:54 ` Dmitry Baryshkov
1 sibling, 1 reply; 8+ messages in thread
From: Bjorn Andersson @ 2023-12-07 16:30 UTC (permalink / raw)
To: Petr Vorel
Cc: linux-arm-msm, Petr Vorel, Martin Botka,
AngeloGioacchino Del Regno, Konrad Dybcio, Aboothahir U
On Wed, Nov 15, 2023 at 09:53:18PM +0100, Petr Vorel wrote:
> From: Petr Vorel <petr.vorel@gmail.com>
>
> Enable support for the multimedia clock controller on SDM660 devices
> and graphics clock controller on SDM630/636/660 devices.
>
> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> ---
> Changes v1->v2:
> * added commit message (not just the subject)
>
> NOTE motivation for this is that some not yet mainlined DTS already use
> both:
>
> https://github.com/sdm660-mainline/linux/blob/sdm660-next-stable/arch/arm64/boot/dts/qcom/sdm636-asus-x00td.dts
>
> Kind regards,
> Petr
>
> arch/arm64/configs/defconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index acba803835b9..10a098aa8b1b 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -1235,6 +1235,8 @@ CONFIG_SC_GCC_8180X=y
> CONFIG_SC_GCC_8280XP=y
> CONFIG_SC_GPUCC_8280XP=m
> CONFIG_SC_LPASSCC_8280XP=m
> +CONFIG_SDM_MMCC_660=m
> +CONFIG_SDM_GPUCC_660=y
I'd expect the GPU clock controller to be a module, can you please
clarify why it needs to be builtin?
Regards,
Bjorn
> CONFIG_SDM_CAMCC_845=m
> CONFIG_SDM_GPUCC_845=y
> CONFIG_SDM_VIDEOCC_845=y
> --
> 2.42.0
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] arm64: defconfig: Enable SDM660 Clock Controllers
2023-12-07 16:30 ` Bjorn Andersson
@ 2023-12-07 18:54 ` Dmitry Baryshkov
2023-12-07 19:26 ` Konrad Dybcio
2023-12-09 3:08 ` Bjorn Andersson
0 siblings, 2 replies; 8+ messages in thread
From: Dmitry Baryshkov @ 2023-12-07 18:54 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Petr Vorel, linux-arm-msm, Petr Vorel, Martin Botka,
AngeloGioacchino Del Regno, Konrad Dybcio, Aboothahir U
On Thu, 7 Dec 2023 at 18:27, Bjorn Andersson <andersson@kernel.org> wrote:
>
> On Wed, Nov 15, 2023 at 09:53:18PM +0100, Petr Vorel wrote:
> > From: Petr Vorel <petr.vorel@gmail.com>
> >
> > Enable support for the multimedia clock controller on SDM660 devices
> > and graphics clock controller on SDM630/636/660 devices.
> >
> > Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> > ---
> > Changes v1->v2:
> > * added commit message (not just the subject)
> >
> > NOTE motivation for this is that some not yet mainlined DTS already use
> > both:
> >
> > https://github.com/sdm660-mainline/linux/blob/sdm660-next-stable/arch/arm64/boot/dts/qcom/sdm636-asus-x00td.dts
> >
> > Kind regards,
> > Petr
> >
> > arch/arm64/configs/defconfig | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> > index acba803835b9..10a098aa8b1b 100644
> > --- a/arch/arm64/configs/defconfig
> > +++ b/arch/arm64/configs/defconfig
> > @@ -1235,6 +1235,8 @@ CONFIG_SC_GCC_8180X=y
> > CONFIG_SC_GCC_8280XP=y
> > CONFIG_SC_GPUCC_8280XP=m
> > CONFIG_SC_LPASSCC_8280XP=m
> > +CONFIG_SDM_MMCC_660=m
> > +CONFIG_SDM_GPUCC_660=y
>
> I'd expect the GPU clock controller to be a module, can you please
> clarify why it needs to be builtin?
To allow the display to be enabled early enough?
>
> Regards,
> Bjorn
>
> > CONFIG_SDM_CAMCC_845=m
> > CONFIG_SDM_GPUCC_845=y
> > CONFIG_SDM_VIDEOCC_845=y
> > --
> > 2.42.0
> >
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] arm64: defconfig: Enable SDM660 Clock Controllers
2023-12-07 18:54 ` Dmitry Baryshkov
@ 2023-12-07 19:26 ` Konrad Dybcio
2023-12-07 20:50 ` Dmitry Baryshkov
2023-12-09 3:08 ` Bjorn Andersson
1 sibling, 1 reply; 8+ messages in thread
From: Konrad Dybcio @ 2023-12-07 19:26 UTC (permalink / raw)
To: Dmitry Baryshkov, Bjorn Andersson
Cc: Petr Vorel, linux-arm-msm, Petr Vorel, Martin Botka,
AngeloGioacchino Del Regno, Aboothahir U
On 12/7/23 19:54, Dmitry Baryshkov wrote:
> On Thu, 7 Dec 2023 at 18:27, Bjorn Andersson <andersson@kernel.org> wrote:
>>
>> On Wed, Nov 15, 2023 at 09:53:18PM +0100, Petr Vorel wrote:
>>> From: Petr Vorel <petr.vorel@gmail.com>
>>>
>>> Enable support for the multimedia clock controller on SDM660 devices
>>> and graphics clock controller on SDM630/636/660 devices.
>>>
>>> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
>>> ---
>>> Changes v1->v2:
>>> * added commit message (not just the subject)
>>>
>>> NOTE motivation for this is that some not yet mainlined DTS already use
>>> both:
>>>
>>> https://github.com/sdm660-mainline/linux/blob/sdm660-next-stable/arch/arm64/boot/dts/qcom/sdm636-asus-x00td.dts
>>>
>>> Kind regards,
>>> Petr
>>>
>>> arch/arm64/configs/defconfig | 2 ++
>>> 1 file changed, 2 insertions(+)
>>>
>>> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
>>> index acba803835b9..10a098aa8b1b 100644
>>> --- a/arch/arm64/configs/defconfig
>>> +++ b/arch/arm64/configs/defconfig
>>> @@ -1235,6 +1235,8 @@ CONFIG_SC_GCC_8180X=y
>>> CONFIG_SC_GCC_8280XP=y
>>> CONFIG_SC_GPUCC_8280XP=m
>>> CONFIG_SC_LPASSCC_8280XP=m
>>> +CONFIG_SDM_MMCC_660=m
>>> +CONFIG_SDM_GPUCC_660=y
>>
>> I'd expect the GPU clock controller to be a module, can you please
>> clarify why it needs to be builtin?
>
> To allow the display to be enabled early enough?
That sounds like a terrible bug in drm/msm.. Display should
be wholly separate from Adreno.
Konrad
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] arm64: defconfig: Enable SDM660 Clock Controllers
2023-12-07 19:26 ` Konrad Dybcio
@ 2023-12-07 20:50 ` Dmitry Baryshkov
2023-12-07 21:48 ` Petr Vorel
0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Baryshkov @ 2023-12-07 20:50 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Bjorn Andersson, Petr Vorel, linux-arm-msm, Petr Vorel,
Martin Botka, AngeloGioacchino Del Regno, Aboothahir U
On Thu, 7 Dec 2023 at 21:26, Konrad Dybcio <konrad.dybcio@linaro.org> wrote:
>
>
>
> On 12/7/23 19:54, Dmitry Baryshkov wrote:
> > On Thu, 7 Dec 2023 at 18:27, Bjorn Andersson <andersson@kernel.org> wrote:
> >>
> >> On Wed, Nov 15, 2023 at 09:53:18PM +0100, Petr Vorel wrote:
> >>> From: Petr Vorel <petr.vorel@gmail.com>
> >>>
> >>> Enable support for the multimedia clock controller on SDM660 devices
> >>> and graphics clock controller on SDM630/636/660 devices.
> >>>
> >>> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> >>> ---
> >>> Changes v1->v2:
> >>> * added commit message (not just the subject)
> >>>
> >>> NOTE motivation for this is that some not yet mainlined DTS already use
> >>> both:
> >>>
> >>> https://github.com/sdm660-mainline/linux/blob/sdm660-next-stable/arch/arm64/boot/dts/qcom/sdm636-asus-x00td.dts
> >>>
> >>> Kind regards,
> >>> Petr
> >>>
> >>> arch/arm64/configs/defconfig | 2 ++
> >>> 1 file changed, 2 insertions(+)
> >>>
> >>> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> >>> index acba803835b9..10a098aa8b1b 100644
> >>> --- a/arch/arm64/configs/defconfig
> >>> +++ b/arch/arm64/configs/defconfig
> >>> @@ -1235,6 +1235,8 @@ CONFIG_SC_GCC_8180X=y
> >>> CONFIG_SC_GCC_8280XP=y
> >>> CONFIG_SC_GPUCC_8280XP=m
> >>> CONFIG_SC_LPASSCC_8280XP=m
> >>> +CONFIG_SDM_MMCC_660=m
> >>> +CONFIG_SDM_GPUCC_660=y
> >>
> >> I'd expect the GPU clock controller to be a module, can you please
> >> clarify why it needs to be builtin?
> >
> > To allow the display to be enabled early enough?
> That sounds like a terrible bug in drm/msm.. Display should
> be wholly separate from Adreno.
Let me quote Rob's email ([1])
Userspace does have better support for split display/gpu these days
than it did when drm/msm was first merged. It _might_ just work if
one device only advertised DRIVER_RENDER and the other
MODESET/ATOMIC.. but I'd be a bit concerned about breaking things. I
guess you could try some sort of kconfig knob to have two "msm"
devices and see what breaks, but I'm a bit skeptical that we could
make this the default anytime soon.
[1] https://lore.kernel.org/dri-devel/CAF6AEGs89FRmFsENLkP-Dg1ZJN2LzCfxY2-+do9jH9b8L-XZxg@mail.gmail.com/
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] arm64: defconfig: Enable SDM660 Clock Controllers
2023-12-07 20:50 ` Dmitry Baryshkov
@ 2023-12-07 21:48 ` Petr Vorel
0 siblings, 0 replies; 8+ messages in thread
From: Petr Vorel @ 2023-12-07 21:48 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Konrad Dybcio, Bjorn Andersson, linux-arm-msm, Petr Vorel,
Martin Botka, AngeloGioacchino Del Regno, Aboothahir U,
Alexey Minnekhanov
Hi all,
[ Cc Alexey Minnekhanov ]
> On Thu, 7 Dec 2023 at 21:26, Konrad Dybcio <konrad.dybcio@linaro.org> wrote:
> > On 12/7/23 19:54, Dmitry Baryshkov wrote:
> > > On Thu, 7 Dec 2023 at 18:27, Bjorn Andersson <andersson@kernel.org> wrote:
> > >> On Wed, Nov 15, 2023 at 09:53:18PM +0100, Petr Vorel wrote:
> > >>> From: Petr Vorel <petr.vorel@gmail.com>
> > >>> Enable support for the multimedia clock controller on SDM660 devices
> > >>> and graphics clock controller on SDM630/636/660 devices.
> > >>> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> > >>> ---
> > >>> Changes v1->v2:
> > >>> * added commit message (not just the subject)
> > >>> NOTE motivation for this is that some not yet mainlined DTS already use
> > >>> both:
> > >>> https://github.com/sdm660-mainline/linux/blob/sdm660-next-stable/arch/arm64/boot/dts/qcom/sdm636-asus-x00td.dts
> > >>> Kind regards,
> > >>> Petr
> > >>> arch/arm64/configs/defconfig | 2 ++
> > >>> 1 file changed, 2 insertions(+)
> > >>> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> > >>> index acba803835b9..10a098aa8b1b 100644
> > >>> --- a/arch/arm64/configs/defconfig
> > >>> +++ b/arch/arm64/configs/defconfig
> > >>> @@ -1235,6 +1235,8 @@ CONFIG_SC_GCC_8180X=y
> > >>> CONFIG_SC_GCC_8280XP=y
> > >>> CONFIG_SC_GPUCC_8280XP=m
> > >>> CONFIG_SC_LPASSCC_8280XP=m
> > >>> +CONFIG_SDM_MMCC_660=m
> > >>> +CONFIG_SDM_GPUCC_660=y
> > >> I'd expect the GPU clock controller to be a module, can you please
> > >> clarify why it needs to be builtin?
> > > To allow the display to be enabled early enough?
Yes, I feared that it would not work when it's a module.
Also, we already have CONFIG_SDM_GPUCC_845=y.
I suppose I'm wrong, but I don't have any sdm660 device to test that.
BTW people who are using this use both as builtin (CONFIG_SDM_MMCC_660) [2], but
maybe it's just to help testing (boot the kernel and don't bother with modules).
@Alexey, you added sdm660_defconfig [2], do you have sdm660 based device to test
if both options work well when compiled as modules?
> > That sounds like a terrible bug in drm/msm.. Display should
> > be wholly separate from Adreno.
> Let me quote Rob's email ([1])
> Userspace does have better support for split display/gpu these days
> than it did when drm/msm was first merged. It _might_ just work if
> one device only advertised DRIVER_RENDER and the other
> MODESET/ATOMIC.. but I'd be a bit concerned about breaking things. I
> guess you could try some sort of kconfig knob to have two "msm"
> devices and see what breaks, but I'm a bit skeptical that we could
> make this the default anytime soon.
Thanks for pointing out this.
Kind regards,
Petr
> [1] https://lore.kernel.org/dri-devel/CAF6AEGs89FRmFsENLkP-Dg1ZJN2LzCfxY2-+do9jH9b8L-XZxg@mail.gmail.com/
[2] https://github.com/sdm660-mainline/linux/blob/sdm660-next-stable/arch/arm64/configs/sdm660_defconfig#L504-L505
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/1] arm64: defconfig: Enable SDM660 Clock Controllers
2023-12-07 18:54 ` Dmitry Baryshkov
2023-12-07 19:26 ` Konrad Dybcio
@ 2023-12-09 3:08 ` Bjorn Andersson
1 sibling, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2023-12-09 3:08 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Petr Vorel, linux-arm-msm, Petr Vorel, Martin Botka,
AngeloGioacchino Del Regno, Konrad Dybcio, Aboothahir U
On Thu, Dec 07, 2023 at 08:54:32PM +0200, Dmitry Baryshkov wrote:
> On Thu, 7 Dec 2023 at 18:27, Bjorn Andersson <andersson@kernel.org> wrote:
> >
> > On Wed, Nov 15, 2023 at 09:53:18PM +0100, Petr Vorel wrote:
> > > From: Petr Vorel <petr.vorel@gmail.com>
> > >
> > > Enable support for the multimedia clock controller on SDM660 devices
> > > and graphics clock controller on SDM630/636/660 devices.
> > >
> > > Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> > > ---
> > > Changes v1->v2:
> > > * added commit message (not just the subject)
> > >
> > > NOTE motivation for this is that some not yet mainlined DTS already use
> > > both:
> > >
> > > https://github.com/sdm660-mainline/linux/blob/sdm660-next-stable/arch/arm64/boot/dts/qcom/sdm636-asus-x00td.dts
> > >
> > > Kind regards,
> > > Petr
> > >
> > > arch/arm64/configs/defconfig | 2 ++
> > > 1 file changed, 2 insertions(+)
> > >
> > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> > > index acba803835b9..10a098aa8b1b 100644
> > > --- a/arch/arm64/configs/defconfig
> > > +++ b/arch/arm64/configs/defconfig
> > > @@ -1235,6 +1235,8 @@ CONFIG_SC_GCC_8180X=y
> > > CONFIG_SC_GCC_8280XP=y
> > > CONFIG_SC_GPUCC_8280XP=m
> > > CONFIG_SC_LPASSCC_8280XP=m
> > > +CONFIG_SDM_MMCC_660=m
> > > +CONFIG_SDM_GPUCC_660=y
> >
> > I'd expect the GPU clock controller to be a module, can you please
> > clarify why it needs to be builtin?
>
> To allow the display to be enabled early enough?
>
If that's your goal, then it might be less optimal to have MMCC as a
module...
We should keep drivers essential for reaching the ramdisk as builtin
(which pretty much means the stuff necessary to establish /dev/console),
and then the rest as modules.
There are several here which are =y because it used to be that probe
deferral on power-domains didn't work. We should drop those to =m as
well...
Thanks,
Bjorn
> >
> > Regards,
> > Bjorn
> >
> > > CONFIG_SDM_CAMCC_845=m
> > > CONFIG_SDM_GPUCC_845=y
> > > CONFIG_SDM_VIDEOCC_845=y
> > > --
> > > 2.42.0
> > >
> >
>
>
> --
> With best wishes
> Dmitry
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-12-09 3:04 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-15 20:53 [PATCH v2 1/1] arm64: defconfig: Enable SDM660 Clock Controllers Petr Vorel
2023-11-15 21:40 ` Martin Botka
2023-12-07 16:30 ` Bjorn Andersson
2023-12-07 18:54 ` Dmitry Baryshkov
2023-12-07 19:26 ` Konrad Dybcio
2023-12-07 20:50 ` Dmitry Baryshkov
2023-12-07 21:48 ` Petr Vorel
2023-12-09 3:08 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).