[PATCH 04/17] mm: pass the vmem_altmap to arch_add_memory and __add_pages

2017-12-28 Thread Christoph Hellwig
We can just pass this on instead of having to do a radix tree lookup without proper locking 2 levels into the callchain. Signed-off-by: Christoph Hellwig --- arch/ia64/mm/init.c| 5 +++-- arch/powerpc/mm/mem.c | 5 +++-- arch/s390/mm/init.c| 5 +++-- arch/sh/m

[PATCH 03/17] mm: don't export __add_pages

2017-12-28 Thread Christoph Hellwig
This function isn't used by any modules, and is only to be called from core MM code. This includes the calls for the add_pages wrapper that might be inlined. Signed-off-by: Christoph Hellwig Reviewed-by: Dan Williams --- mm/memory_hotplug.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm

revamp vmem_altmap / dev_pagemap handling V3

2017-12-28 Thread Christoph Hellwig
Hi all, this series started with two patches from Logan that now are in the middle of the series to kill the memremap-internal pgmap structure and to redo the dev_memreamp_pages interface to be better suitable for future PCI P2P uses. I reviewed them and noticed that there isn't really any good r

[PATCH 05/17] mm: pass the vmem_altmap to vmemmap_populate

2017-12-28 Thread Christoph Hellwig
We can just pass this on instead of having to do a radix tree lookup without proper locking a few levels into the callchain. Signed-off-by: Christoph Hellwig Reviewed-by: Dan Williams --- arch/arm64/mm/mmu.c| 6 -- arch/ia64/mm/discontig.c | 3 ++- arch/powerpc/mm/init_6

[PATCH 01/17] memremap: provide stubs for vmem_altmap_offset and vmem_altmap_free

2017-12-28 Thread Christoph Hellwig
Currently all calls to those functions are eliminated by the compiler when CONFIG_ZONE_DEVICE is not set, but this soon won't be the case. Signed-off-by: Christoph Hellwig Reviewed-by: Dan Williams --- include/linux/memremap.h | 18 ++ 1 file changed, 14 insertions(+), 4 deletio

[PATCH 12/17] mm: optimize dev_pagemap reference counting around get_dev_pagemap

2017-12-28 Thread Christoph Hellwig
Change the calling convention so that get_dev_pagemap always consumes the previous reference instead of doing this using an explicit earlier call to put_dev_pagemap in the callers. The callers will still need to put the final reference after finishing the loop over the pages. Signed-off-by: Chris

[PATCH 09/17] mm: split altmap memory map allocation from normal case

2017-12-28 Thread Christoph Hellwig
No functional changes, just untangling the call chain and document why the altmap is passed around the hotplug code. Signed-off-by: Christoph Hellwig Reviewed-by: Logan Gunthorpe Reviewed-by: Dan Williams --- arch/powerpc/mm/init_64.c | 5 - arch/x86/mm/init_64.c | 5 - include/l

[PATCH 11/17] mm: move get_dev_pagemap out of line

2017-12-28 Thread Christoph Hellwig
This is a pretty big function, which should be out of line in general, and a no-op stub if CONFIG_ZONE_DEVICЕ is not set. Signed-off-by: Christoph Hellwig Reviewed-by: Logan Gunthorpe Reviewed-by: Dan Williams --- include/linux/memremap.h | 39 --- kernel/me

[PATCH 15/17] memremap: drop private struct page_map

2017-12-28 Thread Christoph Hellwig
From: Logan Gunthorpe 'struct page_map' is a private structure of 'struct dev_pagemap' but the latter replicates all the same fields as the former so there isn't much value in it. Thus drop it in favour of a completely public struct. This is a clean up in preperation for a more generally useful

Re: [PATCH] f2fs: add reserved blocks for root user

2017-12-28 Thread Chao Yu
On 2017/12/28 10:19, Jaegeuk Kim wrote: > This patch allows root to reserve some blocks via mount option. > > "-o reserve_root=N" means N x 4KB-sized blocks for root only. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/f2fs.h | 25 - > fs/f2fs/super.c | 24 +

[PATCH 14/17] memremap: simplify duplicate region handling in devm_memremap_pages

2017-12-28 Thread Christoph Hellwig
__radix_tree_insert already checks for duplicates and returns -EEXIST in that case, so remove the duplicate (and racy) duplicates check. Signed-off-by: Christoph Hellwig Reviewed-by: Logan Gunthorpe --- kernel/memremap.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/kernel/mem

[PATCH 17/17] memremap: merge find_dev_pagemap into get_dev_pagemap

2017-12-28 Thread Christoph Hellwig
There is only one caller of the trivial function find_dev_pagemap left, so just merge it into the caller. Signed-off-by: Christoph Hellwig Reviewed-by: Dan Williams --- kernel/memremap.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/kernel/memremap.c b/kernel/mem

[PATCH 16/17] memremap: change devm_memremap_pages interface to use struct dev_pagemap

2017-12-28 Thread Christoph Hellwig
This new interface is similar to how struct device (and many others) work. The caller initializes a 'struct dev_pagemap' as required and calls 'devm_memremap_pages'. This allows the pagemap structure to be embedded in another structure and thus container_of can be used. In this way application spec

[PATCH 13/17] memremap: remove to_vmem_altmap

