Skip to contentSkip to conversation

Add Tegra238 BPMP support and fix stale EMC clock rate

PATCH Superseded Johnny Liu 4 participants 9 messages Oct 28 – Nov 2

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Johnny Liu

author
#0 lore raw

v2 cover Add Tegra238 BPMP support and fix stale EMC clock rate

EMC clock scaling is handled by the BPMP firmware without kernel involvement, so clk_get_rate() on the EMC clock can return a stale value cached by the common clock framework. This series makes the EMC clock rate uncached on Tegra234, Tegra238 and Tegra264, and adds the pieces needed to identify the EMC clock on each of these chips.

The EMC clock ID differs per chip (TEGRA234_CLK_EMC=31, TEGRA238_CLK_EMC=43, TEGRA264_CLK_EMC=290), while the "nvidia,tegra186-bpmp" fallback compatible and the tegra186_soc data are shared across several chips. To avoid detecting the chip at runtime, the EMC clock ID is carried in per-SoC BPMP data selected by the device tree compatible.

Patch 1 adds the "nvidia,tegra238-bpmp" compatible to the binding, together with the Tegra238 clock ID header. Patch 2 adds dedicated SoC data for Tegra234, Tegra238 and Tegra264, selected by their specific compatibles, and builds the BPMP driver for CONFIG_ARCH_TEGRA_238_SOC. Patch 3 adds an emc_clk_id field to struct tegra_bpmp_soc and sets it using the TEGRA*_CLK_EMC clock ID macros. Patch 4 then sets CLK_GET_RATE_NOCACHE on the clock matching that ID.

The series touches both the clock and the firmware code. Patch 4 depends on patch 3, which in turn depends on patch 1, so I would suggest taking the whole series through the Tegra tree with an Acked-by from the clock maintainers.

Changes in v2:
- Squash "dt-bindings: clock: Add Tegra238 BPMP clock IDs" into "dt-bindings: firmware: tegra186-bpmp: Add Tegra238 compatible".
- Reword the binding commit message to state that the Tegra238 SoC is fully compatible with the Tegra186 BPMP.

v1: https://lore.kernel.org/all/[email protected]/

Johnny Liu (4):
dt-bindings: firmware: tegra186-bpmp: Add Tegra238 BPMP
firmware: tegra: bpmp: Add Tegra238 support
firmware: tegra: bpmp: Add per-SoC EMC clock ID
clk: tegra: bpmp: Do not cache the EMC clock rate

 .../firmware/nvidia,tegra186-bpmp.yaml        |   1 +
 drivers/clk/tegra/clk-bpmp.c                  |   3 +
 drivers/firmware/tegra/Makefile               |   1 +
 drivers/firmware/tegra/bpmp.c                 |  61 ++--
 include/dt-bindings/clock/nvidia,tegra238.h   | 279 ++++++++++++++++++
 include/soc/tegra/bpmp.h                      |   1 +
 6 files changed, 329 insertions(+), 17 deletions(-)
 create mode 100644 include/dt-bindings/clock/nvidia,tegra238.h
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH v2 1/4 dt-bindings: firmware: tegra186-bpmp: Add Tegra238 BPMP

The Tegra238 SoC is fully compatible with the Tegra186 BPMP.

Add the clock IDs exposed by the BPMP firmware on Tegra238.

---
 .../firmware/nvidia,tegra186-bpmp.yaml        |   1 +
 include/dt-bindings/clock/nvidia,tegra238.h   | 279 ++++++++++++++++++
 2 files changed, 280 insertions(+)
 create mode 100644 include/dt-bindings/clock/nvidia,tegra238.h
Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.yaml +1 -0
index 3c44fe607e12..4011fdf4a54d 100644
@@ -70,6 +70,7 @@ properties:
           - enum:
               - nvidia,tegra194-bpmp
               - nvidia,tegra234-bpmp
+              - nvidia,tegra238-bpmp
               - nvidia,tegra264-bpmp
           - const: nvidia,tegra186-bpmp
       - const: nvidia,tegra186-bpmp
