[PATCH v4 22/24] fpga: dfl: afu: add FPGA_GET_API_VERSION/CHECK_EXTENSION ioctls support

2018-02-13 Thread Wu Hao
FPGA_GET_API_VERSION and FPGA_CHECK_EXTENSION ioctls are common ones which need to be supported by all feature devices drivers including FME and AFU. This patch implements above 2 ioctls in FPGA Accelerated Function Unit (AFU) driver. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Sig

[PATCH v4 24/24] fpga: dfl: afu: add FPGA_PORT_DMA_MAP/UNMAP ioctls support

2018-02-13 Thread Wu Hao
DMA memory regions are required for Accelerated Function Unit (AFU) usage. These two ioctls allow user space applications to map user memory regions for dma, and unmap them after use. Iova is returned from driver to user space application via FPGA_PORT_DMA_MAP ioctl. Application needs to unmap it a

[PATCH v4 18/24] fpga: dfl: add fpga region platform driver for FME

2018-02-13 Thread Wu Hao
This patch adds fpga region platform driver for FPGA Management Engine. It register an fpga region with given fpga manager / bridge device. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by: Shiva Rao Signed-off-by: Christopher Rauer Signed-off-by: Wu Hao Acked-by: Alan

Re: [PATCH 4.9 00/92] 4.9.81-stable review

2018-02-13 Thread Greg Kroah-Hartman
On Sat, Feb 10, 2018 at 07:46:50AM -0800, Guenter Roeck wrote: > On 02/09/2018 05:38 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.81 release. > > There are 92 patches in this series, all will be posted as a response > > to this one. If anyone has any i

[PATCH] regulator: Fix resume from suspend to idle

2018-02-13 Thread Geert Uytterhoeven
When resuming from idle with the new suspend mode configuration support we go through the resume callbacks with a state of PM_SUSPEND_TO_IDLE which we don't have regulator constraints for, causing an error: dpm_run_callback(): regulator_resume_early+0x0/0x64 returns -22 PM: Device regulato

[PATCH v4 20/24] fpga: dfl: add FPGA Accelerated Function Unit driver basic framework

2018-02-13 Thread Wu Hao
On DFL FPGA devices, the Accelerated Function Unit (AFU), can be reprogrammed for different functions. It connects to the FPGA infrastructure("blue bistream") via a Port. Port CSRs are implemented separately from the AFU CSRs to provide control and status of the Port. Once valid green bitstream is

[PATCH v4 23/24] fpga: dfl: afu: add user afu sub feature support

2018-02-13 Thread Wu Hao
From: Xiao Guangrong User Accelerated Function Unit sub feature exposes the MMIO region of the AFU. After valid green bitstream (GBS) is programmed and port is enabled, then this MMIO region could be accessed. This patch adds support to enumerate the AFU MMIO region and expose it to userspace vi

[tip:sched/core] sched/fair: Remove stray space in #ifdef

2018-02-13 Thread tip-bot for Vincent Guittot
Commit-ID: 387f77cc8249c847b4fa4d8c93694818b79efee3 Gitweb: https://git.kernel.org/tip/387f77cc8249c847b4fa4d8c93694818b79efee3 Author: Vincent Guittot AuthorDate: Tue, 13 Feb 2018 09:59:42 +0100 Committer: Ingo Molnar CommitDate: Tue, 13 Feb 2018 10:32:36 +0100 sched/fair: Remove stra

drivers/media/dvb-frontends/stb0899_drv.h:151:36: error: weak declaration of 'stb0899_attach' being applied to a already existing, static definition

2018-02-13 Thread kbuild test robot
Hi Wolfgang, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 178e834c47b0d01352c48730235aae69898fbc02 commit: 6cdeaed3b1420bd2569891be0c4123ff59628e9e media: dvb_usb_pctv452e: module refcount changes were unbalanced

Re: Missing watchdog after ACPI watchdog creation failure

2018-02-13 Thread Takashi Iwai
On Thu, 18 Jan 2018 12:28:26 +0100, Takashi Iwai wrote: > > On Thu, 18 Jan 2018 12:26:37 +0100, > Mika Westerberg wrote: > > > > On Thu, Jan 18, 2018 at 12:20:32PM +0200, Mika Westerberg wrote: > > > On Wed, Jan 17, 2018 at 12:53:41PM +0100, Takashi Iwai wrote: > > > > Unfortunately we couldn't g

[PATCH v4 19/24] fpga: dfl-fme-region: add compat_id support

2018-02-13 Thread Wu Hao
This patch adds compat_id support, configure the compat_id value of fpga_region, then userspace could read it from the common sysfs interface compat_id of fpga_region. Signed-off-by: Wu Hao --- drivers/fpga/dfl-fme-region.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/fpga/dfl-fme

[PATCH v4 17/24] fpga: dfl: add fpga bridge platform driver for FME

2018-02-13 Thread Wu Hao
This patch adds fpga bridge platform driver for FPGA Management Engine. It implements the enable_set call back for fpga bridge. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by: Shiva Rao Signed-off-by: Christopher Rauer Signed-off-by: Wu Hao Acked-by: Alan Tull Acked-

[PATCH v4 21/24] fpga: dfl: afu: add header sub feature support

