[PATCH v5 6/6] ARM: configs: at91: unselect PIT

2018-06-19 Thread Alexandre Belloni
The PIT is not required anymore to successfully boot and may actually harm in case preempt-rt is used because the PIT interrupt is shared. Disable it so the TCB clocksource is used. Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91_dt_defconfig | 1 + arch/arm/configs/sama5_defconfig

[PATCH v5 0/6] clocksource: rework Atmel TCB timer driver

2018-06-19 Thread Alexandre Belloni
Hi, This series reworks the Atmel TCB drivers. It introduces a new driver to handle the clocksource and clockevent devices. As a reminder, this is necessary because: - the current tcb_clksrc driver is probed too late to be able to be used at boot and we now have SoCs that don't have a PIT. Th

[PATCH v5 4/6] ARM: at91: Implement clocksource selection

2018-06-19 Thread Alexandre Belloni
Allow selecting and unselecting the PIT clocksource driver so it doesn't have to be compile when unused. Tested-by: Alexander Dahl Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/Kconfig | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/mach-at91/Kc

[PATCH v5 1/6] ARM: at91: add TCB registers definitions

2018-06-19 Thread Alexandre Belloni
Add registers and bits definitions for the timer counter blocks found on Atmel ARM SoCs. Tested-by: Alexander Dahl Tested-by: Andras Szemzo Signed-off-by: Alexandre Belloni --- include/soc/at91/atmel_tcb.h | 216 +++ 1 file changed, 216 insertions(+) create mod

[PATCH v5 2/6] clocksource/drivers: Add a new driver for the Atmel ARM TC blocks

2018-06-19 Thread Alexandre Belloni
Add a driver for the Atmel Timer Counter Blocks. This driver provides a clocksource and two clockevent devices. One of the clockevent device is linked to the clocksource counter and so it will run at the same frequency. This will be used when there is only on TCB channel available for timers. The

Re: [RFC PATCH v2 5/6] mtd: rawnand: micron: add ONFI_FEATURE_ON_DIE_ECC to supported features

2018-06-19 Thread Chris Packham
On 19/06/18 18:53, Miquel Raynal wrote: > Hi Boris, Chris, > > On Tue, 19 Jun 2018 07:40:56 +0200, Boris Brezillon > wrote: > >> On Tue, 19 Jun 2018 17:31:24 +1200 >> Chris Packham wrote: >> >>> Add ONFI_FEATURE_ON_DIE_ECC to the set/get features list for Micron >>> NAND flash. >>> >> >> Fix

Re: [PATCH 18/20] dts: sama5d2: Update coresight bindings for hardware ports

2018-06-19 Thread Alexandre Belloni
On 05/06/2018 22:43:29+0100, Suzuki K Poulose wrote: > Switch to the new coresight bindings for hardware ports > > Cc: Nicolas Ferre > Cc: Alexandre Belloni > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > arch/arm/boot/dts/sama5d2.dtsi | 5 - > 1 file changed, 4 insertions

[PATCH 0/5] Enable Linux guests on Hyper-V on ARM64

2018-06-19 Thread Michael Kelley
This patch series enables Linux guests running on Hyper-V on ARM64 hardware. New ARM64-specific code in arch/arm64/hyperv initializes Hyper-V, including its synthetic clocks and hypercall mechanism. Existing architecture independent drivers for Hyper-V's VMbus and synthetic devices just work when b

[PATCH 1/5] arm64: mm: Add slow_virt_to_phys()

2018-06-19 Thread Michael Kelley
Add slow_virt_to_phys() function for ARM64 that parallels the same function on x86/x64. This is needed by the architecture independent Hyper-V VMbus driver at drivers/hv/channel.c. The implementation directly translates the virtual address using the ARM64 'at' instruction. Signed-off-by: Michael

[PATCH 2/5] arm64: hyperv: Add core Hyper-V include files

2018-06-19 Thread Michael Kelley
hyperv-tlfs.h defines Hyper-V interfaces from the Hyper-V Top Level Functional Spec (TLFS). The TLFS is distinctly oriented to x86/x64, and Hyper-V has not separated out the architecture-dependent parts into x86/x64 vs. ARM64. So hyperv-tlfs.h includes information for ARM64 that is not yet formally

[PATCH 5/5] Drivers: hv: Enable CONFIG_HYPERV on ARM64

2018-06-19 Thread Michael Kelley
Update drivers/hv/Kconfig so CONFIG_HYPERV can be selected on ARM64, causing the Hyper-V specific code to be built. Signed-off-by: Michael Kelley Reviewed-by: James Morris --- drivers/hv/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hv/Kconfig b/drivers/h

[PATCH 3/5] arm64: hyperv: Add support for Hyper-V as a hypervisor

2018-06-19 Thread Michael Kelley
Add ARM64-specific code to enable Hyper-V. This code includes: * Detecting Hyper-V and initializing the guest/Hyper-V interface * Setting up Hyper-V's synthetic clocks * Making hypercalls using the HVC instruction * Setting up VMbus and stimer0 interrupts * Setting up kexec and crash handlers This

[PATCH 4/5] Drivers: hv: vmbus: Add hooks for per-CPU IRQ

2018-06-19 Thread Michael Kelley
Add hooks to enable/disable a per-CPU IRQ for VMbus. These hooks are in the architecture independent setup and shutdown paths for Hyper-V, and are needed by Linux guests on Hyper-V on ARM64. The x86/x64 implementation is null because VMbus interrupts on x86/x64 don't use an IRQ. Signed-off-by: Mi

Re: [PATCH v10 2/7] time: sync read_boot_clock64() with persistent clock

