Re: [PATCH 0/5] Fix Elan I2C touchpads in latest generation from Lenovo

2018-10-12 Thread Benjamin Tissoires
On Fri, Oct 12, 2018 at 8:53 PM Dmitry Torokhov wrote: > > On Fri, Oct 12, 2018 at 04:24:08PM +0200, Benjamin Tissoires wrote: > > Since v4.18, we unconditionally switch the I2C capable touchpads over I2C. > > In the model I had (a pre-prod t480s I guess), the touchpad was behaving > > fine. > > H

Re: Avoid VLA in pgd_alloc kills boot on 32-bit machines was Re: -next20181010,1011 regression: thinkpad x60 (32 bit) dies during boot.

2018-10-12 Thread Pavel Machek
On Fri 2018-10-12 20:13:35, Borislav Petkov wrote: > On Fri, Oct 12, 2018 at 08:10:11PM +0200, Pavel Machek wrote: > > And the winner is... > > > > [1be3f247c2882a82279cbcf43717581ea943b692] x86/mm: Avoid VLA in > > pgd_alloc() > > That should be fixed now: > > https://git.kernel.org/tip/184d47f

Re: linux-next: manual merge of the tip tree with Linus' tree

2018-10-12 Thread Kees Cook
On Fri, Oct 12, 2018 at 3:47 AM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> On Thu, Oct 11, 2018 at 7:14 PM, Stephen Rothwell >> wrote: >> > Hi all, >> > >> > Today's linux-next merge of the tip tree got a conflict in: >> > >> > arch/x86/mm/pgtable.c >> > >> > between commit: >> > >> >

Re: [PATCH 0/5] Fix Elan I2C touchpads in latest generation from Lenovo

2018-10-12 Thread Dmitry Torokhov
On Fri, Oct 12, 2018 at 04:24:08PM +0200, Benjamin Tissoires wrote: > Since v4.18, we unconditionally switch the I2C capable touchpads over I2C. > In the model I had (a pre-prod t480s I guess), the touchpad was behaving > fine. > However, it occurs that later production models don't expose the clic

Re: [PATCH] rcu: Use cpus_read_lock() while looking at cpu_online_mask

2018-10-12 Thread Sebastian Andrzej Siewior
On 2018-09-19 15:11:40 [-0700], Paul E. McKenney wrote: > On Wed, Sep 19, 2018 at 01:55:21PM -0700, Tejun Heo wrote: > > Unbound workqueue is NUMA-affine by default, so using it by default > > might not harm anything. > > OK, so the above workaround would function correctly on -rt, thank you! > >

Re: [PATCH 00/16] clk: at91: Rework DT bindings

2018-10-12 Thread Alexandre Belloni
On 12/10/2018 11:28:06-0700, Stephen Boyd wrote: > Quoting Stephen Boyd (2018-08-31 10:45:30) > > Quoting Alexandre Belloni (2018-08-16 04:47:55) > > > On 27/07/2018 10:03:22-0700, Stephen Boyd wrote: > > > > Quoting Alexandre Belloni (2018-07-17 15:27:41) > > > > > This is the promised rework of t

Re: [PATCH] KEYS: trusted: fix -Wvarags warning

2018-10-12 Thread Nick Desaulniers
On Fri, Oct 12, 2018 at 10:27 AM Denis Kenzior wrote: > > Hi Nick, > > >> So maybe I'm misunderstanding something, but the issue seems to be that > >> unsigned char is promoted to 'unsigned char *' by Clang and probably > >> unsigned int or int by gcc. > > > > No. This is extremely well defined be

Re: [PATCH v3 09/11] arch/x86: Introduce new config parameter AMD_QOS

2018-10-12 Thread Moger, Babu
On 10/12/2018 09:43 AM, Borislav Petkov wrote: > On Fri, Oct 12, 2018 at 02:40:50PM +, Moger, Babu wrote: >> That is correct. CPU_SUP_AMD implicitly means x86. >> To be more specific, I will change it to >> "depends on X86_64 && CPU_SUP_AMD" as this feature is for X86_64 only. > > No, what I'

Re: [PATCH 10/39] x86/entry/32: Handle Entry from Kernel-Mode on Entry-Stack

2018-10-12 Thread Jan Kiszka
On 18.07.18 11:40, Joerg Roedel wrote: From: Joerg Roedel It can happen that we enter the kernel from kernel-mode and on the entry-stack. The most common way this happens is when we get an exception while loading the user-space segment registers on the kernel-to-userspace exit path. The segmen

Re: [PATCH 00/16] clk: at91: Rework DT bindings

2018-10-12 Thread Stephen Boyd
Quoting Stephen Boyd (2018-08-31 10:45:30) > Quoting Alexandre Belloni (2018-08-16 04:47:55) > > On 27/07/2018 10:03:22-0700, Stephen Boyd wrote: > > > Quoting Alexandre Belloni (2018-07-17 15:27:41) > > > > This is the promised rework of the at91 PMC clocks driver. It is mainly > > > > necessary t

Re: [PATCH v2 1/7] modules: Create rlimit for module space

2018-10-12 Thread Jann Horn
On Fri, Oct 12, 2018 at 2:35 AM Jann Horn wrote: > On Fri, Oct 12, 2018 at 1:40 AM Rick Edgecombe > wrote: > > This introduces a new rlimit, RLIMIT_MODSPACE, which limits the amount of > > module space a user can use. The intention is to be able to limit module > > space > > allocations that may

Re: [RFC][PATCH] x86: ptrace: Add function argument access API