include/dt-bindings/clock/nvidia,tegra238.h new file +279 -0

279 lines not on this page · raw message

Signature · 1 line
2.43.0
author
#3 lore raw

PATCH v2 2/4 firmware: tegra: bpmp: Add Tegra238 support

In reply to Johnny Liu

The "nvidia,tegra186-bpmp" compatible and tegra186_soc data are shared by Tegra186, Tegra194, Tegra234 and Tegra264. Tegra238 has its own BPMP compatible, so give Tegra234, Tegra238 and Tegra264 dedicated SoC data selected through their specific compatibles, built on top of a common TEGRA186_BPMP_SOC_COMMON initializer. This allows chip specific properties to be described in the SoC data. Tegra186 and Tegra194 keep using tegra186_soc.

Also build bpmp-tegra186.o and the shared match table for CONFIG_ARCH_TEGRA_238_SOC, so that a Tegra238-only configuration binds the driver.

---
 drivers/firmware/tegra/Makefile |  1 +
 drivers/firmware/tegra/bpmp.c   | 54 ++++++++++++++++++++++-----------
 2 files changed, 38 insertions(+), 17 deletions(-)
drivers/firmware/tegra/Makefile +1 -0
index 97f7a5db9d0a..21e87f3afffe 100644
@@ -4,6 +4,7 @@ tegra-bpmp-$(CONFIG_ARCH_TEGRA_210_SOC)	+= bpmp-tegra210.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_186_SOC)	+= bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_194_SOC)	+= bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_234_SOC)	+= bpmp-tegra186.o
+tegra-bpmp-$(CONFIG_ARCH_TEGRA_238_SOC)	+= bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_264_SOC)	+= bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_DEBUG_FS)	+= bpmp-debugfs.o
 tegra-bpmp-$(CONFIG_SYSFS)	+= bpmp-sysfs.o
drivers/firmware/tegra/bpmp.c +37 -17

70 lines not on this page · raw message

Signature · 1 line
2.43.0
#4 lore raw

Re: [PATCH v2 2/4] firmware: tegra: bpmp: Add Tegra238 support

Quoted 12 lines · Johnny Liu

The "nvidia,tegra186-bpmp" compatible and tegra186_soc data are shared by Tegra186, Tegra194, Tegra234 and Tegra264. Tegra238 has its own BPMP compatible, so give Tegra234, Tegra238 and Tegra264 dedicated SoC data selected through their specific compatibles, built on top of a common TEGRA186_BPMP_SOC_COMMON initializer. This allows chip specific properties to be described in the SoC data. Tegra186 and Tegra194 keep using tegra186_soc.

Also build bpmp-tegra186.o and the shared match table for CONFIG_ARCH_TEGRA_238_SOC, so that a Tegra238-only configuration binds the driver.

Quoted 5 lines
---
 drivers/firmware/tegra/Makefile |  1 +
 drivers/firmware/tegra/bpmp.c   | 54 ++++++++++++++++++++++-----------
 2 files changed, 38 insertions(+), 17 deletions(-)

This refactoring in this patch makes no sense unless you first read the next patch, plus it has the unrelated factor of adding Tegra238 support, which makes it quite confusing.

Can you move the TEGRA186_BPMP_SOC_COMMON refactoring into the 'per-SoC EMC clock ID' patch, and have the Tegra238 addition as a separate patch before or after it?

Thanks!
Mikko

Quoted 93 lines
drivers/firmware/tegra/Makefile +1 -0
index 97f7a5db9d0a..21e87f3afffe 100644
@@ -4,6 +4,7 @@ tegra-bpmp-$(CONFIG_ARCH_TEGRA_210_SOC)	+= bpmp-tegra210.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_186_SOC)	+= bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_194_SOC)	+= bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_234_SOC)	+= bpmp-tegra186.o
+tegra-bpmp-$(CONFIG_ARCH_TEGRA_238_SOC)	+= bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_264_SOC)	+= bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_DEBUG_FS)	+= bpmp-debugfs.o
 tegra-bpmp-$(CONFIG_SYSFS)	+= bpmp-sysfs.o
