Re: Memory hotplug softlock issue

2018-11-14 Thread Baoquan He
On 11/15/18 at 08:30am, Michal Hocko wrote: > On Thu 15-11-18 13:10:34, Baoquan He wrote: > > On 11/14/18 at 04:00pm, Michal Hocko wrote: > > > On Wed 14-11-18 22:52:50, Baoquan He wrote: > > > > On 11/14/18 at 10:01am, Michal Hocko wrote: > > > > > I have seen an issue when the migration cannot

Re: [GIT PULL] PCI fixes for v4.20

2018-11-14 Thread Konstantin Ryabitsev
On Thu, Nov 15, 2018 at 01:12:53AM -0600, Bjorn Helgaas wrote: > > and I kinda see the point of maybe not having your ssh username in the > > URL. Not that it is a big deal for us, k.org users though. > > Sorry, I don't understand the problem. I have this in my .gitconfig: > > [url

Re: [RFC/RFT 2/2] RISC-V: kprobes/kretprobe support

2018-11-14 Thread Masami Hiramatsu
On Wed, 14 Nov 2018 22:10:52 +0100 Patrick Staehlin wrote: > On 14.11.18 16:49, Masami Hiramatsu wrote: > > On Wed, 14 Nov 2018 00:37:30 -0800 > > Masami Hiramatsu wrote: > > > >>> + > >>> +static int __kprobes patch_text(kprobe_opcode_t *addr, u32 opcode) > >>> +{ > >>> + if

Re: [RFC PATCH] mm, memory_hotplug: do not clear numa_node association after hot_remove

2018-11-14 Thread Michal Hocko
On Wed 14-11-18 15:18:09, Andrew Morton wrote: > On Wed, 14 Nov 2018 08:14:42 +0100 Michal Hocko wrote: > > > It seems there were no objections here. So can we have it in linux-next > > for a wider testing a possibly target the next merge window? > > > > top-posting sucks! I thought it would

[PATCH] platform/x86: thinkpad_acpi: add adaptive_kbd_modes parameter

2018-11-14 Thread Eric Wong
This bitmap parameter allows the user to add/remove modes for DFR_CHANGE_ROW to cycle through. Users who wish to cycle through WEB_BROWSER_MODE and/or WEB_CONFERENCE_MODE may now do so by enabling corresponding bits. While some appreciate more modes, I made this feature because I wanted to lock

Re: Memory hotplug softlock issue

2018-11-14 Thread Michal Hocko
On Thu 15-11-18 13:10:34, Baoquan He wrote: > On 11/14/18 at 04:00pm, Michal Hocko wrote: > > On Wed 14-11-18 22:52:50, Baoquan He wrote: > > > On 11/14/18 at 10:01am, Michal Hocko wrote: > > > > I have seen an issue when the migration cannot make a forward progress > > > > because of a glibc page

Re: [PATCH v2 1/2] pci: prevent sk hynix nvme from entering D3

2018-11-14 Thread Kai Heng Feng
Hi, > On Nov 9, 2018, at 08:21, Bjorn Helgaas wrote: > > On Tue, Nov 06, 2018 at 03:12:13PM +0800, AceLan Kao wrote: >> It leads to the power consumption raises to 2.2W during s2idle, while >> it consumes less than 1W during long idle if put SK hynix nvme to D3 >> and then enter s2idle. >> From

Re: [GIT PULL] PCI fixes for v4.20

2018-11-14 Thread Bjorn Helgaas
On Wed, Nov 14, 2018 at 11:48:39PM +0100, Borislav Petkov wrote: > On Wed, Nov 14, 2018 at 05:21:54PM -0500, Konstantin Ryabitsev wrote: > > For the record, there's nothing wrong with that, it's just a condition > > that I didn't expect. I have a fix in place that should avoid this in > > the

[resend PATCH] dt-bindings: sound: Add documentation for pcm3060 property out-single-ended

2018-11-14 Thread Kirill Marinushkin
Output of pcm3060 codec may be configured as single-ended or differential Signed-off-by: Kirill Marinushkin Cc: devicet...@vger.kernel.org --- Hello Mark, yesterday there was a misunderstanding: when I wrote you > I think you forgot one patch in the series you accidently applied the

[PATCH] spi: npcm: fix platform_no_drv_owner.cocci warnings

2018-11-14 Thread kbuild test robot
From: kbuild test robot drivers/spi/spi-npcm-pspi.c:470:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Fixes: 2a22f1b30cee ("spi: npcm: add NPCM PSPI

Re: [RFC PATCH 06/13] m68k: Drop ARCH_USES_GETTIMEOFFSET

2018-11-14 Thread Michael Schmitz
Hi Finn Am 15.11.2018 um 12:54 schrieb Michael Schmitz: That one does appear to work - different versions of ARAnyM, and different userland versions though. I'll test that again with the setup that saw c606b5cf902 fail. Still fails on that emulator / userland. Must be a quirk of ARAnyM

Re: [PATCH 1/4] dt-bindings: pwm: update bindings for MT7629 SoC

2018-11-14 Thread Ryder Lee
On Thu, 2018-11-15 at 14:26 +0800, Ryder Lee wrote: > This updates bindings for MT7629 pwm controller. > > Signed-off-by: Ryder Lee > --- > Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git

[PATCH 1/4] dt-bindings: mtd: mtk-quadspi: update bindings for MT7629 SoC

2018-11-14 Thread Ryder Lee
This updates bindings for the MT7629 SPI-NOR controller. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt

[PATCH 4/4] mtd: spi-nor: mtk-quadspi: rename config to a common one

2018-11-14 Thread Ryder Lee
The quadspi is a generic communication interface which could be shared with other MediaTek SoCs. Hence rename it to a common one. Signed-off-by: Ryder Lee --- drivers/mtd/spi-nor/Kconfig | 16 drivers/mtd/spi-nor/Makefile | 2 +- 2 files changed, 9 insertions(+), 9

[PATCH 1/4] dt-bindings: pwm: update bindings for MT7629 SoC

2018-11-14 Thread Ryder Lee
This updates bindings for MT7629 pwm controller. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt

[PATCH 3/4] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ for capcity setting

2018-11-14 Thread Ryder Lee
From: Guochun Mao SNOR_HWCAPS_READ is a basic read mode for both flash and controller, it should be supported, so add the capcity for mtk-quadspi. Signed-off-by: Guochun Mao Tested-by: Ryder Lee --- drivers/mtd/spi-nor/mtk-quadspi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH 2/4] mtd: spi-nor: mtk-quadspi: use ofpart for parsing partitions

2018-11-14 Thread Ryder Lee
From: Guochun Mao Replace mtd_device_register with mtd_device_parse_register for parsing partitions. Add ofpart support. Signed-off-by: Guochun Mao Tested-by: Ryder Lee --- drivers/mtd/spi-nor/mtk-quadspi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 1/2] clocksource: meson6_timer: use register names from the datasheet