2018-06-19 Thread Pavel Tatashin
On Tue, Jun 19, 2018 at 5:17 PM Thomas Gleixner wrote: > > On Fri, 15 Jun 2018, Pavel Tatashin wrote: > > > read_boot_clock64() returns a boot start timestamp from epoch. Some arches > > may need to access the persistent clock interface in order to calculate the > > epoch offset. The resolution of

[PATCH RFC 3/4] w1: core: provide helper to look up w1 slaves through devicetree nodes

2018-06-19 Thread Daniel Mack
This patch adds a helper called w1_of_get_slave() that allows users to refer to w1 slave devices through phandles in devicetree nodes. The implementation walks all master devices and all their slaves in order to find the right slave device. The API is stubbed out for !CONFIG_OF. Signed-off-by: D

[PATCH RFC 1/4] dt-bindings: w1: document sub-node bindings for DS2760

2018-06-19 Thread Daniel Mack
This patch add a generic w1 bindings document that merely describes how slave deviceses are grouped under master nodes. It also adds a specific binding for the ds2760 battery monitor. Signed-off-by: Daniel Mack --- .../devicetree/bindings/w1/w1-ds2760.txt| 9 + .../devicetree/bi

[PATCH RFC 4/4] w1: ds2760: add devicetree matching glue

2018-06-19 Thread Daniel Mack
Add an id table for ds2760 so it can be matched by the core. Also, refrain from allocating the platform device for the supply driver at runtime when the device was matched via DT, because in this case, supply devices are also probed with device tree nodes, so they will always be present. Signed-o

[PATCH RFC 0/4] Adding DT functionality to w1 busses

2018-06-19 Thread Daniel Mack
In order to fully move battery-supplied devices over to devicetree, the onewire subsystem must get some updates. Currently, the w1 bus system works like this. Device families, such as battery controllers etc, are registered to the w1 core. Once a master device is probed, it starts scanning the bus

[PATCH RFC 2/4] w1: core: match sub-nodes of bus masters in devicetree

2018-06-19 Thread Daniel Mack
Once a new slave device is detected, match it against all sub-nodes of the master bus controller. If a match is found, set the slave device's of_node pointer. This alone can already be used by slave device implementations to obtain more properties from devicetree. Another use-case is introduced i

Re: [PATCH] Use 'imply' with SEV Kconfig CRYPTO dependencies

2018-06-19 Thread Borislav Petkov
On Tue, Jun 19, 2018 at 03:46:40PM -0500, Brijesh Singh wrote: > In case if it was not clear, we don't have a standalone PSP driver. > The PSP support is provided by the CCP driver. If you look at config > changes I proposed then it says if PSP is available then we can support > SEV. But since PSP

[PATCH] slub: fix __kmem_cache_empty for !CONFIG_SLUB_DEBUG

2018-06-19 Thread Shakeel Butt
For !CONFIG_SLUB_DEBUG, SLUB does not maintain the number of slabs allocated per node for a kmem_cache. Thus, slabs_node() in __kmem_cache_empty() will always return 0. So, in such situation, it is required to check per-cpu slabs to make sure if a kmem_cache is empty or not. Please note that __kme

[PATCH 2/2] microblaze: consolidate GPIO reset handling

2018-06-19 Thread Rob Herring
Now that platform.c only has the GPIO reset handling left, move the initcall to reset.c and remove platform.c. Cc: Michal Simek Signed-off-by: Rob Herring --- arch/microblaze/include/asm/setup.h | 2 -- arch/microblaze/kernel/Makefile | 2 +- arch/microblaze/kernel/platform.c | 22 -

[PATCH 1/2] microblaze: remove unecessary of_platform_bus_probe call

2018-06-19 Thread Rob Herring
The call to of_platform_bus_probe has no effect because the DT core already probes default buses like "simple-bus" before this call. Michal Simek said 'xlnx,compound' hasn't been used in a long time, so that match entry isn't needed. Cc: Michal Simek Signed-off-by: Rob Herring --- arch/microbla

Re: [RFC PATCH 1/8] x86/cpufeatures: Enumerate MOVDIRI instruction

2018-06-19 Thread Fenghua Yu
On Tue, Jun 19, 2018 at 10:57:44AM +0200, Thomas Gleixner wrote: > On Fri, 15 Jun 2018, Fenghua Yu wrote: > > > MOVDIRI moves doubleword or quadword from register to memory through > > direct store which is implemented by using write combining (WC) for > > writing data directly into memory without

Re: [PATCH] slub: fix __kmem_cache_empty for !CONFIG_SLUB_DEBUG

2018-06-19 Thread Shakeel Butt
On Tue, Jun 19, 2018 at 2:33 PM Shakeel Butt wrote: > > For !CONFIG_SLUB_DEBUG, SLUB does not maintain the number of slabs > allocated per node for a kmem_cache. Thus, slabs_node() in > __kmem_cache_empty() will always return 0. So, in such situation, it is > required to check per-cpu slabs to mak

Re: [PATCH 2/3] pinctrl: msm: Mux out gpio function with gpio_request()

2018-06-19 Thread Doug Anderson
Hi, On Tue, Jun 19, 2018 at 2:18 PM, Stephen Boyd wrote: > Quoting Doug Anderson (2018-06-18 16:54:49) >> Hi, >> >> On Mon, Jun 18, 2018 at 1:52 PM, Stephen Boyd wrote: >> > We rely on devices to use pinmuxing configurations in DT to select the >> > GPIO function (function 0) if they're going to

[PATCH] ARM: at91: remove unnecessary of_platform_default_populate calls

