Re: candidates for @devel-rt localversion-rt++

2018-07-28 Thread Mike Galbraith
On Sat, 2018-07-28 at 11:07 +0200, Mike Galbraith wrote: > 1. arm64/acpi/perf: move pmu allocation to an early CPU up hook Nope, it's an ex-candidate. Having found/run kvm unit tests, I discovered that while the above fixes boot time splat, it somehow manages to break kvm pmu tests, so needs star

Re: [PATCH] pwm: pwm-omap-dmtimer: fix probing problems by returning EPROBE_DEFER

2018-07-28 Thread H. Nikolaus Schaller
Hi, > Am 28.07.2018 um 22:35 schrieb Ladislav Michl : > > Hi Andreas, > > On Sat, Jul 28, 2018 at 06:59:14PM +0200, Andreas Kemnade wrote: >> I got this in the kernel log: >> [0.756042] omap-dmtimer-pwm dmtimer-pwm: dmtimer pdata structure NULL >> [0.756134] omap-dmtimer-pwm: probe of dm

Compliment of the day to you Dear Friend.

2018-07-28 Thread Mrs.Amina.Kadi
Compliment of the day to you Dear Friend. Dear Friend. I am Mrs. Amina Kadi. am sending this brief letter to solicit your partnership to transfer $5.5 million US Dollars. I shall send you more information and procedures when I receive positive response from you. Mrs. Amina Kadi