2018-11-14 Thread Martin Blumenstingl
Hi Daniel, thanks for your feedback! On Thu, Nov 15, 2018 at 2:35 AM Daniel Lezcano wrote: > > On 28/10/2018 13:55, Martin Blumenstingl wrote: > > This makes the driver use the names from S805 datasheet for the > > preprocessor #defines. This makes it easier to spot that the driver > >

RE: [PATCH v5 3/9] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-11-14 Thread Yogesh Narayan Gaur
Hi Frieder, With below patch on top of your v5, Read/Write/Erase on CS1 is working fine for me. I have tested with JFFS2 mounting and booting also for both CS0 and CS1. diff --git a/drivers/spi/spi-fsl-qspi.c b/drivers/spi/spi-fsl-qspi.c index ce45e8e..4467983 100644 ---

[PATCH v3 2/2] proc: add /proc//arch_state

2018-11-14 Thread Aubrey Li
Add a /proc//arch_state interface to expose per-task cpu specific state values. Exposing AVX-512 Hi16_ZMM registers usage is for the user space job scheduler to cluster AVX-512 using tasks together, because these tasks could cause core turbo frequency drop. Signed-off-by: Aubrey Li Cc: Peter

[PATCH v3 1/2] x86/fpu: track AVX-512 usage of tasks

2018-11-14 Thread Aubrey Li
User space tools which do automated task placement need information about AVX-512 usage of tasks, because AVX-512 usage could cause core turbo frequency drop and impact the running task on the sibling CPU. XSAVE header contains a state-component bitmap, which allows software to discover the state

Re: [PATCH 0/5] Switchtec MRPC DMA mode support

2018-11-14 Thread Logan Gunthorpe
On 15/11/18 02:43 AM, Wesley Sheng wrote: > Hi, Everyone, > > This patch series adds support for the Switchtec MRPC DMA mode. I've reviewed this series from it's conception on github[1] and would like to see it land in the upstream driver, so for the entire series: Reviewed-by: Logan

Re: [PATCH v6 3/3] arm64: dts: allwinner: a64: enable sound on Pinebook

