Skip to contentSkip to conversation

Add Mediatek MT8173 cpufreq driver

PATCH RESEND Applied Pi-Cheng Chen 7 participants 19 messages Aug 17, 2015 – Apr 21, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v6 cover Add Mediatek MT8173 cpufreq driver

MT8173 is a ARMv8 based SoC with 2 clusters. All CPUs in a single cluster share the same power and clock domain. This series tries to add cpufreq support for MT8173 SoC. The v6 of this series is resent with Acks added.

changes in v6:
- Move clock and regulator consumer properties document to the device tree bindings documents of MT8173 CPU DVFS clock driver
- Add change log to describe what is implemented in the MT8173 cpufreq driver
- Add missed rcu_read_unlock() in the error path
- Move of_init_opp_table() call to make sure all required hardware resources are already there before it is called
- Add comments to describe why both platform driver and deivce registration codes are put in the initcall function
- Use the term "voltage tracking" instead of "voltage trace" according to an internal SoC document

changes in v5:
- Move resource allocation code from init() into probe() and remove some unused functions due to this change
- Fix descriptions for device tree binding document
- Address review comments for last version
- Register CPU cooling device

Changes in v4:
- Add bindings for MT8173 cpufreq driver
- Move OPP table back into device tree
- Address comments for last version

Changes in v3:
- Implement MT8173 specific standalone cpufreq driver instead of using cpufreq-dt driver
- Define OPP table in the driver source code until new OPP binding is ready

Changes in v2:
- Add intermediate frequency support in cpufreq-dt driver
- Use voltage scaling code of cpufreq-dt for little cluster instead of implementaion in notifier of mtk-cpufreq driver
- Code refinement for mtk-cpufreq driver

Pi-Cheng Chen (3):
dt-bindings: mediatek: Add MT8173 CPU DVFS clock bindings
cpufreq: mediatek: Add MT8173 cpufreq driver
arm64: dts: mt8173: Add mt8173 cpufreq driver support

 .../devicetree/bindings/clock/mt8173-cpu-dvfs.txt  |  83 ++++
 arch/arm64/boot/dts/mediatek/mt8173-evb.dts        |  18 +
 arch/arm64/boot/dts/mediatek/mt8173.dtsi           |  64 +++
 drivers/cpufreq/Kconfig.arm                        |   7 +
 drivers/cpufreq/Makefile                           |   1 +
 drivers/cpufreq/mt8173-cpufreq.c                   | 524 +++++++++++++++++++++
 6 files changed, 697 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/mt8173-cpu-dvfs.txt
 create mode 100644 drivers/cpufreq/mt8173-cpufreq.c
Signature · 1 line
1.9.1
#1 lore raw

PATCH RESEND v6 1/3 dt-bindings: mediatek: Add MT8173 CPU DVFS clock bindings

This patch adds the clock and regulator consumer properties part of document for CPU DVFS clocks on Mediatek MT8173 SoC.

---
 .../devicetree/bindings/clock/mt8173-cpu-dvfs.txt  | 83 ++++++++++++++++++++++
 1 file changed, 83 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/mt8173-cpu-dvfs.txt
