[PATCH] mm: fix null vm_ops dereference in sys_remap_file_pages

2012-10-11 Thread Konstantin Khlebnikov
This fixes bug introduced in commit mm: kill vma flag VM_CAN_NONLINEAR, vma-vm_ops must be checked before checking vm_ops-remap_pages. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Reported-by: Sasha Levin levinsasha...@gmail.com --- mm/fremap.c |2 +- 1 file changed, 1

Re: [RESEND PATCH] scsi: make struct scsi_varlen_cdb_hdr packed

2012-10-11 Thread James Bottomley
On Thu, 2012-10-11 at 10:15 +0100, James Hogan wrote: The struct scsi_varlen_cdb_hdr is expected to be exactly 10 bytes when used in struct osd_cdb_head, but it isn't marked as packed. Some architectures will round the struct size up which triggers BUILD_BUG_ON compile errors in

Re: [PATCH 1/2] scatterlist: add sg_nents

2012-10-11 Thread Geert Uytterhoeven
On Wed, Sep 26, 2012 at 11:49 AM, Maxim Levitsky maximlevit...@gmail.com wrote: +int sg_nents(struct scatterlist *sg) unsigned int? +{ + int nents = 0; + while (sg) { + nents++; + sg = sg_next(sg); + } + + return nents; +}

Re: [PATCH 1/2] scatterlist: add sg_nents

2012-10-11 Thread Geert Uytterhoeven
On Thu, Oct 11, 2012 at 12:27 PM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On Wed, Sep 26, 2012 at 11:49 AM, Maxim Levitsky maximlevit...@gmail.com wrote: +int sg_nents(struct scatterlist *sg) unsigned int? and const struct scatterlist *sg? Ah no, that won't work as sg_next() treats

[Patch v3 3/7] RTC: DA9055 RTC driver

2012-10-11 Thread Ashish Jangam
This is the RTC patch for the DA9055 PMIC. This patch has got dependency on the DA9055 MFD core. This patch is functionally tested on Samsung SMDKV6410. Signed-off-by: David Dajun Chen dc...@diasemi.com Signed-off-by: Ashish Jangam ashish.jan...@kpitcummins.com --- changes since version v3: -

[PATCH 2/5] efivarfs: efivarfs_create() ensure we drop our reference on inode on error

2012-10-11 Thread Andy Whitcroft
Signed-off-by: Andy Whitcroft a...@canonical.com --- drivers/firmware/efivars.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index ae50d2f..0bbf742 100644 --- a/drivers/firmware/efivars.c +++

[PATCH 1/5] efivarfs: efivarfs_file_read ensure we free data in error paths

2012-10-11 Thread Andy Whitcroft
Signed-off-by: Andy Whitcroft a...@canonical.com --- drivers/firmware/efivars.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index 4b12a8fd..ae50d2f 100644 --- a/drivers/firmware/efivars.c +++

[PATCH 0/5] efivarfs: fixes and cleanups

2012-10-11 Thread Andy Whitcroft
We have recently been looking to backport the efivarfs support as posted, to 3.5.x. Inspired by some searching questions from Tetsuo Handa I have been reviewing this code. The following a first pass at fixing up some of the error handling. As they represent error paths they are hard to truly

[RESEND PATCH v2 1/2] update mem= option's spec

2012-10-11 Thread wency
From: Wen Congyang we...@cn.fujitsu.com Current mem= implementation seems buggy because specification and implementation doesn't match. Current mem= has been working for many years and it's not buggy, it works as expected. So we should update the specification. Signed-off-by: Wen Congyang

[PATCH 4/5] efivarfs: efivarfs_fill_super() ensure we free our temporary name

2012-10-11 Thread Andy Whitcroft
d_alloc_name() copies the passed name to new storage, once complete we no longer need our name. Signed-off-by: Andy Whitcroft a...@canonical.com --- drivers/firmware/efivars.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index

[PATCH 3/5] efivarfs: efivarfs_fill_super() fix inode reference counts

2012-10-11 Thread Andy Whitcroft
When d_make_root() fails it will automatically drop the reference on the root inode. We should not be doing so as well. Signed-off-by: Andy Whitcroft a...@canonical.com --- drivers/firmware/efivars.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git

[PATCH 5/5] efivarfs: efivarfs_fill_super() ensure we clean up correctly on error

2012-10-11 Thread Andy Whitcroft
Ensure we free both the name and inode on error when building the individual variables. Signed-off-by: Andy Whitcroft a...@canonical.com --- drivers/firmware/efivars.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/efivars.c

[RESEND PATCH v2 2/2] x86: reimplement mem boot option

2012-10-11 Thread wency
From: Wen Congyang we...@cn.fujitsu.com Current mem boot option only can work for non efi environment. If the user specifies add_efi_memmap, it cannot work for efi environment. In the efi environment, we call e820_add_region() to add the memory map. So we can modify __e820_add_region() and the

[Patch v3 7/7] Onkey: DA9055 Onkey driver

2012-10-11 Thread Ashish Jangam
This is the ONKEY driver of the Dialog DA9055 PMIC and depends on the DA9055 MFD core driver. This patch is functionally tested on SMDK6410 board. Signed-off-by: David Dajun Chen dc...@diasemi.com Signed-off-by: Ashish Jangam ashish.jan...@kpitcummins.com --- changes since v3: - used of

