[PATCH v3 0/4] Add i.MX8MQ clock driver

2018-08-09 Thread Abel Vesa
This is basically just a resend of the following patchset: https://www.spinics.net/lists/linux-clk/msg23141.html I've just updated the patchset and implemented Shawn's and Aisheng's comments. I hope I haven't missed any of their comments. Lucas Stach (4): dt-bindings: add binding for i.MX8MQ

[PATCH v6 1/2] dt-bindings: add binding for i.MX8MQ IOMUXC

2018-07-02 Thread Abel Vesa
This adds the binding for the i.MX8MQ pin controller, in the same fashion as earlier i.MX SoCs. Signed-off-by: Abel Vesa Acked-by: Dong Aisheng --- .../bindings/pinctrl/fsl,imx8mq-pinctrl.txt| 36 ++ 1 file changed, 36 insertions(+) create mode 100644

[PATCH v6 2/2] pinctrl: imx: add driver for i.MX8MQ

2018-07-02 Thread Abel Vesa
From: Lucas Stach The i.MX8MQ pincontrol works in a similar way to the earlier i.MX SoCs. This driver builds on top of the imx specific pinconf handling. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa Acked-by: Dong Aisheng --- drivers/pinctrl/freescale/Kconfig | 7

[PATCH v6 0/2] pinctrl: imx: Add driver for i.MX8MQ

2018-07-02 Thread Abel Vesa
ce v4: * implemented all Aisheng's review comments Changes since v3: * dropped the SION generic pinconf changes * added examples to the bindings doc Changes since v2: * switch back to the 'fsl,pins' and hardcoded the config values inside the dts. * updated documentation accordingly Abel Ves

[PATCH v5 2/2] pinctrl: imx: add driver for i.MX8MQ

2018-06-22 Thread Abel Vesa
From: Lucas Stach The i.MX8MQ pincontrol works in a similar way to the earlier i.MX SoCs. This driver builds on top of the imx specific pinconf handling. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa Acked-by: Dong Aisheng --- drivers/pinctrl/freescale/Kconfig | 7

[PATCH v5 1/2] dt-bindings: add binding for i.MX8MQ IOMUXC

2018-06-22 Thread Abel Vesa
This adds the binding for the i.MX8MQ pin controller, in the same fashion as earlier i.MX SoCs. Signed-off-by: Abel Vesa Acked-by: Dong Aisheng --- .../bindings/pinctrl/fsl,imx8mq-pinctrl.txt| 32 ++ 1 file changed, 32 insertions(+) create mode 100644

[PATCH v5 0/2] pinctrl: imx: Add driver for i.MX8MQ

2018-06-22 Thread Abel Vesa
SION generic pinconf changes * added examples to the bindings doc Changes since v2: * switch back to the 'fsl,pins' and hardcoded the config values inside the dts. * updated documentation accordingly Abel Vesa (1): dt-bindings: add binding for i.MX8MQ IOMUXC Lucas Stach (1): pi

[PATCH v4 0/2] pinctrl: imx: Add driver for i.MX8MQ

2018-06-20 Thread Abel Vesa
Changes since v2: * switch back to the 'fsl,pins' and hardcoded the config values inside the dts. * updated documentation accordingly Abel Vesa (1): dt-bindings: add binding for i.MX8MQ IOMUXC Lucas Stach (1): pinctrl: imx: add driver for i.MX8MQ .../bindings/pinctrl/fsl,imx8mq-p

[PATCH v4 1/2] dt-bindings: add binding for i.MX8MQ IOMUXC

2018-06-20 Thread Abel Vesa
This adds the binding for the i.MX8MQ pin controller, in the same fashion as earlier i.MX SoCs. Signed-off-by: Abel Vesa --- .../bindings/pinctrl/fsl,imx8mq-pinctrl.txt| 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v4 2/2] pinctrl: imx: add driver for i.MX8MQ

2018-06-20 Thread Abel Vesa
From: Lucas Stach The i.MX8MQ pincontrol works in a similar way to the earlier i.MX SoCs. This driver builds on top of the generic pinconf handling introduced with the i.MX7ULP pinctrl driver. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa --- drivers/pinctrl/freescale/Kconfig

Re: [PATCH v3 2/3] pinctrl: imx: allow to configure SION with generic pinconf