2018-02-13 Thread Wu Hao
The port header register set is always present for port, it is mainly for capability, control and status of the ports that AFU connected to. This patch implements header sub feature support. Below user interfaces are created by this patch. Sysfs interface: * /sys/class/fpga_region///id Read-onl

[PATCH v4 13/24] fpga: region: add compat_id support

2018-02-13 Thread Wu Hao
This patch introduces a compat_id member and sysfs interface for each fpga-region, e.g userspace applications could read the compat_id from the sysfs interface for compatibility checking before PR. Signed-off-by: Wu Hao --- Documentation/ABI/testing/sysfs-class-fpga-region | 5 + drivers/fp

[PATCH v4 15/24] fpga: dfl-fme-pr: add compat_id support for dfl-fme-region platform device.

2018-02-13 Thread Wu Hao
This patch adds compat_id support when driver creates the platform device for dfl-fme-region. It allows dfl-fme-region platform driver to create fpga-region with correct compat_id. Signed-off-by: Wu Hao --- drivers/fpga/dfl-fme-pr.c | 20 drivers/fpga/dfl-fme-pr.h | 3 +++

[PATCH v4 11/24] fpga: dfl: fme: add header sub feature support

2018-02-13 Thread Wu Hao
From: Kang Luwei The Header Register set is always present for FPGA Management Engine (FME), this patch implements init and uinit function for header sub feature and introduce several read-only sysfs interfaces for the capability and status. Sysfs interfaces: * /sys/class/fpga_region///ports_num

[PATCH v4 14/24] fpga: dfl: fme: add partial reconfiguration sub feature support

2018-02-13 Thread Wu Hao
From: Kang Luwei Partial Reconfiguration (PR) is the most important function for FME. It allows reconfiguration for given Port/Accelerated Function Unit (AFU). It creates platform devices for fpga-mgr, fpga-regions and fpga-bridges, and invokes fpga-region's interface (fpga_region_program_fpga)

Re: [tip:x86/pti] Revert "x86/speculation: Simplify indirect_branch_prediction_barrier()"