Re: [RESEND PATCH v2 1/2] update mem= option's spec

2012-10-11 Thread Wen Congyang
Hi, HPA When do you have time to review this patchset? Thanks Wen Congyang At 10/11/2012 06:38 PM, we...@cn.fujitsu.com Wrote: From: Wen Congyang we...@cn.fujitsu.com Current mem= implementation seems buggy because specification and implementation doesn't match. Current mem= has been

[PATCH] mcs7830: Fix link state detection

2012-10-11 Thread Ondrej Zary
The device had an undocumented feature: it can provide a sequence of spurious link-down status data even if the link is up all the time. A sequence of 10 was seen so update the link state only after the device reports the same link state 20 times. Signed-off-by: Ondrej Zary

Re: [PATCH 01/13] clk: davinci - add Main PLL clock driver

2012-10-11 Thread Sekhar Nori
On 10/10/2012 5:32 PM, Sekhar Nori wrote: Hi Murali, On 9/26/2012 11:37 PM, Murali Karicheri wrote: This is the driver for the main PLL clock hardware found on DM SoCs. This driver borrowed code from arch/arm/mach-davinci/clock.c and implemented the driver as per common clock provider API.

RE: [PATCH] extcon : register for cable interest by cable name

2012-10-11 Thread Tc, Jenny
Subject: Re: [PATCH] extcon : register for cable interest by cable name There are some scnearios where a driver/framework needs to register interest for a particular cable without specifying the extcon device name. One such scenario is charger notifications. The platform will have

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-10-11 Thread Nikunj A Dadhania
On Wed, 10 Oct 2012 09:24:55 -0500, Andrew Theurer haban...@linux.vnet.ibm.com wrote: Below is again 8 x 20-way VMs, but this time I tried out Nikunj's gang scheduling patches. While I am not recommending gang scheduling, I think it's a good data point. The performance is 3.88x the PLE

[alsa-devel] [PATCH] ASoC: codecs: da9055: DAPMise Headphone and Lineout enable controls

2012-10-11 Thread Ashish Chavan
This patch DAPMises headphone and lineout output enable controls. Earlier these output enable bits were permanently turned on in probe. In da9055 codec, right outmixer is directly connected with right HP and Line out. This resulted in two side effects, (1) When you only want to use lineout,

[GIT] TPM bugfixes

2012-10-11 Thread James Morris
Please pull these fixes for the TPM code. The following changes since commit 12250d843e8489ee00b5b7726da855e51694e792: Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux (2012-10-11 10:27:51 +0900) are available in the git repository at:

Re: Linux 2.6.32.60

2012-10-11 Thread Greg KH
On Thu, Oct 11, 2012 at 08:29:16AM +0200, Willy Tarreau wrote: Hi Romain, On Wed, Oct 10, 2012 at 04:05:32PM +0200, Romain Francoise wrote: Hi Willy, Willy Tarreau w...@1wt.eu writes: I've just released Linux 2.6.32.60. This release contains, among others, a number of fixes

[PATCH] Platform: hp-wmi: add rfkill support for integrated GPS

2012-10-11 Thread Trepák Vilmos
Add rfkill support for the GPS radio found in HP laptops (HP Elitebook 2170p and the like) using the Ericsson F5321/H5321 Mobile Broadband Module. Signed-off-by: Viliam Trepák tr...@netcomga.sk --- After spending hours trying to get GPS working on my laptop, poring over AT command set

Re: [ 60/84] r8169: fix wake on lan setting for non-8111E.

2012-10-11 Thread Greg Kroah-Hartman
On Thu, Oct 11, 2012 at 12:15:50AM -0700, Jonathan Nieder wrote: Hi Greg, Greg Kroah-Hartman wrote: commit d4ed95d796e5126bba51466dc07e287cebc8bd19 upstream. Only 8111E needs enable RxConfig bit 0 ~ 3 when suspending or shutdowning for wake on lan. Sounds sensible to me, but I

Re: [PATCHv4 1/4] modem_shm: Add Modem Access Framework

2012-10-11 Thread Greg KH
On Thu, Oct 11, 2012 at 11:37:20AM +0200, Arun MURTHY wrote: On Tue, Oct 09, 2012 at 07:37:02AM +0200, Arun MURTHY wrote: Any further comments? I was waiting for you to address all of the previous ones with a new set of patches before burdening you with anything new :) There are not

Re: [PATCH 0/3] virtio-net: inline header support

2012-10-11 Thread Michael S. Tsirkin
On Thu, Oct 11, 2012 at 10:33:31AM +1030, Rusty Russell wrote: Paolo Bonzini pbonz...@redhat.com writes: Il 09/10/2012 06:59, Rusty Russell ha scritto: Paolo Bonzini pbonz...@redhat.com writes: Il 05/10/2012 07:43, Rusty Russell ha scritto: That's good. But virtio_blk's scsi command is

Re: [PATCH v2 01/13] clk: davinci - add Main PLL clock driver

