Re: [PATCH 5/5] KVM: MMU: fast invalid all mmio sptes

2013-03-18 Thread Gleb Natapov
On Mon, Mar 18, 2013 at 09:25:10PM +0800, Xiao Guangrong wrote: > On 03/18/2013 09:19 PM, Gleb Natapov wrote: > > On Mon, Mar 18, 2013 at 09:09:43PM +0800, Xiao Guangrong wrote: > >> On 03/18/2013 08:46 PM, Gleb Natapov wrote: > >>> On Mon, Mar 18, 2013 at 08:29:29PM +0800, Xiao Guangrong wrote: >

RE: [PATCH 1/2] mm: Export split_page()

2013-03-18 Thread KY Srinivasan
> -Original Message- > From: Michal Hocko [mailto:mho...@suse.cz] > Sent: Monday, March 18, 2013 7:04 AM > To: KY Srinivasan > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > a...@firstfloor.org;

Re: [lm-sensors] [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-03-18 Thread Guenter Roeck
On Mon, Mar 18, 2013 at 09:02:41AM +0100, Jean Delvare wrote: > On Sun, 17 Mar 2013 06:19:33 -0700, Guenter Roeck wrote: > > On Sun, Mar 17, 2013 at 01:39:20PM +0100, Jean Delvare wrote: > > > I'd like to add something at this point. > > > > > > We have historically created the hwmon attributes

Re: request line field in the generic slave config structure

2013-03-18 Thread Arnd Bergmann
On Monday 18 March 2013, Shevchenko, Andriy wrote: > Hello! > > It seems the one (as I think good) question was left unanswered: > http://www.spinics.net/lists/arm-kernel/msg186120.html > > What is your opinions, comments? I'm not sure I understand what the question was. Is this about whether

Re: request line field in the generic slave config structure

2013-03-18 Thread Arnd Bergmann
On Monday 18 March 2013, Shevchenko, Andriy wrote: > Hello! > > It seems the one (as I think good) question was left unanswered: > http://www.spinics.net/lists/arm-kernel/msg186120.html > > What is your opinions, comments? I'm not sure I understand what the question was. Is this about whether

Re: [PATCH 5/5] KVM: MMU: fast invalid all mmio sptes

2013-03-18 Thread Xiao Guangrong
On 03/18/2013 09:27 PM, Gleb Natapov wrote: > On Mon, Mar 18, 2013 at 09:25:10PM +0800, Xiao Guangrong wrote: >> On 03/18/2013 09:19 PM, Gleb Natapov wrote: >>> On Mon, Mar 18, 2013 at 09:09:43PM +0800, Xiao Guangrong wrote: On 03/18/2013 08:46 PM, Gleb Natapov wrote: > On Mon, Mar 18,

[PATCH v2] perf: fix ring_buffer perf_output_space() boundary calculation

2013-03-18 Thread Stephane Eranian
This patch fixes a flaw in perf_output_space(). In case the size of the space needed is bigger than the actual buffer size, there may be situations where the function would return true (i.e., there is space) when it should not. head > offset due to rounding of the masking logic. The problem can

Re: [PATCH] ARM: dts: add usb 2.0 clock references to exynos5250 device tree

2013-03-18 Thread Vivek Gautam
Hi, On Fri, Mar 15, 2013 at 7:07 AM, Jingoo Han wrote: > > On Thursday, March 14, 2013 2:18 AM, Doug Anderson wrote: >> >> This is a fixup to two device tree nodes that have already landed but >> without clock nodes since the transition to common clock happened at >> the same time. >> >>

[PATCH] HID: usbhid: quirk for Realtek Multi-card reader

2013-03-18 Thread Josh Boyer
This device has an odd HID entry and causes a 10 second delay in boot. Add this device to the quirks list with HID_QUIRK_NO_INIT_REPORTS. This fixes Red Hat bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=806587 Signed-off-by: Josh Boyer --- drivers/hid/hid-ids.h | 3 +++

RE: [PATCH 2/2] Drivers: hv: balloon: Support 2M page allocations for ballooning

2013-03-18 Thread KY Srinivasan
> -Original Message- > From: Michal Hocko [mailto:mho...@suse.cz] > Sent: Monday, March 18, 2013 6:53 AM > To: KY Srinivasan > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > a...@firstfloor.org;

[PATCH] perf,x86: fix uninitialized pt_regs in intel_pmu_drain_bts_buffer()

2013-03-18 Thread Stephane Eranian
This patch fixes an uninitialized pt_regs struct in drain BTS function. The pt_regs struct is propagated all the way to the code_get_segment() function from perf_instruction_pointer() and may get garbage. We cannot simply inherit the actual pt_regs from the interrupt because BTS must be flushed

[PATCH] HID: usbhid: quirk for MSI GX680R led panel

2013-03-18 Thread Josh Boyer
This keyboard backlight device causes a 10 second delay to boot. Add it to the quirk list with HID_QUIRK_NO_INIT_REPORTS. This fixes Red Hat bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=907221 Signed-off-by: Josh Boyer --- drivers/hid/hid-ids.h | 3 +++

Re: [PATCH v2] usb: ehci-s5p: Use devm for requesting ehci_vbus_gpio

2013-03-18 Thread Vivek Gautam
Hi, On Fri, Mar 15, 2013 at 8:58 AM, Jingoo Han wrote: > On Friday, March 15, 2013 12:16 PM, Doug Anderson wrote: >> >> The ehci_vbus_gpio is requested but never freed. This can cause >> problems with deferred probes and would cause problems if >> s5p_ehci_remove was ever called. Use devm to

Re: [PATCH regression/bisected] Revert "brcmsmac: support 4313iPA"

2013-03-18 Thread Piotr Haber
On 03/18/13 11:45, David Herrmann wrote: > This reverts commit b6fc28a158076ca2764edc9a6d1e1402f56e1c0c. It breaks > wireless AP reconnection on: (14e4:4727) > Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller > > Any attempt to reconnect to an AP results in timeouts no matter

Re: [PATCH] HID: usbhid: quirk for Realtek Multi-card reader

2013-03-18 Thread Jiri Kosina
On Mon, 18 Mar 2013, Josh Boyer wrote: > This device has an odd HID entry I can't really say I understand this portion of the changelog. I will rephrase it a little bit and apply, thanks. -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH] HID: usbhid: quirk for MSI GX680R led panel

2013-03-18 Thread Jiri Kosina
On Mon, 18 Mar 2013, Josh Boyer wrote: > This keyboard backlight device causes a 10 second delay to boot. Add it > to the quirk list with HID_QUIRK_NO_INIT_REPORTS. Applied, thanks. -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH regression/bisected] Revert "brcmsmac: support 4313iPA"

