soc: qcom: pd-mapper: Add support for SA8775P and QCS8300
Subsystems (2)
v3 cover soc: qcom: pd-mapper: Add support for SA8775P and QCS8300
Add support for the Qualcomm SA8775P and QCS8300 SoCs to the protection domain mapper. Add an entry to the kernel, to avoid the need for userspace to provide this service.
changes in [v3]:
- Added a separate protection domain from QCS8300 as suggested by Dmitry.
- Link to V2: https://lore.kernel.org/all/[email protected]/
changes in [v2]:
- Added missing GPDSP protection domain configuration as suggested by Dmitry.
- Link to V1: https://lore.kernel.org/all/[email protected]/
Mohammad Rafi Shaik (2):
soc: qcom: pd-mapper: Add support for SA8775P
soc: qcom: pd-mapper: Add support for QCS8300
drivers/soc/qcom/qcom_pd_mapper.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
base-commit: 9845cf73f7db6094c0d8419d6adb848028f4a921
Signature · 1 line
2.34.1
PATCH v3 1/2 soc: qcom: pd-mapper: Add support for SA8775P
Add support for the Qualcomm SA8775P SoC to the protection domain mapper. SA8775P share the same protection domain configuration as SC8280XP with an additional gpdsp domain, except for charger_pd.
Add an entry to the kernel, to avoid the need for userspace to provide this service.
--- drivers/soc/qcom/qcom_pd_mapper.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
drivers/soc/qcom/qcom_pd_mapper.c +22 -0
@@ -305,6 +305,18 @@ static const struct qcom_pdm_domain_data cdsp_root_pd = { .services = { NULL }, }; +static const struct qcom_pdm_domain_data gpdsp_root_pd = { + .domain ="msm/gpdsp/root_pd" , + .instance_id =192 , + .services = {NULL }, +}; + +static const struct qcom_pdm_domain_data gpdsp1_root_pd = { + .domain ="msm/gpdsp1/root_pd" , + .instance_id =241 , + .services = {NULL }, +}; +static const struct qcom_pdm_domain_data slpi_root_pd = { .domain ="msm/slpi/root_pd" , .instance_id = 90,
@@ -401,6 +413,15 @@ static const struct qcom_pdm_domain_data *qcs404_domains[] = { NULL, }; +static const struct qcom_pdm_domain_data *sa8775p_domains[] = { + &adsp_audio_pd, + &adsp_root_pd, + &cdsp_root_pd, + &gpdsp_root_pd, + &gpdsp1_root_pd, +NULL , +}; +static const struct qcom_pdm_domain_data *sc7180_domains[] = { &adsp_audio_pd, &adsp_root_pd_pdr,
@@ -572,6 +593,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = { { .compatible = "qcom,qcm2290", .data = qcm2290_domains, }, { .compatible = "qcom,qcm6490", .data = sc7280_domains, }, { .compatible = "qcom,qcs404", .data = qcs404_domains, }, + { .compatible = "qcom,sa8775p", .data = sa8775p_domains, }, { .compatible = "qcom,sc7180", .data = sc7180_domains, }, { .compatible = "qcom,sc7280", .data = sc7280_domains, }, { .compatible = "qcom,sc8180x", .data = sc8180x_domains, },
Signature · 1 line
2.34.1
Re: [PATCH v3 1/2] soc: qcom: pd-mapper: Add support for SA8775P
Quoted 37 lines · Mohammad Rafi Shaik
Add support for the Qualcomm SA8775P SoC to the protection domain mapper. SA8775P share the same protection domain configuration as SC8280XP with an additional gpdsp domain, except for
charger_pd.Add an entry to the kernel, to avoid the need for userspace to provide this service.
Signed-off-by Mohammad Rafi Shaik <[email protected]>--- drivers/soc/qcom/qcom_pd_mapper.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)drivers/soc/qcom/qcom_pd_mapper.c +12
-0@@ -305,6 +305,18 @@ static const struct qcom_pdm_domain_data cdsp_root_pd = { .services = { NULL }, }; +static const struct qcom_pdm_domain_data gpdsp_root_pd = { + .domain ="msm/gpdsp/root_pd" , + .instance_id =192 , + .services = {NULL }, +}; + +static const struct qcom_pdm_domain_data gpdsp1_root_pd = { + .domain ="msm/gpdsp1/root_pd" , + .instance_id =241 , + .services = {NULL }, +}; +static const struct qcom_pdm_domain_data slpi_root_pd = { .domain ="msm/slpi/root_pd" , .instance_id = 90,
drivers/soc/qcom/qcom_pd_mapper.c static const struct qcom_pdm_domain_data *qcs404_domains[] = { · line 419
Quoted 7 lines
drivers/soc/qcom/qcom_pd_mapper.c +4
-0@@ -401,6 +413,15 @@ static const struct qcom_pdm_domain_data *qcs404_domains[] = { NULL, }; +static const struct qcom_pdm_domain_data *sa8775p_domains[] = { + &adsp_audio_pd, + &adsp_root_pd, + &cdsp_root_pd,
Is there no separate PD for CDSP1? What is the difference between CDSP and CDSP1?
Quoted 19 lines
drivers/soc/qcom/qcom_pd_mapper.c +6
-0+ &gpdsp_root_pd, + &gpdsp1_root_pd, + NULL, +}; +static const struct qcom_pdm_domain_data *sc7180_domains[] = { &adsp_audio_pd, &adsp_root_pd_pdr,@@ -572,6 +593,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = { { .compatible = "qcom,qcm2290", .data = qcm2290_domains, }, { .compatible = "qcom,qcm6490", .data = sc7280_domains, }, { .compatible = "qcom,qcs404", .data = qcs404_domains, }, + { .compatible = "qcom,sa8775p", .data = sa8775p_domains, }, { .compatible = "qcom,sc7180", .data = sc7180_domains, }, { .compatible = "qcom,sc7280", .data = sc7280_domains, }, { .compatible = "qcom,sc8180x", .data = sc8180x_domains, },Signature · 1 line
2.34.1
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v3 1/2] soc: qcom: pd-mapper: Add support for SA8775P
Quoted 41 lines · Dmitry Baryshkov
Quoted 40 lines · Mohammad Rafi Shaik
Add support for the Qualcomm SA8775P SoC to the protection domain mapper. SA8775P share the same protection domain configuration as SC8280XP with an additional gpdsp domain, except for
charger_pd.Add an entry to the kernel, to avoid the need for userspace to provide this service.
Signed-off-by Mohammad Rafi Shaik <[email protected]>--- drivers/soc/qcom/qcom_pd_mapper.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)drivers/soc/qcom/qcom_pd_mapper.c +12
-0@@ -305,6 +305,18 @@ static const struct qcom_pdm_domain_data cdsp_root_pd = { .services = { NULL }, }; +static const struct qcom_pdm_domain_data gpdsp_root_pd = { + .domain ="msm/gpdsp/root_pd" , + .instance_id =192 , + .services = {NULL }, +}; + +static const struct qcom_pdm_domain_data gpdsp1_root_pd = { + .domain ="msm/gpdsp1/root_pd" , + .instance_id =241 , + .services = {NULL }, +}; +static const struct qcom_pdm_domain_data slpi_root_pd = { .domain ="msm/slpi/root_pd" , .instance_id = 90,@@ -401,6 +413,15 @@ static const struct qcom_pdm_domain_data *qcs404_domains[] = { NULL, };
Quoted 8 lines
drivers/soc/qcom/qcom_pd_mapper.c static const struct qcom_pdm_domain_data *qcs404_domains[] = { · line 419
Quoted 4 lines
drivers/soc/qcom/qcom_pd_mapper.c +4
-0+static const struct qcom_pdm_domain_data *sa8775p_domains[] = { + &adsp_audio_pd, + &adsp_root_pd, + &cdsp_root_pd,Is there no separate PD for CDSP1? What is the difference between CDSP and CDSP1?
Yes, there is no dedicated PD entry for CDSP1 in the linux‑firmware,
In the device tree, there is no functional change in CDSP, only the base address is different.
Thanks & Regards,
Rafi.
Quoted 20 lines
Quoted 19 lines
drivers/soc/qcom/qcom_pd_mapper.c +6
-0+ &gpdsp_root_pd, + &gpdsp1_root_pd, + NULL, +}; +static const struct qcom_pdm_domain_data *sc7180_domains[] = { &adsp_audio_pd, &adsp_root_pd_pdr,@@ -572,6 +593,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = { { .compatible = "qcom,qcm2290", .data = qcm2290_domains, }, { .compatible = "qcom,qcm6490", .data = sc7280_domains, }, { .compatible = "qcom,qcs404", .data = qcs404_domains, }, + { .compatible = "qcom,sa8775p", .data = sa8775p_domains, }, { .compatible = "qcom,sc7180", .data = sc7180_domains, }, { .compatible = "qcom,sc7280", .data = sc7280_domains, }, { .compatible = "qcom,sc8180x", .data = sc8180x_domains, },Signature · 1 line
2.34.1
Re: [PATCH v3 1/2] soc: qcom: pd-mapper: Add support for SA8775P
Quoted 51 lines · Mohammad Rafi Shaik
Quoted 38 lines · Dmitry Baryshkov
Quoted 37 lines · Mohammad Rafi Shaik
Add support for the Qualcomm SA8775P SoC to the protection domain mapper. SA8775P share the same protection domain configuration as SC8280XP with an additional gpdsp domain, except for
charger_pd.Add an entry to the kernel, to avoid the need for userspace to provide this service.
Signed-off-by Mohammad Rafi Shaik <[email protected]>--- drivers/soc/qcom/qcom_pd_mapper.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)drivers/soc/qcom/qcom_pd_mapper.c +12
-0@@ -305,6 +305,18 @@ static const struct qcom_pdm_domain_data cdsp_root_pd = { .services = { NULL }, }; +static const struct qcom_pdm_domain_data gpdsp_root_pd = { + .domain ="msm/gpdsp/root_pd" , + .instance_id =192 , + .services = {NULL }, +}; + +static const struct qcom_pdm_domain_data gpdsp1_root_pd = { + .domain ="msm/gpdsp1/root_pd" , + .instance_id =241 , + .services = {NULL }, +}; +static const struct qcom_pdm_domain_data slpi_root_pd = { .domain ="msm/slpi/root_pd" , .instance_id = 90,@@ -401,6 +413,15 @@ static const struct qcom_pdm_domain_data *qcs404_domains[] = { NULL,Quoted 9 lines
drivers/soc/qcom/qcom_pd_mapper.c static const struct qcom_pdm_domain_data *qcs404_domains[] = { · line 419
Quoted 5 lines
drivers/soc/qcom/qcom_pd_mapper.c +4
-0}; +static const struct qcom_pdm_domain_data *sa8775p_domains[] = { + &adsp_audio_pd, + &adsp_root_pd, + &cdsp_root_pd,Is there no separate PD for CDSP1? What is the difference between CDSP and CDSP1?
Quoted 4 lines
Yes, there is no dedicated PD entry for CDSP1 in the linux‑firmware,
In the device tree, there is no functional change in CDSP, only the base address is different.
So, you can ask this question internally.
Quoted 25 lines
Thanks & Regards,
Rafi.Quoted 20 lines
Quoted 19 lines
drivers/soc/qcom/qcom_pd_mapper.c +6
-0+ &gpdsp_root_pd, + &gpdsp1_root_pd, + NULL, +}; +static const struct qcom_pdm_domain_data *sc7180_domains[] = { &adsp_audio_pd, &adsp_root_pd_pdr,@@ -572,6 +593,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = { { .compatible = "qcom,qcm2290", .data = qcm2290_domains, }, { .compatible = "qcom,qcm6490", .data = sc7280_domains, }, { .compatible = "qcom,qcs404", .data = qcs404_domains, }, + { .compatible = "qcom,sa8775p", .data = sa8775p_domains, }, { .compatible = "qcom,sc7180", .data = sc7180_domains, }, { .compatible = "qcom,sc7280", .data = sc7280_domains, }, { .compatible = "qcom,sc8180x", .data = sc8180x_domains, },Signature · 1 line
2.34.1
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v3 1/2] soc: qcom: pd-mapper: Add support for SA8775P
Quoted 52 lines · Dmitry Baryshkov
Quoted 51 lines · Mohammad Rafi Shaik
Quoted 47 lines · Dmitry Baryshkov
Quoted 36 lines · Mohammad Rafi Shaik
Add support for the Qualcomm SA8775P SoC to the protection domain mapper. SA8775P share the same protection domain configuration as SC8280XP with an additional gpdsp domain, except for
charger_pd.Add an entry to the kernel, to avoid the need for userspace to provide this service.
Signed-off-by Mohammad Rafi Shaik <[email protected]>--- drivers/soc/qcom/qcom_pd_mapper.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)drivers/soc/qcom/qcom_pd_mapper.c +12
-0@@ -305,6 +305,18 @@ static const struct qcom_pdm_domain_data cdsp_root_pd = { .services = { NULL }, }; +static const struct qcom_pdm_domain_data gpdsp_root_pd = { + .domain ="msm/gpdsp/root_pd" , + .instance_id =192 , + .services = {NULL }, +}; + +static const struct qcom_pdm_domain_data gpdsp1_root_pd = { + .domain ="msm/gpdsp1/root_pd" , + .instance_id =241 , + .services = {NULL }, +}; +static const struct qcom_pdm_domain_data slpi_root_pd = { .domain ="msm/slpi/root_pd" , .instance_id = 90,drivers/soc/qcom/qcom_pd_mapper.c static const struct qcom_pdm_domain_data *qcs404_domains[] = { · line 418
Quoted 6 lines
drivers/soc/qcom/qcom_pd_mapper.c +4
-0@@ -401,6 +413,15 @@ static const struct qcom_pdm_domain_data *qcs404_domains[] = { NULL, }; +static const struct qcom_pdm_domain_data *sa8775p_domains[] = { + &adsp_audio_pd, + &adsp_root_pd, + &cdsp_root_pd,Is there no separate PD for CDSP1? What is the difference between CDSP and CDSP1?
Quoted 7 lines
Quoted 4 lines
Yes, there is no dedicated PD entry for CDSP1 in the linux‑firmware,
In the device tree, there is no functional change in CDSP, only the base address is different.
So, you can ask this question internally.
ACK,
Sure, will check and get back.
Thanks,
Rafi.
Quoted 26 lines
Quoted 25 lines
Thanks & Regards,
Rafi.Quoted 20 lines
Quoted 19 lines
drivers/soc/qcom/qcom_pd_mapper.c +6
-0+ &gpdsp_root_pd, + &gpdsp1_root_pd, + NULL, +}; +static const struct qcom_pdm_domain_data *sc7180_domains[] = { &adsp_audio_pd, &adsp_root_pd_pdr,@@ -572,6 +593,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = { { .compatible = "qcom,qcm2290", .data = qcm2290_domains, }, { .compatible = "qcom,qcm6490", .data = sc7280_domains, }, { .compatible = "qcom,qcs404", .data = qcs404_domains, }, + { .compatible = "qcom,sa8775p", .data = sa8775p_domains, }, { .compatible = "qcom,sc7180", .data = sc7180_domains, }, { .compatible = "qcom,sc7280", .data = sc7280_domains, }, { .compatible = "qcom,sc8180x", .data = sc8180x_domains, },Signature · 1 line
2.34.1
PATCH v3 2/2 soc: qcom: pd-mapper: Add support for QCS8300
In reply to Mohammad Rafi ShaikAdd support for the Qualcomm QCS8300 SoC to the protection domain mapper. QCS8300 share the same protection domain configuration as SC8280XP, except charger_pd.
Add an entry to the kernel, to avoid the need for userspace to provide this service.
--- drivers/soc/qcom/qcom_pd_mapper.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/soc/qcom/qcom_pd_mapper.c +8 -0
@@ -413,6 +413,13 @@ static const struct qcom_pdm_domain_data *qcs404_domains[] = { NULL, }; +static const struct qcom_pdm_domain_data *qcs8300_domains[] = { + &adsp_audio_pd, + &adsp_root_pd, + &cdsp_root_pd, +NULL , +}; +static const struct qcom_pdm_domain_data *sa8775p_domains[] = { &adsp_audio_pd, &adsp_root_pd,
@@ -593,6 +600,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = { { .compatible = "qcom,qcm2290", .data = qcm2290_domains, }, { .compatible = "qcom,qcm6490", .data = sc7280_domains, }, { .compatible = "qcom,qcs404", .data = qcs404_domains, }, + { .compatible = "qcom,qcs8300", .data = qcs8300_domains, }, { .compatible = "qcom,sa8775p", .data = sa8775p_domains, }, { .compatible = "qcom,sc7180", .data = sc7180_domains, }, { .compatible = "qcom,sc7280", .data = sc7280_domains, },
Signature · 1 line
2.34.1
Re: [PATCH v3 2/2] soc: qcom: pd-mapper: Add support for QCS8300
Quoted 17 lines · Mohammad Rafi Shaik
Add support for the Qualcomm QCS8300 SoC to the protection domain mapper. QCS8300 share the same protection domain configuration as SC8280XP, except
charger_pd.Add an entry to the kernel, to avoid the need for userspace to provide this service.
Signed-off-by Mohammad Rafi Shaik <[email protected]>--- drivers/soc/qcom/qcom_pd_mapper.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/soc/qcom/qcom_pd_mapper.c +0
-0
drivers/soc/qcom/qcom_pd_mapper.c static const struct qcom_pdm_domain_data *qcs404_domains[] = { · line 419
Quoted 7 lines
drivers/soc/qcom/qcom_pd_mapper.c +4
-0@@ -413,6 +413,13 @@ static const struct qcom_pdm_domain_data *qcs404_domains[] = { NULL, }; +static const struct qcom_pdm_domain_data *qcs8300_domains[] = { + &adsp_audio_pd, + &adsp_root_pd, + &cdsp_root_pd,
No PD for GPDSP?
Quoted 17 lines
drivers/soc/qcom/qcom_pd_mapper.c +4
-0+ NULL, +}; +static const struct qcom_pdm_domain_data *sa8775p_domains[] = { &adsp_audio_pd, &adsp_root_pd,@@ -593,6 +600,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = { { .compatible = "qcom,qcm2290", .data = qcm2290_domains, }, { .compatible = "qcom,qcm6490", .data = sc7280_domains, }, { .compatible = "qcom,qcs404", .data = qcs404_domains, }, + { .compatible = "qcom,qcs8300", .data = qcs8300_domains, }, { .compatible = "qcom,sa8775p", .data = sa8775p_domains, }, { .compatible = "qcom,sc7180", .data = sc7180_domains, }, { .compatible = "qcom,sc7280", .data = sc7280_domains, },Signature · 1 line
2.34.1
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v3 2/2] soc: qcom: pd-mapper: Add support for QCS8300
Quoted 21 lines · Dmitry Baryshkov
Quoted 20 lines · Mohammad Rafi Shaik
Add support for the Qualcomm QCS8300 SoC to the protection domain mapper. QCS8300 share the same protection domain configuration as SC8280XP, except
charger_pd.Add an entry to the kernel, to avoid the need for userspace to provide this service.
Signed-off-by Mohammad Rafi Shaik <[email protected]>--- drivers/soc/qcom/qcom_pd_mapper.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/soc/qcom/qcom_pd_mapper.c +0
-0@@ -413,6 +413,13 @@ static const struct qcom_pdm_domain_data *qcs404_domains[] = { NULL, };
Quoted 7 lines
drivers/soc/qcom/qcom_pd_mapper.c static const struct qcom_pdm_domain_data *qcs404_domains[] = { · line 419
Quoted 4 lines
drivers/soc/qcom/qcom_pd_mapper.c +4
-0+static const struct qcom_pdm_domain_data *qcs8300_domains[] = { + &adsp_audio_pd, + &adsp_root_pd, + &cdsp_root_pd,No PD for GPDSP?
yes, There is no PD available for GPDSP in the Monaco linux‑firmware.
Thanks & Regards,
Rafi.
Quoted 18 lines
Quoted 17 lines
drivers/soc/qcom/qcom_pd_mapper.c +4
-0+ NULL, +}; +static const struct qcom_pdm_domain_data *sa8775p_domains[] = { &adsp_audio_pd, &adsp_root_pd,@@ -593,6 +600,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = { { .compatible = "qcom,qcm2290", .data = qcm2290_domains, }, { .compatible = "qcom,qcm6490", .data = sc7280_domains, }, { .compatible = "qcom,qcs404", .data = qcs404_domains, }, + { .compatible = "qcom,qcs8300", .data = qcs8300_domains, }, { .compatible = "qcom,sa8775p", .data = sa8775p_domains, }, { .compatible = "qcom,sc7180", .data = sc7180_domains, }, { .compatible = "qcom,sc7280", .data = sc7280_domains, },Signature · 1 line
2.34.1
Re: [PATCH v3 2/2] soc: qcom: pd-mapper: Add support for QCS8300
Quoted 31 lines · Mohammad Rafi Shaik
Quoted 13 lines · Dmitry Baryshkov
Quoted 12 lines · Mohammad Rafi Shaik
Add support for the Qualcomm QCS8300 SoC to the protection domain mapper. QCS8300 share the same protection domain configuration as SC8280XP, except
charger_pd.Add an entry to the kernel, to avoid the need for userspace to provide this service.
Signed-off-by Mohammad Rafi Shaik <[email protected]>--- drivers/soc/qcom/qcom_pd_mapper.c | 8 ++++++++ 1 file changed, 8 insertions(+)Quoted 14 lines
drivers/soc/qcom/qcom_pd_mapper.c static const struct qcom_pdm_domain_data *qcs404_domains[] = { · line 418
Quoted 11 lines
drivers/soc/qcom/qcom_pd_mapper.c +4
-0@@ -413,6 +413,13 @@ static const struct qcom_pdm_domain_data *qcs404_domains[] = { NULL, }; +static const struct qcom_pdm_domain_data *qcs8300_domains[] = { + &adsp_audio_pd, + &adsp_root_pd, + &cdsp_root_pd,No PD for GPDSP?
Quoted 1 line
yes, There is no PD available for GPDSP in the Monaco linux‑firmware.
Why? What is the differece from GPDSP on Lemans?
Signature · 2 lines
With best wishes Dmitry