Re: [patch 3/7] procfs: Add ability to plug in auxiliary fdinfo providers

2012-07-27 Thread Cyrill Gorcunov
On Fri, Jul 27, 2012 at 07:48:28AM +0400, Pavel Emelyanov wrote: +static int prep_fdinfo_driver(struct proc_fdinfo_extra *extra) +{ + struct proc_fdinfo_driver *s; + + down_read(fdinfo_drivers_sem); + list_for_each_entry(s, fdinfo_drivers, list) { + if

Re: [patch 3/7] procfs: Add ability to plug in auxiliary fdinfo providers

2012-07-27 Thread Pavel Emelyanov
+static void *seq_next(struct seq_file *m, void *p, loff_t *pos) +{ + struct proc_fdinfo_extra *extra = m-private; + void *v = NULL; + + if (extra-driver) { + int ret = 0; + + if (*pos == 0) { + v = extra-driver-ops-start(m, pos); +

Re: [RFC PATCH v4 12/13] memory-hotplug : add node_device_release

2012-07-27 Thread Wen Congyang
At 07/18/2012 06:17 PM, Yasuaki Ishimatsu Wrote: 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. So the patch implements node_device_release() CC: David Rientjes

Re: [PATCH] Add Etron XHCI quirk to avoid warning spam

2012-07-27 Thread Sarah Sharp
Hi Daniel, I already have a patch in my queue for this. However, it keys off the PCI_DEVICE_ID_ASROCK_P67 PCI device ID. Do you have another Etron device with a different device ID that needs this quirk? Sarah Sharp On Fri, Jul 27, 2012 at 12:03:44PM +0800, Daniel J Blueman wrote: When

Re: [PATCH 3/4] uprobes: rename vma_address() and make it return unsigned long

2012-07-27 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2012-07-26 12:28:12]: On 07/26, Srikar Dronamraju wrote: * Oleg Nesterov o...@redhat.com [2012-07-12 19:10:22]: 1. vma_address() returns loff_t, this looks confusing and this is unnecessary after the previous change. Make it return ulong, all

Re: [patch 3/7] procfs: Add ability to plug in auxiliary fdinfo providers

2012-07-27 Thread Cyrill Gorcunov
On Fri, Jul 27, 2012 at 10:08:38AM +0400, Pavel Emelyanov wrote: +static void *seq_next(struct seq_file *m, void *p, loff_t *pos) +{ + struct proc_fdinfo_extra *extra = m-private; + void *v = NULL; + + if (extra-driver) { + int ret = 0; + + if (*pos == 0) { +

Re: [BUG] Problem with commit cf03c5dac83609f09d9f0e9fa3c09d86daed614d

2012-07-27 Thread Dirk Gouders
Dirk Gouders goud...@et.bocholt.fh-gelsenkirchen.de writes: Seth Forshee seth.fors...@canonical.com writes: On Thu, Jul 26, 2012 at 05:07:57PM +0200, Dirk Gouders wrote: Hi Seth, thanks for your reply and sorry for the noise. I followed your advice and tried to boot with the WLAN

Re: [PATCH] Add Etron XHCI quirk to avoid warning spam

2012-07-27 Thread Daniel J Blueman
On 27 July 2012 14:14, Sarah Sharp sarah.a.sh...@linux.intel.com wrote: On Fri, Jul 27, 2012 at 12:03:44PM +0800, Daniel J Blueman wrote: When various USB3 devices with Etron XHCI controllers, we see a bunch of warnings: xhci_hcd :02:00.0: WARN Successful completion on short TX: needs

Re: [PATCH] extcon: arizona: Implement button detection support

2012-07-27 Thread Chanwoo Choi
On 07/26/2012 05:11 PM, Mark Brown wrote: On Thu, Jul 26, 2012 at 09:10:08AM +0900, Chanwoo Choi wrote: If user press BTN_0 and BTN_1 at the same time and then user only released BTN_0 but BTN_1 is still pressed, is it right that report released event to all of buttons? I think that

Re: [PATCH] mfd: add MAX8907 core driver

2012-07-27 Thread Laxman Dewangan
On Friday 27 July 2012 01:10 AM, Stephen Warren wrote: From: Gyungoh Yoojack@maxim-ic.com +static int max8907_irq_set_wake(struct irq_data *data, unsigned int on) +{ + /* Everything happens in max8907_irq_sync_unlock */ + Probably you need to call the wake_enable of irq which

Re: [PATCH] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list

2012-07-27 Thread Paolo Bonzini
Il 27/07/2012 05:12, Wang Sen ha scritto: No this code is correct, though you will need to make sure to properly terminate the destination sg_list. Yes, the terminate marker in the destination list is set when initialization. sg_set_page would not break this marker because it saved both the

Re: [Xen-devel] [PATCH 06/24] xen: missing includes

2012-07-27 Thread Jan Beulich
On 26.07.12 at 17:33, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: --- a/include/xen/interface/xen.h +++ b/include/xen/interface/xen.h @@ -10,7 +10,10 @@ #define __XEN_PUBLIC_XEN_H__ #include asm/xen/interface.h +#include linux/types.h +#ifdef CONFIG_X86 #include

Re: [Xen-devel] [PATCH 10/24] xen: do not compile manage, balloon, pci, acpi and cpu_hotplug on ARM

2012-07-27 Thread Jan Beulich
On 26.07.12 at 17:33, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: --- a/drivers/xen/Makefile +++ b/drivers/xen/Makefile @@ -1,11 +1,15 @@ -obj-y+= grant-table.o features.o events.o manage.o balloon.o +ifneq ($(CONFIG_ARM),y) +obj-y+= manage.o balloon.o

Re: [Xen-devel] [PATCH 17/24] xen: allow privcmd for HVM guests

2012-07-27 Thread Jan Beulich
On 26.07.12 at 17:33, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: In order for privcmd mmap to work correctly, xen_remap_domain_mfn_range needs to be implemented for HVM guests. If it is not, mmap is going to fail later on. Somehow, for me at least, this description doesn't

Re: [PATCH 00/13] UAPI header file split

2012-07-27 Thread Michael Kerrisk
On Thu, Jul 26, 2012 at 12:46 PM, David Howells dhowe...@redhat.com wrote: Michael Kerrisk mtk.manpa...@gmail.com wrote: 3. HEADER COMMENTS NOT RETAINED IN KAPI FILES How about the attached changes? This is a delta to the disintegrate markers diff I sent earlier. That looks about

Re: [PATCH 1/6] w1: omap-hdq: add section annotation to remove

2012-07-27 Thread Felipe Balbi
Hi, On Thu, Jul 26, 2012 at 06:45:26PM +0400, Evgeniy Polyakov wrote: Hi all On Wed, Jul 25, 2012 at 03:05:27PM +0300, Felipe Balbi (ba...@ti.com) wrote: trivial patch, no functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Looks good to me Who should pick it up? Feel

Re: Issue with block I/O cgroup in case of threads

2012-07-27 Thread naveen yadav
We are using 3.0.33 kernel and verification is done on ARM cortex a9. On Fri, Jul 27, 2012 at 12:33 PM, naveen yadav yad.nav...@gmail.com wrote: Hi All, I am testing the cgroup block IO attributes in multiple threads scenario. I tried testing Throttling policy (max read/write bytes per

[RFC PATCH] netconsole.txt: nc needs -p to specify the listening port

2012-07-27 Thread Dirk Gouders
Hi Jesse, I would like to ask you to check if the documentation of nc in netconsole.txt is still correct. I tried two different netcat packages and both require -p to specify the listening port. I am wondering if that changed after the use of nc has been documented. Best regards, Dirk

Re: Oops after merge of tty-next

2012-07-27 Thread Thierry Reding
On Tue, Jul 24, 2012 at 11:05:27PM +0100, Alan Cox wrote: On Mon, 23 Jul 2012 15:51:03 +0100 Ian Abbott abbo...@mev.co.uk wrote: On 2012-07-21 23:41, Alan Cox wrote: On Fri, 20 Jul 2012 23:07:06 +0100 Ian Abbott abbo...@mev.co.uk wrote: I'm getting an Oops in the linux-next tree

Re: [Xen-devel] [PATCH 1/2] xen/swiotlb: If iommu=soft was not passed in on 4GB, don't turn it on.

2012-07-27 Thread Jan Beulich
On 26.07.12 at 22:43, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: If we boot a 64-bit guest with more than 4GB memory, the SWIOTLB gets turned on: PCI-DMA: Using software bounce buffering for IO (SWIOTLB) software IO TLB [mem 0xfb43d000-0xff43cfff] (64MB) mapped at

Re: How to use the generic thermal sysfs.

2012-07-27 Thread Jean Delvare
On Fri, 27 Jul 2012 10:58:21 +0800, Wei Ni wrote: On Fri, 2012-07-27 at 09:21 +0800, Zhang Rui wrote: is it possible to program the sensor at this time, in your own thermal driver? Since we are using the generic thermal driver lm90.c, I'm not sure if we could program these limits in the

arm interrupt handling

2012-07-27 Thread Qipeng Zha
Hi When I study the interrupt handling code in 2.6.39 for omap soc, found don't clear CPSR.I to enable irq till each ISR finished. Is this true? Or I miss something, since this will be wired that the core will not service any other irq before complete before irq handling. Best wishes Qipeng

Re: [Xen-devel] [RFC PATCH] Boot PV guests with more than 128GB (v1) for 3.7

2012-07-27 Thread Jan Beulich
On 26.07.12 at 22:47, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: 2). Allocate a new array, copy the existing P2M into it, revector the P2M tree to use that, and return the old P2M to the memory allocate. This has the advantage that it sets the stage for using

Re: [Xen-devel] [PATCH 1/7] xen/mmu: use copy_page instead of memcpy.

2012-07-27 Thread Jan Beulich
On 26.07.12 at 22:47, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: After all, this is what it is there for. Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Acked-by: Jan Beulich jbeul...@suse.com --- arch/x86/xen/mmu.c | 13 ++--- 1 files changed, 6

[ANNOUNCE] util-linux v2.22-rc1

2012-07-27 Thread Karel Zak
The util-linux release v2.22-rc1 is available at ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.22/ Feedback and bug reports, as always, are welcomed. Karel Util-linux 2.22 Release Notes = The cryptoloop support in the commands mount(8) and losetup(8)

Re: How to use the generic thermal sysfs.

2012-07-27 Thread Zhang Rui
On δΊ”, 2012-07-27 at 09:30 +0200, Jean Delvare wrote: On Fri, 27 Jul 2012 10:58:21 +0800, Wei Ni wrote: On Fri, 2012-07-27 at 09:21 +0800, Zhang Rui wrote: is it possible to program the sensor at this time, in your own thermal driver? Since we are using the generic thermal driver

[PATCH] x86: don't ever patch back to UP if we unplug cpus.

2012-07-27 Thread Rusty Russell
Paul McKenney points out: mean offline overhead is 6251/48=130.2 milliseconds. If I remove the alternatives_smp_switch() from the offline path [...] the mean offline overhead is 550/42=13.1 milliseconds Basically, we're never going to get those 120ms back, and the code is pretty messy. We

Re: [RFC PATCH 0/6] CPU hotplug: Reverse invocation of notifiers during CPU hotplug

2012-07-27 Thread Rusty Russell
On Wed, 25 Jul 2012 18:30:41 +0200 (CEST), Thomas Gleixner t...@linutronix.de wrote: The problem with the current notifiers is, that we only have ordering for a few specific callbacks, but we don't have the faintest idea in which order all other random stuff is brought up and torn down. So

Re: [PATCH V3 3/3] virtio-blk: Add bio-based IO path for virtio-blk

2012-07-27 Thread Rusty Russell
On Fri, 13 Jul 2012 16:38:51 +0800, Asias He as...@redhat.com wrote: This patch introduces bio-based IO path for virtio-blk. Acked-by: Rusty Russell ru...@rustcorp.com.au I just hope we can do better than a module option in future. Thanks, Rusty. -- To unsubscribe from this list: send the line

Re: virtio(-scsi) vs. chained sg_lists (was Re: [PATCH] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list)

2012-07-27 Thread Rusty Russell
On Thu, 26 Jul 2012 15:05:39 +0200, Paolo Bonzini pbonz...@redhat.com wrote: Il 26/07/2012 09:58, Paolo Bonzini ha scritto: Please CC me on the convert to sg copy-less patches, It looks interesting Sure. Well, here is the gist of it (note it won't apply on any public tree, hence

[RFC PATCH] fs/direct-io.c: Set bi_rw when alloc bio.

2012-07-27 Thread majianpeng
When exec bio_alloc, the bi_rw is zero.But after calling bio_add_page, it will use bi_rw. Fox example, in functiion __bio_add_page,it will call merge_bvec_fn(). The merge_bvec_fn of raid456 will use the bi_rw to judge the merge. if ((bvm-bi_rw 1) == WRITE) return biovec-bv_len; /*

[RFC] PCI/PM: Add ABI document for sysfs file d3cold_allowed

2012-07-27 Thread Huang Ying
This patch adds ABI document for the following sysfs file: /sys/bus/pci/devices/.../d3cold_allowed Signed-off-by: Huang Ying ying.hu...@intel.com --- Documentation/ABI/testing/sysfs-bus-pci | 12 1 file changed, 12 insertions(+) --- a/Documentation/ABI/testing/sysfs-bus-pci +++

Re: virtio(-scsi) vs. chained sg_lists (was Re: [PATCH] scsi: virtio-scsi: Fix address translation failure of HighMem pages used by sg list)

2012-07-27 Thread Paolo Bonzini
Il 27/07/2012 08:27, Rusty Russell ha scritto: +int virtqueue_add_buf_sg(struct virtqueue *_vq, + struct scatterlist *sg_out, + unsigned int out, + struct scatterlist *sg_in, + unsigned int in, +

Re: [PATCH V2] dma: tegra: enable/disable dma clock

2012-07-27 Thread Laxman Dewangan
On Tuesday 24 July 2012 10:30 AM, Laxman Dewangan wrote: On Tuesday 24 July 2012 10:38 AM, Vinod Koul wrote: On Fri, 2012-07-20 at 13:31 +0530, Laxman Dewangan wrote: Enable the DMA clock when allocating channel and disable clock when freeing channels. Signed-off-by: Laxman

Re: [PATCH 1/2] sched: recover SD_WAKE_AFFINE in select_task_rq_fair and code clean up

2012-07-27 Thread Peter Zijlstra
On Fri, 2012-07-27 at 09:47 +0800, Alex Shi wrote: From 610515185d8a98c14c7c339c25381bc96cd99d93 Mon Sep 17 00:00:00 2001 From: Alex Shi alex@intel.com Date: Thu, 26 Jul 2012 08:55:34 +0800 Subject: [PATCH 1/3] sched: recover SD_WAKE_AFFINE in select_task_rq_fair and code clean up

Re: [PATCH -alternative] mm: hugetlbfs: Close race during teardown of hugetlbfs shared page tables V2 (resend)

2012-07-27 Thread Mel Gorman
On Thu, Jul 26, 2012 at 01:42:26PM -0400, Rik van Riel wrote: On 07/23/2012 12:04 AM, Hugh Dickins wrote: Please don't be upset if I say that I don't like either of your patches. Mainly for obvious reasons - I don't like Mel's because anything with trylock retries and nested spinlocks

Re: [PATCH] mm: hugetlbfs: Close race during teardown of hugetlbfs shared page tables v2

2012-07-27 Thread Mel Gorman
On Thu, Jul 26, 2012 at 12:01:04PM -0400, Larry Woodman wrote: On 07/20/2012 09:49 AM, Mel Gorman wrote: +retry: mutex_lock(mapping-i_mmap_mutex); vma_prio_tree_foreach(svma,iter,mapping-i_mmap, idx, idx) { if (svma == vma) continue; +

Re: [PATCH v3 2/2] powerpc: Uprobes port to powerpc

2012-07-27 Thread Srikar Dronamraju
* Ananth N Mavinakayanahalli ana...@in.ibm.com [2012-07-26 10:50:29]: From: Ananth N Mavinakayanahalli ana...@in.ibm.com This is the port of uprobes to powerpc. Usage is similar to x86. [root@ ~]# ./bin/perf probe -x /lib64/libc.so.6 malloc Added new event: probe_libc:malloc(on

Re: [PATCH] mm: hugetlbfs: Close race during teardown of hugetlbfs shared page tables v2

2012-07-27 Thread Mel Gorman
On Thu, Jul 26, 2012 at 05:00:28PM -0400, Rik van Riel wrote: On 07/20/2012 09:49 AM, Mel Gorman wrote: This V2 is still the mmap_sem approach that fixes a potential deadlock problem pointed out by Michal. Larry and I were looking around the hugetlb code some more, and found what looks like

Re: Re: [RFC PATCH 0/6] virtio-trace: Support virtio-trace

2012-07-27 Thread Yoshihiro YUNOMAE
Hi Amit, Thank you for commenting on our work. (2012/07/26 20:35), Amit Shah wrote: On (Tue) 24 Jul 2012 [11:36:57], Yoshihiro YUNOMAE wrote: [...] Therefore, we propose a new system virtio-trace, which uses enhanced virtio-serial and existing ring-buffer of ftrace, for collecting guest

Re: [Xen-devel] [PATCH 02/24] xen/arm: hypercalls

2012-07-27 Thread Ian Campbell
On Thu, 2012-07-26 at 17:56 +0100, David Vrabel wrote: On 26/07/12 16:33, Stefano Stabellini wrote: + * The hvc ISS is required to be 0xEA1, that is the Xen specific ARM + * hypercall tag. Is this number, 0xea1, assigned to Xen by some external body? The value and semantics of the hvc

[PATCH v4 4/7] scsi: sr: block events when runtime suspended

2012-07-27 Thread Aaron Lu
When the ODD is runtime suspended, there is no need to poll it for events, so block events poll for it and unblock when resumed. Signed-off-by: Aaron Lu aaron...@amd.com --- block/genhd.c | 2 ++ drivers/scsi/sr.c | 7 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git

[PATCH v4 3/7] scsi: sr: support zero power ODD(ZPODD)

2012-07-27 Thread Aaron Lu
The ODD will be placed into suspend state when: 1 For tray type ODD, no media inside and door closed; 2 For slot type ODD, no media inside; And together with ACPI, when we suspend the ODD's parent(the port it attached to), we will omit the power altogether to reduce power consumption(done in

[PATCH v4 6/7] scsi: sr: balance sr disk events block depth

2012-07-27 Thread Aaron Lu
When the ODD is resumed, disk_unblock_events should be called when: 1 The ODD is runtime resumed; 2 System is resuming from S3 and the ODD is runtime suspended before S3; But not when the system is resuming from S3 and the ODD is runtime active before S3. So seperate the resume calls, one for

[PATCH v4 5/7] scsi: pm: use runtime resume callback if available

2012-07-27 Thread Aaron Lu
When runtime resume a scsi device, if the device's driver has implemented runtime resume callback, use that. sr driver needs this to do different things for system resume and runtime resume. Signed-off-by: Aaron Lu aaron...@amd.com --- drivers/scsi/scsi_pm.c | 15 ++- 1 file

[PATCH v4 1/7] scsi: sr: check support for device busy class events

2012-07-27 Thread Aaron Lu
Signed-off-by: Aaron Lu aaron...@amd.com --- drivers/scsi/sr.c | 23 +++ drivers/scsi/sr.h | 1 + include/linux/cdrom.h | 43 +++ 3 files changed, 67 insertions(+) diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index

[PATCH v4 7/7] block: genhd: add an interface to set disk's poll interval

2012-07-27 Thread Aaron Lu
Set the ODD's in kernel poll interval to 2s for the user in case the user is using an old distro on which udev will not set the system wide block parameter events_dfl_poll_msecs. Signed-off-by: Aaron Lu aaron...@amd.com --- block/genhd.c | 23 +-- drivers/scsi/sr.c

[PATCH v4 0/7] ZPODD patches

2012-07-27 Thread Aaron Lu
v4: Rebase on top of Linus' tree, due to this, the problem of a missing flag in v3 is gone; Add a new function scsi_autopm_put_device_autosuspend to first mark last busy for the device and then put autosuspend it as suggested by Oliver Neukum. Typo fix as pointed by Sergei Shtylyov. Check

[PATCH v4 2/7] scsi: pm: add interface to autosuspend scsi device

2012-07-27 Thread Aaron Lu
Add a new interface scsi_autopm_put_device_autosuspend to mark last busy for the device and then put autosuspend the device. Signed-off-by: Aaron Lu aaron...@amd.com --- drivers/scsi/scsi_pm.c | 7 +++ include/scsi/scsi_device.h | 2 ++ 2 files changed, 9 insertions(+) diff --git

Re: [RFC PATCH] netconsole.txt: nc needs -p to specify the listening port

2012-07-27 Thread Cong Wang
On Fri, Jul 27, 2012 at 2:35 PM, Dirk Gouders goud...@et.bocholt.fh-gelsenkirchen.de wrote: Hi Jesse, I would like to ask you to check if the documentation of nc in netconsole.txt is still correct. I tried two different netcat packages and both require -p to specify the listening port. I am

Re: [PATCH -alternative] mm: hugetlbfs: Close race during teardown of hugetlbfs shared page tables V2 (resend)

2012-07-27 Thread Michal Hocko
On Thu 26-07-12 14:31:50, Rik van Riel wrote: On 07/20/2012 10:36 AM, Michal Hocko wrote: --- a/arch/x86/mm/hugetlbpage.c +++ b/arch/x86/mm/hugetlbpage.c @@ -81,7 +81,12 @@ static void huge_pmd_share(struct mm_struct *mm, unsigned long addr, pud_t *pud) if (saddr) {

Re: [PATCH v2 1/1] mmc: block: Add write packing control

2012-07-27 Thread S, Venkatraman
On Fri, Jul 27, 2012 at 12:24 AM, me...@codeaurora.org wrote: On Thu, July 26, 2012 8:28 am, S, Venkatraman wrote: On Tue, Jul 24, 2012 at 2:14 PM, me...@codeaurora.org wrote: On Mon, July 23, 2012 5:22 am, S, Venkatraman wrote: On Mon, Jul 23, 2012 at 5:13 PM, me...@codeaurora.org wrote:

Re: [Xen-devel] [PATCH 02/24] xen/arm: hypercalls

2012-07-27 Thread Ian Campbell
On Thu, 2012-07-26 at 17:33 +0100, Konrad Rzeszutek Wilk wrote: On Thu, Jul 26, 2012 at 04:33:44PM +0100, Stefano Stabellini wrote: Use r12 to pass the hypercall number to the hypervisor. We need a register to pass the hypercall number because we might not know it at compile time and HVC

Re: [PATCH 02/24] xen/arm: hypercalls

2012-07-27 Thread Ian Campbell
On Thu, 2012-07-26 at 20:19 +0100, Christopher Covington wrote: Hi Stefano, On 07/26/2012 11:33 AM, Stefano Stabellini wrote: Use r12 to pass the hypercall number to the hypervisor. We need a register to pass the hypercall number because we might not know it at compile time and HVC

Re: [RFC PATCH] netconsole.txt: nc needs -p to specify the listening port

2012-07-27 Thread Dirk Gouders
Cong Wang xiyou.wangc...@gmail.com writes: On Fri, Jul 27, 2012 at 2:35 PM, Dirk Gouders goud...@et.bocholt.fh-gelsenkirchen.de wrote: Hi Jesse, I would like to ask you to check if the documentation of nc in netconsole.txt is still correct. I tried two different netcat packages and both

Re: [Xen-devel] [PATCH 04/24] xen/arm: sync_bitops

2012-07-27 Thread Ian Campbell
On Thu, 2012-07-26 at 17:37 +0100, Konrad Rzeszutek Wilk wrote: On Thu, Jul 26, 2012 at 04:33:46PM +0100, Stefano Stabellini wrote: sync_bitops functions are equivalent to the SMP implementation of the original functions, independently from CONFIG_SMP being defined. So why can't the code

Re: [PATCH 07/24] xen/arm: Xen detection and shared_info page mapping

2012-07-27 Thread Ian Campbell
On Thu, 2012-07-26 at 16:33 +0100, Stefano Stabellini wrote: Check for a /xen node in the device tree, if it is present set xen_domain_type to XEN_HVM_DOMAIN and continue initialization. Map the real shared info page using XENMEM_add_to_physmap with XENMAPSPACE_shared_info. Signed-off-by:

Re: [PATCH 12/24] xen/arm: Introduce xen_guest_init

2012-07-27 Thread Ian Campbell
On Thu, 2012-07-26 at 16:33 +0100, Stefano Stabellini wrote: We used to rely on a core_initcall to initialize Xen on ARM, however core_initcalls are actually called after early consoles are initialized. That means that hvc_xen.c is going to be initialized before Xen. Given the lack of a

Re: Re: [RFC PATCH 0/6] virtio-trace: Support virtio-trace

2012-07-27 Thread Amit Shah
On (Fri) 27 Jul 2012 [17:55:11], Yoshihiro YUNOMAE wrote: Hi Amit, Thank you for commenting on our work. (2012/07/26 20:35), Amit Shah wrote: On (Tue) 24 Jul 2012 [11:36:57], Yoshihiro YUNOMAE wrote: [...] Therefore, we propose a new system virtio-trace, which uses enhanced

Re: [PATCH 13/24] xen/arm: get privilege status

2012-07-27 Thread Ian Campbell
On Thu, 2012-07-26 at 16:33 +0100, Stefano Stabellini wrote: Use Xen features to figure out if we are privileged. XENFEAT_dom0 was introduced by 23735 in xen-unstable.hg. Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- arch/arm/xen/enlighten.c |7

Re: [PATCH 18/24] xen/arm: compile blkfront and blkback

2012-07-27 Thread Ian Campbell
On Thu, 2012-07-26 at 16:34 +0100, Stefano Stabellini wrote: +#define XEN_IO_PROTO_ABI_ARMarm-abi I wonder if we ought to call this arm-aarch32-abi or something? I wonder if we can also take the opportunity to fix the ABI cockup for disks on ARM and make the structs the same for both

Re: [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-07-27 Thread Alan Cox
+enum { + VMCI_SUCCESS_QUEUEPAIR_ATTACH = 5, + VMCI_SUCCESS_QUEUEPAIR_CREATE = 4, + VMCI_SUCCESS_LAST_DETACH= 3, + VMCI_SUCCESS_ACCESS_GRANTED = 2, + VMCI_SUCCESS_ENTRY_DEAD = 1, We've got a nice collection of Linux error codes than you, and it would

Re: [Xen-devel] [RFC PATCH] Boot PV guests with more than 128GB (v1) for 3.7

2012-07-27 Thread Ian Campbell
On Fri, 2012-07-27 at 08:34 +0100, Jan Beulich wrote: On 26.07.12 at 22:47, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: 2). Allocate a new array, copy the existing P2M into it, revector the P2M tree to use that, and return the old P2M to the memory allocate. This has

Re: [PATCH -alternative] mm: hugetlbfs: Close race during teardown of hugetlbfs shared page tables V2 (resend)

2012-07-27 Thread Larry Woodman
On 07/26/2012 11:48 PM, Larry Woodman wrote: Mel, did you see this??? Larry This patch looks good to me. Larry, does Hugh's patch survive your testing? Like I said earlier, no. However, I finally set up a reproducer that only takes a few seconds on a large system and this totally

Re: [GIT PULL] PWM subsystem for v3.6

2012-07-27 Thread Mark Brown
On Fri, Jul 27, 2012 at 07:10:54AM +0200, Thierry Reding wrote: At least the patch that adds me as the maintainer is Acked-by: Sascha Hauer, who did the original work, and Arnd Bergmann who was involved in the review process. Other people such as Shawn Guo and Mark Brown have also been

[RFC PATCH v5 00/19] memory-hotplug: hot-remove physical memory

2012-07-27 Thread Wen Congyang
This patch series aims to support physical memory hot-remove. The patches can free/remove following things: - acpi_memory_info : [RFC PATCH 4/19] - /sys/firmware/memmap/X/{end, start, type} : [RFC PATCH 8/19] - iomem_resource: [RFC PATCH

Re: [PATCH] sd: do not set changed flag on all unit attention conditions

2012-07-27 Thread Hannes Reinecke
On 07/17/2012 11:59 PM, James Bottomley wrote: On Tue, 2012-07-17 at 12:36 -0400, Christoph Hellwig wrote: On Tue, Jul 17, 2012 at 10:11:57AM +0100, James Bottomley wrote: There's no such thing in the market today as a removable disk that's resizeable. Removable disks are for things like

[RFC PATCH 0/19] firmware_map : unify argument of firmware_map_add_early/hotplug

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com There are two ways to create /sys/firmware/memmap/X sysfs: - firmware_map_add_early When the system starts, it is calledd from e820_reserve_resources() - firmware_map_add_hotplug When the memory is hot plugged, it is called from

Re: [Xen-devel] [RFC PATCH] Boot PV guests with more than 128GB (v1) for 3.7

2012-07-27 Thread Jan Beulich
On 27.07.12 at 12:00, Ian Campbell ian.campb...@citrix.com wrote: On Fri, 2012-07-27 at 08:34 +0100, Jan Beulich wrote: On 26.07.12 at 22:47, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: 2). Allocate a new array, copy the existing P2M into it, revector the P2M tree to use

[PATCH V2 0/6] Per-cgroup page stat accounting

2012-07-27 Thread Sha Zhengju
From: Sha Zhengju handai@taobao.com Hi, list This V2 patch series provide the ability for each memory cgroup to have independent dirty/writeback page statistics which can provide information for per-cgroup direct reclaim or some. In the first three prepare patches, we have done some

[RFC PATCH v5 01/19] memory-hotplug: rename remove_memory() to offline_memory()/offline_pages()

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com remove_memory() only try to offline pages. It is called in two cases: 1. hot remove a memory device 2. echo offline /sys/devices/system/memory/memoryXX/state In the 1st case, we should also change memory block's state, and notify the

Re: [Xen-devel] [RFC PATCH] Boot PV guests with more than 128GB (v1) for 3.7

2012-07-27 Thread Ian Campbell
On Fri, 2012-07-27 at 11:17 +0100, Jan Beulich wrote: On 27.07.12 at 12:00, Ian Campbell ian.campb...@citrix.com wrote: On Fri, 2012-07-27 at 08:34 +0100, Jan Beulich wrote: On 26.07.12 at 22:47, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: 2). Allocate a new array, copy the

[RFC PATCH v5 02/19] memory-hotplug: implement offline_memory()

2012-07-27 Thread Wen Congyang
The function offline_memory() will be called when hot removing a memory device. The memory device may contain more than one memory block. If the memory block has been offlined, __offline_pages() will fail. So we should try to offline one memory block at a time. If the memory block is offlined in

[RFC PATCH v5 03/19] memory-hotplug: store the node id in acpi_memory_device

2012-07-27 Thread Wen Congyang
The memory device has only one node id. Store the node id when enable the memory device, and we can reuse it when removing the memory device. CC: David Rientjes rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown len.br...@intel.com CC: Benjamin Herrenschmidt b...@kernel.crashing.org

[RFC PATCH v5 04/19] memory-hotplug: offline and remove memory when removing the memory device

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com We should offline and remove memory when removing the memory device. The memory device can be removed by 2 ways: 1. send eject request by SCI 2. echo 1 /sys/bus/pci/devices/PNP0C80:XX/eject In the 1st case, acpi_memory_disable_device() will

RE: [GIT PULL] PWM subsystem for v3.6

2012-07-27 Thread Philip, Avinash
On Fri, Jul 27, 2012 at 10:40:54, Thierry Reding wrote: On Thu, Jul 26, 2012 at 02:11:58PM -0700, Linus Torvalds wrote: On Thu, Jul 26, 2012 at 12:16 AM, Thierry Reding thierry.red...@avionic-design.de wrote: The new PWM subsystem aims at collecting all implementations of the legacy

[PATCH V2 1/6] memcg: remove MEMCG_NR_FILE_MAPPED

2012-07-27 Thread Sha Zhengju
From: Sha Zhengju handai@taobao.com While accounting memcg page stat, it's not worth to use MEMCG_NR_FILE_MAPPED as an extra layer of indirection because of the complexity and presumed performance overhead. We can use MEM_CGROUP_STAT_FILE_MAPPED directly. Signed-off-by: Sha Zhengju

[RFC PATCH v5 05/19] memory-hotplug: check whether memory is present or not

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com If system supports memory hot-remove, online_pages() may online removed pages. So online_pages() need to check whether onlining pages are present or not. CC: David Rientjes rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown

[RFC PATCH v5 06/19] memory-hotplug: export the function acpi_bus_remove()

2012-07-27 Thread Wen Congyang
The function acpi_bus_remove() can remove a acpi device from acpi device. When a acpi device is removed, we need to call this function to remove the acpi device from acpi bus. So export this function. CC: David Rientjes rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown

Re: [PATCH -alternative] mm: hugetlbfs: Close race during teardown of hugetlbfs shared page tables V2 (resend)

2012-07-27 Thread Mel Gorman
On Thu, Jul 26, 2012 at 11:48:56PM -0400, Larry Woodman wrote: On 07/26/2012 02:37 PM, Rik van Riel wrote: On 07/23/2012 12:04 AM, Hugh Dickins wrote: I spent hours trying to dream up a better patch, trying various approaches. I think I have a nice one now, what do you think? And more

[RFC PATCH v5 07/19] memory-hotplug: call acpi_bus_remove() to remove memory device

2012-07-27 Thread Wen Congyang
The memory device has been ejected and powoffed, so we can call acpi_bus_remove() to remove the memory device from acpi bus. CC: David Rientjes rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown len.br...@intel.com CC: Benjamin Herrenschmidt b...@kernel.crashing.org CC: Paul

[RFC PATCH v5 08/19] memory-hotplug: remove /sys/firmware/memmap/X sysfs

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com When (hot)adding memory into system, /sys/firmware/memmap/X/{end, start, type} sysfs files are created. But there is no code to remove these files. The patch implements the function to remove them. Note : The code does not free

Re: [RESEND RFC 3/3] memory-hotplug: bug fix race between isolation and allocation

2012-07-27 Thread Kamezawa Hiroyuki
(2012/07/23 9:48), Minchan Kim wrote: Like below, memory-hotplug makes race between page-isolation and page-allocation so it can hit BUG_ON in __offline_isolated_pages. CPU A CPU B start_isolate_page_range set_migratetype_isolate

[PATCH V2 2/6] Make TestSetPageDirty and dirty page accounting in one func

2012-07-27 Thread Sha Zhengju
From: Sha Zhengju handai@taobao.com Commit a8e7d49a(Fix race in create_empty_buffers() vs __set_page_dirty_buffers()) extracts TestSetPageDirty from __set_page_dirty and is far away from account_page_dirtied.But it's better to make the two operations in one single function to keep modular.So

[RFC PATCH v5 09/19] memory-hotplug: does not release memory region in PAGES_PER_SECTION chunks

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com Since applying a patch(de7f0cba96786c), release_mem_region() has been changed as called in PAGES_PER_SECTION chunks because register_memory_resource() is called in PAGES_PER_SECTION chunks by add_memory(). But it seems firmware dependency. If

[RFC PATCH v5 10/19] memory-hotplug: add memory_block_release

2012-07-27 Thread Wen Congyang
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. remove_memory_block() calls kfree(mem). I think it shouled

[RFC PATCH v5 11/19] memory-hotplug: remove_memory calls __remove_pages

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com The patch adds __remove_pages() to remove_memory(). Then the range of phys_start_pfn argument and nr_pages argument in __remove_pagse() may have different zone. So zone argument is removed from __remove_pages() and __remove_pages()

[RFC PATCH v5 12/19] memory-hotplug: introduce new function arch_remove_memory()

2012-07-27 Thread Wen Congyang
We don't call __add_pages() directly in the function add_memory() because some other architecture related things need to be done before or after calling __add_pages(). So we should introduce a new function arch_remove_memory() to revert the things done in arch_add_memory(). Note: the function for

[PATCH V2 3/6] Use vfs __set_page_dirty interface instead of doing it inside filesystem

2012-07-27 Thread Sha Zhengju
From: Sha Zhengju handai@taobao.com Following we will treat SetPageDirty and dirty page accounting as an integrated operation. Filesystems had better use vfs interface directly to avoid those details. Signed-off-by: Sha Zhengju handai@taobao.com Acked-by: Sage Weil s...@inktank.com ---

[RFC PATCH v5 13/19] memory-hotplug: check page type in get_page_bootmem

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com There is a possibility that get_page_bootmem() is called to the same page many times. So when get_page_bootmem is called to the same page, the function only increments page-_count. CC: David Rientjes rient...@google.com CC: Jiang Liu

[PATCH] regmap: Add regmap dummy driver

2012-07-27 Thread Dimitris Papastamos
Add a pseudo-driver for debugging and stress-testing the regmap/regcache APIs. A standard set of tools for working with this driver (mainly sh scripts) will be put in a repo at https://github.com/quantumdream/regmap-tools. Change-Id: Ie6498f18d6f9a1f7a7cf813240e87ffed0d6f047 Signed-off-by:

[PATCH V2 4/6] memcg: add per cgroup dirty pages accounting

2012-07-27 Thread Sha Zhengju
From: Sha Zhengju handai@taobao.com This patch adds memcg routines to count dirty pages, which allows memory controller to maintain an accurate view of the amount of its dirty memory and can provide some info for users while group's direct reclaim is working. After Kame's commit

[RFC PATCH v5 14/19] memory-hotplug: move register_page_bootmem_info_node and put_page_bootmem for sparse-vmemmap

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com For implementing register_page_bootmem_info_node of sparse-vmemmap, register_page_bootmem_info_node and put_page_bootmem are moved to memory_hotplug.c CC: David Rientjes rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown

[PATCH V2 5/6] memcg: add per cgroup writeback pages accounting

2012-07-27 Thread Sha Zhengju
From: Sha Zhengju handai@taobao.com Similar to dirty page, we add per cgroup writeback pages accounting. The lock rule still is: mem_cgroup_begin_update_page_stat() modify page WRITEBACK stat mem_cgroup_update_page_stat() mem_cgroup_end_update_page_stat()

[RFC PATCH v5 15/19] memory-hotplug: implement register_page_bootmem_info_section of sparse-vmemmap

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com For removing memmap region of sparse-vmemmap which is allocated bootmem, memmap region of sparse-vmemmap needs to be registered by get_page_bootmem(). So the patch searches pages of virtual mapping and registers the pages by

[RFC PATCH v5 16/19] memory-hotplug: free memmap of sparse-vmemmap

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com All pages of virtual mapping in removed memory cannot be freed, since some pages used as PGD/PUD includes not only removed memory but also other memory. So the patch checks whether page can be freed or not. How to check whether page can be

[RFC PATCH v5 17/19] memory_hotplug: clear zone when the memory is removed

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com When a memory is added, we update zone's and pgdat's start_pfn and spanned_pages in the function __add_zone(). So we should revert these when the memory is removed. Add a new function __remove_zone() to do this. CC: David Rientjes

[RFC PATCH v5 18/19] memory-hotplug: add node_device_release

2012-07-27 Thread Wen Congyang
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. So the patch implements node_device_release() CC: David Rientjes

[RFC PATCH v5 19/19] memory-hotplug: remove sysfs file of node

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com The patch adds node_set_offline() and unregister_one_node() to remove_memory() for removing sysfs file of node. CC: David Rientjes rient...@google.com CC: Jiang Liu liu...@gmail.com CC: Len Brown len.br...@intel.com CC: Benjamin

[PATCH V2 6/6] memcg: Document cgroup dirty/writeback memory statistics

2012-07-27 Thread Sha Zhengju
From: Sha Zhengju handai@taobao.com Signed-off-by: Sha Zhengju handai@taobao.com Acked-by: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com Ackedy-by: Michal Hocko mho...@suse.cz Acked-by: Fengguang Wu fengguang...@intel.com --- Documentation/cgroups/memory.txt |2 ++ 1 files

  1   2   3   4   5   6   7   8   9   10   >