2018-06-19 Thread Rob Herring
The DT core will call of_platform_default_populate, so it is not necessary for machine specific code to call it unless there are custom match entries, auxdata or parent device. Neither of those apply here, so remove the call. Cc: Nicolas Ferre Cc: Alexandre Belloni Cc: linux-arm-ker...@lists.inf

[PATCH] h8300: remove unnecessary of_platform_populate call

2018-06-19 Thread Rob Herring
The DT core will call of_platform_populate, so it is not necessary for arch specific code to call it unless there are custom match entries, auxdata or parent device. Neither of those apply here, so remove the call. Cc: Yoshinori Sato Cc: uclinux-h8-de...@lists.sourceforge.jp Signed-off-by: Rob He

[PATCH] riscv: remove unnecessary of_platform_populate call

2018-06-19 Thread Rob Herring
The DT core will call of_platform_default_populate, so it is not necessary for arch specific code to call it unless there are custom match entries, auxdata or parent device. Neither of those apply here, so remove the call. Cc: Palmer Dabbelt Cc: Albert Ou Cc: linux-ri...@lists.infradead.org Sign

Re: [PATCH 1/2] IB/hfi1: Try slot reset before secondary bus reset

2018-06-19 Thread Bjorn Helgaas
On Thu, Apr 19, 2018 at 03:56:23PM -0400, Sinan Kaya wrote: > The infiniband adapter might be connected to a PCI hotplug slot. Performing > secondary bus reset on a hotplug slot causes PCI link up/down interrupts. > > Hotplug driver removes the device from system when a link down interrupt > is ob

Re: [PATCH] Use 'imply' with SEV Kconfig CRYPTO dependencies

2018-06-19 Thread Borislav Petkov
On Tue, Jun 19, 2018 at 11:32:56PM +0200, Borislav Petkov wrote: > config CRYPTO_DEV_SP_PSP > bool "Platform Security Processor (PSP) device" > default y > depends on CRYPTO_DEV_CCP_DD && X86_64 > > so CRYPTO_DEV_SP_PSP already depends on CRYPTO_DEV_CCP_DD! > > So why shou

[PATCH 2/5] MIPS: netlogic: remove unnecessary of_platform_bus_probe call

2018-06-19 Thread Rob Herring
The DT core code will probe "simple-bus" by default, so remove the Netlogic specific call. The probing of simple-bus happens at arch_initcall_sync, so the call being removed here is already a nop. Cc: Ralf Baechle Cc: Paul Burton Cc: James Hogan Cc: linux-m...@linux-mips.org Signed-off-by: Rob

[PATCH 0/5] MIPS: Clean-up DT bus probing

2018-06-19 Thread Rob Herring
This is a series of clean-ups of DT bus probing calls. Generally, the DT core code takes care of the default case and arches/platforms only need to do their own call if they have non-default matching requirements. Rob Rob Herring (5): MIPS: octeon: use of_platform_populate to probe devices

[PATCH 4/5] MIPS: generic: remove unnecessary of_platform_populate call

2018-06-19 Thread Rob Herring
The DT core will call of_platform_populate, so it is not necessary for arch specific code to call it unless there are custom match entries, auxdata or parent device. Neither of those apply here, so remove the call. Cc: Paul Burton Cc: Ralf Baechle Cc: James Hogan Cc: linux-m...@linux-mips.org S

[PATCH 3/5] MIPS: bmips: remove unnecessary call to register "simple-bus"

2018-06-19 Thread Rob Herring
The DT core will register "simple-bus" by default, so it is not necessary for arch specific code to do so unless there are custom match entries, auxdata or parent device. Neither of those apply here, so remove the call. Cc: Kevin Cernekee Cc: Florian Fainelli Cc: Ralf Baechle Cc: Paul Burton C

[PATCH 5/5] MIPS: lantiq: remove unnecessary of_platform_default_populate call

2018-06-19 Thread Rob Herring
The DT core will call of_platform_default_populate, so it is not necessary for arch specific code to call it unless there are custom match entries, auxdata or parent device. Neither of those apply here, so remove the call. Cc: John Crispin Cc: Ralf Baechle Cc: Paul Burton Cc: James Hogan Cc: l

[PATCH 1/5] MIPS: octeon: use of_platform_populate to probe devices

2018-06-19 Thread Rob Herring
of_platform_bus_probe is deprecated in favor of of_platform_populate. of_platform_populate is stricter requiring compatible properties for matching rather than name or type. Octeon uses compatible strings for matching, so convert it to of_platform_populate. Cc: Ralf Baechle Cc: Paul Burton Cc: J

Re: [PATCH] slub: fix __kmem_cache_empty for !CONFIG_SLUB_DEBUG

2018-06-19 Thread Jason A. Donenfeld
On Tue, Jun 19, 2018 at 11:34 PM Shakeel Butt wrote: > > For !CONFIG_SLUB_DEBUG, SLUB does not maintain the number of slabs > allocated per node for a kmem_cache. Thus, slabs_node() in > __kmem_cache_empty() will always return 0. So, in such situation, it is > required to check per-cpu slabs to ma

Re: [PATCH] kvm: x86: mmu: Add cast to negated bitmasks in update_permission_bitmask()

2018-06-19 Thread Joe Perches
On Tue, 2018-06-19 at 14:10 -0700, Matthias Kaehlcke wrote: > On Tue, Jun 19, 2018 at 12:11:27PM -0700, Joe Perches wrote: > > -Wconstant-conversion is only issued when a *constant value* is assigned to > an incompatible type. > > > Trying to allow a "make W=3" to be compiler warning message free