drivers/firmware/tegra/bpmp.c +37 -17
index d3508e98e338..beeb385870f5 100644
@@ -1131,25 +1131,41 @@ static const struct dev_pm_ops tegra_bpmp_pm_ops = {
 #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \
     IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \
     IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) || \
+    IS_ENABLED(CONFIG_ARCH_TEGRA_238_SOC) || \
     IS_ENABLED(CONFIG_ARCH_TEGRA_264_SOC)
+#define TEGRA186_BPMP_SOC_COMMON					\
+	.channels = {							\
+		.cpu_tx = {						\
+			.offset = 3,					\
+			.timeout = 60 * USEC_PER_SEC,			\
+		},							\
+		.thread = {						\
+			.offset = 0,					\
+			.count = 3,					\
+			.timeout = 600 * USEC_PER_SEC,			\
+		},							\
+		.cpu_rx = {						\
+			.offset = 13,					\
+			.timeout = 0,					\
+		},							\
+	},								\
+	.ops = &tegra186_bpmp_ops,					\
+	.num_resets = 193
+
 static const struct tegra_bpmp_soc tegra186_soc = {
-	.channels = {
-		.cpu_tx = {
-			.offset = 3,
-			.timeout = 60 * USEC_PER_SEC,
-		},
-		.thread = {
-			.offset = 0,
-			.count = 3,
-			.timeout = 600 * USEC_PER_SEC,
-		},
-		.cpu_rx = {
-			.offset = 13,
-			.timeout = 0,
-		},
-	},
-	.ops = &tegra186_bpmp_ops,
-	.num_resets = 193,
+	TEGRA186_BPMP_SOC_COMMON,
+};
+
+static const struct tegra_bpmp_soc tegra234_soc = {
+	TEGRA186_BPMP_SOC_COMMON,
+};
+
+static const struct tegra_bpmp_soc tegra238_soc = {
+	TEGRA186_BPMP_SOC_COMMON,
+};
+
+static const struct tegra_bpmp_soc tegra264_soc = {
+	TEGRA186_BPMP_SOC_COMMON,
 };
 #endif
 
@@ -1180,8 +1196,12 @@ static const struct of_device_id tegra_bpmp_match[] = {
 #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \
     IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \
     IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) || \
+    IS_ENABLED(CONFIG_ARCH_TEGRA_238_SOC) || \
     IS_ENABLED(CONFIG_ARCH_TEGRA_264_SOC)
 	{ .compatible = "nvidia,tegra186-bpmp", .data = &tegra186_soc },
+	{ .compatible = "nvidia,tegra234-bpmp", .data = &tegra234_soc },
+	{ .compatible = "nvidia,tegra238-bpmp", .data = &tegra238_soc },
+	{ .compatible = "nvidia,tegra264-bpmp", .data = &tegra264_soc },
 #endif
 #if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)
 	{ .compatible = "nvidia,tegra210-bpmp", .data = &tegra210_soc },
Signature · 1 line
2.43.0
author
#5 lore raw

Re: [PATCH v2 2/4] firmware: tegra: bpmp: Add Tegra238 support

Quoted 19 lines · Mikko Perttunen
Quoted 12 lines · Johnny Liu

The "nvidia,tegra186-bpmp" compatible and tegra186_soc data are shared by Tegra186, Tegra194, Tegra234 and Tegra264. Tegra238 has its own BPMP compatible, so give Tegra234, Tegra238 and Tegra264 dedicated SoC data selected through their specific compatibles, built on top of a common TEGRA186_BPMP_SOC_COMMON initializer. This allows chip specific properties to be described in the SoC data. Tegra186 and Tegra194 keep using tegra186_soc.

