Re: [PATCH v2 02/10] DMA, CMA: fix possible memory leak

2014-06-11 Thread Joonsoo Kim
On Thu, Jun 12, 2014 at 02:25:43PM +0900, Minchan Kim wrote: > On Thu, Jun 12, 2014 at 12:21:39PM +0900, Joonsoo Kim wrote: > > We should free memory for bitmap when we find zone mis-match, > > otherwise this memory will leak. > > Then, -stable stuff? I don't think so. This is just possible leak

linux-next: Tree for Jun 12

2014-06-11 Thread Stephen Rothwell
Hi all, The powerpc allyesconfig is again broken more than usual. Changes since 20140611: Dropped tree: drm-intel-fixes (build problems) The drm-intel-fixes still had its build failure so I dropped it at the maintainers request. The samsung tree gained a conflict against Linus' tree. The pci

Re: [PATCH ftrace/core 2/2] ftrace, kprobes: Support IPMODIFY flag to find IP modify conflict

2014-06-11 Thread Namhyung Kim
On Thu, 12 Jun 2014 12:29:09 +0900, Masami Hiramatsu wrote: > NO, ftrace_lookup_ip() returns NULL if the hash is empty, so adding > !ftrace_hash_empty() is meaningless :) > > Actually, here I intended to have 3 meanings for the new/old_hash arguments, > - If it is NULL, it hits all > - If it is

Re: [PATCH v2 01/10] DMA, CMA: clean-up log message

2014-06-11 Thread Joonsoo Kim
On Thu, Jun 12, 2014 at 02:18:53PM +0900, Minchan Kim wrote: > Hi Joonsoo, > > On Thu, Jun 12, 2014 at 12:21:38PM +0900, Joonsoo Kim wrote: > > We don't need explicit 'CMA:' prefix, since we already define prefix > > 'cma:' in pr_fmt. So remove it. > > > > And, some logs print function name and

Re: [PATCH v2 04/10] DMA, CMA: support alignment constraint on cma region

2014-06-11 Thread Minchan Kim
On Thu, Jun 12, 2014 at 12:21:41PM +0900, Joonsoo Kim wrote: > ppc kvm's cma area management needs alignment constraint on > cma region. So support it to prepare generalization of cma area > management functionality. > > Additionally, add some comments which tell us why alignment > constraint is

Re: [PATCH v3] usb: host: uhci-grlib.c : use devm_ functions

2014-06-11 Thread Andreas Larsson
On 2014-06-11 20:38, Himangi Saraogi wrote: The various devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_ioremap_resource for data that is allocated in the probe function of a platform device and is only freed in the remove function. The corresponding

Re: [PATCH v11 09/16] qspinlock, x86: Allow unfair spinlock in a virtual guest

2014-06-11 Thread Peter Zijlstra
On Wed, Jun 11, 2014 at 09:37:55PM -0400, Long, Wai Man wrote: > > On 6/11/2014 6:54 AM, Peter Zijlstra wrote: > >On Fri, May 30, 2014 at 11:43:55AM -0400, Waiman Long wrote: > >>Enabling this configuration feature causes a slight decrease the > >>performance of an uncontended lock-unlock

Re: [PATCH v2 01/10] DMA, CMA: clean-up log message

2014-06-11 Thread Joonsoo Kim
On Thu, Jun 12, 2014 at 10:11:19AM +0530, Aneesh Kumar K.V wrote: > Joonsoo Kim writes: > > > We don't need explicit 'CMA:' prefix, since we already define prefix > > 'cma:' in pr_fmt. So remove it. > > > > And, some logs print function name and others doesn't. This looks > > bad to me, so I

Re: [PATCH 1/2] mm: mark remap_file_pages() syscall as deprecated

2014-06-11 Thread Michael Kerrisk
Hi Kirill, On Thu, May 8, 2014 at 2:41 PM, Kirill A. Shutemov wrote: > The remap_file_pages() system call is used to create a nonlinear mapping, > that is, a mapping in which the pages of the file are mapped into a > nonsequential order in memory. The advantage of using remap_file_pages() > over

Re: Re: [PATCH ftrace/core 0/2] ftrace, kprobes: Introduce IPMODIFY flag for ftrace_ops to detect conflicts

2014-06-11 Thread Masami Hiramatsu
(2014/06/12 1:58), Josh Poimboeuf wrote: > On Tue, Jun 10, 2014 at 10:50:01AM +, Masami Hiramatsu wrote: >> Hi, >> >> Here is a pair of patches which introduces IPMODIFY flag for >> ftrace_ops to detect conflicts of ftrace users who can modify >> regs->ip in their handler. >> Currently, only

Re: [RFC PATCH 00/13][V3] kexec: A new system call to allow in kernel loading

2014-06-11 Thread Dave Young
On 06/03/14 at 09:06am, Vivek Goyal wrote: > Hi, > > This is V3 of the patchset. Previous versions were posted here. > > V1: https://lkml.org/lkml/2013/11/20/540 > V2: https://lkml.org/lkml/2014/1/27/331 > > Changes since v2: > > - Took care of most of the review comments from V2. > - Added

Re: [PATCH ftrace/core 2/2] ftrace, kprobes: Support IPMODIFY flag to find IP modify conflict

2014-06-11 Thread Namhyung Kim
Hi Masami, On Thu, 12 Jun 2014 12:29:09 +0900, Masami Hiramatsu wrote: > (2014/06/11 16:41), Namhyung Kim wrote: >> Hi Masami, >> >> On Wed, 11 Jun 2014 10:28:01 +0900, Masami Hiramatsu wrote: >>> (2014/06/10 22:53), Namhyung Kim wrote: Hi Masami, 2014-06-10 (화), 10:50 +,