[PATCH 2/2] staging: erofs: fix conditional uninitialized `pcn' in z_erofs_map_blocks_iter

2018-07-28 Thread Gao Xiang
This patch adds error handling code for z_erofs_map_blocks_iter to fix the compiler blame. Signed-off-by: Gao Xiang --- let's solve the compiler warning first, more error handling code for other functions will be added in the future patch. drivers/staging/erofs/unzip_vle.c | 25 +++

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

2018-07-28 Thread oceanhe
From: Ocean He Refer to Intel HWPM Compliance Guide (Document Number: 566474): Bit[6] or bit[8] of MSR MISC_PWR_MGMT is set only when BIOS select either HWP Native mode or HWP OOB mode. Bit[6] and bit[8] cannot be set both at the same time. Add a warning message if intel_pstate detects both HWP

Re: [PATCH 06/10] mm,x86: skip cr4 and ldt reload when mm stays the same

2018-07-28 Thread Andy Lutomirski
On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel wrote: > When switching back from lazy TLB mode to a thread of the same process > that switched into lazy TLB mode, we still have the cr4 (and sometimes > LDT) of that process loaded, and there is no need to reload it. > > When there was no TLB flush w

Re: [PATCH 10/10] mm,sched: conditionally skip lazy TLB mm refcounting

2018-07-28 Thread Andy Lutomirski
On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel wrote: > Conditionally skip lazy TLB mm refcounting. When an architecture has > CONFIG_ARCH_NO_ACTIVE_MM_REFCOUNTING enabled, an mm that is used in > lazy TLB mode anywhere will get shot down from exit_mmap, and there > in no need to incur the cache li

Re: [PATCH v0 3/4] drivers: edac: Add cache erp driver for Last Level Cache Controller (LLCC)

2018-07-28 Thread Borislav Petkov
On Wed, Jul 25, 2018 at 10:44:56AM -0700, Venkata Narendra Kumar Gutta wrote: > Add cache error reporting driver for single and double bit errors on > Last Level Cache Controller (LLCC) cache. This driver takes care of > dumping registers and add config options to enable and disable panic > when th

Re: [PATCH 01/10] x86,tlb: clarify memory barrier in switch_mm_irqs_off

2018-07-28 Thread Andy Lutomirski
On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel wrote: > Clarify exactly what the memory barrier synchronizes with. Reviewed-by: Andy Lutomirski

Re: [PATCH 02/10] smp: use __cpumask_set_cpu in on_each_cpu_cond

2018-07-28 Thread Andy Lutomirski
On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel wrote: > The code in on_each_cpu_cond sets CPUs in a locally allocated bitmask, > which should never be used by other CPUs simultaneously. There is no > need to use locked memory accesses to set the bits in this bitmap. > > Switch to __cpumask_set_cpu.

Re: [PATCH 04/10] x86,mm: use on_each_cpu_cond for TLB flushes

2018-07-28 Thread Andy Lutomirski
On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel wrote: > Instead of open coding bitmap magic, use on_each_cpu_cond > to determine which CPUs to send TLB flush IPIs to. > > This might be a little bit slower than examining the bitmaps, > but it should be a lot easier to maintain in the long run. Look

Re: [PATCH 03/10] smp,cpumask: introduce on_each_cpu_cond_mask

2018-07-28 Thread Andy Lutomirski
On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel wrote: > Introduce a variant of on_each_cpu_cond that iterates only over the > CPUs in a cpumask, in order to avoid making callbacks for every single > CPU in the system when we only need to test a subset. Nice. Although, if you want to be really fan

linux-next: Signed-off-by missing for commit in the arc-current tree

2018-07-28 Thread Stephen Rothwell
Hi Vineet, Commit fa52704e2816 ("ARC: add SMP_CACHE_BYTES value validate") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpNj5UEArVOk.pgp Description: OpenPGP digital signature

Re: [PATCH v2] scripts: Add Python 3 support to tracing/draw_functrace.py

2018-07-28 Thread Masahiro Yamada
2018-07-28 23:48 GMT+09:00 Jeremy Cline : > Use the print function. This maintains Python 2 support and should have > no functional change. > > Signed-off-by: Jeremy Cline > --- Applied to linux-kbuild. Thanks! > Changes from v1: > - Drop "from __future__ import print_function" as Python 2 is

(no subject)

2018-07-28 Thread Yue Eddie
-- I have a business proposal contact ( yue.eddi...@live.com ) for more details

[PATCH] microblaze: delete wrong comment about machine_early_init

2018-07-28 Thread Masahiro Yamada
machine_early_init is defined in arch/microblaze/kernel/setup.c I do not see mach-* directory for MicroBlaze. Signed-off-by: Masahiro Yamada --- arch/microblaze/kernel/head.S | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/microblaze/kernel/head.S b/arch/microblaze/kernel/head.S in

[GIT PULL] random fixes for 4.18-rc7

2018-07-28 Thread Theodore Y. Ts'o
The following changes since commit 1e4b044d22517cae7047c99038abb23243ca: Linux 4.18-rc4 (2018-07-08 16:34:02 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random.git tags/random_for_linus_stable for you to fetch changes up to 81e69df

Re: [PATCH v2] pci/aspm: Remove CONFIG_PCIEASPM_DEBUG

2018-07-28 Thread Sinan Kaya
On 7/27/2018 1:26 PM, Bjorn Helgaas wrote: - A link can lead to a multi-function device, and the spec allows those functions to have different ASPM settings (see PCIe r4.0, sec 5.4.1). With the sysfs files at the upstream end of the link, we have no way to configure those function

Re: [PATCH v2 01/17] x86/cpu: create Dhyana init file and register new cpu_dev to system

2018-07-28 Thread Paolo Bonzini
On 28/07/2018 18:48, pu...@hygon.cn wrote: > Hi Paolo, > > Thanks for your feedback. > > As we described in the patch description, current Hygon Family 18h share > most architecture with AMD Family 17h. But Hygon Family 18h are not the > same with AMD family 17h, as it removed some features such

[PATCH v2 00/08] staging:rtl8192u: cleanup of rtl819x_Qos.h - Style

2018-07-28 Thread John Whitmore
These are a few coding style changes to the file drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h I had more patches in the list but had to dump some of the later patches as I made a mistake. Thought I'd send these 8. John Whitmore (8): staging:rtl8192u: Add spaces around operators - Style sta

[PATCH v2 06/08] staging:rtl8192u: Rename enum DIRECTION_VALUE - Style

2018-07-28 Thread John Whitmore
The enumerated type DIRECTION_VALUE should be named in lowercase to comply with coding standard so is renamed to direction_value. In addition the 'typedef' directive has been removed to clear the checkpatch issue with defining new types. These changes are coding style changes which should have no

[PATCH v2 04/08] staging:rtl8192u: Remove unused union AC_PARAM - Style

2018-07-28 Thread John Whitmore
The union ACM_PARAM is never actually used in code so removed. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 15 --- 1 file changed, 15 deletions(-) diff --git

[PATCH v2 08/08] staging:rtl8192u: Remove unused constants - Style

2018-07-28 Thread John Whitmore
Remove defined constants from code, since they are never actually used in code. This is a simple coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 7 --- 1 file changed, 7 deletions(-

[PATCH v2 07/08] staging:rtl8192u: Rename union QOS_TSINFO - Style

2018-07-28 Thread John Whitmore
The union QOS_TSINFO, as a type, should have a lowercase name. The union has therefore been renamed to qos_tsinfo. Additionally the 'typedef' directive has been removed to clear the checkpatch issue with defining new types. These are coding style changes which should have no impact on runtime code

[PATCH v2 02/08] staging:rtl8192u: Rename ACI_AIFSN - Style

2018-07-28 Thread John Whitmore
Rename the union ACI_AIFSN to aci_aifsn and remove the typedef directive. The removal of the typedef clears the checkpatch issue with defining new types. The renaming is to adhere to the coding style where types are name in lower case. These changes are coding style changes which should have no i

[PATCH v2 05/08] staging:rtl8192u: Remove unused union ECW -Style

2018-07-28 Thread John Whitmore
The union ECW is never used in code so has simply been removed. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 12 1 file changed, 12 deletions(-) diff --git a/

[PATCH v2 03/08] staging:rtl8192u: Rename member variables - Style

2018-07-28 Thread John Whitmore
Rename the member variables of union aci_aifsn, which should be named in lowercase. The only member variable, of this union, which is actually used is 'acm'. This are coding style changes which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl

[PATCH v2 01/08] staging:rtl8192u: Add spaces around operators - Style

2018-07-28 Thread John Whitmore
Add the required spaces around '+' and '*' operators. This is a coding style change to clear the checkpatch issue. There should be no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH 05/10] kvm: selftests: add basic test for state save and restore

2018-07-28 Thread Paolo Bonzini
The test calls KVM_RUN repeatedly, and creates an entirely new VM with the old memory and vCPU state on every exit to userspace. The kvm_util API is expanded with two functions that manage the lifetime of a kvm_vm struct: the first closes the file descriptors and leaves the memory allocated, and t

[PATCH 04/10] kvm: selftests: ensure vcpu file is released

2018-07-28 Thread Paolo Bonzini
The selftests were not munmap-ing the kvm_run area from the vcpu file descriptor. The result was that kvm_vcpu_release was not called and a reference was left in the parent "struct kvm". Ultimately this was visible in the upcoming state save/restore test as an error when KVM attempted to create

[PATCH 03/10] kvm: selftests: actually use all of lib/vmx.c

2018-07-28 Thread Paolo Bonzini
The allocation of the VMXON and VMCS is currently done twice, in lib/vmx.c and in vmx_tsc_adjust_test.c. Reorganize the code to provide a cleaner and easier to use API to the tests. lib/vmx.c now does the complete setup of the VMX data structures, but does not create the VM or set CPUID. This ha

[PATCH 06/10] KVM: x86: do not load vmcs12 pages while still in SMM

2018-07-28 Thread Paolo Bonzini
If the vCPU enters system management mode while running a nested guest, RSM starts processing the vmentry while still in SMM. In that case, however, the pages pointed to by the vmcs12 might be incorrectly loaded from SMRAM. To avoid this, delay the handling of the pages until just before the next

[PATCH 02/10] kvm: selftests: create a GDT and TSS

2018-07-28 Thread Paolo Bonzini
The GDT and the TSS base were left to zero, and this has interesting effects when the TSS descriptor is later read to set up a VMCS's TR_BASE. Basically it worked by chance, and this patch fixes it by setting up all the protected mode data structures properly. Because the GDT and TSS addresses ar

[PATCH 09/10] KVM: nVMX: include shadow vmcs12 in nested state

2018-07-28 Thread Paolo Bonzini
The shadow vmcs12 cannot be flushed on KVM_GET_NESTED_STATE, because at that point guest memory is assumed by userspace to be immutable. Capture the cache in vmx_get_nested_state, adding another page at the end if there is an active shadow vmcs12. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/v

[PATCH 07/10] kvm: nVMX: Introduce KVM_CAP_NESTED_STATE

2018-07-28 Thread Paolo Bonzini
From: Jim Mattson For nested virtualization L0 KVM is managing a bit of state for L2 guests, this state can not be captured through the currently available IOCTLs. In fact the state captured through all of these IOCTLs is usually a mix of L1 and L2 state. It is also dependent on whether the L2 gu

[PATCH 10/10] KVM: selftests: add tests for shadow VMCS save/restore

2018-07-28 Thread Paolo Bonzini
This includes setting up the shadow VMCS and the secondary execution controls in lib/vmx.c. Signed-off-by: Paolo Bonzini --- tools/testing/selftests/kvm/include/vmx.h | 12 +++ tools/testing/selftests/kvm/lib/vmx.c | 33 +++--- tools/testing/selftests/kvm/stat

[PATCH 08/10] kvm: selftests: add test for nested state save/restore

2018-07-28 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- tools/testing/selftests/kvm/include/vmx.h | 32 + tools/testing/selftests/kvm/lib/x86.c | 27 ++- tools/testing/selftests/kvm/state_test.c | 75 ++- 3 files changed, 131 insertions(+), 3 deletions(-) diff --git

[PATCH v6 00/10] kvm: x86: migration of nested virtualization state

2018-07-28 Thread Paolo Bonzini
This is the next version of the nested virtualization migration series, now with unit tests too. Patches 6, 7, and 9 replace the (broken) WIP patches in the kvm/queue branch, while the other seven are new and related to the tests. In particular, patch 1 is an independent bugfix, which makes it mu

[PATCH 01/10] KVM: x86: ensure all MSRs can always be KVM_GET/SET_MSR'd

2018-07-28 Thread Paolo Bonzini
Some of the MSRs returned by GET_MSR_INDEX_LIST currently cannot be sent back to KVM_GET_MSR and/or KVM_SET_MSR; either they can never be sent back, or you they are only accepted under special conditions. This makes the API a pain to use. To avoid this pain, this patch makes it so that the result

Re: [PATCH 00/08] staging:rtl8192u: cleanup of rtl819x_Qos.h - Style

2018-07-28 Thread John Whitmore
On Sun, Jul 29, 2018 at 12:02:52AM +0100, John Whitmore wrote: > These are a few coding style changes to the file > drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h > I had more patches in the list but had to dump some of the later > patches as I made a mistake. Thought I'd send these 8. > > John

[PATCH 08/12] staging:rtl8192u: Remove unused constants - Style

2018-07-28 Thread John Whitmore
Remove defined constants from code, since they are never actually used in code. This is a simple coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 7 --- 1 file changed, 7 deletions(-

[PATCH 06/12] staging:rtl8192u: Rename enum DIRECTION_VALUE - Style

2018-07-28 Thread John Whitmore
The enumerated type DIRECTION_VALUE should be named in lowercase to comply with coding standard so is renamed to direction_value. In addition the 'typedef' directive has been removed to clear the checkpatch issue with defining new types. These changes are coding style changes which should have no

[PATCH 07/12] staging:rtl8192u: Rename union QOS_TSINFO - Style

2018-07-28 Thread John Whitmore
The union QOS_TSINFO, as a type, should have a lowercase name. The union has therefore been renamed to qos_tsinfo. Additionally the 'typedef' directive has been removed to clear the checkpatch issue with defining new types. These are coding style changes which should have no impact on runtime code

[PATCH 05/12] staging:rtl8192u: Remove unused union ECW -Style

2018-07-28 Thread John Whitmore
The union ECW is never used in code so has simply been removed. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 12 1 file changed, 12 deletions(-) diff --git a/

[PATCH 02/12] staging:rtl8192u: Rename ACI_AIFSN - Style

2018-07-28 Thread John Whitmore
Rename the union ACI_AIFSN to aci_aifsn and remove the typedef directive. The removal of the typedef clears the checkpatch issue with defining new types. The renaming is to adhere to the coding style where types are name in lower case. These changes are coding style changes which should have no i

[PATCH 03/12] staging:rtl8192u: Rename member variables - Style

2018-07-28 Thread John Whitmore
Rename the member variables of union aci_aifsn, which should be named in lowercase. The only member variable, of this union, which is actually used is 'acm'. This are coding style changes which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl

[PATCH 04/12] staging:rtl8192u: Remove unused union AC_PARAM - Style

2018-07-28 Thread John Whitmore
The union ACM_PARAM is never actually used in code so removed. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 15 --- 1 file changed, 15 deletions(-) diff --git

[PATCH 00/08] staging:rtl8192u: cleanup of rtl819x_Qos.h - Style

2018-07-28 Thread John Whitmore
These are a few coding style changes to the file drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h I had more patches in the list but had to dump some of the later patches as I made a mistake. Thought I'd send these 8. John Whitmore (8): staging:rtl8192u: Add spaces around operators - Style sta

[PATCH 01/12] staging:rtl8192u: Add spaces around operators - Style

2018-07-28 Thread John Whitmore
Add the required spaces around '+' and '*' operators. This is a coding style change to clear the checkpatch issue. There should be no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH] staging: gasket: use NULL instead of 0 for null pointer

2018-07-28 Thread Dmitriy Cherkasov
Fixes sparse warning: Using plain integer as NULL pointer Signed-off-by: Dmitriy Cherkasov --- drivers/staging/gasket/gasket_page_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging/gasket/gasket_page_table.c i

Re: [PATCH 3/4] ASoC: tegra: Allow 32-bit and 24-bit samples

2018-07-28 Thread kbuild test robot
/linux/commits/Jorge-Sanjuan/ASoC-Tegra30-TDM-support/20180728-163720 base: https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-next config: arm-multi_v7_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https

[TRIVIAL RFC PATCH] Kconfigs - reduce use of "depends on EXPERT"

2018-07-28 Thread Joe Perches
Most uses of EXPERT are in the form bool "something" if EXPERT but some are depends on EXPERT The difference is the the 'depends on' use makes it easier to select the CONFIG_EXPERT option. $ git grep "if EXPERT" -- "*/Kconfig*" | wc -l 155 $ git grep "depends on.*EXPERT" -- "*/

Re: [PATCH 4/4] cpufreq: intel_pstate: enable boost for Skylake Xeon

2018-07-28 Thread Pandruvada, Srinivas
On Sat, 2018-07-28 at 13:23 -0700, Francisco Jerez wrote: > "Pandruvada, Srinivas" writes: > > > On Sat, 2018-07-28 at 07:14 -0700, Srinivas Pandruvada wrote: > > > On Fri, 2018-07-27 at 22:34 -0700, Francisco Jerez wrote: > > > > Srinivas Pandruvada > > > > writes: > > > > > > > > > Enable HWP

[PATCH 2/4] Drivers: hv: vmbus: Fix the issue with freeing up hv_ctl_table_hdr

2018-07-28 Thread kys
From: Sunil Muthuswamy The check to free the Hyper-V control table header was reversed. This fixes it. Fixes: 81b18bce48af ("Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic") Signed-off-by: Sunil Muthuswamy Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c |

[PATCH 4/4] Drivers: hv: vmbus: add numa_node to sysfs

2018-07-28 Thread kys
From: Stephen Hemminger Being able to find the numa_node for a device is useful for userspace drivers (DPDK) and also for diagnosing performance issues. This makes vmbus similar to pci. Signed-off-by: Stephen Hemminger Signed-off-by: K. Y. Srinivasan --- Documentation/ABI/stable/sysfs-bus-vm

[PATCH 1/4] Drivers: hv: vmus: Fix the check for return value from kmsg get dump buffer

2018-07-28 Thread kys
From: Sunil Muthuswamy The code to support panic control message was checking the return was checking the return value from kmsg_dump_get_buffer as error value, which is not what the routine returns. This fixes it. Fixes: 81b18bce48af ("Drivers: HV: Send one page worth of kmsg dump over Hyper-V

[PATCH 3/4] Drivers: hv: vmbus: Get rid of MSR access from vmbus_drv.c

2018-07-28 Thread kys
From: Sunil Muthuswamy Get rid of ISA specific code from vmus_drv.c which is common code. Fixes: 81b18bce48af ("Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic") Signed-off-by: Sunil Muthuswamy Signed-off-by: K. Y. Srinivasan --- arch/x86/include/asm/mshyperv.h | 3 +

[PATCH 0/4] Drivers: hv: vmbus: Miscellaneous fixes/enhancements

2018-07-28 Thread kys
From: "K. Y. Srinivasan" Miscellaneous fixes/enhancements Stephen Hemminger (1): Drivers: hv: vmbus: add numa_node to sysfs Sunil Muthuswamy (3): Drivers: hv: vmus: Fix the check for return value from kmsg get dump buffer Drivers: hv: vmbus: Fix the issue with freeing up hv_ctl_table_

[PATCH 06/10] mm,x86: skip cr4 and ldt reload when mm stays the same

2018-07-28 Thread Rik van Riel
When switching back from lazy TLB mode to a thread of the same process that switched into lazy TLB mode, we still have the cr4 (and sometimes LDT) of that process loaded, and there is no need to reload it. When there was no TLB flush while the CPU was in lazy TLB mode, the current code in switch_m

[PATCH 03/10] smp,cpumask: introduce on_each_cpu_cond_mask

2018-07-28 Thread Rik van Riel
Introduce a variant of on_each_cpu_cond that iterates only over the CPUs in a cpumask, in order to avoid making callbacks for every single CPU in the system when we only need to test a subset. Signed-off-by: Rik van Riel --- include/linux/smp.h | 4 kernel/smp.c| 17 +--

[PATCH 08/10] arch,mm: add config variable to skip lazy TLB mm refcounting

2018-07-28 Thread Rik van Riel
Add a config variable indicating that this architecture does not require lazy TLB mm refcounting, because lazy TLB mms get shot down instantly at exit_mmap time. Signed-off-by: Rik van Riel --- arch/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index

[PATCH 07/10] x86,mm: remove leave_mm cpu argument

2018-07-28 Thread Rik van Riel
The function leave_mm does not use its cpu argument, but always works on the CPU where it is called. Change the argument to a void *, so leave_mm can be called directly from smp_call_function_mask, and stop looking up the CPU number in current leave_mm callers. Signed-off-by: Rik van Riel --- a

[PATCH 05/10] mm,tlb: turn dummy defines into inline functions

2018-07-28 Thread Rik van Riel
Turn the dummy tlb_flush_remove_tables* defines into inline functions, in order to get compiler type checking, etc. Suggested-by: Peter Zijlstra Signed-off-by: Rik van Riel --- include/asm-generic/tlb.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/asm-gen

[PATCH 09/10] mm,x86: shoot down lazy TLB references at exit_mmap time

2018-07-28 Thread Rik van Riel
Shooting down lazy TLB references to an mm at exit_mmap time ensures that no users of the mm_struct will be left anywhere in the system, allowing it to be torn down and freed immediately. Signed-off-by: Rik van Riel Suggested-by: Andy Lutomirski Suggested-by: Peter Zijlstra --- arch/x86/Kconfi

[PATCH 02/10] smp: use __cpumask_set_cpu in on_each_cpu_cond

2018-07-28 Thread Rik van Riel
The code in on_each_cpu_cond sets CPUs in a locally allocated bitmask, which should never be used by other CPUs simultaneously. There is no need to use locked memory accesses to set the bits in this bitmap. Switch to __cpumask_set_cpu. Suggested-by: Peter Zijlstra Signed-off-by: Rik van Riel --

[PATCH 04/10] x86,mm: use on_each_cpu_cond for TLB flushes

2018-07-28 Thread Rik van Riel
Instead of open coding bitmap magic, use on_each_cpu_cond to determine which CPUs to send TLB flush IPIs to. This might be a little bit slower than examining the bitmaps, but it should be a lot easier to maintain in the long run. Suggested-by: Peter Zijlstra Signed-off-by: Rik van Riel --- arc

[PATCH 01/10] x86,tlb: clarify memory barrier in switch_mm_irqs_off

2018-07-28 Thread Rik van Riel
Clarify exactly what the memory barrier synchronizes with. Suggested-by: Peter Zijlstra Signed-off-by: Rik van Riel --- arch/x86/mm/tlb.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index 752dbf4e0e50..5321e02c4e09 100644 ---

[PATCH 0/10] x86,tlb,mm: more lazy TLB cleanups & optimizations

2018-07-28 Thread Rik van Riel
This patch series implements the cleanups suggested by Peter and Andy, removes lazy TLB mm refcounting on x86, and shows how other architectures could implement that same optimization. The previous patch series already seems to have removed most of the cache line contention I was seeing at context

[PATCH 10/10] mm,sched: conditionally skip lazy TLB mm refcounting

2018-07-28 Thread Rik van Riel
Conditionally skip lazy TLB mm refcounting. When an architecture has CONFIG_ARCH_NO_ACTIVE_MM_REFCOUNTING enabled, an mm that is used in lazy TLB mode anywhere will get shot down from exit_mmap, and there in no need to incur the cache line bouncing overhead of refcounting a lazy TLB mm. Implement

Re: [PATCH 9/9] clocksource: new RISC-V SBI timer driver

2018-07-28 Thread kbuild test robot
Hi Palmer, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.18-rc6 next-20180727] [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/commits

Re: [PATCH 9/9] clocksource: new RISC-V SBI timer driver

2018-07-28 Thread kbuild test robot
Hi Palmer, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.18-rc6 next-20180727] [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/commits

[PATCH] ACPICA: AML Parser: ignore control method status in module-level code

2018-07-28 Thread Erik Schmauss
Previous change in the AML parser code blindly set all non-successful dispatcher statuses to AE_OK. This approach is incorrect because successful control method invocations from module-level return AE_CTRL_TRANSFER. Overwriting AE_OK to this status causes the AML parser to think that there was no r

Re: [PATCH 4/4] cpufreq: intel_pstate: enable boost for Skylake Xeon

2018-07-28 Thread Francisco Jerez
"Pandruvada, Srinivas" writes: > On Sat, 2018-07-28 at 07:14 -0700, Srinivas Pandruvada wrote: >> On Fri, 2018-07-27 at 22:34 -0700, Francisco Jerez wrote: >> > Srinivas Pandruvada writes: >> > >> > > Enable HWP boost on Skylake server and workstations. >> > > >> > >> > Please revert this ser

Re: [PATCH 4/4] cpufreq: intel_pstate: enable boost for Skylake Xeon

2018-07-28 Thread Francisco Jerez
Srinivas Pandruvada writes: > On Fri, 2018-07-27 at 22:34 -0700, Francisco Jerez wrote: >> Srinivas Pandruvada writes: >> >> > Enable HWP boost on Skylake server and workstations. >> > >> >> Please revert this series, it led to significant energy usage and >> graphics performance regressions

Re: [PATCH 4/4] cpufreq: intel_pstate: enable boost for Skylake Xeon

2018-07-28 Thread Francisco Jerez
Mel Gorman writes: > On Fri, Jul 27, 2018 at 10:34:03PM -0700, Francisco Jerez wrote: >> Srinivas Pandruvada writes: >> >> > Enable HWP boost on Skylake server and workstations. >> > >> >> Please revert this series, it led to significant energy usage and >> graphics performance regressions [1]

Re: [PATCH] pwm: pwm-omap-dmtimer: fix probing problems by returning EPROBE_DEFER

2018-07-28 Thread Ladislav Michl
Hi Andreas, On Sat, Jul 28, 2018 at 06:59:14PM +0200, Andreas Kemnade wrote: > I got this in the kernel log: > [0.756042] omap-dmtimer-pwm dmtimer-pwm: dmtimer pdata structure NULL > [0.756134] omap-dmtimer-pwm: probe of dmtimer-pwm failed with error -22 > > the probe function has to wait

[PATCH 2/2] HID: redragon Add additional verification to rdesc modification quirk

2018-07-28 Thread John S Gruber
There are many devices using the vendor_id 0c45 and device_id of 760b combination. Also the two bytes 0x81 0x00 aren't rare for a report description. For these reasons the report description being altered by the quirk should be verified more completely If I'm understanding this correctly, I believ

[PATCH 1/2] HID: redragon: Fix regression in non-Redragon keyboard due to this new driver

2018-07-28 Thread John S Gruber
The Redragon keyboard uses the second device being presented, but other devices with the same vendor_id/device_id pair (0x0c45:760b) use the first. Don't cause its deletion. Problem introduced in commit 85455dd906d5 ("HID: redragon: Fix modifier keys for Redragon Asura Keyboard") Fixes: 85455dd906

[PATCH 0/2] "HID: redragon: Fix modifier keys for Redragon Asura Keyboard" causes regression for Acer keyboard

2018-07-28 Thread John S Gruber
Please cc me in any replies. The Acer branded keyboard that came with my Acer ATC-605-UB11 computer system fails completely due to: 85455dd906d5 ("HID: redragon: Fix modifier keys for Redragon Asura Keyboard.") That commit was merged to 4.18 on June 8. The redragon vendor_id device_id combinati

[PATCH 1/1] staging: gasket: core: hold reference on device while in use

2018-07-28 Thread Todd Poynor
From: Todd Poynor Hold a reference on the struct device while a pointer to that device is in use by gasket. Reported-by: Greg Kroah-Hartman Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/stagi

[PATCH 0/1 v2] staging: gasket: fixes and cleanups

2018-07-28 Thread Todd Poynor
From: Todd Poynor The fun continues with gasket+apex: remove dead code and unnecessary stuff, fixup apex PCI class for devices that advertise class 0 (undefined), and make sure the struct device doesn't go away on us. Most of these from review comments of previous patch series. Changed patches i

Re: [PATCH mmc-next v2 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

2018-07-28 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Jisheng-Zhang/solve-SDHCI-DWC-MSHC-128MB-DMA-boundary-limitation/20180728-234650 base: git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git next config: mips-allmodconfig (attached as .config) compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce

Re: Linux 4.17.11

2018-07-28 Thread rwar...@gmx.de
On 28.07.2018 18:59, Randy Dunlap wrote: On 07/28/2018 09:50 AM, rwar...@gmx.de wrote: Hallo I see this since 4.17.11: [    0.282161] ACPI Error: Result stack is empty! State=    (ptrval) (20180313/dswstate-65) [    0.282269] ACPI Error: AE_AML_NO_RETURN_VALUE, Missing or null operand (

Re: [PATCH mmc-next v2 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

2018-07-28 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Jisheng-Zhang/solve-SDHCI-DWC-MSHC-128MB-DMA-boundary-limitation/20180728-234650 base: git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git next config: x86_64-allmodconfig (attached as .config) compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 reproduce: # save

Re: [RFC PATCH] checkpatch: check for function calls with struct or union on stack

2018-07-28 Thread Julia Lawall
On Sat, 28 Jul 2018, Joe Perches wrote: > On Sat, 2018-07-28 at 08:25 +0200, Julia Lawall wrote: > > On Fri, 27 Jul 2018, Joe Perches wrote: > [] > > > It might make sense for this sort of check to be > > > added to coccinelle or maybe as a compiler warning > > > when the struct is larger than

Re: [RFC PATCH] checkpatch: check for function calls with struct or union on stack

2018-07-28 Thread Joe Perches
(unintentionally sent partial reply, better now) On Sat, 2018-07-28 at 08:25 +0200, Julia Lawall wrote: > On Fri, 27 Jul 2018, Joe Perches wrote: [] > > It might make sense for this sort of check to be > > added to coccinelle or maybe as a compiler warning > > when the struct is larger than some s

Re: [RFC PATCH] checkpatch: check for function calls with struct or union on stack

2018-07-28 Thread Joe Perches
On Sat, 2018-07-28 at 08:25 +0200, Julia Lawall wrote: > On Fri, 27 Jul 2018, Joe Perches wrote: [] > > It might make sense for this sort of check to be > > added to coccinelle or maybe as a compiler warning > > when the struct is larger than some size. > > > > Original thread for Julia: > > https

[PATCH] pwm: pwm-omap-dmtimer: fix probing problems by returning EPROBE_DEFER

2018-07-28 Thread Andreas Kemnade
I got this in the kernel log: [0.756042] omap-dmtimer-pwm dmtimer-pwm: dmtimer pdata structure NULL [0.756134] omap-dmtimer-pwm: probe of dmtimer-pwm failed with error -22 the probe function has to wait until omap_dm_timer_probe() in clocksource/timer-ti-dm.c has initialized pdata, so defe

Re: Linux 4.17.11

2018-07-28 Thread Randy Dunlap
On 07/28/2018 09:50 AM, rwar...@gmx.de wrote: > Hallo > > I see this since 4.17.11: > > > [    0.282161] ACPI Error: Result stack is empty! State=    (ptrval) > (20180313/dswstate-65) > [    0.282269] ACPI Error: AE_AML_NO_RETURN_VALUE, Missing or null operand > (20180313/dsutils-612) > [ 

RE: [GIT PULL] ACPI fix for v4.18-rc7

2018-07-28 Thread Oleksandr Natalenko
Hi. From a828a091828599154d8f6e8bfee1495a3df5cf34 Mon Sep 17 00:00:00 2001 From: Erik Schmauss Date: Fri, 27 Jul 2018 15:37:35 -0700 From: Erik Schmauss Subject: [PATCH 1] ACPICA: AML Parser: ignore control method status in module-level code Previous change in the AML parser code blindly se

Re: [BUG BISECT] Ethernet fail on VF50 (OF: Don't set default coherent DMA mask)

2018-07-28 Thread Guenter Roeck
On Fri, Jul 27, 2018 at 04:04:48PM +0200, Christoph Hellwig wrote: > On Fri, Jul 27, 2018 at 03:18:14PM +0200, Krzysztof Kozlowski wrote: > > On 27 July 2018 at 15:11, Krzysztof Kozlowski wrote: > > > Hi, > > > > > > On today's next, the bisect pointed commit > > > ff33d1030a6ca87cea9a41e1a2ea7750

Re: Linux 4.17.11

2018-07-28 Thread rwar...@gmx.de
Hallo I see this since 4.17.11: [0.282161] ACPI Error: Result stack is empty! State=(ptrval) (20180313/dswstate-65) [0.282269] ACPI Error: AE_AML_NO_RETURN_VALUE, Missing or null operand (20180313/dsutils-612) [0.282375] ACPI Error: AE_AML_NO_RETURN_VALUE, While creating A

[PATCH V2] riscv: Convert uses of REG_FMT to %p

2018-07-28 Thread Joe Perches
Use %p pointer output instead of REG_FMT and cast the unsigned longs to (void *) to avoid exposing kernel addresses. Miscellanea: o Convert pr_cont to printk(KERN_DEFAULT as these uses are new logging lines and not previous line continuations o Remove the now unused REG_FMT defines Signed-off-

Re: [PATCH] riscv: Convert uses of REG_FMT to %p

2018-07-28 Thread kbuild test robot
/Joe-Perches/riscv-Convert-uses-of-REG_FMT-to-p/20180728-104236 config: riscv-defconfig (attached as .config) compiler: riscv64-linux-gcc (GCC) 8.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

[PATCH v2] mmc: host: iproc: Add ACPI support to IPROC SDHCI

2018-07-28 Thread Srinath Mannam
Add ACPI support to all IPROC SDHCI varients Signed-off-by: Srinath Mannam Reviewed-by: Ray Jui Reviewed-by: Scott Branden Reviewed-by: Vladimir Olovyannikov --- Changes from v1: - Removed sdhci_iproc_data array change and add directly into of and acpi id tables. - Add a change to get

Re: [PATCH v2 2/3] Staging: octeon-usb: Change coding style of CVMX_WAIT_FOR_FIELD32 marco.

2018-07-28 Thread Georgios Tsotsos
I will change it into function, as i checked so far i will need to change USB_SET_FIELD32 for the same reason. On Fri, 27 Jul 2018 at 18:15, Greg Kroah-Hartman wrote: > > On Thu, Jul 26, 2018 at 06:41:52PM +0300, Georgios Tsotsos wrote: > > Fixing coding style for CVMX_WAIT_FOR_FIELD32 was confus

[PATCH v3] serial: 8250_dw: Add ACPI support for uart on Broadcom SoC

2018-07-28 Thread Srinath Mannam
Add ACPI identifier HID for UART DW 8250 on Broadcom SoCs to match the HID passed through ACPI tables to enable UART controller. Signed-off-by: Srinath Mannam Reviewed-by: Vladimir Olovyannikov Tested-by: Vladimir Olovyannikov Reviewed-by: Ray Jui Reviewed-by: Andy Shevchenko --- Changes from

Re: [PATCH v2] serial: 8250_dw: Add ACPI support for uart on Broadcom SoC

2018-07-28 Thread Srinath Mannam
Hi Greg k-h Sorry for my mistake, I will send v3 patchset with details of V1 and V2 changes. Regards, Srinath. On Sat, Jul 28, 2018 at 8:24 PM, Greg Kroah-Hartman wrote: > On Fri, Jul 27, 2018 at 02:12:50PM +0530, Srinath Mannam wrote: >> Add ACPI identifier HID for UART DW 8250 on Broadcom SoC

Re: [PATCH] fs/buffer: Convert return type int to vm_fault_t

2018-07-28 Thread Jens Axboe
On 7/28/18 3:50 AM, Souptick Joarder wrote: > out_unlock: > unlock_page(page); > + ret = block_page_mkwrite_return(err); > return ret; return block_page_mkwrite_return(err); -- Jens Axboe

Re: [PATCH v2] serial: 8250_dw: Add ACPI support for uart on Broadcom SoC

2018-07-28 Thread Greg Kroah-Hartman
On Fri, Jul 27, 2018 at 02:12:50PM +0530, Srinath Mannam wrote: > Add ACPI identifier HID for UART DW 8250 on Broadcom SoCs > to match the HID passed through ACPI tables to enable > UART controller. > > Signed-off-by: Srinath Mannam > Reviewed-by: Vladimir Olovyannikov > Tested-by: Vladimir Olov

  1   2   >