Re: Memory allocator semantics

2014-01-02 Thread Paul E. McKenney
On Thu, Jan 02, 2014 at 09:47:00PM -0800, Josh Triplett wrote: > On Thu, Jan 02, 2014 at 09:14:17PM -0800, Paul E. McKenney wrote: > > On Thu, Jan 02, 2014 at 07:39:07PM -0800, Josh Triplett wrote: > > > On Thu, Jan 02, 2014 at 12:33:20PM -0800, Paul E. McKenney wrote: > > > > Hello! > > > > > >

Re: [PATCH] powerpc: Fix alignment of secondary cpu spin vars

2014-01-02 Thread Olof Johansson
On Sat, Dec 28, 2013 at 1:05 PM, Olof Johansson wrote: > Sigh, it's not this after all. I did a clean build with this applied > and still see failures. Something else is (also?) going on here. Ok, so after some more digging I actually think that this isn't about the new code added as much as it

Re: [PATCH 1/1] watchdog: Adding Merrifield watchdog driver support

2014-01-02 Thread Dmitry Torokhov
Hi Gabriel, On Thu, Jan 02, 2014 at 04:56:42PM -0800, eric.er...@linux.intel.com wrote: > + > +/* Statics */ > +static struct intel_scu_watchdog_dev watchdog_device; > + > +/* Module params */ > +static bool disable_kernel_watchdog; > +module_param(disable_kernel_watchdog, bool, S_IRUGO); >

Re: [PATCH v3] Staging: rtl8188eu: Fixed coding style issues

2014-01-02 Thread Dan Carpenter
On Fri, Jan 03, 2014 at 12:22:59AM +0100, Tim Jester-Pfadt wrote: > Fixed indentation coding style issues on rtw_io.c > > Signed-off-by: Tim Jester-Pfadt > --- Next time, if you do a v2 patch please put a note here under the --- line what changed between the previous one and this one. 2:

Re: [PATCH 6/9] printk: Release lockbuf_lock before calling console_trylock_for_printk()

2014-01-02 Thread Jan Kara
On Thu 02-01-14 20:53:05, Steven Rostedt wrote: > On Mon, 23 Dec 2013 21:39:27 +0100 > Jan Kara wrote: > > > There's no reason to hold lockbuf_lock when entering > > console_trylock_for_printk(). The first thing this function does is > > calling down_trylock(console_sem) and if that fails it

Re: [PATCHv8 RFC] pwm: Add Freescale FTM PWM driver support

