[PATCH] PM / suspend: Count suspend-to-idle loop as sleep time

2018-09-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki There is a difference in behavior between suspend-to-idle and suspend-to-RAM in the timekeeping handling that leads to functional issues. Namely, every iteration of the loop in s2idle_loop() increases the monotinic clock somewhat, even if timekeeping_suspend() and timekee

[PATCH] ia64: enable GENERIC_HWEIGHT

2018-09-14 Thread Sergei Trofimovich
Noticed on a single driver failure: ERROR: "__sw_hweight8" [drivers/net/wireless/mediatek/mt76/mt76.ko] undefined! CC: Tony Luck CC: Fenghua Yu CC: linux-i...@vger.kernel.org CC: Andrew Morton CC: linux-kernel@vger.kernel.org Signed-off-by: Sergei Trofimovich --- arch/ia64/Kconfig | 4

[PATCH] ia64: disable SCHED_STACK_END_CHECK

2018-09-14 Thread Sergei Trofimovich
SCHED_STACK_END_CHECK assumes stack grows in one direction. ia64 is a rare case where it is not. As a result kernel fails at startup as: Kernel panic - not syncing: corrupted stack end detected inside scheduler The error does not find a real problem: it's register backing store is written on to

[RFC] gpiolib: Fix gpio_direction_* for single direction GPIOs

2018-09-14 Thread Ricardo Ribalda Delgado
GPIOs with no programmable direction are not required to implement direction_output nor direction_input. If we try to set an output direction on an output-only GPIO or input direction on an input-only GPIO simply return 0. This allows this single direction GPIO to be used by libgpiod. Signed-off

[PATCH] gpiolib: Show correct direction from the beginning

2018-09-14 Thread Ricardo Ribalda Delgado
Current code assumes that the direction is input if direction_input function is set. This might not be the case on GPIOs with programmable direction. Signed-off-by: Ricardo Ribalda Delgado --- drivers/gpio/gpiolib.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/driver

Re: [PATCH v8 1/2] x86/mm: add .bss..decrypted section to hold shared variables

2018-09-14 Thread Borislav Petkov
On Thu, Sep 13, 2018 at 04:51:10PM -0500, Brijesh Singh wrote: > kvmclock defines few static variables which are shared with the > hypervisor during the kvmclock initialization. ... > diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c > index 8047379..c16af27 100644 > --- a/arch/x86

Re: [REGRESSION] Errors at reboot after 722e5f2b1eec

2018-09-14 Thread Borislav Petkov
+ Jörg. On Fri, Sep 14, 2018 at 08:26:07AM +0200, Rafael J. Wysocki wrote: > On Friday, September 14, 2018 4:29:46 AM CEST Pingfan Liu wrote: > > On Thu, Sep 13, 2018 at 10:15 PM Rafael J. Wysocki > > wrote: > > > > > > On Thursday, September 13, 2018 12:03:36 PM CEST James Wang wrote: > > > >

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Alexey Budankov
Hi Namhyung, On 14.09.2018 5:29, Namhyung Kim wrote: > On Thu, Sep 13, 2018 at 07:10:35PM +0300, Alexey Budankov wrote: >> Hi, > > Hello, > >> >> On 13.09.2018 15:54, Jiri Olsa wrote: >>> hi, >>> sending *RFC* for threads support in perf record command. >>> >>> In big picture this patchset adds

Re: [PATCH v2] mm: mprotect: check page dirty when change ptes

2018-09-14 Thread Peter Xu
On Thu, Sep 13, 2018 at 08:42:39PM -0400, Jerome Glisse wrote: > On Thu, Sep 13, 2018 at 10:23:28AM -0400, Jerome Glisse wrote: > > On Thu, Sep 13, 2018 at 03:37:22PM +0800, Peter Xu wrote: > > > On Wed, Sep 12, 2018 at 09:24:39AM -0400, Jerome Glisse wrote: > > > > On Wed, Sep 12, 2018 at 09:03:55

[PATCH v2 3/4] iio: adc: Add Xilinx AMS driver

2018-09-14 Thread Manish Narani
The AMS includes an ADC as well as on-chip sensors that can be used to sample external voltages and monitor on-die operating conditions, such as temperature and supply voltage levels. The AMS has two SYSMON blocks. PL-SYSMON block is capable of monitoring off chip voltage and temperature. PL-SYSMON

[PATCH v2 0/4] Add Xilinx AMS Driver

2018-09-14 Thread Manish Narani
Add Xilinx AMS driver which is used for Xilinx's ZynqMP AMS controller. This AMS driver is used to report various interface voltages and temperatures across the system. This driver handles AMS module including PS-Sysmon & PL-Sysmon. The binding documentation is added for understanding of AMS, PS, P

[PATCH v2 4/4] arm64: zynqmp: DT: Add Xilinx AMS node

2018-09-14 Thread Manish Narani
The Xilinx AMS includes an ADC as well as on-chip sensors that can be used to sample external and monitor on-die operating conditions, such as temperature and supply voltage levels. Signed-off-by: Manish Narani --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 26 ++ 1 file ch

[PATCH v2 2/4] iio: Documentation: Add Xilinx AMS sysfs documentation

2018-09-14 Thread Manish Narani
Add documentation for xilinx-ams driver. This contains information about various voltages and temperatures on PS (Processing System), PL (Programmable Logic) and AMS Control Block. Signed-off-by: Manish Narani --- .../ABI/testing/sysfs-bus-iio-adc-xilinx-ams | 246 + 1

