[PATCH][mm-next] mm, swap: make bool enable_vma_readahead and function swap_vma_readahead static

2018-02-23 Thread Colin King
From: Colin Ian King The bool enable_vma_readahead and function swap_vma_readahead are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: mm/swap_state.c:41:6: warning: symbol 'enable_vma_readahead' was not declared. Should it be static? mm

Re: [RFC 1/4] drm: Add writeback connector type

2018-02-23 Thread Liviu Dudau
On Fri, Feb 23, 2018 at 11:43:29AM -0500, Sean Paul wrote: > On Fri, Feb 23, 2018 at 11:25:11AM -0500, Rob Clark wrote: > > On Fri, Feb 23, 2018 at 10:59 AM, Sean Paul wrote: > > > > > > Have we considered hiding writeback behind a client cap instead? > > > > It is kinda *almost* unneeded, since

Re: [PATCH] scsi: lpfc: use memcpy_toio instead of writeq

2018-02-23 Thread Andy Shevchenko
On Fri, Feb 23, 2018 at 6:41 PM, David Laight wrote: > From: Arnd Bergmann >> Sent: 23 February 2018 15:37 >> >> 32-bit architectures generally cannot use writeq(), so we now get a build >> failure for the lpfc driver: >> >> drivers/scsi/lpfc/lpfc_sli.c: In function 'lpfc_sli4_wq_put': >> drivers/

Re: [RFC 1/4] drm: Add writeback connector type

2018-02-23 Thread Liviu Dudau
On Fri, Feb 23, 2018 at 11:39:06AM -0500, Sean Paul wrote: > On Fri, Feb 23, 2018 at 04:21:05PM +, Liviu Dudau wrote: > > On Fri, Feb 23, 2018 at 10:59:35AM -0500, Sean Paul wrote: > > > On Fri, Feb 23, 2018 at 08:17:51AM -0500, Rob Clark wrote: > > > > From: Brian Starkey > > > > > > > > Wri

Re: [PATCH] scsi: lpfc: use memcpy_toio instead of writeq

2018-02-23 Thread Andy Shevchenko
On Fri, Feb 23, 2018 at 6:51 PM, Andy Shevchenko wrote: > On Fri, Feb 23, 2018 at 6:41 PM, David Laight wrote: >> From: Arnd Bergmann >>> Sent: 23 February 2018 15:37 >>> >>> 32-bit architectures generally cannot use writeq(), so we now get a build >>> failure for the lpfc driver: >>> >>> drivers

Re: [PATCH] percpu: add a schedule point in pcpu_balance_workfn()

2018-02-23 Thread Tejun Heo
On Fri, Feb 23, 2018 at 08:12:42AM -0800, Eric Dumazet wrote: > From: Eric Dumazet > > When a large BPF percpu map is destroyed, I have seen > pcpu_balance_workfn() holding cpu for hundreds of milliseconds. > > On KASAN config and 112 hyperthreads, average time to destroy a chunk > is ~4 ms. >

Re: [PATCH v2 0/3] Support qcom pinctrl protected pins

2018-02-23 Thread Bjorn Andersson
On Fri 23 Feb 06:22 PST 2018, Linus Walleij wrote: > On Tue, Feb 20, 2018 at 5:45 PM, Timur Tabi wrote: > > On 01/25/2018 07:13 PM, Stephen Boyd wrote: > >> > >> This patchset proposes a solution to describing the valid > >> pins for a pin controller in a semi-generic way so that qcom > >> platfo

Re: [PATCH v8 8/8] livepatch: Atomic replace and cumulative patches documentation

