Re:[PATCH]sched/rt: Do not try to push tasks if pinned task switches to RT

2013-01-29 Thread Kirill Tkhai
> On Tue, 2013-01-29 at 00:23 +0400, Kirill Tkhai wrote: > >> Just switched pinned task is not able to be pushed. If the rq had had >> several RT tasks before they have already been considered as candidates >> to be pushed (or pulled). > > Thanks, but I have one minor nit. > >> Signed-off-by:

Re: [RFC] arm: use built-in byte swap function

2013-01-29 Thread Woodhouse, David
On Tue, 2013-01-29 at 14:13 +, Russell King - ARM Linux wrote: > > So, this compiler (4.5.4) has support for 32-bit and 64-bit bswaps > across all our architectures, but not the 16-bit ones. That observation is consistent with my dig through GCC history. I had come to the conclusion that the

[PATCH V3] cpufreq: Simplify cpufreq_add_dev()

2013-01-29 Thread Viresh Kumar
Currently cpufreq_add_dev() firsts allocates policy, calls driver->init() and then checks if this cpu is already managed or not. And if it is already managed, free its policy. We can save all this if we somehow know cpu is managed or not in advance. policy->related_cpus contains list of all valid

linux-next: new arch/metag tree

2013-01-29 Thread James Hogan
Hi Stephen, Please can you add the following branch to linux-next for Meta architecture support: git://github.com/jahogan/metag-linux.git for-next (this is currently v4 of the patchset excluding the last two patches, the tty and fs drivers, as I'd like acks first). Thanks James -- To

Re: [PATCH 1/2] cpufreq: Set policy->related_cpus to atleast policy->cpus

2013-01-29 Thread Viresh Kumar
On 29 January 2013 17:21, Rafael J. Wysocki wrote: > On Tuesday, January 29, 2013 10:09:59 AM Viresh Kumar wrote: >> With the addition of following patch, related_cpus is required to be set by >> cpufreq platform drivers: >> >> commit c1070fd743533efb54e98142252283583f379190 >> Author: Viresh

Re: [PATCH] Tracepoint Event: Add 4 tracepoint events for vfs subsystem.

2013-01-29 Thread Steven Rostedt
On Tue, 2013-01-29 at 15:25 +0800, chenggang wrote: > --- > include/trace/events/vfs.h | 110 > > mm/filemap.c | 18 > 2 files changed, 128 insertions(+) > create mode 100644 include/trace/events/vfs.h > > diff --git

Re: [PATCH v5 16/20] scripts/gdb: Add internal helper and convenience function for per-cpu lookup

2013-01-29 Thread Jan Kiszka
On 2013-01-29 15:12, Borislav Petkov wrote: > On Tue, Jan 29, 2013 at 02:56:56PM +0100, Jan Kiszka wrote: >> Let me guess: You are dumping a weird QEMU/KVM CPU, right? > > Nah, I actually have the silicon! :-) > > Joking, of course. I wish. I'm booting the guest with -cpu phenom (it > has been

[PATCH] block: fix ext_devt_idr handling

2013-01-29 Thread Tomas Henzl
While adding and removing a lot of disks disks and partitions this sometimes shows up - WARNING: at fs/sysfs/dir.c:512 sysfs_add_one+0xc9/0x130() (Not tainted) Hardware name: sysfs: cannot create duplicate filename '/dev/block/259:751' Modules linked in: raid1 autofs4 bnx2fc cnic uio fcoe libfcoe

Re: [RFC] arm: use built-in byte swap function

2013-01-29 Thread Russell King - ARM Linux
On Mon, Jan 28, 2013 at 07:30:33PM -0600, Kim Phillips wrote: > AFAICT, arm gcc got __builtin_bswap{32,64} support in 4.6, > and for the 16-bit version in 4.8. Hmm. $ /usr/local/aeabi/bin/arm-linux-gcc --version arm-linux-gcc (GCC) 4.5.4 Copyright (C) 2010 Free Software Foundation, Inc. This is

Re: [PATCH v3] PCI: Document PCIE BUS MPS parameters

2013-01-29 Thread Jon Mason
On Mon, Jan 28, 2013 at 11:09 PM, Yijing Wang wrote: > On 2013/1/29 13:00, Jon Mason wrote: >> On Fri, Jan 25, 2013 at 2:36 AM, Yijing Wang wrote: >>> v0->v1: Update MPS parameters as non-arch and add MRRS >>> description into pcie_bus_perf parameter suggested >>>

[PATCH v4 00/43] Meta Linux Kernel Port

2013-01-29 Thread James Hogan
This patchset adds core architecture support to Linux for Imagination's Meta ATP (Meta 1) and HTP (Meta 2) processor cores. I'm now happy with this patchset as it is. Not a lot has changed since v3 (see below), which is why I've only included patches which have changed in non-trivial ways, namely

[PATCH v4 43/43] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-01-29 Thread James Hogan
Add the IMG Debug Adapter File System (DAFS) for metag, which uses SWITCH operations to communicate with a file server on a host computer via a JTAG debug adapter. Signed-off-by: James Hogan Cc: Alexander Viro Cc: Andrew Morton Cc: Mauro Carvalho Chehab Cc: Cesar Eduardo Barros Cc: Joe

[PATCH v4 21/43] metag: Time keeping