2014-01-02 Thread Dmitry Torokhov
Hi Xiubo, On Fri, Jan 03, 2014 at 01:24:21PM +0800, Xiubo Li wrote: > + > +static inline int fsl_pwm_calculate_default_ps(struct fsl_pwm_chip *fpc, > +enum fsl_pwm_clk index) > +{ Why do you declare this (and other module-local) function as inline? It

Re: [PATCH 1/4] tools lib traceevent: Add state member to struct trace_seq

2014-01-02 Thread Namhyung Kim
Ping! On Thu, 19 Dec 2013 18:34:23 +0900, Namhyung Kim wrote: > From: Namhyung Kim > > The trace_seq->state is for tracking errors during the use of > trace_seq APIs and getting rid of die() in it. > > Signed-off-by: Namhyung Kim > --- > tools/lib/traceevent/event-parse.h | 7 +++ >

Re: [PATCH v3] cpufreq: Fix timer/workqueue corruption by protecting reading governor_enabled

2014-01-02 Thread Viresh Kumar
On 3 January 2014 12:14, wrote: > diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h > index dc196bb..15c62df 100644 > --- a/include/linux/cpufreq.h > +++ b/include/linux/cpufreq.h > @@ -389,6 +389,7 @@ int __cpufreq_driver_target(struct cpufreq_policy *policy, >

[PATCH v3] cpufreq: Fix timer/workqueue corruption by protecting reading governor_enabled

2014-01-02 Thread jiel
From: Jane Li When a CPU is hot removed we'll cancel all the delayed work items via gov_cancel_work(). Sometimes the delayed work function determines that it should adjust the delay for all other CPUs that the policy is managing. If this scenario occurs, the canceling CPU will cancel its own

Re: [PATCH v2] cpufreq: Fix timer/workqueue corruption by protecting reading governor_enabled

2014-01-02 Thread Jane Li
On 01/03/2014 07:26 AM, Dmitry Torokhov wrote Unlocking in different branches is not the best practice IMO, I'd recommend doing: mutex_lock(_governor_lock); if (!policy->governor_enabled) goto out_unlock; ... out_unlock:

Dear Customer

2014-01-02 Thread NAUKRI ADMIN.COM
This message is from Naukri Job Portal and to all registered Naukri account owners. We are currently facing phishers on our Data Base due to Spam. We want to exercise an improve secure service quality in our Admin System to reduce the spam in every job/users portal. Please Confirm your Naukri

Re: [RFC PATCH net-next 1/4] net: introduce backup_classid to struct skbuff

2014-01-02 Thread John Fastabend
On 01/02/2014 09:34 PM, David Miller wrote: From: Libo Chen Date: Fri, 3 Jan 2014 11:11:04 +0800 introduce backup_classid to struct skbuff, we can use it to backup sk_classid when net_ns switch. Signed-off-by: Libo Chen Sorry, no new sk_buff members unless there is absolutely not other

Re: [PATCH V2] leds: s3c24xx: Fix build failure

2014-01-02 Thread Bryan Wu
On Thu, Jan 2, 2014 at 9:25 PM, Tushar Behera wrote: > Commit c67d0f29262b ("ARM: s3c24xx: get rid of custom ") > removed the usage of mach/gpio.h file, but we need to include > plat/gpio-cfg.h to avoid following build error. > > Fixes following build error. > drivers/leds/leds-s3c24xx.c: In

[PATCHv8 RFC] pwm: Add Freescale FTM PWM driver support

2014-01-02 Thread Xiubo Li
The FTM PWM device can be found on Vybrid VF610 Tower and Layerscape LS-1 SoCs. Signed-off-by: Xiubo Li Signed-off-by: Alison Wang Signed-off-by: Jingchang Lu Reviewed-by: Sascha Hauer --- Hi Thierry, Bill In this patch series only this one has been changed. I'm sending this patch for your

[PATCH] apm-emulation: add hibernation APM events to support suspend2disk

2014-01-02 Thread Barry Song
From: Bin Shi Some embedded systems use hibernation for fast boot. and in it, some software components need to handle specific things before hibernation and after restore. So it needs to capture the apm status about these pm events. Currently apm just supports suspend to ram, but not suspend to

Re: [PATCH 2/2] sched_clock: Disable seqlock lockdep usage in sched_clock

2014-01-02 Thread Krzysztof Hałasa
John Stultz writes: > Unforunately the seqlock lockdep enablmenet can't be used > in sched_clock, since the lockdep infrastructure eventually > calls into sched_clock, which causes a deadlock. > > Thus, this patch changes all generic sched_clock usage > to use the raw_* methods. These two

Re: v3.13-rc6+ regression (ARM board)

2014-01-02 Thread Krzysztof Hałasa
Linus Torvalds writes: > --- a/kernel/time/sched_clock.c > +++ b/kernel/time/sched_clock.c > @@ -36,6 +36,7 @@ core_param(irqtime, irqtime, int, 0400); > >static struct clock_data cd = { > .mult = NSEC_PER_SEC / HZ, > + .seq = SEQCNT_ZERO(cd.seq), >}; > >

[PATCH 01/14] perf, x86: Reduce lbr_sel_map size

2014-01-02 Thread Yan, Zheng
The index of lbr_sel_map is bit value of perf branch_sample_type. PERF_SAMPLE_BRANCH_MAX is 1024 at present, so each lbr_sel_map uses 4096 bytes. By using bit shift as index, we can reduce lbr_sel_map size to 40 bytes. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu/perf_event.h |

[PATCH 05/14] perf, core: allow pmu specific data for perf task context

2014-01-02 Thread Yan, Zheng
Later patches will use pmu specific data to save LBR stack. Signed-off-by: Yan, Zheng --- include/linux/perf_event.h | 5 + kernel/events/core.c | 19 ++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/include/linux/perf_event.h

Re: [PATCH 1/1] MTD: UBI: avoid program operation on NOR flash after erasure interrupted

2014-01-02 Thread Artem Bityutskiy
On Fri, 2014-01-03 at 02:31 +, Qi Wang 王起 (qiwang) wrote: > OK, thank you Artem. > > I will change to git send-mail next time. And I will be very careful to push > patch to you next time. > Sorry to bring so much trouble to you as I am first time to push patch to > Linux main trunk.(Maybe

[PATCH 02/14] perf, core: introduce pmu context switch callback

2014-01-02 Thread Yan, Zheng
The callback is invoked when process is scheduled in or out. It provides mechanism for later patches to save/store the LBR stack. It can also replace the flush branch stack callback. To avoid unnecessary overhead, the callback is enabled dynamically Signed-off-by: Yan, Zheng ---

[PATCH 03/14] perf, x86: use context switch callback to flush LBR stack

2014-01-02 Thread Yan, Zheng
Enable the pmu context switch callback when LBR is used. Use the callback to flush LBR stack when task is scheduled in. This allows us to move code that flushes LBR stack from perf core to perf x86. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu/perf_event.c | 7 ---

[PATCH 07/14] perf: track number of events that use LBR callstack

2014-01-02 Thread Yan, Zheng
Later patch will use it to decide if the LBR stack should be saved/restored Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu/perf_event_intel_lbr.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/perf_event_intel_lbr.c

[PATCH 09/14] perf, x86: Save/resotre LBR stack during context switch

2014-01-02 Thread Yan, Zheng
When the LBR call stack is enabled, it is necessary to save/restore the LBR stack on context switch. The solution is saving/restoring the LBR stack to/from task's perf event context. The LBR stack is saved/restored only when there are events that use the LBR call stack. If no event uses LBR call

[PATCH 08/14] perf, x86: allocate space for storing LBR stack

2014-01-02 Thread Yan, Zheng
When the LBR call stack is enabled, it is necessary to save/restore the LBR stack on context switch. We can use pmu specific data to store LBR stack when task is scheduled out. This patch adds code that allocates the pmu specific data. Signed-off-by: Yan, Zheng ---

[PATCH 10/14] perf, core: simplify need branch stack check

2014-01-02 Thread Yan, Zheng
event->attr.branch_sample_type is non-zero no matter branch stack is enabled explicitly or is enabled implicitly. So we can use it toreplace intel_pmu_needs_lbr_smpl(). This avoids duplicating code that implicitly enables the LBR. Signed-off-by: Yan, Zheng ---

[PATCH 14/14] perf, x86: Discard zero length call entries in LBR call stack

2014-01-02 Thread Yan, Zheng
"Zero length call" uses the attribute of the call instruction to push the immediate instruction pointer on to the stack and then pops off that address into a register. This is accomplished without any matching return instruction. It confuses the hardware and make the recorded call stack incorrect.

[PATCH 06/14] perf, core: always switch pmu specific data during context switch

2014-01-02 Thread Yan, Zheng
If two tasks were both forked from the same parent task, Events in their perf task contexts can be the same. Perf core optimizes context switch oout in this case. Previous patch inroduces pmu specific data. The data is task specific, so we should switch the data even when context switch is

[PATCH 12/14] perf, x86: use LBR call stack to get user callchain

2014-01-02 Thread Yan, Zheng
Haswell has a new feature that utilizes the existing Last Branch Record facility to record call chains. When the feature is enabled, function call will be collected as normal, but as return instructions are executed the last captured branch record is popped from the on-chip LBR registers. The LBR

[PATCH 00/14] perf, x86: Haswell LBR call stack support

2014-01-02 Thread Yan, Zheng
For many profiling tasks we need the callgraph. For example we often need to see the caller of a lock or the caller of a memcpy or other library function to actually tune the program. Frame pointer unwinding is efficient and works well. But frame pointers are off by default on 64bit code (and on

[PATCH 11/14] perf, core: Pass perf_sample_data to perf_callchain()

2014-01-02 Thread Yan, Zheng
Haswell has a new feature that utilizes the existing Last Branch Record facility to record call chains. When the feature is enabled, function call will be collected as normal, but as return instructions are executed the last captured branch record is popped from the on-chip LBR registers. The LBR

[PATCH 04/14] perf, x86: Basic Haswell LBR call stack support

2014-01-02 Thread Yan, Zheng
When the call stack feature is enabled, the LBR stack will capture unfiltered call data normally, but as return instructions are executed, the last captured branch record is flushed from the on-chip registers in a last-in first-out (LIFO) manner. Thus, branch information relative to leaf functions

[PATCH 13/14] perf, x86: enable LBR callstack when recording callchain

2014-01-02 Thread Yan, Zheng
Try enabling the LBR callstack facility if user requests recording user space callchain. Also adds a cpu pmu attribute to enable/disable this feature. This feature is disabled by default because it may contend for the LBR with other events that explicitly require branch stack Signed-off-by: Yan,

Re: [PATCH v5 1/1] cpufreq: tegra: Re-model Tegra20 cpufreq driver

2014-01-02 Thread Viresh Kumar
On 2 January 2014 16:38, bilhuang wrote: > Actually, I don't have plan or resource on doing this, would it be better > that you help to do that instead? Thanks. Point taken. I am there to help if required. So, initially you can just make Tegra work according to the new file we were talking

Re: Memory allocator semantics

2014-01-02 Thread Josh Triplett
On Thu, Jan 02, 2014 at 09:14:17PM -0800, Paul E. McKenney wrote: > On Thu, Jan 02, 2014 at 07:39:07PM -0800, Josh Triplett wrote: > > On Thu, Jan 02, 2014 at 12:33:20PM -0800, Paul E. McKenney wrote: > > > Hello! > > > > > > From what I can see, the Linux-kernel's SLAB, SLOB, and SLUB memory > >

Re: [PATCH 1/3] powernow-k6: disable cache when changing frequency

2014-01-02 Thread Viresh Kumar
On 2 January 2014 23:08, Mikulas Patocka wrote: > Flushing the cache and changing frequency takes approximatelly 500us. The > patch increases policy->cpuinfo.transition_latency to that value. Its not about how fast caches get cleaned but how much time would be wasted to get them filled again as

Re: [PATCH 3/3] powernow-k6: reorder frequencies

2014-01-02 Thread Viresh Kumar
On 12 December 2013 06:09, Mikulas Patocka wrote: > This patch reorders reported frequencies from the highest to the lowest, > just like in other frequency drivers. > > Signed-off-by: Mikulas Patocka > Cc: sta...@kernel.org > > --- > drivers/cpufreq/powernow-k6.c | 17 ++--- > 1

Re: [RFC PATCH net-next 1/4] net: introduce backup_classid to struct skbuff

2014-01-02 Thread David Miller
From: Libo Chen Date: Fri, 3 Jan 2014 11:11:04 +0800 > > introduce backup_classid to struct skbuff, > we can use it to backup sk_classid when net_ns switch. > > Signed-off-by: Libo Chen Sorry, no new sk_buff members unless there is absolutely not other possible implementation. sk_buff is

Re: [PATCH net-next] r8152: fix the wrong return value

2014-01-02 Thread David Cohen
On Fri, Jan 03, 2014 at 11:21:56AM +0800, Hayes Wang wrote: > The return value should be the boolean value, not the error code. > > Signed-off-by: Hayes Wang > Spotted-by: Dan Carpenter > --- > drivers/net/usb/r8152.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

[PATCH V2] leds: s3c24xx: Fix build failure

2014-01-02 Thread Tushar Behera
Commit c67d0f29262b ("ARM: s3c24xx: get rid of custom ") removed the usage of mach/gpio.h file, but we need to include plat/gpio-cfg.h to avoid following build error. Fixes following build error. drivers/leds/leds-s3c24xx.c: In function ‘s3c24xx_led_probe’: drivers/leds/leds-s3c24xx.c:100:2:

Re: [RFC PATCH net-next 0/4] net_cls for sys container

2014-01-02 Thread Cong Wang
On Thu, Jan 2, 2014 at 7:11 PM, Libo Chen wrote: > Hi guys, > > Now, lxc created with veth can not be under control by > cls_cgroup. > > the former discussion: > http://lkml.indiana.edu/hypermail/linux/kernel/1312.1/00214.html > > In short, because cls_cgroup relys classid attached to sock >

Re: Memory allocator semantics

2014-01-02 Thread Paul E. McKenney
On Thu, Jan 02, 2014 at 07:39:07PM -0800, Josh Triplett wrote: > On Thu, Jan 02, 2014 at 12:33:20PM -0800, Paul E. McKenney wrote: > > Hello! > > > > From what I can see, the Linux-kernel's SLAB, SLOB, and SLUB memory > > allocators would deal with the following sort of race: > > > > A. CPU 0:

Re: [PATCH] leds: s3c24xx: Fix build failure

2014-01-02 Thread Tushar Behera
On 3 January 2014 04:12, Bryan Wu wrote: > On Mon, Dec 30, 2013 at 1:09 AM, Tushar Behera > wrote: >> Fixes following build error. >> drivers/leds/leds-s3c24xx.c: In function ‘s3c24xx_led_probe’: >> drivers/leds/leds-s3c24xx.c:100:2: error: implicit declaration of >> function ‘s3c_gpio_setpull’

Re: Possible regression from "fs/exec.c: call arch_pick_mmap_layout() only once"

2014-01-02 Thread Pat Erley
On 01/02/2014 04:39 PM, Pat Erley wrote: On 01/02/2014 04:24 PM, Richard Weinberger wrote: Am Donnerstag, 2. Januar 2014, 15:41:27 schrieb Pat Erley: On my 64bit kernel, commit 283fe963095b38a6ab75dda1436ee66b9e45c7c2 seems to have broken 32bit compatibility. I've run the bisection twice, and

Re: [PATCH 3.2 056/185] mm: ensure get_unmapped_area() returns higher address than mmap_min_addr

2014-01-02 Thread Ben Hutchings
On Sun, 2013-12-29 at 03:08 +0100, Ben Hutchings wrote: > 3.2.54-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: Akira Takeuchi > > commit 2afc745f3e3079ab16c826be4860da2529054dd2 upstream. [...] > [bwh: Backported to 3.2: > As we do not

Re: [PATCH v7 00/12] kexec kernel efi runtime support

2014-01-02 Thread Dave Young
> Please send these as separate patches and include the compiler errors in > the commit message. I'll pick them up and send them to Peter. Sent. > > > build fix: move parse_efi_setup to efi*.c, call it in efi_init instead in > > setup.c > > Why have you moved the call site for

[PATCH] clocksource: mxs_timer: Get rid of mxs_clockevent_mode variable

2014-01-02 Thread Axel Lin
The current mode setting is stored in mode field of struct clock_event_device. So we can just remove the mxs_clockevent_mode variable. Signed-off-by: Axel Lin --- drivers/clocksource/mxs_timer.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

Re: [PATCH v3] Staging: rtl8188eu: Fixed coding style issues

2014-01-02 Thread Joe Perches
On Fri, 2014-01-03 at 00:22 +0100, Tim Jester-Pfadt wrote: > Fixed indentation coding style issues on rtw_io.c [] > diff --git a/drivers/staging/rtl8188eu/core/rtw_io.c > b/drivers/staging/rtl8188eu/core/rtw_io.c [] > @@ -205,9 +205,9 @@ void _rtw_read_mem(struct adapter *adapter, u32 addr, u32

[PATCH tip/efi-kexec] x86: setup.c build fix

2014-01-02 Thread Dave Young
In case without CONFIG_EFI, there will be below build error: arch/x86/built-in.o: In function `setup_arch': >> (.init.text+0x9dc): undefined reference to `parse_efi_setup' Thus fix it by adding blank inline function in asm/efi.h Also remove an unused declaration for variable efi_data_len.

[PATCH tip/efi-kexec] x86: ksysfs.c build fix

2014-01-02 Thread Dave Young
kbuild test robot report below error for randconfig: arch/x86/kernel/ksysfs.c: In function 'get_setup_data_paddr': >> arch/x86/kernel/ksysfs.c:81:3: error: implicit declaration of function >> 'ioremap_cache' [-Werror=implicit-function-declaration] data = ioremap_cache(pa_data,

Re: [PATCH v1] xhci: Switch Intel Lynx Point ports to EHCI on shutdown

2014-01-02 Thread littlebat
On Thu, 2 Jan 2014 16:03:34 -0800 Sarah Sharp wrote: > On Sun, Dec 22, 2013 at 09:47:49AM +0200, Denis Turischev wrote: > > On 12/21/2013 01:45 AM, Sarah Sharp wrote: > > > On Fri, Dec 20, 2013 at 12:41:11PM +0200, Denis Turischev wrote: > > >>> Also, which kernel are you experiencing this issue

Re: Memory allocator semantics

2014-01-02 Thread Josh Triplett
On Thu, Jan 02, 2014 at 12:33:20PM -0800, Paul E. McKenney wrote: > Hello! > > From what I can see, the Linux-kernel's SLAB, SLOB, and SLUB memory > allocators would deal with the following sort of race: > > A.CPU 0: r1 = kmalloc(...); ACCESS_ONCE(gp) = r1; > > CPU 1: r2 =

Re: [RFC] mm: show message when updating min_free_kbytes in thp

2014-01-02 Thread Han Pingtian
On Thu, Jan 02, 2014 at 10:05:21AM -0800, Dave Hansen wrote: > On 12/31/2013 04:29 PM, Han Pingtian wrote: > > min_free_kbytes may be updated during thp's initialization. Sometimes, > > this will change the value being set by user. Showing message will > > clarify this confusion. > ... > > - if

[PATCH net-next] r8152: fix the wrong return value

2014-01-02 Thread Hayes Wang
The return value should be the boolean value, not the error code. Signed-off-by: Hayes Wang Spotted-by: Dan Carpenter --- drivers/net/usb/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index e3d878c..13fabbb 100644

Re: [PATCH] mm: page_alloc: use enum instead of number for migratetype

2014-01-02 Thread SeongJae Park
On Fri, Jan 3, 2014 at 12:57 AM, Mel Gorman wrote: > On Thu, Jan 02, 2014 at 08:25:22PM +0900, SeongJae Park wrote: >> Using enum instead of number for migratetype everywhere would be better >> for reading and understanding. >> >> Signed-off-by: SeongJae Park > > This implicitly makes

[RFC PATCH net-next 0/4] net_cls for sys container

2014-01-02 Thread Libo Chen
Hi guys, Now, lxc created with veth can not be under control by cls_cgroup. the former discussion: http://lkml.indiana.edu/hypermail/linux/kernel/1312.1/00214.html In short, because cls_cgroup relys classid attached to sock filter skb, but sock will be cleared inside dev_forward_skb() in

[RFC PATCH net-next 3/4] veth: backup classid befor switch net_ns

2014-01-02 Thread Libo Chen
dev_forward_skb will clear skb->sk, so we need save classid before that, otherwise the skb can not be under control by net_cls. Signed-off-by: Libo Chen --- drivers/net/veth.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/veth.c b/drivers/net/veth.c index

[RFC PATCH net-next 1/4] net: introduce backup_classid to struct skbuff

2014-01-02 Thread Libo Chen
introduce backup_classid to struct skbuff, we can use it to backup sk_classid when net_ns switch. Signed-off-by: Libo Chen --- include/linux/skbuff.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index c5cd016..b76e871 100644 ---

[RFC PATCH net-next 4/4] cls_cgroup: restore classid from skb->sk_classid

2014-01-02 Thread Libo Chen
if skb->sk is NULL, we can try to restore from skb->bk_classid, because we may have saved it. Signed-off-by: Libo Chen --- net/sched/cls_cgroup.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index d228a5d..6ab0e69

[RFC PATCH net-next 2/4] cls_cgroup: introduce a helper: bk_cls_classid()

2014-01-02 Thread Libo Chen
it can save classid from skb->sk->sk_classid to skb->bk_classid Signed-off-by: Libo Chen --- include/net/cls_cgroup.h | 11 +++ net/sched/cls_cgroup.c | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/net/cls_cgroup.h b/include/net/cls_cgroup.h index

Re: [RFC PATCHv3 02/11] iommu/omap: Use get_vm_area directly

2014-01-02 Thread Chen, Gong
On Thu, Jan 02, 2014 at 01:53:20PM -0800, Laura Abbott wrote: > diff --git a/drivers/iommu/omap-iovmm.c b/drivers/iommu/omap-iovmm.c > index d147259..6280d50 100644 > --- a/drivers/iommu/omap-iovmm.c > +++ b/drivers/iommu/omap-iovmm.c > @@ -214,7 +214,7 @@ static void *vmap_sg(const struct

RE: [PATCH net-next v2 6/6] r8152: support RTL8153

2014-01-02 Thread hayeswang
Bjørn Mork [mailto:bj...@mork.no] > Sent: Thursday, January 02, 2014 10:25 PM > To: Hayeswang > Cc: oli...@neukum.org; net...@vger.kernel.org; nic_swsd; > linux-kernel@vger.kernel.org; linux-...@vger.kernel.org > Subject: Re: [PATCH net-next v2 6/6] r8152: support RTL8153 > [...] > > +#if

Re: [RFC PATCHv3 01/11] mce: acpi/apei: Use get_vm_area directly

2014-01-02 Thread Chen, Gong
On Thu, Jan 02, 2014 at 01:53:19PM -0800, Laura Abbott wrote: > There's no need to use VMALLOC_START and VMALLOC_END with > __get_vm_area when get_vm_area does the exact same thing. > Convert over. > > Signed-off-by: Laura Abbott Ack-by: Chen, Gong signature.asc Description: Digital

Re: [PATCH] x86: Add check for number of available vectors before CPU down [v4]

2014-01-02 Thread Chen, Gong
Add some nitpicks below. Reviewed-by: Chen, Gong On Thu, Jan 02, 2014 at 07:47:24PM -0500, Prarit Bhargava wrote: > +int check_irq_vectors_for_cpu_disable(void) > +{ > + int irq, cpu; > + unsigned int vector, this_count, count; > + struct irq_desc *desc; > + struct irq_data

[PATCH] Staging: comedi: fix spacing/style problem in das1800.c

2014-01-02 Thread Chase Southwood
This is a patch to the das1800.c file that fixes a style issue found by checkpatch.pl. Signed-off-by: Chase Southwood --- drivers/staging/comedi/drivers/das1800.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/das1800.c

RE: [PATCH 1/1] MTD: UBI: avoid program operation on NOR flash after erasure interrupted

2014-01-02 Thread qiwang
OK, thank you Artem. I will change to git send-mail next time. And I will be very careful to push patch to you next time. Sorry to bring so much trouble to you as I am first time to push patch to Linux main trunk.(Maybe it also is Micron Technology company first time to push patch to Linux

RE: [PATCH] mm/zswap: add writethrough option

2014-01-02 Thread Weijie Yang
On Thu, Jan 2, 2014 at 11:38 PM, Dan Streetman wrote: > Happy new year! > > Seth, just checking if you have had a chance yet to think about this one. > > > On Thu, Dec 19, 2013 at 8:23 AM, Dan Streetman wrote: > > Currently, zswap is writeback cache; stored pages are not sent > > to swap disk,

[for-next][PATCH 02/17] tracing/probes: Fix basic print type functions

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim The print format of s32 type was "ld" and it's casted to "long". So it turned out to print 4294967295 for "-1" on 64-bit systems. Not sure whether it worked well on 32-bit systems. Anyway, it doesn't need to have cast argument at all since it already casted using type

[for-next][PATCH 09/17] tracing/probes: Implement stack fetch method for uprobes

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim Use separate method to fetch from stack. Move existing functions to trace_kprobe.c and make them static. Also add new stack fetch implementation for uprobes. Acked-by: Oleg Nesterov Cc: Masami Hiramatsu Cc: Srikar Dronamraju Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de

RE: [PATCH 1/1] MTD: UBI: avoid program operation on NOR flash after erasure interrupted

2014-01-02 Thread qiwang
Hi Richard: Artem already has push this patch to 'linux-ubifs' git tree. Thanks for you remind, I will change to git send-mail next time. Thanks again for your reply. I will be very careful to push patch to you next time. Thanks a lot -Original Message- From: Richard Weinberger

[for-next][PATCH 04/17] tracing/uprobes: Convert to struct trace_probe

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim Convert struct trace_uprobe to make use of the common trace_probe structure. Reviewed-by: Masami Hiramatsu Acked-by: Srikar Dronamraju Acked-by: Oleg Nesterov Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de Melo Signed-off-by: Namhyung Kim --- kernel/trace/trace_uprobe.c |

[for-next][PATCH 00/17] tracing/uprobes: Add support for more fetch methods

2014-01-02 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: b7e0bf341f6cfa92ae0a0e3d0c3496729595e1e9 Hyeoncheol Lee (1): tracing/probes: Add fetch{,_size} member into deref fetch method Namhyung Kim (15): tracing/uprobes: Fix documentation of uprobe

[for-next][PATCH 10/17] tracing/probes: Move symbol fetch method to kprobes

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim Move existing functions to trace_kprobe.c and add NULL entries to the uprobes fetch type table. I don't make them static since some generic routines like update/free_XXX_fetch_param() require pointers to the functions. Acked-by: Oleg Nesterov Cc: Masami Hiramatsu Cc:

[for-next][PATCH 07/17] tracing/probes: Move fetch function helpers to trace_probe.h

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim Move fetch function helper macros/functions to the header file and make them external. This is preparation of supporting uprobe fetch table in next patch. Acked-by: Masami Hiramatsu Acked-by: Oleg Nesterov Cc: Srikar Dronamraju Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de

[for-next][PATCH 13/17] tracing/uprobes: Pass is_return to traceprobe_parse_probe_arg()

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim Currently uprobes don't pass is_return to the argument parser so that it cannot make use of "$retval" fetch method since it only works for return probes. Reviewed-by: Masami Hiramatsu Acked-by: Oleg Nesterov Cc: Srikar Dronamraju Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de

[for-next][PATCH 12/17] tracing/probes: Implement memory fetch method for uprobes

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim Use separate method to fetch from memory. Move existing functions to trace_kprobe.c and make them static. Also add new memory fetch implementation for uprobes. Acked-by: Masami Hiramatsu Acked-by: Oleg Nesterov Cc: Srikar Dronamraju Cc: zhangwei(Jovi) Cc: Arnaldo

[for-next][PATCH 14/17] tracing/uprobes: Fetch args before reserving a ring buffer

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim Fetching from user space should be done in a non-atomic context. So use a per-cpu buffer and copy its content to the ring buffer atomically. Note that we can migrate during accessing user memory thus use a per-cpu mutex to protect concurrent accesses. This is needed since

[for-next][PATCH 11/17] tracing/probes: Add fetch{,_size} member into deref fetch method

2014-01-02 Thread Steven Rostedt
From: Hyeoncheol Lee The deref fetch methods access a memory region but it assumes that it's a kernel memory since uprobes does not support them. Add ->fetch and ->fetch_size member in order to provide a proper access methods for supporting uprobes. Acked-by: Masami Hiramatsu Acked-by: Oleg

[for-next][PATCH 08/17] tracing/probes: Split [ku]probes_fetch_type_table

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim Use separate fetch_type_table for kprobes and uprobes. It currently shares all fetch methods but some of them will be implemented differently later. This is not to break build if [ku]probes is configured alone (like !CONFIG_KPROBE_EVENT and CONFIG_UPROBE_EVENT). So I added

[for-next][PATCH 01/17] tracing/uprobes: Fix documentation of uprobe registration syntax

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim The uprobe syntax requires an offset after a file path not a symbol. Reviewed-by: Masami Hiramatsu Acked-by: Oleg Nesterov Acked-by: Srikar Dronamraju Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de Melo Signed-off-by: Namhyung Kim --- Documentation/trace/uprobetracer.txt |

[for-next][PATCH 16/17] uprobes: Allocate ->utask before handler_chain() for tracing handlers

2014-01-02 Thread Steven Rostedt
From: Oleg Nesterov uprobe_trace_print() and uprobe_perf_print() need to pass the additional info to call_fetch() methods, currently there is no simple way to do this. current->utask looks like a natural place to hold this info, but we need to allocate it before handler_chain(). This is a bit

[for-next][PATCH 17/17] tracing/uprobes: Add @+file_offset fetch method

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim Enable to fetch data from a file offset. Currently it only supports fetching from same binary uprobe set. It'll translate the file offset to a proper virtual address in the process. The syntax is "@+OFFSET" as it does similar to normal memory fetching (@ADDR) which does no

[for-next][PATCH 15/17] tracing/uprobes: Add support for full argument access methods

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim Enable to fetch other types of argument for the uprobes. IOW, we can access stack, memory, deref, bitfield and retval from uprobes now. The format for the argument types are same as kprobes (but @SYMBOL type is not supported for uprobes), i.e: @ADDR : Fetch memory at

[for-next][PATCH 05/17] tracing/kprobes: Move common functions to trace_probe.h

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim The __get_data_size() and store_trace_args() will be used by uprobes too. Move them to a common location. Acked-by: Masami Hiramatsu Acked-by: Oleg Nesterov Cc: Srikar Dronamraju Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de Melo Signed-off-by: Namhyung Kim ---

[for-next][PATCH 06/17] tracing/probes: Integrate duplicate set_print_fmt()

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim The set_print_fmt() functions are implemented almost same for [ku]probes. Move it to a common place and get rid of the duplication. Acked-by: Masami Hiramatsu Acked-by: Oleg Nesterov Cc: Srikar Dronamraju Cc: zhangwei(Jovi) Cc: Arnaldo Carvalho de Melo Signed-off-by:

[for-next][PATCH 03/17] tracing/kprobes: Factor out struct trace_probe

2014-01-02 Thread Steven Rostedt
From: Namhyung Kim There are functions that can be shared to both of kprobes and uprobes. Separate common data structure to struct trace_probe and use it from the shared functions. Acked-by: Masami Hiramatsu Acked-by: Oleg Nesterov Cc: Srikar Dronamraju Cc: zhangwei(Jovi) Cc: Arnaldo

Re: [PATCH 15/17] tracing/uprobes: Add support for full argument access methods

2014-01-02 Thread Steven Rostedt
On Fri, 3 Jan 2014 10:17:23 +0900 "Hyeoncheol Lee" wrote: > Patches look good to me. > > Signed-off-by: Hyeoncheol Lee > Thanks! I'll add this to my queue. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 6/9] printk: Release lockbuf_lock before calling console_trylock_for_printk()

2014-01-02 Thread Steven Rostedt
On Mon, 23 Dec 2013 21:39:27 +0100 Jan Kara wrote: > There's no reason to hold lockbuf_lock when entering > console_trylock_for_printk(). The first thing this function does is > calling down_trylock(console_sem) and if that fails it immediately > unlocks lockbuf_lock. So lockbuf_lock isn't

Re: [PATCH] printk: flush conflicting continuation line

2014-01-02 Thread Kay Sievers
On Fri, Jan 3, 2014 at 1:57 AM, Joe Perches wrote: > (Adding Kay to cc's) > > Kay? any opinion on correctness? Sounds fine by looking at it. Did not test anything though. >> > --- a/kernel/printk/printk.c >> > +++ b/kernel/printk/printk.c >> > @@ -1604,7 +1604,10 @@ asmlinkage int

RE: [PATCH] usb/core: fix NULL pointer dereference in recursively_mark_NOTATTACHED

2014-01-02 Thread Du, ChangbinX
> On Thu, 26 Dec 2013, Du, ChangbinX wrote: > > > I can reproduce issue by adding a delay just after > > usb_set_intfdata(intf, NULL) (echo -1 > bConfigurationValue to trigger > hub_dissconnect())without your patch. > > > > After patch applied, cannot reproduce and didn't found any other issue.

Re: [PATCH v12 06/18] xen/pvh: MMU changes for PVH (v2)

2014-01-02 Thread Mukesh Rathor
On Thu, 2 Jan 2014 11:24:50 + David Vrabel wrote: > On 01/01/14 04:35, Konrad Rzeszutek Wilk wrote: > > From: Mukesh Rathor > > > > .. which are surprinsingly small compared to the amount for PV code. > > > > PVH uses mostly native mmu ops, we leave the generic (native_*) for > > the

Re: [PATCH v12 03/18] xen/pvh: Early bootup changes in PV code (v2).

2014-01-02 Thread Mukesh Rathor
On Thu, 2 Jan 2014 13:32:21 -0500 Konrad Rzeszutek Wilk wrote: > On Thu, Jan 02, 2014 at 03:32:33PM +, David Vrabel wrote: > > On 01/01/14 04:35, Konrad Rzeszutek Wilk wrote: > > > From: Mukesh Rathor > > > > > > In the bootup code for PVH we can trap cpuid via vmexit, so don't > > > need

Re: [PATCH v4] Bluetooth: Add hci_h4p driver

2014-01-02 Thread Sebastian Reichel
Hi Pavel, Here are some cleanup suggestions for probe, removal & module initialization functions. On Fri, Jan 03, 2014 at 01:17:54AM +0100, Pavel Machek wrote: > +static int hci_h4p_probe(struct platform_device *pdev) > +{ > + struct hci_h4p_platform_data *bt_plat_data; > + struct

Re: [PATCH v2 06/10] Input: pm8xxx-vibrator - Add DT match table

2014-01-02 Thread Stephen Boyd
On 01/02/14 17:17, Dmitry Torokhov wrote: > Hi Stephen, > > On Thu, Jan 02, 2014 at 04:37:36PM -0800, Stephen Boyd wrote: >> The driver is only supported on DT enabled platforms. Convert the >> driver to DT so that it can probe properly. > I do not see MFD_PM8XXX depending on OF, should it be

RE: [PATCH 15/17] tracing/uprobes: Add support for full argument access methods

2014-01-02 Thread Hyeoncheol Lee
Patches look good to me. Signed-off-by: Hyeoncheol Lee -Original Message- From: Steven Rostedt [mailto:rost...@goodmis.org] Sent: Friday, January 03, 2014 6:02 AM To: Steven Rostedt Cc: Namhyung Kim; Oleg Nesterov; Masami Hiramatsu; Srikar Dronamraju; Hyeoncheol Lee; zhangwei(Jovi);

Re: [PATCH v2 06/10] Input: pm8xxx-vibrator - Add DT match table

2014-01-02 Thread Dmitry Torokhov
Hi Stephen, On Thu, Jan 02, 2014 at 04:37:36PM -0800, Stephen Boyd wrote: > The driver is only supported on DT enabled platforms. Convert the > driver to DT so that it can probe properly. I do not see MFD_PM8XXX depending on OF, should it be added if it only supported on DT? Thanks. > >

Re: [PATCH v4] Bluetooth: Add hci_h4p driver

2014-01-02 Thread Sebastian Reichel
Hi, On Fri, Jan 03, 2014 at 01:17:54AM +0100, Pavel Machek wrote: > Changes from v3: Moved platform data into > include/linux/platform_data/, something I missed before. As I wrote before Tony plans to remove the boardcode for all OMAP boards including the Nokia N900 for 3.14, so you cannot boot

Re: [PATCH] printk: flush conflicting continuation line

2014-01-02 Thread Joe Perches
(Adding Kay to cc's) Kay? any opinion on correctness? On Thu, 2014-01-02 at 14:55 -0800, Andrew Morton wrote: > On Wed, 1 Jan 2014 17:44:06 +0530 Arun KS wrote: > > > >From d751f9a0cb6329ae3171f6e1cb85e4a3aa792d73 Mon Sep 17 00:00:00 2001 > > From: Arun KS > > Date: Wed, 1 Jan 2014 17:24:46

[PATCH 1/1] watchdog: Adding Merrifield watchdog driver support

2014-01-02 Thread eric . ernst
From: Gabriel Touzeau Added Merrifield watchdog driver support. Based on initial implementation from prior Intel SCU-based platforms, this driver has several changes specific to the Tangier SoC / Merrifield platform. Signed-off-by: Eric Ernst Signed-off-by: Yann Puech Signed-off-by: Jeremy

Re: [RFC PATCH 2/3] arm64: dts: APM X-Gene PCIe device tree nodes

2014-01-02 Thread Jason Gunthorpe
On Thu, Jan 02, 2014 at 01:56:51PM -0800, Tanmay Inamdar wrote: > On Mon, Dec 23, 2013 at 9:46 AM, Jason Gunthorpe > wrote: > > On Mon, Dec 23, 2013 at 01:32:03PM +0530, Tanmay Inamdar wrote: > >> This patch adds the device tree nodes for APM X-Gene PCIe controller and > >> PCIe clock interface.

  1   2   3   4   5   6   7   8   9   10   >