Re: [UPDATE][PATCH 10/10] tools/power/x86: A tool to validate Intel Speed Select commands

2019-07-01 Thread Andy Shevchenko
On Sun, Jun 30, 2019 at 8:14 PM Srinivas Pandruvada wrote: > > The Intel(R) Speed select technologies contains four features. > > Performance profile:An non architectural mechanism that allows multiple > optimized performance profiles per system via static and/or dynamic > adjustment of core count

[PATCH] Documentation: gpio: Fix reference to gpiod_get_array()

2019-07-01 Thread Geert Uytterhoeven
The function is called gpiod_get_array(), not gpiod_array_get(). Fixes: 77588c14ac868cae ("gpiolib: Pass array info to get/set array functions") Signed-off-by: Geert Uytterhoeven --- Documentation/driver-api/gpio/consumer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Do

Re: [linux-kernel-mentees] [PATCH v1] Doc : fs : convert xfs.txt to ReST

2019-07-01 Thread Eric Sandeen
On 6/30/19 12:32 PM, Jonathan Corbet wrote: > On Sun, 30 Jun 2019 17:50:46 +0100 > Sheriff Esseson wrote: > >> On Sat, Jun 29, 2019 at 09:57:59PM +0100, Sheriff Esseson wrote: >>> Signed-off-by: Sheriff Esseson >>> --- >>> >>> In v3: >>> Update MAINTAINERS. Fix Indentation/long line issues. I

[PATCH v14 02/13] doc: Add doc for the Ingenic TCU hardware

2019-07-01 Thread Paul Cercueil
Add documentation about the Timer/Counter Unit (TCU) present in the Ingenic JZ47xx SoCs. The Timer/Counter Unit (TCU) in Ingenic JZ47xx SoCs is a multi-function hardware block. It features up to to eight channels, that can be used as counters, timers, or PWM. - JZ4725B, JZ4750, JZ4755 only have s

[PATCH v14 00/13] Ingenic TCU patchset v14

2019-07-01 Thread Paul Cercueil
Hi, Changelog from v13: - [02/13]: The documentation has been converted to ReStructured Text. - [04/13]: - Use ERR_CAST() instead of ERR_PTR(PTR_ERR()) - Remove ingenic_tcu_can_use_pwm(). - [05/13]: Use %d instead of %i in messages - [06/13]: Remove empty lines in structure definitions

[PATCH v14 01/13] dt-bindings: ingenic: Add DT bindings for TCU clocks

2019-07-01 Thread Paul Cercueil
This header provides clock numbers for the ingenic,tcu DT binding. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek Reviewed-by: Rob Herring Acked-by: Stephen Boyd --- Notes: v2: Use SPDX identifier for the license v3/v4: No change v5: s/

[PATCH v14 06/13] irqchip: Add irq-ingenic-tcu driver

2019-07-01 Thread Paul Cercueil
This driver handles the interrupt controller built in the Timer/Counter Unit (TCU) of the JZ47xx SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek Reviewed-by: Thomas Gleixner --- Notes: v12: New patch v13: No change v14:

[PATCH v14 04/13] mfd: Add Ingenic TCU driver

2019-07-01 Thread Paul Cercueil
This driver will provide a regmap that can be retrieved very early in the boot process through the API function ingenic_tcu_get_regmap(). Additionally, it will call devm_of_platform_populate() so that all the children devices will be probed. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malate

[PATCH v14 05/13] clk: ingenic: Add driver for the TCU clocks

2019-07-01 Thread Paul Cercueil
Add driver to support the clocks provided by the Timer/Counter Unit (TCU) of the JZ47xx SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v12: New patch v13: - Don't enable/disable the TCU clock on demand. Enable it

[PATCH v14 08/13] clk: jz4740: Add TCU clock

2019-07-01 Thread Paul Cercueil
Add the missing TCU clock to the list of clocks supplied by the CGU for the JZ4740 SoC. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek Acked-by: Stephen Boyd Acked-by: Rob Herring --- Notes: v5: New patch v6-v14: No change drivers/clk/ingenic/

[PATCH v14 13/13] MIPS: jz4740: Drop obsolete code

2019-07-01 Thread Paul Cercueil
The old clocksource/timer platform code is now obsoleted by the newly introduced TCU drivers. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6-v11: No change v12: Only remove clocksource code. The rest will event