Re: [PATCH v2 03/10] DMA, CMA: separate core cma management codes from DMA APIs

2014-06-11 Thread Minchan Kim
On Thu, Jun 12, 2014 at 12:21:40PM +0900, Joonsoo Kim wrote: > To prepare future generalization work on cma area management code, > we need to separate core cma management codes from DMA APIs. > We will extend these core functions to cover requirements of > ppc kvm's cma area management

[Regression] 3.15 mmc related ext4 corruption with qemu-system-arm

2014-06-11 Thread John Stultz
I've been seeing some ext4 corruption with recent kernels under qemu-system-arm. This issue seems to crop up after shutting down uncleanly (terminating qemu), shortly after booting about 50% of the time. ext4/mmc related dmesg details are: [3.206809] mmci-pl18x mb:mmci: mmc0: PL181 manf 41

[f2fs-dev][PATCH 3/3] f2fs: avoid to truncate non-updated page partially

2014-06-11 Thread Chao Yu
After we call find_data_page in truncate_partial_data_page, we could not guarantee this page is updated or not as error may occurred in lower layer. We'd better check status of the page to avoid this no updated page be writebacked to device. Signed-off-by: Chao Yu --- fs/f2fs/file.c | 10

[f2fs-dev][PATCH 2/3] f2fs: avoid unneeded SetPageUptodate in f2fs_write_end

2014-06-11 Thread Chao Yu
We have already set page update in ->write_begin, so we should remove redundant SetPageUptodate in ->write_end. Signed-off-by: Chao Yu --- fs/f2fs/data.c |1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index c1fb6dd..fd133cf 100644 --- a/fs/f2fs/data.c +++

Re: [GIT PULL] MMC updates for 3.16-rc1

2014-06-11 Thread Guennadi Liakhovetski
Hi Linus, On Wed, 11 Jun 2014, Linus Torvalds wrote: > On Tue, Jun 10, 2014 at 2:50 PM, Linus Torvalds > wrote: > > > > Also, that new drivers/mmc/host/usdhi6rol0.c driver is one f*cking > > noisy compile, and knisr certainly has never been tested in a 64-bit > > environment. Please either fix

Re: [PATCH v2 02/10] DMA, CMA: fix possible memory leak

2014-06-11 Thread Minchan Kim
On Thu, Jun 12, 2014 at 12:21:39PM +0900, Joonsoo Kim wrote: > We should free memory for bitmap when we find zone mis-match, > otherwise this memory will leak. Then, -stable stuff? > > Additionally, I copy code comment from ppc kvm's cma code to notify > why we need to check zone mis-match. >

[f2fs-dev][PATCH 1/3] f2fs: check lower bound nid value in check_nid_range

2014-06-11 Thread Chao Yu
This patch add lower bound verification for nid in check_nid_range, so nids reserved like 0, node, meta passed by caller could be checked there. And then check_nid_range could be used in f2fs_nfs_get_inode for simplifying code. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h |3 ++-

Re: [PATCH] drm/cirrus: bind also to qemu-xen-traditional

