[PATCH 4.6 1/3] mm, cma: prevent nr_isolated_* counters from going negative

2016-04-25 Thread Vlastimil Babka
From: Hugh Dickins /proc/sys/vm/stat_refresh warns nr_isolated_anon and nr_isolated_file go increasingly negative under compaction: which would add delay when should be none, or no delay when should delay. The bug in compaction was due to a recent mmotm patch, but much older instance of the bug w

Re: [PATCH v1 4/5] perf: Introduce address range filtering

2016-04-25 Thread Peter Zijlstra
On Mon, Apr 25, 2016 at 03:10:13PM +0200, Peter Zijlstra wrote: > - can we race with an actual stop, and accidentally re-enable the >thing? If not, this might be a good place for a comment explaining >how. A quick look seems to suggest we might not care; still wants a comment.

Re: [PATCHv7 00/29] THP-enabled tmpfs/shmem using compound pages

2016-04-25 Thread Andres Lagar-Cavilla
On Sat, Apr 23, 2016 at 10:46 PM, Wincy Van wrote: > On Wed, Apr 20, 2016 at 1:07 AM, Andres Lagar-Cavilla > wrote: >> Andrea, we provide the, ahem, adjustments to >> transparent_hugepage_adjust. Rest assured we aggressively use mmu >> notifiers with no further changes required. >> >> As in: zero

[PATCH v7 2/4] i2c: tegra: calculate timeout for config load when needed

2016-04-25 Thread Shardar Shariff Md
Instead of calculating timeout for the config load during init, calculate it after config load register is written by using readx_poll_timeout(). Signed-off-by: Shardar Shariff Md --- Changes in v4: - Split timeout calculation to separate patch Changes in v5: - Move disabling of clock to separa

[PATCH v7 1/4] i2c: tegra: disable clock before returning error

2016-04-25 Thread Shardar Shariff Md
Disable clock before returning error in tegra_i2c_init() as its leaves i2c clock ON in case of error and never turns off again as it will have unbalanced clock enable/disable Signed-off-by: Shardar Shariff Md --- Changes in v5: - Move current patch as separate patch Changes in v6: - Remove unne

[PATCH v7 3/4] i2c: tegra: add separate function for config_load

2016-04-25 Thread Shardar Shariff Md
Define separate function for configuration load register handling to make it use by different functions later. Signed-off-by: Shardar Shariff Md --- Changes in v2: - Remove unnecessary paranthesis and align to 80 characters per line Changes in v3: - Add separate function for config load handlin

[PATCH v7 4/4] i2c: tegra: proper handling of error cases