[PATCH v14 12/13] MIPS: GCW0: Reduce system timer and clocksource to 750 kHz

2019-07-01 Thread Paul Cercueil
The default clock (12 MHz) is too fast for the system timer. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v8: New patch v9: Don't configure clock timer1, as the OS Timer is used as clocksource on this SoC v10: Revert

[PATCH v14 09/13] MIPS: jz4740: Add DTS nodes for the TCU drivers

2019-07-01 Thread Paul Cercueil
Add DTS nodes for the JZ4780, JZ4770 and JZ4740 devicetree files. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: Fix register lengths in watchdog/pwm nodes v7: No change v8: - Fix wrong start address

[PATCH v14 11/13] MIPS: CI20: Reduce system timer and clocksource to 3 MHz

2019-07-01 Thread Paul Cercueil
The default clock (48 MHz) is too fast for the system timer. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: Set also the rate for the clocksource channel's clock v7: No change v8: No change v

[PATCH v14 07/13] clocksource: Add a new timer-ingenic driver

2019-07-01 Thread Paul Cercueil
This driver handles the TCU (Timer Counter Unit) present on the Ingenic JZ47xx SoCs, and provides the kernel with a system timer, a clocksource and a sched_clock. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek Reviewed-by: Thomas Gleixner --- Notes: v2: U

[PATCH v14 03/13] dt-bindings: Add doc for the Ingenic TCU drivers

2019-07-01 Thread Paul Cercueil
Add documentation about how to properly use the Ingenic TCU (Timer/Counter Unit) drivers from devicetree. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v4: New patch in this series. Corresponds to V2 patches 3-4-5 with

[PATCH v14 10/13] MIPS: qi_lb60: Reduce system timer and clocksource to 750 kHz

2019-07-01 Thread Paul Cercueil
The default clock (12 MHz) is too fast for the system timer, which fails to report time accurately. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: Remove ingenic,clocksource-channel property v7-v14: No change

Re: [UPDATE][PATCH 10/10] tools/power/x86: A tool to validate Intel Speed Select commands

2019-07-01 Thread Srinivas Pandruvada
On Mon, 2019-07-01 at 14:32 +0300, Andy Shevchenko wrote: > On Sun, Jun 30, 2019 at 8:14 PM Srinivas Pandruvada > wrote: > > > > The Intel(R) Speed select technologies contains four features. > > > > Performance profile:An non architectural mechanism that allows > > multiple > > optimized perfor

Re: [RFC PATCH] binfmt_elf: Extract .note.gnu.property from an ELF file

2019-07-01 Thread Jann Horn
On Fri, Jun 28, 2019 at 7:30 PM Yu-cheng Yu wrote: [...] > In the discussion, we decided to look at only an ELF header's > PT_GNU_PROPERTY, which is a shortcut pointing to the file's > .note.gnu.property. > > The Linux gABI extension draft is here: > > https://github.com/hjl-tools/linux-abi/wi

Re: [RFC PATCH 3/3] Prevent user from writing to IBT bitmap.

2019-07-01 Thread Yu-cheng Yu
On Sat, 2019-06-29 at 16:44 -0700, Andy Lutomirski wrote: > On Fri, Jun 28, 2019 at 12:50 PM Yu-cheng Yu wrote: > > > > The IBT bitmap is visiable from user-mode, but not writable. > > > > Signed-off-by: Yu-cheng Yu > > > > --- > > arch/x86/mm/fault.c | 7 +++ > > 1 file changed, 7 insert

Re: [RFC PATCH] binfmt_elf: Extract .note.gnu.property from an ELF file

2019-07-01 Thread Yu-cheng Yu
On Mon, 2019-07-01 at 21:49 +0200, Jann Horn wrote: > On Fri, Jun 28, 2019 at 7:30 PM Yu-cheng Yu wrote: > [...] > > In the discussion, we decided to look at only an ELF header's > > PT_GNU_PROPERTY, which is a shortcut pointing to the file's > > .note.gnu.property. > > > > The Linux gABI extensi

Re: [PATCH v5 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

2019-07-01 Thread bsegall
Alright, this prototype of "maybe we should just 100% avoid stranding runtime for a full period" appears to fix the fibtest synthetic example, and seems like a theoretically-reasonable approach. Things that may want improvement or at least thought (but it's a holiday week in the US and I wanted an