Re: [PATCH] proc: add missing '\0' back to /proc/$pid/cmdline

2018-06-19 Thread Linus Torvalds
On Wed, Jun 20, 2018 at 1:24 AM Michal Kubecek wrote: > > Recent rewrite introduced a regression, /proc/$pid/cmdline is missing the > trailing null character: > > mike@lion:/tmp> cat /proc/self/cmdline | od -t c > 000 c a t \0 / p r o c / s e l f / c > 020

Re: [PATCH] PCI: DPC: Clear AER status bits before disabling port containment

2018-06-19 Thread Bjorn Helgaas
On Wed, May 16, 2018 at 05:12:21PM -0600, Keith Busch wrote: > On Wed, May 16, 2018 at 06:44:22PM -0400, Sinan Kaya wrote: > > On 5/16/2018 5:33 PM, Alexandru Gagniuc wrote: > > > AER status bits are sticky, and they survive system resets. Downstream > > > devices are usually taken care of after re

Re: [PATCH] proc: Make inline name size calculation automatic

2018-06-19 Thread Andrew Morton
On Tue, 19 Jun 2018 09:01:01 +0100 David Howells wrote: > Andrew Morton wrote: > > > Please cc Alexey on /proc patches. > > If Alexey is responsible for procfs he should declare this in MAINTAINERS. oop. I thought we did that but it isn't there. > > What are the user-visible runtime effects

Re: [RFC 00/11] select_idle_sibling rework

2018-06-19 Thread Matt Fleming
On Wed, 30 May, at 04:22:36PM, Peter Zijlstra wrote: > Hi all, > > This is all still very preliminary and could all still go up in flames (it has > only seen hackbench so far). This is mostly the same code I posted yesterday, > but hopefully in a more readable form. > > This fixes the SIS_PROP as

Re: [PATCH] PCI: Do not enable PASID when End-to-End TLP is not supported

2018-06-19 Thread Bjorn Helgaas
On Sat, May 19, 2018 at 12:52:49PM -0400, Sinan Kaya wrote: > A PCIe endpoint carries the process address space identifier (PASID) in > the TLP prefix as part of the memory read/write transaction. The address > information in the TLP is relevant only for a given PASID context. > > A translation ag

[PATCH v2 1/3] rcu: Assign higher prio to RCU threads if rcutorture is built-in

2018-06-19 Thread Joel Fernandes
From: "Joel Fernandes (Google)" rcutorture boost tests fail even with CONFIG_RCU_BOOST set because rcutorture's threads are equal priority to the default RCU kthreads (RT class with priority of 1). This patch checks if RCU torture is built into the kernel and if so, assigns a higher priority to

[PATCH v2 2/3] rcutorture: Add support to detect if boost kthread prio is too low

2018-06-19 Thread Joel Fernandes
From: "Joel Fernandes (Google)" When rcutorture is built as a built-in, we can detect that and raise the priority of RCU's kthreads enough that rcutorture's boost threads will not be able to starve them. We do so in earlier patches. However, if rcutorture is built as a module, we wouldn't have r

[PATCH v1] ARM: dts: imx51-zii-rdu1: fix touchscreen pinctrl