2018-02-13 Thread Peter Zijlstra
On Tue, Feb 13, 2018 at 12:58:21AM -0800, tip-bot for David Woodhouse wrote: > --- a/arch/x86/include/asm/nospec-branch.h > +++ b/arch/x86/include/asm/nospec-branch.h > @@ -164,10 +164,15 @@ static inline void vmexit_fill_RSB(void) > > static inline void indirect_branch_prediction_barrier(void

[PATCH v4 06/24] fpga: dfl: adds fpga_cdev_find_port

2018-02-13 Thread Wu Hao
For feature devices, we need a method to find the port dedicated to the device. This patch adds a function fpga_cdev_find_port for this purpose. e.g FPGA Management Engine (FME) Partial Reconfiguration sub feature, it uses this function to find dedicated port on the device for PR function implement

[PATCH v4 10/24] fpga: dfl: add FPGA Management Engine driver basic framework

2018-02-13 Thread Wu Hao
From: Kang Luwei The FPGA Management Engine (FME) provides power, thermal management, performance counters, partial reconfiguration and other functions. For each function, it is packaged into a private feature linked to the FME feature device in the 'Device Feature List'. It's a platform device c

[PATCH v4 08/24] fpga: add FPGA DFL PCIe device driver

2018-02-13 Thread Wu Hao
From: Zhang Yi This patch implements the basic framework of the driver for FPGA PCIe device which implements the Device Feature List (DFL) in its MMIO space. This driver is verified on Intel(R) PCIe based FPGA DFL devices, including both integrated (e.g Intel Server Platform with In-package FPGA)

[PATCH v4 09/24] fpga: dfl-pci: add enumeration for feature devices

2018-02-13 Thread Wu Hao
The Device Feature List (DFL) is implemented in MMIO, and features are linked via the DFLs. This patch enables pcie driver to prepare enumeration information (e.g locations of all device feature lists in MMIO) and use common APIs provided by the Device Feature List framework to enumerate each featu

[PATCH v4 05/24] fpga: dfl: add chardev support for feature devices

2018-02-13 Thread Wu Hao
For feature devices drivers, both the FPGA Management Engine (FME) and Accelerated Function Unit (AFU) driver need to expose user interfaces via the device file, for example, mmap and ioctls. This patch adds chardev support in the dfl driver for feature devices, FME and AFU. It reserves the charde

Re: [tip:x86/boot] x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G

2018-02-13 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Tue, Feb 13, 2018 at 12:41:22AM -0800, Andrei Vagin wrote: > > On Tue, Feb 13, 2018 at 11:08:16AM +0300, Kirill A. Shutemov wrote: > > > On Mon, Feb 12, 2018 at 10:51:56PM -0800, Andrei Vagin wrote: > > > > Hi Kirill, > > > > > > > > Something is wrong in this p

[PATCH v4 04/24] fpga: add device feature list support

2018-02-13 Thread Wu Hao
Device Feature List (DFL) defines a feature list structure that creates a link list of feature headers within the MMIO space to provide an extensible way of adding features. This patch introduces a kernel module to provide basic infrastructure to support FPGA devices which implement the Device Feat

[PATCH v4 02/24] fpga: mgr: add region_id to fpga_image_info

2018-02-13 Thread Wu Hao
This patch adds region_id to fpga_image_info data structure, it allows driver to pass region id information to fpga-mgr via fpga_image_info for fpga reconfiguration function. Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull --- v3: add one line comment for region_id v4: add Ac

Re: [PATCH v3 08/21] fpga: add Intel FPGA DFL PCIe device

2018-02-13 Thread Wu Hao
On Thu, Feb 01, 2018 at 03:59:21PM -0600, Alan Tull wrote: > On Tue, Dec 5, 2017 at 11:30 PM, Wu Hao wrote: > > On Tue, Dec 05, 2017 at 11:00:22AM -0600, Alan Tull wrote: > >> On Mon, Dec 4, 2017 at 9:33 PM, Wu Hao wrote: > >> > On Mon, Dec 04, 2017 at 01:46:59PM -0600, Alan Tull wrote: > >> >> O

Re: [PATCH] perf report: Fix a memory corrupton issue when enabling --branch-history

2018-02-13 Thread Jiri Olsa
On Tue, Feb 13, 2018 at 04:44:28PM +0800, Jin Yao wrote: > Following command lines will cause perf crash. > > perf record -j call -g -a > perf report --branch-history > > *** Error in `perf': double free or corruption (!prev): 0x104aa040 *** > === Backtrace: = > /lib/x86_64-l

[PATCH 2/3] ARM: dts: rockchip: phycore: Fix supply node for card's power

2018-02-13 Thread Daniel Schultz
From: Wadim Egorov The card is powered by the RK818 switch vdd_sd which is supplied by VCC9 (VDD_3V3_IO). Signed-off-by: Wadim Egorov Signed-off-by: Daniel Schultz --- arch/arm/boot/dts/rk3288-phycore-rdk.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dt

[PATCH] ARM: multi_v7_defconfig: enable CONFIG_DP83867_PHY

2018-02-13 Thread Daniel Schultz
This adds the driver for TI's DP83867 ethernet phy. Signed-off-by: Daniel Schultz --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 61509c4..8313fa1 100644 --- a/arch/arm/co

[PATCH 00/15] R-Car M3-N initial support

2018-02-13 Thread Jacopo Mondi
Hello, this series adds support for Rensas R-Car M3-N (r8a77965) Soc and M3-N based Salvator-x development board. The series introduces a cpg-mssr clock/power gating module, a power/reset controller for the SoC and initial PFC support. Clock and power areas for M3-N are identical to M3-W, with th

[PATCH 12/15] ARM64: dts: r8a77965: Add GPIO nodes

2018-02-13 Thread Jacopo Mondi
Add GPIO nodes to r8a77965 SoC device tree file. Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 152 +++--- 1 file changed, 120 insertions(+), 32 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renes

[PATCH 02/15] clk: renesas: cpg-msr: Add support for R-Car M3-N

2018-02-13 Thread Jacopo Mondi
Initial support for R-Car M3-N (r8a77965), including core and module clocks. Signed-off-by: Jacopo Mondi --- .../devicetree/bindings/clock/renesas,cpg-mssr.txt | 1 + drivers/clk/renesas/Kconfig| 5 + drivers/clk/renesas/Makefile | 1 + drivers

[PATCH 04/15] pinctrl: sh-pfc: Initial R-Car M3-N support

2018-02-13 Thread Jacopo Mondi
Add initial PFC support for R-Car M3-N (r8a77965) SoC. No groups or functions defined, just pin and registers enumeration. Signed-off-by: Jacopo Mondi --- .../bindings/pinctrl/renesas,pfc-pinctrl.txt |1 + drivers/pinctrl/sh-pfc/Kconfig |5 + drivers/pinctrl/sh-

Re: [RFC PATCH 1/3] mm: make start_isolate_page_range() fail if already isolated

2018-02-13 Thread Mike Rapoport
On Mon, Feb 12, 2018 at 02:20:54PM -0800, Mike Kravetz wrote: > start_isolate_page_range() is used to set the migrate type of a > page block to MIGRATE_ISOLATE while attempting to start a > migration operation. It is assumed that only one thread is > attempting such an operation, and due to the li

[PATCH 14/15] pinctrl: sh-pfc: r8a77965: Add EtherAVB groups/functions

2018-02-13 Thread Jacopo Mondi
Add EtherAVB groups and functions definitions for R-Car M3-N. Signed-off-by: Jacopo Mondi --- drivers/pinctrl/sh-pfc/pfc-r8a77965.c | 110 ++ 1 file changed, 110 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c b/drivers/pinctrl/sh-pfc/pfc-r8a779

[PATCH 15/15] ARM64: dts: r8a77965: Add EtherAVB device node

2018-02-13 Thread Jacopo Mondi
Populate the ethernet@e680 device node to enable Ethernet interface for R-Car M3-N (r8a77965) SoC. Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 43 ++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts

[PATCH 10/15] ARM64: dts: r8a77965: Add SCIF device nodes

2018-02-13 Thread Jacopo Mondi
Add SCIF[0-5] device nodes for M3-N (r8a77965) SoC. Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 85 --- 1 file changed, 79 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/rene

[PATCH 13/15] Documentation: devicetree: ravb: Add r8a77965

2018-02-13 Thread Jacopo Mondi
Add documentation for r8a77965 compatible string to renesas ravb device tree bindings documentation. Signed-off-by: Jacopo Mondi --- Documentation/devicetree/bindings/net/renesas,ravb.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/renesas,ravb.txt

[PATCH 11/15] gpio: rcar: Add R-Car M3-N compatible string

2018-02-13 Thread Jacopo Mondi
Add compatible string for R-Car M3-N (r8a77965) in gpio-rcar. Signed-off-by: Jacopo Mondi --- Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 1 + drivers/gpio/gpio-rcar.c | 4 2 files changed, 5 insertions(+) diff --git a/Documentation/de

[PATCH 09/15] pinctrl: sh-pfc: r8a77965: Add SCIFs groups/functions

2018-02-13 Thread Jacopo Mondi
Add SCIF[0-5] groups and pin function definitions for R-Car M3-N. Signed-off-by: Jacopo Mondi --- drivers/pinctrl/sh-pfc/pfc-r8a77965.c | 296 ++ 1 file changed, 296 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c b/drivers/pinctrl/sh-pfc/pfc-r8

[PATCH 07/15] ARM64: dts: r8a77965: Add dmac device nods

2018-02-13 Thread Jacopo Mondi
Add dmac[0-2] device nodes for R-Car M3-N (r8a77965) SoC. Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 96 ++- 1 file changed, 93 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dt

[PATCH 08/15] Documentation: devicetree: renesas,sci: Add r8a77965

2018-02-13 Thread Jacopo Mondi
Add documentation for r8a77965 compatible string to reneass sci-serial device tree bindings documentation. Signed-off-by: Jacopo Mondi --- Documentation/devicetree/bindings/serial/renesas,sci-serial.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/seria

[PATCH 2/2] net: phy: dp83867: Add documentation for CLK_OUT pin muxing

2018-02-13 Thread Daniel Schultz
From: Wadim Egorov Add documentation of ti,clk-output-sel which can be used to select a specific clock for CLK_OUT. Signed-off-by: Wadim Egorov Signed-off-by: Daniel Schultz --- Documentation/devicetree/bindings/net/ti,dp83867.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Document

[PATCH 06/15] Documentation: devicetree: dma: Add r8a77965 dmac

2018-02-13 Thread Jacopo Mondi
Add documentation for r8a77965 compatible string to rcar-dmac device tree bindings documentation. Signed-off-by: Jacopo Mondi --- Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/renesas,rcar-dma

[PATCH 1/2] net: phy: dp83867: Add binding for the CLK_OUT pin muxing option

2018-02-13 Thread Daniel Schultz
From: Wadim Egorov The DP83867 has a muxing option for the CLK_OUT pin. It is possible to set CLK_OUT for different channels. Create a binding to select a specific clock for CLK_OUT pin. Signed-off-by: Wadim Egorov Signed-off-by: Daniel Schultz --- drivers/net/phy/dp83867.c| 14 ++

[PATCH 05/15] ARM64: dts: Add R-Car Salvator-x M3-N support

2018-02-13 Thread Jacopo Mondi
Add initial support for R-Car M3-N Salvator-x and r8a77965 SoC in device tree with cpg-mssr, reset and clock nodes. Add place-holder device nodes for all nodes referred by "salvator-common.dtsi" Signed-off-by: Jacopo Mondi --- arch/arm64/Kconfig.platforms | 6 + arch/arm

[PATCH 03/15] soc: renesas: Add R-Car M3-N support

2018-02-13 Thread Jacopo Mondi
Add support for R-Car M3-N (r8a77965) power areas and reset. M3-N power areas are identical to M3-W ones, so just copy and rename them. Signed-off-by: Jacopo Mondi --- .../bindings/power/renesas,rcar-sysc.txt | 1 + .../devicetree/bindings/reset/renesas,rst.txt | 1 + drivers/so

[PATCH 01/15] Documentation: devicetree: R-Car M3-N SoC DT bindings

2018-02-13 Thread Jacopo Mondi
Add device tree bindings documentation for Renesas R-Car M3-N (r8a77965) SoC. Signed-off-by: Jacopo Mondi --- Documentation/devicetree/bindings/arm/shmobile.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/shmobile.txt b/Documentation/devicetree/bi

Re: [RFC PATCH 2/3] mm: add find_alloc_contig_pages() interface

2018-02-13 Thread Mike Rapoport
On Mon, Feb 12, 2018 at 02:20:55PM -0800, Mike Kravetz wrote: > find_alloc_contig_pages() is a new interface that attempts to locate > and allocate a contiguous range of pages. It is provided as a more > convenient interface to the existing alloc_contig_range() interface > which is used by CMA, me

[PATCH] cpufreq: mediatek: Add mediatek related projects into blacklist

2018-02-13 Thread sean.wang
From: Sean Wang commit 6066998cbd2b1012a8d5bc9a2957cfd0ad53150e upstream. Please apply 6066998cbd2b1012a8d5bc9a2957cfd0ad53150e to 4.14.y and 4.15.y commit edeec420de24 ("cpufreq: dt-platdev: Automatically create cpufreq device with OPP v2") not added MediaTek SoCs to the blacklist that would l

[PATCH 3/3] ARM: dts: rockchip: phycore: Support UHS mode for SD card on phyCORE-RK3288 RDK

2018-02-13 Thread Daniel Schultz
From: Wadim Egorov The phyCORE-RK3288 RDK could enable SD3.0 card but need vdd_io_sd to support the voltage range from 1.8V to 3.3V. And we have also to add relevant UHS modes to the sdmmc node. Let's also turn off the vdd_io_sd regulator in suspend state. Signed-off-by: Wadim Egorov Signed-off

[PATCH 1/3] ARM: dts: rockchip: phycore: Remove 1.8 GHz operation point

2018-02-13 Thread Daniel Schultz
Rockchip recommends to run the CPU cores only with operations points of 1.6 GHz or lower. Removed the cpu0 node with too high operation points and use the default values instead. Signed-off-by: Daniel Schultz --- arch/arm/boot/dts/rk3288-phycore-som.dtsi | 20 1 file change

Re: INFO: rcu detected stall in __xfrm_decode_session

2018-02-13 Thread Dmitry Vyukov
On Mon, Feb 12, 2018 at 4:24 PM, Dmitry Vyukov wrote: > On Mon, Feb 12, 2018 at 4:22 PM, syzbot > wrote: >> Hello, >> >> syzbot hit the following crash on net-next commit >> d0adb51edb73c94a595bfa9d9bd8b35977e74fbf >> >> Unfortunately, I don't have any reproducer for this crash yet. >> Raw consol

[PATCH v4 00/24] FPGA Device Feature List (DFL) Device Drivers

2018-02-13 Thread Wu Hao
Hi All, Here is v4 patch-series adding drivers for FPGA DFL devices. (This is the new version of [PATCH v3 00/21] Intel FPGA Device Drivers[1]) This patch series provides a common framework to support FPGA Device Feature List (DFL), and also feature dev drivers under this DFL framework to provide

[PATCH v4 01/24] docs: fpga: add a document for FPGA Device Feature List (DFL) Framework Overview

2018-02-13 Thread Wu Hao
Add a document for FPGA Device Feature List (DFL) Framework Overview. Signed-off-by: Enno Luebbers Signed-off-by: Xiao Guangrong Signed-off-by: Wu Hao --- v2: added FME fpga-mgr/bridge/region platform driver to driver organization. updated open discussion per current implementation. fix

[PATCH v7 18/37] nds32: ELF definitions

2018-02-13 Thread Greentime Hu
This patch adds definitions for the ELF format, relocation types, vdso locations and EXEC_PAGESIZE. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/include/asm/elf.h | 171 +++ arch/nds32/include/uapi/asm/au

Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-13 Thread Paolo Bonzini
On 13/02/2018 09:15, David Woodhouse wrote: >>>   >>> - if (!data) >>> + if (!data && !spectre_v2_ibrs_all()) >>>   break; >> This should check the value of IBRS_ALL in the VM, not in the host. > No, it's host we want. If IBRS_ALL is set in the host, we set the

[PATCH v7 16/37] nds32: Device specific operations

2018-02-13 Thread Greentime Hu
This patch introduces ioremap implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/include/asm/io.h | 83 + arch/nds32/mm/ioremap.c | 62 + 2 files changed

[PATCH v7 14/37] nds32: IRQ handling

2018-02-13 Thread Greentime Hu
This patch includes irq related functions and irqchip_init(). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/include/asm/irqflags.h | 36 arch/nds32/kernel/irq.c | 9 + 2 files changed, 45 i

Re: [tip:x86/boot] x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G

2018-02-13 Thread Kirill A. Shutemov
On Tue, Feb 13, 2018 at 10:43:56AM +0100, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > On Tue, Feb 13, 2018 at 12:41:22AM -0800, Andrei Vagin wrote: > > > On Tue, Feb 13, 2018 at 11:08:16AM +0300, Kirill A. Shutemov wrote: > > > > On Mon, Feb 12, 2018 at 10:51:56PM -0800, Andrei Vagi

Re: ppc elf_map breakage with MAP_FIXED_NOREPLACE

2018-02-13 Thread Michal Hocko
On Tue 13-02-18 12:19:18, Anshuman Khandual wrote: > On 02/01/2018 07:18 PM, Michal Hocko wrote: > > On Thu 01-02-18 08:43:34, Anshuman Khandual wrote: > > [...] > >> $dmesg | grep elf_brk > >> [9.571192] elf_brk 10030328 elf_bss 1003 > >> > >> static int load_elf_binary(struct linux_binprm

Re: Linux 4.16-rc1: regression bisected, Debian kernel package tool make-kpkg stalls indefinitely during kernel build due to commit "kconfig: remove check_stdin()"

2018-02-13 Thread Sander Eikelenboom
On 13/02/18 05:09, Masahiro Yamada wrote: > 2018-02-13 12:00 GMT+09:00 Woody Suwalski : >> Sander Eikelenboom wrote: >>> >>> L.S., >>> >>> The Debian kernel-package tool make-kpkg for easy building of upstream >>> kernels on Debian fails with linux 4.16-rc1. >>> >>> The tool (perl script) while inv

[PATCH v7 11/37] nds32: MMU fault handling and page table management

2018-02-13 Thread Greentime Hu
This patch includes page fault handler, mmap and fixup implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/lib/copy_page.S | 37 arch/nds32/mm/extable.c| 16 ++ arch/nds32/mm/fault.c | 410 +

[PATCH v7 12/37] nds32: Cache and TLB routines

2018-02-13 Thread Greentime Hu
This patch contains cache and TLB maintenance functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/include/asm/cache.h | 12 + arch/nds32/include/asm/cache_info.h| 13 + arch/nds32/include/asm/cacheflush.h| 44 +++ arch/nd

Re: [PATCH 2/4 v6] lib: debugobjects: add global free list and the counter

2018-02-13 Thread Thomas Gleixner
On Mon, 12 Feb 2018, Yang Shi wrote: > On 2/12/18 8:25 AM, Thomas Gleixner wrote: > > On Tue, 6 Feb 2018, Yang Shi wrote: > > > + /* > > > + * Reuse objs from the global free list, they will be reinitialized > > > + * when allocating > > > + */ > > > + while (obj_nr_tofree > 0 && (obj_pool_free

Re: [PATCH 5/8] docs: kernel-doc: Move STATE_BODY processing to a separate function

2018-02-13 Thread Jani Nikula
On Fri, 09 Feb 2018, Linus Torvalds wrote: > On Fri, Feb 9, 2018 at 1:32 AM, Jani Nikula > wrote: >>> + # miguel-style comment kludge, look for blank lines after >>> + # @parameter line to signify start of description >> >> The "miguel-style" always intrigued me, but its origin predates

[PATCH v7 10/37] nds32: MMU initialization

2018-02-13 Thread Greentime Hu
This patch includes memory initializations and highmem supporting. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/mm/highmem.c | 79 ++ arch/nds32/mm/init.c | 277 +++ arch/nds32/mm/mm

[PATCH v7 09/37] nds32: MMU definitions

2018-02-13 Thread Greentime Hu
This patch includes virtual memory layout, PHYS_OFFSET is defined as 0x0. It also includes the 4KB/8KB page size configurations and pte operations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/include/asm/fixmap.h | 29 +++ arch/nds32/includ

[tip:core/debugobjects] debugobjects: Export max loops counter

2018-02-13 Thread tip-bot for Yang Shi
Commit-ID: bd9dcd046509cd5355605e43791eacee8bf5e40f Gitweb: https://git.kernel.org/tip/bd9dcd046509cd5355605e43791eacee8bf5e40f Author: Yang Shi AuthorDate: Tue, 6 Feb 2018 07:18:25 +0800 Committer: Thomas Gleixner CommitDate: Tue, 13 Feb 2018 10:58:58 +0100 debugobjects: Export max lo

[PATCH v7 07/37] nds32: Kernel booting and initialization

2018-02-13 Thread Greentime Hu
This patch includes the kernel startup code. It can get dtb pointer passed from bootloader. It will create a temp mapping by tlb instructions at beginning and goto start_kernel. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/kernel/head.S | 188

[tip:core/debugobjects] debugobjects: Use global free list in __debug_check_no_obj_freed()

2018-02-13 Thread tip-bot for Yang Shi
Commit-ID: 1ea9b98b007a662e402551a41a4413becad40a65 Gitweb: https://git.kernel.org/tip/1ea9b98b007a662e402551a41a4413becad40a65 Author: Yang Shi AuthorDate: Tue, 6 Feb 2018 07:18:28 +0800 Committer: Thomas Gleixner CommitDate: Tue, 13 Feb 2018 10:59:18 +0100 debugobjects: Use global fr

[tip:core/debugobjects] debugobjects: Use global free list in free_object()

2018-02-13 Thread tip-bot for Yang Shi
Commit-ID: 636e1970fd7deaa0d0ee0dfb6ac65fbd690b32d2 Gitweb: https://git.kernel.org/tip/636e1970fd7deaa0d0ee0dfb6ac65fbd690b32d2 Author: Yang Shi AuthorDate: Tue, 6 Feb 2018 07:18:27 +0800 Committer: Thomas Gleixner CommitDate: Tue, 13 Feb 2018 10:58:59 +0100 debugobjects: Use global fr

[tip:core/debugobjects] debugobjects: Add global free list and the counter

2018-02-13 Thread tip-bot for Yang Shi
Commit-ID: 36c4ead6f6dfbbe777d3d7e9cc8702530b71a94f Gitweb: https://git.kernel.org/tip/36c4ead6f6dfbbe777d3d7e9cc8702530b71a94f Author: Yang Shi AuthorDate: Tue, 6 Feb 2018 07:18:26 +0800 Committer: Thomas Gleixner CommitDate: Tue, 13 Feb 2018 10:58:58 +0100 debugobjects: Add global fr

[RFC PATCH] elf: enforce MAP_FIXED on overlaying elf segments (was: Re: ppc elf_map breakage with MAP_FIXED_NOREPLACE)

2018-02-13 Thread Michal Hocko
On Fri 02-02-18 07:55:14, Kees Cook wrote: > On Fri, Feb 2, 2018 at 12:40 AM, Michal Hocko wrote: > > On Thu 01-02-18 14:10:07, Michal Hocko wrote: > > Thanks a lot to Michael Matz for his background. He has pointed me to > > the following two segments from your binary[1] > > LOAD 0x00

[PATCH v7 08/37] nds32: Exception handling

2018-02-13 Thread Greentime Hu
This patch includes the exception/interrupt entries, pt_reg structure and related accessors. /* Unaligned accessing handling*/ Andes processors cannot load/store information which is not naturally aligned on the bus, i.e., loading a 4 byte data whose start address must be divisible by 4. If unalig

[PATCH v7 06/37] nds32: Assembly macros and definitions

2018-02-13 Thread Greentime Hu
This patch includes assembly macros, bit field definitions used in .S files across arch/nds32/. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/include/asm/assembler.h | 39 ++ arch/nds32/include/asm/bitfield.h | 963

[PATCH v7 05/37] drivers/video/concole: add negative dependency for VGA_CONSOLE on nds32

2018-02-13 Thread Greentime Hu
nds32 does not support VGA console, so prevent that kconfig symbol from being enabled for nds32, thus fixing these build errors: drivers/video/console/vgacon.o: In function `vgacon_save_screen': /NOBACKUP/sqa2/greentime/contrib/src_pkg/linux-nds32/drivers/video/console/vgacon.c:1327: undefi

[PATCH v7 04/37] earlycon: add reg-offset to physical address before mapping

2018-02-13 Thread Greentime Hu
It will get the wrong virtual address because port->mapbase is not added the correct reg-offset yet. We have to update it before earlycon_map() is called Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann Cc: Peter Hurley Cc: sta...@vger.kernel.org Fixes: 088da2a17619 ("of: earlycon: Initializ

Re: [PATCH] headers: untangle kmemleak.h from mm.h

2018-02-13 Thread Michael Ellerman
Randy Dunlap writes: > On 02/12/2018 04:28 AM, Michael Ellerman wrote: >> Randy Dunlap writes: >> >>> From: Randy Dunlap >>> >>> Currently #includes for no obvious >>> reason. It looks like it's only a convenience, so remove kmemleak.h >>> from slab.h and add to any users of kmemleak_* >>>

[PATCH v7 02/37] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2018-02-13 Thread Greentime Hu
It allows some architectures to use this generic macro instead of defining theirs. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- include/asm-generic/io.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/asm-gen

[PATCH v7 00/37] Andes(nds32) Linux Kernel Port

2018-02-13 Thread Greentime Hu
This is the 7th version patchset to add the Linux kernel port for Andes(nds32) processors. Almost all of the feedbacks from v6 patchseries has been addressed and we rebase it to v4.16-rc1. Thanks to everyone who provided feedback and help on the previous version. This patchset adds core architectu

[PATCH v4 4/5] x86/apic: Rename variable/function related to x86_io_apic_ops

2018-02-13 Thread Baoquan He
The names of x86_io_apic_ops and its two member variables, are misleading. The .read member is to read IO_APIC reg, while .disable which hook native_disable_io_apic/irq_remapping_disable_io_apic is actually used to restore boot irq mode, not disable IO_APIC. So rename x86_io_apic_ops to x86_apic_o

[PATCH v4 3/5] x86/apic: Remove useless disable_IO_APIC

2018-02-13 Thread Baoquan He
No one uses it anymore. Signed-off-by: Baoquan He --- arch/x86/include/asm/io_apic.h | 1 - arch/x86/kernel/apic/io_apic.c | 13 - arch/x86/kernel/machine_kexec_32.c | 5 ++--- arch/x86/kernel/machine_kexec_64.c | 5 ++--- 4 files changed, 4 insertions(+), 20 deletions(-)

[PATCH v4 1/5] x86/apic: Split out restore_boot_irq_mode from disable_IO_APIC

2018-02-13 Thread Baoquan He
This is a preparation patch. Split out the code which restores boot irq mode from disable_IO_APIC() and wrap into a new function restore_boot_irq_mode(). No functional change. Signed-off-by: Baoquan He --- arch/x86/include/asm/io_apic.h | 1 + arch/x86/kernel/apic/io_apic.c | 5 + 2 files ch

[PATCH v4 0/5] x86/apic: Fix restoring boot irq mode in reboot and kexec/kdump

2018-02-13 Thread Baoquan He
This is v4 post. Only patch 0002 is updated. A regression bug was introduced in below commit. commit 522e66464467 ("x86/apic: Disable I/O APIC before shutdown of the local APIC") It caused the action to fail which we try to restore boot irq mode in reboot and kexec/kdump. Details can be seen in

[PATCH v4 2/5] x86/apic: Fix restoring boot irq mode in reboot and kexec/kdump

2018-02-13 Thread Baoquan He
This is a regression fix. Before, to fix erratum AVR31, commit 522e66464467 ("x86/apic: Disable I/O APIC before shutdown of the local APIC") moved lapic_shutdown() calling after disable_IO_APIC() in reboot and kexec/kdump code path. This introdued a regression. The root cause is that disable_IO_AP

[PATCH v4 5/5] x86/apic: Set up through-local-APIC on boot CPU if 'noapic' specified

2018-02-13 Thread Baoquan He
Currently kdump kernel becomes very slow if 'noapic' is specified. Normal kernel won't. Kernel parameter 'noapic' is used to disable IO-APIC in system for testing or special purpose. Here the root cause is that in kdump kernel LAPIC is disabled since commit 522e664644 ("x86/apic: Disable I/O APIC

Re: [PATCH v1 1/1] usb: cdc_acm: prevent race at write to acm while system resumes

2018-02-13 Thread Oliver Neukum
Am Montag, den 12.02.2018, 12:15 -0800 schrieb sathyanarayan.kuppusw...@linux.intel.com: > From: Dominik Bozek > > ACM driver may accept data to transmit while system is not fully > resumed. In this case ACM driver buffers data and prepare URBs > on usb anchor list. > There is a little chance tha

Re: [PATCH v7 4/6] iommu/arm-smmu: Add the device_link between masters and smmu

2018-02-13 Thread Vivek Gautam
Hi Tomasz, On Tue, Feb 13, 2018 at 2:01 PM, Tomasz Figa wrote: > Hi Vivek, > > Thanks for the patch. Please see my comments inline. Thanks for reviewing the patch series. > > On Wed, Feb 7, 2018 at 7:31 PM, Vivek Gautam > wrote: >> From: Sricharan R >> >> Finally add the device link between

[PATCH v8 5/5] arm64: defconfig: enable f2fs and squashfs

2018-02-13 Thread Li Wei
Partitions in HiKey960 are formatted as f2fs and squashfs. f2fs is for userdata; squashfs is for system. Both partitions are required by Android. Signed-off-by: Li Wei Signed-off-by: Zhangfei Gao Signed-off-by: Guodong Xu --- arch/arm64/configs/defconfig | 8 1 file changed, 8 inserti

[PATCH v8 1/5] scsi: ufs: add Hisilicon ufs driver code

2018-02-13 Thread Li Wei
add Hisilicon ufs driver code. Signed-off-by: Li Wei Signed-off-by: Geng Jianfeng Signed-off-by: Zang Leigang Signed-off-by: Yu Jianfeng --- drivers/scsi/ufs/Kconfig| 9 + drivers/scsi/ufs/Makefile | 1 + drivers/scsi/ufs/ufs-hisi.c | 623

[PATCH v8 0/5] scsi: ufs: add ufs driver code for Hisilicon Hi3660 SoC

2018-02-13 Thread Li Wei
This patchset adds driver support for UFS for Hi3660 SoC. It is verified on HiKey960 board. Li Wei (5): scsi: ufs: add Hisilicon ufs driver code dt-bindings: scsi: ufs: add document for hisi-ufs arm64: dts: add ufs dts node arm64: defconfig: enable configs for Hisilicon ufs arm64: defco

[PATCH v8 4/5] arm64: defconfig: enable configs for Hisilicon ufs

2018-02-13 Thread Li Wei
This enable configs for Hisilicon Hi UFS driver. Signed-off-by: Li Wei Signed-off-by: Zhangfei Gao Signed-off-by: Guodong Xu --- arch/arm64/configs/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6356c6da34e

[PATCH v8 2/5] dt-bindings: scsi: ufs: add document for hisi-ufs

2018-02-13 Thread Li Wei
add ufs node document for Hisilicon. Signed-off-by: Li Wei --- Documentation/devicetree/bindings/ufs/ufs-hisi.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/ufs/ufs-hisi.txt diff --git a/Documentation/devicetree/bindings/u

Re: [PATCH] mm/page_poison: move PAGE_POISON to page_poison.c

2018-02-13 Thread Michal Hocko
On Fri 09-02-18 16:08:14, Wei Wang wrote: > The PAGE_POISON macro is used in page_poison.c only, so avoid exporting > it. Also remove the "mm/debug-pagealloc.c" related comment, which is > obsolete. Why is this an improvement? I thought the whole point of poison.h is to keep all the poison value a

Re: samples/seccomp/ broken when cross compiling s390, ppc allyesconfig

2018-02-13 Thread Michael Ellerman
Kees Cook writes: > On Mon, Feb 12, 2018 at 7:25 PM, Michael Ellerman wrote: >> Michal Hocko writes: >>> Hi, >>> my build test machinery chokes on samples/seccomp when cross compiling >>> s390 and ppc64 allyesconfig. This has been the case for quite some >>> time already but I never found time

[PATCH v8 3/5] arm64: dts: add ufs dts node

2018-02-13 Thread Li Wei
arm64: dts: add ufs node for Hisilicon. Signed-off-by: Li Wei --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index ab0b95ba5ae5..d0dfa97f

Re: [PATCH 08/11] fuse: Support fuse filesystems outside of init_user_ns

2018-02-13 Thread Miklos Szeredi
On Mon, Feb 12, 2018 at 5:35 PM, Eric W. Biederman wrote: > Miklos Szeredi writes: > >> On Fri, Dec 22, 2017 at 3:32 PM, Dongsu Park wrote: >>> From: Seth Forshee >>> >>> In order to support mounts from namespaces other than >>> init_user_ns, fuse must translate uids and gids to/from the >>> us

Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-13 Thread David Woodhouse
On Tue, 2018-02-13 at 10:58 +0100, Paolo Bonzini wrote: > > If spectre_v2_ibrs_all() is true then KVM should *never* actually pass > > through or touch the real MSR. > > That would be nice but unfortunately it's not possible. :( > > The VM might actually not have IBRS_ALL, as usual the reason is

<    1   2   3   4   5   6   7   8   9   10   >