Re: [PATCH v3 2/2] ip6_tunnel: fix ip6 tunnel lookup in collect_md mode

2017-09-05 Thread 严海双
> On 2017年9月6日, at 上午11:14, Alexei Starovoitov wrote: > > On 9/4/17 1:36 AM, Haishuang Yan wrote: >> In collect_md mode, if the tun dev is down, it still can call >> __ip6_tnl_rcv to receive on packets, and the rx statistics increase >> improperly. >> >> Fixes: 8d79266bc48c ("ip6_tunnel: add col

[PATCH v2] ALSA: maestro3: Use common error handling code in two functions

2017-09-05 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 6 Sep 2017 08:18:30 +0200 Add jump targets so that a bit of exception handling can be better reused at the end of these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- v2: * An approach to make a few checks

Re: [PATCH v2 1/1] usb:xhci: update condition to select bus->sysdev from parent device

2017-09-05 Thread Mathias Nyman
On 06.09.2017 06:47, Thang Q. Nguyen wrote: On Tue, Sep 5, 2017 at 6:14 PM, Mathias Nyman mailto:mathias.ny...@linux.intel.com>> wrote: On 24.08.2017 05 :53, Thang Q. Nguyen wrote: On Sat, Aug 19, 2017 at 10:43 AM, Thang Q. Nguyen mailto:tqngu...@apm.com>> wrote: From

[PATCH 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation

2017-09-05 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum ADI controller device. Signed-off-by: Baolin Wang --- .../devicetree/bindings/spi/spi-sprd-adi.txt | 44 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-sprd-adi.t

[PATCH 2/2] spi: Add ADI driver for Spreadtrum platform

2017-09-05 Thread Baolin Wang
This patch adds ADI driver based on SPI framework for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- drivers/spi/Kconfig|6 + drivers/spi/Makefile |1 + drivers/spi/spi-sprd-adi.c | 431 3 files changed, 438 insertio

Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the idlest CPU

2017-09-05 Thread Christoph Hellwig
On Wed, Sep 06, 2017 at 12:13:38PM +0800, Yu Chen wrote: > I agree, the driver could be rewritten, but it might take some time, so > meanwhile I'm looking at also other possible optimization. Which driver are we talking about anyway? Let's start looking at it and fix the issue there.

Re: 4.13 on thinkpad x220: oops when writing to SD card

2017-09-05 Thread Adrian Hunter
On 06/09/17 05:44, Shawn Lin wrote: > + Seraphime > > On 2017/9/6 3:47, Pavel Machek wrote: >> Hi! >> >> I tried to write to the MMC card; process hung and I got this in the >> dmesg. > > > A similar report for 4.13 cycle was here: > > https://lkml.org/lkml/2017/8/10/824 > > Seems 4.13-rc4 was

Re: [PATCH 0/6] [media] Atmel: Adjustments for seven function implementations

2017-09-05 Thread Ludovic Desroches
On Wed, Sep 06, 2017 at 08:58:26AM +0800, Yang, Wenyou wrote: > Hi, > > > On 2017/9/5 4:04, SF Markus Elfring wrote: > > From: Markus Elfring > > Date: Mon, 4 Sep 2017 21:44:55 +0200 > > > > A few update suggestions were taken into account > > from static source code analysis. > Thank you for y

Re: [2/2] genirq: Warn when IRQ_NOAUTOEN is used with shared interrupts

2017-09-05 Thread Paul Burton
Hi Thomas, On Wednesday, 31 May 2017 02:58:33 PDT Thomas Gleixner wrote: > Shared interrupts do not go well with disabling auto enable: > > 1) The sharing interrupt might request it while it's still disabled and >then wait for interrupts forever. > > 2) The interrupt might have been requeste

linux-next: Tree for Sep 6

2017-09-05 Thread Stephen Rothwell
Hi all, Please do not add any v4.15 related material to your linux-next included branches until after v4.14-rc1 has been released. Changes since 20170905: The devicetree tree gained conflicts against Linus' and the sound trees. The akpm-current tree lost its build failure. Non-merge co

[PATCH] drivers/iommu/tegra: Optimize mutex_unlock function call

2017-09-05 Thread Pushkar Jambhlekar
Code can be optimized more by making single exit point of function and calling mutex_unlock at the end Signed-off-by: Pushkar Jambhlekar --- drivers/iommu/tegra-smmu.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-sm

Re: [PATCH v2] md/raid5: preserve STRIPE_ON_UNPLUG_LIST in break_stripe_batch_list

2017-09-05 Thread Shaohua Li
On Wed, Sep 06, 2017 at 11:02:35AM +0800, Dennis Yang wrote: > In release_stripe_plug(), if a stripe_head has its STRIPE_ON_UNPLUG_LIST > set, it indicates that this stripe_head is already in the raid5_plug_cb > list and release_stripe() would be called instead to drop a reference > count. Otherwis

[PATCH 1/2] dt-bindings: watchdog: Add Spreadtrum watchdog documentation

2017-09-05 Thread Eric Long
This patch adds the documentation for Spreadtrum watchdog driver. Signed-off-by: Eric Long --- .../devicetree/bindings/watchdog/sprd-wdt.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/sprd-wdt.txt diff --git

[PATCH 2/2] watchdog: Add Spreadtrum watchdog driver

2017-09-05 Thread Eric Long
This patch adds the watchdog driver for Spreadtrum SC9860 platform. Signed-off-by: Eric Long --- drivers/watchdog/Kconfig| 8 + drivers/watchdog/Makefile | 1 + drivers/watchdog/sprd_wdt.c | 366 3 files changed, 375 insertions(+) create mo

[PATCH] drivers/staging/pi433: Fixing coding guidelines

2017-09-05 Thread Pushkar Jambhlekar
Fix brace style of if-else case Signed-off-by: Pushkar Jambhlekar --- drivers/staging/pi433/pi433_if.c | 162 +-- 1 file changed, 54 insertions(+), 108 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 93c0168

Re: [PATCH v8 06/13] x86/apic: Mark the apic_intr_mode extern for sanity check cleanup

2017-09-05 Thread Dou Liyang
Hi Baoquan, At 09/06/2017 01:26 PM, Baoquan He wrote: [...] static void __init smp_cpu_index_default(void) @@ -1335,19 +1295,20 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus) Please also cleanup the passed in max_cpus since it's not used here any more. And up to the caller:

