Re: [PATCH 2/4] [media] usbvision-core: Use common error handling code in usbvision_set_compress_params()

2017-09-22 Thread SF Markus Elfring
>> @@ -1913,11 +1908,12 @@ static int usbvision_set_compress_params(struct >> usb_usbvision *usbvision) >> USB_DIR_OUT | USB_TYPE_VENDOR | >> USB_RECIP_ENDPOINT, 0, >> (__u16) USBVISION_PCM_THR1, value, 6, HZ); >> +i

Re: [PATCH v2 1/3] dt-bindings: add compatible string for Allwinner V3s SoC

2017-09-22 Thread icenowy
在 2017-08-22 13:23,Icenowy Zheng 写道: The compatible string for Allwinner V3s SoC used to be missing. Add it to the binding document. Fixes: b074fede01c0 ("arm: sunxi: add support for V3s SoC") Signed-off-by: Icenowy Zheng Maxime, Ping. Have you checked this patchset? --- Documentation/dev

[PATCH] mm/device-public-memory: Fix edge case in _vm_normal_page()

2017-09-22 Thread Reza Arbab
With device public pages at the end of my memory space, I'm getting output from _vm_normal_page(): BUG: Bad page map in process migrate_pages pte:c0810d06 pmd:f95d3000 addr:7fff8933 vm_flags:00100073 anon_vma:c000fa899320 mapping: (null) index:7fff8933 file:

Re: usb/storage/uas: slab-out-of-bounds in uas_probe

2017-09-22 Thread Alan Stern
On Fri, 22 Sep 2017, Greg Kroah-Hartman wrote: > On Fri, Sep 22, 2017 at 09:58:15AM +0200, Greg Kroah-Hartman wrote: > > On Thu, Sep 21, 2017 at 03:04:05PM -0400, Alan Stern wrote: > > > On Thu, 21 Sep 2017, Andrey Konovalov wrote: > > > > > > > On Thu, Sep 21, 2017 at 6:10 PM, Greg Kroah-Hartman

[PATCH] lib: zstd: make const array rtbTable static, reduces object code size

2017-09-22 Thread Colin King
From: Colin Ian King Don't populate const array rtbTable on the stack, instead make it static. Also split overly long line to clean a chechkpach warning. Makes the object code smaller by nearly 500 bytes: Before: textdata bss dec hex filename 13297 104 0 13401

Re: [media] usbvision-core: Delete unnecessary braces in 11 functions

2017-09-22 Thread SF Markus Elfring
> No. Multi-line indents get curly braces for readability. Which of the proposed change possibilities do you not like especially at the moment? Regards, Markus

[GIT PULL] xen: Fixes for rc2

2017-09-22 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.14b-rc2-tag xen: Fixes for rc2 It contains a fix for a missing __init annotation and two cleanup patches. Thanks. Juergen arch/x86/xen/mmu_pv.c | 2 +- drivers/xe

Re: sysbench throughput degradation in 4.13+

2017-09-22 Thread Eric Farman
On 09/13/2017 04:24 AM, 王金浦 wrote: 2017-09-12 16:14 GMT+02:00 Eric Farman : Hi Peter, Rik, Running sysbench measurements in a 16CPU/30GB KVM guest on a 20CPU/40GB s390x host, we noticed a throughput degradation (anywhere between 13% and 40%, depending on test) when moving the host from kernel

Re: [RFC PATCH v3 1/2] membarrier: Provide register expedited private command