2018-11-14 Thread Vasily Khoruzhick
On Wed, Nov 7, 2018 at 11:30 PM Chen-Yu Tsai wrote: > > + > > + speaker_amp: speaker_amp { > > + compatible = "simple-audio-amplifier"; > > + enable-gpios = < 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ > > You might want to add a sound-name-prefix property. See > >

Re: [PATCH] serial: 8250: Default SERIAL_OF_PLATFORM to SERIAL_8250

2018-11-14 Thread Guenter Roeck
On Wed, Nov 14, 2018 at 07:56:47PM -0800, Florian Fainelli wrote: > > > On November 14, 2018 5:11:25 PM PST, Guenter Roeck wrote: > >On Thu, Nov 01, 2018 at 11:26:06AM -0700, Florian Fainelli wrote: > >> It is way too easy to miss enabling SERIAL_OF_PLATFORM which would > >> result in the

Re: [PATCH] serial: 8250: Default SERIAL_OF_PLATFORM to SERIAL_8250

2018-11-14 Thread Guenter Roeck
On Wed, Nov 14, 2018 at 07:56:47PM -0800, Florian Fainelli wrote: > > > On November 14, 2018 5:11:25 PM PST, Guenter Roeck wrote: > >On Thu, Nov 01, 2018 at 11:26:06AM -0700, Florian Fainelli wrote: > >> It is way too easy to miss enabling SERIAL_OF_PLATFORM which would > >> result in the

Re: Official Linux system wrapper library?

2018-11-14 Thread Theodore Y. Ts'o
On Wed, Nov 14, 2018 at 06:47:57PM +, Joseph Myers wrote: > On Wed, 14 Nov 2018, Daniel Colascione wrote: > > > A good demonstration of a new commitment to pragmatism would be > > merging the trivial wrappers for gettid(2). > > I support the addition of gettid (for use with those syscalls

Re: Memory hotplug softlock issue

2018-11-14 Thread Baoquan He
On 11/14/18 at 04:00pm, Michal Hocko wrote: > On Wed 14-11-18 22:52:50, Baoquan He wrote: > > On 11/14/18 at 10:01am, Michal Hocko wrote: > > > I have seen an issue when the migration cannot make a forward progress > > > because of a glibc page with a reference count bumping up and down. Most > >

[PATCH v2] mtd: change len type from signed to unsigned type

2018-11-14 Thread Huijin Park
From: "huijin.park" This patch casts the "len" parameter to an unsigned int. The callers of erase_write() pass the "len" parameter as unsigned int. Signed-off-by: huijin.park --- drivers/mtd/mtdblock.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2] mtd: spi-nor: cast to u64 to avoid uint overflows

2018-11-14 Thread Huijin Park
From: "huijin.park" The "params->size" is defined as "u64". And "info->sector_size" and "info->n_sectors" are defined as unsigned int and u16. Thus, u64 data might have strange data(loss data) if the result overflows an unsigned int. This patch casts "info->sector_size" and "info->n_sectors" to

linux-next: Tree for Nov 15

2018-11-14 Thread Stephen Rothwell
Hi all, Changes since 20181114: New trees: gnss-fixes, gnss The tip tree still had its build failure for which I applied a fix patch. Non-merge commits (relative to Linus' tree): 2799 2907 files changed, 117529 insertions(+), 99581 deletions

Re: [RFC PATCH 06/13] m68k: Drop ARCH_USES_GETTIMEOFFSET

2018-11-14 Thread Finn Thain
On Thu, 15 Nov 2018, Michael Schmitz wrote: > Hi Finn, > > On 14/11/18 3:58 PM, Michael Schmitz wrote: > > Hi Finn, > > > > Am 14.11.2018 um 14:08 schrieb Michael Schmitz: > > > > Can you also test tree fbf8405cd982 please? > > > > > > > My tests were on c606b5cf902 in case it wasn't clear.

Re: Build regressions/improvements in v4.20-rc2

2018-11-14 Thread Michael Ellerman
Geert Uytterhoeven writes: > Below is the list of build error/warning regressions/improvements in > v4.20-rc2[1] compared to v4.19[2]. > > Summarized: > - build errors: +3/-0 > - build warnings: +123/-12803 > > JFYI, when comparing v4.20-rc2[1] to v4.20-rc1[3], the summaries are: > - build

Re: [PATCH AUTOSEL 4.18 39/59] i2c: omap: Enable for ARCH_K3

2018-11-14 Thread Vignesh R
Hi, On 15/11/18 3:53 AM, Sasha Levin wrote: > From: Vignesh R > > [ Upstream commit 5b277402deac0691226a947df71c581686bd4020 ] This patch depends on c77245722fb4 ("arm64: Add support for TI's K3 Multicore SoC architecture") which adds ARCH_K3 Kconfig symbol and merged to mainline in v4.19.

USLUGI REPETITORA

2018-11-14 Thread Repetitor
USLUGI REPETITORA 1-7 klass. Nizkie ceni 7:27:08 AM

[PATCH 2/2] ASoC: rt5663: Add regulator support

2018-11-14 Thread Cheng-Yi Chiang
Add regulator support to turn on cpvdd and avdd in probe. If a regulator is not given from device tree, a dummy regulator will be used. Signed-off-by: Cheng-Yi Chiang --- sound/soc/codecs/rt5663.c | 68 +++ 1 file changed, 61 insertions(+), 7 deletions(-)

[PATCH 1/2] ASoC: rt5663: Add documentation for power supply support

2018-11-14 Thread Cheng-Yi Chiang
rt5663 codec driver will support setting CPVDD and AVDD power supply from device tree. Signed-off-by: Cheng-Yi Chiang --- Fixed the commit title of v1. Documentation/devicetree/bindings/sound/rt5663.txt | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [RFC PATCH 01/13] arm: Fix mutual exclusion in arch_gettimeoffset

2018-11-14 Thread Finn Thain
On Wed, 14 Nov 2018, Russell King - ARM Linux wrote: > However, I now see (having searched mailing lists) what you are trying > to do - you have _not_ copied me or the mailing lists I'm on with your > cover message, so I'm *totally* lacking in the context of your patch > series, particularly

Re: [PATCH] Uprobes: Fix kernel oops with delayed_uprobe_remove()

2018-11-14 Thread Ravi Bangoria
Hi Oleg, On 11/14/18 9:36 PM, Oleg Nesterov wrote: > On 11/14, Ravi Bangoria wrote: >> >> syzbot reported a kernel crash with delayed_uprobe_remove(): >> https://lkml.org/lkml/2018/11/1/1244 >> >> Backtrace mentioned in the link points to a race between process >> exit and uprobe_unregister().

Re: KMSAN: uninit-value in rcu_accelerate_cbs / KMSAN: uninit-value in rcu_process_callbacks

2018-11-14 Thread Kyungtae Kim
Thank you for all your comments. Thanks, Kyungtae Kim On Wed, Nov 14, 2018 at 11:05 AM Paul E. McKenney wrote: > > On Wed, Nov 14, 2018 at 04:31:11PM +0100, Alexander Potapenko wrote: > > On Wed, Nov 14, 2018 at 4:09 PM Paul E. McKenney > > wrote: > > > > > > On Wed, Nov 14, 2018 at 04:03:33AM

[PATCH v2 1/2] Makefile: Fix distcc compilation with x86 macros

2018-11-14 Thread Nadav Amit
Introducing the use of asm macros in c-code broke distcc, since it only sends the preprocessed source file. The solution is to break the compilation into two separate phases of compilation and assembly, and between the two concatenate the assembly macros and the compiled (yet not assembled) source

[PATCH v2 2/2] x86: set a dependency on macros.S

2018-11-14 Thread Nadav Amit
Changes in macros.S should trigger the recompilation of all C files, as the macros might need to affect their compilation. Acked-by: Ingo Molnar Signed-off-by: Nadav Amit --- scripts/Makefile.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.build

[PATCH v2 0/2] x86: Asm macros fixes

2018-11-14 Thread Nadav Amit
There has been a complaint that the recent use of assembly macros in C files broke distcc. The first patch fixes this issue. The second patch adds a dependency for all C files on macros.S, to trigger their recompilation when the relevant macros change. I think it will be better to get the

Re: [PATCH] serial: 8250: Default SERIAL_OF_PLATFORM to SERIAL_8250

2018-11-14 Thread Florian Fainelli
On November 14, 2018 5:11:25 PM PST, Guenter Roeck wrote: >On Thu, Nov 01, 2018 at 11:26:06AM -0700, Florian Fainelli wrote: >> It is way too easy to miss enabling SERIAL_OF_PLATFORM which would >> result in the inability for the kernel to have a valid console >device, >> which can be seen

Re: [PATCH v6 0/2] arm64: dts: add prng-ee nodes

2018-11-14 Thread Vinod Koul
On 01-10-18, 11:51, Vinod Koul wrote: > This adds prng-ee nodes for msm8996 and sdm845 Ping Andy, would appreciate if you can pick these up. Thanks > > changes in v6: > - Fix comments given by Stan > > changes in v5: > - Add more description in patch logs > > changes in v4: > - Fix node

[PATCH] vmw_balloon: update maintainers list

2018-11-14 Thread Nadav Amit
From: Xavier Deguillard Julien will be replacing me as the vmw_balloon maintainer. Cc: Julien Freche Signed-off-by: Xavier Deguillard Signed-off-by: Nadav Amit --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [PATCH] mm, memory_hotplug: check zone_movable in has_unmovable_pages

2018-11-14 Thread Baoquan He
On 11/15/18 at 11:13am, Baoquan He wrote: > On 11/06/18 at 10:55am, Michal Hocko wrote: > > From: Michal Hocko > > > > Page state checks are racy. Under a heavy memory workload (e.g. stress > > -m 200 -t 2h) it is quite easy to hit a race window when the page is > > allocated but its state is

[PATCH 4/5] switchtec: Improve MRPC efficiency by leveraging write combining

2018-11-14 Thread Wesley Sheng
From: Kelvin Cao MRPC Input buffer is mostly memory without any side effects, thus we can improve the access time by enabling write combining on only this region of the BAR. In a few places, we still need to flush the WC buffer. To do this, we simply read from the Outbound Doorbell register

[PATCH 5/5] switchtec: MRPC DMA mode implementation

2018-11-14 Thread Wesley Sheng
MRPC normal mode requires the host to read the MRPC command status and output data from BAR. This results in high latency responses from the Memory Read TLP and potential Completion Timeout (CTO). MRPC DMA mode implementation includes: Macro definitions for registers and data structures

[PATCH 3/5] switchtec: A temporary variable should be used for the flags of switchtec_ioctl_event_ctl

2018-11-14 Thread Wesley Sheng
From: Joey Zhang For nr_idxs is larger than 1 switchtec_ioctl_event_ctl event flags will be used by each event indexes. In current implementation the event flags are overwritten by first call of the function event_ctl(). Preserve the event flag value with a temporary variable. Fixes:

[PATCH 0/5] Switchtec MRPC DMA mode support

2018-11-14 Thread Wesley Sheng
Hi, Everyone, This patch series adds support for the Switchtec MRPC DMA mode. Switchtec switches supports 2 MRPC interaction modes: MRPC normal mode and MRPC DMA mode, a new feature in the latest firmware versions. MRPC normal mode requires the host to read the MRPC command status and output

[PATCH 2/5] switchtec: Set DMA coherent mask in Switchtec driver

2018-11-14 Thread Wesley Sheng
From: Boris Glimcher Switchtec hardware supports 64-bit DMA, set the correct DMA mask. This allows the CMA to allocate larger buffers for memory windows. Signed-off-by: Boris Glimcher Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 4 1 file changed, 4 insertions(+)

[PATCH 1/5] switchtec: Remove immediate status check after submit a MRPC command

2018-11-14 Thread Wesley Sheng
From: Kelvin Cao After submitting a Firmware Download MRPC command, Switchtec firmware will delay Management EP BAR MemRd TLP responses by more than 10ms. This is a firmware limitation. Delayed MemRd completions are problem for systems with a low Completion Timeout (CTO). The current driver

Re: [RFC/RFT][PATCH v5] cpuidle: New timer events oriented governor for tickless systems

2018-11-14 Thread Rafael J. Wysocki
On Sunday, November 11, 2018 4:40:17 PM CET Peter Zijlstra wrote: > On Thu, Nov 08, 2018 at 06:25:07PM +0100, Rafael J. Wysocki wrote: > > +unsigned int teo_idle_duration(struct cpuidle_driver *drv, > > + struct teo_cpu *cpu_data, > > + unsigned

[PATCH] arm64: dts: allwinner: h6: fix EMAC compatible string sequence

2018-11-14 Thread Icenowy Zheng
The SoC-specific compatible should come before the fallback compatible string when multiple compatible strings are present, but the sequence is wrong currently on H6 EMAC node (A64 fallback before H6 compatible). Fix the sequence. Fixes: c8ced5516d23 ("arm64: allwinner: h6: add EMAC device

Re: [PATCH] mm, memory_hotplug: check zone_movable in has_unmovable_pages

2018-11-14 Thread Baoquan He
On 11/06/18 at 10:55am, Michal Hocko wrote: > From: Michal Hocko > > Page state checks are racy. Under a heavy memory workload (e.g. stress > -m 200 -t 2h) it is quite easy to hit a race window when the page is > allocated but its state is not fully populated yet. A debugging patch to The

RE: [PATCH 10/23] PCI: mobiveil: fix the INTx process error

2018-11-14 Thread Z.q. Hou
Hi Subrahmanya, As NXP does not integrate Mobiveil's INTx and MSI interrupt controller, I am unable to test this fix. Can you help to test this fix? Thanks, Zhiqiang > -Original Message- > From: Z.q. Hou > Sent: 2018年11月6日 21:20 > To: linux-...@vger.kernel.org;

RE: [PATCH v2 2/4] dmaengine: xilinx_dma: Refactor axidma channel validation

2018-11-14 Thread Radhey Shyam Pandey
> -Original Message- > From: Vinod Koul > Sent: Sunday, November 11, 2018 2:30 AM > To: Radhey Shyam Pandey > Cc: dan.j.willi...@intel.com; Michal Simek ; Appana > Durga Kedareswara Rao ; dmaeng...@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org >

Re: [RFC/RFT][PATCH v5] cpuidle: New timer events oriented governor for tickless systems

2018-11-14 Thread Rafael J. Wysocki
On Sunday, November 11, 2018 4:20:34 PM CET Peter Zijlstra wrote: > On Thu, Nov 08, 2018 at 06:25:07PM +0100, Rafael J. Wysocki wrote: > > +/* > > + * The SPIKE value is added to metrics when they grow and the DECAY_SHIFT > > value > > + * is used for decreasing metrics on a regular basis. > > +

Re: [RFC/RFT][PATCH v5] cpuidle: New timer events oriented governor for tickless systems

2018-11-14 Thread Rafael J. Wysocki
On Saturday, November 10, 2018 8:10:01 PM CET Giovanni Gherdovich wrote: > On Thu, 2018-11-08 at 18:25 +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > Subject: [PATCH] cpuidle: New timer events oriented governor for tickless > > systems > > [cut] > [NOTE: the tables in this

RE: [PATCH 21/23] dt-bindings: pci: Add NXP LX SoCs PCIe controller

2018-11-14 Thread Z.q. Hou
Hi Leo, > -Original Message- > From: Leo Li > Sent: 2018年11月15日 2:52 > To: Z.q. Hou ; linux-...@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; bhelg...@google.com; robh...@kernel.org; > mark.rutl...@arm.com;

Re: [RFC/RFT][PATCH v3] cpuidle: New timer events oriented governor for tickless systems

2018-11-14 Thread Rafael J. Wysocki
On Wed, Nov 14, 2018 at 7:26 AM Doug Smythies wrote: > > On 2018.11.08 00:00 Rafael J. Wysocki wrote: > > On Wednesday, November 7, 2018 6:04:12 PM CET Doug Smythies wrote: > >> On 2018.11.04 08:31 Rafael J. Wysocki wrote: > > ...[snip]... > >> The results are: > >>

RE: [PATCH 15/23] dt-bindings: pci: mobiveil: change gpio_slave and apb_csr to optional

2018-11-14 Thread Z.q. Hou
Hi Subrahmanya, Thanks a lot for your ACK! Regards, Zhiqiang > -Original Message- > From: Subrahmanya Lingappa > Sent: 2018年11月14日 17:33 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org;

Re: [PATCH RFC v2 0/3] cleanups for pstore and ramoops

2018-11-14 Thread Joel Fernandes
On Wed, Nov 14, 2018 at 01:14:57AM -0600, Kees Cook wrote: > On Sat, Nov 3, 2018 at 6:38 PM, Joel Fernandes (Google) > wrote: > > Here are some simple cleanups and fixes for ramoops in pstore. Let me know > > what you think, thanks. > > I took these and slightly tweaked code locations for the

Re: [resend PATCH 1/3] pwm: mediatek: drop flag 'has_clks'

2018-11-14 Thread Ryder Lee
On Wed, 2018-11-14 at 14:27 +0100, John Crispin wrote: > On 14/11/2018 13:47, Thierry Reding wrote: > > On Tue, Nov 13, 2018 at 10:08:22AM +0800, Ryder Lee wrote: > >> The flag 'has_clks' and related checks are superfluous as the CCF > >> subsystem does this for you. > > Both of these mechanisms

Re: PEBS level 2/3 breaks dwarf unwinding! [WAS: Re: Broken dwarf unwinding - wrong stack pointer register value?]

2018-11-14 Thread Travis Downs
On Sun, Nov 11, 2018 at 10:26 PM Andi Kleen wrote: > On Sat, Nov 10, 2018 at 09:50:05PM -0500, Travis Downs wrote: > LBR is not part of PEBS, but is collected separately in the PMI handler. Thanks for clearing this up - so you can ignore any earlier suggestions on my part of trying to use LBR

[PATCH v3] scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks

2018-11-14 Thread Brian Norris
git-diff-index does not refresh the index for you, so using it for a "-dirty" check can give misleading results. Commit 6147b1cf19651 ("scripts/setlocalversion: git: Make -dirty check more robust") tried to fix this by switching to git-status, but it overlooked the fact that git-status also writes

Re: PEBS level 2/3 breaks dwarf unwinding! [WAS: Re: Broken dwarf unwinding - wrong stack pointer register value?]

2018-11-14 Thread Travis Downs
On Wed, Nov 14, 2018 at 8:20 AM Milian Wolff wrote: > 3) I suggest we always keep the first frame and sample IP from the user regs, > i.e. the accurate PEBS/IBS IP. Then we add the following frames from unwinding > the ustack with the iregs. Does this mean that the displayed unwind will

Re: [PATCH v2] scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks

2018-11-14 Thread Brian Norris
On Tue, Nov 13, 2018 at 2:03 PM Andreas Schwab wrote: > > On Nov 13 2018, Brian Norris wrote: > > > + } | grep -qv '^\(.. \)\?scripts/package'; then > > \? is a GNU extension, so if you want to stay portable you need to > switch to ERE. Ack. That's what I get for reading the GNU man

Re: [PATCH 1/2] Makefile: Fix distcc compilation with x86 macros

2018-11-14 Thread Logan Gunthorpe
On 14/11/18 06:57 PM, Nadav Amit wrote: > As long as the argument was *required* to get distcc to work at all, you > could expect people would figure out an argument is needed. In this case, I > suspect nobody will ever know about this argument (except you). I agree with this completely. >

Re: [PATCH 1/2] Makefile: Fix distcc compilation with x86 macros

2018-11-14 Thread Nadav Amit
From: Logan Gunthorpe Sent: November 15, 2018 at 1:19:45 AM GMT > To: Nadav Amit , Ingo Molnar > Cc: Ingo Molnar , Masahiro Yamada > , Michal Marek , > Thomas Gleixner , Borislav Petkov , H. > Peter Anvin , X86 ML , Linux Kbuild mailing > list , LKML > Subject: Re: [PATCH 1/2] Makefile: Fix

Re: [PATCH v3] mm: Create the new vm_fault_t type

2018-11-14 Thread Mike Rapoport
On Tue, Nov 06, 2018 at 05:36:42PM +0530, Souptick Joarder wrote: > Page fault handlers are supposed to return VM_FAULT codes, > but some drivers/file systems mistakenly return error > numbers. Now that all drivers/file systems have been converted > to use the vm_fault_t return type, change the

[PATCH -next] ASoC: amd: remove set but not used variable 'dma_buffer'

2018-11-14 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: sound/soc/amd/raven/acp3x-pcm-dma.c: In function 'acp3x_dma_hw_params': sound/soc/amd/raven/acp3x-pcm-dma.c:333:25: warning: variable 'dma_buffer' set but not used [-Wunused-but-set-variable] It never used since introduction in commit 8de1b5ed0337

Re: [PATCH 1/2] clocksource: meson6_timer: use register names from the datasheet

2018-11-14 Thread Daniel Lezcano
On 28/10/2018 13:55, Martin Blumenstingl wrote: > This makes the driver use the names from S805 datasheet for the > preprocessor #defines. This makes it easier to spot that the driver > currently only supports Timer A (as clockevent with interrupt support) > and Timer E (as clocksource without

Re: [RFC PATCH 01/13] arm: Fix mutual exclusion in arch_gettimeoffset

2018-11-14 Thread Michael Schmitz
On 14/11/18 8:58 PM, Russell King - ARM Linux wrote: Are you saying that's not possible on arm, because the current timer rundown counter can't be read while the timer is running? If I were to run a second timer at higher rate for clocksource, but keeping the 10 ms timer as clock event

[PATCH 1/1 v2] Bluetooth: make the balance of judgement condition to fix a false report

2018-11-14 Thread Zumeng Chen
This patch is to balance the condition scope between hci_get_cmd_complete and hci_event_packet about orig_skb as follows: if (req_complete_skb || event == HCI_EV_CMD_STATUS || event == HCI_EV_CMD_COMPLETE) orig_skb = skb_clone(skb, GFP_KERNEL); And

Urgent Respond Needed

2018-11-14 Thread Ibrahim Mohammed
I need am Honest Person to support and your cooperation with me in business of $26,700,000.00 thanks.

Re: [PATCH 1/2] Makefile: Fix distcc compilation with x86 macros

2018-11-14 Thread Logan Gunthorpe
On 14/11/18 10:46 AM, Nadav Amit wrote: > > Actually, we can just figure out whether distcc or icecc are used in the > Makefile according to the “version”, similarly to the way clang is detected. > This would neither require new Makefile arguments or Kconfig options. > > What do you say about

Re: [PATCH] serial: 8250: Default SERIAL_OF_PLATFORM to SERIAL_8250

2018-11-14 Thread Guenter Roeck
On Thu, Nov 01, 2018 at 11:26:06AM -0700, Florian Fainelli wrote: > It is way too easy to miss enabling SERIAL_OF_PLATFORM which would > result in the inability for the kernel to have a valid console device, > which can be seen with: > > Warning: unable to open an initial console. > > and then:

Re: [PATCH 2/2] fs/epoll: deal with wait_queue only once

2018-11-14 Thread Davidlohr Bueso
On Wed, 14 Nov 2018, Andrew Morton wrote: Why was this moved to before the ep_reset_busy_poll_napi_id() call? That movement placed the code ahead of the block comment which serves to explain its function. Yikes, that was a brain fart. This? Which also fixes that comment and reflows it to

Re: [PATCH] igb: Fix format with line continuation whitespace

2018-11-14 Thread Vinicius Costa Gomes
Joe Perches writes: > The line continuation unintentionally adds whitespace so > instead use a coalesced format to remove the whitespace. > > Miscellanea: > > o Use a more typical style for ternaries and arguments > for this logging message > > Signed-off-by: Joe Perches Acked-by: Vinicius

[PATCH v2 2/2] modpost: skip ELF local symbols by default during section mismatch check

2018-11-14 Thread Paul Walmsley
During development of a serial console driver with a gcc 8.2.0 toolchain for RISC-V, the following modpost warning appeared: WARNING: vmlinux.o(.data+0x19b10): Section mismatch in reference from the variable .LANCHOR1 to the function .init.text:sifive_serial_console_setup() The variable

[PATCH v2 1/2] modpost: drop unused command line switches

2018-11-14 Thread Paul Walmsley
Drop modpost command line switches that are no longer used by makefile.modpost, upon request from Sam Ravnborg , who wrote: modpost is not supposed to be used outside the kernel build. [...] I checked if there were any options supported by modpost that was not configurable in

[PATCH v2 0/2] modpost: skip section mismatch warnings on ELF local symbols by default

2018-11-14 Thread Paul Walmsley
modpost reports section mismatch warnings on ELF local symbols. This caused false positive warnings to be reported for a local symbol name that would otherwise be elided by matching against a name pattern. This was observed using a RISC-V gcc 8.2.0 toolchain that generates section anchors. To

Re: [PATCH 0/2] modpost: skip section mismatch warnings on ELF local symbols by default

2018-11-14 Thread Paul Walmsley
Hi Sam, On Sat, 20 Oct 2018, Sam Ravnborg wrote: modpost is not supposed to be used outside the kernel build. And therefore if we introduce a new option then the infrastructure to enable that option should also be in place. In this particular case I cannot see why we should add the possibility

Re: [PATCH v2 1/6] mm/gup: finish consolidating error handling

2018-11-14 Thread John Hubbard
On 11/12/18 8:14 AM, Dan Williams wrote: On Mon, Nov 12, 2018 at 7:45 AM Keith Busch wrote: On Sat, Nov 10, 2018 at 12:50:36AM -0800, john.hubb...@gmail.com wrote: From: John Hubbard An upcoming patch wants to be able to operate on each page that get_user_pages has retrieved. In order to

Re: [PATCH 5/7] doc/vm: New documentation for memory cache

2018-11-14 Thread Dave Hansen
On 11/14/18 2:49 PM, Keith Busch wrote: > + # tree sys/devices/system/node/node0/cache/ > + /sys/devices/system/node/node0/cache/ > + |-- index1 > + | |-- associativity > + | |-- level > + | |-- line_size > + | |-- size > + | `-- write_policy Whoops, and

Re: [PATCH 4/7] node: Add memory caching attributes

2018-11-14 Thread Dave Hansen
On 11/14/18 2:49 PM, Keith Busch wrote: > System memory may have side caches to help improve access speed. While > the system provided cache is transparent to the software accessing > these memory ranges, applications can optimize their own access based > on cache attributes. > > In preparation

[PATCH] userfaultfd: convert userfaultfd_ctx::refcount to refcount_t

2018-11-14 Thread Eric Biggers
From: Eric Biggers Reference counters should use refcount_t rather than atomic_t, since the refcount_t implementation can prevent overflows, reducing the exploitability of reference leak bugs. userfaultfd_ctx::refcount is a reference counter with the usual semantics, so convert it to

Re: [PATCH v2] HID: uhid: forbid UHID_CREATE under KERNEL_DS or elevated privileges

2018-11-14 Thread Andy Lutomirski
> On Nov 14, 2018, at 2:46 PM, Dmitry Torokhov wrote: > >> On Wed, Nov 14, 2018 at 2:38 PM Jann Horn wrote: >> >>> On Wed, Nov 14, 2018 at 11:29 PM Dmitry Torokhov wrote: On Wed, Nov 14, 2018 at 2:05 PM Jann Horn wrote: > On Wed, Nov 14, 2018 at 10:55 PM Eric Biggers wrote:

[PATCH] userfaultfd: convert userfaultfd_ctx::refcount to refcount_t

2018-11-14 Thread Eric Biggers
From: Eric Biggers Reference counters should use refcount_t rather than atomic_t, since the refcount_t implementation can prevent overflows, reducing the exploitability of reference leak bugs. userfaultfd_ctx::refcount is a reference counter with the usual semantics, so convert it to

[PATCH 1/2] lib/zstd: mark several internal functions as static

2018-11-14 Thread Adeodato Simó
This silences -Wmissing-prototypes. Signed-off-by: Adeodato Simó --- It was suggested in the kernel-janitors mailing list that silencing -Wmissing-prototypes would make for a worthy cause. https://www.spinics.net/lists/linux-kernel-janitors/msg43981.html I know the original commit for zstd

[PATCH] RISC-V: Fix raw_copy_{to,from}_user()

2018-11-14 Thread Olof Johansson
Sparse highlighted it, and appears to be a pure bug (from vs to). ./arch/riscv/include/asm/uaccess.h:403:35: warning: incorrect type in argument 1 (different address spaces) ./arch/riscv/include/asm/uaccess.h:403:39: warning: incorrect type in argument 2 (different address spaces)

Re: [PATCH] l1tf: drop the swap storage limit restriction when l1tf=off

2018-11-14 Thread Andi Kleen
On Tue, Nov 13, 2018 at 07:49:10PM +0100, Michal Hocko wrote: > From: Michal Hocko > > Swap storage is restricted to max_swapfile_size (~16TB on x86_64) > whenever the system is deemed affected by L1TF vulnerability. Even > though the limit is quite high for most deployments it seems to be > too

[PATCH 2/2] lib/zstd: mark some internal functions as static with ZSTD_STATIC

2018-11-14 Thread Adeodato Simó
Use ZSTD_STATIC instead of vanilla static because the functions are actually unused, and the macro adds the unused attribute. This silences -Wmissing-prototypes when defining. Signed-off-by: Adeodato Simó --- I separated these two functions into a separate patch because they are actually

Re: [PATCH anybus v2 3/5] bus: support HMS Anybus-S bus.

2018-11-14 Thread kbuild test robot
Hi Sven, Thank you for the patch! Yet something to improve: [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on v4.20-rc2 next-20181114] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

[GIT PULL] Please pull NFS fixes for 4.20

2018-11-14 Thread Trond Myklebust
Hi Linus, The following changes since commit ccda4af0f4b92f7b4c308d3acc262f4a7e3affad: Linux 4.20-rc2 (2018-11-11 17:12:31 -0600) are available in the Git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-4.20-3 for you to fetch changes up to

Re: [PATCH v6 2/2] sched/fair: update scale invariance of PELT

2018-11-14 Thread Vincent Guittot
On Mon, 12 Nov 2018 at 18:53, Dietmar Eggemann wrote: > > On 11/9/18 8:20 AM, Vincent Guittot wrote: > > [...] > > > In order to achieve this time scaling, a new clock_pelt is created per rq. > > The increase of this clock scales with current capacity when something > > is running on rq and

Re: [RFC PATCH 06/13] m68k: Drop ARCH_USES_GETTIMEOFFSET

2018-11-14 Thread Michael Schmitz
Hi Finn, On 14/11/18 3:58 PM, Michael Schmitz wrote: Hi Finn, Am 14.11.2018 um 14:08 schrieb Michael Schmitz: Can you also test tree fbf8405cd982 please? My tests were on c606b5cf902 in case it wasn't clear. I've now seen fbf8405cd982, one moment please ... That one does appear to work -

[PATCH] mm: use managed_zone() for more exact check in zone iteration

2018-11-14 Thread Wei Yang
For one zone, there are three digits to describe its space range: spanned_pages present_pages managed_pages The detailed meaning is written in include/linux/mmzone.h. This patch concerns about the last two. present_pages is physical pages existing within the zone

Re: [PATCH] mm/usercopy: Use memory range to be accessed for wraparound check

2018-11-14 Thread Kees Cook
On Tue, Nov 13, 2018 at 6:51 PM, Isaac J. Manjarres wrote: > Currently, when checking to see if accessing n bytes starting at > address "ptr" will cause a wraparound in the memory addresses, > the check in check_bogus_address() adds an extra byte, which is > incorrect, as the range of addresses

  1   2   3   4   5   6   7   >