Re: [PATCH] pwm: rockchip: State of pwm clock should synchronize with pwm enabled state

2017-02-27 Thread Boris Brezillon
Hi David, On Tue, 28 Feb 2017 14:43:36 +0800 David Wu wrote: > From: "david.wu" > > If the pwm was not enabled at uboot loader, pwm could not work for clock > always disabled at pwm driver. The pwm clock is enabled at beginning of > pwm_apply(), but disabled at end of pwm_apply(). > > If the

Re: [PATCH 0/4] ARM: sun7i: Convert sun7i SoC to sunxi-ng

2017-02-27 Thread Maxime Ripard
Hi Priit, On Mon, Feb 27, 2017 at 11:09:10PM +0200, Priit Laes wrote: > Hi, > > This is serie brings another SoC into the sunxi-ng world. > > As mentioned in sun5i conversion, this is pretty much standard > stuff as all the required clocks were already implemented in > the sunxi-ng framework. T

[PATCH 1/1] Drivers: hv: util: on deinit, don't wait the release event, if we shouldn't

2017-02-27 Thread kys
From: Dexuan Cui If the daemon is NOT running at all, when we disable the util device from Hyper-V Manager (or sometimes the host can rescind a util device and then re-offer it), we'll hang in util_remove -> hv_kvp_deinit -> wait_for_completion(&release_event), because this code path doesn't run:

[GIT PULL] objtool fixes

2017-02-27 Thread Ingo Molnar
Linus, Please pull the latest core-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-urgent-for-linus # HEAD: 4e4636cf981b5b629fbfb78aa9f232e015f7d521 objtool: Enclose contents of unreachable() macro in a block A handful of objtool fixes rela

Re: next: runtime warning after 'locking/refcounts: Out-of-line everything'

2017-02-27 Thread Peter Zijlstra
ARNING: CPU: 0 PID: 1 at lib/refcount.c:128 refcount_sub_and_test+0x90/0xd0 > Modules linked in: > CPU: 0 PID: 1 Comm: swapper Not tainted 4.10.0-next-20170227 #1 > task: cf81d5a0 task.stack: cf81e000 > NIP: c02100e0 LR: c02100e0 CTR: c0279970 > REGS: cf81fc90 TRAP: 0700 Not tainted

Product Inquiry

2017-02-27 Thread Amit Pragash
Hi I would like to find out about your company and your business activities. Please send me a brochure, product catalogue and price information. kindly send the following to our e-mail: amitprag...@outlook.com Yours sincerely, Amit Pragash CODEGEN INTERNATIONAL PVT LTD 29, Braybrooke Street,, Co

Re: [PATCH v2 2/5] KVM: add KVM request variants without barrier

2017-02-27 Thread Peter Xu
On Tue, Feb 28, 2017 at 03:34:24PM +0800, Peter Xu wrote: [...] > > diff --git a/arch/mips/kvm/emulate.c b/arch/mips/kvm/emulate.c > > index ee4af898bcf6..552ae2b5e911 100644 > > --- a/arch/mips/kvm/emulate.c > > +++ b/arch/mips/kvm/emulate.c > > @@ -865,7 +865,7 @@ enum emulation_result kvm_mips

Re: [PATCH v5 2/3] nvmem: sunxi-sid: add support for H3's SID controller

2017-02-27 Thread Maxime Ripard
On Tue, Feb 28, 2017 at 03:27:14AM +0800, Icenowy Zheng wrote: > The H3 SoC have a bigger SID controller, which has its direct read > address at 0x200 position in the SID block, not 0x0. > > Also, H3 SID controller has some silicon bug that makes the direct read > value wrong at cold boot, add cod

Re: [PATCH v2 2/5] KVM: add KVM request variants without barrier

2017-02-27 Thread Peter Xu
On Fri, Feb 24, 2017 at 08:49:59PM +0100, Radim Krčmář wrote: > The leading underscores denote that the call is just a bitop wrapper. > > Switch all users of open-coded set/check/test to kvm_request ones. > > Automated by coccinelle script: > @@ > expression VCPU, REQ; > @@ > -set_bit(REQ

Re: [PATCH 1/2] x86/mm/numa: trivial fix on typo and error message

2017-02-27 Thread Wei Yang
Hope someone like these two patches. On Mon, Feb 06, 2017 at 11:35:28PM +0800, Wei Yang wrote: >When allocating pg_data in alloc_node_data(), it will try to allocate from >local node first and then from any node. If it fails at the second trial, >it means there is not available memory on any node.

Re: [PATCH v1] mmc: mediatek: Fixed bug where clock frequency could be set wrong

2017-02-27 Thread Daniel Kurtz
On Fri, Feb 24, 2017 at 5:38 PM, Yong Mao wrote: > From: Yong Mao > To: Daniel Kurtz > Subject:Re: [PATCH v1] mmc: mediatek: Fixed bug where clock frequency > could be set wrong > Date: Fri, 24 Feb 2017 17:33:37 +0800 > > > On Fri, 2017-02-24 at 17:52 +0900, Daniel Kurtz wrote: >

Re: [PATCH 1/2] mm/memblock: use NUMA_NO_NODE instead of MAX_NUMNODES as default node_id

2017-02-27 Thread Wei Yang
Hi, everyone Looking for some comment on these two patches :-) On Fri, Jan 27, 2017 at 09:59:21AM +0800, Wei Yang wrote: >According to commit ('mm/memblock: switch to use >NUMA_NO_NODE instead of MAX_NUMNODES'), MAX_NUMNODES is not preferred as an >node_id indicator. > >This patch use NUMA_NO_NO

