Re: [PATCH 4.17 000/336] 4.17.12-stable review

2018-08-01 Thread Naresh Kamboju
On 1 August 2018 at 22:15, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.17.12 release. > There are 336 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Respons

Re: [PATCH 2/9] mm: workingset: tell cache transitions from workingset thrashing

2018-08-01 Thread peter enderborg
On 08/01/2018 05:13 PM, Johannes Weiner wrote: > diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h > index e34a27727b9a..7af1c3c15d8e 100644 > --- a/include/linux/page-flags.h > +++ b/include/linux/page-flags.h > @@ -69,13 +69,14 @@ > */ > enum pageflags { > PG_locked,

[rt-patch 4/3] arm,KVM: Move phys_timer handling to hard irq context

2018-08-01 Thread Mike Galbraith
(arm-land adventures 1/3 take2 will have to wait, my cup runeth over) v4.14..v4.15 timer handling changes including calling kvm_timer_vcpu_load() during kvm_preempt_ops.sched_in and taking vgic_dist.lpi_list_lock in the timer interrupt handler required locks for which locking rules/context had be

Re: [PATCH 1/4] genirq: Provide basic NMI management for interrupt lines

2018-08-01 Thread Thomas Gleixner
On Thu, 2 Aug 2018, Marc Zyngier wrote: > On Thu, 02 Aug 2018 03:03:20 +0100, > Ricardo Neri wrote: > > On Wed, Aug 01, 2018 at 04:09:59PM +0100, Julien Thierry wrote: > > > > > > > >I don't think this works in x86 because the local APIC irq_chip is the > > > >root of the hierarchy; the rest of th

Re: [PATCH v7 2/3] Bluetooth: mediatek: Add protocol support for MediaTek serial devices

2018-08-01 Thread Sean Wang
On Wed, 2018-08-01 at 09:53 +0200, Marcel Holtmann wrote: > Hi Sean, > > > This adds a driver based on serdev driver for the MediaTek serial protocol > > based on running H:4, which can enable the built-in Bluetooth device inside > > MT7622 SoC. > > [ ... ] > > +enum { > > + MTK_WMT_PATCH_DWN

Re: [PATCH 4.14 000/246] 4.14.60-stable review

2018-08-01 Thread Naresh Kamboju
On 1 August 2018 at 22:18, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.60 release. > There are 246 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Respons

Re: [PATCH RESEND RFC 1/4] drivers: pinctrl: qcom: add wakeup capability to GPIO

2018-08-01 Thread Lina Iyer
On Thu, Aug 02 2018 at 00:08 -0600, Marc Zyngier wrote: Hi Lina, On Wed, 01 Aug 2018 20:45:38 +0100, Lina Iyer wrote: Thanks for the feedback, Marc. On Wed, Aug 01 2018 at 00:31 -0600, Marc Zyngier wrote: > On Wed, 01 Aug 2018 03:00:18 +0100, > Lina Iyer wrote: >> >> +static irqreturn_t wak

[PATCH 1/3] ASoC: AMD: Make ACP->SYSMEM DMA non circular

2018-08-01 Thread Akshu Agrawal
In capture case we don't want ACP to SYSMEM dma to be circular. This is because if an in place DSP filter is applied to captured output then circular DMA can overwrite the filter value with stale data. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-pcm-dma.c | 36

[PATCH 2/3] ASoC: AMD: Modified DMA pointer for capture

2018-08-01 Thread Akshu Agrawal
From: "Mukunda, Vijendar" Give position on ACP->SYSMEM DMA channel for the number of bytes that have been transferred on the current descriptor under service. Signed-off-by: Vijendar Mukunda Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-pcm-dma.c | 34 ++

[PATCH 3/3] ASoC: AMD: Set delay value for the capture case

2018-08-01 Thread Akshu Agrawal
ACP->SYSMEM DMA happens at every I2S->SYSMEM period completion. Thus, there is delay of x frames till I2S->SYSMEM reaches a period length. This delay is communicated to user space. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-pcm-dma.c | 19 +++ 1 file changed, 15 insertion

Re: [PATCH char-misc 1/1] Drivers: hv: vmbus: Cleanup synic memory free path

2018-08-01 Thread Dan Carpenter
On Wed, Aug 01, 2018 at 03:45:13PM -0700, mhkelle...@gmail.com wrote: > From: Michael Kelley > > clk_evt memory is not being freed when the synic is shutdown > or when there is an allocation error. Add the appropriate > kfree() call, along with a comment to clarify how the memory > gets freed af

Re: [PATCH 1/4] genirq: Provide basic NMI management for interrupt lines

2018-08-01 Thread Marc Zyngier
On Thu, 02 Aug 2018 03:03:20 +0100, Ricardo Neri wrote: > > On Wed, Aug 01, 2018 at 04:09:59PM +0100, Julien Thierry wrote: > > >>+static bool irq_supports_nmi(struct irq_desc *desc) > > >>+{ > > >>+ struct irq_data *d = irq_desc_get_irq_data(desc); > > >>+ > > >>+#ifdef CONFIG_IRQ_DOMAIN_HIERARC

[PATCH] clocksource: ti-32k: Remove CLOCK_SOURCE_SUSPEND_NONSTOP flag

2018-08-01 Thread Keerthy
With the introduction of below commit: commit 39232ed5a1793f67b11430c43ed8a9ed6e96c6eb time: Introduce one suspend clocksource to compensate the suspend time The suspend/resume fails on AM437x platforms as the source is not a non-stop while trying to compensate time using this. Hence remove the

Re: [PATCH v2] timers: Clear must_forward_clk inside base lock

2018-08-01 Thread Thomas Gleixner
On Thu, 2 Aug 2018, Gaurav Kohli wrote: > Timer wheel base->must_forward_clock is indicating that > the base clock might be stale due to a long idle sleep. > The forwarding of base clock takes place in softirq of timer of the base clock takes place in the timer softirq ... > or when a timer is en

Re: [PATCH] PCI/AER: Remove duplicate PCI_EXP_AER_FLAGS definition

2018-08-01 Thread poza
On 2018-08-01 04:20, Bjorn Helgaas wrote: From: Bjorn Helgaas PCI_EXP_AER_FLAGS was defined twice (with identical definitions), once under #ifdef CONFIG_ACPI_APEI, and again at the top level. This looks like my merge error from these commits: fd3362cb73de ("PCI/AER: Squash aerdrv_core.c i

Re: Applied "ASoC: wcd9335: add support to wcd9335 codec" to the asoc tree

2018-08-01 Thread Lee Jones
On Wed, 01 Aug 2018, Srinivas Kandagatla wrote: > Hi Mark, > > On 01/08/18 12:20, Mark Brown wrote: > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > Without the "[PATCH v2 02/10] mfd: wcd9335: add support to wcd9335 core"

Re: Applied "ASoC: wcd9335: add CLASS-H Controller support" to the asoc tree

2018-08-01 Thread Lee Jones
On Wed, 01 Aug 2018, Srinivas Kandagatla wrote: > Hi Mark, > > On 01/08/18 12:20, Mark Brown wrote: > > snd-soc-wm0010-objs := wm0010.o > > diff --git a/sound/soc/codecs/wcd-clsh.c b/sound/soc/codecs/wcd-clsh.c > > new file mode 100644 > > index ..2393456cbd97 > > --- /dev/null > >

Re: [PATCH] PCI/AER: Enable SERR# forwarding in non ACPI flow

2018-08-01 Thread poza
On 2018-08-02 11:53, p...@codeaurora.org wrote: On 2018-08-01 04:17, Bjorn Helgaas wrote: On Thu, Jul 12, 2018 at 08:15:19PM +0530, Bharat Kumar Gogada wrote: Currently PCI_BRIDGE_CTL_SERR is being enabled only in ACPI flow. This bit is required for forwarding errors reported by EP devices to u

Re: [PATCH] PCI/AER: Enable SERR# forwarding in non ACPI flow

2018-08-01 Thread poza
On 2018-08-01 04:17, Bjorn Helgaas wrote: On Thu, Jul 12, 2018 at 08:15:19PM +0530, Bharat Kumar Gogada wrote: Currently PCI_BRIDGE_CTL_SERR is being enabled only in ACPI flow. This bit is required for forwarding errors reported by EP devices to upstream device. This patch enables SERR# for Type

Re: [Question] A novel case happened when using mempool allocate memory.

2018-08-01 Thread zhong jiang
On 2018/8/1 23:37, Matthew Wilcox wrote: > On Wed, Aug 01, 2018 at 11:31:15PM +0800, zhong jiang wrote: >> Hi, Everyone >> >> I ran across the following novel case similar to memory leak in linux-4.1 >> stable when allocating >> memory object by kmem_cache_alloc. it rarely can be reproduced.

Re: linux-next: build failure after merge of the staging tree

2018-08-01 Thread Greg KH
On Wed, Aug 01, 2018 at 05:09:13PM +0800, Chao Yu wrote: > Hi Stephen, > > On 2018/7/30 14:31, Gao Xiang wrote: > > Hi Stephen, > > > > On 2018/7/30 14:16, Stephen Rothwell wrote: > >> Hi Greg, > >> > >> After merging the staging tree, today's linux-next build (x86_64 > >> allmodconfig) failed li

Re: [PATCH] staging: mt29f_spinand: fix memory leak while programming pages

2018-08-01 Thread Dan Carpenter
On Thu, Aug 02, 2018 at 11:42:30AM +0800, Jheng-Jhong Wu wrote: > Dear Dan, > > I know what you wrote, but before the spinand device is removed and > freed memory automatically, programming pages may do many many times. > Assume we erase and rewrite a large part of the flash, then > spinand_progra

Re: linux-next: build failure after merge of the staging tree

2018-08-01 Thread Chao Yu
Hi Stephen, Sorry, yesterday I missed this email due to my email filter. On 2018/8/1 23:07, Stephen Rothwell wrote: > Hi Chao, > > On Wed, 1 Aug 2018 17:09:13 +0800 Chao Yu wrote: >> >> Xiang has submitted several patches as below to fix compiling error on -next >> tree, could you consider to m

Re: [PATCH RESEND RFC 1/4] drivers: pinctrl: qcom: add wakeup capability to GPIO

2018-08-01 Thread Marc Zyngier
Hi Lina, On Wed, 01 Aug 2018 20:45:38 +0100, Lina Iyer wrote: > > Thanks for the feedback, Marc. > > On Wed, Aug 01 2018 at 00:31 -0600, Marc Zyngier wrote: > > On Wed, 01 Aug 2018 03:00:18 +0100, > > Lina Iyer wrote: > >> > >> +static irqreturn_t wake_irq_gpio_handler(int irq, void *data) >

Re: [PATCH v4 4/4] x86/boot/KASLR: Limit kaslr to choosing the immovable memory

2018-08-01 Thread Dou Liyang
At 08/02/2018 02:00 PM, Chao Fan wrote: On Thu, Aug 02, 2018 at 01:46:29PM +0800, Dou Liyang wrote: Hi Fan, At 07/23/2018 05:29 PM, Chao Fan wrote: If 'CONFIG_MEMORY_HOTREMOVE' specified and the account of immovable memory regions is not zero. Calculate the intersection between memory regio

Re: [PATCH v4 4/4] x86/boot/KASLR: Limit kaslr to choosing the immovable memory

2018-08-01 Thread Chao Fan
On Thu, Aug 02, 2018 at 01:46:29PM +0800, Dou Liyang wrote: >Hi Fan, > >At 07/23/2018 05:29 PM, Chao Fan wrote: >> If 'CONFIG_MEMORY_HOTREMOVE' specified and the account of immovable >> memory regions is not zero. Calculate the intersection between memory >> regions from e820/efi memory table and i

Re: [PATCH v4 4/4] x86/boot/KASLR: Limit kaslr to choosing the immovable memory

2018-08-01 Thread Dou Liyang
Hi Fan, At 07/23/2018 05:29 PM, Chao Fan wrote: If 'CONFIG_MEMORY_HOTREMOVE' specified and the account of immovable memory regions is not zero. Calculate the intersection between memory regions from e820/efi memory table and immovable memory regions. Or go on the old code. Rename process_mem_re

[PATCH v3 4/4] Add an option to support no-FPU systems

2018-08-01 Thread Alan Kao
FP codes have been separated from common part in previous patches. This patch add the CONFIG_FPU option and some stubs to support no-FPU systems. Signed-off-by: Alan Kao Cc: Greentime Hu Cc: Vincent Chen Cc: Zong Li Cc: Nick Hu --- arch/riscv/Kconfig | 9 + arch/risc

[PATCH v3 1/4] Extract FPU context operations from entry.S

2018-08-01 Thread Alan Kao
We move __fstate_save and __fstate_restore to a new source file, fpu.S. Signed-off-by: Alan Kao Cc: Greentime Hu Cc: Vincent Chen Cc: Zong Li Cc: Nick Hu --- arch/riscv/kernel/Makefile | 1 + arch/riscv/kernel/entry.S | 87 -- arch/riscv/kernel/fpu.S| 105

[PATCH v3 3/4] Cleanup ISA string setting

2018-08-01 Thread Alan Kao
The reason that we cannot follow the review's suggestion in https://lkml.org/lkml/2018/6/21/39 is because using "+=" as the connector in Makefile introduces blanks bewteen the left-hand side alphabets. Note: (Assume that atomic and compressed is on) Before this patch, assembler was always given t

[PATCH v3 0/4] riscv: Add support to no-FPU systems

2018-08-01 Thread Alan Kao
This patchset adds an option, CONFIG_FPU, to enable/disable floating- point procedures. Changes in v3: - Refactor the whole patch into independent ones. Changes in v2: - Various code cleanups and style fixes. Alan Kao (4): Extract FPU context operations from entry.S Refactor FPU codes in s

[PATCH v3 2/4] Refactor FPU codes in signal setup/return procedures

2018-08-01 Thread Alan Kao
Signed-off-by: Alan Kao Cc: Greentime Hu Cc: Vincent Chen Cc: Zong Li Cc: Nick Hu --- arch/riscv/kernel/signal.c | 68 +++--- 1 file changed, 41 insertions(+), 27 deletions(-) diff --git a/arch/riscv/kernel/signal.c b/arch/riscv/kernel/signal.c index 718d0c984

Re: [PATCH -next] ALSA: usb-audio: Fix invalid use of sizeof in parse_uac_endpoint_attributes()

2018-08-01 Thread Takashi Iwai
On Thu, 02 Aug 2018 06:31:02 +0200, Wei Yongjun wrote: > > sizeof() when applied to a pointer typed expression gives the > size of the pointer, not that of the pointed data. > > Fixes: 7edf3b5e6a45 ("ALSA: usb-audio: AudioStreaming Power Domain parsing") > Signed-off-by: Wei Yongjun Applied, th

[PATCH v2] timers: Clear must_forward_clk inside base lock

2018-08-01 Thread Gaurav Kohli
Timer wheel base->must_forward_clock is indicating that the base clock might be stale due to a long idle sleep. The forwarding of base clock takes place in softirq of timer or when a timer is enqueued to base which is idle. While migrate timer from remote CPU to the new base which is idle, then fol

Re: Zram writeback feature unstable with heavy swap utilization - BUG: Bad page state in process...

2018-08-01 Thread Minchan Kim
On Mon, Jul 30, 2018 at 08:09:33AM +0200, Tino Lehnig wrote: > On 07/28/2018 12:58 AM, Minchan Kim wrote: > > I made a mistake on previous patch. > > Could you test this patches? > > Thanks! Looking good so far! No errors whatsoever with the new patch. I will > let my test workload running for whi

[PATCH 1/2] zram: remove BD_CAP_SYNCHRONOUS_IO with writeback feature

2018-08-01 Thread Minchan Kim
If zram supports writeback feature, it's no more syncrhonous device beause zram does synchronous IO opeation for incompressible page. Do not pretend to be syncrhonous IO device. It makes system very sluggish as waiting IO completion from upper layer. Furthermore, it makes user-after-free problem

Re: [V9fs-developer] [PATCH v2 2/2] net/9p: add a per-client fcall kmem_cache

2018-08-01 Thread Dominique Martinet
Dominique Martinet wrote on Thu, Aug 02, 2018: > [...] > + clnt->fcall_cache = kmem_cache_create("9p-fcall-cache", clnt->msize, > + 0, 0, NULL); Well, my gut feeling that I'd need a v3 was right, after a bit more time testing (slightly different setup

[PATCH] spi: uniphier: remove unnecessary include headers

2018-08-01 Thread Keiji Hayashibara
This commit removed include headers of linux/of.h and linux/of_platform.h, because they are not used. Signed-off-by: Keiji Hayashibara --- drivers/spi/spi-uniphier.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-uniphier.c b/drivers/spi/spi-uniphier.c index 0899854..5a6137

[PATCH -next] ALSA: usb-audio: Fix invalid use of sizeof in parse_uac_endpoint_attributes()

2018-08-01 Thread Wei Yongjun
sizeof() when applied to a pointer typed expression gives the size of the pointer, not that of the pointed data. Fixes: 7edf3b5e6a45 ("ALSA: usb-audio: AudioStreaming Power Domain parsing") Signed-off-by: Wei Yongjun --- sound/usb/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

Re: [PATCH] Improve code readability

2018-08-01 Thread Theodore Y. Ts'o
On Tue, Jul 31, 2018 at 02:15:15PM +0800, Liu Song wrote: > Merge the duplicated complex conditions to improve code readability. > > Signed-off-by: Liu Song > Reviewed-by: Jiang Biao Thanks, applied. - Ted

Re: [PATCH v2] ext4: mballoc: Fix spectre gadget in ext4_mb_regular_allocator

2018-08-01 Thread Theodore Y. Ts'o
On Mon, Jul 30, 2018 at 06:07:47PM +, Jeremy Cline wrote: > 'ac->ac_g_ex.fe_len' is a user-controlled value which is used in the > derivation of 'ac->ac_2order'. 'ac->ac_2order', in turn, is used to > index arrays which makes it a potential spectre gadget. Fix this by > sanitizing the value ass

linux-next: build warning after merge of the sound-asoc tree

2018-08-01 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: WARNING: unmet direct dependencies detected for SND_SOC_QDSP6 Depends on [n]: SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && QCOM_APR [=n] && HAS_DMA [=y] Selected by [m]: -

Re: [PATCH] fs/binfmt_elf: remove the same condition check

2018-08-01 Thread zhong jiang
On 2018/8/2 11:04, Al Viro wrote: > On Thu, Aug 02, 2018 at 10:00:28AM +0800, zhong jiang wrote: >> dump_align is used to double check in a expression. It is redundant. >> so just remove one of them. > > What makes you think that it is redundant? > I am sorry for that. Maybe I miss something.

Re: [PATCH v4 3/4] x86/boot/KASLR: Walk srat tables to filter immovable memory

2018-08-01 Thread Chao Fan
On Thu, Aug 02, 2018 at 11:47:13AM +0800, Dou Liyang wrote: >Hi Fan, > >At 07/23/2018 05:29 PM, Chao Fan wrote: >> If 'CONFIG_MEMORY_HOTREMOVE' specified, walk the acpi srat memory >> tables, store the immovable memory regions, so that kaslr can get >> the information abouth where can be selected o

Re: [PATCH v4 3/4] x86/boot/KASLR: Walk srat tables to filter immovable memory

2018-08-01 Thread Dou Liyang
Hi Fan, At 07/23/2018 05:29 PM, Chao Fan wrote: If 'CONFIG_MEMORY_HOTREMOVE' specified, walk the acpi srat memory tables, store the immovable memory regions, so that kaslr can get the information abouth where can be selected or not. If 'CONFIG_MEMORY_HOTREMOVE' not specified, go on the old code.

Re: [PATCH] staging: mt29f_spinand: fix memory leak while programming pages

2018-08-01 Thread Jheng-Jhong Wu
Dear Dan, I know what you wrote, but before the spinand device is removed and freed memory automatically, programming pages may do many many times. Assume we erase and rewrite a large part of the flash, then spinand_program_page() might exhaust memory if memory is not large enough. In fact, OOM in

Re: [PATCH] fs/binfmt_elf: remove the same condition check

2018-08-01 Thread zhong jiang
On 2018/8/2 10:34, Matthew Wilcox wrote: > On Thu, Aug 02, 2018 at 10:00:28AM +0800, zhong jiang wrote: >> dump_align is used to double check in a expression. It is redundant. >> so just remove one of them. > You're wrong. Functions in C can have side-effects (and this one does). > > Ok, I miss t

Re: [PATCH] sched/deadline: Fix switched_from_dl

2018-08-01 Thread Steven Rostedt
On Wed, 11 Jul 2018 09:29:48 +0200 Juri Lelli wrote: > Mark noticed that syzkaller is able to reliably trigger the following > > dl_rq->running_bw > dl_rq->this_bw > WARNING: CPU: 1 PID: 153 at kernel/sched/deadline.c:124 > switched_from_dl+0x454/0x608 > Kernel panic - not syncing: panic_

Re: Commit "new primitive: discard_new_inode()" introduces a problem

2018-08-01 Thread Rafael David Tinoco
On Wed, Aug 01, 2018 at 05:34:08PM +0100, Al Viro wrote: > On Wed, Aug 01, 2018 at 07:19:35PM +0300, Kirill Tkhai wrote: > > On 01.08.2018 19:16, Al Viro wrote: > > > On Wed, Aug 01, 2018 at 05:11:51PM +0100, Al Viro wrote: > > >> On Wed, Aug 01, 2018 at 06:43:56PM +0300, Kirill Tkhai wrote: > > >>

[PATCH 3/3] Drivers: hv: vmbus: Cleanup synic memory free path

2018-08-01 Thread kys
From: Michael Kelley clk_evt memory is not being freed when the synic is shutdown or when there is an allocation error. Add the appropriate kfree() call, along with a comment to clarify how the memory gets freed after an allocation error. Make the free path consistent by removing checks for NUL

[PATCH 2/3] Drivers: hv: vmbus: Remove use of slow_virt_to_phys()

2018-08-01 Thread kys
From: Michael Kelley slow_virt_to_phys() is only implemented for arch/x86. Remove its use in arch independent Hyper-V drivers, and replace with test for vmalloc() address followed by appropriate v-to-p function. This follows the typical pattern of other drivers and avoids the need to implement sl

[PATCH 1/3] Drivers: hv: vmbus: Reset the channel callback in vmbus_onoffer_rescind()

2018-08-01 Thread kys
From: Dexuan Cui Before setting channel->rescind in vmbus_rescind_cleanup(), we should make sure the channel callback won't run any more, otherwise a high-level driver like pci_hyperv, which may be infinitely waiting for the host VSP's response and notices the channel has been rescinded, can't sa

[PATCH 0/3] Drivers: hv: vmbus: Miscellaneous fixes

2018-08-01 Thread kys
From: "K. Y. Srinivasan" Miscellaneous fixes. Dexuan Cui (1): Drivers: hv: vmbus: Reset the channel callback in vmbus_onoffer_rescind() Michael Kelley (2): Drivers: hv: vmbus: Remove use of slow_virt_to_phys() Drivers: hv: vmbus: Cleanup synic memory free path drivers/hv/channel.c

Re: [PATCH] fs/binfmt_elf_fdpic: remove redundant condition check in writenote

2018-08-01 Thread Al Viro
On Thu, Aug 02, 2018 at 10:04:34AM +0800, zhong jiang wrote: > It is unncessary to use double test for a expression. so just > remove one of them. ... except when something in that expression might have side effects, that is.

Re: [PATCH] fs/binfmt_elf: remove the same condition check

2018-08-01 Thread Al Viro
On Thu, Aug 02, 2018 at 10:00:28AM +0800, zhong jiang wrote: > dump_align is used to double check in a expression. It is redundant. > so just remove one of them. What makes you think that it is redundant? > Signed-off-by: zhong jiang > --- > fs/binfmt_elf.c | 2 +- > 1 file changed, 1 inserti

[PATCH v2 1/2] net/9p: embed fcall in req to round down buffer allocs

2018-08-01 Thread Dominique Martinet
From: Dominique Martinet 'msize' is often a power of two, or at least page-aligned, so avoiding an overhead of two dozen bytes for each allocation will help the allocator do its work and reduce memory fragmentation. Suggested-by: Matthew Wilcox Signed-off-by: Dominique Martinet Cc: Matthew Wil

Re: [PATCH] fs/binfmt_elf_fdpic: remove redundant condition check in writenote

2018-08-01 Thread zhong jiang
plese ingore it. On 2018/8/2 10:04, zhong jiang wrote: > It is unncessary to use double test for a expression. so just > remove one of them. > > Signed-off-by: zhong jiang > --- > fs/binfmt_elf_fdpic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/binfmt_elf_fdpic.

Re: [PATCH V2] sched/deadline: Update rq_clock of later_rq when pushing a task

2018-08-01 Thread Steven Rostedt
On Mon, 16 Jul 2018 13:45:21 +0300 Kirill Tkhai wrote: > > --- a/kernel/sched/deadline.c > > +++ b/kernel/sched/deadline.c > > @@ -2090,8 +2090,16 @@ static int push_dl_task(struct rq *rq) > > sub_rq_bw(&next_task->dl, &rq->dl); > > set_task_cpu(next_task, later_rq->cpu); > > add_rq_b

[PATCH v2 2/2] net/9p: add a per-client fcall kmem_cache

2018-08-01 Thread Dominique Martinet
From: Dominique Martinet Having a specific cache for the fcall allocations helps speed up allocations a bit, especially in case of non-"round" msizes. The caches will automatically be merged if there are multiple caches of items with the same size so we do not need to try to share a cache betwee

Re: Commit "new primitive: discard_new_inode()" introduces a problem

2018-08-01 Thread Rafael David Tinoco
On Wed, Aug 01, 2018 at 05:27:39PM +0100, Al Viro wrote: > On Wed, Aug 01, 2018 at 05:16:48PM +0100, Al Viro wrote: > > On Wed, Aug 01, 2018 at 05:11:51PM +0100, Al Viro wrote: > > > On Wed, Aug 01, 2018 at 06:43:56PM +0300, Kirill Tkhai wrote: > > > > #git status > > > > HEAD detached at 22dc9a168

Re: [PATCH] fs/binfmt_elf: remove the same condition check

2018-08-01 Thread Matthew Wilcox
On Thu, Aug 02, 2018 at 10:00:28AM +0800, zhong jiang wrote: > dump_align is used to double check in a expression. It is redundant. > so just remove one of them. You're wrong. Functions in C can have side-effects (and this one does).

Re: Remounting filesystem read-only

2018-08-01 Thread Sodagudi Prasad
On 2018-07-28 00:47, Darrick J. Wong wrote: On Fri, Jul 27, 2018 at 08:18:23PM -0400, Theodore Y. Ts'o wrote: On Fri, Jul 27, 2018 at 01:34:31PM -0700, Sodagudi Prasad wrote: > > The error should be pretty clear: "Inode table for bg 0 marked as > > needing zeroing". That should never happen. >

[PATCH] fs/binfmt_elf_fdpic: remove redundant condition check in writenote

2018-08-01 Thread zhong jiang
It is unncessary to use double test for a expression. so just remove one of them. Signed-off-by: zhong jiang --- fs/binfmt_elf_fdpic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c index b53bb37..5162372 100644 --- a/fs/binfmt_e

Spende von $ 4,800,000.00!

2018-08-01 Thread Gloria Adelaida Elias Mejia
Hallo, Sie haben eine Spende von $ 4,800,000.00, ich habe die America Lotterie im Wert von $ 40 Millionen gewonnen und ich gebe einen Teil davon an fünf glückliche Menschen und Wohltätigkeitseinrichtungen zum Gedenken an meine verstorbene Frau, die an Krebs starb. Spendenreferenznummer: BBIB /

[PATCH] fs/binfmt_elf: remove the same condition check

2018-08-01 Thread zhong jiang
dump_align is used to double check in a expression. It is redundant. so just remove one of them. Signed-off-by: zhong jiang --- fs/binfmt_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index efae2fb..b6c5b02 100644 --- a/fs/binfmt_elf.

Re: [PATCH RESEND RFC 1/4] drivers: pinctrl: qcom: add wakeup capability to GPIO

2018-08-01 Thread Lina Iyer
On Wed, Aug 01 2018 at 16:38 -0600, Bjorn Andersson wrote: On Wed 01 Aug 12:45 PDT 2018, Lina Iyer wrote: Thanks for the feedback, Marc. On Wed, Aug 01 2018 at 00:31 -0600, Marc Zyngier wrote: > On Wed, 01 Aug 2018 03:00:18 +0100, > Lina Iyer wrote: [..] > Why isn't that the case? And if th

Re: [PATCH 1/4] genirq: Provide basic NMI management for interrupt lines

2018-08-01 Thread Ricardo Neri
On Wed, Aug 01, 2018 at 04:09:59PM +0100, Julien Thierry wrote: > >>+static bool irq_supports_nmi(struct irq_desc *desc) > >>+{ > >>+ struct irq_data *d = irq_desc_get_irq_data(desc); > >>+ > >>+#ifdef CONFIG_IRQ_DOMAIN_HIERARCHY > >>+ /* Only IRQs directly managed by the root irqchip can be se

Re: [PATCH] staging: mt29f_spinand: fix memory leak while programming pages

2018-08-01 Thread Jheng-Jhong Wu
Dear Dan Carpenter, I know what you wrote, but before device is removed and freed memory automatically, programming pages may do many many times. Assume we erase and rewrite a large part of the flash, then spinand_program_page() might exhaust memory if

Re: [PATCH v2] net/9p/trans_virtio.c: add null terminal for mount tag

2018-08-01 Thread piaojun
Hi Dominique, On 2018/8/2 9:54, Dominique Martinet wrote: > piaojun wrote on Thu, Aug 02, 2018: >> chan->tag is Non-null terminated which will result in printing messy code >> when debugging code. So we should add '\0' for tag to make the code more >> convenient and robust. In addition, I drop cha

Re: [PATCH v5 05/12] PM / devfreq: Add support for policy notifiers

2018-08-01 Thread Chanwoo Choi
Hi Matthias, On 2018년 08월 02일 02:08, Matthias Kaehlcke wrote: > Hi Chanwoo, > > On Wed, Aug 01, 2018 at 10:22:16AM +0900, Chanwoo Choi wrote: >> On 2018년 08월 01일 04:39, Matthias Kaehlcke wrote: >>> On Mon, Jul 16, 2018 at 10:50:50AM -0700, Matthias Kaehlcke wrote: On Thu, Jul 12, 2018 at 05:

Re: [PATCH v2] net/9p/trans_virtio.c: add null terminal for mount tag

2018-08-01 Thread Dominique Martinet
piaojun wrote on Thu, Aug 02, 2018: > chan->tag is Non-null terminated which will result in printing messy code > when debugging code. So we should add '\0' for tag to make the code more > convenient and robust. In addition, I drop char->tag_len to simplify the > code. Some new lines in commit mes

[PATCH v2] net/9p/trans_virtio.c: add null terminal for mount tag

2018-08-01 Thread piaojun
chan->tag is Non-null terminated which will result in printing messy code when debugging code. So we should add '\0' for tag to make the code more convenient and robust. In addition, I drop char->tag_len to simplify the code. Signed-off-by: Jun Piao --- net/9p/trans_virtio.c | 15 +--

[PATCH v4] perf/x86/intel: Add support for MISPREDICT bit on Knights Landing cpus

2018-08-01 Thread Jacek Tomaka
From: Jacek Tomaka Problem: perf did not show branch predicted/mispredicted bit in brstack. Output of perf -F brstack for profile collected Before: 0x4fdbcd/0x4fdc03/-/-/-/0 0x45f4c1/0x4fdba0/-/-/-/0 0x45f544/0x45f4bb/-/-/-/0 0x45f555/0x45f53c/-/-/-/0 0x7f66901cc24b/0x45f555/-/-/-/0 0x7f66901cc

cpu stopper threads and setaffinity leads to deadlock

2018-08-01 Thread Sodagudi Prasad
Hi Peter and Tglx, We are observing another deadlock issue due to commit 0b26351b91(stop_machine, sched: Fix migrate_swap() vs. active_balance() deadlock), even after taking the following fix https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1740526.html on the Linux-4.14.56 kernel

Re: [PATCH] RISC-V: Add the directive for alignment of stvec's value

2018-08-01 Thread Zong Li
Palmer Dabbelt 於 2018年8月2日 週四 上午8:38寫道: > > On Wed, 20 Jun 2018 18:40:07 PDT (-0700), z...@andestech.com wrote: > > The stvec's value must be 4 byte alignment by specification definition. > > This directive avoids to stvec be set the non-alignment value by the > > following code in head.S > > > >

Re: [PATCH] net/9p/trans_virtio.c: add a terminal char for mount tag

2018-08-01 Thread piaojun
Hi Dominique and Greg, Thanks for your reviewing, and I will try to simplify other related code according your suggestions in patch v2. Thanks, Jun On 2018/8/1 20:09, Dominique Martinet wrote: > Greg Kurz wrote on Wed, Aug 01, 2018: >> So this patch basically turns chan->tag into a nul terminate

Re: [PATCH v4 0/4] x86/boot/KASLR: Parse ACPI table and limit kaslr in immovable memory.

2018-08-01 Thread Chao Fan
Hi, Sorry for disturbance, no reply for a week, any comments? Thanks, Chao Fan On Mon, Jul 23, 2018 at 05:29:04PM +0800, Chao Fan wrote: >***Background: >People reported that kaslr may randomly chooses some positions >which are located in movable memory regions. This will break memory >hotplug f

Re: linux-next: Tree for Aug 1

2018-08-01 Thread Guenter Roeck
t;) as the first bad (assuming that this latter fails to boot with "scsi_mod.use_blk_mq=1"). Puzzled. Same results. 453f1d821165 works with both scsi_mod.use_blk_mq=0 and scsi_mod.use_blk_mq=1. next-20180801 works with scsi_mod.use_blk_mq=0 and fails with scsi_mod.use_blk_mq=1. Bisec

Re: linux-next: manual merge of the kvms390 tree with the kvm-arm tree

2018-08-01 Thread Stephen Rothwell
Hi all, On Tue, 31 Jul 2018 14:23:39 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the kvms390 tree got a conflict in: > > include/uapi/linux/kvm.h > > between commit: > > be26b3a73413 ("arm64: KVM: export the capability to set guest SError > syndrome") > > from the kvm-

Re: [PATCH] ftrace: Use true and false for boolean values

2018-08-01 Thread Steven Rostedt
On Wed, 1 Aug 2018 20:00:56 -0500 "Gustavo A. R. Silva" wrote: > Return statements in functions returning bool should use true or false > instead of an integer value. > > This code was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva Thanks, applied. -- Steve

linux-next: manual merge of the jc_docs tree with the ext4 tree

2018-08-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the jc_docs tree got a conflict in: Documentation/index.rst between commit: 6684874af063 ("docs: create filesystem internal section") from the ext4 tree and commit: 85c32d9c6f3e ("doc: move away translations from top-level index") from the jc_docs tr

Re: [PATCH 7/9] irqchip: add a RISC-V PLIC driver

2018-08-01 Thread Atish Patra
On 8/1/18 5:12 AM, Christoph Hellwig wrote: On Tue, Jul 31, 2018 at 05:38:01PM -0700, Atish Patra wrote: crash details are at https://paste.debian.net/1036078/ Is this running without kallsyms? It seems to lack useful symbols and a backtrace unfortunately. Yes. I checked the config. All KAL

[PATCH] sched/headers: Use true and false for boolean values

2018-08-01 Thread Gustavo A. R. Silva
Return statements in functions returning bool should use true or false instead of an integer value. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- kernel/sched/autogroup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sche

Re: [PATCH 11/25] selftests/ftrace: Improve kprobe on module testcase to load/unload module

2018-08-01 Thread Masami Hiramatsu
On Fri, 27 Jul 2018 21:15:08 +0900 Masami Hiramatsu wrote: > --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_module.tc > +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_module.tc > @@ -4,11 +4,18 @@ > > [ -f kprobe_events ] || exit_unsupported # this is configurable > > +

Re: [PATCH 7/9] irqchip: add a RISC-V PLIC driver

2018-08-01 Thread Atish Patra
On 8/1/18 7:14 AM, Christoph Hellwig wrote: I've pushed out an update to the riscv-irq-simple.2 branch to better handle with sparse contexid maps, please retry with that. I see you have changed the driver file name from irq-riscv-plic to irq-riscv-sifive along with default Y for SIFIVE_PLIC.

[PATCH] ftrace: Use true and false for boolean values

2018-08-01 Thread Gustavo A. R. Silva
Return statements in functions returning bool should use true or false instead of an integer value. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- kernel/trace/ftrace.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ker

[PATCH v3 2/2] PM / devfreq: Add devfreq driver for interconnect bandwidth voting

2018-08-01 Thread Saravana Kannan
This driver registers itself as a devfreq device that allows devfreq governors to make bandwidth votes for an interconnect path. This allows applying various policies for different interconnect paths using devfreq governors. Example uses: * Use the devfreq performance governor to set the CPU to DD

[PATCH v3 1/2] PM / devfreq: Generic CPU frequency to device frequency mapping governor

2018-08-01 Thread Saravana Kannan
Many CPU architectures have caches that can scale independent of the CPUs. Frequency scaling of the caches is necessary to make sure the cache is not a performance bottleneck that leads to poor performance and power. The same idea applies for RAM/DDR. To achieve this, this patch adds a generic dev

[PATCH] pnfs: Use true and false for boolean values

2018-08-01 Thread Gustavo A. R. Silva
Return statements in functions returning bool should use true or false instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- fs/nfs/pnfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/pnfs.c b/fs/nf

Re: [PATCH v2 1/3] mm: introduce mem_cgroup_put() helper

2018-08-01 Thread Roman Gushchin
On Thu, Aug 02, 2018 at 10:36:48AM +1000, Stephen Rothwell wrote: > Hi Roman, > > On Wed, 1 Aug 2018 17:31:59 -0700 Roman Gushchin wrote: > > > > Introduce the mem_cgroup_put() helper, which helps to eliminate guarding > > memcg css release with "#ifdef CONFIG_MEMCG" in multiple places. > > > >

Re: [PATCH] parisc: prefer _THIS_IP_ and _RET_IP_ statement expressions

2018-08-01 Thread John David Anglin
On 2018-08-01 6:18 PM, Nick Desaulniers wrote: What about the uses in the fs support, etc? Sorry, I don't see it? I mean _THIS_IP_. Dave -- John David Anglin dave.ang...@bell.net

[PATCH] fs: buffer: use true and false for boolean values

2018-08-01 Thread Gustavo A. R. Silva
Return statements in functions returning bool should use true or false instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- fs/buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/buffer.c b/fs/bu

Re: [PATCH v2 1/3] mm: introduce mem_cgroup_put() helper

2018-08-01 Thread Shakeel Butt
On Wed, Aug 1, 2018 at 5:37 PM Stephen Rothwell wrote: > > Hi Roman, > > On Wed, 1 Aug 2018 17:31:59 -0700 Roman Gushchin wrote: > > > > Introduce the mem_cgroup_put() helper, which helps to eliminate guarding > > memcg css release with "#ifdef CONFIG_MEMCG" in multiple places. > > > > Link: http

[PATCH] nfsd: use true and false for boolean values

2018-08-01 Thread Gustavo A. R. Silva
Return statements in functions returning bool should use true or false instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- fs/nfsd/nfsfh.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/nfsd/nfsfh

[PATCH] fs: dcache: Use true and false for boolean values

2018-08-01 Thread Gustavo A. R. Silva
Return statements in functions returning bool should use true or false instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- fs/dcache.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/dcache.

Re: [PATCH] RISC-V: Add the directive for alignment of stvec's value

2018-08-01 Thread Palmer Dabbelt
On Wed, 20 Jun 2018 18:40:07 PDT (-0700), z...@andestech.com wrote: The stvec's value must be 4 byte alignment by specification definition. This directive avoids to stvec be set the non-alignment value by the following code in head.S /* Point stvec to virtual address of intruction after satp wr

Re: [PATCH v2 1/3] mm: introduce mem_cgroup_put() helper

2018-08-01 Thread Stephen Rothwell
Hi Roman, On Wed, 1 Aug 2018 17:31:59 -0700 Roman Gushchin wrote: > > Introduce the mem_cgroup_put() helper, which helps to eliminate guarding > memcg css release with "#ifdef CONFIG_MEMCG" in multiple places. > > Link: http://lkml.kernel.org/r/20180623000600.5818-2-g...@fb.com > Signed-off-by:

[PATCH v2 0/3] introduce memory.oom.group

2018-08-01 Thread Roman Gushchin
This is a tiny implementation of cgroup-aware OOM killer, which adds an ability to kill a cgroup as a single unit and so guarantee the integrity of the workload. Although it has only a limited functionality in comparison to what now resides in the mm tree (it doesn't change the victim task selecti

[PATCH v2 1/3] mm: introduce mem_cgroup_put() helper

2018-08-01 Thread Roman Gushchin
Introduce the mem_cgroup_put() helper, which helps to eliminate guarding memcg css release with "#ifdef CONFIG_MEMCG" in multiple places. Link: http://lkml.kernel.org/r/20180623000600.5818-2-g...@fb.com Signed-off-by: Roman Gushchin Reviewed-by: Shakeel Butt Reviewed-by: Andrew Morton Acked-by:

[PATCH v2 2/3] mm, oom: refactor oom_kill_process()

2018-08-01 Thread Roman Gushchin
oom_kill_process() consists of two logical parts: the first one is responsible for considering task's children as a potential victim and printing the debug information. The second half is responsible for sending SIGKILL to all tasks sharing the mm struct with the given victim. This commit splits

  1   2   3   4   5   6   7   8   9   10   >