Re: [PATCH] thermal: step_wise: set throttle target within thermal instance limits

2013-04-09 Thread Andrew Bresticker
Hi Eduardo, On Tue, Apr 9, 2013 at 8:00 AM, Eduardo Valentin wrote: > Hi Andrew, > > > On 08-04-2013 19:56, Andrew Bresticker wrote: >> >> When selecting a target cooling state in get_target_state(), make sure >> that the state is at least as high as the minimum when the temperature >> is rising

Re: [PATCH] spi-gpio: init CS before spi_bitbang_setup()

2013-04-09 Thread Mark Brown
On Tue, Apr 09, 2013 at 07:06:32PM +0200, Daniel Mack wrote: > Cc: Mark > > On 09.04.2013 18:40, Josef Ahmad wrote: > > spi_bitbang_setup() deasserts the chip select line to initialise > > the device. The chip select GPIO line is obtained from Please resend the patch - git am doesn't know how to

Re: [PATCH] spi-gpio: init CS before spi_bitbang_setup()

2013-04-09 Thread Daniel Mack
Cc: Mark On 09.04.2013 18:40, Josef Ahmad wrote: > spi_bitbang_setup() deasserts the chip select line to initialise > the device. The chip select GPIO line is obtained from > spi_gpio->cs_gpios[] private data. > Currently, devices that are not registered under devicetree > environment will call

Re: linux-next: Tree for Apr 9 [ BROKEN vfs-next: fs/pipe.c ]

2013-04-09 Thread Sedat Dilek
On Tue, Apr 9, 2013 at 11:30 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20130408: > > The vfs tree still had its build failure so I used the version from > next-20130405. > With the attached patch including a follow-up I was able to boot today's Linux-Next. I have reverted "Revert

Re: [PATCH v3 1/1] Introduce Intel RAPL cooling device driver