Documentation/devicetree/bindings/clock/mt8173-cpu-dvfs.txt new file +83 -0
new file mode 100644
index 0000000..52b457c
@@ -0,0 +1,83 @@
+Device Tree Clock bindins for CPU DVFS of Mediatek MT8173 SoC
+
+Required properties:
+- clocks: A list of phandle + clock-specifier pairs for the clocks listed in clock names.
+- clock-names: Should contain the following:
+	"cpu"		- The multiplexer for clock input of CPU cluster.
+	"intermediate"	- A parent of "cpu" clock which is used as "intermediate" clock
+			  source (usually MAINPLL) when the original CPU PLL is under
+			  transition and not stable yet.
+	Please refer to Documentation/devicetree/bindings/clk/clock-bindings.txt for
+	generic clock consumer properties.
+- proc-supply: Regulator for Vproc of CPU cluster.
+
+Optional properties:
+- sram-supply: Regulator for Vsram of CPU cluster. When present, the cpufreq driver
+	       needs to do "voltage tracking" to step by step scale up/down Vproc and
+	       Vsram to fit SoC specific needs. When absent, the voltage scaling
+	       flow is handled by hardware, hence no software "voltage tracking" is
+	       needed.
+
+Example:
+--------
+	cpu0: cpu at 0 {
+		device_type = "cpu";
+		compatible = "arm,cortex-a53";
+		reg = <0x000>;
+		enable-method = "psci";
+		cpu-idle-states = <&CPU_SLEEP_0>;
+		clocks = <&infracfg CLK_INFRA_CA53SEL>,
+			 <&apmixedsys CLK_APMIXED_MAINPLL>;
+		clock-names = "cpu", "intermediate";
+	};
+
+	cpu1: cpu at 1 {
+		device_type = "cpu";
+		compatible = "arm,cortex-a53";
+		reg = <0x001>;
+		enable-method = "psci";
+		cpu-idle-states = <&CPU_SLEEP_0>;
+		clocks = <&infracfg CLK_INFRA_CA53SEL>,
+			 <&apmixedsys CLK_APMIXED_MAINPLL>;
+		clock-names = "cpu", "intermediate";
+	};
+
+	cpu2: cpu at 100 {
+		device_type = "cpu";
+		compatible = "arm,cortex-a57";
+		reg = <0x100>;
+		enable-method = "psci";
+		cpu-idle-states = <&CPU_SLEEP_0>;
+		clocks = <&infracfg CLK_INFRA_CA57SEL>,
+			 <&apmixedsys CLK_APMIXED_MAINPLL>;
+		clock-names = "cpu", "intermediate";
+	};
+
+	cpu3: cpu at 101 {
+		device_type = "cpu";
+		compatible = "arm,cortex-a57";
+		reg = <0x101>;
+		enable-method = "psci";
+		cpu-idle-states = <&CPU_SLEEP_0>;
+		clocks = <&infracfg CLK_INFRA_CA57SEL>,
+			 <&apmixedsys CLK_APMIXED_MAINPLL>;
+		clock-names = "cpu", "intermediate";
+	};
+
+	&cpu0 {
+		proc-supply = <&mt6397_vpca15_reg>;
+	};
+
+	&cpu1 {
+		proc-supply = <&mt6397_vpca15_reg>;
+	};
+
+	&cpu2 {
+		proc-supply = <&da9211_vcpu_reg>;
+		sram-supply = <&mt6397_vsramca7_reg>;
+	};
+
+	&cpu3 {
+		proc-supply = <&da9211_vcpu_reg>;
+		sram-supply = <&mt6397_vsramca7_reg>;
+	};
Signature · 1 line
1.9.1
#2 lore raw

PATCH RESEND v6 2/3 cpufreq: mediatek: Add MT8173 cpufreq driver

In reply to Pi-Cheng Chen

Mediatek MT8173 is an ARMv8 based quad-core (2*Cortex-A53 and 2*Cortex-A72) SoC with duall clusters. For each cluster, two voltage inputs, Vproc and Vsram are supplied by two regulators. For the big cluster, two regulators come from different PMICs. In this case, when scaling voltage inputs of the cluster, the voltages of two regulator inputs need to be controlled by software explicitly under the SoC specific limitation:

	100mV < Vsram - Vproc < 200mV

which is called 'voltage tracking' mechanism. And when scaling the frequency of cluster clock input, the input MUX need to be parented to another "intermediate" stable PLL first and reparented to the original PLL once the original PLL is stable at the target frequency. This patch implements those mechanisms to enable CPU DVFS support for Mediatek MT8173 SoC.

---
 drivers/cpufreq/Kconfig.arm      |   7 +
 drivers/cpufreq/Makefile         |   1 +
 drivers/cpufreq/mt8173-cpufreq.c | 524 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 532 insertions(+)
 create mode 100644 drivers/cpufreq/mt8173-cpufreq.c
drivers/cpufreq/Kconfig.arm +7 -0
index cc8a71c..2bacf24 100644
@@ -130,6 +130,13 @@ config ARM_KIRKWOOD_CPUFREQ
 	  This adds the CPUFreq driver for Marvell Kirkwood
 	  SoCs.
 
