Re: [PATCH net] vhost/net: fix heads usage of ubuf_info

2013-03-21 Thread Michael S. Tsirkin
On Sun, Mar 17, 2013 at 02:29:55PM -0400, David Miller wrote: From: Michael S. Tsirkin m...@redhat.com Date: Sun, 17 Mar 2013 14:46:09 +0200 ubuf info allocator uses guest controlled head as an index, so a malicious guest could put the same head entry in the ring twice, and we will get

Re: [PATCH v2] uprobes: Use file_inode()

2013-03-21 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2013-03-18 19:43:17]: Cleanup. Now that we have f_inode/file_inode() we can use it instead of -f_mapping-host. This should not make any difference for uprobes, but in theory this change is more correct. We use this inode as a key, to compare it with

Re: [PATCH v3 01/21] vmcore: reference e_phoff member explicitly to get position of program header table

2013-03-21 Thread Eric W. Biederman
HATAYAMA Daisuke d.hatay...@jp.fujitsu.com writes: From: Eric W. Biederman ebied...@xmission.com Subject: Re: [PATCH v3 01/21] vmcore: reference e_phoff member explicitly to get position of program header table Date: Tue, 19 Mar 2013 14:44:16 -0700 HATAYAMA Daisuke

Re: [PATCH v3 18/21] vmcore: check if vmcore objects satify mmap()'s page-size boundary requirement

2013-03-21 Thread HATAYAMA Daisuke
From: Eric W. Biederman ebied...@xmission.com Subject: Re: [PATCH v3 18/21] vmcore: check if vmcore objects satify mmap()'s page-size boundary requirement Date: Wed, 20 Mar 2013 21:18:37 -0700 HATAYAMA Daisuke d.hatay...@jp.fujitsu.com writes: From: Eric W. Biederman ebied...@xmission.com

Re: [PATCH v3 00/21] kdump, vmcore: support mmap() on /proc/vmcore

2013-03-21 Thread Eric W. Biederman
HATAYAMA Daisuke d.hatay...@jp.fujitsu.com writes: From: Andrew Morton a...@linux-foundation.org Subject: Re: [PATCH v3 00/21] kdump, vmcore: support mmap() on /proc/vmcore Date: Tue, 19 Mar 2013 12:30:05 -0700 On Sat, 16 Mar 2013 13:00:47 +0900 HATAYAMA Daisuke d.hatay...@jp.fujitsu.com

[PATCH] rdma: don't make pages writeable if not requiested

2013-03-21 Thread Michael S. Tsirkin
core/umem.c seems to get the arguments to get_user_pages in the reverse order: it sets writeable flag and breaks COW for MAP_SHARED if and only if hardware needs to write the page. This breaks memory overcommit for users such as KVM: each time we try to register a page to send it to remote, this

linux-next: build failure after merge of the final tree (linus' tree related)

2013-03-21 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc64 allnoconfig) failed like this: In file included from arch/powerpc/include/asm/kvm_ppc.h:33:0, from arch/powerpc/kernel/setup_64.c:67: arch/powerpc/include/asm/kvm_book3s.h:65:20: error: field 'pte' has

Re: [PATCH v3 5/6] ARM: dts: omap: update usb_otg_hs data

2013-03-21 Thread kishon
Hi, On Thursday 21 March 2013 02:29 AM, Stephen Warren wrote: On 03/20/2013 03:12 AM, Kishon Vijay Abraham I wrote: Updated the usb_otg_hs dt data to include the *phy* and *phy-names* binding in order for the driver to use the new generic PHY framework. Also updated the Documentation to

Re: [PATCH v3 18/21] vmcore: check if vmcore objects satify mmap()'s page-size boundary requirement

2013-03-21 Thread Eric W. Biederman
HATAYAMA Daisuke d.hatay...@jp.fujitsu.com writes: Do you mean for each range represented by each PT_LOAD entry, say: [p_paddr, p_paddr + p_memsz] extend it as: [rounddown(p_paddr, PAGE_SIZE), roundup(p_paddr + p_memsz, PAGE_SIZE)]. not only objects in vmcore_list, but also updating

Re: [PATCH 0/9] Add blockconsole version 1.1 (try 2)

2013-03-21 Thread Takashi Iwai
At Wed, 20 Mar 2013 23:52:31 +0100, Borislav Petkov wrote: Hi Andrew, On Thu, Feb 28, 2013 at 04:39:53PM -0500, Joern Engel wrote: Blockconsole is a console driver very roughly similar to netconsole. Instead of sending messages out via UDP, they are written to a block device.

Re: [PATCH v3 00/21] kdump, vmcore: support mmap() on /proc/vmcore

2013-03-21 Thread HATAYAMA Daisuke
From: Eric W. Biederman ebied...@xmission.com Subject: Re: [PATCH v3 00/21] kdump, vmcore: support mmap() on /proc/vmcore Date: Wed, 20 Mar 2013 23:16:20 -0700 HATAYAMA Daisuke d.hatay...@jp.fujitsu.com writes: From: Andrew Morton a...@linux-foundation.org Subject: Re: [PATCH v3 00/21]

Re: [PATCH] usb host: Faraday FUSBH200 HCD driver.