2017-09-22 Thread Mathieu Desnoyers
- On Sep 22, 2017, at 4:59 AM, Boqun Feng boqun.f...@gmail.com wrote: > On Tue, Sep 19, 2017 at 06:13:41PM -0400, Mathieu Desnoyers wrote: > [...] >> +static inline void membarrier_arch_sched_in(struct task_struct *prev, >> +struct task_struct *next) >> +{ >> +/* >> + * Onl

Re: [PATCH v5] iio: dac: ds4422/ds4424 dac driver

2017-09-22 Thread Jonathan Cameron
On Thu, 21 Sep 2017 18:26:59 -0500 Rob Herring wrote: > On Tue, Sep 19, 2017 at 12:23:32AM -0700, Ismail Kose wrote: > > From: "Ismail H. Kose" > > > > This patch provides an iio device driver for DS4422/DS4424 chips that > > support > > two/four channel 7-bit Sink/Source Current DAC. > > > >

Re: [PATCH] cgroup: Reinit cgroup_taskset structure before cgroup_migrate_execute() returns

2017-09-22 Thread Tejun Heo
On Thu, Sep 21, 2017 at 09:54:13AM -0400, Waiman Long wrote: ... > To allow reuse of the cgroup_mgctx structure, some fields in that > structure are now re-initialized at the end of cgroup_migrate_execute() > function call so that the structure can be reused again in a later > iteration without cau

[PATCH] staging: rtl8192e: make const array broadcast_addr static, reduces object code size

2017-09-22 Thread Colin King
From: Colin Ian King Don't populate const array broadcast_addr on the stack, instead make it static. Makes the object code smaller by over 40 bytes: Before: textdata bss dec hex filename 6390682481216 73370 11e9a rtllib_softmac.o After: textdata bss

Re: [PATCH] seccomp: fix the usage of get/put_seccomp_filter() in seccomp_get_filter()

2017-09-22 Thread Oleg Nesterov
On 09/21, Kees Cook wrote: > > On Thu, Sep 21, 2017 at 3:57 AM, Oleg Nesterov wrote: > > On 09/20, Kees Cook wrote: > >> > >> Given how reference counting is done for filters, I'd be happier with > >> leaving the get_seccomp_filter() as-is, > > > > No, please note that filter != tsk->seccomp.filte

Re: [PATCH 0/5] exec: binfmt_misc: fix use-after-free, kill iname[BINPRM_BUF_SIZE]

2017-09-22 Thread Kees Cook
On Fri, Sep 22, 2017 at 7:36 AM, Oleg Nesterov wrote: > Note: 5/5 depends on > > -extern int bprm_change_interp(char *interp, struct linux_binprm > *bprm); > +extern int bprm_change_interp(const char *interp, struct > linux_binprm *bprm); > > change in > > [PATCH] exec: l

Re: [PATCH] seccomp: fix the usage of get/put_seccomp_filter() in seccomp_get_filter()

2017-09-22 Thread Tycho Andersen
On Fri, Sep 22, 2017 at 05:22:29PM +0200, Oleg Nesterov wrote: > On 09/21, Kees Cook wrote: > > > > On Thu, Sep 21, 2017 at 3:57 AM, Oleg Nesterov wrote: > > > On 09/20, Kees Cook wrote: > > >> > > >> Given how reference counting is done for filters, I'd be happier with > > >> leaving the get_secc

Re: [PATCH v3] membarrier: Document scheduler barrier requirements

2017-09-22 Thread Mathieu Desnoyers
- On Sep 21, 2017, at 8:25 AM, Peter Zijlstra pet...@infradead.org wrote: > On Tue, Sep 19, 2017 at 06:02:05PM -0400, Mathieu Desnoyers wrote: >> diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c >> index 1ab3821f9e26..74f94fe4aded 100644 >> --- a/arch/x86/mm/tlb.c >> +++ b/arch/x86/mm/tlb.c

Re: [PATCH 9/9 v2] usb: usb251xb: Use GPIO descriptor consumer interface

2017-09-22 Thread Serge Semin
On Thu, Sep 21, 2017 at 05:07:14PM +0200, Greg KH wrote: > On Thu, Sep 21, 2017 at 05:51:29PM +0300, Serge Semin wrote: > > On Thu, Sep 21, 2017 at 10:23:38AM +0200, Greg KH > > wrote: > > > On Sat, Sep 16, 2017 at 01:42:20PM +0300, Serge Semin wrote: > > > > diff --git a/drivers/usb/misc/usb25

Re: [PATCH 3/6] scsi: lpfc: Cocci spatch "pool_zalloc-simple"

2017-09-22 Thread James Smart
On 9/20/2017 11:15 PM, Thomas Meyer wrote: Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Signed-off-by: Thomas Meyer --- Looks good. Thanks. Signed-off-by: James Smart

[PATCH 2/3] srcu: queue work without holding the lock

2017-09-22 Thread Sebastian Andrzej Siewior
On RT we can't invoke queue_delayed_work() within an atomic section (which is provided by raw_spin_lock_irqsave()). srcu_reschedule() invokes queue_delayed_work() outside of the raw_spin_lock_irq_rcu_node() section so this should be fine here, too. If the remaining callers of call_srcu() aren't ato

[PATCH 3/3] rcu/segcblist: include rcupdate.h

2017-09-22 Thread Sebastian Andrzej Siewior
The RT build on ARM complains about non-existing ULONG_CMP_LT. Signed-off-by: Sebastian Andrzej Siewior --- kernel/rcu/rcu_segcblist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/rcu/rcu_segcblist.c b/kernel/rcu/rcu_segcblist.c index 7649fcd2c4c7..88cba7c2956c 100644 --- a/kernel/

[PATCH 1/3] srcu: use cpu_online() instead custom check

2017-09-22 Thread Sebastian Andrzej Siewior
The current check via srcu_online is slightly racy because after looking at srcu_online there could be an interrupt that interrupted us long enough until the CPU we checked against went offline. An alternative would be to hold the hotplug rwsem (so the CPUs don't change their state) and then check

Re: [PATCH 2/4] numa, iommu/io-pgtable-arm: Use NUMA aware memory allocation for smmu translation tables

2017-09-22 Thread Ganapatrao Kulkarni
On Thu, Sep 21, 2017 at 4:41 PM, Robin Murphy wrote: > On 21/09/17 09:59, Ganapatrao Kulkarni wrote: >> function __arm_lpae_alloc_pages is used to allcoated memory for smmu >> translation tables. updating function to allocate memory/pages >> from the proximity domain of SMMU device. > > AFAICS, da

[PATCH] b43: make const arrays static, reduces object code size

2017-09-22 Thread Colin King
From: Colin Ian King Don't populate const arrays on the stack, instead make them static. Makes the object code smaller by over 60 bytes: Before: textdata bss dec hex filename 148161296 0 161123ef0 b43/phy_ht.o After: textdata bss dec hex f

Re: [PATCH] selftests: timers: set-timer-lat: fix hang when std out/err are redirected

2017-09-22 Thread Greg Hackmann
On 09/22/2017 07:42 AM, Shuah Khan wrote: Hi John/Greg, On 09/21/2017 02:10 PM, Shuah Khan wrote: do_timer_oneshot() uses select() as a timer with FD_SETSIZE and readfs is cleared with FD_ZERO without FD_SET. When stdout and stderr are redirected, the test hangs in select forever. Fix the prob

Re: [RESEND] proc, coredump: add CoreDumping flag to /proc/pid/status

2017-09-22 Thread Konstantin Khlebnikov
On Thu, Sep 21, 2017 at 2:06 AM, Roman Gushchin wrote: > Right now there is no convenient way to check if a process is being > coredumped at the moment. > > It might be necessary to recognize such state to prevent killing > the process and getting a broken coredump. > Writing a large core might ta

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-22 Thread Tejun Heo
Hello, David. On Thu, Sep 21, 2017 at 02:17:25PM -0700, David Rientjes wrote: > It doesn't have anything to do with my particular usecase, but rather the > ability of userspace to influence the decisions of the kernel. Previous > to this patchset, when selection is done based on process size, u

Re: [PATCH 4/4] iommu/dma, numa: Use NUMA aware memory allocations in __iommu_dma_alloc_pages

2017-09-22 Thread Ganapatrao Kulkarni
Hi Robin, On Thu, Sep 21, 2017 at 5:11 PM, Robin Murphy wrote: > On 21/09/17 09:59, Ganapatrao Kulkarni wrote: >> Change function __iommu_dma_alloc_pages to allocate memory/pages >> for dma from respective device numa node. >> >> Signed-off-by: Ganapatrao Kulkarni >> --- >> drivers/iommu/dma-i

[PATCH] futex: Fix pi_state->owner serialization

2017-09-22 Thread Peter Zijlstra
There was a reported suspicion about a race between exit_pi_state_list() and put_pi_state(). The same report mentioned the comment with put_pi_state() said it should be called with hb->lock held, and it no longer is in all places. And as it turns out, the pi_state->owner serialization is indeed b

[PATCH] hv_netvsc: make const array ver_list static, reduces object code size

2017-09-22 Thread Colin King
From: Colin Ian King Don't populate const array ver_list on the stack, instead make it static. Makes the object code smaller by over 400 bytes: Before: textdata bss dec hex filename 184443168 320 2193255ac drivers/net/hyperv/netvsc.o After: textdata

Re: [PATCH] selftests: timers: set-timer-lat: Fix hang when testing unsupported alarms

2017-09-22 Thread Greg Hackmann
On 09/22/2017 07:41 AM, Shuah Khan wrote: I assume you are good with this fix. I plan to apply it to linux-kselftest fixes today. Please let me know if you have any objections. thanks, -- Shuah AIUI this check was added so set-timer-lat would treat a missing CAP_WAKE_ALARM as a skipped test

Re: sysbench throughput degradation in 4.13+

2017-09-22 Thread Peter Zijlstra
On Fri, Sep 22, 2017 at 11:03:39AM -0400, Eric Farman wrote: > Hi Peter, Rik, > > With OSS last week, I'm sure this got lost in the deluge, so here's a > friendly ping. Very much so, inbox is a giant trainwreck ;-) > I picked up 4.14.0-rc1 earlier this week, and still see the > degradation descr

Re: [PATCH] pci: Add dummy for pci_acs_enabled() if CONFIG_PCI=n to fix iommmu build

2017-09-22 Thread Bjorn Helgaas
On Mon, Sep 11, 2017 at 02:29:15PM +0200, Geert Uytterhoeven wrote: > If CONFIG_PCI=n, and gcc (e.g. 4.1.2) decides not to inline > get_pci_function_alias_group(), the build fails with: > > drivers/iommu/iommu.o: In function `get_pci_function_alias_group': > iommu.c:(.text+0xfdc): undefine

Re: [RFC][PATCH] sched: Cleanup task->state printing

2017-09-22 Thread Peter Zijlstra
On Fri, Sep 22, 2017 at 10:12:45AM -0400, Steven Rostedt wrote: > On Fri, 22 Sep 2017 13:54:30 +0200 > Peter Zijlstra wrote: > > > I should probably split this thing into a bunch of patches :/ > > Yes please. Convert form dec to hex in one patch and one patch only. Yeah, was already on it, did

Re: [PATCH] RDMA/qedr: fix build error without ipv6

2017-09-22 Thread Doug Ledford
On Tue, 2017-09-05 at 16:59 +0200, Arnd Bergmann wrote: > When CONFIG_IPV6 disabled, we run into a link error: > > drivers/infiniband/hw/qedr/qedr_iw_cm.o: In function > `qedr_addr6_resolve.isra.3': > qedr_iw_cm.c:(.text+0x4e0): undefined reference to > `ip6_route_output_flags' > > The ipv6 handl

[PATCH] [media] sn9c20x: Use common error handling code in sd_init()

2017-09-22 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 22 Sep 2017 17:45:33 +0200 Add jump targets so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/gspca/sn9c20x.c | 17

RE: [PATCH] hv_netvsc: make const array ver_list static, reduces object code size

2017-09-22 Thread Haiyang Zhang
> -Original Message- > From: Colin King [mailto:colin.k...@canonical.com] > Sent: Friday, September 22, 2017 8:50 AM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; > de...@linuxdriverproject.org; net...@vger.kernel.org > Cc: kernel-janit...@vger.kernel.org; linux-kernel@vger.

Re: [PATCH net-next 10/10] net: hns3: Add mqprio support when interacting with network stack

2017-09-22 Thread Jiri Pirko
Fri, Sep 22, 2017 at 04:11:51PM CEST, linyunsh...@huawei.com wrote: >Hi, Jiri > >>>- if (!tc) { >>>+ if (if_running) { >>>+ (void)hns3_nic_net_stop(netdev); >>>+ msleep(100); >>>+ } >>>+ >>>+ ret = (kinfo->dcb_ops && kinfo->dcb_ops->>setup_tc) ? >>>+ kinfo->dcb_ops->setup_tc(h, tc, prio_tc) : ->EOP

Re: [PATCH 9/9 v2] usb: usb251xb: Use GPIO descriptor consumer interface

2017-09-22 Thread Greg KH
On Fri, Sep 22, 2017 at 06:26:54PM +0300, Serge Semin wrote: > On Thu, Sep 21, 2017 at 05:07:14PM +0200, Greg KH > wrote: > > On Thu, Sep 21, 2017 at 05:51:29PM +0300, Serge Semin wrote: > > > On Thu, Sep 21, 2017 at 10:23:38AM +0200, Greg KH > > > wrote: > > > > On Sat, Sep 16, 2017 at 01:42:2

[PATCH][drm-next] drm/tve200: make two functions static

2017-09-22 Thread Colin King
From: Colin Ian King The functions tve200_display_disable and tve200_display_funcs are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'tve200_display_disable' was not declared. Should it be static? symbol 'tve200_display_funcs' w

Re: [PATCH v6 2/3] eeprom: at24: add support to fetch eeprom device property "size"

2017-09-22 Thread Andy Shevchenko
On Wed, Sep 20, 2017 at 6:52 AM, Mani, Rajmohan wrote: > Adding Tomasz... Please, don't top post. Better to resend entire series with all stakeholders included. >> Obtain the size of the EEPROM chip from DT if the "size" property is >> specified >> for the device. >> I guess it lacks Suggested

Re: sysbench throughput degradation in 4.13+

2017-09-22 Thread Eric Farman
On 09/22/2017 11:53 AM, Peter Zijlstra wrote: On Fri, Sep 22, 2017 at 11:03:39AM -0400, Eric Farman wrote: Hi Peter, Rik, With OSS last week, I'm sure this got lost in the deluge, so here's a friendly ping. Very much so, inbox is a giant trainwreck ;-) My apologies. :) I picked up 4.

Re: [PATCH] arch: remove unused *_segments() macros/functions

2017-09-22 Thread Vineet Gupta
On 09/22/2017 12:42 AM, Tobias Klauser wrote: Some architectures define the no-op macros/functions copy_segments, release_segments and forget_segments. These are used nowhere in the tree, so removed them. Signed-off-by: Tobias Klauser --- arch/arc/include/asm/processor.h| 3 --- Ack

Re: linux-next: manual merge of the devicetree tree with the rockchip and sunxi trees

2017-09-22 Thread Rob Herring
On Tue, Sep 19, 2017 at 9:26 PM, Stephen Rothwell wrote: > Hi Rob, > > Today's linux-next merge of the devicetree tree got a conflict in: > > Documentation/devicetree/bindings/vendor-prefixes.txt > > between commit: > > 50544f39018f ("dt-bindings: Add vendor prefix for Amarula Solutions") > >

Re: [PATCH] selftests: timers: set-timer-lat: Fix hang when testing unsupported alarms

2017-09-22 Thread Shuah Khan
On 09/22/2017 09:51 AM, Greg Hackmann wrote: > On 09/22/2017 07:41 AM, Shuah Khan wrote: >> I assume you are good with this fix. I plan to apply it to linux-kselftest >> fixes >> today. Please let me know if you have any objections. >> >> thanks, >> -- Shuah >> > > AIUI this check was added so se

[PATCH] Switch to use the new hashtable implementation. This reduces the code and need for yet another hashtable implementation.

2017-09-22 Thread Aaron Wood
Signed-off-by: Aaron Wood --- net/9p/error.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/net/9p/error.c b/net/9p/error.c index 126fd0dceea2..2e966fcc5cbb 100644 --- a/net/9p/error.c +++ b/net/9p/error.c @@ -32,6 +32,7 @@ #include #include #inclu

Re: [PATCH v5 3/6] iommu/iova: Extend rbtree node caching

2017-09-22 Thread Tomasz Nowicki
Hi Robin, On 21.09.2017 17:52, Robin Murphy wrote: The cached node mechanism provides a significant performance benefit for allocations using a 32-bit DMA mask, but in the case of non-PCI devices or where the 32-bit space is full, the loss of this benefit can be significant - on large systems th

[PATCH net-next 4/4] net: dsa: add port enable and disable helpers

2017-09-22 Thread Vivien Didelot
Provide dsa_port_enable and dsa_port_disable helpers to respectively enable and disable a switch port. This makes the dsa_port_set_state_now helper static. Signed-off-by: Vivien Didelot --- net/dsa/dsa_priv.h | 3 ++- net/dsa/port.c | 31 ++- net/dsa/slave.c|

[PATCH net-next 0/4] net: dsa: simplify port enabling

2017-09-22 Thread Vivien Didelot
This patchset removes the unnecessary PHY device argument in port enable/disable switch operations, makes slave open and close symmetrical and finally provides helpers for enabling or disabling a DSA port. Vivien Didelot (4): net: dsa: move up phy enabling in core net: dsa: remove phy arg from

[PATCH net-next 2/4] net: dsa: remove phy arg from port enable/disable

2017-09-22 Thread Vivien Didelot
The .port_enable and .port_disable functions are meant to deal with the switch ports only, and no driver is using the phy argument anyway. Remove it. Signed-off-by: Vivien Didelot --- drivers/net/dsa/b53/b53_common.c | 6 +++--- drivers/net/dsa/b53/b53_priv.h | 4 ++-- drivers/ne

[PATCH net-next 3/4] net: dsa: make slave close symmetrical to open

2017-09-22 Thread Vivien Didelot
The DSA slave open function configures the unicast MAC addresses on the master device, enable the switch port, change its STP state, then start the PHY device. Make the close function symmetric, by first stopping the PHY device, then changing the STP state, disabling the switch port and restore th

[PATCH net-next 1/4] net: dsa: move up phy enabling in core

2017-09-22 Thread Vivien Didelot
bcm_sf2 is currently the only driver using the phy argument passed to .port_enable. It resets the state machine if the phy has been hard reset. This check is generic and can be moved to DSA core. Signed-off-by: Vivien Didelot --- drivers/net/dsa/bcm_sf2.c | 16 +--- net/dsa/slave.c

[PATCH] auxdisplay: fix broken menus

2017-09-22 Thread Randy Dunlap
From: Randy Dunlap Having the CHARLCD Kconfig symbol between "menuconfig AUXDISPLAY" and "if AUXDISPLAY" breaks the AUXDISPLAY submenus, so move the CHARLCD Kconfig symbol above the "menuconfig" so that the menu display is continuous. Fixes: 39f8ea46724e (auxdisplay: charlcd: Extract character L

Re: [PATCH] ARM: davinci_all_defconfig: enable CMA options

2017-09-22 Thread Suman Anna
Hi Sekhar, > > On Thursday 21 September 2017 08:41 PM, Suman Anna wrote: >> On 09/21/2017 09:43 AM, Sekhar Nori wrote: >>> On Wednesday 20 September 2017 11:31 PM, Suman Anna wrote: Enable the CMA and DMA_CMA Kconfig options by default for Davinci platforms. Davinci remoteproc driver is

[PATCH v2 0/3] x86/xen: pvclock vdso support

2017-09-22 Thread Joao Martins
Hey, Sorry for the huge delay in following up this series. This take 2 for vdso for Xen. PVCLOCK_TSC_STABLE_BIT can be set starting Xen 4.8 which is required for vdso time related calls. In order to have it on, you need to have the hypervisor clocksource be TSC e.g. with the following boot param

Re: [GIT PULL 00/44] perf/core improvements and fixes

2017-09-22 Thread Ingo Molnar
it.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent > (2017-09-13 09:25:10 +0200) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-core-for-mingo-4.15-20170922 > > for you to fetch

[PATCH v2 1/3] x86/pvclock: add setter for pvclock_pvti_cpu0_va

2017-09-22 Thread Joao Martins
Right now there is only a pvclock_pvti_cpu0_va() which is defined on kvmclock since: commit dac16fba6fc5 ("x86/vdso: Get pvclock data from the vvar VMA instead of the fixmap") The only user of this interface so far is kvm. This commit adds a setter function for the pvti page and moves pvclock_pvt

[PATCH v2 2/3] x86/xen/time: setup vcpu 0 time info page

2017-09-22 Thread Joao Martins
In order to support pvclock vdso on xen we need to setup the time info page for vcpu 0 and register the page with Xen using the VCPUOP_register_vcpu_time_memory_area hypercall. This hypercall will also forcefully update the pvti which will set some of the necessary flags for vdso. Afterwards we che

Re: [PATCH] mm/device-public-memory: Fix edge case in _vm_normal_page()

2017-09-22 Thread Jerome Glisse
On Fri, Sep 22, 2017 at 09:56:18AM -0500, Reza Arbab wrote: > With device public pages at the end of my memory space, I'm getting > output from _vm_normal_page(): > > BUG: Bad page map in process migrate_pages pte:c0810d06 pmd:f95d3000 > addr:7fff8933 vm_flags:00100073 anon_vma:c0

[PATCH v2 3/3] MAINTAINERS: xen, kvm: track pvclock-abi.h changes

2017-09-22 Thread Joao Martins
This file defines an ABI shared between guest and hypervisor(s) (KVM, Xen) and as such there should be an correspondent entry in MAINTAINERS file. Notice that there's already a text notice at the top of the header file, hence this commit simply enforces it more explicitly and have both peers notice

[tip:perf/core] perf tools: Support weak groups in 'perf stat'

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 5a5dfe4b8548d806bf433090995ee0ee4c139f11 Gitweb: http://git.kernel.org/tip/5a5dfe4b8548d806bf433090995ee0ee4c139f11 Author: Andi Kleen AuthorDate: Thu, 31 Aug 2017 12:40:26 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:12 -0300 perf tools: Supp

[tip:perf/core] perf vendor events: Support metric_group and no event name in JSON parser

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 3ba36d3620d08be31f5ee9ae20abb9bf3bdeb05a Gitweb: http://git.kernel.org/tip/3ba36d3620d08be31f5ee9ae20abb9bf3bdeb05a Author: Andi Kleen AuthorDate: Thu, 31 Aug 2017 12:40:27 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:12 -0300 perf vendor even

[tip:perf/core] perf sched timehist: Add pid and tid options

2017-09-22 Thread tip-bot for David Ahern
Commit-ID: 0f59d7a352c11712de0f226b46cb82775b4fcece Gitweb: http://git.kernel.org/tip/0f59d7a352c11712de0f226b46cb82775b4fcece Author: David Ahern AuthorDate: Fri, 1 Sep 2017 10:49:12 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:12 -0300 perf sched timeh

[tip:perf/core] perf stat: Factor out generic metric printing

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: bba49af87393ebc8960bf8abdcbb9af53bf1aba1 Gitweb: http://git.kernel.org/tip/bba49af87393ebc8960bf8abdcbb9af53bf1aba1 Author: Andi Kleen AuthorDate: Thu, 31 Aug 2017 12:40:28 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:12 -0300 perf stat: Facto

[tip:perf/core] perf stat: Print generic metric header even for failed expressions

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 4ed962eb38c8a33b8b6ded911410afaefa1ca48c Gitweb: http://git.kernel.org/tip/4ed962eb38c8a33b8b6ded911410afaefa1ca48c Author: Andi Kleen AuthorDate: Thu, 31 Aug 2017 12:40:29 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:13 -0300 perf stat: Print

[PATCH v5 0/2] dax, dm: stop requiring dax for device-mapper

2017-09-22 Thread Dan Williams
Changes since v4: * redo a botched send of v3 * rebase on 4.14-rc1 * rewrite the changelog of patch2 to drop broken references to the "built-in portion of device-mapper" (Mike) --- Bart points out that the DAX core is unconditionally enabled if device-mapper is enabled. Add some config machine

[PATCH v5 1/2] dax: introduce CONFIG_DAX_DRIVER

2017-09-22 Thread Dan Williams
In support of allowing device-mapper to compile out idle/dead code when there are no dax providers in the system, introduce the DAX_DRIVER symbol. This is selected by all leaf drivers that device-mapper might be layered on top. This allows device-mapper to conditionally 'select DAX' only when a pro

[PATCH v5 2/2] dm: allow device-mapper to operate without dax support

2017-09-22 Thread Dan Williams
Change device-mapper's 'select DAX' dependency to be dependent on the presence of at least one DAX_DRIVER. This allows device-mapper to be built without bringing the DAX core along which is especially wasteful when there are no DAX drivers, like BLK_DEV_PMEM, configured. Cc: Alasdair Kergon Cc: M

[tip:perf/core] perf stat: Support JSON metrics in perf stat

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: b18f3e365019de1a5b26a851e123f0aedcce881f Gitweb: http://git.kernel.org/tip/b18f3e365019de1a5b26a851e123f0aedcce881f Author: Andi Kleen AuthorDate: Thu, 31 Aug 2017 12:40:31 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:13 -0300 perf stat: Suppo

[tip:perf/core] perf pmu: Extract function to get JSON alias map

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: d77ade9f4199c77c63e2ae382a8c8fbe0582ede2 Gitweb: http://git.kernel.org/tip/d77ade9f4199c77c63e2ae382a8c8fbe0582ede2 Author: Andi Kleen AuthorDate: Thu, 31 Aug 2017 12:40:30 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:13 -0300 perf pmu: Extrac

Re: [PATCH net-next 1/4] net: dsa: move up phy enabling in core

2017-09-22 Thread Andrew Lunn
On Fri, Sep 22, 2017 at 12:17:50PM -0400, Vivien Didelot wrote: > bcm_sf2 is currently the only driver using the phy argument passed to > .port_enable. It resets the state machine if the phy has been hard > reset. This check is generic and can be moved to DSA core. > > dsa_port_set_state_no

[tip:perf/core] perf stat: Support duration_time for metrics

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: fd48aad9b0f3f7654433dfae3a72ceda36e2de28 Gitweb: http://git.kernel.org/tip/fd48aad9b0f3f7654433dfae3a72ceda36e2de28 Author: Andi Kleen AuthorDate: Thu, 31 Aug 2017 12:40:34 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:14 -0300 perf stat: Suppo

[tip:perf/core] perf stat: Don't use ctx for saved values lookup

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 4e1a096380e3b558ef021afc08e193ce5d1be478 Gitweb: http://git.kernel.org/tip/4e1a096380e3b558ef021afc08e193ce5d1be478 Author: Andi Kleen AuthorDate: Thu, 31 Aug 2017 12:40:33 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:13 -0300 perf stat: Don't

[tip:perf/core] perf list: Add metric groups to perf list

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 71b0acce78d12e99eeda6fd6642ba89cc2b2b49c Gitweb: http://git.kernel.org/tip/71b0acce78d12e99eeda6fd6642ba89cc2b2b49c Author: Andi Kleen AuthorDate: Thu, 31 Aug 2017 12:40:32 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:13 -0300 perf list: Add m

[tip:perf/core] perf stat: Hide internal duration_time counter

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: e864c5ca145e49bfce4847bd14b47b5f8549b2b1 Gitweb: http://git.kernel.org/tip/e864c5ca145e49bfce4847bd14b47b5f8549b2b1 Author: Andi Kleen AuthorDate: Thu, 31 Aug 2017 12:40:35 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:14 -0300 perf stat: Hide

Re: [PATCH net-next 3/4] net: dsa: make slave close symmetrical to open

2017-09-22 Thread Andrew Lunn
On Fri, Sep 22, 2017 at 12:17:52PM -0400, Vivien Didelot wrote: > The DSA slave open function configures the unicast MAC addresses on the > master device, enable the switch port, change its STP state, then start > the PHY device. > > Make the close function symmetric, by first stopping the PHY dev

[tip:perf/core] perf stat: Update walltime_nsecs_stats in interval mode

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: b90f1333ef08d2a497ae239798868b046f4e3a97 Gitweb: http://git.kernel.org/tip/b90f1333ef08d2a497ae239798868b046f4e3a97 Author: Andi Kleen AuthorDate: Thu, 31 Aug 2017 12:40:36 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:14 -0300 perf stat: Updat

[tip:perf/core] perf record: Support direct --user-regs arguments

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 84c417422798c897f637b0249f64a52807b4a61b Gitweb: http://git.kernel.org/tip/84c417422798c897f637b0249f64a52807b4a61b Author: Andi Kleen AuthorDate: Tue, 5 Sep 2017 10:00:28 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:14 -0300 perf record: Supp

[tip:perf/core] perf script: Support user regs

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: b1491ace8eb2e92677cd9ee966763f8f53d29d16 Gitweb: http://git.kernel.org/tip/b1491ace8eb2e92677cd9ee966763f8f53d29d16 Author: Andi Kleen AuthorDate: Tue, 5 Sep 2017 11:40:57 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:14 -0300 perf script: Supp

Re: [PATCH net-next 4/4] net: dsa: add port enable and disable helpers

2017-09-22 Thread Andrew Lunn
On Fri, Sep 22, 2017 at 12:17:53PM -0400, Vivien Didelot wrote: > Provide dsa_port_enable and dsa_port_disable helpers to respectively > enable and disable a switch port. This makes the dsa_port_set_state_now > helper static. > > Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn Andre

[tip:perf/core] perf tools: Add python-clean target

2017-09-22 Thread tip-bot for Jiri Olsa
Commit-ID: 80f873557112fc163f011cd131d4cfe4959100a6 Gitweb: http://git.kernel.org/tip/80f873557112fc163f011cd131d4cfe4959100a6 Author: Jiri Olsa AuthorDate: Fri, 8 Sep 2017 10:46:21 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:15 -0300 perf tools: Add py

[tip:perf/core] perf ui progress: Add ui specific init function

2017-09-22 Thread tip-bot for Jiri Olsa
Commit-ID: 25cc4eb44b0c840eff0e5a46a85b9ccbde77401b Gitweb: http://git.kernel.org/tip/25cc4eb44b0c840eff0e5a46a85b9ccbde77401b Author: Jiri Olsa AuthorDate: Fri, 8 Sep 2017 14:05:09 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:15 -0300 perf ui progress:

[tip:perf/core] perf config: Write a config file just once

2017-09-22 Thread tip-bot for Taeung Song
Commit-ID: 5c2615556d4410baebc9b336f14befe0bb32cde4 Gitweb: http://git.kernel.org/tip/5c2615556d4410baebc9b336f14befe0bb32cde4 Author: Taeung Song AuthorDate: Thu, 7 Sep 2017 12:18:51 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:15 -0300 perf config: Wri

[tip:perf/core] perf ui progress: Add size info into progress bar

2017-09-22 Thread tip-bot for Jiri Olsa
Commit-ID: 8233822f403b67bbaa1d58e8fa6b8f821fe7626d Gitweb: http://git.kernel.org/tip/8233822f403b67bbaa1d58e8fa6b8f821fe7626d Author: Jiri Olsa AuthorDate: Fri, 8 Sep 2017 14:05:10 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:15 -0300 perf ui progress:

[tip:perf/core] perf stat: Fall weak group back even for EBADF

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 35c1980eb3d1acb3cac11c38252339399dca77e3 Gitweb: http://git.kernel.org/tip/35c1980eb3d1acb3cac11c38252339399dca77e3 Author: Andi Kleen AuthorDate: Tue, 5 Sep 2017 14:13:24 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:16 -0300 perf stat: Fall w

[tip:perf/core] perf tools: Use scandir() to replace readdir()

2017-09-22 Thread tip-bot for Kan Liang
Commit-ID: ecdad24d7a4480c9af0ff6dbe00ac8bbae720d19 Gitweb: http://git.kernel.org/tip/ecdad24d7a4480c9af0ff6dbe00ac8bbae720d19 Author: Kan Liang AuthorDate: Thu, 7 Sep 2017 10:55:46 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:15 -0300 perf tools: Use sc

[tip:perf/core] perf config: Allow creating empty config set for config file autogeneration

2017-09-22 Thread tip-bot for Taeung Song
Commit-ID: 55421b4fb7054f85274b1b6a321e204dac696133 Gitweb: http://git.kernel.org/tip/55421b4fb7054f85274b1b6a321e204dac696133 Author: Taeung Song AuthorDate: Thu, 7 Sep 2017 12:18:56 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:16 -0300 perf config: All

[tip:perf/core] perf tools: Make copyfile_offset() static

2017-09-22 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: c23c2a0f236601c635d9a9d18d7993641e72aa8c Gitweb: http://git.kernel.org/tip/c23c2a0f236601c635d9a9d18d7993641e72aa8c Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 11 Sep 2017 10:50:26 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:16 -0300 pe

[tip:perf/core] perf vendor events: Add JSON metrics for Broadwell

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: cf97962308ba6b6afdeb038505032c7c0972bdfa Gitweb: http://git.kernel.org/tip/cf97962308ba6b6afdeb038505032c7c0972bdfa Author: Andi Kleen AuthorDate: Sun, 23 Jul 2017 21:53:25 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:16 -0300 perf vendor even

[tip:perf/core] perf vendor events: Add JSON metrics for Sandy Bridge

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 97dca6715d0a058a6af028a3019432740b4a0011 Gitweb: http://git.kernel.org/tip/97dca6715d0a058a6af028a3019432740b4a0011 Author: Andi Kleen AuthorDate: Sun, 23 Jul 2017 21:50:34 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:17 -0300 perf vendor even

[tip:perf/core] perf vendor events: Add JSON metrics for Skylake

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 2e006a24127ad88422632f9e5d6a8039a40f01da Gitweb: http://git.kernel.org/tip/2e006a24127ad88422632f9e5d6a8039a40f01da Author: Andi Kleen AuthorDate: Sun, 23 Jul 2017 21:54:49 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:17 -0300 perf vendor even

[tip:perf/core] perf vendor events: Add JSON metrics for Sandy Bridge EP

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 28bc0ddb3a89a09b6f2d4dc97b85e28b2a70db1e Gitweb: http://git.kernel.org/tip/28bc0ddb3a89a09b6f2d4dc97b85e28b2a70db1e Author: Andi Kleen AuthorDate: Sun, 23 Jul 2017 21:51:07 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:17 -0300 perf vendor even

[tip:perf/core] perf vendor events: Add JSON metrics for Ivy Bridge

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 8853d2de0efe25572d3a7033bbb87c9b1208391e Gitweb: http://git.kernel.org/tip/8853d2de0efe25572d3a7033bbb87c9b1208391e Author: Andi Kleen AuthorDate: Sun, 23 Jul 2017 21:51:25 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:17 -0300 perf vendor even

[tip:perf/core] perf vendor events: Add JSON metrics for Ivy Town

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 43fd36a19d501483d5ec243dd28268646f717cde Gitweb: http://git.kernel.org/tip/43fd36a19d501483d5ec243dd28268646f717cde Author: Andi Kleen AuthorDate: Sun, 23 Jul 2017 21:55:16 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:18 -0300 perf vendor even

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

2017-09-22 Thread James Morse
Hi gengdongjiu, On 18/09/17 14:36, gengdongjiu wrote: > On 2017/9/14 21:00, James Morse wrote: >> On 13/09/17 08:32, gengdongjiu wrote: >>> On 2017/9/8 0:30, James Morse wrote: On 28/08/17 11:38, Dongjiu Geng wrote: For BUS_MCEERR_A* from memory_failure() we can't know if they are caused

[tip:perf/core] perf vendor events: Add JSON metrics for Haswell

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 2099f51d1851c8955ed3406683be0b961c7792cb Gitweb: http://git.kernel.org/tip/2099f51d1851c8955ed3406683be0b961c7792cb Author: Andi Kleen AuthorDate: Sun, 23 Jul 2017 21:51:47 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:17 -0300 perf vendor even

[tip:perf/core] perf vendor events: Add JSON metrics for Haswell EP

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 5e49f7321b06428ac68c51096cff9a4a55c3d4d6 Gitweb: http://git.kernel.org/tip/5e49f7321b06428ac68c51096cff9a4a55c3d4d6 Author: Andi Kleen AuthorDate: Sun, 23 Jul 2017 21:55:39 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:18 -0300 perf vendor even

[tip:perf/core] perf vendor events: Add JSON metrics for Broadwell Server

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 6d75abd3e84596933aa2ca91751744271cfec6cb Gitweb: http://git.kernel.org/tip/6d75abd3e84596933aa2ca91751744271cfec6cb Author: Andi Kleen AuthorDate: Sun, 23 Jul 2017 21:55:59 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:18 -0300 perf vendor even

[tip:perf/core] perf vendor events: Add JSON metrics for Broadwell DE

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 69e932139db1d23e978256652dbb179d6ed75204 Gitweb: http://git.kernel.org/tip/69e932139db1d23e978256652dbb179d6ed75204 Author: Andi Kleen AuthorDate: Sun, 23 Jul 2017 22:00:42 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:18 -0300 perf vendor even

Re: [PATCH] ARM: davinci_all_defconfig: enable CMA options

2017-09-22 Thread David Lechner
On 09/22/2017 11:24 AM, Suman Anna wrote: Hi Sekhar, On Thursday 21 September 2017 08:41 PM, Suman Anna wrote: On 09/21/2017 09:43 AM, Sekhar Nori wrote: On Wednesday 20 September 2017 11:31 PM, Suman Anna wrote: Enable the CMA and DMA_CMA Kconfig options by default for Davinci platforms. D

[tip:perf/core] perf vendor events: Add JSON metrics for Skylake server

2017-09-22 Thread tip-bot for Andi Kleen
Commit-ID: 56de5b63ffaff859f75c19aff057ee10f20c6c07 Gitweb: http://git.kernel.org/tip/56de5b63ffaff859f75c19aff057ee10f20c6c07 Author: Andi Kleen AuthorDate: Tue, 5 Sep 2017 16:26:13 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Sep 2017 09:49:18 -0300 perf vendor event

<    1   2   3   4   5   6   7   8   >