+config ARM_MT8173_CPUFREQ
+	bool "Mediatek MT8173 CPUFreq support"
+	depends on ARCH_MEDIATEK && REGULATOR
+	select PM_OPP
+	help
+	  This adds the CPUFreq driver support for Mediatek MT8173 SoC.
+
 config ARM_OMAP2PLUS_CPUFREQ
 	bool "TI OMAP2+"
 	depends on ARCH_OMAP2PLUS
drivers/cpufreq/Makefile +1 -0
index 2169bf7..9c75faf 100644
@@ -62,6 +62,7 @@ obj-$(CONFIG_ARM_HISI_ACPU_CPUFREQ)	+= hisi-acpu-cpufreq.o
 obj-$(CONFIG_ARM_IMX6Q_CPUFREQ)		+= imx6q-cpufreq.o
 obj-$(CONFIG_ARM_INTEGRATOR)		+= integrator-cpufreq.o
 obj-$(CONFIG_ARM_KIRKWOOD_CPUFREQ)	+= kirkwood-cpufreq.o
+obj-$(CONFIG_ARM_MT8173_CPUFREQ)	+= mt8173-cpufreq.o
 obj-$(CONFIG_ARM_OMAP2PLUS_CPUFREQ)	+= omap-cpufreq.o
 obj-$(CONFIG_ARM_PXA2xx_CPUFREQ)	+= pxa2xx-cpufreq.o
 obj-$(CONFIG_PXA3xx)			+= pxa3xx-cpufreq.o
drivers/cpufreq/mt8173-cpufreq.c new file +524 -0

524 lines not on this page · raw message

Signature · 1 line
1.9.1
#3 lore raw

Re: [RESEND PATCH 2/3 v6] cpufreq: mediatek: Add MT8173 cpufreq driver

Hi,

Quoted 25 lines · Pi-Cheng Chen

Mediatek MT8173 is an ARMv8 based quad-core (2*Cortex-A53 and 2*Cortex-A72) SoC with duall clusters. For each cluster, two voltage inputs, Vproc and Vsram are supplied by two regulators. For the big cluster, two regulators come from different PMICs. In this case, when scaling voltage inputs of the cluster, the voltages of two regulator inputs need to be controlled by software explicitly under the SoC specific limitation:

	100mV < Vsram - Vproc < 200mV

which is called 'voltage tracking' mechanism. And when scaling the frequency of cluster clock input, the input MUX need to be parented to another "intermediate" stable PLL first and reparented to the original PLL once the original PLL is stable at the target frequency. This patch implements those mechanisms to enable CPU DVFS support for Mediatek MT8173 SoC.

---
 drivers/cpufreq/Kconfig.arm      |   7 +
 drivers/cpufreq/Makefile         |   1 +
 drivers/cpufreq/mt8173-cpufreq.c | 524 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 532 insertions(+)
 create mode 100644 drivers/cpufreq/mt8173-cpufreq.c

[...]

Quoted 13 lines
drivers/cpufreq/mt8173-cpufreq.c new file +13 -0
+static struct platform_driver mt8173_cpufreq_platdrv = {
+	.driver = {
+		.name	= "mt8173-cpufreq",
+	},
+	.probe		= mt8173_cpufreq_probe,
+};
+
+static int mt8173_cpufreq_driver_init(void)
+{
+	struct platform_device *pdev;
+	int err;
+
+	err = platform_driver_register(&mt8173_cpufreq_platdrv);

drivers/cpufreq/mt8173-cpufreq.c line 516

Quoted 10 lines
drivers/cpufreq/mt8173-cpufreq.c new file +10 -0
+	if (err)
+		return err;
+
+	/*
+	 * Since there's no place to hold device registration code and no
+	 * device tree based way to match cpufreq driver yet, both the driver
+	 * and the device registration codes are put here to handle defer
+	 * probing.
+	 */
+	pdev = platform_device_register_simple("mt8173-cpufreq", -1, NULL, 0);

This is not very friendly for multiplatform support (mt8173_cpufreq_driver_init() can be called on other platforms, i.e. Samsung Exynos7 one if ARCH_EXYNOS7 is also enabled in the kernel config).

Why can't it be fixed with checking Device Tree with of_machine_is_compatible("mediatek,mt8173") (assuming that it can be used on arm64 like on arm32)?

drivers/cpufreq/mt8173-cpufreq.c line 524

Quoted 8 lines
drivers/cpufreq/mt8173-cpufreq.c new file +8 -0
+	if (IS_ERR(pdev)) {
+		pr_err("failed to register mtk-cpufreq platform device\n");
+		return PTR_ERR(pdev);
+	}
+
+	return 0;
+}
+device_initcall(mt8173_cpufreq_driver_init);

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

