Re: [PATCH v1 2/2] kvm: arm64: handle single-step of userspace mmio instructions

2017-10-06 Thread Julien Thierry
On 06/10/17 12:39, Alex Bennée wrote: The system state of KVM when using userspace emulation is not complete until we return into KVM_RUN. To handle mmio related updates we wait until they have been committed and then schedule our KVM_EXIT_DEBUG. I've introduced a new function

[PATCH v2 2/5] locking/atomic: Add atomic_cond_read_acquire

2017-10-06 Thread Will Deacon
smp_cond_load_acquire provides a way to spin on a variable with acquire semantics until some conditional expression involing the variable is satisfied. Architectures such as arm64 can potentially enter a low-power state, waking up only when the value of the variable changes, which reduces the

[PATCH v2 3/5] kernel/locking: Use atomic_cond_read_acquire when spinning in qrwlock

2017-10-06 Thread Will Deacon
The qrwlock slowpaths involve spinning when either a prospective reader is waiting for a concurrent writer to drain, or a prospective writer is waiting for concurrent readers to drain. In both of these situations, atomic_cond_read_acquire can be used to avoid busy-waiting and make use of any

[PATCH v2 4/5] arm64: locking: Move rwlock implementation over to qrwlocks

2017-10-06 Thread Will Deacon
Now that the qrwlock can make use of WFE, remove our homebrew rwlock code in favour of the generic queued implementation. Signed-off-by: Will Deacon --- arch/arm64/Kconfig | 17 arch/arm64/include/asm/Kbuild | 1 +

Re: [PATCH v3 15/22] firmware: arm_scmi: abstract mailbox interface

2017-10-06 Thread Sudeep Holla
On 06/10/17 14:34, Jassi Brar wrote: > On Fri, Oct 6, 2017 at 6:57 PM, Sudeep Holla wrote: >> >> >> On 06/10/17 12:34, Jassi Brar wrote: >>> On Wed, Oct 4, 2017 at 5:02 PM, Sudeep Holla wrote: >>> Also, I have added shim only for specific

Re: [PATCH 0/6] Shrinking DT memory usage

2017-10-06 Thread Grant Likely
On Thu, Oct 5, 2017 at 8:44 PM, Rob Herring wrote: > On kernels with a minimal config and a RAM target in the 100s of KB, DT > is quite a hog of runtime memory usage. How much is dependent on how many > nodes and properties in the DT which have a corresponding struct device_node

Re: [PATCH 4.9 000/104] 4.9.54-stable review

2017-10-06 Thread Guenter Roeck
On 10/06/2017 01:50 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.54 release. There are 104 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

Re: [PATCH v6 3/3] KVM: LAPIC: Apply change to TDCR right away to the timer

2017-10-06 Thread Radim Krčmář
2017-10-06 21:59+0800, Wanpeng Li: > 2017-10-06 21:14 GMT+08:00 Radim Krčmář : > > 2017-10-05 18:54-0700, Wanpeng Li: > >> From: Wanpeng Li > >> > >> The description in the Intel SDM of how the divide configuration > >> register is used: "The APIC timer

[PATCH v3 1/5] sparc64: Define SPARC default fls function

2017-10-06 Thread Vijay Kumar
fls will now require a boot time patching on T4 and above. Redefining it under arch/sparc/lib. Signed-off-by: Vijay Kumar --- arch/sparc/include/asm/bitops_64.h |3 +- arch/sparc/lib/Makefile|1 + arch/sparc/lib/fls.S | 67

[PATCH v3 0/5] sparc64: Optimize fls and __fls

2017-10-06 Thread Vijay Kumar
SPARC provides lzcnt instruction (with VIS3) which can be used to optimize fls, __fls and fls64 functions. For the systems that supports lzcnt instruction, we now do boot time patching to use sparc optimized fls, __fls and fls64 functions. v2->v3: - Using ENTRY(), ENDPROC() for assembler

[PATCH 3/3] KVM: x86: thoroughly disarm LAPIC timer around TSC deadline switch

2017-10-06 Thread Radim Krčmář
Our routines look at tscdeadline and period when deciding state of a timer. The timer is disarmed when switching between TSC deadline and other modes, so we should set everything to disarmed state. Signed-off-by: Radim Krčmář --- arch/x86/kvm/lapic.c | 4 +++- 1 file

[PATCH] KVM: x86: remove X86_LOCAL_APIC #ifdefs

2017-10-06 Thread Radim Krčmář
f478e1219ea1 ("KVM: add X86_LOCAL_APIC dependency") made only the defined path possible. Signed-off-by: Radim Krčmář --- arch/x86/kvm/svm.c | 5 + arch/x86/kvm/vmx.c | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/x86/kvm/svm.c

[PATCH 0/3] KVM: x86: fix restart_apic_timer

