Re: [PATCH] lockd: fix races in per-net NSM client handling

2012-10-31 Thread Paweł Sikora
On Wednesday 31 of October 2012 11:22:06 Greg KH wrote: > On Wed, Oct 31, 2012 at 11:05:51AM -0700, Jonathan Nieder wrote: > > Hi, > > > > Greg KH wrote: > > > On Wed, Oct 31, 2012 at 06:27:36PM +0100, Paweł Sikora wrote: > > > > >> the patch metioned in https://lkml.org/lkml/2012/10/24/175 seems

regulator: tps51632: Seems current code doesn't properly support dvfs_step_20mV case

2012-10-31 Thread Axel Lin
Hi Laxman, While reading the tps51632 driver, I found there is a dvfs_step_20mV setting in platform data. But seems current code doesn't properly handle the case when dvfs_step_20mV is true. I guess if pdata->dvfs_step_20mV is true, we need: tps->desc.uV_step = TPS51632_VOLATGE_STEP_20mV; Fix TP

[Suggestion] net-ipv6: format %8s change to %16s in rt6_info_route function of route.c

2012-10-31 Thread Chen Gang
Hello: 1) For Public Kernel: A) in rt6_info_route function of net/ipv6/route.c B) the length of rt->rt6i_dev->name is 16 (IFNAMSIZ) C) using %16s is better than %8s (it will be more "beautiful") (also suggest to delete RT6_INFO_LEN, it is useless for ever) 2) For Red Hat RHEL5

RE: [PATCH 2/2] Revert pad config check in xen_check_mwait

2012-10-31 Thread Liu, Jinsong
Updated, adding version check at mwait routine. Thanks, Jinsong >From 27e28963d4d25e4c998b5b5ea3828a02e6de9470 Mon Sep 17 00:00:00 2001 From: Liu, Jinsong Date: Thu, 1 Nov 2012 21:18:43 +0800 Subject: [PATCH 2/2] Revert pad config check in xen_check_mwait With Xen acpi pad logic ad

Problem with DISCARD and RAID5

2012-10-31 Thread NeilBrown
Hi Shaohua, I've been doing some testing and discovered a problem with your discard support for RAID5. The code in blkdev_issue_discard assumes that the 'granularity' is a power of 2, and for example subtracts 1 to get a mask. However RAID5 sets the granularity to be the stripe size which o

RE: [Xen-devel] [PATCH 1/2] Xen acpi pad implement

2012-10-31 Thread Liu, Jinsong
Thanks! updated as attached. Jinsong = >From f514b97628945cfac00efb0d456f133d44754c9d Mon Sep 17 00:00:00 2001 From: Liu, Jinsong Date: Thu, 1 Nov 2012 21:02:36 +0800 Subject: [PATCH 1/2] Xen acpi pad implement PAD is acpi Processor Aggregator Device which provides a control

Re: [PATCH 5/5] ACPI: Add support for platform bus type

2012-10-31 Thread Yinghai Lu
On Wed, Oct 31, 2012 at 2:36 AM, Rafael J. Wysocki wrote: > From: Mika Westerberg > > With ACPI 5 it is now possible to enumerate traditional SoC > peripherals, like serial bus controllers and slave devices behind > them. These devices are typically based on IP-blocks used in many > existing SoC

[PATCH] mtd: cmdlinepart: fix the overflow of big mtd partitions

2012-10-31 Thread Huang Shijie
When the kernel parses the following cmdline #mtdparts=gpmi-nand:16m(boot),16m(kernel),1g(home),4g(test),-(usr) for a big nand chip Micron MT29F64G08AFAAAWP(8GB), we got the following wrong result: . "mtd: partition size

[patch v2 2/2] regulator: support for DA9053-BC

2012-10-31 Thread Ashish Jangam
>From 7b2e8c26c995d775f17491fcce7258e662009d0d Mon Sep 17 00:00:00 2001 From: Ashish Jangam Date: Thu, 1 Nov 2012 11:06:17 +0530 Subject: [PATCH 2/2] [patch v 2/1] regulator: support for DA9053-BC This patch adds DA9053-BC PMIC support to the existing DA9052/53 regulator driver Signed-off-by: Da

[patch v1 1/2] mfd: i2c issue fix for DA9052/53 and support for DA9053-BC

2012-10-31 Thread Ashish Jangam
There is an issue where the DA9052/53-AA/BA/BB PMIC either locks up or fails to respond following a system Reset. This could result in a second write in which the bus writes the current content of the write buffer to address of the last I2C access. The failure case is where this unwanted write tra

Re: [PATCH v3 1/3] Use acpi_os_hotplug_execute() instead of alloc_acpi_hp_work().

2012-10-31 Thread Tang Chen
On 11/01/2012 11:52 AM, Yinghai Lu wrote: On Wed, Oct 31, 2012 at 12:27 AM, Tang Chen wrote: Please check if you can just fold acpi_hp_cb_execute callers, and use acpi_os_hotplug_execute directly. and have two local conext struct too. I think this could bring some duplicated work. We need

Re: [PART3 Patch 00/14] introduce N_MEMORY

2012-10-31 Thread Wen Congyang
At 11/01/2012 02:16 AM, David Rientjes Wrote: > On Wed, 31 Oct 2012, Wen Congyang wrote: > >> From: Lai Jiangshan >> >> This patch is part3 of the following patchset: >> https://lkml.org/lkml/2012/10/29/319 >> >> Part1 is here: >> https://lkml.org/lkml/2012/10/31/30 >> >> Part2 is here: >

