[PATCH] powerpc/32: Remove CLR_TOP32

2016-08-05 Thread Christophe Leroy
CLR_TOP32() is defined as blank. Last useful instance of CLR_TOP32() was removed by commit 40ef8cbc6d360 ("powerpc: Get 64-bit configs to compile with ARCH=powerpc") Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc_asm.h | 1 - arch/powerpc/kernel/entry_32.S | 1 -

[PATCH] powerpc/32: Remove one insn in __bswapdi2

2016-08-05 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/misc_32.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S index e025230..e18055c 100644 --- a/arch/powerpc/kernel/misc_32.S +++

Re: [LKP] [lkp] [sctp] a6c2f79287: netperf.Throughput_Mbps -37.2% regression

2016-08-05 Thread Xin Long
>> It doesn't make much sense to me. the codes I added cannot be >> triggered without enable any pr policies. and I also did the tests in > > It seems these pr policies has to be turned on by user space, i.e. > netperf in this case? > > I checked netperf's source code, it doesn't seem set any

Re: [PATCH v1 2/2] mtd: Add hooks to call get and put on mtd devices.

2016-08-05 Thread Baxter, Jim
> Hi! > > On Thu, Aug 4, 2016 at 4:16 PM, Sandeep Jain wrote: >> From: Jim Baxter >> >> Add hooks to mtdpart to call _get_device and _put_device, >> this allows the mtd devices to perform internal >> reference counting if required. >> >> Signed-off-by: Jim Baxter >> Signed-off-by: Sandeep Jain

[PATCH v2] perf probe: Support signedness casting

2016-08-05 Thread Naohiro Aota
Perf-probe detects a variable's type and use the detected type to add new probe. Then, kprobes prints its variable in hexadecimal format if the variable is unsigned and prints in decimal if it is signed. We sometimes want to see unsigned variable in decimal format (i.e. sector_t or size_t). In

Re: [PATCH 03/34] mm, vmscan: move LRU lists to node

2016-08-05 Thread Mel Gorman
On Fri, Aug 05, 2016 at 11:52:57AM +0100, James Hogan wrote: > > What's surprising is that it worked for the zone stats as it appears > > that calling zone_reclaimable() from that context should also have > > broken. Did anything change recently that would have avoided the > > zone->pageset

Re: [bug, 4.8] /proc/meminfo: counter values are very wrong

2016-08-05 Thread Dave Chinner
On Fri, Aug 05, 2016 at 11:54:17AM +0100, Mel Gorman wrote: > On Fri, Aug 05, 2016 at 09:11:10AM +1000, Dave Chinner wrote: > > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > > > index fb975cec3518..baa97da3687d 100644 > > > --- a/mm/page_alloc.c > > > +++ b/mm/page_alloc.c > > > @@ -4064,7

Re: [PATCH 03/34] mm, vmscan: move LRU lists to node

2016-08-05 Thread James Hogan
On Fri, Aug 05, 2016 at 12:55:26PM +0100, Mel Gorman wrote: > On Fri, Aug 05, 2016 at 11:52:57AM +0100, James Hogan wrote: > > > What's surprising is that it worked for the zone stats as it appears > > > that calling zone_reclaimable() from that context should also have > > > broken. Did anything

Re: [PATCH 1/6] efi: Retrieve Apple device properties

2016-08-05 Thread Matt Fleming
On Fri, 05 Aug, at 01:42:19PM, Lukas Wunner wrote: > > So I could cap the number of loop iterations but it would be pointless. OK, thanks for the explanation.

Re: [bug, 4.8] /proc/meminfo: counter values are very wrong

2016-08-05 Thread Dave Chinner
On Fri, Aug 05, 2016 at 09:59:35PM +1000, Dave Chinner wrote: > On Fri, Aug 05, 2016 at 11:54:17AM +0100, Mel Gorman wrote: > > On Fri, Aug 05, 2016 at 09:11:10AM +1000, Dave Chinner wrote: > > > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > > > > index fb975cec3518..baa97da3687d 100644 > > >

Applied "ASoC: hdmi-codec: enable multi probe for same device" to the asoc tree

2016-08-05 Thread Mark Brown
The patch ASoC: hdmi-codec: enable multi probe for same device has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "regulator: qcom_smd: Fix voltage ranges for pm8x41" to the regulator tree

2016-08-05 Thread Mark Brown
The patch regulator: qcom_smd: Fix voltage ranges for pm8x41 has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: use of_property_read_bool" to the asoc tree

2016-08-05 Thread Mark Brown
The patch ASoC: use of_property_read_bool has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during

Applied "regulator: qcom_smd: Fix voltage ranges for pma8084 ftsmps and pldo" to the regulator tree

2016-08-05 Thread Mark Brown
The patch regulator: qcom_smd: Fix voltage ranges for pma8084 ftsmps and pldo has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in

Applied "ASoC: rockchip: Add machine driver for RK3399 GRU Boards" to the asoc tree

2016-08-05 Thread Mark Brown
The patch ASoC: rockchip: Add machine driver for RK3399 GRU Boards has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Re: [Patch v3 01/11] arch/powerpc/pci: Fix compiling error for mpc85xx_edac