2018-06-19 Thread Nick Dyer
The pinctrl settings were incorrect for the touchscreen interrupt line, causing an interrupt storm. This change has been tested with both the atmel_mxt_ts and RMI4 drivers on the RDU1 units. Signed-off-by: Nick Dyer --- arch/arm/boot/dts/imx51-zii-rdu1.dts | 4 ++-- 1 file changed, 2 insertions(

[PATCH v2 3/3] rcutorture: Fix rcu_barrier successes counter

2018-06-19 Thread Joel Fernandes
From: "Joel Fernandes (Google)" rcutorture currently increments both successes and error for barrier test incase of errors. It should only increment the error counter incase of errors so make it do so. Test: Introduced rcu_barrier errors by returning from the barrier callback without incrementin

Re: [RFC v2 PATCH 2/2] mm: mmap: zap pages with read mmap_sem for large mapping

2018-06-19 Thread Nadav Amit
at 4:34 PM, Yang Shi wrote: > When running some mmap/munmap scalability tests with large memory (i.e. >> 300GB), the below hung task issue may happen occasionally. > > INFO: task ps:14018 blocked for more than 120 seconds. > Tainted: GE 4.9.79-009.ali3000.alios7.x86_64 #1 > "ec

Re: [PATCH 2/2] rcutorture: Fix rcu_barrier successes counter

2018-06-19 Thread Joel Fernandes
On Tue, Jun 19, 2018 at 08:41:39AM -0700, Paul E. McKenney wrote: > On Tue, Jun 19, 2018 at 09:12:23AM -0400, Steven Rostedt wrote: > > On Tue, 19 Jun 2018 00:31:15 -0700 > > Joel Fernandes wrote: > > > > > Hi Paul, > > > Think some more about this counter, I think you mean 'successes' as in > >

Re: [PATCH 1/2] rcu: Assign higher priority to RCU threads if its rcutorture

2018-06-19 Thread Joel Fernandes
On Tue, Jun 19, 2018 at 09:00:24AM -0700, Paul E. McKenney wrote: > On Mon, Jun 18, 2018 at 11:34:21PM -0700, Joel Fernandes wrote: > > On Mon, Jun 18, 2018 at 11:22:14PM -0700, Joel Fernandes wrote: > > > From: "Joel Fernandes (Google)" > > > > > > rcutorture boost tests fail even with CONFIG_RC

Re: [PATCH] slub: fix __kmem_cache_empty for !CONFIG_SLUB_DEBUG

2018-06-19 Thread Andrew Morton
On Tue, 19 Jun 2018 14:33:52 -0700 Shakeel Butt wrote: > For !CONFIG_SLUB_DEBUG, SLUB does not maintain the number of slabs > allocated per node for a kmem_cache. Thus, slabs_node() in > __kmem_cache_empty() will always return 0. So, in such situation, it is > required to check per-cpu slabs to m

Re: [PATCH 1/2] IB/hfi1: Try slot reset before secondary bus reset

2018-06-19 Thread Sinan Kaya
On 6/19/2018 5:43 PM, Bjorn Helgaas wrote: >> Hotplug driver removes the device from system when a link down interrupt >> is observed and performs re-enumeration when link up interrupt is observed. >> >> This conflicts with what this code is trying to do. Try secondary bus reset >> only if pci_rese

Re: [PATCH 0/2] Make badr macro compatible with newer GAS versions

2018-06-19 Thread Ard Biesheuvel
On 19 June 2018 at 22:45, Guenter Roeck wrote: > On Tue, Jun 19, 2018 at 10:34:38PM +0200, Ard Biesheuvel wrote: >> On 19 June 2018 at 22:32, Guenter Roeck wrote: >> > On Tue, Jun 19, 2018 at 09:26:31PM +0200, Ard Biesheuvel wrote: >> >> Work around the mindless and backward incompatible change i

[PATCH] staging: android: ashmem: Fix mmap size validation

2018-06-19 Thread Alistair Strachan
The ashmem driver did not check that the size/offset of the vma passed to its .mmap() function was not larger than the ashmem object being mapped. This could cause mmap() to succeed, even though accessing parts of the mapping would later fail with a segmentation fault. Ensure an error is returned

[PATCH v2 treewide] headers: separate mod_devicetable.h and platform_device.h

2018-06-19 Thread Randy Dunlap
From: Randy Dunlap At over 4000 #includes, is the 9th most #included header file in the Linux kernel. It does not need , so drop that header and explicitly add to source files that need it. 4146 #include After this patch, there are 225 files that use , for a reduction of around 3900 time

Re: [PATCH] tools: modifying page-types to include shared map counts

2018-06-19 Thread Andrew Morton
On Tue, 12 Jun 2018 11:32:05 -0400 Christian Hansen wrote: > Adding a new flag that will read kpagecount for each PFN > and print out the number of time the page is mapped along > with the flags in the listing view. tools/vm/page-types.c isn't particularly documented, although it might be apprpr

Re: [RFC PATCH 7/8] x86/lib_user_wait.h: Add APIs for user wait instructions

2018-06-19 Thread Fenghua Yu
On Tue, Jun 19, 2018 at 11:12:05AM +0200, Thomas Gleixner wrote: > On Fri, 15 Jun 2018, Fenghua Yu wrote: > > > A few new user wait instructions UMONITOR, UMWAIT, and TPAUSE are > > published in the latest Intel Instruction Set Extensions document. > > > > Define the APIs for user or kernel to us

Re: [PATCH] tools: modifying page-types to include shared map counts

2018-06-19 Thread Andrew Morton
On Tue, 12 Jun 2018 11:32:05 -0400 Christian Hansen wrote: > Adding a new flag that will read kpagecount for each PFN > and print out the number of time the page is mapped along > with the flags in the listing view. Also... the above describes what the patch does, but not why it does it. Why d

Re: [RFC PATCH 1/8] x86/cpufeatures: Enumerate MOVDIRI instruction

2018-06-19 Thread Thomas Gleixner
On Tue, 19 Jun 2018, Fenghua Yu wrote: > On Tue, Jun 19, 2018 at 10:57:44AM +0200, Thomas Gleixner wrote: > > On Fri, 15 Jun 2018, Fenghua Yu wrote: > > > > > MOVDIRI moves doubleword or quadword from register to memory through > > > direct store which is implemented by using write combining (WC)

drivers/staging/typec/tcpci_rt1711h.c:218: undefined reference to `i2c_smbus_read_word_data'

2018-06-19 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ba4dbdedd3edc2798659bcd8b1a184ea8bdd04dc commit: ce08eaeb6388e78daf35a5ce2e72a19026def8a7 staging: typec: rt1711h typec chip driver date: 8 weeks ago config: x86_64-randconfig-s4-06200335 (attached as .con

Re: [RFC PATCH 7/8] x86/lib_user_wait.h: Add APIs for user wait instructions

2018-06-19 Thread Thomas Gleixner
On Tue, 19 Jun 2018, Fenghua Yu wrote: > On Tue, Jun 19, 2018 at 11:12:05AM +0200, Thomas Gleixner wrote: > > On Fri, 15 Jun 2018, Fenghua Yu wrote: > > > > > A few new user wait instructions UMONITOR, UMWAIT, and TPAUSE are > > > published in the latest Intel Instruction Set Extensions document.

Re: [RFC PATCH 1/8] x86/cpufeatures: Enumerate MOVDIRI instruction

2018-06-19 Thread Fenghua Yu
On Wed, Jun 20, 2018 at 12:32:14AM +0200, Thomas Gleixner wrote: > On Tue, 19 Jun 2018, Fenghua Yu wrote: > > > On Tue, Jun 19, 2018 at 10:57:44AM +0200, Thomas Gleixner wrote: > > > On Fri, 15 Jun 2018, Fenghua Yu wrote: > > > > > > > MOVDIRI moves doubleword or quadword from register to memory

Re: [RFC PATCH 7/8] x86/lib_user_wait.h: Add APIs for user wait instructions

2018-06-19 Thread Fenghua Yu
On Wed, Jun 20, 2018 at 12:34:32AM +0200, Thomas Gleixner wrote: > On Tue, 19 Jun 2018, Fenghua Yu wrote: > > On Tue, Jun 19, 2018 at 11:12:05AM +0200, Thomas Gleixner wrote: > > > On Fri, 15 Jun 2018, Fenghua Yu wrote: > > > > > > > A few new user wait instructions UMONITOR, UMWAIT, and TPAUSE ar

Re: [PATCH] tools: adding support for idle page tracking to tool

2018-06-19 Thread Andrew Morton
On Tue, 12 Jun 2018 11:32:23 -0400 Christian Hansen wrote: > Adding a flag which will use the kernels's idle > page tracking to mark pages idle. As the tool already > prints the idle flag if set, subsequent runs will show > which pages have been accessed since last run. That sounds useful. Thi

Re: [PATCH] tools: adding support for idle page tracking to tool

2018-06-19 Thread Andrew Morton
On Tue, 12 Jun 2018 11:32:23 -0400 Christian Hansen wrote: > Adding a flag which will use the kernels's idle > page tracking to mark pages idle. As the tool already > prints the idle flag if set, subsequent runs will show > which pages have been accessed since last run. Also, it would be approp

Re: [PATCH v12 02/10] dt-bindings: introduce RPMH RSC bindings for Qualcomm SoCs

2018-06-19 Thread Bjorn Andersson
On Tue 19 Jun 06:11 PDT 2018, Raju P L S S S N wrote: > From: Lina Iyer > > Add device binding documentation for Qualcomm Technology Inc's RPMH RSC > driver. The driver is used for communicating resource state requests for > shared resources. > > Cc: devicet...@vger.kernel.org > Signed-off-by:

Re: [PATCH 0/2] Make badr macro compatible with newer GAS versions

2018-06-19 Thread Guenter Roeck
On Wed, Jun 20, 2018 at 12:23:56AM +0200, Ard Biesheuvel wrote: > > OK, so even the linker handling is inconsistent. > > Working (binutils 2.30) > > c0301164 : > c0301164: f8d9 a000 ldr.w sl, [r9] > c0301168: e92d 0030 stmdb sp!, {r4, r5} > c030116c: f01a 0ff0

Re: [PATCH] driver core: add a debugfs entry to show deferred devices

2018-06-19 Thread Greg Kroah-Hartman
On Tue, Jun 19, 2018 at 10:59:14PM +0200, Javier Martinez Canillas wrote: > For debugging purposes it may be useful to know what are the devices whose > probe function was deferred. Add a debugfs entry showing that information. > > $ cat /sys/kernel/debug/deferred_devices > 4807.i2c:twl@48

Re: [PATCH v10 7/7] x86/tsc: use tsc early

2018-06-19 Thread Thomas Gleixner
On Fri, 15 Jun 2018, Pavel Tatashin wrote: > This patch adds early clock feature to x86 platforms. See Documentation about 'This patch' We already know that this is a patch otherwise it would not be marked as such ... > +/* > + * Finish clock for early time stamps, and hand over to permanent

Re: [git pull] Please pull powerpc.git next branch

2018-06-19 Thread Linus Torvalds
On Wed, Jun 20, 2018 at 5:23 AM Benjamin Herrenschmidt wrote: > > git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git merge I love the alleged line removal, but there's nothing in that 'merge' branch. It points to an ancient powerpc commit from 2016. And please, signed tags. I know

Re: [PATCH v6 0/3] Directed kmem charging

2018-06-19 Thread Shakeel Butt
On Tue, Jun 19, 2018 at 9:09 AM Johannes Weiner wrote: > > Hi Shakeel, > > this looks generally reasonable to me. > > However, patch 1 introduces API that isn't used until patch 2 and 3, > which makes reviewing harder since you have to jump back and forth > between emails. Please fold patch 1 and

Re: [PATCH] x86: remove __phys_reloc_hide

2018-06-19 Thread Thomas Gleixner
On Mon, 9 Aug 2010, Andi Kleen wrote: ^^^ Care to fix your system clock?

Re: [PATCH] staging: android: ashmem: Fix mmap size validation

2018-06-19 Thread Greg Kroah-Hartman
On Tue, Jun 19, 2018 at 03:24:44PM -0700, Alistair Strachan wrote: > The ashmem driver did not check that the size/offset of the vma passed > to its .mmap() function was not larger than the ashmem object being > mapped. This could cause mmap() to succeed, even though accessing parts > of the mappin

Re: [PATCH v2] kernel/hung_task.c: allow to set checking interval separately from timeout

2018-06-19 Thread Andrew Morton
On Mon, 11 Jun 2018 13:10:04 +0200 Dmitry Vyukov wrote: > Currently task hung checking interval is equal to timeout, > as the result hung is detected anywhere between timeout and 2*timeout. > This is fine for most interactive environments, but this hurts automated > testing setups (syzbot). In an

Re: [PATCH treewide] headers: separate mod_devicetable.h from platform_device.h

2018-06-19 Thread kbuild test robot
Hi Randy, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.18-rc1 next-20180619] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH] locking/rwsem: Fix up_read_non_owner() warning with DEBUG_RWSEMS

2018-06-19 Thread Waiman Long
On 05/24/2018 09:26 PM, Waiman Long wrote: > It was found that the use of up_read_non_owner() in NFS was causing > the following warning when DEBUG_RWSEMS was configured. > > DEBUG_LOCKS_WARN_ON(sem->owner != ((struct task_struct *)(1UL << 0))) > > Looking into the rwsem.c file, it was discovered

Re: [PATCH v10 6/7] x86/paravirt: add active_sched_clock to pv_time_ops

2018-06-19 Thread Thomas Gleixner
On Fri, 15 Jun 2018, Pavel Tatashin wrote: > Early boot clock might differ from the clock that is used later on, > therefore add a new field to pv_time_ops, that shows currently active > clock. If platform supports early boot clock, this field will be changed > to use that clock early in boot, and

Re: [PATCH v10 7/7] x86/tsc: use tsc early

2018-06-19 Thread Thomas Gleixner
On Fri, 15 Jun 2018, Pavel Tatashin wrote: > cpu_khz = x86_platform.calibrate_cpu(); > @@ -1380,7 +1466,7 @@ void __init tsc_init(void) > if (!tsc_khz) { > mark_tsc_unstable("could not calculate TSC khz"); > setup_clear_cpu_cap(X86_FEATURE_TSC_DEADLINE_TIMER)

Re: [PATCH 1/1] arm64: dts: rockchip: correct voltage selector Firefly-RK3399

2018-06-19 Thread Heiko Stuebner
Hi Heinrich, Am Donnerstag, 14. Juni 2018, 14:55:27 CEST schrieb Heiko Stuebner: > Am Montag, 4. Juni 2018, 19:15:23 CEST schrieb Heinrich Schuchardt: > > Without this patch the Firefly-RK3399 board boot process hangs after these > > lines: > > > >fan53555-regulator 0-0040: FAN53555 Option[8]

Re: [PATCH v3] Make elf2ecoff work on 64bit host machines

2018-06-19 Thread Paul Burton
Hi Thomas, On Tue, Jun 05, 2018 at 12:00:20PM +0200, Thomas Bogendoerfer wrote: > Use fixed width integer types for ecoff structs to make elf2ecoff work > on 64bit host machines > > Signed-off-by: Thomas Bogendoerfer > Reviewed-by: Paul Burton > --- > > v3: include stdint.h in ecoff.h > mi

Re: [PATCH] MIPS: Octeon: assign bool true/false not 1/0

2018-06-19 Thread Paul Burton
Hi Nicholas, On Sat, Jun 16, 2018 at 09:26:32AM +0200, Nicholas Mc Guire wrote: > Booleans should be assigned true/false not 1/0 as comparison is not needed > > Signed-off-by: Nicholas Mc Guire > --- > > Problem located by scripts/coccinelle/misc/boolinit.cocci > ./arch/mips/cavium-octeon/oct

Re: [PATCH 1/3] mm: memcg: remote memcg charging for kmem allocations

2018-06-19 Thread Shakeel Butt
On Tue, Jun 19, 2018 at 9:22 AM Johannes Weiner wrote: > > On Mon, Jun 18, 2018 at 10:13:25PM -0700, Shakeel Butt wrote: > > @@ -248,6 +248,30 @@ static inline void memalloc_noreclaim_restore(unsigned > > int flags) > > current->flags = (current->flags & ~PF_MEMALLOC) | flags; > > } > > >

Re: [PATCH] driver core: add a debugfs entry to show deferred devices

2018-06-19 Thread Andy Shevchenko
On Wed, Jun 20, 2018 at 1:51 AM, Greg Kroah-Hartman wrote: > On Tue, Jun 19, 2018 at 10:59:14PM +0200, Javier Martinez Canillas wrote: >> For debugging purposes it may be useful to know what are the devices whose >> probe function was deferred. Add a debugfs entry showing that information. >> >>

Re: [PATCH] kvm: x86: mmu: Add cast to negated bitmasks in update_permission_bitmask()

2018-06-19 Thread Matthias Kaehlcke
On Tue, Jun 19, 2018 at 02:55:05PM -0700, Joe Perches wrote: > On Tue, 2018-06-19 at 14:10 -0700, Matthias Kaehlcke wrote: > > On Tue, Jun 19, 2018 at 12:11:27PM -0700, Joe Perches wrote: > > > -Wconstant-conversion is only issued when a *constant value* is assigned > > > to > > an incompatible ty

[PATCH] 6lowpan: iphc: reset mac_header after decompress to fix panic

2018-06-19 Thread Michael Scott
After decompression of 6lowpan socket data, an IPv6 header is inserted before the existing socket payload. After this, we reset the network_header value of the skb to account for the difference in payload size from prior to decompression + the addition of the IPv6 header. However, we fail to rese

[PATCH] pinctrl: msm: Pass along set_wake failures

2018-06-19 Thread Evan Green
The MSM pinctrl driver quietly swallows errors that occur when trying to call .irq_set_wake. It should instead pass those failures up the chain so the caller can react to them. Swallowing the error for instance causes gpio_keys to think that it was able to successfully set a wake IRQ, when in fact

Re: [PATCH v3] lib/bch: Remove VLA usage

2018-06-19 Thread Kees Cook
On Fri, Jun 1, 2018 at 4:09 AM, Ivan Djelic wrote: > On Thu, May 31, 2018 at 11:45:25AM -0700, Kees Cook wrote: >> In the quest to remove all stack VLA usage from the kernel[1], this >> allocates a fixed size stack array to cover the range needed for >> bch. This was done instead of a preallocatio

BUG: soft lockup in __process_echoes

2018-06-19 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ba4dbdedd3ed Merge tag 'jfs-4.18' of git://github.com/klei.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1583fc5f80 kernel config: https://syzkaller.appspot.com/x/.config?x=f390986c4f7cd566 da

[PATCH 1/2] perf test shell: Replace '|&' with '2>&1 |' to work with more shells

2018-06-19 Thread Kim Phillips
Since we do not specify bash (and/or zsh) as a requirement, use the standard error redirection that is more widely supported. BEFORE: $ sudo ./perf test -v 62 62: Check open filename arg using perf trace + vfs_getname: --- start --- test child forked, pid 27305 ./tests/shell/trace+probe_vfs_getna

[PATCH 2/2] perf test shell: make perf inet_pton test more portable

2018-06-19 Thread Kim Phillips
Debian based systems such as Ubuntu have dash as their default shell. Even if the normal or root user's shell is bash, certain scripts still call /bin/sh, which points to dash, so we fix this perf test by rewriting it in a more portable way. BEFORE: $ sudo ./perf test -v 64 64: probe libc's inet_

Re: [PATCH v10 7/7] x86/tsc: use tsc early

2018-06-19 Thread Thomas Gleixner
On Fri, 15 Jun 2018, Pavel Tatashin wrote: > tsc_early_init(): > Determines offset, shift and multiplier for the early clock based on the > TSC frequency. > > tsc_early_fini() > Implement the finish part of early tsc feature, prints message about the > offset, which can be useful to find out how

Re: [RFC PATCH 0/2] mtd: rawnand: support MT29F1G08ABAFAWP-ITE:F

2018-06-19 Thread Chris Packham
Adding participants from http://lists.infradead.org/pipermail/linux-mtd/2017-March/072974.html On 19/06/18 16:56, Boris Brezillon wrote: > Hi Chris, > > On Tue, 19 Jun 2018 01:44:24 + > Chris Packham wrote: > >> On 19/06/18 12:35, Chris Packham wrote: >>> On 19/06/18 01:15, Miquel Raynal w

Re: [PATCH v10 7/7] x86/tsc: use tsc early

2018-06-19 Thread Pavel Tatashin
On 06/19/2018 07:52 PM, Thomas Gleixner wrote: > On Fri, 15 Jun 2018, Pavel Tatashin wrote: > >> tsc_early_init(): >> Determines offset, shift and multiplier for the early clock based on the >> TSC frequency. >> >> tsc_early_fini() >> Implement the finish part of early tsc feature, prints messa

Re: [git pull] Please pull powerpc.git next branch

2018-06-19 Thread Benjamin Herrenschmidt
On Wed, 2018-06-20 at 07:58 +0900, Linus Torvalds wrote: > On Wed, Jun 20, 2018 at 5:23 AM Benjamin Herrenschmidt > wrote: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git merge > > I love the alleged line removal, but there's nothing in that 'merge' > branch. It points t

Re: [PATCH] staging: android: ashmem: Fix mmap size validation

2018-06-19 Thread Alistair Strachan
HI Greg, On Tue, Jun 19, 2018 at 4:01 PM Greg Kroah-Hartman wrote: > > On Tue, Jun 19, 2018 at 03:24:44PM -0700, Alistair Strachan wrote: > > The ashmem driver did not check that the size/offset of the vma passed > > to its .mmap() function was not larger than the ashmem object being > > mapped.

[tip:x86/cache] x86/intel_rdt: Document new mode, size, and bit_usage

2018-06-19 Thread tip-bot for Reinette Chatre
Commit-ID: 83c258a428647a19d5928b9db38b0f8eebdf5cf1 Gitweb: https://git.kernel.org/tip/83c258a428647a19d5928b9db38b0f8eebdf5cf1 Author: Reinette Chatre AuthorDate: Tue, 29 May 2018 05:57:26 -0700 Committer: Thomas Gleixner CommitDate: Wed, 20 Jun 2018 00:56:27 +0200 x86/intel_rdt: Docu

[tip:x86/cache] x86/intel_rdt: Introduce RDT resource group mode

2018-06-19 Thread tip-bot for Reinette Chatre
Commit-ID: c4ccc8b90dfe244361db195bcac376fe1ad5f31a Gitweb: https://git.kernel.org/tip/c4ccc8b90dfe244361db195bcac376fe1ad5f31a Author: Reinette Chatre AuthorDate: Tue, 29 May 2018 05:57:27 -0700 Committer: Thomas Gleixner CommitDate: Wed, 20 Jun 2018 00:56:27 +0200 x86/intel_rdt: Intr

[tip:x86/cache] x86/intel_rdt: Introduce resource group's mode resctrl file

2018-06-19 Thread tip-bot for Reinette Chatre
Commit-ID: 417d29b4daa1a7c9f5fc4f0e8205ea7dbc967054 Gitweb: https://git.kernel.org/tip/417d29b4daa1a7c9f5fc4f0e8205ea7dbc967054 Author: Reinette Chatre AuthorDate: Tue, 29 May 2018 05:57:29 -0700 Committer: Thomas Gleixner CommitDate: Wed, 20 Jun 2018 00:56:28 +0200 x86/intel_rdt: Intr

[tip:x86/cache] x86/intel_rdt: Associate mode with each RDT resource group

2018-06-19 Thread tip-bot for Reinette Chatre
Commit-ID: 5363fc10521acb00c4bdc19ab9e2482db12b5514 Gitweb: https://git.kernel.org/tip/5363fc10521acb00c4bdc19ab9e2482db12b5514 Author: Reinette Chatre AuthorDate: Tue, 29 May 2018 05:57:28 -0700 Committer: Thomas Gleixner CommitDate: Wed, 20 Jun 2018 00:56:27 +0200 x86/intel_rdt: Asso

<    2   3   4   5   6   7   8   9   >