Re: [PATCH 2/3] iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #74

2017-05-03 Thread Geetha Akula
Hi Will, We will resubmit the patches based on IORT. Thank you, Geetha. On Wed, May 3, 2017 at 3:17 PM, Will Deacon wrote: > Hi Geetha, > > On Tue, May 02, 2017 at 12:01:15PM +0530, Geetha Akula wrote: >> SMMU_IIDR register is broken on T99, that the reason we are using MIDR. > > Urgh, that's

[PATCH v3 2/2] pidns: Expose task pid_ns_for_children to userspace

2017-05-03 Thread Kirill Tkhai
pid_ns_for_children set by a task is known only to the task itself, and it's impossible to identify it from outside. It's a big problem for checkpoint/restore software like CRIU, because it can't correctly handle tasks, that do setns(CLONE_NEWPID) in proccess of their work. This patch solves the

[PATCH] power: supply: twl4030-charger: make twl4030_bci_property_is_writeable static

2017-05-03 Thread Colin King
From: Colin Ian King The function twl4030_bci_property_is_writeable can be made static as it does not need to be in global scope. Signed-off-by: Colin Ian King --- drivers/power/supply/twl4030_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg

2017-05-03 Thread Vincent Guittot
On 3 May 2017 at 11:37, Peter Zijlstra wrote: > > On Wed, May 03, 2017 at 09:34:51AM +0200, Vincent Guittot wrote: > > > We use load_avg for calculating a stable share and we want to use it > > more and more. So breaking it because it's easier doesn't seems to be > > the right way to do IMHO > >

Re: [linux-sunxi] Designware UART bug

2017-05-03 Thread Chen-Yu Tsai
On Wed, May 3, 2017 at 6:17 PM, Olliver Schinagl wrote: > Hey Jamie, > > Several years ago you wrote the glue-code [0] for the DW 8250 IP. Over the > years various 'fixes' have been applied to resolve certain 'weird' problems > that Tim tried to fix with [1]. > > After going over the datasheets

[PATCH] power: supply: bq27xxx: make bq27xxx_battery_settings static

2017-05-03 Thread Colin King
From: Colin Ian King The function bq27xxx_battery_settings can be made static as it does not need to be in global scope. Signed-off-by: Colin Ian King --- drivers/power/supply/bq27xxx_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] staging : rtl8188eu : remove void function return

2017-05-03 Thread Dan Carpenter
On Wed, May 03, 2017 at 11:29:00AM +0530, Surender Polsani wrote: > kernel coding style doesn't allow the return statement > in void function. > > Signed-off-by: Surender Polsani > --- > Changes for v2: > corrected subject line as suggested > Changes for v3: > modified from line as suggested by

Re: [PATCH] arm64: Fix multiple 'asm-operand-widths' warnings

2017-05-03 Thread Mark Rutland
On Tue, May 02, 2017 at 11:52:12AM -0700, Matthias Kaehlcke wrote: > El Tue, May 02, 2017 at 06:29:48PM +0100 Mark Rutland ha dit: > > On Mon, May 01, 2017 at 02:26:22PM -0700, Matthias Kaehlcke wrote: > > > diff --git a/arch/arm64/include/asm/uaccess.h > > > b/arch/arm64/include/asm/uaccess.h >

[PATCH 0/7] KVM: MMU: fast write protect

2017-05-03 Thread guangrong . xiao
From: Xiao Guangrong Background == The original idea of this patchset is from Avi who raised it in the mailing list during my vMMU development some years ago This patchset introduces a extremely fast way to write protect all the guest memory. Comparing with the ordinary algorithm which

[PATCH 1/7] KVM: MMU: correct the behavior of mmu_spte_update_no_track

2017-05-03 Thread guangrong . xiao
From: Xiao Guangrong Current behavior of mmu_spte_update_no_track() does not match the name of _no_track() as actually the A/D bits are tracked and returned to the caller This patch introduces the real _no_track() function to update the spte regardless of A/D bits and rename the original

[PATCH 2/7] KVM: MMU: introduce possible_writable_spte_bitmap

2017-05-03 Thread guangrong . xiao
From: Xiao Guangrong It is used to track possible writable sptes on the shadow page on which the bit is set to 1 for the sptes that are already writable or can be locklessly updated to writable on the fast_page_fault path, also a counter for the number of possible writable sptes is introduced to

[PATCH 7/7] KVM: MMU: stop using mmu_spte_get_lockless under mmu-lock

2017-05-03 Thread guangrong . xiao
From: Xiao Guangrong mmu_spte_age() is under the protection of mmu-lock, no reason to use mmu_spte_get_lockless() Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index

[PATCH 4/7] KVM: MMU: enable KVM_WRITE_PROTECT_ALL_MEM

2017-05-03 Thread guangrong . xiao
From: Xiao Guangrong The functionality of write protection for all guest memory is ready, it is the time to make its usable for userspace which is indicated by KVM_CAP_X86_WRITE_PROTECT_ALL_MEM Signed-off-by: Xiao Guangrong --- arch/x86/kvm/x86.c | 6 ++ include/uapi/linux/kvm.h | 2

