Re: [PATCH 1/1] module: fix sprintf format specifier in param_get_byte()

2013-08-07 Thread Rusty Russell
Christoph Jaeger writes: > In param_get_byte(), to which the macro STANDARD_PARAM_DEF(byte, ...) expands, > "%c" is used to print an unsigned char. So it gets printed as a character what > is not intended here. Use "%hhu" instead. > > Signed-off-by: Christoph Jaeger Nice patch. Unfortunately, t

Re: [PATCH 1/2] hwmon: (lm90) Add power control

2013-08-07 Thread Guenter Roeck
On 08/06/2013 11:52 PM, Wei Ni wrote: The device lm90 can be controlled by the vdd rail. Adding the power control support to power on/off the vdd rail. And make sure that power is enabled before accessing the device. Signed-off-by: Wei Ni --- drivers/hwmon/lm90.c | 52 ++

Re: [RFC PATCH 3/4] mm: add zbud flag to page flags

2013-08-07 Thread Krzysztof Kozlowski
On wto, 2013-08-06 at 09:58 -0700, Dave Hansen wrote: > On 08/05/2013 11:42 PM, Krzysztof Kozlowski wrote: > > +#ifdef CONFIG_ZBUD > > + /* Allocated by zbud. Flag is necessary to find zbud pages to unuse > > +* during migration/compaction. > > +*/ > > + PG_zbud, > > +#endif > > Do you

Re: [PATCH] kernel/sysctl_binary.c: improve the usage of return value 'result'

2013-08-07 Thread Li Zefan
>> To be honest... >> >> You are too bad in english to do kernel development. You don't seem to >> know how to communicate in english... >> > > So I should improve my English, and now I am just trying improving. > > At least, it is not an excuse to leave upstream kernel development, is > it right

Re: [PATCH] [V2] gpio: New driver for LSI ZEVIO SoCs

2013-08-07 Thread Michal Simek
Hi, On 08/06/2013 09:53 PM, Fabian Vogt wrote: > This driver supports the GPIO controller found in LSI ZEVIO SoCs. > It has been successfully tested on a TI nspire CX calculator. > --- > .../devicetree/bindings/gpio/gpio-zevio.txt| 19 ++ > drivers/gpio/Kconfig

Re: [PATCH 1/4] mm, rmap: do easy-job first in anon_vma_fork

2013-08-07 Thread Joonsoo Kim
Hello, Johannes. On Tue, Aug 06, 2013 at 08:58:54AM -0400, Johannes Weiner wrote: > > if (anon_vma_clone(vma, pvma)) > > - return -ENOMEM; > > - > > - /* Then add our own anon_vma. */ > > - anon_vma = anon_vma_alloc(); > > - if (!anon_vma) > > - goto out_error; > > -

Re: [PATCH 1/2] hwmon: (lm90) Add power control

2013-08-07 Thread Wei Ni
On 08/07/2013 03:03 PM, Guenter Roeck wrote: > On 08/06/2013 11:52 PM, Wei Ni wrote: >> The device lm90 can be controlled by the vdd rail. >> Adding the power control support to power on/off the vdd rail. >> And make sure that power is enabled before accessing the device. >> >> Signed-off-by: Wei N

Re: [PATCH 2/4] mm, rmap: allocate anon_vma_chain before starting to link anon_vma_chain