2018-10-12 Thread Steven Rostedt
On Fri, 12 Oct 2018 11:21:28 -0700 Andy Lutomirski wrote: > On Fri, Oct 12, 2018 at 9:26 AM Steven Rostedt wrote: > > > > > > Anyone have any issues with this patch? > > > > I'm conceptually okay with it. That being said, > regs_within_kernel_stack(), which you're indirectly using, is > off-

Re: Avoid VLA in pgd_alloc kills boot on 32-bit machines was Re: -next20181010,1011 regression: thinkpad x60 (32 bit) dies during boot.

2018-10-12 Thread Pavel Machek
On Fri 2018-10-12 20:10:11, Pavel Machek wrote: > Hi! > > > > > So what came in between -next20181005 and the first bad one? > > > > kernel/sched/* > > > > being the first place to look at. > > > > > > kernel/sched does not seem to contain anything too scary. > > > > > > I know that -next201810

Re: [RFC][PATCH] x86: ptrace: Add function argument access API

2018-10-12 Thread Andy Lutomirski
On Fri, Oct 12, 2018 at 9:26 AM Steven Rostedt wrote: > > > Anyone have any issues with this patch? > I'm conceptually okay with it. That being said, regs_within_kernel_stack(), which you're indirectly using, is off-by-a-few. And updating it to use probe_kernel_read() might be nice for robustne

Re: [PATCH 08/11] x86/fpu: Always store the registers in copy_fpstate_to_sigframe()

2018-10-12 Thread Dave Hansen
On 10/04/2018 07:05 AM, Sebastian Andrzej Siewior wrote: > From: Rik van Riel > > copy_fpstate_to_sigframe() has two callers and both invoke the function only > if > fpu->initialized is set. So the check in the function for ->initialized makes > no sense. It might be a relict from the lazy-FPU t

Re: [PATCH 0/7] HMM updates, improvements and fixes

2018-10-12 Thread Jerome Glisse
On Fri, Aug 24, 2018 at 03:25:42PM -0400, jgli...@redhat.com wrote: > From: Jérôme Glisse > > Few fixes that only affect HMM users. Improve the synchronization call > back so that we match was other mmu_notifier listener do and add proper > support to the new blockable flags in the process. > >

Re: [PATCH v7 0/7] mm: Merge hmm into devm_memremap_pages, mark GPL-only

2018-10-12 Thread Jerome Glisse
On Fri, Oct 12, 2018 at 10:49:31AM -0700, Dan Williams wrote: > [ apologies for the resend, script error ] > > Changes since v6 [1]: > * Rebase on next-20181008 and fixup conflicts with the xarray conversion > and hotplug optimizations > * It has soaked on a 0day visible branch for a few days wi

Re: Avoid VLA in pgd_alloc kills boot on 32-bit machines was Re: -next20181010,1011 regression: thinkpad x60 (32 bit) dies during boot.

2018-10-12 Thread Borislav Petkov
On Fri, Oct 12, 2018 at 08:10:11PM +0200, Pavel Machek wrote: > And the winner is... > > [1be3f247c2882a82279cbcf43717581ea943b692] x86/mm: Avoid VLA in > pgd_alloc() That should be fixed now: https://git.kernel.org/tip/184d47f0fd365108bd06ab26cdb3450b716269fd -- Regards/Gruss, Boris. Goo

Re: [GIT PULL 3/4] ARM: exynos: soc/mach for v4.20, second round

2018-10-12 Thread Olof Johansson
On Thu, Oct 11, 2018 at 7:02 AM Arnd Bergmann wrote: > > On 10/10/18, Krzysztof Kozlowski wrote: > > Hi, > > > > On top of previous pull request. > > > > > > Samsung mach/soc changes for v4.20, second round > > > > 1. Disable SAMSUN

[PATCH] mm/thp: fix call to mmu_notifier in set_pmd_migration_entry() v2

2018-10-12 Thread jglisse
From: Jérôme Glisse Inside set_pmd_migration_entry() we are holding page table locks and thus we can not sleep so we can not call invalidate_range_start/end() So remove call to mmu_notifier_invalidate_range_start/end() because they are call inside the function calling set_pmd_migration_entry() (

Re: [PATCH security-next v5 00/30] LSM: Explict ordering

2018-10-12 Thread John Johansen
On 10/12/2018 04:31 AM, Jordan Glover wrote: > ‐‐‐ Original Message ‐‐‐ > On Friday, October 12, 2018 2:26 AM, John Johansen > wrote: > >> On 10/11/2018 04:53 PM, Jordan Glover wrote: >> >>> ‐‐‐ Original Message ‐‐‐ >>> On Friday, October 12, 2018 1:09 AM, Kees Cook keesc...@chro

Avoid VLA in pgd_alloc kills boot on 32-bit machines was Re: -next20181010,1011 regression: thinkpad x60 (32 bit) dies during boot.

2018-10-12 Thread Pavel Machek
Hi! > > > So what came in between -next20181005 and the first bad one? > > > kernel/sched/* > > > being the first place to look at. > > > > kernel/sched does not seem to contain anything too scary. > > > > I know that -next20181005 works ok, and I know -next20181010 is > > bad. Is there easy wa

Re: [PATCH RFC v1 7/8] drivers: qcom: cpu_pd: Handle cpu hotplug in the domain

2018-10-12 Thread Raju P L S S S N
On 10/12/2018 7:55 PM, Sudeep Holla wrote: On Thu, Oct 11, 2018 at 02:50:54AM +0530, Raju P.L.S.S.S.N wrote: Use cpu hotplug callback mechanism to attach/dettach the cpu in the cpu power domain. During cpu hotplug callback registration, the starting callback is invoked on all online cpus. So

Re: [PATCH 04/11] x86/fpu: eager switch PKRU state

2018-10-12 Thread Andy Lutomirski
On Fri, Oct 12, 2018 at 10:51 AM Dave Hansen wrote: > > On 10/04/2018 07:05 AM, Sebastian Andrzej Siewior wrote: > > From: Rik van Riel > > > > While most of a task's FPU state is only needed in user space, > > the protection keys need to be in place immediately after a > > context switch. > > >

Re: [PATCH RFC v1 5/8] dt-bindings: introduce cpu power domain bindings for Qualcomm SoCs

2018-10-12 Thread Raju P L S S S N
On 10/11/2018 4:38 PM, Sudeep Holla wrote: On Thu, Oct 11, 2018 at 02:50:52AM +0530, Raju P.L.S.S.S.N wrote: Add device binding documentation for Qualcomm Technology Inc's cpu domain driver. The driver is used for managing system sleep activities that are required when application processor i

Re: [PATCH 07/11] x86/pkeys: Drop the preempt-disable section

2018-10-12 Thread Andy Lutomirski
On Fri, Oct 12, 2018 at 10:58 AM Dave Hansen wrote: > > On 10/04/2018 07:05 AM, Sebastian Andrzej Siewior wrote: > > The fpu->initialized flag should not be changed underneath us. This might > > be a > > fallout during the removal of the LazyFPU support. The FPU is marked > > initialized as soon

Re: [PATCH v3 2/9] dt-bindings: ti-lmu: Remove LM3697

2018-10-12 Thread Pavel Machek
Hi! > > >>> Signed-off-by: Dan Murphy > > >> > > >> NAK. > > > > > > Thanks for the NAK. > > > > > > This NAK was NAK'd by other maintainer in the V2 RFC patchset > > > > > > https://lore.kernel.org/patchwork/patch/993171/ > > > > I confirm. LM3697 is a standalone device and not a cell of any

[PATCH v7 7/7] mm, hmm: Mark hmm_devmem_{add, add_resource} EXPORT_SYMBOL_GPL

2018-10-12 Thread Dan Williams
The routines hmm_devmem_add(), and hmm_devmem_add_resource() duplicated devm_memremap_pages() and are now simple now wrappers around the core facility to inject a dev_pagemap instance into the global pgmap_radix and hook page-idle events. The devm_memremap_pages() interface is base infrastructure f

Re: [PATCH RFC v1 4/8] drivers: qcom: cpu_pd: add cpu power domain support using genpd

2018-10-12 Thread Raju P L S S S N
On 10/12/2018 8:03 PM, Sudeep Holla wrote: On Thu, Oct 11, 2018 at 02:50:51AM +0530, Raju P.L.S.S.S.N wrote: RPMH based targets require that the sleep and wake state request votes be sent during system low power mode entry. The votes help reduce the power consumption when the AP is not using

Re: [PATCH v2 2/2] mm: speed up mremap by 500x on large regions

2018-10-12 Thread David Miller
From: "Kirill A. Shutemov" Date: Fri, 12 Oct 2018 14:30:56 +0300 > I looked into the code more and noticed move_pte() helper called from > move_ptes(). It changes PTE entry to suite new address. > > It is only defined in non-trivial way on Sparc. I don't know much about > Sparc and it's hard for

Re: [PATCH 05/11] x86/fpu: set PKRU state for kernel threads

2018-10-12 Thread Andy Lutomirski
On Fri, Oct 12, 2018 at 10:54 AM Dave Hansen wrote: > > On 10/04/2018 07:05 AM, Sebastian Andrzej Siewior wrote: > > The PKRU value is not set for kernel threads because they do not have > > the ->initialized value set. As a result the kernel thread has a random > > PKRU value set which it inherit

[PATCH v7 5/7] mm, hmm: Use devm semantics for hmm_devmem_{add, remove}

2018-10-12 Thread Dan Williams
devm semantics arrange for resources to be torn down when device-driver-probe fails or when device-driver-release completes. Similar to devm_memremap_pages() there is no need to support an explicit remove operation when the users properly adhere to devm semantics. Note that devm_kzalloc() automati

Re: Gang scheduling

2018-10-12 Thread Tim Chen
On 10/10/2018 05:09 PM, Subhra Mazumdar wrote: > Hi, > > I was following the Coscheduling patch discussion on lkml and Peter mentioned > he had a patch series. I found the following on github. > > https://github.com/pdxChen/gang/commits/sched_1.23-loadbal > > I would like to test this with KVMs

[PATCH v7 6/7] mm, hmm: Replace hmm_devmem_pages_create() with devm_memremap_pages()

2018-10-12 Thread Dan Williams
Commit e8d513483300 "memremap: change devm_memremap_pages interface to use struct dev_pagemap" refactored devm_memremap_pages() to allow a dev_pagemap instance to be supplied. Passing in a dev_pagemap interface simplifies the design of pgmap type drivers in that they can rely on container_of() to l

[PATCH v7 2/7] mm, devm_memremap_pages: Kill mapping "System RAM" support

2018-10-12 Thread Dan Williams
Given the fact that devm_memremap_pages() requires a percpu_ref that is torn down by devm_memremap_pages_release() the current support for mapping RAM is broken. Support for remapping "System RAM" has been broken since the beginning and there is no existing user of this this code path, so just kil

[PATCH v7 3/7] mm, devm_memremap_pages: Fix shutdown handling

2018-10-12 Thread Dan Williams
The last step before devm_memremap_pages() returns success is to allocate a release action, devm_memremap_pages_release(), to tear the entire setup down. However, the result from devm_add_action() is not checked. Checking the error from devm_add_action() is not enough. The api currently relies on

[PATCH v7 4/7] mm, devm_memremap_pages: Add MEMORY_DEVICE_PRIVATE support

2018-10-12 Thread Dan Williams
In preparation for consolidating all ZONE_DEVICE enabling via devm_memremap_pages(), teach it how to handle the constraints of MEMORY_DEVICE_PRIVATE ranges. Reviewed-by: Jérôme Glisse [jglisse: call move_pfn_range_to_zone for MEMORY_DEVICE_PRIVATE] Acked-by: Christoph Hellwig Reported-by: Logan

[PATCH v7 1/7] mm, devm_memremap_pages: Mark devm_memremap_pages() EXPORT_SYMBOL_GPL

2018-10-12 Thread Dan Williams
devm_memremap_pages() is a facility that can create struct page entries for any arbitrary range and give drivers the ability to subvert core aspects of page management. Specifically the facility is tightly integrated with the kernel's memory hotplug functionality. It injects an altmap argument dee

[PATCH v7 0/7] mm: Merge hmm into devm_memremap_pages, mark GPL-only

2018-10-12 Thread Dan Williams
[ apologies for the resend, script error ] Changes since v6 [1]: * Rebase on next-20181008 and fixup conflicts with the xarray conversion and hotplug optimizations * It has soaked on a 0day visible branch for a few days without any reports. [1]: https://lkml.org/lkml/2018/9/13/104 --- Hi An

[PATCH v7 0/7] mm: Merge hmm into devm_memremap_pages, mark GPL-only

2018-10-12 Thread Dan Williams
Changes since v6 [1]: * Rebase on next-20181008 and fixup conflicts with the xarray conversion and hotplug optimizations * It has soaked on a 0day visible branch for a few days without any reports. [1]: https://lkml.org/lkml/2018/9/13/104 --- Hi Andrew, Jérôme has reviewed the cleanups, tha

[PATCH v7 1/7] mm, devm_memremap_pages: Mark devm_memremap_pages() EXPORT_SYMBOL_GPL

2018-10-12 Thread Dan Williams
devm_memremap_pages() is a facility that can create struct page entries for any arbitrary range and give drivers the ability to subvert core aspects of page management. Specifically the facility is tightly integrated with the kernel's memory hotplug functionality. It injects an altmap argument dee

Re: [PATCH 07/11] x86/pkeys: Drop the preempt-disable section

2018-10-12 Thread Dave Hansen
On 10/04/2018 07:05 AM, Sebastian Andrzej Siewior wrote: > The fpu->initialized flag should not be changed underneath us. This might be a > fallout during the removal of the LazyFPU support. The FPU is marked > initialized as soon as the state has been set to an initial value. It does not > signal

Re: [PATCH] mm/thp: fix call to mmu_notifier in set_pmd_migration_entry()

2018-10-12 Thread Andrea Arcangeli
On Fri, Oct 12, 2018 at 01:35:19PM -0400, Jerome Glisse wrote: > On Fri, Oct 12, 2018 at 01:24:22PM -0400, Andrea Arcangeli wrote: > > Hello, > > > > On Fri, Oct 12, 2018 at 12:20:54PM -0400, Zi Yan wrote: > > > On 12 Oct 2018, at 12:09, jgli...@redhat.com wrote: > > > > > > > From: Jérôme Glisse

Re: [PATCH 06/11] x86/pkeys: make init_pkru_value static

2018-10-12 Thread Dave Hansen
On 10/04/2018 07:05 AM, Sebastian Andrzej Siewior wrote: > The variable init_pkru_value isn't used outside of this file. > Make init_pkru_value static. > > Signed-off-by: Sebastian Andrzej Siewior Looks good. Acked-by: Dave Hansen

Re: [PATCH 05/11] x86/fpu: set PKRU state for kernel threads

2018-10-12 Thread Dave Hansen
On 10/04/2018 07:05 AM, Sebastian Andrzej Siewior wrote: > The PKRU value is not set for kernel threads because they do not have > the ->initialized value set. As a result the kernel thread has a random > PKRU value set which it inherits from the previous task. > It has been suggested by Paolo Bonz

Re: [PATCH v1 3/3] clk: mediatek: mt2712: add pll reference support

2018-10-12 Thread Stephen Boyd
Quoting Weiyi Lu (2018-09-20 02:57:27) > For some MT2712 projects, audpll could select another reference > clock source if there exists an extra Crystal Oscillators than > the default clk26m XTAL. > Declare with the property "mediatek,refclk-aud" to switch > the audpll reference clock. > And also s

Re: [PATCH RFC v1 8/8] arm64: dtsi: sdm845: Add cpu power domain support

2018-10-12 Thread Lina Iyer
On Fri, Oct 12 2018 at 11:35 -0600, Sudeep Holla wrote: On Thu, Oct 11, 2018 at 02:50:55AM +0530, Raju P.L.S.S.S.N wrote: Add cpu power domain support Signed-off-by: Raju P.L.S.S.S.N --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/ar

Re: [PATCH 04/11] x86/fpu: eager switch PKRU state

2018-10-12 Thread Dave Hansen
On 10/04/2018 07:05 AM, Sebastian Andrzej Siewior wrote: > From: Rik van Riel > > While most of a task's FPU state is only needed in user space, > the protection keys need to be in place immediately after a > context switch. > > The reason is that any accesses to userspace memory while running >

Re: [PATCH 4.9 00/35] 4.9.133-stable review

2018-10-12 Thread Guenter Roeck
On Thu, Oct 11, 2018 at 05:35:02PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.133 release. > There are 35 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

Re: [PATCH v2 0/4] devres: provide and use devm_kstrdup_const()

2018-10-12 Thread Stephen Boyd
Quoting Bartosz Golaszewski (2018-09-20 05:59:54) > 2018-08-28 11:33 GMT+02:00 Bartosz Golaszewski : > > This series implements devm_kstrdup_const() together with some > > prerequisite changes and uses it in pmc-atom driver. > > > > v1 -> v2: > > - fixed the changelog in the patch implementing devm

RE: issues with suspend on Dell XPS 13 2-in-1

2018-10-12 Thread Mario.Limonciello
> -Original Message- > From: Dennis Gilmore > Sent: Friday, October 12, 2018 8:39 AM > To: Pandruvada, Srinivas > Cc: linux-kernel@vger.kernel.org; linux-a...@vger.kernel.org; Limonciello, > Mario > Subject: Re: issues with suspend on Dell XPS 13 2-in-1 > It appears I'm being added to t

Re: [PATCH 6/6] arm64: dts: marvell: Add cpu clock node on Armada 7K/8K

2018-10-12 Thread Stephen Boyd
+Rob Quoting Gregory CLEMENT (2018-09-22 11:17:09) > diff --git a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi > b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi > index 4a65e4e830aa..27c840e91abe 100644 > --- a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi > +++ b/arch/arm64/boot/dts/marvell/arm

Re: [PATCH v6] clk: qcom: Add lpass clock controller driver for SDM845

2018-10-12 Thread Stephen Boyd
Quoting Taniya Das (2018-10-09 23:12:27) > > > On 10/10/2018 2:22 AM, Stephen Boyd wrote: > > Quoting Taniya Das (2018-10-09 10:26:38) > >> Hello Stephen, > >> > >> On 10/8/2018 8:14 AM, Stephen Boyd wrote: > >>> Quoting Taniya Das (2018-10-04 05:02:26) > Add support for the lpass clock cont

Re: [PATCH] mm/thp: fix call to mmu_notifier in set_pmd_migration_entry()

2018-10-12 Thread Jerome Glisse
On Fri, Oct 12, 2018 at 01:24:22PM -0400, Andrea Arcangeli wrote: > Hello, > > On Fri, Oct 12, 2018 at 12:20:54PM -0400, Zi Yan wrote: > > On 12 Oct 2018, at 12:09, jgli...@redhat.com wrote: > > > > > From: Jérôme Glisse > > > > > > Inside set_pmd_migration_entry() we are holding page table lock

Re: [PATCH RFC v1 8/8] arm64: dtsi: sdm845: Add cpu power domain support

2018-10-12 Thread Sudeep Holla
On Thu, Oct 11, 2018 at 02:50:55AM +0530, Raju P.L.S.S.S.N wrote: > Add cpu power domain support > > Signed-off-by: Raju P.L.S.S.S.N > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi > b/arc

[PATCHv3] mm/gup: Cache dev_pagemap while pinning pages

2018-10-12 Thread Keith Busch
Getting pages from ZONE_DEVICE memory needs to check the backing device's live-ness, which is tracked in the device's dev_pagemap metadata. This metadata is stored in a radix tree and looking it up adds measurable software overhead. This patch avoids repeating this relatively costly operation when

Re: [PATCH v1] KVM/x86/vPMU: Guest PMI Optimization

2018-10-12 Thread Alexey Budankov
Hi, On 12.10.2018 19:30, Andi Kleen wrote: >> 4. Results >> - Without this optimization, the guest pmi handling time is >> ~450 ns, and the max sampling rate is reduced to 250. >> - With this optimization, the guest pmi handling time is ~9000 ns >> (i.e. 1 / 500 of the non-

Re: [PATCH] KEYS: trusted: fix -Wvarags warning

2018-10-12 Thread Denis Kenzior
Hi Nick, So maybe I'm misunderstanding something, but the issue seems to be that unsigned char is promoted to 'unsigned char *' by Clang and probably unsigned int or int by gcc. No. This is extremely well defined behavior in C. In C, integral types are NEVER promoted to pointer to integer typ

Re: [PATCH RFC v1 7/8] drivers: qcom: cpu_pd: Handle cpu hotplug in the domain

2018-10-12 Thread Sudeep Holla
On Fri, Oct 12, 2018 at 11:19:10AM -0600, Lina Iyer wrote: > On Fri, Oct 12 2018 at 11:01 -0600, Sudeep Holla wrote: > > On Fri, Oct 12, 2018 at 10:04:27AM -0600, Lina Iyer wrote: > > > On Fri, Oct 12 2018 at 09:04 -0600, Sudeep Holla wrote: > > > > [...] > > > > Yes all these are fine but with mul

Re: [PATCH] mm/thp: fix call to mmu_notifier in set_pmd_migration_entry()

2018-10-12 Thread Andrea Arcangeli
Hello, On Fri, Oct 12, 2018 at 12:20:54PM -0400, Zi Yan wrote: > On 12 Oct 2018, at 12:09, jgli...@redhat.com wrote: > > > From: Jérôme Glisse > > > > Inside set_pmd_migration_entry() we are holding page table locks and > > thus we can not sleep so we can not call invalidate_range_start/end() >

Re: [PATCH v2 2/2] LICENSES: Add ISC license text

2018-10-12 Thread Jonathan Corbet
On Wed, 10 Oct 2018 22:15:09 +0200 Hans de Goede wrote: > Add the full text of the ISC license to the kernel tree. It was copied > directly from: > >https://spdx.org/licenses/ISC.html > > With the mention of "ISC" in the warranty disclaimer replaced with > "THE AUTHOR" as done in the ISC li

Re: [PATCH v2 1/2] LICENSES: Add note to CDDL-1.0 license that it should not be used

2018-10-12 Thread Jonathan Corbet
On Wed, 10 Oct 2018 22:15:08 +0200 Hans de Goede wrote: > The only reason we have the CDDL-1.0 license text around is for some > dual-licensed files from virtualbox. New code should not use this license. > > Add a note about this and change the example tag to be dual-licensed. > > Signed-off-by

Re: [PATCH v2 1/7] modules: Create rlimit for module space

2018-10-12 Thread Jann Horn
On Fri, Oct 12, 2018 at 7:04 PM Edgecombe, Rick P wrote: > On Fri, 2018-10-12 at 02:35 +0200, Jann Horn wrote: > > On Fri, Oct 12, 2018 at 1:40 AM Rick Edgecombe > > wrote: > > > This introduces a new rlimit, RLIMIT_MODSPACE, which limits the amount of > > > module space a user can use. The inten

Re: [PATCH RFC v1 7/8] drivers: qcom: cpu_pd: Handle cpu hotplug in the domain

2018-10-12 Thread Lina Iyer
On Fri, Oct 12 2018 at 11:01 -0600, Sudeep Holla wrote: On Fri, Oct 12, 2018 at 10:04:27AM -0600, Lina Iyer wrote: On Fri, Oct 12 2018 at 09:04 -0600, Sudeep Holla wrote: [...] Yes all these are fine but with multiple power-domains/cluster, it's hard to determine the first CPU. You may be abl

Re: [PATCH] KEYS: trusted: fix -Wvarags warning

2018-10-12 Thread Nick Desaulniers
On Fri, Oct 12, 2018 at 10:05 AM Nick Desaulniers wrote: > > On Fri, Oct 12, 2018 at 8:14 AM Denis Kenzior wrote: > > > > Hi James, > > > > >> So can't we simply use 'bool' or uint32 as the type for h3 instead > > >> of re-ordering everything > > > > > > The problem is the standard is ambiguious.

Re: [PATCH v1] phy: qcom-qusb2: Fix HSTX_TRIM tuning with fused value for SDM845

2018-10-12 Thread Doug Anderson
Hi, On Thu, Oct 11, 2018 at 10:57 PM wrote: > Fused value is supposed to always override. If value is not fused for > some > parts (which I believe is case with some early samples), then driver > will > read it is '0' from nvmem and should use hstx-trim value passed from DT. OK cool. Just wante

Re: [PATCH] KEYS: trusted: fix -Wvarags warning

2018-10-12 Thread Denis Kenzior
Hi Nick, Refer to https://trustedcomputinggroup.org/wp-content/uploads/TPM-Main-Part-3-Commands_v1.2_rev116_01032011.pdf for details. Can you cite the relevant section? Just pick any section that describes a TPM command. I randomly used Section 10.3 for TPM Unbind. See the 'Incoming op

Re: [PATCH v5 1/2] dt-bindings: iio: vadc: Update example to include unit address for node 'usb-id-nopull'

2018-10-12 Thread Matthias Kaehlcke
On Fri, Oct 05, 2018 at 03:47:43PM -0500, Rob Herring wrote: > On Wed, Oct 03, 2018 at 05:14:31PM -0700, Matthias Kaehlcke wrote: > > The node has a reg property, therefore its name should include a unit > > address. > > > > Also change the name from 'usb_id_nopull' to 'usb-id-nopull' to follow >

Re: [PATCH] KEYS: trusted: fix -Wvarags warning

2018-10-12 Thread Nick Desaulniers
On Fri, Oct 12, 2018 at 9:01 AM James Bottomley wrote: > > On Fri, 2018-10-12 at 10:53 -0500, Denis Kenzior wrote: > > Hi James, > > > > > > From the links provided in the patch it seems that one cannot > > > > pass char/float/short to va_start(). Fair enough. So if we make > > > > h3 an unsig

Re: [PATCH v2] regulator/gpio: Allow nonexclusive GPIO access

2018-10-12 Thread jacopo mondi
Hi Mark, On Fri, Oct 12, 2018 at 06:44:24PM +0200, Mark Brown wrote: > On Fri, Oct 12, 2018 at 04:26:12PM +0200, jacopo mondi wrote: > > > Sorry, I'm going slightly OT with this, but please read below. > > > On Fri, Oct 12, 2018 at 02:54:12PM +0200, Linus Walleij wrote: > > > This allows nonexclus

Re: [PATCH v3 1/3] x86: baytrail/cherrytrail: Rework and move P-Unit PMIC bus semaphore code

2018-10-12 Thread Alan Cox
> > It should be. > > You mean that the problem should be purely academic, IOW that registers > touched > by the P-Unit are never touched through ACPI Opregions / power-resources? As far as I am aware. Holding the lock over both is definitely better regardless > >> 2) To safely access the sha

Re: [PATCH 4.9 00/35] 4.9.133-stable review

2018-10-12 Thread Nathan Chancellor
On Thu, Oct 11, 2018 at 05:35:02PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.133 release. > There are 35 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

Re: [PATCH 4.4 00/27] 4.4.161-stable review

2018-10-12 Thread Nathan Chancellor
On Thu, Oct 11, 2018 at 05:34:47PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.161 release. > There are 27 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

Re: [PATCH 3.18 000/120] 3.18.124-stable review

2018-10-12 Thread Nathan Chancellor
On Thu, Oct 11, 2018 at 05:33:01PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.124 release. > There are 120 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 kn

Re: [PATCH] KEYS: trusted: fix -Wvarags warning

2018-10-12 Thread Nick Desaulniers
On Fri, Oct 12, 2018 at 8:14 AM Denis Kenzior wrote: > > Hi James, > > >> So can't we simply use 'bool' or uint32 as the type for h3 instead > >> of re-ordering everything > > > > The problem is the standard is ambiguious. The only thing that's > > guaranteed to work for all time is a char *. If

Re: [PATCH] mm/thp: fix call to mmu_notifier in set_pmd_migration_entry()

2018-10-12 Thread Jerome Glisse
On Fri, Oct 12, 2018 at 06:55:48PM +0200, Michal Hocko wrote: > On Fri 12-10-18 12:09:53, jgli...@redhat.com wrote: > > From: Jérôme Glisse > > > > Inside set_pmd_migration_entry() we are holding page table locks and > > thus we can not sleep so we can not call invalidate_range_start/end() > > >

Re: [PATCH 10/10] arm64: use the generic swiotlb_dma_ops

2018-10-12 Thread Catalin Marinas
On Fri, Oct 12, 2018 at 04:40:49PM +0200, Christoph Hellwig wrote: > On Fri, Oct 12, 2018 at 02:01:00PM +0100, Robin Murphy wrote: > > On 08/10/18 09:02, Christoph Hellwig wrote: > >> Now that the generic swiotlb code supports non-coherent DMA we can switch > >> to it for arm64. For that we need t

Re: [PATCH v2 1/7] modules: Create rlimit for module space

2018-10-12 Thread Edgecombe, Rick P
On Fri, 2018-10-12 at 02:35 +0200, Jann Horn wrote: > On Fri, Oct 12, 2018 at 1:40 AM Rick Edgecombe > wrote: > > This introduces a new rlimit, RLIMIT_MODSPACE, which limits the amount of > > module space a user can use. The intention is to be able to limit module > > space > > allocations that ma

Re: [PATCH] KEYS: trusted: fix -Wvarags warning

2018-10-12 Thread Nathan Chancellor
On Fri, Oct 12, 2018 at 09:55:55AM -0700, Nick Desaulniers wrote: > On Thu, Oct 11, 2018 at 6:50 PM Nathan Chancellor > wrote: > > > > On Thu, Oct 11, 2018 at 01:31:26PM -0700, ndesaulni...@google.com wrote: > > > by swapping h2 and h3. > > > > > > security/keys/trusted.c:146:17: warning: passing

Applied "spi: Make GPIO CSs honour the SPI_NO_CS flag" to the spi tree

2018-10-12 Thread Mark Brown
The patch spi: Make GPIO CSs honour the SPI_NO_CS flag has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Lin

Re: [PATCH] KEYS: trusted: fix -Wvarags warning

2018-10-12 Thread Nick Desaulniers
On Fri, Oct 12, 2018 at 5:29 AM Denis Kenzior wrote: > > Hi Nick, > > > @@ -123,7 +123,7 @@ static int TSS_rawhmac(unsigned char *digest, const > > unsigned char *key, > >*/ > > static int TSS_authhmac(unsigned char *digest, const unsigned char *key, > > unsigned int k

Applied "spi: imx: use PIO mode if size is small" to the spi tree

2018-10-12 Thread Mark Brown
The patch spi: imx: use PIO mode if size is small has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus du

Applied "spi: imx: move wml setting to later than setup_transfer" to the spi tree

2018-10-12 Thread Mark Brown
The patch spi: imx: move wml setting to later than setup_transfer has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Re: [PATCH RFC v1 7/8] drivers: qcom: cpu_pd: Handle cpu hotplug in the domain

2018-10-12 Thread Sudeep Holla
On Fri, Oct 12, 2018 at 10:04:27AM -0600, Lina Iyer wrote: > On Fri, Oct 12 2018 at 09:04 -0600, Sudeep Holla wrote: [...] > > Why does CPU going down says that another (screen - supposedly shared) > > resource needs to be relinquished ? Shouldn't display decide that on it's > > own ? I have no i

Re: [PATCHv2] mm/gup: Cache dev_pagemap while pinning pages

2018-10-12 Thread Keith Busch
On Fri, Oct 12, 2018 at 09:58:18AM -0700, Dan Williams wrote: > On Fri, Oct 12, 2018 at 4:00 AM Kirill A. Shutemov > wrote: > [..] > > > Does this have defined behavior? I would feel better with " = { 0 }" > > > to be explicit. > > > > Well, it's not allowed by the standart, but GCC allows this.

Applied "regulator: lochnagar: Add support for the Cirrus Logic Lochnagar" to the regulator tree

2018-10-12 Thread Mark Brown
The patch regulator: lochnagar: Add support for the Cirrus Logic Lochnagar has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in th

Applied "regulator/gpio: Allow nonexclusive GPIO access" to the regulator tree

2018-10-12 Thread Mark Brown
The patch regulator/gpio: Allow nonexclusive GPIO access has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) a