[PATCH 5/7] KVM: MMU: allow dirty log without write protect

2017-05-03 Thread guangrong . xiao
From: Xiao Guangrong A new flag, KVM_DIRTY_LOG_WITHOUT_WRITE_PROTECT, is introduced which indicates the userspace just wants to get the snapshot of dirty bitmap During live migration, after all snapshot of dirty bitmap is fetched from KVM, the guest memory can be write protected by calling

[PATCH 6/7] KVM: MMU: clarify fast_pf_fix_direct_spte

2017-05-03 Thread guangrong . xiao
From: Xiao Guangrong The writable spte can not be locklessly fixed and add a WARN_ON() to trigger the warning if something out of our mind happens, that is good for us to track if the log for writable spte is missed on the fast path Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 11

[RFC PATCH] mtd: spi-nor: handle signal case as failure

2017-05-03 Thread Nicholas Mc Guire
rsion-next is next-20170503) drivers/mtd/spi-nor/stm32-quadspi.c | 10 -- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/stm32-quadspi.c b/drivers/mtd/spi-nor/stm32-quadspi.c index 1056e74..27147ad 100644 --- a/drivers/mtd/spi-nor/stm32-quadspi.c +++ b/d

[PATCH 3/7] KVM: MMU: introduce kvm_mmu_write_protect_all_pages

2017-05-03 Thread guangrong . xiao
From: Xiao Guangrong The original idea is from Avi. kvm_mmu_write_protect_all_pages() is extremely fast to write protect all the guest memory. Comparing with the ordinary algorithm which write protects last level sptes based on the rmap one by one, it just simply updates the generation number to

[BUG RFC] iio: pressure: zpa2326: incorrect condition or inconsistent return handling

2017-05-03 Thread Nicholas Mc Guire
wait_for_completion_interruptible_timeout() returns -ERESTARTSYS, 0 or remaining time in jiffies (atleast 1), thus the if (ret != -ERESTARTSYS) case here is unreachable. As it is not clear from the warn message if this should simply be changed to if (ret == -ERESTARTSYS), this needs a review by

[PATCH 0/4] usb: musb: tusb6010_omap: Convert to DMAengine

