[PATCH] aoe: remove unused variable in resend()

2012-10-22 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn The variable ah is initialized but never used otherwise, so remove the unused variable. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn ---

Re: [PATCH 0/11] introduce macros for i2c_msg initialization

2012-10-22 Thread Julia Lawall
I have been looking at this again, with the macros #define I2C_MSG_OP(_addr, _buf, _len, _flags) \ { .addr = _addr, .buf = _buf, .len = _len, .flags = _flags } #define I2C_MSG_WRITE(addr, buf, len) \ I2C_MSG_OP(addr, buf, len, 0) #define I2C_MSG_READ(addr, buf, len) \

[PATCH] Drivers: hv: remove unused variable from channel_mgmt.c

2012-10-22 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn The variables guidtype, guidinstance and initiate are initialized but never used otherwise, so remove the unused variables. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun

[PATCH v2] pstore/ram: fix undefined usage of rounddown_pow_of_two(0)

2012-10-22 Thread Florian Fainelli
From: Maxime Bizon mbi...@freebox.fr record_size / console_size / ftrace_size can be 0 (this is how you disable the feature), but rounddown_pow_of_two(0) is undefined. As suggested by Kees Cook, use !is_power_of_2() as a condition to call rounddown_pow_of_two and avoid its undefined behavior on

Re: [PATCH RFC V2] [x86] Optimize small size memcpy by avoding long latency from decode stage

2012-10-22 Thread Ling Ma
Attached memcpy micro benchmark, cpu info ,comparison results between rep movsq/b and memcpy on atom, ivb. Thanks Ling 2012/10/23, ling.ma.prog...@gmail.com ling.ma.prog...@gmail.com: From: Ma Ling ling.ma.prog...@gmail.com CISC code has higher instruction density, saving memory and

Re: [GIT PULL] Linux KVM tool for v3.7-rc0

2012-10-22 Thread Avi Kivity
On 10/21/2012 05:39 PM, Pekka Enberg wrote: On Sun, Oct 21, 2012 at 5:02 PM, richard -rw- weinberger richard.weinber...@gmail.com wrote: qemu supports all these features. E.g. to access the host fs use: qemu ... \ -fsdev

Re: [GIT PULL] Linux KVM tool for v3.7-rc0

