[BUG] perf list: --help option not implemented

2012-10-19 Thread Stephane Eranian
Jiri, When I run perf list, I see: $ perf list .. rNNN [Raw hardware event descriptor] cpu/t1=v1[,t2=v2,t3 ...]/modifier [Raw hardware event descriptor] (see 'perf list --help' on how to encode it) But: $ perf list --help $

Re: [Xen-devel] [PATCH RFC] Persistent grant maps for xen blk drivers

2012-10-19 Thread Roger Pau Monné
On 19/10/12 03:34, James Harper wrote: >> >> This patch implements persistent grants for the xen-blk{front,back} >> mechanism. The effect of this change is to reduce the number of unmap >> operations performed, since they cause a (costly) TLB shootdown. This allows >> the I/O performance to scale

Re: [RESEND PATCH 4/4] net: smc91x: use io{read,write}*_rep accessors instead of string functions

2012-10-19 Thread James Hogan
On 17/10/12 16:45, Will Deacon wrote: > The {read,write}s{b,w,l} operations are not defined by all architectures > and are being removed from the asm-generic/io.h interface. > > This patch replaces the usage of these string functions in the default > SMC accessors with io{read,write}{8,16,32}_rep

Re: [PATCH v2] arm/dts: AM33XX: Add SPI device tree data

2012-10-19 Thread Benoit Cousson
Hi Avinash, This look good to me except the: status = "disabled". The "disabled" should be reserved for variant that does not contain the IP. Is it the case here? Regards, Benoit On 09/18/2012 07:30 AM, Philip, Avinash wrote: > Add McSPI data node to AM33XX device tree file. The McSPI module

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-10-19 Thread Raghavendra K T
On 10/18/2012 06:09 PM, Avi Kivity wrote: On 10/09/2012 08:51 PM, Raghavendra K T wrote: Here is the summary: We do get good benefit by increasing ple window. Though we don't see good benefit for kernbench and sysbench, for ebizzy, we get huge improvement for 1x scenario. (almost 2/3rd of ple

Re: [RFC v3 11/13] vfs: add 3 new ioctl interfaces

2012-10-19 Thread Zhi Yong Wu
On Tue, Oct 16, 2012 at 11:17 AM, Dave Chinner wrote: > On Wed, Oct 10, 2012 at 06:07:33PM +0800, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> FS_IOC_GET_HEAT_INFO: return a struct containing the various >> metrics collected in btrfs_freq_data structs, and also return a > > I think

Re: [PATCH 1/2] lp855x_bl: use generic PWM functions

2012-10-19 Thread Thierry Reding
On Fri, Oct 19, 2012 at 08:11:50AM +, Kim, Milo wrote: > The LP855x family devices support the PWM input for the backlight control. > Period of the PWM is configurable in the platform side. > Platform specific functions are unnecessary anymore because > generic PWM functions are used

Re: [PATCH v3 0/9] bugfix for memory hotplug

2012-10-19 Thread Yasuaki Ishimatsu
2012/10/19 17:06, Yasuaki Ishimatsu wrote: > Hi Wen, > > Some bug fix patches have been merged into linux-next. > So the patches confuse me. The following patches have been already merged into linux-next and mm-tree as long as I know. >> Wen Congyang (6): >> clear the memory to store

Re: [PATCH] remove untouched code in kfifo_in

2012-10-19 Thread richard -rw- weinberger
On Fri, Oct 19, 2012 at 8:18 AM, Richard Yang wrote: > On Fri, Oct 19, 2012 at 07:23:09AM +0200, Stefani Seibold wrote: >> >>Am Freitag, den 19.10.2012, 00:37 +0200 schrieb richard -rw- weinberger: >>> On Thu, Oct 18, 2012 at 3:59 PM, Wei Yang >>> wrote: >>> > In kfifo_in marco, one piece of

[PATCH 1/2] lp855x_bl: use generic PWM functions

2012-10-19 Thread Kim, Milo
The LP855x family devices support the PWM input for the backlight control. Period of the PWM is configurable in the platform side. Platform specific functions are unnecessary anymore because generic PWM functions are used inside the driver. (PWM input mode) To set the brightness, new

[PATCH 2/2] lp855x_bl: remove unnecessary mutex code

2012-10-19 Thread Kim, Milo
The mutex for accessing lp855x registers is used in case of the user-space interaction. When the brightness is changed via the sysfs, the mutex is required. But the backlight class device already provides it. Thus, the lp855x mutex is unnecessary. Signed-off-by: Milo(Woogyom) Kim ---

Re: [PATCH v3 0/9] bugfix for memory hotplug

2012-10-19 Thread Yasuaki Ishimatsu
Hi Wen, Some bug fix patches have been merged into linux-next. So the patches confuse me. Why did you send same patches again? Thanks, Yasuaki Ishimatsu 2012/10/19 15:46, we...@cn.fujitsu.com wrote: > From: Wen Congyang > > Changes from v2 to v3: >Merge the bug fix from ishimatsu to this

Re: [PATCH v4] posix timers: allocate timer id per process