2018-06-20 Thread Abel Vesa
n the next version. Thanks, Abel > Regards, > Lucas > > Am Mittwoch, den 20.06.2018, 10:24 +0300 schrieb Abel Vesa: > > > From: Lucas Stach > > > > The SION bit force enables the input buffer, overriding the configuration > > driven by the muxed module. It is n

[PATCH v3 0/3] pinctrl: imx: Add driver for i.MX8MQ

2018-06-20 Thread Abel Vesa
This is the third version for the patch series sent by Lucas. https://www.spinics.net/lists/devicetree/msg212752.html Changes since v2: * switch back to the 'fsl,pins' and hardcoded the config values inside the dts. * updated documentation accordingly Abel Vesa (1): dt-bindings: a

[PATCH v3 2/3] pinctrl: imx: allow to configure SION with generic pinconf

2018-06-20 Thread Abel Vesa
From: Lucas Stach The SION bit force enables the input buffer, overriding the configuration driven by the muxed module. It is not located in the pad config register, but in the mux register and thus needs special handling. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa --- drivers

[PATCH v3 3/3] pinctrl: imx: add driver for i.MX8MQ

2018-06-20 Thread Abel Vesa
From: Lucas Stach The i.MX8MQ pincontrol works in a similar way to the earlier i.MX SoCs. This driver builds on top of the generic pinconf handling introduced with the i.MX7ULP pinctrl driver. Signed-off-by: Lucas Stach Signed-off-by: Abel Vesa --- drivers/pinctrl/freescale/Kconfig

[PATCH v3 1/3] dt-bindings: add binding for i.MX8MQ IOMUXC

2018-06-20 Thread Abel Vesa
This adds the binding for the i.MX8MQ pin controller, in the same fashion as earlier i.MX SoCs. Signed-off-by: Abel Vesa --- .../devicetree/bindings/pinctrl/fsl,imx8mq-pinctrl.txt | 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH 2/2] power: pf1550_charger: add pf1550 charger driver

2018-04-17 Thread Abel Vesa
From: Robin Gong Add basic pf1550 charger driver. Signed-off-by: Robin Gong Signed-off-by: Abel Vesa --- drivers/power/supply/Kconfig | 6 + drivers/power/supply/Makefile | 1 + drivers/power/supply/pf1550_charger.c | 660 ++ 3 files

[PATCH 1/2] mfd: pf1550: add pf1550 mfd driver

2018-04-17 Thread Abel Vesa
From: Robin Gong Add basic pf1550 mfd driver. Signed-off-by: Robin Gong Signed-off-by: Abel Vesa --- drivers/mfd/Kconfig| 14 +++ drivers/mfd/Makefile | 2 + drivers/mfd/pf1550.c | 282 + include/linux/mfd/pf1550.h | 241

[PATCH v2] clk: imx: Set CLK_SET_RATE_GATE for gate and divider clocks

2018-04-11 Thread Abel Vesa
due to the glitchy multiplexers. Signed-off-by: Shawn Guo [initial patch from imx internal repo] Signed-off-by: Abel Vesa [carried over from 3.14 and also applied the flag to newer functions] --- Changes since v1: - changed ownership as per initial patch drivers/clk/imx/clk.h | 15

Re: [PATCH] clk: imx7d: Move clks_init_on before any clock operations

2018-03-27 Thread Abel Vesa
On Wed, Mar 28, 2018 at 09:46:36AM +0300, Abel Vesa wrote: > From: Dong Aisheng > > For init on clocks we should move it at the first place in imx7d_clocks_init() > before any clock operations, else the clock operation may fail in case the > clock > is still not on. >

[PATCH] clk: imx7d: Move clks_init_on before any clock operations

2018-03-27 Thread Abel Vesa
-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 89bfa75..9b17805 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -433,13

[RESEND 2/4] clk: imx7d: Correct dram pll type

2018-03-27 Thread Abel Vesa
From: Anson Huang DRAM PLL is a audio/video type PLL, need to correct it to get correct ops of PLL. There is a test_div placed before DRAM PLL's gate, so add this test div clk. Signed-off-by: Anson Huang Signed-off-by: Irina Tirdea Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-im

[RESEND 3/4] clk: imx7d: Correct ahb clk parent select

