[PATCH 08/12] mmc: sdhi: Make runtime PM callbacks available for CONFIG_PM

2014-08-25 Thread Ulf Hansson
To be able to simplify system PM, let's re-use the runtime PM callbacks by converting to the SET_PM_RUNTIME_PM_OPS macro. Signed-off-by: Ulf Hansson --- drivers/mmc/host/sh_mobile_sdhi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sh_mobile_sdhi.c

[PATCH 01/12] mmc: tmio: Keep host active while SDIO IRQ is enabled

2014-08-25 Thread Ulf Hansson
The host must be kept active to be able to serve SDIO IRQs, thus let's prevent it from going inactive while SDIO IRQ is enabled. Signed-off-by: Ulf Hansson --- drivers/mmc/host/tmio_mmc.h | 1 + drivers/mmc/host/tmio_mmc_pio.c | 19 +++ 2 files changed, 16 insertions(+), 4

[PATCH 12/12] mmc: tmio: Remove library functions for system PM

2014-08-25 Thread Ulf Hansson
These library functions aren't used and nor needed, let's remove them. Signed-off-by: Ulf Hansson --- drivers/mmc/host/tmio_mmc.h | 5 - drivers/mmc/host/tmio_mmc_pio.c | 23 --- 2 files changed, 28 deletions(-) diff --git a/drivers/mmc/host/tmio_mmc.h

Re: [PATCH v4 0/8] asm-generic/io.h overhaul

2014-08-25 Thread Thierry Reding
t these patches can go > > into 3.18. > > > > Arnd, I'm opportunistically sending this To: you in the hopes that you > > can take it into your asm-generic tree which seems like the best fit for > > this. > > Do you have a git tree for that? > Would be nice for testing UML, it depends also on generic io. Yes, it's all here: https://github.com/thierryreding/linux.git staging/asm-generic-io That branch is based on today's linux-next (next-20140825). Thierry pgpg4G_8dv7JF.pgp Description: PGP signature

[PATCH 09/12] mmc: tmio_mmc: Enable runtime PM support

2014-08-25 Thread Ulf Hansson
To take advantage of the clock gating support, use the runtime PM callbacks provided by the tmio core. Additionally, we make use of the SET_PM_RUNTIME_PM_OPS, which is a preparation needed to simplify system PM. Signed-off-by: Ulf Hansson --- drivers/mmc/host/tmio_mmc.c | 3 +++ 1 file

[PATCH 06/12] mmc: tmio: Mask all IRQs when inactive

2014-08-25 Thread Ulf Hansson
To make sure we don't receive any spurious IRQs while we are inactive, mask the IRQs from within the ->runtime_suspend() callback. Signed-off-by: Ulf Hansson --- drivers/mmc/host/tmio_mmc_pio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/tmio_mmc_pio.c

[PATCH 00/12] mmc: tmio: Fixup PM support

2014-08-25 Thread Ulf Hansson
This patchset fixup the PM support for tmio and the tmio hosts. Some re-structuring of the code was also necessary to accomplish the above. A few of these patches has been posted earlier, but at that time I couldn't get help in testing them on hardware. Let's give this a second try now.

[PATCH 1/2] usb: chipidea: msm: Use USB PHY API to control PHY state

2014-08-25 Thread Ivan T. Ivanov
PHY drivers keep track of the current state of the hardware, so don't change PHY settings under it. Signed-off-by: Ivan T. Ivanov Acked-by: Felipe Balbi --- drivers/usb/chipidea/ci_hdrc_msm.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git

Re: [PATCH] net: stmmac: add dcrs parameter

2014-08-25 Thread Giuseppe CAVALLARO
Hello On 8/25/2014 1:50 PM, Ley Foon Tan wrote: This patch add the option to enable DCRS bit in GMAC control register. Default is disabled if snps,dcrs is not defined. For MII, Carrier Sense (CRS) must be asserted during transmission whereas in RGMII, CRS is not. RGMII does not provide a way

Re: [PATCH v3 1/4] hwmon: (lm90) split set temp as common codes

2014-08-25 Thread Mikko Perttunen
FWIW, please fix the authorship information for next version. Cheers, Mikko On 25/08/14 09:29, Wei Ni wrote: From: lightning314 Split set temp codes as common functions, so we can use it directly when implement linux thermal framework. And handle error return value for the

Re: [Xen-devel] [PATCH RFC 2/3] x86: Enable PAT to use cache mode translation tables