2013-03-18 Thread David Herrmann
Hi Piotr On Mon, Mar 18, 2013 at 2:49 PM, Piotr Haber wrote: > On 03/18/13 11:45, David Herrmann wrote: >> This reverts commit b6fc28a158076ca2764edc9a6d1e1402f56e1c0c. It breaks >> wireless AP reconnection on: (14e4:4727) >> Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller >>

Re: [PATCH] drivers: char: ipmi: Replaced kmalloc and strcpy with kstrdup

2013-03-18 Thread Corey Minyard
On 03/16/2013 09:16 AM, Alexandru Gheorghiu wrote: Replaced calls to kmalloc followed by strcpy with a sincle call to kstrdup. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu --- drivers/char/ipmi/ipmi_msghandler.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

[PATCH 1/1] The AT24 driver only uses page size of 1 byte if no platform data is provided to the probe function. When this eeprom is detected via open firmware tree in powerpc architecture the correct

2013-03-18 Thread Sergey Gerasimov
Signed-off-by: Sergey Gerasimov --- drivers/misc/eeprom/at24.c | 50 +- 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 2baeec5..a467553 100644 ---

[PATCH 1/1] For MPC831x the bus probing function needs the fixup to assign addresses to the PCI devices as it was for MPC85xx and MPC86xx. The fixup of the bridge vendor and device ID should be done e

2013-03-18 Thread Sergey Gerasimov
Signed-off-by: Sergey Gerasimov --- arch/powerpc/sysdev/fsl_pci.c | 71 +-- 1 file changed, 34 insertions(+), 37 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index 682084d..2e41a68 100644 ---

Re: Linux IPMI subsystem hang

2013-03-18 Thread Corey Minyard
On 03/15/2013 01:57 PM, Daniel Kahn Gillmor wrote: On Tue 2013-03-12 22:23:37 -0400, Daniel Kahn Gillmor wrote: I am working with a Lenovo ThinkCentre M78, model 4865-A14, and it seems to have trouble with the IPMI subsystem. udev seems to hang for about 3 minutes at startup, ultimately

Re: [PATCH 2/2] Drivers: hv: balloon: Support 2M page allocations for ballooning

2013-03-18 Thread Michal Hocko
On Mon 18-03-13 13:44:05, KY Srinivasan wrote: > > > > -Original Message- > > From: Michal Hocko [mailto:mho...@suse.cz] > > Sent: Monday, March 18, 2013 6:53 AM > > To: KY Srinivasan > > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > > de...@linuxdriverproject.org;

Re: [PATCH] usb host: Faraday FUSBH200 HCD driver.

2013-03-18 Thread Alan Stern
On Mon, 18 Mar 2013, Felipe Balbi wrote: > On Mon, Mar 18, 2013 at 06:06:18PM +0800, Yuan-Hsin Chen wrote: > > Hi, > > > > I tried to modify fusbh200 hcd driver following ehci-platform.c. > > However, the register definition of fusbh200 is partially incompatible > > to ehci. For fusbh200, only

[GIT PULL] arm-soc fixes for v3.9-rc3

2013-03-18 Thread Arnd Bergmann
The following changes since commit 27f423fe120df3a7488dd750b4e0508f03c325b6: ARM: spear3xx: Use correct pl080 header file (2013-03-12 10:56:32 +0100) are available in the git repository at: git+ssh://gitol...@ra.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git tags/fixes for you to

Re: [PATCH] HID: usbhid: quirk for Realtek Multi-card reader

2013-03-18 Thread Josh Boyer
On Mon, Mar 18, 2013 at 02:52:32PM +0100, Jiri Kosina wrote: > On Mon, 18 Mar 2013, Josh Boyer wrote: > > > This device has an odd HID entry > > I can't really say I understand this portion of the changelog. I just took it from what Hans said in the bug. I believe I might have misunderstood.

[GIT] SELinux xfrm kmalloc fix

