[PATCH v6 07/12] perf/x86: no counter allocation support

2019-06-06 Thread Wei Wang
In some cases, an event may be created without needing a counter allocation. For example, an lbr event may be created by the host only to help save/restore the lbr stack on the vCPU context switching. This patch adds a new interface to allow users to create a perf event without the need of counter

[PATCH v6 09/12] perf/x86: save/restore LBR_SELECT on vCPU switching

2019-06-06 Thread Wei Wang
The vCPU lbr event relies on the host to save/restore all the lbr related MSRs. So add the LBR_SELECT save/restore to the related functions for the vCPU case. Signed-off-by: Wei Wang Cc: Peter Zijlstra Cc: Andi Kleen --- arch/x86/events/intel/lbr.c | 7 +++ arch/x86/events/perf_event.h |

Re: KASAN: use-after-free Read in unregister_shrinker

2019-06-06 Thread Kirill Tkhai
On 05.06.2019 21:42, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:    b2924447 Add linux-next specific files for 20190605 > git tree:   linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=17e867eea0 > kernel config:  https://syzkaller.

Re: [PATCH 2/2] media: v4l2-core: fix uninitialized variable error

2019-06-06 Thread Hans Verkuil
On 6/5/19 11:53 PM, Shuah Khan wrote: > Fix the following cppcheck error: > > Checking drivers/media/v4l2-core/v4l2-ioctl.c ... > Checking drivers/media/v4l2-core/v4l2-ioctl.c: CONFIG_VIDEO_ADV_DEBUG... > [drivers/media/v4l2-core/v4l2-ioctl.c:2470]: (error) Uninitialized variable: > sd This is a

Re: [PATCH v2 2/3] gpio: davinci: Add new compatible for K3 AM654 SoCs

2019-06-06 Thread Bartosz Golaszewski
śr., 5 cze 2019 o 17:12 Keerthy napisał(a): > > > > On 05/06/19 7:56 PM, Bartosz Golaszewski wrote: > > śr., 5 cze 2019 o 10:02 Keerthy napisał(a): > >> > >> Add new compatible for K3 AM654 SoCs. > >> > >> Signed-off-by: Keerthy > >> --- > >> drivers/gpio/gpio-davinci.c | 1 + > >> 1 file cha

Re: [PATCH tip/core/rcu 6/9] rcu: Upgrade sync_exp_work_done() to smp_mb()

2019-06-06 Thread Peter Zijlstra
On Thu, May 30, 2019 at 08:00:12AM -0700, Paul E. McKenney wrote: > The sync_exp_work_done() function uses smp_mb__before_atomic(), but > there is no obvious atomic in the ensuing code. The ordering is > absolutely required for grace periods to work correctly, so this > commit upgrades the smp_mb_

Re: [PATCH] arm64: dts: sdm845: Add CPU topology

