[PATCH v3] powerpc: Implement csum_ipv6_magic in assembly

2018-05-21 Thread Christophe Leroy
The generic csum_ipv6_magic() generates a pretty bad result : (PPC32) 0: 81 23 00 00 lwz r9,0(r3) 4: 81 03 00 04 lwz r8,4(r3) 8: 7c e7 4a 14 add r7,r7,r9 c: 7d 29 38 10 subfc r9,r9,r7 10: 7d 4a 51 10 subfe r10,r10,r10 14: 7d

RE: [PATCH] cpufreq: Add Kryo CPU scaling driver

2018-05-21 Thread ilialin
> -Original Message- > From: Sudeep Holla > Sent: Monday, May 21, 2018 16:05 > To: ilia...@codeaurora.org; mturque...@baylibre.com; sb...@kernel.org; > r...@kernel.org; mark.rutl...@arm.com; viresh.ku...@linaro.org; > n...@ti.com; lgirdw...@gmail.com; broo...@kernel.org; > andy.gr...@lin

Re: [PATCH v1] dma: imx-sdma: add virt-dma support

2018-05-21 Thread Vinod
On 22-05-18, 06:16, Robin Gong wrote: > Ping. Looks like I missed this one, can you please rebase and resend. While at it, modify the subject to dmaengine, as thats the subsystem name -- ~Vinod

Re: [PATCH] x86: UV: raw_spinlock conversion

2018-05-21 Thread Sebastian Andrzej Siewior
On 2018-05-19 16:09:56 [+0200], Mike Galbraith wrote: > None of that patch is needed for a UV3000, but the below is. It's > likely still valid for now ancient UV boxen, but the UV100 the patch > was originally written for (2011/2.6.33-rt) has apparently wandered off > to become a beer keg or somet

Re: [PATCH v2 4/5] kconfig: refactor ncurses package checks for building mconf

2018-05-21 Thread Masahiro Yamada
2018-05-20 19:06 GMT+09:00 Sam Ravnborg : > Hi Masahiro > > On Sun, May 20, 2018 at 05:16:52PM +0900, Masahiro Yamada wrote: >> The mconf (or its infrastructure, lxdiaglog) depends on ncurses. >> Move and rename check-lxdialog.sh to mconf-cfg.sh to make it work in >> the same way as for qconf and g

Re: [PATCH v2 05/14] mtd: rawnand: qcom: wait for desc completion in all BAM channels

2018-05-21 Thread Miquel Raynal
Hi Abhishek, On Thu, 3 May 2018 17:50:32 +0530, Abhishek Sahu wrote: > The BAM has 3 channels - tx, rx and command. command channel > is used for register read/writes, tx channel for data writes > and rx channel for data reads. Currently, the driver assumes the > transfer completion once it get

[PATCH 1/1] mmc: sdhci-pci-dwc-mshc: synopsys dwc mshc support

2018-05-21 Thread Prabu Thangamuthu
To enable Synopsys DWC MSHC controller on HPAS-DX platform connected using PCIe interface. As Clock generation logic is implemented in MMCM module of HAPS-DX platform, we have separate functions to control the MMCM to generate required clocks with respect to speed mode. Also we have platform specif

Re: [PATCH 00/13] convert block layer to bioset_init()/mempool_init()

2018-05-21 Thread Christoph Hellwig
On Mon, May 21, 2018 at 07:38:55PM -0400, Kent Overstreet wrote: > On Mon, May 21, 2018 at 02:24:32PM -0400, Mike Snitzer wrote: > > Every single data structure change in this series should be reviewed for > > unforeseen alignment consequences. Jens seemed to say that is > > worthwhile. Not sure

Re: [PATCH] Add the memcg print oom info for system oom

2018-05-21 Thread Michal Hocko
On Mon 21-05-18 14:11:21, David Rientjes wrote: > On Thu, 17 May 2018, Michal Hocko wrote: > > > this is not 5 lines at all. We dump memcg stats for the whole oom memcg > > subtree. For your patch it would be the whole subtree of the memcg of > > the oom victim. With cgroup v1 this can be quite de

[RFC V2] virtio: Add platform specific DMA API translation for virito devices

2018-05-21 Thread Anshuman Khandual
This adds a hook which a platform can define in order to allow it to force the use of the DMA API for all virtio devices even if they don't have the VIRTIO_F_IOMMU_PLATFORM flag set. We want to use this to do bounce-buffering of data on the new secure pSeries platform, currently under development,

[PATCH] powerpc: Implement csum_ipv6_magic in assembly

2018-05-21 Thread Christophe Leroy
The generic csum_ipv6_magic() generates a pretty bad result : (PPC32) 0: 81 23 00 00 lwz r9,0(r3) 4: 81 03 00 04 lwz r8,4(r3) 8: 7c e7 4a 14 add r7,r7,r9 c: 7d 29 38 10 subfc r9,r9,r7 10: 7d 4a 51 10 subfe r10,r10,r10 14: 7d

Re: [PATCH v5 3/8] remoteproc: Move proxy unvote to handover irq handler

2018-05-21 Thread Sibi S
Hi Bjorn, Thanks for the review. On 05/22/2018 10:05 AM, Bjorn Andersson wrote: On Mon 21 May 10:27 PDT 2018, Sibi Sankar wrote: Introduce interrupt handler for smp2p ready interrupt to handle start completion. Move the proxy votes for clocks and regulators to the handover interrupt context.

