Re: xarray reserve/release?

2019-02-20 Thread Matthew Wilcox
On Wed, Feb 20, 2019 at 10:43:33AM -0700, Jason Gunthorpe wrote: > On Wed, Feb 20, 2019 at 09:14:14AM -0800, Matthew Wilcox wrote: > > > void __xa_release(struct xarray *xa, unsigned long index) > > > { > > > XA_STATE(xas, xa, index); > > > void *curr; > > > > > > curr = xas_load(&xas); > >

Re: [RFC v3 18/19] of: unittest: split out a couple of test cases from unittest

2019-02-20 Thread Frank Rowand
On 2/20/19 12:44 PM, Frank Rowand wrote: > On 2/18/19 2:25 PM, Frank Rowand wrote: >> On 2/15/19 2:56 AM, Brendan Higgins wrote: >>> On Thu, Feb 14, 2019 at 6:05 PM Frank Rowand wrote: On 2/14/19 4:56 PM, Brendan Higgins wrote: > On Thu, Feb 14, 2019 at 3:57 PM Frank Rowand > w

Re: [PATCH v2 1/2] extcon-intel-cht-wc: Make charger detection co-existed with OTG host mode

2019-02-20 Thread Yauhen Kharuzhy
On Wed, Feb 20, 2019 at 02:42:06PM +0200, Andy Shevchenko wrote: > On Wed, Feb 20, 2019 at 12:24:40AM +0300, Yauhen Kharuzhy wrote: > > Whiskey Cove Cherry Trail PMIC requires disabling OTG host mode before > > of charger detection procedure. Do this by manipulationg of CHGRCTRL1 > > register. > >

Re: xen/evtchn and forced threaded irq

2019-02-20 Thread Julien Grall
(+ Andrew and Jan for feedback on the event channel interrupt) Hi Boris, Thank you for the your feedback. On 2/20/19 8:04 PM, Boris Ostrovsky wrote: On 2/20/19 1:05 PM, Julien Grall wrote: Hi, On 20/02/2019 17:07, Boris Ostrovsky wrote: On 2/20/19 9:15 AM, Julien Grall wrote: Hi Boris, Th

Re: [PATCH v2 1/2] mtd: spi-nor: Add support for EN25Q80A

2019-02-20 Thread Tudor.Ambarus
On 02/18/2019 02:04 PM, Schrempf Frieder wrote: > From: Frieder Schrempf > > This adds support for the EON EN25Q80A, a 8Mb SPI NOR chip. > It is used on i.MX6 boards by Kontron Electronics GmbH > (N60xx, N61xx). > It was only tested with a single data line connected, by writing and > reading ra

Re: [RFC v3 18/19] of: unittest: split out a couple of test cases from unittest

2019-02-20 Thread Frank Rowand
On 2/18/19 2:25 PM, Frank Rowand wrote: > On 2/15/19 2:56 AM, Brendan Higgins wrote: >> On Thu, Feb 14, 2019 at 6:05 PM Frank Rowand wrote: >>> >>> On 2/14/19 4:56 PM, Brendan Higgins wrote: On Thu, Feb 14, 2019 at 3:57 PM Frank Rowand wrote: > > On 12/5/18 3:54 PM, Brendan Hig

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

2019-02-20 Thread David Miller
From: Stefano Brivio Date: Wed, 20 Feb 2019 21:37:29 +0100 > On Wed, 20 Feb 2019 12:25:48 -0800 (PST) > David Miller wrote: > >> From: Stefano Brivio >> Date: Wed, 20 Feb 2019 20:59:10 +0100 >> >> > On Wed, 20 Feb 2019 11:02:01 -0800 (PST) >> > David Miller wrote: >> > >> >> From: Jiri Pi

Re: [PATCH 6/6] net: ethernet: ti: cpsw: deprecate cpsw-phy-sel driver

2019-02-20 Thread David Miller
From: Tony Lindgren Date: Wed, 20 Feb 2019 12:33:26 -0800 > * David Miller [190220 19:23]: >> From: Grygorii Strashko >> Date: Wed, 20 Feb 2019 17:25:19 +0200 >> >> > Deprecate cpsw-phy-sel driver as it's been replaced with new >> > TI phy-gmii-sel PHY driver. >> > >> > Signed-off-by: Grygori

[PATCH] mm: Don't let userspace spam allocations warnings

2019-02-20 Thread Daniel Vetter
memdump_user usually gets fed unchecked userspace input. Blasting a full backtrace into dmesg every time is a bit excessive - I'm not sure on the kernel rule in general, but at least in drm we're trying not to let unpriviledge userspace spam the logs freely. Definitely not entire warning backtraces

linux-next: Fixes tag needs some work in Linus' tree

2019-02-20 Thread Stephen Rothwell
Hi all, In commit 822ad64d7e46 ("keys: Fix dependency loop between construction record and auth key") Fixes tag Fixes: 7ee02a316600 ("keys: Fix dependency loop between construction record and auth key") has these problem(s): - Target SHA1 does not exist -- Cheers, Stephen Rothwell

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

2019-02-20 Thread Stefano Brivio
On Wed, 20 Feb 2019 12:25:48 -0800 (PST) David Miller wrote: > From: Stefano Brivio > Date: Wed, 20 Feb 2019 20:59:10 +0100 > > > On Wed, 20 Feb 2019 11:02:01 -0800 (PST) > > David Miller wrote: > > > >> From: Jiri Pirko > >> Date: Wed, 20 Feb 2019 09:36:11 +0100 > >> > >> > Would be go

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

2019-02-20 Thread Jiri Pirko
Wed, Feb 20, 2019 at 09:25:22PM CET, da...@davemloft.net wrote: >From: Jiri Pirko >Date: Wed, 20 Feb 2019 20:58:11 +0100 > >> Wed, Feb 20, 2019 at 08:02:01PM CET, da...@davemloft.net wrote: >>>From: Jiri Pirko >>>Date: Wed, 20 Feb 2019 09:36:11 +0100 >>> Would be good to have some robot chec

Re: [PATCH 6/6] net: ethernet: ti: cpsw: deprecate cpsw-phy-sel driver

2019-02-20 Thread Tony Lindgren
* David Miller [190220 19:23]: > From: Grygorii Strashko > Date: Wed, 20 Feb 2019 17:25:19 +0200 > > > Deprecate cpsw-phy-sel driver as it's been replaced with new > > TI phy-gmii-sel PHY driver. > > > > Signed-off-by: Grygorii Strashko > > Acked-by: David S. Miller Thanks for the ack, but

Re: [PATCH] selftests/ftrace: Make the coloring POSIX compliant

2019-02-20 Thread Adam Borowski
On Wed, Feb 20, 2019 at 09:20:20PM +0100, Juerg Haefliger wrote: > On Wed, 20 Feb 2019 14:49:34 -0500 > Steven Rostedt wrote: > > > On Wed, 20 Feb 2019 17:13:33 +0100 > > Juerg Haefliger wrote: > > > > > echo -e and \e are not POSIX. Depending on what /bin/sh is, we can get > > > incorrect outp

Re: [PATCH] mtd: spi-nor: Add Winbond w25q16jv support

2019-02-20 Thread Tudor.Ambarus
Hi, Robert, On 02/14/2019 10:57 PM, Robert Marko wrote: > Datasheet: > https://www.winbond.com/resource-files/w25q16jv%20spi%20revg%2003222018%20plus.pdf > > Testing done on Mikrotik Routerboard RB450Gx4 board under 4.19.19 kernel. It is preferable to do the test on spi-nor/next > > Test board

Re: [PATCH 2/2] extcon intel-cht-wc: Enable external charger

2019-02-20 Thread Yauhen Kharuzhy
On Wed, Feb 20, 2019 at 05:42:28PM +0100, Hans de Goede wrote: > > > The input-current-limit only specifies how much current the charger may > > > draw from the micro-usb for both supplying the laptop as well as for > > > charging the battery combined. You can safely set this as high as > > > the c

[PATCH] isdn_common: Mark expected switch fall-throughs

2019-02-20 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warnings: drivers/isdn/i4l/isdn_common.c: In function ‘isdn_wildmat’: drivers/isdn/i4l/isdn_common.c:173:5: warning: this statement may fall through [-Wimpl

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

2019-02-20 Thread David Miller
From: Stefano Brivio Date: Wed, 20 Feb 2019 20:59:10 +0100 > On Wed, 20 Feb 2019 11:02:01 -0800 (PST) > David Miller wrote: > >> From: Jiri Pirko >> Date: Wed, 20 Feb 2019 09:36:11 +0100 >> >> > Would be good to have some robot checking "Fixes" sanity... >> >> I want to add a script to my

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

2019-02-20 Thread David Miller
From: Jiri Pirko Date: Wed, 20 Feb 2019 20:58:11 +0100 > Wed, Feb 20, 2019 at 08:02:01PM CET, da...@davemloft.net wrote: >>From: Jiri Pirko >>Date: Wed, 20 Feb 2019 09:36:11 +0100 >> >>> Would be good to have some robot checking "Fixes" sanity... >> >>I want to add a script to my trees that loca

Re: [PATCH v2 1/3] arm64: mm: use appropriate ctors for page tables

2019-02-20 Thread Yu Zhao
On Wed, Feb 20, 2019 at 03:57:59PM +0530, Anshuman Khandual wrote: > > > On 02/20/2019 03:58 AM, Yu Zhao wrote: > > On Tue, Feb 19, 2019 at 11:47:12AM +0530, Anshuman Khandual wrote: > >> + Matthew Wilcox > >> > >> On 02/19/2019 11:02 AM, Yu Zhao wrote: > >>> On Tue, Feb 19, 2019 at 09:51:01AM +0

[PATCH RFC 07/39] KVM: x86/xen: register vcpu time info region

2019-02-20 Thread Joao Martins
Allow the Xen emulated guest the ability to register secondary vcpu time information. On Xen guests this is used in order to be mapped to userspace and hence allow vdso gettimeofday to work. In doing so, move kvm_xen_set_pvclock_page() logic to kvm_xen_update_vcpu_time() and have the former a top-

Re: [PATCH 4/6] mm/gup: track gup-pinned pages

2019-02-20 Thread John Hubbard
On 2/20/19 11:24 AM, Ira Weiny wrote: On Sun, Feb 03, 2019 at 09:21:33PM -0800, john.hubb...@gmail.com wrote: From: John Hubbard [snip] + * + * Locking: the lockless algorithm described in page_cache_gup_pin_speculative() + * and page_cache_gup_pin_speculative() provides safe operation for

[PATCH RFC 03/39] KVM: x86/xen: register shared_info page

2019-02-20 Thread Joao Martins
We add a new ioctl, XEN_HVM_SHARED_INFO, to allow hypervisor to know where the guest's shared info page is. Signed-off-by: Joao Martins --- arch/x86/include/asm/kvm_host.h | 3 +++ arch/x86/kvm/x86.c | 21 +++ arch/x86/kvm/xen.c | 60 +

[PATCH RFC 06/39] KVM: x86/xen: register vcpu info

2019-02-20 Thread Joao Martins
The vcpu info supersedes the per vcpu area of the shared info page and the guest vcpus will use this instead. Signed-off-by: Joao Martins Signed-off-by: Ankur Arora --- arch/x86/include/asm/kvm_host.h | 2 + arch/x86/kvm/x86.c | 1 + arch/x86/kvm/xen.c | 93 +++

Re: [PATCH] selftests/ftrace: Make the coloring POSIX compliant

2019-02-20 Thread Juerg Haefliger
On Wed, 20 Feb 2019 14:49:34 -0500 Steven Rostedt wrote: > On Wed, 20 Feb 2019 17:13:33 +0100 > Juerg Haefliger wrote: > > > echo -e and \e are not POSIX. Depending on what /bin/sh is, we can get > > incorrect output like: > > I'm curious to which shell this is. Quite frankly I don't know b

[PATCH RFC 05/39] KVM: x86/xen: update wallclock region

2019-02-20 Thread Joao Martins
Wallclock on Xen is written in the shared_info page. To that purpose, export kvm_write_wall_clock() and pass on the GPA of its location to populate the shared_info wall clock data. Signed-off-by: Joao Martins --- arch/x86/kvm/x86.c | 2 +- arch/x86/kvm/x86.h | 1 + arch/x86/kvm/xen.c | 3 +++

[PATCH RFC 25/39] KVM: x86/xen: grant map support

2019-02-20 Thread Joao Martins
From: Ankur Arora Introduce support for mapping grant references. The sequence of events to map a grant is: rframe = read_shared_entry(guest_grant_table, grant-ref); rpfn = get_user_pages_remote(remote_mm, rframe); mark_shared_entry(guest_grant_table, grant-ref, GTF_re

[PATCH RFC 02/39] KVM: x86/xen: intercept xen hypercalls if enabled

2019-02-20 Thread Joao Martins
Add a new exit reason for emulator to handle Xen hypercalls. Albeit these are injected only if guest has initialized the Xen hypercall page - the hypercall is just a convenience but one that is done by pretty much all guests. Hence if the guest sets the hypercall page, we assume a Xen guest is goin

[PATCH RFC 24/39] KVM: x86/xen: backend hypercall support

2019-02-20 Thread Joao Martins
From: Ankur Arora Ordinarily a Xen backend domain would do hypercalls via int 0x81 (or vmcall) to enter a lower ring of execution. This is done via a hypercall_page which contains call stubs corresponding to each hypercall. For Xen backend driver support, however, we would like to do Xen hyperca

[PATCH RFC 13/39] KVM: x86/xen: handle PV timers oneshot mode

2019-02-20 Thread Joao Martins
If the guest has offloaded the timer virq, handle the following hypercalls for programming the timer: VCPUOP_set_singleshot_timer VCPUOP_stop_singleshot_timer set_timer_op(timestamp_ns) The event channel corresponding to the timer virq is then used to inject events once timer deadline

Re: [PATCH] powerpc/pseries: Fix dn reference error in dlpar_cpu_remove_by_index

2019-02-20 Thread Michael Bringmann
On 2/19/19 2:03 PM, Tyrel Datwyler wrote: > On 02/19/2019 07:46 AM, Michael Bringmann wrote: >> powerpc/pseries: Fix dn reference error in dlpar_cpu_remove_by_index() >> >> A reference to the device node of the CPU to be removed is released >> upon successful removal of the associated CPU device.

[PATCH RFC 26/39] KVM: x86/xen: grant unmap support

2019-02-20 Thread Joao Martins
From: Ankur Arora Grant unmap removes the grant from maptrack and marks it as not in use. We maintain a one-to-one correspondence between grant table and maptrack entries so there's no contention in allocation/free. Co-developed-by: Joao Martins Signed-off-by: Ankur Arora Signed-off-by: Joao M

[PATCH RFC 38/39] xen-blkback: xen_shim_domain() support

2019-02-20 Thread Joao Martins
With xen_shim_domain() enabled, the struct pages used for grant mappings are only valid in the interval between GNTTABOP_map_grant_ref and GNTTABOP_unmap_grant_ref. Ensure that we do not cache the struct page outside that duration. Also, update the struct page for the segment after GNTTABOP_map_g

[PATCH RFC 35/39] xen/xenbus: xen_shim_domain() support

2019-02-20 Thread Joao Martins
From: Ankur Arora Fixup the gnttab unmap_ops (and other data structures) to handle host_addr as an OUT parameter from the call to GNTTABOP_map_grant_ref. Also, allow xenstored to be hosted in XS_LOCAL mode for xen_shim_domain() -- this means that it does not need to acquire xenstore evtchn and p

[PATCH RFC 36/39] drivers/xen: xen_shim_domain() support

2019-02-20 Thread Joao Martins
Enable /dev/xen/{gntdev,evtchn} and /proc/xen/ for xen_shim_domain(). These interfaces will be used by xenstored to initialize its event channel port and the kva used to communicate with the xenbus driver. Signed-off-by: Joao Martins --- drivers/xen/evtchn.c | 4 +++- drivers/xen/priv

[PATCH RFC 33/39] xen/grant-table: xen_shim_domain() support

2019-02-20 Thread Joao Martins
With xen-shim, allocate_xenballooned_pages() only allocates a place-holder page (pfn 0) expecting a subsequent map_grant_ref to fix it up. However, this means that, until the grant operation (GNTTABOP_map_grant_ref) provides a valid page, we cannot set PagePrivate or save any state. This patch el

[PATCH RFC 32/39] xen/balloon: xen_shim_domain() support

2019-02-20 Thread Joao Martins
Xen ballooning uses hollow struct pages (with the underlying PFNs being populated/unpopulated via hypercalls) which are used by the grant logic to map grants from other domains. For purposes of a KVM based xen-shim, this model is not useful -- mapping is unnecessary since all guest memory is alrea

[PATCH RFC 37/39] xen-netback: xen_shim_domain() support

2019-02-20 Thread Joao Martins
GNTTABOP_map_grant_ref treats host_address as an OUT parameter for xen_shim_domain(). After doing gnttab_map_refs, we check each map op struct and replace the page passed with the page returned by the hypercall. Note that mmap_pages is just a placeholder when netback runs in xen_shim_domain() mo

[PATCH RFC 34/39] xen/gntdev: xen_shim_domain() support

2019-02-20 Thread Joao Martins
From: Ankur Arora GNTTABOP_map_grant_ref treats host_addr as an OUT parameter for xen_shim_domaim(). Accordingly it's updated in struct gnttab_unmap_grant_ref before it gets used via GNTTABOP_unmap_grant_ref. Co-developed-by: Joao Martins Signed-off-by: Ankur Arora Signed-off-by: Joao Martins

[PATCH RFC 30/39] KVM: x86/xen: add additional evtchn ops

2019-02-20 Thread Joao Martins
From: Ankur Arora Add support for changing event channel affinity (EVTCHNOP_bind_vcpu) and closing an event (EVTCHNOP_close). We just piggy back on the functionality already implemented for guest event channels. Signed-off-by: Ankur Arora --- arch/x86/kvm/xen.c | 32 ++

[PATCH RFC 31/39] xen-shim: introduce shim domain driver

2019-02-20 Thread Joao Martins
From: Ankur Arora xen-shim.ko sets up and tears down state needed to support Xen backends. The underlying primitives that are exposed are interdomain event-channels and grant-table map/unmap/copy. We setup the following: * Initialize shared_info and vcpu_info pages, essentially setting up

[PATCH RFC 39/39] KVM: x86: declare Xen HVM Dom0 capability

2019-02-20 Thread Joao Martins
Add new capability for domid, interdomain/unbound event channel types and grant table support in hypervisor. This would be used to drive Xen kernel backends. Co-developed-by: Ankur Arora Signed-off-by: Joao Martins Signed-off-by: Ankur Arora --- Documentation/virtual/kvm/api.txt | 10 +

[PATCH RFC 20/39] xen-blkback: module_exit support

2019-02-20 Thread Joao Martins
Implement module_exit to allow users to do module unload of blkback. We prevent users from module unload whenever there are still interfaces allocated, in other words, do module_get on xen_blkif_alloc() and module_put on xen_blkif_free(). Signed-off-by: Joao Martins --- drivers/block/xen-blkba

[PATCH RFC 17/39] x86/xen: export vcpu_info and shared_info

2019-02-20 Thread Joao Martins
From: Ankur Arora Also remove __init annotations from xen_evtchn_2l/fifo_init(). This allows us to support 2-level event channel ABI on xen_shim_domain(). Signed-off-by: Ankur Arora --- arch/x86/xen/enlighten.c | 3 +++ drivers/xen/events/events_2l.c | 2 +- drivers/xen/events/event

[PATCH RFC 23/39] KVM: x86/xen: grant table grow support

2019-02-20 Thread Joao Martins
Guests grant tables with core Xen PV devices (xenbus, console) need to be seeded with a bunch of reserved entries at boot. However, at init, the grant table is, from a guest perspective, empty and has no frames backing it. That only happens once the guest does: XENMEM_add_to_physmap(idx=N,gfn=M,s

[PATCH RFC 18/39] x86/xen: make hypercall_page generic

2019-02-20 Thread Joao Martins
From: Ankur Arora Export hypercall_page as a generic interface which can be implemented by other hypervisors. With this change, hypercall_page now points to the newly introduced xen_hypercall_page which is seeded by Xen, or to one that is filled in by a different hypervisor. Signed-off-by: Ankur

[PATCH RFC 28/39] KVM: x86/xen: interdomain evtchn support

2019-02-20 Thread Joao Martins
From: Ankur Arora Implement sending events between backend and the guest. To send an event we mark the event channel pending by setting some bits in the shared_info and vcpu_info pages and deliver the upcall on the destination vcpu. To send an event to dom0, we mark the event channel pending and

[PATCH RFC 22/39] KVM: x86/xen: grant table init

2019-02-20 Thread Joao Martins
Add support for guest grant table initialization. This is mostly scaffolding at this point: we allocate grant table state and map it globally. Later patches add support for seeding the grant table with reserved entries, and setup maptrack which would be used for grant map and unmap operations. Si

[PATCH RFC 27/39] KVM: x86/xen: grant copy support

2019-02-20 Thread Joao Martins
Copies from source grant reference to dest grant reference (or the other way around.) Signed-off-by: Joao Martins --- arch/x86/kvm/xen.c | 151 + 1 file changed, 151 insertions(+) diff --git a/arch/x86/kvm/xen.c b/arch/x86/kvm/xen.c index 8f06

[PATCH RFC 29/39] KVM: x86/xen: evtchn unmask support

2019-02-20 Thread Joao Martins
From: Ankur Arora Handle hypercall to unmasks event channel ports. A subtlety here is that we deliver an upcall if an actual unmask happened and the event channel was pending (and if the vcpu-wide evtchn_pending_sel was not already marked pending.) Co-developed-by: Joao Martins Signed-off-by:

[PATCH RFC 21/39] KVM: x86/xen: domid allocation

2019-02-20 Thread Joao Martins
Userspace requests a free @domid to be assigned to itself, or explicitly selects one by setting @any to 0. The @domid is then used for various interdomain/unbound event purposes. Signed-off-by: Joao Martins --- arch/x86/include/asm/kvm_host.h | 2 ++ arch/x86/kvm/x86.c | 2 ++ arc

[PATCH RFC 16/39] KVM: x86: declare Xen HVM evtchn offload capability

2019-02-20 Thread Joao Martins
Add new capability for event channel support in hypervisor. Signed-off-by: Joao Martins --- Documentation/virtual/kvm/api.txt | 9 + arch/x86/kvm/x86.c| 1 + include/uapi/linux/kvm.h | 3 +++ 3 files changed, 13 insertions(+) diff --git a/Documentation/virtual/k

[PATCH RFC 09/39] KVM: x86: declare Xen HVM guest capability

2019-02-20 Thread Joao Martins
Also take the chance to document this rather old capability of KVM_CAP_XEN_HVM which only means it supports the Xen hypercall MSR. Signed-off-by: Joao Martins --- Documentation/virtual/kvm/api.txt | 14 ++ arch/x86/kvm/x86.c| 1 + include/uapi/linux/kvm.h |

[PATCH RFC 14/39] KVM: x86/xen: handle PV IPI vcpu yield

2019-02-20 Thread Joao Martins
Cooperative Linux guests after an IPI-many may yield vcpu if any of the IPI'd vcpus were preempted (i.e. runstate is 'runnable'.) Support SCHEDOP_yield for handling yield. Signed-off-by: Joao Martins --- arch/x86/kvm/xen.c | 31 +++ 1 file changed, 31 insertions(+) d

[PATCH RFC 12/39] KVM: x86/xen: store virq when assigning evtchn

2019-02-20 Thread Joao Martins
Enable virq offload to the hypervisor. The primary user for this is the timer virq. Signed-off-by: Joao Martins --- arch/x86/include/asm/kvm_host.h | 2 ++ arch/x86/kvm/xen.c | 23 ++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/arch/x86/inclu

[PATCH RFC 15/39] KVM: x86/xen: handle PV spinlocks slowpath

2019-02-20 Thread Joao Martins
From: Boris Ostrovsky Add support for SCHEDOP_poll hypercall. This implementation is optimized for polling for a single channel, which is what Linux does. Polling for multiple channels is not especially efficient (and has not been tested). PV spinlocks slow path uses this hypercall, and explici

[PATCH RFC 10/39] KVM: x86/xen: support upcall vector

2019-02-20 Thread Joao Martins
From: Ankur Arora Add support for HVM_PARAM_CALLBACK_VIA_TYPE_VECTOR and HVM_PARAM_CALLBACK_VIA_TYPE_EVTCHN upcall. Some Xen upcall variants do not have an EOI for received upcalls. We handle that by directly injecting the interrupt in the VMCS instead of going through the LAPIC. Note that the r

[PATCH RFC 11/39] KVM: x86/xen: evtchn signaling via eventfd

2019-02-20 Thread Joao Martins
userspace registers a @port to an @eventfd, that is bound to a @vcpu. This information is then used when the guest does an EVTCHNOP_send with a port registered with the kernel. EVTCHNOP_send short-circuiting happens by marking the event as pending in the shared info and vcpu info pages and doing

[PATCH RFC 19/39] xen/xenbus: xenbus uninit support

2019-02-20 Thread Joao Martins
This allows reinitialization of xenbus which is useful for xen_shim_domain() support. Cleaning xenbus state means cancelling pending watch events, and deleting all watches, closing xenstore event channel and finally stopping xenbus/xenwatch kthreads alongside unregistering /proc/xen. Signed-off-by

[PATCH RFC 01/39] KVM: x86: fix Xen hypercall page msr handling

2019-02-20 Thread Joao Martins
Xen usually places its MSR at 0x400 or 0x4000200 depending on whether it is running in viridian mode or not. Note that this is not ABI guaranteed, so it is possible for Xen to advertise the MSR some place else. Given the way xen_hvm_config() is handled, if the former address is selected, this

[PATCH RFC 04/39] KVM: x86/xen: setup pvclock updates

2019-02-20 Thread Joao Martins
This means when we set shared_info page GPA, and request a master clock update. This will trigger all vcpus to update their respective shared pvclock data with guests. We follow a similar approach as Hyper-V and KVM and adjust it accordingly. Note however that Xen differs a little on how pvclock p

[PATCH RFC 00/39] x86/KVM: Xen HVM guest support

2019-02-20 Thread Joao Martins
Hey, Presented herewith a series that allows KVM to boot Xen x86 HVM guests (with their respective frontends and backends). On the hypervisor side, the approach is to keep the implementation similar to how HyperV was done on x86 KVM. On the backend driver side, the intent is to reuse Xen suppor

[PATCH RFC 08/39] KVM: x86/xen: register steal clock

2019-02-20 Thread Joao Martins
Allow emulator to register vcpu runstates which allow Xen guests to use that for steal clock. The 'preempted' state of KVM steal clock equates to 'runnable' state, 'running' has similar meanings for both and 'offline' is used when system admin needs to bring vcpu offline or hotplug. Signed-off-by:

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

2019-02-20 Thread Jiri Pirko
Wed, Feb 20, 2019 at 08:02:01PM CET, da...@davemloft.net wrote: >From: Jiri Pirko >Date: Wed, 20 Feb 2019 09:36:11 +0100 > >> Would be good to have some robot checking "Fixes" sanity... > >I want to add a script to my trees that locally do it for me but the When it is in tree, it's already late.

Re: xen/evtchn and forced threaded irq

2019-02-20 Thread Boris Ostrovsky
On 2/20/19 1:05 PM, Julien Grall wrote: > Hi, > > On 20/02/2019 17:07, Boris Ostrovsky wrote: >> On 2/20/19 9:15 AM, Julien Grall wrote: >>> Hi Boris, >>> >>> Thank you for your answer. >>> >>> On 20/02/2019 00:02, Boris Ostrovsky wrote: On Tue, Feb 19, 2019 at 05:31:10PM +, Julien Grall w

[PATCH v2] MAINTAINERS: Change mailing list for Hyper-V CORE AND DRIVERS

2019-02-20 Thread Haiyang Zhang
From: Haiyang Zhang The new mailing list is: linux-hyp...@vger.kernel.org Signed-off-by: Haiyang Zhang --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 86aa227b5782..403d6e4b8257 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7

Re: [PATCH] scsi: replace GFP_ATOMIC with GFP_KERNEL for sdev allocation

2019-02-20 Thread Benjamin Block
On Wed, Feb 20, 2019 at 11:11:31AM -0800, Bart Van Assche wrote: > On Wed, 2019-02-20 at 19:48 +0100, Benjamin Block wrote: > > We had a test-report where, under memory pressure, adding LUNs to the > > systems would fail (the tests add LUNs strictly in sequence): > > Hi Benjamin, > > There are tw

Re: [PATCH] kasan: turn off asan-stack for clang-8 and earlier

2019-02-20 Thread Nick Desaulniers
On Wed, Feb 20, 2019 at 10:44 AM Mark Brown wrote: > > On Wed, Feb 20, 2019 at 10:07:36AM -0800, Nick Desaulniers wrote: > > > I like Evgenii's idea: > > https://bugs.llvm.org/show_bug.cgi?id=38809#c10 > > That's a suggestion to tune the inlining heuristics. Yes; but it will also improve KASAN (i

[PATCH] MAINTAINERS: Add mailing list for Hyper-V CORE AND DRIVERS

2019-02-20 Thread Haiyang Zhang
From: Haiyang Zhang The new mailing list is: linux-hyp...@vger.kernel.org Signed-off-by: Haiyang Zhang --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 86aa227b5782..ef65de3cfe1b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7137,6 +7137,7 @@

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

2019-02-20 Thread Stefano Brivio
On Wed, 20 Feb 2019 11:02:01 -0800 (PST) David Miller wrote: > From: Jiri Pirko > Date: Wed, 20 Feb 2019 09:36:11 +0100 > > > Would be good to have some robot checking "Fixes" sanity... > > I want to add a script to my trees that locally do it for me but the > backlog for patch review for me

Re: [PATCH v3 2/2] i2c: designware: Add support for a bus clock

2019-02-20 Thread Wolfram Sang
On Wed, Feb 20, 2019 at 03:50:03PM +, Gareth Williams wrote: > From: Phil Edworthy > > The Synopsys I2C Controller has a bus clock, but most SoCs hide this away. > However, on some SoCs you need to explicity enable the bus clock in order > to access the registers. Therefore, add support for a

RE: [PATCH] MAINTAINERS: Add mailing list for Hyper-V CORE AND DRIVERS

2019-02-20 Thread Haiyang Zhang
> -Original Message- > From: Greg KH > Sent: Wednesday, February 20, 2019 2:52 PM > To: Haiyang Zhang > Cc: sas...@kernel.org; linux-hyp...@vger.kernel.org; > de...@linuxdriverproject.org; Stephen Hemminger > ; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] MAINTAINERS: Add mailin

Re: [PATCH] kobject: Don't trigger kobject_uevent(KOBJ_REMOVE) twice.

2019-02-20 Thread Dmitry Torokhov
On Wed, Feb 20, 2019 at 7:07 AM Greg Kroah-Hartman wrote: > > On Wed, Feb 20, 2019 at 10:38:34PM +0900, Tetsuo Handa wrote: > > syzbot is hitting use-after-free bug in uinput module [1]. This is because > > kobject_uevent(KOBJ_REMOVE) is called again due to commit 0f4dafc0563c6c49 > > ("Kobject: a

Re: [PATCH] MAINTAINERS: Add mailing list for Hyper-V CORE AND DRIVERS

2019-02-20 Thread Greg KH
On Wed, Feb 20, 2019 at 07:48:23PM +, Haiyang Zhang wrote: > From: Haiyang Zhang > > The new mailing list is: linux-hyp...@vger.kernel.org > > Signed-off-by: Haiyang Zhang > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 86aa22

Re: [PATCH] selftests/ftrace: Make the coloring POSIX compliant

2019-02-20 Thread Steven Rostedt
On Wed, 20 Feb 2019 17:13:33 +0100 Juerg Haefliger wrote: > echo -e and \e are not POSIX. Depending on what /bin/sh is, we can get > incorrect output like: I'm curious to which shell this is. > $ -e -n [1] Basic trace file check > $ -e [PASS] > > Fix that by using \033 instead of \e and print

Re: [PATCH 7/7] iommu/ipmmu-vmsa: Add suspend/resume support

2019-02-20 Thread Geert Uytterhoeven
Hi Laurent, On Wed, Feb 20, 2019 at 5:11 PM Laurent Pinchart wrote: > On Wed, Feb 20, 2019 at 05:05:49PM +0100, Geert Uytterhoeven wrote: > > On Wed, Feb 20, 2019 at 4:42 PM Laurent Pinchart wrote: > > > On Wed, Feb 20, 2019 at 04:05:31PM +0100, Geert Uytterhoeven wrote: > > >> During PSCI system

Re: [PATCH] selftests/ftrace: Handle the absence of tput

2019-02-20 Thread Steven Rostedt
On Wed, 20 Feb 2019 16:37:06 +0100 Juerg Haefliger wrote: > In environments where tput is not availbale, we get the following available > error > $ ./ftracetest: 163: [: Illegal number: > because ncolors is an empty string. Fix that by setting it to 0 if the

Re: [PATCH v3] iio: adc: ti-ads7950: add GPIO support

2019-02-20 Thread Justin Chen
On Wed, Feb 20, 2019 at 9:23 AM Jonathan Cameron wrote: > > On Wed, 20 Feb 2019 10:48:49 -0600 > David Lechner wrote: > > > On 2/20/19 6:00 AM, Jonathan Cameron wrote: > > > On Wed, 13 Feb 2019 09:10:53 +0100 > > > David Lechner wrote: > > > > > >> On 2/12/19 9:57 PM, justinpo...@gmail.com wrote

Re: [PATCH] clk: at91: fix masterck name

2019-02-20 Thread Stephen Boyd
Quoting Alexandre Belloni (2019-02-08 06:40:59) > The master clock is actually named masterck earlier in the driver. Having > "mck" in the parent list means that it can never be selected. > > Fixes: 1eabdc2f9dd8 ("clk: at91: add at91sam9x5 PMCs driver") > Fixes: a2038077de9a ("clk: at91: add sama5

Re: [PATCH] clk: at91: fix at91sam9x5 peripheral clock number

2019-02-20 Thread Stephen Boyd
Quoting Alexandre Belloni (2019-02-19 08:51:14) > nck() looks at the last id in an array and unfortunately, > at91sam9x35_periphck has a sentinel, hence the id is 0 and the calculated > number of peripheral clocks is 1 instead of a maximum of 31. > > Fixes: 1eabdc2f9dd8 ("clk: at91: add at91sam9x5

Re: [PATCH] clk: at91: fix at91sam9x5 peripheral clock number

2019-02-20 Thread Stephen Boyd
Quoting nicolas.fe...@microchip.com (2019-02-20 03:18:40) > On 19/02/2019 at 17:51, Alexandre Belloni wrote: > > nck() looks at the last id in an array and unfortunately, > > at91sam9x35_periphck has a sentinel, hence the id is 0 and the calculated > > number of peripheral clocks is 1 instead of a

Re: [PATCH V5 5/8] clk: mediatek: add MUX_GATE_FLAGS_2

2019-02-20 Thread Stephen Boyd
Quoting wangyan wang (2019-02-19 18:53:54) > From: chunhui dai > > Add MUX_GATE_FLAGS_2 for the clock which needs to set two falgs. s/falgs/flags/ > Such as some mux need to set the flags of "CLK_MUX_ROUND_CLOSEST". > > Signed-off-by: chunhui dai > Signed-off-by: wangyan wang > --- > driver

Re: [PATCH] tracing: fix incorrect tracer freeing when opening tracing pipe

2019-02-20 Thread Steven Rostedt
On Sat, 16 Feb 2019 19:19:03 +0800 "zhangyi (F)" wrote: > On 2019/2/13 21:36, Steven Rostedt Wrote: > > On Wed, 13 Feb 2019 20:29:06 +0800 > > "zhangyi (F)" wrote: > > > >> Commit d716ff71dd12 ("tracing: Remove taking of trace_types_lock in > >> pipe files") use the current tracer instead of

Re: [PATCH] net: dsa: add missing phy address offset

2019-02-20 Thread Andrew Lunn
On Wed, Feb 20, 2019 at 11:27:16AM -0800, Florian Fainelli wrote: > On 2/20/19 10:15 AM, Marcel Reichmuth wrote: > > When phys do not start at address 0 like on the mv88e6341 the wrong > > phy address is used and therefore the slave ports can not be > > initialized. This patch adds the proper offse

Re: [RESEND PATCH 3/7] mm/gup: Change GUP fast to use flags rather than a write 'bool'

2019-02-20 Thread Mike Marshall
Hi Ira Martin and I looked at your patch and agree that it doesn't change functionality for Orangefs. Reviewed-by: Mike Marshall On Wed, Feb 20, 2019 at 12:32 AM wrote: > > From: Ira Weiny > > To facilitate additional options to get_user_pages_fast() change the > singular write parameter to

Re: [PATCH] net: dsa: add missing phy address offset

2019-02-20 Thread Florian Fainelli
On 2/20/19 10:15 AM, Marcel Reichmuth wrote: > When phys do not start at address 0 like on the mv88e6341 the wrong > phy address is used and therefore the slave ports can not be > initialized. This patch adds the proper offset to the phy address. > > Signed-off-by: Marcel Reichmuth You are suppo

Re: [PATCH 4/6] mm/gup: track gup-pinned pages

2019-02-20 Thread Ira Weiny
On Sun, Feb 03, 2019 at 09:21:33PM -0800, john.hubb...@gmail.com wrote: > From: John Hubbard > [snip] > > +/* > + * GUP_PIN_COUNTING_BIAS, and the associated functions that use it, overload > + * the page's refcount so that two separate items are tracked: the original > page > + * reference

Re: [PATCH 6/6] net: ethernet: ti: cpsw: deprecate cpsw-phy-sel driver

2019-02-20 Thread David Miller
From: Grygorii Strashko Date: Wed, 20 Feb 2019 17:25:19 +0200 > Deprecate cpsw-phy-sel driver as it's been replaced with new > TI phy-gmii-sel PHY driver. > > Signed-off-by: Grygorii Strashko Acked-by: David S. Miller

Re: [PATCH v4 00/12] Mediatek MT8183 clock and scpsys support

2019-02-20 Thread Stephen Boyd
Quoting Weiyi Lu (2019-02-01 00:30:04) > This series is based on v5.0-rc1 and most of changes are extracted from > series below > (clock/scpsys common changes for both MT8183 & MT6765) > https://patchwork.kernel.org/patch/10528495/ > (clock support of MT8183) > https://patchwork.kernel.org/patch/1

Re: [PATCH] iommu/dmar: fix buffer overflow during PCI bus notification

2019-02-20 Thread Julia Cartwright
On Wed, Feb 20, 2019 at 10:46:31AM -0600, Julia Cartwright wrote: > Commit 57384592c433 ("iommu/vt-d: Store bus information in RMRR PCI > device path") changed the type of the path data, however, the change in > path type was not reflected in size calculations. Update to use the > correct type and

Re: [PATCH] scsi: replace GFP_ATOMIC with GFP_KERNEL for sdev allocation

2019-02-20 Thread Bart Van Assche
On Wed, 2019-02-20 at 19:48 +0100, Benjamin Block wrote: > We had a test-report where, under memory pressure, adding LUNs to the > systems would fail (the tests add LUNs strictly in sequence): Hi Benjamin, There are two more instances of GFP_ATOMIC in scsi_scan.c. Have you verified whether or not

Re: [RFC][PATCH 00/16] sched: Core scheduling

2019-02-20 Thread Greg Kerr
On Wed, Feb 20, 2019 at 10:42:55AM +0100, Peter Zijlstra wrote: > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > I am relieved to know that when my mail client em

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

2019-02-20 Thread David Miller
From: Jiri Pirko Date: Wed, 20 Feb 2019 09:36:11 +0100 > Would be good to have some robot checking "Fixes" sanity... I want to add a script to my trees that locally do it for me but the backlog for patch review for me is so huge that I never get to "fun" tasks like that This has been discus

Re: [PATCH v2] x86/asm: Pin sensitive CR4 bits

2019-02-20 Thread Solar Designer
On Wed, Feb 20, 2019 at 10:09:34AM -0800, Kees Cook wrote: > +extern volatile unsigned long cr4_pin; > + > static inline void native_write_cr4(unsigned long val) > { > +again: > + val |= cr4_pin; > asm volatile("mov %0,%%cr4": : "r" (val), "m" (__force_order)); > + /* > + * If

Re: [PATCH] iio: chemical: sps30: fix attribute kernel version

2019-02-20 Thread Tomasz Duszynski
On Wed, Feb 20, 2019 at 11:16:32AM +, Jonathan Cameron wrote: > On Fri, 15 Feb 2019 20:57:59 +0100 > Tomasz Duszynski wrote: > > > 4.22 has never existed and this change was actually added to 4.21 > > hence fix the numbering. > > > > Signed-off-by: Tomasz Duszynski > 4.21 isn't going to exist

Re: [RFC PATCH 00/27] Containers and using authenticated filesystems

2019-02-20 Thread Steve French
On Tue, Feb 19, 2019 at 5:42 PM David Howells wrote: > > Eric W. Biederman wrote: > > > So you missed the main mailing lists for discussion of this kind of > > thing > > Yeah, sorry about that. I was primarily aiming it at Trond and Steve as I'd > like to consider how to go about interpolating r

Re: [PATCH v15 15/15] tracing: Add hist trigger action 'expected fail' test case

2019-02-20 Thread Steven Rostedt
On Wed, 20 Feb 2019 12:45:15 -0600 Tom Zanussi wrote: > > OK, so this has nothing to do with your patch set. I've tested > > everything else, and I'm ready to finally push my tree to linux-next. > > > > I'm thinking that we should get rid of xfail, as it's really > > confusing, > > and I don't u

Re: [for-next][PATCH 13/29] tracing: No need to free iter->trace in fail path of tracing_open_pipe()

2019-02-20 Thread Steven Rostedt
Here's the new patch change log: >From e7f0c424d0806b05d6f47be9f202b037eb701707 Mon Sep 17 00:00:00 2001 From: "zhangyi (F)" Date: Wed, 13 Feb 2019 20:29:06 +0800 Subject: [PATCH] tracing: Do not free iter->trace in fail path of tracing_open_pipe() Commit d716ff71dd12 ("tracing: Remove taking o

[PATCH] scsi: replace GFP_ATOMIC with GFP_KERNEL for sdev allocation

2019-02-20 Thread Benjamin Block
We had a test-report where, under memory pressure, adding LUNs to the systems would fail (the tests add LUNs strictly in sequence): [ 5525.853432] scsi 0:0:1:1088045124: Direct-Access IBM 2107900 .148 PQ: 0 ANSI: 5 [ 5525.853826] scsi 0:0:1:1088045124: alua: supports implicit TP

Re: [PATCH] iio: cros_ec_accel_legacy: Mark expected switch fall-throughs

2019-02-20 Thread Gustavo A. R. Silva
On 2/20/19 12:34 PM, Jonathan Cameron wrote: > On Wed, 20 Feb 2019 10:20:39 -0800 > Kees Cook wrote: > >> On Mon, Oct 8, 2018 at 10:24 AM Gustavo A. R. Silva >> wrote: >>> >>> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >>> where we are expecting to fall through. >>>

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