2016-08-05 Thread york sun
On 08/04/2016 04:36 PM, Andrew Donnellan wrote: > On 05/08/16 08:58, York Sun wrote: >> Two symbols are missing if mpc85xx_edac driver is compiled as module. >> >> Signed-off-by: York Sun > > Good catch! One comment below. > > Reviewed-by: Andrew Donnellan > >> /* >> * Reads the interrupt pin

Re: [PATCH v1 2/2] mtd: Add hooks to call get and put on mtd devices.

2016-08-05 Thread Richard Weinberger
Am 05.08.2016 um 13:54 schrieb Baxter, Jim: >> On Thu, Aug 4, 2016 at 4:16 PM, Sandeep Jain wrote: >>> From: Jim Baxter >>> >>> Add hooks to mtdpart to call _get_device and _put_device, >>> this allows the mtd devices to perform internal >>> reference counting if required. >>> >>> Signed-off-by:

Re: [PATCH 3/3] net: ethernet: ti: cpsw: split common driver data and private net data

2016-08-05 Thread Grygorii Strashko
On 08/05/2016 12:14 AM, Ivan Khoronzhuk wrote: > Simplify driver by splitting common driver data and net dev > private data. In case of dual_emac mode 2 networks devices > are created, each of them contains its own private data. > But 2 net devices share a bunch of h/w resources, that shouldn't >

Re: [PATCH] perf probe: fix module name matching

2016-08-05 Thread Masami Hiramatsu
On Fri, 05 Aug 2016 12:41:03 +0300 Konstantin Khlebnikov wrote: > If module is "module" then dso->short_name is "[module]". > Substring comparing is't enough: "raid10" matches to "[raid1]". > This patch also checks terminating zero in module name. Right, just one comment on this patch. > >

[PATCH] metag: Drop show_mem() from mem_init()

2016-08-05 Thread James Hogan
The recent commit 599d0c954f91 ("mm, vmscan: move LRU lists to node"), changed memory management code so that show_mem() is no longer safe to call prior to setup_per_cpu_pageset(), as pgdat->per_cpu_nodestats will still be NULL. This causes an oops on metag due to the call to show_mem() from

Re: [RESEND PATCH v5 1/5] mfd: RK808: Add RK818 support

2016-08-05 Thread Lee Jones
[...] > Lee, you have already applied this series. But I can't find the patches > in your kernel tree. > I would like to read the device ID from the register in the probe function. > Do you want me to base my changes on top of this series or send a new > version? Please rebase and resend the

[PATCH v2] perf probe: fix module name matching

2016-08-05 Thread Konstantin Khlebnikov
If module is "module" then dso->short_name is "[module]". Substring comparing is't enough: "raid10" matches to "[raid1]". This patch also checks terminating zero in module name. Signed-off-by: Konstantin Khlebnikov --- tools/perf/util/probe-event.c |4 +++- 1 file changed, 3 insertions(+),

Re: [PATCH 1/2] mac80211/wlcore: Add ieee80211_hw variable to get_expected_throughput

2016-08-05 Thread Johannes Berg
On Thu, 2016-08-04 at 15:43 +0300, Maxim Altshul wrote: > - The variable is added to allow the driver an easy access > to it's own hw->priv when the op is invoked. > > - Change wlcore op accordingly. > I'm applying this now, with a big BUT: 1) your changelog is crap - I've rewritten it to

Re: [PATCH 1/2] mac80211/wlcore: Add ieee80211_hw variable to get_expected_throughput

2016-08-05 Thread Johannes Berg
On Fri, 2016-08-05 at 14:22 +0200, Johannes Berg wrote: > On Thu, 2016-08-04 at 15:43 +0300, Maxim Altshul wrote: > > - The variable is added to allow the driver an easy access > > to it's own hw->priv when the op is invoked. > > > > - Change wlcore op accordingly. > > > I'm applying this now,

Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-05 Thread Nicholas Piggin
On Fri, 05 Aug 2016 12:17:27 +0200 Arnd Bergmann wrote: > On Friday, August 5, 2016 6:41:08 PM CEST Nicholas Piggin wrote: > > On Thu, 4 Aug 2016 12:06:41 -0500 > > Segher Boessenkool wrote: > > > > > On Thu, Aug 04, 2016 at 06:10:57PM +0200, Arnd Bergmann wrote: > > > > On Thursday,

Re: [PATCH] metag: Drop show_mem() from mem_init()

2016-08-05 Thread Mel Gorman
On Fri, Aug 05, 2016 at 01:17:04PM +0100, James Hogan wrote: > The recent commit 599d0c954f91 ("mm, vmscan: move LRU lists to node"), > changed memory management code so that show_mem() is no longer safe to > call prior to setup_per_cpu_pageset(), as pgdat->per_cpu_nodestats will > still be NULL.

[GIT PULL] sound fixes for 4.8-rc1

2016-08-05 Thread Takashi Iwai
Linus, please pull sound fixes for 4.8-rc1 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-fix-4.8-rc1 The topmost commit is 59ec4b57bcaede46546d54d037a21004b9aa5cef sound fixes for 4.8-rc1

Re: [PATCH v4 0/3] dma-mapping, powerpc, nvme: introduce the DMA_ATTR_NO_WARN attribute

2016-08-05 Thread Mauricio Faria de Oliveira
On 08/04/2016 10:05 PM, Andrew Morton wrote: Of course, the alternative is to just delete the damn warnings from ppc_iommu_map_sg(). Imagine that! Have they ever been of any use to anyone? Sure. I submitted a patch to convert it to dynamic debug (so it would still be available if one wanted

Re: [PATCH v5] sched/deadline: remove useless param from setup_new_dl_entity

2016-08-05 Thread Xunlei Pang
On 2016/08/05 at 18:09, Juri Lelli wrote: > setup_new_dl_entity() takes two parameters, but it only actually uses > one of them, under a different name, to setup a new dl_entity, after: > > 2f9f3fdc928 "sched/deadline: Remove dl_new from struct sched_dl_entity" > > as we currently do > >

[PATCH v2 1/2] befs: remove unused BEFS_BT_MATCH

2016-08-05 Thread Luis de Bethencourt
befs_btree_find(), the only caller of befs_find_key(), only cares about if the return from that function is BEFS_BT_MATCH or not. It never uses the partial match given with BEFS_BT_MATCH. Removing that return and don't set the value that will go unused. Signed-off-by: Luis de Bethencourt --- v2:

[PATCH v2 2/2] befs: fix typo in befs_find_key

2016-08-05 Thread Luis de Bethencourt
Fixing skeep to skip. Signed-off-by: Luis de Bethencourt --- fs/befs/btree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/befs/btree.c b/fs/befs/btree.c index bc7efb0..784688c 100644 --- a/fs/befs/btree.c +++ b/fs/befs/btree.c @@ -343,7 +343,7 @@ befs_find_key(struct

Re: [PATCH 1/1] mfd: Use gpio-ich driver for 8-series and 9-series Intel PCH devices

2016-08-05 Thread Lee Jones
On Wed, 06 Jul 2016, Dan Gora wrote: > > The Intel 8-series and 9-series PCH devices, described by the descriptors > LPC_LPT and LPC_9S although codenamed 'lynxpoint' do not use the same GPIO > register layout which is used by the gpio-lynxpoint driver. They use the > same ICH_V5_GPIO layout as

Potential race condition in drivers/ata/sata_mv.ko

2016-08-05 Thread Pavel Andrianov
Hi! In drivers/ata/sata_mv.ko function mv_set_main_irq_mask is called several times. Twice with a spinlock, twice from init function and once without any protection. The call without protection rises to several handlers from ata_port_operations. The structure with the ata_port_operations is

Re: [RFC][PATCH 0/4] SRAM based reboot reason driver for HiKey

2016-08-05 Thread Vladimir Zapolskiy
Hi John, On 08/04/2016 02:05 AM, John Stultz wrote: Now that Andy's reboot reason core driver has landed, I wanted to resubmit a reworked version of my SRAM based reboot reason driver. This allows the kernel to communicate to the bootloader what mode it should reboot to using some reserved

Re: [PATCH 10/11] soc: ti: knav_qmss_queue: use of_property_read_bool

2016-08-05 Thread Robin Murphy
Hi Julia, On 05/08/16 09:56, Julia Lawall wrote: > Use of_property_read_bool to check for the existence of a property. This caught my eye since Rob told me off for doing the same recently[1]. > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@

Re: [PATCH v6 18/18] remoteproc: core: Retry rproc_fw_config_virtio() if !rproc->table_ptr

2016-08-05 Thread Lee Jones
On Wed, 06 Jul 2016, Peter Griffin wrote: > When rproc drivers are built-in the async firmware load done by rproc_add() > can fail due to the firmware not being present. Subsqeuent calls to > rproc_fw_boot() then fail, even though by this point firmware has been > successfully obtained. > > This

Re: [PATCH 2/6] mfd: as3722: Make it explicitly non-modular

2016-08-05 Thread Lee Jones
On Wed, 06 Jul 2016, Paul Gortmaker wrote: > [Re: [PATCH 2/6] mfd: as3722: Make it explicitly non-modular] On 05/07/2016 > (Tue 11:18) Laxman Dewangan wrote: > > > > > On Tuesday 05 July 2016 06:55 AM, Paul Gortmaker wrote: > > >The Kconfig currently controlling compilation of this code is: >

Re: [PATCH 1/6] mfd: altera-a10sr: make it explicitly non-modular

2016-08-05 Thread Lee Jones
On Mon, 04 Jul 2016, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/mfd/Kconfig:config MFD_ALTERA_A10SR > drivers/mfd/Kconfig:bool "Altera Arria10 DevKit System Resource chip" > > ...meaning that it currently is not being built as a module

Re: [PATCH 4/6] mfd: smsc-ece1099: Make it explicitly non-modular

2016-08-05 Thread Lee Jones
On Mon, 04 Jul 2016, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/mfd/Kconfig:config MFD_SMSC > drivers/mfd/Kconfig: bool "SMSC ECE1099 series chips" > > ...meaning that it currently is not being built as a module by anyone. > > Lets

Re: [PATCH 5/6] mfd: sun6i-prcm: Make it explicitly non-modular

2016-08-05 Thread Lee Jones
On Mon, 04 Jul 2016, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/mfd/Kconfig:config MFD_SUN6I_PRCM > drivers/mfd/Kconfig:bool "Allwinner A31 PRCM controller" > > ...meaning that it currently is not being built as a module by anyone. >

Re: [PATCH 3/6] mfd: intel_msic: Make it explicitly non-modular

2016-08-05 Thread Lee Jones
On Mon, 04 Jul 2016, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/mfd/Kconfig:config MFD_INTEL_MSIC > drivers/mfd/Kconfig:bool "Intel MSIC" > > ...meaning that it currently is not being built as a module by anyone. > > Lets remove the

Re: [PATCH 6/6] mfd: twl-core: Make it explicitly non-modular

2016-08-05 Thread Lee Jones
On Mon, 04 Jul 2016, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/mfd/Kconfig:config TWL4030_CORE > drivers/mfd/Kconfig:bool "TI TWL4030/TWL5030/TWL6030/TPS659x0 Support" > > ...meaning that it currently is not being built as a module by

Re: [PATCH 10/11] soc: ti: knav_qmss_queue: use of_property_read_bool

2016-08-05 Thread Julia Lawall
On Fri, 5 Aug 2016, Robin Murphy wrote: > Hi Julia, > > On 05/08/16 09:56, Julia Lawall wrote: > > Use of_property_read_bool to check for the existence of a property. > > This caught my eye since Rob told me off for doing the same recently[1]. > > > The semantic patch that makes this change is

[PATCH] drm/bridge: analogix_dp: Remove duplicated code v2

2016-08-05 Thread Tomeu Vizoso
Remove code for reading the EDID and DPCD fields and use the helpers instead. Besides the obvious code reduction, other helpers are being added to the core that could be used in this driver and will be good to be able to use them instead of duplicating them. Signed-off-by: Tomeu Vizoso

Re: linux-next: please clean up the livepatching tree

2016-08-05 Thread Jiri Kosina
On Fri, 5 Aug 2016, Takashi Iwai wrote: > > Exactly to avoid Linus' tree being polluted by the extra merge commits. > > > > My workflow is really simple -- development happens in (a lot of) topic > > branches, and each and every time any of the topic branches is updated by > > a new commit,

[PATCH 1/1] generic spidev devices must be registered

2016-08-05 Thread Fabien Lahoudere
Adding spidev in the compatible list, let configure spidev from device tree instead of C source code. Signed-off-by: Fabien Lahoudere --- Documentation/devicetree/bindings/spi/spidev.txt | 16 drivers/spi/spidev.c | 1 + 2 files changed, 17

Re: [PATCH] thermal/powerclamp: Prevent division by zero when counting interval

2016-08-05 Thread Petr Mladek
On Thu 2016-08-04 10:32:00, Jacob Pan wrote: > On Thu, 4 Aug 2016 16:56:46 +0200 > Petr Mladek wrote: > > > I have got a zero division error when disabling the forced > > idle injection from the intel powerclamp. I did > > > > echo 0 >/sys/class/thermal/cooling_device48/cur_state > > > >

[PATCH v2] thermal/powerclamp: Prevent division by zero when counting interval

2016-08-05 Thread Petr Mladek
I have got a zero division error when disabling the forced idle injection from the intel powerclamp. I did echo 0 >/sys/class/thermal/cooling_device48/cur_state and got [ 986.072632] divide error: [#1] PREEMPT SMP [ 986.078989] Modules linked in: [ 986.083618] CPU: 17 PID: 24967 Comm:

Re: [PATCH] thermal: fix race condition when updating cooling device

2016-08-05 Thread Michele DiGiorgio
Hi Eduardo, Rui, On 20/07/16 10:46, Michele Di Giorgio wrote: When multiple thermal zones are bound to the same cooling device, multiple kernel threads may want to update the cooling device state by calling thermal_cdev_update(). Having cdev not protected by a mutex can lead to a race

Re: [PATCH v3 7/7] clk: rockchip: rk3399: Add support frac mode frequencies

2016-08-05 Thread Xing Zheng
Hi Heiko, On 2016年08月05日 16:48, Heiko Stübner wrote: Hi Xing, Am Freitag, 5. August 2016, 10:26:57 schrieb Xing Zheng: On 2016年08月05日 03:19, Heiko Stübner wrote: Am Dienstag, 2. August 2016, 15:22:59 schrieb Xing Zheng: We need to support various display resolutions for external display

RE: [PATCH 1/2] mac80211/wlcore: Add ieee80211_hw variable to get_expected_throughput

2016-08-05 Thread Altshul, Maxim
Hi, 1) Sorry about the change log, I will try to be clearer next time. 2+3) The issue is not that the station is not known, it's that wl_sta->wl was null. wl member is now completely removed from wl_sta (PATCH 2/2) and hw is sent directly from mac80211 to the driver (so it can get hw->priv).

Re: [PATCH v3 7/7] clk: rockchip: rk3399: Add support frac mode frequencies

2016-08-05 Thread Heiko Stübner
Am Freitag, 5. August 2016, 21:23:14 schrieb Xing Zheng: > Hi Heiko, > > On 2016年08月05日 16:48, Heiko Stübner wrote: > > Hi Xing, > > > > Am Freitag, 5. August 2016, 10:26:57 schrieb Xing Zheng: > >> On 2016年08月05日 03:19, Heiko Stübner wrote: > >>> Am Dienstag, 2. August 2016, 15:22:59 schrieb

Re: [PATCH] backlight: adp5520: fix error handling in adp5520_bl_probe()

2016-08-05 Thread Lee Jones
On Sat, 09 Jul 2016, Alexey Khoroshilov wrote: > If adp5520_bl_setup() fails, sysfs group left unremoved. > > By the way, fix overcomplicated assignement of error code. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov > --- >

Re: [PATCH 2/2] powerpc/pseries: Dynamically increase RMA size

2016-08-05 Thread kbuild test robot
Hi Sukadev, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.7 next-20160805] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Sukadev-Bhattiprolu/powerpc-pseries-Use-a-helper

[PATCH 1/1] Add PPD device tree

2016-08-05 Thread Fabien Lahoudere
PPD is a product from GE Healthcare to monitor vital biometric signals. In order to support it upstream, we add its device tree file imx53-ppd.dts. Signed-off-by: Fabien Lahoudere --- arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/imx53-ppd.dts | 1024

Re: [PATCH 1/7] ima: on soft reboot, restore the measurement list

2016-08-05 Thread Mimi Zohar
Hi Petko, Thank you for review! On Fri, 2016-08-05 at 11:44 +0300, Petko Manolov wrote: > On 16-08-04 08:24:29, Mimi Zohar wrote: > > The TPM PCRs are only reset on a hard reboot. In order to validate a > > TPM's quote after a soft reboot (eg. kexec -e), the IMA measurement list > > of the

Re: [PATCH v4 1/4] mfd: Add DT bindings documentation for Samsung Exynos LPASS

2016-08-05 Thread Lee Jones
On Tue, 05 Jul 2016, Sylwester Nawrocki wrote: > This patch adds documentation of the DT bindings for the Samsung > Exynos SoC Low Power Audio Subsystem. > > Signed-off-by: Sylwester Nawrocki > --- > > There were few rather significant additions since v3 and I had to drop tags: > Acked-by:

[PATCH] x86/mm: disable preemption during CR3 read+write

2016-08-05 Thread Sebastian Andrzej Siewior
Usually current->mm (and therefore mm->pgd) stays the same during the lifetime of a task so it does not matter if a task gets preempted during the read and write of the CR3. But then, there is this scenario on x86-UP: TaskA is in do_exit() and exit_mm() sets current->mm = NULL followed by mmput()

Re: [GIT PULL] sound fixes for 4.8-rc1

2016-08-05 Thread Linus Torvalds
On Fri, Aug 5, 2016 at 8:33 AM, Takashi Iwai wrote: > > please pull sound fixes for 4.8-rc1 from: > > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > tags/sound-fix-4.8-rc1 No such tag. Forgot to push it out? Linus

Re: [PATCH 1/1] Add PPD device tree

2016-08-05 Thread Mark Rutland
On Fri, Aug 05, 2016 at 03:31:25PM +0200, Fabien Lahoudere wrote: > +/* > + * Hardware uses CKO2 at 24MHz at several places. Set the parent clock of > + * CKO2 to OSC. > + */ > +#define CKO2_CONFIGURATION \ > + clock-frequency = <2400>; \ > + clocks = < IMX5_CLK_CKO2>; \ > +

