Re: BUG: drivers/pinctrl/core: races in pinctrl_groups and deferred probing

2018-06-14 Thread Tony Lindgren
* H. Nikolaus Schaller [180614 12:15]: > Hi Tony, > > > Am 14.06.2018 um 14:01 schrieb Tony Lindgren : > > > > * H. Nikolaus Schaller [180613 12:41]: > >> > >> Now if I look into pinctrl_generic_add_group() and > >> pinctrl_generic_get_group_name(), > >> pctldev->num_groups++ is not protected

Re: [patch] mm, oom: fix unnecessary killing of additional processes

2018-06-14 Thread Michal Hocko
On Thu 14-06-18 13:42:59, David Rientjes wrote: > The oom reaper ensures forward progress by setting MMF_OOM_SKIP itself if > it cannot reap an mm. This can happen for a variety of reasons, > including: > > - the inability to grab mm->mmap_sem in a sufficient amount of time, > > - when the mm

Re: [PATCH] drivers/of: Add devm_of_iomap()

2018-06-14 Thread Benjamin Herrenschmidt
On Fri, 2018-06-15 at 08:16 +0200, Geert Uytterhoeven wrote: > Hi Ben, > > On Fri, Jun 15, 2018 at 1:51 AM Benjamin Herrenschmidt > wrote: > > On Thu, 2018-06-14 at 10:27 +0200, Geert Uytterhoeven wrote: > > > > --- a/include/linux/of_address.h > > > > +++ b/include/linux/of_address.h > > > > @@

Re: [PATCH] x86/pti: don't report XenPV as vulnerable

2018-06-14 Thread Jiri Kosina
On Fri, 15 Jun 2018, Juergen Gross wrote: > Why? PTI has to be disabled in PV guests as it can't work there due to > missing paravirtualization of the PTI feature (mov to/from %cr3). > > The Xen meltdown mitigation ("XPTI") for 64-bit pv guests is primarily > securing the hypervisor against mel

[GIT PULL] sound fixes for 4.18-rc1

2018-06-14 Thread Takashi Iwai
Linus, please pull sound fixes for v4.18-rc1 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-fix-4.18-rc1 The topmost commit is ad6baae6238136d9380ba95aa1646ab8b2fa52f5 sound fixes for 4.18-rc1

Re: [GIT PULL] UML updates for 4.18-rc1