2017-12-28 Thread Christoph Hellwig
All callers are gone now. Signed-off-by: Christoph Hellwig Reviewed-by: Dan Williams --- include/linux/memremap.h | 9 - kernel/memremap.c| 26 -- 2 files changed, 35 deletions(-) diff --git a/include/linux/memremap.h b/include/linux/memremap.h index 26

[PATCH v5 16/16] MAINTAINERS: add entry for Rockchip ISP1 driver

2017-12-28 Thread Shunqian Zheng
From: Jacob Chen Add MAINTAINERS entry for the rockchip isp1 driver. This driver is maintained by rockchip officially and it will be used for rockchip SoC on all linux-kernel based OS. Signed-off-by: Jacob Chen --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAI

[PATCH 07/17] mm: pass the vmem_altmap to vmemmap_free

2017-12-28 Thread Christoph Hellwig
We can just pass this on instead of having to do a radix tree lookup without proper locking a few levels into the callchain. Signed-off-by: Christoph Hellwig Reviewed-by: Dan Williams --- arch/arm64/mm/mmu.c| 3 +- arch/ia64/mm/discontig.c | 3 +- arch/powerpc/mm/init_64.c

[PATCH v5 13/16] ARM: dts: rockchip: add rx0 mipi-phy for rk3288

2017-12-28 Thread Shunqian Zheng
From: Jacob Chen It's a Designware MIPI D-PHY, used by ISP in rk3288. Signed-off-by: Jacob Chen --- arch/arm/boot/dts/rk3288.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 5dbfafb..a4c9a6e 100644 --- a/arch/ar

[PATCH 08/17] mm: pass the vmem_altmap to memmap_init_zone

2017-12-28 Thread Christoph Hellwig
Pass the vmem_altmap two levels down instead of needing a lookup. Signed-off-by: Christoph Hellwig Reviewed-by: Dan Williams --- arch/ia64/mm/init.c| 9 + include/linux/memory_hotplug.h | 2 +- include/linux/mm.h | 4 ++-- kernel/memremap.c | 2 +- m

[PATCH 02/17] mm: don't export arch_add_memory

2017-12-28 Thread Christoph Hellwig
Only x86_64 and sh export this symbol, and it is not used by any modular code. Signed-off-by: Christoph Hellwig Reviewed-by: Dan Williams --- arch/sh/mm/init.c | 1 - arch/x86/mm/init_64.c | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index bf726

[PATCH 10/17] mm: merge vmem_altmap_alloc into altmap_alloc_block_buf

2017-12-28 Thread Christoph Hellwig
There is no clear separation between the two, so merge them. Signed-off-by: Christoph Hellwig Reviewed-by: Logan Gunthorpe Reviewed-by: Dan Williams --- mm/sparse-vmemmap.c | 45 - 1 file changed, 16 insertions(+), 29 deletions(-) diff --git a/mm/sp

[PATCH 06/17] mm: pass the vmem_altmap to arch_remove_memory and __remove_pages

2017-12-28 Thread Christoph Hellwig
We can just pass this on instead of having to do a radix tree lookup without proper locking 2 levels into the callchain. Signed-off-by: Christoph Hellwig Reviewed-by: Dan Williams --- arch/ia64/mm/init.c| 4 ++-- arch/powerpc/mm/mem.c | 6 ++ arch/s390/mm/init.c

[PATCH v5 15/16] arm64: dts: rockchip: add rx0 mipi-phy for rk3399

2017-12-28 Thread Shunqian Zheng
It's a Designware MIPI D-PHY, used for ISP0 in rk3399. Signed-off-by: Shunqian Zheng Signed-off-by: Jacob Chen --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk

[PATCH v5 07/16] media: rkisp1: add ISP1 params driver

2017-12-28 Thread Shunqian Zheng
From: Jacob Chen Add the output video driver that accept params from userspace. Signed-off-by: Jacob Chen Signed-off-by: Shunqian Zheng Signed-off-by: Yichong Zhong Signed-off-by: Jacob Chen Signed-off-by: Eddie Cai Signed-off-by: Jeffy Chen Signed-off-by: Allon Huang Signed-off-by: Tomas

[PATCH v5 04/16] media: rkisp1: add Rockchip MIPI Synopsys DPHY driver

2017-12-28 Thread Shunqian Zheng
From: Jacob Chen This commit adds a subdev driver for Rockchip MIPI Synopsys DPHY driver Signed-off-by: Jacob Chen Signed-off-by: Shunqian Zheng Signed-off-by: Tomasz Figa --- .../media/platform/rockchip/isp1/mipi_dphy_sy.c| 787 + 1 file changed, 787 insertions(+) c

[PATCH v5 00/16] Rockchip ISP1 Driver

2017-12-28 Thread Shunqian Zheng
changes in V5: Sync with local changes, - fix the SP height limit - speed up the second stream capture - the second stream can't force sync for rsz when start/stop streaming - add frame id to param vb2 buf - enable luminance maximum threshold changes in V4: - fix some bugs during devel

[PATCH v5 06/16] media: rkisp1: add ISP1 statistics driver

2017-12-28 Thread Shunqian Zheng
From: Jacob Chen Add the capture video driver for rockchip isp1 statistics block. Signed-off-by: Jacob Chen Signed-off-by: Shunqian Zheng Signed-off-by: Yichong Zhong Signed-off-by: Jacob Chen Signed-off-by: Eddie Cai Signed-off-by: Jeffy Chen Signed-off-by: Allon Huang Signed-off-by: Tom

