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 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 XEN_ELF_NOTE_INIT_P2M >

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 wrote: > After all, this is what it is there for. > > Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Jan Beulich > --- > arch/x86/xen/mmu.c | 13 ++--- > 1 files changed, 6 insertions(+), 7 deletions(-) > > diff --git

[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

[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 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 I started

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 wrote: > This patch introduces bio-based IO path for virtio-blk. Acked-by: Rusty Russell I just hope we can do better than a module option in future. Thanks, Rusty. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

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 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 no

[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

[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 --- 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 Dewangan --- +

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 > 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 > > Since power

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

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(>i_mmap_mutex); > > vma_prio_tree_foreach(svma,,>i_mmap, idx, idx) { > > if (svma == vma) > > continue; > >+if

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

2012-07-27 Thread Srikar Dronamraju
* Ananth N Mavinakayanahalli [2012-07-26 10:50:29]: > From: Ananth N Mavinakayanahalli > > 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 0xb4860) > > You can now

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

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

[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 --- block/genhd.c | 2 ++ drivers/scsi/sr.c | 7 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/block/genhd.c

[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 --- drivers/scsi/scsi_pm.c | 15 ++- 1 file changed, 10

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

2012-07-27 Thread Aaron Lu
Signed-off-by: Aaron Lu --- 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 5fc97d2..abfefab

[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 --- block/genhd.c | 23 +-- drivers/scsi/sr.c | 1 +

[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 --- 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 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 wondering if > that changed

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, wrote: > > On Thu, July 26, 2012 8:28 am, S, Venkatraman wrote: >> On Tue, Jul 24, 2012 at 2:14 PM, wrote: >>> On Mon, July 23, 2012 5:22 am, S, Venkatraman wrote: On Mon, Jul 23, 2012 at 5:13 PM, wrote: > On Wed, July 18, 2012 12:26 am, Chris Ball

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

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

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

2012-07-27 Thread Dirk Gouders
Cong Wang writes: > On Fri, Jul 27, 2012 at 2:35 PM, Dirk Gouders > 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: [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

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. > >

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

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 > --- > 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_ARM"arm-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

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

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 > >>> 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

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

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

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu 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 add_memory() But these

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 wrote: > On Fri, 2012-07-27 at 08:34 +0100, Jan Beulich wrote: >> >>> On 26.07.12 at 22:47, Konrad Rzeszutek Wilk >> >>> wrote: >> > 2). Allocate a new array, copy the existing P2M into it, >> > revector the P2M tree to use that, and return the old >>

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

2012-07-27 Thread Sha Zhengju
From: Sha Zhengju 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 cleanup and reworked vfs

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

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu 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 userspace that the memory block's

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 wrote: > > On Fri, 2012-07-27 at 08:34 +0100, Jan Beulich wrote: > >> >>> On 26.07.12 at 22:47, Konrad Rzeszutek Wilk > >> >>> wrote: > >> > 2). Allocate a new array, copy the existing P2M into it, >

[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 CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Christoph Lameter Cc: Minchan Kim CC: Andrew Morton

[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 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 be called. In the 2nd case,

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 > > wrote: > > > > > > The new PWM subsystem aims at collecting all implementations of the > > > legacy PWM API and to

[PATCH V2 1/6] memcg: remove MEMCG_NR_FILE_MAPPED

2012-07-27 Thread Sha Zhengju
From: Sha Zhengju 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 Acked-by: KAMEZAWA Hiroyuki

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

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu 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 CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Christoph

[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 CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras

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?

[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 CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Christoph Lameter Cc: Minchan Kim CC: Andrew Morton CC: KOSAKI

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

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu 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 firmware_map_entry since there is no way to

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 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 in order to avoid

[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 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 CRS are written in the

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

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

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

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu 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() caluculates zone in each section. When

[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 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 Acked-by: Sage Weil --- fs/buffer.c |3 ++- fs/ceph/addr.c

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

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu 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 CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul

[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 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 89c06bd5(memcg: use new logic

[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 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 CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Christoph Lameter

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

2012-07-27 Thread Sha Zhengju
From: Sha Zhengju 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() There're two writeback

[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 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 get_page_bootmem(). CC: David Rientjes CC:

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

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu 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 freed or not? 1. When removing

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

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu 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 CC: Jiang Liu CC: Len Brown CC:

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

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

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

2012-07-27 Thread Wen Congyang
From: Yasuaki Ishimatsu The patch adds node_set_offline() and unregister_one_node() to remove_memory() for removing sysfs file of node. CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Christoph Lameter Cc: Minchan Kim CC: Andrew Morton

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

2012-07-27 Thread Sha Zhengju
From: Sha Zhengju Signed-off-by: Sha Zhengju Acked-by: KAMEZAWA Hiroyuki Ackedy-by: Michal Hocko Acked-by: Fengguang Wu --- Documentation/cgroups/memory.txt |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Documentation/cgroups/memory.txt

Re: [RFC PATCH 08/13] driver core: firmware loader: fix device lifetime

2012-07-27 Thread Borislav Petkov
On Fri, Jul 27, 2012 at 09:30:57AM +0800, Ming Lei wrote: > No, the comment above is misleading and not useless, and I think the below > is good: > > * Asynchronous variant of request_firmware() for user contexts where > * it is not possible to sleep for long time or can't sleep at

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

2012-07-27 Thread Alexandre Pereira da Silva
On Fri, Jul 27, 2012 at 2:10 AM, 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 >> wrote: >> > >> > The new PWM subsystem aims at collecting all implementations of the >> > legacy PWM API and to

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:21, Ian Campbell wrote: > I was actually think of the issue with 32 bit PV guests accessing MFN > space > 160G, even if they are themselves small, which is a separate > concern. That can be made work if really needed, but not via the mechanism we're talking about here. The

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

2012-07-27 Thread Sam Ravnborg
Hi Andrew. A few things noted in the following.. > > diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig > index 2661f6e..fe38c7a 100644 > --- a/drivers/misc/Kconfig > +++ b/drivers/misc/Kconfig > @@ -517,4 +517,5 @@ source "drivers/misc/lis3lv02d/Kconfig" > source

Re: [RFC PATCH 12/13] driver core: firmware loader: use small timeout for cache device firmware

2012-07-27 Thread Borislav Petkov
On Fri, Jul 27, 2012 at 09:54:25AM +0800, Ming Lei wrote: > On Fri, Jul 27, 2012 at 1:54 AM, Borislav Petkov wrote: > > >> No, it is not what I was saying. > > I just mean the point is not mentioned in my commit log, but I admit it should > be a appropriate cause. > > > > > Ok, maybe I'm not

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

2012-07-27 Thread Larry Woodman
On 07/27/2012 06:23 AM, Mel Gorman wrote: 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

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

2012-07-27 Thread Yasuaki Ishimatsu
Hi Wen, 2012/07/27 19:20, Wen Congyang wrote: 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] -

Re: [PATCH 3/4] xen/mmu: The xen_setup_kernel_pagetable doesn't need to return anything.

2012-07-27 Thread Stefano Stabellini
On Thu, 26 Jul 2012, Konrad Rzeszutek Wilk wrote: > We don't need to return the new PGD - as we do not use it. > > Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Stefano Stabellini > arch/x86/xen/enlighten.c |5 + > arch/x86/xen/mmu.c | 10 ++ >

Re: bluetooth not working since kernel 3.4.4

2012-07-27 Thread Jiri Slaby
FWD to upstream. For him, bluetooth in 3.5 vanilla does not work: On 07/27/2012 12:02 AM, Alin M Elena wrote: > since updating to kernel 3.4.4 my bluetooth stopped working... > kde claims there is no adapter available and the same gnome... > > > the device is > Bus 004 Device 004: ID 0a5c:4500

Re: [PATCH v2] Input: synaptics - use firmware data for Cr-48

2012-07-27 Thread Daniel Kurtz
On Sat, Jul 21, 2012 at 2:31 AM, Chase Douglas wrote: > > On 07/20/2012 02:03 AM, Daniel Kurtz wrote: >> >> * Leave the device as SEMI_MT, but provide the real locations, and >> allow userspace to determine the device vendor/model/etc. If >> userspace knows that a specific device

Re: [PATCH] efi: Build EFI stub with EFI-appropriate options

2012-07-27 Thread Matt Fleming
On Thu, 2012-07-26 at 18:00 -0400, Matthew Garrett wrote: > We can't assume the presence of the red zone while we're still in a boot > services environment, so we should build with -fno-red-zone to avoid > problems. Change the size of wchar at the same time to make string handling > simpler. > >

Re: [PATCH] X86: Improve GOP detection in the EFI boot stub

2012-07-27 Thread Matt Fleming
On Thu, 2012-07-26 at 18:00 -0400, Matthew Garrett wrote: > We currently use the PCI IO protocol as a proxy for a functional GOP. This > is less than ideal, since some platforms will put the GOP on output devices > rather than the GPU itself. Move to using the conout protocol. This is not >

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

2012-07-27 Thread Yasuaki Ishimatsu
Hi Wen, 2012/07/27 19:36, Wen Congyang wrote: From: Yasuaki Ishimatsu The patch adds node_set_offline() and unregister_one_node() to remove_memory() for removing sysfs file of node. CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC:

[PATCH 0/2] Close race leading to pagetable corruption using hugetlbfs

2012-07-27 Thread Mel Gorman
This is a two-patch series to fix a bug where messages like this appear in the kernel log [ ..] Lots of bad pmd messages followed by this [ 127.164256] mm/memory.c:391: bad pmd 880412e04fe8(8003de4000e7). [ 127.164257] mm/memory.c:391: bad pmd

[PATCH 1/2] Revert "hugetlb: avoid taking i_mmap_mutex in unmap_single_vma() for hugetlb"

2012-07-27 Thread Mel Gorman
This reverts the patch "hugetlb: avoid taking i_mmap_mutex in unmap_single_vma() for hugetlb" from mmotm. This patch is possibly a mistake and blocks the merging of a hugetlb fix where page tables can get corrupted (https://lkml.org/lkml/2012/7/24/93). The motivation of the patch appears to be

[PATCH 2/2] mm: hugetlbfs: Close race during teardown of hugetlbfs shared page tables

2012-07-27 Thread Mel Gorman
If a process creates a large hugetlbfs mapping that is eligible for page table sharing and forks heavily with children some of whom fault and others which destroy the mapping then it is possible for page tables to get corrupted. Some teardowns of the mapping encounter a "bad pmd" and output a

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

2012-07-27 Thread Arnd Bergmann
On Friday 27 July 2012, 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 > > wrote: > > > > > > The new PWM subsystem aims at collecting all implementations of the > > > legacy PWM API and to eventually

Re: [PATCH] [media] davinci: vpfe: Add documentation

2012-07-27 Thread Laurent Pinchart
Hi Manjunath, On Friday 27 July 2012 05:49:24 Hadli, Manjunath wrote: > On Thu, Jul 26, 2012 at 05:55:31, Laurent Pinchart wrote: > > On Tuesday 17 July 2012 10:43:54 Hadli, Manjunath wrote: > > > On Sun, Jul 15, 2012 at 18:16:25, Laurent Pinchart wrote: > > > > On Wednesday 11 July 2012 21:09:26

Re: [PATCH 2/4] xen/x86: Use memblock_reserve for sensitive areas.

2012-07-27 Thread Stefano Stabellini
On Thu, 26 Jul 2012, Konrad Rzeszutek Wilk wrote: > instead of a big memblock_reserve. This way we can be more > selective in freeing regions (and it also makes it easier > to understand where is what). > > [v1: Move the auto_translate_physmap to proper line] > Signed-off-by: Konrad Rzeszutek

Re: How to use the generic thermal sysfs.

2012-07-27 Thread Wei Ni
On Fri, 2012-07-27 at 15:39 +0800, Zhang Rui wrote: > 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

Re: [PATCH v4 00/17] vfs: add the ability to retry on ESTALE to several syscalls

2012-07-27 Thread Jeff Layton
On Fri, 27 Jul 2012 11:15:23 +0900 Namjae Jeon wrote: > Hi Jeff. > > Which testcase(or test method) do I use to know improved point from > ESTALE error ? > I want to know before & after using testcase with this patch-set. > It's a bit labor intensive, I'm afraid... Attached is a cleaned-up

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