[PATCH v2 1/1] prctl: add PR_{GET,SET}_KILL_DESCENDANTS_ON_EXIT

2018-11-30 Thread Jürg Billeter
This introduces a new thread group flag that can be set by calling prctl(PR_SET_KILL_DESCENDANTS_ON_EXIT, 1, 0, 0, 0) When a thread group exits with this flag set, it will send SIGKILL to all descendant processes. This can be used to prevent stray child processes. This flag is cleared on pr

[PATCH v2 0/1] Add prctl to kill descendants on exit

2018-11-30 Thread Jürg Billeter
This patch adds a new prctl to kill all descendant processes on exit. See commit message for details of the prctl. This is a replacement of PR_SET_PDEATHSIG_PROC I proposed last year [1]. In the following discussion, Oleg suggested this approach. The motivation for this is to provide a lightweigh

[PATCH 2/2] thermal/drivers/hisi: Fix number of sensors on hi3660

2018-11-30 Thread Daniel Lezcano
Without this patch the thermal driver is broken on hi3660. The dual sensors support patchset was partially merged, unfortunately the dual thermal zones definition is not available in the DT yet, so when the driver tries to register all the sensors that fails. By reducing to 1 the number of sensor

[PATCH 1/2] thermal/drivers/hisi: Fix wrong platform_get_irq_byname()

2018-11-30 Thread Daniel Lezcano
Without this patch, the thermal driver on hi6220 and hi3660 is broken. That is due because part of the posted patchset was merged but a small change in the DT was dropped. The hi6220 and hi3660 do not have an interrupt name in the DT, so finding interrupt by name fails. Fix this by returning bac

[PATCH v3 0/6] IRQ affinity support in PLIC driver

2018-11-30 Thread Anup Patel
This patchset primarily adds IRQ affinity support in PLIC driver and other improvements. The patchset gives mechanism for explicitly routing external interrupts to particular CPUs using smp_affinity attribute of each Linux IRQs. Also, we can now use IRQ balancer from kernel-space or user-space. T

make[2]: *** No rule to make target 'arch/sh/boot/dts/.dtb.S', needed by 'arch/sh/boot/dts/.dtb.o'.

2018-11-30 Thread kbuild test robot
Hi Rob, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 94f371cb73944b410a269d570d6946c042f2ddd0 commit: 37c8a5fafa3bb7dcdd51774be353be6cb2912b86 kbuild: consolidate Devicetree dtb build rules date: 8 weeks ago co

[PATCH v3 2/6] irqchip: sifive-plic: Add struct plic_hw for global PLIC HW details

2018-11-30 Thread Anup Patel
This patch adds Add struct plic_hw to represent global PLIC HW details. Currently, these details are only used in plic_init() but in-future these will be useful in implementing PM suspend and resume callbacks. Further, these global details are good debug info about HW so let's not throw them away

[PATCH v3 3/6] irqchip: sifive-plic: More flexible plic_irq_toggle()

2018-11-30 Thread Anup Patel
We make plic_irq_toggle() more generic so that we can enable/disable hwirq for given cpumask. This generic plic_irq_toggle() will be eventually used to implement set_affinity for PLIC driver. Signed-off-by: Anup Patel --- drivers/irqchip/irq-sifive-plic.c | 15 +++ 1 file changed, 7

[PATCH v3 1/6] irqchip: sifive-plic: Pre-compute context hart base and enable base

2018-11-30 Thread Anup Patel
This patch does following optimizations: 1. Pre-compute hart base for each context handler 2. Pre-compute enable base for each context handler 3. Have enable lock for each context handler instead of global plic_toggle_lock Signed-off-by: Anup Patel --- drivers/irqchip/irq-sifive-plic.c | 47

[PATCH v3 5/6] irqchip: sifive-plic: Differentiate between PLIC handler and context

2018-11-30 Thread Anup Patel
We explicitly differentiate between PLIC handler and context because PLIC context is for given mode of HART whereas PLIC handler is per-CPU software construct meant for handling interrupts from a particular PLIC context. To achieve this differentiation, we rename "nr_handlers" to "nr_contexts" and

[PATCH v3 6/6] irqchip: sifive-plic: Implement irq_set_affinity() for SMP host

2018-11-30 Thread Anup Patel
Currently on SMP host, all CPUs take external interrupts routed via PLIC. All CPUs will try to claim a given external interrupt but only one of them will succeed while other CPUs would simply resume whatever they were doing before. This means if we have N CPUs then for every external interrupt N-1

[PATCH v3 4/6] irqchip: sifive-plic: Add warning in plic_init() if handler already present

2018-11-30 Thread Anup Patel
We have two enteries (one for M-mode and another for S-mode) in the interrupts-extended DT property of PLIC DT node for each HART. It is expected that firmware/bootloader will set M-mode HWIRQ line of each HART to 0x (i.e. -1) in interrupts-extended DT property because Linux runs in S-mode

Re: [PATCH 4.14 044/100] ACPICA: AML interpreter: add region addresses in global list during initialization

2018-11-30 Thread Greg Kroah-Hartman
On Thu, Nov 29, 2018 at 07:36:40PM +, Schmauss, Erik wrote: > > > > -Original Message- > > From: Jean Delvare [mailto:jdelv...@suse.de] > > Sent: Thursday, November 29, 2018 11:34 AM > > To: Greg Kroah-Hartman > > Cc: Schmauss, Erik ; linux- > > ker...@vger.kernel.org; sta...@vger.ke

[RFC PATCH V2 03/11] KVM: VMX: Added VMX SPP feature flags and VM-Execution Controls.

2018-11-30 Thread Zhang Yi
Add new secondary processor-based VM-execution control bit which defined as "sub-page write permission", same as VMX Procbased MSR, bit 23 is the enable bit of SPP. Also we introduced a enable_ept_spp parameter to control the SPP is ON/OFF, Set the default is OFF as we are on the way of enabling.