2018-02-23 Thread Joe Lawrence
On 02/23/2018 05:41 AM, Miroslav Benes wrote: > On Wed, 21 Feb 2018, Petr Mladek wrote: > >> User documentation for the atomic replace feature. It makes it easier >> to maintain livepatches using so-called cumulative patches. >> >> Signed-off-by: Petr Mladek > > Acked-by: Miroslav Benes > > Jo

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-23 Thread Vitor Soares
Hi Boris, Às 3:16 PM de 12/14/2017, Boris Brezillon escreveu: > + > +enum i3c_addr_slot_status i3c_bus_get_addr_slot_status(struct i3c_bus *bus, > +u16 addr) > +{ > + int status, bitpos = addr * 2; > + > + if (addr > I2C_MAX_ADDR) > +

Re: [PATCH v2 0/5] vfio, dax: prevent long term filesystem-dax pins and other fixes

2018-02-23 Thread Dan Williams
On Fri, Feb 23, 2018 at 12:55 AM, Haozhong Zhang wrote: > On 02/22/18 23:17 -0800, Dan Williams wrote: >> Changes since v1 [1]: >> >> * Fix the detection of device-dax file instances in vma_is_fsdax(). >> (Haozhong, Gerd) >> >> * Fix compile breakage in the FS_DAX=n and DEV_DAX=y case. (0day rob

Re: [PATCH] perf annotate: Support to display the LBR data in tui mode

2018-02-23 Thread Peter Zijlstra
On Fri, Feb 23, 2018 at 12:29:06PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 23, 2018 at 09:25:00AM +0100, Peter Zijlstra escreveu: > > On Fri, Feb 23, 2018 at 10:35:58PM +0800, Jin Yao wrote: > > > Unlike the perf report interactive annotate mode, the perf annotate > > > doesn't display

[PATCH 2/3] ARM: PLT: Move struct plt_entries definition to header

2018-02-23 Thread Alexander Sverdlin
No functional change, later it will be re-used in several files. Signed-off-by: Alexander Sverdlin --- arch/arm/include/asm/module.h | 9 + arch/arm/kernel/module-plts.c | 9 - 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/include/asm/module.h b/arch/arm

[PATCH 0/3] ARM: Implement MODULE_PLT support in FTRACE

2018-02-23 Thread Alexander Sverdlin
FTRACE's function tracer currently doesn't always work on ARM with MODULE_PLT option enabled. If the module is loaded too far, FTRACE's code modifier cannot cope with introduced veneers and turns the function tracer off globally. ARM64 already has a solution for the problem, refer to the following

[PATCH 3/3] ftrace: Add MODULE_PLTS support

2018-02-23 Thread Alexander Sverdlin
Teach ftrace_make_call() and ftrace_make_nop() about PLTs. Teach PLT code about FTRACE and all its callbacks. Otherwise the following might happen: [ cut here ] WARNING: CPU: 14 PID: 2265 at .../arch/arm/kernel/insn.c:14 __arm_gen_branch+0x83/0x8c() ... Hardware name: LSI

[PATCH 1/3] ftrace: Add module to ftrace_make_call() parameters

2018-02-23 Thread Alexander Sverdlin
ARM support for modules' PLTs will require a module pointer in ftrace_make_call() exactly as ftrace_make_nop() has it. Change the function signature without functional change for now. Signed-off-by: Alexander Sverdlin --- arch/arm/kernel/ftrace.c | 3 ++- arch/arm64/kernel/ftrace.c

Re: [PATCH] perf annotate: Support to display the LBR data in tui mode

2018-02-23 Thread Andi Kleen
On Fri, Feb 23, 2018 at 12:29:06PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 23, 2018 at 09:25:00AM +0100, Peter Zijlstra escreveu: > > On Fri, Feb 23, 2018 at 10:35:58PM +0800, Jin Yao wrote: > > > Unlike the perf report interactive annotate mode, the perf annotate > > > doesn't display

Re: [RFC 1/4] drm: Add writeback connector type

2018-02-23 Thread Sean Paul
On Fri, Feb 23, 2018 at 04:48:58PM +, Liviu Dudau wrote: > On Fri, Feb 23, 2018 at 11:43:29AM -0500, Sean Paul wrote: > > On Fri, Feb 23, 2018 at 11:25:11AM -0500, Rob Clark wrote: > > > On Fri, Feb 23, 2018 at 10:59 AM, Sean Paul wrote: > > > > > > > > Have we considered hiding writeback behi

Re: [PATCH v2] x86/apic: Move pending intr check code into it's own function

2018-02-23 Thread kbuild test robot
Hi Dou, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/auto-latest] [also build test ERROR on v4.16-rc2 next-20180223] [cannot apply to tip/x86/core] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url

RE: [PATCH] scsi: lpfc: use memcpy_toio instead of writeq

2018-02-23 Thread David Laight
From: Andy Shevchenko > Sent: 23 February 2018 16:51 > On Fri, Feb 23, 2018 at 6:41 PM, David Laight wrote: > > From: Arnd Bergmann > >> Sent: 23 February 2018 15:37 > >> > >> 32-bit architectures generally cannot use writeq(), so we now get a build > >> failure for the lpfc driver: > >> > >> driv

Re: Removing architectures without upstream gcc support

2018-02-23 Thread Guenter Roeck
On Fri, Feb 23, 2018 at 03:43:16PM +, Alan Cox wrote: > > Regarding the older architectures I mentioned (m32r, frv, mn10300), > > the situation is a bit different as they don't have the problems with > > build testing but they do have problems with using less of the > > standard interfaces (sys

Re: [PATCH] scsi: lpfc: use memcpy_toio instead of writeq

2018-02-23 Thread Andy Shevchenko
On Fri, Feb 23, 2018 at 7:09 PM, David Laight wrote: > From: Andy Shevchenko >> Sent: 23 February 2018 16:51 >> On Fri, Feb 23, 2018 at 6:41 PM, David Laight >> wrote: >> The side-effect I referred previously is about tails, i.e. unaligned >> bytes are transferred in portions >> like >> 7 on

Re: Removing architectures without upstream gcc support

2018-02-23 Thread Richard Kuo
On Thu, Feb 22, 2018 at 11:43:10PM +0100, Arnd Bergmann wrote: > On Thu, Feb 22, 2018 at 8:17 PM, Richard Kuo wrote: > > On Thu, Feb 22, 2018 at 04:45:06PM +0100, Arnd Bergmann wrote: > >> * Hexagon is Qualcomm's DSP architecture. It is being actively used > >> in all Snapdragon ARM SoCs, but th

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

2018-02-23 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 v3 4/6] ARM: at91: Implement clocksource selection

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

