Re: [PATCH 1/9] mailbox: OMAP: introduce mailbox framework

2013-01-09 Thread Loic PALLARDY
Hi Vaibhav, On 01/09/2013 01:11 PM, Bedia, Vaibhav wrote: > Hi Loic, > > On Fri, Dec 21, 2012 at 16:23:24, Loic PALLARDY wrote: >> >> >> On 12/21/2012 11:49 AM, Bedia, Vaibhav wrote: >>> On Fri, Dec 21, 2012 at 14:24:26, Loic PALLARDY wrote: >>> I have a few patches which are dependent on

Re: [PATCH 05/11] spi/pxa2xx: make clock rate configurable from platform data

2013-01-09 Thread Mark Brown
On Tue, Jan 08, 2013 at 10:33:55PM +0100, Rafael J. Wysocki wrote: > On 1/8/2013 2:10 PM, Mark Brown wrote: > >On Tue, Jan 08, 2013 at 02:41:53PM +0200, Mika Westerberg wrote: > >>Do you mean enabling CONFIG_COMMON_CLK on x86? > >Yes. > Why so? x86 doesn't have a notion of direct clock

Re: [PATCH 2/3] ARM: ux500: Turn on the 'heartbeat' LED trigger

2013-01-09 Thread Lee Jones
On Wed, 09 Jan 2013, Russell King - ARM Linux wrote: > On Wed, Jan 09, 2013 at 11:08:40AM +, Lee Jones wrote: > > On Wed, 09 Jan 2013, Russell King - ARM Linux wrote: > > > > > On Wed, Jan 09, 2013 at 10:18:54AM +, Arnd Bergmann wrote: > > > > On Wednesday 09 January 2013, Lee Jones

[PATCH char-misc-next] mei: Fix some more kernel-doc typos in hw-me.c

2013-01-09 Thread Sedat Dilek
Signed-off-by: Sedat Dilek --- drivers/misc/mei/hw-me.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mei/hw-me.c b/drivers/misc/mei/hw-me.c index 93a2a56..94b203e 100644 --- a/drivers/misc/mei/hw-me.c +++ b/drivers/misc/mei/hw-me.c @@ -236,7 +236,7 @@

RE: [PATCH 1/9] mailbox: OMAP: introduce mailbox framework

2013-01-09 Thread Bedia, Vaibhav
Hi Loic, On Fri, Dec 21, 2012 at 16:23:24, Loic PALLARDY wrote: > > > On 12/21/2012 11:49 AM, Bedia, Vaibhav wrote: > > On Fri, Dec 21, 2012 at 14:24:26, Loic PALLARDY wrote: > >> > > I have a few patches which are dependent on this patch series. > > Could you please keep me in cc for the

[PATCH] mm: migrate: Check page_count of THP before migrating accounting fix

2013-01-09 Thread Mel Gorman
As pointed out by Hugh Dickins, "mm: migrate: Check page_count of THP before migrating" can leave nr_isolated_anon elevated, correct it. This is a fix to mm-migrate-check-page_count-of-thp-before-migrating.patch Signed-off-by: Mel Gorman --- mm/migrate.c |5 - 1 file changed, 4

[PATCH 4/4] PM/Devfreq: Add Exynos5-bus devfreq driver for Exynos5250

2013-01-09 Thread Abhilash Kesavan
Exynos5-bus device devfreq driver monitors PPMU counters and adjusts operating frequencies and voltages with OPP. ASV should be used to provide appropriate voltages as per the speed group of the SoC rather than using a constant 1.025V. Signed-off-by: Abhilash Kesavan Cc: Jonghwan Choi Cc:

Re: [PATCH 2/3] ARM: ux500: Turn on the 'heartbeat' LED trigger

2013-01-09 Thread Arnd Bergmann
On Wednesday 09 January 2013, Russell King - ARM Linux wrote: > On Wed, Jan 09, 2013 at 11:56:55AM +, Arnd Bergmann wrote: > > Right. The change I suggested fixes the build errors but doesn't actually > > make the intended behavior correct. Just using a configuration file is the > > right

Re: [Xen-devel] [PATCH v2] xen/grant-table: correctly initialize grant table version 1