2014-08-25 Thread Juergen Gross
On 08/22/2014 11:32 AM, Jan Beulich wrote: On 19.08.14 at 15:25, wrote: @@ -118,8 +167,14 @@ void pat_init(void) PAT(4, WB) | PAT(5, WC) | PAT(6, UC_MINUS) | PAT(7, UC); /* Boot CPU check */ - if (!boot_pat_state) + if (!boot_pat_state) {

[PATCH v2 1/2] KVM: EVENTFD: remove inclusion of irq.h

2014-08-25 Thread Eric Auger
No more needed. Also irq.h is not used on ARM. Signed-off-by: Eric Auger --- virt/kvm/eventfd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index 3c5981c..0c712a7 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c @@ -36,7 +36,6 @@ #include

[PATCH v2 0/2] irqfd support for ARM

2014-08-25 Thread Eric Auger
This patch serie enables irqfd on ARM. irqfd framework enables to inject a virtual IRQ into a guest upon an eventfd trigger. User-side uses KVM_IRQFD VM ioctl to provide KVM with a kvm_irqfd struct that associates a VM, an eventfd, an IRQ number (aka. the gsi). When an actor signals the eventfd

[PATCH v2 2/2] KVM: ARM: add irqfd support

2014-08-25 Thread Eric Auger
This patch enables irqfd on ARM. irqfd framework enables to inject a virtual IRQ into a guest upon an eventfd trigger. User-side uses KVM_IRQFD VM ioctl to provide KVM with a kvm_irqfd struct that associates a VM, an eventfd, an IRQ number (aka. the gsi). When an actor signals the eventfd

Re: [PATCH] 8250: serial device file is out of order

2014-08-25 Thread Peter Hurley
Hi Scott, On 08/25/2014 07:38 AM, Scott Yuan wrote: > From ebb85a61456bf25f87aeb8a31c92c74540bdf306 Mon Sep 17 00:00:00 2001 > From: Scott Yuan > Date: Sun, 24 Aug 2014 13:46:56 +0800 > Subject: [PATCH] 8250: serial device file is out of order > > On x86 architecture, the configuration of

[PATCH/RFC] hash: Let gcc decide how to multiply

2014-08-25 Thread Rasmus Villemoes
A 9+ years old comment in hash_64 says that gcc can't optimize multiplication by GOLDEN_RATIO_PRIME_64. Well, compilers get smarter and CPUs get faster all the time, so it is perhaps about time to revisit that assumption. A stupid micro-benchmark [3] on my x86_64 machine shows that letting gcc

Re: [PATCH 4/7] MIPS: BCM63xx: delete double assignment

2014-08-25 Thread Ralf Baechle
On Sat, Aug 23, 2014 at 08:33:25PM +0200, Julia Lawall wrote: > Delete successive assignments to the same location. In each case, the > duplicated assignment is modified to be in line with other nearby code. > > A simplified version of the semantic match that finds this problem is as > follows:

Re: [PATCH v5 3/3] pwm: i.MX: Avoid sample FIFO overflow for i.MX PWM version2

2014-08-25 Thread Shawn Guo
On Wed, May 28, 2014 at 06:50:13PM +0800, Liu Ying wrote: > The i.MX PWM version2 is embedded in several i.MX SoCs, > such as i.MX27, i.MX51 and i.MX6SL. There is a 4-word(16bit) > sample FIFO in this IP. Each FIFO slot determines the duty > period of a PWM waveform in one full cycle. The IP

Re: [PATCH] PWM: atmel: fix incorrect CDTY value after enabling or disabling

2014-08-25 Thread Alexandre Belloni
Hi, On 25/08/2014 at 12:15:23 +0200, Thierry Reding wrote : > On Fri, Mar 14, 2014 at 08:05:31PM +0100, Alexandre Belloni wrote: > > pwm-leds calls .config() and .disable() in a row. This exhibits that it may > > happen that the channel gets disabled before CDTY has been updated with > > CUPD. >

[PATCH V2] efi_high_alloc: use EFI_ALLOCATE_MAX_ADDRESS

2014-08-25 Thread harald
From: Harald Hoyer On my Lenovo T420s with 4GB memory, efi_high_alloc() was checking the following memory regions: 0x0010 - 0x2000 0x2020 - 0x4000 0x4020 - 0xd2c02000 0xd6e9f000 - 0x00011e60 and decided to

Re: [PATCH v2 1/1] ARM: exynos_defconfig: Enable options for display panel support

2014-08-25 Thread Javier Martinez Canillas
Hello Andreas, On 08/25/2014 01:49 PM, Andreas Färber wrote: >> >> Could you please also do corresponding update to multi_v7_defconfig? > > As was mentioned in v1 (but now below), some of these options depend on Sorry for missing the mention about the dependencies on v2... > patches yet to be

Re: [PATCH v4 0/8] asm-generic/io.h overhaul

2014-08-25 Thread Richard Weinberger
On Wed, Aug 13, 2014 at 12:28 PM, Thierry Reding wrote: > From: Thierry Reding > > Hi, > > Here is the fourth version of a series that started out as an attempt to > provide string versions of the read*() and write*() accessors to more > architectures so that drivers can use them portably. The

Re: [PATCH v2 1/1] ARM: exynos_defconfig: Enable options for display panel support

2014-08-25 Thread Andreas Färber
Hi, Am 25.08.2014 13:43, schrieb Bartlomiej Zolnierkiewicz: > On Monday, August 25, 2014 10:45:36 AM Javier Martinez Canillas wrote: >> Many Exynos devices have a display panel. Most of them just have >> a simple panel while others have more complex configurations that >> requires an embedded

[PATCH] net: stmmac: add dcrs parameter

2014-08-25 Thread Ley Foon Tan
This patch add the option to enable DCRS bit in GMAC control register. Default is disabled if snps,dcrs is not defined. For MII, Carrier Sense (CRS) must be asserted during transmission whereas in RGMII, CRS is not. RGMII does not provide a way to signal loss of carrier during a transmission.

Re: [PATCHv4 2/4] thermal: exynos: Add support for many TRIMINFO_CTRL registers

2014-08-25 Thread Chanwoo Choi
On 08/25/2014 08:19 PM, Bartlomiej Zolnierkiewicz wrote: > On Monday, August 25, 2014 07:37:25 PM Chanwoo Choi wrote: >> Hi Bartlomiej, >> >> On 08/25/2014 07:15 PM, Bartlomiej Zolnierkiewicz wrote: >>> >>> Hi, >>> >>> On Monday, August 25, 2014 04:30:23 PM Chanwoo Choi wrote: This patch

RE: [PATCH] staging:iio: moved platform_data into include/linux/iio

2014-08-25 Thread Sharma, Sanjeev
-Original Message- From: Lars-Peter Clausen [mailto:l...@metafoo.de] Sent: Monday, August 25, 2014 1:39 PM To: Sharma, Sanjeev; sanjeev sharma Cc: ji...@kernel.org; gregkh; linux-...@vger.kernel.org; devel; linux-kernel Subject: Re: [PATCH] staging:iio: moved platform_data into

Re: [PATCH v2 1/1] ARM: exynos_defconfig: Enable options for display panel support

2014-08-25 Thread Javier Martinez Canillas
Hello Bartlomiej, On 08/25/2014 01:43 PM, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Monday, August 25, 2014 10:45:36 AM Javier Martinez Canillas wrote: >> Many Exynos devices have a display panel. Most of them just have >> a simple panel while others have more complex configurations that

Re: [PATCH v2 1/1] ARM: exynos_defconfig: Enable options for display panel support

2014-08-25 Thread Bartlomiej Zolnierkiewicz
Hi, On Monday, August 25, 2014 10:45:36 AM Javier Martinez Canillas wrote: > Many Exynos devices have a display panel. Most of them just have > a simple panel while others have more complex configurations that > requires an embedded DisplayPort (eDP) to LVDS bridges. > > This patch enables the

Skrzynka pocztowa zostala tymczasowo zawieszona!!!

2014-08-25 Thread System Admin
-- Szanowny konto uzytkownika e-mail, Niedawno wykryto nietypowe dzialania z konta e-mail, wiec skrzynka pocztowa zostala czasowo zawieszona przez administratora systemu, nalezy odzyskac swoje konto, klikajac na ponizszy link lub skopiuj do przegladarki:

[PATCH] 8250: serial device file is out of order

2014-08-25 Thread Scott Yuan
From ebb85a61456bf25f87aeb8a31c92c74540bdf306 Mon Sep 17 00:00:00 2001 From: Scott Yuan Date: Sun, 24 Aug 2014 13:46:56 +0800 Subject: [PATCH] 8250: serial device file is out of order On x86 architecture, the configuration of serial device maybe get from ACPI DSDT, but the order of DSDT is not

Re: [PATCH 6/7] video: fbdev: sis: delete double assignment

2014-08-25 Thread Geert Uytterhoeven
Hi Julia, On Sun, Aug 24, 2014 at 8:40 PM, Julia Lawall wrote: >> On Sat, Aug 23, 2014 at 8:33 PM, Julia Lawall wrote: >> > --- >> > The patches in this series do not depend on each other. >> > >> > This changes the semantics of the code and is not tested. >> >> Hence I think you should change

Re: [PATCH] cgroup: Introduce cgroup_detach_task().

2014-08-25 Thread Dongsheng Yang
Sorry for the noise, :(. This patch is not a correct version. Please ignore it and I have sent a v2 for it. Thanx On 08/25/2014 07:28 PM, Dongsheng Yang wrote: Currently, the only method to detach a task from a cgroup is moving it to others. It looks not natrual to me. Inspired by

[PATCH] drivers: staging: rtl8821ae: Fix spaces required around that '?' errors

2014-08-25 Thread Greg Donald
Fix checkpatch.pl spaces required around that '?' errors Signed-off-by: Greg Donald --- .../staging/rtl8821ae/btcoexist/HalBtc8812a1Ant.c | 33 +++--- .../staging/rtl8821ae/btcoexist/HalBtc8812a1Ant.h | 2 +- .../staging/rtl8821ae/btcoexist/habtc8723a1ant.c | 12 ++---

[PATCH V2] cgroup: Introduce cgroup_detach_task().

2014-08-25 Thread Dongsheng Yang
Currently, the only method to detach a task from a cgroup is moving it to others. It looks not natrual to me. Inspired by cgroup_subtree_control_write(), this patch introduce allow user to at-detach a process to/from a cgroup by echo "+/-pid" to cgroup.procs. In addition, we keep the old method

Re: scsi logging future directions, was Re: [RFC PATCH -logging 00/10] scsi/constants: Output continuous error messages on trace

2014-08-25 Thread Hannes Reinecke
On 08/24/2014 10:44 PM, Christoph Hellwig wrote: On Fri, Aug 22, 2014 at 12:39:59AM +, Elliott, Robert (Server Storage) wrote: If you trigger hundreds of errors (e.g., hot remove a device during heavy IO), then all the prints to the linux serial console bog down the system, causing

[PATCH for -next] stmmac: simple cleanups

2014-08-25 Thread Pavel Machek
This adds simple cleanups for stmmac, removing test we know is always true, fixing whitespace, and moving code out of if(). Signed-off-by: Pavel Machek --- Now against -net-next. diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c

[PATCH] cgroup: Introduce cgroup_detach_task().

2014-08-25 Thread Dongsheng Yang
Currently, the only method to detach a task from a cgroup is moving it to others. It looks not natrual to me. Inspired by cgroup_subtree_control_write(), this patch introduce allow user to at-detach a process to/from a cgroup by echo "+/-pid" to cgroup.procs. In addition, we keep the old method

[PATCH] cgroup: Enable controllers for default hierarchy by default.

2014-08-25 Thread Dongsheng Yang
When we create a cgroup in unified hierarchy, we have to enable controllers in cgrp_dfl_root.subtree_control manually. From my practice, I did not find the benefit we disable controllers in cgrp_dfl_root by default. As I am a newbie to cgroup, please correct me if I am wrong. Thanx.

[PATCH] cgroup: fix a typo in comment.

2014-08-25 Thread Dongsheng Yang
There is no function named cgroup_enable_task_cg_links(). Instead, the correct function name in this comment should be cgroup_enabled_task_cg_lists(). Signed-off-by: Dongsheng Yang --- kernel/cgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cgroup.c

[PATCH 1/1] x86:kvm: fix one typo in comment

2014-08-25 Thread Tiejun Chen
s/drity/dirty Signed-off-by: Tiejun Chen --- 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 9314678..09b9f05 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -1180,7 +1180,7 @@ static void

Re: [PATCHv4 2/4] thermal: exynos: Add support for many TRIMINFO_CTRL registers

2014-08-25 Thread Bartlomiej Zolnierkiewicz
On Monday, August 25, 2014 01:19:04 PM Bartlomiej Zolnierkiewicz wrote: > On Monday, August 25, 2014 07:37:25 PM Chanwoo Choi wrote: > > Hi Bartlomiej, > > > > On 08/25/2014 07:15 PM, Bartlomiej Zolnierkiewicz wrote: > > > > > > Hi, > > > > > > On Monday, August 25, 2014 04:30:23 PM Chanwoo

Re: [PATCH v4 0/8] asm-generic/io.h overhaul

2014-08-25 Thread Thierry Reding
On Wed, Aug 13, 2014 at 12:28:50PM +0200, Thierry Reding wrote: > From: Thierry Reding > > Hi, > > Here is the fourth version of a series that started out as an attempt to > provide string versions of the read*() and write*() accessors to more > architectures so that drivers can use them

[PATCH] list: include linux/kernel.h

2014-08-25 Thread Masahiro Yamada
linux/list.h uses container_of, therefore it depends on linux/kernel.h. Signed-off-by: Masahiro Yamada --- I am sending this patch to LKML because I could not find the subsystem it should belong to. I hope I am not doing wrong. include/linux/list.h | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH V3 3/3] ARM: clk-imx6q: Add missing lvds and anaclk clock to the clock tree

2014-08-25 Thread Shawn Guo
On Mon, Aug 25, 2014 at 03:40:20PM +0800, Shengjiu Wang wrote: > On Mon, Aug 18, 2014 at 02:06:07PM +0800, Shawn Guo wrote: > > On Mon, Aug 11, 2014 at 11:09:36AM +0800, Shengjiu Wang wrote: > > > On Sat, Aug 09, 2014 at 09:58:42PM +0800, Shawn Guo wrote: > > > > On Fri, Aug 08, 2014 at 03:02:49PM

Re: [PATCHv4 2/4] thermal: exynos: Add support for many TRIMINFO_CTRL registers

2014-08-25 Thread Bartlomiej Zolnierkiewicz
On Monday, August 25, 2014 07:37:25 PM Chanwoo Choi wrote: > Hi Bartlomiej, > > On 08/25/2014 07:15 PM, Bartlomiej Zolnierkiewicz wrote: > > > > Hi, > > > > On Monday, August 25, 2014 04:30:23 PM Chanwoo Choi wrote: > >> This patch support many TRIMINFO_CTRL registers if specific Exynos SoC >

Re: kernel boot fail with efi earlyprintk (bisected)

2014-08-25 Thread Matt Fleming
On Mon, 25 Aug, at 05:06:19PM, Dave Young wrote: > > Problem is I do not understand the implementation detail yet. > > I did below changes: > > Original values: > #define NR_FIX_BTMAPS 64 > #define FIX_BTMAPS_SLOTS4 > > -> new values tested: > #define NR_FIX_BTMAPS

Re: [PATCH] efi_high_alloc: use EFI_ALLOCATE_MAX_ADDRESS

2014-08-25 Thread Harald Hoyer
On 25.08.2014 12:34, Matt Fleming wrote: > (Adding linux-efi to Cc) > > On Fri, 22 Aug, at 03:48:23PM, har...@redhat.com wrote: >> From: Harald Hoyer >> >> On my Lenovo T420s with 4GB memory, efi_high_alloc() was checking the >> following memory regions: >> >> 0x0010 -

Re: [PATCH v3 4/4] ARM: tegra: dalmore: add thermal zones for nct1008

2014-08-25 Thread Eduardo Valentin
On Mon, Aug 25, 2014 at 02:29:48PM +0800, Wei Ni wrote: > From: lightning314 > > Add dt node to describe the thermal zone for the nct1008. > > Signed-off-by: Wei Ni > --- > arch/arm/boot/dts/tegra114-dalmore.dts | 20 +++- > 1 file changed, 19 insertions(+), 1 deletion(-) > >

Re: [PATCH v5 3/4] zram: zram memory size limitation

2014-08-25 Thread Sergey Senozhatsky
On (08/25/14 09:05), Minchan Kim wrote: > Since zram has no control feature to limit memory usage, > it makes hard to manage system memrory. > > This patch adds new knob "mem_limit" via sysfs to set up the > a limit so that zram could fail allocation once it reaches > the limit. > > In addition,

Re: [PATCH v3 4/4] ARM: tegra: dalmore: add thermal zones for nct1008

2014-08-25 Thread Eduardo Valentin
On Mon, Aug 25, 2014 at 02:29:48PM +0800, Wei Ni wrote: > From: lightning314 > > Add dt node to describe the thermal zone for the nct1008. > > Signed-off-by: Wei Ni > --- > arch/arm/boot/dts/tegra114-dalmore.dts | 20 +++- > 1 file changed, 19 insertions(+), 1 deletion(-) > >

Re: [PATCH v3 3/4] thermal: add more description for thermal-zones

2014-08-25 Thread Eduardo Valentin
Hello Wei Ni, On Mon, Aug 25, 2014 at 02:29:47PM +0800, Wei Ni wrote: > Add more description for the "polling-delay" property. > Set "trips" and "cooling maps" as optional property, because > if missing these two sub-nodes, the thermal zone device still > work properly. > > Signed-off-by: Wei Ni

Re: [RFC 00/10] perf pollfd series

2014-08-25 Thread Jiri Olsa
On Fri, Aug 22, 2014 at 05:59:40PM -0300, Arnaldo Carvalho de Melo wrote: > Hi, > > This is an alternative series to the one Jiri Olsa posted to use the > fixes he made to the kernel side to allow tooling to notice that a thread had > exited by looking at the pollfd.revents looking for

Re: [PATCH v3] zram: add num_discards for discarded pages stat

2014-08-25 Thread Sergey Senozhatsky
Hello, On (08/25/14 09:36), Minchan Kim wrote: > Hello Chao, > > On Fri, Aug 22, 2014 at 04:21:01PM +0800, Chao Yu wrote: > > Since we have supported handling discard request in this commit > > f4659d8e620d08bd1a84a8aec5d2f5294a242764 (zram: support REQ_DISCARD), zram > > got > > one more

Re: Loading initrd above 4G causes freeze on boot

2014-08-25 Thread Matt Fleming
On Sun, 24 Aug, at 10:19:04PM, Mantas Mikulėnas wrote: > > Finally got around to testing it, and yes, your patch fixes the initrd > boot for me. Could you found out where the initrd gets loaded with this patch? It'll be in the dmesg. -- Matt Fleming, Intel Open Source Technology Center -- To

[RFC PATCH 3/5] lib/bug: Use RCU list ops for module_bug_list

2014-08-25 Thread Masami Hiramatsu
Actually since module_bug_list should be used in BUG context, we may not need this. But for someone who want to use this from normal context, this makes module_bug_list an RCU list. Signed-off-by: Masami Hiramatsu --- kernel/module.c |5 +++-- lib/bug.c | 20 ++-- 2

[RFC PATCH 5/5] module: Remove stop_machine from module unloading

2014-08-25 Thread Masami Hiramatsu
Remove stop_machine from module unloading by replacing module_ref with atomic_t. Note that this can cause a performance regression on big-SMP machine by direct memory access. For those machines, you can lockdwon all modules. Since the lockdown skips reference counting, it'll be more scalable than

[RFC PATCH 4/5] module: Lock up a module when loading with a LOCLUP flag

2014-08-25 Thread Masami Hiramatsu
Lock-up a module in kernel so that it is not removed unless forcibly unload. This is done by loading a module with MODULE_INIT_LOCKUP_MODULE flag (via finit_module). This speeds up try_module_get by skipping refcount inc/dec for the locked modules. Note that this flag requires to update libkmod

[RFC PATCH 0/5] module: Remove stop_machine from module unloading

2014-08-25 Thread Masami Hiramatsu
Hi, Here is a series of patches which remove stop_machine() from module unloading. Currently, each module unloading calls stop_machine()s 2 times. One is for safely removing module from lists and one is to check the reference counter. However, both are not necessary for those purposes (required

[RFC PATCH 2/5] module: Unlink module with RCU synchronizing instead of stop_machine

2014-08-25 Thread Masami Hiramatsu
Unlink module from module list with RCU synchronizing instead of using stop_machine(). Since module list is already protected by rcu, we don't need stop_machine() anymore. Signed-off-by: Masami Hiramatsu --- kernel/module.c | 18 +- 1 file changed, 5 insertions(+), 13

[RFC PATCH 1/5] module: Wait for RCU synchronizing before releasing a module

2014-08-25 Thread Masami Hiramatsu
Wait for RCU synchronizing on failure path of module loading before releasing struct module, because the memory of mod->list can still be accessed by list walkers (e.g. kallsyms). Signed-off-by: Masami Hiramatsu --- kernel/module.c |2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 1/1] do_exit(): Solve possibility of BUG() due to race with try_to_wake_up()

2014-08-25 Thread Kautuk Consul
I encountered a BUG() scenario within do_exit() on an ARM system. The problem is due to a race scenario between do_exit() and try_to_wake_up() on different CPUs due to usage of sleeping primitives such as __down_common and wait_for_common. Race Scenario = Let us assume there are 2

Re: [hyperv] BUG at drivers/hv/channel.c:462 while changing MTU

2014-08-25 Thread Richard Weinberger
via On Wed, Aug 20, 2014 at 5:41 AM, Sitsofe Wheeler wrote: > Aug 20 04:04:41 ubuntuhv kernel: [9.230399] random: nonblocking pool is > initialized > Aug 20 04:04:41 ubuntuhv kernel: [ 10.338487] EXT4-fs (sda1): re-mounted. > Opts: errors=remount-ro > Aug 20 04:04:41 ubuntuhv kernel: [

Re: [PATCH v9 1/2] regulator: Add driver for max77802 PMIC PMIC regulators

2014-08-25 Thread Yuvaraj Cd
On Mon, Aug 25, 2014 at 2:37 PM, Javier Martinez Canillas wrote: > Hello Yuvaraj, > > On 08/25/2014 10:22 AM, Yuvaraj Cd wrote: Good question. I'm not that familiar with the dw_mmc host controller nor its driver implementation so I'll let Yuvaraj or Doug to answer that. >> Well,here it

Re: [PATCH] cpufreq: powernv: Register the driver with reboot notifier

2014-08-25 Thread Viresh Kumar
On 25 August 2014 16:00, Viresh Kumar wrote: > Its not that I am doubting if this will work or not. But this Hack is using > routines not meant for this purpose. And that being a core routine, > things aren't that straightforward anymore. Well if you want a working HACK for solving this, what

Re: [PATCHv4 2/4] thermal: exynos: Add support for many TRIMINFO_CTRL registers

2014-08-25 Thread Chanwoo Choi
Hi Bartlomiej, On 08/25/2014 07:15 PM, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Monday, August 25, 2014 04:30:23 PM Chanwoo Choi wrote: >> This patch support many TRIMINFO_CTRL registers if specific Exynos SoC >> has one more TRIMINFO_CTRL registers. Also this patch uses proper 'RELOAD'

Re: [PATCH] efi_high_alloc: use EFI_ALLOCATE_MAX_ADDRESS

2014-08-25 Thread Matt Fleming
(Adding linux-efi to Cc) On Fri, 22 Aug, at 03:48:23PM, har...@redhat.com wrote: > From: Harald Hoyer > > On my Lenovo T420s with 4GB memory, efi_high_alloc() was checking the > following memory regions: > > 0x0010 - 0x2000 > 0x2020 - 0x4000 >

Re: [PATCH] cpufreq: powernv: Register the driver with reboot notifier

2014-08-25 Thread Viresh Kumar
On 22 August 2014 08:18, Preeti U Murthy wrote: > At the moment this looks like the best way forward. We need to do this > cleanly by ensuring that we stop the governors and then call into the > driver to deal with the cpu frequency in its own way during reboot. The > best way to do this would be

Re: [PATCH v3 13/17] arcmsr: fix ioctl data read/write error for adapter type C

2014-08-25 Thread Tomas Henzl
On 08/25/2014 07:59 PM, Ching Huang wrote: > On Fri, 2014-08-22 at 18:00 +0200, Tomas Henzl wrote: >> On 08/19/2014 09:17 AM, Ching Huang wrote: >>> From: Ching Huang >>> >>> Rewrite ioctl entry and its relate function. >>> This patch fix ioctl data read/write error and change data I/O access

Re: [PATCH v2] checkpatch.pl: New instances of ENOSYS are errors

2014-08-25 Thread Pavel Machek
On Fri 2014-08-22 09:26:31, Andy Lutomirski wrote: > ENOSYS means that a nonexistent system call was called. We have a > bad habit of using it for things like invalid operations on > otherwise valid syscalls. We should avoid this in new code. Is it good idea? I mean, doing EINVAL for subcalls

[PATCH 0/2] modpost: small size reduction

2014-08-25 Thread Mathias Krause
Hi Rusty, the following two patches lead to a small size reduction of modpost. Please apply! Thanks, Mathias Mathias Krause (2): modpost: reduce visibility of symbols and constify r/o arrays modpost: simplify file name generation of *.mod.c files scripts/mod/modpost.c | 25

[PATCH 1/2] modpost: reduce visibility of symbols and constify r/o arrays

2014-08-25 Thread Mathias Krause
Internally used symbols of modpost don't need to be externally visible; make them static. Also constify the string arrays so they resist in the r/o section instead of being runtime writable. Those changes lead to a small size reduction as can be seen below: textdata bss dec

[PATCH 2/2] modpost: simplify file name generation of *.mod.c files

2014-08-25 Thread Mathias Krause
Avoid the variable length array (vla), just use PATH_MAX instead. This not only makes this code clang friedly, it also leads to a code size reduction: textdata bss dec hex filename 517652224 12416 66405 10365 scripts/mod/modpost.old 516772224 12416 66317

Re: [PATCH 1/7] efi: move noefi early param code out of x86 arch code

2014-08-25 Thread Matt Fleming
On Thu, 14 Aug, at 05:26:38PM, Dave Young wrote: > Hi, > > I addressed several comments from Matt, Randy and Will in this post. > > Also rewrote the patch for efi=noruntime with using a generic param handling > function. > > CCed Xen and SGI people, removed rtc list in cc for [1-6]/7 patches

Re: i915: Regression: +4W in idle power use on Macbook Pro 15 (late 2013)

2014-08-25 Thread Jani Nikula
On Fri, 22 Aug 2014, Eric Rannaud wrote: > Hi, > > Between 3.15.4 and 3.15.8, there was an increase in idle power consumption on > Apple Macbook Pro 15 (late 2013) on a freshly booted system (no wifi driver > loaded; brightness set to 4/100; X running; no desktop environment, except > Awesome),

Re: Oops: 17 SMP ARM (v3.16-rc2)

2014-08-25 Thread Russell King - ARM Linux
On Wed, Aug 13, 2014 at 01:39:27PM +, Mattis Lorentzon wrote: > All our tests seem to behave the same way on the Sabrelite as on our own > board. > A working theory is that the switch (3Com Switch 4400) triggers the > degeneration > of the network stack from which Linux does not seem to

Re: [PATCH 8/9] video: fbdev: aty: use c99 initializers in structures

2014-08-25 Thread Dan Carpenter
On Sat, Aug 23, 2014 at 05:32:37PM +0200, Julia Lawall wrote: > > > > The closing brace should be in column 0 of the next line. Also, the > > final field initializer should have a comma after it. (Likewise for the > > remaining changes in this file.) > > In general, I haven't changed the

Re: [PATCHv4 2/4] thermal: exynos: Add support for many TRIMINFO_CTRL registers

2014-08-25 Thread Bartlomiej Zolnierkiewicz
Hi, On Monday, August 25, 2014 04:30:23 PM Chanwoo Choi wrote: > This patch support many TRIMINFO_CTRL registers if specific Exynos SoC > has one more TRIMINFO_CTRL registers. Also this patch uses proper 'RELOAD' > shift/mask bit operation to set RELOAD feature instead of static value. > >

Re: [PATCH 1/3 v4 RESEND] mfd: arizona: Export function to control subsystem DVFS

2014-08-25 Thread Richard Fitzgerald
On Thu, Aug 21, 2014 at 11:40:51AM +0100, Lee Jones wrote: > On Fri, 08 Aug 2014, Richard Fitzgerald wrote: > > > From: Richard Fitzgerald > > > > Moving this control from being a side-effect of the LDO1 > > regulator driver to a specific exported function. > > > > Signed-off-by: Richard

Re: [PATCH] PWM: atmel: fix incorrect CDTY value after enabling or disabling

2014-08-25 Thread Thierry Reding
On Fri, Mar 14, 2014 at 08:05:31PM +0100, Alexandre Belloni wrote: > pwm-leds calls .config() and .disable() in a row. This exhibits that it may > happen that the channel gets disabled before CDTY has been updated with CUPD. > The issue gets quite worse with long periods. > So, ensure by reading

Re: [PATCH v2] intel_idle: add idle values for Cherrytrail/Braswell

2014-08-25 Thread Mika Westerberg
On Fri, Aug 22, 2014 at 10:06:21PM +0800, Li, Aubrey wrote: > On 2014/8/22 19:39, Mika Westerberg wrote: > > From: Mahesh Kumar P > > > > Cherrytrail/Braswell is a successor of Intel Baytrail but has slighly > > different CPU idle values and latencies. > > > > Signed-off-by: Kumar P Mahesh > >

[PATCH -mm] prctl: PR_SET_MM -- Introduce PR_SET_MM_MAP operation, v4

2014-08-25 Thread Cyrill Gorcunov
During development of c/r we've noticed that in case if we need to support user namespaces we face a problem with capabilities in prctl(PR_SET_MM, ...) call, in particular once new user namespace is created capable(CAP_SYS_RESOURCE) no longer passes. A approach is to eliminate CAP_SYS_RESOURCE

[3.17 REGRESSION FIX] Revert "ideapad-laptop: Disable touchpad interface on Yoga models"

2014-08-25 Thread Hans de Goede
I've received a bug report from a user that the touchpad control part of the ideapad-laptop ACPI interface does work for him on his "Lenovo Yoga 2 13", and that this patch causes a regression for him. Since it did not work for me when I had a "Lenovo Yoga 2 11" in my own hands (loaned from a

Re: [PATCH v3 13/17] arcmsr: fix ioctl data read/write error for adapter type C

2014-08-25 Thread Ching Huang
On Fri, 2014-08-22 at 18:00 +0200, Tomas Henzl wrote: > On 08/19/2014 09:17 AM, Ching Huang wrote: > > From: Ching Huang > > > > Rewrite ioctl entry and its relate function. > > This patch fix ioctl data read/write error and change data I/O access from > > byte to Dword. > > > > Signed-off-by:

Re: [PATCH] staging:lustre:lnet: lib-md.c fix checkpath warnings and errors.

2014-08-25 Thread Dan Carpenter
On Mon, Aug 25, 2014 at 01:41:29AM +0800, Janet Liu wrote: > Sliences the following warning and error: > > WARNING: line over 80 characters > WARNING: space prohibited between function name and open parenthesis '(' > ERROR: do not use C99 // comments > ERROR: trailing statements should be

Re: [PATCH 06/10] perf evlist: Allow growing pollfd on add method

2014-08-25 Thread Jiri Olsa
On Fri, Aug 22, 2014 at 05:59:46PM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > -static int perf_evlist__alloc_pollfd(struct perf_evlist *evlist) > +static int perf_evlist__grow_pollfd(struct perf_evlist *evlist, int hint) > +{ > + int nr_fds_alloc = evlist->nr_fds_alloc + hint; > +

Re: [PATCH 3/9] pwm: lpss: use c99 initializers in structures

2014-08-25 Thread Thierry Reding
On Sat, Aug 23, 2014 at 01:20:25PM +0200, Julia Lawall wrote: > From: Julia Lawall > > Use c99 initializers for structures. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) > > // > @decl@ > identifier i1,fld; > type T; >

Re: [PATCH 0/2] Add TLS record layer encryption module

2014-08-25 Thread Herbert Xu
On Thu, Jul 31, 2014 at 12:59:45PM -0700, Andy Lutomirski wrote: > > What is this used for? AF_ALG? I find it hard to believe that the > kernel will ever want to use this internally. There have been discussions over the years regarding implementing TLS/SSL in the kernel so it is not

Re: [PATCH 06/10] perf evlist: Allow growing pollfd on add method

2014-08-25 Thread Jiri Olsa
On Fri, Aug 22, 2014 at 05:59:46PM -0300, Arnaldo Carvalho de Melo wrote: SNIP > -void perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd) > +int perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd) > { > + /* > + * XXX: 64 is arbitrary, just not to call realloc at each

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-08-25 Thread Thierry Reding
On Fri, Aug 22, 2014 at 02:19:19PM +0100, Mark Rutland wrote: > On Thu, Aug 21, 2014 at 08:19:00PM +0100, Alexander Holler wrote: > > Am 21.08.2014 16:02, schrieb Thierry Reding: > > > > > Anyway, those are all fairly standard reasons for where deferred probe > > > triggers, and since I do like

Re: [PATCH] KVM: x86: fix xen guest panic due to lack of KVM_REQ_EVENT

2014-08-25 Thread Wanpeng Li
Hi Paolo, On Mon, Aug 25, 2014 at 11:16:16AM +0200, Paolo Bonzini wrote: >Il 25/08/2014 11:08, Wanpeng Li ha scritto: >> Hi Paolo, >> On Mon, Aug 25, 2014 at 11:01:07AM +0200, Paolo Bonzini wrote: >>> Il 25/08/2014 09:58, Wanpeng Li ha scritto: diff --git a/arch/x86/kvm/x86.c

Re: [hyperv] BUG at drivers/hv/channel.c:462 while changing MTU

2014-08-25 Thread Dan Carpenter
The code here is: drivers/hv/channel.c 460 BUG_ON(ret != 0); 461 t = wait_for_completion_timeout(>waitevent, 5*HZ); 462 BUG_ON(t == 0); So it calls BUG_ON() if the teardown takes more than 5 seconds. It's most likely that there is a race condition somewhere.

[alsa-devel] [RESEND PATCH v4 1/2] mfd: arizona: Add support for INn_Mode register control

2014-08-25 Thread Inha Song
Some boards need to set the INn_MODE[1:0] register to change the input signal patch. This wlf,inmode property is optional. If present, values must be specified less than or equal to the number of input singals. If values less than the number of input signals, elements that has not been specifed

[alsa-devel] [RESEND PATCH v4 0/2] mfd: arizona: add support for INn_MODE register

2014-08-25 Thread Inha Song
This patch series add support for INn_MODE register control using platform data. Each input signal path can be configurated either as a Analogue or Digital using the INn_MODE registers. Changes for v4 - Update document content for more clarity Changes for v3 - Change to use

[alsa-devel] [RESEND PATCH v4 2/2] mfd: arizona: Update DT binding to support INn_MODE init_data

2014-08-25 Thread Inha Song
This patch update DT binding to support INn_MODE init_data. Each input signal path can be configurated either as a Analogue or Digital using the INn_MODE registers. Signed-off-by: Inha Song Reviewed-by: Charles Keepax --- Documentation/devicetree/bindings/mfd/arizona.txt | 7 +++ 1 file

[PATCH V1] regulator: DA9211 : support device tree

2014-08-25 Thread James Ban
This is a patch for supporting device tree of DA9211/DA9213. Signed-off-by: James Ban --- This patch is relative to linux-next repository tag next-20140822. .../devicetree/bindings/regulator/da9211.txt | 58 + drivers/regulator/da9211-regulator.c | 85

Re: [alsa-devel] [PATCH v2 1/2] mfd: arizona: Add support for INn_Mode register control

2014-08-25 Thread Inha Song
Hi Lee, On Thu, 21 Aug 2014 13:12:19 +0100 Lee Jones wrote: > On Wed, 13 Aug 2014, Inha Song wrote: > > > Some boards need to set the INn_MODE[1:0] register to change > > the input signal patch. This wlf,inmode property is optional. > > If present values must be specified by the number of > >

Re: [PATCH v7 1/8] clk: Add temporary mapping to the existing API

2014-08-25 Thread Sebastian Hesselbarth
On 08/21/2014 08:10 PM, Jason Cooper wrote: On Thu, Aug 21, 2014 at 11:04:48AM -0700, Tony Lindgren wrote: * Mike Turquette [140820 07:53]: Quoting Tomeu Vizoso (2014-08-18 08:30:27) To preserve git-bisectability, add aliases from the future provider API to the existing public API. Also

Re: [PATCH v6 4/6] mfd: Add hi6421 PMIC core driver

2014-08-25 Thread Guodong Xu
Hi, Lee Thanks. I added for most of your comments. Some items, I have a different understanding. I added in below. On 08/20/2014 04:09 PM, Lee Jones wrote: > On Mon, 18 Aug 2014, Guodong Xu wrote: >> This adds driver to support HiSilicon Hi6421 PMIC. Hi6421 includes multi- >> functions, such as

[PATCH v6 0/3] usb: gadget: f_fs: userspace API fixes and improvements

2014-08-25 Thread Robert Baldyga
This patchset contains changes in FunctionFS making it easier and safer to use. It fixes bug in endpoint files handling code, adds new ioctl allowing to obtain endpoint descriptor, and introduces virtual address mapping which allows to separate endpoint address space in function from physical

Re: [PATCH] KVM: x86: fix xen guest panic due to lack of KVM_REQ_EVENT

2014-08-25 Thread Paolo Bonzini
Il 25/08/2014 11:08, Wanpeng Li ha scritto: > Hi Paolo, > On Mon, Aug 25, 2014 at 11:01:07AM +0200, Paolo Bonzini wrote: >> Il 25/08/2014 09:58, Wanpeng Li ha scritto: >>> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c >>> index c10408e..b7c0073 100644 >>> --- a/arch/x86/kvm/x86.c >>> +++

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