Re: [PATCH v2] mm/swap.c: make functions and their kernel-doc agree

2018-01-30 Thread Matthew Wilcox
On Tue, Jan 30, 2018 at 01:34:00PM +0100, Michal Hocko wrote: > On Mon 29-01-18 16:43:55, Randy Dunlap wrote: > > - for function pagevec_lookup_entries(), change the function parameter > > name from nr_pages to nr_entries since that is more descriptive of > > what the parameter actually is and

Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-30 Thread Michal Hocko
On Wed 31-01-18 07:55:05, Anshuman Khandual wrote: > On 01/30/2018 01:29 PM, Michal Hocko wrote: > > On Tue 30-01-18 08:37:14, Anshuman Khandual wrote: > >> alloc_contig_range() initiates compaction and eventual migration for > >> the purpose of either CMA or HugeTLB allocation. At present, reason

Re: 4.15: WARNING: CPU: 3 PID: 258 at kernel/irq/chip.c:244 __irq_startup+0x80/0x100

2018-01-30 Thread Thomas Gleixner
On Wed, 31 Jan 2018, Meelis Roos wrote: > > > Your supply of vintage hardware is amazing. > > :-) > > > Does the patch below fix the issue for you? > > CC kernel/irq/autoprobe.o > kernel/irq/autoprobe.c: In function ‘probe_irq_on’: > kernel/irq/autoprobe.c:74:8: error: void value not igno

[PATCH] powerpc/epapr: Move register keyword at the beginning of declaration

2018-01-30 Thread Mathieu Malaterre
Fix warning for all register unsigned long (0,3-12) that appear during W=1 compilation: ./arch/powerpc/include/asm/epapr_hcalls.h:479:2: warning: ‘register’ is not at beginning of declaration [-Wold-style-declaration] unsigned long register r[\d] asm("r[\d]"); Signed-off-by: Mathieu Malaterre

Re: [PATCH v5 08/13] iommu/rockchip: Control clocks needed to access the IOMMU

2018-01-30 Thread Tomasz Figa
Hi Rob, On Wed, Jan 31, 2018 at 2:05 AM, Rob Herring wrote: > On Wed, Jan 24, 2018 at 06:35:11PM +0800, Jeffy Chen wrote: >> From: Tomasz Figa >> >> Current code relies on master driver enabling necessary clocks before >> IOMMU is accessed, however there are cases when the IOMMU should be >> acc

Re: [RFC PATCH 0/8] [media] Request API, take three

2018-01-30 Thread Hans Verkuil
On 01/30/2018 07:31 AM, Alexandre Courbot wrote: > Hi Hans, > > On Mon, Jan 29, 2018 at 8:21 PM, Hans Verkuil wrote: >> On 01/26/2018 07:02 AM, Alexandre Courbot wrote: >>> Howdy. Here is your bi-weekly request API redesign! ;) >>> >>> Again, this is a simple version that only implements the flow

Re: [PATCH v2] MIPS: fix incorrect mem=X@Y handling

2018-01-30 Thread Mathieu Malaterre
Hi Marcin, Since it's been a week, could you confirm the patch is ok as-is or do you think some comment(s) from James should be incorporated ? On Tue, Jan 23, 2018 at 3:17 PM, James Hogan wrote: > On Thu, Dec 21, 2017 at 10:00:59PM +0100, Mathieu Malaterre wrote: >> From: Marcin Nowakowski >> >

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

2018-01-30 Thread Ryder Lee
As the new MFD parent is in place, switch probing method to adapt it. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk-mt7622-aud.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt7622-aud.c b/drivers/clk/mediatek/clk-mt7622-aud.c index 13f7

[PATCH v2 0/5] add MFD support for MediaTek audio subsystem

2018-01-30 Thread Ryder Lee
Hi, This is the 2nd version of the patch sets which modify clock driver to adapt audio subsystem. I still keeping 'simple-mfd' in the binding for discussion. Rob, let me know if there is any problem with this. changes since v2: - Drop useless changes in clk-mt7622-aud.c. - Revise binding text:

[PATCH v2 1/5] clk: mediatek: update missing clock data for MT7622 audsys

2018-01-30 Thread Ryder Lee
Add missing clock data 'CLK_AUDIO_AFE_CONN' for MT7622 audsys. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/clk-mt7622-aud.c | 1 + include/dt-bindings/clock/mt7622-clk.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt7622-aud.c b/drivers

[PATCH v4] Fix loading of module radeonfb on PowerMac

2018-01-30 Thread Mathieu Malaterre
When the linux kernel is build with (typical kernel ship with Debian installer): CONFIG_FB_OF=y CONFIG_VT_HW_CONSOLE_BINDING=y CONFIG_FB_RADEON=m The offb driver takes precedence over module radeonfb. It is then impossible to load the module, error reported is: [ 96.551486] radeonfb :00:10

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

2018-01-30 Thread Ryder Lee
As the MediaTek audio hardware block that expose functionalities that are handled by separate subsystems in the kernel, and there are registers that are shared between related drivers. Switch the current device to an MFD device, add more descriptions about the subsystem and modify example accordin