[PATCH v2 1/4] dt-bindings: iio: adc: Add Xilinx AMS binding documentation

2018-09-14 Thread Manish Narani
Xilinx AMS have several ADC channels that can be used for measurement of different voltages and temperatures. Document the same in the bindings. Signed-off-by: Manish Narani --- .../devicetree/bindings/iio/adc/xilinx-ams.txt | 180 + 1 file changed, 180 insertions(+) cre

[PATCH] kernel: prevent submission of creds with higher privileges inside container

2018-09-14 Thread My Name
From: Xin Lin <18650033...@163.com> Adversaries often attack the Linux kernel via using commit_creds(prepare_kernel_cred(0)) to submit ROOT credential for the purpose of privilege escalation. For processes inside the Linux container, the above approach also works, because the container and the hos

Re: [PATCH] pinctrl: icelake: Fix the resource number for community-4/5

2018-09-14 Thread Andy Shevchenko
On Fri, Sep 14, 2018 at 1:54 AM Rajat Jain wrote: > > The Icelake does not have a community-3, and the memory resources are > laid out in the following order in the ACPI: > > resource-0: community-0 registers > resource-1: community-1 registers > resource-2: community-2 registers > resource-3: com

Re: [PATCH] PM / suspend: Count suspend-to-idle loop as sleep time

2018-09-14 Thread Peter Zijlstra
On Fri, Sep 14, 2018 at 08:59:03AM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > There is a difference in behavior between suspend-to-idle and > suspend-to-RAM in the timekeeping handling that leads to functional > issues. Namely, every iteration of the loop in s2idle_loop() > in

Re: [PATCH] PM / suspend: Count suspend-to-idle loop as sleep time

2018-09-14 Thread Rafael J. Wysocki
On Fri, Sep 14, 2018 at 9:41 AM Peter Zijlstra wrote: > > On Fri, Sep 14, 2018 at 08:59:03AM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > There is a difference in behavior between suspend-to-idle and > > suspend-to-RAM in the timekeeping handling that leads to functional >

Re: [PATCH v5 09/12] x86/kvm/nVMX: allow bare VMXON state migration

2018-09-14 Thread Vitaly Kuznetsov
Jim Mattson writes: > On Thu, Sep 13, 2018 at 10:05 AM, Vitaly Kuznetsov > wrote: >> It is perfectly valid for a guest to do VMXON and not do VMPTRLD. This >> state needs to be preserved on migration. >> >> Signed-off-by: Vitaly Kuznetsov >> --- >> arch/x86/kvm/vmx.c | 15 --- >>

Re: [PATCH 2/2] thunderbolt: Initialize after IOMMUs

2018-09-14 Thread Mika Westerberg
On Mon, Sep 03, 2018 at 04:20:12PM +0300, Mika Westerberg wrote: > If IOMMU is enabled and Thunderbolt driver is built into the kernel > image, it will be probed before IOMMUs are attached to the PCI bus. > Because of this DMA mappings the driver does will not go through IOMMU > and start failing r

Re: [PATCH 1/2] thunderbolt: Do not handle ICM events after domain is stopped

2018-09-14 Thread Mika Westerberg
On Mon, Sep 03, 2018 at 04:20:11PM +0300, Mika Westerberg wrote: > If there is a long chain of devices connected when the driver is loaded > ICM sends device connected event for each and those are put to tb->wq > for later processing. Now if the driver gets unloaded in the middle, so > that the wor

Re: [PATCH] PM / suspend: Count suspend-to-idle loop as sleep time

2018-09-14 Thread Peter Zijlstra
On Fri, Sep 14, 2018 at 09:47:28AM +0200, Rafael J. Wysocki wrote: > On Fri, Sep 14, 2018 at 9:41 AM Peter Zijlstra wrote: > > Do we want a 'warning' of sorts when the delta becomes significant (for > > whatever that is) ? That might be an indication that there are frequent > > wakeups which we mi

Re: Multi-parent IRQ domains

2018-09-14 Thread Thierry Reding
On Thu, Sep 13, 2018 at 02:50:21PM -0700, Florian Fainelli wrote: > > > On 09/13/18 08:59, Thierry Reding wrote: > > Hi everyone, > > > > I've been trying to implement a feature on recent Tegra chips that's > > called "wake events". These wake events are implemented as part of the > > power mana

[PATCH v2] PM / suspend: Count suspend-to-idle loop as sleep time

2018-09-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki There is a difference in behavior between suspend-to-idle and suspend-to-RAM in the timekeeping handling that leads to functional issues. Namely, every iteration of the loop in s2idle_loop() increases the monotinic clock somewhat, even if timekeeping_suspend() and timekee

[PATCH net-next v3 04/11] net: mscc: ocelot: move the HSIO header to include/soc

2018-09-14 Thread Quentin Schulz
Since HSIO address space can be used by different drivers (PLL, SerDes muxing, temperature sensor), let's move it somewhere it can be included by all drivers. Acked-by: Alexandre Belloni Signed-off-by: Quentin Schulz --- drivers/net/ethernet/mscc/ocelot.h | 1 +- drivers/net/ethernet/msc

Re: [PATCH v7 1/6] dt-bindings: ti-lmu: Remove LM3697