[PATCH] regulator: Fix trivial typo for TPS51632 Kconfig help text

2012-10-31 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 7b920c7..cbc685d 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -341,7 +341,7 @@ conf

Re: [PATCH v3 2/2] KVM: make crash_clear_loaded_vmcss valid when loading kvm_intel module

2012-10-31 Thread zhangyanfei
于 2012年10月31日 17:01, Hatayama, Daisuke 写道: > > >> -Original Message- >> From: kexec-boun...@lists.infradead.org >> [mailto:kexec-boun...@lists.infradead.org] On Behalf Of zhangyanfei >> Sent: Wednesday, October 31, 2012 12:34 PM >> To: x...@kernel.org; ke...@lists.infradead.org; Avi Kivit

[net-next v5 7/7] tuntap: choose the txq based on rxq

2012-10-31 Thread Jason Wang
This patch implements a simple multiqueue flow steering policy - tx follows rx for tun/tap. The idea is simple, it just choose the txq based on which rxq it comes. The flow were identified through the rxhash of a skb, and the hash to queue mapping were recorded in a hlist with an ageing timer to re

[net-next v5 6/7] tuntap: add ioctl to attach or detach a file form tuntap device

2012-10-31 Thread Jason Wang
Sometimes usespace may need to active/deactive a queue, this could be done by detaching and attaching a file from tuntap device. This patch introduces a new ioctls - TUNSETQUEUE which could be used to do this. Flag IFF_ATTACH_QUEUE were introduced to do attaching while IFF_DETACH_QUEUE were introd

[net-next v5 5/7] tuntap: multiqueue support

2012-10-31 Thread Jason Wang
This patch converts tun/tap to a multiqueue devices and expose the multiqueue queues as multiple file descriptors to userspace. Internally, each tun_file were abstracted as a queue, and an array of pointers to tun_file structurs were stored in tun_structure device, so multiple tun_files were allowe

[net-next v5 4/7] tuntap: introduce multiqueue flags

2012-10-31 Thread Jason Wang
Add flags to be used by creating multiqueue tuntap device. Signed-off-by: Jason Wang --- include/uapi/linux/if_tun.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/uapi/linux/if_tun.h b/include/uapi/linux/if_tun.h index 25a585c..8ef3a87 100644 --- a/include/uap

[net-next v5 3/7] tuntap: RCUify dereferencing between tun_struct and tun_file

2012-10-31 Thread Jason Wang
RCU were introduced in this patch to synchronize the dereferences between tun_struct and tun_file. All tun_{get|put} were replaced with RCU, the dereference from one to other must be done under rtnl lock or rcu read critical region. This is needed for the following patches since the one of the goa

[net-next v5 2/7] tuntap: move socket to tun_file

2012-10-31 Thread Jason Wang
Current tuntap makes use of the socket receive queue as its tx queue. To implement multiple tx queues for tuntap and enable the ability of adding and removing queues during workload, the first step is to move the socket related structures to tun_file. Then we could let multiple fds/sockets to be at

[net-next v5 1/7] tuntap: log the unsigned informaiton with %u

