Re: [PATCH v3 3/3] powerpc/module64: Use symbolic instructions names.

2019-07-12 Thread Michael Ellerman
Christophe Leroy writes: > Le 08/07/2019 à 02:56, Michael Ellerman a écrit : >> Christophe Leroy writes: >>> To increase readability/maintainability, replace hard coded >>> instructions values by symbolic names. >>> >>> Signed-off-by: Christophe Leroy >>> --- >>> v3: fixed warning by adding () i

Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-07-12 Thread Michal Hocko
On Thu 11-07-19 23:25:44, Hoan Tran OS wrote: > In NUMA layout which nodes have memory ranges that span across other nodes, > the mm driver can detect the memory node id incorrectly. > > For example, with layout below > Node 0 address: > Node 1 address: > >

Re: [PATCH] vfio: platform: reset: add support for XHCI reset hook

2019-07-12 Thread Auger Eric
Hi Gregory, On 7/11/19 4:31 PM, Gregory CLEMENT wrote: > The VFIO reset hook is called every time a platform device is passed > to a guest or removed from a guest. > > When the XHCI device is unbound from the host, the host driver > disables the XHCI clocks/phys/regulators so when the device is p

[PATCH v4 0/3] Forced-wakeup for stop states on Powernv

2019-07-12 Thread Abhishek Goel
Currently, the cpuidle governors determine what idle state a idling CPU should enter into based on heuristics that depend on the idle history on that CPU. Given that no predictive heuristic is perfect, there are cases where the governor predicts a shallow idle state, hoping that the CPU will be bus

[RFC v4 2/3] cpuidle : Add callback whenever a state usage is enabled/disabled

2019-07-12 Thread Abhishek Goel
To force wakeup a cpu, we need to compute the timeout in the fast idle path as a state may be enabled or disabled but there did not exist a feedback to driver when a state is enabled or disabled. This patch adds a callback whenever a state_usage records a store for disable attribute. Signed-off-by

[PATCH v4 1/3] cpuidle-powernv : forced wakeup for stop states

2019-07-12 Thread Abhishek Goel
Currently, the cpuidle governors determine what idle state a idling CPU should enter into based on heuristics that depend on the idle history on that CPU. Given that no predictive heuristic is perfect, there are cases where the governor predicts a shallow idle state, hoping that the CPU will be bus

[RFC v4 3/3] cpuidle-powernv : Recompute the idle-state timeouts when state usage is enabled/disabled

2019-07-12 Thread Abhishek Goel
The disable callback can be used to compute timeout for other states whenever a state is enabled or disabled. We store the computed timeout in "timeout" defined in cpuidle state strucure. So, we compute timeout only when some state is enabled or disabled and not every time in the fast idle path. We

Re: [PATCH] scatterlist: Allocate a contiguous array instead of chaining

2019-07-12 Thread Thomas Gleixner
On Fri, 12 Jul 2019, Ming Lei wrote: > On Thu, Jul 11, 2019 at 11:36:56PM -0700, Sultan Alsawaf wrote: > > From: Sultan Alsawaf > > > > Typically, drivers allocate sg lists of sizes up to a few MiB in size. > > The current algorithm deals with large sg lists by splitting them into > > several sma

[PATCH] KVM: Boosting vCPUs that are delivering interrupts

2019-07-12 Thread Wanpeng Li
From: Wanpeng Li Inspired by commit 9cac38dd5d (KVM/s390: Set preempted flag during vcpu wakeup and interrupt delivery), except the lock holder, we want to also boost vCPUs that are delivering interrupts. Actually most smp_call_function_many calls are synchronous ipi calls, the ipi target vCPU

Re: [PATCH] mm: vmscan: scan anonymous pages on file refaults

2019-07-12 Thread Michal Hocko
On Fri 05-07-19 20:45:05, Kuo-Hsin Yang wrote: > With 4 processes accessing non-overlapping parts of a large file, 30316 > pages swapped out with this patch, 5152 pages swapped out without this > patch. The swapout number is small comparing to pgpgin. which is 5 times more swapout. This may be see

Re: [PATCH 2/3] DMA mapping: Move SME handling to x86-specific files

2019-07-12 Thread Christoph Hellwig
Honestly I think this code should go away without any replacement. There is no reason why we should have a special debug printk just for one specific reason why there is a requirement for a large DMA mask.

[PATCH RESEND] KVM: Boosting vCPUs that are delivering interrupts

2019-07-12 Thread Wanpeng Li
From: Wanpeng Li Inspired by commit 9cac38dd5d (KVM/s390: Set preempted flag during vcpu wakeup and interrupt delivery), except the lock holder, we want to also boost vCPUs that are delivering interrupts. Actually most smp_call_function_many calls are synchronous ipi calls, the ipi target vCPU

Re: [PATCH v1] Bluetooth: hci_qca: Send VS pre shutdown command.

2019-07-12 Thread Marcel Holtmann
Hi Harish, > WCN399x chips are coex chips, it needs a VS pre shutdown > command while turning off the BT. So that chip can inform > BT is OFF to other active clients. > > Signed-off-by: Harish Bandi > --- > drivers/bluetooth/btqca.c | 21 + > drivers/bluetooth/btqca.h | 7

[PATCHv3] clk: add imx8 clk defines