[NAND Question] When oob_required is used?

2017-02-27 Thread Masahiro Yamada
Hi. I am seeing the reference implementations for the callback in drivers/mtd/nand/nand_base.c I see only some of them use the argument "oob_required". - oob_required is used nand_read_page_raw() nand_write_page_raw() nand_write_subpage_hwecc() - oob_required is ignored nand_read_page_raw_s

Re: [PATCH v2 2/3] remoteproc: qcom: Add scm call to protect modem mem in mss rproc drv.

2017-02-27 Thread Stephen Boyd
On 01/30, Avaneesh Kumar Dwivedi wrote: > This patch add hypervisor call support for second stage translation from > mss remoteproc driver, this is required so that modem on msm8996 which is > based on armv8 architecture can access DDR region where modem firmware > are loaded. > > Signed-off-by: A

[PATCH] arm64: dump: hide kernel pointers

2017-02-27 Thread Miles Chen
Mask kernel pointers of /sys/kernel/debug/kernel_page_tables entry like /proc/vmallocinfo does. With sysctl kernel.kptr_restrict=0 or 1: cat /sys/kernel/debug/kernel_page_tables ---[ Modules start ]--- ---[ Modules end ]--- ---[ vmalloc() Area ]--- ff800800-ff800801 64K PT

Re: [PATCH V2 1/3] arm64: dts: Add basic DT to support Spreadtrum's SP9860G

2017-02-27 Thread Chunyan Zhang
On 24 February 2017 at 23:07, Rob Herring wrote: > On Fri, Feb 24, 2017 at 1:57 AM, Chunyan Zhang > wrote: >> On 四, 2月 23, 2017 at 06:00:20下午 -0600, Rob Herring wrote: >>> On Tue, Feb 21, 2017 at 12:55 AM, Chunyan Zhang >>> wrote: >>> > From: Orson Zhai >>> > >>> > SC9860G is a 8 cores of A53

Re: [v2] Input: pwm-beeper: support customized freq for SND_BELL

2017-02-27 Thread Heiko Schocher
Hello David, Am 28.02.2017 um 06:30 schrieb David Lechner: On 02/27/2017 11:19 PM, Heiko Schocher wrote: Hello David, Am 27.02.2017 um 19:11 schrieb David Lechner: On 02/20/2017 02:37 AM, Heiko Schocher wrote: From: Guan Ben extend the pwm-beeper driver to support customized frequency for

[PATCH V3] ARM: dts: exynos5440: support the phy-pcie node for pcie

2017-02-27 Thread Jaehoon Chung
Add pcie-phy node for using phy-exynos-pcie. There are some modifications. 1. Remove the configuration space values in "ranges" property. - The getting configuration space from ranges is old way. - Instead, It can be got from "config" 2. Use the reg-names as "elbi", "config". - Can know the purpo

Re: [PATCH v6] staging: xgifb: correct the multiple line dereference

2017-02-27 Thread Joe Perches
On Tue, 2017-02-28 at 06:51 +0100, Greg Kroah-Hartman wrote: > On Tue, Feb 28, 2017 at 10:35:30AM +0530, Arushi Singhal wrote: > > Error reported by checkpatch.pl as "avoid multiple line dereference". > > Addition of new variables to make the code more readable and also to > > correct about mention

Re: [RFC 2/3] kcmp: Add KCMP_EPOLL_TFD mode to compare epoll target files