2012-10-31 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/net/tun.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 3157519..f830b1b 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -1419,7 +1419,7 @@ static long __tun_chr_ioctl(struc

[net-next v5 0/7] Multiqueue support in tuntap

2012-10-31 Thread Jason Wang
Hello All: This is an update of multiqueue support in tuntap from V3. Please consider to merge. The main idea for this series is to let tun/tap device to be benefited from multiqueue network cards and multi-core host. We used to have a single queue for tuntap which could be a bottleneck in a mult

[PATCH -next] Staging: silicom: remove unused including

2012-10-31 Thread Wei Yongjun
From: Wei Yongjun Remove including that don't need it. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun --- drivers/staging/silicom/bp_mod.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/silicom/bp_mod.c b/dr

[PATCH -next] Staging: silicom: bypasslib: remove unused including

2012-10-31 Thread Wei Yongjun
From: Wei Yongjun Remove including that don't need it. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun --- drivers/staging/silicom/bypasslib/bplibk.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/silicom/byp

Re: [PART2 Patch] node: cleanup node_state_attr

2012-10-31 Thread Wen Congyang
At 11/01/2012 02:29 AM, David Rientjes Wrote: > On Wed, 31 Oct 2012, Wen Congyang wrote: > >> diff --git a/drivers/base/node.c b/drivers/base/node.c >> index af1a177..5d7731e 100644 >> --- a/drivers/base/node.c >> +++ b/drivers/base/node.c >> @@ -614,23 +614,23 @@ static ssize_t show_node_state(st

[patch] x86, xen: fix build dependency when USB_SUPPORT is not enabled

2012-10-31 Thread David Rientjes
CONFIG_XEN_DOM0 must depend on CONFIG_USB_SUPPORT, otherwise there is no definition of xen_dbgp_reset_prep() and xen_dbgp_external_startup() resulting in the following link error: drivers/built-in.o: In function `dbgp_reset_prep': (.text+0x1e03c5): undefined reference to `xen_dbgp_reset_prep' dr

[patch] mm: fix build warning for uninitialized value

2012-10-31 Thread David Rientjes
do_wp_page() sets mmun_called if mmun_start and mmun_end were initialized and, if so, may call mmu_notifier_invalidate_range_end() with these values. This doesn't prevent gcc from emitting a build warning though: mm/memory.c: In function ‘do_wp_page’: mm/memory.c:2530: warning: ‘mmun_start’ may

linux-next: Tree for Nov 1

2012-10-31 Thread Stephen Rothwell
Hi all, New trees: rr-fixes and swiotlb Changes since 20121031: The v4l-dvb tree still had its build failure so I used the version from next-20121026. The tmem tree gained conflicts against the xen-two tree. The akpm tree lost a patch that turned up elsewhere

[PATCH -next] CLK: clk-twl6040: fix return value check in twl6040_clk_probe()

2012-10-31 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function clk_register() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun --

RE: [PATCH] mtip32xx: remove unused variables from mtip32xx.c

2012-10-31 Thread yongjun_...@trendmicro.com.cn
Hi all Sorry, please ignore this mail, this mail just be resend by my mistake. Regards, Yongjun Wei -Original Message- From: Wei Yongjun [mailto:weiyj...@gmail.com] Sent: 2012年11月1日 13:09 To: ax...@kernel.dk Cc: Yongjun Wei (RD-CN); linux-kernel@vger.kernel.org Subject: [PATCH] mtip32xx

Re: [net-next v4 0/7] Multiqueue support in tuntap

2012-10-31 Thread Jason Wang
On 10/31/2012 07:52 AM, Stephen Hemminger wrote: I am testing BQL for tuntap. It wouldn't be hard to do BQL in the multi-queue version. Yes, if BQL for tuntap is in first, I will rebase and convert it to multiqueue version. Thanks -- To unsubscribe from this list: send the line "unsubscribe

Re: [net-next resend v4 5/7] tuntap: multiqueue support

2012-10-31 Thread Jason Wang
On 11/01/2012 02:16 AM, David Miller wrote: From: Jason Wang Date: Mon, 29 Oct 2012 14:15:49 +0800 @@ -110,6 +110,11 @@ struct tap_filter { unsigned char addr[FLT_EXACT_COUNT][ETH_ALEN]; }; +/* 1024 is probably a high enough limit: modern hypervisors seem to support on + * the

Re: [PATCH v2 4/5] mm, highmem: makes flush_all_zero_pkmaps() return index of first flushed entry

2012-10-31 Thread Minchan Kim
On Thu, Nov 01, 2012 at 01:56:36AM +0900, Joonsoo Kim wrote: > In current code, after flush_all_zero_pkmaps() is invoked, > then re-iterate all pkmaps. It can be optimized if flush_all_zero_pkmaps() > return index of first flushed entry. With this index, > we can immediately map highmem page to vir

Re: [RFC] Second attempt at kernel secure boot support

2012-10-31 Thread joeyli
於 三,2012-10-31 於 19:53 +0100,Takashi Iwai 提到: > At Wed, 31 Oct 2012 17:37:28 +, > Matthew Garrett wrote: > > > > On Wed, Oct 31, 2012 at 06:28:16PM +0100, Takashi Iwai wrote: > > > > > request_firmware() is used for microcode loading, too, so it's fairly > > > a core part to cover, I'm afraid

RE: [PATCH] To crash dump, we need keep other memory type except E820_RAM, because other type come from BIOS or firmware is used by other code(for example: PCI_MMCONFIG).

2012-10-31 Thread H. Peter Anvin
2) would make most sense to me, but I'd be okay with 3) as well. "Zhang, Jun" wrote: >Hello, Anvin > >I want to explain why I modify in this place. In kexec, it pass three >parameters, memmap=exactmap memmap=544K@64K memmap=64964K@32768K >I think my patch modify the least code. >Actually, there

Re: [PATCH v3 1/3] Use acpi_os_hotplug_execute() instead of alloc_acpi_hp_work().

2012-10-31 Thread Yinghai Lu
On Wed, Oct 31, 2012 at 12:27 AM, Tang Chen wrote: > Hi Yinghai, > > alloc_acpi_hp_work() just puts the hutplug work onto kacpi_hotplug_wq. > As mentioned by Toshi Kani, this job has been done in > acpi_os_hotplug_execute(). > So we should use it instead of alloc_acpi_hp_work(). > > This patch ad

Re: [PATCH V4 0/4] ARM: tegra: Enable SLINK controller driver

2012-10-31 Thread Laxman Dewangan
On Thursday 01 November 2012 12:46 AM, Stephen Warren wrote: On 10/31/2012 11:31 AM, Laxman Dewangan wrote: On Wednesday 31 October 2012 09:59 PM, Stephen Warren wrote: On 10/31/2012 03:02 AM, Laxman Dewangan wrote: This series modify the dts file to add the slink addresses, make AUXDATA in bo

linux-next: build warning after merge of the tmem tree

2012-10-31 Thread Stephen Rothwell
Hi Konrad, After merging the tmem tree, today's linux-next build (x86_64 allmodconfig) produced this warning: arch/x86/xen/enlighten.c:109:0: warning: "xen_pvh_domain" redefined [enabled by default] include/xen/xen.h:23:0: note: this is the location of the previous definition Probably caused by

Re: [PATCH 3/9] net: xfrm: use this_cpu_ptr per-cpu helper

2012-10-31 Thread Herbert Xu
On Wed, Oct 31, 2012 at 05:35:46PM +, Christoph Lameter wrote: > On Wed, 31 Oct 2012, Shan Wei wrote: > > > - > > list_for_each_entry(pos, &ipcomp_tfms_list, list) { > > struct crypto_comp *tfm; > > > > tfms = pos->tfms; > > - tfm = *per_cpu_ptr(tfms, cpu)

linux-next: manual merge of the tmem tree with the xen-two tree

2012-10-31 Thread Stephen Rothwell
Hi Konrad, Today's linux-next merge of the tmem tree got a conflict in arch/x86/xen/smp.c between commits 1ba23a0f2605 ("xen/smp: Move the common CPU init code a bit to prep for PVH patch") and 6c6067f26388 ("xen/pvh: Extend vcpu_guest_context, p2m, event, and XenBus") from the xen-two tree and co

linux-next: manual merge of the tmem tree with the xen-two tree

2012-10-31 Thread Stephen Rothwell
Hi Konrad, Today's linux-next merge of the tmem tree got a conflict in arch/x86/xen/setup.c between commit 6056726e851a ("xen/pvh: bootup and setup (E820) related changes") from the xen-two tree and commit 7282a68f5aea ("PVH: Basic and preparatory changes") from the tmem tree. I fixed it up (by u

linux-next: manual merge of the tmem tree with the xen-two tree

2012-10-31 Thread Stephen Rothwell
Hi Konrad, Today's linux-next merge of the tmem tree got conflicts in arch/x86/include/asm/xen/interface.h and drivers/xen/cpu_hotplug.c between commit 6c6067f26388 ("xen/pvh: Extend vcpu_guest_context, p2m, event, and XenBus") from the xen-two tree and commit 7282a68f5aea ("PVH: Basic and prepara

RE: [PATCH] staging: ste_rmi4: Convert to Type-B support

2012-10-31 Thread Alexandra Chin
Hi Henrik, I see what you mean. Input subsystem handles multi-touch tracking for input driver. I will update reporting process, and resubmit a patch against 3.7-rcX. Greatly appreciate your comments. Alexandra Chin

[Consult] "gifts" to Red Hat.

2012-10-31 Thread Chen Gang
Hello linux-kernel@vger.kernel.org: 1) Sorry for bothering you, firstly. A) Asianux have found, analysed, and also provided the solving ways to the issues which only relative with Red Hat (public kernel not have), we can call them in short words "gifts". B) The relative members of Red Hat

Re: [Patch v4 3/8] memory-hotplug: fix NR_FREE_PAGES mismatch

2012-10-31 Thread Wen Congyang
At 10/31/2012 09:41 PM, Jianguo Wu Wrote: > On 2012/10/31 19:23, Wen Congyang wrote: >> NR_FREE_PAGES will be wrong after offlining pages. We add/dec >> NR_FREE_PAGES like this now: >> >> 1. move all pages in buddy system to MIGRATE_ISOLATE, and dec NR_FREE_PAGES >> >> 2. don't add NR_FREE_PAGES w

[PATCH] memory-hotplug: fix NR_FREE_PAGES mismatch's fix

2012-10-31 Thread Wen Congyang
When a page is freed and put into pcp list, get_freepage_migratetype() doesn't return MIGRATE_ISOLATE even if this pageblock is isolated. So we should use get_pageblock_migratetype() instead of mt to check whether it is isolated. Cc: David Rientjes Cc: Jiang Liu Cc: Len Brown Cc: Benjamin Herre

Re: How about a gpio_get(device *, char *) function?

2012-10-31 Thread Alex Courbot
On Wednesday 31 October 2012 23:25:41 Stephen Warren wrote: > On 10/31/2012 03:04 AM, Alex Courbot wrote: > > Hi, > > > > Would anyone be opposed to having a gpio_get() function that works > > similarly to e.g. regulator_get() and clk_get()? > > One major stumbling block is that with device tree,

Re: [PATCH v3 0/3] zram/zsmalloc promotion

2012-10-31 Thread Minchan Kim
On Wed, Oct 31, 2012 at 09:19:00AM -0700, Greg Kroah-Hartman wrote: > On Wed, Oct 31, 2012 at 04:02:02PM +0900, Minchan Kim wrote: > > On Tue, Oct 30, 2012 at 07:43:07PM -0700, Greg Kroah-Hartman wrote: > > > On Wed, Oct 31, 2012 at 11:39:48AM +0900, Minchan Kim wrote: > > > > Greg, what do you thi

[PATCH 3/3] staging/comedi: Use dev_ printks in drivers/ni_mio_cs.c

2012-10-31 Thread YAMANE Toshiaki
fixed below checkpatch warnings. - WARNING: printk() should include KERN_ facility level Signed-off-by: YAMANE Toshiaki --- drivers/staging/comedi/drivers/ni_mio_cs.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_mio_cs.c

[PATCH 2/3] staging/comedi: fix the initialize statics issue in drivers/ni_mio_cs.c

2012-10-31 Thread YAMANE Toshiaki
fixed below checkpatch error. - ERROR: do not initialise statics to 0 or NULL Signed-off-by: YAMANE Toshiaki --- drivers/staging/comedi/drivers/ni_mio_cs.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_mio_cs.c b/drivers/staging/comedi/

[PATCH 1/3] staging/comedi: fix the spaces issue at the start of line in drivers/ni_mio_cs.c

2012-10-31 Thread YAMANE Toshiaki
fixed below checkpatch warnings. - WARNING: please, no spaces at the start of a line Signed-off-by: YAMANE Toshiaki --- drivers/staging/comedi/drivers/ni_mio_cs.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_mio_cs.c b/drivers/staging/

Re: [PATCH] thermal: solve compilation errors in rcar_thermal

2012-10-31 Thread Fengguang Wu
On Tue, Oct 30, 2012 at 08:21:09PM -0700, Kuninori Morimoto wrote: > > Hi Zhang, Andrew > > This patch is needed on latest linus/master branch. > Please re-check this patch. Rui, it'd be better to send Andrew a finalized patch with your Acked-by or Signed-off-by (because you passed it on), after

RE: [PATCH] thermal: solve compilation errors in rcar_thermal

2012-10-31 Thread Zhang, Rui
Hi, Andrew, Can you take this patch? It fixes a real build error, and IMO, we should merge it ASAP. Thanks. > -Original Message- > From: kuninori morimoto [mailto:kuninori.morimoto...@gmail.com] On > Behalf Of Kuninori Morimoto > Sent: Wednesday, October 31, 2012 4:46 PM > To: Zhang, Rui

RE: [PATCH] To crash dump, we need keep other memory type except E820_RAM, because other type come from BIOS or firmware is used by other code(for example: PCI_MMCONFIG).

2012-10-31 Thread Zhang, Jun
Hello, Anvin I want to explain why I modify in this place. In kexec, it pass three parameters, memmap=exactmap memmap=544K@64K memmap=64964K@32768K I think my patch modify the least code. Actually, there are some choise to fix it. 1) my patch. 2) modify kexec, only pass two parameters -- memm

Re: [PATCH] arm-dt: Enable DT proc updates.

2012-10-31 Thread Rob Herring
On 10/31/2012 10:57 AM, Pantelis Antoniou wrote: > This simple patch enables dynamic changes of the DT tree on runtime > to be visible to the device-tree proc interface. > > Signed-off-by: Pantelis Antoniou Acked-by: Rob Herring > --- > arch/arm/include/asm/prom.h | 2 ++ > 1 file changed, 2

Re: [RFC v2] Support volatile range for anon vma

2012-10-31 Thread KOSAKI Motohiro
>> - making zero page daemon and avoid pagesize zero fill at page fault >> - making new vma or page flags and mark as discardable w/o swap and >> vmscan treat it. (like this and/or MADV_FREE) > > Thanks for the information. > I realized by you I'm not first people to think of this idea. > Rik alr

Re: [PATCH v3 0/3] ACPI: container hot remove support.

2012-10-31 Thread Tang Chen
Hi Yinghai, How do you think the 1st patch ? Is the idea OK with you ? And about the memory hotplug thing, so far as I know, we are trying to limit kernel memory in some nodes, and only support to hot-remove the nodes with out kernel memory. This functionality is called online_movable. And some

Re: [PATCH 2/2] kvm, svm: Update MAINTAINERS entry

2012-10-31 Thread Marcelo Tosatti
On Mon, Oct 29, 2012 at 07:08:21PM +0100, Joerg Roedel wrote: > I have no access to my AMD email address anymore. Update > entry in MAINTAINERS to the new address. > > Cc: Avi Kivity > Cc: Marcelo Tosatti > Signed-off-by: Joerg Roedel > --- > MAINTAINERS |4 ++-- > 1 file changed, 2 insert

Re: [PATCH v3 0/3] ACPI: container hot remove support.

2012-10-31 Thread Tang Chen
On 10/31/2012 07:09 PM, Yasuaki Ishimatsu wrote: > Hi Tang, > > If container device contains memory device, the function is > very danger. As you know, we are developing a memory hotplug. > If memory has kernel memory, memory hot remove operations fails. > But container_device_remove() cannot real

Re: [RFC v2] Support volatile range for anon vma

2012-10-31 Thread Minchan Kim
On Wed, Oct 31, 2012 at 06:15:33PM -0700, Paul Turner wrote: > On Wed, Oct 31, 2012 at 3:56 PM, KOSAKI Motohiro > wrote: > >>> > Allocator should call madvise(MADV_NOVOLATILE) before reusing for > >>> > allocating that area to user. Otherwise, accessing of volatile range > >>> > will meet SIGBUS e

Re: [PATCH] ARM: Fix the "WFI" instruction opcode definition.

2012-10-31 Thread Rob Herring
On 10/31/2012 08:24 PM, Yangfei (Felix) wrote: > The current "WFI" opcode definiton causes CPU hot-plug feature fails to work > if the kernel is built with CONFIG_THUMB2_KERNEL/CONFIG_CPU_ENDIAN_BE8 being > defined. An invalid instruction exception will be generated. > > Signed-off-by: yangfei.ker

Re: [RFC v2] Support volatile range for anon vma

2012-10-31 Thread Minchan Kim
On Wed, Oct 31, 2012 at 06:22:58PM -0700, Paul Turner wrote: > On Wed, Oct 31, 2012 at 5:50 PM, Minchan Kim wrote: > > Hello, > > > > On Wed, Oct 31, 2012 at 02:59:07PM -0700, Paul Turner wrote: > >> On Wed, Oct 31, 2012 at 2:35 PM, Andrew Morton > >> wrote: > >> > > >> > On Tue, 30 Oct 2012 10:2

[PATCH] ARM: Fix the "WFI" instruction opcode definition.

2012-10-31 Thread Yangfei (Felix)
The current "WFI" opcode definiton causes CPU hot-plug feature fails to work if the kernel is built with CONFIG_THUMB2_KERNEL/CONFIG_CPU_ENDIAN_BE8 being defined. An invalid instruction exception will be generated. Signed-off-by: yangfei.ker...@gmail.com --- arch/arm/mach-exynos/hotplug.c |

Re: [RFC v2] Support volatile range for anon vma

2012-10-31 Thread Paul Turner
On Wed, Oct 31, 2012 at 5:50 PM, Minchan Kim wrote: > Hello, > > On Wed, Oct 31, 2012 at 02:59:07PM -0700, Paul Turner wrote: >> On Wed, Oct 31, 2012 at 2:35 PM, Andrew Morton >> wrote: >> > >> > On Tue, 30 Oct 2012 10:29:54 +0900 >> > Minchan Kim wrote: >> > >> > > This patch introudces new mad

Re: [RFC v2] Support volatile range for anon vma

2012-10-31 Thread Minchan Kim
Hi KOSAKI, On Wed, Oct 31, 2012 at 06:56:05PM -0400, KOSAKI Motohiro wrote: > >> > Allocator should call madvise(MADV_NOVOLATILE) before reusing for > >> > allocating that area to user. Otherwise, accessing of volatile range > >> > will meet SIGBUS error. > >> > >> Well, why? It would be easy eno

Re: [RFC v2] Support volatile range for anon vma

2012-10-31 Thread Paul Turner
On Wed, Oct 31, 2012 at 3:56 PM, KOSAKI Motohiro wrote: >>> > Allocator should call madvise(MADV_NOVOLATILE) before reusing for >>> > allocating that area to user. Otherwise, accessing of volatile range >>> > will meet SIGBUS error. >>> >>> Well, why? It would be easy enough for the fault handler

Re: [PATCH] [PATCH] x86: Don't clobber top of pt_regs in nested NMI

2012-10-31 Thread Steven Rostedt
On Mon, 2012-10-01 at 17:29 -0700, Salman Qazi wrote: > The nested NMI modifies the place (instruction, flags and stack) > that the first NMI will iret to. However, the copy of registers > modified is exactly the one that is the part of pt_regs in > the first NMI. This can change the behaviour of

Re: [PATCH 1/4] module: add syscall to load module from fd

2012-10-31 Thread Rusty Russell
Kees Cook writes: > Rusty, > > I haven't seen this land in your modules-next tree. I just wanted to > make sure it hadn't gotten lost. I'd like to do some kmod tests > against linux-next, but I've been waiting for this to appear. Yes, sorting that out now, they should be in tomorrow's linux-next.

Re: [PATCH] ARM: plat-versatile: move FPGA irq driver to drivers/irqchip

2012-10-31 Thread Rob Herring
On 10/31/2012 04:31 PM, Linus Walleij wrote: > This moves the Versatile FPGA interrupt controller driver, used in > the Integrator/AP, Integrator/CP and some Versatile boards, out > of arch/arm/plat-versatile and down to drivers/irqchip where we > have consensus that such drivers belong. The header

Re: [PATCH 14/16] virtio: Convert dev_printk(KERN_ to dev_(

2012-10-31 Thread Rusty Russell
Joe Perches writes: > dev_ calls take less code than dev_printk(KERN_ > and reducing object size is good. > Convert if (printk_ratelimit()) dev_printk to dev__ratelimited. > > Signed-off-by: Joe Perches Applied. Thanks, Rusty. -- To unsubscribe from this list: send the line "unsubscribe linux-

Re: [RFC 1/7] capebus: Core capebus support

2012-10-31 Thread Russ Dill
On Wed, Oct 31, 2012 at 3:07 PM, Pantelis Antoniou wrote: > > On Oct 31, 2012, at 11:55 PM, Russ Dill wrote: > >> On Wed, Oct 31, 2012 at 9:52 AM, Pantelis Antoniou >> wrote: >>> Introducing capebus; a bus that allows small boards (capes) to connect >>> to a complex SoC using simple expansion con

Re: [RFC v2] Support volatile range for anon vma

2012-10-31 Thread Minchan Kim
Hello, On Wed, Oct 31, 2012 at 02:59:07PM -0700, Paul Turner wrote: > On Wed, Oct 31, 2012 at 2:35 PM, Andrew Morton > wrote: > > > > On Tue, 30 Oct 2012 10:29:54 +0900 > > Minchan Kim wrote: > > > > > This patch introudces new madvise behavior MADV_VOLATILE and > > > MADV_NOVOLATILE for anonymo

Re: [PATCH v3] epoll: Support for disabling items, and a self-test app.

2012-10-31 Thread Michael Wang
On 11/01/2012 02:57 AM, Paton J. Lewis wrote: > On 10/30/12 11:32 PM, Michael Wang wrote: >> On 10/26/2012 08:08 AM, Paton J. Lewis wrote: >>> From: "Paton J. Lewis" >>> >>> It is not currently possible to reliably delete epoll items when >>> using the >>> same epoll set from multiple threads. Aft

Re: [PATCH 0/2] Removing the use of VLAIS from the Linux Kernel

2012-10-31 Thread Herbert Xu
On Wed, Oct 31, 2012 at 12:41:32PM -0400, David Miller wrote: > > I don't think imposing the limitations of a non-gcc compiler > is rasonable. I agree. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe

Re: [RFC v2] Support volatile range for anon vma

2012-10-31 Thread Minchan Kim
Hi Andrew, On Wed, Oct 31, 2012 at 02:35:24PM -0700, Andrew Morton wrote: > On Tue, 30 Oct 2012 10:29:54 +0900 > Minchan Kim wrote: > > > This patch introudces new madvise behavior MADV_VOLATILE and > > MADV_NOVOLATILE for anonymous pages. It's different with > > John Stultz's version which cons

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

2012-10-31 Thread Marcelo Tosatti
On Fri, Oct 19, 2012 at 03:39:08PM +0800, Xiao Guangrong wrote: > 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 cha

Re: [PATCH] proc: add "Seccomp" to status

2012-10-31 Thread Andrew Morton
On Wed, 31 Oct 2012 13:09:27 -0700 Kees Cook wrote: > Adds the seccomp mode to the /proc/$pid/status file so the state of > seccomp can be externally examined. There's no reason here for anyone to apply this patch to anything. Presumably you see some value to our users - please share your thoug

Re: [PATCH v11] kvm: notify host when the guest is panicked

2012-10-31 Thread Marcelo Tosatti
On Tue, Oct 30, 2012 at 10:30:02PM -0400, Sasha Levin wrote: > On Tue, Oct 30, 2012 at 9:48 PM, Wen Congyang wrote: > > At 10/31/2012 09:12 AM, Marcelo Tosatti Wrote: > >> It has been asked earlier why a simple virtio device is not usable > >> for this (with no response IIRC). > > > > 1. We can't

RE: [PATCH 1/3] alarmtimer: Replace the spinlock rtcdev_lock with mutex

2012-10-31 Thread Liu, Chuansheng
> -Original Message- > From: Oliver Neukum [mailto:oneu...@suse.de] > Sent: Wednesday, October 31, 2012 5:03 PM > To: Liu, Chuansheng > Cc: john.stu...@linaro.org; t...@linutronix.de; gre...@linuxfoundation.org; > linux-kernel@vger.kernel.org; Liu, Chuansheng > Subject: Re: [PATCH 1/3] al

[GIT PULL] KVM fixes for 3.7-rc3

2012-10-31 Thread Marcelo Tosatti
Linus, Please pull from git://git.kernel.org/pub/scm/virt/kvm/kvm.git master To receive the following KVM bug fixes Xiao Guangrong (1): KVM: x86: fix vcpu->mmio_fragments overflow arch/x86/kvm/x86.c | 60 ++- include/linux/kvm_host.h

[PATCH v2] r8169: Fix WoL on RTL8168d/8111d.

2012-10-31 Thread Cyril Brulebois
This regression was spotted between Debian squeeze and Debian wheezy kernels (respectively based on 2.6.32 and 3.2). More info about Wake-on-LAN issues with Realtek's 816x chipsets can be found in the following thread: http://marc.info/?t=13207921944 Probable regression from d4ed95d796e5126bba

Re: [PATCH] device_cgroup: fix unchecked cgroup parent usage

2012-10-31 Thread Andrew Morton
On Wed, 31 Oct 2012 12:04:30 -0400 Aristeu Rozanski wrote: > In 4cef7299b4786879a3e113e84084a72b24590c5b the cgroup parent usage is > unchecked. root will not have a parent and trying to use > device.{allow,deny} will cause problems. >From my reading of the code "problems" means "kernel null poi

Re: [PATCH v3 2/6] PM / Runtime: introduce pm_runtime_set[get]_memalloc_noio()

2012-10-31 Thread Ming Lei
On Wed, Oct 31, 2012 at 11:41 PM, Alan Stern wrote: > > Sorry, I misread your message. You are setting the device's flag, not > the thread's flag. Never mind. > > This still doesn't help in this case where CONFIG_PM_RUNTIME is > disabled. I think it will be simpler to set the noio flag during

[PATCH 4/8] ARM: zynq: dts: split up device tree

2012-10-31 Thread Josh Cartwright
The purpose of the created zynq-7000.dtsi file is to describe the hardware common to all Zynq 7000-based boards. Also, get rid of the zynq-ep107 device tree, since it is not hardware anyone can purchase. Add a zc702 dts file based on the zynq-7000.dtsi. Add it to the dts/Makefile so it is built

[PATCH 1/8] ARM: zynq: move arm-specific sys_timer out of ttc

2012-10-31 Thread Josh Cartwright
Move the sys_timer definition out of ttc driver and make it part of the common zynq code. This is preparation for renaming and COMMON_CLK support. Signed-off-by: Josh Cartwright --- arch/arm/mach-zynq/common.c | 13 + arch/arm/mach-zynq/common.h | 4 +--- arch/arm/mach-zynq/timer.c

[PATCH 7/8] serial: xilinx_uartps: get clock rate info from dts

2012-10-31 Thread Josh Cartwright
Add support for specifying clock information for the uart clk via the device tree. This eliminates the need to hardcode rates in the device tree. Signed-off-by: Josh Cartwright --- arch/arm/boot/dts/zynq-7000.dtsi | 4 ++-- drivers/tty/serial/xilinx_uartps.c | 30 +---

[PATCH 5/8] ARM: zynq: add COMMON_CLK support

2012-10-31 Thread Josh Cartwright
Add support for COMMON_CLK, and provide simplified models for the necessary clocks on the zynq-7000. Currently, the PLLs, the CPU clock network, and the basic peripheral clock networks (for SDIO, SMC, SPI, QSPI, UART) are modelled. Signed-off-by: Josh Cartwright --- .../devicetree/bindings/cloc

[PATCH 0/8] zynq COMMON_CLK support

2012-10-31 Thread Josh Cartwright
This patchset implements COMMON_CLK support for the zynq. At this point, only the basic fundamental clocks are modelled, and only passively; for rate calculation. of_clk bindings are implemented to allow specifying clock/peripheral relationships in the device tree. Patch 1 and 2 are a followup t

[PATCH 2/8] ARM: zynq: move ttc timer code to drivers/clocksource

2012-10-31 Thread Josh Cartwright
Suggested cleanup by Arnd Bergmann. Move the ttc timer.c code to drivers/clocksource, and out of the mach-zynq directory. The common.h (which only held the timer declaration) was renamed to xilinx_ttc.h and moved into include/linux. Signed-off-by: Josh Cartwright Cc: Arnd Bergmann --- arch/ar

[PATCH 6/8] serial: xilinx_uartps: kill CONFIG_OF conditional

2012-10-31 Thread Josh Cartwright
The Zynq platform requires the use of CONFIG_OF. Remove the #ifdef conditionals in the uartps driver. Signed-off-by: Josh Cartwright --- drivers/tty/serial/xilinx_uartps.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx

[PATCH 8/8] clocksource: xilinx_ttc: add OF_CLK support

2012-10-31 Thread Josh Cartwright
Add support for retrieving TTC configuration from device tree. This includes the ability to pull information about the driving clocks from the of_clk bindings. Signed-off-by: Josh Cartwright --- arch/arm/boot/dts/zynq-7000.dtsi | 53 arch/arm/boot/dts/zynq-zc702.dts | 10 ++ drivers/

[PATCH 3/8] ARM: zynq: dts: add description of the second uart

2012-10-31 Thread Josh Cartwright
The zynq-7000 has an additional UART at 0xE0001000. Describe it in the device tree. Signed-off-by: Josh Cartwright --- arch/arm/boot/dts/zynq-ep107.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/zynq-ep107.dts b/arch/arm/boot/dts/zynq-ep107.dts index 574bc04..5

Re: [RFC v2] Support volatile range for anon vma

2012-10-31 Thread KOSAKI Motohiro
>> > Allocator should call madvise(MADV_NOVOLATILE) before reusing for >> > allocating that area to user. Otherwise, accessing of volatile range >> > will meet SIGBUS error. >> >> Well, why? It would be easy enough for the fault handler to give >> userspace a new, zeroed page at that address. > >

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

2012-10-31 Thread David Howells
Ingo Molnar wrote: > Just wanted to inquire about the current status of it, as I'd > rather not pull anything that introduces breakages and is still > work in progress. Once it's all sorted out I'll have a look. Should I pull the x86 disintegration and perf fixes onto a tree derived from tipbo

Re: [PATCH 16/17 v2] f2fs: move proc files to debugfs

2012-10-31 Thread 'Greg KH'
On Thu, Nov 01, 2012 at 07:38:12AM +0900, Jaegeuk Kim wrote: > From: Greg Kroah-Hartman > > This moves all of the f2fs debugging files into debugfs. The files are > located in /sys/kernel/debug/f2fs/ > > Note, I think we are generating all of the same information in each of > the files for every

Re: [PATCH 3/3] checkpatch: Emit a warning when decimal values are used

2012-10-31 Thread Andrew Morton
On Wed, 31 Oct 2012 11:37:03 +0100 Pavel Machek wrote: > Hi! > > > Linux kernel doesn't like decimals, say so. > > ?! > > Linux surely supports decimal constants, like "100". Did you mean > "octal"? > > If you wanted to add warning for something... I never want to see > > #define CRAPPY_EMBE

[RFC virtio-next 1/4] virtio: Move definitions to header file vring.h

2012-10-31 Thread Sjur Brændeland
From: Sjur Brændeland Move the vring_virtqueue structure, memory barrier and debug macros out from virtio_ring.c to the new header file vring.h. This is done in order to allow other kernel modules to access the virtio internal data-structures. Signed-off-by: Sjur Brændeland --- Tis patch trigge

[RFC virtio-next 2/4] include/vring.h: Add support for reversed vritio rings.

2012-10-31 Thread Sjur Brændeland
From: Sjur Brændeland Add last avilable index to the vring_virtqueue structure, this is done to prepare for implementation of the reversed vring. Signed-off-by: Sjur Brændeland --- drivers/virtio/vring.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/virtio/vring.h b/drivers

[RFC virtio-next 4/4] caif_virtio: Add CAIF over virtio

2012-10-31 Thread Sjur Brændeland
From: Sjur Brændeland Add the CAIF Virtio Link layer, used for communicating with a modem over shared memory. Virtio is used as the transport mechanism. In the TX direction the virtio rings are used in the normal fashion, sending data in the available ring. But in the rx direction the the we hav

[RFC virtio-next 3/4] virtio_ring: Call callback function even when used ring is empty

2012-10-31 Thread Sjur Brændeland
From: Sjur Brændeland Enable option to force call of callback function even if used ring is empty. This is needed for reversed vring. Add a helper function __vring_interrupt and add extra boolean argument for forcing callback when interrupt is called. The original vring_interrupt semantic and si

  1   2   3   4   5   6   7   8   >