2013-03-21 Thread Yuan-Hsin Chen
Hi, On Wed, Mar 20, 2013 at 10:26 PM, Alan Stern st...@rowland.harvard.edu wrote: On Wed, 20 Mar 2013, Yuan-Hsin Chen wrote: Hi, On Tue, Mar 19, 2013 at 11:48 PM, Alan Stern st...@rowland.harvard.edu wrote: On Tue, 19 Mar 2013, Yuan-Hsin Chen wrote: What about the port_status

linux-next: Tree for Mar 21

2013-03-21 Thread Stephen Rothwell
Hi all, Changes since 20130320: New tree: gen-gpio Removed tree: pekey (Linus will not merge this as is) Linus' tree gained a build failure for which I reverted a commit. The v4l-dvb tree gained a conflict against the s390 tree. The sound-asoc tree gained 2 build failures do I used the

[PATCH v2] usb: xhci: Fix TRB transfer length macro used for Event TRB.

2013-03-21 Thread Vivek Gautam
Use proper macro while extracting TRB transfer length from Transfer event TRBs. Adding a macro EVENT_TRB_LEN (bits 0:23) for the same, and use it instead of TRB_LEN (bits 0:16) in case of event TRBs. Signed-off-by: Vivek gautam gautam.vi...@samsung.com --- Hi Sarah, Updated the patch as

Re: [PATCH v3 18/21] vmcore: check if vmcore objects satify mmap()'s page-size boundary requirement

2013-03-21 Thread HATAYAMA Daisuke
From: Eric W. Biederman ebied...@xmission.com Subject: Re: [PATCH v3 18/21] vmcore: check if vmcore objects satify mmap()'s page-size boundary requirement Date: Wed, 20 Mar 2013 23:29:05 -0700 HATAYAMA Daisuke d.hatay...@jp.fujitsu.com writes: Do you mean for each range represented by each

host gcc 4.7 warning when generating defconfig

2013-03-21 Thread Vineet Gupta
Hi, We do cross compile builds for ARC Linux. To avoid the env var set, we have a defconfig entry for CONFIG_CROSS_COMPILE. This worked fine so far (host gcc 4.4 i.e.). When switched to a new host distro (gcc 4.7), a defconfig build spews out the warning.

Re: [PATCH Resend] dma: pl330: Convert to devm_ioremap_resource()

2013-03-21 Thread Vinod Koul
On Mon, Mar 04, 2013 at 02:36:27PM +0530, Sachin Kamat wrote: Use the newly introduced devm_ioremap_resource() instead of devm_request_and_ioremap() which provides more consistent error handling. Signed-off-by: Sachin Kamat sachin.ka...@linaro.org Reviewed-by: Thierry Reding

Re: [PATCH] rdma: don't make pages writeable if not requiested

2013-03-21 Thread Roland Dreier
On Wed, Mar 20, 2013 at 11:18 PM, Michael S. Tsirkin m...@redhat.com wrote: core/umem.c seems to get the arguments to get_user_pages in the reverse order: it sets writeable flag and breaks COW for MAP_SHARED if and only if hardware needs to write the page. This breaks memory overcommit for

Re: [PATCH] rdma: don't make pages writeable if not requiested

2013-03-21 Thread Michael S. Tsirkin
On Wed, Mar 20, 2013 at 11:55:54PM -0700, Roland Dreier wrote: On Wed, Mar 20, 2013 at 11:18 PM, Michael S. Tsirkin m...@redhat.com wrote: core/umem.c seems to get the arguments to get_user_pages in the reverse order: it sets writeable flag and breaks COW for MAP_SHARED if and only if

Re: [PATCH v3 18/21] vmcore: check if vmcore objects satify mmap()'s page-size boundary requirement

2013-03-21 Thread Eric W. Biederman
HATAYAMA Daisuke d.hatay...@jp.fujitsu.com writes: From: Eric W. Biederman ebied...@xmission.com Subject: Re: [PATCH v3 18/21] vmcore: check if vmcore objects satify mmap()'s page-size boundary requirement Date: Wed, 20 Mar 2013 23:29:05 -0700 HATAYAMA Daisuke d.hatay...@jp.fujitsu.com

Re: OOM triggered with plenty of memory free

2013-03-21 Thread Jonathan Woithe
On Sat, Mar 16, 2013 at 02:33:23AM -0700, Raymond Jennings wrote: Anyway, to the parent poster, could you tell us more, such as how much ram you had left free? Following on from my previous post, here is a summary of what I know about this memory leak following additional testing. * It was

Re: [PATCH v4 1/3] dmaengine: add dma_get_slave_sg_limits()

2013-03-21 Thread Vinod Koul
On Wed, Mar 06, 2013 at 02:56:05PM -0500, Matt Porter wrote: Add a dmaengine API to retrieve slave SG transfer limits. The API is optionally implemented by dmaengine drivers and when unimplemented will return a NULL pointer. A client driver using this API provides the required dma channel,

Re: [PATCH v4 0/3] dmaengine: add slave sg transfer limits api