maintainer
#4 lore raw

Re: [RESEND PATCH 2/3 v6] cpufreq: mediatek: Add MT8173 cpufreq driver

Quoted 10 lines · Bartlomiej Zolnierkiewicz

drivers/cpufreq/mt8173-cpufreq.c line 516

Quoted 1 line
drivers/cpufreq/mt8173-cpufreq.c new file +1 -0
+	pdev = platform_device_register_simple("mt8173-cpufreq", -1, NULL, 0);

This is not very friendly for multiplatform support (mt8173_cpufreq_driver_init() can be called on other platforms, i.e. Samsung Exynos7 one if ARCH_EXYNOS7 is also enabled in the kernel config).

Why can't it be fixed with checking Device Tree with of_machine_is_compatible("mediatek,mt8173") (assuming that it can be used on arm64 like on arm32)?

Because I asked him to remove that in v5 :( as I somehow had in mind that this wouldn't even compile for other platforms.

@Pi-cheng: Please send v7 only for this patch and add the DT platform check you were doing earlier. Sorry.

Signature · 1 line
viresh
#5 lore raw

PATCH v7 2/3 cpufreq: mediatek: Add MT8173 cpufreq driver

Mediatek MT8173 is an ARMv8 based quad-core (2*Cortex-A53 and 2*Cortex-A72) SoC with duall clusters. For each cluster, two voltage inputs, Vproc and Vsram are supplied by two regulators. For the big cluster, two regulators come from different PMICs. In this case, when scaling voltage inputs of the cluster, the voltages of two regulator inputs need to be controlled by software explicitly under the SoC specific limitation:

	100mV < Vsram - Vproc < 200mV

which is called 'voltage tracking' mechanism. And when scaling the frequency of cluster clock input, the input MUX need to be parented to another "intermediate" stable PLL first and reparented to the original PLL once the original PLL is stable at the target frequency. This patch implements those mechanisms to enable CPU DVFS support for Mediatek MT8173 SoC.

---

Changes in v7:
- add of_machine_is_compatible() check to be multiplatform friendly

---
 drivers/cpufreq/Kconfig.arm      |   7 +
 drivers/cpufreq/Makefile         |   1 +
 drivers/cpufreq/mt8173-cpufreq.c | 527 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 535 insertions(+)
 create mode 100644 drivers/cpufreq/mt8173-cpufreq.c
drivers/cpufreq/Kconfig.arm +7 -0
index cc8a71c..2bacf24 100644
@@ -130,6 +130,13 @@ config ARM_KIRKWOOD_CPUFREQ
 	  This adds the CPUFreq driver for Marvell Kirkwood
 	  SoCs.
 
+config ARM_MT8173_CPUFREQ
+	bool "Mediatek MT8173 CPUFreq support"
+	depends on ARCH_MEDIATEK && REGULATOR
+	select PM_OPP
+	help
+	  This adds the CPUFreq driver support for Mediatek MT8173 SoC.
+
 config ARM_OMAP2PLUS_CPUFREQ
 	bool "TI OMAP2+"
 	depends on ARCH_OMAP2PLUS
drivers/cpufreq/Makefile +1 -0
index 2169bf7..9c75faf 100644
@@ -62,6 +62,7 @@ obj-$(CONFIG_ARM_HISI_ACPU_CPUFREQ)	+= hisi-acpu-cpufreq.o
 obj-$(CONFIG_ARM_IMX6Q_CPUFREQ)		+= imx6q-cpufreq.o
 obj-$(CONFIG_ARM_INTEGRATOR)		+= integrator-cpufreq.o
 obj-$(CONFIG_ARM_KIRKWOOD_CPUFREQ)	+= kirkwood-cpufreq.o
+obj-$(CONFIG_ARM_MT8173_CPUFREQ)	+= mt8173-cpufreq.o
 obj-$(CONFIG_ARM_OMAP2PLUS_CPUFREQ)	+= omap-cpufreq.o
 obj-$(CONFIG_ARM_PXA2xx_CPUFREQ)	+= pxa2xx-cpufreq.o
 obj-$(CONFIG_PXA3xx)			+= pxa3xx-cpufreq.o
drivers/cpufreq/mt8173-cpufreq.c new file +527 -0

527 lines not on this page · raw message

Signature · 1 line
1.9.1
maintainer
#6 lore raw

Re: [PATCH v7 2/3] cpufreq: mediatek: Add MT8173 cpufreq driver

Quoted 17 lines · Pi-Cheng Chen

Mediatek MT8173 is an ARMv8 based quad-core (2*Cortex-A53 and 2*Cortex-A72) SoC with duall clusters. For each cluster, two voltage inputs, Vproc and Vsram are supplied by two regulators. For the big cluster, two regulators come from different PMICs. In this case, when scaling voltage inputs of the cluster, the voltages of two regulator inputs need to be controlled by software explicitly under the SoC specific limitation:

	100mV < Vsram - Vproc < 200mV

which is called 'voltage tracking' mechanism. And when scaling the frequency of cluster clock input, the input MUX need to be parented to another "intermediate" stable PLL first and reparented to the original PLL once the original PLL is stable at the target frequency. This patch implements those mechanisms to enable CPU DVFS support for Mediatek MT8173 SoC.

Quoted 6 lines

---

Changes in v7:
- add of_machine_is_compatible() check to be multiplatform friendly

Looks fine, thanks.

Signature · 1 line
viresh
#7 lore raw

PATCH RESEND v6 3/3 arm64: dts: mt8173: mt8173-evb: Add mt8173 cpufreq driver support

In reply to Pi-Cheng Chen

This patch adds the required properties in device tree to enable MT8173 cpufreq driver.

---
It is based on the top of MT8173 SoC maintainer's tree:
https://github.com/mbgg/linux-mediatek.git v4.2-next/arm64 commit id: e26945245e414eff42ee1ffeaedf198911bf1d77

---
 arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 18 ++++++++
 arch/arm64/boot/dts/mediatek/mt8173.dtsi    | 64 +++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)