2013-01-29 Thread James Hogan
Add time keeping code for metag. Meta hardware threads have 2 timers. The background timer (TXTIMER) is used as a free-running time base, and the interrupt timer (TXTIMERI) is used for the timer interrupt. Both counters traditionally count at approximately 1MHz. Signed-off-by: James Hogan Cc:

[PATCH v4 19/43] metag: Device tree

2013-01-29 Thread James Hogan
Add device tree files to arch/metag. Signed-off-by: James Hogan Cc: Grant Likely Cc: Rob Herring Cc: devicetree-disc...@lists.ozlabs.org Cc: Sam Ravnborg --- v4: * move dtb directory into dts and use common dtb rules (Rob Herring) arch/metag/boot/dts/Makefile | 16 ++

[PATCH v4 42/43] tty/metag_da: Add metag DA TTY driver

2013-01-29 Thread James Hogan
Add a TTY driver for communicating over a Meta DA (Debug Adapter) channel using the bios channel SWITCH operation. Signed-off-by: James Hogan Cc: Alan Cox Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Andrew Morton Cc: Mauro Carvalho Chehab Cc: Cesar Eduardo Barros Cc: Joe Perches Cc: "David

Re: [PATCH v5 00/20] Add gdb python scripts as kernel debugging helpers

2013-01-29 Thread Borislav Petkov
On Tue, Jan 29, 2013 at 01:37:43PM +0100, Jan Kiszka wrote: > Version 5 comes with the following changes: > - moved tutorial into Documentation/gdb-kernel-debugging.txt > - improved caching of gdb.Type objects, ensure they are in sync with >currently loaded symbols > - added new functions

[PATCH v4 26/43] metag: Scheduling/Process management

2013-01-29 Thread James Hogan
Signed-off-by: James Hogan --- v4: * fix idle race (requires use of inline asm to trigger irq entry rather than SWITCH instruction) (Arnd) arch/metag/include/asm/thread_info.h | 155 arch/metag/kernel/process.c | 461 ++ 2 files

Re: [git pull] Please pull powerpc.git merge branch

2013-01-29 Thread Geert Uytterhoeven
On Tue, Jan 29, 2013 at 1:09 AM, Benjamin Herrenschmidt wrote: > On Mon, 2013-01-28 at 16:03 -0800, Linus Torvalds wrote: >> I'll have you know that I haven't quite even left for Au yet, and I >> have LCA before diving. So no snarky "in between dives" comments, >> please. > > It wasn't meant to

Re: [PATCH v5 16/20] scripts/gdb: Add internal helper and convenience function for per-cpu lookup

2013-01-29 Thread Borislav Petkov
On Tue, Jan 29, 2013 at 02:56:56PM +0100, Jan Kiszka wrote: > Let me guess: You are dumping a weird QEMU/KVM CPU, right? Nah, I actually have the silicon! :-) Joking, of course. I wish. I'm booting the guest with -cpu phenom (it has been like that since forever in my boot-kernel-in-kvm script)

Re: [PATCH V3 RESEND RFC 0/2] kvm: Improving undercommit scenarios

2013-01-29 Thread Gleb Natapov
On Tue, Jan 22, 2013 at 01:08:54PM +0530, Raghavendra K T wrote: > In some special scenarios like #vcpu <= #pcpu, PLE handler may > prove very costly, because there is no need to iterate over vcpus > and do unsuccessful yield_to burning CPU. > > The first patch optimizes all the yield_to by

Re: [PATCH v5 14/20] scripts/gdb: Add internal helper and convenience function to retrieve thread_info

2013-01-29 Thread Borislav Petkov
On Tue, Jan 29, 2013 at 01:37:57PM +0100, Jan Kiszka wrote: > Add the internal helper get_thread_info that calculated the thread_info > from a given task variable. Also export this service as a convenience > function. > > Note: ia64 version is untested. > > CC: Tony Luck > CC: Fenghua Yu > CC:

Re: [PATCH v5 16/20] scripts/gdb: Add internal helper and convenience function for per-cpu lookup

2013-01-29 Thread Jan Kiszka
On 2013-01-29 14:51, Borislav Petkov wrote: > On Tue, Jan 29, 2013 at 01:37:59PM +0100, Jan Kiszka wrote: >> This function allows to obtain a per-cpu variable, either of the current >> or an explicitly specified CPU. >> >> Note: sparc64 version is untested. >> >> CC: "David S. Miller" >> CC:

RE: linux-next: build failure after merge of the usb tree

2013-01-29 Thread Lan, Tianyu
Hi greg: My pleasure. I have sent the patch to you and usb mailist yesterday. http://marc.info/?l=linux-usb=135939249906217=2 So please have a check. Best Regards Tianyu Lan -Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Tuesday, January

Re: [PATCH v5 16/20] scripts/gdb: Add internal helper and convenience function for per-cpu lookup

2013-01-29 Thread Borislav Petkov
On Tue, Jan 29, 2013 at 01:37:59PM +0100, Jan Kiszka wrote: > This function allows to obtain a per-cpu variable, either of the current > or an explicitly specified CPU. > > Note: sparc64 version is untested. > > CC: "David S. Miller" > CC: sparcli...@vger.kernel.org > Signed-off-by: Jan Kiszka

[BUG?] false positive in soft lockup detector while unlzma initramfs on slow cpu

2013-01-29 Thread Mike Lykov
Hi all! I have "embedded" computer, based on DM Vortex86DX (like i486/FPU/600Mhz/256Mb RAM). I boot it with own builded kernel & own compressed initramfs based on ALTLinux. When I used initramfs compressed with gzip -9 it worked good. But now I need downsize initramfs, and try to change