Re: [PATCH 00/19] powerpc/ppc32: make W=1 compilation errors free

2018-05-21 Thread Mathieu Malaterre
Any chance this could be applied to powerpc/next ? On Thu, Mar 22, 2018 at 9:19 PM, Mathieu Malaterre wrote: > Here is another batch for warnings treated as error on ppc32. Tested with: > > $ make ARCH=powerpc ppc32_defconfig > $ make -j8 ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- W=1 > > Usin

Re: [PATCH 5/5] mm, hmm: mark hmm_devmem_{add, add_resource} EXPORT_SYMBOL_GPL

2018-05-21 Thread Christoph Hellwig
On Mon, May 21, 2018 at 03:35:40PM -0700, Dan Williams wrote: > The routines hmm_devmem_add(), and hmm_devmem_add_resource() are small > wrappers around devm_memremap_pages(). The devm_memremap_pages() > interface is a subset of the hmm functionality which has more and deeper > ties into the kernel

Re: [PATCH] MAINTAINERS: Change hugetlbfs maintainer and update files

2018-05-21 Thread Michal Hocko
On Fri 18-05-18 15:52:36, Mike Kravetz wrote: > The current hugetlbfs maintainer has not been active for more than > a few years. I have been been active in this area for more than > two years and plan to remain active in the foreseeable future. > > Also, update the hugetlbfs entry to include lin

Re: [PATCH 4/5] mm, hmm: replace hmm_devmem_pages_create() with devm_memremap_pages()

2018-05-21 Thread Christoph Hellwig
On Mon, May 21, 2018 at 03:35:34PM -0700, Dan Williams wrote: > Commit e8d513483300 "memremap: change devm_memremap_pages interface to > use struct dev_pagemap" refactored devm_memremap_pages() to allow a > dev_pagemap instance to be supplied. Passing in a dev_pagemap interface > simplifies the des

Re: [PATCH 3/5] mm, hmm: use devm semantics for hmm_devmem_{add, remove}

2018-05-21 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH 2/5] mm, devm_memremap_pages: handle errors allocating final devres action

2018-05-21 Thread Christoph Hellwig
On Mon, May 21, 2018 at 03:35:24PM -0700, Dan Williams wrote: > The last step before devm_memremap_pages() returns success is to > allocate a release action to tear the entire setup down. However, the > result from devm_add_action() is not checked. > > Checking the error also means that we need to

Re: [PATCH 1/5] mm, devm_memremap_pages: mark devm_memremap_pages() EXPORT_SYMBOL_GPL

2018-05-21 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

[PATCH] arm64: dts: qcom: Add pmu node to sdm845

2018-05-21 Thread Stephen Boyd
Add the CPU PMU on sdm845 to get perf support for hardware events. Signed-off-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 7c85e7c596db..93a62c

[PATCH 2/3] sched/fair: accumulate unused cpu time for CFS throttle

2018-05-21 Thread Cong Wang
With current implementation of CFS CPU throttle, the unused CPU time in a period is not carried over to the next one. And when the CFS periodical timer is deactivated after detecting idle, these idle periods are not counted either. This causes some apparently counterintuitive CPU throttles when the

[PATCH 1/3] sched/fair: make CFS bandwidth slice per cpu group

2018-05-21 Thread Cong Wang
We saw tasks in a CPU cgroup got throttled for many times even when they don't apparently over-burn the CPU's. I tried to trace the cause and noticed that one of the problems here is that the local CPU which got the last chunk of quota doesn't use all of them and prevents other CPUs to reuse the un

[PATCH net] tuntap: correctly set SOCKWQ_ASYNC_NOSPACE

2018-05-21 Thread Jason Wang
When link is down, writes to the device might fail with -EIO. Userspace needs an indication when the status is resolved. As a fix, tun_net_open() attempts to wake up writers - but that is only effective if SOCKWQ_ASYNC_NOSPACE has been set in the past. This is not the case of vhost_net which only

[PATCH 3/3] sched/fair: add tracepoints for cfs throttle

2018-05-21 Thread Cong Wang
This patch introduces two sched tracepoints to track CFS throttle and unthrottle. The use case is to measure how long each throttle is and to track when a CPU cgroup is throttled and unthrottled. Sample output: cfs-722 [000] dN.351.477702: sched_cfs_throttle: path=/test cpu=0 runtime_

[PATCH 0/3] sched/fair: improve CFS throttle

2018-05-21 Thread Cong Wang
Cong Wang (3): sched/fair: make CFS bandwidth slice per cpu group sched/fair: accumulate unused cpu time for CFS throttle sched/fair: add tracepoints for cfs throttle Documentation/scheduler/sched-bwc.txt | 25 ++-- include/trace/events/sched.h | 42 + kernel/sche

RE: [PATCH v1] dma: imx-sdma: add virt-dma support

2018-05-21 Thread Robin Gong
Ping. -Original Message- From: Robin Gong Sent: 2018年3月23日 0:18 To: dan.j.willi...@intel.com; vinod.k...@intel.com Cc: dmaeng...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; dl-linux-imx Subject: [PATCH v1] dma: imx-sdma: add virt-dma support The

Re: [PATCH] perf tests: Fix regex for record+probe_libc_inet_pton.sh

2018-05-21 Thread Thomas-Mich Richter
On 05/18/2018 04:14 PM, Arnaldo Carvalho de Melo wrote: > Em Fri, May 18, 2018 at 01:09:48PM +0200, Thomas-Mich Richter escreveu: >> On 05/18/2018 12:29 PM, Sandipan Das wrote: >>> Can you please apply these two patches as well and then re-test? > >>> [1] https://lkml.org/lkml/2018/5/17/112 >>> [2