arch/arm64/boot/dts/mediatek/mt8173-evb.dts +18 -0
index dc4a3e2..ddb1dc1 100644
@@ -261,6 +261,24 @@
 	};
 };
 
+&cpu0 {
+	proc-supply = <&mt6397_vpca15_reg>;
+};
+
+&cpu1 {
+	proc-supply = <&mt6397_vpca15_reg>;
+};
+
+&cpu2 {
+	proc-supply = <&da9211_vcpu_reg>;
+	sram-supply = <&mt6397_vsramca7_reg>;
+};
+
+&cpu3 {
+	proc-supply = <&da9211_vcpu_reg>;
+	sram-supply = <&mt6397_vsramca7_reg>;
+};
+
 &uart0 {
 	status = "okay";
 };
arch/arm64/boot/dts/mediatek/mt8173.dtsi +64 -0

88 lines not on this page · raw message

Signature · 1 line
1.9.1
#8 lore raw
In reply to Pi-Cheng Chen
Quoted 3 lines · Pi-Cheng Chen

MT8173 is a ARMv8 based SoC with 2 clusters. All CPUs in a single cluster share the same power and clock domain. This series tries to add cpufreq support for MT8173 SoC. The v6 of this series is resent with Acks added.

Hi Rafael,

Not sure if I has missed the merge window. Do I have chance to have this series merged for 4.3? Would you please take [1,2] of this series? Thanks.

Best Regards,
Pi-Cheng

Quoted 54 lines

changes in v6:
- Move clock and regulator consumer properties document to the device tree bindings documents of MT8173 CPU DVFS clock driver
- Add change log to describe what is implemented in the MT8173 cpufreq driver
- Add missed rcu_read_unlock() in the error path
- Move of_init_opp_table() call to make sure all required hardware resources are already there before it is called
- Add comments to describe why both platform driver and deivce registration codes are put in the initcall function
- Use the term "voltage tracking" instead of "voltage trace" according to an internal SoC document

changes in v5:
- Move resource allocation code from init() into probe() and remove some unused functions due to this change
- Fix descriptions for device tree binding document
- Address review comments for last version
- Register CPU cooling device

