Re: [PATCH 3/3] hid: logitech-dj: delete unnecessary error messages

2018-02-07 Thread Marcus Folkesson
Hello Christoph, On Wed, Feb 07, 2018 at 06:08:00PM +0100, Christoph Böhmwalder wrote: > Remove some "out of memory" messages that are considered useless. > > Signed-off-by: Christoph Böhmwalder > --- > drivers/hid/hid-logitech-dj.c | 11 +++ > 1 file changed, 3 insertions(+), 8 deletio

Re: [PATCH] ACPI/IORT: Remove linker section for IORT entries again

2018-02-07 Thread Daniel Lezcano
On 07/02/2018 05:11, Jia He wrote: > In commit 316ca8804ea8 ("ACPI/IORT: Remove linker section for IORT entries > probing"), iort entries was removed in vmlinux.lds.h. But in > commit 2fcc112af37f ("clocksource/drivers: Rename clksrc table to timer"), > this line was back incorrectly. > > It does

Re: [PATCH] selftests/x86: Remove 5lvl test from Makefile

2018-02-07 Thread Kirill A. Shutemov
On Wed, Feb 07, 2018 at 11:50:28PM -0600, Daniel Díaz wrote: > The 5lvl.c test file was incorporated into another one in > selftests/vm (va_128TBswitch.c) in commit 235266b8. > > Signed-off-by: Daniel Díaz Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov

Re: [PATCH v2] ARM: dts: imx6ull: add Toradex Colibri iMX6ULL support

2018-02-07 Thread Shawn Guo
On Tue, Feb 06, 2018 at 05:49:03PM +0100, Stefan Agner wrote: > Add support for the Computer on Module Colibri iMX6ULL and its > Bluetooth/Wifi variant along with the development/evaluation carrier > board device trees. Follow the usual hierarchic include model, > maintaining shared configuration i

Re: [PATCH v2] drm/bridge/synopsys: dsi: Add 1.31 version support

2018-02-07 Thread Andrzej Hajda
On 06.02.2018 09:42, Philippe Cornu wrote: > Add support for the Synopsys DesignWare MIPI DSI version 1.31 > Two registers need to be updated/added for supporting 1.31: > * PHY_TMR_CFG 0x9c (updated) > 1.30 [31:24] phy_hs2lp_time >[23:16] phy_lp2hs_time >[14: 0] max_rd_time > >

Re: [PATCH] drm/bridge/synopsys: dsi: Add read feature

2018-02-07 Thread Andrzej Hajda
On 04.02.2018 22:31, Philippe Cornu wrote: > This patch adds the DCS/GENERIC DSI read feature. > > Signed-off-by: Philippe Cornu > --- Queued to drm-misc-next. -- Regards Andrzej

Re: [PATCH] KVM: X86: Fix SMRAM accessing even if VM is shutdown

2018-02-07 Thread Wanpeng Li
2018-02-07 22:16 GMT+08:00 Paolo Bonzini : > On 07/02/2018 07:25, Wanpeng Li wrote: >> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c >> index 786cd00..445e702 100644 >> --- a/arch/x86/kvm/x86.c >> +++ b/arch/x86/kvm/x86.c >> @@ -7458,6 +7458,11 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu

Re: [PATCH 05/19] clk: meson: add regmap clocks

2018-02-07 Thread Yixun Lan
HI Jerome: On 02/01/18 02:09, Jerome Brunet wrote: > Meson clock controllers needs to move the classical iomem registers to > regmap. This is triggered because the HHI controllers found on the GXBB > and GXL host more than just clocks. To properly handle this, we would > like to migrate HHI to sys

[PATCH v2] KVM: X86: Fix SMRAM accessing even if VM is shutdown

2018-02-07 Thread Wanpeng Li
From: Wanpeng Li Reported by syzkaller: WARNING: CPU: 6 PID: 2434 at arch/x86/kvm/vmx.c:6660 handle_ept_misconfig+0x54/0x1e0 [kvm_intel] CPU: 6 PID: 2434 Comm: repro_test Not tainted 4.15.0+ #4 RIP: 0010:handle_ept_misconfig+0x54/0x1e0 [kvm_intel] Call Trace: vmx_handle_exit+0xb

[PATCH 2/2] regmap-i2c: Off by one in regmap_i2c_smbus_i2c_read/write()