2016-04-25 Thread Shardar Shariff Md
To summarize the issue observed in error cases: SW Flow: For i2c message transfer, packet header and data payload is posted and then required error/packet completion interrupts are enabled later. HW flow: HW process the packet just after packet header is posted, if ARB lost/NACK error occurs (SW

Re: [PATCH] udf: Fix conversion of 'dstring' fields to UTF8

2016-04-25 Thread Jan Kara
On Mon 25-04-16 06:19:38, Andrew Gabbasov wrote: > Commit 9293fcfbc1812a22ad5ce1b542eb90c1bbe01be1 > ("udf: Remove struct ustr as non-needed intermediate storage"), > while getting rid of 'struct ustr', does not take any special care > of 'dstring' fields and effectively use fixed field length inst

Re: [PATCH v2] Documentation: bindings: fix palmas-rtc documentation

2016-04-25 Thread Rob Herring
On Thu, Apr 21, 2016 at 06:03:15PM +0200, H. Nikolaus Schaller wrote: > change 100mA -> 100uA > > Signed-off-by: H. Nikolaus Schaller Applied, thanks. Rob > --- > Documentation/devicetree/bindings/rtc/rtc-palmas.txt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git

Re: [PATCH] batman-adv: Deinline batadv_orig_hash_find, save 9024 bytes

2016-04-25 Thread Denys Vlasenko
On 04/25/2016 03:39 PM, Antonio Quartulli wrote: > On Mon, Apr 25, 2016 at 03:25:22PM +0200, Denys Vlasenko wrote: >> This function compiles to 473 bytes of machine code. >> 21 callsites. >> >> text data bss dec hex filename >> 95903266 20860288 35991552 152755106 91adba2 vml

[PATCHv3 3/5] arm/efi: enable runtime call flag checking

2016-04-25 Thread Mark Rutland
Define ARCH_EFI_IRQ_FLAGS_MASK for arm, which will enable the generic runtime wrapper code to detect when firmware erroneously modifies flags over a runtime services function call. We check all allocated flags, barring those which firmware has legitimate reason to modify (condition flags and IT st

[PATCHv3 1/5] efi/runtime-wrappers: detect FW irq flag corruption

2016-04-25 Thread Mark Rutland
The UEFI spec allows runtime services to be called with interrupts masked or unmasked, and if a runtime service function needs to mask interrupts, it must restore the mask to its original state before returning (i.e. from the PoV of the OS, this does not change across a call). Firmware should never

[PATCHv3 5/5] efi/runtime-wrappers: remove ARCH_EFI_IRQ_FLAGS_MASK ifdef

2016-04-25 Thread Mark Rutland
Now that arm, arm64, and x86 all provide ARCH_EFI_IRQ_FLAGS_MASK, we can get rid of the trivial and now unused implementation of efi_call_virt_check_flags. Signed-off-by: Mark Rutland Cc: Ard Biesheuvel Cc: Matt Fleming Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers

[PATCHv3 4/5] x86/efi: enable runtime call flag checking

2016-04-25 Thread Mark Rutland
Define ARCH_EFI_IRQ_FLAGS_MASK for x86, which will enable the generic runtime wrapper code to detect when firmware erroneously modifies flags over a runtime services function call. For x86 (both 32-bit and 64-bit), we only need check the interrupt flag. Signed-off-by: Mark Rutland Cc: Ard Bieshe

[PATCHv3 0/5] efi: detect erroneous firmware IRQ manipulation

2016-04-25 Thread Mark Rutland
Note: this is largely a rework of the final patch from v2 [2], which now has a per-arch component (and hence additional patches). The rest of v2 has already been picked up, and hence dropped from this posting. Some firmware erroneously unmask IRQs (and potentially other architecture specific excep

Re: [PATCH v2 02/11] xen/hvmlite: Bootstrap HVMlite guest

2016-04-25 Thread Borislav Petkov
On Mon, Apr 25, 2016 at 09:21:27AM -0400, Boris Ostrovsky wrote: > I was following Documentation/x86/boot.txt (plus comments in code preceding > those two routines) which I considered to be the API. > > We are supposed to come to startup_32 with paging off and %esi pointing to > boot_params. For

[PATCHv3 2/5] arm64/efi: enable runtime call flag checking

2016-04-25 Thread Mark Rutland
Define ARCH_EFI_IRQ_FLAGS_MASK for arm64, which will enable the generic runtime wrapper code to detect when firmware erroneously modifies flags over a runtime services function call. Signed-off-by: Mark Rutland Cc: Ard Biesheuvel Cc: Catalin Marinas Cc: Leif Lindholm Cc: Matt Fleming Cc: Will

Re: [PATCH v10 3/9] dt-bindings: phy: tegra-xusb-padctl: Add Tegra210 support

2016-04-25 Thread Kishon Vijay Abraham I
Hi, On Monday 18 April 2016 05:20 PM, Thierry Reding wrote: > On Wed, Apr 06, 2016 at 07:08:24PM +0200, Thierry Reding wrote: > [...] >> I attached what I came up with. It extends the OF PHY provider registry >> by allowing an additional node to be specified that if specified will >> serve as the

Re: [PATCH 11/41] Documentation: dt: dma: fix spelling mistake

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:08AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > Documentation/devicetree/bindings/dma/xilinx/xilinx_dma.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/d

Re: [PATCH 10/41] Documentation: dt: display: fix spelling mistake

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:07AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > Documentation/devicetree/bindings/display/exynos/exynos_dsim.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindi

Re: [PATCH] clockevents: Retry programming min delta up to 10 times

2016-04-25 Thread Martin Schwidefsky
On Fri, 22 Apr 2016 11:40:11 +0100 James Hogan wrote: > Under virtualisation it is possible to get unexpected latency during a > clockevent device's set_next_event() callback which can make it return > -ETIME even for a delta based on min_delta_ns. Do you have an example for this behavior? I wou

Re: [PATCH 08/41] Documentation: dt: arm: fix spelling mistakes

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:05AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > Documentation/devicetree/bindings/arm/cci.txt| 2 +- > Documentation/devicetree/bindings/arm/spear-misc.txt | 2 +- > 2 files changed, 2 insertions(+), 2 deletio

Re: [PATCH 21/41] Documentation: dt: power: fix spelling mistake

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:18AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > Documentation/devicetree/bindings/power/qcom,coincell-charger.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git > a/Documentation/devicetree/b

Re: [PATCH 22/41] Documentation: dt: soc: fix spelling mistakes

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:19AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > .../devicetree/bindings/soc/ti/keystone-navigator-qmss.txt | 6 > +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git > a/Documentation/d

Re: [PATCH 19/41] Documentation: dt: opp: fix spelling mistake

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:16AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > Documentation/devicetree/bindings/opp/opp.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/opp/opp.txt >

Re: [PATCH 17/41] Documentation: dt: mtd: fix spelling mistake

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:14AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/mtd/b

Re: [PATCH 18/41] Documentation: dt: net: fix spelling mistakes

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:15AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > Documentation/devicetree/bindings/net/hisilicon-hns-nic.txt | 2 +- > Documentation/devicetree/bindings/net/stmmac.txt| 4 ++-- > Documentation/devicetree/bi

Re: [PATCH 20/41] Documentation: dt: pinctrl: fix spelling mistake

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:17AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/

Re: [PATCH 14/41] Documentation: dt: media: fix spelling mistake

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:11AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > Documentation/devicetree/bindings/media/xilinx/video.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/medi

Re: [PATCH 15/41] Documentation: dt: mfd: fix spelling mistakes

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:12AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > Documentation/devicetree/bindings/mfd/qcom-rpm.txt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mfd/qc

Re: [PATCH 16/41] Documentation: dt: mmc: fix spelling mistake

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:13AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > Documentation/devicetree/bindings/mmc/mmc-pwrseq-emmc.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/mmc

Re: [PATCH 13/41] Documentation: dt: interrupt-controller: fix spelling mistakes

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:10AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > .../devicetree/bindings/interrupt-controller/ti,omap4-wugen-mpu | 4 > ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git > a/Documentation/d

Re: [PATCH 3/5] ARM: dts: introduce MPS2 AN385/AN386

2016-04-25 Thread Sudeep Holla
On 25/04/16 13:03, Vladimir Murzin wrote: On 25/04/16 12:32, Arnd Bergmann wrote: On Monday 25 April 2016 11:15:35 Vladimir Murzin wrote: + +#include "mps2.dtsi" + +/ { +model = "ARM MPS2 Application Note 385/386"; +compatible = "arm,mps2"; + +aliases { +serial0 = &uart0;

Re: [PATCH 12/41] Documentation: dt: input: fix spelling mistakes

2016-04-25 Thread Rob Herring
On Mon, Apr 25, 2016 at 01:24:09AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom Applied, thanks. Rob > --- > Documentation/devicetree/bindings/input/ads7846.txt | 2 +- > Documentation/devicetree/bindings/input/touchscreen/fsl-mx25-tcq.txt | 2 +- > 2 files cha

[PATCH V3 1/1] perf hists: clear dummy entry accumulated period

2016-04-25 Thread kan . liang
From: Kan Liang The accumulated period for dummy entry should also be 0. Otherwise, the total overhead could be overcounted. [perf]$ perf record -e '{LLC-load-misses,cpu/instructions/}' --call-graph=lbr ./tchain [perf]$ perf report --stdio # To display the perf.data header info, please use --he

Re: [PATCHv3 2/5] arm64/efi: enable runtime call flag checking

2016-04-25 Thread Will Deacon
On Mon, Apr 25, 2016 at 02:46:31PM +0100, Mark Rutland wrote: > Define ARCH_EFI_IRQ_FLAGS_MASK for arm64, which will enable the generic > runtime wrapper code to detect when firmware erroneously modifies flags > over a runtime services function call. > > Signed-off-by: Mark Rutland > Cc: Ard Bies

Re: [PATCH 09/41] Documentation: dt: clock: fix spelling mistakes

2016-04-25 Thread Rob Herring
On Sun, Apr 24, 2016 at 7:24 PM, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom > --- Applied with Randy's fix. Rob

Re: [PATCH v7 1/4] i2c: tegra: disable clock before returning error

2016-04-25 Thread Wolfram Sang
On Mon, Apr 25, 2016 at 07:08:36PM +0530, Shardar Shariff Md wrote: > Disable clock before returning error in tegra_i2c_init() as its leaves > i2c clock ON in case of error and never turns off again as it will have > unbalanced clock enable/disable > > Signed-off-by: Shardar Shariff Md > > --- >

Re: [PATCH v2 02/11] xen/hvmlite: Bootstrap HVMlite guest

2016-04-25 Thread Boris Ostrovsky
On 04/25/2016 09:47 AM, Borislav Petkov wrote: On Mon, Apr 25, 2016 at 09:21:27AM -0400, Boris Ostrovsky wrote: I was following Documentation/x86/boot.txt (plus comments in code preceding those two routines) which I considered to be the API. We are supposed to come to startup_32 with paging of

[PATCH] bfs: rename should update mtime

2016-04-25 Thread Salah Triki
bfs_rename should update mtime on target. Signed-off-by: Salah Triki --- fs/bfs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bfs/dir.c b/fs/bfs/dir.c index 3ec6113..d5902d9 100644 --- a/fs/bfs/dir.c +++ b/fs/bfs/dir.c @@ -252,7 +252,7 @@ static int bfs_rename(stru

Re: [PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-25 Thread Noralf Trønnes
Den 25.04.2016 15:02, skrev Ville Syrjälä: On Mon, Apr 25, 2016 at 02:55:52PM +0200, Noralf Trønnes wrote: Den 25.04.2016 14:39, skrev Ville Syrjälä: On Sun, Apr 24, 2016 at 10:48:55PM +0200, Noralf Trønnes wrote: Add some utility functions for struct drm_clip_rect. Looks like mostly you're

Re: [PATCH v6 09/12] usb: gadget: udc: adapt to OTG core

2016-04-25 Thread Roger Quadros
Hi, On 21/04/16 09:38, Jun Li wrote: > Hi, > > ... >> >> /** >> + * usb_gadget_start - start the usb gadget controller and connect to >> +bus >> + * @gadget: the gadget device to start >> + * >> + * This is external API for use by OTG core. >> + * >> + * Start the usb device controller and conne

Re: [PATCH v6 07/12] usb: otg: add OTG/dual-role core

2016-04-25 Thread Roger Quadros
Peter, On 21/04/16 09:52, Peter Chen wrote: > On Tue, Apr 05, 2016 at 05:05:12PM +0300, Roger Quadros wrote: >> It provides APIs for the following tasks >> >> - Registering an OTG/dual-role capable controller >> - Registering Host and Gadget controllers to OTG core >> - Providing inputs to and kic

Re: [PATCH] batman-adv: Deinline batadv_orig_hash_find, save 9024 bytes

2016-04-25 Thread Antonio Quartulli
On Mon, Apr 25, 2016 at 03:25:22PM +0200, Denys Vlasenko wrote: > This function compiles to 473 bytes of machine code. > 21 callsites. > > text data bss dec hex filename > 95903266 20860288 35991552 152755106 91adba2 vmlinux_before > 95894242 20860288 35991552 152746082 91ab

Re: [PATCH v4 1/7] mfd: da8xx-cfgchip: New header file for CFGCHIP registers.

2016-04-25 Thread Lee Jones
On Thu, 14 Apr 2016, David Lechner wrote: > We will be using a generic syscon device for the TI DA8XX SoC CFGCHIPx > retisters. This will be used by a number of planned drivers including a > new USB PHY driver and common clock framework drivers. > > The same defines are removed from the platform_

Re: [PATCH] mfd: twl4030-power: Fix driver path in file comment

2016-04-25 Thread Lee Jones
On Tue, 19 Apr 2016, Javier Martinez Canillas wrote: > The driver's file path in the comment is wrong, use the correct one. > > Signed-off-by: Javier Martinez Canillas > > --- > > drivers/mfd/twl4030-power.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mfd

Re: [PATCH] mfd: intel-lpss: Remove CLK_IS_ROOT

2016-04-25 Thread Lee Jones
On Tue, 19 Apr 2016, Stephen Boyd wrote: > This flag is a no-op now (see commit 47b0eeb3dc8a "clk: Deprecate > CLK_IS_ROOT", 2016-02-02) so remove it. > > Cc: Andy Shevchenko > Cc: Mika Westerberg > Signed-off-by: Stephen Boyd > --- > drivers/mfd/intel-lpss.c | 4 ++-- > 1 file changed, 2 ins

Re: [PATCH v2 02/11] xen/hvmlite: Bootstrap HVMlite guest

2016-04-25 Thread Borislav Petkov
On Mon, Apr 25, 2016 at 09:54:37AM -0400, Boris Ostrovsky wrote: > Yes, those. I don't think the ones in arch/x86/kernel/head_{32,64}.S are ABI. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.

Re: [PATCHv3 1/5] efi/runtime-wrappers: detect FW irq flag corruption

2016-04-25 Thread Robin Murphy
Hi Mark, On 25/04/16 14:46, Mark Rutland wrote: The UEFI spec allows runtime services to be called with interrupts masked or unmasked, and if a runtime service function needs to mask interrupts, it must restore the mask to its original state before returning (i.e. from the PoV of the OS, this do

Re: [PATCH 4/4] ARM: remove duplicate const qualifier

2016-04-25 Thread Nicolas Pitre
On Mon, 25 Apr 2016, Eric Engestrom wrote: > On Mon, Apr 25, 2016 at 01:38:18PM +0200, Arnd Bergmann wrote: > > Maybe say you you found it (llvm, sparse, coccinelle?), and why this > > is causing a problem for anyone. If it's just unnecessary but not > > harmful, I'd probably ignore the patch. >

Re: [PATCH v1 4/5] perf: Introduce address range filtering

2016-04-25 Thread Peter Zijlstra
On Fri, Apr 22, 2016 at 07:19:11PM +0300, Alexander Shishkin wrote: > /** > + * struct perf_addr_filter - address range filter definition > + * @entry: event's filter list linkage > + * @inode: object file's inode for file-based filters > + * @offset: filter range offset > + * @size:filte

Re: [PATCH v4] ASoC: docs: add clocking examples for DAI formats

2016-04-25 Thread Peter Rosin
Hi! On 2016-04-21 22:58, Peter Rosin wrote: > +See the official I2S specification > +https://www.sparkfun.com/datasheets/BreakoutBoards/I2SBUS.pdf I've searched for a bit, and the best I can find is (IMHO) https://web.archive.org/web/20060702004954/http://www.semiconductors.philips.com/acrobat_do

Re: [PATCH v4 2/2] KVM: move vcpu id checking to archs

2016-04-25 Thread Radim Krčmář
2016-04-22 16:50+0200, Greg Kurz: > Just to be sure I haven't missed something: > - change the spec to introduce the MAX_VCPU_ID concept > - update all related checks in KVM > - provide a KVM_CAP_MAX_VCPU_ID for userspace That is it, thanks a lot! (From nitpicks that come to my mind ... MAX_VCPU_

Re: [PATCH 3.12 00/78] 3.12.59-stable review

2016-04-25 Thread Shuah Khan
On 04/22/2016 05:05 AM, Jiri Slaby wrote: > This is the start of the stable review cycle for the 3.12.59 release. > There are 78 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses should be

[PATCH] rtlwifi: rtl818x: Deinline indexed IO functions, save 21568 bytes

2016-04-25 Thread Denys Vlasenko
rtl818x_ioread8_idx: 151 bytes, 29 calls rtl818x_ioread16_idx: 151 bytes, 11 calls rtl818x_ioread32_idx: 151 bytes, 5 calls rtl818x_iowrite8_idx: 157 bytes, 117 calls rtl818x_iowrite16_idx: 158 bytes, 74 calls rtl818x_iowrite32_idx: 157 bytes, 22 calls Each of these functions has a pair of mutex l

Re: [PATCHv3 1/5] efi/runtime-wrappers: detect FW irq flag corruption

2016-04-25 Thread Ard Biesheuvel
On 25 April 2016 at 16:15, Matt Fleming wrote: > On Mon, 25 Apr, at 03:12:01PM, Robin Murphy wrote: >> >+static void efi_call_virt_check_flags(unsigned long flags, const char >> >*call) >> >+{ >> >+unsigned long cur_flags; >> >+bool mismatch; >> >+ >> >+local_save_flags(cur_flags); >>

Re: [PATCH 1/3] kbuild: call adjust_autoksyms.sh from source directory

2016-04-25 Thread Nicolas Pitre
On Mon, 25 Apr 2016, Arnd Bergmann wrote: > When building with separate object trees, scripts/adjust_autoksyms.sh > cannot be called from the object directory: > > /bin/bash: scripts/adjust_autoksyms.sh: No such file or directory > > This adds a $(src) prefix, as we do for all other shell script

[PATCH v2 0/3] Add support for ARM Mali Display Processors

2016-04-25 Thread Liviu Dudau
Hello, This is the second revision of the driver for the Mali Display Processors (Mali DP). Currently, the driver supports the Display Engine found in Mali DP500, DP550 and DP650, with up to 3 planes that can be rotated by the hardware. There are features that the hardware supports that are not c

[PATCH v2 1/3] dt/bindings: display: Add DT bindings for Mali Display Processors.

2016-04-25 Thread Liviu Dudau
Add DT bindings documentation for the Mali Display Processor. The bindings describe the Mali DP500, DP550 and DP650 processors from ARM Ltd. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Signed-off-by: Liviu Dudau --- .../devicetree/bindings/display/arm,ma

Re: [PATCH] batman-adv: Deinline batadv_orig_hash_find, save 9024 bytes

2016-04-25 Thread Antonio Quartulli
On Mon, Apr 25, 2016 at 03:45:20PM +0200, Denys Vlasenko wrote: > On 04/25/2016 03:39 PM, Antonio Quartulli wrote: > > On Mon, Apr 25, 2016 at 03:25:22PM +0200, Denys Vlasenko wrote: > >> This function compiles to 473 bytes of machine code. > >> 21 callsites. > >> > >> text data bss

[PATCH v2 2/3] drm/arm: Add support for Mali Display Processors

2016-04-25 Thread Liviu Dudau
Add support for the new family of Display Processors from ARM Ltd. This commit adds basic support for Mali DP500, DP550 and DP650 parts, with only the display engine being supported at the moment. Cc: David Brown Cc: Brian Starkey Signed-off-by: Liviu Dudau --- drivers/gpu/drm/arm/Kconfig

Re: [PATCH] [media] au0828: fix double free in au0828_usb_probe()

2016-04-25 Thread Shuah Khan
On 04/22/2016 04:05 PM, Alexey Khoroshilov wrote: > In case of failure au0828_v4l2_device_register() deallocates dev > and returns error code to au0828_usb_probe(), which also > calls kfree(dev) on a failure path. > > The patch removes duplicated code from au0828_v4l2_device_register(). > > Found

[PATCH V2] bfs: rename should update mtime

2016-04-25 Thread Salah Triki
bfs_rename should update ctime and mtime on target. Signed-off-by: Salah Triki --- fs/bfs/dir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/bfs/dir.c b/fs/bfs/dir.c index 3ec6113..c69f7dc 100644 --- a/fs/bfs/dir.c +++ b/fs/bfs/dir.c @@ -254,6 +254,7 @@ static int bfs_rename(struct ino

Re: [PATCH] powercap/intel_rapl: Add support for Kabylake

2016-04-25 Thread Rafael J. Wysocki
On Fri, Apr 22, 2016 at 7:17 PM, Jacob Pan wrote: > Kabylake is similar to Skylake in terms of RAPL. > > Signed-off-by: Jacob Pan How urgent is this? Can we live without it in 4.6 in particular? > --- > drivers/powercap/intel_rapl.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/d

[PATCH v2 3/3] MAINTAINERS: Add entry for Mali-DP driver

2016-04-25 Thread Liviu Dudau
Add MAINTAINERS entry for ARM Mali-DP driver and update the HDLCD file matching pattern to cover only HDLCD rather than the whole drivers/gpu/drm/arm directory. Signed-off-by: Liviu Dudau --- MAINTAINERS | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/

Re: [PATCHv3 1/5] efi/runtime-wrappers: detect FW irq flag corruption

2016-04-25 Thread Matt Fleming
On Mon, 25 Apr, at 03:12:01PM, Robin Murphy wrote: > >+static void efi_call_virt_check_flags(unsigned long flags, const char *call) > >+{ > >+unsigned long cur_flags; > >+bool mismatch; > >+ > >+local_save_flags(cur_flags); > >+ > >+mismatch = !!((cur_flags ^ flags) & ARCH_EFI_IRQ_F

Re: [PATCH V3 09/18] coresight: tmc: allocating memory when needed

2016-04-25 Thread Mathieu Poirier
On 25 April 2016 at 04:20, Suzuki K Poulose wrote: > On 22/04/16 18:14, Mathieu Poirier wrote: >> >> static int tmc_enable_etf_sink(struct coresight_device *csdev, u32 mode) >> { >> + bool used = false; >> + char *buf = NULL; >> unsigned long flags; >> struct tmc_dr

Re: [PATCHv3 1/5] efi/runtime-wrappers: detect FW irq flag corruption

2016-04-25 Thread Matt Fleming
On Mon, 25 Apr, at 04:18:41PM, Ard Biesheuvel wrote: > On 25 April 2016 at 16:15, Matt Fleming wrote: > > On Mon, 25 Apr, at 03:12:01PM, Robin Murphy wrote: > >> >+static void efi_call_virt_check_flags(unsigned long flags, const char > >> >*call) > >> >+{ > >> >+unsigned long cur_flags; > >>

Re: [PATCH] xfs: idle aild if the AIL is pushed up to the target LSN

2016-04-25 Thread Brian Foster
On Mon, Apr 25, 2016 at 09:42:43AM +0200, Lucas Stach wrote: > The current logic only idles aild if the AIL is empty, rescheduling > the worker with a timeout of 50ms otherwise. If the target LSN isn't > moved forward, the worker will not make any progress as it only > pushes the AIL up to the targ

Re: [PATCH V3 10/18] coresight: tmc: getting the right read_count on tmc_open()

2016-04-25 Thread Mathieu Poirier
On 25 April 2016 at 04:47, Suzuki K Poulose wrote: > On 22/04/16 18:14, Mathieu Poirier wrote: >> >> In function tmc_open(), if tmc_read_prepare() fails variable >> drvdata->read_count is not decremented, causing unwanted >> access to drvdata->buf and very likely, a crash dump. >> >> By moving the

Re: [PATCH v1 4/5] perf: Introduce address range filtering

2016-04-25 Thread Peter Zijlstra
On Fri, Apr 22, 2016 at 07:19:11PM +0300, Alexander Shishkin wrote: > +/* > + * Address range filtering: limiting the data to certain > + * instruction address ranges. Filters are ioctl()ed to us from > + * userspace as ascii strings. > + * > + * Filter string format: > + * > + * ACTION SOURCE:RANG

Re: [PATCH] hwmon: sch5636: trivial fix of spelling mistake on revision

2016-04-25 Thread Guenter Roeck
On 04/24/2016 02:55 PM, Colin King wrote: From: Colin Ian King fix spelling mistake, revison -> revision Signed-off-by: Colin Ian King Applied to hwmon-next. Thanks, Guenter

Re: [PATCHv3 1/5] efi/runtime-wrappers: detect FW irq flag corruption

2016-04-25 Thread Mark Rutland
On Mon, Apr 25, 2016 at 03:24:35PM +0100, Matt Fleming wrote: > On Mon, 25 Apr, at 04:18:41PM, Ard Biesheuvel wrote: > > On 25 April 2016 at 16:15, Matt Fleming wrote: > > > On Mon, 25 Apr, at 03:12:01PM, Robin Murphy wrote: > > >> >+static void efi_call_virt_check_flags(unsigned long flags, const

[PATCH v3] z3fold: the 3-fold allocator for compressed pages

2016-04-25 Thread Vitaly Wool
This patch introduces z3fold, a special purpose allocator for storing compressed pages. It is designed to store up to three compressed pages per physical page. It is a ZBUD derivative which allows for higher compression ratio keeping the simplicity and determinism of its predecessor. This patch co

Re: [PATCH] mfd: intel_quark_i2c_gpio: Remove CLK_IS_ROOT

2016-04-25 Thread Lee Jones
On Tue, 19 Apr 2016, Stephen Boyd wrote: > This flag is a no-op now (see commit 47b0eeb3dc8a "clk: Deprecate > CLK_IS_ROOT", 2016-02-02) so remove it. > > Cc: Andy Shevchenko > Signed-off-by: Stephen Boyd > --- > drivers/mfd/intel_quark_i2c_gpio.c | 2 +- > 1 file changed, 1 insertion(+), 1 de

Re: [PATCH v3] qla1280: Reduce can_queue to 512

2016-04-25 Thread James Bottomley
On Mon, 2016-04-25 at 09:16 +0200, Johannes Thumshirn wrote: > The qla1280 driver sets the scsi_host_template's can_queue field to > 0xf > which results in an allocation failure when allocating the block > layer tags > for the driver's queues like the one shown below: > > [4.804166] scsi h

Re: [PATCH v3] sched/cpufreq: optimize cpufreq update kicker to avoid update multiple times

2016-04-25 Thread Peter Zijlstra
On Fri, Apr 22, 2016 at 02:04:56PM +0200, Rafael J. Wysocki wrote: > [Added linux-pm to the CC - can you please do so for PM-related patches in > the future?] > > On 4/22/2016 11:07 AM, Wanpeng Li wrote: > >From: Wanpeng Li > > > >Sometimes delta_exec is 0 due to update_curr() is called multiple

Re: [PATCH v4 2/2] KVM: move vcpu id checking to archs

2016-04-25 Thread Greg Kurz
On Mon, 25 Apr 2016 16:15:22 +0200 Radim Krčmář wrote: > 2016-04-22 16:50+0200, Greg Kurz: > > Just to be sure I haven't missed something: > > - change the spec to introduce the MAX_VCPU_ID concept > > - update all related checks in KVM > > - provide a KVM_CAP_MAX_VCPU_ID for userspace > > Tha

Re: [PATCH V3 13/18] coresight: tmc: make sysFS and Perf mode mutually exclusive

2016-04-25 Thread Suzuki K Poulose
On 22/04/16 18:14, Mathieu Poirier wrote: The sysFS and Perf access methods can't be allowed to interfere with one another. As such introducing guards to access functions that prevents moving forward if a TMC is already being used. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresig

Re: [PATCHv3 1/5] efi/runtime-wrappers: detect FW irq flag corruption

2016-04-25 Thread Robin Murphy
On 25/04/16 15:24, Matt Fleming wrote: On Mon, 25 Apr, at 04:18:41PM, Ard Biesheuvel wrote: On 25 April 2016 at 16:15, Matt Fleming wrote: On Mon, 25 Apr, at 03:12:01PM, Robin Murphy wrote: +static void efi_call_virt_check_flags(unsigned long flags, const char *call) +{ +unsigned long cur

[PATCH v7 06/15] dt-bindings: i2c: Add Octeon cn78xx TWSI

2016-04-25 Thread Jan Glauber
Add compatible string for Cavium Octeon cn78XX SOCs TWSI. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Signed-off-by: Jan Glauber Acked-by: David Daney --- Documentation/devicetree/bindings/i2c/i2c-octeon.txt | 6 ++ 1 file changed, 6 insertions(+)

Re: [PATCH 0/3] mainline and mmotm compaction fixes

2016-04-25 Thread Michal Hocko
On Mon 25-04-16 15:34:26, Vlastimil Babka wrote: [...] > > 1. Fix crash in release_pages() from compact_zone() from > > kcompactd_do_work(): > > kcompactd needs to INIT_LIST_HEAD on the new freepages_held list. > > This one should be addressed by dropping the following from mmotm from now: >

[PATCH v7 12/15] i2c: octeon: Split the driver into two parts

2016-04-25 Thread Jan Glauber
Move common functionality into a separate file in preparation of the re-use from the ThunderX i2c driver. Signed-off-by: Jan Glauber --- drivers/i2c/busses/Makefile | 3 +- drivers/i2c/busses/i2c-cavium.c | 799 + drivers/i2c/busses/i2c-cavium.h |

[PATCH v7 11/15] i2c: octeon: Rename driver to prepare for split

2016-04-25 Thread Jan Glauber
This is an intermediate commit in preparation of the driver split. The module rename in this commit will be reverted in the next patch, this is just done to make the series bisectible. Signed-off-by: Jan Glauber --- drivers/i2c/busses/Makefile| 2 +- drivers/i2c/busse

Re: [PATCH] mfd: tps6105x: Remove linux/regulator/driver.h include

2016-04-25 Thread Lee Jones
On Wed, 20 Apr 2016, Mark Brown wrote: > This driver makes no use of linux/regulator/driver.h which should only > be used by drivers implementing a regulator. Since it's unlikely to > ever need anything from there remove the include. > > Signed-off-by: Mark Brown > --- > drivers/mfd/tps6105x.c

[PATCH v7 15/15] i2c: thunderx: Add smbus alert support

2016-04-25 Thread Jan Glauber
Add smbus alert interrupt support. Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-cavium.h| 6 ++ drivers/i2c/busses/i2c-thunderx-core.c | 35 ++ 2 files changed, 41 insertions(+) diff --git a/drivers/i2c/busses/i2c-cavium.h b/drivers/i2c/buss

[PATCH v7 13/15] i2c: thunderx: Add i2c driver for ThunderX SOC

2016-04-25 Thread Jan Glauber
The ThunderX SOC uses the same i2c block as the Octeon SOC. The main difference is that on ThunderX the device is a PCI device so device probing is done via PCI, interrupts are MSIX and the clock is taken from device tree. Signed-off-by: Jan Glauber --- drivers/i2c/busses/Kconfig |

[PATCH v7 08/15] i2c: octeon: Improve performance if interrupt is early

2016-04-25 Thread Jan Glauber
From: Peter Swain There is a race between the TWSI interrupt and the condition that is required before proceeding: Low-level: interrupt flag bit must be set High-level controller: valid bit must be clear If the interrupt comes too early and the condition is not met the wait will time out, and t

[PATCH v7 14/15] i2c: octeon,thunderx: Move register offsets to struct

2016-04-25 Thread Jan Glauber
The register offsets are different between Octeon and ThunderX so move them into the algorithm struct and get rid of the define. Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-cavium.c| 28 +-- drivers/i2c/busses/i2c-cavium.h| 35 +--

[PATCH v7 10/15] i2c: octeon: Move read function before write

2016-04-25 Thread Jan Glauber
Just sorting the functions to be consistent with the other read/write variants. Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 78 - 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/drivers/i2c/busses/i2c-octeon.c b/drivers

[PATCH v7 09/15] i2c: octeon: Add workaround for broken irqs on CN3860

2016-04-25 Thread Jan Glauber
From: David Daney CN3860 does not interrupt the CPU when the i2c status changes. If we get a timeout, and see the status has in fact changed, we know we have this problem, and drop back to polling. Signed-off-by: David Daney Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 53

[PATCH v7 07/15] i2c: octeon: Add support for cn78xx chips

2016-04-25 Thread Jan Glauber
From: David Daney cn78xx has a different interrupt architecture, so we have to manage the interrupts differently. Signed-off-by: David Daney Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 131 1 file changed, 120 insertions(+), 11 del

[PATCH v7 03/15] i2c: octeon: Remove I2C_FUNC_SMBUS_QUICK support

2016-04-25 Thread Jan Glauber
SMBUS QUICK never worked for the read case, because EINVAL was returned for a zero length message. The hardware does not support SMBUS QUICK messages so disable the support and remove the zero length check. Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 5 + 1 file changed,

Re: [PATCH 4/4] ARM: remove duplicate const qualifier

2016-04-25 Thread Eric Engestrom
On Mon, Apr 25, 2016 at 10:12:16AM -0400, Nicolas Pitre wrote: > Beware. > > I added many of those exactly because gcc did not ignore them when > compiling with LTO where the lack of a const qualifier to qualify the > actual array content, and not only the reference to that content, > generated

Re: [PATCH v5 3/9] dma-mapping: add dma_{map,unmap}_resource

2016-04-25 Thread Niklas Söderlund
Hi Christoph, On 2016-04-21 06:49:42 -0700, Christoph Hellwig wrote: > On Wed, Apr 13, 2016 at 03:29:17PM +0200, Niklas S?derlund wrote: > > > Yes, it would be good to do an audit of all the ARM dma_ops as well > > > as generic code like drivers/base/dma-*.c, lib/dma-debug.c and > > > include/linu

[PATCH v7 00/15] i2c-octeon and i2c-thunderx drivers

2016-04-25 Thread Jan Glauber
Hi Wolfram, v7 implements the changes from your review plus some comments from David. I've moved the flush writeq patch before the HLC patch, because it is already needed there and seems quite trivial and I've added a new patch to disable the SMBUS QUICK support as discussed. This series for the

[PATCH v7 01/15] i2c: octeon: Improve error status checking

2016-04-25 Thread Jan Glauber
Introduce a function that checks for valid status codes depending on the phase of a transmit or receive. Also add all existing status codes and improve error handling for various states. The Octeon TWSI has an "assert acknowledge" bit (TWSI_CTL_AAK) that is required to be set in master receive mod

[PATCH v7 02/15] i2c: octeon: Use i2c recovery framework

2016-04-25 Thread Jan Glauber
Switch to the i2c bus recovery framework using generic SCL recovery. If this fails try to reset the hardware. The recovery is triggered during START on timeout of the interrupt or failure to reach the START / repeated-START condition. The START function is moved to xfer and while at it remove the

[PATCH v7 04/15] i2c: octeon: Add flush writeq helper function

2016-04-25 Thread Jan Glauber
From: Peter Swain Add helper function that reads back a value after writing to make sure the write is finished and use it in octeon_i2c_write_int(). Signed-off-by: Peter Swain Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 9 +++-- 1 file changed, 7 insertions(+), 2 dele

Re: [PATCH V3 14/18] coresight: tmc: keep track of memory width

2016-04-25 Thread Suzuki K Poulose
On 22/04/16 18:14, Mathieu Poirier wrote: Accessing the HW configuration register each time the memory width is needed simply doesn't make sense. It is much more efficient to read the value once and keep a reference for later use. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresigh

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