Re: [PATCH v2 01/11] dt-bindings: spi/spi-pxa2xx: add PXA2xx SSP SPI Controller

2018-10-12 Thread Mark Brown
On Thu, Oct 11, 2018 at 07:59:15PM +0200, Lubomir Rintel wrote: > On Thu, 2018-10-11 at 15:27 +0100, Mark Brown wrote: > > Please use subject lines matching the style for the subsystem. This > > makes it easier for people to identify relevant patches. > Thanks for the response. > I'm a little c

Re: [PATCHv2] mm/gup: Cache dev_pagemap while pinning pages

2018-10-12 Thread Dan Williams
On Fri, Oct 12, 2018 at 4:00 AM Kirill A. Shutemov wrote: [..] > > Does this have defined behavior? I would feel better with " = { 0 }" > > to be explicit. > > Well, it's not allowed by the standart, but GCC allows this. > You can see a warning with -pedantic. > > We use empty-list initializers a

Re: [PATCH v7] regulator: fixed: Convert to use GPIO descriptor only

2018-10-12 Thread Mark Brown
On Fri, Oct 12, 2018 at 11:43:13AM +, Marcel Ziswiler wrote: > On Fri, 2018-10-12 at 11:43 +0100, Russell King - ARM Linux wrote: > > The existing DT description is reasonable, and introducing ficticious > > regulators in DT to work around the implementation is not reasonable. > I don't think