[PATCH v5 08/16] media: rkisp1: add capture device driver

2017-12-28 Thread Shunqian Zheng
From: Jacob Chen This is the capture device interface driver that provides the v4l2 user interface. Frames can be received from ISP1. Signed-off-by: Jacob Chen Signed-off-by: Shunqian Zheng Signed-off-by: Yichong Zhong Signed-off-by: Jacob Chen Signed-off-by: Eddie Cai Signed-off-by: Jeffy

[PATCH v5 02/16] media: doc: add document for rkisp1 meta buffer format

2017-12-28 Thread Shunqian Zheng
From: Jacob Chen This commit add docuemnt for rkisp1 meta buffer format Signed-off-by: Jacob Chen --- Documentation/media/uapi/v4l/meta-formats.rst | 2 ++ .../media/uapi/v4l/pixfmt-meta-rkisp1-params.rst | 17 + .../media/uapi/v4l/pixfmt-meta-rkisp1-stat.rst

[PATCH v5 12/16] ARM: dts: rockchip: add isp node for rk3288

2017-12-28 Thread Shunqian Zheng
From: Jacob Chen rk3288 have a Embedded 13M ISP Signed-off-by: Jacob Chen --- arch/arm/boot/dts/rk3288.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index cd24894..5dbfafb 100644 --- a/arch/arm/boot/dts

[PATCH v5 03/16] media: rkisp1: Add user space ABI definitions

2017-12-28 Thread Shunqian Zheng
From: Jeffy Chen Add the header for userspace Signed-off-by: Jeffy Chen Signed-off-by: Jacob Chen --- include/uapi/linux/rkisp1-config.h | 757 + 1 file changed, 757 insertions(+) create mode 100644 include/uapi/linux/rkisp1-config.h diff --git a/include/

Re: [PATCH][next] wcn36xx: remove redundant assignment to msg_body.min_ch_time

2017-12-28 Thread Loic Poulain
Hi Colin, Bjorn, On 26 December 2017 at 21:13, Bjorn Andersson wrote: > On Tue 19 Dec 09:04 PST 2017, Colin King wrote: > >> From: Colin Ian King >> >> msg_body.min_ch_time is being assigned twice; remove the redundant >> first assignment. >> >> Detected by CoverityScan, CID#1463042 ("Unused Val

Re: [RFC PATCH bpf-next v2 4/4] error-injection: Support fault injection framework

2017-12-28 Thread Masami Hiramatsu
On Thu, 28 Dec 2017 17:11:31 -0800 Alexei Starovoitov wrote: > On 12/27/17 11:51 PM, Masami Hiramatsu wrote: > > > > Then what happen if the user set invalid retval to those functions? > > even if we limit the injectable functions, it can cause a problem, > > > > for example, > > > > obj = func_

Re: About the try to remove cross-release feature entirely by Ingo

2017-12-28 Thread Byungchul Park
On Thu, Dec 28, 2017 at 10:51:46PM -0500, Theodore Ts'o wrote: > On Fri, Dec 29, 2017 at 10:47:36AM +0900, Byungchul Park wrote: > > > >(1) The best way: To classify all waiters correctly. > > It's really not all waiters, but all *locks*, no? Thanks for your opinion. I will add my opinion on

Re: [PATCH v2] zram: better utilization of zram swap space

2017-12-28 Thread Minchan Kim
On Thu, Dec 28, 2017 at 09:00:04AM +0900, Minchan Kim wrote: > On Wed, Dec 27, 2017 at 04:10:56PM +0900, Sergey Senozhatsky wrote: > > On (12/27/17 15:29), Minchan Kim wrote: > > > On Fri, Dec 22, 2017 at 04:00:06PM +0530, Gopi Sai Teja wrote: > > > > 75% of the PAGE_SIZE is not a correct threshold

[PATCH v2 4/4] PCI/DPC: Enumerate the devices after DPC trigger event

2017-12-28 Thread Oza Pawandeep
Implement error_resume callback in DPC, which, after DPC trigger event enumerates the devices beneath. Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/pcie-dpc.c b/drivers/pci/pcie/pcie-dpc.c index 68296ec..4c6bef3 100644 --- a/drivers/pci/pcie/pcie-dpc.c +++ b/drivers/pci/pcie/pcie-d

[PATCH v2 2/4] PCI/DPC/AER: Address Concurrency between AER and DPC

2017-12-28 Thread Oza Pawandeep
This patch addresses the race condition between AER and DPC for recovery. Current DPC driver does not do recovery, e.g. calling end-point's driver's callbacks, which sanitize the device. DPC driver implements link_reset callback, and calls pci_do_recovery. Signed-off-by: Oza Pawandeep diff --gi

[PATCH v2 1/4] PCI/AER: factor out error reporting from AER

2017-12-28 Thread Oza Pawandeep
This patch factors out error reporting callbacks, which are currently tightly coupled with AER. DPC should be able to call these callbacks when DPC trigger event occurs. Signed-off-by: Oza Pawandeep diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 6402f7f..fd053e5 100644 --

[PATCH v2 3/4] PCI/ERR: Do not do recovery if DPC service is active

2017-12-28 Thread Oza Pawandeep
If AER attempts to do recovery for any device, and DPC is active on any upstream port, AER should not do recovery, since it will be handled by DPC Change-Id: Ida507ce9145f420e35302db34e967f1b421e15c9 Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/pcie-err.c b/drivers/pci/pcie/pcie-er