2012-10-11 Thread Sekhar Nori
On 9/26/2012 11:40 PM, Murali Karicheri wrote: +struct clk_davinci_pll_data { + /* physical addresses set by platform code */ + u32 phy_pllm; + /* if PLL has a prediv register this should be non zero */ + u32 phy_prediv; + /* if PLL has a postdiv register this should be

Re: [RESEND PATCH] scsi: make struct scsi_varlen_cdb_hdr packed

2012-10-11 Thread James Hogan
On 11/10/12 11:01, Bart Van Assche wrote: On 10/11/12 11:15, James Hogan wrote: The struct scsi_varlen_cdb_hdr is expected to be exactly 10 bytes when used in struct osd_cdb_head, but it isn't marked as packed. Some architectures will round the struct size up which triggers BUILD_BUG_ON

Re: [Patch v3 3/7] RTC: DA9055 RTC driver

2012-10-11 Thread shubhro
On Thursday 11 October 2012 04:10 PM, Ashish Jangam wrote: +#define da9055_rtc_freeze NULL +#endif + +static const struct dev_pm_ops da9055_rtc_pm_ops = { + .suspend = da9055_rtc_suspend, + .resume = da9055_rtc_resume, + + .freeze = da9055_rtc_freeze, + .thaw =

3.6 Regression: kernel NULL pointer dereference in pacpi_set_dmamode

2012-10-11 Thread Anton V. Boyarshinov
Hello, We have an early boot crash in 3.6 and 3.6.1 on many machines, using nvidia chipsets. Boot fails in 1 case to 10 boots or 9 cases in 10 boots, depending on machine. The head of log, got via serial console(full log attached): --- 2.672343Ü BUG:

Re: Linux 2.6.32.60

2012-10-11 Thread Willy Tarreau
On Thu, Oct 11, 2012 at 07:58:04PM +0900, Greg KH wrote: On Thu, Oct 11, 2012 at 08:29:16AM +0200, Willy Tarreau wrote: If you think these patches constitute a regression, I can revert them. However I'd like convincing arguments since they're here to help address a real issue. If I

Re: [RESEND PATCH] scsi: make struct scsi_varlen_cdb_hdr packed

2012-10-11 Thread James Hogan
On 11/10/12 11:24, James Bottomley wrote: On Thu, 2012-10-11 at 10:15 +0100, James Hogan wrote: The struct scsi_varlen_cdb_hdr is expected to be exactly 10 bytes when used in struct osd_cdb_head, but it isn't marked as packed. Some architectures will round the struct size up which triggers

Re: [PATCH 0/3] Update LZO compression

2012-10-11 Thread Arnd Bergmann
On Tuesday 09 October 2012, Markus F.X.J. Oberhumer wrote: : This commit updates the kernel LZO code to the current upsteam version : which features a significant speed improvement - benchmarking the Calgary : and Silesia test corpora typically shows a doubled performance in : both

Re: [PATCH] [SCSI] virtio-scsi: Add real 2-clause BSD license to header

2012-10-11 Thread Paolo Bonzini
Il 11/10/2012 08:41, Bryan Venteicher ha scritto: This is analogous to commit a1b383870a made by Rusty Russell to all the VirtIO headers at the time. This eases the use of the header as is by other OSes. Signed-off-by: Bryan Venteicher bry...@daemoninthecloset.org Acked-by: Paolo Bonzini

[PATCH 2/6] MFD: twl6040: Remove unused parameter for twl6040_power_up_completion()

2012-10-11 Thread Peter Ujfalusi
naudint parameter has not been used, remove it. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl6040-core.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/twl6040-core.c b/drivers/mfd/twl6040-core.c index b220aa2..a46d987 100644 ---

[PATCH 6/6] MFD: twl6040: Rename the core driver

2012-10-11 Thread Peter Ujfalusi
After the regmap_irq conversion there is no need to call the driver as twl6040-core.c since there is only one c file remained. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/Makefile | 2 +- drivers/mfd/{twl6040-core.c = twl6040.c} | 0 2 files changed,

[PATCH 0/6] MFD: twl6040: Conversion to use regmap_irq

2012-10-11 Thread Peter Ujfalusi
Hello, This series will convert the twl6040 MFD core driver to use regmap_irq instead of the custom interrupt code it used. In this way considerable amount of code can be removed and we are going to use common, well tested code for the interrupt dispatch. The series is for 3.8. Regards, Peter

[PATCH 1/6] MFD: twl6040: Fix typo for power on failure

2012-10-11 Thread Peter Ujfalusi
Fix old copy paste bug: automatic power-down failed - automatic power-up failed Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl6040-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/twl6040-core.c b/drivers/mfd/twl6040-core.c index

[PATCH 5/6] MFD: twl6040: Convert to use regmap_irq

2012-10-11 Thread Peter Ujfalusi
With regmap_irq it is possibole to remove the twl6040-irq.c file and simplify the code. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/Kconfig | 4 +- drivers/mfd/Makefile| 2 +- drivers/mfd/twl6040-core.c | 55 drivers/mfd/twl6040-irq.c

[PATCH 4/6] MFD: twl6040: Correct Ready and Thermal interrupt handling

2012-10-11 Thread Peter Ujfalusi
Create new irq handler for thermal events in order to be able to handle the event and clean up the code regarding to interrupt handling: Use proper function names for the irq handlers No need to read the INTD register anymore. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com ---

[PATCH 3/6] MFD: twl6040: Restructure power up and down code

2012-10-11 Thread Peter Ujfalusi
Rearrange the code path for power up and down sequence. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl6040-core.c | 38 ++ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/drivers/mfd/twl6040-core.c

Re: [Patch 0/1]drm_irq: Introducing the irq_thread support

2012-10-11 Thread Laurent Pinchart
On Wednesday 05 September 2012 15:27:24 Daniel Vetter wrote: On Wed, Sep 05, 2012 at 01:53:44AM +, Liu, Chuansheng wrote: This patch is for introducing the irq thread support in drm_irq. Why we need irq thread in drm_irq code? In our GPU system, the gpu interrupt handler need some

Re: [PATCH] pinctrl/nomadik: support other alternate-C functions

2012-10-11 Thread Arnd Bergmann
On Tuesday 02 October 2012, Linus Walleij wrote: --- a/drivers/pinctrl/pinctrl-nomadik.c +++ b/drivers/pinctrl/pinctrl-nomadik.c @@ -30,6 +30,7 @@ #include linux/pinctrl/pinconf.h /* Since we request GPIOs from ourself */ #include linux/pinctrl/consumer.h +#include

Re: [PATCH] memcg: oom: fix totalpages calculation for memory.swappiness==0

2012-10-11 Thread Johannes Weiner
On Thu, Oct 11, 2012 at 10:57:39AM +0200, Michal Hocko wrote: oom_badness takes totalpages argument which says how many pages are available and it uses it as a base for the score calculation. The value is calculated by mem_cgroup_get_limit which considers both limit and total_swap_pages (resp.

Re: [PATCH v2 09/13] ARM: davinci - update the dm644x soc code to use common clk drivers

2012-10-11 Thread Sekhar Nori
Murali, On 9/26/2012 11:40 PM, Murali Karicheri wrote: The clock tree for dm644x is defined using the new structure davinci_clk. The SoC specific code re-uses clk-fixed-rate, clk-divider and clk-mux drivers in addition to the davinci specific clk drivers, clk-davinci-pll and clk-davinci-psc.

Re: [PATCH v2 04/13] clk: davinci - common clk driver initialization

2012-10-11 Thread Sekhar Nori
Hi Murali, I have given this patch a partial review. I suspect this patch will change much based on the comment I gave for 9/13. On 9/26/2012 11:40 PM, Murali Karicheri wrote: This is the common clk driver initialization function for DaVinci SoCs and other SoCs that uses similar hardware

Local DoS through write heavy I/O on CFQ Deadline

2012-10-11 Thread Alex Bligh
We have noticed significant I/O scheduling issues on both the CFQ and the deadline scheduler where a non-root user can starve any other process of any I/O for minutes at a time. The problem is more serious using CFQ but is still an effective local DoS vector using Deadline. A simple way to

Re: [PATCH] Platform: hp-wmi: add rfkill support for integrated GPS

2012-10-11 Thread Matthew Garrett
On Thu, Oct 11, 2012 at 12:51:00PM +0200, Trepák Vilmos wrote: @@ -663,6 +669,24 @@ static int __devinit hp_wmi_rfkill_setup goto register_bluetooth_error; } + if (wireless 0x3) { + gps_rfkill = rfkill_alloc(hp-gps, device-dev, +

Re: [GIT PULL] Disintegrate UAPI for media

2012-10-11 Thread Mauro Carvalho Chehab
Em Thu, 11 Oct 2012 10:23:50 +0200 Oliver Endriss o.endr...@gmx.de escreveu: Mauro Carvalho Chehab mche...@infradead.org wrote: Em Tue, 09 Oct 2012 14:30:24 +0100 David Howells dhowe...@redhat.com escreveu: Can you merge the following branch into the media tree please. This is

Re: [PATCH 03/31] sections: Fix section conflicts in arch/frv

2012-10-11 Thread Geert Uytterhoeven
On Sat, Aug 18, 2012 at 7:29 PM, Andi Kleen a...@firstfloor.org wrote: From: Andi Kleen a...@linux.intel.com Signed-off-by: Andi Kleen a...@linux.intel.com --- arch/frv/kernel/setup.c |2 +- arch/frv/mb93090-mb00/pci-irq.c |2 +- 2 files changed, 2 insertions(+), 2

Re: [PATCH -next] staging: dgrp: Add missing #include linux/uaccess.h

2012-10-11 Thread Geert Uytterhoeven
On Thu, Sep 27, 2012 at 8:38 PM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On m68k: Now also in mainline, cfr. http://kisskb.ellerman.id.au/kisskb/buildresult/7344531/ drivers/staging/dgrp/dgrp_mon_ops.c: In function ‘dgrp_mon_read’: drivers/staging/dgrp/dgrp_mon_ops.c:304: error:

Re: [PATCH 0/5] efivarfs: fixes and cleanups

2012-10-11 Thread Matthew Garrett
For the set: Acked-by: Matthew Garrett m...@redhat.com -- Matthew Garrett | mj...@srcf.ucam.org -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v4 06/14] memcg: kmem controller infrastructure

2012-10-11 Thread Michal Hocko
On Mon 08-10-12 14:06:12, Glauber Costa wrote: This patch introduces infrastructure for tracking kernel memory pages to a given memcg. This will happen whenever the caller includes the flag __GFP_KMEMCG flag, and the task belong to a memcg other than the root. In memcontrol.h those functions

[PATCH] pinctrl/nomadik: provide stubs for legacy Nomadik

2012-10-11 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org The compilation of the pinctrl driver failed on the legacy Nomadik NHK8815 platform because it was not providing the PRCMU interfaces needed to support the extended alternate functions used by the ux500 series. Solve this by providing some stubs for

Re: [PATCH 0/5] efivarfs: fixes and cleanups

2012-10-11 Thread Matt Fleming
On Thu, 2012-10-11 at 11:32 +0100, Andy Whitcroft wrote: We have recently been looking to backport the efivarfs support as posted, to 3.5.x. Inspired by some searching questions from Tetsuo Handa I have been reviewing this code. The following a first pass at fixing up some of the error

Re: [GIT PULL] Disintegrate UAPI for m68k [ver #2]

2012-10-11 Thread Geert Uytterhoeven
On Tue, Oct 9, 2012 at 11:15 AM, David Howells dhowe...@redhat.com wrote: Can you merge the following branch into the m68k tree please. Thanks! I will look into it, but I won't merge it before 3.7-rc1. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of

Re: [PATCH] scripts/coccinelle/tests/odd_ptr_err.cocci: semantic patch for IS_ERR/PTR_ERR inconsistency

2012-10-11 Thread Michal Marek
On Sat, Aug 25, 2012 at 10:42:45PM +0200, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Signed-off-by: Julia Lawall julia.law...@lip6.fr --- scripts/coccinelle/tests/odd_ptr_err.cocci | 65 + Looks like I missed this one. I applied it to

Re: [RFC][CFT][CFReview] execve and kernel_thread unification work

2012-10-11 Thread Al Viro
On Thu, Oct 11, 2012 at 08:00:23PM +1100, Paul Mackerras wrote: I just looked through the powerpc: split ret_from_fork commit in your for-next branch, and I have a couple of comments. First, on 64-bit powerpc, if kernel_thread() is called on a function in a module, and that function returns,

Re: [PATCH v4 04/14] kmem accounting basic infrastructure

2012-10-11 Thread Michal Hocko
On Thu 11-10-12 12:11:19, Michal Hocko wrote: On Mon 08-10-12 14:06:10, Glauber Costa wrote: [...] +static void memcg_kmem_set_active(struct mem_cgroup *memcg) +{ + set_bit(KMEM_ACCOUNTED_ACTIVE, memcg-kmem_accounted); +} + +static bool memcg_kmem_is_accounted(struct mem_cgroup

Re: [PATCH v4 06/14] memcg: kmem controller infrastructure

2012-10-11 Thread Michal Hocko
On Thu 11-10-12 14:42:12, Michal Hocko wrote: [...] /* * Keep reference on memcg while the page is charged to prevent * group from vanishing because allocation can outlive their * tasks. The reference is dropped in __memcg_kmem_uncharge_page */ please +

Re: [PATCH] pinctrl/nomadik: provide stubs for legacy Nomadik

2012-10-11 Thread Arnd Bergmann
On Thursday 11 October 2012, Linus Walleij wrote: From: Linus Walleij linus.wall...@linaro.org The compilation of the pinctrl driver failed on the legacy Nomadik NHK8815 platform because it was not providing the PRCMU interfaces needed to support the extended alternate functions used by

Re: [RESEND PATCH] scsi: make struct scsi_varlen_cdb_hdr packed

2012-10-11 Thread James Bottomley
On Thu, 2012-10-11 at 12:32 +0100, James Hogan wrote: On 11/10/12 11:24, James Bottomley wrote: On Thu, 2012-10-11 at 10:15 +0100, James Hogan wrote: The struct scsi_varlen_cdb_hdr is expected to be exactly 10 bytes when used in struct osd_cdb_head, but it isn't marked as packed. Some

Re: linux-next: manual merge of the kvm-ppc tree with the powerpc-merge tree

2012-10-11 Thread Alexander Graf
On 11.10.2012, at 05:32, Tabi Timur-B04825 wrote: On Wed, Oct 10, 2012 at 9:47 PM, Stephen Rothwell s...@canb.auug.org.au wrote: Commit 549d62d889b4 (KVM: PPC: use definitions in epapr header for hcalls) from the kvm-ppc tree added an include of asm/epapr_hcall.h to the user visible part

Re: [PATCH v4 1/5] KVM: MMU: fix release noslot pfn

2012-10-11 Thread Xiao Guangrong
On 10/10/2012 11:11 PM, Marcelo Tosatti wrote: Why does is_error_pfn() return true for mmio spte? Its not an error, after all. Please kill is_invalid_pfn and use - is_error_pfn for checking for errors (mmio spte is not an error pfn, its a special pfn) - add explicit is_noslot_pfn

Re: linux-next: manual merge of the kvm-ppc tree with the powerpc-merge tree

2012-10-11 Thread Alexander Graf
On 11.10.2012, at 11:27, David Howells wrote: Stephen Rothwell s...@canb.auug.org.au wrote: I just removed epapr_hcalls.h from the Kbuild file as I am not sure how it should be broken up. David, can you have a look at this, please? Files should be broken up along around __KERNEL__

Re: [PATCH v4 09/14] memcg: kmem accounting lifecycle management

2012-10-11 Thread Michal Hocko
On Mon 08-10-12 14:06:15, Glauber Costa wrote: Because kmem charges can outlive the cgroup, we need to make sure that we won't free the memcg structure while charges are still in flight. For reviewing simplicity, the charge functions will issue mem_cgroup_get() at every charge, and

Re: [PATCH v4 5/5] KVM: MMU: introduce FNAME(prefetch_gpte)

2012-10-11 Thread Xiao Guangrong
On 10/10/2012 11:21 PM, Marcelo Tosatti wrote: pgprintk(%s: gpte %llx spte %p\n, __func__, (u64)gpte, spte); + +gfn = gpte_to_gfn(gpte); pte_access = sp-role.access gpte_access(vcpu, gpte); protect_clean_gpte(pte_access, gpte); -pfn = gfn_to_pfn_atomic(vcpu-kvm,

Re: [PATCH 1/3] Coccicheck: Add the rep+ctxt mode

2012-10-11 Thread Michal Marek
On Thu, Sep 20, 2012 at 10:30:46PM +0200, Nicolas Palix wrote: This adds a 'rep+ctxt' mode which prints the warning message followed by the context. Signed-off-by: Nicolas Palix nicolas.pa...@imag.fr --- scripts/coccicheck | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH] Platform: hp-wmi: add rfkill support for integrated GPS

2012-10-11 Thread Trepák Vilmos
On Thu, 2012-10-11 at 13:34 +0100, Matthew Garrett wrote: On Thu, Oct 11, 2012 at 12:51:00PM +0200, Trepák Vilmos wrote: @@ -663,6 +669,24 @@ static int __devinit hp_wmi_rfkill_setup goto register_bluetooth_error; } + if (wireless 0x3) { +

Re: [PATCH] Platform: hp-wmi: add rfkill support for integrated GPS

2012-10-11 Thread Matthew Garrett
On Thu, Oct 11, 2012 at 03:15:47PM +0200, Trepák Vilmos wrote: On Thu, 2012-10-11 at 13:34 +0100, Matthew Garrett wrote: I don't think this bit is right - in this codepath, wireless is a mask, so 0x3 would mean wifi and bluetooth, not gps. I'd expect gps to be 0x8. And you'd expect right.

Re: Meaningless load?

2012-10-11 Thread Simon Klinkert
On 11.10.2012, at 10:13, Mike Galbraith wrote: On 11.10.2012, at 06:02, Mike Galbraith wrote: Makes perfect sense to me. Work _is_ stack this high. We don't and can't know whether the mountain is made of popcorn balls or boulders. That's the point. Afaik the D state never represents

Re: [Patch 0/1]drm_irq: Introducing the irq_thread support

2012-10-11 Thread Rob Clark
On Thu, Oct 11, 2012 at 7:07 AM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: On Wednesday 05 September 2012 15:27:24 Daniel Vetter wrote: On Wed, Sep 05, 2012 at 01:53:44AM +, Liu, Chuansheng wrote: This patch is for introducing the irq thread support in drm_irq. Why we

[PATCH] efivarfs: Implement exclusive access for {get,set}_variable

2012-10-11 Thread Jeremy Kerr
Currently, efivarfs does not enforce exclusion over the get_variable and set_variable operations. Section 7.1 of UEFI requires us to only allow a single processor to enter {get,set}_variable services at once. This change acquires the efivars-lock over calls to these operations from the efivarfs

[PATCH v2] vfs: bogus warnings in fs/namei.c

2012-10-11 Thread Arnd Bergmann
The follow_link() function always initializes its *p argument, or returns an error, but when building with 'gcc -s', the compiler gets confused by the __always_inline attribute to the function and can no longer detect where the cookie was initialized. The solution is to always initialize the

Re: [PATCH 3/3 v2] Update SmPL/Coccinelle section of MAINTAINERS

2012-10-11 Thread Michal Marek
On Thu, Sep 20, 2012 at 10:57:33PM +0200, Julia Lawall wrote: On Thu, 20 Sep 2012, Nicolas Palix wrote: This patch updates some email addresses and the new mailing list address. Signed-off-by: Nicolas Palix nicolas.pa...@imag.fr --- v2: I changed the email address of Julia to use the

Re: [RESEND PATCH] scsi: make struct scsi_varlen_cdb_hdr packed

2012-10-11 Thread Alan Cox
The alignment is fine (the offset of the u16 is 8 bytes), but unfortunately with the metag port of gcc, sizeof(struct scsi_varlen_cdb_hdr) is rounded up to a 4 byte boundary (even though the largest data member alignment is only 2 bytes), which is 12 bytes instead of 10. That sounds

Re: [RFC v3 02/13] vfs: introduce private radix tree structures

2012-10-11 Thread Zhi Yong Wu
On Wed, Oct 10, 2012 at 11:34 PM, David Sterba d...@jikos.cz wrote: On Wed, Oct 10, 2012 at 06:07:24PM +0800, zwu.ker...@gmail.com wrote: +void hot_track_init(struct super_block *sb) +{ ... +} +void hot_track_exit(struct super_block *sb) +{ + hot_cache_exit(); +} Needs to be

Re: [PATCH v4 04/14] kmem accounting basic infrastructure

2012-10-11 Thread Michal Hocko
On Thu 11-10-12 12:11:19, Michal Hocko wrote: On Mon 08-10-12 14:06:10, Glauber Costa wrote: + cgroup_lock(); + mutex_lock(set_limit_mutex); + if (!memcg-kmem_accounted val != RESOURCE_MAX) { Just a nit but wouldn't memcg_kmem_is_accounted(memcg) be better than directly checking

[PATCH] PM / devfreq: kernel-doc typo corrections

2012-10-11 Thread Nishanth Menon
Parameter documentation needs a ':' for scripts/kernel-doc to parse properly. Minor fixes for ones warned by: ./scripts/kernel-doc -text drivers/devfreq/devfreq.c/dev/null Cc: Rafael J. Wysocki r...@sisk.pl Cc: Kevin Hilman khil...@ti.com Cc: MyungJoo Ham myungjoo@samsung.com Cc: Kyungmin

[PATCH] PM / OPP: Export symbols for module usage.

2012-10-11 Thread Nishanth Menon
From: Liam Girdwood l...@ti.com Export the OPP functions for use by driver modules. Cc: Rafael J. Wysocki r...@sisk.pl Cc: Kevin Hilman khil...@ti.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org [n...@ti.com: expansion of functions exported] Signed-off-by: Nishanth Menon

[PATCH] PM / OPP: predictable fail results for opp_find* functions

2012-10-11 Thread Nishanth Menon
Currently the opp_find* functions return -ENODEV when: a) it cant find a device (e.g. request for an OPP search on device which was not registered) b) When it cant find a match for the search strategy used This makes life a little in-efficient for users such as devfreq to make reasonable

Re: [PATCH v4 10/14] memcg: use static branches when code not in use

2012-10-11 Thread Michal Hocko
On Mon 08-10-12 14:06:16, Glauber Costa wrote: We can use static branches to patch the code in or out when not used. Because the _ACTIVE bit on kmem_accounted is only set after the increment is done, we guarantee that the root memcg will always be selected for kmem charges until all call

Re: [PATCH RFC 2/2] [x86] Optimize copy_page by re-arranging instruction sequence and saving register

2012-10-11 Thread Andi Kleen
ling...@intel.com writes: From: Ma Ling ling...@intel.com Load and write operation occupy about 35% and 10% respectively for most industry benchmarks. Fetched 16-aligned bytes code include about 4 instructions, implying 1.34(0.35 * 4) load, 0.4 write. Modern CPU support 2 load and 1

Re: [RFC v3 01/13] btrfs: add one new mount option '-o hot_track'

2012-10-11 Thread Zhi Yong Wu
On Thu, Oct 11, 2012 at 12:28 AM, David Sterba d...@jikos.cz wrote: Hi, On Wed, Oct 10, 2012 at 06:07:23PM +0800, zwu.ker...@gmail.com wrote: --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -1726,6 +1726,7 @@ struct btrfs_ioctl_defrag_range_args { #define BTRFS_MOUNT_CHECK_INTEGRITY (1

Re: Local DoS through write heavy I/O on CFQ Deadline

2012-10-11 Thread Alan Cox
We have reproduced this on multiple hardware environments, using 3.2 (/proc/version_signature gives Ubuntu 3.2.0-29.46-generic 3.2.24). Anecdotally we believe the situation has worsened since 3.0. I've certainly seen this on 3.0 and 3.2, but do you still see it on 3.5/6 ? -- To unsubscribe

Re: [PATCH] efivarfs: Implement exclusive access for {get,set}_variable

2012-10-11 Thread Matt Fleming
On Thu, 2012-10-11 at 21:19 +0800, Jeremy Kerr wrote: Currently, efivarfs does not enforce exclusion over the get_variable and set_variable operations. Section 7.1 of UEFI requires us to only allow a single processor to enter {get,set}_variable services at once. This change acquires the

Re: [Request for review] Revised delete_module(2) manual page

2012-10-11 Thread Lucas De Marchi
Hi, On Thu, Oct 11, 2012 at 12:02 AM, Rusty Russell ru...@rustcorp.com.au wrote: Michael Kerrisk (man-pages) mtk.manpa...@gmail.com writes: Hello Kees, Rusty, The current delete_module(2) page is severely out of date (basically, its content corresponds to 2.4 days, and was even pretty thin

Re: kswapd0: wxcessive CPU usage

2012-10-11 Thread Valdis . Kletnieks
On Thu, 11 Oct 2012 10:52:28 +0200, Jiri Slaby said: Hi, with 3.6.0-next-20121008, kswapd0 is spinning my CPU at 100% for 1 minute or so. [8116ee05] ? put_super+0x25/0x40 [8116fdd4] ? grab_super_passive+0x24/0xa0 [8116ff99] ? prune_super+0x149/0x1b0

Re: [PATCH 1/3] Coccicheck: Add the rep+ctxt mode

2012-10-11 Thread Nicolas Palix
Hi, On Thu, Oct 11, 2012 at 3:34 PM, Michal Marek mma...@suse.cz wrote: On Thu, Sep 20, 2012 at 10:30:46PM +0200, Nicolas Palix wrote: This adds a 'rep+ctxt' mode which prints the warning message followed by the context. Signed-off-by: Nicolas Palix nicolas.pa...@imag.fr ---

RE: [PATCH] extcon : callback function to read cable property

2012-10-11 Thread anish kumar
On Thu, 2012-10-11 at 01:20 +, Tc, Jenny wrote: From: anish kumar [mailto:anish198519851...@gmail.com] Sent: Wednesday, October 10, 2012 8:15 PM To: Tc, Jenny Cc: myungjoo@samsung.com; cw00.c...@samsung.com; linux- ker...@vger.kernel.org Subject: Re: [PATCH] extcon : callback

Re: [PATCH 1/5] efivarfs: efivarfs_file_read ensure we free data in error paths

2012-10-11 Thread Jeremy Kerr
Hi Andy, Signed-off-by: Andy Whitcroft a...@canonical.com --- drivers/firmware/efivars.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Looks good to me. Acked-by: Jeremy Kerr jeremy.k...@canonical.com Cheers, Jeremy -- To unsubscribe from this list: send the line

Re: [PATCH 4/5] efivarfs: efivarfs_fill_super() ensure we free our temporary name

2012-10-11 Thread Jeremy Kerr
Hi Andy, d_alloc_name() copies the passed name to new storage, once complete we no longer need our name. Acked-by: Jeremy Kerr jeremy.k...@canonical.com Cheers, Jeremy -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH] pinctrl: remove duplicated include from pinctrl-xway.c

2012-10-11 Thread Linus Walleij
On Wed, Oct 10, 2012 at 2:59 PM, Wei Yongjun weiyj...@gmail.com wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn

[PATCH] hwmon: da9052: Use da9052_reg_update for rmw operations

2012-10-11 Thread Axel Lin
Signed-off-by: Axel Lin axel@ingics.com --- drivers/hwmon/da9052-hwmon.c | 27 +++ 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/drivers/hwmon/da9052-hwmon.c b/drivers/hwmon/da9052-hwmon.c index b8d01c5..1970494 100644 ---

Re: [PATCH 5/5] efivarfs: efivarfs_fill_super() ensure we clean up correctly on error

2012-10-11 Thread Jeremy Kerr
Hi Andy, @@ -969,16 +970,18 @@ return -ENOMEM; list_for_each_entry_safe(entry, n, efivars-list, list) { - struct inode *inode; struct dentry *dentry, *root = efivarfs_sb-s_root; - char *name; unsigned long size

Re: [GIT PULL] Disintegrate UAPI for media

2012-10-11 Thread David Howells
Mauro Carvalho Chehab mche...@infradead.org wrote: My understanding here is that, as the file location will change with this series, your original concern is now void, as userspace will require patches to use the new location. So, if we're willing to do it, let's put this one-driver-only

Re: [PATCH v2] acpi : acpi_bus_trim() stops removing devices when failing to remove the device

2012-10-11 Thread Toshi Kani
On Thu, 2012-10-11 at 19:12 +0900, Yasuaki Ishimatsu wrote: acpi_bus_trim() stops removing devices, when acpi_bus_remove() return error number. But acpi_bus_remove() cannot return error number correctly. acpi_bus_remove() only return -EINVAL, when dev argument is NULL. Thus even if device

RE: [PATCH 01/13] calk: davinci - add Main PLL clock driver

2012-10-11 Thread Karicheri, Muralidharan
-Original Message- From: Nori, Sekhar Sent: Thursday, October 11, 2012 6:16 AM To: Karicheri, Muralidharan Cc: mturque...@linaro.org; a...@arndb.de; a...@linux-foundation.org; shawn@linaro.org; rob.herr...@calxeda.com; linus.wall...@linaro.org; viresh.li...@gmail.com;

Re: [PATCH 3/5] efivarfs: efivarfs_fill_super() fix inode reference counts

2012-10-11 Thread Jeremy Kerr
Hi Andy, When d_make_root() fails it will automatically drop the reference on the root inode. We should not be doing so as well. Looks good: Acked-by: Jeremy Kerr jeremy.k...@canonical.com Cheers, Jeremy -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the

Re: [RESEND PATCH] scsi: make struct scsi_varlen_cdb_hdr packed

2012-10-11 Thread James Hogan
On 11/10/12 13:58, James Bottomley wrote: On Thu, 2012-10-11 at 12:32 +0100, James Hogan wrote: On 11/10/12 11:24, James Bottomley wrote: On Thu, 2012-10-11 at 10:15 +0100, James Hogan wrote: The struct scsi_varlen_cdb_hdr is expected to be exactly 10 bytes when used in struct osd_cdb_head,

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