Re: [PATCH] MAINTAINERS: Replace Vince Bridgers as Altera TSE maintainer

2018-10-12 Thread Greg KH
On Fri, Oct 12, 2018 at 11:50:52AM -0500, thor.tha...@linux.intel.com wrote: > From: Thor Thayer > > Vince has moved to a different role. Replace him as Altera > TSE maintainer. > > Signed-off-by: Thor Thayer Would be nice if Vince can ack this...

Re: [PATCH] KEYS: trusted: fix -Wvarags warning

2018-10-12 Thread Nick Desaulniers
On Thu, Oct 11, 2018 at 6:50 PM Nathan Chancellor wrote: > > On Thu, Oct 11, 2018 at 01:31:26PM -0700, ndesaulni...@google.com wrote: > > by swapping h2 and h3. > > > > security/keys/trusted.c:146:17: warning: passing an object that > > undergoes default > > argument promotion to 'va_start'

Re: [PATCH] mm/thp: fix call to mmu_notifier in set_pmd_migration_entry()

2018-10-12 Thread Michal Hocko
On Fri 12-10-18 12:09:53, jgli...@redhat.com wrote: > From: Jérôme Glisse > > Inside set_pmd_migration_entry() we are holding page table locks and > thus we can not sleep so we can not call invalidate_range_start/end() > > So remove call to mmu_notifier_invalidate_range_start/end() and add > cal