[PATCH v2 3/5] clk: mediatek: add audsys support for MT2701

2018-01-30 Thread Ryder Lee
Add clock driver support for MT2701 audsys. Signed-off-by: Ryder Lee --- drivers/clk/mediatek/Kconfig | 6 ++ drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt2701-aud.c | 175 ++ 3 files changed, 182 insertions(+) create mode

[PATCH v2 5/5] arm: dts: mediatek: add audio-subsystem node for both MT2701 and MT7623

2018-01-30 Thread Ryder Lee
Add audio-subsystem node and its clock support for both MT2701/MT7623. Then modify afe node to adapt it. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 192 - arch/arm/boot/dts/mt7623.dtsi | 193 +- 2 f

Re: [linux-sunxi] Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-30 Thread Maxime Ripard
Hi Liviu, On Wed, Jan 31, 2018 at 03:08:08AM +, Liviu Dudau wrote: > On Fri, Jan 26, 2018 at 11:00:41AM +0800, Yong wrote: > > Hi Maxime, > > > > On Fri, 26 Jan 2018 09:46:58 +0800 > > Yong wrote: > > > > > Hi Maxime, > > > > > > Do you have any experience in solving this problem? > > > It

[PATCH 2/2] dt-bindings: PCI: MediaTek: Correct the interrupt-map properties

2018-01-30 Thread Ryder Lee
Move the interrupt-map properties from the child nodes to the root node and update each entry accordingly. Signed-off-by: Ryder Lee --- .../devicetree/bindings/pci/mediatek-pcie.txt | 28 -- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/Documentation/de

[PATCH 1/2] of_pci_irq: add a check to fallback to standard device tree parsing