2019-07-12 Thread Oliver Graute
From: Anson Huang added header defines for imx8qm clock Signed-off-by: Anson Huang Signed-off-by: Oliver Graute Reviewed-by: Rob Herring --- - fixed authorship include/dt-bindings/clock/imx8qm-clock.h | 851 +++ 1 file changed, 851 insertions(+) create mode 100644 incl

Re: [PATCH] scatterlist: Allocate a contiguous array instead of chaining

2019-07-12 Thread Sultan Alsawaf
On Fri, Jul 12, 2019 at 09:06:40AM +0200, Thomas Gleixner wrote: > On Fri, 12 Jul 2019, Ming Lei wrote: > > vmalloc() may sleep, so it is impossible to be called in atomic context. > > Allocations from atomic context should be avoided wherever possible and you > really have to have a very convinci

Re: [PATCH v4 4/4] mm: introduce MADV_PAGEOUT

2019-07-12 Thread Michal Hocko
On Fri 12-07-19 14:18:28, Minchan Kim wrote: [...] > >From 41592f23e876ec21e49dc3c76dc89538e2bb16be Mon Sep 17 00:00:00 2001 > From: Minchan Kim > Date: Fri, 12 Jul 2019 14:05:36 +0900 > Subject: [PATCH] mm: factor out common parts between MADV_COLD and > MADV_PAGEOUT > > There are many common p

Re: [PATCH] phy: Change the configuration interface param to void* to make it more general

2019-07-12 Thread Maxime Ripard
On Fri, Jul 12, 2019 at 05:26:04PM +0800, Zeng Tao wrote: > The phy framework now allows runtime configurations, but only limited > to mipi now, and it's not reasonable to introduce user specified > configurations into the union phy_configure_opts structure. An simple > way is to replace with a voi

Re: [PATCH] [media] media: mtk-mdp: fix reference count on old device tree

2019-07-12 Thread houlong wei
On Mon, 2019-07-08 at 17:06 +0800, Matthias Brugger wrote: > > On 21/06/2019 13:32, Matthias Brugger wrote: > > of_get_next_child() increments the reference count of the returning > > device_node. Decrement it in the check if we are using the old or the > > new DTB. > > > > Fixes: ba1f1f70c2c0

Re: [PATCH] input: API for Setting a Timestamp from a Driver

2019-07-12 Thread Benjamin Tissoires
On Fri, Jul 12, 2019 at 8:41 AM Dmitry Torokhov wrote: > > Hi Atif, > > On Wed, Jul 10, 2019 at 04:04:10PM -0700, Atif Niyaz wrote: > > Currently, evdev stamps time with timestamps acquired in > > evdev_events. However, this timestamping may not be accurate in terms of > > measuring when the actua

Re: [PATCH v2] rtl8xxxu: Fix wifi low signal strength issue of RTL8723BU

2019-07-12 Thread Daniel Drake
On Fri, Jul 5, 2019 at 10:27 AM Chris Chiu wrote: > Per the code before REG_S0S1_PATH_SWITCH setting, the driver has told > the co-processor the antenna is inverse. > memset(&h2c, 0, sizeof(struct h2c_cmd)); > h2c.ant_sel_rsv.cmd = H2C_8723B_ANT_SEL_RSV; > h2c.ant_sel_rsv.a

Re: [PATCH RESEND] KVM: Boosting vCPUs that are delivering interrupts

2019-07-12 Thread Wanpeng Li
On Fri, 12 Jul 2019 at 15:15, Wanpeng Li wrote: > > From: Wanpeng Li > > Inspired by commit 9cac38dd5d (KVM/s390: Set preempted flag during vcpu wakeup > and interrupt delivery), except the lock holder, we want to also boost vCPUs > that are delivering interrupts. Actually most smp_call_function_

[PATCH 1/2] usb: dwc3: Use devres to get clocks

2019-07-12 Thread Andrey Smirnov
Use devres to get clocks and drop explicit clock freeing. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Felipe Balbi Cc: Chris Healy Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/usb/dwc3/core.c | 7 ++- 1 file changed

Re: [PATCH] waitqueue: fix clang -Wuninitialized warnings

2019-07-12 Thread Peter Zijlstra
On Tue, Jul 09, 2019 at 09:27:17PM +0200, Arnd Bergmann wrote: > On Wed, Jul 3, 2019 at 7:58 PM Nathan Chancellor > wrote: > > On Wed, Jul 03, 2019 at 10:10:55AM +0200, Arnd Bergmann wrote: > > > When CONFIG_LOCKDEP is set, every use of DECLARE_WAIT_QUEUE_HEAD_ONSTACK() > > > produces an annoying

[GIT PULL] Driver core patches for 5.3-rc1