2018-03-27 Thread Abel Vesa
clk parent option to make clk tree info correct. Signed-off-by: Anson Huang Signed-off-by: Irina Tirdea Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c ind

[RESEND 1/4] clk: imx7d: Add USB clock information

2018-03-27 Thread Abel Vesa
From: Peter Chen Add USB clock information, the pll_usb_main_clk is USB_PLL at CCM which is the output of USBOTG2 PHY. Signed-off-by: Peter Chen Signed-off-by: Irina Tirdea Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c | 9 - 1 file changed, 8 insertions(+), 1 deletion

[RESEND 4/4] clk: imx7d: Move clks_init_on before any clock operations

2018-03-27 Thread Abel Vesa
-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 50da4cb..975a20d 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -433,13

[RESEND 0/4] Update imx7 clocks

2018-03-27 Thread Abel Vesa
Resent as a patcheset now. I sent the initial patches as individual ones, without specifying the order they need to be applied in. https://lkml.org/lkml/2018/3/27/535 https://lkml.org/lkml/2018/3/27/536 https://lkml.org/lkml/2018/3/27/539 https://lkml.org/lkml/2018/3/27/542 Anson Huang (2): c

Re: [PATCH] clk: imx7d: Move clks_init_on before any clock operations

2018-03-27 Thread Abel Vesa
Hi Fabio, On Tue, Mar 27, 2018 at 12:08:39PM -0300, Fabio Estevam wrote: > Hi Abel, > > On Tue, Mar 27, 2018 at 11:23 AM, Abel Vesa wrote: > > From: Dong Aisheng > > > > For init on clocks we should move it at the first place in > > imx7d_clocks_init() >

[PATCH] clk: imx7d: Move clks_init_on before any clock operations

2018-03-27 Thread Abel Vesa
-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 89bfa75..9b17805 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -433,13

[PATCH] clk: imx7d: Correct ahb clk parent select

2018-03-27 Thread Abel Vesa
clk parent option to make clk tree info correct. Signed-off-by: Anson Huang Signed-off-by: Irina Tirdea Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c ind

[PATCH] clk: imx7d: Correct dram pll type

2018-03-27 Thread Abel Vesa
From: Anson Huang DRAM PLL is a audio/video type PLL, need to correct it to get correct ops of PLL. There is a test_div placed before DRAM PLL's gate, so add this test div clk. Signed-off-by: Anson Huang Signed-off-by: Irina Tirdea Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-im

[PATCH] clk: imx7d: Add USB clock information

2018-03-27 Thread Abel Vesa
From: Peter Chen Add USB clock information, the pll_usb_main_clk is USB_PLL at CCM which is the output of USBOTG2 PHY. Signed-off-by: Peter Chen Signed-off-by: Irina Tirdea Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c | 9 - 1 file changed, 8 insertions(+), 1 deletion

[PATCH] clk: imx: Set CLK_SET_RATE_GATE for gate and divider clocks

2018-03-23 Thread Abel Vesa
multiplexers. Signed-off-by: Shawn Guo [initial patch from imx internal repo] Signed-off-by: Abel Vesa [carried over from 3.14 and also applied the flag to newer functions] --- drivers/clk/imx/clk.h | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/clk

Return checks for clock calls

2018-03-23 Thread Abel Vesa
Hi Shawn, Fabio, I'm trying to get the imx clks changes upstreamed. To that end, I reached this old commit that adds some wrappers over the generic clk API. Here is the commit message: ARM: imx6: add return check for clock calls There are a bunch of clk_enable_prepare, clk_set_pa

Re: [PATCH 2/4] arm: imx: Correct dram pll type