Re: [PATCH v4] scripts/tags.sh: use `find` for $ALLSOURCE_ARCHS generation

2018-05-21 Thread Masahiro Yamada
Hi. The commit log is wrong. 2018-05-18 20:56 GMT+09:00 Joey Pabalinas : > Parsing `ls` is fragile at best and _will_ fail when $tree > contains spaces. This statement is wrong. The cause of the problem is not using whatever command you use, but missing quoting. The following would work even

Re: [Xen-devel][RFC 3/3] xen/gntdev: Add support for Linux dma buffers

2018-05-21 Thread Oleksandr Andrushchenko
On 05/22/2018 12:31 AM, Dongwon Kim wrote: Still need more time to review the whole code changes Take your time, I just wanted to make sure that all interested parties are in the discussion, so we all finally have what we all want, not a thing covering only my use-cases but I noticed one thin

Re: [Xen-devel] [RFC 1/3] xen/balloon: Allow allocating DMA buffers

2018-05-21 Thread Oleksandr Andrushchenko
On 05/21/2018 11:36 PM, Boris Ostrovsky wrote: On 05/21/2018 03:13 PM, Oleksandr Andrushchenko wrote: On 05/21/2018 09:53 PM, Boris Ostrovsky wrote: On 05/21/2018 01:32 PM, Oleksandr Andrushchenko wrote: On 05/21/2018 07:35 PM, Boris Ostrovsky wrote: On 05/21/2018 01:40 AM, Oleksandr Andrushc

Re: [PATCH net-next 6/7] net: dsa: qca8k: Replace GPL boilerplate by SPDX

2018-05-21 Thread Michal Vokáč
On 21.5.2018 17:20, Florian Fainelli wrote: On 05/21/2018 06:28 AM, Michal Vokáč wrote: Signed-off-by: Michal Vokáč Reviewed-by: Florian Fainelli I don't know if we need all people who contributed to that driver to agree on that, this is not a license change, so it should be okay I presume

Re: [PATCH net-next 7/7] net: dsa: qca8k: Remove rudundant parentheses

2018-05-21 Thread Michal Vokáč
On 21.5.2018 17:21, Florian Fainelli wrote: On 05/21/2018 06:28 AM, Michal Vokáč wrote: Fix warning reported by checkpatch. Nit in the subject: should be redundant, with that: Reviewed-by: Florian Fainelli Thanks, I will fix it. Michal

Re: [PATCH v4 00/31] kconfig: move compiler capability tests to Kconfig

2018-05-21 Thread Masahiro Yamada
Hi reviewers, 2018-05-17 23:22 GMT+09:00 Masahiro Yamada : > 2018-05-17 16:51 GMT+09:00 Nicholas Piggin : >> On Thu, 17 May 2018 15:16:39 +0900 >> Masahiro Yamada wrote: >> >>> [Introduction] >>> >>> The motivation of this work is to move the compiler option tests to >>> Kconfig from Makefile.

[PATCH v2] powerpc/32: Implement csum_ipv6_magic in assembly

2018-05-21 Thread Christophe Leroy
The generic csum_ipv6_magic() generates a pretty bad result : 0: 81 23 00 00 lwz r9,0(r3) 4: 81 03 00 04 lwz r8,4(r3) 8: 7c e7 4a 14 add r7,r7,r9 c: 7d 29 38 10 subfc r9,r9,r7 10: 7d 4a 51 10 subfe r10,r10,r10 14: 7d 27 42 14

[PATCH 4.16 031/110] i2c: designware: fix poll-after-enable regression

2018-05-21 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Monakov commit 06cb616b1bca7080824acfedb3d4c898e7a64836 upstream. Not all revisions of DW I2C controller implement the enable status register. On platforms where that's the case (e.g

[PATCH 4.14 21/95] i2c: designware: fix poll-after-enable regression

2018-05-21 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Monakov commit 06cb616b1bca7080824acfedb3d4c898e7a64836 upstream. Not all revisions of DW I2C controller implement the enable status register. On platforms where that's the case (e.g

[PATCH 4.9 17/87] i2c: designware: fix poll-after-enable regression

2018-05-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Monakov commit 06cb616b1bca7080824acfedb3d4c898e7a64836 upstream. Not all revisions of DW I2C controller implement the enable status register. On platforms where that's the case (e.g.

Re: [PATCH net-next 4/7] net: dsa: qca8k: Force CPU port to its highest bandwidth

2018-05-21 Thread Michal Vokáč
On 21.5.2018 17:19, Florian Fainelli wrote: On 05/21/2018 06:28 AM, Michal Vokáč wrote: By default autonegotiation is enabled to configure MAC on all ports. For the CPU port autonegotiation can not be used so we need to set some sensible defaults manually. This patch forces the default setting

Re: [PATCH net-next 3/7] net: dsa: qca8k: Enable RXMAC when bringing up a port

2018-05-21 Thread Michal Vokáč
On 21.5.2018 17:17, Florian Fainelli wrote: On 05/21/2018 06:28 AM, Michal Vokáč wrote: When a port is brought up/down do not enable/disable only the TXMAC but the RXMAC as well. This is essential for the CPU port to work. Signed-off-by: Michal Vokáč Reviewed-by: Florian Fainelli Should t

