From: Lin Huang <hl@rock-chips.com> To: heiko@sntech.de, myungjoo.ham@samsung.com Cc: tixy@linaro.org, mark.rutland@arm.com, typ@rock-chips.com, linux-rockchip@lists.infradead.org, airlied@linux.ie, mturquette@baylibre.com, dbasehore@chromium.org, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, dianders@chromium.org, cw00.choi@samsung.com, kyungmin.park@samsung.com, sudeep.holla@arm.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mark.yao@rock-chips.com, Lin Huang <hl@rock-chips.com> Subject: [PATCH v6 0/8] rk3399 support ddr frequency scaling Date: Wed, 17 Aug 2016 06:36:21 +0800 [thread overview] Message-ID: <1471386989-9541-1-git-send-email-hl@rock-chips.com> (raw) rk3399 platform have dfi controller can monitor ddr load, and dcf controller to handle ddr register so we can get the right ddr frequency and make ddr controller happy work(which will implement in bl31). So we do ddr frequency scaling with following flow: kernel bl31 monitor ddr load | | get_target_rate | | pass rate to bl31 clk_set_rate(ddr) --------------------->run dcf flow | | | | wait dcf interrupt<-------------------trigger dcf interrupt | | return Lin Huang (8): clk: rockchip: add new clock-type for the ddrclk clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc clk: rockchip: rk3399: add ddrc clock support Documentation: bindings: add dt documentation for dfi controller PM / devfreq: event: support rockchip dfi controller Documentation: bindings: add dt documentation for rk3399 dmc PM / devfreq: rockchip: add devfreq driver for rk3399 dmc drm/rockchip: Add dmc notifier in vop driver .../bindings/devfreq/event/rockchip-dfi.txt | 20 + .../devicetree/bindings/devfreq/rk3399_dmc.txt | 84 ++++ drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk-ddr.c | 150 +++++++ drivers/clk/rockchip/clk-rk3399.c | 19 + drivers/clk/rockchip/clk.c | 9 + drivers/clk/rockchip/clk.h | 33 ++ drivers/devfreq/Kconfig | 11 + drivers/devfreq/Makefile | 1 + drivers/devfreq/event/Kconfig | 7 + drivers/devfreq/event/Makefile | 1 + drivers/devfreq/event/rockchip-dfi.c | 253 +++++++++++ drivers/devfreq/rk3399_dmc.c | 497 +++++++++++++++++++++ drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 121 ++++- include/dt-bindings/clock/rk3399-cru.h | 1 + include/soc/rockchip/rockchip_sip.h | 27 ++ 16 files changed, 1233 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/devfreq/event/rockchip-dfi.txt create mode 100644 Documentation/devicetree/bindings/devfreq/rk3399_dmc.txt create mode 100644 drivers/clk/rockchip/clk-ddr.c create mode 100644 drivers/devfreq/event/rockchip-dfi.c create mode 100644 drivers/devfreq/rk3399_dmc.c create mode 100644 include/soc/rockchip/rockchip_sip.h -- 2.6.6 *
WARNING: multiple messages have this Message-ID (diff)
From: hl@rock-chips.com (Lin Huang) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 0/8] rk3399 support ddr frequency scaling Date: Wed, 17 Aug 2016 06:36:21 +0800 [thread overview] Message-ID: <1471386989-9541-1-git-send-email-hl@rock-chips.com> (raw) rk3399 platform have dfi controller can monitor ddr load, and dcf controller to handle ddr register so we can get the right ddr frequency and make ddr controller happy work(which will implement in bl31). So we do ddr frequency scaling with following flow: kernel bl31 monitor ddr load | | get_target_rate | | pass rate to bl31 clk_set_rate(ddr) --------------------->run dcf flow | | | | wait dcf interrupt<-------------------trigger dcf interrupt | | return Lin Huang (8): clk: rockchip: add new clock-type for the ddrclk clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc clk: rockchip: rk3399: add ddrc clock support Documentation: bindings: add dt documentation for dfi controller PM / devfreq: event: support rockchip dfi controller Documentation: bindings: add dt documentation for rk3399 dmc PM / devfreq: rockchip: add devfreq driver for rk3399 dmc drm/rockchip: Add dmc notifier in vop driver .../bindings/devfreq/event/rockchip-dfi.txt | 20 + .../devicetree/bindings/devfreq/rk3399_dmc.txt | 84 ++++ drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk-ddr.c | 150 +++++++ drivers/clk/rockchip/clk-rk3399.c | 19 + drivers/clk/rockchip/clk.c | 9 + drivers/clk/rockchip/clk.h | 33 ++ drivers/devfreq/Kconfig | 11 + drivers/devfreq/Makefile | 1 + drivers/devfreq/event/Kconfig | 7 + drivers/devfreq/event/Makefile | 1 + drivers/devfreq/event/rockchip-dfi.c | 253 +++++++++++ drivers/devfreq/rk3399_dmc.c | 497 +++++++++++++++++++++ drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 121 ++++- include/dt-bindings/clock/rk3399-cru.h | 1 + include/soc/rockchip/rockchip_sip.h | 27 ++ 16 files changed, 1233 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/devfreq/event/rockchip-dfi.txt create mode 100644 Documentation/devicetree/bindings/devfreq/rk3399_dmc.txt create mode 100644 drivers/clk/rockchip/clk-ddr.c create mode 100644 drivers/devfreq/event/rockchip-dfi.c create mode 100644 drivers/devfreq/rk3399_dmc.c create mode 100644 include/soc/rockchip/rockchip_sip.h -- 2.6.6 *
next reply other threads:[~2016-08-16 22:36 UTC|newest] Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-08-16 22:36 Lin Huang [this message] 2016-08-16 22:36 ` [PATCH v6 0/8] rk3399 support ddr frequency scaling Lin Huang 2016-08-16 22:36 ` [PATCH v6 1/8] clk: rockchip: add new clock-type for the ddrclk Lin Huang 2016-08-16 22:36 ` Lin Huang 2016-08-16 22:36 ` Lin Huang 2016-08-19 11:33 ` Heiko Stuebner 2016-08-19 11:33 ` Heiko Stuebner 2016-08-19 11:33 ` Heiko Stuebner 2016-08-16 22:36 ` [PATCH v6 2/8] clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc Lin Huang 2016-08-16 22:36 ` Lin Huang 2016-08-16 22:36 ` Lin Huang 2016-08-16 22:36 ` [PATCH v6 3/8] clk: rockchip: rk3399: add ddrc clock support Lin Huang 2016-08-16 22:36 ` Lin Huang 2016-08-19 12:26 ` Heiko Stuebner 2016-08-19 12:26 ` Heiko Stuebner 2016-08-19 12:26 ` Heiko Stuebner 2016-08-16 22:36 ` [PATCH v6 4/8] Documentation: bindings: add dt documentation for dfi controller Lin Huang 2016-08-16 22:36 ` Lin Huang 2016-08-17 0:31 ` Chanwoo Choi 2016-08-17 0:31 ` Chanwoo Choi 2016-08-17 0:41 ` Chanwoo Choi 2016-08-17 0:41 ` Chanwoo Choi 2016-08-17 0:41 ` Chanwoo Choi 2016-08-16 22:36 ` [PATCH v6 5/8] PM / devfreq: event: support rockchip " Lin Huang 2016-08-16 22:36 ` Lin Huang 2016-08-16 22:36 ` [PATCH v6 6/8] Documentation: bindings: add dt documentation for rk3399 dmc Lin Huang 2016-08-16 22:36 ` Lin Huang 2016-08-17 4:50 ` Chanwoo Choi 2016-08-17 4:50 ` Chanwoo Choi 2016-08-21 22:16 ` hl 2016-08-21 22:16 ` hl 2016-08-23 5:05 ` Chanwoo Choi 2016-08-23 5:05 ` Chanwoo Choi 2016-08-23 18:53 ` hl 2016-08-23 18:53 ` hl 2016-08-16 22:36 ` [PATCH v6 7/8] PM / devfreq: rockchip: add devfreq driver " Lin Huang 2016-08-16 22:36 ` Lin Huang 2016-08-17 0:37 ` Chanwoo Choi 2016-08-17 0:37 ` Chanwoo Choi 2016-08-17 0:37 ` Chanwoo Choi 2016-08-16 22:36 ` [PATCH v6 8/8] drm/rockchip: Add dmc notifier in vop driver Lin Huang 2016-08-16 22:36 ` Lin Huang 2016-08-17 18:14 ` Sean Paul 2016-08-17 18:14 ` Sean Paul 2016-08-17 18:51 ` hl 2016-08-17 18:51 ` hl
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1471386989-9541-1-git-send-email-hl@rock-chips.com \ --to=hl@rock-chips.com \ --cc=airlied@linux.ie \ --cc=cw00.choi@samsung.com \ --cc=dbasehore@chromium.org \ --cc=dianders@chromium.org \ --cc=dri-devel@lists.freedesktop.org \ --cc=heiko@sntech.de \ --cc=kyungmin.park@samsung.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-pm@vger.kernel.org \ --cc=linux-rockchip@lists.infradead.org \ --cc=mark.rutland@arm.com \ --cc=mark.yao@rock-chips.com \ --cc=mturquette@baylibre.com \ --cc=myungjoo.ham@samsung.com \ --cc=sboyd@codeaurora.org \ --cc=sudeep.holla@arm.com \ --cc=tixy@linaro.org \ --cc=typ@rock-chips.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.