2014-06-11 Thread Olaf Hering
Ping? On Fri, Apr 11, Olaf Hering wrote: > qemu as used by xend/xm toolstack uses a different subvendor id. > Bind the drm driver also to this emulated card. > > Signed-off-by: Olaf Hering > --- > drivers/gpu/drm/cirrus/cirrus_drv.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: PATCH[[vme/bridges/vme_ca91cx42.c:1382: Bad if test Bug Fix]‏

2014-06-11 Thread gre...@linuxfoundation.org
On Thu, Jun 12, 2014 at 04:17:36AM +, Nick Krause wrote: > Here is the fixed patch as per Greg's recommendations. Unforunalty my email > client removes tabs so I will have to be sending it as a patch file if that's > Ok. > Nick HTML is rejected by the mailing lists, and we can't take a base64

Re: [PATCH v2 01/10] DMA, CMA: clean-up log message

2014-06-11 Thread Minchan Kim
Hi Joonsoo, On Thu, Jun 12, 2014 at 12:21:38PM +0900, Joonsoo Kim wrote: > We don't need explicit 'CMA:' prefix, since we already define prefix > 'cma:' in pr_fmt. So remove it. > > And, some logs print function name and others doesn't. This looks > bad to me, so I unify log format to print

[PATCH v1] fs2dt: Refine kdump device_tree sort

2014-06-11 Thread Wei.Yang
From: Yang Wei The commit b02d735bf was to rearrange the device-tree entries, and assumed that these entries are sorted in the ascending order. but acctually when I was validating kexec and kdump, the order of serial node still is changed. We should not only compare the length of directory name,

Re: [PATCH v2 04/10] DMA, CMA: support alignment constraint on cma region

2014-06-11 Thread Aneesh Kumar K.V
Joonsoo Kim writes: > ppc kvm's cma area management needs alignment constraint on > cma region. So support it to prepare generalization of cma area > management functionality. > > Additionally, add some comments which tell us why alignment > constraint is needed on cma region. > > Signed-off-by:

Re: [PATCH v2 03/10] DMA, CMA: separate core cma management codes from DMA APIs

2014-06-11 Thread Aneesh Kumar K.V
Joonsoo Kim writes: > To prepare future generalization work on cma area management code, > we need to separate core cma management codes from DMA APIs. > We will extend these core functions to cover requirements of > ppc kvm's cma area management functionality in following patches. > This

Re: [PATCH v2 02/10] DMA, CMA: fix possible memory leak

2014-06-11 Thread Aneesh Kumar K.V
Joonsoo Kim writes: > We should free memory for bitmap when we find zone mis-match, > otherwise this memory will leak. > > Additionally, I copy code comment from ppc kvm's cma code to notify > why we need to check zone mis-match. > > Signed-off-by: Joonsoo Kim Reviewed-by: Aneesh Kumar K.V >

Re: [PATCH v2 01/10] DMA, CMA: clean-up log message

2014-06-11 Thread Aneesh Kumar K.V
Joonsoo Kim writes: > We don't need explicit 'CMA:' prefix, since we already define prefix > 'cma:' in pr_fmt. So remove it. > > And, some logs print function name and others doesn't. This looks > bad to me, so I unify log format to print function name consistently. > > Lastly, I add one more

Re: [GIT PULL] MMC updates for 3.16-rc1

2014-06-11 Thread Linus Torvalds
On Tue, Jun 10, 2014 at 2:50 PM, Linus Torvalds wrote: > > Also, that new drivers/mmc/host/usdhi6rol0.c driver is one f*cking > noisy compile, and knisr certainly has never been tested in a 64-bit > environment. Please either fix it, or make it depend on BROKEN. Guys? Seriously, if that driver

Re: [PATCH v2 1/2] usb: ehci-exynos: Make provision for vdd regulators

2014-06-11 Thread Jingoo Han
On Thursday, June 12, 2014 12:39 AM, Alan Stern wrote: > On Fri, 6 Jun 2014, Vivek Gautam wrote: > > > Facilitate getting required 3.3V and 1.0V VDD supply for > > EHCI controller on Exynos. > > > > With patches for regulators' nodes merged in 3.15: > > c8c253f ARM: dts: Add regulator entries to

linux-next: manual merge of the target-updates tree with the virtio tree

2014-06-11 Thread Stephen Rothwell
Hi Nicholas, Today's linux-next merge of the target-updates tree got a conflict in drivers/scsi/virtio_scsi.c between commit c77fba9ab058 ("virtio_scsi: don't call virtqueue_add_sgs(... GFP_NOIO) holding spinlock") from the virtio tree and commit e6dc783a38ec ("virtio-scsi: Enable DIF/DIX modes

random: Benchamrking fast_mix2

2014-06-11 Thread George Spelvin
> I redid my numbers, and I can no longer reproduce the 7x slowdown. I > do see that if you compile w/o -O2, fast_mix2 is twice as slow. But > it's not 7x slower. For my single-round, I needed to drop to 2 loops rather than 3 to match the speed. That's in the source I posted, but I didn't

Re: [PATCH 1/4] spi: qup: Remove chip select function

2014-06-11 Thread Andy Gross
On Mon, May 19, 2014 at 11:07:38AM +0300, Ivan T. Ivanov wrote: > > +- num-cs: total number of chipselects > > My understanding is that "num-cs" have to be parsed by > master driver, not by core SPI driver. Right. I need to parse it and check vs the max cs and use that value to set the

Re: PATCH[vme/bridges/vme_ca91cx42.c:1382: Bad if test Bug Fix]

2014-06-11 Thread gre...@linuxfoundation.org
On Thu, Jun 12, 2014 at 03:44:34AM +, Nick Krause wrote: > Hey Fellow Developers, > This is my first patch so if there are any errors please reply as i will > fix them. Below is the patch. > -- drivers/vme/bridges/vme_ca91cx42.h.orig    2014-06-11 22:50:29.339671939 > -0400 > +++

PATCH[vme/bridges/vme_ca91cx42.c:1382: Bad if test Bug Fix]

2014-06-11 Thread Nick Krause
Hey Fellow Developers, This is my first patch so if there are any errors please reply as i will fix them. Below is the patch. -- drivers/vme/bridges/vme_ca91cx42.h.orig    2014-06-11 22:50:29.339671939 -0400 +++ drivers/vme/bridges/vme_ca91cx42.h    2014-06-11 23:15:36.027685173 -0400 @@ -526,7

Re: [net/ipvs] BUG: unable to handle kernel NULL pointer dereference at 00000004

2014-06-11 Thread Simon Horman
On Wed, Jun 11, 2014 at 04:34:19PM +0800, Jet Chen wrote: > On 06/11/2014 01:59 PM, Julian Anastasov wrote: > > > > Hello, > > > > On Wed, 11 Jun 2014, Jet Chen wrote: > > > >> Hi Wensong, > >> > >> 0day kernel testing robot got the below dmesg. > >> > >>

Re: drivers/char/random.c: More futzing about

2014-06-11 Thread George Spelvin
Just to add to my total confusion about the totally disparate performance numbers we're seeing, I did some benchmarks on other machines. The speedup isn't as good one-pass as it is iterated, and as I mentioned it's slower on a P4, but it's not 7 times slower by any stretch. There are all

linux-next: manual merge of the virtio tree with Linus' tree

2014-06-11 Thread Stephen Rothwell
Hi Rusty, Today's linux-next merge of the virtio tree got a conflict in drivers/scsi/virtio_scsi.c between commit b54197c43db8 ("virtio_scsi: use cmd_size") from Linus' tree and commit c77fba9ab058 ("virtio_scsi: don't call virtqueue_add_sgs(... GFP_NOIO) holding spinlock") from the virtio tree.

Re: [PATCH ftrace/core 0/2] ftrace, kprobes: Introduce IPMODIFY flag for ftrace_ops to detect conflicts

2014-06-11 Thread Namhyung Kim
Hi Josh, On Wed, 11 Jun 2014 11:58:26 -0500, Josh Poimboeuf wrote: > On Tue, Jun 10, 2014 at 10:50:01AM +, Masami Hiramatsu wrote: >> Hi, >> >> Here is a pair of patches which introduces IPMODIFY flag for >> ftrace_ops to detect conflicts of ftrace users who can modify >> regs->ip in their

Re: [patch V4 02/10] rtmutex: Simplify rtmutex_slowtrylock()

2014-06-11 Thread Lai Jiangshan
On 06/12/2014 02:44 AM, Thomas Gleixner wrote: > Oleg noticed that rtmutex_slowtrylock() has a pointless check for > rt_mutex_owner(lock) != current. > > To avoid calling try_to_take_rtmutex() we really want to check whether > the lock has an owner at all or whether the trylock failed because the

Re: [PATCH ftrace/core 2/2] ftrace, kprobes: Support IPMODIFY flag to find IP modify conflict

2014-06-11 Thread Masami Hiramatsu
(2014/06/11 16:41), Namhyung Kim wrote: > Hi Masami, > > On Wed, 11 Jun 2014 10:28:01 +0900, Masami Hiramatsu wrote: >> (2014/06/10 22:53), Namhyung Kim wrote: >>> Hi Masami, >>> >>> 2014-06-10 (화), 10:50 +, Masami Hiramatsu: Introduce FTRACE_OPS_FL_IPMODIFY to avoid conflict among

RE: Hello

2014-06-11 Thread Zellmann, Wayne P.
$2M was Donated to you. Please contact Pedro via pedroquezada...@qq.com-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

RE: [patch 11/13] wireless: mwifiex: Use the proper interfaces

2014-06-11 Thread Bing Zhao
Hi Thomas, Thanks for your patch. > Why is converting time formats so desired if there are proper > interfaces for this? > > Signed-off-by: Thomas Gleixner > Cc: Bing Zhao > Cc: "John W. Linville" > Cc: linux-wirel...@vger.kernel.org [...] > Index: linux/drivers/net/wireless/mwifiex/main.c

Re: drivers/char/random.c: More futzing about

2014-06-11 Thread Theodore Ts'o
On Wed, Jun 11, 2014 at 08:32:49PM -0400, George Spelvin wrote: > Comparable, but slightly slower. Clearly, I need to do better. > And you can see the first-iteration effects clearly. Still, > noting *remotely* like 7x! I redid my numbers, and I can no longer reproduce the 7x slowdown. I do

[PATCH v2 08/10] mm, cma: clean-up cma allocation error path

2014-06-11 Thread Joonsoo Kim
We can remove one call sites for clear_cma_bitmap() if we first call it before checking error number. Signed-off-by: Joonsoo Kim diff --git a/mm/cma.c b/mm/cma.c index 1e1b017..01a0713 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -282,11 +282,12 @@ struct page *cma_alloc(struct cma *cma, int count,

[PATCH v2 10/10] mm, cma: use spinlock instead of mutex

2014-06-11 Thread Joonsoo Kim
Currently, we should take the mutex for manipulating bitmap. This job may be really simple and short so we don't need to sleep if contended. So I change it to spinlock. Signed-off-by: Joonsoo Kim diff --git a/mm/cma.c b/mm/cma.c index 22a5b23..3085e8c 100644 --- a/mm/cma.c +++ b/mm/cma.c @@

[PATCH v2 00/10] CMA: generalize CMA reserved area management code

2014-06-11 Thread Joonsoo Kim
Currently, there are two users on CMA functionality, one is the DMA subsystem and the other is the kvm on powerpc. They have their own code to manage CMA reserved area even if they looks really similar. >From my guess, it is caused by some needs on bitmap management. Kvm side wants to maintain

[PATCH v2 09/10] mm, cma: move output param to the end of param list

2014-06-11 Thread Joonsoo Kim
Conventionally, we put output param to the end of param list. cma_declare_contiguous() doesn't look like that, so change it. Additionally, move down cma_areas reference code to the position where it is really needed. Signed-off-by: Joonsoo Kim diff --git a/arch/powerpc/kvm/book3s_hv_builtin.c

[PATCH v2 06/10] CMA: generalize CMA reserved area management functionality

2014-06-11 Thread Joonsoo Kim
Currently, there are two users on CMA functionality, one is the DMA subsystem and the other is the kvm on powerpc. They have their own code to manage CMA reserved area even if they looks really similar. >From my guess, it is caused by some needs on bitmap management. Kvm side wants to maintain

[PATCH v2 07/10] PPC, KVM, CMA: use general CMA reserved area management framework

2014-06-11 Thread Joonsoo Kim
Now, we have general CMA reserved area management framework, so use it for future maintainabilty. There is no functional change. Acked-by: Michal Nazarewicz Acked-by: Paolo Bonzini Signed-off-by: Joonsoo Kim diff --git a/arch/powerpc/kvm/book3s_hv_builtin.c

[PATCH v2 05/10] DMA, CMA: support arbitrary bitmap granularity

2014-06-11 Thread Joonsoo Kim
ppc kvm's cma region management requires arbitrary bitmap granularity, since they want to reserve very large memory and manage this region with bitmap that one bit for several pages to reduce management overheads. So support arbitrary bitmap granularity for following generalization.

[PATCH v2 04/10] DMA, CMA: support alignment constraint on cma region

2014-06-11 Thread Joonsoo Kim
ppc kvm's cma area management needs alignment constraint on cma region. So support it to prepare generalization of cma area management functionality. Additionally, add some comments which tell us why alignment constraint is needed on cma region. Signed-off-by: Joonsoo Kim diff --git

[PATCH v2 03/10] DMA, CMA: separate core cma management codes from DMA APIs

2014-06-11 Thread Joonsoo Kim
To prepare future generalization work on cma area management code, we need to separate core cma management codes from DMA APIs. We will extend these core functions to cover requirements of ppc kvm's cma area management functionality in following patches. This separation helps us not to touch DMA

[PATCH v2 02/10] DMA, CMA: fix possible memory leak

2014-06-11 Thread Joonsoo Kim
We should free memory for bitmap when we find zone mis-match, otherwise this memory will leak. Additionally, I copy code comment from ppc kvm's cma code to notify why we need to check zone mis-match. Signed-off-by: Joonsoo Kim diff --git a/drivers/base/dma-contiguous.c

[PATCH v2 01/10] DMA, CMA: clean-up log message

2014-06-11 Thread Joonsoo Kim
We don't need explicit 'CMA:' prefix, since we already define prefix 'cma:' in pr_fmt. So remove it. And, some logs print function name and others doesn't. This looks bad to me, so I unify log format to print function name consistently. Lastly, I add one more debug log on cma_activate_area().

Re: [PATCH 5/7 v7] trace, RAS: Add eMCA trace event interface

2014-06-11 Thread Chen, Gong
On Wed, Jun 11, 2014 at 09:02:15PM +0200, Borislav Petkov wrote: > > +EXPORT_SYMBOL_GPL(cper_mem_err_pack); > > Why do we export this one and the one below? What .config warrants this? > > CONFIG_ACPI_EXTLOG=m doesn't need them, AFAICT. > Right. acpi_extlog doesn't use it. They can be exported

Re: [PULL] modules-next

2014-06-11 Thread Rusty Russell
Mark Brown writes: > On Wed, Jun 11, 2014 at 03:03:47PM +0930, Rusty Russell wrote: > >> drivers/regulator/virtual: avoid world-writable sysfs files. > > Acked-by: Mark Brown > > if you need to respin - please do send patches to maintainers. If the address in drivers/regulator/virtual.c

[PULL] virtio-next

2014-06-11 Thread Rusty Russell
The following changes since commit ec6931b281797b69e6cf109f9cc94d5a2bf994e0: word-at-a-time: avoid undefined behaviour in zero_bytemask macro (2014-04-27 15:20:05 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux.git

Re: console: lockup on boot

2014-06-11 Thread Sasha Levin
On 06/11/2014 05:31 PM, Jan Kara wrote: > On Wed 11-06-14 22:34:36, Jan Kara wrote: >> > On Wed 11-06-14 10:55:55, Sasha Levin wrote: >>> > > On 06/10/2014 11:59 AM, Peter Hurley wrote: > > > On 06/06/2014 03:05 PM, Sasha Levin wrote: > > > >> On 05/30/2014 10:07 AM, Jan Kara wrote:

Re: timekeeping: exiting task with held timekeeping locks

2014-06-11 Thread Sasha Levin
d on the following spew: >> > >> > [ 3460.136058] = >> > [ 3460.138017] [ BUG: trinity-c70/27193 still has locks held! ] >> > [ 3460.141491] 3.15.0-next-20140611-sasha-00022-g9466d2f-dirty #638 Not >> > tainted >> > [ 34

Re: BUG: Bad page state in process swapper pfn:00000

2014-06-11 Thread Laura Abbott
On 6/11/2014 12:19 PM, Geert Uytterhoeven wrote: > Hi Laura, > > On Wed, Jun 11, 2014 at 7:32 PM, Laura Abbott wrote: >> On 6/11/2014 4:40 AM, Geert Uytterhoeven wrote: >>> With current mainline, I get an early crash on r8a7791/koelsch: >>> >>> BUG: Bad page state in process swapper pfn:0

[PATCH v2] sctp: Fix sk_ack_backlog wrap-around problem

2014-06-11 Thread Xufeng Zhang
Consider the scenario: For a TCP-style socket, while processing the COOKIE_ECHO chunk in sctp_sf_do_5_1D_ce(), after it has passed a series of sanity check, a new association would be created in sctp_unpack_cookie(), but afterwards, some processing maybe failed, and sctp_association_free() will be

Re: [RFC PATCH] nouveau: rename aux.c to auxiliary.c for reviewing it on Windows

2014-06-11 Thread Lai Jiangshan
On 06/11/2014 04:24 PM, Borislav Petkov wrote: > On Wed, Jun 11, 2014 at 03:53:55PM +0800, Lai Jiangshan wrote: >> When I tried to review the linux kernel on Windows in my laptop >> and incidentally found that it failed to open the aux.c. >> >> And Microsoft tells me: >>

Re: Proposal to realize hot-add *several sections one time*

2014-06-11 Thread Zhang Zhen
On 2014/6/12 6:08, David Rientjes wrote: > On Wed, 11 Jun 2014, Zhang Zhen wrote: > >> Hi, >> >> Now we can hot-add memory by >> >> % echo start_address_of_new_memory > /sys/devices/system/memory/probe >> >> Then, [start_address_of_new_memory, start_address_of_new_memory + >> memory_block_size]

Re: [RFC PATCH] nouveau: rename aux.c to auxiliary.c for reviewing it on Windows

2014-06-11 Thread Lai Jiangshan
On 06/11/2014 04:24 PM, Borislav Petkov wrote: > On Wed, Jun 11, 2014 at 03:53:55PM +0800, Lai Jiangshan wrote: >> When I tried to review the linux kernel on Windows in my laptop >> and incidentally found that it failed to open the aux.c. >> >> And Microsoft tells me: >>

Re: [RFC PATCH 09/10] mm, compaction: try to capture the just-created high-order freepage

2014-06-11 Thread Minchan Kim
On Wed, Jun 11, 2014 at 04:56:49PM +0200, Vlastimil Babka wrote: > On 06/09/2014 11:26 AM, Vlastimil Babka wrote: > > Compaction uses watermark checking to determine if it succeeded in creating > > a high-order free page. My testing has shown that this is quite racy and it > > can happen that

Re: [PATCH 12/14] block: Add specific data integrity errors

2014-06-11 Thread Martin K. Petersen
> "Christoph" == Christoph Hellwig writes: >> Introduce a set of error codes that can be used by the block >> integrity subsystem to signal which class of error was encountered by >> either the I/O controller or the storage device. Christoph> I'd also love to see something catching these so

linux-next: build failure after merge of the net-next tree

2014-06-11 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: net/bridge/br_multicast.c: In function 'br_multicast_has_querier_adjacent': net/bridge/br_multicast.c:2248:25: error: 'struct net_bridge' has no member named 'ip6_other_query' if

Re: [PATCH v2] powerpc: Avoid circular dependency with zImage.%

2014-06-11 Thread Mike Qiu
This v2 patch is good, Tested-by: Mike Qiu On 06/11/2014 11:40 PM, Michal Marek wrote: The rule to create the final images uses a zImage.% pattern. Unfortunately, this also matches the names of the zImage.*.lds linker scripts, which appear as a dependency of the final images. This somehow

Re: [PATCH 1/2] sched: Rework migrate_tasks()

2014-06-11 Thread Mike Galbraith
On Wed, 2014-06-11 at 23:33 +0400, Kirill Tkhai wrote: > В Ср, 11/06/2014 в 17:43 +0400, Kirill Tkhai пишет: > > > > 11.06.2014, 17:15, "Srikar Dronamraju" : > > >>> * Kirill Tkhai [2014-06-11 13:52:10]: > > Currently migrate_tasks() skips throttled tasks, > > because they are

linux-next: manual merge of the net-next tree with Linus' tree

2014-06-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in drivers/infiniband/hw/cxgb4/cm.c between commits 11b8e22d4d09 ("RDMA/cxgb4: Fix vlan support") and 9eccfe109b27 ("RDMA/cxgb4: Add support for iWARP Port Mapper user space service") from Linus' tree and commits 92e7ae71726c

Re: [PATCH v5 4/4] drivers: net: Add APM X-Gene SoC ethernet driver support.

2014-06-11 Thread Iyappan Subramanian
On Thu, Jun 5, 2014 at 12:45 AM, David Miller wrote: > From: Iyappan Subramanian > Date: Mon, 2 Jun 2014 12:39:14 -0700 > >> + netdev_err(ndev, "LERR: %d ring_num: %d ", status, ring->num); >> + switch (status) { >> + case HBF_READ_DATA: >> + netdev_err(ndev, "HBF read

Re: drivers/char/random.c: More futzing about

2014-06-11 Thread George Spelvin
> Sadly I can't find the tree, but I'm 94% sure it was Skein-256 > (specifically the SHA3-256 candidate parameter set.) It would be nice to have two hash functions, optimized separately for 32- and 64-bit processors. As the Skein report says, the algorithm can be adapted to 32 bits easily

[PATCH] Input: evdev - Fix incorrect kfree of err_free_client after vzalloc

2014-06-11 Thread Yongtaek Lee
This bug was introduced by commit 92eb77d ("Input: evdev - fall back to vmalloc for client event buffer"). vzalloc is used to alloc memory as fallback in case of failure of kzalloc. But err_free_client was not considered on below case. 1. kzalloc fail 2. vzalloc success 3. evdev_open_device fail

Re: [PATCH v2 2/3] lib: glob.c: Add CONFIG_GLOB_SELFTEST

2014-06-11 Thread George Spelvin
>> Persuading GCC to throw away *all* the self-test data after running >> it was surprisingly annoying. > > Yeah. Props for making the attempt. *Whew*. I was worried I'd get upbraided for overoptimziation. >> The one thing I'm not really sure about is what to do if the self-test >> fails. For

Re: [RFC PATCH 4/5] kernel/rcu/tree.c:3435 fix a sparse warning

2014-06-11 Thread Pranith Kumar
On Wed, Jun 11, 2014 at 5:25 PM, wrote: > On Wed, Jun 11, 2014 at 04:39:42PM -0400, Pranith Kumar wrote: >> kernel/rcu/tree.c:3435:21: warning: incorrect type in argument 1 (different >> modifiers) >> kernel/rcu/tree.c:3435:21:expected int ( *threadfn )( ... ) >> kernel/rcu/tree.c:3435:21:

Re: [PATCH v11 09/16] qspinlock, x86: Allow unfair spinlock in a virtual guest

2014-06-11 Thread Long, Wai Man
On 6/11/2014 6:54 AM, Peter Zijlstra wrote: On Fri, May 30, 2014 at 11:43:55AM -0400, Waiman Long wrote: Enabling this configuration feature causes a slight decrease the performance of an uncontended lock-unlock operation by about 1-2% mainly due to the use of a static key. However,

Re: [PATCH] sctp: Fix sk_ack_backlog wrap-around problem

2014-06-11 Thread Xufeng Zhang
On 06/12/2014 12:55 AM, Vlad Yasevich wrote: On 06/11/2014 08:55 AM, Vlad Yasevich wrote: On 06/10/2014 10:37 PM, Xufeng Zhang wrote: Consider the scenario: For a TCP-style socket, while processing the COOKIE_ECHO chunk in sctp_sf_do_5_1D_ce(), after it has passed a series of sanity

Re: [RFC 0/5] of: Automatic console registration cleanups

2014-06-11 Thread Rob Herring
On Fri, Mar 28, 2014 at 11:08 AM, Grant Likely wrote: > Hi all, > > This is a series that I've been playing with over the last few days to > clean up the selection of default console devices when using the device > tree. The device tree defines a way of specifying the console by using a >

Re: [PATCH v2 3/4] mutex: Try to acquire mutex only if it is unlocked

2014-06-11 Thread Long, Wai Man
On 6/11/2014 2:37 PM, Jason Low wrote: Upon entering the slowpath in __mutex_lock_common(), we try once more to acquire the mutex. We only try to acquire if (lock->count >= 0). However, what we actually want here is to try to acquire if the mutex is unlocked (lock->count == 1). This patch

Re: [PATCH v2 2/4] mutex: Delete the MUTEX_SHOW_NO_WAITER macro

2014-06-11 Thread Long, Wai Man
On 6/11/2014 2:37 PM, Jason Low wrote: v1->v2: - There were discussions in v1 about a possible mutex_has_waiters() function. This patch didn't use that function because the places which used MUTEX_SHOW_NO_WAITER requires checking for lock->count while an actual mutex_has_waiters()

Re: [Patch v5.1 03/03]: hwrng: khwrngd derating per device

2014-06-11 Thread H. Peter Anvin
On 05/27/2014 07:11 AM, Torsten Duwe wrote: > [checkpatch tells me not to 0-init...] > > This patch introduces a derating factor to struct hwrng for > the random bits going into the kernel input pool, and a common > default derating for drivers which do not specify one. > > Signed-off-by:

Re: [RFC PATCH 1/3] locking/mutex: Try to acquire mutex only if it is unlocked

2014-06-11 Thread Long, Wai Man
On 6/11/2014 5:48 PM, Jason Low wrote: On Wed, 2014-06-11 at 17:00 -0400, Long, Wai Man wrote: On 6/9/2014 1:38 PM, Jason Low wrote: On Wed, 2014-06-04 at 13:58 -0700, Davidlohr Bueso wrote: On Wed, 2014-06-04 at 13:57 -0700, Davidlohr Bueso wrote: In addition, how about the following

Proposal.

2014-06-11 Thread Gogna
I have a proposal for you. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 1/1] xhci: clear root port wake on bits if controller isn't wake-up capable

2014-06-11 Thread baolu
On 06/11/2014 11:26 PM, Greg Kroah-Hartman wrote: On Wed, Jun 11, 2014 at 06:25:20AM +0800, Lu Baolu wrote: When the xHCI PCI host is suspended, if do_wakeup is false in xhci_pci_suspend, xhci_bus_suspend needs to clear all root port wake on bits. Otherwise some Intel platform may get a

Re: Possible netns creation and execution performance/scalability regression since v3.8 due to rcu callbacks being offloaded to multiple cpus

2014-06-11 Thread Rafael Tinoco
Ok, some misconfiguration here probably, never mind. I'll finish the tests tomorrow, compare with existent ones and let you know asap. Tks. On Wed, Jun 11, 2014 at 10:09 PM, Eric W. Biederman wrote: > Rafael Tinoco writes: > >> I'm getting a kernel panic with your patch: >> >> -- panic >> --

Re: Possible netns creation and execution performance/scalability regression since v3.8 due to rcu callbacks being offloaded to multiple cpus

2014-06-11 Thread Eric W. Biederman
Rafael Tinoco writes: > I'm getting a kernel panic with your patch: > > -- panic > -- mount_block_root > -- mount_root > -- prepare_namespace > -- kernel_init_freeable > > It is giving me an unknown block device for the same config file i > used on other builds. Since my test is running on a kvm

Re: [PATCH 1/2] tracing: Fix memory leak on failure path in ftrace_allocate_pages()

2014-06-11 Thread Namhyung Kim
Hi Steve, On Wed, 11 Jun 2014 10:03:40 -0400, Steven Rostedt wrote: > On Wed, 11 Jun 2014 17:06:53 +0900 > Namhyung Kim wrote: > >> As struct ftrace_page is managed in a single linked list, it should >> free from the start page. >> >> Signed-off-by: Namhyung Kim >> --- >>

Re: rtc/hctosys.c Problem during kernel boot

2014-06-11 Thread John Whitmore
On Wed, Jun 11, 2014 at 04:53:55PM -0700, John Stultz wrote: > On Wed, Jun 11, 2014 at 4:01 PM, John Whitmore wrote: > > I'm having a problem with a DS3234 SPI based RTC chip and rtc/hctosys.c on > > the > > 3.10.29 kernel of the RaspberryPi. I'm not sure this is a bug or not but > > thought I'd

Re: [PATCH 3/3] perf timechart: add more options to IO mode

2014-06-11 Thread Namhyung Kim
On Tue, 10 Jun 2014 19:04:54 +0400, Stanislav Fomichev wrote: > --io-skip-eagain - don't show EAGAIN errors > --io-min-time- make small io bursts visible > --io-merge-dist - merge adjacent events > > Signed-off-by: Stanislav Fomichev > --- > tools/perf/Documentation/perf-timechart.txt | 9

Re: drivers/char/random.c: more ruminations

2014-06-11 Thread H. Peter Anvin
On 06/11/2014 06:11 AM, Theodore Ts'o wrote: > On Tue, Jun 10, 2014 at 11:58:06PM -0400, George Spelvin wrote: >> You can forbid underflows, but the code doesn't forbid overflows. >> >> 1. Assume the entropy count starts at 512 bytes (input pool full) >> 2. Random writer mixes in 20 bytes of

Re: [PATCH 1/3] perf timechart: implement IO mode

2014-06-11 Thread Namhyung Kim
Hi Stanislav, On Tue, 10 Jun 2014 19:04:52 +0400, Stanislav Fomichev wrote: > In IO mode timechart shows any disk/network activity. [SNIP] > +Record system-wide IO events: > + > + $ perf timechart record -I I got a segfault here: Core was generated by `perf timechart record -I'. Program

Re: [PATCH v6] NVMe: conversion to blk-mq

2014-06-11 Thread Ming Lei
On Mon, Jun 9, 2014 at 6:40 PM, Ming Lei wrote: > The root cause is that device returns > NVME_INTERNAL_DEV_ERROR(0x6) with your conversion > patch. The above problem is caused by qemu not handling -EAGAIN from io_submit(), so please ignore the report. Thanks, -- Ming Lei -- To unsubscribe

Re: [PATCH] of: Add vendor 2nd prefix for Asahi Kasei Corp

2014-06-11 Thread Simon Horman
On Wed, Jun 11, 2014 at 05:53:02PM -0700, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > Current vendor-prefixes.txt already has > "ak" prefix for Asahi Kasei Corp by > ae8c4209af2cec065fef15d200a42a04130799f7 > (of: Add vendor prefix for Asahi Kasei Corp.) > > It went through the

[tip:x86/mm] x86/smep: Be more informative when signalling an SMEP fault

2014-06-11 Thread tip-bot for Jiri Kosina
Commit-ID: eff50c347fcc8feeb8c1723c23c89aba67c60263 Gitweb: http://git.kernel.org/tip/eff50c347fcc8feeb8c1723c23c89aba67c60263 Author: Jiri Kosina AuthorDate: Tue, 10 Jun 2014 22:49:31 +0200 Committer: H. Peter Anvin CommitDate: Wed, 11 Jun 2014 17:55:30 -0700 x86/smep: Be more

Re: NTB driver support in haswell platform?

2014-06-11 Thread Yijing Wang
Hi Jon, Thanks for your detailed explanation. Now I have a clearer understanding of it. Thanks! :) Yijing. On 2014/6/12 1:18, Jon Mason wrote: > On Wed, Jun 11, 2014 at 05:03:38PM +0800, Yijing Wang wrote: >> Hi Jon, >>I have a Intel Haswell platform in hand, and our team want to use NTB in

[PATCH] of: Add vendor 2nd prefix for Asahi Kasei Corp

2014-06-11 Thread Kuninori Morimoto
From: Kuninori Morimoto Current vendor-prefixes.txt already has "ak" prefix for Asahi Kasei Corp by ae8c4209af2cec065fef15d200a42a04130799f7 (of: Add vendor prefix for Asahi Kasei Corp.) It went through the appropriate review process, and is already in use. But, almost all Asahi Kasei chip

[patch v3] mm, pcp: allow restoring percpu_pagelist_fraction default

2014-06-11 Thread David Rientjes
Oleg reports a division by zero error on zero-length write() to the percpu_pagelist_fraction sysctl: divide error: [#1] SMP DEBUG_PAGEALLOC CPU: 1 PID: 9142 Comm: badarea_io Not tainted 3.15.0-rc2-vm-nfs+ #19 Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011

Re: drivers/char/random.c: More futzing about

2014-06-11 Thread H. Peter Anvin
On 06/11/2014 01:41 PM, H. Peter Anvin wrote: > On 06/11/2014 12:25 PM, Theodore Ts'o wrote: >> On Wed, Jun 11, 2014 at 09:48:31AM -0700, H. Peter Anvin wrote: >>> While talking about performance, I did a quick prototype of random using >>> Skein instead of SHA-1, and it was measurably faster, in

Re: drivers/char/random.c: more ruminations

2014-06-11 Thread George Spelvin
> It's not something where if the changes required massive changes, that > I'd necessarily feel the need to backport them to stable. It's a > certificational weakness, but it's a not disaster. Agreed! It's been there for years, and I'm not too worried. It takes a pretty tight race to cause the

linux-next: manual merge of the samsung tree with Linus' tree

2014-06-11 Thread Stephen Rothwell
Hi Kukjin, Today's linux-next merge of the samsung tree got a conflict in arch/arm/mach-exynos/sleep.S between commit 25a9ef63cd2b ("ARM: l2c: exynos: convert to common l2c310 early resume functionality") from Linus' tree and commit af728bd84cc8 ("ARM: EXYNOS: Fix build error with thumb2") from

  1   2   3   4   5   6   7   8   9   10   >