[alsa-devel][PATCH 4/4] ASoC: wm8958: correct BCLK DIV 348 to 384

2015-05-11 Thread Zidan Wang
According to the RM of wm8958, BCLK DIV 348 doesn't exist, correct it to 384. Signed-off-by: Zidan Wang --- sound/soc/codecs/wm8994.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 2d32b54..33bf663 100644 --- a/soun

[alsa-devel][PATCH 2/4] ASoC: wm8960: add 32 bit word length support

2015-05-11 Thread Zidan Wang
According to referance manual, right justify mode can't support 32 bit word length. Signed-off-by: Zidan Wang --- sound/soc/codecs/wm8960.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c index b072501..2559e31 1006

Re: [PATCH] ARM: zynq: Set bit 22 in PL310 AuxCtrl register (6395/1)

2015-05-11 Thread Michal Simek
On 05/12/2015 08:31 AM, Dirk Behme wrote: > On 12.05.2015 08:22, Michal Simek wrote: >> From: Thomas Betker >> >> This patch is based on the >> commit 1a8e41cd672f ("ARM: 6395/1: VExpress: Set bit 22 in the PL310 >> (cache controller) AuxCtlr register") > > > I've been under the impression that

Re: [PATCH 1/2] tools lib traceevent: Export dynamic symbols used by traceevent plugins

2015-05-11 Thread He Kuang
Hi, jirka On 2015/5/11 22:33, Jiri Olsa wrote: On Mon, May 11, 2015 at 09:35:26AM +, He Kuang wrote: Traceevent plugins need dynamic symbols exported from libtraceevent.a, otherwise a dlopen error will occur during plugins loading. This patch uses dynamic-list-file to export dynamic symbol

[PATCH v2 2/2] tools lib traceevent: Ignore libtrace-dynamic-list file

2015-05-11 Thread He Kuang
The libtrace-dynamic-list file is used to export symbols used by traceevent plugins. Signed-off-by: He Kuang --- tools/lib/traceevent/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/traceevent/.gitignore b/tools/lib/traceevent/.gitignore index 35f56be..3c60335 100644 ---

[PATCH v2 1/2] tools lib traceevent: Export dynamic symbols used by traceevent plugins

2015-05-11 Thread He Kuang
Traceevent plugins need dynamic symbols exported from libtraceevent.a, otherwise a dlopen error will occur during plugins loading. This patch uses dynamic-list-file to export dynamic symbols which will be used in plugins to perf executable. The problem is covered up if feature-libpython is enable

Re: [PATCH 1/2] tools lib traceevent: Export dynamic symbols used by traceevent plugins

2015-05-11 Thread Mathias Krause
On 11 May 2015 at 16:33, Jiri Olsa wrote: > On Mon, May 11, 2015 at 09:35:26AM +, He Kuang wrote: >> Traceevent plugins need dynamic symbols exported from libtraceevent.a, >> otherwise a dlopen error will occur during plugins loading. >> >> This patch uses dynamic-list-file to export dynamic s

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

2015-05-11 Thread Dave Young
On 05/12/15 at 01:57pm, Dave Young wrote: > 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 cau

Re: [PATCH v2] x86: Preserve iopl on fork and execve

2015-05-11 Thread Ingo Molnar
* Alex Henrie wrote: > Signed-off-by: Alex Henrie > Suggested-by: Doug Johnson > --- > arch/x86/kernel/process_32.c | 2 +- > arch/x86/kernel/process_64.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c >

Re: [PATCH] ARM: zynq: Set bit 22 in PL310 AuxCtrl register (6395/1)

2015-05-11 Thread Dirk Behme
On 12.05.2015 08:22, Michal Simek wrote: From: Thomas Betker This patch is based on the commit 1a8e41cd672f ("ARM: 6395/1: VExpress: Set bit 22 in the PL310 (cache controller) AuxCtlr register") I've been under the impression that this shouldn't be done in the kernel, but in the boot loader

RE: [PATCH] mtd: fix: avoid race condition when accessing mtd->usecount

2015-05-11 Thread Cantavenera, Giuseppe (EXT-Other - DE/Ulm)
> -Original Message- > From: ext Brian Norris [mailto:computersforpe...@gmail.com] > Sent: Tuesday, May 12, 2015 12:25 AM > To: Cantavenera, Giuseppe (EXT-Other - DE/Ulm) > Cc: linux-...@lists.infradead.org; Restelli, Lorenzo (EXT-Other - > DE/Ulm); dw...@infradead.org; sta...@vger.kernel.o

Re: [PATCH v2 00/23] gpio: sysfs: fixes and clean ups

2015-05-11 Thread Alexandre Courbot
On Tue, May 5, 2015 at 12:10 AM, Johan Hovold wrote: > These patches fix a number of issues with the gpio sysfs interface, > including > > - fix memory leaks and crashes on device hotplug > - straighten out the convoluted locking > - reduce sysfs-interface latencies through more fine-grained lo

[PATCH] ARM: zynq: Set bit 22 in PL310 AuxCtrl register (6395/1)

2015-05-11 Thread Michal Simek
From: Thomas Betker This patch is based on the commit 1a8e41cd672f ("ARM: 6395/1: VExpress: Set bit 22 in the PL310 (cache controller) AuxCtlr register") Clearing bit 22 in the PL310 Auxiliary Control register (shared attribute override enable) has the side effect of transforming Normal Shared N