[PATCH v2 0/4] Address error and recovery for AER and DPC

2017-12-28 Thread Oza Pawandeep
This patch set brings in support for DPC and AER to co-exist and not to race for recovery. The current implementation of AER and error message broadcasting to the EP driver is tightly coupled and limited to AER service driver. It is important to factor out broadcasting and other link handling call

Re: [ANNOUNCE] Git v2.16.0-rc0

2017-12-28 Thread Kaartic Sivaraam
On Friday 29 December 2017 10:00 AM, Junio C Hamano wrote: * "git branch" and "git checkout -b" are now forbidden from creating a branch whose name is "HEAD". "git branch" already forbid a branch named "HEAD", didn't it? I thought we just made "git checkout -b" to reject "HEAD" as a vali

[PATCH] iio: adc: max9611: fix module auto-loading

2017-12-28 Thread Dmitry Mastykin
Module auto-load doesn't work because i2c table is not exported. Signed-off-by: Dmitry Mastykin --- drivers/iio/adc/max9611.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/iio/adc/max9611.c b/drivers/iio/adc/max9611.c index b1dd17c..7924b5c 100644 --- a/driv

Re: [PATCH v6 2/8] module: use relative references for __ksymtab entries

2017-12-28 Thread kbuild test robot
/Ard-Biesheuvel/add-support-for-relative-references-in-special-sections/20171228-171634 config: s390-gcov_defconfig (attached as .config) compiler: s390x-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin

Re: [PATCH v3 14/16] phy: Add notify_speed callback

2017-12-28 Thread Kishon Vijay Abraham I
Hi, On Friday 29 December 2017 09:54 AM, Manu Gautam wrote: > Hi, > > > On 12/28/2017 4:34 PM, Kishon Vijay Abraham I wrote: >> Hi, >> > [snip] >> I'd prefer adding modes in enum phy_mode according to speed and using phy_set_mode. >>> yeah, that also seems good idea. How about somethi

Re: [PATCH v11 2/6] mailbox: qcom: Create APCS child device for clock controller

2017-12-28 Thread Jassi Brar
Hi Bjorn, On Sun, Dec 24, 2017 at 10:36 AM, Bjorn Andersson wrote: > On Fri 22 Dec 20:57 PST 2017, Jassi Brar wrote: > >> On Tue, Dec 5, 2017 at 9:16 PM, Georgi Djakov >> wrote: >> > There is a clock controller functionality provided by the APCS hardware >> > block of msm8916 devices. The devic

[PATCH] regulator: sc2731: Fix defines for SC2731_WR_UNLOCK and SC2731_PWR_WR_PROT_VALUE

2017-12-28 Thread Axel Lin
The define for SC2731_WR_UNLOCK and SC2731_PWR_WR_PROT_VALUE are swapped, so the code calling regmap_write() looks strange. Fix it. regmap_write takes reg parameter first then val. Signed-off-by: Axel Lin --- Hi Erick, I don't have the datasheet. Can you check this? Thanks, Axel drivers/regulato

Re: [PATCH v2 9/9] PCI: cadence: Add EndPoint Controller driver for Cadence PCIe controller

2017-12-28 Thread Kishon Vijay Abraham I
Hi, On Monday 18 December 2017 11:46 PM, Cyrille Pitchen wrote: > This patch adds support to the Cadence PCIe controller in endpoint mode. > > drivers/pci/Makefile was previously patched so > drivers/pci/cadence/pcie-cadence-ep.o is linked after drivers/pci/endpoint > objects, otherwise the built

Re: [PATCH 0/4] Address error and recovery for AER and DPC

2017-12-28 Thread poza
On 2017-12-28 23:04, Keith Busch wrote: On Wed, Dec 27, 2017 at 02:20:18AM -0800, Oza Pawandeep wrote: DPC should enumerate the devices after recovering the link, which is achieved by implementing error_resume callback. Wouldn't that race with the link-up event that pciehp currently handles?

Re: [PATCH V8 3/3] OPP: Allow "opp-hz" and "opp-microvolt" to contain magic values

2017-12-28 Thread Viresh Kumar
On 28-12-17, 16:32, Stephen Boyd wrote: > On 12/28, Viresh Kumar wrote: > > So what we need now is: > > > > - Stephen to start responding and clarify all the doubts he had as being > > silent > > isn't helping. > > What can I reply to specifically? I explained in detail how this stuff is goi

[ANNOUNCE] Git v2.16.0-rc0

2017-12-28 Thread Junio C Hamano
An early preview release Git v2.16.0-rc0 is now available for testing at the usual places. It is comprised of 435 non-merge commits since v2.15.0, contributed by 76 people, 22 of which are new faces. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/testing/ The followi

Re: [PATCH] clk: fix reentrancy of clk_enable() on UP systems

2017-12-28 Thread David Lechner
On 12/26/2017 08:21 PM, Stephen Boyd wrote: On 12/26, David Lechner wrote: Reentrant calls to clk_enable() are not working on UP systems. This is caused by the fact spin_trylock_irqsave() always returns true when CONFIG_SMP=n (and CONFIG_DEBUG_SPINLOCK=n) which causes the reference counting to n

Re: [PATCH 0/3] Change ISA_BUS_API dependency to selection