2018-02-07 Thread Dan Carpenter
The commit message says that we are allowed to read and write up to 32 bytes but the code only allows us to write 31 bytes. In other words, the ">=" should be changed to ">". But this is already checked in regmap_raw_read()/write() so we can just remove the if statemetents. Fixes: 29332534e2b6 (

[PATCH 1/2] regmap: Fix reversed bounds check in regmap_raw_write()

2018-02-07 Thread Dan Carpenter
We're supposed to be checking that "val_len" is not too large but instead we check if it is smaller than the max. The only function affected would be regmap_i2c_smbus_i2c_write() in drivers/base/regmap/regmap-i2c.c. Strangely that function has its own limit check which returns an error if (count

Re: [RFC v2 PATCH 6/7] x86/entry: get rid of ALLOC_PT_GPREGS_ON_STACK and SAVE_AND_CLEAR_REGS

2018-02-07 Thread Dominik Brodowski
On Wed, Feb 07, 2018 at 01:58:20PM -0800, Linus Torvalds wrote: > I was just hoping that we could play some tricks. > > [...] > > See what I'm saying? Clever. Though I'd include the "pushq %rsi" in the macro, to be even more tricky. textdata bss dec hex filename 19500

Re: [PATCH BUGFIX V3] block, bfq: add requeue-request hook

2018-02-07 Thread Paolo Valente
> Il giorno 07 feb 2018, alle ore 23:18, Jens Axboe ha > scritto: > > On 2/7/18 2:19 PM, Paolo Valente wrote: >> Commit 'a6a252e64914 ("blk-mq-sched: decide how to handle flush rq via >> RQF_FLUSH_SEQ")' makes all non-flush re-prepared requests for a device >> be re-inserted into the active I/

Re: [VDSO]: vdso_test failing on arm 32 bit

2018-02-07 Thread Pintu Kumar
Dear Nathan & Russel, I have few more question about vdso for arm-32-bit. I am using iMX7 board to very VDSO gettimeofday timing. To make kernel/Documentation/vDSO/vdsotest work on this board, I commented the device tree reading property: arm,cpu-registers-not-fw-configured , from the : arch/arm

Re: [PATCH v2 BUGFIX] ARM: dts: imx6ull: fix the imx6ull-14x14-evk configuration

2018-02-07 Thread Shawn Guo
On Fri, Jan 26, 2018 at 09:52:18AM +0100, Lothar Waßmann wrote: > imx6ull-14x14-evk.dts currently includes the imx6ul.dtsi file for an > i.MX6ULL SoC which is plain wrong. > > Rename the current imx6ul-14x14-evk.dts to .dtsi and include it from > imx6ul-14x14-evk.dts and imx6ull-14x14-evk.dts, so

Re: [PATCH 2/2] kconfig: echo stdin to stdout if either is redirected

2018-02-07 Thread Ulf Magnusson
On Thu, Feb 8, 2018 at 7:51 AM, Ulf Magnusson wrote: > On Thu, Feb 8, 2018 at 7:35 AM, Ulf Magnusson wrote: >> On Thu, Feb 8, 2018 at 6:56 AM, Masahiro Yamada >> wrote: >>> If stdio is not tty, conf_askvalue() puts additional new line to >>> prevent prompts are all concatenated into a single lin

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

2018-02-07 Thread Ingo Molnar
* Will Deacon wrote: > For the sake of avoiding the conflict, can we just drop it for now, please? Yeah, so I resolved the conflict by merging the (already upstream) bits and Linus pulled that resolution. From now on the level of comments you want there is up to you! :-) Thanks, I

Re: [PATCH 2/2] kconfig: echo stdin to stdout if either is redirected

2018-02-07 Thread Masahiro Yamada
2018-02-08 15:51 GMT+09:00 Ulf Magnusson : > On Thu, Feb 8, 2018 at 7:35 AM, Ulf Magnusson wrote: >> On Thu, Feb 8, 2018 at 6:56 AM, Masahiro Yamada >> wrote: >>> If stdio is not tty, conf_askvalue() puts additional new line to >>> prevent prompts are all concatenated into a single line. This ca

Re: [PATCH 2/2] kconfig: echo stdin to stdout if either is redirected

2018-02-07 Thread Ulf Magnusson
On Thu, Feb 8, 2018 at 7:35 AM, Ulf Magnusson wrote: > On Thu, Feb 8, 2018 at 6:56 AM, Masahiro Yamada > wrote: >> If stdio is not tty, conf_askvalue() puts additional new line to >> prevent prompts are all concatenated into a single line. This care >> is missing in conf_choice(), so a 'choice'

[PATCH v2 1/2] net, can, ifi: fix "write buffer full" error

2018-02-07 Thread Heiko Schocher
the driver reads in the ISR first the IRQpending register, and clears after that in a write *all* bits in it. It could happen that the isr register raise bits between this 2 register accesses, which leads in lost bits ... In case it clears "TX message sent successfully", the driver never sends an

[PATCH net-queue 2/3] e1000e: Fix queue interrupt re-raising in Other interrupt.

2018-02-07 Thread Benjamin Poirier
restores the ICS write for rx/tx queue interrupts which was present before commit 16ecba59bc33 ("e1000e: Do not read ICR in Other interrupt", v4.5-rc1) but was not restored in commit 4aea7a5c5e94 ("e1000e: Avoid receiver overrun interrupt bursts", v4.15-rc1). This re-raises the queue interrupts in

[PATCH v2 2/2] net, can, ifi: loopback Tx message in IFI block

2018-02-07 Thread Heiko Schocher
Current ifi driver reads first Rx messages, than loopback the Tx message, if the IFI_CANFD_INTERRUPT_TXFIFO_REMOVE bit is set. This can lead into the case, that Rx messages overhelm Tx messages! Fixed this in the following way: Set in the IFI_CANFD_TXFIFO_DLC register the FN value to 1, so the IF

Re: [PATCH v2 1/2] soc: imx: gpcv2: Do not pass static memory as platform data

2018-02-07 Thread Shawn Guo
On Mon, Jan 22, 2018 at 07:07:47AM -0800, Andrey Smirnov wrote: > Platform device core assumes the ownership of dev.platform_data as > well as that it is dynamically allocated and it will try to kfree it > as a part of platform_device_release(). Change the code to pass > kzalloc'ed chunk of memory

[PATCH net-queue 1/3] Partial revert "e1000e: Avoid receiver overrun interrupt bursts"

2018-02-07 Thread Benjamin Poirier
This partially reverts commit 4aea7a5c5e940c1723add439f4088844cd26196d. We keep the fix for the first part of the problem (1) described in the log of that commit, that is to read ICR in the other interrupt handler. We remove the fix for the second part of the problem (2), Other interrupt throttlin