2018-09-14 Thread Pavel Machek
Hi! > >> How do I politely explain that the original implementation was wrong for > >> certain devices? > > > > Implementation? Device tree is hardware description. > > Yes this hardware description is incorrect. The hardware description is > describing a MFD but this LED driver (and a couple

Re: [PATCHES] tty ioctls cleanups, compat and not only

2018-09-14 Thread Arnd Bergmann
On Fri, Sep 14, 2018 at 4:27 AM Al Viro wrote: > On Thu, Sep 13, 2018 at 10:56:48PM +0200, Arnd Bergmann wrote: > commit de36af5ca465156863b5fb7548e3660ea7d3bbcf > Author: Al Viro > Date: Thu Sep 13 22:12:15 2018 -0400 > > change semantics of ldisc ->compat_ioctl() > > First of all, ma

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Jiri Olsa
On Fri, Sep 14, 2018 at 11:29:10AM +0900, Namhyung Kim wrote: > On Thu, Sep 13, 2018 at 07:10:35PM +0300, Alexey Budankov wrote: > > Hi, > > Hello, > > > > > On 13.09.2018 15:54, Jiri Olsa wrote: > > > hi, > > > sending *RFC* for threads support in perf record command. > > > > > > In big pictur

Re: [PATCH v7 1/6] dt-bindings: ti-lmu: Remove LM3697

2018-09-14 Thread Pavel Machek
Hi! > All be it the analog side of these devices may be the same but the digital > side for each chip is different. > The register maps are not the same, the number of supported LED strings are > not > the same, there are features not supported by this driver and will > be a pain to add. Digita

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Jiri Olsa
On Thu, Sep 13, 2018 at 07:10:35PM +0300, Alexey Budankov wrote: > Hi, > > On 13.09.2018 15:54, Jiri Olsa wrote: > > hi, > > sending *RFC* for threads support in perf record command. > > > > In big picture this patchset adds perf record --threads > > option that allows to create threads in follow

[PATCH 1/4] parisc: Move __IGNORE* entries to non uapi header

2018-09-14 Thread Firoz Khan
All the __IGNORE* entries are resides in the uapi header file and it is not used by any user space applications. One of the patch in this patch series will generate the uapi header file and system call table file. So if we move all the __IGNORE* entries to non uapi header, it will simplify the ua

[PATCH v3 0/7] regulator/mfd/dt_bindings: bd718x7: Support ROHM bd71847

2018-09-14 Thread Matti Vaittinen
Patch series adding support for ROHM BD71847 PMIC. ROHM BD71847 is modified version of ROHM BD71837 Power Management IC. BD71847 integrates 6 buck regulators and 6 LDO’s. The patch series adds support for BD71847 in BD71837 driver. It also extends BD71837 to support all BUCK/LDO output voltages.

[PATCH 3/4] parisc: Add system call table generation support

2018-09-14 Thread Firoz Khan
The system call tables are in different format in all architecture and it will be difficult to manually add or modify the system calls in the respective files. To make it easy by keeping a script and which'll generate the header file and syscall table file so this change will unify them across all

[PATCH 2/4] parisc: Replace __NR_Linux_syscalls macro with __NR_syscalls

2018-09-14 Thread Firoz Khan
__NR_Linux_syscalls macro holds the number of system call exist in PARISC architecture. This macro is currently the part of uapi/asm/ unistd.h file. We have to change the value of __NR_Linux_syscalls, if we add or delete a system call. One of the patch in this patch series has a script which will

[PATCH v3 1/7] regulator/mfd: Support ROHM BD71847 power management IC

2018-09-14 Thread Matti Vaittinen
BD71847 is reduced version of BD71837. DVS bucks 3 and 4 are removed as is LDO7. Voltage ranges of some regulators are expanded. Add initial support for BD71847 with BD71837 driver. Signed-off-by: Matti Vaittinen --- drivers/mfd/rohm-bd718x7.c| 70 +-- drivers/regulator/bd71837-re

Re: [PATCH] PM / suspend: Count suspend-to-idle loop as sleep time

2018-09-14 Thread Mika Penttilä
Hi! On 09/14/2018 09:59 AM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > There is a difference in behavior between suspend-to-idle and > suspend-to-RAM in the timekeeping handling that leads to functional > issues. Namely, every iteration of the loop in s2idle_loop() > increases the

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Jiri Olsa
On Fri, Sep 14, 2018 at 10:26:53AM +0200, Jiri Olsa wrote: SNIP > > > The threaded monitoring currently can't monitor backward maps > > > and there are probably more limitations which I haven't spotted > > > yet. > > > > > > So far I tested on laptop: > > > http://people.redhat.com/~jolsa/reco

Re: [PATCH] cpufreq: Convert to using %pOFn instead of device_node.name

2018-09-14 Thread Rafael J. Wysocki
On Tuesday, August 28, 2018 3:52:15 AM CEST Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: "Rafael J. Wysocki" > Cc: Viresh Kumar > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux

[PATCH v3 2/7] regulator: dt bindings: add BD71847 device-tree binding documentation

2018-09-14 Thread Matti Vaittinen
Add ROHM BD71847 Power Management IC regulator binding information to device-tree binding documents. Signed-off-by: Matti Vaittinen Reviewed-by: Rob Herring --- .../devicetree/bindings/regulator/rohm,bd71837-regulator.txt | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff

[PATCH v3 3/7] mfd: dt bindings: add BD71847 device-tree binding documentation

2018-09-14 Thread Matti Vaittinen
Add ROHM BD71847 Power Management IC MFD binding information to device-tree binding documents. Signed-off-by: Matti Vaittinen Reviewed-by: Rob Herring Acked-for-MFD-by: Lee Jones --- .../devicetree/bindings/mfd/rohm,bd71837-pmic.txt | 17 + 1 file changed, 9 insertions(+)

[PATCH v3 4/7] regulator: Support regulators where voltage ranges are selectable

2018-09-14 Thread Matti Vaittinen
For example ROHM BD71837 and ROHM BD71847 Power management ICs have regulators which provide multiple linear ranges. Ranges can be selected by individual non contagious bit in vsel register. Add regmap helper functions for selecting ranges. Signed-off-by: Matti Vaittinen --- drivers/regulator/co

[PATCH v3 5/7] regulator/mfd: bd718xx: rename bd71837/bd71847 common instances

2018-09-14 Thread Matti Vaittinen
Rename parts of code that support both BD71837 and BD71847 to BD718XX. Signed-off-by: Matti Vaittinen Acked-for-MFD-by: Lee Jones --- drivers/mfd/rohm-bd718x7.c| 98 +-- drivers/regulator/bd71837-regulator.c | 26 +- include/linux/mfd/rohm-bd7

Re: [PATCH 2/2] clk: meson-g12a: Add AO Clock controller driver

2018-09-14 Thread Jerome Brunet
On Tue, 2018-08-28 at 11:35 +0800, Jian Hu wrote: > Hi: Jerome > > On 2018/8/27 21:07, Jerome Brunet wrote: > > On Fri, 2018-08-24 at 21:34 +0800, Jian Hu wrote: > > > > > > > > > > I am confued about aoclk81's parent clocks. > > > > > > I can not get the example of axg audio clock driver, Coul

Re: [PATCH -next] ASoC: qdsp6: q6asm-dai: remove duplicated include from q6asm-dai.c

2018-09-14 Thread Srinivas Kandagatla
On 14/09/18 02:36, YueHaibing wrote: Remove duplicated include. Signed-off-by: YueHaibing Acked-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm-dai.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/qcom/qdsp6/q6asm-dai.c b/sound/soc/qcom/qdsp6/q6asm

Re: [PATCH] cpufreq: remove unnecessary unlikely()

2018-09-14 Thread Rafael J. Wysocki
On Friday, September 7, 2018 6:09:55 PM CEST Igor Stoppa wrote: > WARN_ON() already contains an unlikely(), so it's not necessary to wrap it > into another. > > Signed-off-by: Igor Stoppa > Cc: Srivatsa S. Bhat > Cc: "Rafael J. Wysocki" > Cc: linux...@vger.kernel.org > Cc: linux-kernel@vger.ker

[PATCH net-next 5/5] net: phy: mscc: remove unneeded temporary variable

2018-09-14 Thread Quentin Schulz
Here, the rc variable is either used only for the condition right after the assignment or right before being used as the return value of the function it's being used in. So let's remove this unneeded temporary variable whenever possible. Signed-off-by: Quentin Schulz --- drivers/net/phy/mscc.c

[PATCH 2/3] powerpc: Add system call table generation support

2018-09-14 Thread Firoz Khan
The system call tables are in different format in all architecture and it will be difficult to manually add or modify the system calls in the respective files. To make it easy by keeping a script and which'll generate the header file and syscall table file so this change will unify them across all

[PATCH v3 7/7] regulator: bd718xx: rename bd71837 to 718xx

2018-09-14 Thread Matti Vaittinen
rename bd71837-regulator.c to bd718x7-regulator.c to reflect the fact that also BD71847 is now supported by the driver. Signed-off-by: Matti Vaittinen --- drivers/regulator/Kconfig | 2 +- drivers/regulator/Makefile | 2 +-

[PATCH net-next 4/5] net: phy: mscc: shorten `x != 0` condition to `x`

2018-09-14 Thread Quentin Schulz
`if (x != 0)` is basically a more verbose version of `if (x)` so let's use the latter so it's consistent throughout the whole driver. Signed-off-by: Quentin Schulz --- drivers/net/phy/mscc.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/driv

[PATCH v3 6/7] regulator: bd718XX use pickable ranges

2018-09-14 Thread Matti Vaittinen
Few regulators in BD71837 and BD71847 can output voltages from different voltage ranges. Register interface is arranged so that used range is selected by toggling bits which are not next to actual voltage selection bits. Then the voltage inside selected range is determined by voltage selection bits

Re: [RESEND PATCH v4 5/6] arm64/mm: Populate the swapper_pg_dir by fixmap.

2018-09-14 Thread James Morse
Hi Jun, On 13/09/18 11:50, Jun Yao wrote: > On Fri, Sep 07, 2018 at 10:58:22AM +0100, James Morse wrote: >> On 22/08/18 10:54, Jun Yao wrote: >>> WRITE_ONCE(*pmdp, pmd); >>> dsb(ishst); >>> } >>> @@ -480,6 +511,19 @@ static inline phys_addr_t pmd_page_paddr(pmd_t pmd) >>> >>> static in