2019-07-12 Thread Greg KH
The following changes since commit f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a: Linux 5.2-rc3 (2019-06-02 13:55:33 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git tags/driver-core-5.3-rc1 for you to fetch changes up to c33d44

Re: [GIT PULL] Driver core patches for 5.3-rc1

2019-07-12 Thread Greg KH
On Fri, Jul 12, 2019 at 09:36:23AM +0200, Greg KH wrote: > The following changes since commit f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a: > > Linux 5.2-rc3 (2019-06-02 13:55:33 -0700) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-co

[PATCH RESEND 1/2] KVM: LAPIC: Add pv ipi tracepoint

2019-07-12 Thread Wanpeng Li
From: Wanpeng Li Add pv ipi tracepoint. Cc: Paolo Bonzini Cc: Radim Krčmář Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 2 ++ arch/x86/kvm/trace.h | 25 + 2 files changed, 27 insertions(+) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 42da7e

[PATCH RESEND 2/2] KVM: X86: Add pv tlb shootdown tracepoint

2019-07-12 Thread Wanpeng Li
From: Wanpeng Li Add pv tlb shootdown tracepoint. Cc: Paolo Bonzini Cc: Radim Krčmář Signed-off-by: Wanpeng Li --- arch/x86/kvm/trace.h | 19 +++ arch/x86/kvm/x86.c | 2 ++ 2 files changed, 21 insertions(+) diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h index ce

Re: [GIT PULL] Driver core patches for 5.3-rc1

2019-07-12 Thread Greg KH
On Fri, Jul 12, 2019 at 09:36:23AM +0200, Greg KH wrote: > The following changes since commit f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a: > > Linux 5.2-rc3 (2019-06-02 13:55:33 -0700) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-co

Re: [GIT PULL] Driver core patches for 5.3-rc1

2019-07-12 Thread Greg KH
On Fri, Jul 12, 2019 at 09:36:23AM +0200, Greg KH wrote: > The following changes since commit f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a: > > Linux 5.2-rc3 (2019-06-02 13:55:33 -0700) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-co

Re: [PATCH] xen/pv: Fix a boot up hang triggered by int3 self test

2019-07-12 Thread Zhenzhong Duan
Sorry for the noise, it looks description is wrong. This is not a double pop, but xen pv taking the path with create_gap=0, I'll send a v2. Zhenzhong On 2019/7/11 12:47, Zhenzhong Duan wrote: Commit 7457c0da024b ("x86/alternatives: Add int3_emulate_call() selftest") reveals a bug in XEN PV in

Re: [RFC v2 01/26] mm/x86: Introduce kernel address space isolation

2019-07-12 Thread Alexandre Chartre
On 7/11/19 11:33 PM, Thomas Gleixner wrote: On Thu, 11 Jul 2019, Alexandre Chartre wrote: +/* + * When isolation is active, the address space doesn't necessarily map + * the percpu offset value (this_cpu_off) which is used to get pointers + * to percpu variables. So functions which can be invo

Re: [PATCH] waitqueue: fix clang -Wuninitialized warnings

2019-07-12 Thread Arnd Bergmann
On Fri, Jul 12, 2019 at 2:49 AM Andrew Morton wrote: > On Wed, 3 Jul 2019 10:10:55 +0200 Arnd Bergmann wrote: > > > Surely clang is being extraordinarily dumb here? > > DECLARE_WAIT_QUEUE_HEAD_ONSTACK() is effectively doing > > struct wait_queue_head name = ({ __init_waitqueue_head(&na

Re: linux-next: manual merge of the char-misc tree with the driver-core tree

2019-07-12 Thread Greg KH
On Tue, Jul 09, 2019 at 09:20:03AM +1000, Stephen Rothwell wrote: > Hi all, > > On Thu, 13 Jun 2019 15:53:44 +1000 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the char-misc tree got a conflict in: > > > > drivers/misc/vmw_balloon.c > > > > between commit: > > > > 225afca

Re: [RFC v2 02/26] mm/asi: Abort isolation on interrupt, exception and context switch

2019-07-12 Thread Alexandre Chartre
On 7/12/19 2:05 AM, Andy Lutomirski wrote: On Jul 11, 2019, at 8:25 AM, Alexandre Chartre wrote: Address space isolation should be aborted if there is an interrupt, an exception or a context switch. Interrupt/exception handlers and context switch code need to run with the full kernel addr

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-12 Thread Arnd Bergmann
On Thu, Jul 11, 2019 at 11:29 PM Arnd Bergmann wrote: > > On Thu, Jul 11, 2019 at 11:05 PM 'Jann Horn' via Clang Built Linux > wrote: > > I was playing around with building the kernel with LLVM a few months > > ago and used this local patch, but didn't get around to submitting > > upstream becaus

Re: [PATCH 4/4] numa: introduce numa cling feature

2019-07-12 Thread Peter Zijlstra
On Fri, Jul 12, 2019 at 11:10:08AM +0800, 王贇 wrote: > On 2019/7/11 下午10:27, Peter Zijlstra wrote: > >> Thus we introduce the numa cling, which try to prevent tasks leaving > >> the preferred node on wakeup fast path. > > > > > >> @@ -6195,6 +6447,13 @@ static int select_idle_sibling(struct task_

[PATCH] perf diff: Report noisy for cycles diff

2019-07-12 Thread Jin Yao
This patch prints the stddev and hist for the cycles diff of program block. It can help us to understand if the cycles diff is noisy or not. This patch is inspired by Andi Kleen's patch https://lwn.net/Articles/600471/ We create new option '-n or --noisy'. Example: perf record -b ./div perf rec

Re: [PATCH] waitqueue: fix clang -Wuninitialized warnings

2019-07-12 Thread Nathan Chancellor
On Fri, Jul 12, 2019 at 09:45:06AM +0200, Arnd Bergmann wrote: > On Fri, Jul 12, 2019 at 2:49 AM Andrew Morton > wrote: > > On Wed, 3 Jul 2019 10:10:55 +0200 Arnd Bergmann wrote: > > > > > > > Surely clang is being extraordinarily dumb here? > > > > DECLARE_WAIT_QUEUE_HEAD_ONSTACK() is effect

Re: [PATCH 1/4] numa: introduce per-cgroup numa balancing locality, statistic

2019-07-12 Thread Peter Zijlstra
On Fri, Jul 12, 2019 at 11:43:17AM +0800, 王贇 wrote: > > > On 2019/7/11 下午9:47, Peter Zijlstra wrote: > [snip] > >> + rcu_read_lock(); > >> + memcg = mem_cgroup_from_task(p); > >> + if (idx != -1) > >> + this_cpu_inc(memcg->stat_numa->locality[idx]); > > > > I thought cgroups were sup

[GIT PULL] 9p updates for 5.3

2019-07-12 Thread Dominique Martinet
Hi Linus, Here is a 9p update for 5.3, just a couple of fixes that have been sitting here for too long as I missed the 5.2 merge window. I have two more patches that I didn't have time to test early enough for this but also are plain details fix, please let me know if you would prefer having me s

Re: [GIT PULL] 9p updates for 5.3

2019-07-12 Thread Dominique Martinet
Dominique Martinet wrote on Fri, Jul 12, 2019: > 9p pull request for inclusion in 5.13 Just noticed this typo in version number here, should I make a new tag with the correct text? Sorry, -- Dominique

Re: [PATCH v2] printk: Do not lose last line in kmsg buffer dump

2019-07-12 Thread Petr Mladek
On Thu 2019-07-11 16:29:37, Vincent Whitchurch wrote: > kmsg_dump_get_buffer() is supposed to select all the youngest log > messages which fit into the provided buffer. It determines the correct > start index by using msg_print_text() with a NULL buffer to calculate > the size of each entry. Howe

Re: [RFC v2 00/27] Kernel Address Space Isolation

2019-07-12 Thread Alexandre Chartre
On 7/12/19 12:38 AM, Dave Hansen wrote: On 7/11/19 7:25 AM, Alexandre Chartre wrote: - Kernel code mapped to the ASI page-table has been reduced to: . the entire kernel (I still need to test with only the kernel text) . the cpu entry area (because we need the GDT to be mapped) . the c

[PATCH v4 0/5] hv: Remove dependencies on guest page size

2019-07-12 Thread Maya Nakamura
The Linux guest page size and hypervisor page size concepts are different, even though they happen to be the same value on x86. Hyper-V code mixes up the two, so this patchset begins to address that by creating and using a set of Hyper-V specific page definitions. A major benefit of those new defi

Re: [PATCH v2 0/5] Add NUMA-awareness to qspinlock

2019-07-12 Thread Hanjun Guo
On 2019/7/3 19:58, Jan Glauber wrote: > Hi Alex, > I've tried this series on arm64 (ThunderX2 with up to SMT=4 and 224 CPUs) > with the borderline testcase of accessing a single file from all > threads. With that > testcase the qspinlock slowpath is the top spot in the kernel. > > The results loo

[PATCH v2] xen/pv: Fix a boot up hang revealed by int3 self test

2019-07-12 Thread Zhenzhong Duan
Commit 7457c0da024b ("x86/alternatives: Add int3_emulate_call() selftest") is used to ensure there is a gap setup in exception stack which could be used for inserting call return address. This gap is missed in XEN PV int3 exception entry path, then below panic triggered: [0.772876] general pr

[PATCH v4 1/5] x86: hv: hyperv-tlfs.h: Create and use Hyper-V page definitions

2019-07-12 Thread Maya Nakamura
Define HV_HYP_PAGE_SHIFT, HV_HYP_PAGE_SIZE, and HV_HYP_PAGE_MASK because the Linux guest page size and hypervisor page size concepts are different, even though they happen to be the same value on x86. Also, replace PAGE_SIZE with HV_HYP_PAGE_SIZE. Signed-off-by: Maya Nakamura Reviewed-by: Michae

Re: [PATCH v3 0/9] i2c: add support for filters

2019-07-12 Thread Ludovic Desroches
On Tue, Jul 09, 2019 at 03:19:26PM +0200, Eugen Hristev - M18282 wrote: > From: Eugen Hristev > > Hello, > > This series adds support for analog and digital filters for i2c controllers > > This series is based on the series: > [PATCH v2 0/9] i2c: at91: filters support for at91 SoCs > and enhanc

[PATCH v4 2/5] x86: hv: Add functions to allocate/deallocate page for Hyper-V

2019-07-12 Thread Maya Nakamura
Introduce two new functions, hv_alloc_hyperv_page() and hv_free_hyperv_page(), to allocate/deallocate memory with the size and alignment that Hyper-V expects as a page. Although currently they are not used, they are ready to be used to allocate/deallocate memory on x86 when their ARM64 counterparts

[PATCH v4 3/5] hv: vmbus: Replace page definition with Hyper-V specific one

2019-07-12 Thread Maya Nakamura
Replace PAGE_SIZE with HV_HYP_PAGE_SIZE because the guest page size may not be 4096 on all architectures and Hyper-V always runs with a page size of 4096. Signed-off-by: Maya Nakamura Reviewed-by: Michael Kelley Reviewed-by: Vitaly Kuznetsov --- drivers/hv/hyperv_vmbus.h | 8 1 file c

Re: [PATCH -mm] autonuma: Fix scan period updating

2019-07-12 Thread Mel Gorman
On Thu, Jul 04, 2019 at 08:32:06AM +0800, Huang, Ying wrote: > Mel Gorman writes: > > > On Tue, Jun 25, 2019 at 09:23:22PM +0800, huang ying wrote: > >> On Mon, Jun 24, 2019 at 10:25 PM Mel Gorman wrote: > >> > > >> > On Mon, Jun 24, 2019 at 10:56:04AM +0800, Huang Ying wrote: > >> > > The auton

[PATCH v4 4/5] HID: hv: Remove dependencies on PAGE_SIZE for ring buffer

2019-07-12 Thread Maya Nakamura
Define the ring buffer size as a constant expression because it should not depend on the guest page size. Signed-off-by: Maya Nakamura Reviewed-by: Michael Kelley --- drivers/hid/hid-hyperv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-hyperv.c b/driv

[PATCH v4 5/5] Input: hv: Remove dependencies on PAGE_SIZE for ring buffer

2019-07-12 Thread Maya Nakamura
Define the ring buffer size as a constant expression because it should not depend on the guest page size. Signed-off-by: Maya Nakamura Reviewed-by: Michael Kelley --- drivers/input/serio/hyperv-keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/seri

Re: [PATCH v1] drm/modes: Skip invalid cmdline mode

2019-07-12 Thread Dmitry Osipenko
12.07.2019 11:10, Maxime Ripard пишет: > On Thu, Jul 11, 2019 at 06:55:03PM +0300, Dmitry Osipenko wrote: >> 11.07.2019 12:03, Maxime Ripard пишет: >>> On Wed, Jul 10, 2019 at 06:05:18PM +0300, Dmitry Osipenko wrote: 10.07.2019 17:05, Maxime Ripard пишет: > On Wed, Jul 10, 2019 at 04:29:19

[PATCH] fdt: Properly handle "no-map" field in the memory region

2019-07-12 Thread KarimAllah Ahmed
Mark the memory region with NOMAP flag instead of completely removing it from the memory blocks. That makes the FDT handling consistent with the EFI memory map handling. Cc: Rob Herring Cc: Frank Rowand Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: KarimAllah Ahm

[PATCH v7 1/3] KVM: x86: add support for user wait instructions

2019-07-12 Thread Tao Xu
UMONITOR, UMWAIT and TPAUSE are a set of user wait instructions. This patch adds support for user wait instructions in KVM. Availability of the user wait instructions is indicated by the presence of the CPUID feature flag WAITPKG CPUID.0x07.0x0:ECX[5]. User wait instructions may be executed at any

[PATCH v7 3/3] KVM: vmx: handle vm-exit for UMWAIT and TPAUSE

2019-07-12 Thread Tao Xu
As the latest Intel 64 and IA-32 Architectures Software Developer's Manual, UMWAIT and TPAUSE instructions cause a VM exit if the RDTSC exiting and enable user wait and pause VM-execution controls are both 1. This patch is to handle the vm-exit for UMWAIT and TPAUSE as this should never happen. C

[PATCH v7 2/3] KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL

2019-07-12 Thread Tao Xu
UMWAIT and TPAUSE instructions use IA32_UMWAIT_CONTROL at MSR index E1H to determines the maximum time in TSC-quanta that the processor can reside in either C0.1 or C0.2. This patch emulates MSR IA32_UMWAIT_CONTROL in guest and differentiate IA32_UMWAIT_CONTROL between host and guest. The variable

[PATCH v7 0/3] KVM: x86: Enable user wait instructions

2019-07-12 Thread Tao Xu
UMONITOR, UMWAIT and TPAUSE are a set of user wait instructions. UMONITOR arms address monitoring hardware using an address. A store to an address within the specified address range triggers the monitoring hardware to wake up the processor waiting in umwait. UMWAIT instructs the processor to ente

Re: linux-next: build failure after merge of the char-misc tree

2019-07-12 Thread Greg KH
On Fri, Jul 12, 2019 at 10:44:30AM +1000, Stephen Rothwell wrote: > Hi all, > > On Mon, 8 Jul 2019 19:23:45 +1000 Stephen Rothwell > wrote: > > > > After merging the char-misc tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > drivers/misc/vmw_balloon.c: In func

Re: Staging status of speakup

2019-07-12 Thread Greg Kroah-Hartman
On Sun, Jul 07, 2019 at 08:57:10AM +0200, Greg Kroah-Hartman wrote: > On Sat, Jul 06, 2019 at 08:08:57PM +0100, Okash Khawaja wrote: > > On Fri, 15 Mar 2019 20:18:31 -0700 > > Greg Kroah-Hartman wrote: > > > > > On Fri, Mar 15, 2019 at 01:01:27PM +, Okash Khawaja wrote: > > > > Hi, > > > > >

Re: [PATCH v3] media: si2168: Refactor command setup code

2019-07-12 Thread Uwe Kleine-König
Hello, On Thu, Jul 04, 2019 at 12:33:22PM +0200, Marc Gonzalez wrote: > Refactor the command setup code, and let the compiler determine > the size of each command. > > Reviewed-by: Jonathan Neuschäfer > Signed-off-by: Marc Gonzalez > --- > Changes from v1: > - Use a real function to populate st

Re: [PATCH v2] printk: Do not lose last line in kmsg buffer dump

2019-07-12 Thread Vincent Whitchurch
On Fri, Jul 12, 2019 at 10:09:04AM +0200, Petr Mladek wrote: > The patch looks like a hack using a hole that the next cycle > does not longer check the number of really stored characters. > > What would happen when msg_print_text() starts adding > the trailing '\0' as suggested by > https://lkml.k

Re: linux-next: Fixes tag needs some work in the block tree

2019-07-12 Thread Minwoo Im
On 19-07-11 16:03:22, Jens Axboe wrote: > On 7/11/19 3:35 PM, Stephen Rothwell wrote: > > Hi all, > > > > In commit > > > >8f3858763d33 ("nvme: fix NULL deref for fabrics options") > > > > Fixes tag > > > >Fixes: 958f2a0f8 ("nvme-tcp: set the STABLE_WRITES flag when data digests > > >

[PATCH] staging: android: ion: Remove unused rbtree for ion_buffer

2019-07-12 Thread Lecopzer Chen
ion_buffer_add() insert ion_buffer into rbtree every time creating an ion_buffer but never use it after ION reworking. Also, buffer_lock protects only rbtree operation, remove it together. Signed-off-by: Lecopzer Chen Cc: YJ Chiang Cc: Lecopzer Chen --- drivers/staging/android/ion/ion.c | 36 -

[PATCH] mm: sparse: Skip no-map regions in memblocks_present

2019-07-12 Thread KarimAllah Ahmed
Do not mark regions that are marked with nomap to be present, otherwise these memblock cause unnecessarily allocation of metadata. Cc: Andrew Morton Cc: Pavel Tatashin Cc: Oscar Salvador Cc: Michal Hocko Cc: Mike Rapoport Cc: Baoquan He Cc: Qian Cai Cc: Wei Yang Cc: Logan Gunthorpe Cc: li

[PATCH] rdma/siw: avoid smp_store_mb() on a u64

2019-07-12 Thread Arnd Bergmann
The new siw driver fails to build on i386 with drivers/infiniband/sw/siw/siw_qp.c:1025:3: error: invalid output size for constraint '+q' smp_store_mb(*cq->notify, SIW_NOTIFY_NOT); ^ include/asm-generic/barrier.h:141:35: note: expanded from macro 'smp_store_mb' #de

[PATCH] rdma/siw: select CONFIG_DMA_VIRT_OPS

2019-07-12 Thread Arnd Bergmann
Without this symbol we get a link failure: ERROR: "dma_virt_ops" [drivers/infiniband/sw/siw/siw.ko] undefined! Fixes: bdcf26bf9b3a ("rdma/siw: network and RDMA core interface") Signed-off-by: Arnd Bergmann --- drivers/infiniband/sw/siw/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH] rdma/siw: fix enum type mismatch warnings

2019-07-12 Thread Arnd Bergmann
The values in map_cqe_status[] don't match the type: drivers/infiniband/sw/siw/siw_cq.c:31:4: error: implicit conversion from enumeration type 'enum siw_wc_status' to different enumeration type 'enum siw_opcode' [-Werror,-Wenum-conversion] { SIW_WC_SUCCESS, IB_WC_SUCCESS }, ~ ^~~

[PATCH] platform/x86: pcengines-apu2 needs gpiolib

2019-07-12 Thread Arnd Bergmann
I ran into another build issue in randconfig testing for this driver, when CONFIG_GPIOLIB is not set: WARNING: unmet direct dependencies detected for GPIO_AMD_FCH Depends on [n]: GPIOLIB [=n] && HAS_IOMEM [=y] Selected by [y]: - PCENGINES_APU2 [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y] &&

Re: BUG: MAX_STACK_TRACE_ENTRIES too low! (2)

2019-07-12 Thread Peter Zijlstra
On Thu, Jul 11, 2019 at 11:53:12AM -0700, Bart Van Assche wrote: > On 7/10/19 3:09 PM, Peter Zijlstra wrote: > > One thing I mentioned when Thomas did the unwinder API changes was > > trying to move lockdep over to something like stackdepot. > > > > We can't directly use stackdepot as is, because

[PATCH] ASoC: audio-graph-card: fix type mismatch warning

2019-07-12 Thread Arnd Bergmann
The new temporary variable is lacks a 'const' annotation: sound/soc/generic/audio-graph-card.c:87:7: error: assigning to 'u32 *' (aka 'unsigned int *') from 'const void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] Fixes: c152f8491a8d ("ASoC: audio-graph-card

[PATCH 1/2] f2fs: introduce {page,io}_is_mergeable() for readability

2019-07-12 Thread Chao Yu
Wrap merge condition into function for readability, no logic change. Signed-off-by: Chao Yu --- v2: remove bio validation check in page_is_mergeable(). fs/f2fs/data.c | 40 +--- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/fs/f2fs/data.c b/fs

Re: [PATCH] arm: Extend the check for RAM in /dev/mem

2019-07-12 Thread Russell King - ARM Linux admin
On Fri, Jul 12, 2019 at 02:58:18AM +, Raslan, KarimAllah wrote: > On Fri, 2019-07-12 at 08:06 +0530, Anshuman Khandual wrote: > > > > On 07/12/2019 03:51 AM, KarimAllah Ahmed wrote: > > > > > > Some valid RAM can live outside kernel control (e.g. using mem= kernel > > > command-line). For the

[PATCH] [net-next, netfilter] mlx5: avoid unused variable warning

2019-07-12 Thread Arnd Bergmann
Without CONFIG_MLX5_ESWITCH we get a harmless warning: drivers/net/ethernet/mellanox/mlx5/core/en_main.c:3467:21: error: unused variable 'priv' [-Werror,-Wunused-variable] struct mlx5e_priv *priv = netdev_priv(dev); Hide the declaration in the same #ifdef as its usage. Fixes: 4e95bc268b

Re: [PATCH 4/4] numa: introduce numa cling feature

2019-07-12 Thread 王贇
On 2019/7/12 下午3:53, Peter Zijlstra wrote: [snip] return target; } >>> >>> Select idle sibling should never cross node boundaries and is thus the >>> entirely wrong place to fix anything. >> >> Hmm.. in our early testing the printk show both select_task_rq_fair() and >> task_numa_f

[PATCH] xen/trace: avoid clang warning on function pointers

2019-07-12 Thread Arnd Bergmann
clang-9 does not like the way that the is_signed_type() compares function pointers deep inside of the trace even macros: In file included from arch/x86/xen/trace.c:21: In file included from include/trace/events/xen.h:475: In file included from include/trace/define_trace.h:102: In file included fro

HELLO! PLEASE TRY AND RESPOND SOONEST

2019-07-12 Thread Wilson Smith
My Dear Friend, Before I introduce myself, I wish to inform you that this letter is not a hoax mail and I urge you to treat it serious. This letter must come to you as a big surprise, but I believe it is only a day that people meet and become great friends and business partners. Please I want

Re: [PATCH] arm: Extend the check for RAM in /dev/mem

2019-07-12 Thread Raslan, KarimAllah
On Fri, 2019-07-12 at 09:56 +0100, Russell King - ARM Linux admin wrote: > On Fri, Jul 12, 2019 at 02:58:18AM +, Raslan, KarimAllah wrote: > > > > On Fri, 2019-07-12 at 08:06 +0530, Anshuman Khandual wrote: > > > > > > > > > On 07/12/2019 03:51 AM, KarimAllah Ahmed wrote: > > > > > > > > >

[PATCH] acpi: fix false-positive -Wuninitialized warning

2019-07-12 Thread Arnd Bergmann
clang gets confused by an uninitialized variable in what looks to it like a never executed code path: arch/x86/kernel/acpi/boot.c:618:13: error: variable 'polarity' is uninitialized when used here [-Werror,-Wuninitialized] polarity = polarity ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH;

[PATCH] slab: work around clang bug #42570

2019-07-12 Thread Arnd Bergmann
Clang gets rather confused about two variables in the same special section when one of them is not initialized, leading to an assembler warning later: /tmp/slab_common-18f869.s: Assembler messages: /tmp/slab_common-18f869.s:7526: Warning: ignoring changed section attributes for .data..ro_after_in

[PATCH] [net-next] cxgb4: reduce kernel stack usage in cudbg_collect_mem_region()

2019-07-12 Thread Arnd Bergmann
The cudbg_collect_mem_region() and cudbg_read_fw_mem() both use several hundred kilobytes of kernel stack space. One gets inlined into the other, which causes the stack usage to be combined beyond the warning limit when building with clang: drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c:1057:12: e

[PATCH] lib/mpi: fix building with 32-bit x86

2019-07-12 Thread Arnd Bergmann
The mpi library contains some rather old inline assembly statements that produce a lot of warnings for 32-bit x86, such as: lib/mpi/mpih-div.c:76:16: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions

[PATCH] x86: math-emu: hide clang warnings for 16-bit overflow

2019-07-12 Thread Arnd Bergmann
clang warns about a few parts of the math-emu implementation where a 16-bit integer becomes negative during assignment: arch/x86/math-emu/poly_tan.c:88:35: error: implicit conversion from 'int' to 'short' changes value from 49216 to -16320 [-Werror,-Wconstant-conversion]

[GIT PULL] Pin control bulk changes for v5.3

2019-07-12 Thread Linus Walleij
Hi Linus, here is the bulk of pin control changes for the v5.3 kernel cycle. This is pretty linear development in pin control, nothing really stand out. We had a bit of SPDX fuzz with tglx fixing up tags with scripts at the same time as maintainers were fixing up the same tags, but I regard that

Re: [PATCH 1/4] numa: introduce per-cgroup numa balancing locality, statistic

2019-07-12 Thread 王贇
On 2019/7/12 下午3:58, Peter Zijlstra wrote: [snip] >>> >>> Then our task t1 should be accounted to B (as you do), but also to A and >>> R. >> >> I get the point but not quite sure about this... >> >> Not like pages there are no hierarchical limitation on locality, also tasks > > You can use cpus

[PATCH] thp: fix unused shmem_parse_huge() function warning

2019-07-12 Thread Arnd Bergmann
When CONFIG_SYSFS is disabled but CONFIG_TMPFS is enabled, we get a warning about shmem_parse_huge() never being called: mm/shmem.c:417:12: error: unused function 'shmem_parse_huge' [-Werror,-Wunused-function] static int shmem_parse_huge(const char *str) Change the #ifdef so we no longer build t

Re: [PATCH v2] printk: Do not lose last line in kmsg buffer dump

2019-07-12 Thread Petr Mladek
On Thu 2019-07-11 16:29:37, Vincent Whitchurch wrote: > kmsg_dump_get_buffer() is supposed to select all the youngest log > messages which fit into the provided buffer. It determines the correct > start index by using msg_print_text() with a NULL buffer to calculate > the size of each entry. Howe

[PATCH 1/2] x86: kvm: avoid -Wsometimes-uninitized warning

2019-07-12 Thread Arnd Bergmann
clang points out that running a 64-bit guest on a 32-bit host would lead to uninitialized variables: arch/x86/kvm/hyperv.c:1610:6: error: variable 'ingpa' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] if (!longmode) { ^ arch

[PATCH 2/2] x86: kvm: avoid constant-conversion warning

2019-07-12 Thread Arnd Bergmann
clang finds a contruct suspicious that converts an unsigned character to a signed integer and back, causing an overflow: arch/x86/kvm/mmu.c:4605:39: error: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from -205 to 51 [-Werror,-Wconstant-conversion] u8

Re: [PATCH] dax: Fix missed PMD wakeups

2019-07-12 Thread Jan Kara
On Thu 11-07-19 08:25:50, Matthew Wilcox wrote: > On Thu, Jul 11, 2019 at 07:13:50AM -0700, Matthew Wilcox wrote: > > However, the XA_RETRY_ENTRY might be a good choice. It doesn't normally > > appear in an XArray (it may appear if you're looking at a deleted node, > > but since we're holding the

[PATCH] dma: ste_dma40: fix unneeded variable warning

2019-07-12 Thread Arnd Bergmann
clang-9 points out that there are two variables that depending on the configuration may only be used in an ARRAY_SIZE() expression but not referenced: drivers/dma/ste_dma40.c:145:12: error: variable 'd40_backup_regs' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]

Re: [PATCH] xen/trace: avoid clang warning on function pointers

2019-07-12 Thread Sedat Dilek
On Fri, Jul 12, 2019 at 10:59 AM Arnd Bergmann wrote: > > clang-9 does not like the way that the is_signed_type() compares > function pointers deep inside of the trace even macros: > > In file included from arch/x86/xen/trace.c:21: > In file included from include/trace/events/xen.h:475: > In file

RE: [PATCH] clk: renesas: cpg-mssr: Fix reset control race condition

2019-07-12 Thread Yoshihiro Shimoda
Hi Geert-san, > From: Geert Uytterhoeven, Sent: Thursday, July 11, 2019 10:04 PM > > The module reset code in the Renesas CPG/MSSR driver uses > read-modify-write (RMW) operations to write to a Software Reset Register > (SRCRn), and simple writes to write to a Software Reset Clearing > Register (

Re: Re: [PATCH] media: v4l: Add packed YUV444 24bpp pixel format

2019-07-12 Thread paul.kocialkow...@bootlin.com
Hi, On Thu 11 Jul 19, 13:57, Mirela Rabulea wrote: > On Jo, 2019-07-11 at 10:18 +0200, Paul Kocialkowski wrote: > > Caution: EXT Email > > > > Hi, > > > > On Wed 03 Jul 19, 18:15, Mirela Rabulea wrote: > > > > > > The added format is V4L2_PIX_FMT_YUV24, this is a packed > > > YUV 4:4:4 format,

Re: [PATCH v2] printk: Do not lose last line in kmsg buffer dump

2019-07-12 Thread Sergey Senozhatsky
On (07/12/19 11:12), Petr Mladek wrote: > > For example, with the following two final prints: > > > > [6.427502] A > > [6.427769] 12345 > > > > A dump of a 64-byte buffer filled by kmsg_dump_get_buffer(), before this > > patch: > > > > : 3c 30 3e 5b 20 20 20

[HELP REQUESTED from the community] Was: Staging status of speakup

2019-07-12 Thread Samuel Thibault
Hello, To readers of the linux-speakup: could you help on this so we can get Speakup in mainline? Neither Okash or I completely know what user consequences the files in /sys/accessibility/speakup/ have, so could people give brief explanations for each file (something like 3-6 lines of explanation

[PATCH] [v2] mic: avoid statically declaring a 'struct device'.

2019-07-12 Thread Arnd Bergmann
Generally, declaring a platform device as a static variable is a bad idea and can cause all kinds of problems, in particular with the DMA configuration and lifetime rules. A specific problem we hit here is from a bug in clang that warns about certain (otherwise valid) macros when used in static va

Re: Staging status of speakup

2019-07-12 Thread Okash Khawaja
On Fri, Jul 12, 2019 at 9:38 AM Greg Kroah-Hartman wrote: > > On Sun, Jul 07, 2019 at 08:57:10AM +0200, Greg Kroah-Hartman wrote: > > On Sat, Jul 06, 2019 at 08:08:57PM +0100, Okash Khawaja wrote: > > > On Fri, 15 Mar 2019 20:18:31 -0700 > > > Greg Kroah-Hartman wrote: > > > > > > > On Fri, Mar 1

Re: [PATCH v3] arm64: dts: sdm845: Add video nodes

2019-07-12 Thread Rajendra Nayak
On 7/2/2019 5:42 PM, Aniket Masule wrote: From: Malathi Gottam This adds video nodes to sdm845 based on the examples in the bindings. Signed-off-by: Malathi Gottam Co-developed-by: Aniket Masule Signed-off-by: Aniket Masule Reviewed-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/

  1   2   3   4   5   6   7   8   9   >