Changes in v4:
- Add bindings for MT8173 cpufreq driver
- Move OPP table back into device tree
- Address comments for last version

Changes in v3:
- Implement MT8173 specific standalone cpufreq driver instead of using cpufreq-dt driver
- Define OPP table in the driver source code until new OPP binding is ready

Changes in v2:
- Add intermediate frequency support in cpufreq-dt driver
- Use voltage scaling code of cpufreq-dt for little cluster instead of implementaion in notifier of mtk-cpufreq driver
- Code refinement for mtk-cpufreq driver

Pi-Cheng Chen (3):
dt-bindings: mediatek: Add MT8173 CPU DVFS clock bindings
cpufreq: mediatek: Add MT8173 cpufreq driver
arm64: dts: mt8173: Add mt8173 cpufreq driver support

 .../devicetree/bindings/clock/mt8173-cpu-dvfs.txt  |  83 ++++
 arch/arm64/boot/dts/mediatek/mt8173-evb.dts        |  18 +
 arch/arm64/boot/dts/mediatek/mt8173.dtsi           |  64 +++
 drivers/cpufreq/Kconfig.arm                        |   7 +
 drivers/cpufreq/Makefile                           |   1 +
 drivers/cpufreq/mt8173-cpufreq.c                   | 524 +++++++++++++++++++++
 6 files changed, 697 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/mt8173-cpu-dvfs.txt
 create mode 100644 drivers/cpufreq/mt8173-cpufreq.c

--
1.9.1

#9 lore raw
Quoted 9 lines · Pi-Cheng Chen
Quoted 3 lines · Pi-Cheng Chen

MT8173 is a ARMv8 based SoC with 2 clusters. All CPUs in a single cluster share the same power and clock domain. This series tries to add cpufreq support for MT8173 SoC. The v6 of this series is resent with Acks added.

Hi Rafael,

Not sure if I has missed the merge window. Do I have chance to have this series merged for 4.3?

Yes, it should make it.

Quoted 1 line

Would you please take [1,2] of this series?

I'm not sure what you mean. Are you withdrawing the [3/3]?

Thanks,
Rafael

#10 lore raw

Hi Rafael,

Quoted 6 lines · Rafael J. Wysocki
Quoted 5 lines · Pi-Cheng Chen
Quoted 3 lines · Pi-Cheng Chen

MT8173 is a ARMv8 based SoC with 2 clusters. All CPUs in a single cluster share the same power and clock domain. This series tries to add cpufreq support for MT8173 SoC. The v6 of this series is resent with Acks added.

Quoted 8 lines
Quoted 4 lines

Hi Rafael,

Not sure if I has missed the merge window. Do I have chance to have this series merged for 4.3?

Yes, it should make it.

Quoted 1 line

Would you please take [1,2] of this series?

Thanks.

Quoted 2 lines

I'm not sure what you mean. Are you withdrawing the [3/3]?

The [3/3] is based on Mediatek SoC maintainer tree[1] and the patch which introduce a new clock type[2] consumed by MT8173 cpufreq driver. So it will cause some conflicts if it goes through your tree. I am not sure how this should be handled, but should it be merged through Mediatek SoC maintainer tree?

@Matthias?

Thanks

Best Regards,
Pi-Cheng

[1] https://github.com/mbgg/linux-mediatek.git v4.2-next/arm64
[2] http://article.gmane.org/gmane.linux.kernel/2021379

Quoted 4 lines

Thanks,
Rafael

maintainer
#11 lore raw
Quoted 5 lines · Pi-Cheng Chen

The [3/3] is based on Mediatek SoC maintainer tree[1] and the patch which introduce a new clock type[2] consumed by MT8173 cpufreq driver. So it will cause some conflicts if it goes through your tree. I am not sure how this should be handled, but should it be merged through Mediatek SoC maintainer tree?

Just get that applied to MTK tree, it doesn't have any dependency on rest of the patches for build/boot. The only thing is that cpufreq wouldn't work and it will work as soon as Rafael's and MTK's trees are merged by Linus.

Signature · 1 line
viresh
#12 lore raw
Quoted 11 lines · Viresh Kumar
Quoted 5 lines · Pi-Cheng Chen

