[PATCH] net: ll_temac: Fix DMA map size bug

2015-05-11 Thread Michal Simek
DMA allocates skb->len instead of headlen which is used for DMA. Signed-off-by: Michal Simek --- drivers/net/ethernet/xilinx/ll_temac_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c

Re: [PATCH v9 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-05-11 Thread Dave Young
On 05/11/15 at 12:11pm, Joerg Roedel wrote: > On Thu, May 07, 2015 at 09:56:00PM +0800, Dave Young wrote: > > Joreg, I can not find the last reply from you, so just reply here about > > my worries here. > > > > I said that the patchset will cause more problems, let me explain about > > it more

Re: [PATCH v6 0/6] arm64: Add kernel probes (kprobes) support

2015-05-11 Thread David Long
On 05/05/15 11:48, Will Deacon wrote: On Tue, May 05, 2015 at 06:14:51AM +0100, David Long wrote: On 05/01/15 21:44, William Cohen wrote: Dave Long and I did some additional experimentation to better understand what is condition causes the kernel to sometimes spew: Unexpected kernel

Re: VERIFY_READ/WRITE in uaccess.h?

2015-05-11 Thread H. Peter Anvin
On 05/11/2015 02:42 PM, Linus Torvalds wrote: > > That one - for the same reasons - also checked the actual accesses, > not just that the range was in user mode. Exactly because it needed to > pre-COW the pages (even if that was then obviously racy in threaded > environments - in practice it

Re: [PATCH v3 05/11] scatterlist: use sg_phys()

2015-05-11 Thread Dan Williams
On Mon, May 11, 2015 at 10:24 PM, Julia Lawall wrote: > > > On Tue, 12 May 2015, Dan Williams wrote: > >> Coccinelle cleanup to replace open coded sg to physical address >> translations. This is in preparation for introducing scatterlists that >> reference pfn(s) without a backing struct page.

Re: [v2 0/5] arm64: add kdump support

2015-05-11 Thread Dave Young
On 05/11/15 at 03:16pm, AKASHI Takahiro wrote: > Hi > > Sorry for late response. I was on vacation. > > On 04/24/2015 06:53 PM, Mark Rutland wrote: > >Hi, > > > >On Fri, Apr 24, 2015 at 08:53:03AM +0100, AKASHI Takahiro wrote: > >>This patch set enables kdump (crash dump kernel) support on arm64

Re: xfs: does mkfs.xfs require fancy switches to get decent performance? (was Tux3 Report: How fast can we fsync?)

2015-05-11 Thread Dave Chinner
On Mon, May 11, 2015 at 07:34:34PM -0700, Daniel Phillips wrote: > Anyway, everybody but you loves competitive benchmarks, that is why I I think Ted and I are on the same page here. "Competitive benchmarks" only matter to the people who are trying to sell something. You're trying to sell Tux3,

Re: [RFC PATCH] iommu: add ARM short descriptor page table allocator.

2015-05-11 Thread Yong Wu
On Mon, 2015-05-11 at 11:40 +0100, Will Deacon wrote: > On Mon, May 11, 2015 at 11:13:09AM +0100, Joerg Roedel wrote: > > On Tue, May 05, 2015 at 06:05:41PM +0100, Will Deacon wrote: > > > I think the MT8173 IOMMU [1] uses this format and, since it's part of > > > the ARM architecture, the ARM

Re: [PATCH v3 05/11] scatterlist: use sg_phys()

2015-05-11 Thread Julia Lawall
On Tue, 12 May 2015, Dan Williams wrote: > Coccinelle cleanup to replace open coded sg to physical address > translations. This is in preparation for introducing scatterlists that > reference pfn(s) without a backing struct page. > > // sg_phys.cocci: convert usage page_to_phys(sg_page(sg))

Re: [PATCH v2] net: ll_temac: Use one return statement instead of two

2015-05-11 Thread Julia Lawall
On Mon, 11 May 2015, Joe Perches wrote: > On Mon, 2015-05-11 at 17:48 +0200, Julia Lawall wrote: > > > > A coccinelle script might be rather more complicated > > > > than the simpler grep above, but perhaps the script > > > > could be a bit more complete as it could likely look > > > > at more

Re: [PATCH 1/3] ARM: cache-l2c: Add flag to skip cache unlocking

2015-05-11 Thread Sjoerd Simons
On Mon, 2015-05-11 at 23:29 +0100, Russell King - ARM Linux wrote: > On Tue, May 12, 2015 at 12:17:29AM +0200, Sjoerd Simons wrote: > > extern struct outer_cache_fns outer_cache; > > diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c > > index e309c8f..fff7888 100644 > > ---

Re: [PATCH v5 0/6] arm64,hi6220: Enable Hisilicon Hi6220 SoC

2015-05-11 Thread Bintian
Hello Kevin, On 2015/5/12 11:05, Leo Yan wrote: hi Kevin, On Mon, May 11, 2015 at 05:20:54PM -0700, Kevin Hilman wrote: On Thu, May 7, 2015 at 4:11 PM, Brent Wang wrote: Hello Kevin, 2015-05-08 4:30 GMT+08:00 Kevin Hilman : Bintian Wang writes: Hi6220 is one mobile solution of

Re: [PATCH 3/5] workqueue: ensure attrs-changing be sequentially

2015-05-11 Thread Lai Jiangshan
On 05/11/2015 10:55 PM, Tejun Heo wrote: > Hey, > > Prolly a better subject is "ensure attrs changes are properly > synchronized" > > On Mon, May 11, 2015 at 05:35:50PM +0800, Lai Jiangshan wrote: >> Current modification to attrs via sysfs is not atomically. > >

Re: [PULL] LSM: Basic module stacking infrastructure for security-next - Acked

2015-05-11 Thread James Morris
On Fri, 8 May 2015, Casey Schaufler wrote: > James, here's an updated pull request for LSM stacking. > Acks have been applied. > > The following changes since commit b787f68c36d49bb1d9236f403813641efa74a031: > > Linux 4.1-rc1 (2015-04-26 17:59:10 -0700) > > are available in the git

linux-next: build failure after merge of the target-updates tree

2015-05-11 Thread Stephen Rothwell
g_lun_list[i]; ^ Caused by commit 731bbd790f79 ("target: Convert se_tpg->tpg_lun_list to ->tpg_lun_hlist") which doesn't seem to be complete? I have used the target-updates tree from next-20150511 for today. -- Cheers, Stephen Rothwells...@canb.auu

Re: [PATCH v12 00/21] Re-introduce h8300 architecture

2015-05-11 Thread Yoshinori Sato
At Mon, 11 May 2015 10:50:27 -0700, Guenter Roeck wrote: > > On Mon, May 11, 2015 at 03:26:19PM +0900, Yoshinori Sato wrote: > > Changes for v12 > > - IRQ chip convert to OF > > - dts cleanup > > - some headers use generic > > - rebase to v4.1-rc3 > > > Configurations in arch/h8300/configs

Re: xfs: does mkfs.xfs require fancy switches to get decent performance? (was Tux3 Report: How fast can we fsync?)

2015-05-11 Thread Daniel Phillips
Hi David, On 05/11/2015 05:12 PM, David Lang wrote: > On Mon, 11 May 2015, Daniel Phillips wrote: > >> On 05/11/2015 03:12 PM, Pavel Machek wrote: > It is a fact of life that when you change one aspect of an intimately > interconnected system, > something else will change as well.

[PATCH v3 04/11] dma-mapping: allow archs to optionally specify a ->map_pfn() operation

2015-05-11 Thread Dan Williams
This is in support of enabling block device drivers to perform DMA to/from persistent memory which may not have a backing struct page entry. Signed-off-by: Dan Williams --- arch/Kconfig |3 +++ include/asm-generic/dma-mapping-common.h | 30

[PATCH v3 03/11] block: convert .bv_page to .bv_pfn bio_vec

2015-05-11 Thread Dan Williams
Carry an __pfn_t in a bio_vec rather than a 'struct page *' in support of allowing a bio to reference unmapped (not struct page backed) persistent memory. This also fixes up the macros and static initializers that we were not automatically converted by the Coccinelle script that introduced the

[PATCH v3 02/11] block: add helpers for accessing a bio_vec page

2015-05-11 Thread Dan Williams
In preparation for converting struct bio_vec to carry a __pfn_t instead of struct page. This change is prompted by the desire to add in-kernel DMA support (O_DIRECT, hierarchical storage, RDMA, etc) for persistent memory which lacks struct page coverage. Alternatives: 1/ Provide struct page

Re: [PATCH 0/6] support "dataplane" mode for nohz_full

2015-05-11 Thread Mike Galbraith
On Tue, 2015-05-12 at 03:47 +0200, Mike Galbraith wrote: > On Mon, 2015-05-11 at 15:25 -0400, Chris Metcalf wrote: > > On 05/11/2015 03:19 PM, Mike Galbraith wrote: > > > I really shouldn't have acked nohz_full -> isolcpus. Beside the fact > > > that old static isolcpus was_supposed_ to crawl

[PATCH v3 10/11] dax: convert to __pfn_t

2015-05-11 Thread Dan Williams
The primary source for non-page-backed page-frames to enter the system is via the pmem driver's ->direct_access() method. The pfns returned by the top-level bdev_direct_access() may be passed to any other subsystem in the kernel and those sub-systems either need to assume that the pfn is page

[PATCH v3 09/11] block: convert kmap helpers to kmap_atomic_pfn_t()

2015-05-11 Thread Dan Williams
Convert the generic helpers to the __pfn_t version of kmap_atomic() in support of generically enabling "page-less" block i/o. Signed-off-by: Dan Williams --- include/linux/bio.h | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/linux/bio.h

[PATCH v3 07/11] x86: support dma_map_pfn()

2015-05-11 Thread Dan Williams
Fix up x86 dma_map_ops to allow pfn-only mappings. As long as a dma_map_sg() implementation uses the generic sg_phys() helpers it can support scatterlists that use __pfn_t instead of struct page. Signed-off-by: Dan Williams --- arch/x86/Kconfig |5 +

[PATCH v3 08/11] x86: support kmap_atomic_pfn_t() for persistent memory

2015-05-11 Thread Dan Williams
It would be unfortunate if the kmap infrastructure escaped its current 32-bit/HIGHMEM bonds and leaked into 64-bit code. Instead, if the user has enabled CONFIG_DEV_PFN we direct the kmap_atomic_pfn_t() implementation to scan a list of pre-mapped persistent memory address ranges inserted by the

[PATCH v3 11/11] block: base support for pfn i/o

2015-05-11 Thread Dan Williams
Allow block device drivers to opt-in to receiving bio(s) where the bio_vec(s) point to memory that is not backed by struct page entries. When a driver opts in it asserts that it will use the __pfn_t versions of the dma_map/kmap/scatterlist apis in its bio submission path. Cc: Tejun Heo Cc: Jens

[PATCH v3 06/11] scatterlist: support "page-less" (__pfn_t only) entries

2015-05-11 Thread Dan Williams
From: Matthew Wilcox Given that an offset will never be more than PAGE_SIZE, steal the unused bits of the offset to implement a flags field. Move the existing "this is a sg_chain() entry" flag to the new flags field, and add a new flag (SG_FLAGS_PAGE) to indicate that there is a struct page

[PATCH v3 05/11] scatterlist: use sg_phys()

2015-05-11 Thread Dan Williams
Coccinelle cleanup to replace open coded sg to physical address translations. This is in preparation for introducing scatterlists that reference pfn(s) without a backing struct page. // sg_phys.cocci: convert usage page_to_phys(sg_page(sg)) to sg_phys(sg) // usage: make coccicheck

[PATCH v3 01/11] arch: introduce __pfn_t for persistenti/device memory

2015-05-11 Thread Dan Williams
Introduce a type that encapsulates a page-frame-number that is optionally backed by memmap (struct page). This type will be used in place of 'struct page *' instances in contexts where device-backed memory (usually persistent memory) is being referenced (scatterlists for drivers, biovecs for the

[PATCH v3 00/11] evacuate struct page from the block layer, introduce __pfn_t

2015-05-11 Thread Dan Williams
Changes since v2 [1]: [1]: https://lwn.net/Articles/643437/ 1/ Linus pointed out that comparing a __pfn_t value against PAGE_OFFSET was both inefficient, when PAGE_OFFSET is a large constant, and incorrect for archs that set PAGE_OFFSET to zero. Instead, take advantage of the standard alignment

Re: [PATCH 1/2] clone: Support passing tls argument via C rather than pt_regs magic

2015-05-11 Thread Vineet Gupta
+CC Arnd, Al, linux-arch On Monday 11 May 2015 08:17 PM, Josh Triplett wrote: > On Mon, May 11, 2015 at 02:31:39PM +, Vineet Gupta wrote: >> On Tuesday 21 April 2015 11:17 PM, Josh Triplett wrote: >>> clone with CLONE_SETTLS accepts an argument to set the thread-local >>> storage area for the

Re: [RFC][PATCH] x86/hpet: fix NULL pointer dereference in msi_domain_alloc_irqs()

2015-05-11 Thread Sergey Senozhatsky
> directly call __irq_domain_alloc_irqs() in hpet_assign_irq() and pass > correct `arg' to fix the oops. > oh, what I was thinking about... it should be as simple as this. 8<-8<- >From 8be2eb548cefc788c87b05da22176b7360c6aca9 Mon Sep 17 00:00:00 2001 From: Sergey Senozhatsky Date:

Re: [PATCH v3 105/110] namei: make unlazy_walk and terminate_walk handle nd->stack, add unlazy_link

2015-05-11 Thread Al Viro
On Tue, May 12, 2015 at 12:43:33AM +0100, Al Viro wrote: > On Mon, May 11, 2015 at 07:08:05PM +0100, Al Viro wrote: > > +static bool legitimize_links(struct nameidata *nd) > > +{ > > + int i; > > + for (i = 0; i < nd->depth; i++) { > > + struct saved *last = nd->stack + i; > > +

Re: [PATCH RFC] vfs: add a O_NOMTIME flag

2015-05-11 Thread Kevin Easton
On Mon, May 11, 2015 at 07:10:21PM -0400, Theodore Ts'o wrote: > On Mon, May 11, 2015 at 09:24:09AM -0700, Sage Weil wrote: > > > Let me re-ask the question that I asked last week (and was apparently > > > ignored). Why not trying to use the lazytime feature instead of > > > pointing a head

Re: [PATCH 4.0 00/72] 4.0.3-stable review

2015-05-11 Thread Greg Kroah-Hartman
On Mon, May 11, 2015 at 05:40:28PM -0600, Shuah Khan wrote: > On 05/11/2015 11:54 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.0.3 release. > > There are 72 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [alsa-devel] [RFC PATCH 00/14] ASoC: qcom: add support to apq8016 audio

2015-05-11 Thread Kenneth Westfield
On Tue, May 05, 2015 at 11:54:16PM -0700, Srinivas Kandagatla wrote: > Hi Kenneth, > > On 06/05/15 06:47, Kenneth Westfield wrote: > >>> > >>>I will test the patches and let you know by Wednesday. Also, I posted > >>>some comments, but Patrick should be posting his comments separately > >>>later

Re: [PATCH 1/3 v6] dt/bindings: Add binding for the BCM2835 mailbox driver

2015-05-11 Thread Jassi Brar
On Wed, May 6, 2015 at 1:57 AM, Eric Anholt wrote: > From: Lubomir Rintel > > This patch was split out of Lubomir's original mailbox patch by Eric > Anholt, and the required properties documentation and examples have > been filled out more completely and updated for the driver being > changed to

Re: [PATCH v8 0/9] Tegra xHCI support

2015-05-11 Thread Jassi Brar
On Mon, May 4, 2015 at 11:06 PM, Andrew Bresticker wrote: > This series adds support for xHCI on NVIDIA Tegra SoCs. This includes: > - patches 1, 2, and 3: minor cleanups for mailbox framework and xHCI, > - patches 4 and 5: adding an MFD driver for the XUSB cmoplex, > - patches 6 and 7:

[PATCH] f2fs crypto: use inode number for xts_tweak

2015-05-11 Thread Jaegeuk Kim
Previoulsy when making xts_tweak, page->index was used. But, when it supports fcollapse, the block address was moved, so that we can lose the original page->index, which causes decrytion failure. In order to avoid that, let's use the inode->i_ino for xfs_tweak hint. Signed-off-by: Jaegeuk Kim

[PATCH 2/3] f2fs: do not issue next dnode discard redundantly

2015-05-11 Thread Jaegeuk Kim
We have a discard map, so that we can avoid redundant discard issues. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 2c40ce1..342e0f7 100644 --- a/fs/f2fs/segment.c

[PATCH 1/3] f2fs: disable the discard option when device does not support

2015-05-11 Thread Jaegeuk Kim
This patch disables given discard option when device does not support it. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index bd8a405..19438f2 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1186,6

[PATCH 3/3] f2fs: get rid of buggy function

2015-05-11 Thread Jaegeuk Kim
This patch avoids to use a buggy function for now. It needs to fix it later. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 342e0f7..17e89ba 100644 ---

Re: [PATCH 16/18 v2] f2fs crypto: add symlink encryption

2015-05-11 Thread Jaegeuk Kim
Chage log from v1: o split inode_operations suggested by Al This patch implements encryption support for symlink. Signed-off-by: Uday Savagaonkar Signed-off-by: Theodore Ts'o Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 1 + fs/f2fs/inode.c | 5 +- fs/f2fs/namei.c | 145

[PATCH perf/core ] perf probe: Show the error reason comes from invalid DSO

2015-05-11 Thread Masami Hiramatsu
Show the reason of error when dso__load* failed. This shows when user gives wrong kernel image or wrong path. Without this, perf probe shows an obscure message. $ perf probe -k ~/kbin/linux-3.x86_64/vmlinux -L vfs_read Failed to find path of kernel module. Error: Failed to show

[PATCH] staging: slicoss: remove slic_spinlock wrapper

2015-05-11 Thread David Matlack
As per TODO. This commit introduces no functional changes. Signed-off-by: David Matlack --- drivers/staging/slicoss/TODO | 1 - drivers/staging/slicoss/slic.h| 19 +++--- drivers/staging/slicoss/slicoss.c | 125 ++ 3 files changed, 65

[PATCH] staging: slicoss: fix occasionally writing out only half of a dma address

2015-05-11 Thread David Matlack
curaddrupper caches the last written upper 32-bits of a dma address (the device has one register for the upper 32-bits of all dma address registers). The problem is, not every dma address write checks and sets curaddrupper. This causes the driver to occasionally not write the upper 32-bits of a

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

2015-05-11 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) produced this warning: sound/drivers/pcsp/pcsp.c: In function 'snd_pcsp_create': sound/drivers/pcsp/pcsp.c:51:5: warning: format '%li' expects argument of type 'long int', but argument 2 has type 'unsigned int'

Re: [PATCH] check smap and !cr0.wp

2015-05-11 Thread Xiao Guangrong
Hi Paolo, Could you please apply this patch to kvm-unit-tests if it looks good to you? Thanks! On 05/07/2015 04:44 PM, Xiao Guangrong wrote: This test case is used to produce the bug that: KVM may turn a user page to a kernel page when kernel writes a readonly user page if CR0.WP = 1. This

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

2015-05-11 Thread Stephen Rothwell
r-to-int-cast] if (((u32)tfr->rx_buf % SZ_4K) + tfr->len > SZ_4K) { ^ Caused by commit 3ecd37edaa2a ("spi: bcm2835: enable dma modes for transfers meeting certain conditions"). I have used the spi tree from next-20150511 for today. -- Cheers, Stephen Rothwell

Re: [PATCH v5 0/6] arm64,hi6220: Enable Hisilicon Hi6220 SoC

2015-05-11 Thread Leo Yan
hi Kevin, On Mon, May 11, 2015 at 05:20:54PM -0700, Kevin Hilman wrote: > On Thu, May 7, 2015 at 4:11 PM, Brent Wang wrote: > > Hello Kevin, > > > > 2015-05-08 4:30 GMT+08:00 Kevin Hilman : > >> Bintian Wang writes: > >> > >>> Hi6220 is one mobile solution of Hisilicon, this patchset contains >

[PATCH] arm: Don't use memblock limit for the lowmem bound

2015-05-11 Thread Laura Abbott
From: Laura Abbott The memblock limit is currently used in find_limits to find the bounds for ZONE_NORMAL. The memblock limit may need to be rounded down a PMD size to ensure allocations are fully mapped though. This has the side effect of reducing the amount of memory in ZONE_NORMAL. Since we

Re: [PATCH v2] Support for write stream IDs

2015-05-11 Thread Martin K. Petersen
> "Jens" == Jens Axboe writes: Jens, Jens> There are actual technical challenges on the device side that Jens> sometimes interferes. [...] Right now we use the same protocol to speak to USB keys and million dollar storage arrays. That's because the protocol was designed to be abstract and

Re: [PATCH 2/3 v8] mailbox: Enable BCM2835 mailbox support

2015-05-11 Thread Stephen Warren
On 05/08/2015 01:19 PM, Eric Anholt wrote: > Alexander Stein writes: > >> On Thursday 07 May 2015, 12:54:20 wrote Eric Anholt: >>> Noralf Trønnes writes: >>> Den 05.05.2015 22:27, skrev Eric Anholt: > From: Lubomir Rintel > > This mailbox driver provides a single mailbox

[PATCH v2 4/9] KVM: MMU: introduce slot_handle_level_range() and its helpers

2015-05-11 Thread Xiao Guangrong
There are several places walking all rmaps for the memslot so that introduce common functions to cleanup the code Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 69 ++ 1 file changed, 69 insertions(+) diff --git a/arch/x86/kvm/mmu.c

[PATCH v2 1/9] KVM: MMU: fix decoding cache type from MTRR

2015-05-11 Thread Xiao Guangrong
There are some bugs in current get_mtrr_type(); 1: bit 1 of mtrr_state->enabled is corresponding bit 11 of IA32_MTRR_DEF_TYPE MSR which completely control MTRR's enablement that means other bits are ignored if it is cleared 2: the fixed MTRR ranges are controlled by bit 0 of

[PATCH v2 5/9] KVM: MMU: use slot_handle_level and its helper to clean up the code

2015-05-11 Thread Xiao Guangrong
slot_handle_level and its helper functions are ready now, use them to clean up the code Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 130 +++-- 1 file changed, 16 insertions(+), 114 deletions(-) diff --git a/arch/x86/kvm/mmu.c

[PATCH v2 8/9] KVM: MMU: fix MTRR update

2015-05-11 Thread Xiao Guangrong
Currently, whenever guest MTRR registers are changed kvm_mmu_reset_context is called to switch to the new root shadow page table, however, it's useless since: 1) the cache type is not cached into shadow page's attribute so that the original root shadow page will be reused 2) the cache type is

[PATCH v2 6/9] KVM: MMU: introduce kvm_zap_rmapp

2015-05-11 Thread Xiao Guangrong
Split kvm_unmap_rmapp and introduce kvm_zap_rmapp which will be used in the later patch Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index fae349a..10d5e03

[PATCH v2 2/9] KVM: MMU: introduce for_each_rmap_spte()

2015-05-11 Thread Xiao Guangrong
It's used to walk all the sptes on the rmap to clean up the code Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 63 +++- arch/x86/kvm/mmu_audit.c | 4 +-- 2 files changed, 26 insertions(+), 41 deletions(-) diff --git

[PATCH v2 7/9] KVM: MMU: introduce kvm_zap_gfn_range

2015-05-11 Thread Xiao Guangrong
It is used to zap all the rmaps of the specified gfn range and will be used by the later patch Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 25 + arch/x86/kvm/mmu.h | 1 + 2 files changed, 26 insertions(+) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c

[PATCH v2 9/9] KVM: x86: do not reset mmu if CR0.CD and CR0.NW are changed

2015-05-11 Thread Xiao Guangrong
CR0.CD and CR0.NW are not used by shadow page table so that need not adjust mmu if these two bit are changed Signed-off-by: Xiao Guangrong --- arch/x86/kvm/x86.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index a527dd0..a82d26f

[PATCH v2 3/9] KVM: MMU: introduce for_each_slot_rmap_range

2015-05-11 Thread Xiao Guangrong
It's used to abstract the code from kvm_handle_hva_range and it will be used by later patch Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 97 +- 1 file changed, 75 insertions(+), 22 deletions(-) diff --git a/arch/x86/kvm/mmu.c

[PATCH v2 0/9] KVM: MTRR fixes and some cleanups

2015-05-11 Thread Xiao Guangrong
Changelog: - fix the bit description in changelog of the first patch, thanks David Matlack for pointing it out all follow changes are from Paolo's comment and really appreciate it: - reorder the whole patchset to make it is more readable - redesign the iterator APIs - make TLB clean if

Re: xfs: does mkfs.xfs require fancy switches to get decent performance? (was Tux3 Report: How fast can we fsync?)

2015-05-11 Thread Daniel Phillips
On 05/11/2015 04:17 PM, Theodore Ts'o wrote: > On Tue, May 12, 2015 at 12:12:23AM +0200, Pavel Machek wrote: >> Umm, are you sure. If "some areas of disk are faster than others" is >> still true on todays harddrives, the gaps will decrease the >> performance (as you'll "use up" the fast areas

Re: [PATCH 3/6] dataplane nohz: run softirqs synchronously on user entry

2015-05-11 Thread Mike Galbraith
On Mon, 2015-05-11 at 16:13 -0400, Chris Metcalf wrote: > On 05/09/2015 03:04 AM, Mike Galbraith wrote: > > On Fri, 2015-05-08 at 13:58 -0400, Chris Metcalf wrote: > >> For tasks which have elected dataplane functionality, we run > >> any pending softirqs for the core before returning to

[PATCH RFC v2 3/4] sched: expose capacity_of in sched.h

2015-05-11 Thread Michael Turquette
capacity_of is of use to a cpu frequency scaling policy based on cfs load tracking and cpu capacity utilization metrics. Expose this call in sched.h so it can be used in such a policy. Signed-off-by: Michael Turquette --- Changes in v2: Do not expose get_cpu_usage or capacity_orig_of in

[PATCH RFC v2 2/4] sched: sched feature for cpu frequency selection

2015-05-11 Thread Michael Turquette
This patch introduces the SCHED_ENERGY_FREQ sched feature, which is implemented using jump labels when SCHED_DEBUG is defined. It is statically set to false when SCHED_DEBUG is not defined and thus disabled by default. Signed-off-by: Michael Turquette --- Changes in v2: none

[PATCH RFC v2 4/4] sched: cpufreq_cfs: pelt-based cpu frequency scaling

2015-05-11 Thread Michael Turquette
Scheduler-driven cpu frequency selection is desirable as part of the on-going effort to make the scheduler better aware of energy consumption. No piece of the Linux kernel has a better view of the factors that affect a cpu frequency selection policy than the scheduler[0], and this patch is an

[PATCH RFC v2 1/4] arm: Frequency invariant scheduler load-tracking support

2015-05-11 Thread Michael Turquette
From: Morten Rasmussen Implements arch-specific function to provide the scheduler with a frequency scaling correction factor for more accurate load-tracking. The factor is: current_freq(cpu) << SCHED_CAPACITY_SHIFT / max_freq(cpu) This implementation only provides frequency invariance.

[PATCH RFC v2 0/4] scheduler-driven cpu frequency selection

2015-05-11 Thread Michael Turquette
This series implements an event-driven cpufreq governor that scales cpu frequency as a function of cfs runqueue utilization. The intent of this RFC is to get some discussion going about how the scheduler can become the policy engine for selecting cpu frequency, what limitations exist and what

Re: [PATCH 2/2] lib/vsprintf.c: Further simplify uuid_string()

2015-05-11 Thread Joe Perches
On Mon, 2015-05-11 at 15:55 -0400, George Spelvin wrote: > Make the endianness permutation table do double duty by having it > list not source offsets, but destination offsets. Thus, it both puts > the bytes in the right order and skips the hyphens. Thanks George. One minor nit maybe not worth

Re: [PATCH 4/5] workqueue: don't expose workqueue_attrs to users

2015-05-11 Thread Lai Jiangshan
On 05/11/2015 10:59 PM, Tejun Heo wrote: > On Mon, May 11, 2015 at 05:35:51PM +0800, Lai Jiangshan wrote: >> workqueue_attrs is an internal-like structure and is exposed with >> apply_workqueue_attrs() whose user has to investigate the structure >> before use. >> >> And the apply_workqueue_attrs()

Re: [PATCH] aoe: Use 64-bit timestamp in frame

2015-05-11 Thread Ed Cashin
First, thanks for the patch. I do appreciate the attempt to simplify this part of the driver, but I don't think that this patch is good to merge. I'll make some comments inline below. On 05/10/2015 10:35 PM, Tina Ruchandani wrote: 'struct frame' uses two variables to store the sent timestamp

Re: [PATCH v2 1/3] usb: notify hcd when USB device suspend or resume

2015-05-11 Thread Lu, Baolu
On 05/11/2015 10:25 PM, Alan Stern wrote: On Sat, 9 May 2015, Lu, Baolu wrote: If FSC is supported, the cached Slot, Endpoint, Stream, or other Context information are also saved. Hence, when FSC is supported, software does not have to issue Stop Endpoint Command to push public and private

Question: use of FS, GS segment registers in Linux

2015-05-11 Thread Pengfei Yuan
Hi, What is the use of FS, GS segment registers in kernel and user mode, on x86 and x86-64? Where can I find the related kernel (definition/setup) code? I have read the code in arch/x86/include/asm/segment.h, but still a little confused. Regards, Yuan, Pengfei -- To unsubscribe from this list:

Re: [PATCH 2/5] workqueue: merge the similar code

2015-05-11 Thread Lai Jiangshan
On 05/11/2015 10:31 PM, Tejun Heo wrote: > Hello, Lai. Hello, TJ > >> * @node: the target NUMA node >> - * @cpu_going_down: if >= 0, the CPU to consider as offline >> - * @cpumask: outarg, the resulting cpumask >> + * @cpu_off: if >= 0, the CPU to consider as offline > > @cpu_off sounds like

Re: [PATCH kernel v10 01/34] powerpc/eeh/ioda2: Use device::iommu_group to check IOMMU group

2015-05-11 Thread Gavin Shan
On Tue, May 12, 2015 at 01:38:50AM +1000, Alexey Kardashevskiy wrote: >This relies on the fact that a PCI device always has an IOMMU table >which may not be the case when we get dynamic DMA windows so >let's use more reliable check for IOMMU group here. > >As we do not rely on the table presence

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

2015-05-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in drivers/net/ethernet/qualcomm/qca_spi.c between commit 268be0f7a7d9 ("net: qca_spi: Fix possible race during probe") from the net tree and commit cf9d0dcc5a46 ("ethernet: qualcomm: use spi instead of spi_device") from the

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

2015-05-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in include/net/codel.h between commit a5d280904050 ("codel: fix maxpacket/mtu confusion") from the net tree and commit 80ba92fa1a92 ("codel: add ce_threshold attribute") from the net-next tree. I fixed it up (see below) and can

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

2015-05-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in net/core/sock.c between commit 2e70aedd3d52 ("Revert "net: kernel socket should be released in init_net namespace"") from the net tree and commit affb9792f1d9 ("net: kill sk_change_net and sk_release_kernel") from the

Re: [PATCH 0/6] support "dataplane" mode for nohz_full

2015-05-11 Thread Mike Galbraith
On Mon, 2015-05-11 at 15:25 -0400, Chris Metcalf wrote: > On 05/11/2015 03:19 PM, Mike Galbraith wrote: > > I really shouldn't have acked nohz_full -> isolcpus. Beside the fact > > that old static isolcpus was_supposed_ to crawl off and die, I know > > beyond doubt that having isolated a cpu as

Re: [RESEND][PATCH] Bluetooth: Make request workqueue freezable

2015-05-11 Thread Laura Abbott
On 05/11/2015 06:07 PM, Marcel Holtmann wrote: Hi Laura, We've received a number of reports of warnings when coming out of suspend with certain bluetooth firmware configurations: WARNING: CPU: 3 PID: 3280 at drivers/base/firmware_class.c:1126 _request_firmware+0x558/0x810() Modules linked in:

[GIT PULL] power supply changes for 4.1-rc

2015-05-11 Thread Sebastian Reichel
Hi, The following changes since commit b787f68c36d49bb1d9236f403813641efa74a031: Linux 4.1-rc1 (2015-04-26 17:59:10 -0700) are available in the git repository at: git://git.infradead.org/battery-2.6.git tags/for-v4.1-rc for you to fetch changes up to

Re: [PATCH RFC v2 1/2] crypto: add PKE API

2015-05-11 Thread Herbert Xu
On Mon, May 11, 2015 at 02:45:27PM +0100, David Howells wrote: > > What if the fallback doesn't exist? For instance, a H/W contained key is > specifically limited to, say, just sign/verify and the not permitted to be > used for encrypt/decrypt. How do you provide a fallback given you can't get >

Re: [PATCH RFC] vfs: add a O_NOMTIME flag

2015-05-11 Thread Dave Chinner
On Mon, May 11, 2015 at 10:30:58AM -0700, Sage Weil wrote: > On Mon, 11 May 2015, Trond Myklebust wrote: > > On Mon, May 11, 2015 at 12:39 PM, Sage Weil wrote: > > > On Mon, 11 May 2015, Dave Chinner wrote: > > >> On Sun, May 10, 2015 at 07:13:24PM -0400, Trond Myklebust wrote: > > >> > On Fri,

Re: [RESEND][PATCH] Bluetooth: Make request workqueue freezable

2015-05-11 Thread Marcel Holtmann
Hi Laura, > We've received a number of reports of warnings when coming > out of suspend with certain bluetooth firmware configurations: > > WARNING: CPU: 3 PID: 3280 at drivers/base/firmware_class.c:1126 > _request_firmware+0x558/0x810() > Modules linked in: ccm ip6t_rpfilter ip6t_REJECT

Re: [V3 PATCH 1/5] ACPI / scan: Parse _CCA and setup device coherency

2015-05-11 Thread Rafael J. Wysocki
On Monday, May 11, 2015 05:16:27 PM Catalin Marinas wrote: > On Fri, May 08, 2015 at 10:53:59PM +0200, Rafael J. Wysocki wrote: > > On Thursday, May 07, 2015 07:37:12 PM Suravee Suthikulpanit wrote: > > > diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig > > > index ab2cbb5..7822149 100644

Re: "Directly mapped persistent memory page cache"

2015-05-11 Thread Dave Chinner
On Mon, May 11, 2015 at 11:18:36AM +0200, Ingo Molnar wrote: > > * Dave Chinner wrote: > > > On Sat, May 09, 2015 at 10:45:10AM +0200, Ingo Molnar wrote: > > > > > > * Rik van Riel wrote: > > > > > > > On 05/08/2015 11:54 AM, Linus Torvalds wrote: > > > > > On Fri, May 8, 2015 at 7:40 AM,

[RESEND][PATCH] Bluetooth: Make request workqueue freezable

2015-05-11 Thread Laura Abbott
We've received a number of reports of warnings when coming out of suspend with certain bluetooth firmware configurations: WARNING: CPU: 3 PID: 3280 at drivers/base/firmware_class.c:1126 _request_firmware+0x558/0x810() Modules linked in: ccm ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack

Re: [PATCH v2 0/6] Btrfs: show subvolume name and ID in /proc/mounts

2015-05-11 Thread Qu Wenruo
Original Message Subject: Re: [PATCH v2 0/6] Btrfs: show subvolume name and ID in /proc/mounts From: Omar Sandoval To: David Sterba , Qu Wenruo , Date: 2015年05月11日 17:42 On Thu, Apr 09, 2015 at 02:34:50PM -0700, Omar Sandoval wrote: Here's version 2 of providing the

Re: Regression due to "device property: Make it possible to use secondary firmware nodes" Re: Xen-unstable + linux 4.1-mergewindow: problems with PV guest pci passthrough: pcifront pci-0: pciback no

2015-05-11 Thread Rafael J. Wysocki
On Monday, May 11, 2015 11:20:29 AM Konrad Rzeszutek Wilk wrote: > On Tue, May 05, 2015 at 12:18:49AM +0200, Sander Eikelenboom wrote: > > Hello Sander, > > > > Monday, April 27, 2015, 5:48:00 PM, you wrote: > > > > > Hi David / Konrad, > > > > > Here the other problem i found, which is

Re: [PATCH v8 00/23] IB/Verbs: IB Management Helpers

2015-05-11 Thread Doug Ledford
On Mon, 2015-05-11 at 19:49 -0400, ira.weiny wrote: > I have run with this series and the only issue I have found is not with this > patch set directly. > > This patch: > > > IB/Verbs: Use management helper rdma_cap_ib_mad() > > causes an error when you actually use the port passed from the

Re: [PATCH v5 0/6] arm64,hi6220: Enable Hisilicon Hi6220 SoC

2015-05-11 Thread Kevin Hilman
On Thu, May 7, 2015 at 4:11 PM, Brent Wang wrote: > Hello Kevin, > > 2015-05-08 4:30 GMT+08:00 Kevin Hilman : >> Bintian Wang writes: >> >>> Hi6220 is one mobile solution of Hisilicon, this patchset contains >>> initial support for Hi6220 SoC and HiKey development board, which >>> supports octal

Re: A desktop environment[1] kernel wishlist

2015-05-11 Thread Rafael J. Wysocki
On Tuesday, May 12, 2015 12:12:30 AM Pavel Machek wrote: > Hi! > > > > If the event was user-triggered it sends > > > out a DBus signal announcing the end of the suspend, Chrome thaws its > > > renderer processes, the full UI comes back up, and the user can start > > > working. If the event was

Re: [PATCHv2] mmc:Add pointer cast to uintptr_t for slave_id_rx and tx in the function, sh_mmcif_request_dma_one

2015-05-11 Thread Kuninori Morimoto
Hi Nicholas Krause wrote: > > This adds a cast to the variables,slave_id_rx and slave_id_rx > to uintptr_t before casting to void* in order to avoid build > warning on 64bit platforms for the function, sh_mmcif_request_dma_one. > Signed-off-by: Nicholas Krause > --- Acked-by: Kuninori

Re: boot loader

2015-05-11 Thread Thiago Farina
Hi Pavel, On Mon, May 11, 2015 at 7:11 PM, Pavel Machek wrote: > On Tue 2015-04-28 12:12:26, Thiago Farina wrote: >> Hi, >> >> Does the kernel include a simple boot loader like FreeBSD does? > > Long time ago, Linux included ability to boot from floppy on PC. Not > any more, IIRC. Yeah. Maybe it

Re: xfs: does mkfs.xfs require fancy switches to get decent performance? (was Tux3 Report: How fast can we fsync?)

2015-05-11 Thread David Lang
On Mon, 11 May 2015, Daniel Phillips wrote: On 05/11/2015 03:12 PM, Pavel Machek wrote: It is a fact of life that when you change one aspect of an intimately interconnected system, something else will change as well. You have naive/nonexistent free space management now; when you design

Re: [PATCH] iscsi_ibft: filter null v4-mapped v6 addresses

2015-05-11 Thread Mike Christie
On 05/08/2015 12:14 AM, Chris Leech wrote: > I've had reports of UEFI platforms failing iSCSI boot in various > configurations, that ended up being caused by network initialization > scripts getting tripped up by unexpected null addresses (0.0.0.0) being > reported for gateways, dhcp servers, and

Re: xfs: does mkfs.xfs require fancy switches to get decent performance? (was Tux3 Report: How fast can we fsync?)

2015-05-11 Thread Daniel Phillips
Hi Pavel, On 05/11/2015 03:12 PM, Pavel Machek wrote: >>> It is a fact of life that when you change one aspect of an intimately >>> interconnected system, >>> something else will change as well. You have naive/nonexistent free space >>> management now; when you >>> design something workable

Re: [PATCH v8 00/23] IB/Verbs: IB Management Helpers

2015-05-11 Thread ira.weiny
I have run with this series and the only issue I have found is not with this patch set directly. This patch: > IB/Verbs: Use management helper rdma_cap_ib_mad() causes an error when you actually use the port passed from the ib_umad module. I have a patch to fix that which I found while trying

  1   2   3   4   5   6   7   8   9   10   >