Re: [PATCH v3 02/71] ARC: Build system: Makefiles, Kconfig, Linker script

2013-01-29 Thread Vineet Gupta
On Tuesday 29 January 2013 12:14 AM, Sam Ravnborg wrote: > On Mon, Jan 28, 2013 at 11:59:36AM +0530, Vineet Gupta wrote: >> Hi Sam, >> >> On Thursday 24 January 2013 04:20 PM, Vineet Gupta wrote: >>> Arnd in his review pointed out that arch Kconfig organisation has several >>> deficiencies: >>>

Re: next-20130117 - kernel BUG with aio

2013-01-29 Thread Jan Kara
On Thu 24-01-13 14:13:52, Kent Overstreet wrote: > On Thu, Jan 24, 2013 at 01:27:59PM -0800, Andrew Morton wrote: > > Please also take a look at Jan's recent > > http://www.spinics.net/lists/linux-fsdevel/msg61738.html and have a > > think about how this plays with your patchset. > > I can't

Re: linux-next: build failure after merge of the usb tree

2013-01-29 Thread Greg KH
On Mon, Jan 28, 2013 at 04:03:07PM +, Lan, Tianyu wrote: > I just check the commit 88bb965ed711 can not git revert smoothly. I will do it > and send a revert patch. Please do so, thanks. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: linux-next: manual merge of the usb tree with the driver-core tree

2013-01-29 Thread Greg KH
On Mon, Jan 28, 2013 at 09:23:09PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the usb tree got a conflict in > drivers/usb/musb/omap2430.c between commit 148e11349b0c ("usb: Convert to > devm_ioremap_resource()") from the driver-core tree and commit > ca784be36cc7

Re: [PATCH v3 32/71] ARC: [DeviceTree] Basic support

2013-01-29 Thread Vineet Gupta
On Tuesday 29 January 2013 06:55 PM, Rob Herring wrote: > On 01/24/2013 04:50 AM, Vineet Gupta wrote: >> This is minimal infrastructure needed for devicetree work. >> It uses an a sample "skeleton" devicetree - embedded in kernel image - >> to print the board, manufacturer by parsing the top-level

Re: [PATCH v3 32/71] ARC: [DeviceTree] Basic support

2013-01-29 Thread Rob Herring
On 01/24/2013 04:50 AM, Vineet Gupta wrote: > This is minimal infrastructure needed for devicetree work. > It uses an a sample "skeleton" devicetree - embedded in kernel image - > to print the board, manufacturer by parsing the top-level "compatible" > string. > > As of now we don't need any

Re: Query related to MSR(Magnetic Stripe Reader) Device Driver

2013-01-29 Thread Greg KH
On Mon, Jan 28, 2013 at 03:25:08PM +0530, Priyaranjan Das wrote: > Hi Greg, > > On Tue, Jan 22, 2013 at 10:06 PM, Greg KH wrote: > > On Tue, Jan 22, 2013 at 03:02:32PM +0530, Priyaranjan Das wrote: > >> Hi All, > >> > >> I am working on MSR(Magnetic Stripe Reader) for a product . I wish to > >>

Re: [PATCH 10/14] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-01-29 Thread Andrew Murray
On Tue, Jan 22, 2013 at 07:29:01PM +, Jason Gunthorpe wrote: > On Thu, Jan 17, 2013 at 04:22:18PM +, Andrew Murray wrote: > > > > In either of those cases, does it make sense to use the MSI support > > > outside the scope of the PCI infrastructure? That is, would devices > > > other than

Re: [PATCH, RFC 00/16] Transparent huge page cache

2013-01-29 Thread Kirill A. Shutemov
Hugh Dickins wrote: > On Mon, 28 Jan 2013, Kirill A. Shutemov wrote: > > From: "Kirill A. Shutemov" > > > > Here's first steps towards huge pages in page cache. > > > > The intend of the work is get code ready to enable transparent huge page > > cache for the most simple fs -- ramfs. > > > >

Re: [PATCH]sched/rt: Do not try to push tasks if pinned task switches to RT

2013-01-29 Thread Steven Rostedt
On Tue, 2013-01-29 at 00:23 +0400, Kirill Tkhai wrote: > Just switched pinned task is not able to be pushed. If the rq had had > several RT tasks before they have already been considered as candidates > to be pushed (or pulled). Thanks, but I have one minor nit. > > Signed-off-by: Kirill V

Re: [PATCH v2 2/3] VFIO-AER: Vfio-pci driver changes for supporting AER

2013-01-29 Thread Alex Williamson
On Mon, 2013-01-28 at 12:31 -0700, Alex Williamson wrote: > On Mon, 2013-01-28 at 09:54 +, Pandarathil, Vijaymohan R wrote: > > - New VFIO_SET_IRQ ioctl option to pass the eventfd that is signalled > > when > > an error occurs in the vfio_pci_device > > > > - Register

Re: [PATCH 07/33] dma: Convert to devm_ioremap_resource()

2013-01-29 Thread Greg Kroah-Hartman
On Tue, Jan 29, 2013 at 03:11:05PM +0200, Andy Shevchenko wrote: > On Mon, Jan 21, 2013 at 12:09 PM, Thierry Reding > wrote: > > Convert all uses of devm_request_and_ioremap() to the newly introduced > > devm_ioremap_resource() which provides more consistent error handling. > > > >