The [3/3] is based on Mediatek SoC maintainer tree[1] and the patch which introduce a new clock type[2] consumed by MT8173 cpufreq driver. So it will cause some conflicts if it goes through your tree. I am not sure how this should be handled, but should it be merged through Mediatek SoC maintainer tree?

Just get that applied to MTK tree, it doesn't have any dependency on rest of the patches for build/boot. The only thing is that cpufreq wouldn't work and it will work as soon as Rafael's and MTK's trees are merged by Linus.

Thanks for your explanation.

@Rafael, Would you please apply [1,2] to your tree?

@Matthias, Would you please apply [3/3] of this series?

Thanks.

Best Regards,
Pi-Cheng

Quoted 3 lines

--
viresh

#13 lore raw
Quoted 8 lines · Pi-Cheng Chen
Quoted 7 lines · Viresh Kumar
Quoted 5 lines · Pi-Cheng Chen

The [3/3] is based on Mediatek SoC maintainer tree[1] and the patch which introduce a new clock type[2] consumed by MT8173 cpufreq driver. So it will cause some conflicts if it goes through your tree. I am not sure how this should be handled, but should it be merged through Mediatek SoC maintainer tree?

Quoted 8 lines
Quoted 4 lines

Just get that applied to MTK tree, it doesn't have any dependency on rest of the patches for build/boot. The only thing is that cpufreq wouldn't work and it will work as soon as Rafael's and MTK's trees are merged by Linus.

Thanks for your explanation.

@Rafael, Would you please apply [1,2] to your tree?

Applied, thanks!

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#14 lore raw

Matthias,

Quoted 14 lines · Rafael J. Wysocki
Quoted 13 lines · Pi-Cheng Chen
Quoted 11 lines · Viresh Kumar
Quoted 5 lines · Pi-Cheng Chen

The [3/3] is based on Mediatek SoC maintainer tree[1] and the patch which introduce a new clock type[2] consumed by MT8173 cpufreq driver. So it will cause some conflicts if it goes through your tree. I am not sure how this should be handled, but should it be merged through Mediatek SoC maintainer tree?

Just get that applied to MTK tree, it doesn't have any dependency on rest of the patches for build/boot. The only thing is that cpufreq wouldn't work and it will work as soon as Rafael's and MTK's trees are merged by Linus.

Quoted 5 lines
Quoted 3 lines

Thanks for your explanation.

@Rafael, Would you please apply [1,2] to your tree?

Applied, thanks!

Can you please apply [3] from this set to your dts tree?

Quoted 8 lines

--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

maintainer
#15 lore raw
Quoted 17 lines · Daniel Kurtz

Matthias,

Quoted 14 lines · Rafael J. Wysocki
Quoted 13 lines · Pi-Cheng Chen
Quoted 11 lines · Viresh Kumar
Quoted 5 lines · Pi-Cheng Chen

The [3/3] is based on Mediatek SoC maintainer tree[1] and the patch which introduce a new clock type[2] consumed by MT8173 cpufreq driver. So it will cause some conflicts if it goes through your tree. I am not sure how this should be handled, but should it be merged through Mediatek SoC maintainer tree?

Just get that applied to MTK tree, it doesn't have any dependency on rest of the patches for build/boot. The only thing is that cpufreq wouldn't work and it will work as soon as Rafael's and MTK's trees are merged by Linus.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Thanks for your explanation.

@Rafael, Would you please apply [1,2] to your tree?

Applied, thanks!

Can you please apply [3] from this set to your dts tree?

I will as soon as v4.3-rc1 shows up.

maintainer
#16 lore raw
Quoted 28 lines · Matthias Brugger
Quoted 25 lines · Daniel Kurtz

Matthias,

Quoted 21 lines · Rafael J. Wysocki
Quoted 20 lines · Pi-Cheng Chen
Quoted 11 lines · Viresh Kumar
Quoted 9 lines · Pi-Cheng Chen

The [3/3] is based on Mediatek SoC maintainer tree[1] and the patch which
introduce a new clock type[2] consumed by MT8173 cpufreq driver. So it will
cause some conflicts if it goes through your tree. I am not sure how this
should be handled, but should it be merged through Mediatek SoC maintainer
tree?

Quoted 4 lines

Just get that applied to MTK tree, it doesn't have any dependency on rest of the patches for build/boot. The only thing is that cpufreq wouldn't work and it will work as soon as Rafael's and MTK's trees are merged by Linus.