[PATCH v6 2/5] dma-buf/sync_file: refactor fence storage in struct sync_file

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. This change cleans up sync_file a bit. We

[PATCH v6 1/5] dma-buf/fence-array: add fence_is_array()

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan Add helper to check if fence is array. v2: Comments from Chris Wilson - remove ternary if from ops comparison - add EXPORT_SYMBOL(fence_array_ops) Cc: Chris Wilson Cc: Christian König Signed-off-by: Gustavo Padovan Reviewed-by: Chris Wilson

Re: [PATCH] PM / hibernate: Image data protection during restoration

2016-08-05 Thread Pavel Machek
On Tue 2016-07-05 14:34:38, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Make it possible to protect all pages holding image data during > hibernate image restoration by marking them read-only (so as to > catch attempts to write to those pages after image data have been > stored in

[PATCH v6 3/5] dma-buf/sync_file: add sync_file_get_fence()

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan Creates a function that given an sync file descriptor returns a fence containing all fences in the sync_file. v2: Comments by Daniel Vetter - Adapt to new version of fence_collection_init() - Hold a reference for the fence we return v3: - Adapt to

Re: [GIT PULL] sound fixes for 4.8-rc1

2016-08-05 Thread Takashi Iwai
On Fri, 05 Aug 2016 15:38:21 +0200, Linus Torvalds wrote: > > On Fri, Aug 5, 2016 at 8:33 AM, Takashi Iwai wrote: > > > > please pull sound fixes for 4.8-rc1 from: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > > tags/sound-fix-4.8-rc1 > > No such tag. Forgot to push

[PATCH v6 4/5] Documentation: add doc for sync_file_get_fence()

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan Document the new function added to sync_file.c v2: Adapt to fence_array v3: Take in Chris Wilson suggestions Signed-off-by: Gustavo Padovan Acked-by: Christian König Reviewed-by: Chris Wilson --- Documentation/sync_file.txt | 14 ++ 1 file changed, 14

[PATCH v6 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-08-05 Thread Gustavo Padovan
From: Gustavo Padovan Signalling doesn't need to be enabled at sync_file creation, it is only required if userspace waiting the fence to signal through poll(). Thus we delay fence_add_callback() until poll is called. It only adds the callback the first time poll() is called. This avoid

Re: [PATCH] drm/bridge: analogix_dp: Remove duplicated code v2

2016-08-05 Thread Sean Paul
On Fri, Aug 5, 2016 at 8:59 AM, Tomeu Vizoso wrote: > Remove code for reading the EDID and DPCD fields and use the helpers > instead. > > Besides the obvious code reduction, other helpers are being added to the > core that could be used in this driver and will be good to be able to > use them

Re: [PATCH v6 11/11] Input: sur40 - use new V4L2 touch input type

2016-08-05 Thread Pavel Machek
On Thu 2016-06-30 18:38:54, Nick Dyer wrote: > Support both V4L2_TCH_FMT_TU08 and V4L2_PIX_FMT_GREY for backwards > compatibility. > > Note: I have not tested these changes (I have no access to the hardware) > so not signing off. Sign off means something else, see docs... and sign patches off

Re: [PATCH 1/1] generic spidev devices must be registered

2016-08-05 Thread Mark Rutland
On Fri, Aug 05, 2016 at 03:11:53PM +0200, Fabien Lahoudere wrote: > Adding spidev in the compatible list, let configure spidev from device tree > instead of C source code. I'm not keen on this. It ties the hardware description to today's use-case, and leaves the DT without information regarding

RE: [RFC V2 PATCH 00/25] Kernel NET policy

2016-08-05 Thread Liang, Kan
> > > 5. Why disable IRQ balance? > > A: Disabling IRQ balance is a common way (recommend way for some > devices) to > >tune network performance. > > I appreciate that network tuning is hard, most people get it wrong, and > nobody agrees on the right answer. > > So rather than

Re: [PATCH v4 0/7] rk3399 support ddr frequency scaling

2016-08-05 Thread Tomeu Vizoso
On 29 July 2016 at 09:56, Lin Huang wrote: > rk3399 platform have dfi controller can monitor ddr load, > and dcf controller to handle ddr register so we can get the > right ddr frequency and make ddr controller happy work(which > will implement in bl31). So we do ddr frequency scaling with >

Re: [PATCH 2/6] mfd: as3722: Make it explicitly non-modular

2016-08-05 Thread Paul Gortmaker
[Re: [PATCH 2/6] mfd: as3722: Make it explicitly non-modular] On 05/08/2016 (Fri 13:56) Lee Jones wrote: > On Wed, 06 Jul 2016, Paul Gortmaker wrote: > > > [Re: [PATCH 2/6] mfd: as3722: Make it explicitly non-modular] On 05/07/2016 > > (Tue 11:18) Laxman Dewangan wrote: > > > > > > > > On

Re: [PATCH] x86/mm: disable preemption during CR3 read+write

2016-08-05 Thread Peter Zijlstra
On Fri, Aug 05, 2016 at 03:37:39PM +0200, Sebastian Andrzej Siewior wrote: > diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h > index 4e5be94e079a..1ee065954e24 100644 > --- a/arch/x86/include/asm/tlbflush.h > +++ b/arch/x86/include/asm/tlbflush.h > @@ -135,7 +135,14

RE: [RFC V2 PATCH 17/25] net/netpolicy: introduce netpolicy_pick_queue

2016-08-05 Thread Liang, Kan
> > On Thu, Aug 4, 2016 at 12:36 PM, wrote: > > From: Kan Liang > > > > To achieve better network performance, the key step is to distribute > > the packets to dedicated queues according to policy and system run > > time status. > > > > This patch provides an interface which can return the

Re: [PATCH v5] sched/deadline: remove useless param from setup_new_dl_entity

2016-08-05 Thread Steven Rostedt
On Fri, 5 Aug 2016 11:09:59 +0100 Juri Lelli wrote: > @@ -1720,19 +1720,28 @@ static void switched_from_dl(struct rq *rq, struct > task_struct *p) > */ > static void switched_to_dl(struct rq *rq, struct task_struct *p) > { > - if (dl_time_before(p->dl.deadline, rq_clock(rq))) > -

Re: [Letux-kernel] [PATCH v2] musb: omap2430: do not assume balanced enable()/disable()

2016-08-05 Thread Tony Lindgren
* Andreas Kemnade [160804 09:44]: > Nothing happens here, so the previous state of the phy remains. > It would be disabled by the generic phy layer in drivers/phy/phy-core.c > > > gadget driver is loaded. > > musb_start() is called > > omap2430_musb_enable() is called > > calls

[PATCH] mm: optimize find_zone_movable_pfns_for_nodes to avoid unnecessary loop.

2016-08-05 Thread zhongjiang
From: zhong jiang when required_kernelcore decrease to zero, we should exit the loop in time. because It will waste time to scan the remainder node. Signed-off-by: zhong jiang --- mm/page_alloc.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mm/page_alloc.c

Re: [RFC 0/4] tools lib traceevent: Install fixes

2016-08-05 Thread Steven Rostedt
On Tue, 2 Aug 2016 16:01:44 +0200 Jiri Olsa wrote: > > BTW, before we start making this ready for their own libraries, I'd > > like to make some changes with the naming convention. Mainly with > > event_format and format_field. > > > > Perhaps we should change them to pevent_event and

Re: sysfs topology for arm64 cluster_id

2016-08-05 Thread Christopher Covington
Hi Stuart, On 07/01/2016 11:54 AM, Stuart Yoder wrote: > Re-opening a thread from back in early 2015... > >> -Original Message- >> From: Jon Masters >> Date: Wed, Jan 14, 2015 at 11:18 AM >> Subject: Re: sysfs topology for arm64 cluster_id >> To: Mark Rutland >> Cc:

Re: [PATCH v2] mm/slab: Improve performance of gathering slabinfo stats

2016-08-05 Thread Christoph Lameter
On Thu, 4 Aug 2016, Aruna Ramakrishna wrote: > On large systems, when some slab caches grow to millions of objects (and > many gigabytes), running 'cat /proc/slabinfo' can take up to 1-2 seconds. > During this time, interrupts are disabled while walking the slab lists > (slabs_full,

Re: [PATCH 1/1] generic spidev devices must be registered

2016-08-05 Thread Mark Brown
On Fri, Aug 05, 2016 at 02:43:43PM +0100, Mark Rutland wrote: > On Fri, Aug 05, 2016 at 03:11:53PM +0200, Fabien Lahoudere wrote: > > Adding spidev in the compatible list, let configure spidev from device tree > > instead of C source code. > I'm not keen on this. > It ties the hardware

Re: [PATCH v2] mm/slab: Improve performance of gathering slabinfo stats

2016-08-05 Thread Christoph Lameter
On Fri, 5 Aug 2016, Joonsoo Kim wrote: > If above my comments are fixed, all counting would be done with > holding a lock. So, atomic definition isn't needed for the SLAB. Ditto for slub. struct kmem_cache_node is alrady defined in mm/slab.h. Thus it is a common definition already and can be

Re: [BUG] perf: memory leak in perf top

2016-08-05 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 05, 2016 at 06:58:12PM +0800, Wangnan (F) escreveu: > perf top comsumes too much memory than it need. > > Using following commands: > > # yes '' > /dev/null > # perf top -e raw_syscalls:sys_enter > > System will quickly become unresponsive because of out of memory. > > Using GDB

Re: [RFC][PATCH 1/3] tracing: Added hardware latency tracer

2016-08-05 Thread Sebastian Andrzej Siewior
* Steven Rostedt | 2016-08-04 10:57:09 [-0400]: >diff --git a/kernel/trace/trace_hwlat.c b/kernel/trace/trace_hwlat.c >new file mode 100644 >index ..08dfabe4e862 >--- /dev/null >+++ b/kernel/trace/trace_hwlat.c … >+/* Macros to encapsulate the time capturing infrastructure */

Re: [PATCH v5] sched/deadline: remove useless param from setup_new_dl_entity

2016-08-05 Thread Juri Lelli
On 05/08/16 09:56, Steven Rostedt wrote: > On Fri, 5 Aug 2016 11:09:59 +0100 > Juri Lelli wrote: > > > @@ -1720,19 +1720,28 @@ static void switched_from_dl(struct rq *rq, struct > > task_struct *p) > > */ > > static void switched_to_dl(struct rq *rq, struct task_struct *p) > > { > > - if

Re: perf test BPF failing on f24: fix

2016-08-05 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 05, 2016 at 06:45:50PM +0900, Masami Hiramatsu escreveu: > On Thu, 4 Aug 2016 18:47:24 -0300 > Arnaldo Carvalho de Melo wrote: > > > Em Thu, Aug 04, 2016 at 04:36:56PM -0300, Arnaldo Carvalho de Melo escreveu: > > > So: > > > > > > int err = debuginfo__get_text_offset(dbg, ); > > >

Re: [PATCH 3/3] net: ethernet: ti: cpsw: split common driver data and private net data

2016-08-05 Thread Ivan Khoronzhuk
On 05.08.16 15:14, Grygorii Strashko wrote: On 08/05/2016 12:14 AM, Ivan Khoronzhuk wrote: Simplify driver by splitting common driver data and net dev private data. In case of dual_emac mode 2 networks devices are created, each of them contains its own private data. But 2 net devices share a

Re: [PATCH] x86/power/64: Do not refer to __PAGE_OFFSET from assembly code

2016-08-05 Thread Rafael J. Wysocki
On Friday, August 05, 2016 12:37:13 PM Pavel Machek wrote: > On Wed 2016-08-03 01:19:26, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > When CONFIG_RANDOMIZE_MEMORY is set on x86-64, __PAGE_OFFSET becomes > > a variable and using it as a symbol in the image memory restoration > >

Re: [PATCH] Added perf functionality to mmdc driver

2016-08-05 Thread Zhi Li
On Fri, Aug 5, 2016 at 9:35 AM, Zhengyu Shen wrote: > $ perf stat -e > mmdc/busy-cycles/,mmdc/read-accesses/,mmdc/read-bytes/,mmdc/total-cycles/,mmdc/write-accesses/,mmdc/write-bytes/ > dd if=/dev/zero of=/dev/null bs=1M count=5000 > Performance counter stats for 'dd if=/dev/zero of=/dev/null

Re: [PATCH] x86/mm: disable preemption during CR3 read+write

2016-08-05 Thread Rik van Riel
On Fri, 2016-08-05 at 15:37 +0200, Sebastian Andrzej Siewior wrote: >  > +++ b/arch/x86/include/asm/tlbflush.h > @@ -135,7 +135,14 @@ static inline void > cr4_set_bits_and_update_boot(unsigned long mask) >   >  static inline void __native_flush_tlb(void) >  { > + /* > +  * if current->mm

Re: [PATCH] Added perf functionality to mmdc driver

2016-08-05 Thread Peter Zijlstra
On Fri, Aug 05, 2016 at 09:35:25AM -0500, Zhengyu Shen wrote: > $ perf stat -e > mmdc/busy-cycles/,mmdc/read-accesses/,mmdc/read-bytes/,mmdc/total-cycles/,mmdc/write-accesses/,mmdc/write-bytes/ > dd if=/dev/zero of=/dev/null bs=1M count=5000 > Performance counter stats for 'dd if=/dev/zero

Re: [RFC][PATCH 4/3] tracing: Add NMI tracing in hwlat detector

2016-08-05 Thread Sebastian Andrzej Siewior
* Steven Rostedt | 2016-08-04 13:16:45 [-0400]: >diff --git a/include/linux/ftrace_irq.h b/include/linux/ftrace_irq.h >index dca7bf8cffe2..4ec2c9b205f2 100644 >--- a/include/linux/ftrace_irq.h >+++ b/include/linux/ftrace_irq.h >@@ -3,11 +3,34 @@ … >+static inline void ftrace_nmi_enter(void) >+{

[PATCH 1/2] gpio: add bindings for Technologic I2C-FPGA gpio controller

2016-08-05 Thread Lucile Quirion
Device tree binding documentation for Technologic's I2C-FPGA GPIO controller. Signed-off-by: Lucile Quirion --- .../devicetree/bindings/gpio/gpio-ts4900.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644

[PATCH 2/2] gpio: add Technologic I2C-FPGA gpio support

2016-08-05 Thread Lucile Quirion
This driver is generic and aims to support all Technologic Systems's boards embedding FPGA GPIOs with an I2C interface. This driver supports TS-4900, TS-7970, TS-7990 and TS-4100 series. Signed-off-by: Lucile Quirion --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 +

Re: [RFC V2 PATCH 17/25] net/netpolicy: introduce netpolicy_pick_queue

2016-08-05 Thread Tom Herbert
On Thu, Aug 4, 2016 at 5:17 PM, Daniel Borkmann wrote: > On 08/05/2016 12:54 AM, Andi Kleen wrote: >>> >>> +1, I tried to bring this up here [1] in the last spin. I think only very >>> few changes would be needed, f.e. on eBPF side to add a queue setting >>> helper function which is probably

[PATCH 0/2] Technologic I2C-FPGA gpio support

2016-08-05 Thread Lucile Quirion
This driver aims to support all Technologic Systems's boards embedding FPGA GPIOs with an I2C interface. Lucile Quirion (2): gpio: add bindings for Technologic I2C-FPGA gpio controller gpio: add Technologic I2C-FPGA gpio support .../devicetree/bindings/gpio/gpio-ts4900.txt | 29 +++

Re: [RFC 0/4] tools lib traceevent: Install fixes

2016-08-05 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 05, 2016 at 10:13:52AM -0400, Steven Rostedt escreveu: > On Tue, 2 Aug 2016 16:01:44 +0200 > Jiri Olsa wrote: > > > BTW, before we start making this ready for their own libraries, I'd > > > like to make some changes with the naming convention. Mainly with > > > event_format and

Re: [RFC][PATCH 1/3] tracing: Added hardware latency tracer

2016-08-05 Thread Steven Rostedt
On Fri, 5 Aug 2016 16:25:21 +0200 Sebastian Andrzej Siewior wrote: > * Steven Rostedt | 2016-08-04 10:57:09 [-0400]: > > >diff --git a/kernel/trace/trace_hwlat.c b/kernel/trace/trace_hwlat.c > >new file mode 100644 > >index ..08dfabe4e862 > >--- /dev/null > >+++

Re: [RFC V2 PATCH 17/25] net/netpolicy: introduce netpolicy_pick_queue

2016-08-05 Thread Tom Herbert
On Fri, Aug 5, 2016 at 6:55 AM, Liang, Kan wrote: > > >> >> On Thu, Aug 4, 2016 at 12:36 PM, wrote: >> > From: Kan Liang >> > >> > To achieve better network performance, the key step is to distribute >> > the packets to dedicated queues according to policy and system run >> > time status. >> >

<    2   3   4   5   6   7   8   9   >