[PATCH v3 5/6] ARM: configs: at91: use new TCB timer driver

2018-02-23 Thread Alexandre Belloni
Unselecting ATMEL_TCLIB switches the TCB timer driver from tcb_clksrc to timer-atmel-tcb. Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91_dt_defconfig | 1 - arch/arm/configs/sama5_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm/configs/at91_dt_defconfig b/a

[PATCH][next] xen-netback: make function xenvif_rx_skb static

2018-02-23 Thread Colin King
From: Colin Ian King The function xenvif_rx_skb is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: drivers/net/xen-netback/rx.c:422:6: warning: symbol 'xenvif_rx_skb' was not declared. Should it be static? Signed-off-by: Colin Ian King

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

2018-02-23 Thread Alexandre Belloni
Hi, This series gets back on the TCB drivers rework. 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 P

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

2018-02-23 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

[PATCH v3 3/6] clocksource/drivers: atmel-pit: make option silent

2018-02-23 Thread Alexandre Belloni
To conform with the other option, make the ATMEL_PIT option silent so it can be selected from the platform Signed-off-by: Alexandre Belloni --- drivers/clocksource/Kconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kc

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

2018-02-23 Thread Alexandre Belloni
Add registers and bits definitions for the timer counter blocks found on Atmel ARM SoCs. Signed-off-by: Alexandre Belloni --- include/soc/at91/atmel_tcb.h | 216 +++ 1 file changed, 216 insertions(+) create mode 100644 include/soc/at91/atmel_tcb.h diff -

Re: [PATCH v2] x86/apic: Move pending intr check code into it's own function

2018-02-23 Thread kbuild test robot
Hi Dou, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/auto-latest] [also build test ERROR on v4.16-rc2 next-20180223] [cannot apply to tip/x86/core] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url

Re: [PATCH 1/3] KVM: x86: use native MSR ops for SPEC_CTRL

2018-02-23 Thread Konrad Rzeszutek Wilk
On Fri, Feb 23, 2018 at 10:37:49AM +0100, Paolo Bonzini wrote: > On 22/02/2018 18:07, Konrad Rzeszutek Wilk wrote: > >> Having a paravirt indirect call in the IBRS restore path is not a > >> good idea, since we are trying to protect from speculative execution > >> of bogus indirect branch targets.

Re: [RFC PATCH 0/2] serial: 8250_dw: IO space + polling mode support

2018-02-23 Thread Andy Shevchenko
On Fri, 2018-02-23 at 11:02 +, John Garry wrote: > On 23/02/2018 10:30, Andy Shevchenko wrote: > > On Fri, 2018-02-23 at 02:42 +0800, John Garry wrote: > > > There is a requirement > > > Where? > > We require it for a development board for our hip06 platform. Okay, and this particular platfo

Re: Reasoning about memory ordering

2018-02-23 Thread Andrea Parri
On Fri, Feb 23, 2018 at 02:30:22PM +0200, Nikolay Borisov wrote: > Hello, > > I'm cc'ing a bunch of people I know are well-versed in > the black arts of memory ordering! > > Currently in btrfs we have roughly the following sequence: > > T1:

Re: [RFC PATCH 2/2] serial: 8250_dw: support polling mode

2018-02-23 Thread Andy Shevchenko
On Fri, 2018-02-23 at 02:42 +0800, John Garry wrote: > It would be useful to make this driver support some > 8250-compatible devices which have no interrupt line. > > For these, we allow for no interrupt, and will fallback on > polling mode. > > Note: the 8250 dt bindings state that "interrupts"

Re: [PATCH 1/3] KVM: x86: use native MSR ops for SPEC_CTRL

2018-02-23 Thread Paolo Bonzini
On 23/02/2018 18:22, Konrad Rzeszutek Wilk wrote: > On Fri, Feb 23, 2018 at 10:37:49AM +0100, Paolo Bonzini wrote: >> On 22/02/2018 18:07, Konrad Rzeszutek Wilk wrote: Having a paravirt indirect call in the IBRS restore path is not a good idea, since we are trying to protect from speculat