Re: [PATCH v3 4/6] ALSA: xen-front: Implement handling of shared buffers

2018-05-21 Thread Oleksandr Andrushchenko
On 05/21/2018 11:26 PM, Takashi Iwai wrote: On Thu, 17 May 2018 08:26:16 +0200, Takashi Iwai wrote: On Tue, 15 May 2018 08:02:08 +0200, Oleksandr Andrushchenko wrote: On 05/15/2018 09:01 AM, Takashi Iwai wrote: On Tue, 15 May 2018 07:46:38 +0200, Oleksandr Andrushchenko wrote: On 05/14/2018 1

[lkp-robot] [tty] b6da31b2c0: WARNING:possible_circular_locking_dependency_detected

2018-05-21 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-6): commit: b6da31b2c07c46f2dcad1d86caa835227a16d9ff ("tty: Fix data race in tty_insert_flip_string_fixed_flag") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: boot on test machine: qemu-system-x86_64 -e

Re: [PATCH net-next 1/7] net: dsa: qca8k: Add QCA8334 binding documentation

2018-05-21 Thread Michal Vokáč
On 21.5.2018 16:47, Andrew Lunn wrote: On Mon, May 21, 2018 at 03:28:07PM +0200, Michal Vokáč wrote: Signed-off-by: Michal Vokáč Hi Michal It would be good to document that fixed-link can be used. OK, I will document that and add a commit message as well as you mentioned before. Thanks, M

set_fs(KERNEL_DS) vs iovec

2018-05-21 Thread Benjamin Herrenschmidt
Hi guys ! I was helping with a small driver when I stumbled upon a comment from a reviwer pointing to an old lwn article talking about deprecating set_fs due to security concerns: https://lwn.net/Articles/722267/ Now, this is a very simple driver running on a small/slow ARM SoC, which reads from

Re: [RFC PATCH] mtd: spi-nor: add support to non-uniform SPI NOR flash memories

2018-05-21 Thread Tudor Ambarus
Hi, Marek, On 05/21/2018 07:59 PM, Marek Vasut wrote: On 05/21/2018 06:42 PM, Tudor Ambarus wrote: Hi, Marek, [...] This is a transitional patch: non-uniform erase maps will be used later when initialized based on the SFDP data. What about non-SFDP non-linear flashes ? Non-SFDP non-unif

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Ulf Magnusson
On Tue, May 22, 2018 at 6:50 AM, Ulf Magnusson wrote: > On Tue, May 22, 2018 at 5:11 AM, Masahiro Yamada > wrote: >> 2018-05-22 0:10 GMT+09:00 Ulf Magnusson : >>> On Mon, May 21, 2018 at 4:32 PM, Ulf Magnusson wrote: On Mon, May 21, 2018 at 4:23 PM, Ulf Magnusson wrote: > On Sun, May 2

Re: Tasks RCU vs Preempt RCU

2018-05-21 Thread Joel Fernandes
(Resending because my previous mail client terribly wrapped things..) On Mon, May 21, 2018 at 09:59:51PM -0400, Steven Rostedt wrote: [...] > > > > Just thinking out loud and probably some food for thought.. > > > > The rcu_read_lock/unlock primitive are extrememly fast, so I don't > > persona

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Ulf Magnusson
On Tue, May 22, 2018 at 5:11 AM, Masahiro Yamada wrote: > 2018-05-22 0:10 GMT+09:00 Ulf Magnusson : >> On Mon, May 21, 2018 at 4:32 PM, Ulf Magnusson wrote: >>> On Mon, May 21, 2018 at 4:23 PM, Ulf Magnusson wrote: On Sun, May 20, 2018 at 4:50 PM, Sam Ravnborg wrote: > Will the followi

Re: [PATCH v3 4/4] rcu: Unlock non-start node only after accessing its gp_seq_needed

2018-05-21 Thread Joel Fernandes
On Mon, May 21, 2018 at 09:16:51PM -0700, Paul E. McKenney wrote: > On Mon, May 21, 2018 at 05:28:23PM -0700, Paul E. McKenney wrote: > > On Mon, May 21, 2018 at 05:07:34PM -0700, Joel Fernandes wrote: > > > On Mon, May 21, 2018 at 04:25:38PM -0700, Paul E. McKenney wrote: > > > > On Sun, May 20, 2

Re: Tasks RCU vs Preempt RCU

2018-05-21 Thread Joel Fernandes
On Mon, May 21, 2018 at 6:59 PM Steven Rostedt wrote: [...] > > > > Just thinking out loud and probably some food for thought.. > > > > The rcu_read_lock/unlock primitive are extrememly fast, so I don't personally > > think there's a time hit. > > > > Could we get around the trampoline code == dat

Re: [PATCH 1/2] powerpc: Detect the presence of big-core with interleaved threads

2018-05-21 Thread Gautham R Shenoy
Hello Michael, On Fri, May 18, 2018 at 11:21:22PM +1000, Michael Ellerman wrote: > "Gautham R. Shenoy" writes: > > > diff --git a/arch/powerpc/kernel/setup-common.c > > b/arch/powerpc/kernel/setup-common.c > > index 0af5c11..884dff2 100644 > > --- a/arch/powerpc/kernel/setup-common.c > > +++ b/

Re: [PATCH v5 3/8] remoteproc: Move proxy unvote to handover irq handler