[RFC PATCH V2 01/11] Documentation: Added EPT Subpage Protection Documentation.

2018-11-30 Thread Zhang Yi
Signed-off-by: Zhang Yi --- Documentation/virtual/kvm/spp_design_kvm.txt | 275 +++ 1 file changed, 275 insertions(+) create mode 100644 Documentation/virtual/kvm/spp_design_kvm.txt diff --git a/Documentation/virtual/kvm/spp_design_kvm.txt b/Documentation/virtual/kvm/sp

[RFC PATCH V2 04/11] KVM: VMX: Introduce the SPPTP and SPP page table.

2018-11-30 Thread Zhang Yi
SPPT has 4-level paging structure that is similar to EPT except L1E. The sub-page permission table is referenced via a 64-bit control field called Sub-Page Permission Table Pointer (SPPTP) which contains a 4K-aligned physical address. the index and encoding for this VMCS field is defined 0x2030 at

[RFC PATCH V2 05/11] KVM: VMX: Write the SPPTP to VMCS area.

2018-11-30 Thread Zhang Yi
Same as EPT page table, We initialized the SPPT, and write the SPPT point into VMCS field. Signed-off-by: Zhang Yi --- arch/x86/include/asm/vmx.h | 2 ++ arch/x86/kvm/vmx.c | 17 + 2 files changed, 19 insertions(+) diff --git a/arch/x86/include/asm/vmx.h b/arch/x86/incl

[RFC PATCH V2 02/11] x86/cpufeature: Add intel Sub-Page Protection to CPU features

2018-11-30 Thread Zhang Yi
Adds reporting SPP capability from VMX Procbased MSR, according to the definition of hardware spec, bit 32 is the control of the SPP capability. Defined X86_FEATURE_SPP under intel X86 VT-x CPU features. Defined the X86_VMX_FEATURE_PROC_CTLS2_SPP in intel VMX MSR indicated features, And enable SP

[RFC PATCH V2 09/11] KVM: VMX: Update the EPT leaf entry indicated with the SPP enable bit.

2018-11-30 Thread Zhang Yi
If the sub-page write permission VM-execution control is set, treatment of write accesses to guest-physical accesses depends on the state of the accumulated write-access bit (position 1) and sub-page permission bit (position 61) in the EPT leaf paging-structure. Software will update the EPT leaf e

[RFC PATCH V2 06/11] KVM: VMX: Introduce SPP-Induced vm exit and it's handle.

2018-11-30 Thread Zhang Yi
Accesses using guest-physical addresses may cause SPP-induced VM exits due to an SPPT misconfiguration or an SPPT miss. The basic VM exit reason code reported for SPP-induced VM exits is 66. An SPPT misconfiguration VM exit occurs when, in the course of translating a guest-physical address, the lo

[RFC PATCH V2 08/11] KVM: VMX: Introduce ioctls to set/get Sub-Page Write Protection.