2017-10-06 Thread Radim Krčmář
Various bugs that incorrectly injected a timer interrupt. Going to work on kvm-unit-tests for this too. Radim Krčmář (3): KVM: x86: handle 0 write to TSC_DEADLINE MSR KVM: x86: really disarm lapic timer when clearing TMICT KVM: x86: thoroughly disarm LAPIC timer around TSC deadline switch

Re: [PATCH v7 2/2] tracing: Add support for preempt and irq enable/disable events

2017-10-06 Thread Joel Fernandes
Hi Steve, On Fri, Oct 6, 2017 at 6:38 AM, Steven Rostedt wrote: > On Fri, 6 Oct 2017 00:28:21 -0700 > Joel Fernandes wrote: > > >> Oh ok. So I traced this down to the original patch that added >> time_hardirqs_off to lockdep. I *think* it was added just

[PATCH 2/3] KVM: x86: really disarm lapic timer when clearing TMICT

2017-10-06 Thread Radim Krčmář
preemption timer only looks at tscdeadline and could inject already disarmed timer. Signed-off-by: Radim Krčmář --- arch/x86/kvm/lapic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index

[PATCH 1/3] KVM: x86: handle 0 write to TSC_DEADLINE MSR

2017-10-06 Thread Radim Krčmář
0 should disable the timer, but start_hv_timer will recognize it as an expired timer instead. Signed-off-by: Radim Krčmář --- arch/x86/kvm/lapic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index

Re: [PATCH v6 6/7] KVM: arm64: allow get exception information from userspace

2017-10-06 Thread James Morse
Hi gengdongjiu, On 27/09/17 12:07, gengdongjiu wrote: > On 2017/9/23 0:51, James Morse wrote: >> If this wasn't a firmware-first notification, then you're right KVM hands the >> guest an asynchronous external abort. This could be considered a bug in KVM. >> (we >> can discuss with Marc and

Re: [PATCH 4.4 00/50] 4.4.91-stable review

2017-10-06 Thread Shuah Khan
On 10/06/2017 02:52 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.91 release. > There are 50 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 4.9 000/104] 4.9.54-stable review

2017-10-06 Thread Shuah Khan
On 10/06/2017 02:50 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.54 release. > There are 104 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

[GIT PULL] KVM fixes for v4.14-rc4