2017-12-28 Thread William Breathitt Gray
On Thu, Dec 28, 2017 at 09:03:22AM -0800, Guenter Roeck wrote: >On 12/28/2017 08:01 AM, William Breathitt Gray wrote: >> The ISA_BUS_API Kconfig option enables the compilation of the ISA bus >> driver. The ISA bus driver does not perform any hardware interaction, >> and is instead just a thin layer

Re: [PATCH v3 14/16] phy: Add notify_speed callback

2017-12-28 Thread Manu Gautam
Hi, On 12/28/2017 4:34 PM, Kishon Vijay Abraham I wrote: > Hi, > [snip] > >>> I'd prefer adding modes in enum phy_mode according to speed and using >>> phy_set_mode. >> yeah, that also seems good idea. How about something like this: >> >> --- a/include/linux/phy/phy.h >> +++ b/include/linux/phy/

Re: [git pull] drm fixes for 4.15-rc6

2017-12-28 Thread Randy Dunlap
On 12/28/2017 07:18 PM, Dave Airlie wrote: > Hi Linus, > > Just dequeuing some fixes, I'm on holidays next week again, but I > think things should be fine. > > Dave. Hi, It would be good to get this documentation build error patch merged into 4.15. Daniel Vetter says that he merged (applied) i

Re: About the try to remove cross-release feature entirely by Ingo

2017-12-28 Thread Theodore Ts'o
On Fri, Dec 29, 2017 at 10:47:36AM +0900, Byungchul Park wrote: > >(1) The best way: To classify all waiters correctly. It's really not all waiters, but all *locks*, no? > Ultimately the problems should be solved in this way. But it > takes a lot of time so it's not easy to use t

[PATCH] kallsyms: let print_ip_sym() print raw addresses

2017-12-28 Thread Huacai Chen
print_ip_sym() is mostly used for debugging, so I think it should print the raw addresses. Signed-off-by: Huacai Chen --- include/linux/kallsyms.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h index bd118a6..e502db8 100644

Re: [PATCH v6 0/6] Add M_CAN Support for Dra76 platform

2017-12-28 Thread Yang, Wenyou
On 2017/12/22 21:31, Faiz Abbas wrote: This patch series adds support for M_CAN on the TI Dra76 platform. Device tree patches will be sent separately. A bunch of patches were sent before by Franklin Cooper . I have clubbed the series together and rebased to the latest kernel. Tested this serie

[git pull] drm fixes for 4.15-rc6

2017-12-28 Thread Dave Airlie
Hi Linus, Just dequeuing some fixes, I'm on holidays next week again, but I think things should be fine. Dave. The following changes since commit 464e1d5f23cca236b930ef068c328a64cab78fb1: Linux 4.15-rc5 (2017-12-23 20:47:16 -0800) are available in the git repository at: git://people.freed

[PATCH v2] posix-timers: prevent UB from shifting negative signed value

2017-12-28 Thread Nick Desaulniers
Shifting a negative signed number is undefined behavior. Looking at the macros MAKE_PROCESS_CPUCLOCK and FD_TO_CLOCKID, it seems that the subexpression: (~(clockid_t) (pid) << 3) where clockid_t resolves to a signed int, which once negated, is undefined behavior to shift the value of if the resul

Re: [PATCH] posix-timers: prevent UB from shifting negative signed value

2017-12-28 Thread Nick Desaulniers
sorry, fd_to_clockid() should probably return a clockid_t, let me fix that.

[PATCH] posix-timers: prevent UB from shifting negative signed value

2017-12-28 Thread Nick Desaulniers
Shifting a negative signed number is undefined behavior. Looking at the macros MAKE_PROCESS_CPUCLOCK and FD_TO_CLOCKID, it seems that the subexpression: (~(clockid_t) (pid) << 3) where clockid_t resolves to a signed int, which once negated, is undefined behavior to shift the value of if the resul

Re: [PATCH 0/2] perf-probe: Improve warning message for buildid mismatch

2017-12-28 Thread Masami Hiramatsu
Hello Arnaldo, Could you review it? Thank you, On Mon, 18 Dec 2017 16:28:35 +0900 Masami Hiramatsu wrote: > Hello, > > This series ensure the build-ids for target binary and debuginfo > are matched. If there is a mismatch, it warns user to check the > package versions. > > To reproduce the p

[PATCH net-next v7 6/6] net: dccp: Remove dccpprobe module

2017-12-28 Thread Masami Hiramatsu
Remove DCCP probe module since jprobe has been deprecated. That function is now replaced by dccp/dccp_probe trace-event. You can use it via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- Changes in v5: - Fix a conflict with previous change in Makefile. --- net/dccp/Kconfig | 17 -

[PATCH net-next v7 5/6] net: dccp: Add DCCP sendmsg trace event

2017-12-28 Thread Masami Hiramatsu
Add DCCP sendmsg trace event (dccp/dccp_probe) for replacing dccpprobe. User can trace this event via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- Changes in v5: - Fix to add local directory to include for trace.h. Thanks Steven! Changes in v7: - Avoid preprocessor dire

[PATCH net-next v7 4/6] net: sctp: Remove debug SCTP probe module

2017-12-28 Thread Masami Hiramatsu
Remove SCTP probe module since jprobe has been deprecated. That function is now replaced by sctp/sctp_probe and sctp/sctp_probe_path trace-events. You can use it via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- net/sctp/Kconfig | 12 --- net/sctp/Makefile |3 - net/sctp/probe.