[PATCH net-queue 3/3] e1000e: Avoid missed interrupts following ICR read.

2018-02-07 Thread Benjamin Poirier
The 82574 specification update errata 12 states that interrupts may be missed if ICR is read while INT_ASSERTED is not set. Avoid that problem by setting all bits related to events that can trigger the Other interrupt in IMS. The Other interrupt is raised for such events regardless of whether or n

Re: [PATCHv2] ARM: dts: imx6q-bx50v3: Enable secure-reg-access

2018-02-07 Thread Shawn Guo
On Mon, Feb 05, 2018 at 06:08:40PM +0100, Sebastian Reichel wrote: > From: Peter Senna Tschudin > > Enable secure debug enable register access for Bx50v3 devices to enable > PMU and hardware counters for perf. > > Signed-off-by: Peter Senna Tschudin > Signed-off-by: Sebastian Reichel > --- > C

[PATCH] mpls, nospec: Sanitize array index in mpls_label_ok()

2018-02-07 Thread Dan Williams
mpls_label_ok() validates that the 'platform_label' array index from a userspace netlink message payload is valid. Under speculation the mpls_label_ok() result may not resolve in the CPU pipeline until after the index is used to access an array element. Sanitize the index to zero to prevent userspa

Re: [PATCH 3/3] Revert "e1000e: Do not read ICR in Other interrupt"

2018-02-07 Thread Benjamin Poirier
On 2018/01/29 09:22, Alexander Duyck wrote: [...] > > > Consequently, we must clear OTHER manually from ICR, otherwise the > > interrupt is immediately re-raised after exiting the handler. > > > > These observations are the same whether the interrupt is triggered via a > > write to ICS or in hardw

[PATCH] x86/linker script: drop superfluous ALIGN

2018-02-07 Thread Cao jin
ALIGN(8) is superfluous since macro TEXT_TEXT already has one. bonus: indentation fix, spaces -> tab. Signed-off-by: Cao jin --- arch/x86/kernel/vmlinux.lds.S | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S

Re: dell-smbios makes wireless card unusable on Dell XPS 13 9360

2018-02-07 Thread Paul Menzel
Dear Mario, Am 08.02.2018 um 05:57 schrieb mario.limoncie...@dell.com: -Original Message- From: Paul Menzel [mailto:pmenzel+platform-driver-...@molgen.mpg.de] Sent: Wednesday, February 7, 2018 3:41 AM To: Limonciello, Mario Cc: Pali Rohár ; it+platform-driver-...@molgen.mpg.de; platfor

Re: [PATCH 2/2] kconfig: echo stdin to stdout if either is redirected

2018-02-07 Thread Ulf Magnusson
On Thu, Feb 8, 2018 at 6:56 AM, Masahiro Yamada wrote: > If stdio is not tty, conf_askvalue() puts additional new line to > prevent prompts are all concatenated into a single line. This care > is missing in conf_choice(), so a 'choice' prompt and the next prompt > are shown in the same line. > >

Regression after commit 19809c2da28a ("mm, vmalloc: use __GFP_HIGHMEM implicitly")