2013-04-09 Thread Jacob Pan
On Tue, 09 Apr 2013 09:26:55 -0700 Joe Perches wrote: > On Tue, 2013-04-09 at 09:15 -0700, Jacob Pan wrote: > > On Tue, 9 Apr 2013 08:26:38 -0700 > > Greg Kroah-Hartman wrote: > > > > + if (NULL == rp->name || rp->flag & > > > > RAPL_PRIMITIVE_DUMMY) > > > > > > In Linux we do (rp->name

[regression] v3.8 -> v3.9-rc6, caused by commit 8761a3d ("loop: cleanup partitions when detaching loop device")

2013-04-09 Thread Bjørn Mork
Hello, the following simple test causes a deadlock between the loop driver, umount and blkid i v3.9-rc6 (tested on a standard Debian wheezy installating, i.e. with udev 175): qmitest:~# file cd-image-cfg1.iso cd-image-cfg1.iso: # ISO 9660 CD-ROM filesystem data 'D-LINK MODEM' qmitest:~# mount

Re: [PATCH] thermal: fix frequency table lookup bugs

2013-04-09 Thread Andrew Bresticker
Hi Eduardo, On Tue, Apr 9, 2013 at 7:55 AM, Eduardo Valentin wrote: > Hi Andrew, > > > On 08-04-2013 19:54, Andrew Bresticker wrote: >> >> The loops which are used to perform lookups in CPU frequency tables in >> cpu_cooling and the Exynos thermal driver do not update the loop counter >> if they

Re: [PATCH v3 5/7] spi: spi-fsl-spi: Add support for setting a maximum number of bits per word

2013-04-09 Thread Mark Brown
On Tue, Apr 09, 2013 at 05:57:38PM +0100, Mark Brown wrote: > On Fri, Feb 15, 2013 at 04:52:25PM +0100, Andreas Larsson wrote: > > Acked-by: Anton Vorontsov > > Signed-off-by: Andreas Larsson > I'll apply this on account of it being part of the series and review > having been very slow but...

Re: [PATCH v3 3/4] x86, kdump: Change crashkernel_high/low= to crashkernel=;high/low

2013-04-09 Thread Vivek Goyal
On Tue, Apr 09, 2013 at 09:49:28AM -0700, H. Peter Anvin wrote: > On 04/09/2013 09:47 AM, Vivek Goyal wrote: > > On Tue, Apr 09, 2013 at 08:00:57AM -0700, H. Peter Anvin wrote: > >> Please, no semicolons. We already have established syntax for suboptions > >> (option=suboption,suboption,...) and

Re: linux-next: Tree for Apr 9 [cpufreq: NULL pointer deref]

2013-04-09 Thread Sedat Dilek
On Tue, Apr 9, 2013 at 6:51 PM, Viresh Kumar wrote: > On 9 April 2013 21:38, Sedat Dilek wrote: >> With x=3 the system gets in an unuseable state. >> >> root# echo 0 > /sys/devices/system/cpu/cpu3/online >> >> I could not write my reply and had to do a hard/cold reboot. >> The dmesg log I

Re: [PATCH v3 5/7] spi: spi-fsl-spi: Add support for setting a maximum number of bits per word

2013-04-09 Thread Mark Brown
On Fri, Feb 15, 2013 at 04:52:25PM +0100, Andreas Larsson wrote: > Acked-by: Anton Vorontsov > Signed-off-by: Andreas Larsson I'll apply this on account of it being part of the series and review having been very slow but... > /* Make sure its a bit width we support [4..16, 32] */ >

Re: [PATCH v3 linux-next] cpufreq: ondemand: Calculate gradient of CPU load to early increase frequency

2013-04-09 Thread Stratos Karafotis
On 04/05/2013 10:50 PM, Stratos Karafotis wrote: Hi Viresh, On 04/04/2013 07:54 AM, Viresh Kumar wrote: Hi Stratos, Yes, your results show some improvements. BUT if performance is the only thing we were looking for, then we will never use ondemand governor but performance governor. I suspect

Re: [PATCH 3/7] sched: Update rq clock on tickless CPUs before calling check_preempt_curr()

2013-04-09 Thread Frederic Weisbecker
2013/4/9 Peter Zijlstra : > On Sat, 2013-04-06 at 18:45 +0200, Frederic Weisbecker wrote: >> check_preempt_wakeup() of fair class needs an uptodate sched clock >> value to update runtime stats of the current task. >> >> When a task is woken up, activate_task() is usually called right >> before >>

Re: linux-next: Tree for Apr 9 [cpufreq: NULL pointer deref]

2013-04-09 Thread Viresh Kumar
On 9 April 2013 21:38, Sedat Dilek wrote: > With x=3 the system gets in an unuseable state. > > root# echo 0 > /sys/devices/system/cpu/cpu3/online > > I could not write my reply and had to do a hard/cold reboot. > The dmesg log I saw looked similiar to my digicam-shot. Few things i need

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

2013-04-09 Thread Rob Herring
On Tue, Apr 9, 2013 at 11:12 AM, Samuel Ortiz wrote: > Hi Alexander, > > On Tue, Apr 09, 2013 at 07:47:40PM +0400, Alexander Shiyan wrote: >> > On Mon, Apr 08, 2013 at 08:27:49PM +0400, Alexander Shiyan wrote: [...] >> From 3296415f29818a430bad12c92dc65cd81e4d133f Mon Sep 17 00:00:00 2001 >>

Re: [PATCH 0/6] Chainsaw efivars.c

2013-04-09 Thread Matt Fleming
On 09/04/13 17:25, H. Peter Anvin wrote: > On 04/04/2013 05:18 AM, Matt Fleming wrote: >> From: Matt Fleming >> >> drivers/firmware/efivars.c has grown pretty large and is ~2K lines. >> > > Hi Matt, > > Are you expecting me or Matt G. to take this one? I was going to send it to you in a pull

Re: [PATCH v3 3/4] x86, kdump: Change crashkernel_high/low= to crashkernel=;high/low

2013-04-09 Thread H. Peter Anvin
On 04/09/2013 09:47 AM, Vivek Goyal wrote: > On Tue, Apr 09, 2013 at 08:00:57AM -0700, H. Peter Anvin wrote: >> Please, no semicolons. We already have established syntax for suboptions >> (option=suboption,suboption,...) and suboptions with parameters >> (option=suboption:value,...) > > Ok, to

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-04-09 Thread Tony Lindgren
* Roger Quadros [130409 03:00]: > On 04/05/2013 06:58 PM, Tony Lindgren wrote: > > > > Well your approach is fine as a first step moving all the clock > > code, but it needs to be a real driver under drivers/clock/omap. > > And the DT binding needs to stay the same for the driver(s) in the > >

Re: [PATCHv4 01/11] clockevents: Prefer CPU local devices over global devices

2013-04-09 Thread Stephen Boyd
On 04/09/13 03:33, Mark Rutland wrote: > On Mon, Apr 08, 2013 at 10:27:23PM +0100, Stephen Boyd wrote: >> On an SMP system with only one global clockevent and a dummy >> clockevent per CPU we run into problems. We want the dummy >> clockevents to be registered as the per CPU tick devices, but >>

Re: [PATCHv2] ARM: Push selects for TWD/SCU into machine entries

2013-04-09 Thread Stephen Boyd
On 03/26/13 10:34, Stephen Boyd wrote: > On 03/16/13 12:32, Stephen Boyd wrote: >> On 3/5/2013 2:34 PM, Arnd Bergmann wrote: >>> On Tuesday 05 March 2013, Stephen Boyd wrote: On 02/27/13 15:43, Stephen Warren wrote: > Seems simple enough it doesn't really need many, but for Tegra, >

Re: [PATCH v3 3/4] x86, kdump: Change crashkernel_high/low= to crashkernel=;high/low

2013-04-09 Thread Vivek Goyal
On Tue, Apr 09, 2013 at 08:00:57AM -0700, H. Peter Anvin wrote: > Please, no semicolons. We already have established syntax for suboptions > (option=suboption,suboption,...) and suboptions with parameters > (option=suboption:value,...) Ok, to understand it better, so crashkernel= will look as

Re: [RFC PATCH 0/2] cpufreq: Introduce LAB cpufreq governor.

2013-04-09 Thread Lukasz Majewski
Hi Viresh and Vincent, > On 9 April 2013 16:07, Lukasz Majewski wrote: > >> On Mon, Apr 1, 2013 at 1:54 PM, Jonghwa Lee > > Our approach is a bit different than cpufreq_ondemand one. Ondemand > > takes the per CPU idle time, then on that basis calculates per cpu > > load. The next step is to

[PATCH v2] x86: use fixed read-only IDT

2013-04-09 Thread Kees Cook
Make a copy of the IDT (as seen via the "sidt" instruction) read-only. This primarily removes the IDT from being a target for arbitrary memory write attacks, and has the added benefit of also not leaking the kernel base offset, if it has been relocated. Signed-off-by: Kees Cook Cc: Eric Northup

Re: [PATCH 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-09 Thread Stephen Boyd
On 04/09/13 02:08, Mark Rutland wrote: > On Tue, Apr 09, 2013 at 03:30:20AM +0100, Stephen Boyd wrote: >> >> -** Timer node properties: >> +** CP15 Timer node properties: >> >> - compatible : Should at least contain one of >> "arm,armv7-timer" >> @@ -26,3 +30,55 @@ Example: >>

Re: [PATCH 3/4] gpio: Kontron PLD gpio driver

2013-04-09 Thread Guenter Roeck
On Tue, Apr 09, 2013 at 10:46:15AM +0200, Linus Walleij wrote: > On Mon, Apr 8, 2013 at 7:15 PM, Kevin Strasser > wrote: > > > From: Michael Brunner > > > > Add gpio support for the on-board PLD found on some Kontron embedded > > modules. > > > > Signed-off-by: Michael Brunner > >

[PATCH] tile: comment assumption about __insn_mtspr for

2013-04-09 Thread Chris Metcalf
The arch_local_irq_save(), etc., routines are required to function as compiler barriers. They do, but it's subtle and requires knowing that the gcc builtin __insn_mtspr() is marked as a memory clobber. Provide a comment explaining the assumption. Signed-off-by: Chris Metcalf ---

Re: [Xen-devel] [PATCH-v2] xen: Don't call arch_trigger_all_cpu_backtrace in dom0(pvm)

2013-04-09 Thread Ian Campbell
On Mon, 2013-04-08 at 08:42 +0100, Jan Beulich wrote: > >>> On 07.04.13 at 07:54, Zhenzhong Duan wrote: > > nmi isn't supported in dom0, fallback to general all cpu backtrace code. > > Since when is sending NMIs not supported, and since when is this > Dom0-specific? If you want to deal with

Re: [PATCH v3 1/1] Introduce Intel RAPL cooling device driver

2013-04-09 Thread Greg Kroah-Hartman
On Tue, Apr 09, 2013 at 09:15:17AM -0700, Jacob Pan wrote: > On Tue, 9 Apr 2013 08:26:38 -0700 > Greg Kroah-Hartman wrote: > > > + if (NULL == rp->name || rp->flag & RAPL_PRIMITIVE_DUMMY) > > > > In Linux we do (rp->name == NULL), or even better yet (!rp->name), > > please fix that up here and

Re: [PATCH v2 2/2] mmc: mxs-mmc: add non-removable property

2013-04-09 Thread Marc Kleine-Budde
On 04/09/2013 05:21 PM, Hector Palacios wrote: > On 04/09/2013 05:14 PM, Hector Palacios wrote: >> @@ -95,7 +97,8 @@ static int mxs_mmc_get_cd(struct mmc_host *mmc) >> struct mxs_mmc_host *host = mmc_priv(mmc); >> struct mxs_ssp *ssp = >ssp; >> >> - return !(readl(ssp->base

Re: [PATCH v2] kmsg: Honor dmesg_restrict sysctl on /dev/kmsg

2013-04-09 Thread Kees Cook
On Tue, Apr 9, 2013 at 8:48 AM, Josh Boyer wrote: > The dmesg_restrict sysctl currently covers the syslog method for access > dmesg, however /dev/kmsg isn't covered by the same protections. Most > people haven't noticed because util-linux dmesg(1) defaults to using the > syslog method for access

Re: [PATCH v3 1/1] Introduce Intel RAPL cooling device driver

2013-04-09 Thread Joe Perches
On Tue, 2013-04-09 at 09:07 -0700, Greg Kroah-Hartman wrote: > On Tue, Apr 09, 2013 at 08:53:37AM -0700, Joe Perches wrote: > > On Tue, 2013-04-09 at 08:26 -0700, Greg Kroah-Hartman wrote: > > > On Tue, Apr 09, 2013 at 05:46:18AM -0700, Jacob Pan wrote: > > > > +#define DEBUG > > > Why? I think

Re: [PATCH v3 1/1] Introduce Intel RAPL cooling device driver

2013-04-09 Thread Joe Perches
On Tue, 2013-04-09 at 09:15 -0700, Jacob Pan wrote: > On Tue, 9 Apr 2013 08:26:38 -0700 > Greg Kroah-Hartman wrote: > > > + if (NULL == rp->name || rp->flag & RAPL_PRIMITIVE_DUMMY) > > > > In Linux we do (rp->name == NULL), or even better yet (!rp->name), > > please fix that up here and

Re: [PATCH 0/6] Chainsaw efivars.c

2013-04-09 Thread H. Peter Anvin
On 04/04/2013 05:18 AM, Matt Fleming wrote: > From: Matt Fleming > > drivers/firmware/efivars.c has grown pretty large and is ~2K lines. > Hi Matt, Are you expecting me or Matt G. to take this one? -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: mfd: Core driver for Winbond chips

2013-04-09 Thread Guenter Roeck
On Tue, Apr 09, 2013 at 01:45:44PM +0200, Wim Van Sebroeck wrote: > Hi Guenter, > > > I was waiting for feedback from Wim, who submitted a similar driver, about > > his > > thoughts. Key question is how to reserve access to the shared resource - > > either > > through an exported function in

Re: [PATCH v3 1/1] Introduce Intel RAPL cooling device driver

2013-04-09 Thread Jacob Pan
On Tue, 9 Apr 2013 08:26:38 -0700 Greg Kroah-Hartman wrote: > > + if (NULL == rp->name || rp->flag & RAPL_PRIMITIVE_DUMMY) > > In Linux we do (rp->name == NULL), or even better yet (!rp->name), > please fix that up here and elsewhere in the driver. > I can fix that. I did that because

Re: [PATCH v1 5/7] xen-blkback: make the queue of free requests per backend

2013-04-09 Thread Konrad Rzeszutek Wilk
On Wed, Mar 27, 2013 at 12:10:41PM +0100, Roger Pau Monne wrote: > Remove the last dependency from blkbk by moving the list of free > requests to blkif. This change reduces the contention on the list of > available requests. > > Signed-off-by: Roger Pau Monné > Cc: Konrad Rzeszutek Wilk > Cc:

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

2013-04-09 Thread Samuel Ortiz
Hi Alexander, On Tue, Apr 09, 2013 at 07:47:40PM +0400, Alexander Shiyan wrote: > > On Mon, Apr 08, 2013 at 08:27:49PM +0400, Alexander Shiyan wrote: > > > > > > After merging the mfd tree, today's linux-next build (x86_64 > > > > > > allmodconfig) > > > > > > failed like this: > > > > > > > >

Re: linux-next: Tree for Apr 9 [cpufreq: NULL pointer deref]

2013-04-09 Thread Sedat Dilek
On Tue, Apr 9, 2013 at 4:56 PM, Viresh Kumar wrote: > On 9 April 2013 19:34, Sedat Dilek wrote: >> I have seen it on reboots. >> How to online/offline from sysfs? > > offline a cpu "x" with: > > echo 0 > /sys/devices/system/cpu/cpux/online > > and online with echo 1 > to same location. With x=3

Re: [PATCH v3 1/1] Introduce Intel RAPL cooling device driver

2013-04-09 Thread Greg Kroah-Hartman
On Tue, Apr 09, 2013 at 08:53:37AM -0700, Joe Perches wrote: > On Tue, 2013-04-09 at 08:26 -0700, Greg Kroah-Hartman wrote: > > On Tue, Apr 09, 2013 at 05:46:18AM -0700, Jacob Pan wrote: > > > +#define DEBUG > > Why? I think you need to remove this line :) > > Some people like their dev_dbg

Re: [RFC PATCH] watchdog: Add hook for kicking in kdump path

2013-04-09 Thread Guenter Roeck
On Tue, Apr 09, 2013 at 11:14:23AM -0400, Don Zickus wrote: > On Tue, Apr 09, 2013 at 07:52:28AM -0700, Guenter Roeck wrote: > > On Tue, Apr 09, 2013 at 10:44:31AM -0400, Don Zickus wrote: > > > On Mon, Apr 08, 2013 at 08:15:09AM -0700, Guenter Roeck wrote: > > > > On Mon, Apr 08, 2013 at

Re: [PATCH 2/2] trace-cmd: Support trace_clock extraction

2013-04-09 Thread Steven Rostedt
On Tue, 2013-04-09 at 12:00 -0400, Steven Rostedt wrote: > I think it's time for me to push my latest updates to trace-cmd. As this > will probably end up being the 3.0 version. I have examples there that > use the options feature for more extensions that you can look at. > I just pushed my

Re: [PATCH 2/2] trace-cmd: Support trace_clock extraction

2013-04-09 Thread Steven Rostedt
On Fri, 2013-04-05 at 10:54 +0900, Yoshihiro YUNOMAE wrote: > In this patch, trace-cmd reads trace_clock on debugfs in the report/extract > modes and outputs the data to trace.dat file. Then, in the report mode, > trace-cmd reads trace_clock data from the file and switches outputting format > of

Re: [PATCH v3 1/1] Introduce Intel RAPL cooling device driver

2013-04-09 Thread Joe Perches
On Tue, 2013-04-09 at 05:46 -0700, Jacob Pan wrote: > RAPL(Running Average Power Limit) interface provides platform software > with the ability to monitor, control, and get notifications on SOC > power consumptions. yet more trivia: > diff --git a/drivers/platform/x86/intel_rapl.c >

[PATCH] pinctrl: vt8500: wmt: Fix checking return value of pinctrl_register()

2013-04-09 Thread Axel Lin
pinctrl_register() returns NULL on error. Signed-off-by: Axel Lin --- drivers/pinctrl/vt8500/pinctrl-wmt.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/vt8500/pinctrl-wmt.c b/drivers/pinctrl/vt8500/pinctrl-wmt.c index 14400a7..ab63104e 100644 ---

Re: [Drbd-dev] [PATCH] drivers/block/drbd: remove erroneous semicolon

2013-04-09 Thread Lars Ellenberg
On Tue, Apr 09, 2013 at 09:22:40AM +0800, Chen Gang wrote: > On 2013年04月09日 04:45, Lars Ellenberg wrote: > > On Wed, Apr 03, 2013 at 04:00:31PM +0800, Chen Gang wrote: > >> > Hello maintainers: > >> > > >> > when you have time, please help to check this patch whether is OK. > >> > > >> >

Re: [PATCH] kthread: Prevent unpark race which puts threads on the wrong cpu

2013-04-09 Thread Dave Hansen
Hey Thomas, I don't think the patch helped my case. Looks like the same BUG_ON(). I accidentally booted with possible_cpus=10 instead of 160. I wasn't able to trigger this in that case, even repeatedly on/offlining them. But, once I booted with possible_cpus=160, it triggered in a jiffy. Two

Re: [PATCH v3 1/1] Introduce Intel RAPL cooling device driver

2013-04-09 Thread Joe Perches
On Tue, 2013-04-09 at 08:26 -0700, Greg Kroah-Hartman wrote: > On Tue, Apr 09, 2013 at 05:46:18AM -0700, Jacob Pan wrote: > > +#define DEBUG > Why? I think you need to remove this line :) Some people like their dev_dbg statements to be emitted all the time. -- To unsubscribe from this list:

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

2013-04-09 Thread Stephen Rothwell
Hi Al, On 2013-04-08 11:15, Stephen Rothwell wrote: After merging the vfs tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_init': arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2990:2: error: assignment

[PATCH v2] kmsg: Honor dmesg_restrict sysctl on /dev/kmsg

2013-04-09 Thread Josh Boyer
The dmesg_restrict sysctl currently covers the syslog method for access dmesg, however /dev/kmsg isn't covered by the same protections. Most people haven't noticed because util-linux dmesg(1) defaults to using the syslog method for access in older versions. With util-linux dmesg(1) defaults to

Re: linux-next: Tree for Apr 9

2013-04-09 Thread Sedat Dilek
On Tue, Apr 9, 2013 at 5:11 PM, Sedat Dilek wrote: > On Tue, Apr 9, 2013 at 4:32 PM, Sedat Dilek wrote: >> On Tue, Apr 9, 2013 at 4:23 PM, Stephen Rothwell >> wrote: >>> Hi Sedat, >>> >>> On Tue, 9 Apr 2013 16:11:50 +0200 Sedat Dilek wrote: [ CC Al Viro ] >>> >>> You forgot to do

Re[2]: linux-next: build failure after merge of the mfd tree

2013-04-09 Thread Alexander Shiyan
> On Mon, Apr 08, 2013 at 08:27:49PM +0400, Alexander Shiyan wrote: > > > > > After merging the mfd tree, today's linux-next build (x86_64 > > > > > allmodconfig) > > > > > failed like this: > > > > > > > > > > drivers/regulator/anatop-regulator.c: In function > > > > >

Re: [PATCH 2/3] ARM: dts: tegra: Correct PCIe entry

2013-04-09 Thread Stephen Warren
On 04/09/2013 02:30 AM, Peter De Schrijver wrote: > On Mon, Apr 08, 2013 at 08:27:00PM +0200, Stephen Warren wrote: >> On 04/08/2013 09:41 AM, Jay Agarwal wrote: >>> Signed-off-by: Jay Agarwal >> >> Your s-o-b line should be below the patch description, not above it. >> Please see

Re: [PATCH v1 2/7] xen-blkback: use balloon pages for all mappings

2013-04-09 Thread Konrad Rzeszutek Wilk
On Wed, Mar 27, 2013 at 12:10:38PM +0100, Roger Pau Monne wrote: > Using balloon pages for all granted pages allows us to simplify the > logic in blkback, especially in the xen_blkbk_map function, since now > we can decide if we want to map a grant persistently or not after we > have actually

Re: [PATCH v1 3/7] xen-blkback: implement LRU mechanism for persistent grants

2013-04-09 Thread Konrad Rzeszutek Wilk
On Wed, Mar 27, 2013 at 12:10:39PM +0100, Roger Pau Monne wrote: > This mechanism allows blkback to change the number of grants > persistently mapped at run time. > > The algorithm uses a simple LRU mechanism that removes (if needed) the > persistent grants that have not been used since the last

Re: [PATCH v3 1/1] Introduce Intel RAPL cooling device driver

2013-04-09 Thread Greg Kroah-Hartman
On Tue, Apr 09, 2013 at 05:46:18AM -0700, Jacob Pan wrote: > +config INTEL_RAPL > + tristate "Intel RAPL Support" > + depends on THERMAL > + default y Unless you can not boot your machine without this, you should never default to y. Just delete this line. > +#define DEBUG Why? I

[PATCH RESEND 3/3] perf, amd: Enable L2I performance counters on AMD Family 16h

2013-04-09 Thread Jacob Shin
AMD Family 16h processors provide 4 new performance counters (in addition to 4 legacy core counters, and 4 northbridge counters) for monitoring L2 cache specific events (i.e. L2 cache misses). These 4 counters are shared between all CPUs that share the same L2 cache. We will use the same existing

[PATCH RESEND 1/3] perf, amd: Further generalize NB event constraints handling logic

2013-04-09 Thread Jacob Shin
In preparation for enabling AMD L2I performance counters, we will further generalize NB event constraints handling logic to now allow any type of shared counters. This is just a code rework, there are no functional changes. Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event.h |

[PATCH RESEND 2/3] perf, x86: Allow for multiple kfree_on_online pointers

2013-04-09 Thread Jacob Shin
Currently only 1 pointer can be freed using kfree_on_online mechanism, allow for multiple. Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event.c |7 +-- arch/x86/kernel/cpu/perf_event.h |3 ++- arch/x86/kernel/cpu/perf_event_amd.c |2 +-

[PATCH RESEND 0/3] perf, amd: Support for Family 16h L2I Performance Counters

2013-04-09 Thread Jacob Shin
Upcoming AMD Family 16h Processors provide 4 new performance counters to count L2 related events. Similar to northbridge counters, these new counters are shared across multiple CPUs that share the same L2 cache. This patchset adds support for these new counters and enforces sharing by leveraging

Re: [PATCH v2 2/2] mmc: mxs-mmc: add non-removable property

2013-04-09 Thread Hector Palacios
On 04/09/2013 05:14 PM, Hector Palacios wrote: @@ -95,7 +97,8 @@ static int mxs_mmc_get_cd(struct mmc_host *mmc) struct mxs_mmc_host *host = mmc_priv(mmc); struct mxs_ssp *ssp = >ssp; - return !(readl(ssp->base + HW_SSP_STATUS(ssp)) & + return host->non_removable

Re: [patch v3 6/8] sched: consider runnable load average in move_tasks

2013-04-09 Thread Vincent Guittot
On 9 April 2013 16:48, Alex Shi wrote: > On 04/09/2013 07:56 PM, Vincent Guittot wrote: >> On 9 April 2013 12:38, Alex Shi wrote: >>> On 04/09/2013 04:58 PM, Vincent Guittot wrote: How do you ensure that runnable_avg_period and runnable_avg_sum are coherent ? an update of the

Re: [RFC PATCH] watchdog: Add hook for kicking in kdump path

2013-04-09 Thread Don Zickus
On Tue, Apr 09, 2013 at 07:52:28AM -0700, Guenter Roeck wrote: > On Tue, Apr 09, 2013 at 10:44:31AM -0400, Don Zickus wrote: > > On Mon, Apr 08, 2013 at 08:15:09AM -0700, Guenter Roeck wrote: > > > On Mon, Apr 08, 2013 at 08:48:58AM -0400, Don Zickus wrote: > > > > On Mon, Apr 08, 2013 at

Re: [PATCH v2 2/2] mmc: mxs-mmc: add non-removable property

2013-04-09 Thread Hector Palacios
Dear Marc Kleine-Budde, On 04/05/2013 02:47 PM, Marc Kleine-Budde wrote: Some boards have non removable cards like eMMC. Handle such case. Acked-by: Shawn Guo Signed-off-by: Marc Kleine-Budde --- changes since v1: - fix removeable typo drivers/mmc/host/mxs-mmc.c | 10 +++--- 1 file

Re: [PATCH V3] iommu/amd: Add logic to decode AMD IOMMU event flag

2013-04-09 Thread Suravee Suthikulanit
On 4/9/2013 4:41 AM, Joerg Roedel wrote: On Tue, Apr 02, 2013 at 07:06:50PM -0500, Suthikulpanit, Suravee wrote: From: Suravee Suthikulpanit Add logic to decode AMD IOMMU event flag based on information from AMD IOMMU specification. This should simplify debugging IOMMU errors. Also, dump

Re: [PATCH 3/4] uprobes/tracing: Kill the pointless local_save_flags/preempt_count calls

2013-04-09 Thread Steven Rostedt
On Tue, 2013-04-09 at 16:58 +0200, Oleg Nesterov wrote: > Hmm, just to remind which arguments trace_current_buffer_*() has? > > Personally I disagree. And, for example, ftrace_syscall_enter/exit just > use 0,0 for the same reason. > > So please tell me if you really want the dummy

Re: [PATCH] driver core: add uid and gid to devtmpfs

2013-04-09 Thread Rob Landley
On 04/08/2013 01:25:27 PM, Greg KH wrote: On Mon, Apr 08, 2013 at 01:14:13PM -0500, Rob Landley wrote: > On 04/06/2013 11:56:00 AM, Greg KH wrote: > >From: Kay Sievers > > > >Some drivers want to tell userspace what uid and gid should be > >used for > >their device nodes, so allow that

Re: linux-next: Tree for Apr 9

2013-04-09 Thread Sedat Dilek
On Tue, Apr 9, 2013 at 4:32 PM, Sedat Dilek wrote: > On Tue, Apr 9, 2013 at 4:23 PM, Stephen Rothwell > wrote: >> Hi Sedat, >> >> On Tue, 9 Apr 2013 16:11:50 +0200 Sedat Dilek wrote: >>> >>> [ CC Al Viro ] >> >> You forgot to do that ... >> >>> Is there a "magic" git-command to revert all

Re: [RFC PATCH 1/1] mm: Another attempt to monitor task's memory changes

2013-04-09 Thread Pavel Emelyanov
On 04/09/2013 02:30 AM, Andrew Morton wrote: > On Fri, 05 Apr 2013 21:06:12 +0400 Pavel Emelyanov > wrote: > >> Hello, >> >> This is another attempt (previous one was [1]) to implement support for >> memory snapshot for the the checkpoint-restore project (http://criu.org). >> Let me remind

Re: [PATCH 4/4] uprobes/tracing: generalize struct uprobe_trace_entry_head

2013-04-09 Thread Steven Rostedt
On Tue, 2013-04-09 at 16:50 +0200, Oleg Nesterov wrote: > On 04/08, Steven Rostedt wrote: > OK, will do. > > Or. Instead of enum we can use "bool is_return". So, instead of > > if (is_ret_probe(tu)) > size = SIZEOF_TRACE_ENTRY(UPROBE_ENTRY_RETPROBE); > else >

Re: [PATCH 3/4] uprobes/tracing: Kill the pointless local_save_flags/preempt_count calls

2013-04-09 Thread Oleg Nesterov
On 04/08, Steven Rostedt wrote: > > On Fri, 2013-03-29 at 19:15 +0100, Oleg Nesterov wrote: > > --- a/kernel/trace/trace_uprobe.c > > +++ b/kernel/trace/trace_uprobe.c > > @@ -492,17 +492,13 @@ static int uprobe_trace_func(struct trace_uprobe *tu, > > struct pt_regs *regs) > > struct

regulator: ab8500-ext: Strange set_mode behavior when info->cfg->hwreq is set

2013-04-09 Thread Axel Lin
Hi, I see below code && comments in enable() function: /* * To satisfy both HW high power request and SW request, the regulator * must be on in high power. */ if (info->cfg && info->cfg->hwreq) *regval = info->update_val_hp; I'm not

Re: [PATCH v3 3/4] x86, kdump: Change crashkernel_high/low= to crashkernel=;high/low

2013-04-09 Thread H. Peter Anvin
Please, no semicolons. We already have established syntax for suboptions (option=suboption,suboption,...) and suboptions with parameters (option=suboption:value,...) Vivek Goyal wrote: >On Thu, Apr 04, 2013 at 03:17:01PM -0700, Yinghai Lu wrote: > >[..] >> @@ -1360,37 +1369,80 @@ static int

Re: [PATCH] thermal: step_wise: set throttle target within thermal instance limits

2013-04-09 Thread Eduardo Valentin
Hi Andrew, On 08-04-2013 19:56, Andrew Bresticker wrote: When selecting a target cooling state in get_target_state(), make sure that the state is at least as high as the minimum when the temperature is rising and at least as low as the maximum when the temperature is falling. Previously the

Re: [PATCH] kernel: trace: ftrace: strncpy, using strlcpy instead of strncpy

2013-04-09 Thread Steven Rostedt
I'll queue this up for my 3.10 queue. I'm going to merge this patch with the previous patch you sent that updates trace.c Thanks, -- Steve On Mon, 2013-04-08 at 12:12 +0800, Chen Gang wrote: > for NUL terminated string, need always set '\0' at the end. > > Signed-off-by: Chen Gang > --- >

[PATCH v5] sched: fix wrong rq's runnable_avg update with rt tasks

2013-04-09 Thread Vincent Guittot
The current update of the rq's load can be erroneous when RT tasks are involved The update of the load of a rq that becomes idle, is done only if the avg_idle is less than sysctl_sched_migration_cost. If RT tasks and short idle duration alternate, the runnable_avg will not be updated correctly

Re: linux-next: Tree for Apr 9 [cpufreq: NULL pointer deref]

2013-04-09 Thread Sedat Dilek
line with echo 1 > to same location. Eh, yeah I re-remember it now :-). I will try with next-20130328 which boots fine here and hope the hanging on reboot and in running system is OK. next-20130409 is broken due to vfs-next issues (see Linux-Next ML). Will try that first... - Sedat

Re: linux-next: Tree for Apr 9 [cpufreq: NULL pointer deref]

2013-04-09 Thread Viresh Kumar
On 9 April 2013 19:33, Rafael J. Wysocki wrote: > On Tuesday, April 09, 2013 02:47:39 PM Sedat Dilek wrote: >> On reboot I see hanging cpufreq with the help of kdb/kgdb? >> See screenshot. >> >> I have also a screenshot with next-20130326, so this issue seems not to be >> new. > > This is during

Re: [PATCH 3/3] ARM: dts: list the interrupts generated by pin-controller on Exynos5440

2013-04-09 Thread Kukjin Kim
On 04/09/13 17:24, Linus Walleij wrote: On Tue, Mar 26, 2013 at 4:12 PM, Kukjin Kim wrote: From: Thomas Abraham Exynos5440 pin-controller generates eight interrupts to support gpio interrupts. List those interrupt numbers in the pin-controller node. Signed-off-by: Thomas Abraham Cc: Linus

Re: linux-next: Tree for Apr 9 [cpufreq: NULL pointer deref]

2013-04-09 Thread Viresh Kumar
On 9 April 2013 19:34, Sedat Dilek wrote: > I have seen it on reboots. > How to online/offline from sysfs? offline a cpu "x" with: echo 0 > /sys/devices/system/cpu/cpux/online and online with echo 1 > to same location. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [PATCH] sched: Fix 32bit race in sched_clock_remote()

2013-04-09 Thread Yong Zhang
On Fri, Apr 05, 2013 at 06:36:40PM +0200, Peter Zijlstra wrote: > Thomas spotted a nasty 32bit race in sched_clock_remote() after way too > many hours of debugging weirdness. > > What happens is that sched_clock_remote() does regular machine word > reads of sched_clock_data::clock; this appears

Re: [PATCH] thermal: fix frequency table lookup bugs

2013-04-09 Thread Eduardo Valentin
Hi Andrew, On 08-04-2013 19:54, Andrew Bresticker wrote: The loops which are used to perform lookups in CPU frequency tables in cpu_cooling and the Exynos thermal driver do not update the loop counter if they encounter an invalid table entry, leading to an infinite loop in that case.

Re: [PATCH 4/4] uprobes/tracing: generalize struct uprobe_trace_entry_head

2013-04-09 Thread Oleg Nesterov
On 04/08, Steven Rostedt wrote: > > On Fri, 2013-03-29 at 19:15 +0100, Oleg Nesterov wrote: > > > > @@ -491,20 +502,19 @@ static int uprobe_trace_func(struct trace_uprobe *tu, > > struct pt_regs *regs) > > struct uprobe_trace_entry_head *entry; > > struct ring_buffer_event *event; > >

Re: [PATCH V2 Resend 4/4] timer: Migrate running timer

2013-04-09 Thread Viresh Kumar
[Steven replied to a personal Ping!!, including everybody again] On 9 April 2013 19:25, Steven Rostedt wrote: > On Tue, 2013-04-09 at 14:05 +0530, Viresh Kumar wrote: >> Ping!! >> > > Remind me again. What problem are you trying to solve? I was trying to migrate a running timer which arms

Re: [RFC PATCH 1/1] mm: Another attempt to monitor task's memory changes

2013-04-09 Thread Pavel Emelyanov
On 04/09/2013 03:10 AM, KOSAKI Motohiro wrote: >> This approach works on any task via it's proc, and can be used on different >> tasks in parallel. >> >> Also, Andrew was asking for some performance numbers related to the change. >> Now I can say, that as long as soft dirty bits are not cleared,

Re: [RFC PATCH] watchdog: Add hook for kicking in kdump path

2013-04-09 Thread Guenter Roeck
On Tue, Apr 09, 2013 at 10:44:31AM -0400, Don Zickus wrote: > On Mon, Apr 08, 2013 at 08:15:09AM -0700, Guenter Roeck wrote: > > On Mon, Apr 08, 2013 at 08:48:58AM -0400, Don Zickus wrote: > > > On Mon, Apr 08, 2013 at 01:46:58PM +0800, Dave Young wrote: > > > > On 04/06/2013 04:16 AM, Don Zickus

Re: [RFC] rootmpfs

2013-04-09 Thread Rob Landley
On 04/05/2013 02:53:12 PM, Byron Stanoszek wrote: Rob, FWIW I have a patch to do something like this. It even gives you a rdsize=xxx tunable kernel parameter that lets you specify the size of the tmpfs, which acts like the -osize= mount flag (so phrases like 100M or 20% works). So doing

[GIT PULL] Final block fixes for 3.9

2013-04-09 Thread Jens Axboe
a real fix in for 3.10. Please pull! Tag is signed. git://git.kernel.dk/linux-block.git tags/for-linus-20130409 for-linus-20130409 Arnd Bergmann (1): block

Re: [patch v3 6/8] sched: consider runnable load average in move_tasks

2013-04-09 Thread Alex Shi
On 04/09/2013 07:56 PM, Vincent Guittot wrote: > On 9 April 2013 12:38, Alex Shi wrote: >> On 04/09/2013 04:58 PM, Vincent Guittot wrote: >>> How do you ensure that runnable_avg_period and runnable_avg_sum are >>> coherent ? an update of the statistic can occur in the middle of your

Re: [PATCH 3/4] clocksource: arch_timer: Push the read/write wrappers deeper

2013-04-09 Thread Stephen Boyd
On 04/09/13 02:38, Mark Rutland wrote: > On Tue, Apr 09, 2013 at 03:30:22AM +0100, Stephen Boyd wrote: >> -static inline u32 arch_timer_reg_read(const int access, const int reg) >> +static inline u32 __arch_timer_reg_read(const int access, const int reg) > Rather than prefixing all of these with

Re: [PATCH v1 1/7] xen-blkback: print stats about persistent grants

2013-04-09 Thread Konrad Rzeszutek Wilk
On Wed, Mar 27, 2013 at 12:10:37PM +0100, Roger Pau Monne wrote: > Signed-off-by: Roger Pau Monné > Cc: xen-de...@lists.xen.org > Cc: Konrad Rzeszutek Wilk Looks good. > --- > drivers/block/xen-blkback/blkback.c |6 -- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH v1 2/7] xen-blkback: use balloon pages for all mappings

2013-04-09 Thread Konrad Rzeszutek Wilk
On Wed, Mar 27, 2013 at 12:10:38PM +0100, Roger Pau Monne wrote: > Using balloon pages for all granted pages allows us to simplify the > logic in blkback, especially in the xen_blkbk_map function, since now > we can decide if we want to map a grant persistently or not after we > have actually

Re: [PATCH 2/3] mm, slub: count freed pages via rcu as this task's reclaimed_slab

2013-04-09 Thread Christoph Lameter
On Tue, 9 Apr 2013, Simon Jeons wrote: > > + int pages = 1 << compound_order(page); > > One question irrelevant this patch. Why slab cache can use compound > page(hugetlbfs pages/thp pages)? They are just used by app to optimize tlb > miss, is it? Slab caches can use any order pages because

Re: [PATCH 4/4] nohz: New option to force all CPUs in full dynticks range

2013-04-09 Thread Christoph Lameter
On Tue, 9 Apr 2013, Paul Gortmaker wrote: > > 2. Avoid the setting of cpus entirely? If full nohz mode is desired > > then pick one cpu (f.e. the first one or the one that is used for xtime > > updates) and then make all other cpus nohz. Set the affinity mask for the > > rcuoXXX threads to that

Re: [RFC PATCH] watchdog: Add hook for kicking in kdump path

2013-04-09 Thread Don Zickus
On Mon, Apr 08, 2013 at 08:15:09AM -0700, Guenter Roeck wrote: > On Mon, Apr 08, 2013 at 08:48:58AM -0400, Don Zickus wrote: > > On Mon, Apr 08, 2013 at 01:46:58PM +0800, Dave Young wrote: > > > On 04/06/2013 04:16 AM, Don Zickus wrote: > > > > A common problem with kdump is that during the boot

[PATCH 1/1] TPM: STMicroelectronics st33 driver SPI

2013-04-09 Thread Matthias Leblanc
From: Mathias leblanc * STMicroelectronics version 1.2.0, Copyright (C) 2010 * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. * This is free software, and you are welcome to redistribute it * under certain conditions. This is the driver for TPM chip from ST Microelectronics. If you

Re: [RFC 2/2] initramfs with digital signature protection

2013-04-09 Thread Vivek Goyal
On Mon, Apr 08, 2013 at 04:17:56PM -0400, Josh Boyer wrote: [..] > >> > I was thinking about this point that keys can be loaded from signed > >> > initramfs. But how is it better than embedding the keys in kernel the > >> > way we do for module signing and lock down ima keyring before control >

[PATCH] kthread: Prevent unpark race which puts threads on the wrong cpu

2013-04-09 Thread Thomas Gleixner
The smpboot threads rely on the park/unpark mechanism which binds per cpu threads on a particular core. Though the functionality is racy: CPU0CPU1CPU2 unpark(T) wake_up_process(T) clear(SHOULD_PARK)T runs

Re: [PATCH 2/3] mm, slub: count freed pages via rcu as this task's reclaimed_slab

2013-04-09 Thread Christoph Lameter
On Tue, 9 Apr 2013, Joonsoo Kim wrote: > Currently, freed pages via rcu is not counted for reclaimed_slab, because > it is freed in rcu context, not current task context. But, this free is > initiated by this task, so counting this into this task's reclaimed_slab > is meaningful to decide whether

[PATCH] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-09 Thread Peter Ujfalusi
cyclic DMA is only used by audio which needs DMA to be started without a delay. If the DMA for audio is started using the tasklet we experience random channel switch (to be more precise: channel shift). Reported-by: Peter Meerwald CC: sta...@vger.kernel.org # v3.7+ Signed-off-by: Peter Ujfalusi

Re: [PATCH] [PATCH] Gaurantee spinlocks implicit barrier for !PREEMPT_COUNT

2013-04-09 Thread Linus Torvalds
On Mon, Apr 8, 2013 at 8:07 AM, Linus Torvalds wrote: > On Mon, Apr 8, 2013 at 7:59 AM, Steven Rostedt wrote: >>> +/* This is only a barrier to other asms. Notably get_user/put_user */ >> >> Probably should add in the comment: >> >> " or anything else that can cause a hidden

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