Re: [Question] vendor-specific cpu enable-method

2018-09-14 Thread Masahiro Yamada
Hi. 2018-09-13 11:29 GMT+09:00 Jisheng Zhang : > On Thu, 13 Sep 2018 10:23:35 +0900 Masahiro Yamada wrote: > >> Hello. >> >> >> Sorry if I am asking a stupid question. >> >> >> For arm64, there are only 2 cpu methods, psci and spin-table. >> >> Why do we still allow vendor-specific methods upstre

Re: [PATCH] acpi: remove a meaningless null check before debugfs_remove

2018-09-14 Thread Rafael J. Wysocki
On Saturday, August 18, 2018 12:49:20 PM CEST zhong jiang wrote: > debugfs_remove has taken null pointer into account. So it is safe > to remove the check before debugfs_remove. > > Signed-off-by: zhong jiang > --- > drivers/acpi/custom_method.c | 3 +-- > 1 file changed, 1 insertion(+), 2 delet

Re: [RESEND PATCH v4 5/6] arm64/mm: Populate the swapper_pg_dir by fixmap.

2018-09-14 Thread James Morse
Hi Jun, On 10/09/18 12:41, Jun Yao wrote: > On Fri, Sep 07, 2018 at 10:58:22AM +0100, James Morse wrote: >> On 22/08/18 10:54, Jun Yao wrote: >>> WRITE_ONCE(*pmdp, pmd); >>> dsb(ishst); >>> } >>> @@ -480,6 +511,19 @@ static inline phys_addr_t pmd_page_paddr(pmd_t pmd) >>> >>> static in

