msm8937/msm8976/qcs404 icc patches
Subsystems (3)
v2 cover msm8937/msm8976/qcs404 icc patches
This series introduce new ICC drivers for some legacy socs while at it also updates a bit of qcs404 driver which seems to not receive much attention lately.
Please take in consideration i do not own any qcs404 board so i cannot test anything else than if it compiles.
Changes since v1
================
1. Reworded commit messages
2. Adjusted yamls.
3. Adjusted examples.
4. Added regmap include into qcs404 regmap commit.
5. Added coeffs to MSM8976 driver.
5. Added MSM8953 ab_coeff patch.
Adam Skladowski (8):
dt-bindings: interconnect: qcom: Add Qualcomm MSM8976 NoC
interconnect: qcom: Add MSM8976 interconnect provider driver
dt-bindings: interconnect: qcom: Add Qualcomm MSM8937 NoC
interconnect: qcom: Add MSM8937 interconnect provider driver
interconnect: qcom: qcs404: Mark AP-owned nodes as such
interconnect: qcom: qcs404: Add regmaps and more bus descriptions
dt-bindings: interconnect: qcom: msm8939: Fix example
interconnect: qcom: msm8953: Add ab_coeff
.../bindings/interconnect/qcom,msm8937.yaml | 63 + .../bindings/interconnect/qcom,msm8939.yaml | 13 +- .../bindings/interconnect/qcom,msm8976.yaml | 63 + drivers/interconnect/qcom/Kconfig | 18 + drivers/interconnect/qcom/Makefile | 4 + drivers/interconnect/qcom/msm8937.c | 1372 ++++++++++++++++ drivers/interconnect/qcom/msm8953.c | 2 + drivers/interconnect/qcom/msm8976.c | 1440 +++++++++++++++++ drivers/interconnect/qcom/qcs404.c | 127 +- .../dt-bindings/interconnect/qcom,msm8937.h | 93 ++ .../dt-bindings/interconnect/qcom,msm8976.h | 97 ++ 11 files changed, 3277 insertions(+), 15 deletions(-) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,msm8937.yaml create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml create mode 100644 drivers/interconnect/qcom/msm8937.c create mode 100644 drivers/interconnect/qcom/msm8976.c create mode 100644 include/dt-bindings/interconnect/qcom,msm8937.h create mode 100644 include/dt-bindings/interconnect/qcom,msm8976.h
Signature · 1 line
2.45.2
PATCH v2 1/8 dt-bindings: interconnect: qcom: Add Qualcomm MSM8976 NoC
Add bindings for Qualcomm MSM8976 Network-On-Chip interconnect devices.
--- .../bindings/interconnect/qcom,msm8976.yaml | 63 ++++++++++++ .../dt-bindings/interconnect/qcom,msm8976.h | 97 +++++++++++++++++++ 2 files changed, 160 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml create mode 100644 include/dt-bindings/interconnect/qcom,msm8976.h
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml new file +63 -0
@@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,msm8976.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm MSM8976 Network-On-Chip interconnect + +maintainers: + - Konrad Dybcio <[email protected]> + +description: | + The Qualcomm MSM8976 interconnect providers support adjusting the + bandwidth requirements between the various NoC fabrics. + + See also: + - dt-bindings/interconnect/qcom,msm8976.h + +properties: + compatible: + enum: + - qcom,msm8976-bimc + - qcom,msm8976-pcnoc + - qcom,msm8976-snoc + + reg: + maxItems: 1 + + '#interconnect-cells': + const: 2 + +patternProperties: + '^interconnect-[a-z0-9\-]+$': + type: object + $ref: qcom,rpm-common.yaml# + unevaluatedProperties: false + description: + The interconnect providers do not have a separate QoS register space, + but share parent's space. + + properties: + compatible: + const: qcom,msm8976-snoc-mm + + required: + - compatible + - '#interconnect-cells' + +required: + - compatible + - reg + - '#interconnect-cells' + +additionalProperties: false + +examples: + - | + bimc: interconnect@400000 { + compatible = "qcom,msm8976-bimc"; + reg = <0x00400000 0x62000>; + + #interconnect-cells = <2>; + };
include/dt-bindings/interconnect/qcom,msm8976.h new file +97 -0
97 lines not on this page · raw message
Signature · 1 line
2.45.2
PATCH v2 2/8 interconnect: qcom: Add MSM8976 interconnect provider driver
In reply to Adam SkladowskiAdd driver for interconnect busses found in MSM8976 based platforms. The topology consists of four NoCs that are partially controlled by a RPM processor.
--- drivers/interconnect/qcom/Kconfig | 9 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/msm8976.c | 1440 +++++++++++++++++++++++++++ 3 files changed, 1451 insertions(+) create mode 100644 drivers/interconnect/qcom/msm8976.c
drivers/interconnect/qcom/Kconfig +9 -0
@@ -53,6 +53,15 @@ config INTERCONNECT_QCOM_MSM8974 This is a driver for the Qualcomm Network-on-Chip on msm8974-based platforms. +config INTERCONNECT_QCOM_MSM8976 + tristate "Qualcomm MSM8976 interconnect driver" + depends on INTERCONNECT_QCOM + depends on QCOM_SMD_RPM + select INTERCONNECT_QCOM_SMD_RPM + help + This is a driver for the Qualcomm Network-on-Chip on msm8976-based + platforms. + config INTERCONNECT_QCOM_MSM8996 tristate "Qualcomm MSM8996 interconnect driver" depends on INTERCONNECT_QCOM
drivers/interconnect/qcom/Makefile +2 -0
@@ -9,6 +9,7 @@ qnoc-msm8916-objs := msm8916.o qnoc-msm8939-objs := msm8939.o qnoc-msm8953-objs := msm8953.o qnoc-msm8974-objs := msm8974.o +qnoc-msm8976-objs := msm8976.o qnoc-msm8996-objs := msm8996.o icc-osm-l3-objs := osm-l3.o qnoc-qcm2290-objs := qcm2290.o
@@ -44,6 +45,7 @@ obj-$(CONFIG_INTERCONNECT_QCOM_MSM8916) += qnoc-msm8916.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8939) += qnoc-msm8939.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8953) += qnoc-msm8953.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8974) += qnoc-msm8974.o +obj-$(CONFIG_INTERCONNECT_QCOM_MSM8976) += qnoc-msm8976.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8996) += qnoc-msm8996.o obj-$(CONFIG_INTERCONNECT_QCOM_OSM_L3) += icc-osm-l3.o obj-$(CONFIG_INTERCONNECT_QCOM_QCM2290) += qnoc-qcm2290.o
drivers/interconnect/qcom/msm8976.c new file +1440 -0
1,440 lines not on this page · raw message
Signature · 1 line
2.45.2
PATCH v2 3/8 dt-bindings: interconnect: qcom: Add Qualcomm MSM8937 NoC
In reply to Adam SkladowskiAdd bindings for Qualcomm MSM8937 Network-On-Chip interconnect devices.
--- .../bindings/interconnect/qcom,msm8937.yaml | 63 +++++++++++++ .../dt-bindings/interconnect/qcom,msm8937.h | 93 +++++++++++++++++++ 2 files changed, 156 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,msm8937.yaml create mode 100644 include/dt-bindings/interconnect/qcom,msm8937.h
Documentation/devicetree/bindings/interconnect/qcom,msm8937.yaml new file +63 -0
@@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,msm8937.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm MSM8937 Network-On-Chip interconnect + +maintainers: + - Konrad Dybcio <[email protected]> + +description: | + The Qualcomm MSM8937 interconnect providers support adjusting the + bandwidth requirements between the various NoC fabrics. + + See also: + - dt-bindings/interconnect/qcom,msm8937.h + +properties: + compatible: + enum: + - qcom,msm8937-bimc + - qcom,msm8937-pcnoc + - qcom,msm8937-snoc + + reg: + maxItems: 1 + + '#interconnect-cells': + const: 2 + +patternProperties: + '^interconnect-[a-z0-9\-]+$': + type: object + $ref: qcom,rpm-common.yaml# + unevaluatedProperties: false + description: + The interconnect providers do not have a separate QoS register space, + but share parent's space. + + properties: + compatible: + const: qcom,msm8937-snoc-mm + + required: + - compatible + - '#interconnect-cells' + +required: + - compatible + - reg + - '#interconnect-cells' + +additionalProperties: false + +examples: + - | + bimc: interconnect@400000 { + compatible = "qcom,msm8937-bimc"; + reg = <0x00400000 0x5a000>; + + #interconnect-cells = <2>; + };
include/dt-bindings/interconnect/qcom,msm8937.h new file +93 -0
93 lines not on this page · raw message
Signature · 1 line
2.45.2
PATCH v2 4/8 interconnect: qcom: Add MSM8937 interconnect provider driver
In reply to Adam SkladowskiAdd driver for interconnect busses found in MSM8937 based platforms. The topology consists of four NoCs that are partially controlled by a RPM processor.
--- drivers/interconnect/qcom/Kconfig | 9 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/msm8937.c | 1372 +++++++++++++++++++++++++++ 3 files changed, 1383 insertions(+) create mode 100644 drivers/interconnect/qcom/msm8937.c
drivers/interconnect/qcom/Kconfig +9 -0
@@ -26,6 +26,15 @@ config INTERCONNECT_QCOM_MSM8916 This is a driver for the Qualcomm Network-on-Chip on msm8916-based platforms. +config INTERCONNECT_QCOM_MSM8937 + tristate "Qualcomm MSM8937 interconnect driver" + depends on INTERCONNECT_QCOM + depends on QCOM_SMD_RPM + select INTERCONNECT_QCOM_SMD_RPM + help + This is a driver for the Qualcomm Network-on-Chip on msm8937-based + platforms. + config INTERCONNECT_QCOM_MSM8939 tristate "Qualcomm MSM8939 interconnect driver" depends on INTERCONNECT_QCOM
drivers/interconnect/qcom/Makefile +2 -0
@@ -6,6 +6,7 @@ interconnect_qcom-y := icc-common.o icc-bcm-voter-objs := bcm-voter.o qnoc-msm8909-objs := msm8909.o qnoc-msm8916-objs := msm8916.o +qnoc-msm8937-objs := msm8937.o qnoc-msm8939-objs := msm8939.o qnoc-msm8953-objs := msm8953.o qnoc-msm8974-objs := msm8974.o
@@ -42,6 +43,7 @@ icc-smd-rpm-objs := smd-rpm.o icc-rpm.o icc-rpm-clocks.o obj-$(CONFIG_INTERCONNECT_QCOM_BCM_VOTER) += icc-bcm-voter.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8909) += qnoc-msm8909.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8916) += qnoc-msm8916.o +obj-$(CONFIG_INTERCONNECT_QCOM_MSM8937) += qnoc-msm8937.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8939) += qnoc-msm8939.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8953) += qnoc-msm8953.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8974) += qnoc-msm8974.o
drivers/interconnect/qcom/msm8937.c new file +1372 -0
1,372 lines not on this page · raw message
Signature · 1 line
2.45.2
PATCH v2 5/8 interconnect: qcom: qcs404: Mark AP-owned nodes as such
In reply to Adam SkladowskiWhen driver was upstreamed it seems ap_owned nodes were not available, bring them now.
--- drivers/interconnect/qcom/qcs404.c | 85 ++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+)
drivers/interconnect/qcom/qcs404.c +85 -0
@@ -101,6 +101,11 @@ static struct qcom_icc_node mas_apps_proc = { .buswidth = 8, .mas_rpm_id = 0, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_FIXED, + .qos.areq_prio = 0, + .qos.prio_level = 0, + .qos.qos_port = 0, .num_links = ARRAY_SIZE(mas_apps_proc_links), .links = mas_apps_proc_links, };
@@ -116,6 +121,11 @@ static struct qcom_icc_node mas_oxili = { .buswidth = 8, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_FIXED, + .qos.areq_prio = 0, + .qos.prio_level = 0, + .qos.qos_port = 2, .num_links = ARRAY_SIZE(mas_oxili_links), .links = mas_oxili_links, };
@@ -131,6 +141,11 @@ static struct qcom_icc_node mas_mdp = { .buswidth = 8, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_FIXED, + .qos.areq_prio = 0, + .qos.prio_level = 1, + .qos.qos_port = 4, .num_links = ARRAY_SIZE(mas_mdp_links), .links = mas_mdp_links, };
@@ -145,6 +160,10 @@ static struct qcom_icc_node mas_snoc_bimc_1 = { .buswidth = 8, .mas_rpm_id = 76, .slv_rpm_id = -1, + .qos.qos_mode = NOC_QOS_MODE_BYPASS, + .qos.areq_prio = 0, + .qos.prio_level = 0, + .qos.qos_port = 5, .num_links = ARRAY_SIZE(mas_snoc_bimc_1_links), .links = mas_snoc_bimc_1_links, };
@@ -160,6 +179,11 @@ static struct qcom_icc_node mas_tcu_0 = { .buswidth = 8, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_FIXED, + .qos.areq_prio = 0, + .qos.prio_level = 2, + .qos.qos_port = 6, .num_links = ARRAY_SIZE(mas_tcu_0_links), .links = mas_tcu_0_links, };
@@ -174,6 +198,8 @@ static struct qcom_icc_node mas_spdm = { .buswidth = 4, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, .num_links = ARRAY_SIZE(mas_spdm_links), .links = mas_spdm_links, };
@@ -231,6 +257,11 @@ static struct qcom_icc_node mas_crypto = { .buswidth = 8, .mas_rpm_id = 23, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_FIXED, + .qos.areq_prio = 1, + .qos.prio_level = 1, + .qos.qos_port = 0, .num_links = ARRAY_SIZE(mas_crypto_links), .links = mas_crypto_links, };
@@ -287,6 +318,11 @@ static struct qcom_icc_node mas_qpic = { .buswidth = 4, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_FIXED, + .qos.areq_prio = 1, + .qos.prio_level = 1, + .qos.qos_port = 14, .num_links = ARRAY_SIZE(mas_qpic_links), .links = mas_qpic_links, };
@@ -301,6 +337,11 @@ static struct qcom_icc_node mas_qdss_bam = { .buswidth = 4, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_FIXED, + .qos.areq_prio = 1, + .qos.prio_level = 1, + .qos.qos_port = 1, .num_links = ARRAY_SIZE(mas_qdss_bam_links), .links = mas_qdss_bam_links, };
@@ -348,6 +389,11 @@ static struct qcom_icc_node mas_qdss_etr = { .buswidth = 8, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_FIXED, + .qos.areq_prio = 1, + .qos.prio_level = 1, + .qos.qos_port = 0, .num_links = ARRAY_SIZE(mas_qdss_etr_links), .links = mas_qdss_etr_links, };
@@ -363,6 +409,11 @@ static struct qcom_icc_node mas_emac = { .buswidth = 8, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_FIXED, + .qos.areq_prio = 1, + .qos.prio_level = 1, + .qos.qos_port = 17, .num_links = ARRAY_SIZE(mas_emac_links), .links = mas_emac_links, };
@@ -378,6 +429,11 @@ static struct qcom_icc_node mas_pcie = { .buswidth = 8, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_FIXED, + .qos.areq_prio = 1, + .qos.prio_level = 1, + .qos.qos_port = 8, .num_links = ARRAY_SIZE(mas_pcie_links), .links = mas_pcie_links, };
@@ -393,6 +449,11 @@ static struct qcom_icc_node mas_usb3 = { .buswidth = 8, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_FIXED, + .qos.areq_prio = 1, + .qos.prio_level = 1, + .qos.qos_port = 16, .num_links = ARRAY_SIZE(mas_usb3_links), .links = mas_usb3_links, };
@@ -491,6 +552,8 @@ static struct qcom_icc_node pcnoc_s_2 = { .buswidth = 4, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, .num_links = ARRAY_SIZE(pcnoc_s_2_links), .links = pcnoc_s_2_links, };
@@ -626,6 +689,8 @@ static struct qcom_icc_node qdss_int = { .buswidth = 8, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, .num_links = ARRAY_SIZE(qdss_int_links), .links = qdss_int_links, };
@@ -704,6 +769,8 @@ static struct qcom_icc_node slv_spdm = { .buswidth = 4, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, };static struct qcom_icc_node slv_pdm = {
@@ -752,6 +819,8 @@ static struct qcom_icc_node slv_disp_ss_cfg = { .buswidth = 4, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, };static struct qcom_icc_node slv_gpu_cfg = {
@@ -760,6 +829,8 @@ static struct qcom_icc_node slv_gpu_cfg = { .buswidth = 4, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, };static struct qcom_icc_node slv_blsp_1 = {
@@ -784,6 +855,8 @@ static struct qcom_icc_node slv_pcie = { .buswidth = 4, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, };static struct qcom_icc_node slv_ethernet = {
@@ -792,6 +865,8 @@ static struct qcom_icc_node slv_ethernet = { .buswidth = 4, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, };static struct qcom_icc_node slv_blsp_2 = {
@@ -816,6 +891,8 @@ static struct qcom_icc_node slv_tcu = { .buswidth = 8, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, };static struct qcom_icc_node slv_pmic_arb = {
@@ -894,6 +971,8 @@ static struct qcom_icc_node slv_kpss_ahb = { .buswidth = 4, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, };static struct qcom_icc_node slv_wcss = {
@@ -954,6 +1033,8 @@ static struct qcom_icc_node slv_cats_0 = { .buswidth = 16, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, };static struct qcom_icc_node slv_cats_1 = {
@@ -962,6 +1043,8 @@ static struct qcom_icc_node slv_cats_1 = { .buswidth = 8, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, };static struct qcom_icc_node slv_lpass = {
@@ -970,6 +1053,8 @@ static struct qcom_icc_node slv_lpass = { .buswidth = 4, .mas_rpm_id = -1, .slv_rpm_id = -1, + .qos.ap_owned = true, + .qos.qos_mode = NOC_QOS_MODE_INVALID, };static struct qcom_icc_node *const qcs404_bimc_nodes[] = {
Signature · 1 line
2.45.2
PATCH v2 6/8 interconnect: qcom: qcs404: Add regmaps and more bus descriptions
In reply to Adam SkladowskiCurrently we are lacking descriptions of regmaps, bus clocks and types of busses, provide them.
--- drivers/interconnect/qcom/qcs404.c | 42 +++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-)
drivers/interconnect/qcom/qcs404.c +39 -3
@@ -10,6 +10,7 @@#include <linux/module.h> #include <linux/mod_devicetable.h> #include <linux/platform_device.h> +#include <linux/regmap.h> #include "icc-rpm.h"
@@ -1067,10 +1068,22 @@ static struct qcom_icc_node * const qcs404_bimc_nodes[] = { [SLAVE_BIMC_SNOC] = &slv_bimc_snoc, }; +static const struct regmap_config qcs404_bimc_regmap_config = { + .reg_bits =32 , + .reg_stride =4 , + .val_bits =32 , + .max_register =0x80000 , + .fast_io = true, +}; +static const struct qcom_icc_desc qcs404_bimc = { - .bus_clk_desc = &bimc_clk, + .type =QCOM_ICC_BIMC , .nodes = qcs404_bimc_nodes, .num_nodes =ARRAY_SIZE (qcs404_bimc_nodes), + .bus_clk_desc = &bimc_clk, + .regmap_cfg = &qcs404_bimc_regmap_config, + .qos_offset =0x8000 , + .ab_coeff =153 , };static struct qcom_icc_node *const qcs404_pcnoc_nodes[] = {
@@ -1122,10 +1135,22 @@ static struct qcom_icc_node * const qcs404_pcnoc_nodes[] = { [SLAVE_PCNOC_SNOC] = &slv_pcnoc_snoc, }; +static const struct regmap_config qcs404_pcnoc_regmap_config = { + .reg_bits =32 , + .reg_stride =4 , + .val_bits =32 , + .max_register =0x15080 , + .fast_io = true, +}; +static const struct qcom_icc_desc qcs404_pcnoc = { - .bus_clk_desc = &bus_0_clk, + .type =QCOM_ICC_NOC , .nodes = qcs404_pcnoc_nodes, .num_nodes =ARRAY_SIZE (qcs404_pcnoc_nodes), + .bus_clk_desc = &bus_0_clk, + .qos_offset =0x7000 , + .keep_alive = true, + .regmap_cfg = &qcs404_pcnoc_regmap_config, };static struct qcom_icc_node *const qcs404_snoc_nodes[] = {
@@ -1151,10 +1176,21 @@ static struct qcom_icc_node * const qcs404_snoc_nodes[] = { [SLAVE_LPASS] = &slv_lpass, }; +static const struct regmap_config qcs404_snoc_regmap_config = { + .reg_bits =32 , + .reg_stride =4 , + .val_bits =32 , + .max_register =0x23080 , + .fast_io = true, +}; +static const struct qcom_icc_desc qcs404_snoc = { - .bus_clk_desc = &bus_1_clk, + .type =QCOM_ICC_NOC , .nodes = qcs404_snoc_nodes, .num_nodes =ARRAY_SIZE (qcs404_snoc_nodes), + .bus_clk_desc = &bus_1_clk, + .qos_offset =0x11000 , + .regmap_cfg = &qcs404_snoc_regmap_config, };
Signature · 1 line
2.45.2
PATCH v2 7/8 dt-bindings: interconnect: qcom: msm8939: Fix example
In reply to Adam SkladowskiFor now example list snoc_mm as children of bimc which is obviously not valid, drop snoc and snoc_mm and leave bimc alone.
--- .../bindings/interconnect/qcom,msm8939.yaml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)
Documentation/devicetree/bindings/interconnect/qcom,msm8939.yaml +1 -12
@@ -56,19 +56,8 @@ examples: - | #include <dt-bindings/clock/qcom,rpmcc.h> - snoc: interconnect@580000 { - compatible = "qcom,msm8939-snoc"; - reg = <0x00580000 0x14000>; - #interconnect-cells = <1>; - }; - bimc: interconnect@400000 { compatible = "qcom,msm8939-bimc"; reg = <0x00400000 0x62000>; - #interconnect-cells = <1>; - - snoc_mm: interconnect-snoc { - compatible = "qcom,msm8939-snoc-mm"; - #interconnect-cells = <1>; - }; + #interconnect-cells = <2>; };
Signature · 1 line
2.45.2
PATCH v2 8/8 interconnect: qcom: msm8953: Add ab_coeff
In reply to Adam SkladowskiBIMC and SNOC-MM on downstream feature qcom,util-fact which translates to ab_coeff, add it.
--- drivers/interconnect/qcom/msm8953.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/interconnect/qcom/msm8953.c +2 -0
@@ -1169,6 +1169,7 @@ static const struct qcom_icc_desc msm8953_bimc = { .nodes = msm8953_bimc_nodes, .num_nodes = ARRAY_SIZE(msm8953_bimc_nodes), .qos_offset = 0x8000, + .ab_coeff = 153, .regmap_cfg = &msm8953_bimc_regmap_config };
@@ -1295,6 +1296,7 @@ static const struct qcom_icc_desc msm8953_snoc_mm = { .nodes = msm8953_snoc_mm_nodes, .num_nodes = ARRAY_SIZE(msm8953_snoc_mm_nodes), .qos_offset = 0x7000, + .ab_coeff = 153, .regmap_cfg = &msm8953_snoc_regmap_config, };
Signature · 1 line
2.45.2
Quoted 11 lines · Adam Skladowski
This series introduce new ICC drivers for some legacy socs while at it also updates a bit of qcs404 driver which seems to not receive much attention lately.
Please take in consideration i do not own any qcs404 board so i cannot test anything else than if it compiles.Changes since v1
================
1. Reworded commit messages
2. Adjusted yamls.
3. Adjusted examples.
Adjusted to what? This is supposed to be specific.
BTW, you use here odd email address, so:
<form letter>
Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
Tools like b4 or scripts/get_maintainer.pl provide you proper list of people, so fix your workflow. Tools might also fail if you work on some ancient tree (don't, instead use mainline) or work on fork of kernel (don't, instead use mainline). Just use b4 and everything should be fine, although remember about b4 prep --auto-to-cc if you added new patches to the patchset.
</form letter>
Best regards,
Krzysztof
Re: [PATCH v2 1/8] dt-bindings: interconnect: qcom: Add Qualcomm MSM8976 NoC
In reply to Adam SkladowskiQuoted 23 lines · Adam Skladowski
Add bindings for Qualcomm MSM8976 Network-On-Chip interconnect devices.
Signed-off-by Adam Skladowski <[email protected]>--- .../bindings/interconnect/qcom,msm8976.yaml | 63 ++++++++++++ .../dt-bindings/interconnect/qcom,msm8976.h | 97 +++++++++++++++++++ 2 files changed, 160 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml create mode 100644 include/dt-bindings/interconnect/qcom,msm8976.hDocumentation/devicetree/bindings/interconnect/qcom,msm8976.yaml new file +7
-0@@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,msm8976.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm MSM8976 Network-On-Chip interconnect
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml line 17
Quoted 10 lines
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml new file +10
-0+ +maintainers: + - Konrad Dybcio <[email protected]> + +description: | + The Qualcomm MSM8976 interconnect providers support adjusting the + bandwidth requirements between the various NoC fabrics. + + See also: + - dt-bindings/interconnect/qcom,msm8976.h
This is not a valid path. Please correct it, otherwise tools cannot validate it.
Quoted 4 lines
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml new file +4
-0+ +properties: + compatible: + enum:
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml line 31
Quoted 10 lines
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml new file +10
-0+ - qcom,msm8976-bimc + - qcom,msm8976-pcnoc + - qcom,msm8976-snoc + + reg: + maxItems: 1 + + '#interconnect-cells': + const: 2 +
I don't know what and why happened here. I asked for different order of properties and properties are gone. Provide detailed changelog.
Quoted 12 lines
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml new file +12
-0+patternProperties: + '^interconnect-[a-z0-9\-]+$': + type: object + $ref: qcom,rpm-common.yaml# + unevaluatedProperties: false + description: + The interconnect providers do not have a separate QoS register space, + but share parent's space. + + properties: + compatible: + const: qcom,msm8976-snoc-mm
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml line 53
Quoted 10 lines
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml new file +10
-0+ + required: + - compatible + - '#interconnect-cells' + +required: + - compatible + - reg + - '#interconnect-cells' +
So no schema? Sorry, this is very confusing.
I am not going to review the rest. You implemented some odd changes, not what was asked. At least not entirely. With no changelog explaining this, you basically expect me to do review from scratch like there was no previous review.
That's not how it works.
Best regards,
Krzysztof
Re: [PATCH v2 3/8] dt-bindings: interconnect: qcom: Add Qualcomm MSM8937 NoC
In reply to Adam SkladowskiQuoted 10 lines · Adam Skladowski
Add bindings for Qualcomm MSM8937 Network-On-Chip interconnect devices.
Signed-off-by Adam Skladowski <[email protected]>--- .../bindings/interconnect/qcom,msm8937.yaml | 63 +++++++++++++ .../dt-bindings/interconnect/qcom,msm8937.h | 93 +++++++++++++++++++ 2 files changed, 156 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,msm8937.yaml create mode 100644 include/dt-bindings/interconnect/qcom,msm8937.h
Same problems as patch #1.
Best regards,
Krzysztof
Re: [PATCH v2 7/8] dt-bindings: interconnect: qcom: msm8939: Fix example
In reply to Adam SkladowskiQuoted 13 lines · Adam Skladowski
For now example list
snoc_mmas children of bimc which is obviously not valid, drop snoc andsnoc_mmand leave bimc alone.Signed-off-by Adam Skladowski <[email protected]>--- .../bindings/interconnect/qcom,msm8939.yaml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)Documentation/devicetree/bindings/interconnect/qcom,msm8939.yaml +0
-0
Documentation/devicetree/bindings/interconnect/qcom,msm8939.yaml examples: · line 60
Quoted 5 lines
Documentation/devicetree/bindings/interconnect/qcom,msm8939.yaml +0
-2@@ -56,19 +56,8 @@ examples: - | #include <dt-bindings/clock/qcom,rpmcc.h> - snoc: interconnect@580000 { - compatible = "qcom,msm8939-snoc";
The one correct example would be the snoc, because it is the most complete, but well...
Best regards,
Krzysztof
Quoted 31 lines · Krzysztof Kozlowski
Quoted 11 lines · Adam Skladowski
This series introduce new ICC drivers for some legacy socs while at it also updates a bit of qcs404 driver which seems to not receive much attention lately.
Please take in consideration i do not own any qcs404 board so i cannot test anything else than if it compiles.Changes since v1
================
1. Reworded commit messages
2. Adjusted yamls.
3. Adjusted examples.Adjusted to what? This is supposed to be specific.
BTW, you use here odd email address, so:
<form letter>
Please usescripts/get_maintainers.plto get a list of necessary people and lists to CC (and consider --no-git-fallback argument). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.Tools like b4 or
scripts/get_maintainer.plprovide you proper list of people, so fix your workflow. Tools might also fail if you work on some ancient tree (don't, instead use mainline) or work on fork of kernel (don't, instead use mainline). Just use b4 and everything should be fine, although remember aboutb4 prep --auto-to-ccif you added new patches to the patchset.
</form letter>
Quoted 3 lines
Best regards,
Krzysztof
Indeed i send patches from different OS with old kernel tree inside, i haven't had idea about that.
Will update tree before sending.
Regarding v3 which im going to send anyway, should i reword changes in v2?
Like in v2 i Adjusted yaml to look the way msm8953 is(seems its wrong).
Adjusting examples refers to removing redundant nodes from yaml examples.
For sending i use this command:
git send-email --to-cover --cc-cover patch-dir/*.patch --cc [email protected] --cc ~postmarketos/[email protected] --cc-cmd='scripts/get_maintainer.pl --norolestats patch-dir/*.patch'
Is switching to any different tool required?
I doubt i would be able to do it without making some big mistakes.
Re: [PATCH v2 7/8] dt-bindings: interconnect: qcom: msm8939: Fix example
In reply to Krzysztof KozlowskiQuoted 22 lines · Krzysztof Kozlowski
Quoted 13 lines · Adam Skladowski
For now example list
snoc_mmas children of bimc which is obviously not valid, drop snoc andsnoc_mmand leave bimc alone.Signed-off-by Adam Skladowski <[email protected]>--- .../bindings/interconnect/qcom,msm8939.yaml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)Documentation/devicetree/bindings/interconnect/qcom,msm8939.yaml +0
-0Documentation/devicetree/bindings/interconnect/qcom,msm8939.yaml examples: · line 60
Quoted 5 lines
Documentation/devicetree/bindings/interconnect/qcom,msm8939.yaml +0
-2@@ -56,19 +56,8 @@ examples: - | #include <dt-bindings/clock/qcom,rpmcc.h> - snoc: interconnect@580000 { - compatible = "qcom,msm8939-snoc";The one correct example would be the snoc, because it is the most complete, but well...
Quoted 6 lines
Reviewed-by Krzysztof Kozlowski <[email protected]>Best regards,
Krzysztof
Will do it for v3 so this r-b ain't going to be carried.
Re: [PATCH v2 1/8] dt-bindings: interconnect: qcom: Add Qualcomm MSM8976 NoC
In reply to Krzysztof KozlowskiQuoted 11 lines · Krzysztof Kozlowski
Quoted 10 lines · Adam Skladowski
Add bindings for Qualcomm MSM8976 Network-On-Chip interconnect devices.
Signed-off-by Adam Skladowski <[email protected]>--- .../bindings/interconnect/qcom,msm8976.yaml | 63 ++++++++++++ .../dt-bindings/interconnect/qcom,msm8976.h | 97 +++++++++++++++++++ 2 files changed, 160 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml create mode 100644 include/dt-bindings/interconnect/qcom,msm8976.h
Quoted 2 lines
This is not a valid path. Please correct it, otherwise tools cannot validate it.
Somehow got this weird idea out of qcom,msm8953.yaml
seems its wrong over there too.
Should proper line be like? :
See also:: include/dt-bindings/interconnect/qcom,msm8976.h
Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml new file +8
-0+ +properties: + compatible: + enum: + - qcom,msm8976-bimc + - qcom,msm8976-pcnoc + - qcom,msm8976-snoc +
Quoted 8 lines
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml line 31
Quoted 6 lines
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml new file +6
-0+ reg: + maxItems: 1 + + '#interconnect-cells': + const: 2 +I don't know what and why happened here. I asked for different order of properties and properties are gone. Provide detailed changelog.
For disappearing props it turns out clocks which i had defined for it aren't required so these were wiped from yaml+driver.
Quoted 30 lines
Quoted 12 lines
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml new file +12
-0+patternProperties: + '^interconnect-[a-z0-9\-]+$': + type: object + $ref: qcom,rpm-common.yaml# + unevaluatedProperties: false + description: + The interconnect providers do not have a separate QoS register space, + but share parent's space. + + properties: + compatible: + const: qcom,msm8976-snoc-mmDocumentation/devicetree/bindings/interconnect/qcom,msm8976.yaml line 53
Quoted 10 lines
Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml new file +10
-0+ + required: + - compatible + - '#interconnect-cells' + +required: + - compatible + - reg + - '#interconnect-cells' +So no schema? Sorry, this is very confusing.
I am not going to review the rest. You implemented some odd changes, not what was asked. At least not entirely. With no changelog explaining this, you basically expect me to do review from scratch like there was no previous review.
Quoted 5 lines
That's not how it works.
Best regards,
Krzysztof
As both yamls will not differ much from qcom,msm8939.yaml i moved compatibles in it for v3.
Would be great to discuss it before resending on #linux-msm
Re: [PATCH v2 1/8] dt-bindings: interconnect: qcom: Add Qualcomm MSM8976 NoC
Quoted 16 lines · Adam Skladowski
Quoted 11 lines · Krzysztof Kozlowski
Quoted 10 lines · Adam Skladowski
Add bindings for Qualcomm MSM8976 Network-On-Chip interconnect devices.
Signed-off-by Adam Skladowski <[email protected]>--- .../bindings/interconnect/qcom,msm8976.yaml | 63 ++++++++++++ .../dt-bindings/interconnect/qcom,msm8976.h | 97 +++++++++++++++++++ 2 files changed, 160 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml create mode 100644 include/dt-bindings/interconnect/qcom,msm8976.hQuoted 2 lines
This is not a valid path. Please correct it, otherwise tools cannot validate it.
Quoted 6 lines
Somehow got this weird idea out of qcom,msm8953.yaml
seems its wrong over there too.
Should proper line be like? :
See also::include/dt-bindings/interconnect/qcom,msm8976.h
Only one ':'
Best regards,
Krzysztof