Re: [PATCH v2 0/8] MT2712 IOMMU SUPPORT

2017-09-05 Thread Yong Wu
On Tue, 2017-08-22 at 22:38 +0800, Joerg Roedel wrote: > On Mon, Aug 21, 2017 at 07:00:13PM +0800, Yong Wu wrote: > > Yong Wu (8): > > dt-bindings: mediatek: Add binding for mt2712 IOMMU and SMI > > iommu/mediatek: Move MTK_M4U_TO_LARB/PORT into mtk_iommu.c > > iommu/mediatek: Add mt2712 IOMM

Re: [PATCH] arm64: KVM: VHE: save and restore some PSTATE bits

2017-09-05 Thread gengdongjiu
CC Catalin On 2017/9/6 2:58, gengdongjiu wrote: > when exit from guest, some host PSTATE bits may be lost, such as > PSTATE.PAN or PSTATE.UAO. It is because host and hypervisor all run > in the EL2, host PSTATE value cannot be saved and restored via > SPSR_EL2. So if guest has changed the PSTATE,

Re: [RFC v2 6/6] platform/x86: intel_pmc_ipc: Use generic Intel IPC device calls

2017-09-05 Thread Kuppuswamy, Sathyanarayanan
Hi Lee, On 9/5/2017 12:38 AM, Lee Jones wrote: On Sat, 02 Sep 2017, sathyanarayanan.kuppusw...@linux.intel.com wrote: From: Kuppuswamy Sathyanarayanan Removed redundant IPC helper functions and refactored the driver to use generic IPC device driver APIs. This patch also cleans-up PMC IPC u

[PATCH 3/3] locking/rwsem/x86: Add stack frame dependency for __downgrade_write()

2017-09-05 Thread Miguel Bernal Marin
kernel/locking/rwsem.o: warning: objtool: downgrade_write()+0x22: call without frame pointer save/setup The warning means gcc 7.2.0 placed the __downgrade_write() inline asm (and its call instruction) before the frame pointer setup in downgrade_write(), which breaks frame pointer convention and c

[PATCH 0/3] locking/rwsem/x86: Add stack frame dependency for some inline asm

2017-09-05 Thread Miguel Bernal Marin
Some warning were showed by objtool using gcc 7.2.0 kernel/locking/rwsem.o: warning: objtool: up_read()+0x11: call without frame pointer save/setup kernel/locking/rwsem.o: warning: objtool: up_write()+0x17: call without frame pointer save/setup kernel/locking/rwsem.o: warning: objtool: downgrade

[PATCH 2/3] locking/rwsem/x86: Add stack frame dependency for __up_write()

2017-09-05 Thread Miguel Bernal Marin
kernel/locking/rwsem.o: warning: objtool: up_write()+0x17: call without frame pointer save/setup The warning means gcc 7.2.0 placed the __up_write() inline asm (and its call instruction) before the frame pointer setup in up_write(), which breaks frame pointer convention and can result in incorrec

[PATCH 1/3] locking/rwsem/x86: Add stack frame dependency for __up_read()

2017-09-05 Thread Miguel Bernal Marin
kernel/locking/rwsem.o: warning: objtool: up_read()+0x11: call without frame pointer save/setup The warning means gcc 7.2.0 placed the __up_read() inline asm (and its call instruction) before the frame pointer setup in up_read(), which breaks frame pointer convention and can result in incorrect s

Re: [PATCH v8 06/13] x86/apic: Mark the apic_intr_mode extern for sanity check cleanup

2017-09-05 Thread Baoquan He
On 09/06/17 at 12:25pm, Baoquan He wrote: > On 08/28/17 at 11:20am, Dou Liyang wrote: > > - /* > > * Should not be necessary because the MP table should list the boot > > * CPU too, but we do it for the sake of robustness anyway. > > */ > > @@ -1254,29 +1237,6 @@ static int __init

Re: [PATCH v3 2/3] arm: dts: add Nuvoton NPCM750 device tree

2017-09-05 Thread Joel Stanley
On Wed, Sep 6, 2017 at 10:00 AM, Brendan Higgins wrote: > +++ b/Documentation/devicetree/bindings/arm/npcm/npcm.txt > @@ -0,0 +1,6 @@ > +NPCM Platforms Device Tree Bindings > +--- > +NPCM750 SoC > +Required root node properties: > + - compatible = "nuvoton,npc

Abysmal scheduler performance in Linus' tree?

2017-09-05 Thread Andy Lutomirski
I'm running e7d0c41ecc2e372a81741a30894f556afec24315 from Linus' tree today, and I'm seeing abysmal scheduler performance. Running make -j4 ends up with all the tasks on CPU 3 most of the time (on my 4-logical-thread laptop). taskset -c 0 whatever puts whatever on CPU 0, but plain while true; do

