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

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

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

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

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) > >

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) > >

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) \ +

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) \ +

[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

[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.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

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

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

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

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

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

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: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

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

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: [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

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

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 @@

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 @@

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

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

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 :

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 :

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 changed, 13285

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 changed, 13285

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 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

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

[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

[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

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

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

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

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

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

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

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

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 > >> >

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 > >> >

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

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

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 > --- >

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 > --- >

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

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

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 >

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 >

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

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:

[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:

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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 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

[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(+),

[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(-)

[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

[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

[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(+),

[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(-)

[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

[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 ---

[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

[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 ---

[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

[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

[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

[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

[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

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

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

[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

[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

[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

[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

[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,

[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,

  1   2   3   4   5   6   7   8   9   10   >