[PATCH net-next v7 2/6] net: tcp: Remove TCP probe module

2017-12-28 Thread Masami Hiramatsu
Remove TCP probe module since jprobe has been deprecated. That function is now replaced by tcp/tcp_probe trace-event. You can use it via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- net/Kconfig | 17 --- net/ipv4/Makefile|1 net/ipv4/tcp_probe.c | 301 ---

[PATCH net-next v7 3/6] net: sctp: Add SCTP ACK tracking trace event

2017-12-28 Thread Masami Hiramatsu
Add SCTP ACK tracking trace event to trace the changes of SCTP association state in response to incoming packets. It is used for debugging SCTP congestion control algorithms, and will replace sctp_probe module. Note that this event a bit tricky. Since this consists of 2 events (sctp_probe and sctp

[PATCH net-next v7 1/6] net: tcp: Add trace events for TCP congestion window tracing

2017-12-28 Thread Masami Hiramatsu
This adds an event to trace TCP stat variables with slightly intrusive trace-event. This uses ftrace/perf event log buffer to trace those state, no needs to prepare own ring-buffer, nor custom user apps. User can use ftrace to trace this event as below; # cd /sys/kernel/debug/tracing # echo 1

[PATCH net-next v7 0/6] net: tcp: sctp: dccp: Replace jprobe usage with trace events

2017-12-28 Thread Masami Hiramatsu
Hi, This series is v7 of the replacement of jprobe usage with trace events. This version fixes net/dccp/trace.h to avoid sparse warning. Since the TP_STORE_ADDR_PORTS macro can be shared with trace/events/tcp.h, it also introduce a new common header file and move the definition of that macro. Pre

[PATCH net-next 2/2] tun: allow to attach ebpf socket filter

2017-12-28 Thread Jason Wang
This patch allows userspace to attach eBPF filter to tun. This will allow to implement VM dataplane filtering in a more efficient way compared to cBPF filter. Signed-off-by: Jason Wang --- drivers/net/tun.c | 26 ++ include/uapi/linux/if_tun.h | 1 + 2 files ch

[PATCH net-next 0/2] tun: allow to attach eBPF filter

2017-12-28 Thread Jason Wang
Hi all: This series tries to implement eBPF socket filter for tun. This could be used for implementing efficient virtio-net receive filter for vhost-net. Thanks Jason Wang (2): tuntap: rename struct tun_steering_prog to struct tun_prog tun: allow to attach ebpf socket filter drivers/net/tu

[PATCH net-next 1/2] tuntap: rename struct tun_steering_prog to struct tun_prog

2017-12-28 Thread Jason Wang
To be reused by other eBPF program other than queue selection. Signed-off-by: Jason Wang --- drivers/net/tun.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index e367d631..0853829 100644 --- a/drivers

Re: [Regression 4.15] Can't kill CONFIG_UNWINDER_ORC with fire or plague.

2017-12-28 Thread Paul Gortmaker
[Re: [Regression 4.15] Can't kill CONFIG_UNWINDER_ORC with fire or plague.] On 28/12/2017 (Thu 11:29) Randy Dunlap wrote: > On 12/25/2017 08:30 PM, Paul Gortmaker wrote: > > There is a regression new to 4.15 that happens in a rather common > > workflow which results in the frustrating situation w

[GIT] Networking

2017-12-28 Thread David Miller
1) IPv6 gre tunnels end up with different default features enabled depending upon whether netlink or ioctls are used to bring them up. Fix from Alexey Kodanev. 2) Fix read past end of user control message in RDS< from Avinash Repaka. 3) Missing RCU barrier in mini qdisc code, from Cong

Re: About the try to remove cross-release feature entirely by Ingo

2017-12-28 Thread Byungchul Park
On Fri, Dec 29, 2017 at 10:47:36AM +0900, Byungchul Park wrote: > On Wed, Dec 13, 2017 at 03:24:29PM +0900, Byungchul Park wrote: > > Lockdep works, based on the following: > > > >(1) Classifying locks properly > >(2) Checking relationship between the classes > > > > If (1) is not good or

[PATCH 1/2] f2fs: stop checkpoint only from fault injection

2017-12-28 Thread Jaegeuk Kim
If we got EIO by block layer, we still can proceed since EIO can be recovered. But, if we injected stop_checkpoint, we must stop everything. This should fix generic/441 failure in xfstests. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 16 fs/f2fs/data.c | 8 ++--

[PATCH 2/2] f2fs: fix missing error number for xattr operation

2017-12-28 Thread Jaegeuk Kim
This fixes generic/449 hang problem caused by no ENOSPC forever which should be returned by setxattr under disk full scenario. Signed-off-by: Jaegeuk Kim --- fs/f2fs/xattr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index 5e2b905cc0c4..600162f4ddbf 1

[PATCH v1] eSPI: add Aspeed AST2500 eSPI driver to boot a host with PCH runs on eSPI

2017-12-28 Thread Haiyue Wang
When PCH works under eSPI mode, the PMC (Power Management Controller) in PCH is waiting for SUS_ACK from BMC after it alerts SUS_WARN. It is in dead loop if no SUS_ACK assert. This is the basic requirement for the BMC works as eSPI slave. Also for the host power on / off actions, from BMC side, th

Re: About the try to remove cross-release feature entirely by Ingo