linux-next: Tree for May 12

2015-05-11 Thread Stephen Rothwell
Hi all, Changes since 20150511: The net-next tree gained conflicts against the net tree. The spi tree gained a build failure so I used the version from next-20150511. The target-updates tree gained a build failure so I used the version from next-20150511. Non-merge commits (relative to Linus

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

2015-05-11 Thread Baoquan He
On 05/11/15 at 05:52pm, Li, Zhen-Hua wrote: > This patchset is an update of Bill Sumner's patchset, implements a fix for: > If a kernel boots with intel_iommu=on on a system that supports intel vt-d, > when a panic happens, the kdump kernel will boot with these faults: Test passed on my local wor

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 Monday, May 11, 2015 10:38:42 PM PDT, Dave Chinner wrote: > 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, but By "same page", do you mean "transparently obvious about obstruct

Re: [PATCH 1/1] suspend: delete sys_sync()

2015-05-11 Thread Oliver Neukum
On Mon, 2015-05-11 at 16:34 -0400, Len Brown wrote: > But upon reflection, I do not believe that the kernel is adding value > here, > instead it is imposing a policy, and that policy decision is sometimes > prohibitively expensive. > User-space can do this for itself (and in the case of desktop dis

[PATCH V4 1/3] mm/thp: Split out pmd collpase flush into a separate functions

2015-05-11 Thread Aneesh Kumar K.V
Architectures like ppc64 [1] need to do special things while clearing pmd before a collapse. For them this operation is largely different from a normal hugepage pte clear. Hence add a separate function to clear pmd before collapse. After this patch pmdp_* functions operate only on hugepage pte, and

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

2015-05-11 Thread Yoshinori Sato
At Mon, 11 May 2015 21:04:30 +0200, Arnd Bergmann wrote: > > On Monday 11 May 2015 10:50:27 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 > > > - reb

[PATCH V4 2/3] powerpc/mm: Use generic version of pmdp_clear_flush

2015-05-11 Thread Aneesh Kumar K.V
Also move the pmd_trans_huge check to generic code. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/pgtable-ppc64.h | 4 arch/powerpc/mm/pgtable_64.c | 11 --- mm/pgtable-generic.c | 1 + 3 files changed, 1 insertion(+), 15 deletions(-)

[PATCH V4 3/3] mm: Clarify that the function operateds on hugepage pte

2015-05-11 Thread Aneesh Kumar K.V
We have confusing functions to clear pmd, pmd_clear_* and pmd_clear. Add _huge_ to pmdp_clear functions so that we are clear that they operate on hugepage pte. We don't bother about other functions like pmdp_set_wrprotect, pmdp_clear_flush_young, because they operate on PTE bits and hence indicate

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

2015-05-11 Thread Michal Simek
On 05/12/2015 08:03 AM, Julia Lawall wrote: > On Tue, 12 May 2015, Michal Simek wrote: > >> 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(+),

[PATCH v2] 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 --- Changes in v2: - Align the later argument with the right side of the parenthesis Reported-by: Julia Lawall drivers/net/ethernet/xilinx/ll_temac_main.c | 4 ++-- 1 file changed, 2 insertions(+),

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

2015-05-11 Thread Julia Lawall
On Tue, 12 May 2015, Michal Simek wrote: > 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

Re: [PATCH V3 00/13] POWER DSCR fixes, improvements, docs and tests

2015-05-11 Thread Anshuman Khandual
On 04/10/2015 01:59 PM, Anshuman Khandual wrote: > This patch series has patches for POWER DSCR fixes, improvements, > in code documentaion, kernel support user documentation and selftest based > test cases. It has got five test cases which are derived from Anton's DSCR > test bucket which ca

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

2015-05-11 Thread Jaegeuk Kim
On Tue, May 12, 2015 at 12:10:16AM -0400, Nicholas Krause wrote: > > > On May 11, 2015 11:48:48 PM EDT, Jaegeuk Kim wrote: > >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

[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 b/drivers/net/ethernet/xilinx/ll_tema

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 her

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

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 worke

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

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 SMMU

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

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 c

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 > > --- a/arch/a

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 Hisilicon

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 repository

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

2015-05-11 Thread Stephen Rothwell
o member named 'tpg_lun_list' struct se_lun *se_lun = tport->tpg->se_tpg.tpg_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-upda

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 shtill

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

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

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

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 off

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

[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 b/include/linux/

[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 + arch/x86/ker

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

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

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

[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 COCCI=sg_phys.c

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

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

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: Mon,

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 straig

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 issue

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

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

[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 --- a/fs/f2fs/seg

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 line

[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 insertions(+)

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

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 s

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

2015-05-11 Thread Stephen Rothwell
different size [-Wpointer-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,

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 ge

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 c

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 chan

[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 b/

[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 mtrr_state->e

[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 b/arch/x86

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

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

[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 a/arch/x86/kvm/mmu.

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

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

[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 b/arch/

[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 @lock_flu

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 mor

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

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

[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 kernel/sche

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

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

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 u

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

  1   2   3   4   5   6   7   8   9   10   >