2018-03-22 Thread Abel Vesa
Hi Fabio, On Thu, Mar 22, 2018 at 09:31:03AM -0300, Fabio Estevam wrote: > > This has already been applied in linux-next as commit: > > commit b716aad97eb5 ("clk: imx: imx7d: correct video pll clock tree) OK. Will create the patchset again without this one. > > Nit: the prefix in the Subject

[PATCH 2/4] arm: imx: Correct dram pll type

2018-03-22 Thread Abel Vesa
From: Anson Huang DRAM PLL is a audio/video type PLL, need to correct it to get correct ops of PLL. There is a test_div placed before DRAM PLL's gate, so add this test div clk. Signed-off-by: Anson Huang Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c

[PATCH 4/4] arm: imx: Update clk driver for imx7d

2018-03-22 Thread Abel Vesa
From: Anson Huang This patch updates the imx7d clk driver to make use of the new imx clk API. Signed-off-by: Anson Huang Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/clk/imx

[PATCH 0/4] arm: imx: Clock related updates

2018-03-22 Thread Abel Vesa
This is part of the imx upstreaming effort. All the changes are related imx generic clk API and imx7d clk driver. The imx clk API updates will also be used by the new imx SOCs that will follow. Abel Vesa (1): arm: imx: Update clk driver API Anson Huang (3): arm: imx: Correct dram pll type

[PATCH 3/4] arm: imx: Correct ahb clk parent select

2018-03-22 Thread Abel Vesa
clk parent option to make clk tree info correct. Signed-off-by: Anson Huang Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index d786f98..3553b68 100644 --- a/d

[PATCH 1/4] arm: imx: Update clk driver API

2018-03-22 Thread Abel Vesa
This adds the following new wrappers: - imx_clk_gate2_flag - imx_clk_set_parent It also updates the flags for the old wrappers. Signed-off-by: Anson Huang Signed-off-by: Abel Vesa --- drivers/clk/imx/clk.h | 42 +++--- 1 file changed, 31 insertions(+), 11

[PATCH] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-05-12 Thread Abel Vesa
this patch is to activate the support for ftrace_modify_call() as it defines ARCH_SUPPORTS_FTRACE_OPS for the ARM architecture. Signed-off-by: Abel Vesa --- arch/arm/Kconfig | 1 + arch/arm/include/asm/ftrace.h | 4 ++ arch/arm/kernel/entry-ftra

Re: [PATCH] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-05-12 Thread Abel Vesa
On Fri, May 12, 2017 at 09:38:37PM +0100, abelv...@gmail.com wrote: > From: Abel Vesa To be ignored, wrong git config. Will send another one without the From line. > > The DYNAMIC_FTRACE_WITH_REGS configuration makes it possible for a ftrace > operation to specify if registers n

[RESEND] arm: ftrace: fix dynamic ftrace with DEBUG_RODATA and !FRAME_POINTER

2017-03-26 Thread Abel Vesa
M: mm: allow text and rodata sections to be read-only") Suggested-by: Nicolai Stange Suggested-by: Rabin Vincent Signed-off-by: Abel Vesa Acked-by: Rabin Vincent --- arch/arm/kernel/ftrace.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/kernel/ftrac

Re: [PATCHv5] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-03-19 Thread Abel Vesa
On Sat, Mar 04, 2017 at 02:02:17PM +0100, Rabin Vincent wrote: > On Sat, Mar 04, 2017 at 12:51:12AM +0000, Abel Vesa wrote: > > diff --git a/arch/arm/kernel/entry-ftrace.S b/arch/arm/kernel/entry-ftrace.S > > index c73c403..93f9abb 100644 > > --- a/arch/arm/kernel/entry-ftrace

[PATCH] arm: ftrace: fix dynamic ftrace with DEBUG_RODATA and !FRAME_POINTER

2017-03-15 Thread Abel Vesa
M: mm: allow text and rodata sections to be read-only") Suggested-by: Nicolai Stange Suggested-by: Rabin Vincent Signed-off-by: Abel Vesa --- arch/arm/kernel/ftrace.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/kernel/ftrace.c b/arch/arm/kernel/ftra

[PATCHv5] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-03-03 Thread Abel Vesa
this patch is to activate the support for ftrace_modify_call() as it defines ARCH_SUPPORTS_FTRACE_OPS for the ARM architecture. Signed-off-by: Abel Vesa --- arch/arm/Kconfig | 1 + arch/arm/include/asm/ftrace.h | 4 ++ arch/arm/kernel/entry-ftr

Re: [PATCHv4] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-03-02 Thread Abel Vesa
On Tue, Feb 28, 2017 at 11:54:29AM +, Abel Vesa wrote: > On Tue, Feb 28, 2017 at 11:46:38AM +, Russell King - ARM Linux wrote: > > On Tue, Feb 28, 2017 at 11:22:27AM +0000, Abel Vesa wrote: > > > On Tue, Feb 28, 2017 at 11:58:49AM +0100, Nicolai Stange wrot

Re: [PATCHv4] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-28 Thread Abel Vesa
On Tue, Feb 28, 2017 at 11:46:38AM +, Russell King - ARM Linux wrote: > On Tue, Feb 28, 2017 at 11:22:27AM +0000, Abel Vesa wrote: > > On Tue, Feb 28, 2017 at 11:58:49AM +0100, Nicolai Stange wrote: > > > Hi Abel, > > > > > > On Tue, Feb 28 2017, Abel Vesa

Re: [PATCHv4] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-28 Thread Abel Vesa
On Tue, Feb 28, 2017 at 11:58:49AM +0100, Nicolai Stange wrote: > Hi Abel, > > On Tue, Feb 28 2017, Abel Vesa wrote: > > > On Mon, Feb 27, 2017 at 04:52:06PM +0100, Nicolai Stange wrote: > >> On Fri, Feb 24 2017, Abel Vesa wrote: > >> > >> > >

Re: [PATCHv4] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-27 Thread Abel Vesa
On Mon, Feb 27, 2017 at 04:52:06PM +0100, Nicolai Stange wrote: > Hi Abel, > > On Fri, Feb 24 2017, Abel Vesa wrote: > > > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > > index fda6a46..877df5b 100644 > > --- a/arch/arm/Kconfig > > +++ b/arc

[PATCHv4] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-24 Thread Abel Vesa
this patch is to activate the support for ftrace_modify_call() as it defines ARCH_SUPPORTS_FTRACE_OPS for the ARM architecture. Signed-off-by: Abel Vesa --- arch/arm/Kconfig | 1 + arch/arm/include/asm/ftrace.h | 4 ++ arch/arm/kernel/entry-ftr

Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-10 Thread Abel Vesa
On Fri, Feb 10, 2017 at 02:57:38PM +0100, Jean-Jacques Hiblot wrote: > 2017-02-10 13:03 GMT+01:00 Abel Vesa : > > On Fri, Feb 10, 2017 at 11:36:12AM +0100, Jean-Jacques Hiblot wrote: > >> 2017-02-09 17:29 GMT+01:00 Russell King - ARM Linux > >> : > >> > O

Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-10 Thread Abel Vesa
On Fri, Feb 10, 2017 at 02:28:47PM +, Russell King - ARM Linux wrote: > On Fri, Feb 10, 2017 at 12:03:06PM +0000, Abel Vesa wrote: > > The only problem I don't have a solution for at this point is OLD_LR (or > > previous LR as it is called in this patch). > >

Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-10 Thread Abel Vesa
On Fri, Feb 10, 2017 at 11:36:12AM +0100, Jean-Jacques Hiblot wrote: > 2017-02-09 17:29 GMT+01:00 Russell King - ARM Linux : > > On Tue, Feb 07, 2017 at 10:57:55PM +0000, Abel Vesa wrote: > >> +#ifdef CONFIG_DYNAMIC_FTRACE_WITH_REGS > >> + > >> +.macro __ftra

Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-09 Thread Abel Vesa
On Thu, Feb 09, 2017 at 07:01:10PM +, Abel Vesa wrote: > On Thu, Feb 09, 2017 at 01:14:52PM -0500, Steven Rostedt wrote: > > > > [ sending again with Masami Cc'd ] > > > > On Thu, 9 Feb 2017 13:14:14 -0500 > > Steven Rostedt wrote: > > > >

Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-09 Thread Abel Vesa
On Thu, Feb 09, 2017 at 01:14:52PM -0500, Steven Rostedt wrote: > > [ sending again with Masami Cc'd ] > > On Thu, 9 Feb 2017 13:14:14 -0500 > Steven Rostedt wrote: > > > On Thu, 9 Feb 2017 18:06:44 + > > Russell King - ARM Linux wrote: > > > > > On Thu, Feb 09, 2017 at 12:13:22PM -0500,

Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-09 Thread Abel Vesa
On Thu, Feb 09, 2017 at 04:29:56PM +, Russell King - ARM Linux wrote: > On Tue, Feb 07, 2017 at 10:57:55PM +0000, Abel Vesa wrote: > > +#ifdef CONFIG_DYNAMIC_FTRACE_WITH_REGS > > + > > +.macro __ftrace_regs_caller > > + > > + add ip, sp, #4 @ mov

Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-09 Thread Abel Vesa
On Thu, Feb 09, 2017 at 06:06:44PM +, Russell King - ARM Linux wrote: > On Thu, Feb 09, 2017 at 12:13:22PM -0500, Steven Rostedt wrote: > > Then came along live kernel patching, which I believe this series is > > trying to support. What is needed by pt_regs is a way to "hijack" the > > function

[PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-07 Thread Abel Vesa
this patch is to activate the support for ftrace_modify_call() as it defines ARCH_SUPPORTS_FTRACE_OPS for the ARM architecture. Signed-off-by: Abel Vesa --- arch/arm/Kconfig | 1 + arch/arm/include/asm/ftrace.h | 4 +++ arch/arm/kernel/entry-ftr

Re: [PATCHv2] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-07 Thread Abel Vesa
rom [<80198908>] > (multi_cpu_stop+0xe8/0x114) > [<80198908>] (multi_cpu_stop) from [<80198588>] > (cpu_stopper_thread+0x60/0x134) > [<80198588>] (cpu_stopper_thread) from [<8013f428>] > (smpboot_thread_fn+0x148/0x1c4) > [<8013f428>] (smpb

[PATCHv2] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-01-24 Thread Abel Vesa
this patch is to activate the support for ftrace_modify_call() as it defines ARCH_SUPPORTS_FTRACE_OPS for the ARM architecture. Signed-off-by: Abel Vesa --- arch/arm/Kconfig | 1 + arch/arm/include/asm/ftrace.h | 4 +++ arch/arm/kernel/entry-ftr

Re: [PATCH] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-01-23 Thread Abel Vesa
Hi Jean-Jacques, Here is the implementation I've made for ftrace_graph_regs_caller: .macro __ftrace_graph_regs_caller sub r0, fp, #4 @ lr of instrumented routine (parent) @ called from __ftrace_regs_caller ldr r1, [sp, #56]

Re: [PATCH] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-01-11 Thread Abel Vesa
On Tue, Jan 10, 2017 at 04:51:12PM +0100, Petr Mladek wrote: > On Thu 2016-12-08 22:46:55, Abel Vesa wrote: > > On Thu, Dec 08, 2016 at 09:46:35PM +0000, Abel Vesa wrote: > > > From: Jean-Jacques Hiblot > > > > > > From: Jean-Jacques Hiblot > > >

[PATCH] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2016-12-08 Thread Abel Vesa
d function. A side-effect of this patch is to activate the support for ftrace_modify_call() as it defines ARCH_SUPPORTS_FTRACE_OPS for the ARM architecture Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Abel Vesa --- arch/arm/Kconfig | 2 ++ arch/arm/include/asm/ftrace.h | 4

Re: [PATCH] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2016-12-08 Thread Abel Vesa
On Thu, Dec 08, 2016 at 09:46:35PM +, Abel Vesa wrote: > From: Jean-Jacques Hiblot > > From: Jean-Jacques Hiblot >From statement twice in the commit message. Will resend. > > The DYNAMIC_FTRACE_WITH_REGS configuration makes it possible for a ftrace > operation to spec

[PATCH] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2016-12-08 Thread Abel Vesa
ng back to the instrumented function. A side-effect of this patch is to activate the support for ftrace_modify_call() as it defines ARCH_SUPPORTS_FTRACE_OPS for the ARM architecture Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Abel Vesa --- arch/arm/Kconfig | 2 ++ arch/a

Re: [PATCH 6/7] arm: Add livepatch to build if CONFIG_LIVEPATCH

2016-12-07 Thread Abel Vesa
On Wed, Dec 07, 2016 at 04:05:25PM +0100, Petr Mladek wrote: > On Tue 2016-12-06 17:06:06, Abel Vesa wrote: > > Necessary livepatch file added to makefile. > > > > Signed-off-by: Abel Vesa > > --- > > arch/arm/kernel/Makefile | 1 + > > 1 file changed, 1

Re: [PATCH 4/7] arm: Add ftrace with regs support

2016-12-07 Thread Abel Vesa
On Wed, Dec 07, 2016 at 11:58:24AM +, Robin Murphy wrote: > Hi Abel, > > On 06/12/16 17:06, Abel Vesa wrote: > > This adds __ftrace_regs_caller which, unlike __ftrace_caller, > > adds register saving/restoring and livepatch handling if > > the pc register gets mod

Re: [PATCH 0/7] arm: Add livepatch support

2016-12-07 Thread Abel Vesa
On Wed, Dec 07, 2016 at 09:38:07AM +0800, zhouchengming wrote: > On 2016/12/7 1:06, Abel Vesa wrote: > >This is just an idea I've been trying out for a while now. > > > >Just in case somebody wants to play with it, this applies to > >linux-arm/for-next. > >

[PATCH 1/7] arm: Add livepatch arch specific code

2016-12-06 Thread Abel Vesa
anything at this moment. Signed-off-by: Abel Vesa --- MAINTAINERS | 3 +++ arch/arm/include/asm/livepatch.h | 46 arch/arm/kernel/livepatch.c | 43 + 3 files changed, 92 insertions(+) create

[PATCH 5/7] arm: ftrace: Add ARCH_SUPPORTS_FTRACE_OPS for ftrace with regs

2016-12-06 Thread Abel Vesa
ARCH_SUPPORTS_FTRACE_OPS is needed for livepatch if CONFIG_DYNAMIC_FTRACE_WITH_REGS is defined. Signed-off-by: Abel Vesa --- arch/arm/include/asm/ftrace.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/ftrace.h b/arch/arm/include/asm/ftrace.h index bfe2a2f..f434ce9

[PATCH 6/7] arm: Add livepatch to build if CONFIG_LIVEPATCH

2016-12-06 Thread Abel Vesa
Necessary livepatch file added to makefile. Signed-off-by: Abel Vesa --- arch/arm/kernel/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile index ad325a8..9e70220 100644 --- a/arch/arm/kernel/Makefile +++ b/arch/arm/kernel/Makefile

[PATCH 7/7] arm: Add livepatch necessary arch selects into Kconfig

2016-12-06 Thread Abel Vesa
This adds HAVE_LIVEPATCH, MODULES_USE_ELF_RELA and HAVE_LIVEPATCH to arm Kconfig. Signed-off-by: Abel Vesa --- arch/arm/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 186c4c2..f4e9ace 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig

[PATCH 0/7] arm: Add livepatch support

2016-12-06 Thread Abel Vesa
tack handling since I'm getting some build warnings. Those are due to pushing/popping of a list of regs in which the sp resides. I'll try to get around those in a next iteration (if necessary), but first I would like to hear some opinions about this work and if it's worth going forward. E

[PATCH 2/7] arm: ftrace: Add call modify mechanism

2016-12-06 Thread Abel Vesa
Function ftrace_modify_call provides a way to replace ftrace_stub with the ftrace function. This helps the klp_ftrace_handler to be called via ftrace_ops_no_ops, which in turn will set the pc with the patched function's starting address. This is used for livepatching. Signed-off-by: Abel

[PATCH 4/7] arm: Add ftrace with regs support

2016-12-06 Thread Abel Vesa
This adds __ftrace_regs_caller which, unlike __ftrace_caller, adds register saving/restoring and livepatch handling if the pc register gets modified by klp_ftrace_handler. Signed-off-by: Abel Vesa --- arch/arm/kernel/entry-ftrace.S | 49 ++ 1 file changed

[PATCH 3/7] arm: module: Add apply_relocate_add

2016-12-06 Thread Abel Vesa
It was only added to fix compiler error. It is not implemented yet. Signed-off-by: Abel Vesa --- arch/arm/kernel/module.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c index 4f14b5c..bf94922 100644 --- a/arch/arm/kernel/module.c

[PATCH] ftrace: Join functions ftrace_module_init and ftrace_init_module

2015-12-02 Thread Abel Vesa
Simple cleanup. No need for two functions here. The whole work can simply be done inside 'ftrace_module_init'. Signed-off-by: Abel Vesa --- kernel/trace/ftrace.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trac

Re: [RFCv4 PATCH 00/34] sched: Energy cost model for energy-aware scheduling

2015-06-28 Thread Abel Vesa
Hi, So I tried to play around a little bit with this patchset. I did a checkout from: git://linux-arm.org/linux-power.git energy_model_rfc_v4 and then, when I tried to enable the ENERGY_AWARE from sysfs inside qemu (x86_64) and I got this: [69452.750245] BUG: unable to handle kernel paging requ

Re: [PATCH] sched: Fix compiler errors for NO_SMP machines

2015-05-23 Thread Abel Vesa
On Sat, May 23, 2015 at 04:52:23PM +0200, Ingo Molnar wrote: > > What tree is this against? Neither the upstream kernel nor > tip:sched/core (the scheduler development tree) has this function. > Sorry, I forgot to mention. This patch applies to: git://linux-arm.org/linux-power.git energy_model

[PATCH] sched: Fix compiler errors for NO_SMP machines

2015-05-22 Thread Abel Vesa
Trivial fixes forh machines without SMP. Signed-off-by: Abel Vesa --- kernel/sched/fair.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index e6d32e6..dae3db7 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c

[PATCH] sched/core: Add empty 'gov_cfs_update_cpu' function definition for NON-SMP systems

2015-05-06 Thread Abel Vesa
If CONFIG_SMP is not defined the build will fail due to function 'gov_cfs_update_cpu' definition missing. Added empty static inline definition for NON-SMP systems. This patch applies to: https://git.linaro.org/people/mike.turquette/linux.git sched-freq Signed-off-by: Abel Vesa --- ke

[PATCH] sched/core: Add empty 'gov_cfs_update_cpu' function definition for NON-SMP systems

2015-05-05 Thread Abel Vesa
If CONFIG_SMP is not defined the build will fail due to function 'gov_cfs_update_cpu' definition missing. Added empty static inline definition for NON-SMP systems. This patch applies to: https://git.linaro.org/people/mike.turquette/linux.git sched-freq Signed-off-by: Abel Vesa --- ke

Re: [PATCH] sched/core: Remove wakeup_gran with single call calc_delta_fair

2015-04-07 Thread Abel Vesa
On Tue, Apr 7, 2015 at 7:55 PM, Mike Galbraith wrote: > On Tue, 2015-04-07 at 16:37 +0300, Abel Vesa wrote: >> On Tue, Apr 7, 2015 at 1:30 PM, Peter Zijlstra > > wrote: >> > On Mon, Apr 06, 2015 at 09:43:43PM +0300, Abel Vesa wrote: >> > > This patch removes

Re: [PATCH] sched/core: Remove wakeup_gran with single call calc_delta_fair

2015-04-07 Thread Abel Vesa
On Tue, Apr 7, 2015 at 1:30 PM, Peter Zijlstra wrote: > On Mon, Apr 06, 2015 at 09:43:43PM +0300, Abel Vesa wrote: >> This patch removes function wakeup_gran and its call by calling directly >> calc_delta_fair function with sysctl_sched_wakeup_granularity and se as >> argum

[PATCH] sched/core: Remove wakeup_gran with single call calc_delta_fair

2015-04-06 Thread Abel Vesa
This patch removes function wakeup_gran and its call by calling directly calc_delta_fair function with sysctl_sched_wakeup_granularity and se as arguments. Signed-off-by: Abel Vesa --- kernel/sched/fair.c | 38 -- 1 file changed, 16 insertions(+), 22

[tip:sched/core] sched/core: Remove unused argument from init_[ rt|dl]_rq()

2015-04-02 Thread tip-bot for Abel Vesa
Commit-ID: 07c54f7a7ff77bb47bae26e566969e9c4b6fb0c6 Gitweb: http://git.kernel.org/tip/07c54f7a7ff77bb47bae26e566969e9c4b6fb0c6 Author: Abel Vesa AuthorDate: Tue, 3 Mar 2015 13:50:27 +0200 Committer: Ingo Molnar CommitDate: Thu, 2 Apr 2015 17:42:55 +0200 sched/core: Remove unused

[PATCH] sched/core: remove unused argument for init_[rt|dl]_rq

2015-03-03 Thread Abel Vesa
Obviously, _rq_ is not used in these two functions, therefore, there is no reason to be passed as argument. Signed-off-by: Abel Vesa --- kernel/sched/core.c | 4 ++-- kernel/sched/deadline.c | 2 +- kernel/sched/rt.c | 4 ++-- kernel/sched/sched.h| 4 ++-- 4 files changed, 7

Power Scheduler Design

2014-09-07 Thread Abel Vesa
For a while now, I've started studying the power aware scheduling problem. And like many other rookies out there I took all the lkml mails related and read them all (well, almost all) and I saw that there are some debating on the implementation.I even look over the implementation proposed of Preeti

<    1   2   3   4   5   6