[PATCH v2] arm: dts: artpec6: Remove unnecessary interrupt-parent property from sub-nodes

2017-09-05 Thread surenderp
ani Acked-by: Niklas Cassel --- Changes for v2: - Done few changes as suggested by Niklas Cassel. - Patch is rebased and built(ARCH=arm) on latest next-20170905. --- arch/arm/boot/dts/artpec6.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/ar

UBSAN: Undefined error in log2.h

2017-09-05 Thread Shankara Pailoor
Hi, I am hitting this bug when running the syzkaller fuzzer on kernel 4.13-rc7 Syzkaller hit 'UBSAN: Undefined behaviour in ./include/linux/log2.h:LINE' bug. Guilty file: fs/pipe.c Maintainers: [] UBSAN: Undefined behaviour in ./include/linux/log2.h:57:13 shift exponent 64 is too large for 64-

Re: UBSAN: Undefined error in time.h signed integer overflow

2017-09-05 Thread John Stultz
On Tue, Sep 5, 2017 at 9:30 PM, Shankara Pailoor wrote: > Hi, > > I encountered this bug while fuzzing linux kernel 4.13-rc7 with syzkaller. > > > UBSAN: Undefined behaviour in ./include/linux/time.h:233:27 > signed i

[PATCH 1/2] mm/slub: wake up kswapd for initial high order allocation

2017-09-05 Thread js1304
From: Joonsoo Kim slub uses higher order allocation than it actually needs. In this case, we don't want to do direct reclaim to make such a high order page since it causes a big latency to the user. Instead, we would like to fallback lower order allocation that it actually needs. However, we als

[PATCH 2/2] mm/slub: don't use reserved memory for optimistic try

2017-09-05 Thread js1304
From: Joonsoo Kim High-order atomic allocation is difficult to succeed since we cannot reclaim anything in this context. So, we reserves the pageblock for this kind of request. In slub, we try to allocate higher-order page more than it actually needs in order to get the best performance. If this

[PATCH] mm/page_alloc: don't reserve ZONE_HIGHMEM for ZONE_MOVABLE request

2017-09-05 Thread js1304
From: Joonsoo Kim Freepage on ZONE_HIGHMEM doesn't work for kernel memory so it's not that important to reserve. When ZONE_MOVABLE is used, this problem would theorectically cause to decrease usable memory for GFP_HIGHUSER_MOVABLE allocation request which is mainly used for page cache and anon pa

UBSAN: Undefined error in time.h signed integer overflow

2017-09-05 Thread Shankara Pailoor
Hi, I encountered this bug while fuzzing linux kernel 4.13-rc7 with syzkaller. UBSAN: Undefined behaviour in ./include/linux/time.h:233:27 signed integer overflow: 8391720337152500783 * 10 cannot be represent

Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the idlest CPU

2017-09-05 Thread Yu Chen
On Wed, Sep 06, 2017 at 12:57:41AM +0200, Thomas Gleixner wrote: > On Sun, 3 Sep 2017, Thomas Gleixner wrote: > > > On Fri, 1 Sep 2017, Chen Yu wrote: > > > > > This is the major logic to spread the vectors on different CPUs. > > > The main idea is to choose the 'idlest' CPU which has assigned >

Re: [PATCH 23/25 v3] ALSA/dummy: Replace tasklet with softirq hrtimer

2017-09-05 Thread Takashi Sakamoto
On Sep 6 2017 01:18, Sebastian Andrzej Siewior wrote: From: Thomas Gleixner The tasklet is used to defer the execution of snd_pcm_period_elapsed() to the softirq context. Using the CLOCK_MONOTONIC_SOFT base invokes the timer callback in softirq context as well which renders the tasklet useless.

Re: [PATCH v8 06/13] x86/apic: Mark the apic_intr_mode extern for sanity check cleanup

2017-09-05 Thread Baoquan He
On 08/28/17 at 11:20am, Dou Liyang wrote: > Calling native_smp_prepare_cpus() to prepare for SMP bootup, does > some sanity checking, enables APIC mode and disables SMP feature. > > Now, APIC mode setup has been unified to apic_intr_mode_init(), > some sanity checks are redundant and need to be cl

Re: [PATCH] gpio: thunderx: select IRQ_DOMAIN_HIERARCHY instead of depends on

2017-09-05 Thread Masahiro Yamada
Hi David, 2017-09-06 11:09 GMT+09:00 David Daney : > On 09/05/2017 06:40 PM, Masahiro Yamada wrote: >> >> IRQ_DOMAIN_HIERARCHY is not user-configurable, but supposed to be >> selected by drivers that need IRQ domain hierarchy support. >> >> GPIO_THUNDERX is the only user of "depends on IRQ_DOMAIN

Re: [PATCH v8 01/13] x86/apic: Construct a selector for the interrupt delivery mode

2017-09-05 Thread Dou Liyang
Hi Baoquan, Thanks for your reply! My answer is in below. At 09/06/2017 08:55 AM, Baoquan He wrote: Hi Liyang, On 08/28/17 at 11:20am, Dou Liyang wrote: Now, there are many switches in kernel which are used to determine the final interrupt delivery mode, as shown below: 1) kconfig: CONFI

Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the idlest CPU

2017-09-05 Thread Yu Chen
Thanks for looking at this, (please bear my slow response as I need to check related code before replying.) On Sun, Sep 03, 2017 at 08:17:04PM +0200, Thomas Gleixner wrote: > On Fri, 1 Sep 2017, Chen Yu wrote: > > > This is the major logic to spread the vectors on different CPUs. > > The main idea

