From patchwork Sat Dec 9 21:55:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 752301 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DuUk7UQM" Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D315E103 for ; Sat, 9 Dec 2023 13:56:04 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2cb54ab7ffeso4841501fa.3 for ; Sat, 09 Dec 2023 13:56:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702158962; x=1702763762; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VCiH7VJZwpltElSwE2uiX4KsLg2Kdu2u9uVH8b3tZTE=; b=DuUk7UQMuAzeNfb6th9ygejU/qZKf4rJ0ZBWX7n+m+U5as+45/TdqU1KJoIOhskeO0 rzeCL1ofoKX/EfLR3ODm7JGmcF90aaoQAKQ9RswEMVfaOPM9MHaoDO4fs0kfXmvRBM6O yh1xc0tiqvPiXdfz+elT9V9r7DCLDRZsSm0DaXsWQ0LCTXeCJgz37RrFNyB3/G2sbh0z OfwKBTeuXS3gHSmpqlQYXQFZ1lum4xIAEKud1Y5umtJbT3rKaygl71exAuA9+sgQuWiS 5r3HIITGntwv6oHS/sX+u/TjHZC6j7tBRnjecosC2Og2VOGmr7JfSoYToqbNJYF3b5HZ UsmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702158962; x=1702763762; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VCiH7VJZwpltElSwE2uiX4KsLg2Kdu2u9uVH8b3tZTE=; b=boFAph3xFygtze9t7YOec85maJILrY0zzncOCRJ8WZ7iSRUOI/rHm/MYEHus4wC4tW HJ8GQ24j6Nhjkr7QftKLu14gGnQ2ysDFXuXnyHFs3zlJyacdN4M6x79IpPXLpUftq5sZ ejJd5RMq2BYLP8gFYl1CgEm0IymYiRcEbrmlRIzgg+dZL5dJgC20uY2p/XskQ7SI0eHw qs+rsJqnakZq3R4NhwgwdGTZkwmcWbtZd05P8JlWrbzsrwUYhRPQQRT9Fbygx4RGwmxG +hUa64YjYC1AyyfIbOS/Fx2NlMI5RldiqYCqkcxBvct0P9bHLyy2IKaPUiqEET0hr754 BmTg== X-Gm-Message-State: AOJu0YzJd2oWhHPmo3vDWf9ucXOM+Cq+odq+hAvp+oIt/ltCyd5Qy0qo +g8/DbXTnOFTOwiQDKMf3YK8nw== X-Google-Smtp-Source: AGHT+IG4I7nJ9kJ9XEWjT4j9Uf7hn29TI+AjcVDCvuEEjgVnlt2L/UHjNHdGSl2xJ/noGoVAo+gm0g== X-Received: by 2002:a2e:3a09:0:b0:2ca:db6:a13 with SMTP id h9-20020a2e3a09000000b002ca0db60a13mr785573lja.58.1702158962402; Sat, 09 Dec 2023 13:56:02 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id e22-20020a2e9856000000b002ca061aa9d1sm665103ljj.88.2023.12.09.13.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 13:56:01 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/4] dt-bindings: soc: qcom: stats: add compatible for SM8150 platform Date: Sun, 10 Dec 2023 00:55:58 +0300 Message-Id: <20231209215601.3543895-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The RPMh stats on the SM8150 platform have 3 stat slots (unlike sdm845), but still doesn't have DDR sleep stats (unlike other generic platforms). Add SoC-specific compatible string. Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml index 686a7ef2f48a..9cd75bedc7d2 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml @@ -21,6 +21,7 @@ properties: enum: - qcom,rpmh-stats - qcom,sdm845-rpmh-stats + - qcom,sm8150-rpmh-stats - qcom,rpm-stats # For older RPM firmware versions with fixed offset for the sleep stats - qcom,apq8084-rpm-stats From patchwork Sat Dec 9 21:55:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 752038 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ufc5RGbH" Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A22CD118 for ; Sat, 9 Dec 2023 13:56:05 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2c9ea37ac87so43960531fa.3 for ; Sat, 09 Dec 2023 13:56:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702158964; x=1702763764; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VrlBeNKlBYiRghiFBJkaO1YzixQRbHwv79FE5hf91TE=; b=Ufc5RGbHPXHw+Bv254bBBexkpyAfPUpJ7qbnlKin21oZFb06OZV3qfQIt/Lg4H65KM AyakLQPbuY/WwVuerYdPCP5Ll0j0W1HCNEEqf498Zo6cIZTfsfPdzV2QjA4tFpfrfBB5 ZU9BrnvxmpUQMMUA+UPGbdFs1f0pU5YY+6/mfJ30KEB/M/fduKqp7am8JvinjHAPhhHK qaVU+oKXPoCtGjXXA7XikuLNgAtVDCrhHvgsyfIggrpy+puNiNouDiXshyW4vhd0ALfu brC+Wu/5iEd0H9bSITcn9GVzOSEY1nH5Qne5wv5KIXq8YPEuPifZ8ZGlwvfcglmqQruF OPxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702158964; x=1702763764; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VrlBeNKlBYiRghiFBJkaO1YzixQRbHwv79FE5hf91TE=; b=lQbKOioLrZ6j4md4YEmusPX8jjYDDi+n6RKVR0cg6vYxSlHGbf2i/Lqt8HN7J+CGnH ZBEos8jf6JFk4TYGzKSQAkNRNo8GfLFCk1CKmXDAV/TtpGxv15GjhDTo5MF33taPXqs8 iEJ9ShzAyGPufPETcTcPR8mw1NBLJ9qNaORTTKu5Kirxe0bjgfoVS77c87E+YuQB0hml tp/vGuNL4g4iIyh3bbf5izwF/w/58jeOmpaYobPuyyAt/P3TtyPU8prKv5jpYQhmflgs f70eV2/bAuhOtIr++udnSDBxiOgTw5zf1Vybu/AGWYBcKZ07P0Th7ZhAQeAGBqwiOEMo QLzw== X-Gm-Message-State: AOJu0Yxxl6b+U/SOzvhMlP2b44bVF8mSvnF9igbuVY9AysPam3Dem9f2 kAC2AdF7x6oFQcVtT3prw1GmuA== X-Google-Smtp-Source: AGHT+IFgQivqOggLIn+Hbz2oYbqdYA/p9oelDuneu5p/rxhcYCLK5Fcui0q5XIYcDWUvt2E/imMowg== X-Received: by 2002:a2e:b013:0:b0:2c9:f4c5:7f1f with SMTP id y19-20020a2eb013000000b002c9f4c57f1fmr738541ljk.74.1702158963902; Sat, 09 Dec 2023 13:56:03 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id e22-20020a2e9856000000b002ca061aa9d1sm665103ljj.88.2023.12.09.13.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 13:56:02 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/4] soc: qcom: stats: don't crash if DDR offset contains invalid data Date: Sun, 10 Dec 2023 00:55:59 +0300 Message-Id: <20231209215601.3543895-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231209215601.3543895-1-dmitry.baryshkov@linaro.org> References: <20231209215601.3543895-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The stats ram on sm8150 platform contains invalid data at the DDR_DYNAMIC_OFFSET. Most likely this is because the platform didn't support DDR sleep stats. However this platform uses generic "qcom,rpmh-stats" compatible, which implies presense of the DDR data. Add safety net to prevent old DTB files from crashing the qcom,rpmh-stats driver. Fixes: e84e61bdb97c ("soc: qcom: stats: Add DDR sleep stats") Signed-off-by: Dmitry Baryshkov --- drivers/soc/qcom/qcom_stats.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/qcom_stats.c b/drivers/soc/qcom/qcom_stats.c index 4763d62a8cb0..813c9f3c6bec 100644 --- a/drivers/soc/qcom/qcom_stats.c +++ b/drivers/soc/qcom/qcom_stats.c @@ -319,6 +319,7 @@ static void qcom_create_subsystem_stat_files(struct dentry *root, static int qcom_create_ddr_stats_files(struct device *dev, struct dentry *root, void __iomem *reg, + resource_size_t reg_size, const struct stats_config *config) { struct ddr_stats_data *ddrd; @@ -337,6 +338,8 @@ static int qcom_create_ddr_stats_files(struct device *dev, /* Get the offset of DDR stats */ stats_offset = readl(reg + DDR_DYNAMIC_OFFSET) & DDR_OFFSET_MASK; + if (stats_offset >= reg_size || stats_offset % 4) + return -EINVAL; ddrd->base = reg + stats_offset; /* Check if DDR stats are present */ @@ -364,6 +367,7 @@ static int qcom_stats_probe(struct platform_device *pdev) void __iomem *reg; struct dentry *root; const struct stats_config *config; + struct resource *res; struct stats_data *d; int i, ret; @@ -371,7 +375,7 @@ static int qcom_stats_probe(struct platform_device *pdev) if (!config) return -ENODEV; - reg = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); + reg = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(reg)) return -ENOMEM; @@ -387,7 +391,9 @@ static int qcom_stats_probe(struct platform_device *pdev) qcom_create_subsystem_stat_files(root, config); qcom_create_soc_sleep_stat_files(root, reg, d, config); - ret = qcom_create_ddr_stats_files(&pdev->dev, root, reg, config); + ret = qcom_create_ddr_stats_files(&pdev->dev, root, reg, + resource_size(res), + config); if (ret) { debugfs_remove_recursive(root); return ret; From patchwork Sat Dec 9 21:56:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 752300 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lkAEoxxP" Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B85E10A for ; Sat, 9 Dec 2023 13:56:06 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2c9f559b82cso36477801fa.0 for ; Sat, 09 Dec 2023 13:56:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702158964; x=1702763764; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5Xe0ItZ9gNc3ezmOAnEcbT+smftoMzThFnuNn/+rBU0=; b=lkAEoxxPZznLyp/1759OSQ4TMtlb6l46PbEbfi6rNL2fsCODwSjGAbZjLz1h0ePU7B oi8qGWC7X+v3ybIvvkzKsOPAaGEe0bi2R9sQjtmWdqoSGP2wP6PVMXE6QeSV0eLkbBDy p4lMcTmR27/MRz7FWynV80H4ltqD3eJfHFBYYAuqveg7MtBSYyEe2rHuq/Adg7bCL366 3bumlYCu+bDkxeQFm8IZlsfAiKmuKzUJvjncIrezxBzYOguc4h5Bg8YFUtRSMJgTfloP 0USUll3YfMMqhgyw8OrP2pJT8M8ndWpq98JybZQn1qV4r70YcQAbdOz3RPYL9rNXpbse L1mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702158964; x=1702763764; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5Xe0ItZ9gNc3ezmOAnEcbT+smftoMzThFnuNn/+rBU0=; b=SHIF0lqGmT6ZCjAncJR8z4Tfic2KJY8A3OvWW15vBsPHJeKtdazCjQVkZYTKGkhYab rkVGJRLzPGHueFWw+xLRlcH4UWZrzpvJIHKpAQa3O8D3V13yfJr3M+mX7ny0EArR7VWz 8+iZOF0MHg/D07DhpZZJCknmYmITAaTGgflwQvviBWgkwaQnHERApCyo5UCV/vwXT/LM BNn/BbnDBO9ZuM+6BblFPbaIKt1hNtGhkY+rKpXpFMA7p5SorrPUSDE9eFgx3wfsY1Qp 8C9B6QoS3t/pFRG+r5aRKP9WY7g6SYHpRUVCaZR15H2PCpaA73Dxv+ZzZMsx+7D+Lwkq 7FcA== X-Gm-Message-State: AOJu0YxL2N9Rk7aGLluV936RYxBqIf9e3st7V7UY0tPcwH+5d/6HJAXe EHpjN9krxM+zsVPYgZ5PWMiwFA== X-Google-Smtp-Source: AGHT+IErQmHVfNHx3Ohpg253x96JGBoeWyJxk1TcVprDIAcd3s5js6efjoe7bTTdOLUjsUL3pBlrOw== X-Received: by 2002:a2e:a22c:0:b0:2cb:82a1:9893 with SMTP id i12-20020a2ea22c000000b002cb82a19893mr174778ljm.88.1702158964615; Sat, 09 Dec 2023 13:56:04 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id e22-20020a2e9856000000b002ca061aa9d1sm665103ljj.88.2023.12.09.13.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 13:56:04 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/4] soc: qcom: stats: support SM8150 platform Date: Sun, 10 Dec 2023 00:56:00 +0300 Message-Id: <20231209215601.3543895-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231209215601.3543895-1-dmitry.baryshkov@linaro.org> References: <20231209215601.3543895-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On SM8150 the RPMh stats have 3 data records, but no DDR sleep stats, which demands platform-specific compatible and data. Signed-off-by: Dmitry Baryshkov --- drivers/soc/qcom/qcom_stats.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/soc/qcom/qcom_stats.c b/drivers/soc/qcom/qcom_stats.c index 813c9f3c6bec..dd1b6fee7739 100644 --- a/drivers/soc/qcom/qcom_stats.c +++ b/drivers/soc/qcom/qcom_stats.c @@ -438,6 +438,14 @@ static const struct stats_config rpmh_data_sdm845 = { .subsystem_stats_in_smem = true, }; +static const struct stats_config rpmh_data_sm8150 = { + .stats_offset = 0x48, + .num_records = 3, + .appended_stats_avail = false, + .dynamic_offset = false, + .subsystem_stats_in_smem = true, +}; + static const struct stats_config rpmh_data = { .stats_offset = 0x48, .num_records = 3, @@ -455,6 +463,7 @@ static const struct of_device_id qcom_stats_table[] = { { .compatible = "qcom,rpm-stats", .data = &rpm_data }, { .compatible = "qcom,rpmh-stats", .data = &rpmh_data }, { .compatible = "qcom,sdm845-rpmh-stats", .data = &rpmh_data_sdm845 }, + { .compatible = "qcom,sm8150-rpmh-stats", .data = &rpmh_data_sm8150 }, { } }; MODULE_DEVICE_TABLE(of, qcom_stats_table); From patchwork Sat Dec 9 21:56:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 752037 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lBoFVRlE" Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C6E3103 for ; Sat, 9 Dec 2023 13:56:07 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2ca2573d132so39917121fa.0 for ; Sat, 09 Dec 2023 13:56:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702158965; x=1702763765; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Iqjo5dHisDRwrhKSHqJTPFQ5wOEs+diDPVCxtZ4wynw=; b=lBoFVRlEXC02haX04GCWKepLwzKRAI0Zw/eE2D/3XnG+7Vk/AbgoBLxnp5qOD2r1YW gccqgB50cmjaRzmPIopaxEX7JhMR19j+6WSALJ+TC+tvuU3UWEyirQHzKBmZOVpk2Eb7 DEnQTtWFG7+stBExj4qKIoloWQxyoDTEoVTSoLvu83e44k9pCtxrbw4/X+/M2dfyCuJi w8lPlaZRKJM0ZlyzHw0ydjlHMUkVlcWSHA1m7+EkRIxVFBFBaKucmFxWUC73moTG3g5E /4TH2Z6qchrX12Dh5nXnHODNS2rUnrbG9ghbo0/0zkQvtp2p9OvawWy4i3Xp126NWhOz rOjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702158965; x=1702763765; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Iqjo5dHisDRwrhKSHqJTPFQ5wOEs+diDPVCxtZ4wynw=; b=lE5coCQQtpOkThLHedVX6lnnv0cBX9gEktMpAtxNbiVNRWthWLgM77q9oQZahVYPAv MqPV9fFOpB2fY3HBnoDMNAp8fvOWRtvPiqWJP/ILWqy0pqNp6RY/sbBvLKnlQzk3+4Kl fz2vCyAGB0TnsFIETHUxf7Ig1peupmz493Vsa68ZVG79XuThzpbD49rbKq8cuSdoou6q RHUpFRt+3xmJ9tPnRspnTG07pfEwpO8hYhl+7iXOGXdfP75V/l2eMsZBTWOA+2huvyoN PsuXC3IFkFkvaFtiz8SsVbVvdeSWQlsppEq4j3QmgGx/OBE0tP7zupsoEt+TpKXqyT2l i8og== X-Gm-Message-State: AOJu0YxA8pcgAmdJlKqpRy6WVUIXeF1irEU0FKIfPkPLftCK06ezWuyW GpHmcnIEoM0zqRmLcvDShQ7n+Q== X-Google-Smtp-Source: AGHT+IFubAjWZ4do8wQKj0af641r5+JD+IPoRZQF6ZK1TTErrrW6ML9sa5dMf7REXgAo6IcdWIKv/g== X-Received: by 2002:a2e:8041:0:b0:2ca:cb5:2ed8 with SMTP id p1-20020a2e8041000000b002ca0cb52ed8mr902219ljg.103.1702158965566; Sat, 09 Dec 2023 13:56:05 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id e22-20020a2e9856000000b002ca061aa9d1sm665103ljj.88.2023.12.09.13.56.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 13:56:04 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 4/4] arm64: dts: qcom: sm8150: use SoC-specific compat for RPMh stats Date: Sun, 10 Dec 2023 00:56:01 +0300 Message-Id: <20231209215601.3543895-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231209215601.3543895-1-dmitry.baryshkov@linaro.org> References: <20231209215601.3543895-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The SM8150 platform doesn't support DDR sleep stats, so it needs SoC-specific compat string for the RPMh stats data. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 3cba87e00123..fb41f91cefc6 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -3950,7 +3950,7 @@ aoss_qmp: power-management@c300000 { }; sram@c3f0000 { - compatible = "qcom,rpmh-stats"; + compatible = "qcom,sm8150-rpmh-stats"; reg = <0 0x0c3f0000 0 0x400>; };