2017-05-03 Thread Peter Ujfalusi
the needed entries for the dma_slave_map so we can request the DMA channels. This can be reverted when the stack is converted to DT. The last patch does the main work to move the driver to DMAengine API. I have tested the set on top of next-20170503 on Nokia n810 with nfsroot using CDC Ethernet (g_cdc

Re: [PATCH 1/2] extcon: usb-gpio: Add level trigger support

2017-05-03 Thread Baolin Wang
Hi Rob, On 29 March 2017 at 14:08, Baolin Wang wrote: > Hi, > > On 24 March 2017 at 20:41, Rob Herring wrote: >> On Fri, Mar 24, 2017 at 6:56 AM, Baolin Wang wrote: >>> Hi, >>> >>> On 24 March 2017 at 19:08, Chanwoo Choi wrote: Hi, On 2017년 03월 20일 16:59, Baolin Wang wrote:

[PATCH 1/4] usb: musb: tusb6010_omap: Create new struct for DMA data/parameters

2017-05-03 Thread Peter Ujfalusi
For the DMA we have ch (channel), dmareq and sync_dev parameters both within the tusb_omap_dma_ch and tusb_omap_dma_ch struct. By creating a common struct the code can be simplified when selecting between the shared or multichannel DMA parameters. Signed-off-by: Peter Ujfalusi ---

[PATCH 2/4] usb: musb: tusb6010_omap: Allocate DMA channels upfront

2017-05-03 Thread Peter Ujfalusi
Instead of requesting the DMA channel in tusb_omap_dma_allocate() do it when the controller is created and in runtime work from the DMA channel pool. This change is needed for the DMAengine conversion of the driver since the tusb_omap_dma_allocate() is called in interrupt context which might lead

Re: [PATCH 0/4] usb: musb: tusb6010_omap: Convert to DMAengine

2017-05-03 Thread Peter Ujfalusi
to DMAengine API. I have tested the set on top of next-20170503 on Nokia n810 with nfsroot using CDC Ethernet (g_cdc) and copying files with scp to/form my host. To force that the DMA is actually used I have: diff --git a/drivers/usb/musb/tusb6010_omap.c b/drivers/usb/musb/tusb6010_omap.c index

[PATCH 4/4] usb: musb: tusb6010_omap: Convert to DMAengine API

2017-05-03 Thread Peter Ujfalusi
With the port_window support in DMAengine and the sDMA driver we can convert the driver to DMAengine. Signed-off-by: Peter Ujfalusi --- drivers/usb/musb/tusb6010_omap.c | 201 --- 1 file changed, 80 insertions(+), 121 deletions(-) diff --git

[PATCH 3/4] ARM: OMAP2+: DMA: Add slave map entries for 24xx external request lines

2017-05-03 Thread Peter Ujfalusi
The external request lines are used by tusb6010 on OMAP24xx platforms. Update the map so the driver can use dmaengine API to request the DMA channel. At the same time add temporary map containing only the external DMA request numbers for DT booted case on omap24xx since the tusb6010 stack is not

[PATCH 0/4] usb: musb: tusb6010_omap: Convert to DMAengine

2017-05-03 Thread Peter Ujfalusi
the needed entries for the dma_slave_map so we can request the DMA channels. This can be reverted when the stack is converted to DT. The last patch does the main work to move the driver to DMAengine API. I have tested the set on top of next-20170503 on Nokia n810 with nfsroot using CDC Ethernet (g_cdc

RE: [PATCH] Added "Preserve Boot Time Support"

2017-05-03 Thread Mirea, Bogdan-Stefan
Hello John, On Wednesday, August 17, 2016 10:24 PM John Stultz < john.stu...@linaro.org > wrote: > So... we already have the read_boot_clock64() interface which platforms can > define to provide the power-on-to-now delta which the timekeeping logic will > make use of at init to initialize the

[PATCH v2] Added "Preserve Boot Time Support"

2017-05-03 Thread Bogdan Mirea
This option enables Boot Time Preservation between Bootloader and Linux Kernel. It is based on the idea that the Bootloader (or any other early firmware) will start the HW Timer and Linux Kernel will count the time starting with the cycles elapsed since timer start. The sched_clock part is

[RESEND v2 PATCH] v4l: omap_vout: vrfb: Convert to dmaengine

2017-05-03 Thread Peter Ujfalusi
The dmaengine driver for sDMA now have support for interleaved transfer. This trasnfer type was open coded with the legacy omap-dma API, but now we can move it to dmaengine. Signed-off-by: Peter Ujfalusi --- Hi, changes since RESEND (27.10.2016): - rebased on next-20170503 I can not test

Re: [RESEND v2 PATCH] v4l: omap_vout: vrfb: Convert to dmaengine

2017-05-03 Thread Peter Ujfalusi
): - rebased on next-20170503 I can not test it on real HW (still), but I have validated [1] that the change is correct and should not cause any regression. Laurent: can you verify the patch on a real hardware? [1] https://github.com/omap-audio/linux-audio/blob/peter/linux-next-wip/drivers/misc

[PATCHv2 0/2] PWM Vibrator driver

2017-05-03 Thread Sebastian Reichel
Hi, The Motorola Droid 4 has a vibrator, that is connected to two GPIOs. Motorola's stock kernel names them vib_en and vib_dir, which probably stand for vibrator_enable and vibrator_direction. In their stock kernel both GPIOs are toggled using a hrtimer and a custom vibrator "misc" device is

[PATCHv2 1/2] Input: pwm-vibra: new driver

2017-05-03 Thread Sebastian Reichel
Provide a simple driver for PWM controllable vibrators. It will be used by Motorola Droid 4. Signed-off-by: Sebastian Reichel --- Changes since PATCHv1: - move driver removal code to input->close function - mark PM functions __maybe_unused and drop #ifdef CONFIG_PM_SLEEP - remove duplicate

[PATCHv2 2/2] ARM: dts: omap4-droid4: Add vibrator

2017-05-03 Thread Sebastian Reichel
Add vibrator to Droid4's device tree. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/omap4-droid4-xt894.dts | 38 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts index

Re: [PATCH v7] Input: psxpad-spi - Add PlayStation 1/2 joypads via SPI interface Driver

2017-05-03 Thread David Herrmann
Hey On Mon, May 1, 2017 at 9:47 PM, Dmitry Torokhov wrote: > On Sun, Apr 30, 2017 at 02:11:03PM +0900, Tomohiro Yoshidomi wrote: >> PlayStation 1/2 joypads can be connected directly to the SPI interface. >> >> Signed-off-by: Tomohiro Yoshidomi > > Benjamin, David, I think this driver now

Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-03 Thread Will Deacon
On Thu, Apr 27, 2017 at 11:19:02AM -0700, Florian Fainelli wrote: > When CONFIG_ARM64_MODULE_PLTS is enabled, the first allocation using the > module space fails, because the module is too big, and then the module > allocation is attempted from vmalloc space. Silence the first allocation > failure

[PATCH] staging : rtl8188eu : remove void function return

2017-05-03 Thread Surender Polsani
kernel coding style doesn't allow the return statement in void function. Signed-off-by: Surender Polsani --- Changes for v2: corrected subject line as suggested Changes for v3: modified from line as suggested by Greg KH placed a semicolon in label for fixing build error Changes for v4: removed

Re: [PATCH V4 1/9] PM / OPP: Allow OPP table to be used for power-domains

2017-05-03 Thread Sudeep Holla
On 30/04/17 13:49, Mark Brown wrote: > On Thu, Apr 27, 2017 at 10:42:49AM +0100, Sudeep Holla wrote: >> On 26/04/17 14:55, Mark Brown wrote: > >>> As I'm getting fed up of saying: if the values you are setting are not >>> voltages and do not behave like voltages then the hardware should not be

Re: [PATCH] staging : rtl8188eu : remove void function return

2017-05-03 Thread Dan Carpenter
Nope. regards, dan carpenter

Re: [GIT PULL] TTY/Serial driver fixes for 4.11-rc4

2017-05-03 Thread Dmitry Vyukov
On Tue, May 2, 2017 at 11:52 PM, Vegard Nossum wrote: So the original problem is that the vmalloc() in n_tty_open() can fail, and that will panic in tty_set_ldisc()/tty_ldisc_restore() because of its unwillingness to proceed if the tty doesn't have an ldisc. Dmitry

Re: [PATCH] arm64: Add translation functions for /dev/mem read/write

2017-05-03 Thread Will Deacon
[adding some /dev/mem fans to cc] On Tue, May 02, 2017 at 02:28:05PM -0600, Sameer Goel wrote: > Port architecture specific xlate and unxlate functions for /dev/mem > read/write. This sets up the mapping for a valid physical address if a > kernel direct mapping is not already present. > > This

Re: [linux-sunxi] Designware UART bug

2017-05-03 Thread Olliver Schinagl
Hey Chen-Yu On 03-05-17 12:40, Chen-Yu Tsai wrote: On Wed, May 3, 2017 at 6:17 PM, Olliver Schinagl wrote: Hey Jamie, Several years ago you wrote the glue-code [0] for the DW 8250 IP. Over the years various 'fixes' have been applied to resolve certain 'weird' problems that Tim tried to fix

[PATCH] brcmfmac: btcoex: replace init_timer with setup_timer

2017-05-03 Thread Xie Qirong
setup_timer.cocci suggested the following improvement: drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c:383:1-11: Use setup_timer function for function on line 384. Signed-off-by: Xie Qirong --- Patch was compile checked with: x86_64_defconfig + CONFIG_BRCMFMAC=y +

Re: [PATCH V6 1/9] PM / OPP: Introduce "power-domain-opp" property

2017-05-03 Thread Sudeep Holla
On 28/04/17 21:48, Rob Herring wrote: > On Wed, Apr 26, 2017 at 04:27:05PM +0530, Viresh Kumar wrote: >> Power-domains need to express their active states in DT and the devices >> within the power-domain need to express their dependency on those active >> states. The power-domains can use the

[PATCH] test_bpf: Use ULL suffix for 64-bit constants

2017-05-03 Thread Geert Uytterhoeven
On 32-bit: lib/test_bpf.c:4772: warning: integer constant is too large for ‘unsigned long’ type lib/test_bpf.c:4772: warning: integer constant is too large for ‘unsigned long’ type lib/test_bpf.c:4773: warning: integer constant is too large for ‘unsigned long’ type

Re: [PATCH] test_bpf: Use ULL suffix for 64-bit constants

2017-05-03 Thread Daniel Borkmann
On 05/03/2017 01:31 PM, Geert Uytterhoeven wrote: On 32-bit: lib/test_bpf.c:4772: warning: integer constant is too large for ‘unsigned long’ type lib/test_bpf.c:4772: warning: integer constant is too large for ‘unsigned long’ type lib/test_bpf.c:4773: warning: integer constant

Re: [PATCH v2 1/2] mm: Uncharge poisoned pages

2017-05-03 Thread Laurent Dufour
On 02/05/2017 20:55, Michal Hocko wrote: > On Tue 02-05-17 16:59:30, Laurent Dufour wrote: >> On 28/04/2017 15:48, Michal Hocko wrote: > [...] >>> This is getting quite hairy. What is the expected page count of the >>> hwpoison page? > > OK, so from the quick check of the hwpoison code it seems

Re: [BUG RFC] iio: pressure: zpa2326: incorrect condition or inconsistent return handling

2017-05-03 Thread Peter Meerwald-Stadler
Hello, > wait_for_completion_interruptible_timeout() returns -ERESTARTSYS, 0 or > remaining time in jiffies (atleast 1), thus the if (ret != -ERESTARTSYS) > case here is unreachable. if is not unreachable, there is a ret = -ETIME above it > As it is not clear from the warn message if this

Re: [BUG] cannot mount nfs, bisected to 0db10944a76ba ("nfs: Convert to separately allocated bdi")

2017-05-03 Thread Jan Kara
On Tue 02-05-17 19:22:22, Corentin Labbe wrote: > On Tue, May 02, 2017 at 06:27:04PM +0200, Jan Kara wrote: > > Hello, > > > > On Fri 28-04-17 11:56:24, Corentin Labbe wrote: > > > Since linux next-20170421, mounting nfs give me: > > > [ 774.994934] [ cut here ] > > > [

Re: I'd like to donate a MacBook Pro

2017-05-03 Thread Greg KH
On Tue, May 02, 2017 at 10:55:09PM -0600, Alex Henrie wrote: > 2017-05-01 3:03 GMT-06:00 Lukas Wunner : > > On Mon, 1 May 2017 00:27:41 -0600, Alex Henrie wrote: > >> I am confident that this is a common problem because I have found > >> various other users complaining about it: > >> > >>

[PATCH v2 0/20] drm: sun4i: Add support for the HDMI controller

2017-05-03 Thread Maxime Ripard
Hi, Here is an attempt at getting the HDMI controller running. This HDMI controller is found on a number of old Allwinner SoCs (A10, A10s, A20, A31). This driver only supports for now the A10s because it was an easy target, being very close to the A13 that is already supported by our DRM

[PATCH v2 1/20] clk: divider: Make divider_round_rate take the parent clock

2017-05-03 Thread Maxime Ripard
So far, divider_round_rate only considers the parent clock returned by clk_hw_get_parent. This works fine on clocks that have a single parents, this doesn't work on muxes, since we will only consider the first parent, while other parents may totally be able to provide a better combination.

[PATCH v2 3/20] clk: sunxi-ng: div: Switch to divider_round_rate

2017-05-03 Thread Maxime Ripard
divider_round_rate already evaluates changing the parent rate if CLK_SET_RATE_PARENT is set. Now that we can do that on muxes too, let's just use it. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi-ng/ccu_div.c | 27 --- 1 file changed, 4 insertions(+), 23

[PATCH v2 2/20] clk: sunxi-ng: Pass the parent and a pointer to the clocks round rate

2017-05-03 Thread Maxime Ripard
The clocks might need to modify their parent clocks. In order to make that possible, give them access to the parent clock being evaluated, and to a pointer to the parent rate so that they can modify it if needed. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi-ng/ccu_div.c | 7 ---

[PATCH v2 5/20] clk: sunxi-ng: mux: split out the pre-divider computation code

2017-05-03 Thread Maxime Ripard
The pre-divider retrieval code was merged into the function to apply the current pre-divider onto the parent clock rate so that we can use that adjusted value to do our factors computation. However, since we'll need to do the reverse operation, we need to split out that code into a function that

[PATCH v2 4/20] clk: sunxi-ng: mux: Don't just rely on the parent for CLK_SET_RATE_PARENT

2017-05-03 Thread Maxime Ripard
The current code only rely on the parent to change its rate in the case where CLK_SET_RATE_PARENT is set. However, some clock rates might be obtained only through a modification of the parent and the clock divider. Just rely on the round rate of the clocks to give us the best computation that

[PATCH v2 8/20] clk: sunxi-ng: sun5i: Export video PLLs

2017-05-03 Thread Maxime Ripard
The video PLLs are used directly by the HDMI controller. Export them so that we can use them in our DT node. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi-ng/ccu-sun5i.h | 6 -- include/dt-bindings/clock/sun5i-ccu.h | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff

[PATCH v2 17/20] dt-bindings: display: sun4i: Add allwinner,tcon-channel property

2017-05-03 Thread Maxime Ripard
The Allwinner Timings Controller has two, mutually exclusive, channels. When the binding has been introduced, it was assumed that there would be only a single user per channel in the system. While this is likely for the channel 0 which only connects to LCD displays, it turns out that the channel

[PATCH v2 18/20] drm/sun4i: Add HDMI support

2017-05-03 Thread Maxime Ripard
The earlier Allwinner SoCs (A10, A10s, A20, A31) have an embedded HDMI controller. That HDMI controller is able to do audio and CEC, but those have been left out for now. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/Kconfig | 9 +- drivers/gpu/drm/sun4i/Makefile

[PATCH v2 13/20] drm/sun4i: tcon: Change vertical total size computation inconsistency

2017-05-03 Thread Maxime Ripard
Both TCON channels need to have the resolution doubled, since the size the hardware is going to use is whatever we put in the register divided by two. However, we handle it differently for the two channels: in the channel 0, our register access macro does the multiplication of the value passed as

[PATCH v2 19/20] ARM: sun5i: a10s: Add the HDMI controller node

2017-05-03 Thread Maxime Ripard
The A10s has an HDMI controller connected to the second TCON channel. Add it to our DT. Since the TV Encoder was the only channel 1 user so far, also add the property now that we have several users. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-a10s.dtsi | 50

[PATCH v2 10/20] drm/sun4i: tcon: Move the muxing out of the mode set function

2017-05-03 Thread Maxime Ripard
The muxing can actually happen on both channels on some SoCs, so it makes more sense to just move it out of the sun4i_tcon1_mode_set function and create a separate function that needs to be called by the encoders. Let's do that and convert the existing drivers. Signed-off-by: Maxime Ripard ---

[PATCH v2 15/20] drm/sun4i: Ignore the generic connectors for components

2017-05-03 Thread Maxime Ripard
The generic connectors such as hdmi-connector doesn't have any driver in, so if they are added to the component list, we will be waiting forever for a non-existing driver to probe. Add a list of the connectors we want to ignore when building our component list. Signed-off-by: Maxime Ripard ---

[PATCH v2 16/20] dt-bindings: display: sun4i: Add HDMI display bindings

2017-05-03 Thread Maxime Ripard
One of the possible output of the display pipeline, on the SoCs that have it, is the HDMI controller. Add a binding for it. Acked-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 79 +++- 1 file changed, 79 insertions(+), 0

[PATCH v2 14/20] drm/sun4i: tcon: multiply the vtotal when not in interlace

2017-05-03 Thread Maxime Ripard
It appears that the total vertical resolution needs to be doubled when we're not in interlaced. Make sure that is the case. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 9/20] drm/sun4i: tcon: Add channel debug

2017-05-03 Thread Maxime Ripard
While all functions have debug logs, the channel enable and disable are not logged. Make sure this is the case. Acked-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 4 1 file changed, 4 insertions(+), 0 deletions(-) diff --git

Re: [PATCH v2 02/16] fpga: bridge: support getting bridge from device

2017-05-03 Thread Wu Hao
On Thu, Apr 20, 2017 at 09:09:47AM -0500, Alan Tull wrote: > Add two functions for getting the FPGA bridge from the device > rather than device tree node. This is to enable writing code > that will support using FPGA bridges without device tree. > Rename one old function to make it clear that it

[PATCH v2 11/20] drm/sun4i: tcon: Switch mux on only for composite

2017-05-03 Thread Maxime Ripard
Even though that mux is undocumented, it seems like it needs to be set to 1 when using composite, and 0 when using HDMI. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[PATCH v2 7/20] clk: sunxi-ng: mux: Re-adjust parent rate

2017-05-03 Thread Maxime Ripard
Currently, the parent rate given back to the clock framework in our request is the original parent rate we calculated before trying to round the rate of our clock. This works fine unless our clock also changes its parent rate, in which case we will simply ignore that change and still use the

[PATCH v2 12/20] drm/sun4i: tcon: Fix tcon channel 1 backporch calculation

2017-05-03 Thread Maxime Ripard
It seems like what's called a backporch in the datasheet is actually the backporch plus the sync period. Fix that in our driver. Acked-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [GIT PULL] TTY/Serial driver fixes for 4.11-rc4

2017-05-03 Thread Greg KH
On Tue, May 02, 2017 at 11:52:40PM +0200, Vegard Nossum wrote: > On 2 May 2017 at 18:35, Dmitry Vyukov wrote: > > On Fri, Apr 14, 2017 at 2:30 PM, Greg KH wrote: > >> On Fri, Apr 14, 2017 at 11:41:26AM +0200, Vegard Nossum wrote: > >>> On 13 April 2017 at 20:34, Greg KH wrote: > >>> > On Thu,

[PATCH v2 20/20] ARM: sun5i: a10s-olinuxino: Enable HDMI

2017-05-03 Thread Maxime Ripard
The A10s Olinuxino has an HDMI connector. Make sure we can use it. Acked-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 29 +- 1 file changed, 29 insertions(+), 0 deletions(-) diff --git

[PATCH] staging: rtl8192u: ieee80211: rtl819x_TSProc: Fixed brace placement issues

2017-05-03 Thread Fabrizio Perria
Fixed multiple checkpatch.pl issues regarding open brace placement, else (after a brace) placement, unnecessary braces (single statement branches) and space before closing brace. To get the list of errors, the following command has been executed: ./scripts/checkpatch.pl --show-types --strict \

[PATCH v2 6/20] clk: sunxi-ng: mux: Change pre-divider application function prototype

2017-05-03 Thread Maxime Ripard
The current function name is a bit confusing, and doesn't really allow to create an explicit function to reverse the operation. We also for now change the parent rate through a pointer, while we don't return anything. In order to be less confusing, and easier to use for downstream users, change

Re: [RFC] Increase Minimal GNU Make version for Linux Kernel from 3.80 to 3.81

2017-05-03 Thread Greg Kroah-Hartman
On Wed, May 03, 2017 at 03:46:11PM +0900, Masahiro Yamada wrote: > Hello Linus and Kbuild developers. > > > Documentation/process/changes.rst says the minimal version > of GNU Make is 3.80, but actually building the kernel > with this version has been broken for a long time. > > Specifically,

RFC v2: post-init-read-only protection for data allocated dynamically

2017-05-03 Thread Igor Stoppa
Hello, please review my (longish) line of thoughts, below. I've restructured them so that they should be easier to follow. Observations * it is currently possible, by using prefix "__read_only", to have the linker place a static variable into a special memory region, which will

Re: [PATCH] arm64: Do not leave an invalid area->pages pointer in dma_common_contiguous_remap()

2017-05-03 Thread Robin Murphy
On 25/04/17 19:22, Catalin Marinas wrote: > The dma_common_pages_remap() function allocates a vm_struct object and > initialises the pages pointer to value passed as argument. However, when > this function is called dma_common_contiguous_remap(), the pages array > is only temporarily allocated,

[PATCH] Fixed a pathing issue with objdump and grep

2017-05-03 Thread Adam Stylinski
The path fed to the argument for objdump used in the perf-annotate feature didn't escape spaces. The subsequent argument to grep for the name of the DSO containing symbols also assumed no spaces existed in the pathname, so grep also parsed these as extra positional arguments. Signed-off-by: Adam

[PATCH 1/2] can: m_can: move Message RAM initialization to function

2017-05-03 Thread Quentin Schulz
To avoid possible ECC/parity checksum errors when reading an uninitialized buffer, the entire Message RAM is initialized when probing the driver. This initialization is done in the same function reading the Device Tree properties. This patch moves the RAM initialization to a separate function so

Re: linux-next: build warning after merge of the devicetree tree

2017-05-03 Thread Rob Herring
On Wed, May 3, 2017 at 12:44 AM, Stephen Rothwell wrote: > Hi Rob, > > On Fri, 28 Apr 2017 12:45:03 +1000 Stephen Rothwell > wrote: >> >> After merging the devicetree tree, today's linux-next build (x86_64 >> allmodconfig) produced this warning: >> >> drivers/of/unittest.c: In function

[PATCH 2/2] can: m_can: add deep Suspend/Resume support

2017-05-03 Thread Quentin Schulz
This adds Power Management deep Suspend/Resume support for Bosch M_CAN chip. When the chip resumes from deep sleep, the RAM needs to be initialized as it is done when the driver probes. The net interface also needs to be closed and reopened to be fully functional. Signed-off-by: Quentin Schulz

[PATCH] staging: vt6656: rtxt.c Fix CODE_INDENT type errors

2017-05-03 Thread Salvatore Benedetto
Fix all CODE_INDENT type errors reported by checkpatch in rtxt.c Signed-off-by: Salvatore Benedetto --- drivers/staging/vt6656/rxtx.c | 49 ++- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/drivers/staging/vt6656/rxtx.c

[PATCH 1/3] perf tools: Fix spelling mistakes

2017-05-03 Thread Kim Phillips
Mostly in the documentation. Signed-off-by: Kim Phillips --- tools/perf/Documentation/perf-c2c.txt | 4 ++-- tools/perf/Documentation/perf-record.txt | 2 +- tools/perf/Documentation/perf-report.txt | 4 ++-- tools/perf/Documentation/perf.data-file-format.txt |

[PATCH 3/3] perf tests kmod-path: don't fail if compressed modules aren't supported

2017-05-03 Thread Kim Phillips
__kmod_path__parse() uses is_supported_compression() to determine and parse out compressed module file extensions. On systems without zlib, this test fails and __kmod_path__parse() continues to strcmp "ko" with "gz". Don't do this on those systems. Signed-off-by: Kim Phillips ---

[PATCH 2/3] perf annotate: fix AArch64 comment char

2017-05-03 Thread Kim Phillips
commit 0fcb1da4aba "perf annotate: AArch64 support" blindly copied the comment character from the original: https://lkml.org/lkml/2016/5/19/461 whereas that same commit shows objdump output utilizing the C++ style "//" as the comment delimeter. Since '/' doesn't occur elsewhere in

[PATCH 1/1] remoteproc: fix elf_loader da_to_va translation and writing beyond segment

2017-05-03 Thread Henri Roosen
Consider a system with 2 memory regions: 0x1fff8000 - 0x1fff: iram 0x2100 - 0x21007fff: dram The .elf file for this system contains the following Program Headers: Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x94

Re: [PATCH 2/2] can: m_can: add deep Suspend/Resume support

2017-05-03 Thread Marc Kleine-Budde
On 05/03/2017 02:11 PM, Quentin Schulz wrote: > This adds Power Management deep Suspend/Resume support for Bosch M_CAN > chip. > > When the chip resumes from deep sleep, the RAM needs to be initialized > as it is done when the driver probes. The net interface also needs to be > closed and

[PATCH] mtd: nand: gpio: update binding

2017-05-03 Thread Christophe Leroy
This patch updates the binding documentation in accordance with commit 44dd182861f99 ("mtd: nand: gpio: make nCE GPIO optional") Signed-off-by: Christophe Leroy Reported-by: Brian Norris --- Documentation/devicetree/bindings/mtd/gpio-control-nand.txt | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH] netfilter: conntrack: Force inlining of build check to prevent build failure

2017-05-03 Thread Geert Uytterhoeven
If gcc (e.g. 4.1.2) decides not to inline total_extension_size(), the build will fail with: net/built-in.o: In function `nf_conntrack_init_start': (.text+0x9baf6): undefined reference to `__compiletime_assert_1893' or ERROR: "__compiletime_assert_1893"

[patch added to 3.12-stable] perf/x86: Avoid exposing wrong/stale data in intel_pmu_lbr_read_32()

2017-05-03 Thread Jiri Slaby
From: Peter Zijlstra This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. === commit f2200ac311302fcdca6556fd0c5127eab6c65a3e upstream. When the perf_branch_entry::{in_tx,abort,cycles} fields were added, intel_pmu_lbr_read_32() wasn't

Re: [PATCH RESEND 1/3 v4] drivers:power:twl4030-charger: don't check if battery is present

2017-05-03 Thread H. Nikolaus Schaller
> Am 01.05.2017 um 13:26 schrieb Sebastian Reichel > : > > Hi, > > On Fri, Apr 14, 2017 at 09:29:38PM +0200, H. Nikolaus Schaller wrote: >> We can't assume that the battery is or stays present after probing >> on devices with replaceable battery. >> >> On some devices (e.g. GTA04 or

Re: [PATCH v3 2/3] drivers:power:twl4030-charger: add INPUT_CURRENT_LIMIT property and make it writeable

2017-05-03 Thread H. Nikolaus Schaller
> Am 01.05.2017 um 13:15 schrieb Sebastian Reichel > : > > Hi, > > On Fri, Apr 14, 2017 at 08:25:56PM +0200, H. Nikolaus Schaller wrote: >> Currently, the twl4030 charger defines its own max_current by directly >> creating sysfs nodes. It should use the input_current_limit property >> which is

Re: [PATCH v3 3/3] drivers:power:twl4030-charger: remove nonstandard max_current sysfs attribute

2017-05-03 Thread H. Nikolaus Schaller
Hi, > Am 01.05.2017 um 13:26 schrieb Sebastian Reichel > : > > Hi, > > On Fri, Apr 14, 2017 at 08:25:57PM +0200, H. Nikolaus Schaller wrote: >> Signed-off-by: H. Nikolaus Schaller > > I'm not queuing this. Please change the following things for the > v4 of this patch: > > - Kernel patches

Re: [PATCH] power: supply: twl4030-charger: make twl4030_bci_property_is_writeable static

2017-05-03 Thread H. Nikolaus Schaller
Hi Colin, > Am 03.05.2017 um 12:33 schrieb Colin King : > > From: Colin Ian King > > The function twl4030_bci_property_is_writeable can be made static > as it does not need to be in global scope. Indeed. Have tested and it still works. > > Signed-off-by: Colin Ian King > --- >

Re: [PATCH 0/7] KVM: MMU: fast write protect

2017-05-03 Thread Paolo Bonzini
So if I understand correctly this relies on userspace doing: 1) KVM_GET_DIRTY_LOG without write protect 2) KVM_WRITE_PROTECT_ALL_MEM Writes may happen between 1 and 2; they are not represented in the live dirty bitmap but it's okay because they are in the snapshot and