Re: [PATCH v2 1/2] irqchip: stm32: Optimizes and cleans up stm32-exti irq_domain

2018-02-23 Thread Radosław Pietrzyk
I don't fully get it to be honest. If interrupt is pending it must have been enabled (unmasked) and requires to be handled acked. It will be acked by irq_chip.irq_ack handler within the edge handler. Therefore this additional acking is meaningless. 2018-02-23 16:46 GMT+01:00 Ludovic BARRE : > hi R

Re: [PATCH 1/2] pci: endpoint: Free func_name after last usage

2018-02-23 Thread Rolf Evers-Fischer
Hi Kishon, On Fri, 23 Feb 2018, Kishon Vijay Abraham I wrote: > On Friday 23 February 2018 03:06 PM, Lorenzo Pieralisi wrote: > > On Fri, Feb 23, 2018 at 11:40:49AM +0530, Kishon Vijay Abraham I wrote: > >> Hi Lorenzo, > >> > >> On Thursday 22 February 2018 11:49 PM, Lorenzo Pieralisi wrote: > >>>

Re: [PATCH v2 6/6] fs/dcache: Avoid remaining try_lock loop in shrink_dentry_list()

2018-02-23 Thread Al Viro
On Fri, Feb 23, 2018 at 03:09:28PM +, Al Viro wrote: > You are conflating the "we have a reference" cases with this one, and > they are very different. Note, BTW, that had we raced with somebody > else grabbing a reference, we would've quietly dropped dentry from > the shrink list; what if we

Re: [Freedreno] [PATCH v7 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2018-02-23 Thread Vivek Gautam
On Fri, Feb 23, 2018 at 9:10 PM, Jordan Crouse wrote: > On Fri, Feb 23, 2018 at 04:06:39PM +0530, Vivek Gautam wrote: >> On Fri, Feb 23, 2018 at 5:22 AM, Jordan Crouse >> wrote: >> > On Wed, Feb 07, 2018 at 04:01:19PM +0530, Vivek Gautam wrote: >> >> From: Sricharan R >> >> >> >> The smmu devic

Re: [PATCH][next] xen-netback: make function xenvif_rx_skb static

2018-02-23 Thread Wei Liu
On Fri, Feb 23, 2018 at 05:16:57PM +, Colin King wrote: > From: Colin Ian King > > The function xenvif_rx_skb is local to the source and does not need > to be in global scope, so make it static. > > Cleans up sparse warning: > drivers/net/xen-netback/rx.c:422:6: warning: symbol 'xenvif_rx_sk

RE: [PATCH] scsi: lpfc: use memcpy_toio instead of writeq

2018-02-23 Thread David Laight
From: Andy Shevchenko > Sent: 23 February 2018 17:13 > To: David Laight > Cc: Arnd Bergmann; James Smart; Dick Kennedy; James E.J. Bottomley; Martin K. > Petersen; Hannes > Reinecke; Johannes Thumshirn; linux-s...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] scsi: lpfc:

Re: [PATCH] atm: idt77252: remove redundant bit-wise or'ing of zero

2018-02-23 Thread David Miller
From: Colin King Date: Fri, 23 Feb 2018 12:22:52 + > From: Colin Ian King > > Zero is being bit-wise or'd in a calculation twice; these are redundant > and can be removed. > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH bpf-next] bpf: NULL pointer check is not needed in BPF_CGROUP_RUN_PROG_INET_SOCK

2018-02-23 Thread David Miller
From: Yafang Shao Date: Fri, 23 Feb 2018 14:58:41 +0800 > sk is already allocated in inet_create/inet6_create, hence when > BPF_CGROUP_RUN_PROG_INET_SOCK is executed sk will never be NULL. > > The logic is as bellow, > sk = sk_alloc(); > if (!sk) > goto out; > BPF

Re: Reasoning about memory ordering

2018-02-23 Thread Nikolay Borisov
On 23.02.2018 19:31, Andrea Parri wrote: > On Fri, Feb 23, 2018 at 02:30:22PM +0200, Nikolay Borisov wrote: >> Hello, >> >> I'm cc'ing a bunch of people I know are well-versed in >> the black arts of memory ordering! >> >> Currently in btrfs we have roughly the following sequence: >> >> T1:

[PATCH] perf: Reduce memory usage of asnprinf_expr_inout_ints

2018-02-23 Thread Alex Diaz
Originally a formula was hardcoded to allocate 28 bytes per integer passed to asprintf_expr_inout_ints. This commit replaces said formula and only allocates as many bytes as needed. This commit saves memory in cases where numbers passed are small in magnitude. Signed-off-by: Alex Diaz --- tools

Re: [PATCH 1/3] KVM: x86: use native MSR ops for SPEC_CTRL