[PATCH 1/1] workqueue: use type int instead of bool to index array

2017-09-05 Thread zijun_hu
From: zijun_hu type bool is used to index three arrays in alloc_and_link_pwqs() it doesn't look like conventional. it is fixed by using type int to index the relevant arrays. Signed-off-by: zijun_hu --- kernel/workqueue.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --

Re: [PATCH 3/3] f2fs: support flexible inline xattr size

2017-09-05 Thread Chao Yu
Hi Jaegeuk, Do we have time to test and stabilize this new feature before merge window? Thanks, On 2017/9/4 18:58, Chao Yu wrote: > Now, in product, more and more features based on file encryption were > introduced, their demand of xattr space is increasing, however, inline > xattr has fixed-siz

SME/32-bit regression

2017-09-05 Thread Boris Ostrovsky
It appears there is a regression for 32-bit kernels due to SME changes. I bisected my particular problem (Xen PV guest) to 21729f81ce8ae76a6995681d40e16f7ce8075db4 but I also saw pmd_clear_bad() errors on baremetal. This seems to be caused by sme_me_mask being an unsigned long as opposed to ph

[PATCH 3/3] KVM: SVM: Add irqchip_split() checks before enabling AVIC

2017-09-05 Thread Suravee Suthikulpanit
SVM AVIC hardware accelerates guest write to APIC_EOI register (for edge-trigger interrupt), which means it does not trap to KVM. So, only enable SVM AVIC only in split irqchip mode. (e.g. launching qemu w/ option '-machine kernel_irqchip=split'). Suggested-by: Paolo Bonzini Signed-off-by: Surav

kvm: use-after-free in irq_bypass_register_consumer

2017-09-05 Thread idaifish
Got the following report while fuzzing 4.9.47. It seems that this bug has been reported by Dmitry Vyukov [https://lkml.org/lkml/2017/1/27/828] But I still can reproduce the bug on latest Ubuntu1604 (4.4.0-94-generic) PoC: https://gist.githubusercontent.com/dvyukov/3411518fa22baff19ae204cc4

[PATCH 2/3] KVM: Add struct kvm_vcpu pointer parameter to get_enable_apicv()

2017-09-05 Thread Suravee Suthikulpanit
Modify struct kvm_x86_ops.arch.apicv_active() to take struct kvm_vcpu pointer as parameter in preparation to subsequent changes. Signed-off-by: Suravee Suthikulpanit --- arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/kvm/svm.c | 2 +- arch/x86/kvm/vmx.c | 2 +- arch/x

[PATCH 1/3] KVM: SVM: Refactor AVIC vcpu initialization into avic_init_vcpu()

2017-09-05 Thread Suravee Suthikulpanit
Preparing the base code for subsequent changes. This does not change existing logic. Signed-off-by: Suravee Suthikulpanit --- arch/x86/kvm/svm.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index af256b7

[PATCH 0/3] KVM: SVM: Fix guest not booting w/ AVIC enabled

2017-09-05 Thread Suravee Suthikulpanit
Certain QEMU options fails to boot VM guest w/ SVM AVIC enabled (e.g. modprobe kvm_amd avic=1). Investigation shows that this mainly due to AVIC hardware does not trap into hypervisor when guest OS writes to APIC_EOI register. The boot hang is caused by missing timer interrupt when using in-kerne

Re: [PATCH RFC v3 0/4] Add cross-compilation support to eBPF samples

2017-09-05 Thread Joel Fernandes
Hi Alexei, On Tue, Sep 5, 2017 at 8:24 PM, Alexei Starovoitov wrote: > On Sun, Sep 03, 2017 at 11:23:21AM -0700, Joel Fernandes wrote: >> These patches fix issues seen when cross-compiling eBPF samples on arm64. >> Compared to [1], I dropped the controversial inline-asm patch pending further >> d

Re: [PATCH RFC v3 0/4] Add cross-compilation support to eBPF samples

2017-09-05 Thread Alexei Starovoitov
On Sun, Sep 03, 2017 at 11:23:21AM -0700, Joel Fernandes wrote: > These patches fix issues seen when cross-compiling eBPF samples on arm64. > Compared to [1], I dropped the controversial inline-asm patch pending further > discussion on the right way to do it. However these patches are still a step

Re: [PATCH] f2fs: fix wrong bfree and bavail

2017-09-05 Thread Chao Yu
On 2017/9/6 11:10, Jaegeuk Kim wrote: > On 09/06, Chao Yu wrote: >> On 2017/9/6 5:06, Jaegeuk Kim wrote: >>> This patch fixes bavail and bfree finally. >>> >>> longf_bfree;/* free blocks in fs */ >>> longf_bavail; /* free blocks avail to non-superuser */ >>> >>> So, bfree represents a

Re: [f2fs-dev] [PATCH 2/2] f2fs: use generic terms used for encrypted block management

2017-09-05 Thread Chao Yu
On 2017/9/6 8:15, Jaegeuk Kim wrote: > This patch renames functions regarding to buffer management via META_MAPPING > used for encrypted blocks especially. We can actually use them in generic way. Meta inode cache is more like bd_inode cache now. ;) Reviewed-by: Chao Yu Thanks, > > Signed-off

Re: [PATCH] md/raid5: preserve STRIPE_ON_UNPLUG_LIST in break_stripe_batch_list