2018-05-21 Thread Bjorn Andersson
On Mon 21 May 10:27 PDT 2018, Sibi Sankar wrote: > Introduce interrupt handler for smp2p ready interrupt to > handle start completion. Move the proxy votes for clocks > and regulators to the handover interrupt context. > > Signed-off-by: Sibi Sankar I added the "synchronization logic" of patch

Re: [PATCH 1/2] powerpc: Detect the presence of big-core with interleaved threads

2018-05-21 Thread Gautham R Shenoy
Hello Michael, On Fri, May 18, 2018 at 11:14:04PM +1000, Michael Ellerman wrote: > Gautham R Shenoy writes: > ... > >> > @@ -565,7 +615,16 @@ void __init smp_setup_cpu_maps(void) > >> > vdso_data->processorCount = num_present_cpus(); > >> > #endif /* CONFIG_PPC64 */ > >> > > >> > -

[PATCH] fs/affs: fix potential memory leak in option parsing

2018-05-21 Thread Chengguang Xu
When specifying option 'prefix' multiple times, current option parsing will cause memory leak. Hence, call kfree for previous one in this case. Signed-off-by: Chengguang Xu --- fs/affs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/affs/super.c b/fs/affs/super.c index e602619..d1

[PATCH RFC 3/3] scsi: ufs: Add sysfs support for ufs provision

2018-05-21 Thread Sayali Lokhande
Add sysfs support to trigger ufs provisioning at runtime. Usage : echo > /sys/bus/platform/devices/1d84000.ufshcd/ufs_provision To check provisioning status: cat /sys/bus/platform/devices/1d84000.ufshc/ufs_provision 1 -> Success (Reboot device to check updated provisioning) Signed-off-by: Sayali

[PATCH RFC 2/3] scsi: ufs: Add ufs provisioning support

2018-05-21 Thread Sayali Lokhande
A new api ufshcd_do_config_device() is added in driver to suppoet UFS provisioning at runtime. Sysfs support is added to trigger provisioning. Device configuration descriptors or parameters are parsed from vendor specific provisioning data and passed via sysfs at runtime to provision ufs device. S

[PATCH RFC 1/3] scsi: ufs: set the device reference clock setting

2018-05-21 Thread Sayali Lokhande
From: Subhash Jadavani UFS host supplies the reference clock to UFS device and UFS device specification allows host to provide one of the 4 frequencies (19.2 MHz, 26 MHz, 38.4 MHz, 52 MHz) for reference clock. Host should set the device reference clock frequency setting in the device based on wha

Re: [PATCH v3 4/4] rcu: Unlock non-start node only after accessing its gp_seq_needed

2018-05-21 Thread Paul E. McKenney
On Mon, May 21, 2018 at 05:28:23PM -0700, Paul E. McKenney wrote: > On Mon, May 21, 2018 at 05:07:34PM -0700, Joel Fernandes wrote: > > On Mon, May 21, 2018 at 04:25:38PM -0700, Paul E. McKenney wrote: > > > On Sun, May 20, 2018 at 09:42:20PM -0700, Joel Fernandes wrote: > > > > We acquire gp_seq_n

Re: [PATCH net] tuntap: raise EPOLLOUT on device up

2018-05-21 Thread Jason Wang
On 2018年05月22日 11:46, Michael S. Tsirkin wrote: On Tue, May 22, 2018 at 11:22:11AM +0800, Jason Wang wrote: On 2018年05月22日 06:08, Michael S. Tsirkin wrote: On Mon, May 21, 2018 at 11:47:42AM -0400, David Miller wrote: From: Jason Wang Date: Fri, 18 May 2018 21:00:43 +0800 We return -EIO

[PATCH v4 2/2] xen/PVH: Make GDT selectors PVH-specific

2018-05-21 Thread Boris Ostrovsky
We don't need to share PVH GDT layout with other GDTs, especially since we now have a PVH-speciific entry (for stack canary segment). Define PVH's own selectors. (As a side effect of this change we are also fixing improper reference to __KERNEL_CS) Signed-off-by: Boris Ostrovsky --- arch/x86/x

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

2018-05-21 Thread Michael S. Tsirkin
On Tue, May 22, 2018 at 11:50:29AM +0800, Jason Wang wrote: > > > On 2018年05月21日 22:42, Michael S. Tsirkin wrote: > > On Mon, May 21, 2018 at 10:38:10AM +0800, Jason Wang wrote: > > > On 2018年05月18日 17:24, Jason Wang wrote: > > > > On 2018年05月17日 21:45, DaeRyong Jeong wrote: > > > > > We report t

[PATCH v4 1/2] xen/PVH: Set up GS segment for stack canary

2018-05-21 Thread Boris Ostrovsky
We are making calls to C code (e.g. xen_prepare_pvh()) which may use stack canary (stored in GS segment). Signed-off-by: Boris Ostrovsky --- arch/x86/xen/xen-pvh.S | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/x86/xen/xen-pvh.S b/arch/x86/xen

[PATCH v4 0/2] PVH GDT fixes

2018-05-21 Thread Boris Ostrovsky
Fix stack canary handling (in the first patch) and re-index PVH GDT to make it explicit that the GDT PVH-specific v4: * Load %gs after base address is calculated * Increase stack canary segment size to 48 bytes for long mode. Boris Ostrovsky (2): xen/PVH: Set up GS segment for stack canary xe

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

2018-05-21 Thread Jason Wang
On 2018年05月21日 22:42, Michael S. Tsirkin wrote: On Mon, May 21, 2018 at 10:38:10AM +0800, Jason Wang wrote: On 2018年05月18日 17:24, Jason Wang wrote: On 2018年05月17日 21:45, DaeRyong Jeong wrote: We report the crash: KASAN: use-after-free Read in vhost_chr_write_iter This crash has been found i