2013-03-21 Thread Vinod Koul
On Wed, Mar 06, 2013 at 02:56:04PM -0500, Matt Porter wrote: Changes since v3: - Change api name to dma_get_slave_sg_limits() to avoid confusion with h/w caps which are static. Changes since v2: - Change to a separate slave sg specific api. Drop the generic

[patch v1]rtc: fix for DA9052/53 rtc device registration

2013-03-21 Thread Ashish Jangam
This patch adds supports for the virtual irq since now MFD only handles virtual irq Without this patch rtc device will fail in registration. This patch is for Linux stable version 3.8.x Signed-off-by: Ashish Jangam ashish.jan...@kpitcummins.com --- drivers/rtc/rtc-da9052.c |8 1

Re: [PATCH v3 00/21] kdump, vmcore: support mmap() on /proc/vmcore

2013-03-21 Thread Eric W. Biederman
HATAYAMA Daisuke d.hatay...@jp.fujitsu.com writes: The breakage was caused by the introduction of new NT_VMCORE_PAD to VMCOREINFO name, except for which it worked fine. But it will be dropped in the next version. It'll be no problem for some time. The breakage was caused by makedumpfile

Re: [PATCH] rdma: don't make pages writeable if not requiested

2013-03-21 Thread Roland Dreier
I think this change will break the case where userspace tries to register an MR with read-only permission, but intends locally through the CPU to write to the memory. Shouldn't it set LOCAL_WRITE then? We're talking about the permissions for the register MR operation, right? (That's what

[PATCH] btrfs-progs: fix one bracket issue in mkfs.btrfs manpage

2013-03-21 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com In [ \fB\-f\fP\fI ], the \fI will result in the front half [of [ -f ] doesn't the back half ]; When you issue the command man mkfs.btrfs, you will see the difference. Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- man/mkfs.btrfs.8.in | 2 +-

[PATCH 1/9] perf util: Let get_tracing_file() can return NULL

2013-03-21 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com So that it can be used by other places. Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Signed-off-by: Namhyung Kim namhy...@kernel.org --- tools/perf/util/trace-event-info.c | 25 ++--- 1 file

[PATCH 6/9] perf util: Get rid of malloc_or_die() in trace-event-read.c

2013-03-21 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com Check return value of malloc() and fail if error. Now read_string() can return NULL also check its return value and bail out. Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Signed-off-by: Namhyung Kim namhy...@kernel.org

[PATCH 4/9] perf util: Get rid of die() calls from trace-event-info.c

2013-03-21 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com Now remove all remaining die() calls and convert them to check return value and propagate it. Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Signed-off-by: Namhyung Kim namhy...@kernel.org ---

[PATCH 3/9] perf util: Get rid of write_or_die() from trace-event-info.c

2013-03-21 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com Check return value of write and fail if error. Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Signed-off-by: Namhyung Kim namhy...@kernel.org --- tools/perf/util/trace-event-info.c | 180

[PATCH 5/9] perf util: Handle failure case in trace_report()

2013-03-21 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com If pevent allocation in read_trace_init() fails, trace_report() will return -1 and *ppevent is set to NULL. Its callers should check this case and handle it properly. This is also a preparation for the removal of *die() calls. Cc: Steven Rostedt

[PATCH 9/9] perf util: Cleanup calc_data_size logic

2013-03-21 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com It's for calculating whole trace data size during reading. However relation functions are called only in this file, no need to conditionalize it with tricky +1 offset and rename the variable to more meaningful name like trace_data_size. Cc: Steven Rostedt

[PATCH 7/9] perf util: Get rid of read_or_die() in trace-event-read.c

2013-03-21 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com Rename it to do_read and original do_read to __do_read, and check their return value. Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Signed-off-by: Namhyung Kim namhy...@kernel.org --- tools/perf/util/trace-event-read.c

[PATCH 8/9] perf util: Get rid of die() calls in trace-data-read.c

2013-03-21 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com Convert them to pr_debug() and propagate error code. Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Signed-off-by: Namhyung Kim namhy...@kernel.org --- tools/perf/util/trace-event-read.c | 44

[PATCHSET 0/9] perf util: Cleanup die() and its friends (v2)

2013-03-21 Thread Namhyung Kim
Hi, I updated this series with previous feedbacks from Steven, Peter and Arnaldo. Thanks for all your comments. * v2 changes - fix a grammar in an error message - change some pr_err() - pr_debug() - use kernel error checking style consistently Namhyung Kim (9): perf util: Let

WCH CH352 PCI-to-RS232 card bad default type

2013-03-21 Thread Vitaliy Bortsov
Hello. According to manufacture chip information from http://wch-ic.com/product/pci/ch352.asp type of emulated chip cannot be 16C550A (it is default value in linux and in patch https://lkml.org/lkml/2013/3/2/30 ). Correct value is 16550. Therefore I need to run additional command setserial

[PATCH 2/9] perf util: Get rid of malloc_or_die() in trace-event-info.c

2013-03-21 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com Check return value of malloc and fail if NULL. Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Signed-off-by: Namhyung Kim namhy...@kernel.org --- tools/perf/util/trace-event-info.c | 48

Re: [PATCH v3 18/21] vmcore: check if vmcore objects satify mmap()'s page-size boundary requirement

2013-03-21 Thread Eric W. Biederman
HATAYAMA Daisuke d.hatay...@jp.fujitsu.com writes: OK, rigorously, suceess or faliure of the requested free pages allocation depends on actual memory layout at the 2nd kernel boot. To increase the possibility of allocating memory, we have no method but reserve more memory for the 2nd kernel

Serve High Quality PCB Solid Carbide Drills and Routers

2013-03-21 Thread cynthia
Dear General Manager: Trading here, exporting standard solid PCB drills (dia 3.20mm-6.50mm) and special PCB drills with chip-removal groove and reground chisel edge (dia 1.5mm-6.5mm) with good quality and reasonable price. Looking forward to hearing from you soon --

Re: [PATCH 2/2] of: remove /proc/device-tree

2013-03-21 Thread Grant Likely
On Thu, Mar 21, 2013 at 4:19 AM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Wed, 2013-03-20 at 21:38 +, Grant Likely wrote: NAK. It should at the very least be a CONFIG option for a while before completely switching over. I'll modify patch 1 to create the symlink if

Re: [PATCH] KVM: allow host header to be included even for !CONFIG_KVM

2013-03-21 Thread Gleb Natapov
On Wed, Mar 20, 2013 at 06:58:41PM -0500, Scott Wood wrote: On 03/14/2013 07:13:46 PM, Kevin Hilman wrote: The new context tracking subsystem unconditionally includes kvm_host.h headers for the guest enter/exit macros. This causes a compile failure when KVM is not enabled. Fix by adding an

Re: [patch v5 14/15] sched: power aware load balance

2013-03-21 Thread Alex Shi
On 03/20/2013 12:57 PM, Preeti U Murthy wrote: Neither core will be able to pull the task from the other to consolidate the load because the rq-util of t2 and t4, on which no process is running, continue to show some number even though they degrade with time and sgs-utils accounts for them.

Re: [PATCH 2/2] of: remove /proc/device-tree

2013-03-21 Thread Benjamin Herrenschmidt
On Thu, 2013-03-21 at 07:35 +, Grant Likely wrote: Shouldn't we have the symlink just be a config option itself ? Eventually distros might want get rid of it completely .. Why? It is the cheapest thing in the world and it means the ABI doesn't change at all. It's also gross and forces

[PATCH] iommu: add a function to find an iommu group by id

2013-03-21 Thread Alexey Kardashevskiy
As IOMMU groups are exposed to the user space by their numbers, the user space can use them in various kernel APIs so the kernel might need an API to find a group by its ID. As an example, QEMU VFIO on PPC64 platform needs it to associate a logical bus number (LIOBN) with a specific IOMMU group

Re: [Intel][RNG] PCI IDs commented out for 82801I (ICH9 Mobile and non-mobile)?

2013-03-21 Thread Jan Beulich
On 20.03.13 at 21:52, H. Peter Anvin h...@zytor.com wrote: On 03/20/2013 01:42 PM, Shawn Starr wrote: Hello folks, I was looking at why I can't load the Intel RNG driver (or why it doesn't load automatically) and it just so happens I have both the mobile and non-mobile ICH9 chipset.

Re: [PATCH, RFC 00/16] Transparent huge page cache

2013-03-21 Thread Simon Jeons
On 01/28/2013 05:24 PM, Kirill A. Shutemov wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com Here's first steps towards huge pages in page cache. The intend of the work is get code ready to enable transparent huge page cache for the most simple fs -- ramfs. It's not yet near

RE: [PATCH v2 3/3] ARM: davinci: da850: add EHRPWM ECAP DT node

2013-03-21 Thread Philip, Avinash
On Wed, Mar 20, 2013 at 18:17:59, Peter Korsgaard wrote: Sekhar == Sekhar Nori nsek...@ti.com writes: Sekhar On 3/20/2013 12:11 PM, Philip Avinash wrote: Add da850 EHRPWM ECAP DT node. Also adds OF_DEV_AUXDATA for EHRPWM ECAP driver to use EHRPWM ECAP clock. Signed-off-by:

[PATCH] kconfig: print each first level disjunction block from a new line

2013-03-21 Thread Konstantin Khlebnikov
This patch improves readability of complicated expressions. before: Selected by: A AA AAA || B BB (BBB || ) || C CC CCC after: Selected by: A AA AAA || B BB (BBB || ) || C CC CCC Modules' config options usually comes first in these blocks. Signed-off-by: Konstantin

Re: [PATCH 2/2] of: remove /proc/device-tree

2013-03-21 Thread Grant Likely
On Thu, Mar 21, 2013 at 7:43 AM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Thu, 2013-03-21 at 07:35 +, Grant Likely wrote: Shouldn't we have the symlink just be a config option itself ? Eventually distros might want get rid of it completely .. Why? It is the cheapest

Re: [PATCH] mm: page_alloc: Avoid marking zones full prematurely after zone_reclaim()

2013-03-21 Thread Michal Hocko
On Thu 21-03-13 10:33:07, Simon Jeons wrote: Hi Mel, On 03/21/2013 02:19 AM, Mel Gorman wrote: The following problem was reported against a distribution kernel when zone_reclaim was enabled but the same problem applies to the mainline kernel. The reproduction case was as follows 1. Run

[PATCH RFC 1/5] kconfig: implement weak reverse-dependencies

2013-03-21 Thread Konstantin Khlebnikov
This patch adds new kind of dependencies between kconfig symbols, and new kconfig keyword 'apply' for them. 'apply' works mostly like 'select', but it allows to disable target symbol. Thus target symbol will be either disabled or reachable from current symbol. This method allows to implement

[PATCH RFC 5/5] e1000e: make PTP clock optional

2013-03-21 Thread Konstantin Khlebnikov
As proof of concept for new approach in managing cross-module dependencies this patch resolves hard depencency between CONFIG_E1000E and CONFIG_PTP_1588_CLOCK. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Richard Cochran richardcoch...@gmail.com ---

[PATCH RFC 3/5] kconfig: simplity linking cross-module glue objects

2013-03-21 Thread Konstantin Khlebnikov
This patch adds some synax sugar for makefiles to simplify conditional linking cross-module glue objects into composite modules. For example: there two tristate config options MODULE_A and MODULE_B. Module-B wants to use some code from Module-A. Code of Module-A is available from Module-B if

[PATCH RFC 4/5] ptp: add stub function for ptp_clock_index()

2013-03-21 Thread Konstantin Khlebnikov
After this patch function ptp_clock_index(struct ptp_clock *ptp) returns -1 if ptp is NULL or CONFIG_PTP_1588_CLOCK disabled. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Richard Cochran richardcoch...@gmail.com --- drivers/net/ethernet/broadcom/tg3.c |5 +

Re: [Suggestion] PowerPC: kernel: cross compiling issue with allmodconfig

2013-03-21 Thread Chen Gang F T
it seems: only move slb_miss_realmode to the end, can fix this issue without negative effect. diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 200afa5..56bd923 100644 --- a/arch/powerpc/kernel/exceptions-64s.S +++

Re: [PATCH] tty: serial: 8250: remove U6715 16550A auto-detection

2013-03-21 Thread Heikki Krogerus
Hi guys, On Wed, Mar 20, 2013 at 10:21:25AM -0700, Greg Kroah-Hartman wrote: On Tue, Mar 19, 2013 at 08:50:09PM +0100, Philippe Langlais wrote: - if (up-port.type == PORT_16550A size_fifo(up) == 64) { - up-port.type = PORT_U6_16550A; - up-capabilities |=

Re: [PATCH] mm: page_alloc: Avoid marking zones full prematurely after zone_reclaim()

2013-03-21 Thread Simon Jeons
Hi Michal, On 03/21/2013 04:19 PM, Michal Hocko wrote: On Thu 21-03-13 10:33:07, Simon Jeons wrote: Hi Mel, On 03/21/2013 02:19 AM, Mel Gorman wrote: The following problem was reported against a distribution kernel when zone_reclaim was enabled but the same problem applies to the mainline

[PATCH] btrfs-progs: add missing qgroup synopsis in btrfs

2013-03-21 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- man/btrfs.8.in | 37 + 1 file changed, 37 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 94f4ffe..54de60e 100644 --- a/man/btrfs.8.in +++

Re: [PATCH] tty: serial: 8250: remove U6715 16550A auto-detection

2013-03-21 Thread Philippe LANGLAIS
On 03/20/2013 06:21 PM, Greg Kroah-Hartman wrote: On Tue, Mar 19, 2013 at 08:50:09PM +0100, Philippe Langlais wrote: The auto-detection based on 64 bytes fifo size causes troubles for the identification of the MultiTechZPX Modems (pci 11c1:0480). They loose the ability to do hardware flow

Re: [PATCH REPOST] dma: tegra: assume CONFIG_OF

2013-03-21 Thread Vinod Koul
On Mon, Mar 11, 2013 at 04:30:26PM -0600, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com Tegra only supports, and always enables, device tree. Remove all ifdefs and runtime checks for DT support from the driver. Signed-off-by: Stephen Warren swar...@nvidia.com Applied thanks

Re: [patch v5 14/15] sched: power aware load balance

2013-03-21 Thread Preeti U Murthy
Hi Alex, On 03/21/2013 01:13 PM, Alex Shi wrote: On 03/20/2013 12:57 PM, Preeti U Murthy wrote: Neither core will be able to pull the task from the other to consolidate the load because the rq-util of t2 and t4, on which no process is running, continue to show some number even though they

Re: [PATCH] mm: page_alloc: Avoid marking zones full prematurely after zone_reclaim()

2013-03-21 Thread Michal Hocko
On Thu 21-03-13 16:32:03, Simon Jeons wrote: Hi Michal, On 03/21/2013 04:19 PM, Michal Hocko wrote: On Thu 21-03-13 10:33:07, Simon Jeons wrote: Hi Mel, On 03/21/2013 02:19 AM, Mel Gorman wrote: The following problem was reported against a distribution kernel when zone_reclaim was enabled

Re: [PATCH] serial: 8250_dw: add support for clk api

2013-03-21 Thread Heikki Krogerus
On Tue, Mar 19, 2013 at 11:52:49AM +0100, Maxime Ripard wrote: From: Emilio López emi...@elopez.com.ar This commit implements support for using the clk api; this lets us use the clocks property with device tree, instead of having to use clock-frequency. Signed-off-by: Emilio López

Re: [PATCH] dma: ipu: ipu_idmac: Fix section mismatch

2013-03-21 Thread Vinod Koul
On Tue, Mar 12, 2013 at 08:53:37PM -0300, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Since commit 84c1e63c12 (dma: Remove erroneous __exit and __exit_p() references) the following section mismatch happens: WARNING: drivers/built-in.o(.text+0x20f94): Section

Re: [PATCH] rdma: don't make pages writeable if not requiested

2013-03-21 Thread Michael S. Tsirkin
On Thu, Mar 21, 2013 at 12:15:33AM -0700, Roland Dreier wrote: I think this change will break the case where userspace tries to register an MR with read-only permission, but intends locally through the CPU to write to the memory. Shouldn't it set LOCAL_WRITE then? We're talking about

Re: [BUG] bisected: PandaBoard smsc95xx ethernet driver error from USB timeout

2013-03-21 Thread Ming Lei
Hi Frank, On Thu, Mar 21, 2013 at 11:29 AM, Frank Rowand frank.row...@am.sony.com wrote: I found the problem on 3.6.11, but have not replicated it on 3.9-rcX yet because my config fails to build on 3.9-rc1 and 3.9-rc2. I'll try to work on that issue tomorrow. I play upstream kernel on

Re: [PATCH] btrfs-progs: fix one bracket issue in mkfs.btrfs manpage

2013-03-21 Thread Eric Sandeen
On 3/21/13 2:17 AM, zwu.ker...@gmail.com wrote: From: Zhi Yong Wu wu...@linux.vnet.ibm.com In [ \fB\-f\fP\fI ], the \fI will result in the front half [of [ -f ] doesn't the back half ]; When you issue the command man mkfs.btrfs, you will see the difference. Signed-off-by: Zhi Yong Wu

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-21 Thread Michal Hocko
On Thu 21-03-13 09:22:21, Li Zefan wrote: As cgroup supports rename, it's unsafe to dereference dentry-d_name without proper vfs locks. Fix this by using cgroup_name(). Signed-off-by: Li Zefan lize...@huawei.com --- This patch depends on cgroup: fix cgroup_path() vs rename() race, which

Re: [PATCH 5/6] OF: Introduce Device Tree resolve support.

2013-03-21 Thread Pantelis Antoniou
Hi Grant, On Mar 19, 2013, at 7:18 PM, Grant Likely wrote: On Tue, 19 Mar 2013 13:51:01 +0200, Pantelis Antoniou pa...@antoniou-consulting.com wrote: Hi Grant, On Mar 16, 2013, at 11:24 AM, Grant Likely wrote: On Wed, 23 Jan 2013 12:58:02 +0200, Pantelis Antoniou

Re: [PATCH] rdma: don't make pages writeable if not requiested

2013-03-21 Thread Roland Dreier
On Thu, Mar 21, 2013 at 1:51 AM, Michael S. Tsirkin m...@redhat.com wrote: In that case, no, I don't see any reason for LOCAL_WRITE, since the only RDMA operations that will access this memory are remote reads. What is the meaning of LOCAL_WRITE then? There are no local RDMA writes as far as

Re: [PATCH] clk: divider: Use DIV_ROUND_CLOSEST

2013-03-21 Thread Uwe Kleine-König
Hello, On Wed, Mar 20, 2013 at 07:50:51PM +0100, Sascha Hauer wrote: On Wed, Mar 20, 2013 at 09:32:51AM -0700, Sören Brinkmann wrote: If the caller doesn't like the returned frequency he can request a different one. And he's eventually happy with the return value he calls clk_set_rate()

[RESEND PATCH part1 1/9] x86: get pg_data_t's memory from other node

2013-03-21 Thread Tang Chen
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com If system can create movable node which all memory of the node is allocated as ZONE_MOVABLE, setup_node_data() cannot allocate memory for the node's pg_data_t. So, use memblock_alloc_try_nid() instead of memblock_alloc_nid() to retry when the

[RESEND PATCH part1 7/9] x86, mm, numa, acpi: Sanitize zone_movable_limit[].

2013-03-21 Thread Tang Chen
As mentioned by Liu Jiang and Wu Jiangguo, users could specify DMA, DMA32, and HIGHMEM as movable. In order to ensure the kernel will work correctly, we should exclude these memory ranges out from zone_movable_limit[]. NOTE: Do find_usable_zone_for_movable() to initialize movable_zone so

[RFC PATCH part2 0/4] Allow allocating pagetable on local node in movablemem_map.

2013-03-21 Thread Tang Chen
Hi Yinghai, all, This patch-set is based on Yinghai's tree: git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git for-x86-mm For main line, we need to apply Yinghai's x86, ACPI, numa: Parse numa info early patch-set first. Please refer to: v1:

[PATCH part2 1/4] x86, mm, numa, acpi: Introduce numa_meminfo_all to store all the numa meminfo.

2013-03-21 Thread Tang Chen
Now, Yinghai has tried to allocate pagetables and vmemmap pages in local node. If we limit memblock allocation in movablemem_map.map[], we have to exclude the pagetables and vmemmap pages. So we need the following sequence: 1) Parse SRAT, store numa_meminfo. 2) Initialize memory mapping, allocate

[PATCH part2 3/4] x86, mm, numa, acpi: Consider hotplug info when cleanup numa_meminfo.

2013-03-21 Thread Tang Chen
Since we have introduced hotplug info into struct numa_meminfo, we need to consider it when cleanup numa_meminfo. The original logic in numa_cleanup_meminfo() is: Merge blocks on the same node, holes between which don't overlap with memory on other nodes. This patch modifies

[PATCH part2 4/4] x86, mm, numa, acpi: Sanitize movablemem_map after memory mapping initialized.

2013-03-21 Thread Tang Chen
In order to support allocating pagetable and vmammap pages in local node, we should initialzie memory mapping without any limitation for memblock first, using memblock to reserve pagetable and vmemmap pages in local node, and then sanitize movablemem_map.map[] to limit memblock. In this way, we

[PATCH part2 2/4] x86, mm, numa, acpi: Introduce hotplug info into struct numa_meminfo.

2013-03-21 Thread Tang Chen
Since we are using struct numa_meminfo to store SRAT info, and sanitize movablemem_map.map[], we need hotplug info in struct numa_meminfo. This patch introduces a bool hotpluggable member into struct numa_meminfo. And modifies the following APIs' prototypes to support it: - numa_add_memblk()

[RESEND PATCH part1 6/9] x86, mm, numa, acpi: Support getting hotplug info from SRAT.

2013-03-21 Thread Tang Chen
We now provide an option for users who don't want to specify physical memory address in kernel commandline. /* * For movablemem_map=acpi: * * SRAT:|_| |_| |_| |_| .. * node id:0 1

[RESEND PATCH part1 8/9] x86, mm, numa, acpi: make movablemem_map have higher priority

2013-03-21 Thread Tang Chen
If kernelcore or movablecore is specified at the same time with movablemem_map, movablemem_map will have higher priority to be satisfied. This patch will make find_zone_movable_pfns_for_nodes() calculate zone_movable_pfn[] with the limit from zone_movable_limit[]. Signed-off-by: Tang Chen

[RESEND PATCH part1 5/9] x86, mm, numa, acpi: Extend movablemem_map to the end of each node.

2013-03-21 Thread Tang Chen
When implementing movablemem_map boot option, we introduced an array movablemem_map.map[] to store the memory ranges to be set as ZONE_MOVABLE. Since ZONE_MOVABLE is the latst zone of a node, if user didn't specify the whole node memory range, we need to extend it to the node end so that we can

[RESEND PATCH part1 9/9] x86, mm, numa, acpi: Memblock limit with movablemem_map

2013-03-21 Thread Tang Chen
Ensure memblock will not allocate memory from areas that may be ZONE_MOVABLE. The map info is from movablemem_map boot option. The following problem was reported by Stephen Rothwell: The definition of struct movablecore_map is protected by CONFIG_HAVE_MEMBLOCK_NODE_MAP but its use in

[RESEND PATCH part1 3/9] x86, mm, numa, acpi: Add movable_memmap boot option.

2013-03-21 Thread Tang Chen
Add functions to parse movablemem_map boot option. Since the option could be specified more then once, all the maps will be stored in the global array movablemem_map.map[]. And also, we keep the array in monotonic increasing order by start_pfn. And merge all overlapped ranges. Signed-off-by:

[RESEND PATCH part1 4/9] x86, mm, numa, acpi: Introduce zone_movable_limit[] to store start pfn of ZONE_MOVABLE.

2013-03-21 Thread Tang Chen
Since node info in SRAT may not be in increasing order, we may meet a lower range after we handled a higher range. So we need to keep the lowest movable pfn each time we parse a SRAT memory entry, and update it when we get a lower one. This patch introduces a new array zone_movable_limit[], which

[RESEND PATCH part1 0/9] Introduce movablemem_map boot option.

2013-03-21 Thread Tang Chen
This patch-set introduces a new boot option movablemem_map. The functionality will be posted in two parts: part1: Implement movablemem_map logic. In this part, pagetable and vmemmap are not allowed to be allocated on local node. part2: Support allocating pagetable and vmemmap on

[RESEND PATCH part1 2/9] acpi: Print hotplug info in SRAT.

2013-03-21 Thread Tang Chen
The Hot Pluggable field in SRAT points out if the memory could be hotplugged while the system is running. It is useful to print out this info when parsing SRAT. Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- arch/x86/mm/srat.c |9 ++--- 1 files changed, 6 insertions(+), 3

[PATCH 1/2] net: prepare netlink code for netlink diag

2013-03-21 Thread Andrey Vagin
Move a few declarations in a header. Cc: David S. Miller da...@davemloft.net Cc: Eric Dumazet eduma...@google.com Cc: Pavel Emelyanov xe...@parallels.com Cc: Pablo Neira Ayuso pa...@netfilter.org Cc: Eric W. Biederman ebied...@xmission.com Cc: Gao feng gaof...@cn.fujitsu.com Signed-off-by: Andrey

[PATCH 0/2] netlink: implement socket diag for netlink sockets

2013-03-21 Thread Andrey Vagin
Cc: David S. Miller da...@davemloft.net Cc: Eric Dumazet eduma...@google.com Cc: Pavel Emelyanov xe...@parallels.com Cc: Pablo Neira Ayuso pa...@netfilter.org Cc: Eric W. Biederman ebied...@xmission.com Cc: Gao feng gaof...@cn.fujitsu.com Signed-off-by: Andrey Vagin ava...@openvz.org Andrey

[PATCH 2/2] netlink: Diag core and basic socket info dumping

2013-03-21 Thread Andrey Vagin
The netlink_diag can be built as a module, just like it's done in unix sockets. The core dumping message carries the basic info about netlink sockets: family, type and protocol, portis, dst_group, dst_portid, state. Groups can be received as an optional parameter NETLINK_DIAG_GROUPS. Netlink

Re: [patch v5 14/15] sched: power aware load balance

2013-03-21 Thread Alex Shi
On 03/21/2013 04:41 PM, Preeti U Murthy wrote: Yes, I did find this behaviour on a 2 socket, 8 core machine very consistently. rq-util cannot go to 0, after it has begun accumulating load right? Say a load was running on a runqueue which had its rq-util to be at 100%. After the load

[PATCH] memblock: kill config MAX_ACTIVE_REGIONS

2013-03-21 Thread Paul Bolle
The Kconfig symbol MAX_ACTIVE_REGIONS is unused. Commit 0ee332c1451869963626bf9cac88f165a90990e1 (memblock: Kill early_node_map[]) removed the only place were it was actually used. But it did not remove its Kconfig entries (for powerpc and sh). Remove those two entries (and the entry for metag,

Re: [PATCH] DMA: of: Constant names

2013-03-21 Thread Vinod Koul
On Sun, Feb 24, 2013 at 04:36:09PM +0100, Markus Pargmann wrote: No DMA of-function alters the name, so this patch changes the name arguments to be constant. Most drivers will probably request DMA channels using a constant name. Signed-off-by: Markus Pargmann m...@pengutronix.de Applied

Re: [PATCH] dma: imx-dma: Remove redundant NULL check before kfree

2013-03-21 Thread Vinod Koul
On Mon, Feb 25, 2013 at 04:46:26AM +0530, Syam Sidhardhan wrote: kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan s.s...@samsung.com Applied thanks --- drivers/dma/imx-dma.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/imx-dma.c

Re: [PATCH] rdma: don't make pages writeable if not requiested

2013-03-21 Thread Michael S. Tsirkin
On Wed, Mar 20, 2013 at 11:55:54PM -0700, Roland Dreier wrote: On Wed, Mar 20, 2013 at 11:18 PM, Michael S. Tsirkin m...@redhat.com wrote: core/umem.c seems to get the arguments to get_user_pages in the reverse order: it sets writeable flag and breaks COW for MAP_SHARED if and only if

Re: [PATCH] memblock: kill config MAX_ACTIVE_REGIONS

2013-03-21 Thread Paul Mundt
On Thu, Mar 21, 2013 at 10:27:56AM +0100, Paul Bolle wrote: The Kconfig symbol MAX_ACTIVE_REGIONS is unused. Commit 0ee332c1451869963626bf9cac88f165a90990e1 (memblock: Kill early_node_map[]) removed the only place were it was actually used. But it did not remove its Kconfig entries (for

Re: [PATCH] rdma: don't make pages writeable if not requiested

2013-03-21 Thread Michael S. Tsirkin
On Thu, Mar 21, 2013 at 02:13:38AM -0700, Roland Dreier wrote: On Thu, Mar 21, 2013 at 1:51 AM, Michael S. Tsirkin m...@redhat.com wrote: In that case, no, I don't see any reason for LOCAL_WRITE, since the only RDMA operations that will access this memory are remote reads. What is the

Re: [PATCH] clk: add table lookup to mux

2013-03-21 Thread Peter De Schrijver
On Wed, Mar 20, 2013 at 04:51:58PM +0100, Mike Turquette wrote: Quoting Peter De Schrijver (2013-03-20 02:49:57) On Wed, Mar 20, 2013 at 12:51:10AM +0100, Mike Turquette wrote: Quoting Peter De Schrijver (2013-03-12 11:42:23) diff --git a/include/linux/clk-private.h

[PATCH] C6X: remove config TMS320C6X_CACHES_ON

2013-03-21 Thread Paul Bolle
The Kconfig entry for TMS320C6X_CACHES_ON was added together with the C6X build infrastructure in v3.3. It has never been used. It can safely be removed. Signed-off-by: Paul Bolle pebo...@tiscali.nl --- Untested. arch/c6x/Kconfig | 4 1 file changed, 4 deletions(-) diff --git

Re: [PATCH] rtc: rtc-at91rm9200: use a variable for storing IMR

2013-03-21 Thread Nicolas Ferre
On 03/20/2013 10:50 PM, Andrew Morton : On Fri, 15 Mar 2013 18:37:12 +0100 Nicolas Ferre nicolas.fe...@atmel.com wrote: On some revisions of AT91 SoCs, the RTC IMR register is not working. Instead of elaborating a workaround for that specific SoC or IP version, we simply use a software

  1   2   3   4   5   6   7   8   9   >