2018-02-23 Thread Konrad Rzeszutek Wilk
On Fri, Feb 23, 2018 at 06:35:30PM +0100, Paolo Bonzini wrote: > On 23/02/2018 18:22, Konrad Rzeszutek Wilk wrote: > > On Fri, Feb 23, 2018 at 10:37:49AM +0100, Paolo Bonzini wrote: > >> On 22/02/2018 18:07, Konrad Rzeszutek Wilk wrote: > Having a paravirt indirect call in the IBRS restore pat

Re: [RFC PATCH v3 6/8] x86/pti: don't mark the user PGD with _PAGE_NX.

2018-02-23 Thread Konrad Rzeszutek Wilk
On Wed, Jan 10, 2018 at 08:28:26PM +, Woodhouse, David wrote: > On Wed, 2018-01-10 at 11:59 -0800, Andy Lutomirski wrote: > > On Wed, Jan 10, 2018 at 11:54 AM, Linus Torvalds > > wrote: > > > > > > On Wed, Jan 10, 2018 at 11:28 AM, Willy Tarreau wrote: > > > > > > > > Since we're going to k

Re: [PATCH] arm64: rename the function arm64_is_ras_serror() to avoid confusion

2018-02-23 Thread James Morse
Hi Dongjiu Geng, On 22/02/18 18:02, Dongjiu Geng wrote: > The RAS SError Syndrome can be Implementation-Defined, > arm64_is_ras_serror() is used to judge whether it is RAS SError, > but arm64_is_ras_serror() does not include this judgement. In order > to avoid function name confusion, we rename th

[GIT] Networking

2018-02-23 Thread David Miller
1) Fix TTL offset calculation in mac80211 mesh code, from Peter Oh. 2) Fix races with procfs in ipt_CLUSTERIP, from Cong Wang. 3) Memory leak fix in lpm_trie BPF map code, from Yonghong Song. 4) Need to use GFP_ATOMIC in BPF cpumap allocations, from Jason Wang. 5) Fix potential deadlocks in ne

Re: [PATCH] kvm: fix warning for CONFIG_HAVE_KVM_EVENTFD builds

2018-02-23 Thread Paolo Bonzini
On 23/02/2018 16:21, Christian Borntraeger wrote: > I can see this warnings as well and yes, kvm_arch_irq_routing_update seems to > be available > for CONFIG_HAVE_KVM_EVENTFD=y and =n. > Seems that irqchip.c is compile independly from CONFIG_HAVE_KVM_EVENTFD, > > so > > Acked-by: Christian Bornt

Re: [PATCH] KVM: SVM: Fix sparse: incorrect type in argument 1 (different base types)

2018-02-23 Thread Paolo Bonzini
On 22/02/2018 16:56, Brijesh Singh wrote: > > > On 02/21/2018 02:18 PM, Al Viro wrote: >> On Wed, Feb 21, 2018 at 01:59:55PM -0600, Brijesh Singh wrote: >> >>> Sure, checking access_ok() does not guarantee that later >>> copy_from_user() will not fail. But it does eliminate one possible >>> reaso

Re: [PATCH] kvm: fix warning for non-x86 builds

2018-02-23 Thread Paolo Bonzini
On 22/02/2018 13:04, Sebastian Ott wrote: > Fix the following sparse warning by moving the prototype > of kvm_arch_mmu_notifier_invalidate_range() to linux/kvm_host.h . > > CHECK arch/s390/kvm/../../../virt/kvm/kvm_main.c > arch/s390/kvm/../../../virt/kvm/kvm_main.c:138:13: warning: symbol >

[PATCH v2] sched/fair: Remove check in idle_balance against migration_cost

2018-02-23 Thread Rohit Jain
Patch "1b9508f6 sched: Rate-limit newidle" reduced the CPU time spent in idle_balance() by refusing to balance if the average idle time was less than sysctl_sched_migration_cost. Since then, more refined methods for reducing CPU time have been added, including dynamic measurement of search cost in

Is: RSB Alternative bit in IA32_ARCH_CAPABILITIES Was:Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-23 Thread Konrad Rzeszutek Wilk
On Tue, Feb 20, 2018 at 03:46:57PM +0100, Paolo Bonzini wrote: > On 20/02/2018 15:08, Van De Ven, Arjan wrote: > For bonus points: What should happen to a VM that is live migrated > from one hypervisor to another, and the hypervisors have different > IBRS support? > >>> > >>> Doctor

Re: [RFC 4/4] drm/msm/mdp5: writeback support

2018-02-23 Thread Rob Clark
On Fri, Feb 23, 2018 at 11:30 AM, Sean Paul wrote: > On Fri, Feb 23, 2018 at 08:17:54AM -0500, Rob Clark wrote: >> In a way, based on the original writeback patch from Jilai Wang, but a >> lot has shifted around since then. >> >> Signed-off-by: Rob Clark >> --- >> drivers/gpu/drm/msm/Makefile