2018-11-30 Thread Zhang Yi
We introduced 2 ioctls to let user application to set/get subpage write protection bitmap per gfn, each gfn corresponds to a bitmap. The user application, qemu, or some other security control daemon. will set the protection bitmap via this ioctl. the API defined as: struct kvm_subpage {

[RFC PATCH V2 07/11] KVM: VMX: Added handle of SPP write protection fault.

2018-11-30 Thread Zhang Yi
A control bit in EPT leaf paging-structure entries is defined as “Sub-Page Permission” (SPP bit). The bit position is 61 While hardware walking the SPP page table, If the sub-page region write permission bit is set, the write is allowed, else the write is disallowed and results in an EPT violation

Re: [PATCH V2] clk: zynq: do not allow kmalloc failure

2018-11-30 Thread Stephen Boyd
Quoting Nicholas Mc Guire (2018-11-29 23:54:53) > On Thu, Nov 29, 2018 at 03:45:23PM -0800, Stephen Boyd wrote: > > Quoting Nicholas Mc Guire (2018-11-21 04:28:30) > > > The kmalloc here is small (< 16 bytes) and occurs during initialization > > > during system startup here (can not be built as mod

[RFC PATCH V2 10/11] KVM: VMX: Added setup spp page structure.

2018-11-30 Thread Zhang Yi
The hardware uses the guest-physical address and bits 11:7 of the address accessed to lookup the SPPT to fetch a write permission bit for the 128 byte wide sub-page region being accessed within the 4K guest-physical page. If the sub-page region write permission bit is set, the write is allowed; oth

[RFC PATCH V2 11/11] KVM: VMX: implement setup SPP page structure in spp miss.

2018-11-30 Thread Zhang Yi
We also should setup SPP page structure while we catch a SPP miss, some case, such as hotplug vcpu, should update the SPP page table in SPP miss handler. Signed-off-by: Zhang Yi --- arch/x86/include/asm/kvm_host.h | 2 ++ arch/x86/kvm/mmu.c | 12 arch/x86/kvm/vmx.c

RE: [PATCH] clk: imx6sl: ensure MMDC CH0 handshake is bypassed

2018-11-30 Thread Stephen Boyd
Quoting Anson Huang (2018-11-29 23:37:14) > Hi, Stephen > > Best Regards! > Anson Huang > > > -Original Message- > > From: Stephen Boyd [mailto:sb...@kernel.org] > > Sent: 2018年11月30日 15:25 > > To: ker...@pengutronix.de; linux-arm-ker...@lists.infradead.org; > > linux-...@vger.kernel.org;

Re: [PATCH 1/3] clk: qcom: gcc-msm8998: Mark hmss_dvm and lpass_at critical

2018-11-30 Thread Stephen Boyd
Quoting Bjorn Andersson (2018-11-29 23:24:20) > On Thu 29 Nov 23:05 PST 2018, Stephen Boyd wrote: > > > Quoting Bjorn Andersson (2018-11-29 22:52:57) > > > Keep the two clocks enabled, so that the platform passes > > > clk_disable_unused(). > > > > > > Signed-off-by: Bjorn Andersson > > > --- >

Re: [PATCH 2/3] clk: qcom: gcc-msm8998: Disable halt check of UFS clocks

2018-11-30 Thread Stephen Boyd
Quoting Bjorn Andersson (2018-11-29 23:27:25) > On Thu 29 Nov 23:06 PST 2018, Stephen Boyd wrote: > > > Quoting Bjorn Andersson (2018-11-29 22:52:58) > > > Drop the halt check of the UFS symbol clocks, in accordance with other > > > platforms. This makes clk_disable_unused() happy and makes it pos

Re: [PATCH 02/14] dt-bindings: soc: milbeaut: Add Milbeaut trampoline description

2018-11-30 Thread Stephen Boyd
Quoting Sugaya, Taichi (2018-11-29 04:24:51) > On 2018/11/28 11:01, Stephen Boyd wrote: > > Quoting Sugaya Taichi (2018-11-18 17:01:07) > >> create mode 100644 > >> Documentation/devicetree/bindings/soc/socionext/socionext,m10v.txt > >> > >> diff --git > >> a/Documentation/devicetree/bindings/s

Re: [PATCH 06/14] dt-bindings: clock: milbeaut: add Milbeaut clock description

2018-11-30 Thread Stephen Boyd
Quoting Sugaya Taichi (2018-11-18 17:01:11) > Add DT bindings document for Milbeaut clock. > > Signed-off-by: Sugaya Taichi > --- > .../devicetree/bindings/clock/milbeaut-clock.txt | 93 > ++ > 1 file changed, 93 insertions(+) > create mode 100644 Documentation/devicetree

Re: [PATCH 2/3] dt-bindings: clk: meson: add main controller clock input

2018-11-30 Thread Jerome Brunet
On Thu, 2018-11-29 at 15:43 -0800, Stephen Boyd wrote: > Quoting Jerome Brunet (2018-11-29 08:45:23) > > Add the clock input of the main clock controller > > > > Signed-off-by: Jerome Brunet > > --- > > Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt | 3 +++ > > 1 file changed, 3

Re: [PATCH AUTOSEL 4.14 25/35] iomap: sub-block dio needs to zeroout beyond EOF

2018-11-30 Thread Greg KH
On Fri, Nov 30, 2018 at 09:40:19AM +1100, Dave Chinner wrote: > On Thu, Nov 29, 2018 at 01:47:56PM +0100, Greg KH wrote: > > On Thu, Nov 29, 2018 at 11:14:59PM +1100, Dave Chinner wrote: > > > > > > Cherry picking only one of the 50-odd patches we've committed into > > > late 4.19 and 4.20 kernels

Re: [PATCH v10 24/27] drivers: firmware: psci: Support CPU hotplug for the hierarchical model

2018-11-30 Thread Ulf Hansson
On Thu, 29 Nov 2018 at 23:31, Lina Iyer wrote: > > Hi Ulf, > > On Thu, Nov 29 2018 at 10:50 -0700, Ulf Hansson wrote: > >When the hierarchical CPU topology is used and when a CPU has been put > >offline (hotplug), that same CPU prevents its PM domain and thus also > >potential master PM domains, f

Re: [PATCH V2] clk: zynq: do not allow kmalloc failure

2018-11-30 Thread Nicholas Mc Guire
On Fri, Nov 30, 2018 at 12:09:30AM -0800, Stephen Boyd wrote: > Quoting Nicholas Mc Guire (2018-11-29 23:54:53) > > On Thu, Nov 29, 2018 at 03:45:23PM -0800, Stephen Boyd wrote: > > > Quoting Nicholas Mc Guire (2018-11-21 04:28:30) > > > > The kmalloc here is small (< 16 bytes) and occurs during in

Re: [PATCH v3 8/8] mfd: cros_ec: add a dev_release empty method.

2018-11-30 Thread Greg Kroah-Hartman
On Thu, Nov 29, 2018 at 11:11:16PM +0100, Enric Balletbo i Serra wrote: > Hi, > > On 29/11/18 8:55, Greg Kroah-Hartman wrote: > > On Wed, Nov 28, 2018 at 05:17:22PM -0800, Guenter Roeck wrote: > >> Hi Greg, > >> > >> On Tue, Nov 27, 2018 at 9:52 AM Greg Kroah-Hartman > >> wrote: > >>> > >>> On Tu

Re: [PATCH 07/14] clock: milbeaut: Add Milbeaut M10V clock control

2018-11-30 Thread Stephen Boyd
Quoting Sugaya Taichi (2018-11-18 17:01:12) > Add Milbeaut M10V clock ( including PLL ) control. Please give some more details here. > > Signed-off-by: Sugaya Taichi > --- > drivers/clk/Makefile | 1 + > drivers/clk/clk-m10v.c | 671 > + And

Re: [PATCH] efi/fdt: More cleanups

2018-11-30 Thread Ard Biesheuvel
On Fri, 30 Nov 2018 at 08:57, Ingo Molnar wrote: > > > * Ard Biesheuvel wrote: > > > From: Julien Thierry > > > > Closing bracket seems to end a for statement when it is actually ending > > the contained if. Add some brackets to have clear delimitation of each > > scope. > > > > No functional ch

Re: [PATCH v6 0/8] AXP8x3 AC and battery power supply support

2018-11-30 Thread Chen-Yu Tsai
On Wed, Nov 21, 2018 at 1:52 AM Oskari Lemmela wrote: > > AXP813 AC power supply support with input current and > voltage limiting support. > > AXP803 AC and battery power supply support. > > Changes in v6: > * Collected tags > * Rebase to master > * Dropped AXP803 compatible patches > > Changes i

Re: [PATCH 00/10] Regulator ena_gpiod fixups

2018-11-30 Thread Bartosz Golaszewski
czw., 29 lis 2018 o 20:01 Mark Brown napisał(a): > > On Thu, Nov 29, 2018 at 07:38:20PM +0100, Bartosz Golaszewski wrote: > > > I'm wondering if instead of using the non-devm variants of > > gpiod_get_*() routines, we shouldn't provide helpers in the regulator > > framework that would be named acc

[PATCH 2/2] clk: mediatek: Drop more __init markings for driver probe

2018-11-30 Thread Stephen Boyd
This function is called from driver probe, which isn't the same as __init code because driver probe can happen later. Drop the __init marking here to fix this potential problem. Cc: Sean Wang Cc: Ryder Lee Cc: Rob Herring Cc: Wenzhen Yu Cc: Weiyi Lu Fixes: 2fc0a509e4ee ("clk: mediatek: add cl

[PATCH 1/2] clk: mediatek: Drop __init from mtk_clk_register_cpumuxes()

2018-11-30 Thread Stephen Boyd
This function is used from more places than just __init code. Removing __init silences a section mismatch warning here. Cc: Sean Wang Cc: Ryder Lee Cc: Rob Herring Cc: Wenzhen Yu Cc: Weiyi Lu Signed-off-by: Stephen Boyd --- drivers/clk/mediatek/clk-cpumux.c | 8 1 file changed, 4 i

Re: [PATCH RFC 4/5] gnss: sirf: add a separate supply for a lna

2018-11-30 Thread Pavel Machek
On Fri 2018-11-30 07:38:04, Andreas Kemnade wrote: > Hi, > > On Tue, 27 Nov 2018 19:03:57 +0100 > Pavel Machek wrote: > > > Hi! > > > > > Devices might have a separate lna between antenna output of the gps > > > chip and the antenna which might have a separate supply > > > > Might have. > >

Re: [PATCH V2 2/5] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-30 Thread Ulf Hansson
On Mon, 26 Nov 2018 at 09:10, Viresh Kumar wrote: > > Introduce a new helper dev_pm_opp_xlate_performance_state() which will > be used to translate from pstate of a device to another one. I don't get this, could you please elaborate? > > Initially this will be used by genpd to find pstate of a m

Re: [PATCH v6 3/8] dt-bindings: regulator: document stpmic1 pmic regulators

2018-11-30 Thread Pascal PAILLET-LME
Le 11/28/2018 10:48 AM, Mark Brown a écrit : > On Tue, Nov 27, 2018 at 04:52:15PM +, Pascal PAILLET-LME wrote: >> The STPMIC1 regulators supply power to the application processor as well as >> to the external system peripherals such as DDR, Flash memories and system >> devices. > Please do not

Re: [PATCH] lightnvm: simplify geometry enumeration

2018-11-30 Thread Igor Konopko
On 29.11.2018 15:27, Matias Bjørling wrote: Currently the geometry of an OCSSD is enumerated using a two step approach: First, nvm_register is called, the OCSSD identify command is issued, and second the geometry sos and csecs values are read either from the OCSSD identify if it is a 1.2 driv

Re: [RFC/RFT][PATCH v6] cpuidle: New timer events oriented governor for tickless systems

2018-11-30 Thread Rafael J. Wysocki
Hi Doug, On Fri, Nov 30, 2018 at 8:49 AM Doug Smythies wrote: > > Hi Rafael, > > On 2018.11.23 02:36 Rafael J. Wysocki wrote: > > ... [snip]... > > > +/** > > + * teo_find_shallower_state - Find shallower idle state matching given > > duration. > > + * @drv: cpuidle driver containing state data.

Re: [PATCH V2 3/5] PM / Domains: Save OPP table pointer in genpd

2018-11-30 Thread Ulf Hansson
On Mon, 26 Nov 2018 at 09:10, Viresh Kumar wrote: > > We will need these going forward in hotpath, i.e. from within > dev_pm_genpd_set_performance_state(). Well, as for patch2, please try to be a bit more descriptive of why and what this patch does. > > Lets fetch and save them while the OPP tab

Re: [PATCH v6 06/24] arm64: ptrace: Provide definitions for PMR values

2018-11-30 Thread Julien Thierry
On 29/11/18 16:40, Mark Rutland wrote: > On Mon, Nov 12, 2018 at 11:56:57AM +, Julien Thierry wrote: >> Introduce fixed values for PMR that are going to be used to mask and >> unmask interrupts by priority. These values are chosent in such a way > > Nit: s/chosent/chosen/ > >> that a singl

Re: [PATCH 4.19 000/110] 4.19.6-stable review

2018-11-30 Thread Naresh Kamboju
On Thu, 29 Nov 2018 at 20:05, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.6 release. > There are 110 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

Re: [PATCH V2 4/5] PM / Domains: Factorize dev_pm_genpd_set_performance_state()

2018-11-30 Thread Ulf Hansson
On Mon, 26 Nov 2018 at 09:10, Viresh Kumar wrote: > > Separate out _genpd_set_performance_state() and > _genpd_reeval_performance_state() from > dev_pm_genpd_set_performance_state() to handle performance state update > related stuff. This will be used by a later commit. > > Signed-off-by: Viresh K

Re: [PATCH 2/2] clk: Add Fixed MMIO clock driver

2018-11-30 Thread Stephen Boyd
Quoting Janek Kotas (2018-11-30 00:52:16) > > We have a single register in a fixed location which contains > the frequency of the main system clock. > This allows us to use the same image in emulation, FPGA > and simulation without any changes. > We usually

[RFC] regmap-irq: add "main register" and level-irq support

2018-11-30 Thread Matti Vaittinen
Hello All. Sorry for lenghty email. But I tried to explain this in details. Surprizingly I didn't find an example how to handle this properly/easily. Thus I am wondering if following changes to regmap-irq make any sense or is there some better way (which I just didn't spot) to handle this. I am

Re: [PATCH 4.4 00/86] 4.4.166-stable review

2018-11-30 Thread Naresh Kamboju
On Thu, 29 Nov 2018 at 19:48, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.4.166 release. > There are 86 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

Re: [PATCH] dt-bindings: clock: Require #reset-cells in sdm845-videocc

2018-11-30 Thread Stephen Boyd
Quoting Douglas Anderson (2018-11-27 11:24:43) > The #reset-cells was listed as optional in the bindings for > qcom,sdm845-videocc. There's no reason for it to be optional. As per > Stephen [1]: > > > We should update the binding to make it a required property. It > > doesn't make any sense why

Re: [PATCH v2] fs: fix lost error code in dio_complete

2018-11-30 Thread Maximilian Heyne
On 11/8/18 7:58 PM, Maximilian Heyne wrote: commit e259221763a40403d5bb232209998e8c45804ab8 ("fs: simplify the generic_write_sync prototype") reworked callers of generic_write_sync(), and ended up dropping the error return for the directio path. Prior to that commit, in dio_complete(), an error w

Re: [PATCH v2 0/3] Mark clocks as critical for MT6797

2018-11-30 Thread Matthias Brugger
On 30/11/2018 07:47, Stephen Boyd wrote: > Quoting matthias@kernel.org (2018-11-16 10:08:58) >> From: Matthias Brugger >> >> Jasper send this series some month ago. As there was no reaction from >> his side, I'll do a friendly take-over. >> I tested the patches on my Helios X20 boards and t

Re: [PATCH V2 3/5] PM / Domains: Save OPP table pointer in genpd

2018-11-30 Thread Viresh Kumar
On 30-11-18, 09:53, Ulf Hansson wrote: > > diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c > > index 8e554e6a82a2..0d928359b880 100644 > > --- a/drivers/base/power/domain.c > > +++ b/drivers/base/power/domain.c > > @@ -1907,12 +1907,21 @@ int of_genpd_add_provider_simple(stru

Re: [PATCH 08/10] regulator: max77686: Let core handle GPIO descriptor

2018-11-30 Thread Linus Walleij
On Wed, Nov 28, 2018 at 4:24 PM Charles Keepax wrote: > On Wed, Nov 28, 2018 at 11:43:48AM +0100, Linus Walleij wrote: > > @@ -255,8 +255,7 @@ static int max77686_of_parse_cb(struct device_node *np, (...) > > + config->ena_gpiod = gpiod_get_from_of_node(np, > > As this is inside the o

Re: [PATCH v8] clk: Add (devm_)clk_get_optional() functions

2018-11-30 Thread Stephen Boyd
Quoting Phil Edworthy (2018-11-20 06:14:45) > This adds clk_get_optional() and devm_clk_get_optional() functions to get > optional clocks. > They behave the same as (devm_)clk_get except where there is no clock > producer. In this case, instead of returning -ENOENT, the function > returns NULL. Thi

Re: [PATCH 4.9 00/92] 4.9.142-stable review

2018-11-30 Thread Jon Hunter
On 29/11/2018 14:11, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.142 release. > There are 92 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

[PATCH 1/5] kconfig: remove unneeded setsym label in conf_read_simple()

2018-11-30 Thread Masahiro Yamada
The two 'goto setsym' statements are reachable only when sym == NULL. The code below the 'setsym:' label does nothing when sym == NULL since there is just one if-block guarded by 'if (sym && ...)'. Hence, 'goto setsym' can be replaced with 'continue'. Signed-off-by: Masahiro Yamada --- script

[PATCH 3/5] kconfig: split out code touching a file to conf_touch_dep()

2018-11-30 Thread Masahiro Yamada
conf_touch_deps() iterates over symbols, touching corresponding include/config/*.h files as needed. Split the part that touches a single file into a new helper so it can be reused. The new helper, conf_touch_dep(), takes a symbol name as a parameter, and touches the corresponding include/config/*

[PATCH 5/5] kconfig: remove k_invalid from expr_parse_string() return type

2018-11-30 Thread Masahiro Yamada
The only possibility of k_invalid being returned was when expr_parse_sting() parsed S_OTHER type symbol. This actually never happened, and this is even clearer since S_OTHER has gone. Clean up unreachable code. Signed-off-by: Masahiro Yamada --- scripts/kconfig/expr.c | 14 ++ 1 fi

[PATCH 4/5] kconfig: remove S_OTHER symbol type and correct dependency tracking

2018-11-30 Thread Masahiro Yamada
The S_OTHER type could be set only when conf_read_simple() is reading include/config/auto.conf file. For example, CONFIG_FOO=y exists in include/config/auto.conf but it is missing from the currently parsed Kconfig files, sym_lookup() allocates a new symbol, and sets its type to S_OTHER. Strangely

[PATCH 2/5] kconfig: rename conf_split_config() to conf_touch_deps()

2018-11-30 Thread Masahiro Yamada
According to commit 2e3646e51b2d ("kconfig: integrate split config into silentoldconfig"), this function was named after split-include tool, which used to exist in old versions of Linux. Setting aside the historical reason, rename it into a more intuitive name. This function touches timestamp file

Re: [PATCH v6 05/24] irqchip/gic-v3: Switch to PMR masking before calling IRQ handler

2018-11-30 Thread Julien Thierry
On 29/11/18 18:12, Mark Rutland wrote: > On Mon, Nov 12, 2018 at 11:56:56AM +, Julien Thierry wrote: >> Mask the IRQ priority through PMR and re-enable IRQs at CPU level, >> allowing only higher priority interrupts to be received during interrupt >> handling. >> >> Signed-off-by: Julien Thie

Re: [PATCH] sdhci: fix the fake timeout bug

2018-11-30 Thread Adrian Hunter
On 30/11/18 9:00 AM, Du, Alek wrote: >>From b893df3a1a937bd5fe22d39ceae93454a2e5e0e4 Mon Sep 17 00:00:00 2001 > From: Alek Du > Date: Fri, 30 Nov 2018 14:02:28 +0800 > Subject: [PATCH] sdhci: fix the fake timeout bug > > We observed some fake timeouts on some devices, the log is like this: > > [

Re: [PATCH v2 2/3] clk: ti: check clock type before doing autoidle ops

2018-11-30 Thread Tero Kristo
On 30/11/2018 09:57, Stephen Boyd wrote: Quoting Tero Kristo (2018-11-29 23:35:35) On 30/11/2018 09:20, Stephen Boyd wrote: Quoting Andreas Kemnade (2018-11-29 22:15:34) Hi Stephen, On Thu, 29 Nov 2018 16:25:05 -0800 Stephen Boyd wrote: Quoting Andreas Kemnade (2018-11-10 12:31:14) Code m

Re: [PATCH v2 0/3] mach-omap2: handle autoidle denial

2018-11-30 Thread Tero Kristo
On 30/11/2018 09:57, Stephen Boyd wrote: Quoting Tero Kristo (2018-11-29 23:37:35) On 30/11/2018 02:26, Stephen Boyd wrote: Quoting Andreas Kemnade (2018-11-10 12:31:12) On the gta04 with a dm3730 omap_hdq does not work properly when the device enters lower power states. Idling uart1 and 2 is

Re: [PATCH 1/3] clk: qcom: gcc-msm8998: Mark hmss_dvm and lpass_at critical

2018-11-30 Thread Marc Gonzalez
On 30/11/2018 09:12, Stephen Boyd wrote: > Quoting Bjorn Andersson (2018-11-29 23:24:20) > >> On Thu 29 Nov 23:05 PST 2018, Stephen Boyd wrote: >> >>> Quoting Bjorn Andersson (2018-11-29 22:52:57) >>> Keep the two clocks enabled, so that the platform passes clk_disable_unused(). >>>

Re: [PATCH 0/2] Link consumer with clock driver

2018-11-30 Thread Stephen Boyd
Quoting Miquel Raynal (2018-11-22 13:22:10) > Hello, > > While working on suspend to RAM feature, I ran into troubles multiple > times when clocks where not suspending/resuming at the desired time. I > had a look at the core and I think the same logic as in the > regulator's core may be applied he

Re: [PATCH v6 07/24] arm64: Make PMR part of task context

2018-11-30 Thread Julien Thierry
On 29/11/18 16:46, Mark Rutland wrote: > On Mon, Nov 12, 2018 at 11:56:58AM +, Julien Thierry wrote: >> If ICC_PMR_EL1 is used to mask interrupts, its value should be >> saved/restored whenever a task is context switched out/in or >> gets an exception. >> >> Add PMR to the registers to save

Re: [PATCH 2/2] clk: core: link consumer with clock driver

2018-11-30 Thread Stephen Boyd
Quoting Miquel Raynal (2018-11-23 01:11:32) > Would you agree with me adding dummy functions in the #else section > like: > > static inline void __clk_device_link(struct device *consumer, struct clk *clk) > { >return; > } > > static inline void __clk_device_unlink(struct clk *clk) > { >

Re: [RFC] locking/rwsem: Avoid issuing wakeup before setting the reader waiter to nil

2018-11-30 Thread Andrea Parri
On Thu, Nov 29, 2018 at 11:17:14PM +0100, Peter Zijlstra wrote: > On Thu, Nov 29, 2018 at 01:34:21PM -0800, Davidlohr Bueso wrote: > > I messed up something such that waiman was not in the thread. Ccing. > > > > > On Thu, 29 Nov 2018, Waiman Long wrote: > > > > > > > That can be costly for x86 wh

Re: [v2] mtd: spi-nor: fix erase_type array to indicate current map conf

2018-11-30 Thread Boris Brezillon
On Mon, 2018-11-26 at 12:45:44 UTC, wrote: > From: Tudor Ambarus > > BFPT advertises all the erase types supported by all the possible > map configurations. Mask out the erase types that are not supported > by the current map configuration. > > Backward compatibility test done on sst26vf064b. >

Re: mtd: nand: Fix memory allocation in nanddev_bbt_init()

2018-11-30 Thread Boris Brezillon
On Tue, 2018-11-27 at 07:44:52 UTC, Schrempf Frieder wrote: > Fix the size of the buffer allocated to store the in-memory BBT. > This bug was previously hidden by a different bug, that was fixed in > d098093ba06e. > > Fixes: 9c3736a3de21 ("mtd: nand: Add core infrastructure to deal with NAND > de

Re: [PATCH V2 5/5] PM / Domains: Propagate performance state updates

2018-11-30 Thread Ulf Hansson
On Mon, 26 Nov 2018 at 09:10, Viresh Kumar wrote: > > This commit updates genpd core to start propagating performance state > updates to master domains that have their set_performance_state() > callback set. > > A genpd handles two type of performance states now. The first one is the > performance

Re: [PATCH v5 05/15] i2c: acpi: Return error pointers from i2c_acpi_new_device()

2018-11-30 Thread Wolfram Sang
On Wed, Nov 28, 2018 at 01:45:25PM +0200, Andy Shevchenko wrote: > The caller would like to know the reason why the i2c_acpi_new_device() fails. > For example, if adapter is not available, it might be in the future and we > would like to re-probe the clients again. But at the same time we would lik

Re: [PATCH 04/13] blkcg: introduce common blkg association logic

2018-11-30 Thread Christoph Hellwig
> EXPORT_SYMBOL_GPL(bio_associate_blkcg); > > /** > - * bio_associate_blkg - associate a bio with the a blkg > + * bio_has_queue - required check for blkg association > + * @bio: target bio > + * > + * A blkg represents the relationship between a blkcg and a request_queue. > + * If there is no

Re: [PATCH v5 08/15] i2c: acpi: Use ACPI_FAILURE instead of !ACPI_SUCCESS

2018-11-30 Thread Wolfram Sang
On Wed, Nov 28, 2018 at 01:45:28PM +0200, Andy Shevchenko wrote: > Convert to use ACPI_FAILURE instead of !ACPI_SUCCESS. > > Signed-off-by: Andy Shevchenko > Reviewed-by: Hans de Goede > Acked-by: Mika Westerberg Acked-by: Wolfram Sang signature.asc Description: PGP signature

Re: [PATCH v5 09/15] i2c: acpi: Introduce i2c_acpi_get_i2c_resource() helper

2018-11-30 Thread Wolfram Sang
On Wed, Nov 28, 2018 at 01:45:29PM +0200, Andy Shevchenko wrote: > Besides current two users one more is coming. Definitely makes sense to > introduce a helper. > > No functional change intended. > > Signed-off-by: Andy Shevchenko > Reviewed-by: Hans de Goede > --- > drivers/i2c/i2c-core-acpi.

Re: [PATCH net-next v3 01/13] virtio: add packed ring types and macros

2018-11-30 Thread Tiwei Bie
On Fri, Nov 30, 2018 at 04:10:55PM +0800, Jason Wang wrote: > > On 2018/11/21 下午6:03, Tiwei Bie wrote: > > Add types and macros for packed ring. > > > > Signed-off-by: Tiwei Bie > > --- > > include/uapi/linux/virtio_config.h | 3 +++ > > include/uapi/linux/virtio_ring.h | 52 > > +

[PATCH v7 6/7] watchdog: stpmic1: add stpmic1 watchdog driver

2018-11-30 Thread Pascal PAILLET-LME
The stpmic1 PMIC embeds a watchdog which is disabled by default. As soon as the watchdog is started, it must be refreshed periodically otherwise the PMIC goes off. Signed-off-by: Pascal Paillet Reviewed-by: Guenter Roeck --- changes in v7: nothing drivers/watchdog/Kconfig | 12 dri

[PATCH v7 7/7] regulator: stpmic1: fix regulator_lock usage

2018-11-30 Thread Pascal PAILLET-LME
fix a compilation issue due to regulator_lock usage. Signed-off-by: Pascal Paillet --- changes in v7: * new patch due to rebase on regul/for-next drivers/regulator/stpmic1_regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/stpmic1_regulator.c b/d

[PATCH v7 4/7] input: stpmic1: add stpmic1 onkey driver

2018-11-30 Thread Pascal PAILLET-LME
The stpmic1 pmic is able to manage an onkey button. This driver exposes the stpmic1 onkey as an input device. It can also be configured to shut-down the power supplies on a long key-press with an adjustable duration. Signed-off-by: Pascal Paillet Acked-by: Dmitry Torokhov --- changes in v7: noth

[PATCH v7 5/7] dt-bindings: watchdog: document stpmic1 pmic watchdog

2018-11-30 Thread Pascal PAILLET-LME
The stpmic1 PMIC embeds a watchdog which is disabled by default. In case of watchdog, the PMIC goes off. Signed-off-by: Pascal Paillet Reviewed-by: Rob Herring Reviewed-by: Guenter Roeck --- changes in v7: nothing Documentation/devicetree/bindings/watchdog/st,stpmic1-wdt.txt | 11 +++

[tip:efi/core] x86/earlyprintk/efi: Fix infinite loop on some screen widths

2018-11-30 Thread tip-bot for YiFei Zhu
Commit-ID: 79c2206d369b87b19ac29cb47601059b6bf5c291 Gitweb: https://git.kernel.org/tip/79c2206d369b87b19ac29cb47601059b6bf5c291 Author: YiFei Zhu AuthorDate: Thu, 29 Nov 2018 18:12:30 +0100 Committer: Ingo Molnar CommitDate: Fri, 30 Nov 2018 09:05:13 +0100 x86/earlyprintk/efi: Fix infi

[PATCH v7 1/7] dt-bindings: mfd: document stpmic1

2018-11-30 Thread Pascal PAILLET-LME
STPMIC1 is a PMIC from STMicroelectronics. The STPMIC1 integrates 10 regulators, 3 power switches, a watchdog and an input for a power on key. Signed-off-by: Pascal Paillet Reviewed-by: Rob Herring Acked-for-MFD-by: Lee Jones --- changes in v7: nothing .../devicetree/bindings/mfd/st,stpmic1.t

Re: [PATCH v5 14/15] ACPI / scan: Create platform device for INT3515 ACPI nodes

2018-11-30 Thread Andy Shevchenko
On Thu, Nov 29, 2018 at 09:58:51PM +0100, Rafael J. Wysocki wrote: > On Wed, Nov 28, 2018 at 12:48 PM Andy Shevchenko > wrote: > > > > The ACPI device with INT3515 _HID is representing a complex USB PD > > hardware infrastructure which includes several I2C slave ICs. > > > > We add an ID to the I2

[PATCH v7 3/7] dt-bindings: input: document stpmic1 pmic onkey

2018-11-30 Thread Pascal PAILLET-LME
The stpmic1 pmic is able to manage an onkey button. It can be configured to shut-down the power supplies on a long key-press with an adjustable duration. Signed-off-by: Pascal Paillet Reviewed-by: Rob Herring --- changes in v7: nothing .../devicetree/bindings/input/st,stpmic1-onkey.txt | 28 ++

[tip:efi/core] x86/efi: Allocate e820 buffer before calling efi_exit_boot_service

2018-11-30 Thread tip-bot for Eric Snowberg
Commit-ID: b84a64fad40637b1c9fa4f4dbf847a23e29e672b Gitweb: https://git.kernel.org/tip/b84a64fad40637b1c9fa4f4dbf847a23e29e672b Author: Eric Snowberg AuthorDate: Thu, 29 Nov 2018 18:12:20 +0100 Committer: Ingo Molnar CommitDate: Fri, 30 Nov 2018 08:30:07 +0100 x86/efi: Allocate e820 bu

[PATCH v7 2/7] mfd: stpmic1: add stpmic1 driver

2018-11-30 Thread Pascal PAILLET-LME
STPMIC1 is a PMIC from STMicroelectronics. The STPMIC1 integrates 10 regulators, 3 power switches, a watchdog and an input for a power on key. Signed-off-by: Pascal Paillet Acked-for-MFD-by: Lee Jones --- changes in v7: nothing drivers/mfd/Kconfig | 16 drivers/mfd/Makefile

[tip:efi/core] firmware/efi: Add NULL pointer checks in efivars API functions

2018-11-30 Thread tip-bot for Arend van Spriel
Commit-ID: ab2180a15ce54739fed381efb4cb12e78dfb1561 Gitweb: https://git.kernel.org/tip/ab2180a15ce54739fed381efb4cb12e78dfb1561 Author: Arend van Spriel AuthorDate: Thu, 29 Nov 2018 18:12:27 +0100 Committer: Ingo Molnar CommitDate: Fri, 30 Nov 2018 09:06:32 +0100 firmware/efi: Add NULL

[tip:efi/core] efi/fdt: Indentation fix

2018-11-30 Thread tip-bot for Julien Thierry
Commit-ID: 6935b3c43da96bb48017b2a3bc1d4f93899f9b28 Gitweb: https://git.kernel.org/tip/6935b3c43da96bb48017b2a3bc1d4f93899f9b28 Author: Julien Thierry AuthorDate: Thu, 29 Nov 2018 18:12:21 +0100 Committer: Ingo Molnar CommitDate: Fri, 30 Nov 2018 09:10:29 +0100 efi/fdt: Indentation fix

[tip:efi/core] efi/fdt: Simplify the get_fdt() flow

2018-11-30 Thread tip-bot for Julien Thierry
Commit-ID: 8c25db0a5a67986106aa3da7ce165ff961aa7847 Gitweb: https://git.kernel.org/tip/8c25db0a5a67986106aa3da7ce165ff961aa7847 Author: Julien Thierry AuthorDate: Thu, 29 Nov 2018 18:12:22 +0100 Committer: Ingo Molnar CommitDate: Fri, 30 Nov 2018 09:10:30 +0100 efi/fdt: Simplify the ge

[PATCH v7 0/7] Introduce STPMIC1 PMIC Driver

2018-11-30 Thread Pascal PAILLET-LME
The goal of this patch-set is to propose a driver for the STPMIC1 PMIC from STMicroelectronics. The STPMIC1 regulators supply power to an application processor as well as to external system peripherals such as DDR, Flash memories and system devices. It also features onkey button input and an har

[tip:efi/core] x86/mm/pageattr: Introduce helper function to unmap EFI boot services

2018-11-30 Thread tip-bot for Sai Praneeth Prakhya
Commit-ID: 7e0dabd3010d6041ee0a952c1146b2150a11f1be Gitweb: https://git.kernel.org/tip/7e0dabd3010d6041ee0a952c1146b2150a11f1be Author: Sai Praneeth Prakhya AuthorDate: Thu, 29 Nov 2018 18:12:23 +0100 Committer: Ingo Molnar CommitDate: Fri, 30 Nov 2018 09:10:30 +0100 x86/mm/pageattr: I

Re: [PATCH V2 5/5] PM / Domains: Propagate performance state updates

2018-11-30 Thread Viresh Kumar
On 30-11-18, 10:44, Ulf Hansson wrote: > On Mon, 26 Nov 2018 at 09:10, Viresh Kumar wrote: > > > > This commit updates genpd core to start propagating performance state > > updates to master domains that have their set_performance_state() > > callback set. > > > > A genpd handles two type of perfo

[GIT PULL] mtd: Fixes for 4.20-rc5

2018-11-30 Thread Boris Brezillon
Hello Linus, Here is the MTD fixes PR for 4.20-rc5. Regards, Boris The following changes since commit 2e6e902d185027f8e3cb8b7305238f7e35d6a436: Linux 4.20-rc4 (2018-11-25 14:19:31 -0800) are available in the Git repository at: git://git.infradead.org/linux-mtd.git tags/mtd/fixes-for-4.20

[tip:efi/core] x86/efi: Unmap EFI boot services code/data regions from efi_pgd

2018-11-30 Thread tip-bot for Sai Praneeth Prakhya
Commit-ID: 08cfb38f3ef49cfd1bba11a00401451606477d80 Gitweb: https://git.kernel.org/tip/08cfb38f3ef49cfd1bba11a00401451606477d80 Author: Sai Praneeth Prakhya AuthorDate: Thu, 29 Nov 2018 18:12:24 +0100 Committer: Ingo Molnar CommitDate: Fri, 30 Nov 2018 09:10:30 +0100 x86/efi: Unmap EFI

  1   2   3   4   5   6   7   >