Re: [PATCH 2/2] can: m_can: add deep Suspend/Resume support

2017-05-03 Thread Quentin Schulz
Hi Marc, On 03/05/2017 14:16, Marc Kleine-Budde wrote: > On 05/03/2017 02:11 PM, Quentin Schulz wrote: >> This adds Power Management deep Suspend/Resume support for Bosch M_CAN >> chip. >> >> When the chip resumes from deep sleep, the RAM needs to be initialized >> as it is done when the driver

Re: [PATCH] netfilter: conntrack: Force inlining of build check to prevent build failure

2017-05-03 Thread Arnd Bergmann
On Wed, May 3, 2017 at 2:18 PM, Geert Uytterhoeven wrote: > If gcc (e.g. 4.1.2) decides not to inline total_extension_size(), the > build will fail with: > > net/built-in.o: In function `nf_conntrack_init_start': > (.text+0x9baf6): undefined reference to `__compiletime_assert_1893' > > or

[PATCH v2 2/2] can: m_can: add deep Suspend/Resume support

2017-05-03 Thread Quentin Schulz
This adds Power Management deep Suspend/Resume support for Bosch M_CAN chip. When the system resumes from deep sleep, the chip needs to be fully reinitialized (RAM, chip, clocks, irq, candev, ...) to be functional. Signed-off-by: Quentin Schulz --- drivers/net/can/m_can/m_can.c | 8 +++- 1

