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 writes: > > > > > I've just released Linux 2.6.32.60. > > > > > This release contains, among others, a number of

[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 --- After spending hours trying to get GPS working on my laptop, poring over AT command set documentations and brute-for

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

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 :) > > T

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 writes: > > Il 09/10/2012 06:59, Rusty Russell ha scritto: > >> Paolo Bonzini writes: > >>> Il 05/10/2012 07:43, Rusty Russell ha scritto: > That's good. But virtio_blk's scsi command is insoluble AFAICT. As I >

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 shoul

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 = da9

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: unable

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

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 trigge

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 > > :

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 Acked-by: Paolo Bonzini > --- > include/linux/v

[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 --- 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 --- a/drivers/mfd/twl6040-c

[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 --- drivers/mfd/Makefile | 2 +- drivers/mfd/{twl6040-core.c => twl6040.c} | 0 2 files changed, 1 insertion(+), 1 del

[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 --- 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 3f2a1cf..b220aa2 100644

[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 --- drivers/mfd/Kconfig | 4 +- drivers/mfd/Makefile| 2 +- drivers/mfd/twl6040-core.c | 55 drivers/mfd/twl6040-irq.c | 205

[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 --- drivers/mfd/twl6040-core.c | 52 +++

[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 --- drivers/mfd/twl6040-core.c | 38 ++ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/drivers/mfd/twl6040-core.c b/drivers/mfd/twl6040-core.c index a46d987.

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

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 > /* Since we request GPIOs from ourself */ > #include > +#include > > #include > This patch just showed up in linux-next

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 (re

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-ps

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 arch

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 generat

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 escreveu: > Mauro Carvalho Chehab wrote: > > Em Tue, 09 Oct 2012 14:30:24 +0100 > > David Howells escreveu: > > > > > Can you merge the following branch into the media tree please. > > > > > > This is to complete part of the Userspace API (UAP

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 wrote: > From: Andi Kleen > > Signed-off-by: Andi Kleen > --- > arch/frv/kernel/setup.c |2 +- > arch/frv/mb93090-mb00/pci-irq.c |2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/frv/kernel/setup.c b/arch/

Re: [PATCH -next] staging: dgrp: Add missing #include

2012-10-11 Thread Geert Uytterhoeven
On Thu, Sep 27, 2012 at 8:38 PM, Geert Uytterhoeven 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: implicit declaration of

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

2012-10-11 Thread Matthew Garrett
For the set: Acked-by: Matthew Garrett -- 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 Please read the FAQ

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 funct

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

2012-10-11 Thread Linus Walleij
From: Linus Walleij 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 the legacy platform, to av

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 ha

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 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 Linux beyond ia32 -

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 > > Signed-off-by: Julia Lawall > > --- > scripts/coccinelle/tests/odd_ptr_err.cocci | 65 > + Looks like I missed this one. I applied it to kbuild.git#misc now. thanks, Michal --

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 re

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 m

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 >*/ > > pleas

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 > > 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. >

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. So

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 > 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 of asm/kvm

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

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 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__ conditionals. If t

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 mem_cgro

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_atomi

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 > --- > scripts/coccicheck | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/scripts/coccicheck b/s

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

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

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 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 need irq thread in drm_

[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 p

[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 point

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 > >--- > >v2: I changed the email address of Julia to use the capitalized

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. > > Th

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 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 e

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 > dire

[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" Cc: Kevin Hilman Cc: MyungJoo Ham Cc: Kyungmin Park Cc: linux-kernel@vger.kernel.org Cc: linux..

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

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

[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 judgem

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 > > 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 write per cycle,

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 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 << 2

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 wrote: > "Michael Kerrisk (man-pages)" 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 in >> covering that). So, I took

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. > [] ? put_super+0x25/0x40 > [] ? grab_super_passive+0x24/0xa0 > [] ? prune_super+0x149/0x1b0 > [] ? shrink_slab+0xa1/0x2d0 > [] ? kswapd+0x66d/0x

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 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 >> --- >> scripts/coccicheck | 3 +++ >> 1 fil

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 :

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 > --- > drivers/firmware/efivars.c |6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > Looks good to me. Acked-by: Jeremy Kerr Cheers, Jeremy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

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 Cheers, Jeremy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo inf

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 wrote: > From: Wei Yongjun > > Remove duplicated include. > > dpatch engine is used to auto generate this patch. > (https://github.com/weiyj/dpatch) > > Signed-off-by: Wei Yongjun Applied to my fixes branch, unless John C has objections, I'll keep i

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

2012-10-11 Thread Axel Lin
Signed-off-by: Axel Lin --- 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 --- a/drivers/hwmon/da9052-hwmon.c +++ b/drivers/hw

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 si

Re: [GIT PULL] Disintegrate UAPI for media

2012-10-11 Thread David Howells
Mauro Carvalho Chehab 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 obsolete API on a sepa

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 c

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.co

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 Cheers, Jeremy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord

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 os

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

2012-10-11 Thread Karicheri, Muralidharan
>> -Original Message- >> From: Nori, Sekhar >> Sent: Thursday, October 11, 2012 6:35 AM >> To: Nori, Sekhar >> Cc: Karicheri, Muralidharan; Hilman, Kevin; davinci-linux-open- >> sou...@linux.davincidsp.com; mturque...@linaro.org; >> linux-c6x-...@linux-c6x.org; >> a...@arndb.de; linus.wall

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

2012-10-11 Thread Jeremy Kerr
Hi Andy, Looks good. Thanks for taking the time to review the efivarfs changes. Acked-by: Jeremy Kerr Cheers, Jeremy -- 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

[PATCH 1/2] input: gpio-keys: Disable hardware on suspend

2012-10-11 Thread Lee Jones
From: Jonas Aaberg Disable hardware if active when suspending if the hw can not wake the system from suspend. Cc: Dmitry Torokhov Cc: linux-in...@vger.kernel.org Acked-by: Lee Jones Signed-off-by: Jonas Aaberg Signed-off-by: Philippe Langlais Reviewed-by: Bengt Jonsson --- drivers/input/ke

[PATCH 2/2] input: gpio-keys: Add runtime support

2012-10-11 Thread Lee Jones
From: Jonas Aaberg Cc: Dmitry Torokhov Cc: linux-in...@vger.kernel.org Acked-by: Lee Jones Signed-off-by: Jonas Aaberg Signed-off-by: Philippe Langlais Reviewed-by: Bengt Jonsson --- drivers/input/keyboard/gpio_keys.c | 16 1 file changed, 12 insertions(+), 4 deletions(-)

[Q] Default SLAB allocator

2012-10-11 Thread Ezequiel Garcia
Hello, While I've always thought SLUB was the default and recommended allocator, I'm surprise to find that it's not always the case: $ find arch/*/configs -name "*defconfig" | wc -l 452 $ grep -r "SLOB=y" arch/*/configs/ | wc -l 11 $ grep -r "SLAB=y" arch/*/configs/ | wc -l 245 This shows that

Re: [PATCH v4 12/14] execute the whole memcg freeing in free_worker

2012-10-11 Thread Michal Hocko
On Mon 08-10-12 14:06:18, Glauber Costa wrote: > A lot of the initialization we do in mem_cgroup_create() is done with > softirqs enabled. This include grabbing a css id, which holds > &ss->id_lock->rlock, and the per-zone trees, which holds > rtpz->lock->rlock. All of those signal to the lockdep m

Re: [PATCH 2/2] input: gpio-keys: Add runtime support

2012-10-11 Thread Shubhrajyoti Datta
On Thu, Oct 11, 2012 at 7:45 PM, Lee Jones wrote: > From: Jonas Aaberg Some change logs would have helped. > > Cc: Dmitry Torokhov > Cc: linux-in...@vger.kernel.org > Acked-by: Lee Jones > Signed-off-by: Jonas Aaberg > Signed-off-by: Philippe Langlais > Reviewed-by: Bengt Jonsson > --- > d

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

2012-10-11 Thread Guenter Roeck
On Thu, Oct 11, 2012 at 10:03:51PM +0800, Axel Lin wrote: > Signed-off-by: Axel Lin > --- > drivers/hwmon/da9052-hwmon.c | 27 +++ > 1 file changed, 7 insertions(+), 20 deletions(-) > Applied to -next. Thanks, Guenter -- To unsubscribe from this list: send the line "un

[GIT PULL] sound updates #2 for 3.7-rc1

2012-10-11 Thread Takashi Iwai
Linus, The following changes since commit 7ff34ad80b7080fafaac8efa9ef0061708eddd51: ALSA: hda - Add new codec ALC283 ALC290 support (2012-10-06 17:02:30 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-3.7 for you to fe

[char-misc-next V2] mei: use mei_io_cb_ warppers also for control flows

2012-10-11 Thread Tomas Winkler
move the mei_io_cb_ wrappers to to iorw.c for global use and use them also for handling control flows Signed-off-by: Tomas Winkler --- V2: warning fix: remove unused variable in mei_io_cb_init drivers/misc/mei/init.c|4 +- drivers/misc/mei/iorw.c| 117 ++

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 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 << 2

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

2012-10-11 Thread Konrad Rzeszutek Wilk
On Thu, Oct 11, 2012 at 08:29:08PM +0800, ling...@intel.com wrote: > From: Ma Ling > > 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

Re: [PATCH v4 14/14] Add documentation about the kmem controller

2012-10-11 Thread Michal Hocko
On Mon 08-10-12 14:06:20, Glauber Costa wrote: > Signed-off-by: Glauber Costa > --- > Documentation/cgroups/memory.txt | 55 > +++- > 1 file changed, 54 insertions(+), 1 deletion(-) > > diff --git a/Documentation/cgroups/memory.txt > b/Documentation/cgroups/

[PATCH] pinctrl/nomadik: always use the simple irqdomain

2012-10-11 Thread Linus Walleij
From: Linus Walleij Since the simple irqdomain will fall back to a linear domain if the first_irq provided is <= 0, just use this, just make sure the first_irq is negative in the device tree case. Cc: Lee Jones Cc: Rob Herring Signed-off-by: Linus Walleij --- drivers/pinctrl/pinctrl-nomadik.

Re: [PATCH 03/10] x86, mm: get early page table from BRK

2012-10-11 Thread Konrad Rzeszutek Wilk
On Wed, Oct 10, 2012 at 08:49:05AM -0700, Yinghai Lu wrote: > On Wed, Oct 10, 2012 at 7:17 AM, Konrad Rzeszutek Wilk > wrote: > > On Tue, Oct 09, 2012 at 06:03:33PM -0700, Yinghai Lu wrote: > > >> good point, i add one line comment to the revised patch. > >> > >> +/* need 3 4k for initial PMD_SIZ

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

2012-10-11 Thread David Sterba
On Thu, Oct 11, 2012 at 10:35:28PM +0800, Zhi Yong Wu wrote: > >> --- a/fs/btrfs/super.c > >> +++ b/fs/btrfs/super.c > >> @@ -303,7 +304,7 @@ enum { > >> Opt_notreelog, Opt_ratio, Opt_flushoncommit, Opt_discard, > >> Opt_space_cache, Opt_clear_cache, Opt_user_subvol_rm_allowed, > >>

Re: [PATCH 4/4] mtd: nand: omap2: Add data correction support

2012-10-11 Thread Tony Lindgren
* Ivan Djelic [121011 01:23]: > > I don't know which way is better for the OMAP community: > 1. Unifying ECC modes = loosing the constant polynomial benefits, but gaining > RBL compat and simplifying code > 2. Keeping separate ECC modes = code bloat > > Tony, do you have an opinion on this ? W

[PATCH] Boottime: A tool for automatic measurement of kernel/bootloader boot time

2012-10-11 Thread Lee Jones
From: Jonas Aaberg The overhead is very low and the results will be found under sysfs/bootime, as well as detailed results in debugfs under boottime/. The bootgraph* files are compatible with scripts/bootgraph.pl. The reason for this patch is to provide data (sysfs/boottime) suitable for automati

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 10:41 PM, David Sterba wrote: > On Thu, Oct 11, 2012 at 10:35:28PM +0800, Zhi Yong Wu wrote: >> >> --- a/fs/btrfs/super.c >> >> +++ b/fs/btrfs/super.c >> >> @@ -303,7 +304,7 @@ enum { >> >> Opt_notreelog, Opt_ratio, Opt_flushoncommit, Opt_discard, >> >> Opt_spac

Re: regression in bonding driver with VLAN challenged interfaces when 8021q module is loaded

2012-10-11 Thread Jon Stanley
On Thu, Oct 11, 2012 at 10:28 AM, Jon Stanley wrote: > This specifically affects IPoIB interfaces in a bond if you do a > down/up cycle on the bond post-boot (during boot, the bonding module > is loaded prior to the 8021q module, so everything is fine). I hate replying to myself, but I've just b

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

2012-10-11 Thread Marcelo Tosatti
On Thu, Oct 11, 2012 at 09:06:12PM +0800, Xiao Guangrong wrote: > 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 e

<    1   2   3   4   5   6   >