Re: [PATCH] [RFC] bcachefs: SIX locks (shared/intent/exclusive)

2018-05-21 Thread Kent Overstreet
On Mon, May 21, 2018 at 08:04:16PM -0700, Matthew Wilcox wrote: > On Mon, May 21, 2018 at 10:19:51PM -0400, Kent Overstreet wrote: > > New lock for bcachefs, like read/write locks but with a third state, > > intent. > > > > Intent locks conflict with each other, but not with read locks; taking a >

Re: [PATCH net] tuntap: raise EPOLLOUT on device up

2018-05-21 Thread Michael S. Tsirkin
On Tue, May 22, 2018 at 11:22:11AM +0800, Jason Wang wrote: > > > On 2018年05月22日 06:08, Michael S. Tsirkin wrote: > > On Mon, May 21, 2018 at 11:47:42AM -0400, David Miller wrote: > > > From: Jason Wang > > > Date: Fri, 18 May 2018 21:00:43 +0800 > > > > > > > We return -EIO on device down but

[PATCH] perf annotate: Show group event string for stdio

2018-05-21 Thread Jin Yao
When we enable the group, for tui/stdio2, the output first line includes the group event string. While for stdio, it will show only one event. For example, perf record -e cycles,branches ./div perf annotate --group --stdio Percent | Source code & Disassembly of div for cycles (44407 sam

[PATCH net V2 2/4] virtio-net: correctly transmit XDP buff after linearizing

2018-05-21 Thread Jason Wang
We should not go for the error path after successfully transmitting a XDP buffer after linearizing. Since the error path may try to pop and drop next packet and increase the drop counters. Fixing this by simply drop the refcnt of original page and go for xmit path. Fixes: 72979a6c3590 ("virtio_net

[PATCH net V2 4/4] virtio-net: fix leaking page for gso packet during mergeable XDP

2018-05-21 Thread Jason Wang
We need to drop refcnt to xdp_page if we see a gso packet. Otherwise it will be leaked. Fixing this by moving the check of gso packet above the linearizing logic. While at it, remove useless comment as well. Cc: John Fastabend Fixes: 72979a6c3590 ("virtio_net: xdp, add slowpath case for non conti

[PATCH net V2 3/4] virtio-net: correctly check num_buf during err path

2018-05-21 Thread Jason Wang
If we successfully linearize the packet, num_buf will be set to zero which may confuse error handling path which assumes num_buf is at least 1 and this can lead the code tries to pop the descriptor of next buffer. Fixing this by checking num_buf against 1 before decreasing. Fixes: 4941d472bf95 ("v

Re: [PATCH net] tuntap: raise EPOLLOUT on device up

2018-05-21 Thread Michael S. Tsirkin
On Tue, May 22, 2018 at 11:22:11AM +0800, Jason Wang wrote: > > > On 2018年05月22日 06:08, Michael S. Tsirkin wrote: > > On Mon, May 21, 2018 at 11:47:42AM -0400, David Miller wrote: > > > From: Jason Wang > > > Date: Fri, 18 May 2018 21:00:43 +0800 > > > > > > > We return -EIO on device down but

[PATCH net V2 0/4] Fix several issues of virtio-net mergeable XDP

2018-05-21 Thread Jason Wang
Hi: Please review the patches that tries to fix sevreal issues of virtio-net mergeable XDP. Changes from V1: - check against 1 before decreasing instead of resetting to 1 - typoe fixes Jason Wang (4): virtio-net: correctly redirect linearized packet virtio-net: correctly transmit XDP buff af

[PATCH net V2 1/4] virtio-net: correctly redirect linearized packet

2018-05-21 Thread Jason Wang
After a linearized packet was redirected by XDP, we should not go for the err path which will try to pop buffers for the next packet and increase the drop counter. Fixing this by just drop the page refcnt for the original page. Fixes: 186b3c998c50 ("virtio-net: support XDP_REDIRECT") Reported-by:

Re: [PATCH 12/33] clk: bcm2835: use match_string() helper

2018-05-21 Thread Yisheng Xie
Hi Andy, On 2018/5/22 5:50, Andy Shevchenko wrote: > On Mon, May 21, 2018 at 2:57 PM, Yisheng Xie wrote: >> match_string() returns the index of an array for a matching string, >> which can be used intead of open coded variant. >> >> Cc: Michael Turquette >> Cc: Stephen Boyd >> Cc: Eric Anholt

Re: Revert "dmaengine: pl330: add DMA_PAUSE feature"

2018-05-21 Thread Vinod Koul
On 21-05-18, 20:56, Frank Mori Hess wrote: > On Mon, May 21, 2018 at 5:16 AM, Vinod Koul wrote: > >> > >> I understand the residue can't be read after terminate, that's why > >> reading the residue is step 2 in pause/residue/terminate. My question > >> was whether the entire sequence pause/residu

Re: [PATCH net 4/4] virito-net: fix leaking page for gso packet during mergeable XDP

2018-05-21 Thread Jason Wang
On 2018年05月21日 23:01, Michael S. Tsirkin wrote: On Mon, May 21, 2018 at 04:35:06PM +0800, Jason Wang wrote: We need to drop refcnt to xdp_page if we see a gso packet. Otherwise it will be leaked. Fixing this by moving the check of gso packet above the linearizing logic. Cc: John Fastabend Fi

Re: [PATCH net 3/4] virtio-net: reset num_buf to 1 after linearizing packet

2018-05-21 Thread Jason Wang
On 2018年05月21日 22:59, Michael S. Tsirkin wrote: On Mon, May 21, 2018 at 04:35:05PM +0800, Jason Wang wrote: If we successfully linearize the packets, num_buf were set to zero which was wrong since we now have only 1 buffer to be used for e.g in the error path of receive_mergeable(). Zero num_b

[PATCH] scripts/kconfig/confdata.c: Fix script/checkpatch.pl coding style issues.

2018-05-21 Thread user1
Hi. I fixed the coding style issus in scripts/kconfig/confdata.c to not get errors at least. Signed-off-by: user1 --- scripts/kconfig/confdata.c | 110 - 1 file changed, 60 insertions(+), 50 deletions(-) diff --git a/scripts/kconfig/confdata.c b/scripts/k

Re: [PATCH 07/33] iwlwifi: mvm: use match_string() helper

2018-05-21 Thread Yisheng Xie
Hi Andy, On 2018/5/22 5:43, Andy Shevchenko wrote: > On Mon, May 21, 2018 at 2:57 PM, Yisheng Xie wrote: >> match_string() returns the index of an array for a matching string, >> which can be used intead of open coded variant. > >> int ret, bt_force_ant_mode; >> >> - for (bt_force_

Re: [PATCH] bpf: check NULL for sk_to_full_sk()

2018-05-21 Thread YueHaibing
On 2018/5/21 23:17, Eric Dumazet wrote: > > > On 05/21/2018 12:55 AM, YueHaibing wrote: >> like commit df39a9f106d5 ("bpf: check NULL for sk_to_full_sk() return >> value"), >> we should check sk_to_full_sk return value against NULL. >> >> Signed-off-by: YueHaibing >> --- >> include/linux/bpf-c

[PATCH 2/2] ARM: dts: imx6ul: add GPIO clocks

2018-05-21 Thread Anson Huang
i.MX6UL has GPIO clock gates in CCM CCGR, add clock property for GPIO driver to make sure all GPIO banks work as expected. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6ul.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6u

[PATCH 1/2] clk: imx6ul: add GPIO clock gates

2018-05-21 Thread Anson Huang
i.MX6UL has GPIO clock gates in CCM CCGR, add them into clock tree for clock management. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx6ul.c | 5 + include/dt-bindings/clock/imx6ul-clock.h | 31 ++- 2 files changed, 23 insertions(+), 13 deleti

Re: [PATCH net] tuntap: raise EPOLLOUT on device up

2018-05-21 Thread Jason Wang
On 2018年05月22日 06:08, Michael S. Tsirkin wrote: On Mon, May 21, 2018 at 11:47:42AM -0400, David Miller wrote: From: Jason Wang Date: Fri, 18 May 2018 21:00:43 +0800 We return -EIO on device down but can not raise EPOLLOUT after it was up. This may confuse user like vhost which expects tunta

Lockdep complaint in jffs2

2018-05-21 Thread Benjamin Herrenschmidt
Hi David ! I noticed this on my BMC when building OpenBMC with Lockdep... something worth investigating/digging ? Cheers, Ben. 24.068677] == [ 24.074871] WARNING: possible circular locking dependency detected [ 24.081065] 4.13.16-01426-ga

[PATCH V3 1/3] x86/efi: Call efi_delete_dummy_variable() after creating efi_rts_wq

2018-05-21 Thread Sai Praneeth Prakhya
From: Sai Praneeth Create a workqueue named efi_rts_wq (efi runtime services workqueue), so that all efi_runtime_services() are executed in kthread context. Invoking efi_runtime_services() through efi_rts_wq means all accesses to efi_runtime_services() should be done after efi_rts_wq has been cr

[PATCH V3 2/3] efi: Introduce efi_queue_work() to queue any efi_runtime_service() on efi_rts_wq

2018-05-21 Thread Sai Praneeth Prakhya
From: Sai Praneeth When a process requests the kernel to execute any efi_runtime_service(), the requested efi_runtime_service (represented as an identifier) and its arguments are packed into a struct named efi_runtime_work and queued onto work queue named efi_rts_wq. The caller then waits until t

[PATCH V3 3/3] efi: Use efi_rts_wq to invoke EFI Runtime Services

2018-05-21 Thread Sai Praneeth Prakhya
From: Sai Praneeth Presently, when a user process requests the kernel to execute any efi_runtime_service(), kernel switches the page directory (%cr3) from swapper_pgd to efi_pgd. Other subsystems in the kernel aren't aware of this switch and they might think, user space is still valid (i.e. the u

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Masahiro Yamada
2018-05-22 0:10 GMT+09:00 Ulf Magnusson : > On Mon, May 21, 2018 at 4:32 PM, Ulf Magnusson wrote: >> On Mon, May 21, 2018 at 4:23 PM, Ulf Magnusson wrote: >>> On Sun, May 20, 2018 at 4:50 PM, Sam Ravnborg wrote: Will the following be equal: $(foo,abc,$(x),$(y))

[PATCH V3 0/3] Use efi_rts_wq to invoke EFI Runtime Services

2018-05-21 Thread Sai Praneeth Prakhya
From: Sai Praneeth Problem statement: -- Presently, efi_runtime_services() silently switch %cr3 from swapper_pgd to efi_pgd. As a consequence, kernel code that runs in efi_pgd (e.g., perf code via an NMI) will have incorrect user space mappings[1]. This could lead to otherwise une

[PATCH V3] gpio: mxc: add clock operation

2018-05-21 Thread Anson Huang
Some i.MX SoCs have GPIO clock gates in CCM CCGR, such as i.MX6SLL, need to enable clocks before accessing GPIO registers, add optional clock operation for GPIO driver. Signed-off-by: Anson Huang --- changes since V2: remove the copyright change, since the change is already done by

Re: [PATCH] [RFC] bcachefs: SIX locks (shared/intent/exclusive)

2018-05-21 Thread Matthew Wilcox
On Mon, May 21, 2018 at 10:19:51PM -0400, Kent Overstreet wrote: > New lock for bcachefs, like read/write locks but with a third state, > intent. > > Intent locks conflict with each other, but not with read locks; taking a > write lock requires first holding an intent lock. Can you put something

[PATCH v9 02/12] perf/x86/intel/pt: Change pt_cap_get() to a public function

2018-05-21 Thread Luwei Kang
From: Chao Peng Change pt_cap_get() to a public function that KVM can access this function to check if specific feature is supported on hardware. Signed-off-by: Chao Peng Signed-off-by: Luwei Kang --- arch/x86/events/intel/pt.c | 3 ++- arch/x86/events/intel/pt.h | 21 -

[PATCH v9 04/12] perf/x86/intel/pt: add new capability for Intel PT

2018-05-21 Thread Luwei Kang
CPUID(EAX=14H,ECX=0):EBX[bit 3] = 1 indicates support of output to Trace Transport subsystem. MSR IA32_RTIT_CTL.FabricEn[bit 6] is reserved if CPUID.(EAX=14H, ECX=0):ECX[bit 3] = 0. This is use for emulate IA32_RTIT_CTL MSR read/write in KVM. KVM guest write IA32_RTIT_CTL will trap to root mode and

[PATCH v9 10/12] KVM: x86: Implement Intel Processor Trace MSRs read/write emulation

2018-05-21 Thread Luwei Kang
From: Chao Peng This patch implement Intel Processor Trace MSRs read/write emulation. Intel PT MSRs read/write need to be emulated when Intel PT MSRs is intercepted in guest and during live migration. Signed-off-by: Chao Peng Signed-off-by: Luwei Kang --- arch/x86/include/asm/intel_pt.h | 8

[PATCH v9 06/12] KVM: x86: Add Intel Processor Trace virtualization mode

2018-05-21 Thread Luwei Kang
From: Chao Peng Intel PT virtualization can be work in one of 2 possible modes: a. system-wide: trace both host and guest and output to host buffer; b. host-guest: trace host/guest simultaneous and output to their respective buffer. Signed-off-by: Chao Peng Signed-off-by: Luwei Kang --- ar

[PATCH v9 11/12] KVM: x86: Set intercept for Intel PT MSRs read/write

2018-05-21 Thread Luwei Kang
From: Chao Peng Disable intercept Intel PT MSRs only when Intel PT is enabled in guest. But MSR_IA32_RTIT_CTL will alway be intercept. Signed-off-by: Chao Peng Signed-off-by: Luwei Kang --- arch/x86/kvm/vmx.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/x8

[PATCH v9 12/12] KVM: x86: Disable Intel Processor Trace when VMXON in L1 guest

2018-05-21 Thread Luwei Kang
Currently, Intel Processor Trace do not support tracing in L1 guest VMX operation(IA32_VMX_MISC[bit 14] is 0). As mentioned in SDM, on these type of processors, execution of the VMXON instruction will clears IA32_RTIT_CTL.TraceEn and any attempt to write IA32_RTIT_CTL causes a general-protection ex

[PATCH v9 08/12] KVM: x86: Add Intel Processor Trace context switch for each vcpu

2018-05-21 Thread Luwei Kang
From: Chao Peng Load/Store Intel processor trace register in context switch. MSR IA32_RTIT_CTL is loaded/stored automatically from VMCS. In HOST_GUEST mode, we need load/resore PT MSRs only when PT is enabled in guest. Signed-off-by: Chao Peng Signed-off-by: Luwei Kang --- arch/x86/include/as

[PATCH v9 09/12] KVM: x86: Introduce a function to initialize the PT configuration

2018-05-21 Thread Luwei Kang
Initialize the Intel PT configuration when cpuid update. Include cpuid inforamtion, rtit_ctl bit mask and the number of address ranges. Signed-off-by: Luwei Kang --- arch/x86/kvm/vmx.c | 70 ++ 1 file changed, 70 insertions(+) diff --git a/arc

[PATCH v9 07/12] KVM: x86: Add Intel Processor Trace cpuid emulation

2018-05-21 Thread Luwei Kang
From: Chao Peng Expose Intel Processor Trace to guest only when PT work in HOST_GUEST mode. Signed-off-by: Chao Peng Signed-off-by: Luwei Kang --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/cpuid.c| 22 -- arch/x86/kvm/svm.c | 6 ++

[PATCH v9 05/12] perf/x86/intel/pt: Introduce a new function to get capability of Intel PT

2018-05-21 Thread Luwei Kang
New function pt_cap_decode() will be invoked in KVM to check if a specific capability is available in KVM guest. Another function pt_cap_get() can only check the hardware capabilities but this may different with KVM guest because some features may not be exposed to guest. Signed-off-by: Luwei Kang

  1   2   3   4   5   6   7   8   9   10   >