2013-08-07 Thread Joonsoo Kim
On Wed, Aug 07, 2013 at 02:08:03AM -0400, Johannes Weiner wrote: > > > > list_for_each_entry_reverse(pavc, &src->anon_vma_chain, same_vma) { > > struct anon_vma *anon_vma; > > > > - avc = anon_vma_chain_alloc(GFP_NOWAIT | __GFP_NOWARN); > > - if (unlikely(!av

Re: [PATCH 3/4] mm, rmap: minimize lock hold when unlink_anon_vmas

2013-08-07 Thread Joonsoo Kim
On Wed, Aug 07, 2013 at 02:11:38AM -0400, Johannes Weiner wrote: > On Tue, Aug 06, 2013 at 05:43:39PM +0900, Joonsoo Kim wrote: > > Currently, we free the avc objects with holding a lock. To minimize > > lock hold time, we just move the avc objects to another list > > with holding a lock. Then, ite

Re: [PATCH 1/2] hwmon: (lm90) Add power control

2013-08-07 Thread Alexander Shiyan
> The device lm90 can be controlled by the vdd rail. > Adding the power control support to power on/off the vdd rail. > And make sure that power is enabled before accessing the device. > > Signed-off-by: Wei Ni > --- > drivers/hwmon/lm90.c | 52 > ++

Re: [RFC PATCH 1/4] zbud: use page ref counter for zbud pages

2013-08-07 Thread Krzysztof Kozlowski
Hi Seth, On wto, 2013-08-06 at 13:51 -0500, Seth Jennings wrote: > I like the idea. I few things below. Also agree with Bob the > s/rebalance/adjust/ for rebalance_lists(). OK. > s/else if/if/ since the if above returns if true. Sure. > > + /* zbud_free() or zbud_alloc() */ > > +

Re: [PATCH trivial] UAPI: Kbuild: add/modify comments for "uapi/Kbuild" and "uapi/linux/Kbuild"

2013-08-07 Thread Rob Landley
On 08/06/2013 12:31:43 PM, Joe Perches wrote: On Tue, 2013-08-06 at 09:46 +0800, Chen Gang wrote: > "include/uapi/" is the whole Linux kernel API, it is important enough > to get more global explanations by comments. It'd probably be useful to have more descriptions of uapi in the Documentati

Re: [PATCH 1/2] hwmon: (lm90) Add power control

2013-08-07 Thread Wei Ni
On 08/07/2013 03:27 PM, Alexander Shiyan wrote: >> The device lm90 can be controlled by the vdd rail. >> Adding the power control support to power on/off the vdd rail. >> And make sure that power is enabled before accessing the device. >> >> Signed-off-by: Wei Ni >> --- >> drivers/hwmon/lm90.c |

Re: [PATCH 1/5] pdev: Fix platform device resource linking

2013-08-07 Thread Pantelis Antoniou
Hi Greg, On Aug 7, 2013, at 8:56 AM, Greg Kroah-Hartman wrote: > On Tue, Aug 06, 2013 at 01:27:35PM +0300, Pantelis Antoniou wrote: >> Hi Greg, >> >> On Aug 6, 2013, at 1:15 PM, Greg Kroah-Hartman wrote: >> >>> On Tue, Aug 06, 2013 at 12:45:42PM +0300, Pantelis Antoniou wrote: Hi Greg, >>>

[PATCH v3 08/11] syslog_ns: implement ns_printk for specific syslog_ns

2013-08-07 Thread Rui Xiang
Add a new interface named ns_printk, and assign an patamater ns. Log which belong to a container can be printed by ns_printk. Signed-off-by: Rui Xiang --- include/linux/printk.h | 4 kernel/printk.c| 53 ++ 2 files changed, 53 inserti

[PATCH v3 05/11] syslog_ns: make permisiion check per user namespace

2013-08-07 Thread Rui Xiang
Use ns_capable to check capability in user ns, instead of capable function. The user ns is the owner of current syslog ns. Signed-off-by: Rui Xiang --- kernel/printk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/printk.c b/kernel/printk.c index e508ab2..ca951e7

[PATCH v3 00/11] Add namespace support for syslog

2013-08-07 Thread Rui Xiang
This patchset introduces a system log namespace. In container scenario, all logs are exported to the ring buffer of host. Then logs belong to a contaier can't be distinguished. Sometimes, Some of our guest are administered by other sys-admin, that should not have access to these infomations. S

[PATCH v3 06/11] syslog_ns: use init syslog_ns for console action

2013-08-07 Thread Rui Xiang
While flags SYSLOG_ACTION_CONSOLE_ON/OFF/LEVEL of console actin are used in syslog syscall, the related hanlding should be targeted at host by init_syslog_ns. Signed-off-by: Rui Xiang --- kernel/printk.c | 5 + 1 file changed, 5 insertions(+) diff --git a/kernel/printk.c b/kernel/printk.c i

[PATCH v3 11/11] netfilter: use ns_printk in iptable context

2013-08-07 Thread Rui Xiang
To containerise iptables log, use ns_printk to report individual logs to container as getting syslog_ns from net->user_ns. Signed-off-by: Rui Xiang --- include/net/netfilter/xt_log.h | 6 +- net/netfilter/xt_LOG.c | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git

[PATCH v3 04/11] syslog_ns: make syslog handling per namespace

2013-08-07 Thread Rui Xiang
This patch makes syslog buf and other fields per namespace. Here use ns->log_buf(log_buf_len, logbuf_lock, log_first_seq, logbuf_lock, and so on) fields instead of global ones to handle syslog. Syslog interfaces such as /dev/kmsg, /proc/kmsg, and syslog syscall are all containerized for container

[PATCH v3 10/11] syslog_ns: implement ns_console_unlock for specific syslog_ns

2013-08-07 Thread Rui Xiang
While monitoring embedded devices that provide access to the console over a serial port, in order to obtain kernel logs from containers, it is necessary to include consoles in the syslog_ns. This patch adds a new interface named ns_console_unlock, and use syslog ns as a parameter to dispaly logs f

[PATCH v3 03/11] syslog_ns: add init syslog_ns for global syslog

2013-08-07 Thread Rui Xiang
Add init_syslog_ns to manage host log buffer, and initilize its fileds as the global variables. Printk by default in kernel will continue to be targeted at init_syslog_ns. So the buf of init ns is just the same as the original global buf. Signed-off-by: Rui Xiang --- include/linux/syslog.h

[PATCH v3 09/11] syslog_ns: implement ns_printk_emit for specific syslog_ns

2013-08-07 Thread Rui Xiang
Prink_emit use init_syslog_ns as a parameter of namespace, but in some context, it will cause that logs generated through printk_emit will be exported to host, for instance, devkmsg_writev. We add a new interface ns_printk_emit to pass an syslog_ns parameter, and use it in devkmsg_writev. Signed-

[PATCH v3 07/11] syslog_ns: implement function for creating syslog ns

2013-08-07 Thread Rui Xiang
Add create_syslog_ns function to create a new ns. We must create a user_ns before create a new syslog ns. And then tie the new syslog_ns to current user_ns instead of original syslog_ns which comes from parent user_ns. Add a new syslog flag SYSLOG_ACTION_NEW_NS to implement a new command(11) of __

[PATCH v3 01/11] syslog_ns: add syslog_namespace and put/get_syslog_ns

2013-08-07 Thread Rui Xiang
Add a struct syslog_namespace which contains the necessary members for hanlding syslog and realize get_syslog_ns and put_syslog_ns API. Signed-off-by: Rui Xiang --- include/linux/syslog.h | 68 ++ kernel/printk.c| 7 -- 2 files changed

[PATCH v3 02/11] syslog_ns: add syslog_ns into user_namespace

2013-08-07 Thread Rui Xiang
Add a syslog_ns pointer to user_namespace, and make syslog_ns per user_namespace, not global. Since syslog_ns is assigned to user_ns, we can have full capabilities in new user_ns to create a new syslog_ns. Signed-off-by: Rui Xiang --- include/linux/syslog.h | 5 + include/linux/user

Backlight control only in the kernel?

2013-08-07 Thread Borislav Petkov
On Sun, Jun 09, 2013 at 07:01:36PM -0400, Matthew Garrett wrote: > Windows 8 introduced new policy for backlight control by pushing it out to > graphics drivers. This appears to have coincided with a range of vendors > adding Windows 8 checks to their backlight control code which trigger either > a

Re: [PATCH 5/5] arm: omap: Proper cleanups for omap_device

2013-08-07 Thread Pantelis Antoniou
Hi Greg, On Aug 6, 2013, at 1:14 PM, Greg Kroah-Hartman wrote: > On Tue, Aug 06, 2013 at 12:37:25PM +0300, Pantelis Antoniou wrote: >>> I don't like this at all, sorry. >>> >> [snip] >> Don't shoot the messenger please... >> >> This is all about fixing a crash without messing too many things

Re: [PATCH V2 00/17] EFI stub for ARM

2013-08-07 Thread Matt Fleming
On Tue, 06 Aug, at 08:44:56PM, Roy Franz wrote: > This patchset depends (trivially) on a separately submitted bugfix to the > EFI stub: "correct call to free_pages" > http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?id=df981edcb9bce00b9c5e4f3cc33f3f98bc9a2394 For those playing at ho

[BUG linux-next] watchdog: build breakage for non-SMP builds

2013-08-07 Thread Lothar Waßmann
Hi, commit 0ce6966b "watchdog: update watchdog_tresh properly" breaks build on non-SMP systems (more specifically: on systems where CONFIG_USE_GENERIC_SMP_HELPERS is not set): linux-next/kernel/watchdog.c: In function 'update_timers': linux-next/kernel/watchdog.c:522:2: error: implicit declaration

Re: [PATCH] kernel/sysctl_binary.c: improve the usage of return value 'result'

2013-08-07 Thread Eric W. Biederman
Chen Gang writes: > On 08/07/2013 05:46 AM, Eric W. Biederman wrote: >> Chen Gang writes: >> >> Have you tested this code? Do you have anything that actually the >> uses sysctl binary interface? >> > > No, I only compile about it, not give a test. It is really better to > give a test, but it

Re: [PATCH v2] staging/lustre: lloop depends on BLOCK

2013-08-07 Thread Dilger, Andreas
On 2013/08/02 4:49 AM, "Christoph Hellwig" wrote: >On Thu, Aug 01, 2013 at 07:57:22PM +, Dilger, Andreas wrote: >> It provides significant performance improvement for network IO on >>Lustre. >> It bypasses DLM locking in Lustre and the VFS layer on the client, >>copying >> in the loop driver,

Re: [PATCH 1/2] hwmon: (lm90) Add power control

2013-08-07 Thread Guenter Roeck
On 08/07/2013 12:27 AM, Alexander Shiyan wrote: The device lm90 can be controlled by the vdd rail. Adding the power control support to power on/off the vdd rail. And make sure that power is enabled before accessing the device. Signed-off-by: Wei Ni --- drivers/hwmon/lm90.c | 52

Re: [PATCH 1/2] hwmon: (lm90) Add power control

2013-08-07 Thread Guenter Roeck
On 08/07/2013 12:32 AM, Wei Ni wrote: On 08/07/2013 03:27 PM, Alexander Shiyan wrote: The device lm90 can be controlled by the vdd rail. Adding the power control support to power on/off the vdd rail. And make sure that power is enabled before accessing the device. Signed-off-by: Wei Ni --- d

Re: [PATCH v3 4/5] iio: mxs-lradc: add scale_available file to channels

2013-08-07 Thread Alexandre Belloni
Hi Jonathan, Lars I would really like to see that included in 3.12. While I agree there is room for improvement, I don't think there are any comments that need an immediate action before inclusion apart from the decision that has to be taken for the device tree. Can you confirm whether you'll tak

Re: [PATCH V9 04/14] perf tools: change machine__findnew_thread() to set thread pid

2013-08-07 Thread Namhyung Kim
On Mon, 5 Aug 2013 19:26:24 +0300, Adrian Hunter wrote: > Add a new parameter for 'pid' to machine__findnew_thread(). > Change callers to pass 'pid' when it is known. > [SNIP] > @@ -198,7 +198,7 @@ static int perf_event__inject_buildid(struct perf_tool > *tool, > > cpumode = event->heade

[PATCH] udev: fail firmware loading immediately if no search path is defined

2013-08-07 Thread Maarten Lankhorst
Op 07-08-13 02:26, Andy Lutomirski schreef: > On Tue, Aug 6, 2013 at 5:24 PM, Tom Gundersen wrote: >> On 6 Aug 2013 18:32, "Bryan Kadzban" wrote: >>> On Tue, Aug 06, 2013 at 11:17:17AM +0200, Tom Gundersen wrote: On Tue, Aug 6, 2013 at 11:11 AM, Tom Gundersen wrote: > On Tue, Aug 6, 201

[RFC PATCH] clock: correct the comparison parameter of MHz

2013-08-07 Thread Bo Shen
correct the comparison parameter of MHz from 4,000,000 to 1,000,000 Signed-off-by: Bo Shen --- kernel/time/sched_clock.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c index a326f27..62885f7 100644 --- a/kernel/time/s

Re: [PATCH v3 00/11] Add namespace support for syslog

2013-08-07 Thread Eric W. Biederman
Since this still has not been addressed. I am going to repeat Andrews objection again. Isn't there a better way to get iptables information out than to use syslog. I did not have time to follow up on that but it did appear that someone did have a better way to get the information out. Essentia

Re: [PATCH 1/3] clk: s2mps11: Add support for s2mps11

2013-08-07 Thread Lee Jones
On Tue, 06 Aug 2013, Mike Turquette wrote: > Quoting Yadwinder Singh Brar (2013-08-05 21:25:44) > > Hi Mike, > > > > On Tue, Aug 6, 2013 at 4:53 AM, Mike Turquette > > wrote: > > > Quoting Yadwinder Singh Brar (2013-07-07 04:44:20) > > >> This patch adds support to register three(AP/CP/BT) buff

Re: [PATCH] kernel/sysctl_binary.c: improve the usage of return value 'result'

2013-08-07 Thread Chen Gang
On 08/07/2013 03:02 PM, Li Zefan wrote: >>> To be honest... >>> >>> You are too bad in english to do kernel development. You don't seem to >>> know how to communicate in english... >>> >> >> So I should improve my English, and now I am just trying improving. >> >> At least, it is not an excuse to l

Re: [RFC PATCH] clock: correct the comparison parameter of MHz

2013-08-07 Thread Russell King - ARM Linux
On Wed, Aug 07, 2013 at 03:47:40PM +0800, Bo Shen wrote: > correct the comparison parameter of MHz from 4,000,000 to 1,000,000 You're assuming this wasn't intentional. As the division by 100 ends up losing the fractional rate, I decided to leave 1-4MHz as kHz, so something like 1.832MHz would

Re: [PATCH V9 01/14] perf tools: add debug prints

2013-08-07 Thread Adrian Hunter
On 07/08/13 09:44, Namhyung Kim wrote: > Hi Adrian, > > On Mon, 5 Aug 2013 19:26:21 +0300, Adrian Hunter wrote: >> It is useful to see the arguments to perf_event_open >> and whether the perf events ring buffer was mmapped >> per-cpu or per-thread. That information will now be >> displayed when

Re: [RFC PATCH] clock: correct the comparison parameter of MHz

2013-08-07 Thread Bo Shen
Hi Russell King, On 8/7/2013 16:02, Russell King - ARM Linux wrote: On Wed, Aug 07, 2013 at 03:47:40PM +0800, Bo Shen wrote: correct the comparison parameter of MHz from 4,000,000 to 1,000,000 You're assuming this wasn't intentional. As the division by 100 ends up losing the fractional r

Re: [PATCH 1/2] hwmon: (lm90) Add power control

2013-08-07 Thread Wei Ni
On 08/07/2013 03:50 PM, Guenter Roeck wrote: > On 08/07/2013 12:32 AM, Wei Ni wrote: >> On 08/07/2013 03:27 PM, Alexander Shiyan wrote: The device lm90 can be controlled by the vdd rail. Adding the power control support to power on/off the vdd rail. And make sure that power is enable

Re: [PATCH V9 05/14] perf tools: tidy up sample parsing overflow checking

2013-08-07 Thread Namhyung Kim
On Mon, 5 Aug 2013 19:26:25 +0300, Adrian Hunter wrote: > The size of data retrieved from a sample event must be > validated to ensure it does not go past the end of the > event. That was being done sporadically and without > considering integer overflows. Wouldn't it be great if the macro (or s

Dear user

2013-08-07 Thread ADMIN
Dear user Your e-mail exceeds 2 GB, which is created by our webmaster, you are currently at 2.30GB, you can not send or receive new messages until you check your account. Fill out the form to confirm your account. Complete the form below to confirm your e-mail address: (1) E-mail: (2) Username: (

Re: [PATCH V9 05/14] perf tools: tidy up sample parsing overflow checking

2013-08-07 Thread Adrian Hunter
On 07/08/13 11:09, Namhyung Kim wrote: > On Mon, 5 Aug 2013 19:26:25 +0300, Adrian Hunter wrote: >> The size of data retrieved from a sample event must be >> validated to ensure it does not go past the end of the >> event. That was being done sporadically and without >> considering integer overfl

Re: [PATCH v6 2/8] ASoC: atmel: machine driver for at91sam9x5-wm8731 boards

2013-08-07 Thread Richard Genoud
2013/8/6 Mark Brown : > On Tue, Jul 30, 2013 at 12:32:03PM +0200, Richard Genoud wrote: >> From: Nicolas Ferre >> >> Description of the Asoc machine driver for an at91sam9x5 based board >> with a wm8731 audio DAC. Wm8731 is clocked by a crystal and used as a >> master on the SSC/I2S interface. Its

Re: [PATCH V9 08/14] perf tools: move struct ip_event

2013-08-07 Thread Namhyung Kim
On Mon, 5 Aug 2013 19:26:28 +0300, Adrian Hunter wrote: > struct ip_event assumes fixed positions for ip, pid > and tid. That is no longer true with the addition of > PERF_SAMPLE_IDENTIFIER. > > struct ip_event is no longer used except by hists_link.c. > Move it there. I think you can just get r

Re: [PATCH V3]hrtimer: Fix a performance regression by disable reprogramming in remove_hrtimer

2013-08-07 Thread Mike Galbraith
On Tue, 2013-08-06 at 09:29 +0200, Mike Galbraith wrote: ... > E5620+write 0 -> > /dev/cpu_dma_latency, hold open > v3.7.10 578.5 KHz 1.000 675.4 KHz 1.000 > v3.7.10-nothrottle 366.7 KHz .633 395.0 KHz .

Re: [PATCH 1/5] pdev: Fix platform device resource linking

2013-08-07 Thread Russell King - ARM Linux
On Wed, Aug 07, 2013 at 02:57:00PM +0900, Greg Kroah-Hartman wrote: > On Tue, Aug 06, 2013 at 11:19:14AM +0100, Russell King - ARM Linux wrote: > > On Tue, Aug 06, 2013 at 06:15:27PM +0800, Greg Kroah-Hartman wrote: > > > On Tue, Aug 06, 2013 at 12:45:42PM +0300, Pantelis Antoniou wrote: > > > > Wh

Re: [PATCH V9 04/14] perf tools: change machine__findnew_thread() to set thread pid

2013-08-07 Thread Adrian Hunter
On 07/08/13 10:51, Namhyung Kim wrote: > On Mon, 5 Aug 2013 19:26:24 +0300, Adrian Hunter wrote: >> Add a new parameter for 'pid' to machine__findnew_thread(). >> Change callers to pass 'pid' when it is known. >> > [SNIP] > >> @@ -198,7 +198,7 @@ static int perf_event__inject_buildid(struct perf_

Re: linux-next: Tree for Aug 7

2013-08-07 Thread Sedat Dilek
onflicts against the ext4 tree. > > > [ CC some netdev and wireless folks ] Yesterday, I discovered an issue with net-next. The patch in [1] fixed the problems in my network/wifi environment. Hannes confirmed that virtio_net are s

[PATCH net v2] net: rename busy poll MIB counter

2013-08-07 Thread Eliezer Tamir
Rename mib counter from "low latency" to "busy poll" v1 also moved the counter to the ip MIB (suggested by Shawn Bohrer) Eric Dumazet suggested that the current location is better. So v2 just renames the counter to fit the new naming convention. Signed-off-by: Eliezer Tamir --- include/net/bu

[PATCH] thermal: exynos_tmu: fix wrong error check for mapped memory

2013-08-07 Thread Naveen Krishna Chatradhi
The error check is checking for a "base" mapped memory base instead of "base_common". Fixing the same. Signed-off-by: Naveen Krishna Chatradhi --- drivers/thermal/samsung/exynos_tmu.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/d

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

2013-08-07 Thread Thomas Petazzoni
Dear Stephen Rothwell, On Wed, 7 Aug 2013 14:25:01 +1000, Stephen Rothwell wrote: > Hi all, > > After merging the mvebu tree, today's linux-next build > (x86_64 allmodconfig) failed like this: > > arch/x86/kernel/x86_init.c:115:22: error: 'default_restore_msi_irqs' > undeclared here (not in a f

Re: [PATCH V9 04/14] perf tools: change machine__findnew_thread() to set thread pid

2013-08-07 Thread Namhyung Kim
On Wed, 07 Aug 2013 11:34:23 +0300, Adrian Hunter wrote: > On 07/08/13 10:51, Namhyung Kim wrote: >> On Mon, 5 Aug 2013 19:26:24 +0300, Adrian Hunter wrote: >>> Add a new parameter for 'pid' to machine__findnew_thread(). >>> Change callers to pass 'pid' when it is known. >>> >> [SNIP] >> >>> @@ -

Re: [PATCH] mfd: ti_am335x_tscadc: fix spin lock and reg_cache

2013-08-07 Thread Lee Jones
On Mon, 05 Aug 2013, Zubair Lutfullah wrote: > Reg_cache variable is used to lock step enable register > from being accessed and written by both TSC and ADC > at the same time. > However, it isn't updated anywhere in the code at all. > > If both TSC and ADC are used, eventually 1 is always >

Re: [PATCH 1/2] hwmon: (lm90) Add power control

2013-08-07 Thread Alexander Shiyan
> On 08/07/2013 03:50 PM, Guenter Roeck wrote: > > On 08/07/2013 12:32 AM, Wei Ni wrote: > >> On 08/07/2013 03:27 PM, Alexander Shiyan wrote: > The device lm90 can be controlled by the vdd rail. > Adding the power control support to power on/off the vdd rail. > And make sure that pow

Re: [PATCH] kernel/sysctl_binary.c: improve the usage of return value 'result'

2013-08-07 Thread Li Zefan
>> The first one is, if you get a reply from a maintainer (especially a top >> maintainer), try harder to understand/learn from that reply, but don't >> keep asking why and don't keep arguing without much thinking. I think >> what's why sometimes people are annoyed in the discussion with you. >> >

[PATCH] kexec: remove unnecessary return

2013-08-07 Thread Simon Horman
From: Xishi Qiu Code can not run here forever, so remove the unnecessary return. Signed-off-by: Xishi Qiu Suggested-by: Zhang Yanfei Reviewed-by: Zhang Yanfei Signed-off-by: Simon Horman --- kernel/kexec.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) Andrew, could you consider

Re: [PATCH 06/18] MAINTAINERS: ARM: plat-nomadik: Update patterns

2013-08-07 Thread Linus Walleij
On Mon, Jul 22, 2013 at 2:15 AM, Joe Perches wrote: > commit 694e33a7f4 ("ARM: plat-nomadik: move MTU, kill plat-nomadik") > moved the files, update the patterns. > > Signed-off-by: Joe Perches > cc: Linus Walleij I applied this to my Nomadik tree, yell if you will push it some other path. Th

[PATCH] kvm tools: Fix build of guest init with biarch powerpc compilers

2013-08-07 Thread Michael Ellerman
On powerpc we build kvmtool as a 64bit binary. We do that by setting -m64 in our CFLAGS. For most things we just call $(CC) and it passes that info onto the linker. However there is one place where we explicitly call the linker, in the build of guest/init - and in that case we need to tell the lin

Re: [BUG linux-next] watchdog: build breakage for non-SMP builds

2013-08-07 Thread Michal Hocko
On Wed 07-08-13 09:44:42, Lothar Waßmann wrote: > Hi, > > commit 0ce6966b "watchdog: update watchdog_tresh properly" breaks > build on non-SMP systems (more specifically: on systems where > CONFIG_USE_GENERIC_SMP_HELPERS is not set): > linux-next/kernel/watchdog.c: In function 'update_timers': > l

Re: [PATCH trivial] UAPI: Kbuild: add/modify comments for "uapi/Kbuild" and "uapi/linux/Kbuild"

2013-08-07 Thread Chen Gang
On 08/07/2013 03:32 PM, Rob Landley wrote: > On 08/06/2013 12:31:43 PM, Joe Perches wrote: >> On Tue, 2013-08-06 at 09:46 +0800, Chen Gang wrote: >> > "include/uapi/" is the whole Linux kernel API, it is important enough >> > to get more global explanations by comments. >> >> It'd probably be usefu

Re: [PATCH V9 01/14] perf tools: add debug prints

2013-08-07 Thread Namhyung Kim
On Wed, 07 Aug 2013 11:13:23 +0300, Adrian Hunter wrote: > On 07/08/13 09:44, Namhyung Kim wrote: >> Things like this likely being ended up with typo. How about this? (not >> tested) > > And yet there aren't any typos. Yes, but there's a possibility of adding one later. I have a memory that whe

test

2013-08-07 Thread Carl-Valentin Schmitt
this e-mail is a test. want to check if I am already subscribed to vger.kernel.org Val. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read t

Re: [PATCH V9 05/14] perf tools: tidy up sample parsing overflow checking

2013-08-07 Thread Namhyung Kim
On Wed, 07 Aug 2013 11:19:32 +0300, Adrian Hunter wrote: > On 07/08/13 11:09, Namhyung Kim wrote: >> On Mon, 5 Aug 2013 19:26:25 +0300, Adrian Hunter wrote: >>> The size of data retrieved from a sample event must be >>> validated to ensure it does not go past the end of the >>> event. That was be

[PATCH] ARM: at91/dt: split sama5d3 definition

2013-08-07 Thread Boris BREZILLON
This patch splits the sama5d3 SoCs definition: - a common base for all sama5d3 SoCs (sama5d3.dtsi) - several optional peripheral definitions which will be included by sama5d3 specific SoCs (sama5d3_'periph name'.dtsi) - sama5d3 specific SoC definitions (sama5d3x.dtsi) This provides a better repr

Re: Backlight control only in the kernel?

2013-08-07 Thread Aaron Lu
On 08/07/2013 03:44 PM, Borislav Petkov wrote: > On Sun, Jun 09, 2013 at 07:01:36PM -0400, Matthew Garrett wrote: >> Windows 8 introduced new policy for backlight control by pushing it out to >> graphics drivers. This appears to have coincided with a range of vendors >> adding Windows 8 checks to t

[PATCH] netconsole: avoid a crash with multiple sysfs writers

2013-08-07 Thread Dan Aloni
When my 'ifup eth' script was fired multiple times and ran concurrent on my laptop, for some obscure /etc scripting reason, it was revealed that the store_enabled() function in netconsole doesn't handle it nicely, as recorded by the Oops below (a syslog paste, but not mangled too much to prevent fr

[PATCH] bitops: move BITS() macro to the bitops file

2013-08-07 Thread Linus Walleij
This macro was invented by Mattias Nilsson for the usecase where you want to set a sequence of bits inside a n-bit word, while leaving the head and tail of the sequence all zeroes. For example: #include u16 mask = BITS(4, 12); Yields a mask like this: 0001 This patch moves t

Re: [PATCH v3] backlight: lm3630: apply chip revision

2013-08-07 Thread Jingoo Han
On Wednesday, August 07, 2013 1:56 PM, Daniel Jeong wrote: > > The LM3630 chip was revised by TI and chip name was also changed to LM3630A. > And register map, default values and initial sequences are changed. > The files, lm3630_bl.{c,h} are replaced by lm3630a_bl.{c,h} > You can find more inform

[PATCH 1/3] mm: use zone_end_pfn() instead of zone_start_pfn+spanned_pages

2013-08-07 Thread Xishi Qiu
Use "zone_end_pfn()" instead of "zone->zone_start_pfn + zone->spanned_pages". Simplify the code, no functional change. Signed-off-by: Xishi Qiu --- kernel/power/snapshot.c | 12 ++-- mm/memory_hotplug.c |4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ker

[PATCH 2/3] mm: use zone_is_empty() instead of if(zone->spanned_pages)

2013-08-07 Thread Xishi Qiu
Use "zone_is_empty()" instead of "if (zone->spanned_pages)". Simplify the code, no functional change. Signed-off-by: Xishi Qiu --- mm/memory_hotplug.c |6 +++--- mm/page_alloc.c |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotp

[PATCH 3/3] mm: use zone_is_initialized() instead of if(zone->wait_table)

2013-08-07 Thread Xishi Qiu
Use "zone_is_initialized()" instead of "if (zone->wait_table)". Simplify the code, no functional change. Signed-off-by: Xishi Qiu --- mm/memory_hotplug.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index f3fcac1..387654b 100

Re: [PATCH] kernel/sysctl_binary.c: improve the usage of return value 'result'

2013-08-07 Thread Chen Gang
On 08/07/2013 04:44 PM, Li Zefan wrote: >>> The first one is, if you get a reply from a maintainer (especially a top >>> maintainer), try harder to understand/learn from that reply, but don't >>> keep asking why and don't keep arguing without much thinking. I think >>> what's why sometimes people a

Re: [PATCH v3 11/11] netfilter: use ns_printk in iptable context

2013-08-07 Thread Pablo Neira Ayuso
Hi, On Wed, Aug 07, 2013 at 03:37:15PM +0800, Rui Xiang wrote: > To containerise iptables log, use ns_printk > to report individual logs to container as > getting syslog_ns from net->user_ns. This patch is missing the removal of a couple of LOC at the very beginning of ipt_log_packet and ip6t_log

Re: [PATCH 17/18] mm, hugetlb: retry if we fail to allocate a hugepage with use_reserve

2013-08-07 Thread Joonsoo Kim
On Tue, Aug 06, 2013 at 06:38:49PM -0700, Davidlohr Bueso wrote: > On Wed, 2013-08-07 at 11:03 +1000, David Gibson wrote: > > On Tue, Aug 06, 2013 at 05:18:44PM -0700, Davidlohr Bueso wrote: > > > On Mon, 2013-08-05 at 16:36 +0900, Joonsoo Kim wrote: > > > > > Any mapping that doesn't use the reser

Re: [PATCH 0/2] hugepage: optimize page fault path locking

2013-08-07 Thread Joonsoo Kim
On Tue, Aug 06, 2013 at 05:08:04PM -0700, Davidlohr Bueso wrote: > On Mon, 2013-07-29 at 15:18 +0900, Joonsoo Kim wrote: > > On Fri, Jul 26, 2013 at 07:27:23AM -0700, Davidlohr Bueso wrote: > > > This patchset attempts to reduce the amount of contention we impose > > > on the hugetlb_instantiation_

Re: [RFC/PATCH 0/2] ext4: Transparent Decompression Support

2013-08-07 Thread Andreas Dilger
On 2013-08-04, at 5:48 PM, Dave Chinner wrote: > On Sat, Aug 03, 2013 at 10:21:14PM -0400, Jörn Engel wrote: >> On Sat, 3 August 2013 20:33:16 -0400, Theodore Ts'o wrote: >>> >>> P.P.S. At least in theory, nothing of what I've described here has to be >>> ext4 specific. We could implement this

Re: [PATCH V5 17/30] thermal: exynos: Remove non DT based support

2013-08-07 Thread Naveen Krishna Ch
On 11 June 2013 18:23, Amit Daniel Kachhap wrote: > Recently non DT support from Exynos platform is removed and hence > removing non DT support from the driver also. This will help in easy > maintainence. > > Signed-off-by: Amit Daniel Kachhap Hello Amit, When you remove the non-DT support why h

Re: [PATCH 1/2] hwmon: (lm90) Add power control

2013-08-07 Thread Wei Ni
On 08/07/2013 04:45 PM, Alexander Shiyan wrote: >> On 08/07/2013 03:50 PM, Guenter Roeck wrote: >>> On 08/07/2013 12:32 AM, Wei Ni wrote: On 08/07/2013 03:27 PM, Alexander Shiyan wrote: >> The device lm90 can be controlled by the vdd rail. >> Adding the power control support to power o

Re: [PATCH] regulator: fan53555: Prevent multiple include of fan53555.h

2013-08-07 Thread Mark Brown
On Wed, Aug 07, 2013 at 08:56:10AM +0800, Axel Lin wrote: > Add define for __FAN53555_H__ to prevent multiple include of the header file. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH] f2fs: fix a deadlock in fsync

2013-08-07 Thread Jaegeuk Kim
Hi Jin, 2013-08-07 (수), 12:23 +0800, Jim Xu: > Hi Kim, > > The patch sounds good to me. > > BTW, as in the deadlock situation I noticed, I did not find any thread was > doing checkpoint at that moment. The bdi writeback thread and the fsync user > thread was not. Neither was the background f2f

Re: [PATCH V7 23/30] thermal: exynos: Add thermal configuration data for exynos5440 TMU sensor

2013-08-07 Thread Naveen Krishna Ch
On 26 June 2013 06:54, Jungseok Lee wrote: > On Monday, June 24, 2013 7:51 PM, Amit Daniel Kachhap wrote: >>This patch adds configuration data for exynos5440 soc. Also register >>definations for the controller are added. >> >>Acked-by: Jonghwa Lee >>Acked-by: Kukjin Kim >>Signed-off-by: Amit Dan

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

2013-08-07 Thread Viresh Kumar
On 24 July 2013 14:47, Viresh Kumar wrote: > On 18 June 2013 10:21, Viresh Kumar wrote: > Hi Thomas, > > Do you still see some light of hope in this patch :) ? Ping!! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

Re: unused swap offset / bad page map.

2013-08-07 Thread Hillf Danton
Hello Dave On Wed, Aug 7, 2013 at 1:51 PM, Dave Jones wrote: > Seen while fuzzing with lots of child processes. > > swap_free: Unused swap offset entry 001263f5 > BUG: Bad page map in process trinity-child29 pte:24c7ea00 pmd:09fec067 > addr:7f9db958d000 vm_flags:00100073 anon_vma:88022c0

Re: [Help Test] kdump, x86, acpi: Reproduce CPU0 SMI corruption issue after unsetting BSP flag

2013-08-07 Thread HATAYAMA Daisuke
(2013/08/07 1:25), Bjorn Helgaas wrote: On Tue, Aug 6, 2013 at 3:19 AM, HATAYAMA Daisuke wrote: So, could anyone help testing the idea 2) above if you have which of the following machines? (or other ones that can lead to the same bug) - HP Compaq 6910p - HP Compaq 6710b - HP Compaq 6710s - HP

Re: [PATCH] bitops: move BITS() macro to the bitops file

2013-08-07 Thread anish singh
On Wed, Aug 7, 2013 at 2:36 PM, Linus Walleij wrote: > This macro was invented by Mattias Nilsson for the usecase > where you want to set a sequence of bits inside a n-bit > word, while leaving the head and tail of the sequence all > zeroes. For example: > > #include > > u16 mask = BITS(4, 12

[PATCH V4] drivers/rtc/rtc-palmas.c: support for backup battery charging

2013-08-07 Thread Laxman Dewangan
Palmas series device like TPS65913, TPS80036 supports the backup battery for powering the RTC when no other energy source is available. The backup battery is optional, connected to the VBACKUP pin, and can be nonrechargeable or rechargeable. The rechargeable battery can be charged from the system

Re: [3.10.4] NFS locking panic, plus persisting NFS shutdown panic from 3.9.*

2013-08-07 Thread Nix
On 6 Aug 2013, Trond Myklebust verbalised: > True. How about something like the following instead. Note the change to > the original patch... Well, with those applied I could reboot without a panic for the first time since 3.8.x: looking good. I'll give it a reboot or two with a system that's not

[PATCH 8/8] rcu: remove irq work for rsp_wakeup()

2013-08-07 Thread Lai Jiangshan
It is safe to aquire scheduler lock in rnp->lock since the rcu read lock is always deadlock-immunity(rnp->lock is always can't be nested in scheduler lock) it partial revert patch 016a8d5b. Signed-off-by: Lai Jiangshan --- kernel/rcutree.c | 17 ++--- kernel/rcutree.h |1 - 2

[PATCH 3/8] rcu: keep irqs disabled in rcu_read_unlock_special()

2013-08-07 Thread Lai Jiangshan
rcu_read_unlock_special() may enable irqs temporarily before it finish its last work. It doesn't introduce any extremely bad things. but it does add more task rcu machine states and add more complexity, bad to review. And if the task is preempted when it enables irqs, the synchronize_rcu_expedited

[PATCH 4/8] rcu: delay task rcu state cleanup in exit_rcu()

2013-08-07 Thread Lai Jiangshan
exit_rcu() tries to clean up the task rcu state when the task is exiting. It did it by calls __rcu_read_unlock(). Actually, calling rcu_read_unlock_special() is enough. This patch defer it to the rcu_preempt_note_context_switch() of the next schedule(). This patch prepares for the next patch whic

[PATCH 7/8] rcu: add # of deferred _special() statistics

2013-08-07 Thread Lai Jiangshan
Signed-off-by: Lai Jiangshan --- kernel/rcutree.h|1 + kernel/rcutree_plugin.h |1 + kernel/rcutree_trace.c |1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git a/kernel/rcutree.h b/kernel/rcutree.h index 4a39d36..a5e9643 100644 --- a/kernel/rcutree.h +++ b/kern

[PATCH 24/26] x86 STA2X11: add dts for Intel's Northville board

2013-08-07 Thread Davide Ciminaghi
The base for this dts was automatically generated to avoid typos, most of all in ranges and interrupt-map properties. It was then hand-edited to add some details (for instance mmci1 gpio's). This dts is still incomplete. Yet, it contains most of the pci-amba devices and allows a northville board to

[PATCH 23/26] AMBA: pci-amba bridge: export function creating pci-amba device names

2013-08-07 Thread Davide Ciminaghi
pci_amba_get_dev_name() will be used by the sta2x11 common clock framework to register clkdevs with the same name as the corresponding amba or platform device. Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- drivers/amba/pci-amba.c | 14 ++ include/linux/pci-amba.

[PATCH 2/8] rcu: remove irq/softirq context check in rcu_read_unlock_special()

2013-08-07 Thread Lai Jiangshan
After patch 10f39bb1, "special & RCU_READ_UNLOCK_BLOCKED" can't be true in irq nor softirq.(due to RCU_READ_UNLOCK_BLOCKED can only be set when preemption) Signed-off-by: Lai Jiangshan --- kernel/rcutree_plugin.h |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/kerne

  1   2   3   4   5   6   7   8   9   >