2013-03-18 Thread James Morris
Please apply. The following changes since commit a937536b868b8369b98967929045f1df54234323: Linux 3.9-rc3 (2013-03-17 15:59:32 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git for-linus Dan Carpenter (1): selinux:

workqueue code needing preemption disabled

2013-03-18 Thread Steven Rostedt
Hi Tejun, I'm debugging a crash on -rt that has the following: kernel BUG at kernel/sched/core.c:1731! invalid opcode: [#1] PREEMPT SMP CPU 5 Pid: 16637, comm: kworker/5:0 Not tainted 3.6.11-rt30.25.el6rt.x86_64 #1 HP ProLiant DL580 G7 RIP: 0010:[] [] __schedule+0x89a/0x8c0 RSP:

Re: + atomic-improve-atomic_inc_unless_negative-atomic_dec_unless_positive .patch added to -mm tree

2013-03-18 Thread Paul E. McKenney
On Sat, Mar 16, 2013 at 07:30:22PM +0100, Oleg Nesterov wrote: > On 03/15, Paul E. McKenney wrote: > > > > On Fri, Mar 15, 2013 at 07:34:32PM +0100, Frederic Weisbecker wrote: > > > 2013/3/15 Oleg Nesterov : > > > > > > > > My point was: should we fix atomic_add_unless() then? If not, why > > > >

Re: udelay function delays the wrong time interval in multiprocessor system, if ARCH_HAS_READ_CURRENT_TIMER is not defined and on current timer is used.

2013-03-18 Thread chpoph
On Sun, Mar 17, 2013 at 08:05:43PM +, Will Deacon wrote: >Do you actually have an ARM platform that can scale the CPU frequencies independently? Yes, my smart phone use Qualcomm's 8x25 and 8064 platform, which can scale the CPU frequencies independently. I test the delay loop, the phone

Re: [PATCH 2/2] perf tests: Add a test case for checking sw clock event frequency

2013-03-18 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 18, 2013 at 11:41:47AM +0900, Namhyung Kim escreveu: > +static int __test__sw_clock_freq(enum perf_sw_ids clock_id) > +{ > + int i, err = -1; > + volatile int tmp = 0; > + u64 total_periods = 0; > + int nr_samples = 0; > + union perf_event *event; > + struct

Re: [PATCH 00/50] staging: omap-thermal: several code refactoring

2013-03-18 Thread Eduardo Valentin
Greg, Dan, On 16-03-2013 12:16, Greg KH wrote: On Sat, Mar 16, 2013 at 08:46:03AM -0400, Eduardo Valentin wrote: Hello Dan, On 16-03-2013 05:05, Dan Carpenter wrote: I've reviewed this set. I hate to make people redo whole patchset sets, and I hate re-reviewing code. Obviously, I don't

Re: [PATCH] x86, kdump: Set crashkernel_low automatically

2013-03-18 Thread Vivek Goyal
On Mon, Mar 11, 2013 at 12:44:15PM -0700, Yinghai Lu wrote: > On Mon, Mar 11, 2013 at 12:39 PM, Yinghai Lu wrote: > > On Mon, Mar 11, 2013 at 12:38 PM, Vivek Goyal wrote: > >>> No need to use crashkernel_high, we can just cashkernel=X@Y instead. > >> > >> crashkernel=X@Y is little different. It

Stable kernel 3.8.3 appears to break displayport on intel gen4

2013-03-18 Thread Sergio Callegari
Hi, hope sending this message here is OK. In case it is not please take my apology. This is just a short note to let you know that after installing 3.8.3, display port stopped working on my laptop. Going back to 3.8.2 brought it back to life. This has been tested with the ubuntu mainline

[PATCH RFC] Support for JIT in Seccomp BPF filters.

2013-03-18 Thread Nicolas Schichan
Hi, This patch serie adds support for jitted seccomp BPF filters, with the required modifications to make it work on the ARM architecture. - The first patch in the serie adds the required boiler plate in the core kernel seccomp code to invoke the JIT compilation/free code. - The second patch

Re: [PATCH] udevadm-info: Don't access sysfs 'resource' files

2013-03-18 Thread Don Dutile
On 03/17/2013 06:28 PM, Alex Williamson wrote: On Sun, 2013-03-17 at 08:33 -0600, Myron Stowe wrote: On Sun, 2013-03-17 at 07:38 -0600, Alex Williamson wrote: On Sat, 2013-03-16 at 22:36 -0700, Greg KH wrote: On Sat, Mar 16, 2013 at 10:11:22PM -0600, Alex Williamson wrote: On Sat, 2013-03-16

[PATCH V2 1/3] seccomp: add generic code for jitted seccomp filters.

2013-03-18 Thread Nicolas Schichan
Architecture must select HAVE_SECCOMP_FILTER_JIT and implement seccomp_jit_compile() and seccomp_jit_free() if they intend to support jitted seccomp filters. struct seccomp_filter has been moved to to make its content available to the jit compilation code. In a way similar to the net BPF, the

[PATCH V2 2/3] ARM: net: bpf_jit: make code generation less dependent on struct sk_filter.

2013-03-18 Thread Nicolas Schichan
This is in preparation of bpf_jit support for seccomp filters. Signed-off-by: Nicolas Schichan --- arch/arm/net/bpf_jit_32.c | 46 - 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/arch/arm/net/bpf_jit_32.c

[PATCH V2 3/3] ARM: net: bpf_jit: add support for jitted seccomp filters.

2013-03-18 Thread Nicolas Schichan
This patch selects HAVE_SECCOMP_FILTER_JIT in the ARM Kconfig file, implements and seccomp_jit_compile() and seccomp_jit_free(), and adds support for BPF_S_ANC_SECCOMP_LD_W instruction. BPF_S_ANC_SECCOMP_LD_W instructions trigger the generation of a call to C function seccomp_bpf_load().

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-03-18 Thread Michal Hocko
On Thu 21-02-13 14:41:40, Naoya Horiguchi wrote: [...] > diff --git v3.8.orig/mm/migrate.c v3.8/mm/migrate.c > index 2fd8b4a..7d84f4c 100644 > --- v3.8.orig/mm/migrate.c > +++ v3.8/mm/migrate.c > @@ -236,6 +236,30 @@ void migration_entry_wait(struct mm_struct *mm, pmd_t > *pmd, >

Re: [PATCH] net: bluetooth: Replaced kzalloc and memcpy with kmemdup

2013-03-18 Thread Gustavo Padovan
Hi Alexandru, * Alexandru Gheorghiu [2013-03-16 16:07:10 +0200]: > Replaced calls to kzalloc followed by memcpy with a single call to kmemdup. > Patch found using coccinelle. > > Signed-off-by: Alexandru Gheorghiu > --- > net/bluetooth/a2mp.c |6 ++ > 1 file changed, 2 insertions(+),

Re: [PATCH] net: bluetooth: Use PTR_RET function

2013-03-18 Thread Gustavo Padovan
Hi Alexandru, * Alexandru Gheorghiu [2013-03-16 16:10:03 +0200]: > Used PTR_RET function instead of IS_ERR and PTR_ERR. > Patch found using coccinelle. > > Signed-off-by: Alexandru Gheorghiu > --- > net/bluetooth/hci_sysfs.c |4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-)

[PATCH 0/8] staging: [omap,ti-soc]-thermal: fixes and renaming

2013-03-18 Thread Eduardo Valentin
Hi Greg, I am sending extra patches on omap-thermal driver, under staging. There are couple of fixes based on Dan Carpenter's review on the last patch set I sent. On top of these, there are some changes on the naming convention for this driver. This rename is based on previous review cycles that

[PATCH 1/8] staging: omap-thermal: fix return value

2013-03-18 Thread Eduardo Valentin
Return the proper error value in _omap_bandgap_read_threshold. Cc: Dan Carpenter Signed-off-by: Eduardo Valentin diff --git a/drivers/staging/omap-thermal/omap-bandgap.c b/drivers/staging/omap-thermal/omap-bandgap.c index 33bfe3b..cb7aa35 100644 ---

[PATCH 2/8] staging: omap-thermal: use spin_lock_irqsave inside IRQ handler

2013-03-18 Thread Eduardo Valentin
Even if the IRQ is not firing because it is ONE_SHOT and disable at INTC level, the IRQ handler must use spin_lock_irqsave. It is necessary to disable IRQs from the current CPU while it is holding a spin_lock which is need. Cc: Dan Carpenter Signed-off-by: Eduardo Valentin diff --git

[PATCH 3/8] staging: omap-thermal: rename bg_ptr to bgp

2013-03-18 Thread Eduardo Valentin
Use a shorter name to bandgap pointer. Cc: Benoit Signed-off-by: Eduardo Valentin diff --git a/drivers/staging/omap-thermal/omap-bandgap.c b/drivers/staging/omap-thermal/omap-bandgap.c index a4ac06c..89361fe 100644 --- a/drivers/staging/omap-thermal/omap-bandgap.c +++

Re: [PATCH 1/1] For MPC831x the bus probing function needs the fixup to assign addresses to the PCI devices as it was for MPC85xx and MPC86xx. The fixup of the bridge vendor and device ID should be do

2013-03-18 Thread Kumar Gala
On Mar 18, 2013, at 8:50 AM, Sergey Gerasimov wrote: > Signed-off-by: Sergey Gerasimov > --- > arch/powerpc/sysdev/fsl_pci.c | 71 +-- > 1 file changed, 34 insertions(+), 37 deletions(-) > Can you repost with subject and commit log fixed? It appears

Re: [PATCH 5/5 v9] iommu/fsl: Freescale PAMU driver and iommu implementation.

2013-03-18 Thread Kumar Gala
On Mar 17, 2013, at 10:48 AM, Sethi Varun-B16395 wrote: >>> >>> + guts_node = of_find_compatible_node(NULL, NULL, >>> + "fsl,qoriq-device-config-1.0"); >> >> This doesn't work for T4 or B4 device trees. >> > [Sethi Varun-B16395]hmm I need to use the dcfg space for

[PATCH 5/8] staging: ti-soc-thermal: make unexported functions local

2013-03-18 Thread Eduardo Valentin
Move _ti_bandgap_write_threshold and _ti_bandgap_read_threshold to static area, as they are local functions. Signed-off-by: Eduardo Valentin diff --git a/drivers/staging/ti-soc-thermal/ti-bandgap.c b/drivers/staging/ti-soc-thermal/ti-bandgap.c index 6a0b1ac..c850e13 100644 ---

[PATCH 7/8] stating: ti-soc-thermal: use sizeof(*pointer) while allocating

2013-03-18 Thread Eduardo Valentin
Follow Documentation/CodingStyle and use sizeof(*pointer) instead of sizeof(struct type). Signed-off-by: Eduardo Valentin diff --git a/drivers/staging/ti-soc-thermal/ti-bandgap.c b/drivers/staging/ti-soc-thermal/ti-bandgap.c index b74e847..4382c0c 100644 ---

[PATCH 6/8] staging: ti-soc-thermal: split writable data from readonly data

2013-03-18 Thread Eduardo Valentin
This patch changes the data structures of this driver so that readonly data can reside only in the conf pointer. Now each register has a struct to hold its configuration info, to be used base on chip version for instance, and a struct of values to be written, like register shadow and priv data.

[PATCH 8/8] staging: ti-soc-thermal: fix several kernel-doc warnings and error

2013-03-18 Thread Eduardo Valentin
This patch updates the documentation to remove all warnings and errors reported by scripts/kernel-doc. Most are missing arguments due to wrong format. Cc: Nishanth Menon Signed-off-by: Eduardo Valentin diff --git a/drivers/staging/ti-soc-thermal/ti-bandgap.c

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-03-18 Thread Arnd Bergmann
On Sunday 17 March 2013, Jonas Jensen wrote: > Thank you for the feedback. > > Some of the changes are sure to be a challenge for me, but I want to > move this forward, and having a list helps. > > 3.2.40 is as far as it'll go right now, nothing prints to UART > starting with 3.3.8 (last tested,

Re: [PATCH] ARM: hw_breakpoint: Enable debug powerdown only if system supports 'has_ossr'

2013-03-18 Thread Will Deacon
Hi Santosh, On Mon, Mar 18, 2013 at 06:51:30AM +, Santosh Shilimkar wrote: > On Friday 15 March 2013 10:30 AM, Will Deacon wrote: > > Furthermore, I was under the impression that hw_breakpoint did actually > > work on panda, which implies that a cold boot *does* manage to reset the > >

RE: [PATCH 2/2] Drivers: hv: balloon: Support 2M page allocations for ballooning

2013-03-18 Thread KY Srinivasan
> -Original Message- > From: Michal Hocko [mailto:mho...@suse.cz] > Sent: Monday, March 18, 2013 10:13 AM > To: KY Srinivasan > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > a...@firstfloor.org;

[PATCH] net: bluetooth: Replaced kzalloc and memcpy with kmemdup

2013-03-18 Thread Alexandru Gheorghiu
Replaced calls to kzalloc followed by memcpy with a single call to kmemdup. Signed-off-by: Alexandru Gheorghiu --- net/bluetooth/a2mp.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/bluetooth/a2mp.c b/net/bluetooth/a2mp.c index eb0f4b1..17f33a6 100644 ---

Re: [PATCH 1/7] kbuild: create an "include chroot" for DT bindings

2013-03-18 Thread Shawn Guo
On Wed, Mar 06, 2013 at 11:22:57AM -0700, Stephen Warren wrote: > From: Stephen Warren > > The recent dtc+cpp support allows header files and C pre-processor > defines/macros to be used when compiling device tree files. These > headers will typically define various constants that are part of the

Re: [RFC PATCH 0/3] Perf persistent events

2013-03-18 Thread Borislav Petkov
On Mon, Mar 18, 2013 at 09:40:08AM +0100, Ingo Molnar wrote: > That definitely looks interesting and desirable. It would be nice to > have more generic/flexible semantics by using the VFS for tracing > context discovery. > > That would allow 'stateful tracing', and not just in a kernel > initiated

Re: [PATCH] net: bluetooth: Replaced kzalloc and memcpy with kmemdup

2013-03-18 Thread Gustavo Padovan
Hi Alexandru, * Alexandru Gheorghiu [2013-03-17 07:16:50 +0200]: > Replaced calls to kzalloc followed by memcpy with a single call to kmemdup. > > Signed-off-by: Alexandru Gheorghiu > --- > net/bluetooth/a2mp.c |6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) Patch has been

Re: [RFC PATCH 1/1] usb: f_rndis: Avoid to use ERROR macro if cdev can be null

2013-03-18 Thread Greg Kroah-Hartman
On Mon, Mar 18, 2013 at 09:28:07AM +0100, oskar.and...@sonymobile.com wrote: > On 21:16 Fri 08 Mar , Greg Kroah-Hartman wrote: > > On Fri, Mar 08, 2013 at 11:56:26PM +0400, Sergei Shtylyov wrote: > > > Hello. > > > > > > On 08-03-2013 16:53, oskar.and...@sonymobile.com wrote: > > > > > >

Re: linux-next: manual merge of the bcm2835 tree with the arm-soc tree

2013-03-18 Thread Stephen Warren
On 03/17/2013 10:04 PM, Stephen Rothwell wrote: > Hi Stephen, > > Today's linux-next merge of the bcm2835 tree got a conflict in > arch/arm/Kconfig between commit 15bc1fe67f66 ("ARM: cns3xxx: > enable multiplatform support") from the arm-soc tree and commit > f1ac922dec7e ("ARM: bcm2835: convert

Re: [PATCH V4] ARM: dts: add minimal DT support for DevKit8000.

2013-03-18 Thread Benoit Cousson
Hi Anil, On 03/17/2013 06:23 AM, Anil Kumar wrote: > Hi Benoit, > > On Thu, Mar 7, 2013 at 12:21 PM, Benoit Cousson wrote: >> Hi, >> >> On 03/06/2013 06:53 PM, Tony Lindgren wrote: >>> * Anil Kumar [130305 18:40]: Hi Tony, >> From: linux-arm-kernel [mailto:linux-arm-kernel-

Re: [PATCH 2/9] migrate: make core migration code aware of hugepage

2013-03-18 Thread Michal Hocko
On Thu 21-02-13 14:41:41, Naoya Horiguchi wrote: [...] > diff --git v3.8.orig/include/linux/mempolicy.h v3.8/include/linux/mempolicy.h > index 0d7df39..2e475b5 100644 > --- v3.8.orig/include/linux/mempolicy.h > +++ v3.8/include/linux/mempolicy.h > @@ -173,7 +173,7 @@ extern int mpol_to_str(char

Re: linux-next: manual merge of the tegra tree with the arm-soc tree

2013-03-18 Thread Stephen Warren
On 03/17/2013 10:31 PM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the tegra tree got a conflict in > drivers/clocksource/tegra20_timer.c between commit 1d16cfb3aeba > ("clocksource: tegra20: use the device_node pointer passed to > init") from the arm-soc tree and commit

[PATCH V3 0/7] Create sched_select_cpu() and use it for workqueues

2013-03-18 Thread Viresh Kumar
In order to save power, it would be useful to schedule light weight work on cpus that aren't IDLE instead of waking up an IDLE one. By idle cpu (from scheduler's perspective) we mean: - Current task is idle task - nr_running == 0 - wake_list is empty This is already implemented for timers as

[PATCH V3 2/7] timer: hrtimer: Don't check idle_cpu() before calling get_nohz_timer_target()

2013-03-18 Thread Viresh Kumar
Check for current cpu's idleness is already done in implementation of sched_select_cpu() which is called by get_nohz_timer_target(). So, no need to call idle_cpu() twice, once from sched_select_cpu() and once from timer and hrtimer before calling get_nohz_timer_target(). This patch removes calls

[PATCH V3 3/7] workqueue: Add helpers to schedule work on any cpu

2013-03-18 Thread Viresh Kumar
queue_work() queues work on current cpu. This may wake up an idle CPU, which is actually not required. Some of these works can be processed by any CPU and so we must select a non-idle CPU here. The initial idea was to modify implementation of queue_work(), but that may end up breaking lots of

[PATCH V3 4/7] PHYLIB: queue work on any cpu

2013-03-18 Thread Viresh Kumar
Phylib uses workqueues for multiple purposes. There is no real dependency of scheduling these on the cpu which scheduled them. On a idle system, it is observed that and idle cpu wakes up many times just to service this work. It would be better if we can schedule it on a cpu which isn't idle to

[PATCH V3 5/7] mmc: queue work on any cpu

2013-03-18 Thread Viresh Kumar
mmc uses workqueues for running mmc_rescan(). There is no real dependency of scheduling these on the cpu which scheduled them. On a idle system, it is observed that and idle cpu wakes up many times just to service this work. It would be better if we can schedule it on a cpu which isn't idle to

[PATCH V3 6/7] block: queue work on any cpu

2013-03-18 Thread Viresh Kumar
block layer uses workqueues for multiple purposes. There is no real dependency of scheduling these on the cpu which scheduled them. On a idle system, it is observed that and idle cpu wakes up many times just to service this work. It would be better if we can schedule it on a cpu which isn't idle

[PATCH V3 7/7] fbcon: queue work on any cpu

2013-03-18 Thread Viresh Kumar
fbcon uses workqueues and it has no real dependency of scheduling these on the cpu which scheduled them. On a idle system, it is observed that and idle cpu wakes up few times just to service this work. It would be better if we can schedule it on a cpu which isn't idle to save on power. By idle

Re: [rttest] WARNING: at drivers/base/core.c:569 device_create_file()

2013-03-18 Thread Greg Kroah-Hartman
ttest': add device rttest0 > [ 11.581813] [ cut here ] > [ 11.582568] WARNING: at /c/kernel-tests/src/linux/drivers/base/core.c:569 > device_create_file+0x5a/0xa0() > [ 11.584035] Write permission without 'store' > [ 11.584793] Pid: 1, comm: swapper/0 Not

Re: udelay function delays the wrong time interval in multiprocessor system, if ARCH_HAS_READ_CURRENT_TIMER is not defined and on current timer is used.

2013-03-18 Thread Russell King - ARM Linux
On Mon, Mar 18, 2013 at 10:40:56PM +0800, chpoph wrote: > On Sun, Mar 17, 2013 at 08:05:43PM +, Will Deacon wrote: > >Do you actually have an ARM platform that can scale the CPU frequencies > independently? > > Yes, my smart phone use Qualcomm's 8x25 and 8064 platform, which can > scale the

Re: sctp: hang in sctp_remaddr_seq_show

2013-03-18 Thread Eric Dumazet
On Mon, 2013-03-18 at 07:04 -0400, Neil Horman wrote: > I'm not sure why the process would never get back to the schedule, but looking > at the sctp_remaddr_seq_show function, I think that we should convert this > sequence: > sctp_local_bh_disable(); > read_lock(>lock); >

Re: [PATCH] efivarfs: fix abnormal GUID in variable name by using strcpy to replace null with dash

2013-03-18 Thread Matt Fleming
On 03/11/2013 01:17 PM, joeyli wrote: > Sorry for after I wrote patch, I think it's better we still use your > original patch to fix this bug, because I found the > efi_variable->VariableName allocated 1024 size and it also used by old > vars system. > > The following is my patch for reference,

[PATCH V3 1/7] sched: Create sched_select_cpu() to give preferred CPU for power saving

2013-03-18 Thread Viresh Kumar
In order to save power, it would be useful to schedule light weight work on cpus that aren't IDLE instead of waking up an IDLE one. By idle cpu (from scheduler's perspective) we mean: - Current task is idle task - nr_running == 0 - wake_list is empty This is already implemented for timers as

Re: [GIT PULL] arm-soc fixes for v3.9-rc3

2013-03-18 Thread Linus Torvalds
On Mon, Mar 18, 2013 at 7:22 AM, Arnd Bergmann wrote: > > are available in the git repository at: > > git+ssh://gitol...@ra.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git > tags/fixes What the heck happened to your script? Please use the public address so that others could look at it if

Re: sctp: hang in sctp_remaddr_seq_show

2013-03-18 Thread Vlad Yasevich
On 03/18/2013 11:25 AM, Eric Dumazet wrote: On Mon, 2013-03-18 at 07:04 -0400, Neil Horman wrote: I'm not sure why the process would never get back to the schedule, but looking at the sctp_remaddr_seq_show function, I think that we should convert this sequence: sctp_local_bh_disable();

Re: [PATCH 2/9] migrate: make core migration code aware of hugepage

2013-03-18 Thread Michal Hocko
On Mon 18-03-13 16:22:24, Michal Hocko wrote: > On Thu 21-02-13 14:41:41, Naoya Horiguchi wrote: > [...] > > diff --git v3.8.orig/include/linux/mempolicy.h > > v3.8/include/linux/mempolicy.h > > index 0d7df39..2e475b5 100644 > > --- v3.8.orig/include/linux/mempolicy.h > > +++

Re: [PATCH] x86, kdump: Set crashkernel_low automatically

2013-03-18 Thread Vivek Goyal
On Mon, Mar 18, 2013 at 10:46:03AM -0400, Vivek Goyal wrote: > On Mon, Mar 11, 2013 at 12:44:15PM -0700, Yinghai Lu wrote: > > On Mon, Mar 11, 2013 at 12:39 PM, Yinghai Lu wrote: > > > On Mon, Mar 11, 2013 at 12:38 PM, Vivek Goyal wrote: > > >>> No need to use crashkernel_high, we can just

[bugfix] mm: zone_end_pfn is too small

2013-03-18 Thread Russ Anderson
Booting with 32 TBytes memory hits BUG at mm/page_alloc.c:552! (output below). The key hint is "page 4294967296 outside zone". 4294967296 = 0x1 (bit 32 is set). The problem is in include/linux/mmzone.h: 530 static inline unsigned zone_end_pfn(const struct zone *zone) 531 { 532

Re: [PATCH 2/9] vfs: export do_splice_direct() to modules

2013-03-18 Thread Jan Kara
On Sun 17-03-13 13:06:59, David Howells wrote: > Miklos Szeredi wrote: > > > Export do_splice_direct() to modules. Needed by overlay filesystem. > > Apparently you cannot call this from any function that is holding an i_mutex > if the target of the splice uses generic_file_splice_write(). > >

Re: [PATCH V3 1/7] sched: Create sched_select_cpu() to give preferred CPU for power saving

2013-03-18 Thread Frederic Weisbecker
2013/3/18 Viresh Kumar : > In order to save power, it would be useful to schedule light weight work on > cpus > that aren't IDLE instead of waking up an IDLE one. > > By idle cpu (from scheduler's perspective) we mean: > - Current task is idle task > - nr_running == 0 > - wake_list is empty > >

Re: Revert a bunch of patches in stable kernels

2013-03-18 Thread Daniel Vetter
On Mon, Mar 18, 2013 at 11:05 AM, Daniel Vetter wrote: > Hi Greg, > > So a recent stable backport to fix rc6 on ilk (which is disabled by > default and with dubious power savings at best, unlike rc6 on snb and > later) totally blew up all over the place: >

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-18 Thread Michal Hocko
On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: > This patch extends check_range() to handle vma with VM_HUGETLB set. > With this changes, we can migrate hugepage with migrate_pages(2). > Note that for larger hugepages (covered by pud entries, 1GB for > x86_64 for example), we simply skip it now.

Re: [PATCH] checkpatch: stop checking for CONFIG_EXPERIMENTAL

2013-03-18 Thread Paul Bolle
On Sat, 2013-03-16 at 15:38 -0700, Kees Cook wrote: > Hrm, I actually think it would be better to change this to ERROR > instead of WARN. I figured the main reason to add this warning was to prevent people to add dependencies on EXPERIMENTAL while you were cleaning the tree, which could mean you

Re: [PATCH] HID: usbhid: quirk for MSI GX680R led panel

2013-03-18 Thread Josh Boyer
On Mon, Mar 18, 2013 at 02:54:58PM +0100, Jiri Kosina wrote: > On Mon, 18 Mar 2013, Josh Boyer wrote: > > > This keyboard backlight device causes a 10 second delay to boot. Add it > > to the quirk list with HID_QUIRK_NO_INIT_REPORTS. > > Applied, thanks. Ugh. Typo in this patch that prevents

Re: [PATCH V3 1/7] sched: Create sched_select_cpu() to give preferred CPU for power saving

2013-03-18 Thread Viresh Kumar
On Mon, Mar 18, 2013 at 9:09 PM, Frederic Weisbecker wrote: > 2013/3/18 Viresh Kumar : >> +static inline int sched_select_cpu(unsigned int sd_flags) >> +{ >> + return raw_smp_processor_id(); > > I feel this should be symetric with the requirement of having > preemption disabled as in the

[PATCH v2] HID: usbhid: quirk for MSI GX680R led panel

2013-03-18 Thread Josh Boyer
This keyboard backlight device causes a 10 second delay to boot. Add it to the quirk list with HID_QUIRK_NO_INIT_REPORTS. This fixes Red Hat bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=907221 Signed-off-by: Josh Boyer --- v2: Fix typo in vendor define drivers/hid/hid-ids.h

Re: [PATCH] ARM: hw_breakpoint: Enable debug powerdown only if system supports 'has_ossr'

2013-03-18 Thread Santosh Shilimkar
On Monday 18 March 2013 08:37 PM, Will Deacon wrote: > Hi Santosh, > > On Mon, Mar 18, 2013 at 06:51:30AM +, Santosh Shilimkar wrote: >> On Friday 15 March 2013 10:30 AM, Will Deacon wrote: >>> Furthermore, I was under the impression that hw_breakpoint did actually >>> work on panda, which

Re: [PATCH 1/7] kbuild: create an "include chroot" for DT bindings

2013-03-18 Thread Stephen Warren
On 03/18/2013 09:13 AM, Shawn Guo wrote: > On Wed, Mar 06, 2013 at 11:22:57AM -0700, Stephen Warren wrote: >> From: Stephen Warren >> >> The recent dtc+cpp support allows header files and C pre-processor >> defines/macros to be used when compiling device tree files. These >> headers will

Re: linux-next: manual merge of the tegra tree with the arm-soc tree

2013-03-18 Thread Arnd Bergmann
On Monday 18 March 2013, Stephen Warren wrote: > On 03/17/2013 10:31 PM, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the tegra tree got a conflict in > > drivers/clocksource/tegra20_timer.c between commit 1d16cfb3aeba > > ("clocksource: tegra20: use the device_node

Re: [PATCH 9/9] remove /proc/sys/vm/hugepages_treat_as_movable

2013-03-18 Thread Michal Hocko
On Thu 21-02-13 14:41:48, Naoya Horiguchi wrote: > Now hugepages are definitely movable. So allocating hugepages from > ZONE_MOVABLE is natural and we have no reason to keep this parameter. The sysctl is a part of user interface so you shouldn't remove it right away. What we can do is to make it

Re: [GIT PULL] arm-soc fixes for v3.9-rc3

2013-03-18 Thread Arnd Bergmann
On Monday 18 March 2013, Linus Torvalds wrote: > On Mon, Mar 18, 2013 at 7:22 AM, Arnd Bergmann wrote: > > > > are available in the git repository at: > > > > git+ssh://gitol...@ra.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git > > tags/fixes > > What the heck happened to your script? >

[PATCH] drm/i915: stop using GMBUS IRQs on Gen4 chips (was Re: [3.9-rc1] irq 16: nobody cared (was [3.9-rc1] very poor interrupt responses))

2013-03-18 Thread Jiri Kosina
Okay, so I think that for 3.9 we want the patch below, and if eventually hardware root cause / workaround is found for GM45, we can have it merged later. From: Jiri Kosina Subject: [PATCH] drm/i915: stop using GMBUS IRQs on Gen4 chips Commit 28c70f162 ("drm/i915: use the gmbus irq for

[patch] mm: speedup in __early_pfn_to_nid

2013-03-18 Thread Russ Anderson
When booting on a large memory system, the kernel spends considerable time in memmap_init_zone() setting up memory zones. Analysis shows significant time spent in __early_pfn_to_nid(). The routine memmap_init_zone() checks each PFN to verify the nid is valid. __early_pfn_to_nid() sequentially

Re: [PATCH] HID: usbhid: quirk for MSI GX680R led panel

2013-03-18 Thread Jiri Kosina
On Mon, 18 Mar 2013, Josh Boyer wrote: > > > This keyboard backlight device causes a 10 second delay to boot. Add it > > > to the quirk list with HID_QUIRK_NO_INIT_REPORTS. > > > > Applied, thanks. > > Ugh. Typo in this patch that prevents it from building. I shall hang > my head in shame

Re: [PATCH V3 1/7] sched: Create sched_select_cpu() to give preferred CPU for power saving

2013-03-18 Thread Frederic Weisbecker
2013/3/18 Viresh Kumar : > On Mon, Mar 18, 2013 at 9:09 PM, Frederic Weisbecker > wrote: >> 2013/3/18 Viresh Kumar : > >>> +static inline int sched_select_cpu(unsigned int sd_flags) >>> +{ >>> + return raw_smp_processor_id(); >> >> I feel this should be symetric with the requirement of

Re: Stable kernel 3.8.3 appears to break displayport on intel gen4

2013-03-18 Thread Bjørn Mork
Sergio Callegari writes: > This is just a short note to let you know that after installing 3.8.3, > display port stopped working on my laptop. Going back to 3.8.2 brought > it back to life. > This has been tested with the ubuntu mainline kernels that should be > vanilla stable kernels. Hope this

Re: [PATCH] pm: print the name of failed suspend function for platform device

2013-03-18 Thread Greg KH
On Mon, Mar 18, 2013 at 01:58:23PM +0800, Li Fei wrote: > > Print more info when platform device suspend function failed. > Without this patch, we can not get the real platform device suspend > API info. > > Example without this patch: > pm_op(): platform_pm_suspend+0x0/0x50 returns -11 > PM:

Re: [PATCH 0/2] finx argv_split() vs sysctl race

2013-03-18 Thread Oleg Nesterov
On 03/17, Oleg Nesterov wrote: > > Ah, I didn't mean the patch makes sense because of optimization. My > point was, we can fix the race without making this code worse (in fact > it tries to make the code better but this is subjective). OK, I am stupid. argv_free() passes the wrong poiinter to

<    7   8   9   10   11   12   13   14   15   16   >