[PATCH v2 1/2] can: m_can: move Message RAM initialization to function

2017-05-03 Thread Quentin Schulz
To avoid possible ECC/parity checksum errors when reading an uninitialized buffer, the entire Message RAM is initialized when probing the driver. This initialization is done in the same function reading the Device Tree properties. This patch moves the RAM initialization to a separate function so

Re: [PATCH] netfilter: conntrack: Force inlining of build check to prevent build failure

2017-05-03 Thread Florian Westphal
Geert Uytterhoeven wrote: > If gcc (e.g. 4.1.2) decides not to inline total_extension_size(), the > build will fail with: > > net/built-in.o: In function `nf_conntrack_init_start': > (.text+0x9baf6): undefined reference to `__compiletime_assert_1893' > > or > > ERROR:

Re: [PATCH v2 2/2] can: m_can: add deep Suspend/Resume support

2017-05-03 Thread Quentin Schulz
Hum, forgot the changelog. On 03/05/2017 14:37, Quentin Schulz wrote: > This adds Power Management deep Suspend/Resume support for Bosch M_CAN > chip. > > When the system resumes from deep sleep, the chip needs to be fully > reinitialized (RAM, chip, clocks, irq, candev, ...) to be functional. >

<    4   5   6   7   8   9   10   11   12   13   >