Re: [PATCH v2 11/11] arm: dts: ste-dbx5x0: Update coresight bindings for hardware port

2018-09-14 Thread Linus Walleij
On Wed, Sep 12, 2018 at 3:54 PM Suzuki K Poulose wrote: > Switch to the new coresight bindings > > Cc: Linus Walleij > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose Acked-by: Linus Walleij I guess you will merge this with the rest of the patches so I do not need to queue it? Yours,

Re: [PATCH] mailbox: PCC: handle parse error

2018-09-14 Thread Rafael J. Wysocki
On Monday, August 27, 2018 10:55:41 PM CEST Al Stone wrote: > On 08/27/2018 01:19 PM, David Arcari wrote: > > acpi_pcc_probe calls acpi_table_parse_entries_array but fails to check > > for an error return. This in turn can result in calling kcalloc with > > a negative count as well as emitting the

Re: [PATCH v4 02/16] sched/core: uclamp: map TASK's clamp values into CPU's clamp groups

2018-09-14 Thread Patrick Bellasi
On 13-Sep 21:20, Peter Zijlstra wrote: > On Wed, Sep 12, 2018 at 06:42:09PM +0100, Patrick Bellasi wrote: > > On 12-Sep 18:24, Peter Zijlstra wrote: > > > On Tue, Aug 28, 2018 at 02:53:10PM +0100, Patrick Bellasi wrote: > > > > > { > > > > + int group_id[UCLAMP_CNT] = { UCLAMP_NOT_VALID };

Re: [PATCH] PM / suspend: Count suspend-to-idle loop as sleep time

2018-09-14 Thread Rafael J. Wysocki
On Friday, September 14, 2018 10:28:44 AM CEST Mika Penttilä wrote: > Hi! > > > On 09/14/2018 09:59 AM, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > There is a difference in behavior between suspend-to-idle and > > suspend-to-RAM in the timekeeping handling that leads to functio

Re: [PATCH v4 02/16] sched/core: uclamp: map TASK's clamp values into CPU's clamp groups

2018-09-14 Thread Patrick Bellasi
On 13-Sep 21:14, Peter Zijlstra wrote: > On Wed, Sep 12, 2018 at 06:52:02PM +0100, Patrick Bellasi wrote: > > On 12-Sep 19:42, Peter Zijlstra wrote: > > > On Wed, Sep 12, 2018 at 06:35:15PM +0100, Patrick Bellasi wrote: > > > > On 12-Sep 18:12, Peter Zijlstra wrote: > > > > > > > > No idea; but if

Re: [PATCH] perf/x86/intel/lbr: Optimize context switches for LBR

2018-09-14 Thread Andi Kleen
> > In principle the LBRs need to be flushed between threads. So does > > current code. > > IMHO, ideally, LBRs stack would be preserved and restored when > switching between execution stacks. That would allow implementing > per-thread statistical call graph view in Perf tools, fully based > on

Re: [PATCH] gpiolib: Free the last requested descriptor

2018-09-14 Thread Linus Walleij
On Thu, Sep 13, 2018 at 3:37 PM Ricardo Ribalda Delgado wrote: > The current code only frees N-1 gpios if an error occurs during > gpiod_set_transitory, gpiod_direction_output or gpiod_direction_input. > Leading to gpios that cannot be used by userspace nor other drivers. > > Cc: Timur Tabi > Cc

Re: [PATCH v2 11/11] arm: dts: ste-dbx5x0: Update coresight bindings for hardware port

2018-09-14 Thread Suzuki K Poulose
Hi Linus, On 14/09/18 09:43, Linus Walleij wrote: On Wed, Sep 12, 2018 at 3:54 PM Suzuki K Poulose wrote: Switch to the new coresight bindings Cc: Linus Walleij Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose Acked-by: Linus Walleij Thanks. I guess you will merge this with the

Re: [LKP] [ipc] 61224adcd2: general_protection_fault:#[##]

2018-09-14 Thread Rong Chen
On 09/13/2018 07:28 PM, David Howells wrote: kernel test robot wrote: To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Tried that. That seems to work for me. Or, at

Re: [PATCH] gpiolib: fix freeing of descriptors on error

2018-09-14 Thread Linus Walleij
On Thu, Sep 13, 2018 at 9:56 PM Ricardo Ribalda Delgado wrote: > Hi Jim > > I have sent an identical patch 3 hours before you [1] ;) > Seems that we are working on the same stuff. Haha w00t but I'm grateful that you fine people are taking the chardev ABI for a ride! I recorded Jim's contributio

