* [PATCH] soc: qcom: pd_mapper: fix ADSP PD maps
@ 2024-09-18 13:02 Dmitry Baryshkov
2024-09-20 8:21 ` Johan Hovold
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Baryshkov @ 2024-09-18 13:02 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Stephan Gerhold, Johan Hovold, linux-arm-msm, linux-kernel, stable
On X1E8 devices root ADSP domain should have tms/pdr_enabled registered.
Change the PDM domain data that is used for X1E80100 ADSP.
Fixes: bd6db1f1486e ("soc: qcom: pd_mapper: Add X1E80100")
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
drivers/soc/qcom/qcom_pd_mapper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/qcom/qcom_pd_mapper.c b/drivers/soc/qcom/qcom_pd_mapper.c
index c940f4da28ed..9d33a8c71778 100644
--- a/drivers/soc/qcom/qcom_pd_mapper.c
+++ b/drivers/soc/qcom/qcom_pd_mapper.c
@@ -519,7 +519,7 @@ static const struct qcom_pdm_domain_data *sm8550_domains[] = {
static const struct qcom_pdm_domain_data *x1e80100_domains[] = {
&adsp_audio_pd,
- &adsp_root_pd,
+ &adsp_root_pd_pdr,
&adsp_charger_pd,
&adsp_sensor_pd,
&cdsp_root_pd,
---
base-commit: 32ffa5373540a8d1c06619f52d019c6cdc948bb4
change-id: 20240918-x1e-fix-pdm-pdr-b7c4d978aaf3
Best regards,
--
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] soc: qcom: pd_mapper: fix ADSP PD maps
2024-09-18 13:02 [PATCH] soc: qcom: pd_mapper: fix ADSP PD maps Dmitry Baryshkov
@ 2024-09-20 8:21 ` Johan Hovold
2024-09-20 8:49 ` Dmitry Baryshkov
0 siblings, 1 reply; 7+ messages in thread
From: Johan Hovold @ 2024-09-20 8:21 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Bjorn Andersson, Konrad Dybcio, Stephan Gerhold, linux-arm-msm,
linux-kernel, stable
On Wed, Sep 18, 2024 at 04:02:39PM +0300, Dmitry Baryshkov wrote:
> On X1E8 devices root ADSP domain should have tms/pdr_enabled registered.
> Change the PDM domain data that is used for X1E80100 ADSP.
Please expand the commit message so that it explains why this is
needed and not just describes what the patch does.
What is the expected impact of this and is there any chance that this is
related to some of the in-kernel pd-mapper regression I've reported
(e.g. audio not being registered and failing with a PDR error)?
https://lore.kernel.org/all/ZthVTC8dt1kSdjMb@hovoldconsulting.com/
> Fixes: bd6db1f1486e ("soc: qcom: pd_mapper: Add X1E80100")
> Cc: stable@vger.kernel.org
Since the offending commit has not reached mainline yet, there's no need
for a stable tag.
Johan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] soc: qcom: pd_mapper: fix ADSP PD maps
2024-09-20 8:21 ` Johan Hovold
@ 2024-09-20 8:49 ` Dmitry Baryshkov
2024-09-20 9:02 ` Johan Hovold
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Baryshkov @ 2024-09-20 8:49 UTC (permalink / raw)
To: Johan Hovold
Cc: Bjorn Andersson, Konrad Dybcio, Stephan Gerhold, linux-arm-msm,
linux-kernel, stable
On Fri, Sep 20, 2024 at 10:21:03AM GMT, Johan Hovold wrote:
> On Wed, Sep 18, 2024 at 04:02:39PM +0300, Dmitry Baryshkov wrote:
> > On X1E8 devices root ADSP domain should have tms/pdr_enabled registered.
> > Change the PDM domain data that is used for X1E80100 ADSP.
>
> Please expand the commit message so that it explains why this is
> needed and not just describes what the patch does.
Unfortunately in this case I have no idea. It marks the domain as
restartable (?), this is what json files for CRD and T14s do. Maybe
Chris can comment more.
> What is the expected impact of this and is there any chance that this is
> related to some of the in-kernel pd-mapper regression I've reported
> (e.g. audio not being registered and failing with a PDR error)?
>
> https://lore.kernel.org/all/ZthVTC8dt1kSdjMb@hovoldconsulting.com/
Still debugging this, sidetracked by OSS / LPC.
>
> > Fixes: bd6db1f1486e ("soc: qcom: pd_mapper: Add X1E80100")
> > Cc: stable@vger.kernel.org
>
> Since the offending commit has not reached mainline yet, there's no need
> for a stable tag.
Ack, nice.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] soc: qcom: pd_mapper: fix ADSP PD maps
2024-09-20 8:49 ` Dmitry Baryshkov
@ 2024-09-20 9:02 ` Johan Hovold
2024-09-20 14:00 ` Chris Lew
0 siblings, 1 reply; 7+ messages in thread
From: Johan Hovold @ 2024-09-20 9:02 UTC (permalink / raw)
To: Dmitry Baryshkov, Chris Lew
Cc: Bjorn Andersson, Konrad Dybcio, Stephan Gerhold, linux-arm-msm,
linux-kernel, stable
On Fri, Sep 20, 2024 at 11:49:46AM +0300, Dmitry Baryshkov wrote:
> On Fri, Sep 20, 2024 at 10:21:03AM GMT, Johan Hovold wrote:
> > On Wed, Sep 18, 2024 at 04:02:39PM +0300, Dmitry Baryshkov wrote:
> > > On X1E8 devices root ADSP domain should have tms/pdr_enabled registered.
> > > Change the PDM domain data that is used for X1E80100 ADSP.
> >
> > Please expand the commit message so that it explains why this is
> > needed and not just describes what the patch does.
>
> Unfortunately in this case I have no idea. It marks the domain as
> restartable (?), this is what json files for CRD and T14s do. Maybe
> Chris can comment more.
Chris, could you help sort out if and why this change is needed?
https://lore.kernel.org/all/20240918-x1e-fix-pdm-pdr-v1-1-cefc79bb33d1@linaro.org/
> > What is the expected impact of this and is there any chance that this is
> > related to some of the in-kernel pd-mapper regression I've reported
> > (e.g. audio not being registered and failing with a PDR error)?
> >
> > https://lore.kernel.org/all/ZthVTC8dt1kSdjMb@hovoldconsulting.com/
>
> Still debugging this, sidetracked by OSS / LPC.
Johan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] soc: qcom: pd_mapper: fix ADSP PD maps
2024-09-20 9:02 ` Johan Hovold
@ 2024-09-20 14:00 ` Chris Lew
2024-09-20 14:07 ` Dmitry Baryshkov
0 siblings, 1 reply; 7+ messages in thread
From: Chris Lew @ 2024-09-20 14:00 UTC (permalink / raw)
To: Johan Hovold, Dmitry Baryshkov
Cc: Bjorn Andersson, Konrad Dybcio, Stephan Gerhold, linux-arm-msm,
linux-kernel, stable
On 9/20/2024 2:02 AM, Johan Hovold wrote:
> On Fri, Sep 20, 2024 at 11:49:46AM +0300, Dmitry Baryshkov wrote:
>> On Fri, Sep 20, 2024 at 10:21:03AM GMT, Johan Hovold wrote:
>>> On Wed, Sep 18, 2024 at 04:02:39PM +0300, Dmitry Baryshkov wrote:
>>>> On X1E8 devices root ADSP domain should have tms/pdr_enabled registered.
>>>> Change the PDM domain data that is used for X1E80100 ADSP.
>>>
>>> Please expand the commit message so that it explains why this is
>>> needed and not just describes what the patch does.
>>
>> Unfortunately in this case I have no idea. It marks the domain as
>> restartable (?), this is what json files for CRD and T14s do. Maybe
>> Chris can comment more.
>
> Chris, could you help sort out if and why this change is needed?
>
> https://lore.kernel.org/all/20240918-x1e-fix-pdm-pdr-v1-1-cefc79bb33d1@linaro.org/
>
I don't think this change would help with the issue reported by Johan.
From a quick glance, I couldn't find where exactly the restartable
attribute is used, but this type of change would only matter when the
ChargerPD is started or restarted.
The PMIC_GLINK channel probing in rpmsg is dependent on ChargerPD
starting, so we know ChargerPD can start with or without this change.
I can give this change a try next week to help give a better analysis.
>>> What is the expected impact of this and is there any chance that this is
>>> related to some of the in-kernel pd-mapper regression I've reported
>>> (e.g. audio not being registered and failing with a PDR error)?
>>>
>>> https://lore.kernel.org/all/ZthVTC8dt1kSdjMb@hovoldconsulting.com/
>>
>> Still debugging this, sidetracked by OSS / LPC.
>
> Johan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] soc: qcom: pd_mapper: fix ADSP PD maps
2024-09-20 14:00 ` Chris Lew
@ 2024-09-20 14:07 ` Dmitry Baryshkov
2024-09-24 16:40 ` Bjorn Andersson
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Baryshkov @ 2024-09-20 14:07 UTC (permalink / raw)
To: Chris Lew
Cc: Johan Hovold, Bjorn Andersson, Konrad Dybcio, Stephan Gerhold,
linux-arm-msm, linux-kernel, stable
On Fri, Sep 20, 2024 at 07:00:11AM GMT, Chris Lew wrote:
>
>
> On 9/20/2024 2:02 AM, Johan Hovold wrote:
> > On Fri, Sep 20, 2024 at 11:49:46AM +0300, Dmitry Baryshkov wrote:
> > > On Fri, Sep 20, 2024 at 10:21:03AM GMT, Johan Hovold wrote:
> > > > On Wed, Sep 18, 2024 at 04:02:39PM +0300, Dmitry Baryshkov wrote:
> > > > > On X1E8 devices root ADSP domain should have tms/pdr_enabled registered.
> > > > > Change the PDM domain data that is used for X1E80100 ADSP.
> > > >
> > > > Please expand the commit message so that it explains why this is
> > > > needed and not just describes what the patch does.
> > >
> > > Unfortunately in this case I have no idea. It marks the domain as
> > > restartable (?), this is what json files for CRD and T14s do. Maybe
> > > Chris can comment more.
> >
> > Chris, could you help sort out if and why this change is needed?
> >
> > https://lore.kernel.org/all/20240918-x1e-fix-pdm-pdr-v1-1-cefc79bb33d1@linaro.org/
> >
>
> I don't think this change would help with the issue reported by Johan. From
> a quick glance, I couldn't find where exactly the restartable attribute is
> used, but this type of change would only matter when the ChargerPD is
> started or restarted.
This raises a question: should we care at all about the pdr_enabled? Is
it fine to drop it fromm all PD maps?
>
> The PMIC_GLINK channel probing in rpmsg is dependent on ChargerPD starting,
> so we know ChargerPD can start with or without this change.
>
> I can give this change a try next week to help give a better analysis.
>
> > > > What is the expected impact of this and is there any chance that this is
> > > > related to some of the in-kernel pd-mapper regression I've reported
> > > > (e.g. audio not being registered and failing with a PDR error)?
> > > >
> > > > https://lore.kernel.org/all/ZthVTC8dt1kSdjMb@hovoldconsulting.com/
> > >
> > > Still debugging this, sidetracked by OSS / LPC.
> >
> > Johan
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] soc: qcom: pd_mapper: fix ADSP PD maps
2024-09-20 14:07 ` Dmitry Baryshkov
@ 2024-09-24 16:40 ` Bjorn Andersson
0 siblings, 0 replies; 7+ messages in thread
From: Bjorn Andersson @ 2024-09-24 16:40 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Chris Lew, Johan Hovold, Bjorn Andersson, Konrad Dybcio,
Stephan Gerhold, linux-arm-msm, linux-kernel, stable
On Fri, Sep 20, 2024 at 05:07:13PM +0300, Dmitry Baryshkov wrote:
> On Fri, Sep 20, 2024 at 07:00:11AM GMT, Chris Lew wrote:
> >
> >
> > On 9/20/2024 2:02 AM, Johan Hovold wrote:
> > > On Fri, Sep 20, 2024 at 11:49:46AM +0300, Dmitry Baryshkov wrote:
> > > > On Fri, Sep 20, 2024 at 10:21:03AM GMT, Johan Hovold wrote:
> > > > > On Wed, Sep 18, 2024 at 04:02:39PM +0300, Dmitry Baryshkov wrote:
> > > > > > On X1E8 devices root ADSP domain should have tms/pdr_enabled registered.
> > > > > > Change the PDM domain data that is used for X1E80100 ADSP.
> > > > >
> > > > > Please expand the commit message so that it explains why this is
> > > > > needed and not just describes what the patch does.
> > > >
> > > > Unfortunately in this case I have no idea. It marks the domain as
> > > > restartable (?), this is what json files for CRD and T14s do. Maybe
> > > > Chris can comment more.
> > >
> > > Chris, could you help sort out if and why this change is needed?
> > >
> > > https://lore.kernel.org/all/20240918-x1e-fix-pdm-pdr-v1-1-cefc79bb33d1@linaro.org/
> > >
> >
> > I don't think this change would help with the issue reported by Johan. From
> > a quick glance, I couldn't find where exactly the restartable attribute is
> > used, but this type of change would only matter when the ChargerPD is
> > started or restarted.
>
> This raises a question: should we care at all about the pdr_enabled? Is
> it fine to drop it fromm all PD maps?
>
There's definitely benefits to pdr_enabled. I'd expect you could have
examples such as audio firmware restarting without USB Type-C being
reset.
So, the appropriate path forward would be to figure out how we can
properly test the various levels of restarts in a continuous fashion and
make sure it's enabled where it can be...
Regards,
Bjorn
> >
> > The PMIC_GLINK channel probing in rpmsg is dependent on ChargerPD starting,
> > so we know ChargerPD can start with or without this change.
> >
> > I can give this change a try next week to help give a better analysis.
> >
> > > > > What is the expected impact of this and is there any chance that this is
> > > > > related to some of the in-kernel pd-mapper regression I've reported
> > > > > (e.g. audio not being registered and failing with a PDR error)?
> > > > >
> > > > > https://lore.kernel.org/all/ZthVTC8dt1kSdjMb@hovoldconsulting.com/
> > > >
> > > > Still debugging this, sidetracked by OSS / LPC.
> > >
> > > Johan
>
> --
> With best wishes
> Dmitry
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-09-24 16:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-18 13:02 [PATCH] soc: qcom: pd_mapper: fix ADSP PD maps Dmitry Baryshkov
2024-09-20 8:21 ` Johan Hovold
2024-09-20 8:49 ` Dmitry Baryshkov
2024-09-20 9:02 ` Johan Hovold
2024-09-20 14:00 ` Chris Lew
2024-09-20 14:07 ` Dmitry Baryshkov
2024-09-24 16:40 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome