Re: [PATCHv2 07/11] atomics: add common header generation files

2018-06-28 Thread Peter Zijlstra
On Thu, Jun 28, 2018 at 11:58:29AM +0100, Mark Rutland wrote: > Peter, I assume that your ack holds with that change. Of course :-)

Re: [PATCHv2 07/11] atomics: add common header generation files

2018-06-28 Thread Peter Zijlstra
On Thu, Jun 28, 2018 at 11:58:29AM +0100, Mark Rutland wrote: > Peter, I assume that your ack holds with that change. Of course :-)

[RFC PATCH v4 03/12] PM: Introduce an Energy Model management framework

2018-06-28 Thread Quentin Perret
Several subsystems in the kernel (task scheduler and/or thermal at the time of writing) can benefit from knowing about the energy consumed by CPUs. Yet, this information can come from different sources (DT or firmware for example), in different formats, hence making it hard to exploit without a

[RFC PATCH v4 03/12] PM: Introduce an Energy Model management framework

2018-06-28 Thread Quentin Perret
Several subsystems in the kernel (task scheduler and/or thermal at the time of writing) can benefit from knowing about the energy consumed by CPUs. Yet, this information can come from different sources (DT or firmware for example), in different formats, hence making it hard to exploit without a

[RFC PATCH v4 05/12] sched/topology: Reference the Energy Model of CPUs when available

2018-06-28 Thread Quentin Perret
The existing scheduling domain hierarchy is defined to map to the cache topology of the system. However, Energy Aware Scheduling (EAS) requires more knowledge about the platform, and specifically needs to know about the span of Frequency Domains (FD), which do not always align with caches. To

[RFC PATCH v4 05/12] sched/topology: Reference the Energy Model of CPUs when available

2018-06-28 Thread Quentin Perret
The existing scheduling domain hierarchy is defined to map to the cache topology of the system. However, Energy Aware Scheduling (EAS) requires more knowledge about the platform, and specifically needs to know about the span of Frequency Domains (FD), which do not always align with caches. To

[RFC PATCH v4 09/12] sched/fair: Introduce an energy estimation helper function

2018-06-28 Thread Quentin Perret
In preparation for the definition of an energy-aware wakeup path, introduce a helper function to estimate the consequence on system energy when a specific task wakes-up on a specific CPU. compute_energy() estimates the capacity state to be reached by all frequency domains and estimates the

[RFC PATCH v4 08/12] sched: Add over-utilization/tipping point indicator

2018-06-28 Thread Quentin Perret
From: Morten Rasmussen Energy-aware scheduling is only meant to be active while the system is _not_ over-utilized. That is, there are spare cycles available to shift tasks around based on their actual utilization to get a more energy-efficient task distribution without depriving any tasks. When

[RFC PATCH v4 08/12] sched: Add over-utilization/tipping point indicator

2018-06-28 Thread Quentin Perret
From: Morten Rasmussen Energy-aware scheduling is only meant to be active while the system is _not_ over-utilized. That is, there are spare cycles available to shift tasks around based on their actual utilization to get a more energy-efficient task distribution without depriving any tasks. When

[RFC PATCH v4 09/12] sched/fair: Introduce an energy estimation helper function

2018-06-28 Thread Quentin Perret
In preparation for the definition of an energy-aware wakeup path, introduce a helper function to estimate the consequence on system energy when a specific task wakes-up on a specific CPU. compute_energy() estimates the capacity state to be reached by all frequency domains and estimates the

[RFC PATCH v4 11/12] OPTIONAL: arch_topology: Start Energy Aware Scheduling

2018-06-28 Thread Quentin Perret
Energy Aware Scheduling (EAS) starts when the scheduling domains are built if the Energy Model (EM) is present. However, in the typical case of Arm/Arm64 systems, the EM is provided after the scheduling domains are first built at boot time, which results in EAS staying disabled. Fix this issue by

[RFC PATCH v4 12/12] OPTIONAL: cpufreq: dt: Register an Energy Model

2018-06-28 Thread Quentin Perret
*** * This patch illustrates the usage of the newly introduced Energy * * Model framework and isn't supposed to be merged as-is. * *** The Energy Model

[RFC PATCH v4 12/12] OPTIONAL: cpufreq: dt: Register an Energy Model

2018-06-28 Thread Quentin Perret
*** * This patch illustrates the usage of the newly introduced Energy * * Model framework and isn't supposed to be merged as-is. * *** The Energy Model

[RFC PATCH v4 11/12] OPTIONAL: arch_topology: Start Energy Aware Scheduling

2018-06-28 Thread Quentin Perret
Energy Aware Scheduling (EAS) starts when the scheduling domains are built if the Energy Model (EM) is present. However, in the typical case of Arm/Arm64 systems, the EM is provided after the scheduling domains are first built at boot time, which results in EAS staying disabled. Fix this issue by

[RFC PATCH v4 10/12] sched/fair: Select an energy-efficient CPU on task wake-up

2018-06-28 Thread Quentin Perret
If an Energy Model (EM) is available and if the system isn't overutilized, re-route waking tasks into an energy-aware placement algorithm. The selection of an energy-efficient CPU for a task is achieved by estimating the impact on system-level active energy resulting from the placement of the task

[RFC PATCH v4 01/12] sched: Relocate arch_scale_cpu_capacity

2018-06-28 Thread Quentin Perret
By default, arch_scale_cpu_capacity() is only visible from within the kernel/sched folder. Relocate it to include/linux/sched/topology.h to make it visible to other clients needing to know about the capacity of CPUs, such as the Energy Model framework. Cc: Ingo Molnar Cc: Peter Zijlstra

[RFC PATCH v4 04/12] PM / EM: Expose the Energy Model in sysfs

2018-06-28 Thread Quentin Perret
Expose the Energy Model (read-only) of all frequency domains in sysfs for convenience. To do so, add a kobject to the CPU subsystem under the umbrella of which a kobject for each frequency domain is attached. The resulting hierarchy is as follows for a platform with two frequency domains for

[RFC PATCH v4 06/12] sched/topology: Lowest energy aware balancing sched_domain level pointer

2018-06-28 Thread Quentin Perret
Add another member to the family of per-cpu sched_domain shortcut pointers. This one, sd_ea, points to the lowest level at which energy aware scheduling should be used. Generally speaking, the largest opportunity to save energy via scheduling comes from a smarter exploitation of heterogeneous

[RFC PATCH v4 10/12] sched/fair: Select an energy-efficient CPU on task wake-up

2018-06-28 Thread Quentin Perret
If an Energy Model (EM) is available and if the system isn't overutilized, re-route waking tasks into an energy-aware placement algorithm. The selection of an energy-efficient CPU for a task is achieved by estimating the impact on system-level active energy resulting from the placement of the task

[RFC PATCH v4 01/12] sched: Relocate arch_scale_cpu_capacity

2018-06-28 Thread Quentin Perret
By default, arch_scale_cpu_capacity() is only visible from within the kernel/sched folder. Relocate it to include/linux/sched/topology.h to make it visible to other clients needing to know about the capacity of CPUs, such as the Energy Model framework. Cc: Ingo Molnar Cc: Peter Zijlstra

[RFC PATCH v4 04/12] PM / EM: Expose the Energy Model in sysfs

2018-06-28 Thread Quentin Perret
Expose the Energy Model (read-only) of all frequency domains in sysfs for convenience. To do so, add a kobject to the CPU subsystem under the umbrella of which a kobject for each frequency domain is attached. The resulting hierarchy is as follows for a platform with two frequency domains for

[RFC PATCH v4 06/12] sched/topology: Lowest energy aware balancing sched_domain level pointer

2018-06-28 Thread Quentin Perret
Add another member to the family of per-cpu sched_domain shortcut pointers. This one, sd_ea, points to the lowest level at which energy aware scheduling should be used. Generally speaking, the largest opportunity to save energy via scheduling comes from a smarter exploitation of heterogeneous

[RFC PATCH v4 07/12] sched/topology: Introduce sched_energy_present static key

2018-06-28 Thread Quentin Perret
In order to ensure a minimal performance impact on non-energy-aware systems, introduce a static_key guarding the access to Energy-Aware Scheduling (EAS) code. The static key is set iff all the following conditions are met for at least one root domain: 1. all online CPUs of the root domain are

[RFC PATCH v4 07/12] sched/topology: Introduce sched_energy_present static key

2018-06-28 Thread Quentin Perret
In order to ensure a minimal performance impact on non-energy-aware systems, introduce a static_key guarding the access to Energy-Aware Scheduling (EAS) code. The static key is set iff all the following conditions are met for at least one root domain: 1. all online CPUs of the root domain are

[RFC PATCH v4 02/12] sched/cpufreq: Factor out utilization to frequency mapping

2018-06-28 Thread Quentin Perret
The schedutil governor maps utilization values to frequencies by applying a 25% margin. Since this sort of mapping mechanism can be needed by other users (i.e. EAS), factor the utilization-to-frequency mapping code out of schedutil and move it to include/linux/sched/cpufreq.h to avoid code

[RFC PATCH v4 02/12] sched/cpufreq: Factor out utilization to frequency mapping

2018-06-28 Thread Quentin Perret
The schedutil governor maps utilization values to frequencies by applying a 25% margin. Since this sort of mapping mechanism can be needed by other users (i.e. EAS), factor the utilization-to-frequency mapping code out of schedutil and move it to include/linux/sched/cpufreq.h to avoid code

[RFC PATCH v4 00/12] Energy Aware Scheduling

2018-06-28 Thread Quentin Perret
The Energy Aware Scheduler (EAS) based on Morten Rasmussen's posting on LKML [1] is currently part of the AOSP Common Kernel and runs on today's smartphones with Arm's big.LITTLE CPUs. This series implements a new and largely simplified version of EAS based on an Energy Model (EM) of the platform

[RFC PATCH v4 00/12] Energy Aware Scheduling

2018-06-28 Thread Quentin Perret
The Energy Aware Scheduler (EAS) based on Morten Rasmussen's posting on LKML [1] is currently part of the AOSP Common Kernel and runs on today's smartphones with Arm's big.LITTLE CPUs. This series implements a new and largely simplified version of EAS based on an Energy Model (EM) of the platform

Re: Amiga RDB partition support for disks >= 2 TB

2018-06-28 Thread Martin Steigerwald
Martin Steigerwald - 28.06.18, 13:30: > jdow - 28.06.18, 12:00: > > On 20180628 01:16, Martin Steigerwald wrote: > […] > > > >> That brings to the fore an interesting question. Why bother with > > >> RDBs > > >> over 2TB unless you want

Re: Amiga RDB partition support for disks >= 2 TB

2018-06-28 Thread Martin Steigerwald
Martin Steigerwald - 28.06.18, 13:30: > jdow - 28.06.18, 12:00: > > On 20180628 01:16, Martin Steigerwald wrote: > […] > > > >> That brings to the fore an interesting question. Why bother with > > >> RDBs > > >> over 2TB unless you want

Re: Amiga RDB partition support for disks >= 2 TB

2018-06-28 Thread Martin Steigerwald
jdow - 28.06.18, 12:00: > On 20180628 01:16, Martin Steigerwald wrote: […] > >> That brings to the fore an interesting question. Why bother with > >> RDBs > >> over 2TB unless you want a disk with one single partition? This > >> Win10 > >> monst

Re: Amiga RDB partition support for disks >= 2 TB

2018-06-28 Thread Martin Steigerwald
jdow - 28.06.18, 12:00: > On 20180628 01:16, Martin Steigerwald wrote: […] > >> That brings to the fore an interesting question. Why bother with > >> RDBs > >> over 2TB unless you want a disk with one single partition? This > >> Win10 > >> monst

Re: [PATCH v6 1/5] mm/sparse: Add a static variable nr_present_sections

2018-06-28 Thread Oscar Salvador
On Thu, Jun 28, 2018 at 02:28:53PM +0800, Baoquan He wrote: > It's used to record how many memory sections are marked as present > during system boot up, and will be used in the later patch. > > Signed-off-by: Baoquan He > Reviewed-by: Pavel Tatashin Reviewed-by: Oscar Salvador > --- >

Re: [PATCH v6 1/5] mm/sparse: Add a static variable nr_present_sections

2018-06-28 Thread Oscar Salvador
On Thu, Jun 28, 2018 at 02:28:53PM +0800, Baoquan He wrote: > It's used to record how many memory sections are marked as present > during system boot up, and will be used in the later patch. > > Signed-off-by: Baoquan He > Reviewed-by: Pavel Tatashin Reviewed-by: Oscar Salvador > --- >

[PATCH 2/2] regulator: bd71837: Remove duplicate description from DT bindings

2018-06-28 Thread Matti Vaittinen
Same general chip description was written in MFD and Regulator binding documents for ROHM bd71837 PMIC. Remove description from regulator binding as suggested by Rob H. Signed-off-by: Matti Vaittinen --- .../devicetree/bindings/regulator/rohm,bd71837-regulator.txt | 8 1 file

[PATCH 2/2] regulator: bd71837: Remove duplicate description from DT bindings

2018-06-28 Thread Matti Vaittinen
Same general chip description was written in MFD and Regulator binding documents for ROHM bd71837 PMIC. Remove description from regulator binding as suggested by Rob H. Signed-off-by: Matti Vaittinen --- .../devicetree/bindings/regulator/rohm,bd71837-regulator.txt | 8 1 file

[PATCH 1/2] regulator: bd71837: Editorial cleanups.

2018-06-28 Thread Matti Vaittinen
Address issues spotted by Andy Shevchenko during review of original patch No functional changes intended Signed-off-by: Matti Vaittinen --- drivers/regulator/bd71837-regulator.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git

[PATCH 1/2] regulator: bd71837: Editorial cleanups.

2018-06-28 Thread Matti Vaittinen
Address issues spotted by Andy Shevchenko during review of original patch No functional changes intended Signed-off-by: Matti Vaittinen --- drivers/regulator/bd71837-regulator.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git

Re: [PATCH v2 1/2] leds: core: Introduce generic pattern interface

2018-06-28 Thread Baolin Wang
On 28 June 2018 at 18:24, Andy Shevchenko wrote: > On Thu, Jun 28, 2018 at 12:18 PM, Baolin Wang wrote: >> On 28 June 2018 at 16:31, Andy Shevchenko wrote: >>> On Thu, Jun 28, 2018 at 8:16 AM, Baolin Wang wrote: > +What: /sys/class/leds//pattern +Date: June 2018 +KernelVersion:

Re: [PATCH v2 1/2] leds: core: Introduce generic pattern interface

2018-06-28 Thread Baolin Wang
On 28 June 2018 at 18:24, Andy Shevchenko wrote: > On Thu, Jun 28, 2018 at 12:18 PM, Baolin Wang wrote: >> On 28 June 2018 at 16:31, Andy Shevchenko wrote: >>> On Thu, Jun 28, 2018 at 8:16 AM, Baolin Wang wrote: > +What: /sys/class/leds//pattern +Date: June 2018 +KernelVersion:

Re: [PATCH v6 2/5] mm/sparsemem: Defer the ms->section_mem_map clearing

2018-06-28 Thread Oscar Salvador
On Thu, Jun 28, 2018 at 02:28:54PM +0800, Baoquan He wrote: > In sparse_init(), if CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER=y, system > will allocate one continuous memory chunk for mem maps on one node and > populate the relevant page tables to map memory section one by one. If > fail to populate

Re: [PATCH v6 2/5] mm/sparsemem: Defer the ms->section_mem_map clearing

2018-06-28 Thread Oscar Salvador
On Thu, Jun 28, 2018 at 02:28:54PM +0800, Baoquan He wrote: > In sparse_init(), if CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER=y, system > will allocate one continuous memory chunk for mem maps on one node and > populate the relevant page tables to map memory section one by one. If > fail to populate

Re: [PATCHv2 07/11] atomics: add common header generation files

2018-06-28 Thread Mark Rutland
On Mon, Jun 25, 2018 at 11:59:48AM +0100, Mark Rutland wrote: > diff --git a/scripts/atomic/gen-atomic-long.sh > b/scripts/atomic/gen-atomic-long.sh > +cat << EOF > +// SPDX-License-Identifier: GPL-2.0 > + > +// Generated by $0 > +// DO NOT MODIFY THIS FILE DIRECTLY > + > +#ifndef

Re: [PATCHv2 07/11] atomics: add common header generation files

2018-06-28 Thread Mark Rutland
On Mon, Jun 25, 2018 at 11:59:48AM +0100, Mark Rutland wrote: > diff --git a/scripts/atomic/gen-atomic-long.sh > b/scripts/atomic/gen-atomic-long.sh > +cat << EOF > +// SPDX-License-Identifier: GPL-2.0 > + > +// Generated by $0 > +// DO NOT MODIFY THIS FILE DIRECTLY > + > +#ifndef

Re: staging: rtl8723bs: bug or pointless if else ?

2018-06-28 Thread Greg Kroah-Hartman
On Thu, Jun 28, 2018 at 09:43:47AM +0200, Michael Straube wrote: > Hi, > > I stumbled upon the following if else construct in > drivers/staging/rtl8723bs/os_dep/sdio_intf.c:618 > > if (pwrpriv->bInternalAutoSuspend) > { > ret = rtw_resume_process(padapter); >

Re: staging: rtl8723bs: bug or pointless if else ?

2018-06-28 Thread Greg Kroah-Hartman
On Thu, Jun 28, 2018 at 09:43:47AM +0200, Michael Straube wrote: > Hi, > > I stumbled upon the following if else construct in > drivers/staging/rtl8723bs/os_dep/sdio_intf.c:618 > > if (pwrpriv->bInternalAutoSuspend) > { > ret = rtw_resume_process(padapter); >

[PATCH 1/2] nds32: To implement these icache invalidation APIs since nds32 cores don't snoop data cache. This issue is found by Guo Ren. Based on the Documentation/core-api/cachetlb.rst and it says:

2018-06-28 Thread Greentime Hu
"Any necessary cache flushing or other coherency operations that need to occur should happen here. If the processor's instruction cache does not snoop cpu stores, it is very likely that you will need to flush the instruction cache for copy_to_user_page()." "If the icache does not snoop stores

[PATCH 1/2] nds32: To implement these icache invalidation APIs since nds32 cores don't snoop data cache. This issue is found by Guo Ren. Based on the Documentation/core-api/cachetlb.rst and it says:

2018-06-28 Thread Greentime Hu
"Any necessary cache flushing or other coherency operations that need to occur should happen here. If the processor's instruction cache does not snoop cpu stores, it is very likely that you will need to flush the instruction cache for copy_to_user_page()." "If the icache does not snoop stores

[PATCH 2/2] nds32: Fix the dts pointer is not passed correctly issue.

2018-06-28 Thread Greentime Hu
We found that the original implementation will only use the built-in dtb pointer instead of the pointer pass from bootloader. This bug is fixed by this patch. Signed-off-by: Greentime Hu --- arch/nds32/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 2/2] nds32: Fix the dts pointer is not passed correctly issue.

2018-06-28 Thread Greentime Hu
We found that the original implementation will only use the built-in dtb pointer instead of the pointer pass from bootloader. This bug is fixed by this patch. Signed-off-by: Greentime Hu --- arch/nds32/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v3 2/5] clocksource/drivers/timer-mediatek: Rename mtk_timer to timer-mediatek

2018-06-28 Thread Stanley Chu
Rename mtk_timer to timer-mediatek to apply new naming convention in clocksource folder. Signed-off-by: Stanley Chu --- drivers/clocksource/Makefile |2 +- drivers/clocksource/mtk_timer.c | 268 -- drivers/clocksource/timer-mediatek.c | 268

[PATCH v3 2/5] clocksource/drivers/timer-mediatek: Rename mtk_timer to timer-mediatek

2018-06-28 Thread Stanley Chu
Rename mtk_timer to timer-mediatek to apply new naming convention in clocksource folder. Signed-off-by: Stanley Chu --- drivers/clocksource/Makefile |2 +- drivers/clocksource/mtk_timer.c | 268 -- drivers/clocksource/timer-mediatek.c | 268

[PATCH v3 5/5] clocksource/drivers/timer-mediatek: Add support for system timer

2018-06-28 Thread Stanley Chu
This patch adds a new "System Timer" on the Mediatek SoCs. The System Timer is introduced as an always-on timer being clockevent device for tick-broadcasting. For clock, it is driven by 13 MHz system clock. The implementation uses the system clock with no clock source divider. For interrupt,

[PATCH v3 5/5] clocksource/drivers/timer-mediatek: Add support for system timer

2018-06-28 Thread Stanley Chu
This patch adds a new "System Timer" on the Mediatek SoCs. The System Timer is introduced as an always-on timer being clockevent device for tick-broadcasting. For clock, it is driven by 13 MHz system clock. The implementation uses the system clock with no clock source divider. For interrupt,

[PATCH v3 1/5] clocksource/drivers/timer-mediatek: Add system timer bindings

2018-06-28 Thread Stanley Chu
This patch fixes bindings of existed "General Purpose Timer", and then add bindings of new "System Timer" on Mediatek SoCs. Signed-off-by: Stanley Chu --- .../bindings/timer/mediatek,mtk-timer.txt | 38 1 file changed, 32 insertions(+), 6 deletions(-) diff --git

[PATCH v3 0/5] Add system timer driver for Mediatek SoCs

2018-06-28 Thread Stanley Chu
Changes since v2: - Rename existed mtk_timer.c to timer-mediatek.c. - Add system timer support into timer-mediatek.c instead of creating a new file. - Use _gpt_ and _syst_ to identify different timers. - Convert gpt driver to use timer_of. - Fix system timer driver: irq flags. - Fix bindings of

[PATCH v3 0/5] Add system timer driver for Mediatek SoCs

2018-06-28 Thread Stanley Chu
Changes since v2: - Rename existed mtk_timer.c to timer-mediatek.c. - Add system timer support into timer-mediatek.c instead of creating a new file. - Use _gpt_ and _syst_ to identify different timers. - Convert gpt driver to use timer_of. - Fix system timer driver: irq flags. - Fix bindings of

[PATCH v3 1/5] clocksource/drivers/timer-mediatek: Add system timer bindings

2018-06-28 Thread Stanley Chu
This patch fixes bindings of existed "General Purpose Timer", and then add bindings of new "System Timer" on Mediatek SoCs. Signed-off-by: Stanley Chu --- .../bindings/timer/mediatek,mtk-timer.txt | 38 1 file changed, 32 insertions(+), 6 deletions(-) diff --git

[PATCH v3 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-06-28 Thread Stanley Chu
Convert the driver to use the timer_of helpers. This allows to remove custom proprietary structure, factors out and simplifies the code. Signed-off-by: Stanley Chu --- drivers/clocksource/timer-mediatek.c | 222 -- 1 file changed, 104 insertions(+), 118

[PATCH v3 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-06-28 Thread Stanley Chu
Convert the driver to use the timer_of helpers. This allows to remove custom proprietary structure, factors out and simplifies the code. Signed-off-by: Stanley Chu --- drivers/clocksource/timer-mediatek.c | 222 -- 1 file changed, 104 insertions(+), 118

[PATCH v3 3/5] clocksource/drivers/timer-mediatek: Rename function prefix

2018-06-28 Thread Stanley Chu
Add prefix to specify the name of supported timer hardware: "General Purpose Timer (GPT)". Signed-off-by: Stanley Chu --- drivers/clocksource/timer-mediatek.c | 60 +- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git

[PATCH v3 3/5] clocksource/drivers/timer-mediatek: Rename function prefix

2018-06-28 Thread Stanley Chu
Add prefix to specify the name of supported timer hardware: "General Purpose Timer (GPT)". Signed-off-by: Stanley Chu --- drivers/clocksource/timer-mediatek.c | 60 +- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git

Re: [PATCH v12 09/11] x86/tsc: prepare for early sched_clock

2018-06-28 Thread Thomas Gleixner
On Thu, 28 Jun 2018, Thomas Gleixner wrote: > I still want to document the unholy mess of what is initialized and > available when. We have 5 hypervisors and 3 different points in early boot > where the calibrate_* callbacks are overwritten. The XEN PV one is actually > post tsc_init_early() for

Re: [PATCH v12 09/11] x86/tsc: prepare for early sched_clock

2018-06-28 Thread Thomas Gleixner
On Thu, 28 Jun 2018, Thomas Gleixner wrote: > I still want to document the unholy mess of what is initialized and > available when. We have 5 hypervisors and 3 different points in early boot > where the calibrate_* callbacks are overwritten. The XEN PV one is actually > post tsc_init_early() for

Re: [PATCH v22 4/4] soc: mediatek: Add Mediatek CMDQ helper

2018-06-28 Thread CK Hu
Hi, Houlong: Some inline comment. On Wed, 2018-06-27 at 19:16 +0800, Houlong Wei wrote: > Add Mediatek CMDQ helper to create CMDQ packet and assemble GCE op code. > > Signed-off-by: Houlong Wei > Signed-off-by: HS Liao > --- > drivers/soc/mediatek/Kconfig | 12 ++ >

Re: [PATCH v22 4/4] soc: mediatek: Add Mediatek CMDQ helper

2018-06-28 Thread CK Hu
Hi, Houlong: Some inline comment. On Wed, 2018-06-27 at 19:16 +0800, Houlong Wei wrote: > Add Mediatek CMDQ helper to create CMDQ packet and assemble GCE op code. > > Signed-off-by: Houlong Wei > Signed-off-by: HS Liao > --- > drivers/soc/mediatek/Kconfig | 12 ++ >

Re: [PATCH v2 2/2] clocksource/drivers/mtk_systimer: Add support for Mediatek SoCs

2018-06-28 Thread Stanley Chu
On Wed, 2018-06-27 at 12:01 +0200, Daniel Lezcano wrote: > On 27/06/2018 09:53, Stanley Chu wrote: > > This patch adds a new clock event for the timer > > found on the Mediatek SoCs. > > > > The Mediatek System Timer has several 32-bit timers. > > Only one timer is used by this driver as a clock

Re: [PATCH v2 2/2] clocksource/drivers/mtk_systimer: Add support for Mediatek SoCs

2018-06-28 Thread Stanley Chu
On Wed, 2018-06-27 at 12:01 +0200, Daniel Lezcano wrote: > On 27/06/2018 09:53, Stanley Chu wrote: > > This patch adds a new clock event for the timer > > found on the Mediatek SoCs. > > > > The Mediatek System Timer has several 32-bit timers. > > Only one timer is used by this driver as a clock

Re: [PATCH v2 1/2] dt-bindings: Add mtk-systimer bindings

2018-06-28 Thread Stanley Chu
On Wed, 2018-06-27 at 10:20 +0200, Daniel Lezcano wrote: > Actually this binding already exists for mediatek timers, it is useless > to add a new one. > > I note the binding in > > Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt > > contains: > > clocks = <_clk>, <_clk> > >

Re: [PATCH v2 1/2] leds: core: Introduce generic pattern interface

2018-06-28 Thread Andy Shevchenko
On Thu, Jun 28, 2018 at 12:18 PM, Baolin Wang wrote: > On 28 June 2018 at 16:31, Andy Shevchenko wrote: >> On Thu, Jun 28, 2018 at 8:16 AM, Baolin Wang wrote: >>> +What: /sys/class/leds//pattern >>> +Date: June 2018 >>> +KernelVersion: 4.18 >> >> 4.19 ? > > I think this will be merged in 4.18.

Re: [PATCH v2 1/2] dt-bindings: Add mtk-systimer bindings

2018-06-28 Thread Stanley Chu
On Wed, 2018-06-27 at 10:20 +0200, Daniel Lezcano wrote: > Actually this binding already exists for mediatek timers, it is useless > to add a new one. > > I note the binding in > > Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt > > contains: > > clocks = <_clk>, <_clk> > >

Re: [PATCH v2 1/2] leds: core: Introduce generic pattern interface

2018-06-28 Thread Andy Shevchenko
On Thu, Jun 28, 2018 at 12:18 PM, Baolin Wang wrote: > On 28 June 2018 at 16:31, Andy Shevchenko wrote: >> On Thu, Jun 28, 2018 at 8:16 AM, Baolin Wang wrote: >>> +What: /sys/class/leds//pattern >>> +Date: June 2018 >>> +KernelVersion: 4.18 >> >> 4.19 ? > > I think this will be merged in 4.18.

Re: KVM guest sometimes failed to boot because of kernel stack overflow if KPTI is enabled on a hisilicon ARM64 platform.

2018-06-28 Thread Wei Xu
Hi James, On 2018/6/28 9:45, James Morse wrote: > Hi Wei, > > On 27/06/18 14:26, Wei Xu wrote: >> Sorry, I should highlight that I have only updated the default value >> of CONFIG_NR_CPUS by menuconfig in the previous mail. >> That is why it showed dirty. > > (menuconfig changes don't show up

Re: KVM guest sometimes failed to boot because of kernel stack overflow if KPTI is enabled on a hisilicon ARM64 platform.

2018-06-28 Thread Wei Xu
Hi James, On 2018/6/28 9:45, James Morse wrote: > Hi Wei, > > On 27/06/18 14:26, Wei Xu wrote: >> Sorry, I should highlight that I have only updated the default value >> of CONFIG_NR_CPUS by menuconfig in the previous mail. >> That is why it showed dirty. > > (menuconfig changes don't show up

Applied "ASoC: dpcm: don't merge format from invalid codec dai" to the asoc tree

2018-06-28 Thread Mark Brown
The patch ASoC: dpcm: don't merge format from invalid codec dai has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "ASoC: dpcm: extend channel merging to the backend cpu dai" to the asoc tree

2018-06-28 Thread Mark Brown
The patch ASoC: dpcm: extend channel merging to the backend cpu dai has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: dpcm: don't merge format from invalid codec dai" to the asoc tree

2018-06-28 Thread Mark Brown
The patch ASoC: dpcm: don't merge format from invalid codec dai has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "ASoC: dpcm: extend channel merging to the backend cpu dai" to the asoc tree

2018-06-28 Thread Mark Brown
The patch ASoC: dpcm: extend channel merging to the backend cpu dai has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: dpcm: improve runtime update predictability" to the asoc tree

2018-06-28 Thread Mark Brown
The patch ASoC: dpcm: improve runtime update predictability has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "ASoC: dpcm: improve runtime update predictability" to the asoc tree

2018-06-28 Thread Mark Brown
The patch ASoC: dpcm: improve runtime update predictability has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Re: [PATCH v8 2/2] regulator: add QCOM RPMh regulator driver

2018-06-28 Thread Mark Brown
On Wed, Jun 27, 2018 at 09:28:03AM -0700, Doug Anderson wrote: > OK, great. I guess I'm confused about the "|| COMPILE_TEST" causing > problems then? I was worried that anyone trying to do "COMPILE_TEST" > on your tree (or linuxnext if RPMh isn't there) would get failures due > to the lack of

Re: [PATCH v8 2/2] regulator: add QCOM RPMh regulator driver

2018-06-28 Thread Mark Brown
On Wed, Jun 27, 2018 at 09:28:03AM -0700, Doug Anderson wrote: > OK, great. I guess I'm confused about the "|| COMPILE_TEST" causing > problems then? I was worried that anyone trying to do "COMPILE_TEST" > on your tree (or linuxnext if RPMh isn't there) would get failures due > to the lack of

Re: [PATCH v2] driver core: add a debugfs entry to show deferred devices

2018-06-28 Thread Mark Brown
On Thu, Jun 28, 2018 at 12:06:56AM +0200, Javier Martinez Canillas wrote: > With Device Trees (DT), the dependencies of the devices are defined in the > DT, then the drivers parse that information to lookup the needed resources > that have as dependencies. Reviewed-by: Mark Brown signature.asc

Re: [PATCH] ASoC: dpcm: extend channel merging to the backend cpu dai

2018-06-28 Thread Mark Brown
On Wed, Jun 27, 2018 at 11:48:18AM +0200, Jerome Brunet wrote: > As you've probably noticed, this patch applies on top Jiada's patch > pf4c277b817cc ("ASoC: soc-pcm: DPCM cares BE channel constraint") That isn't a valid hash... signature.asc Description: PGP signature

Re: [PATCH] ASoC: dpcm: extend channel merging to the backend cpu dai

2018-06-28 Thread Mark Brown
On Wed, Jun 27, 2018 at 11:48:18AM +0200, Jerome Brunet wrote: > As you've probably noticed, this patch applies on top Jiada's patch > pf4c277b817cc ("ASoC: soc-pcm: DPCM cares BE channel constraint") That isn't a valid hash... signature.asc Description: PGP signature

Re: [PATCH v2] driver core: add a debugfs entry to show deferred devices

2018-06-28 Thread Mark Brown
On Thu, Jun 28, 2018 at 12:06:56AM +0200, Javier Martinez Canillas wrote: > With Device Trees (DT), the dependencies of the devices are defined in the > DT, then the drivers parse that information to lookup the needed resources > that have as dependencies. Reviewed-by: Mark Brown signature.asc

Re: staging: rtl8723bs: bug or pointless if else ?

2018-06-28 Thread Bastien Nocera
On Thu, 2018-06-28 at 10:22 +0200, Hans de Goede wrote: > Hi, > > On 28-06-18 09:43, Michael Straube wrote: > > Hi, > > > > I stumbled upon the following if else construct in > > drivers/staging/rtl8723bs/os_dep/sdio_intf.c:618 > > > > if (pwrpriv->bInternalAutoSuspend) > > {

Re: staging: rtl8723bs: bug or pointless if else ?

2018-06-28 Thread Bastien Nocera
On Thu, 2018-06-28 at 10:22 +0200, Hans de Goede wrote: > Hi, > > On 28-06-18 09:43, Michael Straube wrote: > > Hi, > > > > I stumbled upon the following if else construct in > > drivers/staging/rtl8723bs/os_dep/sdio_intf.c:618 > > > > if (pwrpriv->bInternalAutoSuspend) > > {

[PATCH] x86/mm: fix cpu stuck issue in __change_page_attr_set_clr

2018-06-28 Thread Bin Yang
This issue can be easily triggered by free_initmem() functuion on x86_64 cpu. When changing page attr, __change_page_attr_set_clr will call __change_page_attr for every 4K page. And try_preserve_large_page will be called to check whether it needs to split the large page.

[PATCH] x86/mm: fix cpu stuck issue in __change_page_attr_set_clr

2018-06-28 Thread Bin Yang
This issue can be easily triggered by free_initmem() functuion on x86_64 cpu. When changing page attr, __change_page_attr_set_clr will call __change_page_attr for every 4K page. And try_preserve_large_page will be called to check whether it needs to split the large page.

Re: Amiga RDB partition support for disks >= 2 TB

2018-06-28 Thread jdow
On 20180628 01:16, Martin Steigerwald wrote: Dear Joanne. jdow - 28.06.18, 08:39: Anything done to RDBs for Linux must remain 100.000% compatible with existing Amiga equipment. Otherwise, what's the point of bothering to use RDBs? Done to, in the sense of written to: Yes. I completely

Re: Amiga RDB partition support for disks >= 2 TB

2018-06-28 Thread jdow
On 20180628 01:16, Martin Steigerwald wrote: Dear Joanne. jdow - 28.06.18, 08:39: Anything done to RDBs for Linux must remain 100.000% compatible with existing Amiga equipment. Otherwise, what's the point of bothering to use RDBs? Done to, in the sense of written to: Yes. I completely

[PATCH v3 03/13] clk: davinci: psc-dm644x: use two lookup entries for the aemif clock

2018-06-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We want to be able to get the clock both from the board file by its con_id and from the aemif driver by dev_id. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- drivers/clk/davinci/psc-dm644x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v3 02/13] clk: davinci: psc-dm365: use two lookup entries for the aemif clock

2018-06-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We want to be able to get the clock both from the board file by its con_id and from the aemif driver by dev_id. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- drivers/clk/davinci/psc-dm365.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v3 03/13] clk: davinci: psc-dm644x: use two lookup entries for the aemif clock

2018-06-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We want to be able to get the clock both from the board file by its con_id and from the aemif driver by dev_id. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- drivers/clk/davinci/psc-dm644x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v3 02/13] clk: davinci: psc-dm365: use two lookup entries for the aemif clock

2018-06-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We want to be able to get the clock both from the board file by its con_id and from the aemif driver by dev_id. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- drivers/clk/davinci/psc-dm365.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v3 06/13] ARM: davinci: omapl138-hawk: add aemif & nand support

2018-06-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We now have support for aemif & nand from board files. As an example add support for nand to da850-hawk. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-omapl138-hawk.c | 132 1 file changed, 132 insertions(+) diff --git

[PATCH v3 01/13] clk: davinci: psc-da850: remove the 'davinci_nand.0" lookup

2018-06-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Since commit a8e3923ab571 ("mtd: rawnand: davinci: don't acquire and enable clock") we no longer acquire the aemif clock from the davinci nand driver - we only do it from the ti-aemif driver. Remove the nand entry from the psc lookup table. Signed-off-by: Bartosz

[PATCH v3 06/13] ARM: davinci: omapl138-hawk: add aemif & nand support

2018-06-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We now have support for aemif & nand from board files. As an example add support for nand to da850-hawk. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-omapl138-hawk.c | 132 1 file changed, 132 insertions(+) diff --git

[PATCH v3 01/13] clk: davinci: psc-da850: remove the 'davinci_nand.0" lookup

2018-06-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Since commit a8e3923ab571 ("mtd: rawnand: davinci: don't acquire and enable clock") we no longer acquire the aemif clock from the davinci nand driver - we only do it from the ti-aemif driver. Remove the nand entry from the psc lookup table. Signed-off-by: Bartosz

<    4   5   6   7   8   9   10   11   12   >