Re: Re:[PATCH]sched/rt: Do not try to push tasks if pinned task switches to RT

2013-01-29 Thread Steven Rostedt
On Tue, 2013-01-29 at 13:13 +0400, Kirill Tkhai wrote: > > > > The task of p->nr_cpus_allowed =1 would`t be added to pushable_tasks list > > (see the enqueue_task_rt())and this push_rt_task() need to push other tasks > > when rt.overloaded. > > If rq has already had 2 or more pushable tasks

Re: [PATCH v2 06/12] KVM: MMU: introduce a static table to map guest access to spte access

2013-01-29 Thread Gleb Natapov
On Mon, Jan 28, 2013 at 11:07:58PM -0200, Marcelo Tosatti wrote: > On Mon, Jan 28, 2013 at 10:07:15PM -0200, Marcelo Tosatti wrote: > > On Fri, Jan 25, 2013 at 10:46:31AM +0800, Xiao Guangrong wrote: > > > On 01/25/2013 08:15 AM, Marcelo Tosatti wrote: > > > > On Wed, Jan 23, 2013 at 06:07:20PM

Re: [PATCH 07/33] dma: Convert to devm_ioremap_resource()

2013-01-29 Thread Andy Shevchenko
On Mon, Jan 21, 2013 at 12:09 PM, Thierry Reding wrote: > Convert all uses of devm_request_and_ioremap() to the newly introduced > devm_ioremap_resource() which provides more consistent error handling. > > devm_ioremap_resource() provides its own error messages so all explicit > error messages

Re: iwl3945 prints warning

2013-01-29 Thread Stanislaw Gruszka
On Mon, Jan 28, 2013 at 03:09:03PM +0100, Zdenek Kabelac wrote: > I'm getting tthis warning printed with current 3.8-rc kernel > My hw is Lenovo T61. > > > [5.920284] iwl3945 :03:00.0: loaded firmware version 15.32.2.9 > [5.976605] systemd[1]: Started NFS file locking service.. > [

[PATCH RFC v2] media: tvp514x: add OF support

2013-01-29 Thread Prabhakar Lad
From: Lad, Prabhakar add OF support for the tvp514x driver. Signed-off-by: Lad, Prabhakar Cc: Hans Verkuil Cc: Laurent Pinchart Cc: Mauro Carvalho Chehab Cc: Guennadi Liakhovetski Cc: Sylwester Nawrocki Cc: Sakari Ailus Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc:

RE: Linux 3.8-rc4

2013-01-29 Thread Deucher, Alexander
> -Original Message- > From: Shuah Khan [mailto:shuahk...@gmail.com] > Sent: Monday, January 28, 2013 10:20 PM > To: Deucher, Alexander > Cc: Linus Torvalds; Linux Kernel Mailing List > Subject: Re: Linux 3.8-rc4 > > On Wed, Jan 23, 2013 at 11:44 AM, Shuah Khan > wrote: > > On Wed, Jan

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Simon Jeons
Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: > From: Wen Congyang > > When memory is removed, the corresponding pagetables should alse be removed. > This patch introduces some common APIs to support vmemmap pagetable and x86_64 > architecture pagetable removing. Why don't need

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Simon Jeons
Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: > From: Wen Congyang > > When memory is removed, the corresponding pagetables should alse be removed. > This patch introduces some common APIs to support vmemmap pagetable and x86_64 > architecture pagetable removing. > When page

Re: [PATCH, RFC 06/16] thp, mm: rewrite add_to_page_cache_locked() to support huge pages

2013-01-29 Thread Kirill A. Shutemov
Hillf Danton wrote: > On Mon, Jan 28, 2013 at 5:24 PM, Kirill A. Shutemov > wrote: > > @@ -443,6 +443,7 @@ int add_to_page_cache_locked(struct page *page, struct > > address_space *mapping, > > pgoff_t offset, gfp_t gfp_mask) > > { > > int error; > > + int nr = 1;

Re: [PATCH] arm: fix returning wrong CALLER_ADDRx

2013-01-29 Thread Dave Martin
On Fri, Jan 11, 2013 at 04:18:10PM +0900, Keun-O Park wrote: > From: sahara > > This makes return_address return correct value for ftrace feature. > unwind_frame does not update frame->lr but frame->pc for backtrace. > And, the initialization for data.addr was missing so that wrong value >

[PATCH 4/7] ARM: DT: tegra114: add pinmux DT entry

2013-01-29 Thread Laxman Dewangan
Add DT entry for pinmux and drive configuration addresses. Signed-off-by: Laxman Dewangan --- arch/arm/boot/dts/tegra114.dtsi |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/tegra114.dtsi b/arch/arm/boot/dts/tegra114.dtsi index 74f6a77..210b4a7

[PATCH 5/7] ARM: DT: tegra114: Add i2c controller DT entry

2013-01-29 Thread Laxman Dewangan
NVIDIA's Tegra114 has 5 i2c controllers. These controllers have additional feature/configurations to make it functional over Tegra30's i2c controller driver. Add DT entry for i2c controllers and make it compatible with "nvidia,tegra114-i2c". Signed-off-by: Laxman Dewangan ---

[PATCH 1/7] ARM: tegra114: select PINCTRL for Tegra114 SoC

2013-01-29 Thread Laxman Dewangan
Select PINCTRL and PINCTRL_TEGRA114 for enabling Tegra114 pincontrol driver for Tegra114 SoC. Signed-off-by: Laxman Dewangan --- arch/arm/mach-tegra/Kconfig |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index

[PATCH 3/7] ARM: DT: tegra114: add APB DMA controller DT entry

2013-01-29 Thread Laxman Dewangan
NVIDIA's Tegra114 has 32 channels APB DMA controller. Add DT entry for APB DMA controllers and make it compatible with "nvidia,tegra114-apbdma". Signed-off-by: Laxman Dewangan --- arch/arm/boot/dts/tegra114.dtsi | 37 + 1 files changed, 37 insertions(+), 0

[PATCH 7/7] ARM: DT: tegra114: add KBC controller DT entry

2013-01-29 Thread Laxman Dewangan
NVIDIA's Tegra114 SoCs have the matrix keyboard controller which supports 11x8 type of matrix. The number of rows and columns are configurable. Add DT entry for KBC controller. Signed-off-by: Laxman Dewangan --- arch/arm/boot/dts/tegra114.dtsi |7 +++ 1 files changed, 7 insertions(+),

[PATCH 6/7] ARM: DT: tegra114:add aliases and DMA requestor for serial controller

2013-01-29 Thread Laxman Dewangan
Add APB DMA requestor and serial aliases for serial controller. There will be two serial driver i.e. 8250 based simple serial driver and APB DMA based serial driver for higher baudrate and performace. The simple serial driver get enabled with compatible nvidia,tegra20-uart and APB DMA based

[PATCH 2/7] ARM: DT: tegra114: add GPIO DT entry

2013-01-29 Thread Laxman Dewangan
Tegra114 has the GPIO controllers with 8 GPIO bank and each bank supports 32 pins. Add DT entry for GPIO controller. Tegra114 GPIO controller is compatible with Tegra30 GPIO controller driver. Signed-off-by: Laxman Dewangan --- arch/arm/boot/dts/tegra114.dtsi | 17 + 1 files

[PATCH 0/7] ARM: DT: tegra114: add dt entry for gpio/pinmux/dma/i2c/serial/kbc

2013-01-29 Thread Laxman Dewangan
This series add DT entry for the NVIDIA's Tegra114 SoCs for the following controller: - GPIO controller - DMA controller. - Pinmux controller. - I2c controller. - KBC controler. Also add dma requestor and aliases for serial channel. Laxman Dewangan (7): ARM: tegra114: select PINCTRL for

Re: [PATCH v6 00/15] memory-hotplug: hot-remove physical memory

2013-01-29 Thread Simon Jeons
Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: > Here is the physical memory hot-remove patch-set based on 3.8rc-2. Some questions ask you, not has relationship with this patchset, but is memory hotplug stuff. 1. In function node_states_check_changes_online: comments: * If we

Re: [PATCH, RFC 06/16] thp, mm: rewrite add_to_page_cache_locked() to support huge pages

2013-01-29 Thread Kirill A. Shutemov
Hillf Danton wrote: > On Mon, Jan 28, 2013 at 5:24 PM, Kirill A. Shutemov > wrote: > > + page_cache_get(page); > > + spin_lock_irq(>tree_lock); > > + page->mapping = mapping; > > + if (PageTransHuge(page)) { > > + int i; > > + for (i = 0; i <

ARC Port for linux-next (was Re: [PATCH v3 00/44] Meta Linux Kernel Port)

2013-01-29 Thread Vineet Gupta
Hi Stephen, On Monday 28 January 2013 12:40 PM, Vineet Gupta wrote: > Hi Arnd / Stephen, > > On Saturday 26 January 2013 05:55 AM, Arnd Bergmann wrote: >> I'd suggest that you both ask Stephen to add the trees to linux-next >> now (I thought you had done that already, but I don't see them there

Re: [RFC PATCH v4 linux-next] et131x: Promote staging et131x driver to drivers/net

2013-01-29 Thread Mark Einon
On 29 January 2013 04:10, David Miller wrote: > From: Mark Einon > Date: Wed, 23 Jan 2013 16:24:38 + > >> +endif # NET_VENDOR_AGERE >> + > > Trailing empty line, delete it. > >> @@ -0,0 +1,6 @@ >> +# >> +# Makefile for the Agere ET-131x ethernet driver >> +# >> + >> +obj-$(CONFIG_ET131X) +=

Re: [PATCH] firewire: Fix ohci free_irq() warning

2013-01-29 Thread Mark Einon
On 28 January 2013 23:01, Stefan Richter wrote: > On Jan 28 Mark Einon wrote: >> This patch fixes the kernel warning generated when putting an MSI MS-1727 >> GT740 laptop into suspend mode. The call sequence in this case calls >> free_irq() twice, once in pci_remove() and once then in

[PATCH v5 16/20] scripts/gdb: Add internal helper and convenience function for per-cpu lookup

2013-01-29 Thread Jan Kiszka
This function allows to obtain a per-cpu variable, either of the current or an explicitly specified CPU. Note: sparc64 version is untested. CC: "David S. Miller" CC: sparcli...@vger.kernel.org Signed-off-by: Jan Kiszka --- scripts/gdb/percpu.py | 61

[PATCH v5 05/20] scripts/gdb: Add lx-symbols command

2013-01-29 Thread Jan Kiszka
This is probably the most useful helper when debugging kernel modules: lx-symbols will first reload vmlinux. Then it searches recursively for *.ko files in the specified paths and the current directory. Finally it walks the kernel's module list, issuing the necessary add-symbol-file command for

[PATCH v5 12/20] scripts/gdb: Add helper and convenience function to look up tasks

2013-01-29 Thread Jan Kiszka
Add the helper task_by_pid that can look up a task by its PID. Also export it as a convenience function. Signed-off-by: Jan Kiszka --- scripts/gdb/task.py| 29 + scripts/gdb/vmlinux-gdb.py |1 + 2 files changed, 30 insertions(+), 0 deletions(-) diff

[PATCH v5 03/20] scripts/gdb: Add container_of helper and convenience function

2013-01-29 Thread Jan Kiszka
Provide an internal helper with container_of semantics. As type lookups are very slow in gdb-python and we need a type "long" for this, cache the reference to this type object. Then export the helper also as a convenience function form use at the gdb command line. Signed-off-by: Jan Kiszka ---

[PATCH v5 04/20] scripts/gdb: Add module iteration helper

2013-01-29 Thread Jan Kiszka
Will soon be used for loading symbols, printing global variables or listing modules. Signed-off-by: Jan Kiszka --- scripts/gdb/module.py | 28 1 files changed, 28 insertions(+), 0 deletions(-) create mode 100644 scripts/gdb/module.py diff --git

[PATCH v5 09/20] scripts/gdb: Add read_u16/32/64 helpers

2013-01-29 Thread Jan Kiszka
Add helpers for reading integers from target memory buffers. Required when caching the memory access is more efficient than reading individual values via gdb. Signed-off-by: Jan Kiszka --- scripts/gdb/utils.py | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff

[PATCH v5 07/20] scripts/gdb: Add lx_modvar convenience function

2013-01-29 Thread Jan Kiszka
This function looks up and returns global module variables. Gdb is only aware of their types and section offsets, not their absolute addresses. The function either searches the symbol table of a specified module or it derives the module name from the object file of the current frame.

[PATCH v5 08/20] scripts/gdb: Add get_target_endianness helper

2013-01-29 Thread Jan Kiszka
Parse the target endianness from the output of "show endian" and cache the result to return it via the new helper get_target_endiannes. We will need it for reading integers from buffers that contain target memory. Signed-off-by: Jan Kiszka --- scripts/gdb/utils.py | 17 + 1

[PATCH v5 17/20] scripts/gdb: Add lx_current convenience function

2013-01-29 Thread Jan Kiszka
This is a shorthand for *$lx_per_cpu("current_task"), i.e. a convenience function to retrieve the currently running task of the active context. Signed-off-by: Jan Kiszka --- scripts/gdb/percpu.py | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git

[PATCH v5 00/20] Add gdb python scripts as kernel debugging helpers

2013-01-29 Thread Jan Kiszka
Version 5 comes with the following changes: - moved tutorial into Documentation/gdb-kernel-debugging.txt - improved caching of gdb.Type objects, ensure they are in sync with currently loaded symbols - added new functions and commands - lx_module -- Find module by name and return the

[PATCH v5 01/20] scripts/gdb: Add infrastructure

2013-01-29 Thread Jan Kiszka
This provides the basic infrastructure to load kernel-specific python helper scripts when debugging the kernel in gdb. The loading mechanism is based on gdb loading for -gdb.py when opening . Therefore, this places a corresponding link to the main helper script into the output directory that

[PATCH v5 14/20] scripts/gdb: Add internal helper and convenience function to retrieve thread_info

2013-01-29 Thread Jan Kiszka
Add the internal helper get_thread_info that calculated the thread_info from a given task variable. Also export this service as a convenience function. Note: ia64 version is untested. CC: Tony Luck CC: Fenghua Yu CC: linux-i...@vger.kernel.org Signed-off-by: Jan Kiszka ---

[PATCH v5 10/20] scripts/gdb: Add lx-dmesg command

2013-01-29 Thread Jan Kiszka
This pokes into the log buffer of the debugged kernel, dumping it to the gdb console. Helping in case the target should or can no longer execute dmesg itself. CC: Kay Sievers Signed-off-by: Jan Kiszka --- scripts/gdb/dmesg.py | 63

[PATCH v5 15/20] scripts/gdb: Add get_gdbserver_type helper

2013-01-29 Thread Jan Kiszka
This helper probes the type of the gdb server. Supported are QEMU and KGDB so far. Knowledge about the gdb server is required e.g. to retrieve the current CPU or current task. Signed-off-by: Jan Kiszka --- scripts/gdb/utils.py | 35 +++ 1 files changed, 35

[PATCH v5 20/20] scripts/gdb: Add basic documentation

2013-01-29 Thread Jan Kiszka
CC: Rob Landley CC: linux-...@vger.kernel.org Signed-off-by: Jan Kiszka --- Documentation/gdb-kernel-debugging.txt | 155 1 files changed, 155 insertions(+), 0 deletions(-) create mode 100644 Documentation/gdb-kernel-debugging.txt diff --git

[PATCH v5 18/20] scripts/gdb: Add helper to iterate over CPU masks

2013-01-29 Thread Jan Kiszka
Will be used first to count module references. It is optimized to read the mask only once per stop and to minimize the loop lengths. Signed-off-by: Jan Kiszka --- scripts/gdb/percpu.py | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git

[PATCH v5 13/20] scripts/gdb: Add is_target_arch helper

2013-01-29 Thread Jan Kiszka
This helper caches to result of "show architecture" and matches the provided arch (sub-)string against that output. Signed-off-by: Jan Kiszka --- scripts/gdb/utils.py |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/scripts/gdb/utils.py b/scripts/gdb/utils.py

[PATCH v5 19/20] scripts/gdb: Add lx-lsmod command

2013-01-29 Thread Jan Kiszka
This adds a lsmod-like command to list all currently loaded modules of the target. Signed-off-by: Jan Kiszka --- scripts/gdb/module.py | 43 +++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/scripts/gdb/module.py

[PATCH v5 06/20] scripts/gdb: Add internal helper and convenience function to look up a module

2013-01-29 Thread Jan Kiszka
Add the internal helper get_module_by_name to obtain the module structure corresponding to the given name. Also export this service as a convenience function. Signed-off-by: Jan Kiszka --- scripts/gdb/module.py | 30 ++ scripts/gdb/vmlinux-gdb.py |1 + 2

[PATCH v5 11/20] scripts/gdb: Add task iteration helper

2013-01-29 Thread Jan Kiszka
The internal helper for_each_task iterates over all tasks of the target, calling the provided function on each. Signed-off-by: Jan Kiszka --- scripts/gdb/task.py | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) create mode 100644 scripts/gdb/task.py

[PATCH v5 02/20] scripts/gdb: Add cache for type objects

2013-01-29 Thread Jan Kiszka
Type lookups are very slow in gdb-python which is often noticeable when iterating over a number of objects. Introduce the helper class CachedType that keeps a reference to a gdb.Type object but also refreshes it after an object file has been loaded. Signed-off-by: Jan Kiszka ---

Re: [PATCH 1/4] pwm_backlight: Fix PWM levels support in non DT case

2013-01-29 Thread Thierry Reding
On Tue, Jan 29, 2013 at 01:10:19PM +0100, Peter Ujfalusi wrote: > On 01/29/2013 11:17 AM, Thierry Reding wrote: > > On Tue, Jan 29, 2013 at 09:17:04AM +0100, Peter Ujfalusi wrote: > >> On 01/28/2013 10:01 PM, Thierry Reding wrote: > >>> On Tue, Jan 22, 2013 at 02:39:53PM +0100, Peter Ujfalusi

Re: [PATCH, RFC 06/16] thp, mm: rewrite add_to_page_cache_locked() to support huge pages

2013-01-29 Thread Hillf Danton
On Mon, Jan 28, 2013 at 5:24 PM, Kirill A. Shutemov wrote: > + page_cache_get(page); > + spin_lock_irq(>tree_lock); > + page->mapping = mapping; > + if (PageTransHuge(page)) { > + int i; > + for (i = 0; i < HPAGE_CACHE_NR; i++) { > +

[Update][PATCH 4/4] ACPI / platform: Use struct acpi_scan_handler for creating devices

2013-01-29 Thread Rafael J. Wysocki
On Tuesday, January 29, 2013 12:36:35 PM Rafael J. Wysocki wrote: > On Tuesday, January 29, 2013 11:20:44 AM Yasuaki Ishimatsu wrote: > > Hi Rafael, > > > > 2013/01/28 22:01, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > Currently, the ACPI namespace scanning code creates

Re: [RFC PATCH 0/4] Add support for LZ4-compressed kernels

2013-01-29 Thread Russell King - ARM Linux
On Tue, Jan 29, 2013 at 12:43:20PM +0100, Egon Alter wrote: > Am Dienstag, 29. Januar 2013, 10:15:49 schrieb Russell King - ARM Linux: > > On Mon, Jan 28, 2013 at 02:25:10PM -0800, Andrew Morton wrote: > > > What's this "with enabled unaligned memory access" thing? You mean "if > > > the arch

[PATCH] mfd: arizona: Support configuring MICBIASes into bypass mode

2013-01-29 Thread Mark Brown
Signed-off-by: Mark Brown --- drivers/mfd/arizona-core.c| 12 +++- include/linux/mfd/arizona/pdata.h |1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c index d12f21b..07fc2c1 100644 ---

Re: [PATCH, RFC 06/16] thp, mm: rewrite add_to_page_cache_locked() to support huge pages

2013-01-29 Thread Hillf Danton
On Mon, Jan 28, 2013 at 5:24 PM, Kirill A. Shutemov wrote: > + page_cache_get(page); > + spin_lock_irq(>tree_lock); > + page->mapping = mapping; > + if (PageTransHuge(page)) { > + int i; > + for (i = 0; i < HPAGE_CACHE_NR; i++) { > +

Re: [PATCH 1/4] pwm_backlight: Fix PWM levels support in non DT case

2013-01-29 Thread Peter Ujfalusi
On 01/29/2013 11:17 AM, Thierry Reding wrote: > On Tue, Jan 29, 2013 at 09:17:04AM +0100, Peter Ujfalusi wrote: >> On 01/28/2013 10:01 PM, Thierry Reding wrote: >>> On Tue, Jan 22, 2013 at 02:39:53PM +0100, Peter Ujfalusi wrote: It is expected that board files would have: static unsigned

Re: [PATCH, RFC 06/16] thp, mm: rewrite add_to_page_cache_locked() to support huge pages

2013-01-29 Thread Hillf Danton
On Mon, Jan 28, 2013 at 5:24 PM, Kirill A. Shutemov wrote: > @@ -443,6 +443,7 @@ int add_to_page_cache_locked(struct page *page, struct > address_space *mapping, > pgoff_t offset, gfp_t gfp_mask) > { > int error; > + int nr = 1; > >

Re: [PATCH v2 0/2] ARM: Exynos5250: Enabling samsung usb phy

2013-01-29 Thread Vivek Gautam
On Tue, Jan 22, 2013 at 9:01 PM, Vivek Gautam wrote: > Changes from v1: > - Putting separate device nodes for usb 2.0 phy and usb 3.0 phy >based on separate driver for samsung usb 3.0 phy and >samsung usb 2.0 phy: >[PATCH v3 0/2] Adding USB 3.0 DRD-phy support for exynos5250 >

[PATCH] gpio: mpc8xxx: don't set IRQ_TYPE_NONE when creating irq mapping

2013-01-29 Thread Anatolij Gustschin
Exporting gpios throws genirq error messages like genirq: Setting trigger mode 0 for irq 44 failed (mpc512x_irq_set_type+0x0/0x18c) Do not set IRQ_TYPE_NONE in mapping function. Setting this type here ends up in returning error code in driver's irq_set_type() function and this triggers the

RE: [PATCH V2 1/6] pinctrl: pinctrl-single: use arch_initcall and module_exit

2013-01-29 Thread Vishwanathrao Badarkhe, Manish
Hi Linus, On Tue, Jan 29, 2013 at 16:29:54, Linus Walleij wrote: > On Tue, Jan 29, 2013 at 8:38 AM, Vishwanathrao Badarkhe, Manish > wrote: > > > Currently, I2C driver gets probed before pinctrl driver. > > To achieve I2C pin muxing via pinctrl driver before I2C probe get > > called, register

Re: [PATCH 1/1] USB: option: add support for Telit LE920

2013-01-29 Thread Sergei Shtylyov
Hello. On 28-01-2013 19:47, Daniele Palmas wrote: From: danielepa Name/email should preferrably be the same as the one in your signoff. Besides, the email address is not valid here. Add PID and special handling for Telit LE920 Signed-off-by: Daniele Palmas WBR, Sergei -- To

Re: [PATCH] usb: ehci: s5p: Power-off VBUS during suspend.

2013-01-29 Thread Vivek Gautam
Hi Oliver, On Tue, Jan 29, 2013 at 5:07 PM, Oliver Neukum wrote: > On Tuesday 29 January 2013 16:22:45 Vivek Gautam wrote: >> This change de-asserts vbus_gpio on suspend and >> re-asserts on resume in order to save power. >> NOTE, this change means no USB charging in suspend >> mode. > > What

Re: [PATCH 4/4] ACPI / platform: Use struct acpi_scan_handler for creating devices

2013-01-29 Thread Rafael J. Wysocki
On Tuesday, January 29, 2013 10:05:09 AM Mika Westerberg wrote: > On Mon, Jan 28, 2013 at 02:01:14PM +0100, Rafael J. Wysocki wrote: > > +/* Flags for acpi_create_platform_device */ > > +#define ACPI_PLATFORM_CLK BIT(0) > > + > > +/* > > + * The following ACPI IDs are known to be suitable for

Re: [PATCH 4/4] ACPI / platform: Use struct acpi_scan_handler for creating devices

2013-01-29 Thread Rafael J. Wysocki
On Tuesday, January 29, 2013 09:35:32 AM Mika Westerberg wrote: > On Mon, Jan 28, 2013 at 02:01:14PM +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Currently, the ACPI namespace scanning code creates platform device > > objects for ACPI device nodes whose IDs match the

Re: [PATCH 1/5] e1000e: fix resuming from runtime-suspend

2013-01-29 Thread Rafael J. Wysocki
On Tuesday, January 29, 2013 10:32:14 AM Konstantin Khlebnikov wrote: > Rafael J. Wysocki wrote: > > On Monday, January 28, 2013 04:05:33 PM Bjorn Helgaas wrote: > >> [+cc Rafael, author of patch you cited] > >> > >> On Fri, Jan 18, 2013 at 4:42 AM, Konstantin Khlebnikov > >> wrote: > >>> Bug

Re: Re: [PATCH 10/25] kprobes: fix wait_for_kprobe_optimizer()

2013-01-29 Thread Masami Hiramatsu
(2013/01/29 4:49), Tejun Heo wrote: > On Tue, Dec 25, 2012 at 12:51:37PM +0900, Masami Hiramatsu wrote: >> (2012/12/22 10:57), Tejun Heo wrote: >>> wait_for_kprobe_optimizer() seems largely broken. It uses >>> optimizer_comp which is never re-initialized, so >>> wait_for_kprobe_optimizer() will

Re: [PATCH v2] mm: dmapool: use provided gfp flags for all dma_alloc_coherent() calls

2013-01-29 Thread Soeren Moch
On 29.01.2013 12:02, Andrew Lunn wrote: Now I activated the debug messages in em28xx. From the messages I see no correlation of the pool exhaustion and lost sync. Also I cannot see any error messages from the em28xx driver. I see a lot of init_isoc/stop_urbs (maybe EPG scan?) without draining

Re: [PATCH v6 2/2] perf stat: add interval printing

2013-01-29 Thread Stephane Eranian
Arnaldo, V7 posted. It's a rebase done against your perf/core, was no big deal. Let me know if it works for you now. On Tue, Jan 29, 2013 at 2:41 AM, Arnaldo Carvalho de Melo wrote: > Em Mon, Jan 28, 2013 at 11:45:56PM +0100, Stephane Eranian escreveu: >> On Mon, Jan 28, 2013 at 8:21 PM,

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