Re: [PATCH v3 1/1] scsi: ufs: make UFS Tx lane1 clock optional for QCOM platforms

2018-10-12 Thread Doug Anderson
Hi, On Thu, Oct 11, 2018 at 6:12 PM Can Guo wrote: > + if (err != -EPROBE_DEFER) > + dev_err(dev, "failed to get %s err %d", > + name, err); I wouldn't spin just for this, but if you spin for some other reason you could move the above "dev_err" o

Re: [PATCH v2 3/5] clk: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-10-12 Thread Mark Brown
On Thu, Oct 11, 2018 at 12:36:22PM -0700, Stephen Boyd wrote: > Quoting Mark Brown (2018-10-11 07:54:22) > > On Thu, Oct 11, 2018 at 12:00:46AM -0700, Stephen Boyd wrote: > > > Is this used for anything besides getting the regmap? Can you get the > > > pointer to the parent in probe and use that t

[PATCH] MAINTAINERS: Replace Vince Bridgers as Altera TSE maintainer

2018-10-12 Thread thor . thayer
From: Thor Thayer Vince has moved to a different role. Replace him as Altera TSE maintainer. Signed-off-by: Thor Thayer --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 72429b928626..f02cf78f5394 100644 --- a/MAINTAINERS +++ b/

Re: [PATCH V3] MAINTAINERS: intel_telemetry: Update maintainers info