2019-06-06 Thread Quentin Perret
Hi Vincent, On Thursday 06 Jun 2019 at 09:05:16 (+0200), Vincent Guittot wrote: > Hi Quentin, > > On Wed, 5 Jun 2019 at 19:21, Quentin Perret wrote: > > > > On Friday 17 May 2019 at 14:55:19 (-0700), Stephen Boyd wrote: > > > Quoting Amit Kucheria (2019-05-16 04:54:45) > > > > (cc'ing Andy's cor

Re: [PATCH v2 2/2] irqchip: al-fic: Introduce Amazon's Annapurna Labs Fabric Interrupt Controller Driver

2019-06-06 Thread Benjamin Herrenschmidt
On Thu, 2019-06-06 at 08:05 +0100, Marc Zyngier wrote: > > > I disagree Marc. This is a rather bad error which indicates that the > > device-tree is probably incorrect (or the HW was wired in a way that > > cannot work). > > But surely that's something you'll spot pretty quickly. Not really. A l

Re: Building arm64 EFI stub with -fpie breaks build of 4.9.x (undefined reference to `__efistub__GLOBAL_OFFSET_TABLE_')

2019-06-06 Thread Rolf Eike Beer
Am Donnerstag, 6. Juni 2019, 09:38:41 CEST schrieb Rolf Eike Beer: > Greg KH wrote: > > On Wed, Jun 05, 2019 at 05:19:40PM +0200, Rolf Eike Beer wrote: > > > I decided to dig out a toy project which uses a DragonBoard 410c. This > > > has > > > been "running" with kernel 4.9, which I would keep thi

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-06-06 Thread Hawa, Hanna
On 5/31/2019 8:14 AM, Borislav Petkov wrote: On Fri, May 31, 2019 at 01:15:33AM +, Herrenschmidt, Benjamin wrote: This isn't terribly helpful, there's nothing telling anybody which of those files corresponds to an ARM SoC :-) drivers/edac/altera_edac.c is one example. Also, James and I

[tip:x86/urgent] x86/CPU: Add more Icelake model numbers

2019-06-06 Thread tip-bot for Kan Liang
Commit-ID: e35faeb64146f2015f2aec14b358ae508e4066db Gitweb: https://git.kernel.org/tip/e35faeb64146f2015f2aec14b358ae508e4066db Author: Kan Liang AuthorDate: Mon, 3 Jun 2019 06:41:20 -0700 Committer: Borislav Petkov CommitDate: Thu, 6 Jun 2019 09:42:36 +0200 x86/CPU: Add more Icelake m

[PATCH v2 RESEND] scripts: use pkg-config to locate libcrypto

2019-06-06 Thread Rolf Eike Beer
>From cca931322233827dc21c7609f21f4042d78f220e Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Thu, 22 Nov 2018 16:40:49 +0100 Subject: scripts: use pkg-config to locate libcrypto Otherwise build fails if the headers are not in the default location. While at it also ask pkg-config for the lib

[PATCH v1 1/4] perf trace: Exit when build eBPF program failure

2019-06-06 Thread Leo Yan
On my Juno board with ARM64 CPUs, perf trace command reports the eBPF program building failure but the command will not exit and continue to run. If we define an eBPF event in config file, the event will be parsed with below flow: perf_config() `> trace__config() `> parse_events_op

[PATCH v1 0/4] perf augmented_raw_syscalls: Support for arm64

2019-06-06 Thread Leo Yan
When I tried to run the trace on arm64 platform with eBPF program augmented_raw_syscalls, it reports several failures for eBPF program compilation. So tried to resolve these issues and this patch set is the working result. 0001 patch lets perf command to exit directly if find eBPF program buildin

[PATCH v1 2/4] perf augmented_raw_syscalls: Remove duplicate macros

2019-06-06 Thread Leo Yan
The macro SYS_EXECVE has been defined twice, remove the duplicate one. Signed-off-by: Leo Yan --- tools/perf/examples/bpf/augmented_raw_syscalls.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/examples/bpf/augmented_raw_syscalls.c b/tools/perf/examples/bpf/augmented_raw_syscalls

[PATCH v1 4/4] perf augmented_raw_syscalls: Document clang configuration

2019-06-06 Thread Leo Yan
To build this program successfully with clang, there have three compiler options need to be specified: - Header file path: tools/perf/include/bpf; - Specify architecture; - Define macro __NR_CPUS__. This patch add comments to explain the reasons for building failure and give two examples fo

[PATCH v1 3/4] perf augmented_raw_syscalls: Support arm64 raw syscalls

2019-06-06 Thread Leo Yan
This patch adds support for arm64 raw syscall numbers so that we can use it on arm64 platform. After applied this patch, we need to specify macro -D__aarch64__ or -D__x86_64__ in compilation option so Clang can use the corresponding syscall numbers for arm64 or x86_64 respectively, other architect

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

2019-06-06 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] sg: Fix a double-fetch bug in drivers/scsi/sg.c

2019-06-06 Thread Gen Zhang
On Wed, Jun 05, 2019 at 01:07:25PM -0400, Douglas Gilbert wrote: > On 2019-06-05 2:00 a.m., Jiri Slaby wrote: > >On 23. 05. 19, 4:38, Gen Zhang wrote: > >>In sg_write(), the opcode of the command is fetched the first time from > >>the userspace by __get_user(). Then the whole command, the opcode >

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

2019-06-06 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 --- arch/x86/inclu

Re: [PATCH] lockref: Limit number of cmpxchg loop retries

2019-06-06 Thread Jan Glauber
On Wed, Jun 05, 2019 at 01:16:46PM -0700, Linus Torvalds wrote: > On Wed, Jun 5, 2019 at 6:49 AM Jan Glauber wrote: > > > > Add an upper bound to the loop to force the fallback to spinlocks > > after some time. A retry value of 100 should not impact any hardware > > that does not have this issue.

Re: [PATCH v8 15/19] locking/rwsem: Adaptive disabling of reader optimistic spinning

2019-06-06 Thread Peter Zijlstra
On Wed, Jun 05, 2019 at 01:52:15PM -0700, Linus Torvalds wrote: > On Wed, Jun 5, 2019 at 1:19 PM Peter Zijlstra wrote: > > > > Urgh, that's another things that's been on the TODO list for a long long > > time, write code to verify the alignment of allocations :/ I'm > > suspecting quite a lot of t

LOANS !!!

2019-06-06 Thread DIAL DIRECT LOANS SA
Dial Direct Loan SA Consolidate your debts with Dial Direct Loan SA for your peace of mind at a fixed interest rate of 4.75%,personal and business loans are also welcome.For details file in your applications by sending an email to:dialdirectloan...@mail2consultant.com. Yours in Service, Sus

[PATCH v2 2/5] x86: hv: hv_init.c: Add functions to allocate/deallocate page for Hyper-V

2019-06-06 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

Re: [PATCH v2] USB: Disable USB2 LPM at shutdown

2019-06-06 Thread Kai-Heng Feng
at 15:55, Kai-Heng Feng wrote: at 18:22, Kai-Heng Feng wrote: at 00:01, Kai-Heng Feng wrote: On Jan 30, 2019, at 16:21, Greg KH wrote: On Thu, Jan 24, 2019 at 02:16:43PM +0800, Kai-Heng Feng wrote: The QCA Rome USB Bluetooth controller has several issues once LPM gets enabled: - Fails

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

2019-06-06 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 --- drivers/hv/hyperv_vmbus.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/driver

Re: [PATCH] usb: dwc2: host: Fix wMaxPacketSize handling (fix webcam regression)

2019-06-06 Thread Minas Harutyunyan
On 6/1/2019 12:05 AM, Douglas Anderson wrote: In commit abb621844f6a ("usb: ch9: make usb_endpoint_maxp() return only packet size") the API to usb_endpoint_maxp() changed. It used to just return wMaxPacketSize but after that commit it returned wMaxPacketSize with the high bits (the multiplier) m

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

2019-06-06 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 --- drivers/hid/hid-hyperv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-hyperv.c b/drivers/hid/hid-hyperv.c index d3

Re: [PATCH v3 net-next 0/7] net: ethernet: ti: cpsw: Add XDP support

2019-06-06 Thread Jesper Dangaard Brouer
On Wed, 05 Jun 2019 12:14:50 -0700 (PDT) David Miller wrote: > From: Ivan Khoronzhuk > Date: Wed, 5 Jun 2019 16:20:02 +0300 > > > This patchset adds XDP support for TI cpsw driver and base it on > > page_pool allocator. It was verified on af_xdp socket drop, > > af_xdp l2f, ebpf XDP_DROP, XDP_

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

2019-06-06 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 --- drivers/input/serio/hyperv-keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/serio/hyperv-keyboard.c b/driver

Re: [PATCH 3/4] vsock/virtio: fix flush of works during the .remove()

2019-06-06 Thread Stefano Garzarella
On Fri, May 31, 2019 at 05:56:39PM +0800, Jason Wang wrote: > On 2019/5/31 下午4:18, Stefano Garzarella wrote: > > On Thu, May 30, 2019 at 07:59:14PM +0800, Jason Wang wrote: > > > On 2019/5/30 下午6:10, Stefano Garzarella wrote: > > > > On Thu, May 30, 2019 at 05:46:18PM +0800, Jason Wang wrote: > > >

Re: [PATCH v8 15/19] locking/rwsem: Adaptive disabling of reader optimistic spinning

2019-06-06 Thread Peter Zijlstra
On Thu, Jun 06, 2019 at 10:03:15AM +0200, Peter Zijlstra wrote: > On Wed, Jun 05, 2019 at 01:52:15PM -0700, Linus Torvalds wrote: > > On Wed, Jun 5, 2019 at 1:19 PM Peter Zijlstra wrote: > > > > > > Urgh, that's another things that's been on the TODO list for a long long > > > time, write code to

Re: [PATCH] sched/fair: Introduce fits_capacity()

2019-06-06 Thread Quentin Perret
On Thursday 06 Jun 2019 at 08:22:04 (+0530), Viresh Kumar wrote: > On 05-06-19, 10:16, Quentin Perret wrote: > > Hi Viresh, > > > > On Tuesday 04 Jun 2019 at 12:31:52 (+0530), Viresh Kumar wrote: > > > The same formula to check utilization against capacity (after > > > considering capacity_margin)

Re: [PATCH v4 2/2] arm64: dts: qcom: Add Lenovo Miix 630

2019-06-06 Thread Lee Jones
On Thu, 06 Jun 2019, Bjorn Andersson wrote: > On Wed 05 Jun 22:50 PDT 2019, Lee Jones wrote: > > > On Tue, 23 Apr 2019, Jeffrey Hugo wrote: > > > > > This adds the initial DT for the Lenovo Miix 630 laptop. Supported > > > functionality includes USB (host), microSD-card, keyboard, and trackpad.

Re: [PATCH -next] phy: ti: am654-serdes: Make serdes_am654_xlate() static

2019-06-06 Thread Roger Quadros
On 18/04/2019 16:36, Yue Haibing wrote: > From: YueHaibing > > Fix sparse warning: > > drivers/phy/ti/phy-am654-serdes.c:250:12: warning: > symbol 'serdes_am654_xlate' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Acked-by: Roger Quadros

Re: [PATCH modules 0/2] Fix handling of exit unwinding sections (on ARM)

2019-06-06 Thread Matthias Schiffer
On Mon, 2019-06-03 at 12:57 +0200, Matthias Schiffer wrote: > For some time (050d18d1c651 "ARM: 8650/1: module: handle negative > R_ARM_PREL31 addends correctly", v4.11+), building a kernel without > CONFIG_MODULE_UNLOAD would lead to module loads failing on ARM > systems with > certain memory layo

Re: rcu_read_lock lost its compiler barrier

2019-06-06 Thread Andrea Parri
> This example really does point out a weakness in the LKMM's handling of > data races. Herbert's litmus test is a great starting point: > > > C xu > > {} > > P0(int *a, int *b) > { > WRITE_ONCE(*a, 1); > synchronize_rcu(); > *b = 2; > } > > P1(int *a, int *b) > { > r

Re: [PATCH v2 RESEND] scripts: use pkg-config to locate libcrypto

2019-06-06 Thread David Woodhouse
On Thu, 2019-06-06 at 09:55 +0200, Rolf Eike Beer wrote: > +CRYPTO_LIBS = $(shell $(PKG_CONFIG) --libs libcrypto 2> /dev/null || > -lcrypto) That's going to run: $ pkg-config --libs libcrypto || -lcrypto If libcrypto.pc isn't there, it's going to get this: -lcrypto: command not found I thin

Re: [RESEND][PATCH v3 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-06-06 Thread Sergei Shtylyov
Hello! On 06.06.2019 5:54, Ran Wang wrote: When DWC3 is set to host mode by programming register DWC3_GCTL, VBUS (or its control signal) will turn on immediately on related Root Hub ports. Then the VBUS will be de-asserted for a little while during xhci reset (conducted by xhci driver) for a li

Re: [PATCH v3 04/15] drm/bridge: tc358767: Simplify tc_set_video_mode()

2019-06-06 Thread Andrzej Hajda
On 05.06.2019 09:04, Andrey Smirnov wrote: > Simplify tc_set_video_mode() by replacing explicit shifting using > macros from . No functional change intended. > > Signed-off-by: Andrey Smirnov > Cc: Archit Taneja > Cc: Andrzej Hajda > Cc: Laurent Pinchart > Cc: Tomi Valkeinen > Cc: Andrey Gusak

Re: [PATCH] mtd: spinand: Support Paragon PN26G01A and PN26G02A

2019-06-06 Thread Schrempf Frieder
On 05.06.19 23:35, Jeff Kletsky wrote: > From: Jeff Kletsky > > These Paragon chips are very similar to other 1Gb/2Gb chips > in terms of their layout and command timings. > > One notable difference is that "Minimum number of valid blocks" > (Nvb) is 1003 per Gb, rather than the common 1004. As

Re: [PATCH V4 1/4] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-06 Thread Maxime Ripard
Hi, On Thu, Jun 06, 2019 at 09:33:20AM +0800, anson.hu...@nxp.com wrote: > From: Anson Huang > > Add the clock binding doc for i.MX8MN. > > Signed-off-by: Anson Huang > --- > Changes since V3: > - switch binding doc from .txt to .yaml. > --- > .../devicetree/bindings/clock/imx8mn-clock.ya

RE: [RESEND][PATCH v3 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-06-06 Thread Ran Wang
Hi Sergei, On Thursday, June 06, 2019 16:17 Sergei Shtylyov wrote: > > Hello! > > On 06.06.2019 5:54, Ran Wang wrote: > > > When DWC3 is set to host mode by programming register DWC3_GCTL, VBUS > > (or its control signal) will turn on immediately on related Root Hub > > ports. Then the VBUS wil

Re: [PATCH] arm64: dts: sdm845: Add CPU topology

2019-06-06 Thread Vincent Guittot
On Thu, 6 Jun 2019 at 09:49, Quentin Perret wrote: > > Hi Vincent, > > On Thursday 06 Jun 2019 at 09:05:16 (+0200), Vincent Guittot wrote: > > Hi Quentin, > > > > On Wed, 5 Jun 2019 at 19:21, Quentin Perret wrote: > > > > > > On Friday 17 May 2019 at 14:55:19 (-0700), Stephen Boyd wrote: > > > >

Re: [PATCH] Powerpc/Watchpoint: Restore nvgprs while returning from exception

2019-06-06 Thread Naveen N. Rao
Ravi Bangoria wrote: Powerpc hw triggers watchpoint before executing the instruction. To make trigger-after-execute behavior, kernel emulates the instruction. If the instruction is 'load something into non- volatile register', exception handler should restore emulated register state while returni

[PATCH net-next 12/12] net: hns3: fix some coding style issues

2019-06-06 Thread Huazhong Tan
From: Weihang Li This patch fixes some coding style issues reported by some static code analysis tools and code review, such as modify some comments, rename some variables, log some errors in detail, and fixes some alignment errors. BTW, these cleanups do not change the logic of code. Signed-of

<    5   6   7   8   9   10