Also build bpmp-tegra186.o and the shared match table for CONFIG_ARCH_TEGRA_238_SOC, so that a Tegra238-only configuration binds the driver.

Quoted 5 lines
---
 drivers/firmware/tegra/Makefile |  1 +
 drivers/firmware/tegra/bpmp.c   | 54 ++++++++++++++++++++++-----------
 2 files changed, 38 insertions(+), 17 deletions(-)
Quoted 3 lines

This refactoring in this patch makes no sense unless you first read the next patch, plus it has the unrelated factor of adding Tegra238 support, which makes it quite confusing.

Yes, I agree with you. This patch makes sense only after reading the next patch in the patch series.

Quoted 3 lines

Can you move the TEGRA186_BPMP_SOC_COMMON refactoring into the 'per-SoC EMC clock ID' patch, and have the Tegra238 addition as a separate patch before or after it?

Ack, I will move this refactor in the 'per-SoC EMC clock ID' patch.

[...]

Best Regards,
Johnny Liu

Quoted 96 lines
Quoted 92 lines
drivers/firmware/tegra/Makefile +1 -0
index 97f7a5db9d0a..21e87f3afffe 100644
@@ -4,6 +4,7 @@ tegra-bpmp-$(CONFIG_ARCH_TEGRA_210_SOC)	+= bpmp-tegra210.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_186_SOC)	+= bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_194_SOC)	+= bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_234_SOC)	+= bpmp-tegra186.o
+tegra-bpmp-$(CONFIG_ARCH_TEGRA_238_SOC)	+= bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_ARCH_TEGRA_264_SOC)	+= bpmp-tegra186.o
 tegra-bpmp-$(CONFIG_DEBUG_FS)	+= bpmp-debugfs.o
 tegra-bpmp-$(CONFIG_SYSFS)	+= bpmp-sysfs.o
drivers/firmware/tegra/bpmp.c +37 -17
index d3508e98e338..beeb385870f5 100644
@@ -1131,25 +1131,41 @@ static const struct dev_pm_ops tegra_bpmp_pm_ops = {
 #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \
     IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \
     IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) || \
+    IS_ENABLED(CONFIG_ARCH_TEGRA_238_SOC) || \
     IS_ENABLED(CONFIG_ARCH_TEGRA_264_SOC)
+#define TEGRA186_BPMP_SOC_COMMON					\
+	.channels = {							\
+		.cpu_tx = {						\
+			.offset = 3,					\
+			.timeout = 60 * USEC_PER_SEC,			\
+		},							\
+		.thread = {						\
+			.offset = 0,					\
+			.count = 3,					\
+			.timeout = 600 * USEC_PER_SEC,			\
+		},							\
+		.cpu_rx = {						\
+			.offset = 13,					\
+			.timeout = 0,					\
+		},							\
+	},								\
+	.ops = &tegra186_bpmp_ops,					\
+	.num_resets = 193
+
 static const struct tegra_bpmp_soc tegra186_soc = {
-	.channels = {
-		.cpu_tx = {
-			.offset = 3,
-			.timeout = 60 * USEC_PER_SEC,
-		},
-		.thread = {
-			.offset = 0,
-			.count = 3,
-			.timeout = 600 * USEC_PER_SEC,
-		},
-		.cpu_rx = {
-			.offset = 13,
-			.timeout = 0,
-		},
-	},
-	.ops = &tegra186_bpmp_ops,
-	.num_resets = 193,
+	TEGRA186_BPMP_SOC_COMMON,
+};
+
+static const struct tegra_bpmp_soc tegra234_soc = {
+	TEGRA186_BPMP_SOC_COMMON,
+};
+
+static const struct tegra_bpmp_soc tegra238_soc = {
+	TEGRA186_BPMP_SOC_COMMON,
+};
+
+static const struct tegra_bpmp_soc tegra264_soc = {
+	TEGRA186_BPMP_SOC_COMMON,
 };
 #endif
 