2012-10-19 Thread Eric Dumazet
On Fri, 2012-10-19 at 11:50 +0400, Stanislav Kinsbursky wrote: > v4: > 1) a couple of coding style fixes (lines over 80 characters) > > v3: > 1) hash calculation simlified to improve perfomance. > > v2: > 1) Hash table become RCU-friendly. Hash table search now done under RCU lock > protection.

Re: [PATCH v3 1/2] writeback: add dirty_background_centisecs per bdi variable

2012-10-19 Thread Namjae Jeon
Hi Dave. Test Procedure: 1) Local USB disk WRITE speed on NFS server is ~25 MB/s 2) Run WRITE test(create 1 GB file) on NFS Client with default writeback settings on NFS Server. By default bdi->dirty_background_bytes = 0, that means no change in default writeback behaviour 3) Next we change

[PATCH v4] posix timers: allocate timer id per process

2012-10-19 Thread Stanislav Kinsbursky
v4: 1) a couple of coding style fixes (lines over 80 characters) v3: 1) hash calculation simlified to improve perfomance. v2: 1) Hash table become RCU-friendly. Hash table search now done under RCU lock protection. I've tested scalability on KVM with 4 CPU. The testing environment was build of

Re: [PATCH v3 6/9] memory-hotplug: update mce_bad_pages when removing the memory

2012-10-19 Thread Wen Congyang
At 10/19/2012 03:06 PM, KOSAKI Motohiro Wrote: > On Fri, Oct 19, 2012 at 2:46 AM, wrote: >> From: Wen Congyang >> >> When we hotremove a memory device, we will free the memory to store >> struct page. If the page is hwpoisoned page, we should decrease >> mce_bad_pages. > > I think [5/9] and

Re: [PATCH v3 3/9] memory-hotplug: flush the work for the node when the node is offlined

2012-10-19 Thread Wen Congyang
At 10/19/2012 03:01 PM, KOSAKI Motohiro Wrote: > On Fri, Oct 19, 2012 at 2:46 AM, wrote: >> From: Yasuaki Ishimatsu >> >> If the node is onlined after it is offlined, we will clear the memory >> to store the node's information. This structure contains struct work, >> so we should flush work

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

2012-10-19 Thread Tang Chen
Hi, CC to Tejun Heo, and add change log: Changes from v1 to v2: - split one single patch into two. - use WARN_ON_ONCE() but not BUG_ON(), as Tejun said. Thanks. :) On 10/19/2012 01:45 PM, Tang Chen wrote: 1. cmci_rediscover() is only called by the CPU_POST_DEAD event handler, which

Re: [PATCH v3 8/9] memory-hotplug: fix NR_FREE_PAGES mismatch

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, wrote: > From: Wen Congyang > > NR_FREE_PAGES will be wrong after offlining pages. We add/dec NR_FREE_PAGES > like this now: > 1. mova all pages in buddy system to MIGRATE_ISOLATE, and dec NR_FREE_PAGES move? > 2. don't add NR_FREE_PAGES when it is freed and

Re: [tip:sched/core] sched: Fix race in task_group()

2012-10-19 Thread Stefan Bader
On 18.10.2012 15:33, Luis Henriques wrote: > On Thu, Oct 18, 2012 at 12:23:38PM +0200, Stefan Bader wrote: >> On 18.10.2012 10:27, cwillu wrote: >>> On Tue, Jul 24, 2012 at 8:21 AM, tip-bot for Peter Zijlstra >>> wrote: Commit-ID: 8323f26ce3425460769605a6aece7a174edaa7d1 Gitweb:

[PATCH] emulator test: add "rep ins" mmio access test

2012-10-19 Thread Xiao Guangrong
Add the test to trigger the bug that "rep ins" causes vcpu->mmio_fragments overflow overflow while move large data from ioport to MMIO Signed-off-by: Xiao Guangrong --- x86/emulator.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/x86/emulator.c

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

2012-10-19 Thread Xiao Guangrong
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 splits the mmio access into 8 bytes and store them to vcpu->mmio_fragments. If the guest uses "rep ins" to move

Re: [PATCH] remove untouched code in kfifo_in

2012-10-19 Thread Jiri Kosina
On Fri, 19 Oct 2012, Stefani Seibold wrote: > > > In kfifo_in marco, one piece of code is arounded by if(0). This code in > > > introduced by Stefani Seibold to suppress a compiler > > > warning. This warning is not there with the upgrade of gcc version. > > > > > > This patch just remove this

Re: [PATCH 1/4] acpi,memory-hotplug : add memory offline code to acpi_memory_device_remove()

2012-10-19 Thread Wen Congyang
At 10/18/2012 09:25 AM, Yasuaki Ishimatsu Wrote: > Hi Wen, > > 2012/10/17 18:52, Wen Congyang wrote: >> At 10/17/2012 05:18 PM, KOSAKI Motohiro Wrote: Hmm, it doesn't move the code. It just reuse the code in acpi_memory_powerdown_device(). >>> >>> Even if reuse or not

Re: [PATCH 2/2] slub: remove one code path and reduce lock contention in __slab_free()

2012-10-19 Thread Pekka Enberg
On Thu, 16 Aug 2012, Joonsoo Kim wrote: > When we try to free object, there is some of case that we need > to take a node lock. This is the necessary step for preventing a race. > After taking a lock, then we try to cmpxchg_double_slab(). > But, there is a possible scenario that