2017-12-28 Thread Byungchul Park
On Wed, Dec 13, 2017 at 03:24:29PM +0900, Byungchul Park wrote: > Lockdep works, based on the following: > >(1) Classifying locks properly >(2) Checking relationship between the classes > > If (1) is not good or (2) is not good, then we > might get false positives. > > For (1), we don't

[PATCH v2] vsprintf: Do not have bprintf dereference pointers

2017-12-28 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When trace_printk() was introduced, it was discussed that making it be as low overhead as possible, that the processing of the format string should be delayed until it is read. That is, a "trace_printk()" should not convert the %d into numbers and so on, but instea

Re: [RFC PATCH bpf-next v2 4/4] error-injection: Support fault injection framework

2017-12-28 Thread Alexei Starovoitov
On 12/27/17 11:51 PM, Masami Hiramatsu wrote: Then what happen if the user set invalid retval to those functions? even if we limit the injectable functions, it can cause a problem, for example, obj = func_return_object(); if (!obj) { handling_error...; } obj->field = x; In this case,

4.14.9 broke nvidia 384.98 kernel module

2017-12-28 Thread Hans-Peter Jansen
Hi Greg, I know, everybody hates NVidia and their proprietary stuff around here. Anyway, I wanted to let you and followers of 4.14 know, that changes between 4.14.8 and 4.14.9 broke both current nvidia kernel drivers. See: https://devtalk.nvidia.com/default/topic/1028016/linux/patch-fo

Re: [PATCH 2/2] ARM: multi_v7_defconfig: Enable OP-TEE

2017-12-28 Thread Peng Fan
On Thu, Dec 28, 2017 at 02:03:01PM +0100, Krzysztof Kozlowski wrote: >On Thu, Dec 28, 2017 at 10:34 AM, Peng Fan wrote: >> Enable OP-TEE for multi_v7_defconfig > >Why? You essentially copied here the subject of patch. That is not enough. This patch could be dropped. Previously, I could not select

Re: [RFC PATCH bpf-next v2 1/4] tracing/kprobe: bpf: Check error injectable event is on function entry

2017-12-28 Thread Alexei Starovoitov
On 12/28/17 12:20 AM, Masami Hiramatsu wrote: On Wed, 27 Dec 2017 20:32:07 -0800 Alexei Starovoitov wrote: On 12/27/17 8:16 PM, Steven Rostedt wrote: On Wed, 27 Dec 2017 19:45:42 -0800 Alexei Starovoitov wrote: I don't think that's the case. My reading of current trace_kprobe_ftrace() -> a

Re: [RFC][PATCH] vsprintf: Do not have bprintf dereference pointers

2017-12-28 Thread Steven Rostedt
On Thu, 28 Dec 2017 18:50:26 -0500 Steven Rostedt wrote: > + default: > + if (!isalnum(*fmt)) { > + process = true; > + break; > + } > +

Re: ftrace/module: Move ftrace_release_mod to ddebug_cleanup label

2017-12-28 Thread Jessica Yu
+++ Steven Rostedt [28/12/17 19:57 -0500]: On Fri, 29 Dec 2017 01:36:48 +0100 Jessica Yu wrote: +++ Steven Rostedt [28/12/17 11:32 -0500]: > >Jessica, > >Can you take this patch. You can add: > >Reviewed-by: Steven Rostedt (VMware) Sure, thanks Steven. Namit, your patch does not apply clean

Re: ftrace/module: Move ftrace_release_mod to ddebug_cleanup label

2017-12-28 Thread Steven Rostedt
On Fri, 29 Dec 2017 01:36:48 +0100 Jessica Yu wrote: > +++ Steven Rostedt [28/12/17 11:32 -0500]: > > > >Jessica, > > > >Can you take this patch. You can add: > > > >Reviewed-by: Steven Rostedt (VMware) > > Sure, thanks Steven. > > Namit, your patch does not apply cleanly to modules-next nor

Re: [PATCH 1/2] ARM: multi_v7_defconfig: select CONFIG_RTC_DRV_SNVS

2017-12-28 Thread Peng Fan
On Thu, Dec 28, 2017 at 02:02:07PM +0100, Krzysztof Kozlowski wrote: >On Thu, Dec 28, 2017 at 10:34 AM, Peng Fan wrote: >> Select CONFIG_RTC_DRV_SNVS for i.MX6 to use RTC to wakeup system >> Patch generated with: >> make ARCH=arm multi_v7_defconfig >> select CONFIG_RTC_DRV_SNVS >>

Re: PROBLEM: 4.15.0-rc3 APIC causes lockups on Core 2 Duo laptop

2017-12-28 Thread Alexandru Chirvasitu
On Thu, Dec 28, 2017 at 06:15:19PM -0600, Bjorn Helgaas wrote: > On Thu, Dec 28, 2017 at 06:30:58PM -0500, Alexandru Chirvasitu wrote: > > Attached, but heads up on this: when redirecting the output of lspci > > -vvv to a text file as root I get > > > > pcilib: sysfs_read_vpd: read failed: Input/o

Re: ftrace/module: Move ftrace_release_mod to ddebug_cleanup label

