[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 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 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 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 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 -

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] 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 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

[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

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

[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: 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

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: [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: [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] 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

[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 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

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 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

[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 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

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 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

[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: [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 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

[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 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

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

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: [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: [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

[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/

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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] staging: irda: net: Fix warning for incomplete Declarations in irlap.c

2017-12-28 Thread Vaibhav Kothari
This patch fixes the Sparse Warning "symbol was not declared. Should it be static?" in net/irlap.c Signed-off-by: Vaibhav Kothari --- drivers/staging/irda/net/irlap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/irda/net/irlap.c b/drivers/staging/irda/n

[PATCH bpf-next v3 2/3] libbpf: add error reporting in XDP

2017-12-28 Thread Eric Leblond
Parse netlink ext attribute to get the error message returned by the card. Code is partially take from libnl. Signed-off-by: Eric Leblond Acked-by: Alexei Starovoitov --- tools/lib/bpf/Build| 2 +- tools/lib/bpf/bpf.c| 9 +++ tools/lib/bpf/nlattr.c | 187

[PATCH bpf-next v3 0/3] libbpf: add XDP setup support

2017-12-28 Thread Eric Leblond
Hello, This patchset adds support for loading eBPF code as XDP filter. Best regards, -- Eric Leblond

[PATCH bpf-next v3 3/3] libbpf: add missing SPDX-License-Identifier

2017-12-28 Thread Eric Leblond
Signed-off-by: Eric Leblond Acked-by: Alexei Starovoitov --- tools/lib/bpf/bpf.c| 2 ++ tools/lib/bpf/bpf.h| 2 ++ tools/lib/bpf/libbpf.c | 2 ++ tools/lib/bpf/libbpf.h | 2 ++ 4 files changed, 8 insertions(+) diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c index cdfabbe118cc..9e

[PATCH bpf-next v3 1/3] libbpf: add function to setup XDP

2017-12-28 Thread Eric Leblond
Most of the code is taken from set_link_xdp_fd() in bpf_load.c and slightly modified to be library compliant. Signed-off-by: Eric Leblond Acked-by: Alexei Starovoitov --- tools/lib/bpf/bpf.c| 126 - tools/lib/bpf/libbpf.c | 2 + tools/lib/bp

Re: [PATCH 1/2] nvmem: add driver for JZ4780 efuse

2017-12-28 Thread Marcin Nowakowski
Hi Mathieu, On 28.12.2017 08:26, Mathieu Malaterre wrote: Hi Marcin, On Thu, Dec 28, 2017 at 8:13 AM, Marcin Nowakowski mailto:marcin.nowakow...@mips.com>> wrote: > Hi Mathieu, PrasannaKumar, > > On 27.12.2017 13:27, Mathieu Malaterre wrote: >> >> From: PrasannaKumar Muralidharan

Re: [PATCH v6 06/18] PCI: designware-ep: Add generic function for raising MSI irq

2017-12-28 Thread Kishon Vijay Abraham I
Hi Niklas, On Thursday 28 December 2017 03:59 AM, Niklas Cassel wrote: > On Tue, Dec 26, 2017 at 06:20:54PM +0530, Kishon Vijay Abraham I wrote: >> Hi Niklas, > > Hello Kishon > >> >> On Wednesday 20 December 2017 04:59 AM, Niklas Cassel wrote: >>> Add a generic function for raising MSI irqs tha

Re: [Ocfs2-devel] [PATCH v2] ocfs2: try a blocking lock before return AOP_TRUNCATED_PAGE

2017-12-28 Thread Changwei Ge
Hi Gang, It looks good to me. Thanks, Changwei On 2017/12/28 15:49, Gang He wrote: > If we can't get inode lock immediately in the function > ocfs2_inode_lock_with_page() when reading a page, we should not > return directly here, since this will lead to a softlockup problem > when the kernel is

Re: WARNING in strp_data_ready

2017-12-28 Thread Dmitry Vyukov
On Thu, Dec 28, 2017 at 9:12 AM, syzbot wrote: > Hello, > > syzbot has tested the proposed patch and the reproducer did not trigger > crash: > > Reported-and-tested-by: > syzbot+c91c53af67f9ebe599a337d2e70950366153b...@syzkaller.appspotmail.com /\/\/\/\/\/\/\/\/\/\/\/\/\ Tom, please don't miss t

Re: [Ocfs2-devel] [PATCH v2] ocfs2: try a blocking lock before return AOP_TRUNCATED_PAGE

2017-12-28 Thread alex chen
Hi Gang, It looks good to me. Thanks, Alex On 2017/12/28 15:48, Gang He wrote: > If we can't get inode lock immediately in the function > ocfs2_inode_lock_with_page() when reading a page, we should not > return directly here, since this will lead to a softlockup problem > when the kernel is con

Re: [PATCH bpf-next v3 1/3] libbpf: add function to setup XDP

2017-12-28 Thread Toshiaki Makita
On 2017/12/28 17:04, Eric Leblond wrote: > Most of the code is taken from set_link_xdp_fd() in bpf_load.c and > slightly modified to be library compliant. > > Signed-off-by: Eric Leblond > Acked-by: Alexei Starovoitov > --- ... > +int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags) ... > +

Re: [PATCH] objtool: Fix clang enum conversion warning

2017-12-28 Thread Lukas Bulwahn
On Wed, 27 Dec 2017, Josh Poimboeuf wrote: The patch from Lukas was the first one I received, so that's the one I used. I rewrote the commit msg for clarity and added my SOB and sent it to Ingo for merging. Josh, Ingo, the first patch I sent to Josh must have been a v0, which I probably d

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

2017-12-28 Thread Masami Hiramatsu
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() -> arch_check_ftrace_location()

[PATCH v3] backlight: tdo24m: fix the spi cs between transfers

2017-12-28 Thread Robert Jarzmik
Currently the LCD display (TD035S) on the cm-x300 platform is broken and remains blank. The TD0245S specification requires that the chipselect is toggled between commands sent to the panel. This was also the purpose of the former patch of commit f64dcac0b124 ("backlight: tdo24m: ensure chip select

[PATCH] Input: misc: Kconfig: fixed a spelling mistake

2017-12-28 Thread Zhuohua Li
fixed a spelling mistake: buttong -> button Signed-off-by: Zhuohua Li --- drivers/input/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig index 9f082a388388..509ba8ef1464 100644 --- a/drivers/input/misc/Kconfi

Re: [PATCH 0/4] KVM: nVMX: prepare_vmcs02 optimizations

2017-12-28 Thread Wanpeng Li
2017-12-27 22:28 GMT+08:00 Paolo Bonzini : > On 25/12/2017 11:08, Wanpeng Li wrote: >>> I observe L1(latest kvm/queue) panic and L0(latest kvm/queue) >>> calltrace, I'm not sure whether it is caused by this patchset. >> It can be reproduced steadily by running kvm-unit-tests in L1. > > It works her

Re: stable-rc build: 0 warnings 7 failures (stable-rc/v3.18.90-13-g444eb56)

2017-12-28 Thread Arnd Bergmann
On Thu, Dec 28, 2017 at 8:38 AM, Olof's autobuilder wrote: > Here are the build results from automated periodic testing. > > The tree being built was stable-rc, found at: > > URL: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git > > Branch: linux-3.18.y > > Topmost commits:

[PATCH] netfilter: fix int overflow in xt_alloc_table_info()

2017-12-28 Thread Dmitry Vyukov
syzkaller triggered OOM kills by passing ipt_replace.size = -1 to IPT_SO_SET_REPLACE. The root cause is that SMP_ALIGN() in xt_alloc_table_info() causes int overflow and the size check passes when it should not. SMP_ALIGN() is no longer needed leftover. Remove SMP_ALIGN() call in xt_alloc_table_in

Re: [RFC PATCH v12 4/5] PCI / PM: Add support for the PCIe WAKE# signal for OF

2017-12-28 Thread Andy Shevchenko
On Wed, 2017-12-27 at 09:30 -0600, Rob Herring wrote: > On Tue, Dec 26, 2017 at 7:32 PM, JeffyChen > wrote: > this new file does something similar to the pci-acpi.c and pci-mid.c.. > pci-acpi.c has similar things to pci/of.c. The naming is just not > consistent. > > and i am agree the naming is

Re: lost connection to test machine (3)

2017-12-28 Thread Dmitry Vyukov
On Wed, Dec 27, 2017 at 10:36 PM, Florian Westphal wrote: > Dmitry Vyukov wrote: >> On Wed, Dec 27, 2017 at 7:18 PM, syzbot >> wrote: >> > Hello, >> > >> > syzkaller hit the following crash on >> > beacbc68ac3e23821a681adb30b45dc55b17488d >> > git://git.kernel.org/pub/scm/linux/kernel/git/torval

Re: [PATCH v5 5/5] iommu/vt-d: Add debugfs support for Interrupt remapping

2017-12-28 Thread Andy Shevchenko
On Thu, 2017-12-21 at 16:32 -0800, Sohil Mehta wrote: > + seq_puts(m, "\n"); seq_putc() > + seq_puts(m, "\n"); Ditto. -- Andy Shevchenko Intel Finland Oy

Re: [PATCH v5 2/5] iommu/vt-d: Add debugfs support to show context internals

2017-12-28 Thread Andy Shevchenko
On Thu, 2017-12-21 at 16:32 -0800, Sohil Mehta wrote: > From: Gayatri Kammela > > IOMMU internals states such as root and context can be exported to the > userspace. > > Example of such dump in Kabylake: > v5: Change to a SPDX license tag > Fix seq_printf formatting > > > +#define pr_fmt

Re: [PATCH] platform/x86: silead_dmi: Add entry for the Trekstor Primebook C13

2017-12-28 Thread Andy Shevchenko
On Mon, Dec 25, 2017 at 2:45 PM, Hans de Goede wrote: > Add touchscreen platform data for the Trekstor Primebook C13 laptop. > Pushed to my review and testing queue, thanks! Note, the rest now on it's way to for-next (via testing) > Signed-off-by: Hans de Goede > --- > drivers/platform/x86/si

[PATCH V3] ARM: imx: use outer_disable/resume for low power

2017-12-28 Thread Peng Fan
Use outer_disable/resume for suspend/resume and low power idle. With the two APIs used, code could be easy to extend to introduce l2c_write_sec for i.MX platforms when moving Linux Kernel runs in non-secure world. The cache sync operation and l2c310_early_resume in suspend-imx6.S are kept. Accordi

Re: WARNING in __wake_up_common

2017-12-28 Thread Dmitry Vyukov
On Thu, Dec 28, 2017 at 10:20 AM, syzbot wrote: > Hello, > > syzkaller hit 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. > C reproducer is

Re: [PATCH 0/3] mtd: spi-nor: fix DMA-unsafe buffer issue between MTD and SPI

2017-12-28 Thread Cyrille Pitchen
Hi Trent, Le 27/12/2017 à 21:15, Trent Piepho a écrit : > On Wed, 2017-12-27 at 10:36 +, Mark Brown wrote: >> On Tue, Dec 26, 2017 at 06:45:28PM +, Trent Piepho wrote: >> >>> Or, since this only fixes instances of DMA-unsafe buffers used in >>> access to SPI NOR flash chips, and since ther

4.14.9 with CONFIG_MCORE2 fails to boot

2017-12-28 Thread Alexander Tsoy
Hello, 4.14.9 fails to boot if CONFIG_MCORE2 is enabled and when compiled with gcc 6+. More details in the following bug reports: https://bugzilla.kernel.org/show_bug.cgi?id=198263 https://bugs.gentoo.org/642268 I bisected it to the commit below: $ git bisect good 2bc9fa0beaf10206a778f02e9e5cb62

Re: kernel panic: Attempted to kill init! (2)

2017-12-28 Thread Dmitry Vyukov
On Thu, Dec 28, 2017 at 10:20 AM, 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 output is

Re: [PATCH] PCI: designware: move dw_pcie_iatu_unroll_enabled to pcie-designware.c

2017-12-28 Thread Pankaj Dubey
Hi Jingoo, On 12/21/2017 10:04 PM, Jingoo Han wrote: > On Thursday, October 12, 2017 12:41 AM, Pankaj Dubey wrote: >> IATU unroll feature can be enabled in EP mode as well, so we need to >> have this check in pcie-designware-ep.c, so instead of making this >> function as static in pcie-desigware-

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

2017-12-28 Thread Peng Fan
Enable OP-TEE for multi_v7_defconfig Signed-off-by: Peng Fan Cc: Russell King Cc: Arnd Bergmann Cc: Krzysztof Kozlowski Cc: Olof Johansson Cc: Simon Horman Cc: Geert Uytterhoeven Cc: Rask Ingemann Lambertsen Cc: Valentin Rothberg Cc: Andy Gross Cc: Shawn Guo Cc: Dong Aisheng --- arch/

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

2017-12-28 Thread Peng Fan
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 make savedefconfig Signed-off-by: Peng Fan Cc: Russell King Cc: Arnd Bergmann Cc: Krzysztof Kozlowski Cc: Olof Johansson C

Re: [PATCH] PCI: dwc: designware: don't sleep in atomic context

2017-12-28 Thread Pankaj Dubey
Hi Jingoo, On 12/21/2017 10:09 PM, Jingoo Han wrote: > On Thursday, October 12, 2017 3:55 AM, Pankaj Dubey wrote: >> In pcie-designware.c many places we are calling "usleep_range" which >> are in atomic context. This patch fixes these potential BUGs and >> replaces "usleep_range" with mdelay call

<    1   2   3   4   5   6   7   8   9   >