Re: [Bisected] 3.7-rc1 can't resume

2012-10-19 Thread Cédric Godin
On 10/18/2012 04:17 PM, H. Peter Anvin wrote: > On 10/18/2012 05:26 AM, Cédric Godin wrote: >> Hello, >> >> After upgrading my kernel from 3.6 to 3.7-rc1 on my laptop, I can't resume >> anymore. >> I bisected the problem to >> > > There is a fix for this already queued up. Please try the

Re: [PATCH v3 9/9] memory-hotplug: allocate zone's pcp before onlining pages

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, wrote: > From: Wen Congyang > > We use __free_page() to put a page to buddy system when onlining pages. > __free_page() will store NR_FREE_PAGES in zone's pcp.vm_stat_diff, so we > should allocate zone's pcp before onlining pages, otherwise we will lose > some

[PATCH 0/2] Input: matrix-keypad - Add device tree support

2012-10-19 Thread AnilKumar Ch
Add device tree support to matrix keypad driver by adding all necessary DT parameters. Also added device tree bindings. These patches were tested on AM335x-EVM with DT patches, DT patches will be submitted once these are accepted. AnilKumar Ch (2): Input: matrix-keypad - remove const from

[PATCH 1/2] Input: matrix-keypad - remove const from pointer to array of gpios

2012-10-19 Thread AnilKumar Ch
Remove const from pointer to array of gpios in matrix_keypad_platform_data struct. This is required if we update row_gpios and col_gpios based on device tree data. Signed-off-by: AnilKumar Ch --- include/linux/input/matrix_keypad.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 2/2] Input: matrix-keypad - Add device tree support

2012-10-19 Thread AnilKumar Ch
Add device tree support to matrix keypad driver and usage details are added to device tree documentation. Driver was tested on AM335x EVM. Signed-off-by: AnilKumar Ch --- .../devicetree/bindings/input/matrix-keypad.txt| 52 ++ drivers/input/keyboard/matrix_keypad.c |

Re: [PATCH v3 6/9] memory-hotplug: update mce_bad_pages when removing the memory

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, wrote: > From: Wen Congyang > > When we hotremove a memory device, we will free the memory to store > struct page. If the page is hwpoisoned page, we should decrease > mce_bad_pages. I think [5/9] and [6/9] should be fold. Their two patches fix one issue.

Re: mm/mmu_notifier: inconsistent lock state in mmu_notifier_register()

2012-10-19 Thread Andrea Righi
On Thu, Oct 18, 2012 at 08:24:17PM +0800, Gavin Shan wrote: > Hi Andrea, > > Do you have chance to have a try on the attached patch? > > Thanks, > Gavin Gavin, the patch looks good to me and I confirm that the lockdep splat disappeared with it. Feel free to add my: Tested-by: Andrea Righi

Re: [PATCH v3 4/9] clear the memory to store struct page

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, wrote: > From: Wen Congyang > > If sparse memory vmemmap is enabled, we can't free the memory to store > struct page when a memory device is hotremoved, because we may store > struct page in the memory to manage the memory which doesn't belong > to this memory

Re: [PATCH v3 3/9] memory-hotplug: flush the work for the node when the node is offlined

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, wrote: > From: Yasuaki Ishimatsu > > If the node is onlined after it is offlined, we will clear the memory > to store the node's information. This structure contains struct work, > so we should flush work before the work's information is cleared. This

Re: [Q] Default SLAB allocator

2012-10-19 Thread Eric Dumazet
On Fri, 2012-10-19 at 09:03 +0900, JoonSoo Kim wrote: > Hello, Eric. > Thank you very much for a kind comment about my question. > I have one more question related to network subsystem. > Please let me know what I misunderstand. > > 2012/10/14 Eric Dumazet : > > In latest kernels, skb->head no

Re: ext3 issue on 3.6.1

2012-10-19 Thread Fabio Coatti
2012/10/19 NeilBrown : > On Fri, 19 Oct 2012 00:08:09 +0200 Jan Kara wrote: > >> On Thu 18-10-12 23:40:25, Paul Bolle wrote: >> > On Thu, 2012-10-18 at 23:23 +0200, Jan Kara wrote: >> > > On Fri 12-10-12 14:57:55, Fabio Coatti wrote: >> > > > [13031.051521] [ cut here ] >>

Re: [PATCH v3 2/9] suppress "Device nodeX does not have a release() function" warning

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, wrote: > From: Yasuaki Ishimatsu > > When calling unregister_node(), the function shows following message at > device_release(). > > "Device 'node2' does not have a release() function, it is broken and must > be fixed." > > The reason is node's device struct

Re: [PATCH] pwm: add spear pwm driver support