Re: `do_IRQ: 1.55 No irq handler for vector` on ASRock E350M1

2018-02-23 Thread Thomas Gleixner
Paul, On Fri, 23 Feb 2018, Paul Menzel wrote: > > On the ASRock E350M1 (AMD A50M), since Linux 4.15 I get the message below. > > do_IRQ: 1.55 No irq handler for vector Thanks for the report, but the single line of dmesg w/o any context is not really helpful. Can you please provide a larger

RE: RSB Alternative bit in IA32_ARCH_CAPABILITIES Was:Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-23 Thread Van De Ven, Arjan
> To add a bit more to this, Intel just updated their > IA32_ARCH_CAPABILITIES_MSR > to have a new bit to sample to figure out whether you need IBRS or not > during runtime. actually we updated the document when you need RSB stuffing. based on the request of various folks here on LKML.

Re: Removing architectures without upstream gcc support

2018-02-23 Thread Al Viro
On Fri, Feb 23, 2018 at 09:10:19AM -0800, Guenter Roeck wrote: > FWIW, alpha and m68k are known boot with qemu (even though m68k > generates a warning traceback with the mainline kernel). alpha works with qemu (I considered putting together a debian autobuilder on that, got mired in the scripts;

Re: [PATCH] KVM: SVM: Fix sparse: incorrect type in argument 1 (different base types)

2018-02-23 Thread Brijesh Singh
On 02/23/2018 12:05 PM, Paolo Bonzini wrote: On 22/02/2018 16:56, Brijesh Singh wrote: On 02/21/2018 02:18 PM, Al Viro wrote: On Wed, Feb 21, 2018 at 01:59:55PM -0600, Brijesh Singh wrote: Sure, checking access_ok() does not guarantee that later copy_from_user() will not fail. But it does

Re: [PATCH] fs: proc: use down_read_killable in proc_pid_cmdline_read()

2018-02-23 Thread Yang Shi
On 2/21/18 11:57 AM, Alexey Dobriyan wrote: On Tue, Feb 20, 2018 at 03:38:24PM -0800, Yang Shi wrote: On 2/20/18 2:38 PM, Alexey Dobriyan wrote: On Wed, Feb 21, 2018 at 03:49:29AM +0800, Yang Shi wrote: When running vm-scalability with large memory (> 300GB), the below hung task issue happe

[PATCH 3.18 13/58] Btrfs: fix deadlock in run_delalloc_nocow

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Liu Bo commit e89166990f11c3f21e1649d760dd35f9e410321c upstream. @cur_offset is not set back to what it should be (@cow_start) if btrfs_next_leaf() returns something wrong, and the range [cow_

[PATCH 3.18 16/58] ARM: dts: s5pv210: add interrupt-parent for ohci

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 5c1037196b9ee75897c211972de370ed1336ec8f upstream. The ohci-hcd node has an interrupt number but no interrupt-parent, leading to a warning with current dtc versions: arch

[PATCH 3.18 26/58] netfilter: on sockopt() acquire sock lock only in the required scope

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni commit 3f34cfae1238848fd53f25e5c8fd59da57901f4b upstream. Syzbot reported several deadlocks in the netfilter area caused by rtnl lock and socket lock being acquired with a differen

[PATCH 3.18 31/58] ASoC: ux500: add MODULE_LICENSE tag

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 1783c9d7cb7bc3181b9271665959b87280d98d8e upstream. This adds MODULE_LICENSE/AUTHOR/DESCRIPTION tags to the ux500 platform drivers, to avoid these build warnings: WARNING:

[PATCH 3.18 36/58] ARM: AM33xx: PRM: Remove am33xx_pwrdm_read_prev_pwrst function

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Keerthy [ Upstream commit b6d6af7226465b6d11eac09d0be2ab78a4a9eb62 ] Referring TRM Am335X series: http://www.ti.com/lit/ug/spruh73p/spruh73p.pdf The LastPowerStateEntered bitfield is present

[PATCH 3.18 34/58] usbip: keep usbip_device sockfd state in sync with tcp_socket

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Shuah Khan commit 009f41aed4b3e11e6dc1e3c07377a10c20f1a5ed upstream. Keep usbip_device sockfd state in sync with tcp_socket. When tcp_socket is reset to null, reset sockfd to -1 to keep it in

[PATCH 3.18 32/58] video: fbdev/mmp: add MODULE_LICENSE

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit c1530ac5a3ce93a1f02adabc4508b5fbf862dfe2 upstream. Kbuild complains about the lack of a license tag in this driver: WARNING: modpost: missing MODULE_LICENSE() in drivers/

[PATCH 3.18 28/58] net: avoid skb_warn_bad_offload on IS_ERR

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Willem de Bruijn commit 8d74e9f88d65af8bb2e095aff506aa6eac755ada upstream. skb_warn_bad_offload warns when packets enter the GSO stack that require skb_checksum_help or vice versa. Do not warn

[PATCH 3.18 03/58] s390: fix handling of -1 in set{,fs}[gu]id16 syscalls

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eugene Syromiatnikov commit 6dd0d2d22aa363fec075cb2577ba273ac8462e94 upstream. For some reason, the implementation of some 16-bit ID system calls (namely, setuid16/setgid16 and setfsuid16/setf

[PATCH 3.18 09/58] ext4: save error to disk in __ext4_grp_locked_error()

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Zhouyi Zhou commit 06f29cc81f0350261f59643a505010531130eea0 upstream. In the function __ext4_grp_locked_error(), __save_error_info() is called to save error info in super block block, but does

[PATCH 3.18 01/58] IB/mlx4: Fix incorrectly releasing steerable UD QPs when have only ETH ports

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jack Morgenstein commit 852f6927594d0d3e8632c889b2ab38cbc46476ad upstream. Allocating steerable UD QPs depends on having at least one IB port, while releasing those QPs does not. As a result,

[PATCH 3.18 06/58] arm: spear13xx: Fix spics gpio controllers warning

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Viresh Kumar commit f8975cb1b8a36d0839b6365235778dd9df1d04ca upstream. This fixes the following warning by also sending the flags argument for gpio controllers: Property 'cs-gpios', cell 6 is

[PATCH 3.18 50/58] spi: sun4i: disable clocks in the remove function

2018-02-23 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Takuo Koguchi [ Upstream commit c810daba0ab5226084a56893a789af427a801146 ] mclk and hclk need to be disabled. Since pm_runtime_disable does not disable the clocks, use pm_runtime_force_suspen

[PATCH 4.4 013/193] staging: android: ion: Add __GFP_NOWARN for system contig heap

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Laura Abbott commit 0c75f10312a35b149b2cebb1832316b35c2337ca upstream. syzbot reported a warning from Ion: WARNING: CPU: 1 PID: 3485 at mm/page_alloc.c:3926 ... __alloc_pages_nodemask+

[PATCH 4.4 018/193] netfilter: on sockopt() acquire sock lock only in the required scope

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni commit 3f34cfae1238848fd53f25e5c8fd59da57901f4b upstream. Syzbot reported several deadlocks in the netfilter area caused by rtnl lock and socket lock being acquired with a different

[PATCH 4.4 002/193] net: replace dst_cache ip6_tunnel implementation with the generic one

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni commit 607f725f6f7d5ec3759fbc16224afb60e2152a5b upstream. This also fix a potential race into the existing tunnel code, which could lead to the wrong dst to be permanenty cached: C

[PATCH 4.4 003/193] cfg80211: check dev_set_name() return value

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit 59b179b48ce2a6076448a44531242ac2b3f6cef2 upstream. syzbot reported a warning from rfkill_alloc(), and after a while I think that the reason is that it was doing fault injec

[PATCH 4.4 007/193] blktrace: fix unlocked registration of tracepoints

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jens Axboe commit a6da0024ffc19e0d47712bb5ca4fd083f76b07df upstream. We need to ensure that tracepoints are registered and unregistered with the users of them. The existing atomic count isn't e

[PATCH 4.4 043/193] powerpc/perf: Fix oops when grouping different pmu events

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ravi Bangoria [ Upstream commit 5aa04b3eb6fca63d2e9827be656dcadc26d54e11 ] When user tries to group imc (In-Memory Collections) event with normal event, (sometime) kernel crashes with followin

[PATCH 4.4 055/193] xfrm: Fix stack-out-of-bounds with misconfigured transport mode policies.

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Steffen Klassert [ Upstream commit 732706afe1cc46ef48493b3d2b69c98f36314ae4 ] On policies with a transport mode template, we pass the addresses from the flowi to xfrm_state_find(), assuming th

[PATCH 4.4 000/193] 4.4.118-stable review

2018-02-23 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.118 release. There are 193 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 made by Sun Feb 25 17:02:20 UTC 2018. Anything recei

[PATCH 4.4 050/193] dmaengine: ioat: Fix error handling path

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Christophe JAILLET [ Upstream commit 5c9afbda911ce20b3f2181d1e440a0222e1027dd ] If the last test in 'ioat_dma_self_test()' fails, we must release all the allocated resources and not just part

[PATCH 4.4 063/193] isdn: icn: remove a #warning

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 01ed1e1504ac83a8b0b365c9f55d3427babbd7d9 upstream. The icn driver currently produces an unconditional #warning whenever we build it, introduced by Karsten Keil back in 2003

[PATCH 4.4 070/193] arm64: define BUG() instruction without CONFIG_BUG

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit f13d52cb3fad03c237572be2ee691e1fe2d1d7bb upstream. This mirrors commit e9c38ceba8d9 ("ARM: 8455/1: define __BUG as asm(BUG_INSTR) without CONFIG_BUG") to make the behavior

[PATCH 4.4 068/193] scsi: advansys: fix build warning for PCI=n

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit f46e7cd36b5f2ce2bfb567e278a10ca717f85b84 upstream. The advansys probe function tries to handle both ISA and PCI cases, each hidden in an #ifdef when unused. This leads to a

[PATCH 4.4 039/193] RDMA/cma: Make sure that PSN is not over max allowed

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Moni Shoua [ Upstream commit 23a9cd2ad90543e9da3786878d2b2729c095439d ] This patch limits the initial value for PSN to 24 bits as spec requires. Signed-off-by: Moni Shoua Signed-off-by: Muke

[PATCH 4.4 088/193] md: avoid warning for 32-bit sector_t

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 3312c951efaba55080958974047414576b9e5d63 upstream. When CONFIG_LBDAF is not set, sector_t is only 32-bits wide, which means we cannot have devices with more than 2TB, and t

[PATCH 4.4 095/193] fbdev: sis: enforce selection of at least one backend

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 5b833fea4377577eafecb888141a05470922ef25 upstream. The sis framebuffer driver complains with a compile-time warning if neither the FB_SIS_300 nor FB_SIS_315 symbols are sel

[PATCH 4.4 090/193] mtd: maps: add __init attribute

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Julia Lawall commit e4106a7c8236eb7b91686d36f3bf33ee43db94b4 upstream. Add __init attribute on functions that are only called from other __init functions and that are not inlined, at least with

[PATCH 4.4 100/193] usb: musb/ux500: remove duplicate check for dma_is_compatible

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 62a6abdd427b5fc4d8aad5dac874904e96273e6d upstream. When dma_addr_t is 64-bit, we get a warning about an invalid cast in the call to ux500_dma_is_compatible() from ux500_dma

[PATCH 4.4 079/193] ALSA: hda/ca0132 - fix possible NULL pointer use

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 46a049dae771b95e77ac6c823330f4a60f600236 upstream. gcc-7 caught what it considers a NULL pointer dereference: sound/pci/hda/patch_ca0132.c: In function 'dspio_scp.constpro

[PATCH 4.4 077/193] scsi: advansys: fix uninitialized data access

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 44a5b977128c00654392b40f4c2ce72a619b upstream. gcc-7.0.1 now warns about a previously unnoticed access of uninitialized struct members: drivers/scsi/advansys.c: In fun

[PATCH 4.4 111/193] fbdev: sm712fb: avoid unused function warnings

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 24ed78dc2e8b2428eccc70c3162e70d33ab448c4 upstream. The sm712fb framebuffer driver encloses the power-management functions in #ifdef CONFIG_PM, but the smtcfb_pci_suspend/re

[PATCH 4.4 108/193] fbdev: s6e8ax0: avoid unused function warnings

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit b54729b6cea7d1f46b1ed70cb7065c6bdefaa780 upstream. The s6e8ax0 suspend/resume functions are hidden inside of an #ifdef when CONFIG_PM is set to avoid unused function warnin

[PATCH 4.4 104/193] fbdev: auo_k190x: avoid unused function warnings

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit a8a31afad5ffa1c7de0cef1c4bc383b50f426bf8 upstream. The auo_k190x framebuffer driver encloses the power-management functions in #ifdef CONFIG_PM, but the auok190x_suspend/re

[PATCH 4.4 106/193] mtd: sh_flctl: pass FIFO as physical address

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 1873315fb156cbc8e46f28e8b128f17ff6c31728 upstream. By convention, the FIFO address we pass using dmaengine_slave_config is a physical address in the form that is understood

[PATCH 4.4 080/193] reiserfs: avoid a -Wmaybe-uninitialized warning

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit ab4949640d6674b617b314ad3c2c00353304bab9 upstream. The latest gcc-7.0.1 snapshot warns about an unintialized variable use: In file included from fs/reiserfs/lbalance.c:8:0

[PATCH 4.4 130/193] [media] tc358743: fix register i2c_rd/wr functions

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 3538aa6ecfb2dd727a40f9ebbbf25a0c2afe6226 upstream. While testing with CONFIG_UBSAN, I got this warning: drivers/media/i2c/tc358743.c: In function 'tc358743_probe': drivers

[PATCH 4.4 115/193] staging: wilc1000: fix kbuild test robot error

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Glen Lee commit b22fa80cdbf4ff1056ecddb4efdcc0ede5f5f422 upstream. This patch fixes build warning and error reported by kbuild test robot. It is fixed by including netdevice.h. >> drivers/stag

<    1   2   3   4   5   6   7   8   9   10   >