2013-01-09 Thread Ian Campbell
On Wed, 2013-01-09 at 02:40 +, ANNIE LI wrote: > > @@ -1080,18 +1081,18 @@ static void gnttab_request_version(void) > > panic("we need grant tables version 2, but only version 1 is > > available"); > > } else { > > grant_table_version = 1; > > +

[PATCH 2/4] ARM: EXYNOS5: Support Exynos5-bus devfreq driver

2013-01-09 Thread Abhilash Kesavan
Setup the INT clock ops to control/vary INT frequency Signed-off-by: Abhilash Kesavan Cc: Jonghwan Choi Cc: Kukjin Kim --- arch/arm/mach-exynos/clock-exynos5.c | 143 arch/arm/mach-exynos/include/mach/regs-clock.h | 37 ++ 2 files changed, 180

[PATCH 1/4] ARM: EXYNOS5: Add PPMU device tree support

2013-01-09 Thread Abhilash Kesavan
PPMU is required by the devfreq driver. Add a device tree node for it. Signed-off-by: Abhilash Kesavan Cc: Jonghwan Choi Cc: Kukjin Kim --- .../bindings/arm/exynos/ppmu-exynos5.txt | 28 arch/arm/boot/dts/exynos5250.dtsi |9 ++ 2 files

Re: [PATCH 2/3] ARM: ux500: Turn on the 'heartbeat' LED trigger

2013-01-09 Thread Russell King - ARM Linux
On Wed, Jan 09, 2013 at 11:56:55AM +, Arnd Bergmann wrote: > On Wednesday 09 January 2013, Russell King - ARM Linux wrote: > > > If so, that's wrong, as it covers many more boards than just Snowball > > > and this is only applicable on the Snowball board. So how else can > > > I enable this

Re: [PATCH 2/3] ARM: ux500: Turn on the 'heartbeat' LED trigger

2013-01-09 Thread Arnd Bergmann
On Wednesday 09 January 2013, Russell King - ARM Linux wrote: > > If so, that's wrong, as it covers many more boards than just Snowball > > and this is only applicable on the Snowball board. So how else can > > I enable this feature? > > And why is it wrong to enable an optional feature in a

[RFC PATCH v2 1/4] uretprobes/x86: hijack return address

2013-01-09 Thread Anton Arapov
Function to hijack the return address, replace it with a "trampoline" and function to predict the stack pointer address value at return. v2: remove ->doomed flag, kill task immediately Signed-off-by: Anton Arapov --- arch/x86/include/asm/uprobes.h | 1 + arch/x86/kernel/uprobes.c | 29

Re: [PATCH 1/4] gpiolib: introduce descriptor-based GPIO interface

2013-01-09 Thread Arnd Bergmann
On Wednesday 09 January 2013, Russell King - ARM Linux wrote: > d = debugfs_create_dir("pm_debug", NULL); > if (IS_ERR_OR_NULL(d)) > return PTR_ERR(d); > > Well, covered above. NULL is success here. This one is actually worse, because in case of

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

2013-01-09 Thread Will Deacon
On Wed, Jan 09, 2013 at 02:58:16AM +, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the tegra tree got a conflict in > arch/arm/mach-tegra/headsmp.S between commit bc4f1bdabc89 ("ARM: > coresight: common definition for (OS) Lock Access Register key value") > from the

[PATCH v5 04/11] cgroup, sched: deprecate cpuacct

2013-01-09 Thread Glauber Costa
From: Tejun Heo Now that cpu serves the same files as cpuacct and using cpuacct separately from cpu is deprecated, we can deprecate cpuacct. To avoid disturbing userland which has been co-mounting cpu and cpuacct, implement some hackery in cgroup core so that cpuacct co-mounting still works

[PATCH v5 03/11] cgroup, sched: let cpu serve the same files as cpuacct

2013-01-09 Thread Glauber Costa
From: Tejun Heo cpuacct being on a separate hierarchy is one of the main cgroup related complaints from scheduler side and the consensus seems to be * Allowing cpuacct to be a separate controller was a mistake. In general multiple controllers on the same type of resource should be avoided,

[PATCH v5 06/11] cpuacct: don't actually do anything.

2013-01-09 Thread Glauber Costa
All the information we have that is needed for cpuusage (and cpuusage_percpu) is present in schedstats. It is already recorded in a sane hierarchical way. If we have CONFIG_SCHEDSTATS, we don't really need to do any extra work. All former functions become empty inlines. Signed-off-by: Glauber

[PATCH v5 09/11] record per-cgroup number of context switches

2013-01-09 Thread Glauber Costa
Context switches are, to this moment, a property of the runqueue. When running containers, we would like to be able to present a separate figure for each container (or cgroup, in this context). The chosen way to accomplish this is to increment a per cfs_rq or rt_rq, depending on the task, for

[PATCH v5 00/11] per-cgroup cpu-stat

2013-01-09 Thread Glauber Costa
[ update: I thought I posted this already before leaving for holidays. However, now that I am checking for replies, I can't find nor replies nor the original mail in my boxes or archives. I am posting again for safety sake, but sorry you are getting this twice by any chance ] Hi all, This

[PATCH v5 01/11] don't call cpuacct_charge in stop_task.c

2013-01-09 Thread Glauber Costa
Commit 8f618968 changed stop_task to do the same bookkeping as the other classes. However, the call to cpuacct_charge() doesn't affect the scheduler decisions at all, and doesn't need to be moved over. Moreover, being a kthread, the migration thread won't belong to any cgroup anyway, rendering

3.8-rc2: lockdep warning in nouveau driver

2013-01-09 Thread Arend van Spriel
Maybe this one is already known, but I did not find a post about it. So here it is. Regards, Arend == [9.422018] usb 1-1.2: new high-speed USB device number 4 using ehci-pci [9.436177] [TTM] Zone kernel: Available

[PATCH v5 10/11] sched: change nr_context_switches calculation.

2013-01-09 Thread Glauber Costa
This patch changes the calculation of nr_context_switches. The variable "nr_switches" is now used to account for the number of transition to the idle task, or stop task. It is removed from the schedule() path. The total calculation can be made using the fact that the transitions to fair and rt

[PATCH v5 05/11] sched: adjust exec_clock to use it as cpu usage metric

2013-01-09 Thread Glauber Costa
exec_clock already provides per-group cpu usage metrics, and can be reused by cpuacct in case cpu and cpuacct are comounted. However, it is only provided by tasks in fair class. Doing the same for rt is easy, and can be done in an already existing hierarchy loop. This is an improvement over the

[PATCH v5 11/11] sched: introduce cgroup file stat_percpu

2013-01-09 Thread Glauber Costa
The file cpu.stat_percpu will show various scheduler related information, that are usually available to the top level through other files. For instance, most of the meaningful data in /proc/stat is presented here. Given this file, a container can easily construct a local copy of /proc/stat for

[PATCH v5 08/11] sched: Push put_prev_task() into pick_next_task()

2013-01-09 Thread Glauber Costa
From: Peter Zijlstra In order to avoid having to do put/set on a whole cgroup hierarchy when we context switch, push the put into pick_next_task() so that both operations are in the same function. Further changes then allow us to possibly optimize away redundant work. [ glom...@parallels.com:

[PATCH v5 07/11] account guest time per-cgroup as well.

2013-01-09 Thread Glauber Costa
We already track multiple tick statistics per-cgroup, using the task_group_account_field facility. This patch accounts guest_time in that manner as well. Signed-off-by: Glauber Costa CC: Peter Zijlstra CC: Paul Turner --- kernel/sched/cputime.c | 10 -- 1 file changed, 4

[PATCH v5 02/11] cgroup: implement CFTYPE_NO_PREFIX

2013-01-09 Thread Glauber Costa
From: Tejun Heo When cgroup files are created, cgroup core automatically prepends the name of the subsystem as prefix. This patch adds CFTYPE_NO_PREFIX which disables the automatic prefix. This will be used to deprecate cpuacct which will make cpu create and serve the cpuacct files.

Re: oops in copy_page_rep()

2013-01-09 Thread Mel Gorman
On Tue, Jan 08, 2013 at 08:52:14AM -0800, Linus Torvalds wrote: > On Tue, Jan 8, 2013 at 8:31 AM, Kirill A. Shutemov > wrote: > >> > >> Heh. I was more thinking about why do_huge_pmd_wp_page() needs it, but > >> do_huge_pmd_numa_page() does not. > > > > It does. The check should be moved up. > >

Re: oops in copy_page_rep()

2013-01-09 Thread Hillf Danton
On Wed, Jan 9, 2013 at 2:21 AM, Linus Torvalds wrote: > On Tue, Jan 8, 2013 at 10:03 AM, Andrea Arcangeli wrote: >> >> It looks very fine to me, but I suggest to move it above the >> pmd_numa() check because of the newly introduced >> migrate_misplaced_transhuge_page method relying on pmd_same

[PATCH v2] regulator: max8998: Ensure enough delay time for max8998_set_voltage_buck_time_sel

2013-01-09 Thread Axel Lin
Use DIV_ROUND_UP to prevent truncation by integer division issue. This ensures we return enough delay time. Signed-off-by: Axel Lin --- v2: Only fix integer division truncation issue, remove other optimization. drivers/regulator/max8998.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [3.8-rc2] stuck at reading CIFS mounted directory

2013-01-09 Thread Jeff Layton
On Wed, 09 Jan 2013 03:17:40 + (GMT) 허종만 wrote: > Hi, > > > --- Original Message --- > > Sender : Jeff Layton > > Date : 2013-01-08 00:13 (GMT+09:00) > > Title : Re: [3.8-rc2] stuck at reading CIFS mounted directory > > > > On Mon, 07 Jan 2013 15:10:05 +0530 > > Suresh Jayaraman

Re: "Hangcheck timer elapsed... GPU hung" in 3.8.0-rc2

2013-01-09 Thread Daniel Vetter
On Tue, Jan 8, 2013 at 3:37 PM, J. Bruce Fields wrote: >> please grab the i915_error_state file from debugfs > > As I said in the original mail, I've already done that: > > http://fieldses.org/~bfields/3.8-hang/ Sorry, missed that the first time around. >> and file a bug on >>

Re: dw_dmac patches

2013-01-09 Thread Andy Shevchenko
On Tue, 2013-01-08 at 07:54 -0800, Vinod Koul wrote: > On Mon, Jan 07, 2013 at 02:54:54PM +0200, Andy Shevchenko wrote: > > Hi, Vinod. > > > > I noticed you missed the 3.8 merge window and I can't see any of my > > recent patches [1] in your next branch. So, what is your plan regarding > > to

[RFC PATCH v2 3/4] uretprobes: return probe entry, prepare uretprobe

2013-01-09 Thread Anton Arapov
When a uprobe with return consumer is hit, prepare_uretprobe function is invoked. It creates return_instance, hijacks return address and replaces it with the trampoline. v2: get rid of ->return_consumers todo: protect uprobe Signed-off-by: Anton Arapov --- include/linux/uprobes.h | 4

[RFC PATCH v2 4/4] uretprobes: invoke return probe handlers

2013-01-09 Thread Anton Arapov
uretprobe handlers are invoked when the trampoline is hit, on completion the trampoline is replaced with the saved return address and the uretprobe instance deleted. v2: get rid of ->return_consumers use rp_handler() Signed-off-by: Anton Arapov --- arch/x86/include/asm/uprobes.h | 5

[RFC PATCH v2 0/4] uprobes: return probe implementation

2013-01-09 Thread Anton Arapov
There are RFC uretprobes implementation. I'd be grateful for review. RFCv1: https://lkml.org/lkml/2012/12/21/133 I've intentionally removed the retprobe bypass logic, it requires a bit more work. not fixed since last prior RFC review: unify xol_get_trampoline_slot() and

[RFC PATCH v2 2/4] uretprobes: trampoline implementation

2013-01-09 Thread Anton Arapov
The first time a uprobe with return consumer is hit for a process, a trampoline slot is obtained in the xol_area and initialized with a breakpoint instruction. This slot is subsequently used by all uretprobes. todo: unify with xol_take_insn_slot() Signed-off-by: Anton Arapov ---

Re: [PATCH 7/8] mm: use vm_unmapped_area() on powerpc architecture

2013-01-09 Thread Michel Lespinasse
On Wed, Jan 09, 2013 at 02:32:56PM +1100, Benjamin Herrenschmidt wrote: > Ok. I think at least you can move that construct: > > + if (addr < SLICE_LOW_TOP) { > + slice = GET_LOW_SLICE_INDEX(addr); > + addr = (slice + 1) << SLICE_LOW_SHIFT;

[PATCH] cpufreq: Simplify __cpufreq_remove_dev()

2013-01-09 Thread Viresh Kumar
__cpufreq_remove_dev() is called on multiple occasions: cpufreq_driver unregister and cpu removals. Current implementation of this routine is overly complex without much need. If the cpu to be removed is the policy->cpu, we remove the policy first and add all other cpus again from policy->cpus

[PATCH 2/3] watchdog: convert drivers/watchdog/* to use module_platform_driver_probe

2013-01-09 Thread Fabio Porcedda
This makes the code a bit smaller by getting rid of some boilerplate code. Signed-off-by: Fabio Porcedda Cc: linux-watch...@vger.kernel.org Cc: Wim Van Sebroeck Cc: Linus Walleij --- drivers/watchdog/at32ap700x_wdt.c | 12 +--- drivers/watchdog/at91sam9_wdt.c | 13 +

[PATCH 3/3] usb: converto drivers/usb/* to use module_platform_driver_probe()

2013-01-09 Thread Fabio Porcedda
This patch converts the drivers in drivers/usb/* to use the module_platform_driver_probe() macro which makes the code smaller and a bit simpler. Signed-off-by: Fabio Porcedda Cc: linux-...@vger.kernel.org Cc: Greg Kroah-Hartman Cc: Felipe Balbi Cc: Nicolas Ferre Cc: Eric Miao Cc: Russell

[PATCH 0/3] Add and use new macro module_platform_driver_probe()

2013-01-09 Thread Fabio Porcedda
For simple modules that contain a single platform_driver without any additional setup code then ends up being a block of duplicated boilerplate. This patch adds a new macro, module_platform_driver_probe(), which replaces the module_init()/module_exit() registrations with template functions.

[PATCH 1/3] driver core: add helper macro for platform_driver_probe() boilerplate

2013-01-09 Thread Fabio Porcedda
For simple modules that contain a single platform_driver without any additional setup code then ends up being a block of duplicated boilerplate. This patch adds a new macro, module_platform_driver_probe(), which replaces the module_init()/module_exit() registrations with template functions. This

Re: [PATCH 2/3] ARM: ux500: Turn on the 'heartbeat' LED trigger

2013-01-09 Thread Russell King - ARM Linux
On Wed, Jan 09, 2013 at 11:08:40AM +, Lee Jones wrote: > On Wed, 09 Jan 2013, Russell King - ARM Linux wrote: > > > On Wed, Jan 09, 2013 at 10:18:54AM +, Arnd Bergmann wrote: > > > On Wednesday 09 January 2013, Lee Jones wrote: > > > > diff --git a/arch/arm/mach-ux500/Kconfig

Re: [PATCH 1/4] gpiolib: introduce descriptor-based GPIO interface

2013-01-09 Thread Russell King - ARM Linux
On Wed, Jan 09, 2013 at 10:44:14AM +, Russell King - ARM Linux wrote: > On Wed, Jan 09, 2013 at 10:35:22AM +, Arnd Bergmann wrote: > > On Wednesday 09 January 2013, Alexandre Courbot wrote: > > > On Tue, Jan 8, 2013 at 9:59 PM, Arnd Bergmann wrote: > > > > Please avoid the use of

Re: [PATCH 2/3] ARM: ux500: Turn on the 'heartbeat' LED trigger

2013-01-09 Thread Lee Jones
On Wed, 09 Jan 2013, Russell King - ARM Linux wrote: > On Wed, Jan 09, 2013 at 10:18:54AM +, Arnd Bergmann wrote: > > On Wednesday 09 January 2013, Lee Jones wrote: > > > diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig > > > index 5dea906..0f25b07 100644 > > > ---

Re: [PATCH] HID: i2c-hid: add ACPI support

2013-01-09 Thread Mika Westerberg
On Wed, Jan 09, 2013 at 11:38:24AM +0100, Benjamin Tissoires wrote: > > > > If they have reset GPIO or something like that, how else we should we > > handle this if not in the driver? The i2c-hid core doesn't know for what > > purpose a given GPIO line is. > > But the hid protocol aims at

Re: [PATCH] of: add missing documentation for of_platform_populate()

2013-01-09 Thread Jiri Kosina
On Fri, 23 Nov 2012, Javi Merino wrote: > 15c3597d (dt/platform: allow device name to be overridden) added a > lookup parameter to of_platform_populate() but did not update the > documentation. This patch adds the missing documentation entry. > > Cc: Grant Likely > Cc: Jiri Kosina >

Re: [PATCH v5] pwm: atmel: add Timer Counter Block PWM driver

2013-01-09 Thread Boris BREZILLON
On 09/01/2013 08:46, Thierry Reding wrote: > On Tue, Jan 08, 2013 at 04:36:42PM +0100, Boris BREZILLON wrote: >> Hi, >> >> This patch adds a PWM driver based on Atmel Timer Counter Block. >> Timer Counter Block is used in Waveform generator mode. >> >> A Timer Counter Block provides up to 6 PWM

Re: [PATCH 05/11] spi/pxa2xx: make clock rate configurable from platform data

2013-01-09 Thread Mika Westerberg
On Tue, Jan 08, 2013 at 10:33:55PM +0100, Rafael J. Wysocki wrote: > On 1/8/2013 2:10 PM, Mark Brown wrote: > >On Tue, Jan 08, 2013 at 02:41:53PM +0200, Mika Westerberg wrote: > >>On Tue, Jan 08, 2013 at 11:02:28AM +, Mark Brown wrote: > >>>No, the way to do this is to fix x86 to enable the

Re: [PATCH 0/4] gpio: introduce descriptor-based interface

2013-01-09 Thread Arnd Bergmann
On Wednesday 09 January 2013, Alexandre Courbot wrote: > On Tue, Jan 8, 2013 at 10:06 PM, Arnd Bergmann wrote: > > I like the interface, good idea! > > Great! This was initially suggested by Linus W. > > > A few questions: > > > > Is there a plan for migrating all the existing users of the

Re: [PATCH 1/4] gpiolib: introduce descriptor-based GPIO interface

2013-01-09 Thread Russell King - ARM Linux
On Wed, Jan 09, 2013 at 10:35:22AM +, Arnd Bergmann wrote: > On Wednesday 09 January 2013, Alexandre Courbot wrote: > > On Tue, Jan 8, 2013 at 9:59 PM, Arnd Bergmann wrote: > > > Please avoid the use of IS_ERR_OR_NULL(), especially on interfaces you > > > introduce yourself. AFAICT, gpiod_get

Re: [PATCH] HID: i2c-hid: add ACPI support

2013-01-09 Thread Benjamin Tissoires
On Wed, Jan 9, 2013 at 10:28 AM, Mika Westerberg wrote: > On Tue, Jan 08, 2013 at 10:55:59PM +0100, Benjamin Tissoires wrote: >> On Tue, Jan 8, 2013 at 7:09 PM, Mika Westerberg >> wrote: >> > On Tue, Jan 08, 2013 at 02:51:53PM +0100, Benjamin Tissoires wrote: >> >> Hi Mika, >> >> >> >> On Tue,

Re: [PATCH 1/4] gpiolib: introduce descriptor-based GPIO interface

2013-01-09 Thread Arnd Bergmann
On Wednesday 09 January 2013, Alexandre Courbot wrote: > On Tue, Jan 8, 2013 at 9:59 PM, Arnd Bergmann wrote: > > Please avoid the use of IS_ERR_OR_NULL(), especially on interfaces you > > introduce yourself. AFAICT, gpiod_get cannot return NULL, so you > > should not check for that. > > Sure -

Re: [PATCH 2/3] ARM: ux500: Turn on the 'heartbeat' LED trigger

2013-01-09 Thread Russell King - ARM Linux
On Wed, Jan 09, 2013 at 10:18:54AM +, Arnd Bergmann wrote: > On Wednesday 09 January 2013, Lee Jones wrote: > > diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig > > index 5dea906..0f25b07 100644 > > --- a/arch/arm/mach-ux500/Kconfig > > +++ b/arch/arm/mach-ux500/Kconfig >

Re: [PATCH] PCI: Make pci_find_upstream_pcie_bridge() handle non PCIE VFs well

2013-01-09 Thread Tadeusz Struk
On 01/08/2013 05:05 PM, Don Dutile wrote: > (a) no such thing as a non-PCIe VF -- all VFs > are PCIe-based. The sriov spec says that a VF doesn't necessarily has to have PCIE cap: "3.5 PCI Express Capability: ... PFs and VFs are required to implement this capability ... subject to

Re: [PATCH 1/4] gpiolib: introduce descriptor-based GPIO interface

2013-01-09 Thread Russell King - ARM Linux
On Wed, Jan 09, 2013 at 10:06:16AM +0900, Alexandre Courbot wrote: > On Tue, Jan 8, 2013 at 9:59 PM, Arnd Bergmann wrote: > > Please avoid the use of IS_ERR_OR_NULL(), especially on interfaces you > > introduce yourself. AFAICT, gpiod_get cannot return NULL, so you > > should not check for that.

Re: [PATCH 0/7] uprobes: alloc utask/xol_area cleanups and minor fix

2013-01-09 Thread Anton Arapov
On Mon, Dec 31, 2012 at 06:51:50PM +0100, Oleg Nesterov wrote: > Hello. > > This series fixes the minor bug and cleanups the usage of add_utask() > and xol_alloc_area(). Plus it cleanups the initializaion of ->utask > in handle_swbp() paths. > > Anton, this conflicts with your uretprobe patches,

[LTP] [ANNOUNCE] The Linux Test Project has been released for JANUARY 2013

2013-01-09 Thread shubham
Hello all, The first release of New year 2013 has been done for Linux Test Project test suite. The latest version of the test-suite contains 3000+ tests for the Linux OS and can be found at: http://ltp.sourceforge.net/ You can explore our new github page at:

Re: [PATCH 2/3] ARM: ux500: Turn on the 'heartbeat' LED trigger

2013-01-09 Thread Arnd Bergmann
On Wednesday 09 January 2013, Lee Jones wrote: > diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig > index 5dea906..0f25b07 100644 > --- a/arch/arm/mach-ux500/Kconfig > +++ b/arch/arm/mach-ux500/Kconfig > @@ -43,6 +43,8 @@ config MACH_HREFV60 > config MACH_SNOWBALL >

Re: [PATCH 2/7] uprobes: Fold xol_alloc_area() into get_xol_area()

2013-01-09 Thread Anton Arapov
On Mon, Dec 31, 2012 at 06:52:16PM +0100, Oleg Nesterov wrote: > Currently only xol_get_insn_slot() does get_xol_area() + xol_alloc_area(), > but this will have more users and we do not want to copy-and-paste this > code. This patch simply moves xol_alloc_area() into get_xol_area() to > simplify

[PATCH 2/3] ARM: ux500: Turn on the 'heartbeat' LED trigger

2013-01-09 Thread Lee Jones
As Snowball is a community board it should have its default LED trigger set in 'heartbeat' mode, meaning that it double flashes ~1HZ. This provides an excellent debugging tool when community members are hacking. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/Kconfig |2 ++ 1 file changed,

[PATCH 1/3] mfd: Fix compile errors and warnings when !CONFIG_AB8500_BM

2013-01-09 Thread Lee Jones
drivers/mfd/ab8500-core.c:1015:21: error: ‘ab8500_bm_data’ undeclared here include/linux/mfd/abx500/ab8500-bm.h:445:13: warning: ‘ab8500_fg_reinit’ defined but not used include/linux/mfd/abx500/ab8500-bm.h:448:13: warning: ‘ab8500_charger_usb_state_changed’ defined but not used

[PATCH 3/3] ARM: ux500: Add Snowball pin configuration for user LED

2013-01-09 Thread Lee Jones
Here we setup the GPIO pin responsible for illuminating the user LED on the Snowball low-cost development board. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500-pins.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-ux500/board-mop500-pins.c

[PATCH v6 11/15] memory-hotplug: Integrated __remove_section() of CONFIG_SPARSEMEM_VMEMMAP.

2013-01-09 Thread Tang Chen
Currently __remove_section for SPARSEMEM_VMEMMAP does nothing. But even if we use SPARSEMEM_VMEMMAP, we can unregister the memory_section. Signed-off-by: Yasuaki Ishimatsu Signed-off-by: Wen Congyang Signed-off-by: Tang Chen --- mm/memory_hotplug.c | 11 --- 1 files changed, 0

Re: [3.6.9 -> 3.7.1 regression] sound: snd_hda_intel codec probing issue?

2013-01-09 Thread Takashi Iwai
At Tue, 08 Jan 2013 21:25:21 +0100, Vincent Blut wrote: > > Le mardi 08 janvier 2013 à 13:56 +0100, Takashi Iwai a écrit : > > At Tue, 08 Jan 2013 13:28:55 +0100, > > From: Takashi Iwai > > Subject: [PATCH] ALSA: hda - Disable runtime D3 for Intel CPT & co > > > > We've got a few bug reports

[PATCH v6 15/15] memory-hotplug: Do not allocate pdgat if it was not freed when offline.

2013-01-09 Thread Tang Chen
Since there is no way to guarentee the address of pgdat/zone is not on stack of any kernel threads or used by other kernel objects without reference counting or other symchronizing method, we cannot reset node_data and free pgdat when offlining a node. Just reset pgdat to 0 and reuse the memory

[PATCH RESEND] dma: tegra: implement flags parameters for cyclic transfer

2013-01-09 Thread Laxman Dewangan
The flag parameter is added in the cyclic transfer request. Use the flag option of: - DMA_PREP_INTERRUPT for enabling interrupt. - DMA_CTRL_ACK for deciding whether ack is requred or not for descriptor. Signed-off-by: Laxman Dewangan --- Vinod, This patch was sent before holiday and may be it

Re: [PATCHSET] cpuset: decouple cpuset locking from cgroup core, take#2

2013-01-09 Thread Glauber Costa
On 01/04/2013 01:35 AM, Tejun Heo wrote: > Note that this leaves memcg as the only external user of cgroup_mutex. > Michal, Kame, can you guys please convert memcg to use its own locking > too? I've already done this, I just have to rework it according to latest feedback and repost it. It should

Re: [PATCH V3 4/8] memcg: add per cgroup dirty pages accounting

2013-01-09 Thread Sha Zhengju
On Mon, Jan 7, 2013 at 4:07 AM, Greg Thelen wrote: > On Tue, Dec 25 2012, Sha Zhengju wrote: > >> From: Sha Zhengju >> >> This patch adds memcg routines to count dirty pages, which allows memory >> controller >> to maintain an accurate view of the amount of its dirty memory and can >> provide

[PATCH v6 01/15] memory-hotplug: try to offline the memory twice to avoid dependence

2013-01-09 Thread Tang Chen
From: Wen Congyang memory can't be offlined when CONFIG_MEMCG is selected. For example: there is a memory device on node 1. The address range is [1G, 1.5G). You will find 4 new directories memory8, memory9, memory10, and memory11 under the directory /sys/devices/system/memory/. If CONFIG_MEMCG

[PATCH v6 03/15] memory-hotplug: remove redundant codes

2013-01-09 Thread Tang Chen
From: Wen Congyang offlining memory blocks and checking whether memory blocks are offlined are very similar. This patch introduces a new function to remove redundant codes. Signed-off-by: Wen Congyang Signed-off-by: Tang Chen Reviewed-by: Kamezawa Hiroyuki --- mm/memory_hotplug.c | 129

Re: [PATCH] nfsd: fix unused "nn" variable warning in free_client()

2013-01-09 Thread Stanislav Kinsbursky
Bruce, sorry, forgot to add: Reported-by: Toralf Förster 09.01.2013 13:38, Stanislav Kinsbursky пишет: If CONFIG_LOCKDEP is disabled, then there would be a warning like this: CC [M] fs/nfsd/nfs4state.o fs/nfsd/nfs4state.c: In function ‘free_client’: fs/nfsd/nfs4state.c:1051:19: warning:

[PATCH] nfsd: fix unused "nn" variable warning in free_client()

2013-01-09 Thread Stanislav Kinsbursky
If CONFIG_LOCKDEP is disabled, then there would be a warning like this: CC [M] fs/nfsd/nfs4state.o fs/nfsd/nfs4state.c: In function ‘free_client’: fs/nfsd/nfs4state.c:1051:19: warning: unused variable ‘nn’ [-Wunused-variable] So, let's add "maybe_unused" tag to this variable. Signed-off-by:

[PATCH v6 07/15] memory-hotplug: move pgdat_resize_lock into sparse_remove_one_section()

2013-01-09 Thread Tang Chen
In __remove_section(), we locked pgdat_resize_lock when calling sparse_remove_one_section(). This lock will disable irq. But we don't need to lock the whole function. If we do some work to free pagetables in free_section_usemap(), we need to call flush_tlb_all(), which need irq enabled. Otherwise

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

2013-01-09 Thread Tang Chen
Here is the physical memory hot-remove patch-set based on 3.8rc-2. This patch-set aims to implement physical memory hot-removing. The patches can free/remove the following things: - /sys/firmware/memmap/X/{end, start, type} : [PATCH 4/15] - memmap of sparse-vmemmap : [PATCH

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

2013-01-09 Thread Tang Chen
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. All pages of virtual mapping in removed memory cannot be freedi if some pages used as

[PATCH v6 06/15] memory-hotplug: implement register_page_bootmem_info_section of sparse-vmemmap

2013-01-09 Thread Tang Chen
From: Yasuaki Ishimatsu For removing memmap region of sparse-vmemmap which is allocated bootmem, memmap region of sparse-vmemmap needs to be registered by get_page_bootmem(). So the patch searches pages of virtual mapping and registers the pages by get_page_bootmem(). Note:

[PATCH v6 04/15] memory-hotplug: remove /sys/firmware/memmap/X sysfs

2013-01-09 Thread Tang Chen
From: Yasuaki Ishimatsu When (hot)adding memory into system, /sys/firmware/memmap/X/{end, start, type} sysfs files are created. But there is no code to remove these files. The patch implements the function to remove them. Note: The code does not free firmware_map_entry which is allocated by

[PATCH v6 02/15] memory-hotplug: check whether all memory blocks are offlined or not when removing memory

2013-01-09 Thread Tang Chen
From: Yasuaki Ishimatsu We remove the memory like this: 1. lock memory hotplug 2. offline a memory block 3. unlock memory hotplug 4. repeat 1-3 to offline all memory blocks 5. lock memory hotplug 6. remove memory(TODO) 7. unlock memory hotplug All memory blocks must be offlined before removing

[PATCH v6 12/15] memory-hotplug: memory_hotplug: clear zone when removing the memory

2013-01-09 Thread Tang Chen
From: Yasuaki Ishimatsu When a memory is added, we update zone's and pgdat's start_pfn and spanned_pages in the function __add_zone(). So we should revert them when the memory is removed. The patch adds a new function __remove_zone() to do this. Signed-off-by: Yasuaki Ishimatsu Signed-off-by:

[PATCH v6 10/15] memory-hotplug: remove memmap of sparse-vmemmap

2013-01-09 Thread Tang Chen
This patch introduces a new API vmemmap_free() to free and remove vmemmap pagetables. Since pagetable implements are different, each architecture has to provide its own version of vmemmap_free(), just like vmemmap_populate(). Note: vmemmap_free() are not implemented for ia64, ppc, s390, and

[PATCH v6 05/15] memory-hotplug: introduce new function arch_remove_memory() for removing page table depends on architecture

2013-01-09 Thread Tang Chen
From: Wen Congyang For removing memory, we need to remove page table. But it depends on architecture. So the patch introduce arch_remove_memory() for removing page table. Now it only calls __remove_pages(). Note: __remove_pages() for some archtecuture is not implemented (I don't know how

[PATCH v6 13/15] memory-hotplug: remove sysfs file of node

2013-01-09 Thread Tang Chen
This patch introduces a new function try_offline_node() to remove sysfs file of node when all memory sections of this node are removed. If some memory sections of this node are not removed, this function does nothing. Signed-off-by: Wen Congyang Signed-off-by: Tang Chen ---

[PATCH v6 14/15] memory-hotplug: free node_data when a node is offlined

2013-01-09 Thread Tang Chen
From: Wen Congyang We call hotadd_new_pgdat() to allocate memory to store node_data. So we should free it when removing a node. Signed-off-by: Wen Congyang Reviewed-by: Kamezawa Hiroyuki --- mm/memory_hotplug.c | 30 +++--- 1 files changed, 27 insertions(+), 3

[PATCH v6 09/15] memory-hotplug: remove page table of x86_64 architecture

2013-01-09 Thread Tang Chen
This patch searches a page table about the removed memory, and clear page table for x86_64 architecture. Signed-off-by: Wen Congyang Signed-off-by: Jianguo Wu Signed-off-by: Jiang Liu Signed-off-by: Tang Chen --- arch/x86/mm/init_64.c | 10 ++ 1 files changed, 10 insertions(+), 0

Re: [RFC PATCH 0/2] sched: simplify the select_task_rq_fair()

2013-01-09 Thread Michael Wang
On 12/27/2012 02:08 PM, Michael Wang wrote: > This patch set is trying to simplify the select_task_rq_fair() with > schedule balance map. > > After get rid of the complex code and reorganize the logical, pgbench show > the improvement. > > Prev: > | db_size | clients | tps

Re: [PATCH] HID: i2c-hid: add ACPI support

2013-01-09 Thread Mika Westerberg
On Tue, Jan 08, 2013 at 10:55:59PM +0100, Benjamin Tissoires wrote: > On Tue, Jan 8, 2013 at 7:09 PM, Mika Westerberg > wrote: > > On Tue, Jan 08, 2013 at 02:51:53PM +0100, Benjamin Tissoires wrote: > >> Hi Mika, > >> > >> On Tue, Jan 8, 2013 at 2:05 PM, Mika Westerberg > >> wrote: > >> > The

Re: [PATCH v2 2/4] input: keyboard: tegra: use devm_* for resource allocation

2013-01-09 Thread Thierry Reding
On Wed, Jan 09, 2013 at 01:19:39AM -0800, Dmitry Torokhov wrote: > On Wed, Jan 09, 2013 at 08:07:45AM +0100, Thierry Reding wrote: > > On Sun, Jan 06, 2013 at 11:57:48AM -0800, Dmitry Torokhov wrote: > > > On Sun, Jan 06, 2013 at 08:27:39PM +0100, Thierry Reding wrote: > > > > On Sat, Jan 05, 2013

Re: [PATCHv2 0/5] serial: 8250: 8250_dw changes and dynamic capabilities

2013-01-09 Thread Heikki Krogerus
Hi, On Mon, Dec 03, 2012 at 01:17:54PM +0200, Heikki Krogerus wrote: > Changes since v1: > - rebased on top of Greg's tty-next > > These are mainly small 8250_dw.c changes. The interesting patch is > probable the first one that changes 8250.c so the drivers are able to > deliver their UART's

RE: [PATCH 3/9] Thermal: Add APIs to bind cdev to new zone structure

2013-01-09 Thread R, Durgadoss
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, January 08, 2013 12:56 AM > To: R, Durgadoss > Cc: Zhang, Rui; linux...@vger.kernel.org; linux-kernel@vger.kernel.org; > eduardo.valen...@ti.com; hongbo.zh...@linaro.org; w...@nvidia.com > Subject:

Re: [PATCH v2 2/4] input: keyboard: tegra: use devm_* for resource allocation

2013-01-09 Thread Dmitry Torokhov
On Wed, Jan 09, 2013 at 08:07:45AM +0100, Thierry Reding wrote: > On Sun, Jan 06, 2013 at 11:57:48AM -0800, Dmitry Torokhov wrote: > > On Sun, Jan 06, 2013 at 08:27:39PM +0100, Thierry Reding wrote: > > > On Sat, Jan 05, 2013 at 12:06:58AM -0800, Dmitry Torokhov wrote: > > > > On Sat, Jan 05, 2013

[PATCH 2/2] usb: gadget: FunctionFS: Refactor option parsing

2013-01-09 Thread Michal Nazarewicz
From: Michal Nazarewicz The use of memcmp() is clever and all and maybe even it makes parsing a bit faster (since only options with given length need to be checked) but option parsing is hardly a critical path and the additional code complexity is not worth it. Signed-off-by: Michal Nazarewicz

[PATCH 1/2] usb: gadget: FunctionFS: Use kstrtoul()

2013-01-09 Thread Michal Nazarewicz
From: Michal Nazarewicz kstrtoul() checks for overflow which simple_strtoul() does not pluss it has “*end == 0” check in it as well. As a side effect, a new line character is now accepted, but this should not be an issue. Signed-off-by: Michal Nazarewicz --- Patch on top of v3.5 with Benoit

Re: [PATCH 1/2] Add mempressure cgroup

2013-01-09 Thread Andrew Morton
On Wed, 9 Jan 2013 12:56:46 +0400 Glauber Costa wrote: > > +#if IS_SUBSYS_ENABLED(CONFIG_CGROUP_MEMPRESSURE) > > +SUBSYS(mpc_cgroup) > > +#endif > > It might be just me, but if one does not know what this is about, "mpc" > immediately fetches something communication-related to mind. I would >

RE: [PATCH 7/9] Thermal: Make PER_ZONE values configurable

2013-01-09 Thread R, Durgadoss
Hi Greg, > -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, January 08, 2013 12:54 AM > To: R, Durgadoss > Cc: Zhang, Rui; linux...@vger.kernel.org; linux-kernel@vger.kernel.org; > eduardo.valen...@ti.com; hongbo.zh...@linaro.org; w...@nvidia.com >

Re: [PATCH v3 0/6] Update PCI notification patchset to latest kernel version

2013-01-09 Thread Yijing Wang
On 2013/1/9 2:30, Yinghai Lu wrote: > On Tue, Jan 8, 2013 at 8:52 AM, Jiang Liu wrote: >> Hi Bjorn, >> Rafael has developed a patchset targetting 3.9 merging window >> which outdates the fourth and fifth patches in my previous version, >> so I have just drop those two patches and updated

Re: [PATCH V3 5/8] memcg: add per cgroup writeback pages accounting

2013-01-09 Thread Sha Zhengju
On Mon, Jan 7, 2013 at 4:07 AM, Greg Thelen wrote: > On Tue, Dec 25 2012, Sha Zhengju wrote: > >> From: Sha Zhengju >> >> Similar to dirty page, we add per cgroup writeback pages accounting. The lock >> rule still is: >> mem_cgroup_begin_update_page_stat() >> modify page

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