2017-12-28 Thread Jessica Yu
+++ Steven Rostedt [28/12/17 11:32 -0500]: Jessica, Can you take this patch. You can add: Reviewed-by: Steven Rostedt (VMware) Sure, thanks Steven. Namit, your patch does not apply cleanly to modules-next nor linux-next. It looks like you based your patch on an old tree? (e.g., we got rid

Re: [PATCH V8 3/3] OPP: Allow "opp-hz" and "opp-microvolt" to contain magic values

2017-12-28 Thread Stephen Boyd
On 12/28, Viresh Kumar wrote: > On 27-12-17, 15:54, Rob Herring wrote: > > > > I don't really know. I don't really care either. I'll probably go > > along with what everyone agrees to, but the only one I see any > > agreement from is Ulf. Also, it is pretty vague as to what platforms > > will use

Re: [PATCH] x86-32: fix kexec with stack canary (CONFIG_CC_STACKPROTECTOR)

2017-12-28 Thread Eric W. Biederman
h...@zytor.com writes: > On December 28, 2017 2:47:47 PM PST, ebied...@xmission.com wrote: >>Linus Torvalds writes: >> >>> From: Linus Torvalds >>> Date: Wed, 27 Dec 2017 11:41:30 -0800 >>> Subject: [PATCH] x86-32: fix kexec with stack canary >>(CONFIG_CC_STACKPROTECTOR) >>> >>> Commit e802a51ed

Re: PROBLEM: 4.15.0-rc3 APIC causes lockups on Core 2 Duo laptop

2017-12-28 Thread Bjorn Helgaas
On Thu, Dec 28, 2017 at 06:30:58PM -0500, Alexandru Chirvasitu wrote: > Attached, but heads up on this: when redirecting the output of lspci > -vvv to a text file as root I get > > pcilib: sysfs_read_vpd: read failed: Input/output error > > I can find bugs filed for various distros to this same e

Re: [PATCH 1/2] clk: rename clk_core_get_boundaries() to clk_hw_get_boundaries() and expose

2017-12-28 Thread Stephen Boyd
On 12/28, Alexander Kochetkov wrote: > Initial thread here: > https://www.spinics.net/lists/linux-clk/msg21682.html > > > > 27 дек. 2017 г., в 4:06, Stephen Boyd написал(а): > > > > Are these limits the min/max limits that the parent clk can > > output at? Or the min/max limits that software ha

Re: [PATCH v11 4/6] clk: qcom: Add regmap mux-div clocks support

2017-12-28 Thread Stephen Boyd
On 12/05, Georgi Djakov wrote: > Add support for hardware that can switch both parent clock and divider > at the same time. This avoids generating intermediate frequencies from > either the old parent clock and new divider or new parent clock and > old divider combinations. > > Signed-off-by: Geor

Re: [PATCH v11 6/6] clk: qcom: Add APCS clock controller support

2017-12-28 Thread Stephen Boyd
On 12/05, Georgi Djakov wrote: > +#include > +#include > +#include > +#include > +#include "clk-regmap.h" > +#include "clk-regmap-mux-div.h" > + > +enum { > + P_GPLL0, > + P_A53PLL, > +}; This is always 0, 1. > + > +static const struct parent_map gpll0_a53cc_map[] = { > + { P_GPLL

Re: [PATCH v11 3/6] clk: qcom: Add A53 PLL support

2017-12-28 Thread Stephen Boyd
On 12/05, Georgi Djakov wrote: > The CPUs on Qualcomm MSM8916-based platforms are clocked by two PLLs, > a primary (A53) CPU PLL and a secondary fixed-rate GPLL0. These sources > are connected to a mux and half-integer divider, which is feeding the > CPU cores. > > This patch adds support for the

Re: PROBLEM: 4.15.0-rc3 APIC causes lockups on Core 2 Duo laptop

2017-12-28 Thread Alexandru Chirvasitu
On Fri, Dec 29, 2017 at 12:36:37AM +0100, Thomas Gleixner wrote: > On Thu, 28 Dec 2017, Alexandru Chirvasitu wrote: > > > Attached, but heads up on this: when redirecting the output of lspci > > -vvv to a text file as root I get > > > > pcilib: sysfs_read_vpd: read failed: Input/output error > >

Re: [PATCH v11 0/6] Add support for Qualcomm A53 CPU clock

2017-12-28 Thread Stephen Boyd
On 12/22, Georgi Djakov wrote: > On 22.12.17 г. 2:49, Stephen Boyd wrote: > > On 12/05, Georgi Djakov wrote: > >> This patchset adds support for the A53 CPU clock on MSM8916 platforms > >> and allows scaling of the CPU frequency on msm8916 based platforms. > > > > Ok. I will apply just the clk one

[RFC][PATCH] vsprintf: Do not have bprintf dereference pointers

2017-12-28 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When trace_printk() was introduced, it was discussed that making it be as low overhead as possible, that the processing of the format string should be delayed until it it is read. That is, a "trace_printk()" should not convert the %d into numbers and so on, but ins

Re: [PATCH net-next v6 0/6] net: tcp: sctp: dccp: Replace jprobe usage with trace events

2017-12-28 Thread Masami Hiramatsu
On Thu, 28 Dec 2017 12:06:13 -0500 (EST) David Miller wrote: > From: Masami Hiramatsu > Date: Thu, 28 Dec 2017 15:10:00 +0900 > > > Changes from v5: > > [1/6]: Avoid preprocessor directives in tracepoint macro args > > Patch #1 is not the only patch which has this problem, at a minimum > pat

  1   2   3   4   5   6   7   8   9   >