2017-02-27 Thread Cyrill Gorcunov
On Mon, Feb 27, 2017 at 02:43:47PM -0800, Andrei Vagin wrote: ... > > + > > + if (filp1 && filp_epoll) { > > + filp_tgt = get_epoll_tfile_raw_ptr(filp_epoll, > > slot.tfd, slot.toff); > > + if (IS_ERR(filp_tgt)) > > + ret = PT

[PATCH v3 25/25] ARM: owl: smp: Reimplement SPS power-gating for CPU2 and CPU3

2017-02-27 Thread Andreas Färber
Bring up the two remaining CPUs. Based on LeMaker linux-actions tree. Signed-off-by: Andreas Färber --- v3: new arch/arm/mach-actions/platsmp.c | 67 +++-- 1 file changed, 65 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-actions/platsmp.c b/arc

[PATCH v3 08/25] dt-bindings: serial: Document Actions Semi Owl UARTs

2017-02-27 Thread Andreas Färber
This UART is found on S500 and S900 SoCs. Acked-by: Rob Herring Signed-off-by: Andreas Färber --- v2 -> v3: unchanged v1 -> v2: * Adopted "actions" vendor prefix .../devicetree/bindings/serial/actions,owl-uart.txt | 16 1 file changed, 16 insertions(+) create mode

[PATCH v3 20/25] ARM: owl: Implement CPU enable-method for S500

2017-02-27 Thread Andreas Färber
Allow to bring up CPU1. Based on LeMaker linux-actions tree. Signed-off-by: Andreas Färber --- v3: new arch/arm/mach-actions/Makefile | 1 + arch/arm/mach-actions/headsmp.S | 68 arch/arm/mach-actions/platsmp.c | 166 3 files chan

[PATCH v3 05/25] clocksource: owl: Add S900 support

2017-02-27 Thread Andreas Färber
The Actions Semi S900 SoC provides four 32-bit timers, TIMER0/1/2/3, but no 2Hz timers. Deal with the S500 having less timers. An S900 datasheet can be found in 96Boards documentation: https://github.com/96boards/documentation/blob/master/ConsumerEdition/Bubblegum-96/HardwareDocs/SoC_bubblegum96.

[PATCH v3 15/25] MAINTAINERS: Add Actions Semi Owl section

2017-02-27 Thread Andreas Färber
Signed-off-by: Andreas Färber --- v2 -> v3: unchanged v2: new MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b9af886..467121e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1026,6 +1026,16 @@ S: Maintained F: drivers/am

[PATCH v3 12/25] dt-bindings: Add vendor prefix for uCRobotics

2017-02-27 Thread Andreas Färber
Cc: 96boa...@ucrobotics.com Acked-by: Rob Herring Signed-off-by: Andreas Färber --- v1 -> v2 -> v3: unchanged Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/device

[PATCH v3 06/25] ARM: Prepare Actions Semi S500

2017-02-27 Thread Andreas Färber
Add ARCH_ACTIONS and mach-actions/owl.c for "actions,s500". Signed-off-by: Andreas Färber --- v2 -> v3: * Selected AMBA, global timer, TWD drivers * Fixed copy&paste in machine definition (Alberto) v1 -> v2: * Renamed ARCH_OWL to ARCH_ACTION (Arnd) * Renamed mach-owl to mach-actions, leav

[PATCH v3 09/25] tty: serial: Add Actions Semi Owl UART earlycon

2017-02-27 Thread Andreas Färber
This implements an earlycon for Actions Semi S500/S900 SoCs. Based on LeMaker linux-actions tree. Signed-off-by: Andreas Färber --- v2 -> v3: * Adopted BIT() macro v1 -> v2: * Extended Kconfig help to mention earlycon (Arnd) * Spelled out Actions Semiconductor in Kconfig help * Adopted "

[PATCH v3 23/25] soc: actions: Add Owl SPS

2017-02-27 Thread Andreas Färber
Implement S500 Smart Power System power-gating. Based on LeMaker linux-actions tree. Signed-off-by: Andreas Färber --- v3: new drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/actions/Kconfig | 12 +++ drivers/soc/actions/Makefile | 1 + drivers

[PATCH v3 00/25] ARM: Initial Actions Semi S500 and S900 enablement

2017-02-27 Thread Andreas Färber
Hello, This series adds initial support for Actions Semiconductor S500 (ARMv7) and S900 (ARMv8) SoCs. v3 has the serial driver working almost equally for both, still glitch on S900. SMP support and power-gating for S500 are implemented, so both get 4 CPUs up. https://github.com/afaerber/linux/co

[PATCH v3 13/25] dt-bindings: arm: Document Actions Semi S900

2017-02-27 Thread Andreas Färber
The Actions Semi S900 is a quad-core ARM Cortex-A53 SoC. The Bubblegum-96 is a 96Boards Consumer Edition compliant board (4/96). Cc: 96boa...@ucrobotics.com Acked-by: Rob Herring Signed-off-by: Andreas Färber --- v2 -> v3: unchanged v1 -> v2: * Adopted "actions" vendor prefix * Extended te

[PATCH v3 02/25] dt-bindings: arm: Document Actions Semi S500

2017-02-27 Thread Andreas Färber
The Actions Semi S500 is a quad-core ARM Cortex-A9 SoC. The LeMaker Guitar is an SODIMM-format module with that SoC. Acked-by: Rob Herring Signed-off-by: Andreas Färber --- v2 -> v3: unchanged v1 -> v2: * Adopted "actions" vendor prefix * Extended text Documentation/devicetree/bindings/

[PATCH v3 11/25] ARM: dts: Add Actions Semi S500 and LeMaker Guitar

2017-02-27 Thread Andreas Färber
Signed-off-by: Andreas Färber --- v2 -> v3: * Fixed uart2 reg offset * Enlarged timer reg size * Added 2 Hz timer interrupts, interrupt-names * Disabled CPUs 1-3 for now (cf. later patches) * Added Cortex-A9 SCU, global timer, TWD timer/wdt nodes * Added HOSC clock for timer v1 -> v2: *

[PATCH v3 01/25] dt-bindings: Add vendor prefix for Actions Semi

2017-02-27 Thread Andreas Färber
Actions Semiconductor was listed on NASDAQ as ACTS until Dec 16, 2016. Cc: mp...@actions-semi.com Acked-by: Rob Herring Signed-off-by: Andreas Färber --- v2 -> v3: * Fixed sort order after rename v1 -> v2: * Reverted from "acts" to "actions" (cf. IAP140 "mrvl" vs. "marvell") Documentati

[PATCH] pwm: rockchip: State of pwm clock should synchronize with pwm enabled state

2017-02-27 Thread David Wu
From: "david.wu" If the pwm was not enabled at uboot loader, pwm could not work for clock always disabled at pwm driver. The pwm clock is enabled at beginning of pwm_apply(), but disabled at end of pwm_apply(). If the pwm was enabled at uboot loader, pwm clock is always enabled unless closed by

[PATCH v3 04/25] clocksource: Add Owl timer

2017-02-27 Thread Andreas Färber
The Actions Semi S500 SoC provides four timers, 2Hz0/1 and 32-bit TIMER0/1. Use TIMER0 as clocksource and TIMER1 as clockevents. Based on LeMaker linux-actions tree. An S500 datasheet can be found on the LeMaker Guitar pages: http://www.lemaker.org/product-guitar-download-29.html Signed-off-by:

[PATCH v3 07/25] ARM64: Prepare Actions Semi S900

2017-02-27 Thread Andreas Färber
Add ARCH_ACTIONS. Signed-off-by: Andreas Färber --- v2 -> v3: * Selected clocksource driver v1 -> v2: * Renamed ARCH_OWL to ARCH_ACTION (Arnd) arch/arm64/Kconfig.platforms | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platform

Re: [PATCH 3/4] drm/bridge: Drivers for megachips-stdpxxxx-ge-b850v3-fw (LVDS-DP++)

2017-02-27 Thread Archit Taneja
On 02/27/2017 07:10 PM, Peter Senna Tschudin wrote: On Wed, Feb 01, 2017 at 04:17:21PM +0530, Archit Taneja wrote: Hi Archit, Hi, Some minor comments: Thank you for the review! On 01/28/2017 07:51 PM, Peter Senna Tschudin wrote: The video processing pipeline on the second output on the

[PATCH v3 03/25] dt-bindings: timer: Document Owl timer

2017-02-27 Thread Andreas Färber
The Actions Semi S500 SoC contains a timer block with two 2 Hz and two 32-bit timers. The S900 SoC timer block has four 32-bit timers. Signed-off-by: Andreas Färber --- v2 -> v3: * Adopted interrupt-names * Changed compatible for S500 * Added S900 compatible and interrupt names v2: new

[PATCH v3 14/25] ARM64: dts: Add Actions Semi S900 and Bubblegum-96

2017-02-27 Thread Andreas Färber
UART0/1/4/6 interrupts are guesses. Cc: 96boa...@ucrobotics.com Signed-off-by: Andreas Färber --- v2 -> v3: * Added remaining UART nodes -- some interrupts are guesses * Added timer node -- only TIMER1 interrupt known v1 -> v2: * Reworded subject * Added memory@0 node for Bubblegum-96 (Ma

[PATCH v3 10/25] Documentation: kernel-parameters: Document owl earlycon

2017-02-27 Thread Andreas Färber
Signed-off-by: Andreas Färber --- v1 -> v2 -> v3: unchanged Documentation/admin-guide/kernel-parameters.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 986e443..f48a142 100644

[PATCH v3 16/25] tty: serial: owl: Implement console driver

2017-02-27 Thread Andreas Färber
Implement serial console driver to complement earlycon. Based on LeMaker linux-actions tree. Signed-off-by: Andreas Färber --- v2 -> v3: * Adopted BIT() macro * Implemented baudrate setting v2: new drivers/tty/serial/Kconfig | 4 +- drivers/tty/serial/owl-uart.c| 591 +++

[PATCH 2/2] mfd: add TI LMU driver

2017-02-27 Thread Milo Kim
TI LMU (Lighting Management Unit) driver supports lighting devices below. LM3532, LM3631, LM3632, LM3633, LM3695 and LM3697. LMU devices have common features. - I2C interface for accessing device registers - Hardware enable pin control - Backlight brightness control - Notifier for hardw

[PATCH 1/2] Documentation: dt-bindings: mfd: add TI LMU device binding information

2017-02-27 Thread Milo Kim
This patch describes overall binding for TI LMU MFD devices. Acked-by: Lee Jones Acked-by: Rob Herring Signed-off-by: Milo Kim --- Documentation/devicetree/bindings/mfd/ti-lmu.txt | 243 +++ 1 file changed, 243 insertions(+) create mode 100644 Documentation/devicetree/bind

Re: [PATCH 2/3] thermal: add support for the thermal sensor on Allwinner new SoCs

2017-02-27 Thread Maxime Ripard
On Tue, Feb 28, 2017 at 03:40:53AM +0800, Icenowy Zheng wrote: > From: Ondrej Jirman > > Allwinner SoCs from H3 (including H5, A64, etc) have a new version of > thermal sensor, and needs a new driver for it. > > Add such a driver. > > Currently only H3 is supported, but other SoCs are easily to

[PATCH v3 0/2] Support TI LMU devices

2017-02-27 Thread Milo Kim
Back from 2015! TI LMU core driver got acked but few more efforts were required like backlight, LEDs and others. Recently, Tony Lindgren has been working on porting mainline Linux on Droid 4 xt894. One of LMU devices - LM3532 is used for LCD backlight on that device. I hope this patch-set would b

[PATCH v3 19/25] dt-bindings: arm: cpus: Add S500 enable-method

2017-02-27 Thread Andreas Färber
The Actions Semi S500 SoC requires a special secondary CPU boot procedure. Signed-off-by: Andreas Färber --- v3: new Documentation/devicetree/bindings/arm/cpus.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bi

[PATCH v3 24/25] ARM: dts: s500: Add SPS node

2017-02-27 Thread Andreas Färber
Signed-off-by: Andreas Färber --- v3: new arch/arm/boot/dts/s500.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/s500.dtsi b/arch/arm/boot/dts/s500.dtsi index b4ebd27..e802896 100644 --- a/arch/arm/boot/dts/s500.dtsi +++ b/arch/arm/boot/dts/s500.dtsi @@ -9,6

[PATCH v3 17/25] ARM64: dts: actions: s900-bubblegum-96: Add fake uart5 clock

2017-02-27 Thread Andreas Färber
Give the serial driver a fixed-clock as input for baudrate 115200. Signed-off-by: Andreas Färber --- v2 -> v3: unchanged v2: new arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts b

[PATCH v3 22/25] dt-bindings: power: Add Owl SPS power domains

2017-02-27 Thread Andreas Färber
Define power domains for all non-reserved S500 power gates. Signed-off-by: Andreas Färber --- v3: new .../devicetree/bindings/power/actions,owl-sps.txt | 17 + include/dt-bindings/power/s500-powergate.h| 19 +++ 2 files changed, 36 insertions(+)

[PATCH v3 21/25] ARM: dts: s500: Set CPU enable-method

2017-02-27 Thread Andreas Färber
Use a custom S500 enable-method for all CPUs. Signed-off-by: Andreas Färber --- v3: new arch/arm/boot/dts/s500.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/s500.dtsi b/arch/arm/boot/dts/s500.dtsi index 1973181..b4ebd27 100644 --- a/arch/arm/boot/dts/s500.dtsi

[PATCH v3 18/25] ARM: dts: s500-guitar-bb-rev-b: Add fake uart3 clock

2017-02-27 Thread Andreas Färber
Add a fixed-clock for baudrate 115200. Signed-off-by: Andreas Färber --- v2 -> v3: unchanged v2: new arch/arm/boot/dts/s500-guitar-bb-rev-b.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/s500-guitar-bb-rev-b.dts b/arch/arm/boot/dts/s500-guitar-bb-rev-b.dt

Re: [PATCH V11 10/10] arm/arm64: KVM: add guest SEA support

2017-02-27 Thread Xiongfeng Wang
Hi James, On 2017/2/27 21:58, James Morse wrote: > Hi Wang Xiongfeng, > > On 25/02/17 07:15, Xiongfeng Wang wrote: >> On 2017/2/22 5:22, Tyler Baicar wrote: >>> Currently external aborts are unsupported by the guest abort >>> handling. Add handling for SEAs so that the host kernel reports >>> SEA

NVME M2 devices on RAID configured controllers

2017-02-27 Thread David F.
More and more system are coming with M2 devices on RAID configured controllers which Linux does not support. Switching to AHCI mode instead of RAID mode allows it to see the drives but that is not a fix when you want it in RAID mode and want to use Windows as well. The question I have is this be

Re: [RFC 7/8] fpga-region: add sysfs interface

2017-02-27 Thread matthew . gerlach
On Mon, 27 Feb 2017, Moritz Fischer wrote: Alan, On Mon, Feb 27, 2017 at 12:09 PM, Alan Tull wrote: First case: embedded FPGA. The hardware has one FPGA. The image is designed for a specific board, so there's no problem including the enumeration in the image. Agreed. Second case: em

Re: [v2] Input: pwm-beeper: support customized freq for SND_BELL

2017-02-27 Thread Dmitry Torokhov
On February 27, 2017 10:13:43 PM PST, Heiko Schocher wrote: >Hello David, > >Am 28.02.2017 um 06:30 schrieb David Lechner: >> On 02/27/2017 11:19 PM, Heiko Schocher wrote: >>> Hello David, >>> >>> Am 27.02.2017 um 19:11 schrieb David Lechner: On 02/20/2017 02:37 AM, Heiko Schocher wrote:

Re: [RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-27 Thread John Stultz
On Mon, Feb 20, 2017 at 2:32 PM, Daniel Vetter wrote: > I thought about this some more, I think what we need to fix this mess > properly is: > - mode_valid helper callbacks for crtc, encoder, bridges, with the > same interface as for connectors. > - calling all these new mode_valid hooks from the

Re: [PATCH v2] scsi: ufs: Factor out ufshcd_read_desc_param

2017-02-27 Thread Martin K. Petersen
> "Michal" == Potomski, MichalX writes: Michal> Since in UFS 2.1 specification some of the descriptor lengths Michal> differs from 2.0 specification and some devices, which are Michal> reporting spec version 2.0 have different descriptor lengths we Michal> can not rely on hardcoded values tak

[PATCH] fix pinctrl setup for i.IMX6

2017-02-27 Thread Mika Penttilä
Hi! Recent pulls for mainline pre 4.11 introduced pinctrl setup changes and moved pinctrl-imx to use generic helpers. Net effect was that hog group could not be resolved. I made it work for myself with a two stage setup with create and start separated, and dt probe in between them. Signed-of

Re: [PATCH v5] staging: xgifb: correct the multiple line dereference

2017-02-27 Thread Joe Perches
On Tue, 2017-02-28 at 07:55 +0530, Arushi Singhal wrote: > Error reported by checkpatch.pl as "avoid multiple line dereference". > Addition of new variables to make the code more readable and also to > correct about mentioned error as by itroducing new variables line is > not exceeding 80 character

[PATCH v5 3/5] staging: ks7010: fix coding style issue of using pr_notice instead of printk

2017-02-27 Thread Chetan Sethi
Signed-off-by: Chetan Sethi --- v2: - split multiple changes across different patches v3: - mentioned patch revision in subject v4: - modified description to exclude mention of patch number from changelog - updated subject to include driver name v5: - updated series for removing additional ch

Re: Still OOM problems with 4.9er/4.10er kernels

2017-02-27 Thread Gerhard Wiesinger
On 27.02.2017 09:27, Michal Hocko wrote: On Sun 26-02-17 09:40:42, Gerhard Wiesinger wrote: On 04.01.2017 10:11, Michal Hocko wrote: The VM stops working (e.g. not pingable) after around 8h (will be restarted automatically), happened serveral times. Had also further OOMs which I sent to Mincha

Re: [PATCH v6] staging: xgifb: correct the multiple line dereference

2017-02-27 Thread Greg Kroah-Hartman
On Tue, Feb 28, 2017 at 10:35:30AM +0530, Arushi Singhal wrote: > Error reported by checkpatch.pl as "avoid multiple line dereference". > Addition of new variables to make the code more readable and also to > correct about mentioned error as by itroducing new variables line is > not exceeding 80 ch

Re: [PATCH v3 2/2] perf/sdt: Directly record SDT events with 'perf record'

2017-02-27 Thread Masami Hiramatsu
On Fri, 24 Feb 2017 13:13:25 +0530 Ravi Bangoria wrote: > From: Hemant Kumar > > Add support for directly recording SDT events which are present in > the probe cache. Without this patch, we could probe into SDT events > using 'perf probe' and 'perf record'. With this patch, we can probe > the S

[PATCH] x86/acpi: Fix a warning message in logical CPU IDs allocation

2017-02-27 Thread Dou Liyang
Current warning message regarded the "nr_cpu_ids - 1" as the limit number of the CPUs. It may be confused us, for example: we have two CPUs, nr_cpu_ids = 2, but the warning message may indicate that we just have 1 CPU, which likes that: Only 1 processors supported.Processor 2/0x2 and the rest

Re: Still OOM problems with 4.9er/4.10er kernels

2017-02-27 Thread Minchan Kim
On Mon, Feb 27, 2017 at 10:44:49AM +0100, Michal Hocko wrote: > On Mon 27-02-17 18:02:36, Minchan Kim wrote: > [...] > > >From 9779a1c5d32e2edb64da5cdfcd6f9737b94a247a Mon Sep 17 00:00:00 2001 > > From: Minchan Kim > > Date: Mon, 27 Feb 2017 17:39:06 +0900 > > Subject: [PATCH] mm: use up highatomi

Re: [PATCH V5 4/6] mm: reclaim MADV_FREE pages

2017-02-27 Thread Minchan Kim
On Mon, Feb 27, 2017 at 08:19:08AM -0800, Shaohua Li wrote: > On Mon, Feb 27, 2017 at 03:33:15PM +0900, Minchan Kim wrote: > > Hi Shaohua, > > > > On Fri, Feb 24, 2017 at 01:31:47PM -0800, Shaohua Li wrote: > > > When memory pressure is high, we free MADV_FREE pages. If the pages are > > > not dir

[PATCH] IB/qib: fix false-postive maybe-uninitialized warning

2017-02-27 Thread Arnd Bergmann
aarch64-linux-gcc-7 complains about code it doesn't fully understand: drivers/infiniband/hw/qib/qib_iba7322.c: In function 'qib_7322_txchk_change': include/asm-generic/bitops/non-atomic.h:105:35: error: 'shadow' may be used uninitialized in this function [-Werror=maybe-uninitialized] The code is

[PATCH V2 5/9] Staging: rtl8712: rtl871x_mp_ioctl.h - style fix

2017-02-27 Thread Derek Robson
Fixed style of block comments Found using checkpatch Signed-off-by: Derek Robson --- Version #1 introduced lines over 80. This version moves comments to be above the line of code. drivers/staging/rtl8712/rtl871x_mp_ioctl.h | 173 - 1 file changed, 98 insertions(+),

Re: [PATCH V3 1/7] PM / Domains: Introduce "performance-states" binding

2017-02-27 Thread Viresh Kumar
On 27-02-17, 18:31, Rob Herring wrote: > On Fri, Feb 24, 2017 at 02:36:33PM +0530, Viresh Kumar wrote: > > Some platforms have the capability to configure the performance state of > > their power domains. The process of configuring the performance state is > > pretty much platform dependent and we

Re: [PATCH v2 3/3] media: dt-bindings: vpif: new optional property

2017-02-27 Thread Sekhar Nori
On Tuesday 28 February 2017 04:22 AM, Rob Herring wrote: > On Wed, Feb 22, 2017 at 02:43:47PM +0100, Bartosz Golaszewski wrote: >> Add an optional property - enable-gpios - which can be used to specify >> the GPIOs that must be requested to select the vpif functionality. >> >> Signed-off-by: Bartos

Re: [f2fs-dev] [PATCH 2/3 v2] f2fs: add bitmaps for empty or full NAT blocks

2017-02-27 Thread Jaegeuk Kim
On 02/28, Chao Yu wrote: > On 2017/2/24 6:58, Jaegeuk Kim wrote: > > @@ -2326,7 +2431,8 @@ void flush_nat_entries(struct f2fs_sb_info *sbi) > > * entries, remove all entries from journal and merge them > > * into nat entry set. > > */ > > - if (!__has_cursum_space(journal, nm_i->di

Re: [LKP] [usb] bea5b158ff WARNING: CPU: 0 PID: 25 at drivers/usb/core/urb.c:338 usb_submit_urb

2017-02-27 Thread Ye Xiaolong
On 02/28, Ye Xiaolong wrote: >On 02/27, Peter Chen wrote: >>On Sun, Feb 26, 2017 at 06:19:59PM +0800, Fengguang Wu wrote: >>> [Sorry, resend to correct Felipe's email address] >>> >>> Greetings, >>> >>> This debug patch possibly discloses some USB/I2C bugs. Since the USB >>> warning shows up earl

[PATCH] blkcg: allocate struct blkcg_gq outside request queue spinlock

2017-02-27 Thread Tahsin Erdogan
blkg_conf_prep() currently calls blkg_lookup_create() while holding request queue spinlock. This means allocating memory for struct blkcg_gq has to be made non-blocking. This causes occasional -ENOMEM failures in call paths like below: pcpu_alloc+0x68f/0x710 __alloc_percpu_gfp+0xd/0x10 __per

Re: [v2] Input: pwm-beeper: support customized freq for SND_BELL

2017-02-27 Thread David Lechner
On 02/27/2017 11:19 PM, Heiko Schocher wrote: Hello David, Am 27.02.2017 um 19:11 schrieb David Lechner: On 02/20/2017 02:37 AM, Heiko Schocher wrote: From: Guan Ben extend the pwm-beeper driver to support customized frequency for SND_BELL from device tree. Signed-off-by: Guan Ben Signed-o

Re: [PATCH v2] Input: pwm-beeper: support customized freq for SND_BELL

2017-02-27 Thread Heiko Schocher
Hello Rob, Am 27.02.2017 um 20:10 schrieb Rob Herring: On Mon, Feb 20, 2017 at 09:37:43AM +0100, Heiko Schocher wrote: From: Guan Ben extend the pwm-beeper driver to support customized frequency for SND_BELL from device tree. Signed-off-by: Guan Ben Signed-off-by: Mark Jonas [h...@denx.de:

Re: [v2] Input: pwm-beeper: support customized freq for SND_BELL

2017-02-27 Thread Heiko Schocher
Hello David, Am 27.02.2017 um 19:11 schrieb David Lechner: On 02/20/2017 02:37 AM, Heiko Schocher wrote: From: Guan Ben extend the pwm-beeper driver to support customized frequency for SND_BELL from device tree. Signed-off-by: Guan Ben Signed-off-by: Mark Jonas [h...@denx.de: adapted to 4.

Re: [PATCH v2 14/22] dt-bindings: PCI: dra7xx: Add dt bindings to enable legacy mode

2017-02-27 Thread Kishon Vijay Abraham I
On Monday 27 February 2017 10:10 PM, Rob Herring wrote: > On Fri, Feb 17, 2017 at 03:20:34PM +0530, Kishon Vijay Abraham I wrote: >> Update device tree binding documentation of TI's dra7xx PCI >> controller to include property for enabling legacy mode. >> >> Signed-off-by: Kishon Vijay Abraham I

Re: Ext4 new shutdown ioctl fails generic/04{4,5,6}

2017-02-27 Thread Theodore Ts'o
On Tue, Feb 28, 2017 at 11:25:56AM +0800, Xiong Zhou wrote: > > On latest Linus tree, xfstests generic/04{4,5,6} fails. Yes, that's known issue. generic/04[456] were originally XFS specific tests, and they have have assumptions about the implementation of the underlying file system. We have a f

[PATCH v6] staging: xgifb: correct the multiple line dereference

2017-02-27 Thread Arushi Singhal
Error reported by checkpatch.pl as "avoid multiple line dereference". Addition of new variables to make the code more readable and also to correct about mentioned error as by itroducing new variables line is not exceeding 80 characters. Signed-off-by: Arushi Singhal --- changes in v6 - changes

Re: [PATCH V5 5/6] mm: enable MADV_FREE for swapless system

2017-02-27 Thread Minchan Kim
On Fri, Feb 24, 2017 at 01:31:48PM -0800, Shaohua Li wrote: > Now MADV_FREE pages can be easily reclaimed even for swapless system. We > can safely enable MADV_FREE for all systems. > > Cc: Michal Hocko > Cc: Minchan Kim > Cc: Hugh Dickins > Cc: Rik van Riel > Cc: Mel Gorman > Cc: Andrew Mort

[PATCH v5 5/5] staging: ks7010: fix coding style issue of aligning comments properly

2017-02-27 Thread Chetan Sethi
This patch fixes coding style issue of having block comments using a trailing */ on a separate line, warning as issued by checkpatch Signed-off-by: Chetan Sethi --- v2: - split multiple changes across different patches v3: - mentioned patch revision in subject v4: - modified description to exc

Re: [PATCH] jump_label: align jump_entry table to at least 4-bytes

2017-02-27 Thread Sachin Sant
ID: 2972 Comm: modprobe Not tainted 4.10.0-next-20170227 #4 [ 11.731930] task: c0077b284a00 task.stack: c0077b8b8000 [ 11.731933] NIP: c17bf84c LR: c17bfcbc CTR: [ 11.731937] REGS: c0077b8bb800 TRAP: 0700 Not tainted (4.10.0-next-20170

Re: [LKP] [usb] bea5b158ff WARNING: CPU: 0 PID: 25 at drivers/usb/core/urb.c:338 usb_submit_urb

2017-02-27 Thread Fengguang Wu
The dummy_udc WARN is gone with this patch for 100+ times of boot tests. Tested-by: Xiaolong Ye Thanks, Xiaolong Thanks, Xiaolong. I will submit a patch for it. Thank you Peter! We've been noised by this warning for quite some time. Fengguang

[PATCH v5 1/5] staging: ks7010: fixed warning of avoiding line over 80 characters

2017-02-27 Thread Chetan Sethi
This patch fixes warning of line over 80 characters, as issued by checkpatch.pl Signed-off-by: Chetan Sethi --- v2: - split multiple changes across different patches v3: - mentioned patch revision in subject v4: - modified description to exclude mention of patch number from changelog v5: - up

Re: [LKP] [usb] bea5b158ff WARNING: CPU: 0 PID: 25 at drivers/usb/core/urb.c:338 usb_submit_urb

2017-02-27 Thread Peter Chen
On Tue, Feb 28, 2017 at 12:32:55PM +0800, Ye Xiaolong wrote: > On 02/28, Ye Xiaolong wrote: > >On 02/27, Peter Chen wrote: > >>On Sun, Feb 26, 2017 at 06:19:59PM +0800, Fengguang Wu wrote: > >>> [Sorry, resend to correct Felipe's email address] > >>> > >>> Greetings, > >>> > >>> This debug patch

[PATCH] i2c: copy device properties when using i2c_register_board_info()

2017-02-27 Thread Dmitry Torokhov
This will allow marking device property lists as __initdata, the same as board info structures themselves. Signed-off-by: Dmitry Torokhov --- drivers/i2c/i2c-boardinfo.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/i2c/i2c-boardinfo.c b/drivers/i2c/i2c-boardinfo.c index 6e5

[PATCH] char: misc: minor code cleanup

2017-02-27 Thread Martin Kaiser
Fix a couple of minor issues found by checkpatch.pl: Add/remove spaces where required. Move EXPORT_SYMBOL() to the end of the function it refers to. Set the access mode for the proc entry explicity. Use pr_warn() instead of printk() without loglevel. Signed-off-by: Martin Kaiser --- drivers/cha

[PATCH v5] staging: xgifb: correct the multiple line dereference

2017-02-27 Thread Arushi Singhal
Error reported by checkpatch.pl as "avoid multiple line dereference". Addition of new variables to make the code more readable and also to correct about mentioned error as by itroducing new variables line is not exceeding 80 characters. Signed-off-by: Arushi Singhal --- changes in v5 - changes

[PATCH v5 4/4] iio: accel: adxl345: Add SPI support

2017-02-27 Thread Eva Rachel Retuya
Add SPI driver that initializes SPI regmap for the adxl345 core driver. The driver supports the same functionality as I2C namely the x, y, z and scale readings. Signed-off-by: Eva Rachel Retuya Reviewed-by: Andy Shevchenko --- Changes from v4: * Add Andy's Reviewed-by tag Changes from v3: * Rev

[PATCH] serial: 8250_dw: Honor clk_round_rate errors in dw8250_set_termios

2017-02-27 Thread Heiko Stuebner
clk_round_rate returns a signed long and may possibly return errors in it, for example if there is no possible rate. Till now dw8250_set_termios ignored any error, the signednes and would just use the value as input to clk_set_rate. This of course falls apart if there is an actual error, so check

Re: 289b7bfd48 BUG: KASAN: slab-out-of-bounds in of_device_uevent at addr ffff880012049289

2017-02-27 Thread Fengguang Wu
On Tue, Feb 28, 2017 at 12:24:03PM +0800, Fengguang Wu wrote: Hi Linus Walleij, I'm not sure if this is a good bisect since the merged gpio branch suffers from another early hang problem which could hide the KASAN BUG. So also OF people are also included in the loop. The attached reproduce-* sc

[PATCH] objtool: enclose contents of unreachable() macro in a block

2017-02-27 Thread Josh Poimboeuf
Guenter Roeck reported a boot failure in mips64. It was bisected to the following commit: d1091c7fa3d5 ("objtool: Improve detection of BUG() and other dead ends") The unreachable() macro was formerly only composed of a single statement. The above commit added a second statement, but neglecte

Re: CPU: 0 PID: 0 at arch/x86/kernel/apic/apic.c:2066

2017-02-27 Thread Dou Liyang
Hi Marco, After Linux-4.9, we also mapped the logical CPU IDs for the disabled CPUs. The reason of the warning maybe that: The max number of the CPU in "dl360g5" is 2 (NR_CPUS:2), but, the kernel mapped one of the number to a disabled CPUs, so one of the enable CPUs will never have a cpu_id, so

Re: [PATCH] mmc: meson-gx: fix error path when driver initialization fails before enabling clocks

2017-02-27 Thread Kevin Hilman
Michał Zegan writes: > This patch fixes the case where meson_mmc_probe function fails before > core_clk is enabled. > Originally, that would result in a try to disable the core clock, and if > it was not already enabled, it would result in a kernel warning. > This issue is similar to the one with

[PATCH v2 1/3] spi: allow attaching device properties to SPI board info

2017-02-27 Thread Dmitry Torokhov
Generic device properties support statically defined property sets. For them to be usable, we need to attach these property sets before devices are registered and probed. Allowing to attach property list to spi_board_info structure will allow non-ACPI non-DT boards switch to using generic propertie

[PATCH v2 0/3] Allow specifying properties with spi_register_board_info

2017-02-27 Thread Dmitry Torokhov
I am trying to convert some input drivers to use only generic device properties, and get rid of legacy platform data. For that I need to be able to attach property lists to devices before they are registered, and quite a few boards use spi_register_board_info() to create their devices. v2: change

[PATCH v2 2/3] spi: allocate spi_board_info entries one by one

2017-02-27 Thread Dmitry Torokhov
Lists of spi_board_info entries registered with spi_register_board_info() can be quite long; instead of forcing memory allocator find contagious chunk of memory, let;s allocate them one-by-one, so they can be packed as needed. Signed-off-by: Dmitry Torokhov --- drivers/spi/spi.c | 12 ++-

[PATCH v2 3/3] spi: allow registering empty spi_board_info lists

2017-02-27 Thread Dmitry Torokhov
Many boards form list of spi_board_info entries depending on config, and it is possible to end up with empty list. Do not report error in such cases. Signed-off-by: Dmitry Torokhov --- drivers/spi/spi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c i

[PATCH 2/3] spi: allocate spi_board_info entries one by one

2017-02-27 Thread Dmitry Torokhov
Lists of spi_board_info entries registered with spi_register_board_info() can be quite long; instead of forcing memory allocator find contagious chunk of memory, let;s allocate them one-by-one, so they can be packed as needed. Signed-off-by: Dmitry Torokhov --- drivers/spi/spi.c | 11 +--

  1   2   3   4   5   6   7   8   >