@@ -1180,8 +1196,12 @@ static const struct of_device_id tegra_bpmp_match[] = {
 #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \
     IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \
     IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) || \
+    IS_ENABLED(CONFIG_ARCH_TEGRA_238_SOC) || \
     IS_ENABLED(CONFIG_ARCH_TEGRA_264_SOC)
 	{ .compatible = "nvidia,tegra186-bpmp", .data = &tegra186_soc },
+	{ .compatible = "nvidia,tegra234-bpmp", .data = &tegra234_soc },
+	{ .compatible = "nvidia,tegra238-bpmp", .data = &tegra238_soc },
+	{ .compatible = "nvidia,tegra264-bpmp", .data = &tegra264_soc },
 #endif
 #if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)
 	{ .compatible = "nvidia,tegra210-bpmp", .data = &tegra210_soc },
Signature · 1 line
2.43.0
author
#6 lore raw

PATCH v2 3/4 firmware: tegra: bpmp: Add per-SoC EMC clock ID

In reply to Johnny Liu

The EMC clock ID differs per chip (TEGRA234_CLK_EMC=31, TEGRA238_CLK_EMC=43, TEGRA264_CLK_EMC=290).

Add an emc_clk_id field to struct tegra_bpmp_soc and set it for Tegra234, Tegra238 and Tegra264. Tegra186 and Tegra194 have no EMC clock ID and leave it unset.

---
 drivers/firmware/tegra/bpmp.c | 7 +++++++
 include/soc/tegra/bpmp.h      | 1 +
 2 files changed, 8 insertions(+)
drivers/firmware/tegra/bpmp.c +7 -0
index beeb385870f5..06da888535dc 100644
@@ -21,6 +21,10 @@
 #include <soc/tegra/bpmp-abi.h>
 #include <soc/tegra/ivc.h>
 
+#include <dt-bindings/clock/nvidia,tegra238.h>
+#include <dt-bindings/clock/nvidia,tegra264.h>
+#include <dt-bindings/clock/tegra234-clock.h>
+
 #include "bpmp-private.h"
 
 #define MSG_ACK		BIT(0)
@@ -1158,14 +1162,17 @@ static const struct tegra_bpmp_soc tegra186_soc = {
 
 static const struct tegra_bpmp_soc tegra234_soc = {
 	TEGRA186_BPMP_SOC_COMMON,
+	.emc_clk_id = TEGRA234_CLK_EMC,
 };
 
 static const struct tegra_bpmp_soc tegra238_soc = {
 	TEGRA186_BPMP_SOC_COMMON,
+	.emc_clk_id = TEGRA238_CLK_EMC,
 };
 
 static const struct tegra_bpmp_soc tegra264_soc = {
 	TEGRA186_BPMP_SOC_COMMON,
+	.emc_clk_id = TEGRA264_CLK_EMC,
 };
 #endif
 
include/soc/tegra/bpmp.h +1 -0
index f55db918ccb1..40e2db8e69cc 100644
@@ -31,6 +31,7 @@ struct tegra_bpmp_soc {
 	const struct tegra_bpmp_ops *ops;
 	const struct tegra_bpmp_mbwt_soc *mbwt;
 	unsigned int num_resets;
+	unsigned int emc_clk_id;
 };
 
 struct tegra_bpmp_mb_data {
Signature · 1 line
2.43.0
#7 lore raw

Re: [PATCH v2 3/4] firmware: tegra: bpmp: Add per-SoC EMC clock ID

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] firmware: tegra: bpmp: missing emc_clk_id for Tegra186 and Tegra194 --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] firmware: tegra: bpmp: missing emc_clk_id for Tegra186 and Tegra194 --

commit cbaa54ccaf9df29aa946e309eb402aa8387ad5ef
Author: Johnny Liu <[email protected]>

firmware: tegra: bpmp: Add per-SoC EMC clock ID

This commit adds an emc_clk_id field to struct tegra_bpmp_soc and populates it for Tegra234, Tegra238, and Tegra264 while leaving it unset for Tegra186 and Tegra194.