2017-09-05 Thread Dennis Yang
> On Fri, Sep 01, 2017 at 05:26:48PM +0800, Dennis Yang wrote: > > >On Mon, Aug 28, 2017 at 08:01:59PM +0800, Dennis Yang wrote: > > >> break_stripe_batch_list() did not preserve STRIPE_ON_UNPLUG_LIST which is > > >> set when a stripe_head gets queued to the stripe_head list maintained by > > >> ra

Re: [PATCH v3 2/2] ip6_tunnel: fix ip6 tunnel lookup in collect_md mode

2017-09-05 Thread Alexei Starovoitov
On 9/4/17 1:36 AM, Haishuang Yan wrote: In collect_md mode, if the tun dev is down, it still can call __ip6_tnl_rcv to receive on packets, and the rx statistics increase improperly. Fixes: 8d79266bc48c ("ip6_tunnel: add collect_md mode to IPv6 tunnels") Cc: Alexei Starovoitov Signed-off-by: Hai

Re: [f2fs-dev] [PATCH 1/2] f2fs: introduce f2fs_encrypted_file for clean-up

2017-09-05 Thread Chao Yu
On 2017/9/6 8:15, Jaegeuk Kim wrote: > This patch replaces (f2fs_encrypted_inode() && S_ISREG()) with > f2fs_encrypted_file(), which gives no functional change. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks, > --- > fs/f2fs/data.c | 10 +- > fs/f2fs/f2fs.h | 5 +

Re: [PATCH] f2fs: fix wrong bfree and bavail

2017-09-05 Thread Jaegeuk Kim
On 09/06, Chao Yu wrote: > On 2017/9/6 5:06, Jaegeuk Kim wrote: > > This patch fixes bavail and bfree finally. > > > > longf_bfree;/* free blocks in fs */ > > longf_bavail; /* free blocks avail to non-superuser */ > > > > So, bfree represents all the reserved blocks, while bavail do

Re: [PATCH] f2fs: fix wrong bfree and bavail

2017-09-05 Thread Chao Yu
On 2017/9/6 5:06, Jaegeuk Kim wrote: > This patch fixes bavail and bfree finally. > > longf_bfree;/* free blocks in fs */ > longf_bavail; /* free blocks avail to non-superuser */ > > So, bfree represents all the reserved blocks, while bavail does the space only > visible to normal u

[PATCH v2] md/raid5: preserve STRIPE_ON_UNPLUG_LIST in break_stripe_batch_list

2017-09-05 Thread Dennis Yang
In release_stripe_plug(), if a stripe_head has its STRIPE_ON_UNPLUG_LIST set, it indicates that this stripe_head is already in the raid5_plug_cb list and release_stripe() would be called instead to drop a reference count. Otherwise, the STRIPE_ON_UNPLUG_LIST bit would be set for this stripe_head an

linux-next: manual merge of the devicetree tree with Linus' tree