Thanks for your explanation.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

@Rafael, Would you please apply [1,2] to your tree?

Applied, thanks!

Can you please apply [3] from this set to your dts tree?

I will as soon as v4.3-rc1 shows up.

I somehow forgot this patch. Sorry for that.
Applied for v4.6-next/dts64 right now.

Regards,
Matthias

maintainer
#17 lore raw
Quoted 36 lines · Matthias Brugger
Quoted 33 lines · Matthias Brugger
Quoted 30 lines · Daniel Kurtz

Matthias,

Quoted 25 lines · Rafael J. Wysocki
Quoted 19 lines · Pi-Cheng Chen
Quoted 11 lines · Viresh Kumar
Quoted 9 lines · Pi-Cheng Chen

The [3/3] is based on Mediatek SoC maintainer tree[1] and the patch which
introduce a new clock type[2] consumed by MT8173 cpufreq driver. So it will
cause some conflicts if it goes through your tree. I am not sure how this
should be handled, but should it be merged through Mediatek SoC maintainer
tree?

Quoted 5 lines

Just get that applied to MTK tree, it doesn't have any dependency on rest of the patches for build/boot. The only thing is that cpufreq wouldn't work and it will work as soon as Rafael's and MTK's trees are
merged by Linus.

Quoted 3 lines

Thanks for your explanation.

@Rafael, Would you please apply [1,2] to your tree?

Applied, thanks!

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Can you please apply [3] from this set to your dts tree?

I will as soon as v4.3-rc1 shows up.

I somehow forgot this patch. Sorry for that.
Applied for v4.6-next/dts64 right now.

I just realized that CLK_INFRA_CA53SEL and CLK_APMIXED_MAINPLL are not part of the clk driver.

Pi-Cheng, can you check if they got renamed in the meanwhile? Or do we need some clock driver patches that enable this clocks for the series?

Regards,
Matthias

#18 lore raw

Hi Matthias,

Quoted 47 lines · Matthias Brugger
Quoted 36 lines · Matthias Brugger
Quoted 33 lines · Matthias Brugger
Quoted 30 lines · Daniel Kurtz

Matthias,

Quoted 25 lines · Rafael J. Wysocki
Quoted 19 lines · Pi-Cheng Chen
Quoted 11 lines · Viresh Kumar
Quoted 9 lines · Pi-Cheng Chen

The [3/3] is based on Mediatek SoC maintainer tree[1] and the patch which
introduce a new clock type[2] consumed by MT8173 cpufreq driver. So it will
cause some conflicts if it goes through your tree. I am not sure how this
should be handled, but should it be merged through Mediatek SoC maintainer
tree?

Quoted 5 lines

Just get that applied to MTK tree, it doesn't have any dependency on rest of the patches for build/boot. The only thing is that cpufreq wouldn't work and it will work as soon as Rafael's and MTK's trees are
merged by Linus.

Quoted 3 lines

Thanks for your explanation.

@Rafael, Would you please apply [1,2] to your tree?

Applied, thanks!

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Can you please apply [3] from this set to your dts tree?

I will as soon as v4.3-rc1 shows up.

I somehow forgot this patch. Sorry for that.
Applied for v4.6-next/dts64 right now.

Quoted 6 lines

I just realized that CLK_INFRA_CA53SEL and CLK_APMIXED_MAINPLL are not part of the clk driver.

Pi-Cheng, can you check if they got renamed in the meanwhile? Or do we need some clock driver patches that enable this clocks for the series?

Thanks your notice. Unfortunately, we still have no chance let patch with these two clock merged. The last version is [1]. This clock patch will block cpufreq dts [2] and dynamic power dts [3]. Clock maintainer is working on new architecture [4], hopefully we can send new clock patch soon. After that, we will send new cpufreq and dynamic power dts. So please ignore [2] [3] at this moment.

[1]
http://lists.infradead.org/pipermail/linux-arm-kernel/2015-September/369737.html
[2] https://lkml.org/lkml/2015/7/9/206
[3]
http://lists.infradead.org/pipermail/linux-arm-kernel/2016-April/423899.html
[4]
http://lists.infradead.org/pipermail/linux-arm-kernel/2016-March/418796.html

Eddie
Thanks