Re: [PATCH v1 2/3] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-09-14 Thread Yi Sun
On 18-09-13 13:06:13, Thomas Gleixner wrote: > On Thu, 13 Sep 2018, Yi Sun wrote: > > +#include > > > > /* representing HT siblings of each logical CPU */ > > DEFINE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_sibling_map); > > @@ -1335,6 +1336,7 @@ void __init native_smp_prepare_boot_cpu(void) > >

Re: [PATCH] printk: CON_PRINTBUFFER console registration is a bit racy

2018-09-14 Thread Petr Mladek
On Fri 2018-09-14 11:34:28, Sergey Senozhatsky wrote: > CON_PRINTBUFFER console registration requires us to do several > preparation steps: > - Rollback console_seq to replay logbuf messages which were already > seen on other consoles; > - Set exclusive_console flag so console_unlock() will ->wri

Re: [PATCH] pinctrl: at91: don't use the same irqchip with multiple gpiochips

2018-09-14 Thread Linus Walleij
On Thu, Sep 13, 2018 at 2:46 PM Ludovic Desroches wrote: > Sharing the same irqchip with multiple gpiochips is not a good > practice. For instance, when installing hooks, we change the state > of the irqchip. The initial state of the irqchip for the second > gpiochip to register is then disrupted

Re: [PATCH] cpufreq: intel_pstate: Optimize IO boost in non HWP mode

2018-09-14 Thread Rafael J. Wysocki
On Tuesday, September 11, 2018 7:35:15 PM CEST Francisco Jerez wrote: > > "Rafael J. Wysocki" writes: > > > On Thursday, September 6, 2018 6:20:08 AM CEST Francisco Jerez wrote: > > > >> Srinivas Pandruvada writes: > >>=20 > >> > [...] > >> > > >> >> > >=3D20 > >> >> > > This patch causes a numb

Re: [PATCH 3/6] xenbus: dispatch per-domU watch event to per-domU xenwatch thread

2018-09-14 Thread Juergen Gross
On 14/09/18 09:34, Dongli Zhang wrote: > This is the 3rd patch of a (6-patch) patch set. > > This patch dispatches the watch event to per-domU xenwatch thread when the > event meets all of below conditions: > > 1. The watch is registered to use xenwatch multithreading feature and the >get_dom

metadata operation reordering regards to crash

2018-09-14 Thread 焦晓冬
Hi, all, A probably bit of complex question: Does nowadays practical filesystems, eg., extX, btfs, preserve metadata operation order through a crash/power failure? What I know is modern filesystems ensure metadata consistency after crash/power failure. Journal filesystems like extX do that by wri