2017-10-06 Thread Radim Krčmář
Linus, The following changes since commit 9e66317d3c92ddaab330c125dfe9d06eee268aff: Linux 4.14-rc3 (2017-10-01 14:54:54 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm tags/for-linus for you to fetch changes up to

Re: [PATCH] block: remove unnecessary NULL checks in bioset_integrity_free()

2017-10-06 Thread Martin K. Petersen
Tim, > mempool_destroy() already checks for a NULL value being passed in, > this eliminates duplicate checks. That's fine. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] intel_idle: replace conditionals with static_cpu_has(X86_FEATURE_ARAT)

2017-10-06 Thread Jason Baron
On 10/06/2017 02:36 PM, Jacob Pan wrote: > On Fri, 6 Oct 2017 13:19:45 -0400 > Jason Baron wrote: > >> If the 'arat' cpu flag is set, then the conditionals in intel_idle() >> that guard calling tick_broadcast_enter()/exit() will never be true. >> Use

Re: [PATCH v1 1/4] perf annotate: create a new hists to manage multiple events samples

2017-10-06 Thread Arnaldo Carvalho de Melo
Em Sat, Oct 07, 2017 at 12:31:37AM +0800, Jin, Yao escreveu: > On 10/5/2017 9:21 PM, Arnaldo Carvalho de Melo wrote: > > Em Wed, Aug 16, 2017 at 06:18:33PM +0800, Jin Yao escreveu: > >> An issue is found during using perf annotate. > >> perf record -e cycles,branches ... > >> perf annotate main

Re: [PATCH] drivers/x86: add thinkpad-wmi

2017-10-06 Thread Corentin Chary
Yes, I'm just having trouble finding time to write it :) I'll try to make that happen next week. On Thu, Oct 5, 2017 at 4:49 AM, Darren Hart wrote: > On Tue, Sep 05, 2017 at 09:07:27AM +0200, Corentin Chary wrote: >> [re-send for the mailing list, I forgot that gmail was

Re: [PATCH] iommu/vt-d: Fix scatterlist offset handling

2017-10-06 Thread Raj, Ashok
On Fri, Oct 06, 2017 at 04:43:09PM +0200, Joerg Roedel wrote: > On Tue, Oct 03, 2017 at 07:05:17PM +0100, Robin Murphy wrote: > > Now, there are indeed plenty of drivers and subsystems which do work on > > lists of explicitly single pages - anything doing some variant of > > "addr =

Re: [PATCH v2 09/16] driver core: add iommu device fault reporting data

2017-10-06 Thread Jacob Pan
On Fri, 6 Oct 2017 10:39:31 +0200 Joerg Roedel wrote: > On Fri, Oct 06, 2017 at 12:11:45AM -0700, Christoph Hellwig wrote: > > This is the 3rd iommu field, in addition to 8 dma-specific fields > > that we carry around for each struct device. > > Agreed, consolidating the

[PATCH] ALSA: seq: resize buffer for overflow

2017-10-06 Thread Mark Salyzyn
Can not replicate, issue discovered in fuzzing. Stack trace below. No functional or performance testing done regarding the fix. Trap at (reformatted): snd_seq_oss_readq_puts(struct seq_oss_readq *q, int dev, unsigned char *data, int len) { union evrec rec; int

[PATCH v4 0/2] PCI: add support for firmware initialized DesignWare RCs

2017-10-06 Thread Ard Biesheuvel
UEFI based systems incorporating a Synopsys DesignWare PCIe controller in RC mode will typically configure it before entering the OS. If this configuration is fully static and ECAM compliant, there is no need to expose particulars of the device to the OS, and we can simply describe it as

[PATCH v4 2/2] dt-bindings: designware: add binding for Designware PCIe in ECAM mode

2017-10-06 Thread Ard Biesheuvel
Describe the binding for firmware-configured instances of the Synopsys DesignWare PCIe controller in RC mode, that are almost but not quite ECAM compliant. Acked-by: Rob Herring Signed-off-by: Ard Biesheuvel ---

[PATCH v4 1/2] PCI: pci-host-generic: add support for Synopsys DesignWare RC in ECAM mode

2017-10-06 Thread Ard Biesheuvel
Some implementations of the Synopsys DesignWare PCIe controller implement a so-called ECAM shift mode, which allows a static memory window to be configured that covers the configuration space of the entire bus range. Usually, when the firmware performs all the low level configuration that is

[PATCH] time: use heuristic to test persistent_clock precision

2017-10-06 Thread Gabriel M. Beddingfield
In commit cb33217b1b25 ("time: Avoid accumulating time drift in suspend/resume") logic was added to timekeeping_suspend() to compensate for read_persistent_clock() having only single-second precision. However, if the implementation is capable of returning fractional seconds then it is better to

Re: [PATCH] bnx2x: Use pci_ari_enabled() instead of local copy

2017-10-06 Thread David Miller
From: Bjorn Helgaas Date: Fri, 06 Oct 2017 06:00:30 -0500 > From: Bjorn Helgaas > > Use pci_ari_enabled() from the PCI core instead of the identical local copy > bnx2x_ari_enabled(). No functional change intended. > > Signed-off-by: Bjorn Helgaas

[PATCH] intel_idle: replace conditionals with static_cpu_has(X86_FEATURE_ARAT)

2017-10-06 Thread Jason Baron
If the 'arat' cpu flag is set, then the conditionals in intel_idle() that guard calling tick_broadcast_enter()/exit() will never be true. Use static_cpu_has(X86_FEATURE_ARAT) to create a fast path to replace the conditional. Signed-off-by: Jason Baron Cc: Jacob Pan

[PATCH 0/2] MIPS: Minor FPU emulation fixes

2017-10-06 Thread Aleksandar Markovic
From: Aleksandar Markovic This series contains two minor FPU emulation patches that were not included into a recent larger series of FPU fixes, mainly not to additionally burden already complex set of patches. Only the first patch changes functionality, and in

[for-next][PATCH 07/16] tracing: Increase tracing map KEYS_MAX size

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi The current default for the number of subkeys in a compound key is 2, which is too restrictive. Increase it to a more realistic value of 3. Link:

[for-next][PATCH 08/16] tracing: Make traceprobe parsing code reusable

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi traceprobe_probes_write() and traceprobe_command() actually contain nothing that ties them to kprobes - the code is generically useful for similar types of parsing elsewhere, so separate it out and move it to trace.c/trace.h. Other than moving it,

[for-next][PATCH 00/16] tracing: Updates for 4.15

2017-10-06 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: 6171a0310a06a7a0cb83713fa7068bdd4192de19 Colin Ian King (1): tracing: Remove redundant unread variable ret Joel Fernandes (1): tracing: Remove obsolete sched_switch tracer selftest Steven

[for-next][PATCH 06/16] tracing: Remove lookups from tracing_map hitcount

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi Lookups inflate the hitcount, making it essentially useless. Only inserts and updates should really affect the hitcount anyway, so explicitly filter lookups out. Link:

Re: [Intel-wired-lan] [PATCH] PCI: Check/Set ARI capability before setting numVFs

2017-10-06 Thread Bjorn Helgaas
On Thu, Oct 05, 2017 at 04:07:41PM -0500, Bjorn Helgaas wrote: > On Wed, Oct 04, 2017 at 04:29:14PM -0700, Alexander Duyck wrote: > > On Wed, Oct 4, 2017 at 4:01 PM, Bjorn Helgaas wrote: > > > On Wed, Oct 04, 2017 at 08:52:58AM -0700, Tony Nguyen wrote: > > >> This fixes a bug

Re: [PATCH v4] crypto: s5p-sss: Add HASH support for Exynos

2017-10-06 Thread Krzysztof Kozlowski
On Wed, Oct 04, 2017 at 06:38:11PM +0200, Kamil Konieczny wrote: > Add support for MD5, SHA1, SHA256 hash algorithms for Exynos HW. > It uses the crypto framework asynchronous hash api. > It is based on omap-sham.c driver. > S5P has some HW differencies and is not implemented. > > Modifications

Re: [PATCH v2] isdn/gigaset: Convert timers to use timer_setup()

2017-10-06 Thread Paul Bolle
On Thu, 2017-10-05 at 12:31 -0700, Kees Cook wrote: > --- a/drivers/isdn/gigaset/bas-gigaset.c > +++ b/drivers/isdn/gigaset/bas-gigaset.c > -static void cmd_in_timeout(unsigned long data) > +static void cmd_in_timeout(struct timer_list *t) > { > - struct cardstate *cs = (struct cardstate *)

Re: [PATCH 0/4] RCU: introduce noref debug

2017-10-06 Thread Paul E. McKenney
On Fri, Oct 06, 2017 at 05:10:09PM +0200, Paolo Abeni wrote: > Hi, > > On Fri, 2017-10-06 at 06:34 -0700, Paul E. McKenney wrote: > > On Fri, Oct 06, 2017 at 02:57:45PM +0200, Paolo Abeni wrote: > > > The networking subsystem is currently using some kind of long-lived > > > RCU-protected,

Re: [PATCH 3/3] mm: oom: show unreclaimable slab info when unreclaimable slabs > user memory

2017-10-06 Thread Yang Shi
On 10/6/17 2:37 AM, Michal Hocko wrote: On Thu 05-10-17 05:29:10, Yang Shi wrote: Kernel may panic when oom happens without killable process sometimes it is caused by huge unreclaimable slabs used by kernel. Although kdump could help debug such problem, however, kdump is not available on all

Re: [PATCH v8] KVM: LAPIC: Apply change to TDCR right away to the timer

2017-10-06 Thread Radim Krčmář
2017-10-06 07:38-0700, Wanpeng Li: > From: Wanpeng Li > > The description in the Intel SDM of how the divide configuration > register is used: "The APIC timer frequency will be the processor's bus > clock or core crystal clock frequency divided by the value specified in >

Re: [PATCH v4 11/14] platform/x86: dell-smbios-wmi: Add new WMI dispatcher driver

2017-10-06 Thread Darren Hart
On Thu, Oct 05, 2017 at 07:47:38PM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Darren Hart [mailto:dvh...@infradead.org] > > Sent: Thursday, October 5, 2017 12:58 PM > > To: Limonciello, Mario > > Cc: andy.shevche...@gmail.com;

RE: [PATCH v4 11/14] platform/x86: dell-smbios-wmi: Add new WMI dispatcher driver

2017-10-06 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, October 6, 2017 11:45 AM > To: Limonciello, Mario > Cc: andy.shevche...@gmail.com; linux-kernel@vger.kernel.org; platform- > driver-...@vger.kernel.org; l...@kernel.org;

[PATCH 2/2] MIPS: math-emu: Use preferred flavor of unsigned integer declarations

2017-10-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Fix occurences of unsigned integer declarations that are not preferred by standards of checkpatch scripts. This removes significant number of checkpatch warnings in math-emu directory (several files will become completely warning-free),

[PATCH 1/2] MIPS: math-emu: Update debugfs FP exception stats for certain instructions

2017-10-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Fix omission of updating of debugfs FP exception stats for instructions .. CLASS. can generate Unimplemented Operation FP exception. >. can generate

Re: [PATCH] linux/types.h: Restore the ability to disable sparse endianness checks

2017-10-06 Thread Christoph Hellwig
On Fri, Oct 06, 2017 at 10:23:53AM -0700, Bart Van Assche wrote: > The purpose of patch "linux/types.h: enable endian checks for all > sparse builds" was to encourage driver authors to annotate > endianness correctly in their drivers. However, since that patch > went upstream no endianness

[PATCH tip/sched/core v3] sched/rt: Simplify the IPI rt balancing logic

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" When a CPU lowers its priority (schedules out a high priority task for a lower priority one), a check is made to see if any other CPU has overloaded RT tasks (more than one). It checks the rto_mask to determine this and if so it will request

Re: [PATCH] intel_idle: replace conditionals with static_cpu_has(X86_FEATURE_ARAT)

2017-10-06 Thread Jacob Pan
On Fri, 6 Oct 2017 13:19:45 -0400 Jason Baron wrote: > If the 'arat' cpu flag is set, then the conditionals in intel_idle() > that guard calling tick_broadcast_enter()/exit() will never be true. > Use static_cpu_has(X86_FEATURE_ARAT) to create a fast path to replace > the

[PATCH] block/bio: Remove null checks before mempool_destroy in bioset_free

2017-10-06 Thread Tim Hansen
This patch removes redundant checks for null values on bio_pool and bvec_pool. Found using make coccicheck M=block/ on linux-net tree on the next-20170929 tag. Related to patch 9987695 that removed similar checks in bio-integrity. Signed-off-by: Tim Hansen ---

Re: [PATCH 1/2] arm: dts: Add support for National Instruments Project Sulfur SDRs

2017-10-06 Thread Moritz Fischer
On Fri, Oct 06, 2017 at 01:49:44PM +0200, Michal Simek wrote: > On 26.9.2017 20:15, Philip Balister wrote: > > On 09/26/2017 02:06 PM, Michal Simek wrote: > >> On 26.9.2017 19:58, Philip Balister wrote: > >>> On 09/26/2017 01:50 PM, Moritz Fischer wrote: > Michal, > > On Tue, Sep

[PATCH] Update MIPS email addresses

2017-10-06 Thread Paul Burton
From: Paul Burton MIPS will soon not be a part of Imagination Technologies, and as such many @imgtec.com email addresses will no longer be valid. This patch updates the addresses for all those who: - Have 10 or more patches in mainline authored using an @imgtec.com

[PATCH v3 5/5] sparc64: Use sparc optimised fls and __fls for T4 and above

2017-10-06 Thread Vijay Kumar
For T4 and above, patch fls and __fls functions at the boot time to use lzcnt instruction. Signed-off-by: Vijay Kumar --- arch/sparc/kernel/head_64.S |2 ++ arch/sparc/lib/NG4patch.S |9 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git

Re: [PATCH] staging: comedi: dt282x: release irq on dt282x detach

2017-10-06 Thread arvindY
Sorry for noise, ignore this patch. On Friday 06 October 2017 10:06 PM, Arvind Yadav wrote: free_irq() should be called on driver 'dt282x' detach. Signed-off-by: Arvind Yadav --- drivers/staging/comedi/drivers/dt282x.c | 5 + 1 file changed, 5 insertions(+)

Re: [PATCH 3.18 00/35] 3.18.74-stable review

2017-10-06 Thread Shuah Khan
On 10/06/2017 03:24 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.74 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. > > Responses

Re: [ANNOUNCE] v4.11.12-rt13

2017-10-06 Thread Mike Galbraith
On Fri, 2017-10-06 at 15:33 +0200, Mike Galbraith wrote: > > I'll run full ltp again, make sure there are no new failure deltas. Haven't done that yet, but I have checked all of the reported failures. time-hrtimer:-Use-softirq-based-wakeups-for-non-RT-threads.patch fixes

[for-next][PATCH 12/16] ftrace: Add a ftrace_free_mem() function for modules to use

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In order to be able to trace module init functions, the module code needs to tell ftrace what is being freed when the init sections are freed. Use the code that the main init calls to tell ftrace to free the main init sections. This requires

[for-next][PATCH 13/16] ftrace: Allow module init functions to be traced

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Allow for module init sections to be traced as well as core kernel init sections. Now that filtering modules functions can be stored, for when they are loaded, it makes sense to be able to trace them. Cc: Jessica Yu Cc:

[PATCH] staging: comedi: dt282x: fix IRQ assignment for dev->irq.

2017-10-06 Thread Arvind Yadav
Here, dev->irq is not assigned with irq(irq_num). comedi_legacy_detach() is using dev->irq for release irq and dt282x_attach() is using dev->irq for initialize comedi_subdevice. Signed-off-by: Arvind Yadav --- drivers/staging/comedi/drivers/dt282x.c | 2 ++ 1 file

[RESEND PATCH] ASoC: codecs: msm8916-wcd-digital: fix RX2 MIX1 and RX3 MIX1

2017-10-06 Thread Jean-François Têtu
The kcontrol for the third input (rxN_mix1_inp3) of both RX2 and RX3 mixers are not using the correct control register. This simple patch fixes this. Signed-off-by: Jean-François Têtu --- sound/soc/codecs/msm8916-wcd-digital.c | 4 ++-- 1 file changed, 2

[for-next][PATCH 05/16] tracing: Exclude generic fields from histograms

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi There are a small number of 'generic fields' (comm/COMM/cpu/CPU) that are found by trace_find_event_field() but are only meant for filtering. Specifically, they unlike normal fields, they have a size of 0 and thus wreak havoc when used as a

Re: [PATCH 4.9 086/104] arm64: kasan: avoid bad virt_to_pfn()

2017-10-06 Thread Mark Rutland
Hi Greg, On Fri, Oct 06, 2017 at 10:52:04AM +0200, Greg Kroah-Hartman wrote: > 4.9-stable review patch. If anyone has any objections, please let me know. I'm a little confused as to why this is being backported, given it wasn't Cc'd stable or marked as a fix. The lm_alias() helper was only

[GIT PULL] PCI fixes for v4.14

2017-10-06 Thread Bjorn Helgaas
PCI fixes: - fix legacy IDE probe issues exposed by recent PCI core IRQ mapping changes (Bartlomiej Zolnierkiewicz, Lorenzo Pieralisi) The following changes since commit 9561475db680f7144d2223a409dd3d7e322aca03: PCI: Fix race condition with driver_override (2017-09-25 18:34:54 -0500)

RE: [PATCH v5 0/5] cramfs refresh for embedded usage

2017-10-06 Thread Nicolas Pitre
On Fri, 6 Oct 2017, Chris Brandt wrote: > On Friday, October 06, 2017, Christoph Hellwig wrote: > > This is still missing a proper API for accessing the file system, > > as said before specifying a physical address in the mount command > > line is a an absolute non-no. > > > > Either work with

Re: [PATCH 11/13] x86/paravirt: Add paravirt alternatives infrastructure

2017-10-06 Thread Josh Poimboeuf
On Fri, Oct 06, 2017 at 11:29:52AM -0400, Boris Ostrovsky wrote: > >>> + > >>> void __init_or_module apply_paravirt(struct paravirt_patch_site *start, > >>>struct paravirt_patch_site *end) > >>> { > >>> diff --git a/arch/x86/kernel/cpu/hypervisor.c > >>>

[PATCH v2] ALSA: seq: resize buffer for overflow

2017-10-06 Thread Mark Salyzyn
Can not replicate, issue discovered in fuzzing. Stack trace below. No functional or performance testing done regarding the fix. Trap at (reformatted): snd_seq_oss_readq_puts(struct seq_oss_readq *q, int dev, unsigned char *data, int len) { union evrec rec; int

Re: [PATCH] i2c: piix4: Fix SMBus port selection for AMD Family 17h chips

2017-10-06 Thread Guenter Roeck
On Thu, Oct 05, 2017 at 08:34:01PM +0200, Rudolf Marek wrote: > Hi Guys, > > Even in "AMD Family 15h Models 60h-6Fh Processors" [1] > are ports3 and ports4 marked as "Reserved". Maybe we should limit "KERN" to 2 > ports? > Maybe, if we are sure that this applies to all CPU models supported by

Re: [PATCH v5 4/5] cramfs: add mmap support

2017-10-06 Thread Nicolas Pitre
On Fri, 6 Oct 2017, Christoph Hellwig wrote: > > + /* Don't map the last page if it contains some other data */ > > + if (unlikely(pgoff + pages == max_pages)) { > > + unsigned int partial = offset_in_page(inode->i_size); > > + if (partial) { > > + char

[PATCH] perf tools: unbreak perf record for arm/arm64

2017-10-06 Thread Mark Rutland
Currently, perf record is broken on arm/arm64 systems when the PMU is specified explicitly as part of the event, e.g. $ ./perf record -e armv8_cortex_a53/cpu_cycles/u true In such cases, perf record fails to open events unless perf_event_paranoid is set to -1, even if the PMU in question

Re: [Part2 PATCH v5 12/31] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-10-06 Thread Borislav Petkov
On Wed, Oct 04, 2017 at 08:13:53AM -0500, Brijesh Singh wrote: > AMDs new Secure Encrypted Virtualization (SEV) feature allows the memory > contents of a virtual machines to be transparently encrypted with a key > unique to the guest VM. The programming and management of the encryption > keys are

Re: random insta-reboots on AMD Phenom II

2017-10-06 Thread Borislav Petkov
On Fri, Oct 06, 2017 at 08:49:33PM +0200, Johannes Hirte wrote: > I see the same behaviour on Carizzo. Is Excavator an old machine too? Do # rdmsr -a 0xc0010015 as root and paste it here. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

Re: [PATCH] block/bio: Remove null checks before mempool_destroy in bioset_free

2017-10-06 Thread Jens Axboe
On 10/06/2017 12:45 PM, Tim Hansen wrote: > This patch removes redundant checks for null values on bio_pool and bvec_pool. > > Found using make coccicheck M=block/ on linux-net tree on the next-20170929 > tag. > > Related to patch 9987695 that removed similar checks in bio-integrity. Applied,

Re: [PATCH] block: remove unnecessary NULL checks in bioset_integrity_free()

2017-10-06 Thread Jens Axboe
On 10/05/2017 12:09 PM, Tim Hansen wrote: > mempool_destroy() already checks for a NULL value being passed in, this > eliminates duplicate checks. > > This was caught by running make coccicheck M=block/ on linus' tree on commit > 77ede3a014a32746002f7889211f0cecf4803163 (current head as of this

Re: [PATCH v1 1/4] perf annotate: create a new hists to manage multiple events samples

2017-10-06 Thread Jin, Yao
On 10/5/2017 9:21 PM, Arnaldo Carvalho de Melo wrote: > Em Wed, Aug 16, 2017 at 06:18:33PM +0800, Jin Yao escreveu: >> An issue is found during using perf annotate. >> >> perf record -e cycles,branches ... >> perf annotate main --stdio >> >> The result only shows cycles. It should show both

Re: [PATCH] platform/x86: peaq-wmi: Add DMI check before binding to the WMI interface

2017-10-06 Thread Darren Hart
On Thu, Oct 05, 2017 at 09:19:23PM +0300, Andy Shevchenko wrote: > On Thu, Oct 5, 2017 at 9:04 PM, Hans de Goede wrote: > > It seems that the WMI GUID used by the PEAQ 2-in-1 WMI hotkeys is not > > as unique as a GUID should be and is used on some other devices too. > > > >

[PATCH v3 2/5] sparc64: Define SPARC default __fls function

2017-10-06 Thread Vijay Kumar
__fls will now require a boot time patching on T4 and above. Redefining it under arch/sparc/lib. Signed-off-by: Vijay Kumar --- arch/sparc/include/asm/bitops_64.h |2 +- arch/sparc/lib/Makefile|1 + arch/sparc/lib/fls64.S | 61

[PATCH v3 4/5] sparc64: SPARC optimised __fls function

2017-10-06 Thread Vijay Kumar
Defined SPARC optimised __fls using lzcnt opcode. Signed-off-by: Vijay Kumar --- arch/sparc/lib/NG4fls.S | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/sparc/lib/NG4fls.S b/arch/sparc/lib/NG4fls.S index 5ed7da9..34ad371 100644

[PATCH v3 3/5] sparc64: SPARC optimised fls function

2017-10-06 Thread Vijay Kumar
Defined SPARC optimised fls using lzcnt opcode. Signed-off-by: Vijay Kumar --- arch/sparc/lib/Makefile |1 + arch/sparc/lib/NG4fls.S | 20 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/sparc/lib/Makefile

Re: [PATCH] linux/types.h: Restore the ability to disable sparse endianness checks

2017-10-06 Thread Bart Van Assche
On Fri, 2017-10-06 at 19:35 +0200, Christoph Hellwig wrote: > On Fri, Oct 06, 2017 at 10:23:53AM -0700, Bart Van Assche wrote: > > The purpose of patch "linux/types.h: enable endian checks for all > > sparse builds" was to encourage driver authors to annotate > > endianness correctly in their

Re: [PATCH v4 02/13] xen/pvcalls: implement frontend disconnect

2017-10-06 Thread Stefano Stabellini
On Wed, 20 Sep 2017, Boris Ostrovsky wrote: > > + > > +struct pvcalls_bedata { > > + struct xen_pvcalls_front_ring ring; > > + grant_ref_t ref; > > + int irq; > > + > > + struct list_head socket_mappings; > > + struct list_head socketpass_mappings; > > + spinlock_t socket_lock; > > + >

[for-next][PATCH 09/16] tracing: Clean up hist_field_flags enum

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi As we add more flags, specifying explicit integers for the flag values becomes more unwieldy and error-prone - switch them over to left-shift values. Link:

[for-next][PATCH 01/16] tracing: Remove obsolete sched_switch tracer selftest

2017-10-06 Thread Steven Rostedt
From: Joel Fernandes Since commit 87d80de2800d087ea833cb79bc13f85ff34ed49f ("tracing: Remove obsolete sched_switch tracer"), the sched_switch tracer selftest is no longer used. This patch removes the same. Link:

[for-next][PATCH 10/16] tracing: Add hist_field_name() accessor

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi In preparation for hist_fields that won't be strictly based on trace_event_fields, add a new hist_field_name() accessor to allow that flexibility and update associated users. Link:

[for-next][PATCH 02/16] tracing: Remove redundant unread variable ret

2017-10-06 Thread Steven Rostedt
From: Colin Ian King Integer ret is being assigned but never used and hence it is redundant. Remove it, fixes clang warning: trace_events_hist.c:1077:3: warning: Value stored to 'ret' is never read Link:

[for-next][PATCH 03/16] tracing: Reverse the order of trace_types_lock and event_mutex

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In order to make future changes where we need to call tracing_set_clock() from within an event command, the order of trace_types_lock and event_mutex must be reversed, as the event command will hold event_mutex and the trace_types_lock is

[for-next][PATCH 04/16] ring-buffer: Rewrite trace_recursive_(un)lock() to be simpler

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The current method to prevent the ring buffer from entering into a recursize loop is to use a bitmask and set the bit that maps to the current context (normal, softirq, irq or NMI), and if that bit was already set, it is considered a recursive

Re: [PATCH v4 04/13] xen/pvcalls: implement socket command and handle events

2017-10-06 Thread Stefano Stabellini
On Thu, 21 Sep 2017, Boris Ostrovsky wrote: > > + > > +static inline int get_request(struct pvcalls_bedata *bedata, int *req_id) > > +{ > > + *req_id = bedata->ring.req_prod_pvt & (RING_SIZE(>ring) - 1); > > + if (RING_FULL(>ring) || > > + READ_ONCE(bedata->rsp[*req_id].req_id) !=

Re: [PATCH] Bluetooth: Convert timers to use timer_setup()

2017-10-06 Thread Marcel Holtmann
Hi Kees, > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. As already done in hci_qca, add > struct hci_uart pointer to priv structure. > > Cc: Marcel

[PATCH] scsi: be2iscsi: Use kasprintf

2017-10-06 Thread Himanshu Jha
Use kasprintf instead of combination of kmalloc and sprintf. Signed-off-by: Himanshu Jha --- drivers/scsi/be2iscsi/be_main.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/be2iscsi/be_main.c

Re: random insta-reboots on AMD Phenom II

2017-10-06 Thread Johannes Hirte
On 2017 Okt 06, Borislav Petkov wrote: > On Fri, Oct 06, 2017 at 08:49:33PM +0200, Johannes Hirte wrote: > > I see the same behaviour on Carizzo. Is Excavator an old machine too? > > Do > > # rdmsr -a 0xc0010015 > > as root and paste it here. > > Thx. 19001011 19001011 19001011 19001011 --

Re: random insta-reboots on AMD Phenom II

2017-10-06 Thread Johannes Hirte
On 2017 Sep 30, Borislav Petkov wrote: > On Sat, Sep 30, 2017 at 02:47:11PM +0200, Markus Trippelsdorf wrote: > > Changing the TLB code so late might not be a good idea... > > The new lazy code is too risky to keep as we don't know what else will > break. The conservative and thus safe thing to

RE: [PATCH v5 0/5] cramfs refresh for embedded usage

2017-10-06 Thread Chris Brandt
On Friday, October 06, 2017, Christoph Hellwig wrote: > This is still missing a proper API for accessing the file system, > as said before specifying a physical address in the mount command > line is a an absolute non-no. > > Either work with the mtd folks to get the mtd core down to an absolute

[PATCH] staging: comedi: dt282x: release irq on dt282x detach

2017-10-06 Thread Arvind Yadav
free_irq() should be called on driver 'dt282x' detach. Signed-off-by: Arvind Yadav --- drivers/staging/comedi/drivers/dt282x.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/staging/comedi/drivers/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c

Re: [PATCH] net/ipv6: Convert icmpv6_push_pending_frames to void

2017-10-06 Thread David Miller
From: Joe Perches Date: Thu, 5 Oct 2017 23:46:14 -0700 > commit cc71b7b07119 ("net/ipv6: remove unused err variable on > icmpv6_push_pending_frames") exposed icmpv6_push_pending_frames > return value not being used. > > Remove now unnecessary int err declarations and uses. >

Re: [RFC PATCH 1/4] dt-bindings: add bindings for USB physical connector

2017-10-06 Thread Rob Herring
On Fri, Oct 6, 2017 at 6:10 AM, Andrzej Hajda wrote: > Hi Rob, > > Thanks for review. > > On 06.10.2017 01:12, Rob Herring wrote: >> On Thu, Sep 28, 2017 at 03:07:27PM +0200, Andrzej Hajda wrote: >>> These bindings allows to describe most known standard USB connectors >>> and

[PATCH] linux/types.h: Restore the ability to disable sparse endianness checks

2017-10-06 Thread Bart Van Assche
The purpose of patch "linux/types.h: enable endian checks for all sparse builds" was to encourage driver authors to annotate endianness correctly in their drivers. However, since that patch went upstream no endianness annotations in drivers have been fixed. I think that this shows that the

Re: [PATCH v4 05/13] xen/pvcalls: implement connect command

2017-10-06 Thread Stefano Stabellini
On Thu, 21 Sep 2017, Boris Ostrovsky wrote: > On 09/15/2017 07:00 PM, Stefano Stabellini wrote: > > Send PVCALLS_CONNECT to the backend. Allocate a new ring and evtchn for > > the active socket. > > > > Introduce fields in struct sock_mapping to keep track of active sockets. > > Introduce a

Re: [PATCH v4 05/13] xen/pvcalls: implement connect command

2017-10-06 Thread Stefano Stabellini
On Fri, 6 Oct 2017, Stefano Stabellini wrote: > On Thu, 21 Sep 2017, Boris Ostrovsky wrote: > > On 09/15/2017 07:00 PM, Stefano Stabellini wrote: > > > Send PVCALLS_CONNECT to the backend. Allocate a new ring and evtchn for > > > the active socket. > > > > > > Introduce fields in struct

  1   2   3   4   5   6   7   8   9   10   >