2017-09-05 Thread Stephen Rothwell
Hi Rob, Today's linux-next merge of the devicetree tree got a conflict in: Documentation/devicetree/bindings/net/brcm,bgmac-nsp.txt between commit: ea6c3077678f ("dt-bindings: net: Remove duplicate NSP Ethernet MAC binding document") from Linus' tree and commit: 4da722ca19f3 ("dt-bindi

linux-next: manual merge of the devicetree tree with the sound tree

2017-09-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the devicetree tree got a conflict in: Documentation/devicetree/bindings/sound/rockchip,pdm.txt between commit: fce7358b54c6 ("ASoC: rockchip: separate pinctrl pins from each other") from the sound tree and commit: 4da722ca19f3 ("dt-bindings: Remove "

linux-next: manual merge of the devicetree tree with Linus' tree

2017-09-05 Thread Stephen Rothwell
Hi Rob, Today's linux-next merge of the devicetree tree got a conflict in: Documentation/devicetree/bindings/crypto/inside-secure-safexcel.txt between commit: 6eb8844bf4be ("Documentation/bindings: crypto: remove the dma-mask property") from Linus' tree and commit: 4da722ca19f3 ("dt-bin

[RESENT PATCH v9 1/2] ASoC: rt5514: Add devicetree bindings for rt5514-spi

2017-09-05 Thread Jeffy Chen
Add devicetree bindings documentation file for rt5514 spi dsp codec. Also update rt5514 i2c dt-binding's compatible to distinguish it from rt5514 spi. Signed-off-by: Jeffy Chen --- Changes in v9: Address comments from Brian. .../devicetree/bindings/sound/rt5514-spi.txt | 29

[RESENT PATCH v9 2/2] arm64: dts: rockchip: Update rt5514 devices' compatible for Gru

2017-09-05 Thread Jeffy Chen
Currently the rt5514 i2c driver and rt5514 spi driver are using the same compatible string. Add additional compatible strings to identify them for Gru boards. Signed-off-by: Jeffy Chen --- Changes in v9: None arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 4 ++-- 1 file changed, 2 insertions(

Re: [PATCH V2 0/3] Use mm_struct and switch_mm() instead of manually

2017-09-05 Thread Sai Praneeth Prakhya
On Tue, 2017-09-05 at 19:21 -0700, Sai Praneeth Prakhya wrote: > > I get a similar crash on Qemu with linus's master branch and the V2 > > applied on top of it. Here are the details of my test environment: > > > > 1. I use the OVMF (EDK2) EFI firmware to launch the kernel: > > edk2.git/ovmf-x64 >

Re: 4.13 on thinkpad x220: oops when writing to SD card

2017-09-05 Thread Shawn Lin
+ Seraphime On 2017/9/6 3:47, Pavel Machek wrote: Hi! I tried to write to the MMC card; process hung and I got this in the dmesg. A similar report for 4.13 cycle was here: https://lkml.org/lkml/2017/8/10/824 Seems 4.13-rc4 was already broken for that but unfortuantely I didn't reproduce th

Re: [PATCH v8 1/2] ASoC: rt5514: Add devicetree bindings for rt5514-spi

2017-09-05 Thread jeffy
Hi Brian, On 09/06/2017 01:55 AM, Brian Norris wrote: +This device supports SPI only. >+ >+Required properties: >+ >+- compatible : "realtek,rt5514". You list one string here, but there's 2 in the example. The point of this exercise was to document (not just in an Example) the strings you're us

[PATCH v9 1/2] ASoC: rt5514: Add devicetree bindings for rt5514-spi

2017-09-05 Thread Jeffy Chen
Add devicetree bindings documentation file for rt5514 spi dsp codec. Also update rt5514 i2c dt-binding's compatible to distinguish it from rt5514 spi. Signed-off-by: Jeffy Chen --- Changes in v9: Address comments from Brian. .../devicetree/bindings/sound/rt5514-spi.txt | 29

Re: printk: what is going on with additional newlines?

2017-09-05 Thread Linus Torvalds
On Tue, Sep 5, 2017 at 7:54 AM, Steven Rostedt wrote: > You can do what I did with trace_printk(). I have a buffer per context. > Then you only need to use preempt_disable() to do the print. That is, > trace_printk() has 4 buffers: > > 1. Normal context > 2. softirq context > 3. irq context >

Re: [PATCH v2 25/40] tracing: Add support for dynamic tracepoints

2017-09-05 Thread Tom Zanussi
Hi Mathieu, On Tue, 2017-09-05 at 23:29 +, Mathieu Desnoyers wrote: > - On Sep 5, 2017, at 5:57 PM, Tom Zanussi tom.zanu...@linux.intel.com > wrote: > > > The tracepoint infrastructure assumes statically-defined tracepoints > > and uses static_keys for tracepoint enablement. In order to

Re: [PATCH V2 0/3] Use mm_struct and switch_mm() instead of manually

2017-09-05 Thread Sai Praneeth Prakhya
> I get a similar crash on Qemu with linus's master branch and the V2 > applied on top of it. Here are the details of my test environment: > > 1. I use the OVMF (EDK2) EFI firmware to launch the kernel: > edk2.git/ovmf-x64 > > 2. I used linus's master branch (HEAD - commit: > b1b6f83ac938d176742

Re: [RFC PATCH 6/6] iommu/arm-smmu-v3: Avoid ILLEGAL setting of STE.S1STALLD and CD.S

2017-09-05 Thread Yisheng Xie
Hi Jean-Philippe, On 2017/9/5 20:54, Jean-Philippe Brucker wrote: > On 31/08/17 09:20, Yisheng Xie wrote: >> It is ILLEGAL to set STE.S1STALLD if STALL_MODEL is not 0b00, which >> means we should not disable stall mode if stall/terminate mode is not >> configuable. >> >> Meanwhile, it is also ILLE

Re: printk: what is going on with additional newlines?

2017-09-05 Thread Sergey Senozhatsky
On (09/05/17 10:54), Steven Rostedt wrote: > On Mon, 4 Sep 2017 14:22:46 +0900 > Sergey Senozhatsky wrote: > > > like I said in another email, printk-safe buffer > > is per-CPU and is also used for actual printk-safe, hence it must be > > used with local IRQs disabled when we "borrow" the buffer

[RFC] a question about stack size form /proc/pid/task/child pid/limits

2017-09-05 Thread Xishi Qiu
Hi, I find if I use a defined stack size to create a child thread, then the max stack size from /proc/pid/task/child pid/limits still shows "Max stack size8388608", it doesn't update to the user defined size, is it a problem? Here is the test code: ... p

Re: [PATCH 0/9] add ext4 per-inode DAX flag

2017-09-05 Thread Eric Sandeen
On 9/5/17 5:35 PM, Ross Zwisler wrote: > The original intent of this series was to add a per-inode DAX flag to ext4 > so that it would be consistent with XFS. In my travels I found and fixed > several related issues in both ext4 and XFS. Hi Ross - hch had a lot of reasons to nuke the dax flag fr

Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory region v3

2017-09-05 Thread Jerome Glisse
On Wed, Sep 06, 2017 at 09:25:36AM +0800, Bob Liu wrote: > On 2017/9/6 2:54, Ross Zwisler wrote: > > On Mon, Sep 04, 2017 at 10:38:27PM -0400, Jerome Glisse wrote: > >> On Tue, Sep 05, 2017 at 09:13:24AM +0800, Bob Liu wrote: > >>> On 2017/9/4 23:51, Jerome Glisse wrote: > On Mon, Sep 04, 2017

Re: [PATCH] gpio: thunderx: select IRQ_DOMAIN_HIERARCHY instead of depends on

2017-09-05 Thread David Daney
On 09/05/2017 06:40 PM, Masahiro Yamada wrote: IRQ_DOMAIN_HIERARCHY is not user-configurable, but supposed to be selected by drivers that need IRQ domain hierarchy support. GPIO_THUNDERX is the only user of "depends on IRQ_DOMAIN_HIERARCHY". This means, we can not enable GPIO_THUNDERX unless oth

[no subject]

2017-09-05 Thread linux-kernel
73233.doc Description: MS-Word document

[PATCH] gpio: thunderx: select IRQ_DOMAIN_HIERARCHY instead of depends on

2017-09-05 Thread Masahiro Yamada
IRQ_DOMAIN_HIERARCHY is not user-configurable, but supposed to be selected by drivers that need IRQ domain hierarchy support. GPIO_THUNDERX is the only user of "depends on IRQ_DOMAIN_HIERARCHY". This means, we can not enable GPIO_THUNDERX unless other drivers select IRQ_DOMAIN_HIERARCHY elsewhere.

Re: [PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-09-05 Thread Byungchul Park
On Wed, Sep 06, 2017 at 08:42:11AM +0800, Boqun Feng wrote: > > OK. If the workqueue is only user of the weird lockdep annotations, then > > it might be better to defer introducing the extra state until needed. > > > > But, the 'might' thing I introduced would be necessary if more users > > want t

Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory region v3

2017-09-05 Thread Bob Liu
On 2017/9/6 2:54, Ross Zwisler wrote: > On Mon, Sep 04, 2017 at 10:38:27PM -0400, Jerome Glisse wrote: >> On Tue, Sep 05, 2017 at 09:13:24AM +0800, Bob Liu wrote: >>> On 2017/9/4 23:51, Jerome Glisse wrote: On Mon, Sep 04, 2017 at 11:09:14AM +0800, Bob Liu wrote: > On 2017/8/17 8:05, Jérôm

Re: [PATCH v1] selftests: Enhance kselftest_harness.h to print which assert failed

2017-09-05 Thread Shuah Khan
On 09/05/2017 02:38 PM, Mickaël Salaün wrote: > > > On 28/08/2017 18:42, Shuah Khan wrote: >> On 08/06/2017 05:23 PM, Mickaël Salaün wrote: >>> When a test process is not able to write to TH_LOG_STREAM, this step >>> mechanism enable to print the assert number which triggered the failure. >>> Thi

Re: [RFC PATCH 0/6] Add platform device SVM support for ARM SMMUv3

2017-09-05 Thread Hanjun Guo
On 2017/8/31 16:20, Yisheng Xie wrote: Jean-Philippe has post a patchset for Adding PCIe SVM support to ARM SMMUv3: https://www.spinics.net/lists/arm-kernel/msg565155.html But for some platform devices(aka on-chip integrated devices), there is also SVM requirement, which works based on the SMMU

Re: [RFC PATCH 4/6] iommu/arm-smmu-v3: Add SVM support for platform devices

2017-09-05 Thread Yisheng Xie
Hi Jean-Philippe, On 2017/9/6 8:51, Bob Liu wrote: > On 2017/9/5 20:53, Jean-Philippe Brucker wrote: >> On 31/08/17 09:20, Yisheng Xie wrote: >>> From: Jean-Philippe Brucker >>> >>> Platform device can realise SVM function by using the stall mode. That >>> is to say, when device access a memory v

Re: [RFC PATCH 0/6] Add platform device SVM support for ARM SMMUv3

2017-09-05 Thread Yisheng Xie
Hi Jean-Philippe, On 2017/9/5 20:56, Jean-Philippe Brucker wrote: > On 31/08/17 09:20, Yisheng Xie wrote: >> Jean-Philippe has post a patchset for Adding PCIe SVM support to ARM SMMUv3: >> https://www.spinics.net/lists/arm-kernel/msg565155.html >> >> But for some platform devices(aka on-chip integ

Re: [PATCH V6 00/18] blk-throttle: add .low limit

2017-09-05 Thread Joseph Qi
Hi Shaohua, On 17/9/6 05:02, Shaohua Li wrote: > On Thu, Aug 31, 2017 at 09:24:23AM +0200, Paolo VALENTE wrote: >> >>> Il giorno 15 gen 2017, alle ore 04:42, Shaohua Li ha scritto: >>> >>> Hi, >>> >>> cgroup still lacks a good iocontroller. CFQ works well for hard disk, but >>> not >>> much for

Re: execve(NULL, argv, envp) for nommu?

2017-09-05 Thread Rob Landley
On 09/05/2017 08:24 AM, Alan Cox wrote: >>> anymore. But I'm already _running_ this program. If I could fork() I >>> could already get a second copy of the sucker and call main() again >>> myself if necessary, but I can't, so... > > You can - ptrace 8) Oh I can call clone() with various flags and

[PATCH v2 1/3] ASoC: samsung: i2s: Use specific name for i2s dais

2017-09-05 Thread Jaechul Lee
Add specific dais name when components are registered. Component and dai name will follow their parent dev name, if the name isn't described. In case of this driver, each dais will have same name like '1144.i2s0' by fmt_single_name function. The problem having same name is that TM2 machine dr

[PATCH v2 2/3] ASoC: samsung: Use 'samsung-i2s' cpu_dai for dai_links

2017-09-05 Thread Jaechul Lee
Add specific cpu_dai_name to dai_link because samsung i2s driver registers two dais and components. Selecting one of them clearly is needed more information like cpu_dai_name, of_node. The reason why the dai_links have to use 'samsung-i2s' for cpu_dai is that 'samsung-i2s-sec' doesn't have a captur

[PATCH v2 0/3] Fix capture devices functionality on TM2

2017-09-05 Thread Jaechul Lee
Hello, This patchset makes capture functionality working on TM2.

[PATCH v2 3/3] ASoC: samsung: Fix invalid argument when devm_gpiod_get is called

2017-09-05 Thread Jaechul Lee
devm_gpiod_get is called with GPIOF_OUT_INIT_LOW but the function doesn't allow the parameters. Unluckily, GPIOF_OUT_INIT_LOW is same value as GPIOD_ASIS and gpio direction isn't set properly. Muted stream comes up when I try recording some sounds on TM2. mic-bias gpiod state can't be changed beca

Re: [RFC PATCH 0/6] Add platform device SVM support for ARM SMMUv3

2017-09-05 Thread Bob Liu
On 2017/9/5 20:56, Jean-Philippe Brucker wrote: > On 31/08/17 09:20, Yisheng Xie wrote: >> Jean-Philippe has post a patchset for Adding PCIe SVM support to ARM SMMUv3: >> https://www.spinics.net/lists/arm-kernel/msg565155.html >> >> But for some platform devices(aka on-chip integrated devices), the

Re: [PATCH 0/6] [media] Atmel: Adjustments for seven function implementations

2017-09-05 Thread Yang, Wenyou
Hi, On 2017/9/5 4:04, SF Markus Elfring wrote: From: Markus Elfring Date: Mon, 4 Sep 2017 21:44:55 +0200 A few update suggestions were taken into account from static source code analysis. Thank you for your patches. You can add my Acked-by for the patch series. Acked-by: Wenyou Yang Ma

Re: [PATCH v8 01/13] x86/apic: Construct a selector for the interrupt delivery mode

2017-09-05 Thread Baoquan He
Hi Liyang, On 08/28/17 at 11:20am, Dou Liyang wrote: > Now, there are many switches in kernel which are used to determine > the final interrupt delivery mode, as shown below: > > 1) kconfig: >CONFIG_X86_64; CONFIG_X86_LOCAL_APIC; CONFIG_x86_IO_APIC > 2) kernel option: disable_apic; skip_ioapi

Re: [RFC PATCH 4/6] iommu/arm-smmu-v3: Add SVM support for platform devices

2017-09-05 Thread Bob Liu
On 2017/9/5 20:53, Jean-Philippe Brucker wrote: > On 31/08/17 09:20, Yisheng Xie wrote: >> From: Jean-Philippe Brucker >> >> Platform device can realise SVM function by using the stall mode. That >> is to say, when device access a memory via iova which is not populated, >> it will stalled and when

Re: [PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-09-05 Thread Byungchul Park
On Tue, Sep 05, 2017 at 03:46:43PM +0200, Peter Zijlstra wrote: > On Tue, Sep 05, 2017 at 07:58:38PM +0900, Byungchul Park wrote: > > On Tue, Sep 05, 2017 at 07:31:44PM +0900, Byungchul Park wrote: > > > Recursive-read and the hint I proposed(a.k.a. might) should be used for > > > their different s

Re: [PATCH v2 1/3] arm: npcm: add basic support for Nuvoton BMCs

2017-09-05 Thread Brendan Higgins
With the exception of one comment, which I have responded to below, I have addressed your comments in my new version of this patch: https://patchwork.kernel.org/patch/9914153/ On Mon, Sep 4, 2017 at 7:47 PM, Florian Fainelli wrote: ... >> + >> +ENTRY(v7_invalidate_l1_npcmX50) >> + mov r0,

Re: [PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-09-05 Thread Boqun Feng
On Wed, Sep 06, 2017 at 08:52:35AM +0900, Byungchul Park wrote: > On Tue, Sep 05, 2017 at 03:46:43PM +0200, Peter Zijlstra wrote: > > On Tue, Sep 05, 2017 at 07:58:38PM +0900, Byungchul Park wrote: > > > On Tue, Sep 05, 2017 at 07:31:44PM +0900, Byungchul Park wrote: > > > > Recursive-read and the

[PATCH v3 1/3] arm: npcm: add basic support for Nuvoton BMCs

2017-09-05 Thread Brendan Higgins
Adds basic support for the Nuvoton NPCM750 BMC. Signed-off-by: Brendan Higgins --- arch/arm/Kconfig | 2 + arch/arm/Makefile| 1 + arch/arm/mach-npcm/Kconfig | 48 arch/arm/mach-npcm/Makefile | 3 ++ arch/arm/mach-npcm/headsmp.S | 17 +++

[PATCH v3 2/3] arm: dts: add Nuvoton NPCM750 device tree

2017-09-05 Thread Brendan Higgins
Add a common device tree for all Nuvoton NPCM750 BMCs and a board specific device tree for the NPCM750 (Poleg) evaluation board. Signed-off-by: Brendan Higgins Reviewed-by: Tomer Maimon Reviewed-by: Avi Fishman Tested-by: Tomer Maimon Tested-by: Avi Fishman --- .../arm/cpu-enable-method/nuvo

[PATCH v3 0/3] arm: npcm: add basic support for Nuvoton BMCs

2017-09-05 Thread Brendan Higgins
Addressed comments from: - Florian: https://www.spinics.net/lists/arm-kernel/msg604948.html Changes since previous update: - Substanitally simplified the SMP code for NPCM750. - No changes to device tree or MAINTAINERS since v2 Changes have been tested on the NPCM750 evaluation board.

[PATCH v3 3/3] MAINTAINERS: Add entry for the Nuvoton NPCM architecture

2017-09-05 Thread Brendan Higgins
Add maintainers and reviewers for the Nuvoton NPCM architecture. Signed-off-by: Brendan Higgins Reviewed-by: Tomer Maimon Reviewed-by: Avi Fishman --- MAINTAINERS | 13 + 1 file changed, 13 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 44cb004c765d..67064bf11904 10064

  1   2   3   4   5   6   7   8   9   >