2018-10-12 Thread Joe Perches
On Fri, 2018-10-12 at 09:28 -0700, David E. Box wrote: > Remove Souvik who has left this role. Add Rajneesh and David who work > jointly on telemetry updates for new platforms. > > Signed-off-by: David E. Box > Signed-off-by: Rajneesh Bhardwaj [] > diff --git a/MAINTAINERS b/MAINTAINERS [] > @@

Re: [PATCH v2] regulator/gpio: Allow nonexclusive GPIO access

2018-10-12 Thread Mark Brown
On Fri, Oct 12, 2018 at 04:26:12PM +0200, jacopo mondi wrote: > Sorry, I'm going slightly OT with this, but please read below. > On Fri, Oct 12, 2018 at 02:54:12PM +0200, Linus Walleij wrote: > > This allows nonexclusive (simultaneous) access to a single > > GPIO line for the fixed regulator enab

[PATCH v3 0/3] cpufreq: intel_pstate: Base frequency attribute

2018-10-12 Thread Srinivas Pandruvada
This series presents base frequency to cpufreq sysfs when intel_pstate is in use in HWP mode. Changes: v3: - Update documentation v2 - Removed guaranteed attribute addition to acpi_cppc sysfs - Using the cppc_acpi interface to get base frequency and present Srinivas Pandruvada (3): ACPI / CPPC:

[PATCH v3 2/3] cpufreq: intel_pstate: Add base_frequency attribute

2018-10-12 Thread Srinivas Pandruvada
Present base_frequency to user space via cpufreq sysfs when HWP is in use. This HWP base frequency is read from HWP Capabilities MSR, if platform doesn't have ACPI _CPC object. On most of the HWP platforms the _CPC object will point to the HWP Capabilities MSR using address space id as "Functional

<    1   2   3   4   5   6   >