2018-02-07 Thread Kai Heng Feng
A user with i386 instead of AMD64 machine reports [1] that commit 19809c2da28a ("mm, vmalloc: use __GFP_HIGHMEM implicitly”) causes a regression. BUG_ON(PageHighMem(pg)) in drivers/media/common/saa7146/saa7146_core.c always gets triggered after that commit. Commit 704b862f9efd ("mm/vmalloc.c: do

Re: [PATCH] KVM: nVMX: Fix CR4 after VMLAUNCH/VMRESUME failure

2018-02-07 Thread Wanpeng Li
2018-02-08 0:57 GMT+08:00 Jim Mattson : > vmcs12->host_cr[34] does not contain the up-to-date values when L1 is > running. L1 can vmwrite any values there. We know at this point that It will incur a vmexit to emulate L1 vmwrites vmcs12->host_cr[34] even if vmcs shadow is enabled since host_cr[34]

Re: [PATCH 1/2] kconfig: remove check_stdin()

2018-02-07 Thread Ulf Magnusson
On Thu, Feb 8, 2018 at 6:56 AM, Masahiro Yamada wrote: > Except silentoldconfig, valid_stdin is 1, so check_stdin() is no-op. > > oldconfig and silentoldconfig work almost in the same way except that > the latter generates additional files. Both ask users for input for > new symbols. > > I do not

Re: [PATCH] ALSA: usb-audio: Fix UAC2 get_ctl request with a RANGE attribute

2018-02-07 Thread Kirill Marinushkin
On 02/07/18 06:45, Takashi Iwai wrote: > On Mon, 29 Jan 2018 06:37:55 +0100, > Kirill Marinushkin wrote: >> The layout of the UAC2 Control request and response varies depending on >> the request type. With the current implementation, only the Layout 2 >> Parameter Block (with the 2-byte sized RANGE

Re: [PATCH v3 1/2] dt-bindings: gpio: Add Spreadtrum GPIO controller documentation

2018-02-07 Thread Baolin Wang
Hi Rob, On 8 February 2018 at 05:19, Rob Herring wrote: > On Mon, Feb 05, 2018 at 09:55:10AM +0800, Baolin Wang wrote: >> This patch adds the device tree bindings for the Spreadtrum >> GPIO controller. The gpios will be supported by the GPIO >> generic library. >> >> Signed-off-by: Baolin Wang >

Re: linux-next: Signed-off-by missing for commit in the s390 tree

2018-02-07 Thread Martin Schwidefsky
On Thu, 8 Feb 2018 07:35:39 +1100 Stephen Rothwell wrote: > Commit > > b175210bd231 ("s390/kconfig: Remove ARCH_WANTS_PROT_NUMA_PROT_NONE select") > > is missing a Signed-off-by from its committer. It is always that "last" one you add. Fixed. Thanks. -- blue skies, Martin. "Reality co

[git pull] drm for v4.16-rc1 (part 2 - fixes)

2018-02-07 Thread Dave Airlie
Hi Linus, Ben missed sending his tree, but he really didn't have much stuff in it, GP108 acceleration support is enabled by "secure boot" support, some clockgating work on Kepler, and bunch of fixes. The main bulk is regenerated firmware files, the change to them really isn't that large. Otherwis

Re: [PATCH 04/14] kconfig: print additional new line for choice for redirection

2018-02-07 Thread Masahiro Yamada
2018-02-08 8:34 GMT+09:00 Ulf Magnusson : > On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada > wrote: >> If stdout is redirected to a file, prompts look differently due to >> missing new lines. >> >> Currently, conf_askvalue() takes care of this by putting additional >> new line, but conf_choice()

[PATCH 2/2] kconfig: echo stdin to stdout if either is redirected

2018-02-07 Thread Masahiro Yamada
If stdio is not tty, conf_askvalue() puts additional new line to prevent prompts are all concatenated into a single line. This care is missing in conf_choice(), so a 'choice' prompt and the next prompt are shown in the same line. Move the code into xfgets() to take care of all cases. To improve

[PATCH 1/2] kconfig: remove check_stdin()

2018-02-07 Thread Masahiro Yamada
Except silentoldconfig, valid_stdin is 1, so check_stdin() is no-op. oldconfig and silentoldconfig work almost in the same way except that the latter generates additional files. Both ask users for input for new symbols. I do not know why only silentoldconfig requires stdio be tty. $ rm -f .co

Re: [PATCH v2 2/5] clk: mediatek: modify MT7622 audsys to adapt MFD device

2018-02-07 Thread Ryder Lee
On Wed, 2018-02-07 at 16:18 +0100, Matthias Brugger wrote: > > On 02/05/2018 05:07 AM, Ryder Lee wrote: > > On Sat, 2018-02-03 at 15:26 +0100, Matthias Brugger wrote: > >> > >> On 01/31/2018 08:42 AM, Ryder Lee wrote: > >>> As the new MFD parent is in place, switch probing method to adapt it. > >>

Re: [PATCH v2 4/5] dt-bindings: clock: mediatek: update audsys documentation to adapt MFD device

2018-02-07 Thread Ryder Lee
On Wed, 2018-02-07 at 18:49 -0600, Rob Herring wrote: > >> > diff --git > >> > a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt > >> > b/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt > >> > index 9b8f578..677af40 100644 > >> > --- a/Documentation/devicetre

[PATCH] selftests/x86: Remove 5lvl test from Makefile

2018-02-07 Thread Daniel Díaz
The 5lvl.c test file was incorporated into another one in selftests/vm (va_128TBswitch.c) in commit 235266b8. Signed-off-by: Daniel Díaz --- tools/testing/selftests/x86/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/x86/Makefile b/tools/test

Re: [PATCH 04/18] tracing/x86: Add arch_get_func_args() function

2018-02-07 Thread Namhyung Kim
Hi Steve, On Fri, Feb 02, 2018 at 06:05:02PM -0500, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > Add function to get the function arguments from pt_regs. > > Signed-off-by: Steven Rostedt (VMware) > --- > arch/x86/kernel/ftrace.c | 28 > 1 file chan

[PATCH] ath9k: turn on btcoex_enable as default

2018-02-07 Thread Kai-Heng Feng
Without btcoex_enable, WiFi activies make both WiFi and Bluetooth unstable if there's a bluetooth connection. Enable this option when bt_ant_diversity is disabled. BugLink: https://bugs.launchpad.net/bugs/1746164 Signed-off-by: Kai-Heng Feng --- drivers/net/wireless/ath/ath9k/init.c | 10 ++

Re: [PATCH RFC 2/2] mmc: sdhci-msm: support voltage pad switching

2018-02-07 Thread Vijay Viswanath
On 2/3/2018 3:21 AM, Bjorn Andersson wrote: On Thu 18 Jan 00:05 PST 2018, Vijay Viswanath wrote: From: Krishna Konda The PADs for sdhc controller are dual-voltage that support 3v/1.8v. Those PADs have a control signal (io_pad_pwr_switch/mode18 ) that indicates whether the PAD works in 3v or

Re: [PATCH] selftests/android: Fix line continuation in Makefile

2018-02-07 Thread Pintu Kumar
On Wed, Feb 7, 2018 at 5:22 AM, Daniel Díaz wrote: > The Makefile lacks a couple of line continuation backslashes > in an `if' clause, which can make the subsequent rsync > command go awry over the whole filesystem (`rsync -a / /`). > > /bin/sh: -c: line 5: syntax error: unexpected end of file >

Re: [PATCH] selftests/android: Fix line continuation in Makefile

2018-02-07 Thread Pintu Kumar
On Wed, Feb 7, 2018 at 10:46 PM, Daniel Díaz Rodríguez wrote: > Hello! > > > On 7 February 2018 at 00:01, Pintu Kumar wrote: > [...] >> Thanks for your patch. >> However, I have copied this Makefile from >> tools/testing/selftests/futex/Makefile before modifying it. >> If there is a problem with

[PATCH] x86/kvm/vmx: Don't halt vcpu when L1 is injecting events to L2

2018-02-07 Thread Chao Gao
Although L2 is in halt state, it will be in the active state after VM entry if the VM entry is vectoring. Halting the vcpu here means the event won't be injected to L2 and this decision isn't reported to L1. Thus L0 drops an event that should be injected to L2. Because virtual interrupt delivery m

RE: dell-smbios makes wireless card unusable on Dell XPS 13 9360

2018-02-07 Thread Mario.Limonciello
> -Original Message- > From: Paul Menzel [mailto:pmenzel+platform-driver-...@molgen.mpg.de] > Sent: Wednesday, February 7, 2018 3:41 AM > To: Limonciello, Mario > Cc: Pali Rohár ; it+platform-driver-...@molgen.mpg.de; > platform-driver-...@vger.kernel.org; linux-kernel@vger.kernel.org > Su

Hello

2018-02-07 Thread Merle Butler
Hello, I'm Mr. Merle Butler the mega winner of $218M In Mega Millions Jackpot, I'm donating to 5 random individuals if you get this email then your email was selected after a spin ball.I have spread most of my wealth over a number of charities and organizations. I and my wife Patricia Butler have

Re: [PATCH v9 35/37] tracing: Increase trace_recursive_lock() limit for synthetic events

2018-02-07 Thread Tom Zanussi
Hi Steve, On Wed, 2018-02-07 at 20:55 -0500, Steven Rostedt wrote: > On Mon, 15 Jan 2018 20:52:09 -0600 > Tom Zanussi wrote: > > > static __always_inline int > > trace_recursive_lock(struct ring_buffer_per_cpu *cpu_buffer) > > { > > - if (cpu_buffer->current_context >= 4) > > + if (cpu_bu

Re: linux/drivers/cpuidle: cpuidle_enter_state() issue

2018-02-07 Thread Nicholas Piggin
On Wed, 7 Feb 2018 14:51:56 +0100 "Rafael J. Wysocki" wrote: > On 2/7/2018 7:59 AM, Li Wang wrote: > > Hi Kernel-developers, > > > > The flowing call trace was catch from kernel-v4.15, could anyone help > > to analysis the cpuidle problem? > > or, if you need any more detail info pls let me know.

Re: [PATCH 0/2] rcu: Transform kfree_rcu() into kvfree_rcu()

2018-02-07 Thread Paul E. McKenney
On Wed, Feb 07, 2018 at 01:26:19PM -0500, Steven Rostedt wrote: > On Wed, 7 Feb 2018 10:10:55 -0800 > Matthew Wilcox wrote: > > > > For the record, I fully agree with Steve here. > > Thanks, but... > > > > > > > And being a performance "fanatic" I don't like to have the extra branch > > > (an

Re: [PATCH 0/2] rcu: Transform kfree_rcu() into kvfree_rcu()

2018-02-07 Thread Paul E. McKenney
On Wed, Feb 07, 2018 at 08:55:47AM -0600, Christopher Lameter wrote: > On Tue, 6 Feb 2018, Paul E. McKenney wrote: > > > So it is OK to kvmalloc() something and pass it to either kfree() or > > kvfree(), and it had better be OK to kvmalloc() something and pass it > > to kvfree(). > > kvfree() is

Re: [PATCH 0/2] rcu: Transform kfree_rcu() into kvfree_rcu()

2018-02-07 Thread Paul E. McKenney
On Wed, Feb 07, 2018 at 08:57:00AM -0500, Steven Rostedt wrote: > On Wed, 7 Feb 2018 00:31:04 -0800 > "Paul E. McKenney" wrote: > > > I see problems. We would then have two different names for exactly the > > same thing. > > > > Seems like it would be a lot easier to simply document the existin

Re: [RFC] Warn the user when they could overflow mapcount

2018-02-07 Thread Matthew Wilcox
On Thu, Feb 08, 2018 at 02:18:04PM +1100, Tobin C. Harding wrote: > > +++ b/Documentation/sysctl/vm.txt > > @@ -379,7 +379,8 @@ While most applications need less than a thousand maps, > > certain > > programs, particularly malloc debuggers, may consume lots of them, > > e.g., up to one or two ma

Re: [PATCH] mm/migrate: Rename various page allocation helper functions

2018-02-07 Thread Anshuman Khandual
On 02/04/2018 12:28 PM, Anshuman Khandual wrote: > Allocation helper functions for migrate_pages() remmain scattered with > similar names making them really confusing. Rename these functions based > on type of the intended migration. Function alloc_misplaced_dst_page() > remains unchanged as its hi

Re: [RFC] Warn the user when they could overflow mapcount

2018-02-07 Thread Matthew Wilcox
On Thu, Feb 08, 2018 at 03:56:26AM +0100, Jann Horn wrote: > How much memory would you need to trigger this? You need one > vm_area_struct per increment, and those are 200 bytes? So at least > 800GiB of memory for the vm_area_structs, and maybe more for other > data structures? That's a good point

[PATCH v6] usb: ohci: Proper handling of ed_rm_list to handle race condition between usb_kill_urb() and finish_unlinks()

2018-02-07 Thread Jeffy Chen
From: AMAN DEEP There is a race condition between finish_unlinks->finish_urb() function and usb_kill_urb() in ohci controller case. The finish_urb calls spin_unlock(&ohci->lock) before usb_hcd_giveback_urb() function call, then if during this time, usb_kill_urb is called for another endpoint, the

Re: [PATCH 2/2] trace_uprobe: Simplify probes_seq_show()

2018-02-07 Thread Ravi Bangoria
On 02/08/2018 08:59 AM, Kees Cook wrote: > On Tue, Feb 6, 2018 at 8:34 PM, Ravi Bangoria > wrote: >> Simplify probes_seq_show() function. We are using %lx to display >> the offset and we don't prepend unnecessary 0s in the offset. >> >> Signed-off-by: Ravi Bangoria >> --- >> kernel/trace/trace

[PATCH RESEND v4] perf/core: Fix installing cgroup event into cpu

2018-02-07 Thread linxiulei
From: "leilei.lin" Do not install cgroup event into the CPU context and schedule it if the cgroup is not running on this CPU While there is no task of cgroup running specified CPU, current kernel still install cgroup event into CPU context that causes another cgroup event can't be installed into

Re: [PATCH 2/2] trace_uprobe: Simplify probes_seq_show()

2018-02-07 Thread Kees Cook
On Tue, Feb 6, 2018 at 8:34 PM, Ravi Bangoria wrote: > Simplify probes_seq_show() function. We are using %lx to display > the offset and we don't prepend unnecessary 0s in the offset. > > Signed-off-by: Ravi Bangoria > --- > kernel/trace/trace_uprobe.c | 21 +++-- > 1 file change

linux-next: Signed-off-by missing for commit in the net tree

2018-02-07 Thread Stephen Rothwell
Hi all, Commit 043e337f555e ("sch_netem: Bug fixing in calculating Netem interval") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell

Re: [PATCH net V2 1/2] ptr_ring: try vmalloc() when kmalloc() fails

2018-02-07 Thread Jason Wang
On 2018年02月08日 11:21, Jason Wang wrote: This patch switch to use kvmalloc_array() for using a vmalloc() fallback to help in case kmalloc() fails. Reported-by: syzbot+e4d4f9ddd42955397...@syzkaller.appspotmail.com Fixes: 2e0ab8ca83c12 ("ptr_ring: array based FIFO for pointers") Signed-off-by: J

[PATCH net V2 1/2] ptr_ring: try vmalloc() when kmalloc() fails

2018-02-07 Thread Jason Wang
This patch switch to use kvmalloc_array() for using a vmalloc() fallback to help in case kmalloc() fails. Reported-by: syzbot+e4d4f9ddd42955397...@syzkaller.appspotmail.com Fixes: 2e0ab8ca83c12 ("ptr_ring: array based FIFO for pointers") Signed-off-by: Jason Wang --- include/linux/ptr_ring.h | 2

[PATCH net V2 2/2] ptr_ring: fail on large queue size (>64K)

2018-02-07 Thread Jason Wang
We need limit the maximum size of queue, otherwise it may cause several side effects e.g slab will warn when the size exceeds KMALLOC_MAX_SIZE. Using KMALLOC_MAX_SIZE still looks too so this patch tries to limit it to 64K. This value could be revisited if we found a real case that needs more. Repo

Re: WARNING: bad usercopy in put_cmsg_compat

2018-02-07 Thread Kees Cook
On Wed, Feb 7, 2018 at 4:31 AM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > e237f98a9c134c3d600353f21e07db915516875b (Mon Feb 5 21:35:56 2018 +) > Merge tag 'xfs-4.16-merge-5' of > git://git.kernel.org/pub/scm/fs/xfs/xfs-linux > > C reproducer is attached. >

Re: [RFC] Warn the user when they could overflow mapcount

2018-02-07 Thread Tobin C. Harding
On Wed, Feb 07, 2018 at 06:11:12PM -0800, Matthew Wilcox wrote: > > Kirill and I were talking about trying to overflow page->_mapcount > the other day and realised that the default settings of pid_max and > max_map_count prevent it [1]. But there isn't even documentation to > warn a sysadmin that

Re: A problem about 'perf sched latency'

2018-02-07 Thread Du, Changbin
On Thu, Feb 08, 2018 at 09:57:24AM +0900, Namhyung Kim wrote: > Hello, > [snip] > > Does anyone know why? Thank you! :) > > It seems your data doesn't have wakeup event which is required by the > 'perf sched latency'. > > Thanks, > Namhyung > Hi Kim, Thanks for your reply. I thought the 'Swicth

Re: [PATCH] f2fs: add fi->commit_lock to protect commit GCed pages

2018-02-07 Thread Yunlong Song
Then the GCed data pages are totally mixed with the inmem atomic pages, this will cause the atomic commit ops write the GCed data pages twice (the first write happens in GC). How about using the early two patches to separate the inmem data pages and GCed data pages, and use dio_rwsem instead of t

[PATCH] cramfs: better MTD dependency expression

2018-02-07 Thread Nicolas Pitre
Commit b9f5fb1800d8 ("cramfs: fix MTD dependency") did what it says. Since commit 9059a3493efe ("kconfig: fix relational operators for bool and tristate symbols") it is possible to do it slightly better though. Signed-off-by: Nicolas Pitre --- Linus, Viro once told me that my cramfs pull reques

linux-next: Tree for Feb 8

2018-02-07 Thread Stephen Rothwell
Hi all, Please do not add any v4.17 material to your linux-next included branches until after v4.16-rc1 has been released. Changes since 20180207: The btrfs-kdave tree still had its build failure so I used the version from next-20180206. The vhost tree still had its build failure so I used the

Re: [PATCH v27 3/4] mm/page_poison: expose page_poisoning_enabled to kernel modules

2018-02-07 Thread Michael S. Tsirkin
On Thu, Feb 08, 2018 at 09:44:29AM +0800, Wei Wang wrote: > On 02/08/2018 02:34 AM, Michael S. Tsirkin wrote: > > On Wed, Feb 07, 2018 at 02:54:30PM +0800, Wei Wang wrote: > > > In some usages, e.g. virtio-balloon, a kernel module needs to know if > > > page poisoning is in use. This patch exposes

Re: [PATCH net] ptr_ring: fail early if queue occupies more than KMALLOC_MAX_SIZE

2018-02-07 Thread Jason Wang
On 2018年02月07日 23:15, Michael S. Tsirkin wrote: On Wed, Feb 07, 2018 at 05:17:59PM +0800, Jason Wang wrote: On 2018年02月07日 16:08, Jason Wang wrote: To avoid slab to warn about exceeded size, fail early if queue occupies more than KMALLOC_MAX_SIZE. Reported-by: syzbot+e4d4f9ddd42955397...@sy

ipmi_si fails to get BMC ID

2018-02-07 Thread Chris Chiu
Hi, We are working with a new desktop Acer Veriton Z4640G and get stumbled on failing to enter S3 suspend with kernel version 4.14 even the latest 4.15+. Here's the kernel log https://gist.github.com/mschiu77/76888f1fd4eb56aa8959d76759a912bb. As you see, it is due to "ipmi_probe+0x430/0x43

Re: [PATCH v5 3/4] DT/arm,gic-v3-its: add reset-on-suspend property

2018-02-07 Thread dbasehore .
On Wed, Feb 7, 2018 at 1:21 AM, Marc Zyngier wrote: > On 07/02/18 01:41, Derek Basehore wrote: >> This adds documentation for the new reset-on-suspend property. This >> property enables saving and restoring the ITS for when it loses state >> in system suspend. >> >> Signed-off-by: Derek Basehore

Re: [patches] [PATCH v3 0/6] Add dynamic ftrace support for RISC-V platforms

2018-02-07 Thread Alan Kao
On Wed, Feb 07, 2018 at 04:37:10PM -0800, Palmer Dabbelt wrote: > On Thu, 18 Jan 2018 07:45:39 PST (-0800), noner...@gmail.com wrote: > > This patch set includes the building blocks of dynamic ftrace features > > for RISC-V machines. > > > > Changes in v3: > > - Replace the nops at the tracer cal

Re: [PATCH] net: ethernet: ti: cpsw: fix net watchdog timeout

2018-02-07 Thread David Miller
From: Grygorii Strashko Date: Tue, 6 Feb 2018 19:17:06 -0600 > It was discovered that simple program which indefinitely sends 200b UDP > packets and runs on TI AM574x SoC (SMP) under RT Kernel triggers network > watchdog timeout in TI CPSW driver (<6 hours run). The network watchdog > timeout is

Re: [RFC] Warn the user when they could overflow mapcount

2018-02-07 Thread Jann Horn
On Thu, Feb 8, 2018 at 3:11 AM, Matthew Wilcox wrote: > Kirill and I were talking about trying to overflow page->_mapcount > the other day and realised that the default settings of pid_max and > max_map_count prevent it [1]. But there isn't even documentation to > warn a sysadmin that they've jus

Re: [STABLE 4.9.y PATCH 0/9] Backport of KVM Speculation Control support

2018-02-07 Thread Greg KH
On Tue, Feb 06, 2018 at 09:05:46PM +, Woodhouse, David wrote: > > > On Tue, 2018-02-06 at 19:01 +0100, Paolo Bonzini wrote: > > On 06/02/2018 18:29, David Woodhouse wrote: > > > I've put together a linux-4.9.y branch at  > > > http://git.infradead.org/retpoline-stable.git/shortlog/refs/heads/

Re: [PATCH v1 1/1] spi_ks8995: use regmap to access chip registers.

2018-02-07 Thread David Miller
From: Sven Van Asbroeck Date: Tue, 6 Feb 2018 10:13:56 -0500 > The register map layouts used in this driver are well suited to > being accessed through a regmap. This makes the driver simpler > and shorter, by eliminating some spi boilerplate code. > > Testing: > - tested on a ksz8785. > - not t

Re: [PATCH net] rxrpc: Fix received abort handling

2018-02-07 Thread David Miller
From: David Howells Date: Tue, 06 Feb 2018 16:44:12 + > AF_RXRPC is incorrectly sending back to the server any abort it receives > for a client connection. This is due to the final-ACK offload to the > connection event processor patch. The abort code is copied into the > last-call informati

Re: [PATCH 02/14] kconfig: do not write choice values when their dependency becomes n

2018-02-07 Thread Ulf Magnusson
On Thu, Feb 8, 2018 at 3:42 AM, Masahiro Yamada wrote: > 2018-02-08 7:55 GMT+09:00 Ulf Magnusson : >> On Tue, Feb 06, 2018 at 09:34:42AM +0900, Masahiro Yamada wrote: >>> "# CONFIG_... is not set" for choice values are wrongly written into >>> the .config file if they are once visible, then become

Re: [PATCH] cxgb4: Fix error handling path in 'init_one()'

2018-02-07 Thread David Miller
From: Christophe JAILLET Date: Tue, 6 Feb 2018 21:17:17 +0100 > Commit baf5086840ab1 ("cxgb4: restructure VF mgmt code") has reordered > some code but an error handling label has not been updated accordingly. > So fix it and free 'adapter' if 't4_wait_dev_ready()' fails. > > Fixes: baf5086840ab

[PATCH v2] spi: kconfig: Remove AVR32 dep. from SPI_ATMEL

2018-02-07 Thread Ulf Magnusson
The AVR32 symbol was removed in commit 26202873bb51 ("avr32: remove support for AVR32 architecture"). --- Changes in v2: Remove the AVR32 reference from the help text too. drivers/spi/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/Kconfig b/drivers/spi

Re: [PATCH 02/14] kconfig: do not write choice values when their dependency becomes n

2018-02-07 Thread Masahiro Yamada
2018-02-08 7:55 GMT+09:00 Ulf Magnusson : > On Tue, Feb 06, 2018 at 09:34:42AM +0900, Masahiro Yamada wrote: >> "# CONFIG_... is not set" for choice values are wrongly written into >> the .config file if they are once visible, then become invisible later. >> >> Test case >> - >> >>

Re: [PATCH] ACPI/IORT: Remove linker section for IORT entries again

2018-02-07 Thread Jia He
On 2/7/2018 7:41 PM, Lorenzo Pieralisi Wrote: On Tue, Feb 06, 2018 at 08:11:34PM -0800, Jia He wrote: In commit 316ca8804ea8 ("ACPI/IORT: Remove linker section for IORT entries probing"), iort entries was removed in vmlinux.lds.h. But in commit 2fcc112af37f ("clocksource/drivers: Rename clksrc

Re: [PATCHv2] musb_host: fix lockup on rxcsr_h_error

2018-02-07 Thread Bin Liu
Maxim, On Fri, Jan 26, 2018 at 12:24:54PM +0300, Maxim Uvarov wrote: > Bin, > > I looked to my local git and code does not have this latest line "goto > finish". It was tested without it and everything worked. Right now I > can not get access to that hardware to check with and without. But > onl

[PATCH v6 1/3] irqchip/gic-v3-its: add ability to save/restore ITS state

2018-02-07 Thread Derek Basehore
Some platforms power off GIC logic in suspend, so we need to save/restore state. The distributor and redistributor registers need to be handled in platform code due to access permissions on those registers, but the ITS registers can be restored in the kernel. Signed-off-by: Derek Basehore --- dr

[PATCH v6 2/3] DT/arm,gic-v3-its: add reset-on-suspend property

2018-02-07 Thread Derek Basehore
This adds documentation for the new reset-on-suspend property. This property enables saving and restoring the ITS for when it loses state in system suspend. Signed-off-by: Derek Basehore --- Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt | 3 +++ 1 file changed, 3 insertio

[PATCH v6 0/3] GICv3 Save and Restore

2018-02-07 Thread Derek Basehore
A lot of changes in v2. The distributor and redistributor saving and restoring is left to the PSCI/firmware implementation after discussions with ARM. This reduces the line changes by a lot and removes now unneeded patches. Patches are verified on an RK3399 platform with pending patches in the ARM

[PATCH v6 3/3] irqchip/gic-v3-its: add ability to resend MAPC on resume

2018-02-07 Thread Derek Basehore
This adds functionality to resend the MAPC command to an ITS node on resume. If the ITS is powered down during suspend and the collections are not backed by memory, the ITS will lose that state. This just sets up the known state for the collections after the ITS is restored. This is enabled via th

Re: [PATCH 8/8] docs: kernel-doc: Don't mangle literal code blocks in comments

2018-02-07 Thread Tobin C. Harding
On Wed, Feb 07, 2018 at 10:26:24AM -0700, Jonathan Corbet wrote: [snip] >if (desperate) >run_in_circles(); this is gold :)

Re: [PATCH 7/8] docs: kernel-doc: Finish moving STATE_* code out of process_file()

2018-02-07 Thread Tobin C. Harding
On Wed, Feb 07, 2018 at 10:26:23AM -0700, Jonathan Corbet wrote: > Move STATE_INLINE and STATE_DOCBLOCK code out of process_file(), which now > actually fits on a single screen. Delete an unused variable and add a > couple of comments while I'm at it. > > Signed-off-by: Jonathan Corbet > --- >

Compliment of the day to you. Dear Friend.

2018-02-07 Thread Mrs.Chantal Sonian Kadi
Compliment of the day to you. Dear Friend. for security reason contact me Through this email (mrschantal.sonian.k...@gmail.com) Dear Friend. I am Mrs.Chantal Sonian Kadi. am sending this brief letter to solicit your partnership to transfer $10.5 million US Dollars. I shall send you more informa

Re: [PATCH RFC] ashmem: Fix lockdep RECLAIM_FS false positive

2018-02-07 Thread Joel Fernandes
On Wed, Feb 7, 2018 at 4:35 PM, NeilBrown wrote: >> On Wed, Feb 7, 2018 at 8:58 AM, Peter Zijlstra wrote: >> [...] >>> Lockdep reports this issue when GFP_FS is infact set, and we enter this path and acquire the lock. So lockdep seems to be doing the right thing however by design i

Re: [PATCH 0/8] Clean up kernel-doc and fix literal-block handling

2018-02-07 Thread Tobin C. Harding
On Wed, Feb 07, 2018 at 10:26:16AM -0700, Jonathan Corbet wrote: > So once upon a time I set out to fix the problem reported by Tobin wherein > a literal block within a kerneldoc comment would be corrupted in > processing. On the way, though, I got annoyed at the way I have to learn > how kernel-d

[RFC] Warn the user when they could overflow mapcount

2018-02-07 Thread Matthew Wilcox
Kirill and I were talking about trying to overflow page->_mapcount the other day and realised that the default settings of pid_max and max_map_count prevent it [1]. But there isn't even documentation to warn a sysadmin that they've just opened themselves up to the possibility that they've opened

  1   2   3   4   5   6   7   8   9   >