2012-10-22 Thread Avi Kivity
On 10/21/2012 08:10 PM, Ingo Molnar wrote: Ok, looks useful - will someone on the Qemu side script this up and integrate it into the kernel in a useful form? There are going to be as many options as there are users - people will want different things, like block device assignment (for

Re: [PATCH cgroup/for-3.7-fixes 1/2] Revert cgroup: Remove task_lock() from cgroup_post_fork()

2012-10-22 Thread Frederic Weisbecker
2012/10/21 Tejun Heo t...@kernel.org: Hello, Frederic. On Sat, Oct 20, 2012 at 02:21:43PM -0400, Frederic Weisbecker wrote: CPU 0 CPU 1 cgroup_task_migrate { task_lock(p) rcu_assign_pointer(tsk-cgroups, newcg); task_unlock(tsk);

Re: [remoteproc:for-next 7/12] ERROR: vring_del_virtqueue [drivers/remoteproc/remoteproc.ko] undefined!

2012-10-22 Thread Ohad Ben-Cohen
Hello Fengguang, On Sat, Oct 6, 2012 at 11:57 AM, Ohad Ben-Cohen o...@wizery.com wrote: On Sat, Oct 6, 2012 at 10:07 AM, Fengguang Wu fengguang...@intel.com wrote: ERROR: vring_del_virtqueue [drivers/remoteproc/remoteproc.ko] undefined! ERROR: register_virtio_device

Re: [PATCH 1/2] staging: android: checkpatch.pl fixes

2012-10-22 Thread David Howells
Joe Perches j...@perches.com wrote: On Sat, 2012-10-20 at 23:33 +0100, Ken O'Brien wrote: ... - pr_err(binder: %d: binder_alloc_buf failed to + pr_err(binder: %d: binder_alloc_buf failed to \ map pages in userspace, no vma\n, proc-pid); ... Nice

Re: [PATCH] module_signing: fix printk format warning

2012-10-22 Thread David Howells
Randy Dunlap rdun...@xenotime.net wrote: From: Randy Dunlap rdun...@xenotime.net kernel/module_signing.c:195:2: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'size_t' Signed-off-by: Randy Dunlap rdun...@xenotime.net Cc: David Howells dhowe...@redhat.com

Re: [PATCH 1/2] regulator: gpio-regulator: Allow use of GPIO controlled regulators though DT

2012-10-22 Thread Mark Brown
On Mon, Oct 22, 2012 at 10:13:55AM +0100, Lee Jones wrote: On Wed, 17 Oct 2012, Mark Brown wrote: This should really be part of the patch adding the bindings... Would you like me to send the patch-set again? When I said I'd applied the patch that was what I meant. signature.asc

[PATCH v5 0/6] perf tools: fixes for Android

2012-10-22 Thread Irina Tirdea
From: Irina Tirdea irina.tir...@intel.com This is version 5 for the Android fixes. Previous version can be found at [1]. The patches are on top of current perf/core branch from Arnaldo's git tree (git.kernel.org/pub/scm/linux/kernel/git/acme/linux). Changes v4-v5: () make PERF_TMP_DIR and

[PATCH v5 1/6] perf tools: configure tmp path at build time

2012-10-22 Thread Irina Tirdea
From: Irina Tirdea irina.tir...@intel.com Temporary perf files are hardcoded to point to /tmp. Android does not have a /tmp directory so it needs to set this path at compile time. Add a compile-time definition (PERF_TMP_DIR) in the Makefile that sets the path to temp directory. By default it

[PATCH v5 2/6] perf tools: configure shell path at compile time

2012-10-22 Thread Irina Tirdea
From: Irina Tirdea irina.tir...@intel.com Shell path /bin/sh is hardcoded in various places in perf. Android has a different folder structure and does not have /bin/sh. Set the shell path at compile time in the Makefile by setting PERF_SHELL_PATH. By default it is set to /bin/sh. Signed-off-by:

[PATCH v5 3/6] perf tools: add --addr2line command line option

2012-10-22 Thread Irina Tirdea
From: Irina Tirdea irina.tir...@intel.com When analyzing data recorded on a target with a different architecture than the host, we must use addr2line from the toolchain for that architecture. Add a command line option to allow setting addr2line at runtime. Signed-off-by: Irina Tirdea

Re: [remoteproc:for-next 7/12] ERROR: vring_del_virtqueue [drivers/remoteproc/remoteproc.ko] undefined!

2012-10-22 Thread Fengguang Wu
On Mon, Oct 22, 2012 at 11:34:24AM +0200, Ohad Ben-Cohen wrote: Hello Fengguang, On Sat, Oct 6, 2012 at 11:57 AM, Ohad Ben-Cohen o...@wizery.com wrote: On Sat, Oct 6, 2012 at 10:07 AM, Fengguang Wu fengguang...@intel.com wrote: ERROR: vring_del_virtqueue

[PATCH v5 4/6] perf tools: Try to find cross-built addr2line path

2012-10-22 Thread Irina Tirdea
From: Irina Tirdea irina.tir...@intel.com As we have architecture information of saved perf.data file, we can also try to find cross-built addr2line path. The predefined triplets include support for Android (arm, x86 and mips architectures). Signed-off-by: Irina Tirdea irina.tir...@intel.com ---

[PATCH v5 5/6] perf tools: fix using --sysroot with addr2line

2012-10-22 Thread Irina Tirdea
From: Irina Tirdea irina.tir...@intel.com When cross-compiling --sysroot can be used to point to the directory with header files and libraries for the target architecture. perf annotate -l and perf report --sort srcline call addr2line to get the source line number. addr2line will not prefix the

[PATCH v5 6/6] perf stat: implement --big-num grouping

2012-10-22 Thread Irina Tirdea
From: Irina Tirdea irina.tir...@intel.com In glibc, printf supports ' to group numbers with thousands' grouping characters. Bionic does not support ' for printf. Implement thousands's grouping for numbers according to locale. The implementation uses the algorithm from glibc

question about kernel debug tools

2012-10-22 Thread iyuqing cai
hi, all. I want to know what tools could use to debug a kernel on the arm target? the JTAG debugger such as Jlink or XDS560,these JTAG tools should be used in a IDE, they don't seem can debug the linux kernel. so, what is a good choice? TKS. qing 2012-10-22 -- To unsubscribe from this list: send

Re: [PATCH] perf: Build install-man target when installing

2012-10-22 Thread Borislav Petkov
On Mon, Oct 22, 2012 at 04:25:24PM +0900, Namhyung Kim wrote: It will add additional dependencies of asciidoc, docbook-xsl and/or something to default perf install command. I don't know it matters much, but just wanted to say. What if a user want to install the perf but the required packages

Re: [PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-22 Thread Felipe Balbi
Hi, On Mon, Oct 22, 2012 at 02:00:00PM +0530, Venu Byravarasu wrote: -Original Message- From: Felipe Balbi [mailto:ba...@ti.com] Sent: Friday, October 19, 2012 9:06 PM To: Venu Byravarasu Cc: st...@rowland.harvard.edu; gre...@linuxfoundation.org; ba...@ti.com;

Re: [PATCH v5 10/18] sl[au]b: always get the cache from its page in kfree

2012-10-22 Thread Glauber Costa
On 10/19/2012 11:44 PM, Christoph Lameter wrote: On Fri, 19 Oct 2012, Glauber Costa wrote: struct page already have this information. If we start chaining caches, this information will always be more trustworthy than whatever is passed into the function Yes it does but the information is

Re: [PATCH v2 1/2] Replace if statement with WARN_ON_ONCE() in cmci_rediscover().

2012-10-22 Thread Borislav Petkov
On Mon, Oct 22, 2012 at 10:10:24AM +0800, Tang Chen wrote: I don't why before we just jumped over it. But I think if we have an online cpu == dying here, it must be wrong. So I think we should warn it, not just jump over it. Why do we need to warn? What good would that bring us? AFAICT, the

RE: [PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-22 Thread Venu Byravarasu
-Original Message- From: Felipe Balbi [mailto:ba...@ti.com] Sent: Monday, October 22, 2012 3:33 PM To: Venu Byravarasu Cc: ba...@ti.com; st...@rowland.harvard.edu; gre...@linuxfoundation.org; linux-...@vger.kernel.org; linux- ker...@vger.kernel.org Subject: Re: [PATCH v3 resend]

Re: [GIT PULL] Linux KVM tool for v3.7-rc0

2012-10-22 Thread Gleb Natapov
On Mon, Oct 22, 2012 at 11:24:19AM +0200, Avi Kivity wrote: On 10/21/2012 05:39 PM, Pekka Enberg wrote: On Sun, Oct 21, 2012 at 5:02 PM, richard -rw- weinberger richard.weinber...@gmail.com wrote: qemu supports all these features. E.g. to access the host fs use: qemu ... \ -fsdev

Re: [PATCH v2 2/2] Do not change worker's running cpu in cmci_rediscover().

2012-10-22 Thread Borislav Petkov
On Mon, Oct 22, 2012 at 11:33:16AM +0800, Tang Chen wrote: I have 2 nodes, node0 and node1. node1 could be hotpluged. node0 has cpu0 ~ cpu15, node1 has cpu16 ~ cpu31. I online all the cpus on node1, and hot-remove node1 directly. Hold on, I need to ask here: you soft-online all cores on

Re: [PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-22 Thread Felipe Balbi
Hi, On Mon, Oct 22, 2012 at 03:47:02PM +0530, Venu Byravarasu wrote: -Original Message- From: Felipe Balbi [mailto:ba...@ti.com] Sent: Monday, October 22, 2012 3:33 PM To: Venu Byravarasu Cc: ba...@ti.com; st...@rowland.harvard.edu; gre...@linuxfoundation.org;

Re: [PATCH 4/6] cgroups: forbid pre_destroy callback to fail

2012-10-22 Thread Michal Hocko
On Fri 19-10-12 13:24:05, Tejun Heo wrote: Hello, Michal. On Fri, Oct 19, 2012 at 03:32:45PM +0200, Michal Hocko wrote: On Thu 18-10-12 15:41:48, Tejun Heo wrote: Hello, Michal. On Wed, Oct 17, 2012 at 03:30:46PM +0200, Michal Hocko wrote: Now that mem_cgroup_pre_destroy

Re: [PATCH 1/6] perf, x86: Basic Haswell LBR call stack support

2012-10-22 Thread Peter Zijlstra
On Mon, 2012-10-22 at 14:11 +0800, Yan, Zheng wrote: + /* LBR callstack does not work well with FREEZE_LBRS_ON_PMI */ + if (!cpuc-lbr_sel || !(cpuc-lbr_sel-config LBR_CALL_STACK)) + debugctl |= DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; How useful it is without this? How many

RE: [PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-22 Thread Venu Byravarasu
-Original Message- From: Felipe Balbi [mailto:ba...@ti.com] Sent: Monday, October 22, 2012 3:46 PM To: Venu Byravarasu Cc: ba...@ti.com; st...@rowland.harvard.edu; gre...@linuxfoundation.org; linux-...@vger.kernel.org; linux- ker...@vger.kernel.org Subject: Re: [PATCH v3 resend]

Re: [PATCH v2] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-22 Thread Will Deacon
On Fri, Oct 19, 2012 at 07:49:55PM +0100, Andrew Morton wrote: On Fri, 19 Oct 2012 10:10:16 +0100 Will Deacon will.dea...@arm.com wrote: On Thu, Oct 18, 2012 at 11:05:02PM +0100, Andrew Morton wrote: On Wed, 17 Oct 2012 16:54:02 +0100 Will Deacon will.dea...@arm.com wrote: On

Re: [PATCH 1/6] perf, x86: Basic Haswell LBR call stack support

2012-10-22 Thread Peter Zijlstra
On Mon, 2012-10-22 at 14:11 +0800, Yan, Zheng wrote: --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h @@ -160,8 +160,9 @@ enum perf_branch_sample_type { PERF_SAMPLE_BRANCH_ABORT= 1U 7, /* transaction aborts */ PERF_SAMPLE_BRANCH_INTX

Re: [RFC PATCH 5/8] irq_work: Make self-IPIs optable

2012-10-22 Thread Peter Zijlstra
On Sat, 2012-10-20 at 12:22 -0400, Frederic Weisbecker wrote: + if (empty) { + /* +* If an IPI is requested, raise it right away. Otherwise wait +* for the next tick unless it's stopped. Now if the arch uses +* some other

RE: [PATCH RESEND 0/8] TI Touchscreen driver updates and Support for TSC/ADC MFD driver

2012-10-22 Thread Patil, Rachna
Hi Samuel, This is just a gentle reminder for the patch set I had submitted viz. [PATCH RESEND 0/8] TI Touchscreen driver updates and Support for TSC/ADC MFD driver I received an ACK from Jonathan and Dmitry on this patch set. Can you please pull in if there are no further comments. Thanks

Re: [PATCH 1/1] usb: gadget: Don't attempt to dequeue requests for a disabled USB endpoint on Freescale hardware

2012-10-22 Thread Laurent Pinchart
Hi, On Monday 22 October 2012 03:33:19 Li Yang-R58472 wrote: On Saturday, October 20, 2012 1:37 AM Felipe Balbi wrote: On Fri, Oct 19, 2012 at 06:19:26PM +0100, Simon Haggett wrote: Some gadget drivers may attempt to dequeue requests for an endpoint that has already been disabled. For

Re: [RFC PATCH v2] ARM hardcoded instruction causes cpu-hotplug fail to work on big-endian platfrom

2012-10-22 Thread Fei Yang
2012/10/17 Fei Yang yangfei.ker...@gmail.com: cut Not handling the Thumb case is a definite bug for any file which may run on v7, since the kernel could be built in Thumb for that case. For example, the existing code is mach-realview/hotplug.c is broken when building an SMP Thumb-2 kernel

Re: [PATCH 1/1] usb: gadget: Don't attempt to dequeue requests for a disabled USB endpoint on Freescale hardware

2012-10-22 Thread Felipe Balbi
Hi, On Mon, Oct 22, 2012 at 12:47:21PM +0200, Laurent Pinchart wrote: Hi, On Monday 22 October 2012 03:33:19 Li Yang-R58472 wrote: On Saturday, October 20, 2012 1:37 AM Felipe Balbi wrote: On Fri, Oct 19, 2012 at 06:19:26PM +0100, Simon Haggett wrote: Some gadget drivers may attempt

Re: [Perf] Adding timeout option

2012-10-22 Thread Pádraig Brady
On 10/21/2012 05:18 AM, abhishek agarwal wrote: perfmon had timeout option and i guess, same do oprofile. On Sat, Oct 20, 2012 at 1:58 AM, Pádraig Brady p...@draigbrady.com wrote: On 10/13/2012 08:54 AM, abhishek agarwal wrote: Hi folks.. I was thinking that why cant we have a timeout

Re: [tip:numa/core] x86, mm: Prevent gcc to re-read the pagetables

2012-10-22 Thread Peter Zijlstra
On Sun, 2012-10-21 at 05:56 -0700, tip-bot for Andrea Arcangeli wrote: In get_user_pages_fast() the TLB shootdown code can clear the pagetables before firing any TLB flush (the page can't be freed until the TLB flushing IPI has been delivered but the pagetables will be cleared well before

[PATCH V4] PWM: Add SPEAr PWM chip driver support

2012-10-22 Thread Shiraz Hashim
Add support for PWM chips present on SPEAr platforms. These PWM chips support 4 channel output with programmable duty cycle and frequency. More details on these PWM chips can be obtained from relevant chapter of reference manual, present at following[1] location. 1.

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Xiao Guangrong
On 10/22/2012 05:16 PM, Gleb Natapov wrote: On Fri, Oct 19, 2012 at 03:37:32PM +0800, Xiao Guangrong wrote: After commit b3356bf0dbb349 (KVM: emulator: optimize rep ins handling), the pieces of io data can be collected and write them to the guest memory or MMIO together. Unfortunately, kvm

Re: [PATCH v2 1/3] sched: introduce distinct per-cpu load average

2012-10-22 Thread Peter Zijlstra
On Sat, 2012-10-20 at 21:06 +0200, Andrea Righi wrote: @@ -383,13 +383,7 @@ struct rq { struct list_head leaf_rt_rq_list; #endif + unsigned long __percpu *nr_uninterruptible; This is O(nr_cpus^2) memory.. +unsigned long nr_uninterruptible_cpu(int cpu) +{ +

[PATCH] thermal: exynos: Fix wrong name of MODULE_DEVICE_TABLE

2012-10-22 Thread Jonghwan Choi
exynos4_tmu_driver_ids should be exynos_tmu_driver_ids. Signed-off-by: Jonghwan Choi jhbird.c...@samsung.com --- drivers/thermal/exynos_thermal.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/thermal/exynos_thermal.c b/drivers/thermal/exynos_thermal.c index

[RFC v2 0/2] vmevent: A bit reworked pressure attribute + docs + man page

2012-10-22 Thread Anton Vorontsov
Hi all, So this is the second RFC. The main change is that I decided to go with discrete levels of the pressure. When I started writing the man page, I had to describe the 'reclaimer inefficiency index', and while doing this I realized that I'm describing how the kernel is doing the memory

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Gleb Natapov
On Mon, Oct 22, 2012 at 07:09:38PM +0800, Xiao Guangrong wrote: On 10/22/2012 05:16 PM, Gleb Natapov wrote: On Fri, Oct 19, 2012 at 03:37:32PM +0800, Xiao Guangrong wrote: After commit b3356bf0dbb349 (KVM: emulator: optimize rep ins handling), the pieces of io data can be collected and

Re: [PATCH 1/6] perf, x86: Basic Haswell LBR call stack support

2012-10-22 Thread Stephane Eranian
On Mon, Oct 22, 2012 at 12:33 PM, Peter Zijlstra a.p.zijls...@chello.nl wrote: On Mon, 2012-10-22 at 14:11 +0800, Yan, Zheng wrote: + /* LBR callstack does not work well with FREEZE_LBRS_ON_PMI */ + if (!cpuc-lbr_sel || !(cpuc-lbr_sel-config LBR_CALL_STACK)) +

[RFC 1/2] vmevent: Implement pressure attribute

2012-10-22 Thread Anton Vorontsov
This patch introduces VMEVENT_ATTR_PRESSURE, the attribute reports Linux virtual memory management pressure. There are three discrete levels: VMEVENT_PRESSURE_LOW: Notifies that the system is reclaiming memory for new allocations. Monitoring reclaiming activity might be useful for maintaining

[RFC 2/2] man-pages: Add man page for vmevent_fd(2)

2012-10-22 Thread Anton Vorontsov
VMEVENT_FD(2) Linux Programmer's Manual VMEVENT_FD(2) NAME vmevent_fd - Linux virtual memory management events SYNOPSIS #define _GNU_SOURCE #include unistd.h #include sys/syscall.h #include asm/unistd.h #include linux/types.h

Re: [PATCH] MM: Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB v6

2012-10-22 Thread Michael Kerrisk
Andi, +#define MAP_HUGE_2MB(21 MAP_HUGE_SHIFT) +#define MAP_HUGE_1GB(30 MAP_HUGE_SHIFT) +#define SHM_HUGE_SHIFT 26 +#define SHM_HUGE_MASK 0x3f +#define SHM_HUGE_2MB(21 SHM_HUGE_SHIFT) +#define SHM_HUGE_1GB(30 SHM_HUGE_SHIFT) Maybe I am missing something obvious, but

Re: [PATCH 2/2] perf: SNB exclusive PMU access for INST_RETIRED:PREC_DIST

2012-10-22 Thread Stephane Eranian
On Sun, Oct 21, 2012 at 8:03 PM, Ingo Molnar mi...@kernel.org wrote: * Stephane Eranian eran...@google.com wrote: On Sun, Oct 21, 2012 at 6:55 PM, Ingo Molnar mi...@kernel.org wrote: * Andi Kleen a...@linux.intel.com wrote: This isn't limited to admin, right? So the above turns into

Re: Initial report on F2FS filesystem performance

2012-10-22 Thread Sooman Jeong
On Sun, 21 Oct 2012 12:26:38 +0200, Pavel Machek wrote: Hi! This is a brief summary of our initial filesystem performance study of f2fs against existing two filesystems in linux: EXT4, NILFS2, and f2fs. Hmm, flashes are actually optimized for VFAT, right? Can you compare against that?

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Gleb Natapov
On Mon, Oct 22, 2012 at 01:35:56PM +0200, Jan Kiszka wrote: On 2012-10-22 13:23, Gleb Natapov wrote: On Mon, Oct 22, 2012 at 07:09:38PM +0800, Xiao Guangrong wrote: On 10/22/2012 05:16 PM, Gleb Natapov wrote: On Fri, Oct 19, 2012 at 03:37:32PM +0800, Xiao Guangrong wrote: After commit

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Jan Kiszka
On 2012-10-22 13:43, Gleb Natapov wrote: On Mon, Oct 22, 2012 at 01:35:56PM +0200, Jan Kiszka wrote: On 2012-10-22 13:23, Gleb Natapov wrote: On Mon, Oct 22, 2012 at 07:09:38PM +0800, Xiao Guangrong wrote: On 10/22/2012 05:16 PM, Gleb Natapov wrote: On Fri, Oct 19, 2012 at 03:37:32PM +0800,

Re: [PATCH v2 1/3] sched: introduce distinct per-cpu load average

2012-10-22 Thread Andrea Righi
On Mon, Oct 22, 2012 at 01:10:40PM +0200, Peter Zijlstra wrote: On Sat, 2012-10-20 at 21:06 +0200, Andrea Righi wrote: @@ -383,13 +383,7 @@ struct rq { struct list_head leaf_rt_rq_list; #endif + unsigned long __percpu *nr_uninterruptible; This is O(nr_cpus^2)

Re: [GIT PULL] User API Disintegrate: Preparatory patches

2012-10-22 Thread James Hogan
On 17 October 2012 09:42, James Hogan ja...@albanarts.com wrote: On 2 October 2012 19:36, David Howells dhowe...@redhat.com wrote: The patches herein prepare for the extraction of the Userspace API bits from the various header files named in the Kbuild files. [IMPORTANT NOTE! These patches

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Arnd Bergmann
On Monday 22 October 2012, Thierry Reding wrote: On Mon, Oct 22, 2012 at 07:51:52PM +1300, Tony Prisk wrote: Replies to your comments inline: On Mon, 2012-10-22 at 08:34 +0200, Thierry Reding wrote: ... -static int __devinit pwm_probe(struct platform_device *pdev) +static const

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Jan Kiszka
On 2012-10-22 13:23, Gleb Natapov wrote: On Mon, Oct 22, 2012 at 07:09:38PM +0800, Xiao Guangrong wrote: On 10/22/2012 05:16 PM, Gleb Natapov wrote: On Fri, Oct 19, 2012 at 03:37:32PM +0800, Xiao Guangrong wrote: After commit b3356bf0dbb349 (KVM: emulator: optimize rep ins handling), the

re: sched, numa, mm: Implement constant, per task Working Set Sampling (WSS) rate

2012-10-22 Thread Dan Carpenter
Hello Peter Zijlstra, The patch 3d049f8a5398: sched, numa, mm: Implement constant, per task Working Set Sampling (WSS) rate from Oct 14, 2012, leads to the following warning: kernel/sched/fair.c:954 task_numa_work() error: we previously assumed 'vma' could be null (see line 948) 943

Re: [PATCH 1/1] usb: gadget: Don't attempt to dequeue requests for a disabled USB endpoint on Freescale hardware

2012-10-22 Thread Simon Haggett
Hi On 22/10/12 11:47, Laurent Pinchart wrote: Hi, On Monday 22 October 2012 03:33:19 Li Yang-R58472 wrote: On Saturday, October 20, 2012 1:37 AM Felipe Balbi wrote: On Fri, Oct 19, 2012 at 06:19:26PM +0100, Simon Haggett wrote: Some gadget drivers may attempt to dequeue requests for an

[PATCH] arm: sched: stop sched_clock() during suspend

2012-10-22 Thread Felipe Balbi
The scheduler imposes a requirement to sched_clock() which is to stop the clock during suspend, if we don't do that IRQ threads will be rescheduled in the future which might cause transfers to timeout depending on how driver is written. This became an issue on OMAP when we converted omap-i2c.c to

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-22 Thread Hongbo Zhang
On 21 October 2012 23:01, Francesco Lavra francescolavra...@gmail.com wrote: Hi Hongbo, Hi Francesco, Thanks for your review, I will accept all the comments except the ones I have some comments under them. On 10/16/2012 01:44 PM, hongbo.zhang wrote: From: hongbo.zhang hongbo.zh...@linaro.com

[PATCH 0/2] mm/slob: Some more cleanups

2012-10-22 Thread Ezequiel Garcia
A couple more slob patches brought to you by the CELF project: Kernel dynamic memory allocation tracking and reduction [1]. The first replaces put_page by __free_pages and it's analogous to a recent change made at slub. The other sets zone state to obtain slab information at /proc/meminfo. If

[PATCH 1/2] mm/slob: Mark zone page state to get slab usage at /proc/meminfo

2012-10-22 Thread Ezequiel Garcia
On page allocations, SLAB and SLUB modify zone page state counters NR_SLAB_UNRECLAIMABLE or NR_SLAB_RECLAIMABLE. This allows to obtain slab usage information at /proc/meminfo. Without this patch, /proc/meminfo will show zero Slab usage for SLOB. Since SLOB discards SLAB_RECLAIM_ACCOUNT flag, we

[PATCH 2/2] mm/slob: Use free_page instead of put_page for page-size kmalloc allocations

2012-10-22 Thread Ezequiel Garcia
When freeing objects, the slob allocator currently free empty pages calling __free_pages(). However, page-size kmallocs are disposed using put_page() instead. It makes no sense to call put_page() for kernel pages that are provided by the object allocator, so we shouldn't be doing this ourselves.

[PATCH 1/2] x86: Provide a comment in uapi/asm/hw_breakpoint.h

2012-10-22 Thread David Howells
Provide a comment in the empty uapi/asm/hw_breakpoint.h to make sure that the patch program doesn't delete it. However, should some part of asm/hw_breakpoint.h actually be exported here, or, possibly, should the entire uapi file be removed? In v3.6, though the file was marked for export to

[PATCH 2/2] x86: Provide a comment in uapi/asm/setup.h

2012-10-22 Thread David Howells
Provide a comment in the empty uapi/asm/setup.h to make sure that the patch program doesn't delete it. However, should some part of asm/hw_setup.h actually be exported here, or, possibly, should the entire uapi file be removed? In v3.6, though the file was marked for export to userspace, it had

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Mon, Oct 22, 2012 at 11:50:21AM +, Arnd Bergmann wrote: On Monday 22 October 2012, Thierry Reding wrote: On Mon, Oct 22, 2012 at 07:51:52PM +1300, Tony Prisk wrote: Replies to your comments inline: On Mon, 2012-10-22 at 08:34 +0200, Thierry Reding wrote: ... -static int

Re: [PATCH 2/2] mm/slob: Use free_page instead of put_page for page-size kmalloc allocations

2012-10-22 Thread Glauber Costa
On 10/22/2012 04:04 PM, Ezequiel Garcia wrote: When freeing objects, the slob allocator currently free empty pages calling __free_pages(). However, page-size kmallocs are disposed using put_page() instead. It makes no sense to call put_page() for kernel pages that are provided by the object

[PATCH RESEND] ARM: dm365: replace V4L2_OUT_CAP_CUSTOM_TIMINGS with V4L2_OUT_CAP_DV_TIMINGS

2012-10-22 Thread Prabhakar Lad
From: Lad, Prabhakar prabhakar@ti.com This patch replaces V4L2_OUT_CAP_CUSTOM_TIMINGS macro with V4L2_OUT_CAP_DV_TIMINGS. As V4L2_OUT_CAP_CUSTOM_TIMINGS is being phased out. Signed-off-by: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com Cc: Sekhar

Re: [PATCH 1/2] staging: android: checkpatch.pl fixes

2012-10-22 Thread Joe Perches
waOn Mon, 2012-10-22 at 10:37 +0100, David Howells wrote: Joe Perches j...@perches.com wrote: On Sat, 2012-10-20 at 23:33 +0100, Ken O'Brien wrote: ... - pr_err(binder: %d: binder_alloc_buf failed to + pr_err(binder: %d: binder_alloc_buf failed to \

Re: [PATCH] arm: sched: stop sched_clock() during suspend

2012-10-22 Thread Felipe Balbi
Hi, On Mon, Oct 22, 2012 at 02:54:37PM +0300, Felipe Balbi wrote: The scheduler imposes a requirement to sched_clock() which is to stop the clock during suspend, if we don't do that IRQ threads will be rescheduled in the future which might cause transfers to timeout depending on how driver

[PATCH RESEND] media: davinci: vpbe: fix build warning

2012-10-22 Thread Prabhakar Lad
From: Lad, Prabhakar prabhakar@ti.com Warnings were generated because of the following commit changed data type for address pointer 195bbca ARM: 7500/1: io: avoid writeback addressing modes for __raw_ accessors add __iomem annotation to fix following warnings

[PATCH] UAPI: Fix up empty files in arch/cris/

2012-10-22 Thread David Howells
Fix up three empty files in arch/cris/ by sticking placeholder comments in there to prevent the patch program from deleting them. I decided not to delete the arch-v*/Kbuild files as it's possibly someone might want to use them for genhdr-y lines in the future, but they could be deleted and the

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Avi Kivity
On 10/22/2012 01:45 PM, Jan Kiszka wrote: Indeed. git pull, recheck and call for kvm_flush_coalesced_mmio_buffer() is gone. So this will break new userspace, not old. By global you mean shared between devices (or memory regions)? Yes. We only have a single ring per VM, so we cannot flush

Re: [PATCH RESEND] media: davinci: vpbe: fix build warning

2012-10-22 Thread Laurent Pinchart
Hi Prabhakar, On Monday 22 October 2012 17:47:51 Prabhakar Lad wrote: From: Lad, Prabhakar prabhakar@ti.com Warnings were generated because of the following commit changed data type for address pointer 195bbca ARM: 7500/1: io: avoid writeback addressing modes for __raw_ accessors add

Re: [PATCH] kvm, async_pf: exit idleness when handling KVM_PV_REASON_PAGE_NOT_PRESENT

2012-10-22 Thread Avi Kivity
On 10/19/2012 06:11 PM, Sasha Levin wrote: KVM_PV_REASON_PAGE_NOT_PRESENT kicks cpu out of idleness, but we haven't marked that spot as an exit from idleness. Not doing so can cause RCU warnings such as: [ 732.788386] === [ 732.789803] [ INFO: suspicious RCU

Re: [PATCH V3] PWM: Add SPEAr PWM chip driver support

2012-10-22 Thread Lars-Peter Clausen
On 10/22/2012 09:55 AM, Thierry Reding wrote: On Mon, Oct 22, 2012 at 11:51:11AM +0530, Viresh Kumar wrote: On 22 October 2012 11:36, Shiraz Hashim shiraz.has...@st.com wrote: On Mon, Oct 22, 2012 at 09:39:21AM +0530, viresh kumar wrote: On Mon, Oct 22, 2012 at 9:21 AM, Shiraz Hashim

[PATCH RESEND 0/2] Davinci VPBE migration to vb2 and setting the device caps

2012-10-22 Thread Prabhakar Lad
From: Lad, Prabhakar prabhakar@ti.com The first patch of the series migrates the VPBE driver to usage of videobuf2 framework. Second patch sets the device caps. Resending the series, since it didn't reach the DLOS mailing list. Lad, Prabhakar (2): media: davinci: vpbe: migrate driver to

[PATCH RESEND 1/2] media: davinci: vpbe: migrate driver to videobuf2

2012-10-22 Thread Prabhakar Lad
From: Lad, Prabhakar prabhakar@ti.com This patch migrates VPBE display driver to videobuf2 framework. Signed-off-by: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com --- drivers/media/platform/davinci/Kconfig|2 +-

[PATCH RESEND 2/2] media: davinci: vpbe: set device capabilities

2012-10-22 Thread Prabhakar Lad
From: Lad, Prabhakar prabhakar@ti.com set device_caps and also change the driver and bus_info to proper values as per standard. Signed-off-by: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com --- drivers/media/platform/davinci/vpbe_display.c |9

Re: [PATCH] spi: tegra: add spi driver for SLINK controller

2012-10-22 Thread Mark Brown
On Thu, Oct 18, 2012 at 04:17:13PM +0530, Laxman Dewangan wrote: + udelay(1); + wmb(); + } + tspi-dma_control_reg = val; + val |= SLINK_DMA_EN; + tegra_slink_writel(tspi, val, SLINK_DMA_CTL); + return 0; +} +static int

[PATCH 2/2] ASoC: Ux500: Control apb clock

2012-10-22 Thread Ulf Hansson
From: Ulf Hansson ulf.hans...@linaro.org When switching to common clock driver for ux500 this clock needs to be handled as well. Before this clock was internally managed by the clock driver itself. Signed-off-by: Ulf Hansson ulf.hans...@linaro.org --- sound/soc/ux500/ux500_msp_dai.c | 38

[PATCH 1/2] ASoC: Ux500: Fixup use of clocks

2012-10-22 Thread Ulf Hansson
From: Ulf Hansson ulf.hans...@linaro.org Make sure clocks are being prepared and unprepared as well as enabled and disabled. Signed-off-by: Ulf Hansson ulf.hans...@linaro.org --- sound/soc/ux500/ux500_msp_dai.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git

Re: [PATCH v5 06/14] memcg: kmem controller infrastructure

2012-10-22 Thread Glauber Costa
On 10/20/2012 12:34 AM, David Rientjes wrote: On Fri, 19 Oct 2012, Glauber Costa wrote: What about gfp __GFP_FS? Do you intend to prevent or allow OOM under that flag? I personally think that anything that accepts to be OOM-killed should have GFP_WAIT set, so that ought to be enough.

re: sched, numa, mm: Implement constant, per task Working Set Sampling (WSS) rate

2012-10-22 Thread Peter Zijlstra
On Mon, 2012-10-22 at 14:55 +0300, Dan Carpenter wrote: Hello Peter Zijlstra, The patch 3d049f8a5398: sched, numa, mm: Implement constant, per task Working Set Sampling (WSS) rate from Oct 14, 2012, leads to the following warning: kernel/sched/fair.c:954 task_numa_work() error: we

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Jan Kiszka
On 2012-10-22 14:18, Avi Kivity wrote: On 10/22/2012 01:45 PM, Jan Kiszka wrote: Indeed. git pull, recheck and call for kvm_flush_coalesced_mmio_buffer() is gone. So this will break new userspace, not old. By global you mean shared between devices (or memory regions)? Yes. We only have a

Re: [PATCH v5 06/14] memcg: kmem controller infrastructure

2012-10-22 Thread Michal Hocko
[Sorry for the late reply] On Mon 22-10-12 16:34:15, Glauber Costa wrote: On 10/20/2012 12:34 AM, David Rientjes wrote: On Fri, 19 Oct 2012, Glauber Costa wrote: What about gfp __GFP_FS? Do you intend to prevent or allow OOM under that flag? I personally think that anything that

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Gleb Natapov
On Mon, Oct 22, 2012 at 02:45:37PM +0200, Jan Kiszka wrote: On 2012-10-22 14:18, Avi Kivity wrote: On 10/22/2012 01:45 PM, Jan Kiszka wrote: Indeed. git pull, recheck and call for kvm_flush_coalesced_mmio_buffer() is gone. So this will break new userspace, not old. By global you mean

Re: [PATCH v5 06/14] memcg: kmem controller infrastructure

2012-10-22 Thread Glauber Costa
On 10/22/2012 04:51 PM, Michal Hocko wrote: [Sorry for the late reply] On Mon 22-10-12 16:34:15, Glauber Costa wrote: On 10/20/2012 12:34 AM, David Rientjes wrote: On Fri, 19 Oct 2012, Glauber Costa wrote: What about gfp __GFP_FS? Do you intend to prevent or allow OOM under that flag?

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Jan Kiszka
On 2012-10-22 14:53, Gleb Natapov wrote: On Mon, Oct 22, 2012 at 02:45:37PM +0200, Jan Kiszka wrote: On 2012-10-22 14:18, Avi Kivity wrote: On 10/22/2012 01:45 PM, Jan Kiszka wrote: Indeed. git pull, recheck and call for kvm_flush_coalesced_mmio_buffer() is gone. So this will break new

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Avi Kivity
On 10/22/2012 02:53 PM, Gleb Natapov wrote: On Mon, Oct 22, 2012 at 02:45:37PM +0200, Jan Kiszka wrote: On 2012-10-22 14:18, Avi Kivity wrote: On 10/22/2012 01:45 PM, Jan Kiszka wrote: Indeed. git pull, recheck and call for kvm_flush_coalesced_mmio_buffer() is gone. So this will break

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Avi Kivity
On 10/22/2012 02:45 PM, Jan Kiszka wrote: On 2012-10-22 14:18, Avi Kivity wrote: On 10/22/2012 01:45 PM, Jan Kiszka wrote: Indeed. git pull, recheck and call for kvm_flush_coalesced_mmio_buffer() is gone. So this will break new userspace, not old. By global you mean shared between devices

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Avi Kivity
On 10/22/2012 02:55 PM, Jan Kiszka wrote: Since the userspace change is needed the idea is dead, but if we could implement it I do not see how it can hurt the latency if it would be the only mechanism to use coalesced mmio buffer. Checking that the ring buffer is empty is cheap and if it is

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Gleb Natapov
On Mon, Oct 22, 2012 at 02:55:14PM +0200, Jan Kiszka wrote: On 2012-10-22 14:53, Gleb Natapov wrote: On Mon, Oct 22, 2012 at 02:45:37PM +0200, Jan Kiszka wrote: On 2012-10-22 14:18, Avi Kivity wrote: On 10/22/2012 01:45 PM, Jan Kiszka wrote: Indeed. git pull, recheck and call for

Re: [PATCHv7 0/4] virtio_console: Add rproc_serial driver

2012-10-22 Thread Amit Shah
Hello Sjur, On (Mon) 15 Oct 2012 [09:57:32], sjur.brandel...@stericsson.com wrote: From: Sjur Brændeland sjur.brandel...@stericsson.com This patch-set introduces a new virtio type rproc_serial for communicating with remote processors over shared memory. The driver depends on the the

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Gleb Natapov
On Mon, Oct 22, 2012 at 02:55:24PM +0200, Avi Kivity wrote: On 10/22/2012 02:53 PM, Gleb Natapov wrote: On Mon, Oct 22, 2012 at 02:45:37PM +0200, Jan Kiszka wrote: On 2012-10-22 14:18, Avi Kivity wrote: On 10/22/2012 01:45 PM, Jan Kiszka wrote: Indeed. git pull, recheck and call for

Re: process hangs on do_exit when oom happens

2012-10-22 Thread Michal Hocko
On Mon 22-10-12 10:16:43, Qiang Gao wrote: I don't know whether the process will exit finally, bug this stack lasts for hours, which is obviously unnormal. The situation: we use a command calld cglimit to fork-and-exec the worker process,and the cglimit will set some limitation on the

Re: [PATCH] KVM: x86: fix vcpu-mmio_fragments overflow

2012-10-22 Thread Avi Kivity
On 10/22/2012 03:01 PM, Gleb Natapov wrote: It's time where the guest cannot take interrupts, and time in a high priority guest thread that is spent processing low guest priority requests. Proposed fix has exactly same issue. Until all data is transfered to userspace no interrupt will be

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