2012-10-19 Thread viresh kumar
On Fri, Oct 19, 2012 at 11:29 AM, Shiraz Hashim wrote: > On Thu, Oct 18, 2012 at 11:11:06PM +0530, viresh kumar wrote: >> On Thu, Oct 18, 2012 at 4:58 PM, Shiraz Hashim wrote: >> > +static int __devexit spear_pwm_remove(struct platform_device *pdev) >> > +{ >> > + struct spear_pwm_chip

Re: [patch for-3.7 v2] mm, mempolicy: avoid taking mutex inside spinlock when reading numa_maps

2012-10-19 Thread KOSAKI Motohiro
>> Can't we have another way to fix ? like this ? too ugly ? >> Again, I'm sorry if I misunderstand the points. >> > Sorry this patch itself may be buggy. please don't test.. > I missed that kernel/exit.c sets task->mempolicy to be NULL. > fixed one here. > > -- > From

Re: [Xen-devel] [PATCH V3 2/6]: PVH: use native irq, enable callback, use HVM ring ops, smp, ...

2012-10-19 Thread Ian Campbell
On Thu, 2012-10-18 at 23:03 +0100, Mukesh Rathor wrote: > On Thu, 18 Oct 2012 11:44:37 +0100 > Ian Campbell wrote: > > > On Thu, 2012-10-18 at 01:30 +0100, Mukesh Rathor wrote: > > > PVH: make gdt_frames[]/gdt_ents into a union with {gdtaddr, gdtsz}, > > > PVH only needs to send down gdtaddr and

[PATCH v3 4/9] clear the memory to store struct page

2012-10-19 Thread wency
From: Wen Congyang If sparse memory vmemmap is enabled, we can't free the memory to store struct page when a memory device is hotremoved, because we may store struct page in the memory to manage the memory which doesn't belong to this memory device. When we hotadded this memory device again, we

[PATCH v3 6/9] memory-hotplug: update mce_bad_pages when removing the memory

2012-10-19 Thread wency
From: Wen Congyang When we hotremove a memory device, we will free the memory to store struct page. If the page is hwpoisoned page, we should decrease mce_bad_pages. CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Christoph Lameter Cc:

[PATCH v3 5/9] memory-hotplug: skip HWPoisoned page when offlining pages

2012-10-19 Thread wency
From: Wen Congyang hwpoisoned may be set when we offline a page by the sysfs interface /sys/devices/system/memory/soft_offline_page or /sys/devices/system/memory/hard_offline_page. We use __free_page() to put a page to buddy system when onlining pages. If the page is hwpoisoned page, we can't

[PATCH v3 7/9] memory-hotplug: auto offline page_cgroup when onlining memory block failed

2012-10-19 Thread wency
From: Wen Congyang When a memory block is onlined, we will try allocate memory on that node to store page_cgroup. If onlining the memory block failed, we don't offline the page cgroup, and we have no chance to offline this page cgroup unless the memory block is onlined successfully again. It

[PATCH v3 8/9] memory-hotplug: fix NR_FREE_PAGES mismatch

2012-10-19 Thread wency
From: Wen Congyang NR_FREE_PAGES will be wrong after offlining pages. We add/dec NR_FREE_PAGES like this now: 1. mova all pages in buddy system to MIGRATE_ISOLATE, and dec NR_FREE_PAGES 2. don't add NR_FREE_PAGES when it is freed and the migratetype is MIGRATE_ISOLATE 3. dec NR_FREE_PAGES when

[PATCH v3 9/9] memory-hotplug: allocate zone's pcp before onlining pages

2012-10-19 Thread wency
From: Wen Congyang We use __free_page() to put a page to buddy system when onlining pages. __free_page() will store NR_FREE_PAGES in zone's pcp.vm_stat_diff, so we should allocate zone's pcp before onlining pages, otherwise we will lose some free pages. CC: David Rientjes CC: Jiang Liu CC:

[PATCH v3 2/9] suppress "Device nodeX does not have a release() function" warning

2012-10-19 Thread wency
From: Yasuaki Ishimatsu When calling unregister_node(), the function shows following message at device_release(). "Device 'node2' does not have a release() function, it is broken and must be fixed." The reason is node's device struct does not have a release() function. So the patch registers

[PATCH v3 0/9] bugfix for memory hotplug

2012-10-19 Thread wency
From: Wen Congyang Changes from v2 to v3: Merge the bug fix from ishimatsu to this patchset(Patch 1-3) Patch 3: split it from patch as it fixes another bug. Patch 4: new patch, and fix bad-page state when hotadding a memory device after hotremoving it. I forgot to post this

[PATCH v3 3/9] memory-hotplug: flush the work for the node when the node is offlined

2012-10-19 Thread wency
From: Yasuaki Ishimatsu If the node is onlined after it is offlined, we will clear the memory to store the node's information. This structure contains struct work, so we should flush work before the work's information is cleared. CC: David Rientjes CC: Jiang Liu Cc: Minchan Kim CC: Andrew

[PATCH v3 1/9] suppress "Device memoryX does not have a release() function" warning

2012-10-19 Thread wency
From: Yasuaki Ishimatsu When calling remove_memory_block(), the function shows following message at device_release(). "Device 'memory528' does not have a release() function, it is broken and must be fixed." The reason is memory_block's device struct does not have a release() function. So the

RE: [PATCH] x86/ioapic: Fix that not all allocated irqs are ioapic type irqs

2012-10-19 Thread Liu, Chuansheng
> -Original Message- > From: yhlu.ker...@gmail.com [mailto:yhlu.ker...@gmail.com] On Behalf Of > Yinghai Lu > impossible ! > > where is the irq_desc coming from. ? Any other chip can call function irq_alloc_descs/irq_alloc_desc() to get irq_desc, and other chip can has their own chip

Re: [PATCH v5 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-19 Thread Takao Indoh
(2012/10/19 0:32), Khalid Aziz wrote: > On Wed, 2012-10-17 at 15:23 +0900, Takao Indoh wrote: >> This patch resets PCIe devices at boot time by hot reset when >> "reset_devices" is specified. >> >> Signed-off-by: Takao Indoh >> --- >> arch/x86/include/asm/pci-direct.h |1 >>

Re: [PATCH] ptp_pch: release chip->mem_base and chip->regs on error

2012-10-19 Thread Richard Cochran
On Thu, Oct 18, 2012 at 05:48:52PM +0800, Yuanhan Liu wrote: > Fix smatch warnings catched by Fengguang's 0-DAY system: > + drivers/ptp/ptp_pch.c:641 pch_probe() warn: 'chip->mem_base' was not > released on error > + drivers/ptp/ptp_pch.c:641 pch_probe() warn: 'chip->regs' was not released > on

RE: [PATCH] x86/ioapic: Fix that not all allocated irqs are ioapic type irqs

2012-10-19 Thread Liu, Chuansheng
> -Original Message- > From: yhlu.ker...@gmail.com [mailto:yhlu.ker...@gmail.com] On Behalf Of > Yinghai Lu > Sent: Friday, October 19, 2012 2:11 PM > To: Liu, Chuansheng > Cc: t...@linutronix.de; mi...@redhat.com; h...@zytor.com; Siddha, Suresh B; > mathias.ny...@linux.intel.com;

Re: "read_current_timer" undefined!

2012-10-19 Thread Alexander Holler
Hello, Am 18.10.2012 14:16, schrieb Thomas Meyer: ERROR: "read_current_timer" [drivers/gpu/drm/udl/udl.ko] undefined! ERROR: "read_current_timer" [crypto/tcrypt.ko] undefined! There is already a long thread about that, along with patches: https://lkml.org/lkml/2012/10/9/393 If you need a

Re: [PATCH] x86/ioapic: Fix that not all allocated irqs are ioapic type irqs

2012-10-19 Thread Yinghai Lu
On Fri, Oct 19, 2012 at 3:41 AM, Chuansheng Liu wrote: > > When debugging our system issues related with __setup_vector_irq(), > found there is a real wrong code that: > for_each_active_irq(irq) { > cfg = irq_get_chip_data(irq); > if (!cfg) >

Re: [PATCH] pwm: add spear pwm driver support

2012-10-19 Thread Viresh Kumar
On 19 October 2012 11:29, Shiraz Hashim wrote: >> > + clk_disable_unprepare(pc->clk); >> >> call only disable from here. Leave it prepared for ever. >> > > and unprepare only in _remove. Okay. yes. > I need to shut down all active pwms, how else would you suggest that ? I misread

Re: [PATCH] pwm: add spear pwm driver support

2012-10-19 Thread Shiraz Hashim
Hi Viresh, On Thu, Oct 18, 2012 at 11:11:06PM +0530, viresh kumar wrote: > On Thu, Oct 18, 2012 at 4:58 PM, Shiraz Hashim wrote: > > diff --git a/Documentation/devicetree/bindings/pwm/st-spear-pwm.txt > > b/Documentation/devicetree/bindings/pwm/st-spear-pwm.txt > > +== ST SPEAr SoC PWM

Re: [PATCH] pwm: add spear pwm driver support

2012-10-19 Thread Shiraz Hashim
Hi Viresh, On Thu, Oct 18, 2012 at 11:11:06PM +0530, viresh kumar wrote: On Thu, Oct 18, 2012 at 4:58 PM, Shiraz Hashim shiraz.has...@st.com wrote: diff --git a/Documentation/devicetree/bindings/pwm/st-spear-pwm.txt b/Documentation/devicetree/bindings/pwm/st-spear-pwm.txt +== ST SPEAr SoC

Re: [PATCH] pwm: add spear pwm driver support

2012-10-19 Thread Viresh Kumar
On 19 October 2012 11:29, Shiraz Hashim shiraz.has...@st.com wrote: + clk_disable_unprepare(pc-clk); call only disable from here. Leave it prepared for ever. and unprepare only in _remove. Okay. yes. I need to shut down all active pwms, how else would you suggest that ? I

Re: [PATCH] x86/ioapic: Fix that not all allocated irqs are ioapic type irqs

2012-10-19 Thread Yinghai Lu
On Fri, Oct 19, 2012 at 3:41 AM, Chuansheng Liu chuansheng@intel.com wrote: When debugging our system issues related with __setup_vector_irq(), found there is a real wrong code that: for_each_active_irq(irq) { cfg = irq_get_chip_data(irq); if

Re: read_current_timer undefined!

2012-10-19 Thread Alexander Holler
Hello, Am 18.10.2012 14:16, schrieb Thomas Meyer: ERROR: read_current_timer [drivers/gpu/drm/udl/udl.ko] undefined! ERROR: read_current_timer [crypto/tcrypt.ko] undefined! There is already a long thread about that, along with patches: https://lkml.org/lkml/2012/10/9/393 If you need a patch

RE: [PATCH] x86/ioapic: Fix that not all allocated irqs are ioapic type irqs

2012-10-19 Thread Liu, Chuansheng
-Original Message- From: yhlu.ker...@gmail.com [mailto:yhlu.ker...@gmail.com] On Behalf Of Yinghai Lu Sent: Friday, October 19, 2012 2:11 PM To: Liu, Chuansheng Cc: t...@linutronix.de; mi...@redhat.com; h...@zytor.com; Siddha, Suresh B; mathias.ny...@linux.intel.com;

Re: [PATCH] ptp_pch: release chip-mem_base and chip-regs on error

2012-10-19 Thread Richard Cochran
On Thu, Oct 18, 2012 at 05:48:52PM +0800, Yuanhan Liu wrote: Fix smatch warnings catched by Fengguang's 0-DAY system: + drivers/ptp/ptp_pch.c:641 pch_probe() warn: 'chip-mem_base' was not released on error + drivers/ptp/ptp_pch.c:641 pch_probe() warn: 'chip-regs' was not released on error

Re: [PATCH v5 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-19 Thread Takao Indoh
(2012/10/19 0:32), Khalid Aziz wrote: On Wed, 2012-10-17 at 15:23 +0900, Takao Indoh wrote: This patch resets PCIe devices at boot time by hot reset when reset_devices is specified. Signed-off-by: Takao Indoh indou.ta...@jp.fujitsu.com --- arch/x86/include/asm/pci-direct.h |1

RE: [PATCH] x86/ioapic: Fix that not all allocated irqs are ioapic type irqs

2012-10-19 Thread Liu, Chuansheng
-Original Message- From: yhlu.ker...@gmail.com [mailto:yhlu.ker...@gmail.com] On Behalf Of Yinghai Lu impossible ! where is the irq_desc coming from. ? Any other chip can call function irq_alloc_descs/irq_alloc_desc() to get irq_desc, and other chip can has their own chip data.

[PATCH v3 1/9] suppress Device memoryX does not have a release() function warning

2012-10-19 Thread wency
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com When calling remove_memory_block(), the function shows following message at device_release(). Device 'memory528' does not have a release() function, it is broken and must be fixed. The reason is memory_block's device struct does not have a

[PATCH v3 3/9] memory-hotplug: flush the work for the node when the node is offlined

2012-10-19 Thread wency
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com If the node is onlined after it is offlined, we will clear the memory to store the node's information. This structure contains struct work, so we should flush work before the work's information is cleared. CC: David Rientjes

[PATCH v3 0/9] bugfix for memory hotplug

2012-10-19 Thread wency
From: Wen Congyang we...@cn.fujitsu.com Changes from v2 to v3: Merge the bug fix from ishimatsu to this patchset(Patch 1-3) Patch 3: split it from patch as it fixes another bug. Patch 4: new patch, and fix bad-page state when hotadding a memory device after hotremoving it. I

[PATCH v3 2/9] suppress Device nodeX does not have a release() function warning

2012-10-19 Thread wency
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com When calling unregister_node(), the function shows following message at device_release(). Device 'node2' does not have a release() function, it is broken and must be fixed. The reason is node's device struct does not have a release()

[PATCH v3 9/9] memory-hotplug: allocate zone's pcp before onlining pages

2012-10-19 Thread wency
From: Wen Congyang we...@cn.fujitsu.com We use __free_page() to put a page to buddy system when onlining pages. __free_page() will store NR_FREE_PAGES in zone's pcp.vm_stat_diff, so we should allocate zone's pcp before onlining pages, otherwise we will lose some free pages. CC: David Rientjes

[PATCH v3 8/9] memory-hotplug: fix NR_FREE_PAGES mismatch

2012-10-19 Thread wency
From: Wen Congyang we...@cn.fujitsu.com NR_FREE_PAGES will be wrong after offlining pages. We add/dec NR_FREE_PAGES like this now: 1. mova all pages in buddy system to MIGRATE_ISOLATE, and dec NR_FREE_PAGES 2. don't add NR_FREE_PAGES when it is freed and the migratetype is MIGRATE_ISOLATE 3. dec

[PATCH v3 7/9] memory-hotplug: auto offline page_cgroup when onlining memory block failed

2012-10-19 Thread wency
From: Wen Congyang we...@cn.fujitsu.com When a memory block is onlined, we will try allocate memory on that node to store page_cgroup. If onlining the memory block failed, we don't offline the page cgroup, and we have no chance to offline this page cgroup unless the memory block is onlined

[PATCH v3 5/9] memory-hotplug: skip HWPoisoned page when offlining pages

2012-10-19 Thread wency
From: Wen Congyang we...@cn.fujitsu.com hwpoisoned may be set when we offline a page by the sysfs interface /sys/devices/system/memory/soft_offline_page or /sys/devices/system/memory/hard_offline_page. We use __free_page() to put a page to buddy system when onlining pages. If the page is

[PATCH v3 6/9] memory-hotplug: update mce_bad_pages when removing the memory

2012-10-19 Thread wency
From: Wen Congyang we...@cn.fujitsu.com When we hotremove a memory device, we will free the memory to store struct page. If the page is hwpoisoned page, we should decrease mce_bad_pages. CC: David Rientjes rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown len.br...@intel.com CC:

[PATCH v3 4/9] clear the memory to store struct page

2012-10-19 Thread wency
From: Wen Congyang we...@cn.fujitsu.com If sparse memory vmemmap is enabled, we can't free the memory to store struct page when a memory device is hotremoved, because we may store struct page in the memory to manage the memory which doesn't belong to this memory device. When we hotadded this

Re: [Xen-devel] [PATCH V3 2/6]: PVH: use native irq, enable callback, use HVM ring ops, smp, ...

2012-10-19 Thread Ian Campbell
On Thu, 2012-10-18 at 23:03 +0100, Mukesh Rathor wrote: On Thu, 18 Oct 2012 11:44:37 +0100 Ian Campbell ian.campb...@citrix.com wrote: On Thu, 2012-10-18 at 01:30 +0100, Mukesh Rathor wrote: PVH: make gdt_frames[]/gdt_ents into a union with {gdtaddr, gdtsz}, PVH only needs to send down

Re: [patch for-3.7 v2] mm, mempolicy: avoid taking mutex inside spinlock when reading numa_maps

2012-10-19 Thread KOSAKI Motohiro
Can't we have another way to fix ? like this ? too ugly ? Again, I'm sorry if I misunderstand the points. Sorry this patch itself may be buggy. please don't test.. I missed that kernel/exit.c sets task-mempolicy to be NULL. fixed one here. -- From 5581c71e68a7f50e52fd67cca00148911023f9f5

Re: [PATCH] pwm: add spear pwm driver support

2012-10-19 Thread viresh kumar
On Fri, Oct 19, 2012 at 11:29 AM, Shiraz Hashim shiraz.has...@st.com wrote: On Thu, Oct 18, 2012 at 11:11:06PM +0530, viresh kumar wrote: On Thu, Oct 18, 2012 at 4:58 PM, Shiraz Hashim shiraz.has...@st.com wrote: +static int __devexit spear_pwm_remove(struct platform_device *pdev) +{ +

Re: [PATCH v3 2/9] suppress Device nodeX does not have a release() function warning

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, we...@cn.fujitsu.com wrote: From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com When calling unregister_node(), the function shows following message at device_release(). Device 'node2' does not have a release() function, it is broken and must be fixed.

Re: ext3 issue on 3.6.1

2012-10-19 Thread Fabio Coatti
2012/10/19 NeilBrown ne...@suse.de: On Fri, 19 Oct 2012 00:08:09 +0200 Jan Kara j...@suse.cz wrote: On Thu 18-10-12 23:40:25, Paul Bolle wrote: On Thu, 2012-10-18 at 23:23 +0200, Jan Kara wrote: On Fri 12-10-12 14:57:55, Fabio Coatti wrote: [13031.051521] [ cut here

Re: [Q] Default SLAB allocator

2012-10-19 Thread Eric Dumazet
On Fri, 2012-10-19 at 09:03 +0900, JoonSoo Kim wrote: Hello, Eric. Thank you very much for a kind comment about my question. I have one more question related to network subsystem. Please let me know what I misunderstand. 2012/10/14 Eric Dumazet eric.duma...@gmail.com: In latest kernels,

Re: [PATCH v3 3/9] memory-hotplug: flush the work for the node when the node is offlined

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, we...@cn.fujitsu.com wrote: From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com If the node is onlined after it is offlined, we will clear the memory to store the node's information. This structure contains struct work, so we should flush work before the

Re: [PATCH v3 4/9] clear the memory to store struct page

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, we...@cn.fujitsu.com wrote: From: Wen Congyang we...@cn.fujitsu.com If sparse memory vmemmap is enabled, we can't free the memory to store struct page when a memory device is hotremoved, because we may store struct page in the memory to manage the memory

Re: mm/mmu_notifier: inconsistent lock state in mmu_notifier_register()

2012-10-19 Thread Andrea Righi
On Thu, Oct 18, 2012 at 08:24:17PM +0800, Gavin Shan wrote: Hi Andrea, Do you have chance to have a try on the attached patch? Thanks, Gavin Gavin, the patch looks good to me and I confirm that the lockdep splat disappeared with it. Feel free to add my: Tested-by: Andrea Righi

[PATCH 2/2] Input: matrix-keypad - Add device tree support

2012-10-19 Thread AnilKumar Ch
Add device tree support to matrix keypad driver and usage details are added to device tree documentation. Driver was tested on AM335x EVM. Signed-off-by: AnilKumar Ch anilku...@ti.com --- .../devicetree/bindings/input/matrix-keypad.txt| 52 ++ drivers/input/keyboard/matrix_keypad.c

Re: [PATCH v3 6/9] memory-hotplug: update mce_bad_pages when removing the memory

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, we...@cn.fujitsu.com wrote: From: Wen Congyang we...@cn.fujitsu.com When we hotremove a memory device, we will free the memory to store struct page. If the page is hwpoisoned page, we should decrease mce_bad_pages. I think [5/9] and [6/9] should be fold.

[PATCH 1/2] Input: matrix-keypad - remove const from pointer to array of gpios

2012-10-19 Thread AnilKumar Ch
Remove const from pointer to array of gpios in matrix_keypad_platform_data struct. This is required if we update row_gpios and col_gpios based on device tree data. Signed-off-by: AnilKumar Ch anilku...@ti.com --- include/linux/input/matrix_keypad.h |4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 0/2] Input: matrix-keypad - Add device tree support

2012-10-19 Thread AnilKumar Ch
Add device tree support to matrix keypad driver by adding all necessary DT parameters. Also added device tree bindings. These patches were tested on AM335x-EVM with DT patches, DT patches will be submitted once these are accepted. AnilKumar Ch (2): Input: matrix-keypad - remove const from

Re: [PATCH v3 9/9] memory-hotplug: allocate zone's pcp before onlining pages

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, we...@cn.fujitsu.com wrote: From: Wen Congyang we...@cn.fujitsu.com We use __free_page() to put a page to buddy system when onlining pages. __free_page() will store NR_FREE_PAGES in zone's pcp.vm_stat_diff, so we should allocate zone's pcp before onlining

Re: [Bisected] 3.7-rc1 can't resume

2012-10-19 Thread Cédric Godin
On 10/18/2012 04:17 PM, H. Peter Anvin wrote: On 10/18/2012 05:26 AM, Cédric Godin wrote: Hello, After upgrading my kernel from 3.6 to 3.7-rc1 on my laptop, I can't resume anymore. I bisected the problem to There is a fix for this already queued up. Please try the attached patch to

Re: [PATCH 2/2] slub: remove one code path and reduce lock contention in __slab_free()

2012-10-19 Thread Pekka Enberg
On Thu, 16 Aug 2012, Joonsoo Kim wrote: When we try to free object, there is some of case that we need to take a node lock. This is the necessary step for preventing a race. After taking a lock, then we try to cmpxchg_double_slab(). But, there is a possible scenario that cmpxchg_double_slab()

Re: [PATCH 1/4] acpi,memory-hotplug : add memory offline code to acpi_memory_device_remove()

2012-10-19 Thread Wen Congyang
At 10/18/2012 09:25 AM, Yasuaki Ishimatsu Wrote: Hi Wen, 2012/10/17 18:52, Wen Congyang wrote: At 10/17/2012 05:18 PM, KOSAKI Motohiro Wrote: Hmm, it doesn't move the code. It just reuse the code in acpi_memory_powerdown_device(). Even if reuse or not reuse, you changed the behavior. If

Re: [PATCH] remove untouched code in kfifo_in

2012-10-19 Thread Jiri Kosina
On Fri, 19 Oct 2012, Stefani Seibold wrote: In kfifo_in marco, one piece of code is arounded by if(0). This code in introduced by Stefani Seibold stef...@seibold.net to suppress a compiler warning. This warning is not there with the upgrade of gcc version. This patch just remove

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

2012-10-19 Thread Xiao Guangrong
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 splits the mmio access into 8 bytes and store them to vcpu-mmio_fragments. If the guest uses rep ins to move large

[PATCH] emulator test: add rep ins mmio access test

2012-10-19 Thread Xiao Guangrong
Add the test to trigger the bug that rep ins causes vcpu-mmio_fragments overflow overflow while move large data from ioport to MMIO Signed-off-by: Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com --- x86/emulator.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff

Re: [tip:sched/core] sched: Fix race in task_group()

2012-10-19 Thread Stefan Bader
On 18.10.2012 15:33, Luis Henriques wrote: On Thu, Oct 18, 2012 at 12:23:38PM +0200, Stefan Bader wrote: On 18.10.2012 10:27, cwillu wrote: On Tue, Jul 24, 2012 at 8:21 AM, tip-bot for Peter Zijlstra pet...@infradead.org wrote: Commit-ID: 8323f26ce3425460769605a6aece7a174edaa7d1 Gitweb:

Re: [PATCH v3 8/9] memory-hotplug: fix NR_FREE_PAGES mismatch

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, we...@cn.fujitsu.com wrote: From: Wen Congyang we...@cn.fujitsu.com NR_FREE_PAGES will be wrong after offlining pages. We add/dec NR_FREE_PAGES like this now: 1. mova all pages in buddy system to MIGRATE_ISOLATE, and dec NR_FREE_PAGES move? 2. don't add

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

2012-10-19 Thread Tang Chen
Hi, CC to Tejun Heo, and add change log: Changes from v1 to v2: - split one single patch into two. - use WARN_ON_ONCE() but not BUG_ON(), as Tejun said. Thanks. :) On 10/19/2012 01:45 PM, Tang Chen wrote: 1. cmci_rediscover() is only called by the CPU_POST_DEAD event handler, which

Re: [PATCH v3 3/9] memory-hotplug: flush the work for the node when the node is offlined

2012-10-19 Thread Wen Congyang
At 10/19/2012 03:01 PM, KOSAKI Motohiro Wrote: On Fri, Oct 19, 2012 at 2:46 AM, we...@cn.fujitsu.com wrote: From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com If the node is onlined after it is offlined, we will clear the memory to store the node's information. This structure contains

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