2018-01-30 Thread Ryder Lee
A root complex usually consist of a host bridge and multiple P2P bridges, and someone may express that in the form of a root node with many subnodes and list all four interrupts for each slot (child node) in the root node like this: pcie-controller { ... int

RE: [PATCH 1/1] scsi: ufs: make sure all interrupts are processed

2018-01-30 Thread Avri Altman
Hi, Can you elaborate how this can even happen? Isn't the interrupt aggregation capability should attend for those cases? Thanks, Avri > -Original Message- > From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- > ow...@vger.kernel.org] On Behalf Of Asutosh Das > Sent: Tuesday, Janua

Re: [PATCH v6 4/6] media: i2c: Add TDA1997x HDMI receiver driver

2018-01-30 Thread Hans Verkuil
On 01/31/2018 05:51 AM, Tim Harvey wrote: > On Mon, Jan 29, 2018 at 4:00 AM, Hans Verkuil wrote: >> On 01/25/2018 05:15 PM, Tim Harvey wrote: > Hmm. This receiver supports multiple output formats, but you advertise only one. That looks wrong. If nothing else, you should be ab

Re: Re: [PATCH 2/2] dmaengine: dmatest: add norandom option

2018-01-30 Thread Yang, Shunyong
Hi, Vinod On Wed, 2018-01-31 at 13:04 +0530, Vinod Koul wrote: > On Mon, Jan 22, 2018 at 06:44:41PM +0800, Yang Shunyong wrote: > > > > Existing option noverify disables both random src/dst address > > offset > > setup and data verification. Sometimes, we need to control random > > src/dst addres

Re: [PATCH 4.14 00/71] 4.14.16-stable review

2018-01-30 Thread Ozkan Sezer
> This is the start of the stable review cycle for the 4.14.16 release. > There are 71 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. The "futex Fix OWNER_DEAD fixup" patch still isn't in ? https://g

Re: [PATCH 7/8] Input: mms114 - add SPDX identifier

2018-01-30 Thread Marcus Folkesson
Hi Andy, On Wed, Jan 31, 2018 at 03:07:26PM +0900, Andi Shyti wrote: > Hi Dmitry, > > > > -/* > > > - * Copyright (C) 2012 Samsung Electronics Co.Ltd > > > - * Author: Joonyoung Shim > > > - * > > > - * This program is free software; you can redistribute it and/or modify > > > - * it under the t

Re: [Intel-wired-lan] [RFC PATCH] e1000e: Remove Other from EIAC.

2018-01-30 Thread Benjamin Poirier
On 2018/01/30 11:46, Alexander Duyck wrote: > On Wed, Jan 17, 2018 at 10:50 PM, Benjamin Poirier wrote: > > It was reported that emulated e1000e devices in vmware esxi 6.5 Build > > 7526125 do not link up after commit 4aea7a5c5e94 ("e1000e: Avoid receiver > > overrun interrupt bursts", v4.15-rc1).

Re: [PATCH 2/2] dmaengine: dmatest: add norandom option

2018-01-30 Thread Vinod Koul
On Mon, Jan 22, 2018 at 06:44:41PM +0800, Yang Shunyong wrote: > Existing option noverify disables both random src/dst address offset > setup and data verification. Sometimes, we need to control random > src/dst address setup and verification separately, such as disabling > random to make sure that

[PATCH v21 4/4] soc: mediatek: Add Mediatek CMDQ helper

2018-01-30 Thread houlong.wei
From: "hs.l...@mediatek.com" Add Mediatek CMDQ helper to create CMDQ packet and assemble GCE op code. Signed-off-by: Houlong Wei Signed-off-by: HS Liao --- drivers/soc/mediatek/Kconfig | 12 ++ drivers/soc/mediatek/Makefile |1 + drivers/soc/mediatek/mtk-cmdq-helper.c

[PATCH v21 3/4] arm64: dts: mt8173: Add GCE node

2018-01-30 Thread houlong.wei
From: "hs.l...@mediatek.com" This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: Houlong Wei Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt817

[PATCH v21 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2018-01-30 Thread houlong.wei
From: "hs.l...@mediatek.com" This patch is first version of Mediatek Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requi

Re: [PATCH v2 2/2] ARM: dts: imx25-pinfunc: Always set SION for eSDHC CMD

2018-01-30 Thread Uwe Kleine-König
Hello Benoît, On Wed, Jan 31, 2018 at 01:05:14AM +0100, Benoît Thébaudeau wrote: > The eSDHC does not work properly if the SION bit is not set for the > bidirectional CMD signal, whatever the eSDHC instance and the selected > pad. Therefore, setting SION is mandatory for all eSDHC CMD ports. Do >

[PATCH v21 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2018-01-30 Thread houlong.wei
From: "hs.l...@mediatek.com" This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: Houlong Wei Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt| 43 1 file chan

[PATCH v21 0/4] Mediatek MT8173 CMDQ support

2018-01-30 Thread houlong.wei
Hi, This is Mediatek MT8173 Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirement. Changes since v20: -rebase to v

Re: [PATCH v6 0/4] x86, kasan: add KASAN checks to atomic operations

2018-01-30 Thread Ingo Molnar
* Will Deacon wrote: > Hi Dmitry, > > On Mon, Jan 29, 2018 at 06:26:03PM +0100, Dmitry Vyukov wrote: > > KASAN uses compiler instrumentation to intercept all memory accesses. > > But it does not see memory accesses done in assembly code. > > One notable user of assembly code is atomic operation

Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-30 Thread Maxime Ripard
Hi Thierry, On Tue, Jan 30, 2018 at 11:01:50AM +0100, Thierry Reding wrote: > On Tue, Jan 30, 2018 at 10:59:16AM +0100, Thierry Reding wrote: > > On Tue, Jan 30, 2018 at 10:24:48AM +0100, Arnd Bergmann wrote: > > > On Tue, Jan 30, 2018 at 8:54 AM, Maxime Ripard > > > wrote: > > > > On Mon, Jan 29

Re: WARNING in refcount_inc (2)

2018-01-30 Thread Eric Biggers
On Tue, Dec 19, 2017 at 11:26:01AM -0800, syzbot wrote: > syzkaller has found reproducer for the following crash on > 6084b576dca2e898f5c101baef151f7bfdbb606d > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw

Re: [PATCH v2 1/2] ARM: dts: imx25-pinfunc: Use consistent naming for eSDHC

2018-01-30 Thread Uwe Kleine-König
Hello, On Wed, Jan 31, 2018 at 01:05:13AM +0100, Benoît Thébaudeau wrote: > This file had several naming inconsistencies for eSDHC: > - the instances were named sometimes SDn, sometimes SDHCn, whereas they >are named ESDHCn in the reference manual, e.g.: > MX25_PAD_SD1_CMD__SD1_CMD >

[PATCH net] e1000e: Remove Other from EIAC.

2018-01-30 Thread Benjamin Poirier
It was reported that emulated e1000e devices in vmware esxi 6.5 Build 7526125 do not link up after commit 4aea7a5c5e94 ("e1000e: Avoid receiver overrun interrupt bursts", v4.15-rc1). Some tracing shows that after e1000e_trigger_lsc() is called, ICR reads out as 0x0 in e1000_msix_other() on emulated

Re: BUG: unable to handle kernel NULL pointer dereference in sctp_stream_free

2018-01-30 Thread Marcelo Ricardo Leitner
On Tue, Jan 30, 2018 at 03:03:50PM -0800, Eric Biggers wrote: > On Fri, Dec 22, 2017 at 01:31:26PM +0800, Xin Long wrote: > > On Thu, Dec 21, 2017 at 9:13 PM, Marcelo Ricardo Leitner > > wrote: > > > On Wed, Dec 20, 2017 at 12:51:01PM -0800, syzbot wrote: > > > > > > from the log: > > > [ 89.451

Re: 4.15: WARNING: CPU: 3 PID: 258 at kernel/irq/chip.c:244 __irq_startup+0x80/0x100

2018-01-30 Thread Meelis Roos
> > Your supply of vintage hardware is amazing. :-) > Does the patch below fix the issue for you? CC kernel/irq/autoprobe.o kernel/irq/autoprobe.c: In function ‘probe_irq_on’: kernel/irq/autoprobe.c:74:8: error: void value not ignored as it ought to be if (irq_activate_and_startup(des

Re: [PATCH] Documentation/process: kernel maintainer PGP guide

2018-01-30 Thread Jani Nikula
On Tue, 30 Jan 2018, Konstantin Ryabitsev wrote: > This guide is an adapted version of the more general "Protecting Code > Integrity" guide written and maintained by The Linux Foundation IT for > use with open-source projects. It provides the oft-lacking guidance on > the following topics: > > -

Re: [PATCH] mm/swap: add function get_total_swap_pages to expose total_swap_pages

2018-01-30 Thread Chunming Zhou
Hi Roger, I think this patch isn't need at all. You can directly read total_swap_pages variable in TTM. See the comment: /* protected with swap_lock. reading in vm_swap_full() doesn't need lock */ long total_swap_pages; there are many places using it directly, you just couldn't change its va

Re: [PATCH 2/2] f2fs: support {d,id,did,x}node checksum

2018-01-30 Thread Chao Yu
On 2018/1/31 10:02, Jaegeuk Kim wrote: > What if we want to add more entries in addition to node_checksum? Do we have > to add a new feature flag at every time? How about adding a layout value > instead Hmm.. for previous implementation, IMO, we'd better add a new feature flag at every time, othe

[PATCH] binder: check for binder_thread allocation failure in binder_poll()

2018-01-30 Thread Eric Biggers
From: Eric Biggers If the kzalloc() in binder_get_thread() fails, binder_poll() dereferences the resulting NULL pointer. Fix it by returning POLLERR if the memory allocation failed. This bug was found by syzkaller using fault injection. Reported-by: syzbot Fixes: 457b9a6f09f0 ("Staging: andro

Re: [PATCH v11 0/3] mm, x86, powerpc: Enhancements to Memory Protection Keys.

2018-01-30 Thread Ingo Molnar
* Ram Pai wrote: > This patch series provides arch-neutral enhancements to > enable memory-keys on new architecutes, and the corresponding > changes in x86 and powerpc specific code to support that. > > a) Provides ability to support upto 32 keys. PowerPC > can handle 32 keys and hence n

Re: [tip:x86/pti] x86/speculation: Use Indirect Branch Prediction Barrier in context switch

2018-01-30 Thread Dominik Brodowski
On Tue, Jan 30, 2018 at 02:39:45PM -0800, tip-bot for Tim Chen wrote: > Commit-ID: 18bf3c3ea8ece8f03b6fc58508f2dfd23c7711c7 > Gitweb: > https://git.kernel.org/tip/18bf3c3ea8ece8f03b6fc58508f2dfd23c7711c7 > Author: Tim Chen > AuthorDate: Mon, 29 Jan 2018 22:04:47 + > Committer: Thoma

Re: [PATCH 1/8] thermal/drivers/cpu_cooling: Fixup the header and copyright

2018-01-30 Thread Daniel Lezcano
On 31/01/2018 06:17, Viresh Kumar wrote: > On 23-01-18, 16:34, Daniel Lezcano wrote: >> The copyright format does not conform to the format requested by >> Linaro: https://wiki.linaro.org/Copyright >> >> Fix it. >> >> Signed-off-by: Daniel Lezcano >> --- >> drivers/thermal/cpu_cooling.c | 6 -

Re: BUG: unable to handle kernel NULL pointer dereference in binder_poll

2018-01-30 Thread Eric Biggers
On Mon, Dec 18, 2017 at 08:23:01AM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 6084b576dca2e898f5c101baef151f7bfdbb606d > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console o

[PATCH] kbuild/gcc-plugin: drop randomize_layout_hash.h from targets

2018-01-30 Thread Cao jin
randomize_layout_hash.h is not used in plugin compilation, but locates in include/generated/ Signed-off-by: Cao jin --- scripts/gcc-plugins/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile index e2ff425f4c7e.

Re: [PATCH v3 0/4] KVM: Expose speculation control feature to guests

2018-01-30 Thread Dave Hansen
On 01/30/2018 04:16 PM, Paolo Bonzini wrote: > On 30/01/2018 18:48, Raj, Ashok wrote: >>> Certainly not every vmexit! But doing it on every userspace vmexit and >>> every sched_out would not be *that* bad. >> Right.. agreed. We discussed the different scenarios that doing IBPB >> on VMexit would h

[GIT PULL] s390 patches for the 4.15 merge window

2018-01-30 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: Bug fixes, small improvements and one notable change: * The system call table and the unistd.h header are now generated auto

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

2018-01-30 Thread Eric Biggers
On Fri, Jan 12, 2018 at 02:58:02PM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 4147d50978df60f34d444c647dde9e5b34a4315e > git://git.cmpxchg.org/linux-mmots.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > C repro

Re: [GIT pull] Timer core updates for 4.16

2018-01-30 Thread Ingo Molnar
* Linus Torvalds wrote: > On Mon, Jan 29, 2018 at 10:30 PM, Ingo Molnar wrote: > > > > These are in cases significant driver simplifications, but they also enable > > the > > real deal, the elimination of the hrtimer tasklet: > > > > softirq: Remove tasklet_hrtimer > > > >include/linux/in

[PATCH] platform/x86: intel_pmc_core: Remove unused header file

2018-01-30 Thread Rajneesh Bhardwaj
Recently sent patch 'platform/x86: intel_pmc_core: Remove unused EXPORTED API' missed to remove the header file 'arch/x86/include/asm/pmc_core.h' which was solely used to declare the EXPORTED API 'intel_pmc_slp_s0_counter_read'. This patch provides the errata fix for the same. Signed-off-by: Rajne

[git pull] assorted vfs stuff

2018-01-30 Thread Al Viro
All kinds of misc stuff, without any unifying topic, from various people. Neil's d_anon patch, several bugfixes, introduction of kvmalloc analogue of kmemdup_user(), extending bitfield.h to deal with fixed-endians, assorted cleanups all over the place... The following changes since commit

[PATCH] Staging: speakup: Fixed a multiple assignment issue

2018-01-30 Thread Shannon Booth
Fixed a coding style issue. Signed-off-by: Shannon Booth --- drivers/staging/speakup/main.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c index cf12590..b721f41 100644 --- a/drivers/staging/speakup/mai

Re: [PATCH 4/4] objtool: Don't print '.tmp_' prefix for .o files

2018-01-30 Thread Ingo Molnar
* Josh Poimboeuf wrote: > On Tue, Jan 30, 2018 at 10:58:31AM +0100, Peter Zijlstra wrote: > > On Mon, Jan 29, 2018 at 10:00:42PM -0600, Josh Poimboeuf wrote: > > > With the following commit: > > > > > > 2a0098d70640 ("objtool: Fix seg fault with gold linker") > > > > > > ... objtool warnings

[git pull] get_user_pages_fast() stuff

2018-01-30 Thread Al Viro
A bit more get_user_pages work. The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: Linux 4.15-rc1 (2017-11-26 16:01:47 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.get_user_pages_fast for y

Re: [PATCH 7/8] Input: mms114 - add SPDX identifier

2018-01-30 Thread Andi Shyti
Hi Dmitry, > > -/* > > - * Copyright (C) 2012 Samsung Electronics Co.Ltd > > - * Author: Joonyoung Shim > > - * > > - * This program is free software; you can redistribute it and/or modify > > - * it under the terms of the GNU General Public License version 2 as > > - * published by the Free Soft

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

2018-01-30 Thread Eric Biggers
On Thu, Dec 14, 2017 at 10:23:01AM -0800, syzbot wrote: > syzkaller has found reproducer for the following crash on > 82bcf1def3b5f1251177ad47c44f7e17af039b4b > git://git.cmpxchg.org/linux-mmots.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached.

Re: [RFC 1/2] arm: cacheflush syscall: process only pages that are in the memory

2018-01-30 Thread Inki Dae
Hi Russell, 2018년 01월 27일 06:39에 Russell King - ARM Linux 이(가) 쓴 글: > On Fri, Jan 26, 2018 at 02:30:47PM +0100, Marek Szyprowski wrote: >> Hi Russell, >> >> On 2018-01-26 12:32, Russell King - ARM Linux wrote: >>> On Fri, Jan 26, 2018 at 12:14:40PM +0100, Marek Szyprowski wrote: glibc in call

Re: [PATCH] f2fs: add sanity check for quota sysfile ino

2018-01-30 Thread Chao Yu
On 2018/1/31 11:49, Jaegeuk Kim wrote: > On 01/31, Chao Yu wrote: >> On 2018/1/31 10:36, Jaegeuk Kim wrote: >>> On 01/31, Chao Yu wrote: On 2018/1/31 9:35, Jaegeuk Kim wrote: > On 01/29, Chao Yu wrote: >> Add missing sanity check for quota sysfile ino. > > We don't need to limi

[PATCH] ASoC: mt8173-rt5650: fix child-node lookup

2018-01-30 Thread Johan Hovold
This driver used the wrong OF-helper when looking up the optional capture-codec child node during probe. Instead of searching just children of the sound node, a tree-wide depth-first search starting at the unrelated platform node was done. Not only could this end up matching an unrelated node or no

linux-next: Tree for Jan 31

2018-01-30 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 20180130: The userns tree still had its build failure for which I added a patch. Non-merge commits (relative to Linus' tree): 9881 9859 files ch

Re: [PATCH] x86/paravirt: Remove 'noreplace-paravirt' cmdline option

2018-01-30 Thread Juergen Gross
On 31/01/18 05:13, Josh Poimboeuf wrote: > The 'noreplace-paravirt' option disables paravirt patching, leaving the > original pv indirect calls in place. > > That's highly incompatible with retpolines, unless we want to uglify > paravirt even further and convert the paravirt calls to retpolines. >

RE: [PATCH] mm/swap: add function get_total_swap_pages to expose total_swap_pages

2018-01-30 Thread He, Roger
I do think you should completely ignore the size of the swap space. IMHO you should forbid further allocations when your currentbuffer storage cannot be reclaimed. So you need some form of feedback mechanism that would tell you: "Your buffers have grown too much". If you

[PATCH v1] mm: optimize memory hotplug

2018-01-30 Thread Pavel Tatashin
This patch was inspired by the discussion of this problem: http://lkml.kernel.org/r/20180130083006.gb1...@in.ibm.com Currently, during memory hotplugging we traverse struct pages several times: 1. memset(0) in sparse_add_one_section() 2. loop in __add_section() to set do: set_page_node(page, nid)

Re: WARNING in __switch_to (2)

2018-01-30 Thread Eric Biggers
On Thu, Jan 04, 2018 at 08:58:00PM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 37759fa6d0fa9e4d6036d19ac12f555bfc0aeafd > git://git.cmpxchg.org/linux-mmots.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > C repro

[PATCH v2 0/3] restructure memfd code

2018-01-30 Thread Mike Kravetz
I've had these patches sitting around for a few months. They are not critical, but might be desirable in some unusual configurations. They depend on code in mmotm and linux-next that is not yet upstream, and apply to those repos. With the addition of memfd hugetlbfs support, we now have the situ

[PATCH] libceph: use 64-bit arithmetic instead of 32-bit

2018-01-30 Thread Gustavo A. R. Silva
Cast objsetno to u64 in order to give the compiler complete information about the proper arithmetic to use. Notice that this variable is used in a context that expects an expression of type u64 (64 bits, unsigned). The expression objsetno * sc + stripepos is currently being evaluated using 32-bit

Re: [PATCH 3/8] thermal/drivers/cpu_cooling: Remove pointless field

2018-01-30 Thread Viresh Kumar
On 23-01-18, 16:34, Daniel Lezcano wrote: > The structure cpufreq_cooling_device provides a backpointer to the thermal > device but this one is used for a trace and to unregister. For the trace, > we don't really need this field and the unregister function as the same > pointer passed as parameter.

Re: [PATCH 2/8] thermal/drivers/cpu_cooling: Add Software Package Data Exchange (SPDX)

2018-01-30 Thread Viresh Kumar
On 23-01-18, 16:34, Daniel Lezcano wrote: > For license auditing purpose, let's add the SPDX tag. > > Cc: Philippe Ombredanne > Signed-off-by: Daniel Lezcano > --- > drivers/thermal/cpu_cooling.c | 16 +--- > 1 file changed, 1 insertion(+), 15 deletions(-) > > diff --git a/drivers/

Re: [PATCH 1/8] thermal/drivers/cpu_cooling: Fixup the header and copyright

2018-01-30 Thread Viresh Kumar
On 23-01-18, 16:34, Daniel Lezcano wrote: > The copyright format does not conform to the format requested by > Linaro: https://wiki.linaro.org/Copyright > > Fix it. > > Signed-off-by: Daniel Lezcano > --- > drivers/thermal/cpu_cooling.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions

[PATCH 2/4] cred: add get_cred_rcu()

2018-01-30 Thread NeilBrown
Sometimes we want to opportunistically get a ref to a cred in an rcu_read_lock protected section. get_task_cred() does this, and NFS does as similar thing with its own credential structures. To prepare for NFS converting to use 'struct cred' more uniformly, define get_cred_rcu(), and use it in get_

[PATCH 4/4] cred: allow get_cred() and put_cred() to be given NULL.

2018-01-30 Thread NeilBrown
It is common practice of helps like this so silently, accept a NULL pointer. get_rpccred() and put_rpccred() used by NFS act this way and using the same interface will ease the conversion for NFS, and simplify the resulting code. Signed-off-by: NeilBrown --- include/linux/cred.h | 14 +

[PATCH 3/4] cred: export get_task_cred().

2018-01-30 Thread NeilBrown
There is no reason that modules should not be able to use this, and NFS will need it when converted to use 'struct cred'. Signed-off-by: NeilBrown --- kernel/cred.c |1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cred.c b/kernel/cred.c index f11aa4e0d2b9..3e43bde1fd3c 100644 --- a/

[md PATCH 0/4] Minor 'cred' improvements prepare for NFS conversion

2018-01-30 Thread NeilBrown
Hi, NFS and SUNRPC have an internal "rpc_cred" which plays two distinct roles, one of which is much the same as 'struct cred' (which didn't exist when rpc_cred was created). I want to replace that usage of rpc_cred with 'struct cred'. Doing so requires some minor improvements to cred.c and cre

[PATCH 1/4] cred: add cred_fscmp() for comparing creds.

2018-01-30 Thread NeilBrown
NFS needs to compare to credentials, to see if they can be treated the same w.r.t. filesystem access. Sometimes an ordering is needed when credentials are used as a key to an rbtree. NFS current has its own private credential management from before 'struct cred' existed. To move it over to more c

Re: ppc elf_map breakage with MAP_FIXED_NOREPLACE

2018-01-30 Thread Anshuman Khandual
On 01/30/2018 03:12 PM, Michal Hocko wrote: > On Tue 30-01-18 14:35:12, Michael Ellerman wrote: >> Michal Hocko writes: >> >>> On Mon 29-01-18 11:02:09, Anshuman Khandual wrote: On 01/29/2018 08:17 AM, Anshuman Khandual wrote: > On 01/26/2018 07:34 PM, Michal Hocko wrote: >> On Fri 26

[PATCH v3] iommu/amd: Add support for fast IOTLB flushing

2018-01-30 Thread Suravee Suthikulpanit
Implement the newly added IOTLB flushing interface for AMD IOMMU. Cc: Joerg Roedel Signed-off-by: Suravee Suthikulpanit --- Changes from v2 (https://lkml.org/lkml/2017/12/27/44) * Call domain_flush_complete() after domain_flush_tlb_pde(). drivers/iommu/amd_iommu.c | 77 +

Re: [PATCH v6 01/41] dt-bindings: clock: Add new bindings for TI Davinci PLL clocks

2018-01-30 Thread Sekhar Nori
On Wednesday 31 January 2018 12:16 AM, David Lechner wrote: > On 01/30/2018 08:50 AM, Rob Herring wrote: >> On Mon, Jan 29, 2018 at 3:14 PM, David Lechner >> wrote: >>> On 01/29/2018 01:53 PM, Rob Herring wrote: On Sat, Jan 20, 2018 at 11:13:40AM -0600, David Lechner wrote: > > T

[PATCH v3] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530

2018-01-30 Thread Kai-Heng Feng
The i2c touchpad on Dell XPS 9570 and Precision M5530 doesn't work out of box. The touchpad relies on its _INI method to update its _HID value from to SYNA2393. Also, the _STA relies on value of I2CN to report correct status. Set acpi_gbl_parse_table_as_term_list so the value of I2CN can

[PATCH] openvswitch: meter: Use 64-bit arithmetic instead of 32-bit

2018-01-30 Thread Gustavo A. R. Silva
Add suffix LL to constant 1000 in order to give the compiler complete information about the proper arithmetic to use. Notice that this constant is used in a context that expects an expression of type long long int (64 bits, signed). The expression (band->burst_size + band->rate) * 1000 is currentl

Re: [PATCH v6 4/6] media: i2c: Add TDA1997x HDMI receiver driver

2018-01-30 Thread Tim Harvey
On Mon, Jan 29, 2018 at 4:00 AM, Hans Verkuil wrote: > On 01/25/2018 05:15 PM, Tim Harvey wrote: >>> >>> Hmm. This receiver supports multiple output formats, but you advertise only >>> one. >>> That looks wrong. If nothing else, you should be able to switch between RGB >>> and >>> YUV 4:4:4 sin

Re: [git pull] vfs.git: poll annotations

2018-01-30 Thread Al Viro
On Tue, Jan 30, 2018 at 07:19:19PM -0800, Linus Torvalds wrote: > On Tue, Jan 30, 2018 at 7:13 PM, Al Viro wrote: > > > > As for the place for mangle/demangle... where would you prefer them? > > If we can make gcc generate ok code for the generic case and not need > any arch-specific ones, why no

[PATCH v7 3/6] media: dt-bindings: Add bindings for TDA1997X

2018-01-30 Thread Tim Harvey
Acked-by: Rob Herring Acked-by: Sakari Ailus Signed-off-by: Tim Harvey --- v6: - replace copyright with SPDX tag - added Rob's ack v5: - added Sakari's ack v4: - move include/dt-bindings/media/tda1997x.h to bindings patch - clarify port node details v3: - fix typo v2: - add vendor pre

[PATCH v7 1/6] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2018-01-30 Thread Tim Harvey
From: Hans Verkuil Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Signed-off-by: Hans Verkuil Signed-off-by: Tim Harvey --- drivers/media/v4l2-core/v4l2-dv-

[PATCH v7 6/6] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x

2018-01-30 Thread Tim Harvey
Signed-off-by: Tim Harvey --- v5: - add missing audmux config --- arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/imx6qdl-gw551x.dtsi index 30d4662..749548a

[PATCH v7 5/6] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2018-01-30 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey --- v5: - remove leading 0 from unit address - add newline between property list and child node v4: no changes v3: no changes v2: - add HDMI au

[PATCH v7 4/6] media: i2c: Add TDA1997x HDMI receiver driver

2018-01-30 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil Signed-off-by: Tim Harvey --- v7: - fix interlaced mode - support no AVI infoframe (ie DVI) (Hans) - add support for multiple output formats (Hans) v6: - fix return on regulator enablei in tda1997x_set_power() - replace copyrigh

[PATCH v7 0/6] TDA1997x HDMI video receiver

2018-01-30 Thread Tim Harvey
This is a v4l2 subdev driver supporting the TDA1997x HDMI video receiver. I've tested this on a Gateworks GW54xx/GW551x with an IMX6Q/IMX6DL which uses the TDA19971 with 16bits connected to the IMX6 CSI and single-lane I2S audio providing 2-channel audio. For this configuration I've tested both 1

[PATCH v7 2/6] MAINTAINERS: add entry for NXP TDA1997x driver

2018-01-30 Thread Tim Harvey
Signed-off-by: Tim Harvey --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index aa71ab52f..502bc97 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13244,6 +13244,14 @@ T: git git://linuxtv.org/mkrufky/tuners.git S: Maintained F: d

Re: [PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530

2018-01-30 Thread Kai Heng Feng
> On 31 Jan 2018, at 2:37 AM, Schmauss, Erik wrote: > > Hi, >> -Original Message- >> From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- >> ow...@vger.kernel.org] On Behalf Of Andy Shevchenko >> Sent: Tuesday, January 30, 2018 10:18 AM >> To: Kai-Heng Feng >> Cc: Rafael J. Wysoc

Re: [RFC] mm/migrate: Consolidate page allocation helper functions

2018-01-30 Thread Hugh Dickins
On Wed, 31 Jan 2018, Anshuman Khandual wrote: > On 01/30/2018 08:06 PM, Michal Hocko wrote: > > On Tue 30-01-18 10:36:42, Anshuman Khandual wrote: > >> Allocation helper functions for migrate_pages() remmain scattered with > >> similar names making them really confusing. Rename these functions base

[PATCH] tcp_nv: fix potential integer overflow in tcpnv_acked

2018-01-30 Thread Gustavo A. R. Silva
Add suffix ULL to constant 8 in order to avoid a potential integer overflow and give the compiler complete information about the proper arithmetic to use. Notice that this constant is used in a context that expects an expression of type u64. The current cast to u64 effectively applies to the w

Re: [PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530

2018-01-30 Thread Kai Heng Feng
> On 31 Jan 2018, at 2:17 AM, Andy Shevchenko wrote: > > On Tue, Jan 30, 2018 at 8:07 AM, Kai-Heng Feng > wrote: >> The i2c touchpad on Dell XPS 9570 and Precision M5530 doesn't work out >> of box. >> >> The touchpad relies on its _INI method to update its _HID value from >> to SYNA2

[PATCH] x86/paravirt: Remove 'noreplace-paravirt' cmdline option

2018-01-30 Thread Josh Poimboeuf
The 'noreplace-paravirt' option disables paravirt patching, leaving the original pv indirect calls in place. That's highly incompatible with retpolines, unless we want to uglify paravirt even further and convert the paravirt calls to retpolines. As far as I can tell, the option doesn't seem to be

[PATCH] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings

2018-01-30 Thread Yisheng Xie
ion_buffer_fault_user_mappings's definition has been removed and not be used anymore, just remove its useless declaration. Signed-off-by: Yisheng Xie --- drivers/staging/android/ion/ion.h | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/android/ion/ion.h b/drivers/sta

Re: Microblaze boot failure in -next due to 'of/fdt: use memblock_virt_alloc for early alloc'

2018-01-30 Thread Guenter Roeck
On Tue, Jan 09, 2018 at 11:44:12AM -0800, Guenter Roeck wrote: > Hi, > > microblaze and microblazeel images fail to boot in -next. This still fails in in -next. Guenter > Error log is: > > Early console on uartlite at 0x8400 > bootconsole [earlyser0] enabled > Ramdisk addr 0x, > F

Re: [PATCH V3 0/5] bugs fix for large PEBS mmap read and rdpmc read

2018-01-30 Thread Andi Kleen
> Still, the part I am missing here, is why asking for > PERF_SAMPLE_PERIOD voids large PEBS. I think it was disabled together with frequency mode (which we could support too, but it's a bit more work) But yes PERIOD could probably be allowed. -Andi

Re: [PATCH] x86/speculation: Use Indirect Branch Prediction Barrier in context switch

2018-01-30 Thread Josh Poimboeuf
On Tue, Jan 30, 2018 at 01:23:17PM -0800, Tim Chen wrote: > On 01/30/2018 09:48 AM, Josh Poimboeuf wrote: > > On Mon, Jan 29, 2018 at 10:04:47PM +, David Woodhouse wrote: > >> From: Tim Chen > >> > >> Flush indirect branches when switching into a process that marked itself > >> non dumpable. T

Re: BUG: unable to handle kernel NULL pointer dereference in free_pipe_info

2018-01-30 Thread Eric Biggers
Hi Goldwyn, On Tue, Jan 30, 2018 at 09:52:02PM -0600, Goldwyn Rodrigues wrote: > > > On 01/30/2018 04:13 PM, Eric Biggers wrote: > > On Tue, Dec 19, 2017 at 12:39:01AM -0800, syzbot wrote: > >> Hello, > >> > >> syzkaller hit the following crash on > >> 6084b576dca2e898f5c101baef151f7bfdbb606d >

Re: BUG: unable to handle kernel NULL pointer dereference in free_pipe_info

2018-01-30 Thread Goldwyn Rodrigues
On 01/30/2018 04:13 PM, Eric Biggers wrote: > On Tue, Dec 19, 2017 at 12:39:01AM -0800, syzbot wrote: >> Hello, >> >> syzkaller hit the following crash on >> 6084b576dca2e898f5c101baef151f7bfdbb606d >> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master >> compiler: gcc (GCC)

  1   2   3   4   5   6   7   8   9   10   >