Re: [PATCH v1 2/3] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-09-14 Thread Yi Sun
On 18-09-13 13:24:07, Thomas Gleixner wrote: > On Thu, 13 Sep 2018, Yi Sun wrote: > > +++ b/arch/x86/hyperv/hv_spinlock.c > > @@ -0,0 +1,99 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > + > > +/* > > + * Hyper-V specific spinlock code. > > + * > > + * Copyright (C) 2018, Intel, Inc. > > + * > > +

Re: [PATCH v4 03/16] sched/core: uclamp: add CPU's clamp groups accounting

2018-09-14 Thread Patrick Bellasi
On 13-Sep 21:12, Peter Zijlstra wrote: > On Tue, Aug 28, 2018 at 02:53:11PM +0100, Patrick Bellasi wrote: > > +static inline void uclamp_cpu_get_id(struct task_struct *p, > > +struct rq *rq, int clamp_id) > > +{ > > + struct uclamp_group *uc_grp; > > + struct ucl

Re: [PATCH 11/11] UAPI: Check headers build for C++ [ver #2]

2018-09-14 Thread Arnd Bergmann
On Thu, Sep 6, 2018 at 11:21 AM David Howells wrote: > + > +typedef __s8 int8_t; > +typedef __s16 int16_t; > +typedef __s32 int32_t; > +typedef __s64 int64_t; > +typedef __u8 uint8_t; > +typedef __u16

Re: [PATCH 1/3] drivers/base: move device_shutdown() to base/power

2018-09-14 Thread Rafael J. Wysocki
On Monday, August 20, 2018 11:18:35 AM CEST Pingfan Liu wrote: > Consider the shutdown as a system state transition, i.e. something like > suspend, hibernate, hence move it under the base/power. (This is a first > step to unify the duplicate code logic on devices_kset and dpm_list.) I don't really

Re: [RFC] memory_hotplug: Free pages as pageblock_order

2018-09-14 Thread Michal Hocko
On Wed 12-09-18 20:12:30, Arun KS wrote: > On 2018-09-12 18:47, Michal Hocko wrote: > > On Wed 12-09-18 22:57:43, Balbir Singh wrote: > > > On Wed, Sep 12, 2018 at 12:38:53PM +0200, Michal Hocko wrote: > > > > On Wed 12-09-18 14:56:45, Arun KS wrote: > > > > > When free pages are done with pagebloc

Re: [PATCH] cpufreq: intel_pstate: warn if HWP Native mode and OOB mode are both set

2018-09-14 Thread Rafael J. Wysocki
On Sunday, July 29, 2018 6:14:56 AM CEST ocea...@zoho.com.cn wrote: > From: Ocean He > > Refer to Intel HWPM Compliance Guide (Document Number: 566474): Bit[6] or > bit[8] of MSR MISC_PWR_MGMT is set only when BIOS select either HWP Native > mode or HWP OOB mode. Bit[6] and bit[8] cannot be set b

Re: [PATCH] perf/x86/intel/lbr: Optimize context switches for LBR

2018-09-14 Thread Alexey Budankov
Hi Andi, On 14.09.2018 11:54, Andi Kleen wrote: >>> In principle the LBRs need to be flushed between threads. So does >>> current code. >> >> IMHO, ideally, LBRs stack would be preserved and restored when >> switching between execution stacks. That would allow implementing >> per-thread statis

Re: [PATCH 3/4][v2] x86, hibernate: Extract the common code of 64/32 bit system

2018-09-14 Thread Rafael J. Wysocki
On Tuesday, September 11, 2018 7:20:46 PM CEST Chen Yu wrote: > From: Zhimin Gu > > Reduce the hibernation code duplication between x86-32 and x86-64 > by extracting the common code into hibernate.c. > > No functional change. > > Acked-by: Chen Yu > Acked-by: Pavel Machek > Cc: "Rafael J. Wys

OK

2018-09-14 Thread Ahmed Zama
Greetings, I humbly solicit for your partnership to transfer €15 million Euros into your personal or company’s account .Contact me for more detailed explanation. Kindly send me the followings Full Names Address Occupation Direct Mobile Telephone Lines Nationality Ahmed Zama +22675844869

Re: [RESEND PATCH V5 0/8] x86: infrastructure to enable FSGSBASE

2018-09-14 Thread Ingo Molnar
* Chang S. Bae wrote: > Resending the patchset that was posted before [6]. > > Given feedbacks from [1], it was suggested to separate two parts > and to (re-)submit this patchset first. > > To facilitate FSGSBASE, Andy's FS/GS base read fix is first > ordered, then some helper functions and r

Re: [PATCH v8 04/26] PM / Domains: Add support for CPU devices to genpd

2018-09-14 Thread Rafael J. Wysocki
On Friday, August 24, 2018 8:47:21 AM CEST Ulf Hansson wrote: > On 6 August 2018 at 11:36, Rafael J. Wysocki wrote: > > On Fri, Aug 3, 2018 at 1:43 PM, Ulf Hansson wrote: > >> On 19 July 2018 at 12:25, Rafael J. Wysocki wrote: > >>> On Wednesday, June 20, 2018 7:22:04 PM CEST Ulf Hansson wrote:

Re: [PATCH v4 06/16] sched/cpufreq: uclamp: add utilization clamping for FAIR tasks

2018-09-14 Thread Peter Zijlstra
On Tue, Aug 28, 2018 at 02:53:14PM +0100, Patrick Bellasi wrote: > diff --git a/kernel/sched/cpufreq_schedutil.c > b/kernel/sched/cpufreq_schedutil.c > index 3fffad3bc8a8..949082555ee8 100644 > --- a/kernel/sched/cpufreq_schedutil.c > +++ b/kernel/sched/cpufreq_schedutil.c > @@ -222,8 +222,13 @@ s

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Ingo Molnar
* Namhyung Kim wrote: > > > The perf.data stays as a single file. > > I'm not sure we really need to keep it as a single file. As it's a > kind of big changes, we might consider breaking compatibility and use > a directory structure. Agreed - and to make use of the highly scalable Linux VFS

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Alexey Budankov
On 14.09.2018 11:28, Jiri Olsa wrote: > On Fri, Sep 14, 2018 at 10:26:53AM +0200, Jiri Olsa wrote: > > SNIP > The threaded monitoring currently can't monitor backward maps and there are probably more limitations which I haven't spotted yet. So far I tested on laptop:

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-14 Thread Ingo Molnar
* Jiri Olsa wrote: > On Fri, Sep 14, 2018 at 11:29:10AM +0900, Namhyung Kim wrote: > > On Thu, Sep 13, 2018 at 07:10:35PM +0300, Alexey Budankov wrote: > > > Hi, > > > > Hello, > > > > > > > > On 13.09.2018 15:54, Jiri Olsa wrote: > > > > hi, > > > > sending *RFC* for threads support in perf

[PATCH] add label interface for cache device in sysfs

2018-09-14 Thread Dongbo Cao
label interface will be called by bcache tools in user space. Signed-off-by: Dongbo Cao --- drivers/md/bcache/sysfs.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index 225b15aa..e64c718f 100644 --- a/drivers/md/bc

Re: [PATCH v8 07/26] PM / Domains: Add genpd governor for CPUs

2018-09-14 Thread Rafael J. Wysocki
On Thursday, August 9, 2018 5:39:25 PM CEST Lorenzo Pieralisi wrote: > On Mon, Aug 06, 2018 at 11:20:59AM +0200, Rafael J. Wysocki wrote: > > [...] > > > >>> > @@ -245,6 +248,56 @@ static bool always_on_power_down_ok(struct > > >>> > dev_pm_domain *domain) > > >>> > return false; > > >>> >

Re: [PATCH] PM / suspend: Count suspend-to-idle loop as sleep time

2018-09-14 Thread Mika Penttilä
On 09/14/2018 11:46 AM, Rafael J. Wysocki wrote: > On Friday, September 14, 2018 10:28:44 AM CEST Mika Penttilä wrote: >> Hi! >> >> >> On 09/14/2018 09:59 AM, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> There is a difference in behavior between suspend-to-idle and >>> suspend-to-R

Dear intended recipient

2018-09-14 Thread Hama Diallo
-- Greetings, I wish to seek your assistance for the transfer of US$35M depository made by a politician for an investment programme that has remained dormant for years now.I shall provide you with more details and relevant documents that will help you understand the transaction. Mr. Hama Dial

Dear intended recipient

2018-09-14 Thread Hama Diallo
-- Greetings, I wish to seek your assistance for the transfer of US$35M depository made by a politician for an investment programme that has remained dormant for years now.I shall provide you with more details and relevant documents that will help you understand the transaction. Mr. Hama Dial

Re: [PATCH] add label interface for cache device in sysfs

2018-09-14 Thread Coly Li
On 9/14/18 5:51 PM, Dongbo Cao wrote: label interface will be called by bcache tools in user space. Signed-off-by: Dongbo Cao Hi Dongbo, In your change I see you set superblock label to cache set. What is the use case for doing this ? Thanks. Coly Li --- drivers/md/bcache/sysfs.

Re: [PATCH] PM / suspend: Count suspend-to-idle loop as sleep time

2018-09-14 Thread Rafael J. Wysocki
On Fri, Sep 14, 2018 at 11:53 AM Mika Penttilä wrote: > > On 09/14/2018 11:46 AM, Rafael J. Wysocki wrote: > > On Friday, September 14, 2018 10:28:44 AM CEST Mika Penttilä wrote: > >> Hi! > >> > >> > >> On 09/14/2018 09:59 AM, Rafael J. Wysocki wrote: > >>> From: Rafael J. Wysocki > >>> > >>> The

[PATCH 2/2] add some safety checks for label store interface of flash dev in sysfs

2018-09-14 Thread Dongbo Cao
do some checks on the label's length and ending. Signed-off-by: Dongbo Cao --- drivers/md/bcache/sysfs.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index e64c718f..cce793ef 100644 --- a/drivers/md/bcache/sysfs

[PATCH 0/2] Fixes for the SAMA5D2/SAMA5D4 watchdog

2018-09-14 Thread Romain Izard
A previous change of the sama5d4_wdt driver broke the device probing with the device tree configuration described in existing DTS files, when no value is set for the "timeout-sec" property. Moreover, specifying any other value than 16 seconds for "timeout-sec" leads to a watchdog reset immediately

[PATCH 1/2] watchdog: sama5d4: fix timeout-sec usage

2018-09-14 Thread Romain Izard
When using watchdog_init_timeout to update the default timeout value, an error means that there is no "timeout-sec" in the relevant device tree node. This should not prevent binding of the driver to the device. Fixes: 976932e40036 ("watchdog: sama5d4: make use of timeout-secs provided in devicet

Re: [PATCH 2/4] MAINTAINERS: VSP1: Add co-maintainer

2018-09-14 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Monday, 6 August 2018 17:39:02 EEST Kieran Bingham wrote: > From: Kieran Bingham > > Add myself as a co-maintainer for the Renesas VSP driver. > > Signed-off-by: Kieran Bingham Acked-by: Laurent Pinchart and applied to my tree. Thank you for your hel

[PATCH 2/2] watchdog: sama5d4: write the mode register in two steps

2018-09-14 Thread Romain Izard
The specification for SAMA5D2 and SAMA5D4 chips, that use this IP for their watchdog timer, has the following advice regarding the Mode Register: "When setting the WDDIS bit, and while it is set, the fields WDV and WDD must not be modified." I have observed on a board based on a SAMA5D2 chip that

Re: [PATCH] kernel: prevent submission of creds with higher privileges inside container

2018-09-14 Thread kbuild test robot
/commits/My-Name/kernel-prevent-submission-of-creds-with-higher-privileges-inside-container/20180914-164803 config: ia64-allnoconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 8.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin

Re: [PATCH 2/2] watchdog: sama5d4: write the mode register in two steps

2018-09-14 Thread Alexandre Belloni
On 14/09/2018 12:13:39+0200, Romain Izard wrote: > The specification for SAMA5D2 and SAMA5D4 chips, that use this IP for > their watchdog timer, has the following advice regarding the Mode Register: > > "When setting the WDDIS bit, and while it is set, the fields WDV and WDD > must not be modified

Re: [RFC][PATCH 01/11] asm-generic/tlb: Provide a comment

2018-09-14 Thread Martin Schwidefsky
On Thu, 13 Sep 2018 14:39:37 +0200 Peter Zijlstra wrote: > On Thu, Sep 13, 2018 at 02:18:27PM +0200, Martin Schwidefsky wrote: > > We may get something working with a common code mmu_gather, but I fear the > > day someone makes a "minor" change to that subtly break s390. The debugging > > of > >

  1   2   3   4   5   6   7   >