Quoted 4 lines
drivers/firmware/tegra/bpmp.c +0 -0
index beeb385870f59..06da888535dc0 100644

[ ... ]

drivers/firmware/tegra/bpmp.c static const struct tegra_bpmp_soc tegra186_soc = { · line 1166

Quoted 6 lines
drivers/firmware/tegra/bpmp.c +1 -0
@@ -1158,14 +1162,17 @@ static const struct tegra_bpmp_soc tegra186_soc = {
 
 static const struct tegra_bpmp_soc tegra234_soc = {
 	TEGRA186_BPMP_SOC_COMMON,
+	.emc_clk_id = TEGRA234_CLK_EMC,
 };

[Severity: Medium]
The commit message states that Tegra186 and Tegra194 have no EMC clock ID and leaves emc_clk_id unset in tegra186_soc. Is that accurate for those two SoCs?

Both SoCs define BPMP EMC clock IDs in their device tree binding headers:

include/dt-bindings/clock/tegra186-clock.h:

    #define TEGRA186_CLK_EMC 58

include/dt-bindings/clock/tegra194-clock.h:

    #define TEGRA194_CLK_EMC			31

Their external-memory-controller device tree nodes (handled by drivers/memory/tegra/tegra186-emc.c) also consume those clocks from the BPMP node:

arch/arm64/boot/dts/nvidia/tegra186.dtsi:

    emc: external-memory-controller@2c60000 {
        compatible = "nvidia,tegra186-emc";
        ...
        clocks = <&bpmp TEGRA186_CLK_EMC>;

arch/arm64/boot/dts/nvidia/tegra194.dtsi:

    emc: external-memory-controller@2c60000 {
        compatible = "nvidia,tegra194-emc";
        ...
        clocks = <&bpmp TEGRA194_CLK_EMC>;

In the follow-up commit ("clk: tegra: bpmp: Do not cache the EMC clock rate"), tegra_bpmp_clk_register() in drivers/clk/tegra/clk-bpmp.c checks if (bpmp->soc->emc_clk_id && info->id == bpmp->soc->emc_clk_id) before setting CLK_GET_RATE_NOCACHE. With emc_clk_id left at 0 in tegra186_soc, tegra_bpmp_clk_register() will skip setting CLK_GET_RATE_NOCACHE on both Tegra186 and Tegra194.

In addition, because the BPMP node in arch/arm64/boot/dts/nvidia/tegra194.dtsi uses compatible = "nvidia,tegra186-bpmp", Tegra186 and Tegra194 currently share tegra186_soc even though their EMC clock IDs differ (58 vs 31). Should Tegra186 and Tegra194 also have their EMC clock IDs configured?

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
author
#8 lore raw

PATCH v2 4/4 clk: tegra: bpmp: Do not cache the EMC clock rate

In reply to Johnny Liu

EMC clock scaling is managed by the BPMP itself without kernel involvement. When the rate changes on the BPMP side, clk_get_rate() on the kernel side returns the stale value cached by the common clock framework instead of the rate programmed by the BPMP.

Set CLK_GET_RATE_NOCACHE on the EMC clock, identified by the per-SoC emc_clk_id from the BPMP SoC data, so that rate queries are forwarded to the BPMP.

---
 drivers/clk/tegra/clk-bpmp.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/clk/tegra/clk-bpmp.c +3 -0
index 067a8555c4e7..ddbc528cf93a 100644
@@ -588,6 +588,9 @@ tegra_bpmp_clk_register(struct tegra_bpmp *bpmp,
 
 	init.parent_names = parents;
 
+	if (bpmp->soc->emc_clk_id && info->id == bpmp->soc->emc_clk_id)
+		init.flags = CLK_GET_RATE_NOCACHE;
+
 	err = devm_clk_hw_register(bpmp->dev, &clk->hw);
 
 	kfree(parents);
Signature · 1 line
2.43.0