2018-06-14 Thread Richard Weinberger
Linus, On Wed, Jun 13, 2018 at 9:31 PM, Richard Weinberger wrote: > Linus, > > The following changes since commit 29dcea88779c856c7dc92040a0c01233263101d4: > > Linux 4.17 (2018-06-03 14:15:21 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/

Re: [PATCH] x86/pti: don't report XenPV as vulnerable

2018-06-14 Thread Juergen Gross
On 15/06/18 08:16, Jiri Kosina wrote: > On Fri, 15 Jun 2018, Juergen Gross wrote: > wrong for 64-bit, too, in case the mitigation is disabled at hypervisor level. >>> >>> If that is indeed possible (is it?), then the check we have in >>> pti_check_boottime_disable() is wrong as well. >

[PATCH v4 3/9] xen/balloon: Share common memory reservation routines

2018-06-14 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Memory {increase|decrease}_reservation and VA mappings update/reset code used in balloon driver can be made common, so other drivers can also re-use the same functionality without open-coding. Create a dedicated file for the shared code and export corresponding symbo

[PATCH v4 1/9] xen/grant-table: Export gnttab_{alloc|free}_pages as GPL

2018-06-14 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Only gnttab_{alloc|free}_pages are exported as EXPORT_SYMBOL while all the rest are exported as EXPORT_SYMBOL_GPL, thus effectively making it not possible for non-GPL driver modules to use grant table module. Export gnttab_{alloc|free}_pages as EXPORT_SYMBOL_GPL so a

Re: [PATCH v10 04/10] drivers: qcom: rpmh: add RPMH helper functions

2018-06-14 Thread Raju P L S S S N
Hi, On 6/14/2018 2:39 AM, Doug Anderson wrote: Hi, On Mon, Jun 11, 2018 at 10:25 AM, Raju P L S S S N wrote: +void rpmh_tx_done(const struct tcs_request *msg, int r) +{ + struct rpmh_request *rpm_msg = container_of(msg, struct rpmh_request, +

Re: [PATCH] drivers/of: Add devm_of_iomap()

2018-06-14 Thread Geert Uytterhoeven
Hi Ben, On Fri, Jun 15, 2018 at 1:51 AM Benjamin Herrenschmidt wrote: > On Thu, 2018-06-14 at 10:27 +0200, Geert Uytterhoeven wrote: > > > --- a/include/linux/of_address.h > > > +++ b/include/linux/of_address.h > > > @@ -40,6 +40,11 @@ extern void __iomem *of_iomap(struct device_node > > > *devi

Re: [PATCH] x86/pti: don't report XenPV as vulnerable

2018-06-14 Thread Jiri Kosina
On Fri, 15 Jun 2018, Juergen Gross wrote: > >> wrong for 64-bit, too, in case the mitigation is disabled at hypervisor > >> level. > > > > If that is indeed possible (is it?), then the check we have in > > pti_check_boottime_disable() is wrong as well. > > No, it isn't. PTI for 32-bit kernels

Re: [PATCH v2] nds32: Fix build error caused by configuration flag rename

2018-06-14 Thread Greentime Hu
James Hogan 於 2018年6月14日 週四 下午10:29寫道: > > From: Guenter Roeck > > Fix build error on nds32 due to the merge of commit e3d5980568f ("lib: > Rename compiler intrinsic selects to GENERIC_LIB_*") during the 4.18 > merge window which renames Kconfig symbols. This had raced with commit > aeaa7af744fa

Re: Requirement to get BAR pci_bus_address in user space

2018-06-14 Thread Srinath Mannam
Thank you very much Alex and Ben for all the details. Please find my comments in lined.. On Fri, Jun 15, 2018 at 1:34 AM, Walker, Benjamin wrote: > On Thu, 2018-06-14 at 08:50 -0600, Alex Williamson wrote: >> On Thu, 14 Jun 2018 16:18:15 +0530 >> Srinath Mannam wrote: >> >> > Hi Sinan Kaya, >>

Re: [PATCH] x86/pti: don't report XenPV as vulnerable

2018-06-14 Thread Juergen Gross
On 15/06/18 08:04, Jiri Kosina wrote: > On Fri, 15 Jun 2018, Juergen Gross wrote: > >> wrong for 64-bit, too, in case the mitigation is disabled at hypervisor >> level. > > If that is indeed possible (is it?), then the check we have in > pti_check_boottime_disable() is wrong as well. No, it is

Re: [PATCH 2/2] arm: multi_v7_defconfig: Enable KSM.

2018-06-14 Thread Geert Uytterhoeven
Hi Daniel, Thanks for your patch! On Fri, Jun 15, 2018 at 12:52 AM Daniel Díaz wrote: > As per the documentation, Kernel Samepage Merging (available > since 2.6.32) is a memory-saving de-duplication feature, > enabled by CONFIG_KSM=y and activated via sysfs. More > information can be found here:

Re: [PATCH] x86/pti: don't report XenPV as vulnerable

2018-06-14 Thread Jiri Kosina
On Fri, 15 Jun 2018, Juergen Gross wrote: > wrong for 64-bit, too, in case the mitigation is disabled at hypervisor > level. If that is indeed possible (is it?), then the check we have in pti_check_boottime_disable() is wrong as well. > So the test should be done only for CONFIG_X86_64 Fair

Re: [PATCH v6 17/29] fpga: dfl: fme: add partial reconfiguration sub feature support

2018-06-14 Thread Wu Hao
On Thu, Jun 14, 2018 at 11:33:00AM -0500, Alan Tull wrote: > On Wed, Jun 13, 2018 at 8:07 PM, Moritz Fischer wrote: > > Hellooo, > > This probably could use a comment, please see below. > > > Hi, > > > > quick question for Alan inline below. > > > > >> +static int fme_pr(struct platform_device

Re: [PATCH v1 1/2] perf/core: Use sysctl to turn on/off dropping leaked kernel samples

2018-06-14 Thread Stephane Eranian
On Thu, Jun 14, 2018 at 7:10 PM Jin Yao wrote: > > When doing sampling, for example: > > perf record -e cycles:u ... > > On workloads that do a lot of kernel entry/exits we see kernel > samples, even though :u is specified. This is due to skid existing. > > This might be a security issue because i

Re: [PATCH v1 1/2] perf/core: Use sysctl to turn on/off dropping leaked kernel samples

2018-06-14 Thread Stephane Eranian
On Thu, Jun 14, 2018 at 7:10 PM Jin Yao wrote: > > When doing sampling, for example: > > perf record -e cycles:u ... > > On workloads that do a lot of kernel entry/exits we see kernel > samples, even though :u is specified. This is due to skid existing. > > This might be a security issue because i

Re: [PATCH 14/39] ovl: stack file ops

2018-06-14 Thread Al Viro
On Wed, Jun 13, 2018 at 11:21:30AM +0200, Miklos Szeredi wrote: > On Tue, Jun 12, 2018 at 8:31 PM, Al Viro wrote: > > On Tue, Jun 12, 2018 at 07:24:23PM +0100, Al Viro wrote: > > >> I hate it, but... consider path_open() objections withdrawn for now. > > Is that an ACK for the pull if I follow u

Re: [PATCH] x86/pti: don't report XenPV as vulnerable

2018-06-14 Thread Juergen Gross
On 15/06/18 00:32, Jiri Kosina wrote: > From: Jiri Kosina > > Xen PV domain is not by design affected by meltdown as it's enforcing > split CR3 itself. Let's not report such systems as "Vulnerable" in sysfs > (we're also already forcing PTI to off in X86_HYPER_XEN_PV cases) > > Reported-and-te

Re: [PATCH V2 4/4] mmc: host: Register changes for sdcc V5

2018-06-14 Thread Vijay Viswanath
On 6/13/2018 4:55 AM, Stephen Boyd wrote: Quoting Vijay Viswanath (2018-05-29 02:52:41) @@ -137,6 +125,12 @@ /* Timeout value to avoid infinite waiting for pwr_irq */ #define MSM_PWR_IRQ_TIMEOUT_MS 5000 +#define MSM_HOST_READL(msm_host, host, offset) \ + msm_host->var_ops->msm_r

[GIT PULL] modules for v4.18

2018-06-14 Thread Jessica Yu
Hi Linus, The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the git repository at: ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git tags/modules-for-v4.18 for you to fetch changes

RE: [PATCH 4.4 10/24] x86/fpu: Hard-disable lazy FPU mode

2018-06-14 Thread Daniel Sangorrin
> -Original Message- > From: stable-ow...@vger.kernel.org [mailto:stable-ow...@vger.kernel.org] On > Behalf Of 'Greg Kroah-Hartman' > Sent: Friday, June 15, 2018 1:56 PM > To: Daniel Sangorrin > Cc: linux-kernel@vger.kernel.org; sta...@vger.kernel.org; 'Andy Lutomirski' > ; 'Rik van Riel'

Re: [PATCH 4.17 00/45] 4.17.2-stable review

2018-06-14 Thread Greg Kroah-Hartman
On Thu, Jun 14, 2018 at 04:31:26PM -0600, Shuah Khan wrote: > On 06/14/2018 08:03 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.17.2 release. > > There are 45 patches in this series, all will be posted as a response > > to this one. If anyone has any issu

Re: [PATCH 4.17 00/45] 4.17.2-stable review

2018-06-14 Thread Greg Kroah-Hartman
On Fri, Jun 15, 2018 at 06:15:48AM +0530, Naresh Kamboju wrote: > On 14 June 2018 at 19:33, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.17.2 release. > > There are 45 patches in this series, all will be posted as a response > > to this one. If anyone ha

Re: [PATCH v1 0/2] perf: Drop leaked kernel samples

2018-06-14 Thread Jin, Yao
On 6/15/2018 11:35 AM, Kyle Huey wrote: I strongly object to this patch as written. As I said when I originally reported[0] the regression introduced by the previous version of this patch a year ago. "It seems like this change should, at a bare minimum, be limited to counters that actually pe

Re: Restartable Sequences system call merged into Linux

2018-06-14 Thread Florian Weimer
On 06/14/2018 03:46 PM, Mathieu Desnoyers wrote: This would allow registering various TLS data structures with a single system call without hindering flexibility on the user-space side. For instance, we could still use initial-exec and the __rseq_abi symbol for rseq with this approach. Thoughts

Re: Restartable Sequences system call merged into Linux

2018-06-14 Thread Florian Weimer
On 06/14/2018 03:01 PM, Mathieu Desnoyers wrote: Another alternative would be to somehow let glibc handle the registration, perhaps only doing it for applications expressing their interest for rseq. That's not really possible. We can't rely on the visibility of symbol bindings due to lazy bin

Re: [RFC PATCH 5/6] arm64: dts: ti: Add Support for AM654 SoC

2018-06-14 Thread Tony Lindgren
* Nishanth Menon [180614 13:07]: > On 12:38-20180614, Tony Lindgren wrote: > > Some comments on the ranges below. > > Thanks for reviewing in detail (I understand we are in the middle of > merge window, so thanks for the extra effort). > > > > > * Nishanth Me

Re: Restartable Sequences system call merged into Linux

2018-06-14 Thread Florian Weimer
On 06/14/2018 02:27 PM, Pavel Machek wrote: Should we treat it the same way? Always allocate it for each new thread and register it with the kernel? That would be an efficient way to do it, indeed. There is very little performance overhead to have rseq registered for all threads, whether or n

Re: [PATCH V2 2/4] mmc: sdhci-msm: Add msm version specific ops and data structures

2018-06-14 Thread Vijay Viswanath
Hi Stephen, On 6/13/2018 5:06 AM, Stephen Boyd wrote: Quoting Vijay Viswanath (2018-05-29 02:52:39) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index 4050c99..2a66aa0 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -226,6 +226,24 @@ s

Re: [PATCH 4.4 10/24] x86/fpu: Hard-disable lazy FPU mode

2018-06-14 Thread 'Greg Kroah-Hartman'
On Fri, Jun 15, 2018 at 01:24:27PM +0900, Daniel Sangorrin wrote: > Hi Greg, > > > /* Intel-defined CPU features, CPUID level 0x0001 (ecx), word 4 */ > > --- a/arch/x86/include/asm/fpu/internal.h > > +++ b/arch/x86/include/asm/fpu/internal.h > > @@ -58,7 +58,7 @@ extern u64 fpu__get_supported

RESEARCHERS

2018-06-14 Thread Sarah Paige
Greetings, We are contracted probate researchers. This is an investigation about a late client with whom you share the same surname; your assistance will be greatly appreciated. Are you aware of any investment made by such a person with us? Please clarify, EmaiL Reply to : research...@mail2co

linux-next: Tree for Jun 15

2018-06-14 Thread Stephen Rothwell
Hi all, Note: please do *not* add any v4.19 material to your linux-next included branches until after v4.18-rc1 has been released. Changes since 20180614: The overlayfs tree gained conflicts against Linus' tree. Non-merge commits (relative to Linus' tree): 778 600 files chan

RE: [PATCH 4.4 10/24] x86/fpu: Hard-disable lazy FPU mode

2018-06-14 Thread Daniel Sangorrin
Hi Greg, > /* Intel-defined CPU features, CPUID level 0x0001 (ecx), word 4 */ > --- a/arch/x86/include/asm/fpu/internal.h > +++ b/arch/x86/include/asm/fpu/internal.h > @@ -58,7 +58,7 @@ extern u64 fpu__get_supported_xfeatures_ > */ > static __always_inline __pure bool use_eager_fpu(void) >

Re: [PATCH 00/32] VFS: Introduce filesystem context [ver #8]

2018-06-14 Thread Eric W. Biederman
David Howells writes: > Here are a set of patches to create a filesystem context prior to setting > up a new mount, populating it with the parsed options/binary data, creating > the superblock and then effecting the mount. This is also used for remount > since much of the parsing stuff is common

[PATCH] vfs: discard ATTR_ATTR_FLAG

2018-06-14 Thread NeilBrown
This flag was introduce in 2.1.37pre1 and the only place it was tested was removed in 2.1.43pre1. The flag was never set. Let's discard it properly. Signed-off-by: NeilBrown --- fs/hostfs/hostfs.h | 3 +-- include/linux/fs.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a

Differences in cpu utilization reported by sar, emon

2018-06-14 Thread Solio Sarabia
Hello -- I'm running into an issue where sar, mpstat, top, and other tools show less cpu utilization compared to emon [1]. Sar uses /proc/stat as its source, and was configured to collect in 1s intervals. Emon reads hardware counter MSRs in the PMU in timer intervals, 0.1s for this scenario. The

Re: [PATCH] autofs - fix directory and symlink access

2018-06-14 Thread Ian Kent
On Fri, 2018-06-15 at 08:06 +0800, Ian Kent wrote: Opps, missing Signed-off-by, please add it! > Depending on how it is configured the autofs user space daemon can > leave in use mounts mounted at exit and re-connect to them at start > up. But for this to work best the state of the autofs file sy

Re: [PATCH v1 0/2] perf: Drop leaked kernel samples

2018-06-14 Thread Kyle Huey
I strongly object to this patch as written. As I said when I originally reported[0] the regression introduced by the previous version of this patch a year ago. "It seems like this change should, at a bare minimum, be limited to counters that actually perform sampling of register state when the int

Re: [PATCH] infiniband: fix a subtle race condition

2018-06-14 Thread Jason Gunthorpe
On Thu, Jun 14, 2018 at 04:14:13PM -0700, Cong Wang wrote: > On Thu, Jun 14, 2018 at 10:24 AM, Jason Gunthorpe wrote: > > On Thu, Jun 14, 2018 at 10:03:09AM -0700, Cong Wang wrote: > >> On Thu, Jun 14, 2018 at 7:24 AM, Jason Gunthorpe wrote: > >> > > >> > This was my brief reaction too, this code

Re: [PATCH v3] PCI: mediatek: Add system pm support for MT2712

2018-06-14 Thread Honghui Zhang
On Fri, 2018-06-01 at 13:52 +0300, Andy Shevchenko wrote: > On Fri, Jun 1, 2018 at 1:49 PM, Honghui Zhang > wrote: > > On Fri, 2018-06-01 at 13:17 +0300, Andy Shevchenko wrote: > >> On Fri, Jun 1, 2018 at 6:04 AM, wrote: > >> > From: Honghui Zhang > >> > >> > +#ifdef CONFIG_PM_SLEEP > >> > +sta

Re: [PATCH] cpufreq: kryo: Fix possible error code dereference

2018-06-14 Thread Viresh Kumar
On 14-06-18, 22:29, ilia@gmail.com wrote: > From: Ilia Lin > > In event of error returned by the nvmem_cell_read() non-pointer value > may be dereferenced. Fix this with error handling. > > Signed-off-by: Ilia Lin Fixes tag ? > --- > drivers/cpufreq/qcom-cpufreq-kryo.c | 2 ++ > 1 file c

Re: [PATCH v2] cpufreq: kryo: Add module remove and exit

2018-06-14 Thread Viresh Kumar
On 14-06-18, 22:42, ilia@gmail.com wrote: > From: Ilia Lin > > Add device remove and module exit code to make the driver > functioning as a loadable module. > > Fixes: ac28927659be (cpufreq: kryo: allow building as a loadable module) > Signed-off-by: Ilia Lin > --- > drivers/cpufreq/qcom-c

Re: [PATCH] optoe: driver to read/write SFP/QSFP EEPROMs

2018-06-14 Thread Don Bollinger
On Thu, Jun 14, 2018 at 09:46:36AM +0200, Arnd Bergmann wrote: > On Thu, Jun 14, 2018 at 2:40 AM, Don Bollinger wrote: > > On Mon, Jun 11, 2018 at 03:43:02PM +0200, Arnd Bergmann wrote: > >> On Mon, Jun 11, 2018 at 6:25 AM, Don Bollinger > >> wrote: > > >> > >> I don't understand this part: I s

Re: linux-next: manual merge of the y2038 tree with the overlayfs tree

2018-06-14 Thread Stephen Rothwell
Hi all, This is now a conflict between the overlayfs tree and Linus' tree. (I restarted my merging after I noticed that Linus merged more stuff.) On Fri, 15 Jun 2018 10:43:24 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the y2038 tree got conflicts in: > > fs/inode.c > fs

Re: [PATCH v3 2/7] serdev: add dev_pm_domain_attach|detach()

2018-06-14 Thread Sean Wang
On Thu, 2018-06-14 at 10:58 +0200, Ulf Hansson wrote: > On Thu, 14 Jun 2018 at 09:14, wrote: > > > > From: Sean Wang > > > > In order to open up the required power gate before any operation can be > > effectively performed over the serial bus between CPU and serdev, it's > > clearly essential to

[PATCH v3 0/4] clk: rockchip: support clock controller for px30 SoC

2018-06-14 Thread Elaine Zhang
Change in V3: [PATCH v3 1/4]: Correct description [PATCH v3 2/4]: Use an SPDX tag instead. [PATCH v3 3/4]: Use an SPDX tag instead, parent_rate might overflow and fix it. fix up the checkpatch warning. add more CMPOSITE_xxx_HALFdiv. Change in V2: [PA

[PATCH v3 1/4] dt-bindings: add bindings for px30 clock controller

2018-06-14 Thread Elaine Zhang
Add devicetree bindings for Rockchip cru which found on Rockchip SoCs. Signed-off-by: Elaine Zhang --- .../bindings/clock/rockchip,px30-cru.txt | 66 ++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,px30-cru.t

[PATCH v3 4/4] clk: rockchip: add clock controller for px30

2018-06-14 Thread Elaine Zhang
Add the clock tree definition for the new px30 SoC. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-px30.c | 1080 +++ drivers/clk/rockchip/clk.h | 41 +- 3 files changed, 1121 insertions(+), 1 deletion

[PATCH v3 2/4] clk: rockchip: add dt-binding header for px30

2018-06-14 Thread Elaine Zhang
Add the dt-bindings header for the px30, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for px30. Signed-off-by: Elaine Zhang Reviewed-by: Rob Herring --- include/dt-bindings/clock/px30-cru.h | 389 +++ 1 file

[PATCH v3 3/4] clk: rockchip: add support for half divider

2018-06-14 Thread Elaine Zhang
The new Rockchip socs have optional half divider: The formula is shown as: freq_out = 2*freq_in / (2*div + 3) Is this the same for all of new SoCs. So we use "branch_half_divider" + "COMPOSITE_NOMUX_HALFDIV \ DIV_HALF \ COMPOSITE_HALFDIV \ CMPOSITE_NOGATE_HALFDIV" to hook that special divi

[PATCH v1 0/2] perf: Drop leaked kernel samples

2018-06-14 Thread Jin Yao
On workloads that do a lot of kernel entry/exits we see kernel samples, even though :u is specified. This is due to skid existing. This might be a security issue because it can leak kernel addresses even though kernel sampling support is disabled. One patch "perf/core: Drop kernel samples even th

[PATCH v1 1/2] perf/core: Use sysctl to turn on/off dropping leaked kernel samples

2018-06-14 Thread Jin Yao
When doing sampling, for example: perf record -e cycles:u ... On workloads that do a lot of kernel entry/exits we see kernel samples, even though :u is specified. This is due to skid existing. This might be a security issue because it can leak kernel addresses even though kernel sampling support

[PATCH v1 2/2] perf Documentation: Introduce the sysctl perf_allow_sample_leakage

2018-06-14 Thread Jin Yao
Introduce a new sysctl /sys/devices/cpu/perf_allow_sample_leakage, which turns on/off dropping leaked kernel samples. Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-record.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git a/tools/perf/Documentation/perf-record.txt

[PATCH V2 6/7] mmc: sdhci-sprd: added Spreadtrum's initial host controller

2018-06-14 Thread Chunyan Zhang
From: Chunyan Zhang This patch adds the initial support of Secure Digital Host Controller Interface compliant controller found in some latest Spreadtrum chipsets. This patch has been tested on the version of SPRD-R11 controller. R11 is a variant based on SD v4.0 specification. With this driver,

[PATCH V2 4/7] mmc: sdhci: add 32-bit block count support for v4 mode

2018-06-14 Thread Chunyan Zhang
When Host Version 4 is enabled, SDMA System Address register is re-defined as 32-bit Block Count, and SDMA uses ADMA System Address register (05Fh-058h) instead. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 3 ++- drivers/mmc/host/sdhci.h | 1 + 2 files changed, 3 insertions(+), 1

[PATCH V2 5/7] mmc: sdhci: add CMD23 support for v4 mode

2018-06-14 Thread Chunyan Zhang
Host Driver Version 4.10 adds a new bit in Host Control 2 Register for selecting Auto CMD23 or Auto CMD12 for ADMA3 data transfer. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 16 +++- drivers/mmc/host/sdhci.h | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) d

[PATCH V2 7/7] dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller

2018-06-14 Thread Chunyan Zhang
From: Chunyan Zhang This patch adds the device-tree binding documentation for Spreadtrum SDHCI driver. Signed-off-by: Chunyan Zhang --- .../devicetree/bindings/mmc/sdhci-sprd.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/

[PATCH V2 2/7] mmc: sdhci: made changes for System Address register of SDMA

2018-06-14 Thread Chunyan Zhang
According to the SD host controller specification version 4.10, when Host Version 4 is enabled, SDMA uses ADMA System Address register (05Fh-058h) instead of using SDMA System Address register to support both 32-bit and 64-bit addressing. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c

[PATCH V2 3/7] mmc: sdhci: add ADMA2 64-bit addressing support for V4 mode

2018-06-14 Thread Chunyan Zhang
ADMA2 64-bit addressing support is divided into V3 mode and V4 mode. So there are two kinds of descriptors for ADMA2 64-bit addressing i.e. 96-bit Descriptor for V3 mode, and 128-bit Descriptor for V4 mode. 128-bit Descriptor is aligned to 8-byte. For V4 mode, ADMA2 64-bit addressing is enabled vi

[PATCH V2 0/7] mmc: add support for sdhci 4.0

2018-06-14 Thread Chunyan Zhang
From: Chunyan Zhang >From the SD host controller version 4.0 on, SDHCI implementation either is version 3 compatible or version 4 mode. This patch-set covers those changes which are common for SDHCI 4.0 version, regardless of whether they are used with SD or eMMC storage devices. This patchset a

[PATCH V2 1/7] mmc: sdhci: add sd host v4 mode

2018-06-14 Thread Chunyan Zhang
For SD host controller version 4.00 or later ones, there're two modes of implementation - Version 3.00 compatible mode or Version 4 mode. This patch introduces a flag to record this. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 6 ++ drivers/mmc/host/sdhci.h | 6 ++ 2 fil

Re: [PATCH 4.4 128/268] scsi: sd: Keep disk read-only when re-reading partition

2018-06-14 Thread Martin K. Petersen
Hi Ben, > (The log message about Write Protect status also reports the > underlying SCSI device flag and not the combined ro flag, but maybe > that was intentional.) I'd prefer for the printk in question to reflect the device-reported state, not the state of the block device. > I think this co

[PATCH v3 1/3] mtd: rawnand: denali_dt: add more clocks based on IP datasheet

2018-06-14 Thread Masahiro Yamada
According to the Denali User's Guide, this IP needs three clocks: - clk: controller core clock - clk_x: bus interface clock - ecc_clk: clock at which ECC circuitry is run Currently, denali_dt.c requires a single anonymous clock and its frequency. However, the driver needs to get the frequen

[PATCH v3 0/3] mtd: rawnand: denali: add new clocks and improve setup_data_interface

2018-06-14 Thread Masahiro Yamada
The ->setup_data_interface() hook needs to know the clock frequency. In fact, this IP needs three clocks, bus "which clock?" is really confusing. (It is not described in the DT-binding at all.) This series adds more clocks. In the new binding, three clocks are required: core clock, bus interfa

[PATCH v3 3/3] mtd: rawnand: denali: optimize timing parameters for data interface

2018-06-14 Thread Masahiro Yamada
This commit improves the ->setup_data_interface() hook. The denali_setup_data_interface() needs the frequency of clk_x and the ratio of clk_x / clk. The latter is currently hardcoded in the driver, like this: #define DENALI_CLK_X_MULT 6 The IP datasheet requires that clk_x / clk be 4, 5

linux-kernel@vger.kernel.org

2018-06-14 Thread Masahiro Yamada
The probe function references &pdev->dev many times. Add 'dev' as a shorthand. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None drivers/mtd/nand/raw/denali_dt.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/mt

Re: [PATCH v2] x86/e820: put !E820_TYPE_RAM regions into memblock.reserved

2018-06-14 Thread Naoya Horiguchi
On Thu, Jun 14, 2018 at 11:30:34PM +0200, Oscar Salvador wrote: > On Thu, Jun 14, 2018 at 06:34:55AM +, Naoya Horiguchi wrote: > > On Thu, Jun 14, 2018 at 07:38:59AM +0200, Oscar Salvador wrote: > > > On Thu, Jun 14, 2018 at 05:16:18AM +, Naoya Horiguchi wrote: > > ... > > > > > > > > My c

Re: [PATCH v2] x86/e820: put !E820_TYPE_RAM regions into memblock.reserved

2018-06-14 Thread Naoya Horiguchi
On Thu, Jun 14, 2018 at 01:24:37PM +0200, Oscar Salvador wrote: > On Thu, Jun 14, 2018 at 09:21:03AM +0200, Oscar Salvador wrote: > > On Thu, Jun 14, 2018 at 06:34:55AM +, Naoya Horiguchi wrote: > > > On Thu, Jun 14, 2018 at 07:38:59AM +0200, Oscar Salvador wrote: > > > > On Thu, Jun 14, 2018 a

Re: [PATCH v1] mm: zero remaining unavailable struct pages (Re: kernel panic in reading /proc/kpageflags when enabling RAM-simulated PMEM)

2018-06-14 Thread Naoya Horiguchi
On Thu, Jun 14, 2018 at 09:00:50AM +0200, Michal Hocko wrote: > On Thu 14-06-18 05:16:18, Naoya Horiguchi wrote: > > On Wed, Jun 13, 2018 at 11:07:00AM +0200, Michal Hocko wrote: > > > On Wed 13-06-18 05:41:08, Naoya Horiguchi wrote: > > > [...] > > > > From: Naoya Horiguchi > > > > Date: Wed, 13

[PATCH RFC] tracing: Call triggers only if event passes filter checks

2018-06-14 Thread Joel Fernandes
From: "Joel Fernandes (Google)" Currently, trace event triggers are called regardless of if the event filter checks pass or fail. Thus if one were to enable event triggers and filters at the same time, then the triggers will always be called even if the filter checks didn't pass. This is a probl

Re: [PATCH] extcon: Release locking when sending the notification of connector state

2018-06-14 Thread Chanwoo Choi
Hi Roger, If possible, Could you please review this patch? Regards, Chanwoo Choi On 2018년 06월 14일 20:33, H. Nikolaus Schaller wrote: > >> Am 14.06.2018 um 12:39 schrieb H. Nikolaus Schaller : >> >> Hi Roger and Chanwoo, >> >>> Am 14.06.2018 um 12:18 schrieb Chanwoo Choi : >>> >>> + H. Nikolaus

Re: [PATCH 4.16 00/43] 4.16.16-stable review

2018-06-14 Thread Naresh Kamboju
On 14 June 2018 at 19:34, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.16 release. > There are 43 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

Re: [PATCH 4.17 00/45] 4.17.2-stable review

2018-06-14 Thread Naresh Kamboju
On 14 June 2018 at 19:33, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.17.2 release. > There are 45 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

linux-next: manual merge of the y2038 tree with the overlayfs tree

2018-06-14 Thread Stephen Rothwell
Hi Arnd, Today's linux-next merge of the y2038 tree got conflicts in: fs/inode.c fs/overlayfs/inode.c fs/overlayfs/overlayfs.h between various commits from the overlayfs tree and commits: 8efd6894ff08 ("fs: add timespec64_truncate()") 95582b008388 ("vfs: change inode times to use stru

Re: [PATCH 4.14 00/36] 4.14.50-stable review

2018-06-14 Thread Naresh Kamboju
On 14 June 2018 at 19:34, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.50 release. > There are 36 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

Re: [PATCH 4.9 00/30] 4.9.109-stable review

2018-06-14 Thread Naresh Kamboju
On 14 June 2018 at 19:34, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.109 release. > There are 30 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

Re: [PATCH 4.4 00/24] 4.4.138-stable review

2018-06-14 Thread Naresh Kamboju
--- kernel: 4.4.138-rc1 git repo: https://git.linaro.org/lkft/arm64-stable-rc.git git branch: 4.4.138-rc1-hikey-20180614-218 git commit: 55a4e4dfb0ebf4bbc212a778883e72f06d3735b7 git describe: 4.4.138-rc1-hikey-20180614-218 Test details: https://qa-reports.linaro

Re: [PATCH v2] dmaengine: rcar-dmac: don't use DMAC error interrupt

2018-06-14 Thread Kuninori Morimoto
Hi Vinod Thank you for your feedback > > From: Kuninori Morimoto > > > > Current rcar-dmac is using DMAC error interrupt which will handle all > > channel's error. But in this design, error handling itself will be > > issue if user want to use virtualization, multi OS, etc. > > This patch rem

Re: [PATCH] doc: add description to dirtytime_expire_seconds

2018-06-14 Thread Yang Shi
ping Ted, Any comment is appreciated. Regards, Yang On 5/30/18 4:56 PM, Yang Shi wrote: commit 1efff914afac8a965ad63817ecf8861a927c2ace ("fs: add dirtytime_expire_seconds sysctl") introduced dirtytime_expire_seconds knob, but there is not description about it in Documentation/sysctl/vm.

[PATCH] autofs - fix directory and symlink access

2018-06-14 Thread Ian Kent
Depending on how it is configured the autofs user space daemon can leave in use mounts mounted at exit and re-connect to them at start up. But for this to work best the state of the autofs file system needs to be left intact over the restart. Also, at system shutdown, mounts in an autofs file syst

[PATCH 3/4] MIPS: Wire up the restartable sequences (rseq) syscall

2018-06-14 Thread Paul Burton
Wire up the restartable sequences (rseq) syscall for MIPS. This was introduced by commit d7822b1e24f2 ("rseq: Introduce restartable sequences system call") & MIPS now supports the prerequisites. Signed-off-by: Paul Burton Cc: James Hogan Cc: Ralf Baechle Cc: Mathieu Desnoyers Cc: Peter Zijlstr

[PATCH 4/4] rseq/selftests: Implement MIPS support

2018-06-14 Thread Paul Burton
Implement support for both MIPS32 & MIPS64 in the rseq selftests, in order to sanity check the recently enabled rseq syscall. The tests all pass on a MIPS Boston development board running either a MIPS32r2 interAptiv CPU & a MIPS64r6 I6500 CPU, both of which were configured with 2 cores each of wh

[PATCH 1/4] MIPS: Add support for restartable sequences

2018-06-14 Thread Paul Burton
Implement support for restartable sequences on MIPS, which requires 3 simple things: - Call rseq_handle_notify_resume() on return to userspace if TIF_NOTIFY_RESUME is set. - Call rseq_signal_deliver() to fixup the pre-signal stack frame when a signal is delivered whilst executing a re

[PATCH 0/4] MIPS: Restartable sequences (rseq) support

2018-06-14 Thread Paul Burton
This series implements MIPS support for restartable sequences, hooks up the rseq syscall & implements MIPS support in the rseq selftests. Applies atop Linus' master as of 2837461dbe6f ("Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi"). Thanks, Paul Paul Bur

[PATCH 2/4] MIPS: Add syscall detection for restartable sequences

2018-06-14 Thread Paul Burton
Syscalls are not allowed inside restartable sequences, so add a call to rseq_syscall() at the very beginning of the system call exit path when CONFIG_DEBUG_RSEQ=y. This will help us to detect whether there is a syscall issued erroneously inside a restartable sequence. Signed-off-by: Paul Burton C

Re: [PATCH] drivers/of: Add devm_of_iomap()

2018-06-14 Thread Benjamin Herrenschmidt
On Thu, 2018-06-14 at 10:27 +0200, Geert Uytterhoeven wrote: > > --- a/include/linux/of_address.h > > +++ b/include/linux/of_address.h > > @@ -40,6 +40,11 @@ extern void __iomem *of_iomap(struct device_node > > *device, int index); > > void __iomem *of_io_request_and_map(struct device_node *devi

Re: [PATCH 1/5] KVM: hyperv: define VP assist page helpers

2018-06-14 Thread Liran Alon
- vkuzn...@redhat.com wrote: > From: Ladi Prosek > > The state related to the VP assist page is still managed by the LAPIC > code in the pv_eoi field. > > Signed-off-by: Ladi Prosek > Signed-off-by: Vitaly Kuznetsov > --- > arch/x86/kvm/hyperv.c | 23 +-- > arch/x86

Re: [PATCH 5/5] KVM: nVMX: optimize prepare_vmcs02{,_full} for Enlightened VMCS case

2018-06-14 Thread Liran Alon
- vkuzn...@redhat.com wrote: > When Enlightened VMCS is in use by L1 hypervisor we can avoid > vmwriting > VMCS fields which did not change. > > Our first goal is to achieve minimal impact on traditional VMCS case > so > we're not wrapping each vmwrite() with an if-changed checker. We also

Re: [PATCH 3/5] KVM: nVMX: add enlightened VMCS state

2018-06-14 Thread Liran Alon
- vkuzn...@redhat.com wrote: > Adds hv_evmcs pointer and implement copy_enlightened_to_vmcs12() and > copy_enlightened_to_vmcs12(). > > prepare_vmcs02()/prepare_vmcs02_full() separation is not valid for > Enlightened VMCS, do full sync for now. > > Suggested-by: Ladi Prosek > Signed-off-b

[PATCH] selftests: zram: return Kselftest Skip code for skipped tests

2018-06-14 Thread Shuah Khan (Samsung OSG)
When zram test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets ski

Re: [PATCH 4/5] KVM: nVMX: implement enlightened VMPTRLD and VMCLEAR

2018-06-14 Thread Liran Alon
- vkuzn...@redhat.com wrote: > Per Hyper-V TLFS 5.0b: > > "The L1 hypervisor may choose to use enlightened VMCSs by writing 1 > to > the corresponding field in the VP assist page (see section 7.8.7). > Another field in the VP assist page controls the currently active > enlightened VMCS. Eac

mmotm 2018-06-14-16-20 uploaded

2018-06-14 Thread akpm
The mm-of-the-moment snapshot 2018-06-14-16-20 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH] infiniband: fix a subtle race condition

2018-06-14 Thread Cong Wang
On Thu, Jun 14, 2018 at 10:24 AM, Jason Gunthorpe wrote: > On Thu, Jun 14, 2018 at 10:03:09AM -0700, Cong Wang wrote: >> On Thu, Jun 14, 2018 at 7:24 AM, Jason Gunthorpe wrote: >> > >> > This was my brief reaction too, this code path almost certainly has a >> > use-after-free, and we should fix t

Re: [PATCH 4.4 038/268] Btrfs: fix scrub to repair raid6 corruption

2018-06-14 Thread Sasha Levin
On Thu, Jun 14, 2018 at 10:18:58AM +0200, Greg Kroah-Hartman wrote: >On Fri, Jun 08, 2018 at 07:42:47PM +0100, Ben Hutchings wrote: >> On Mon, 2018-05-28 at 12:00 +0200, Greg Kroah-Hartman wrote: >> > 4.4-stable review patch.  If anyone has any objections, please let me know. >> > >> >

Re: [PATCH 2/5] KVM: nVMX: add KVM_CAP_HYPERV_ENLIGHTENED_VMCS capability

2018-06-14 Thread Liran Alon
- vkuzn...@redhat.com wrote: > Enlightened VMCS is opt-in. The current version does not contain all > fields supported by nested VMX so we must not advertise the > corresponding VMX features if enlightened VMCS is enabled. > > Userspace is given the enlightened VMCS version supported by KVM

[PATCH 2/2] arm: multi_v7_defconfig: Enable KSM.

2018-06-14 Thread Daniel Díaz
As per the documentation, Kernel Samepage Merging (available since 2.6.32) is a memory-saving de-duplication feature, enabled by CONFIG_KSM=y and activated via sysfs. More information can be found here: https://www.kernel.org/doc/Documentation/vm/ksm.txt When enabled in the kernel, the default i

  1   2   3   4   5   6   7   >