Re: [PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-07-31 Thread Hanjun Guo
On 2014-8-1 2:52, Geoff Levand wrote: > Hi Hanjun, Hi Geoff, > > On Thu, 2014-07-24 at 21:00 +0800, Hanjun Guo wrote: >> ACPI 5.1 only has two explicit methods to boot up SMP, >> PSCI and Parking protocol, but the Parking protocol is >> only suitable for ARMv7 now, so make PSCI as the only way >

[PATCH] DRBG: fix failure of generating multiple of 2**16 bytes

2014-07-31 Thread Stephan Mueller
The function drbg_generate_long slices the request into 2**16 byte or smaller chunks. However, the loop, however invokes the random number generation function with zero bytes when the request size is a multiple of 2**16 bytes. The fix prevents zero bytes requests. Signed-off-by: Stephan Mueller -

Re: [REVIEW][PATCH 0/4] /proc/thread-self

2014-07-31 Thread Randy Dunlap
On 07/31/14 17:30, Eric W. Biederman wrote: > > This patchset implements /proc/thread-self a magic symlink that > solves a couple of problems. > > - It makes it easy to get to a specific threads directory in /proc > with gettid() not being exported in glibc this is currently a pain. > > - It a

RE: [PATCH] KVM: nVMX: nested TPR shadow/threshold emulation

2014-07-31 Thread Zhang, Yang Z
Paolo Bonzini wrote on 2014-08-01: > Il 01/08/2014 02:57, Zhang, Yang Z ha scritto: >>> TPR_THRESHOLD will be likely written as zero, but the processor >>> will never use it anyway. It's just a small optimization because >>> nested_cpu_has(vmcs12, CPU_BASED_TPR_SHADOW) will almost always > be true

Re: [PATCH 04/19] ARM64 / ACPI: Introduce arch_fix_phys_package_id() for cpu topology

2014-07-31 Thread Hanjun Guo
On 2014-7-29 2:51, Sudeep Holla wrote: > On 24/07/14 14:00, Hanjun Guo wrote: >> arch_fix_phys_package_id() will be called in ACPI core to use >> the slot number provided by ACPI to update the physical package >> id, then we can get the right value in the "physical id" field >> of /proc/cpuinfo. >>

Re: [PATCH] KVM: nVMX: nested TPR shadow/threshold emulation

2014-07-31 Thread Paolo Bonzini
Il 01/08/2014 02:57, Zhang, Yang Z ha scritto: > > TPR_THRESHOLD will be likely written as zero, but the processor will > > never use it anyway. It's just a small optimization because > > nested_cpu_has(vmcs12, CPU_BASED_TPR_SHADOW) will almost always be true. > > Theoretically, you are right. Bu

Re: [PATCH 8/8] clk: tegra: Add EMC clock driver

2014-07-31 Thread Mikko Perttunen
On 01/08/14 02:08, Mike Turquette wrote: ... That is sensible, and all the more reason that this patch shouldn't implement the rate-change feature within the clock driver. So consider it NAK'd. Also I agree that the per-clock debugfs entries are very useful for RO operations, especially exposing

[PATCH] Save command pool address of Scsi_Host

2014-07-31 Thread jgross
From: Juergen Gross If a scsi host driver specifies .cmd_len in it's scsi_host_template, a driver's private command pool is needed. scsi_find_host_cmd_pool() will locate it, but scsi_alloc_host_cmd_pool() isn't saving the pool address in the host template. This will result in an access error whe

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

2014-07-31 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in MAINTAINERS between commit 7eea35fe3df8 ("[media] MAINTAINERS: Update go7007 pattern") from the v4l-dvb tree and commit 0d317b91d6d8 ("staging: frontier: remove driver") from the staging tree. I fixed it up (see below) and ca

Re: [REVIEW][PATCH 0/4] /proc/thread-self

2014-07-31 Thread Eric W. Biederman
Davidlohr Bueso writes: > On Thu, 2014-07-31 at 17:30 -0700, Eric W. Biederman wrote: >> This is small chance changing /proc/net and /proc/mounts will cause >> userspace regressions (although nothing has shown up in my testing) if >> that happens we can just point the change that moves them from

Re: [PATCH 2/6] ARM: DTS: da850: Add node for edma0

2014-07-31 Thread Sekhar Nori
On Friday 01 August 2014 10:39 AM, Peter Ujfalusi wrote: > On 07/31/2014 05:26 PM, Sergei Shtylyov wrote: >> On 07/31/2014 02:18 PM, Peter Ujfalusi wrote: >> >>> Add DT node for edma0. >> >>> Signed-off-by: Peter Ujfalusi >>> --- >>> arch/arm/boot/dts/da850.dtsi | 6 ++ >>> 1 file changed,

[PATCH v2 0/6] ARM: DT/davinci: Audio for da850-evm in DT boot

2014-07-31 Thread Peter Ujfalusi
Hi, Changes since v1: - fixed the address missmatch for tlv320aic3106 codec (@1b -> 18) - The edma patches has been taken by Vinod, they should be in linux-next soon. The following series will enable audio via simple card on the board when booted with DT. For edma one patch is needed to have wor

[PATCH v2 4/6] ARM: DTS: da850-evm: Enable McASP via DT boot

2014-07-31 Thread Peter Ujfalusi
Add pinctrl nodes for the McASP0 pins and configure McASP to the desired mode for the board. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/da850-evm.dts | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/d

[PATCH v2 1/6] ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for mcasp0

2014-07-31 Thread Peter Ujfalusi
Add OF_DEV_AUXDATA for mcasp to be able to use clocks. Signed-off-by: Peter Ujfalusi --- arch/arm/mach-davinci/da8xx-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c index ed1928740b5f..f703d82f08a8 100644 --- a/arch/arm

[PATCH v2 2/6] ARM: DTS: da850: Add node for edma0

2014-07-31 Thread Peter Ujfalusi
Add DT node for edma0. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/da850.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index b695548dbb4e..41ce4e8bf227 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/bo

[PATCH v2 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec

2014-07-31 Thread Peter Ujfalusi
The board uses aic3106 for audio. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/da850-evm.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 1422c311af4c..41715b495861 100644 --- a/arch/arm/boot/dts

[PATCH v2 6/6] ARM: DTS: da850-evm: Enable audio via simple-card

2014-07-31 Thread Peter Ujfalusi
The audio on the board is using McASP <-> tlv320aic3106 codec and we have LineIn and LineOut jacks. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/da850-evm.dts | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot

[PATCH v2 3/6] ARM: DTS: da850: Add node for McASP

2014-07-31 Thread Peter Ujfalusi
Node for mcasp0 Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/da850.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 41ce4e8bf227..0bd98cd00816 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/

Re: Oops in scsi_put_host_cmd_pool

2014-07-31 Thread Juergen Gross
On 08/01/2014 07:41 AM, Juergen Gross wrote: During test of Xen pvSCSI frontend module I found the following issue: When unplugging a passed-through SCSI-device the SCSI Host is removed. When calling the final scsi_host_put() from the driver an Oops is happening: [ 219.816292] (file=drivers/sc

[PATCH] perf kmem: Do not ignore mmap events

2014-07-31 Thread Namhyung Kim
The perf kmem command didn't process mmap events for some unknown reason and it instead gets symbol info from a running kernel. This is problematic if perf kmem record was run on a different kernel. This patch adds the mmap event handlers and reverts the commit e727ca73f85d ("perf kmem: Resolve k

Re: [RFC PATCH 0/2] dirreadahead system call

2014-07-31 Thread Andreas Dilger
On Aug 1, 2014, at 1:53, Dave Chinner wrote: > On Thu, Jul 31, 2014 at 01:19:45PM +0200, Andreas Dilger wrote: >> None of these issues are relevant in the API that I'm thinking about. >> The syscall just passes the list of inode numbers to be prefetched >> into kernel memory, and then stat() is u

Re: [PATCH/RFC] autofs: the documentation I wanted to read

2014-07-31 Thread Ian Kent
On Tue, 2014-07-29 at 12:00 +1000, NeilBrown wrote: > > This documents autofs from the perspective of what the module actually > supports rather than how automount is expected to use it. > It is based mostly on code review and very little on testing so it > may be inaccurate in some places. > > T

Re: [PATCH v2 0/3 net-next] Lockless netlink_lookup() with new concurrent hash table

2014-07-31 Thread David Miller
From: David Miller Date: Thu, 31 Jul 2014 22:39:46 -0700 (PDT) > Looks great, series applied, thanks! Actually, this needs more work, reverted: net/netfilter/nft_hash.c: In function ‘nft_hash_destroy’: net/netfilter/nft_hash.c:183:3: error: ‘ht’ undeclared (first use in this function) net/netf

Re: perf tools: Question about kmem and kernel symbol resolution

2014-07-31 Thread Namhyung Kim
On Thu, 31 Jul 2014 11:27:11 -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jul 31, 2014 at 05:35:32PM +0900, Namhyung Kim escreveu: >> I'm looking kernel symbol mismatch issue, and found something in perf >> kmem code. The commit e727ca73f85d ("perf kmem: Resolve kernel >> symbols again") added

Oops in scsi_put_host_cmd_pool

2014-07-31 Thread Juergen Gross
During test of Xen pvSCSI frontend module I found the following issue: When unplugging a passed-through SCSI-device the SCSI Host is removed. When calling the final scsi_host_put() from the driver an Oops is happening: [ 219.816292] (file=drivers/scsi/xen-scsifront.c, line=808) scsifront_remov

Re: [PATCH v2 0/3 net-next] Lockless netlink_lookup() with new concurrent hash table

2014-07-31 Thread David Miller
From: Thomas Graf Date: Fri, 1 Aug 2014 00:56:00 +0200 > Netlink sockets are maintained in a hash table to allow efficient lookup > via the port ID for unicast messages. However, lookups currently require > a read lock to be taken. This series adds a new generic, resizable, > scalable, concurren

Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec

2014-07-31 Thread Peter Ujfalusi
On 07/31/2014 05:24 PM, Sergei Shtylyov wrote: > Hello. > > On 07/31/2014 02:18 PM, Peter Ujfalusi wrote: > >> The board uses aic3106 for audio. > >> Signed-off-by: Peter Ujfalusi >> --- >> arch/arm/boot/dts/da850-evm.dts | 14 ++ >> 1 file changed, 14 insertions(+) > >> diff --

Re: linux-next: manual merge of the kvm-arm tree with Linus' tree

2014-07-31 Thread Stephen Rothwell
Hi Christoffer, On Thu, 31 Jul 2014 16:23:47 +0200 Christoffer Dall wrote: > > Stephen, did you pick up the resolution provided by Marc for the gicv2 > fix patch so that it applies to tomorrow's next/kvmarm merge? Yes, I have. You will need to produce the same for Linus eventually, or do the m

Re: [PATCH 2/6] ARM: DTS: da850: Add node for edma0

2014-07-31 Thread Peter Ujfalusi
On 07/31/2014 05:26 PM, Sergei Shtylyov wrote: > On 07/31/2014 02:18 PM, Peter Ujfalusi wrote: > >> Add DT node for edma0. > >> Signed-off-by: Peter Ujfalusi >> --- >> arch/arm/boot/dts/da850.dtsi | 6 ++ >> 1 file changed, 6 insertions(+) > >> diff --git a/arch/arm/boot/dts/da850.dtsi b

Re: [PATCH 1/1] AX88179_178A: Add ethtool ops for EEE support

2014-07-31 Thread David Miller
From: fre...@asix.com.tw Date: Thu, 31 Jul 2014 19:06:35 +0800 > From: Freddy Xin > > Add functions to support ethtool EEE manipulating, and the EEE > is disabled in default setting to enhance the compatibility > with certain switch. > > Signed-off-by: Freddy Xin Applied, thanks. -- To unsubs

Re: [PATCH 5/5] mm, shmem: Show location of non-resident shmem pages in smaps

2014-07-31 Thread Hugh Dickins
On Tue, 22 Jul 2014, Jerome Marchand wrote: > Adds ShmOther, ShmOrphan, ShmSwapCache and ShmSwap lines to > /proc//smaps for shmem mappings. > > ShmOther: amount of memory that is currently resident in memory, not > present in the page table of this process but present in the page > table of an o

Re: [PATCH 4/5] mm, shmem: Add shmem swap memory accounting

2014-07-31 Thread Hugh Dickins
On Tue, 22 Jul 2014, Jerome Marchand wrote: > Adds get_mm_shswap() which compute the size of swaped out shmem. It > does so by pagewalking the mm and using the new shmem_locate() function > to get the physical location of shmem pages. > The result is displayed in the new VmShSw line of /proc//stat

Re: [PATCH 3/5] mm, shmem: Add shmem_vma() helper

2014-07-31 Thread Hugh Dickins
On Tue, 22 Jul 2014, Jerome Marchand wrote: > Add a simple helper to check if a vm area belongs to shmem. > > Signed-off-by: Jerome Marchand > --- > include/linux/mm.h | 6 ++ > mm/shmem.c | 8 > 2 files changed, 14 insertions(+) > > diff --git a/include/linux/mm.h b/inclu

Re: [PATCH 2/5] mm, shmem: Add shmem_locate function

2014-07-31 Thread Hugh Dickins
On Tue, 22 Jul 2014, Jerome Marchand wrote: > The shmem subsytem is kind of a black box: the generic mm code can't I'm happier with that black box than you are :) > always know where a specific page physically is. This patch adds the > shmem_locate() function to find out the physical location of

Re: [PATCH 1/5] mm, shmem: Add shmem resident memory accounting

2014-07-31 Thread Hugh Dickins
On Tue, 22 Jul 2014, Jerome Marchand wrote: > Currently looking at /proc//status or statm, there is no way to > distinguish shmem pages from pages mapped to a regular file (shmem > pages are mapped to /dev/zero), even though their implication in > actual memory use is quite different. > This patch

Re: [PATCH v3 2/2] dma: Add Xilinx AXI Direct Memory Access Engine driver support

2014-07-31 Thread Srikanth Thokala
Hi, Kindly review this patch and please provide your inputs. Thanks Srikanth On Mon, Jul 28, 2014 at 5:47 PM, Srikanth Thokala wrote: > This is the driver for the AXI Direct Memory Access (AXI DMA) > core, which is a soft Xilinx IP core that provides high- > bandwidth direct memory access betwe

Re: [PATCH 1/1] Drivers: net-next: hyperv: Increase the size of the sendbuf region

2014-07-31 Thread David Miller
From: "K. Y. Srinivasan" Date: Wed, 30 Jul 2014 18:35:49 -0700 > For forwarding scenarios, it will be useful to allocate larger > sendbuf. Make the necessary adjustments to permit this. > > Signed-off-by: K. Y. Srinivasan This needs more information. You're increasing the size by 16 times, 1M

[PATCH v5 03/10] ARM: dts: Clean up exynos5250-snow

2014-07-31 Thread Andreas Färber
Use the new style of referencing inherited nodes and use symbolic names. Reorder one pinctrl node in GPIO order. Goal is the alignment of all exynos5250 based device trees for comparison. Suggested-by: Doug Anderson Signed-off-by: Andreas Färber --- v4 -> v5: * Introduced labels to consistent

[PATCH v5 05/10] ARM: dts: Move dp_hpd from exynos5250 into smdk5250 and snow

2014-07-31 Thread Andreas Färber
Spring uses a different GPIO, so this is not a generic SoC piece. Suggested-by: Tomasz Figa Signed-off-by: Andreas Färber --- v5: New (Tomasz Figa) Frees dp_hpd for Spring. arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 --- arch/arm/boot/dts/exynos5250-smdk5250.dts | 9 + arch/ar

[PATCH v5 06/10] ARM: dts: Clean up exynos5250-smdk5250

2014-07-31 Thread Andreas Färber
Use the new style for referencing inherited nodes and use symbolic names. Goal is the alignment of all exynos5250 based device trees for comparison. Signed-off-by: Andreas Färber --- v5: New Follow-up after adding dp_hpd pinctrl node new-style. arch/arm/boot/dts/exynos5250-smdk5250.dts | 640

[PATCH v5 04/10] ARM: dts: Fill in bootargs for exynos5250-snow

2014-07-31 Thread Andreas Färber
exynos5250-cros-common.dtsi had an empty /chosen node. Fill in exemplary boot arguments. Signed-off-by: Andreas Färber --- v5: New Cleanup for /chosen node moved into -snow.dts. arch/arm/boot/dts/exynos5250-snow.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5

[PATCH v5 07/10] ARM: dts: Clean up exynos5250-arndale

2014-07-31 Thread Andreas Färber
Use the new style of referencing inherited nodes, use symbolic names, tidy indentation and reorder includes. Goal is the alignment of all exynos5250 based device trees for comparison. Signed-off-by: Andreas Färber --- v5: New Aligns with SMDK. arch/arm/boot/dts/exynos5250-arndale.dts | 929 +

[PATCH v5 09/10] ARM: dts: Simplify USB3503 on exynos5250-arndale

2014-07-31 Thread Andreas Färber
There's no need for a simple-bus, place the smsc,usb3503a directly into the root node. That's what we're going to do on exynos5250-spring. Reported-by: Tomasz Figa Signed-off-by: Andreas Färber --- v5: New Aligns with Spring's new USB3503 node. arch/arm/boot/dts/exynos5250-arndale.dts | 16 +

[PATCH v5 02/10] ARM: dts: Fold exynos5250-cros-common into exynos5250-snow

2014-07-31 Thread Andreas Färber
exynos5250-cros-common.dtsi was meant for sharing common pieces across ChromeOS devices. This turned out premature, as several devices ended up in the common file that are not common after all. Since the remaining common ChromeOS pieces are fairly minor, exynos5250-cros-common.dtsi was requested t

[PATCH v5 10/10] ARM: dts: Add exynos5250-spring device tree

2014-07-31 Thread Andreas Färber
Adds initial support for the HP Chromebook 11. Cc: Vincent Palatin Cc: Doug Anderson Cc: Stephan van Schaik Signed-off-by: Andreas Färber --- v4 -> v5: * Dropped bogus USB3 regulator (Vincent Palatin, Tomasz Figa) * Fixed USB3503 reset GPIO (Tomasz Figa) * Introduced labels to use new refe

[PATCH v5 08/10] ARM: dts: Fix apparent GPIO typo in exynos5250-arndale

2014-07-31 Thread Andreas Färber
The GPIO flag 2 has no constant assigned, so this was probably active-low. Signed-off-by: Andreas Färber --- v5: New Spotted during cleanup. arch/arm/boot/dts/exynos5250-arndale.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos5250-arndale.dts b

[PATCH v5 01/10] ARM: dts: Fix MMC pinctrl for exynos5250-snow

2014-07-31 Thread Andreas Färber
The pinctrl properties should be on the device directly and not on the slot sub-node. Reported-by: Doug Anderson Cc: Jaehoon Chung Reviewed-by: Tomasz Figa Signed-off-by: Andreas Färber --- v3 -> v4 -> v5: Unchanged v3: New (Doug Anderson) Redundant with Jaehoon Chung's general slot@0 dep

Re: [PATCH] xen-netback: Turn off the carrier if the guest is not able to receive

2014-07-31 Thread David Miller
From: Zoltan Kiss Date: Wed, 30 Jul 2014 20:50:49 +0100 > Currently when the guest is not able to receive more packets, qdisc layer > starts > a timer, and when it goes off, qdisc is started again to deliver a packet > again. > This is a very slow way to drain the queues, consumes unnecessary r

linux-next: manual merge of the kvm tree with the ftrace tree

2014-07-31 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in arch/x86/kvm/mmutrace.h between commit 7b039cb4c5a9 ("tracing: Add trace_seq_buffer_ptr() helper function") from the ftrace tree and commit 42cbc04fd3b5 ("x86/kvm: Resolve shadow warnings in macro expansion") from the kvm tree. I

Re: [PATCH net-next v3 4/4 RFC] pktgen: Allow sending IPv4 TCP packets

2014-07-31 Thread David Miller
From: Zoltan Kiss Date: Wed, 30 Jul 2014 17:20:12 +0100 > This is a prototype patch to enable sending IPv4 TCP packets with pktgen. The > original motivation is to test TCP GSO with xen-netback/netfront, but I'm not > sure about how the checksum should be set up, and also someone should verify >

Re: [PATCH 0/4] LLVMLinux: Patches to enable the kernel to be compiled with clang/LLVM

2014-07-31 Thread Behan Webster
On 07/31/14 03:33, Will Deacon wrote: On Thu, Jul 31, 2014 at 12:57:25AM +0100, beh...@converseincode.com wrote: From: Behan Webster This patch set moves from using locally defined named registers to access the stack pointer to using a globally defined named register. This allows the code to w

[PATCH v3] kbuild, LLVMLinux: Supress warnings unless W=1-3

2014-07-31 Thread behanw
From: Behan Webster clang has more warnings enabled by default. Turn them off unless W is set. This patch fixes a logic bug where warnings in clang were disabled when W was set. Signed-off-by: Behan Webster Signed-off-by: Jan-Simon Möller Signed-off-by: Mark Charlebois Cc: mma...@suse.cz Cc:

Re: [PATCH v2] kbuild, LLVMLinux: Supress warnings unless W=1-3

2014-07-31 Thread Behan Webster
On 07/31/14 13:46, Michal Marek wrote: Dne 31.7.2014 18:12, Behan Webster napsal(a): On 07/31/14 01:18, Michal Marek wrote: Dne 31.7.2014 06:16, beh...@converseincode.com napsal(a): @@ -55,6 +45,18 @@ warning-3 += -Wswitch-default warning-3 += $(call cc-option, -Wpacked-bitfield-compat)

Re: [LKP] [sched/numa] a43455a1d57: +94.1% proc-vmstat.numa_hint_faults_local

2014-07-31 Thread Davidlohr Bueso
On Fri, 2014-08-01 at 10:03 +0800, Aaron Lu wrote: > On Thu, Jul 31, 2014 at 12:42:41PM +0200, Peter Zijlstra wrote: > > On Tue, Jul 29, 2014 at 02:39:40AM -0400, Rik van Riel wrote: > > > On Tue, 29 Jul 2014 13:24:05 +0800 > > > Aaron Lu wrote: > > > > > > > FYI, we noticed the below changes on

[GIT PULL] ARM: Straggler SoC fix for 3.16

2014-07-31 Thread Olof Johansson
Hi Linus, The following changes since commit a1ae5b128365f36a3fa2143cfa9de14fc71c51d8: Merge tag 'omap-for-v3.16/n900-regression' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes (2014-07-29 13:04:27 +0200) are available in the git repository at: git://git.ker

Help with btrfs_zero_range function

2014-07-31 Thread Nick Krause
Hey Guys, I need to ask a question again, I am writing the above function and basing it off the one of punch hole. I have only started writing the function and have a few questions about how to write this. Below this message are my questions so fair and I also posting my written code in case you gu

Re: [PATCH 2/2 v4] sched: Rewrite per entity runnable load average

2014-07-31 Thread Yuyang Du
Hi Vincent, On Thu, Jul 31, 2014 at 11:56:13AM +0200, Vincent Guittot wrote: > > load_sum is now the average runnable time before being weighted So when weight changes, load_avg will completely use new weight. I have some cents: 1) Task does not change weight much, so it is practically ok 2)

Re: [PATCH v4 4/4] ARM: dts: Add exynos5250-spring device tree

2014-07-31 Thread Andreas Färber
Am 31.07.2014 21:05, schrieb Tomasz Figa: >> + >> +&i2c_2 { >> +status = "okay"; >> +samsung,i2c-sda-delay = <100>; >> +samsung,i2c-max-bus-freq = <66000>; >> + >> +hdmiddc@50 { >> +compatible = "samsung,exynos4210-hdmiddc"; >> +reg = <0x50>; >> +}; > >

Re: [PATCH] ARM/ARM64: don't enter kgdb when userspace executes a kgdb break instruction.

2014-07-31 Thread Omar Sandoval
Hi, Will, On Thu, Jul 31, 2014 at 11:46:53AM +0100, Will Deacon wrote: > I'll merge the arm64 diff I proposed. Could you repost the ARM part please? I've just reposted it, hopefully we can get that merged in soon as well. > I think enabling and activating kgdb by default is a pretty crazy thing t

[PATCH] ARM: don't enter kgdb when userspace executes a kgdb break instruction.

2014-07-31 Thread Omar Sandoval
The kgdb breakpoint hooks (kgdb_brk_fn and kgdb_compiled_brk_fn) should only be entered when a kgdb break instruction is executed from the kernel. Otherwise, if kgdb is enabled, a userspace program can cause the kernel to drop into the debugger by executing either KGDB_BREAKINST or KGDB_COMPILED_BR

[PATCH] iovec: make sure the caller actually wants anything in memcpy_fromiovecend

2014-07-31 Thread Sasha Levin
Check for cases when the caller requests 0 bytes instead of running off and dereferencing potentially invalid iovecs. Signed-off-by: Sasha Levin --- lib/iovec.c |4 1 file changed, 4 insertions(+) diff --git a/lib/iovec.c b/lib/iovec.c index 7a7c2da..df3abd1 100644 --- a/lib/iovec.c ++

Re: [PATCH RFC tip/core/rcu 1/9] rcu: Add call_rcu_tasks()

2014-07-31 Thread Mike Galbraith
On Thu, 2014-07-31 at 09:38 -0700, Paul E. McKenney wrote: > Does building with CONFIG_NO_HZ_FULL_SYSIDLE=y slow things down even more? > If so, that would give me a rough idea of the cost of RCU's dyntick-idle > handling. Nope. Deltas are all down in the statistical frog hair. -Mike -- To uns

Re: [PATCH] ACPI/Processor: Add CPU_STARTING_FROZEN check in the acpi_cpu_soft_notify()

2014-07-31 Thread Lan Tianyu
On 2014年08月01日 05:20, Rafael J. Wysocki wrote: > On Thursday, July 31, 2014 05:20:26 PM Lan Tianyu wrote: >> The callback of CPU_STARTING event can't sleep and so acpi_cpu_soft_notify() >> return directly when CPU_STARTING event is triggered. But cpu hotplug also >> happens during S2RAM. The action

[PATCH V9 2/6] Documentation: power: reset: Add documentation for generic SYSCON reboot driver

2014-07-31 Thread Feng Kan
Add documentation for generic SYSCON reboot driver. Signed-off-by: Feng Kan --- .../bindings/power/reset/syscon-reboot.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/syscon-reboot.txt diff --git a/Docu

[PATCH V9 0/6] Add X-Gene platform reboot mechanism

2014-07-31 Thread Feng Kan
Enable reboot driver for the X-Gene platform. Add generic syscon reboot driver. V9 Change: - rebase on Guenter Roeck's V5 reset handler patch set. This allows for a generic reset to be call rather than the arm specific reset handler. V8 Change: - change Kconfi

[PATCH V9 4/6] arm64: dts: Add X-Gene reboot driver dts node

2014-07-31 Thread Feng Kan
Add X-Gene platform reboot driver dts node. Signed-off-by: Feng Kan --- arch/arm64/boot/dts/apm-storm.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index ccd150a..3dfd1f4 100644 --- a/arch/arm64/boo

[PATCH V9 3/6] Documentation: arm64: add SCU dts binding documentation to linux kernel

2014-07-31 Thread Feng Kan
This add documentation for the SCU system clock unit device tree binding to the kernel. Signed-off-by: Feng Kan --- Documentation/devicetree/bindings/arm/apm/scu.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/apm/scu.txt di

[PATCH V9 5/6] arm64: Select reboot driver for X-Gene platform

2014-07-31 Thread Feng Kan
Select reboot driver for X-Gene platform. Signed-off-by: Feng Kan --- arch/arm64/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 839f48c..df6a646 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -141,6 +141,8 @@ config ARCH_V

[PATCH V9 6/6] power: reset: Remove X-Gene reboot driver

2014-07-31 Thread Feng Kan
Remove X-Gene reboot driver. Signed-off-by: Feng Kan --- drivers/power/reset/Kconfig| 7 --- drivers/power/reset/Makefile | 1 - drivers/power/reset/xgene-reboot.c | 103 - 3 files changed, 111 deletions(-) delete mode 100644 drivers/power/r

[PATCH V9 1/6] power: reset: Add generic SYSCON register mapped reset

2014-07-31 Thread Feng Kan
Add a generic SYSCON register mapped reset mechanism. Signed-off-by: Feng Kan --- drivers/power/reset/Kconfig | 5 ++ drivers/power/reset/Makefile| 1 + drivers/power/reset/syscon-reboot.c | 98 + 3 files changed, 104 insertions(+) create mo

[PATCH] ARM: l2x0: fix build warning without CONFIG_OF

2014-07-31 Thread Kefeng Wang
Commit cf9ea8f13(ARM: l2c: remove obsolete l2x0 ops for non-OF init) remove some obsolete l2x0 ops, the rest of ops: l2x0_cache_sync, l2x0_cache_sync, l2x0_disable only use under OF enable, so move them into OF part, or "defined but not used" warning occurs. Signed-off-by: Kefeng Wang --- arch/a

Re: [REVIEW][PATCH 0/4] /proc/thread-self

2014-07-31 Thread Davidlohr Bueso
On Thu, 2014-07-31 at 17:30 -0700, Eric W. Biederman wrote: > This is small chance changing /proc/net and /proc/mounts will cause > userspace regressions (although nothing has shown up in my testing) if > that happens we can just point the change that moves them from > /proc/self/... to /proc/threa

Re: [RFC PATCH 0/2] dirreadahead system call

2014-07-31 Thread Abhijith Das
- Original Message - > From: "NeilBrown" > To: "Abhi Das" > Cc: linux-kernel@vger.kernel.org, linux-fsde...@vger.kernel.org, > cluster-de...@redhat.com > Sent: Wednesday, July 30, 2014 10:18:05 PM > Subject: Re: [RFC PATCH 0/2] dirreadahead system call > > On Fri, 25 Jul 2014 12:37:29

Re: [PATCH] lpfc: Avoid to disable pci_dev twice

2014-07-31 Thread Mike Qiu
On 07/17/2014 02:32 PM, Mike Qiu wrote: Hi, all How about this patch ? Any idea ? In IBM Power servers, when hardware error occurs during probe state, EEH subsystem will call driver's error_detected interface, which will call pci_disable_device(). But driver's probe function also call pci_di

Re: [PATCH v3 tip/core/rcu 1/9] rcu: Add call_rcu_tasks()

2014-07-31 Thread Paul E. McKenney
On Fri, Aug 01, 2014 at 09:31:37AM +0800, Lai Jiangshan wrote: > On 08/01/2014 05:55 AM, Paul E. McKenney wrote: > > From: "Paul E. McKenney" > > > > This commit adds a new RCU-tasks flavor of RCU, which provides > > call_rcu_tasks(). This RCU flavor's quiescent states are voluntary > > context

Re: [RFC PATCH 0/2] dirreadahead system call

2014-07-31 Thread Abhijith Das
- Original Message - > From: "Dave Chinner" > To: "Andreas Dilger" > Cc: "Abhijith Das" , "LKML" , > "linux-fsdevel" > , cluster-de...@redhat.com > Sent: Thursday, July 31, 2014 6:53:06 PM > Subject: Re: [RFC PATCH 0/2] dirreadahead system call > > On Thu, Jul 31, 2014 at 01:19:45PM +

Re: [PATCH v2 tip/core/rcu 01/10] rcu: Add call_rcu_tasks()

2014-07-31 Thread Paul E. McKenney
On Fri, Aug 01, 2014 at 08:53:38AM +0800, Lai Jiangshan wrote: > On 08/01/2014 12:09 AM, Paul E. McKenney wrote: > > > > >>> + /* > >>> + * There were callbacks, so we need to wait for an > >>> + * RCU-tasks grace period. Start off by scanning > >>> + * the tas

Re: [PATCH v3 tip/core/rcu 1/9] rcu: Add call_rcu_tasks()

2014-07-31 Thread Paul E. McKenney
On Fri, Aug 01, 2014 at 01:57:50AM +0200, Frederic Weisbecker wrote: > On Thu, Jul 31, 2014 at 02:55:01PM -0700, Paul E. McKenney wrote: > > From: "Paul E. McKenney" > > > > This commit adds a new RCU-tasks flavor of RCU, which provides > > call_rcu_tasks(). This RCU flavor's quiescent states ar

Re: [LKP] [sched/numa] a43455a1d57: +94.1% proc-vmstat.numa_hint_faults_local

2014-07-31 Thread Aaron Lu
On Thu, Jul 31, 2014 at 12:42:41PM +0200, Peter Zijlstra wrote: > On Tue, Jul 29, 2014 at 02:39:40AM -0400, Rik van Riel wrote: > > On Tue, 29 Jul 2014 13:24:05 +0800 > > Aaron Lu wrote: > > > > > FYI, we noticed the below changes on > > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/next

Re: [PATCH v3 tip/core/rcu 1/9] rcu: Add call_rcu_tasks()

2014-07-31 Thread Paul E. McKenney
On Fri, Aug 01, 2014 at 09:15:34AM +0800, Lai Jiangshan wrote: > On 08/01/2014 05:55 AM, Paul E. McKenney wrote: > > From: "Paul E. McKenney" > > > > This commit adds a new RCU-tasks flavor of RCU, which provides > > call_rcu_tasks(). This RCU flavor's quiescent states are voluntary > > context

[PATCH 2/2] staging: comedi: addi_apci_1564: remove diagnostic interrupt support code

2014-07-31 Thread Chase Southwood
As per Ian, at this point in time it is not worth implementing an async command interface for diagnostic interrupts for this board. As this is the case, this patch removes the code which supports such interrupts as it is now unused. This includes removing apci1564_do_read(), which was the insn_re

[PATCH 1/2] staging: comedi: addi_apci_1564: add subdevice to check diagnostic status

2014-07-31 Thread Chase Southwood
This board provides VCC/CC diagnostic information, and it also supports diagnostic interrupts. However, as per Ian, these interrupts aren't very useful and it is enough to simply provide an interface for accessing the diagnostic status on-demand. This patch adds a 2-channel digital input subdevic

[PATCH 0/2] staging: comedi: addi_apci_1564: provide interface to read diagnostic status

2014-07-31 Thread Chase Southwood
This patchset creates a simple subdevice to allow for reading of the board's diagnostic status, and then removes any code which is related to diagnostic interrupts, as the driver will not support these at this time. Chase Southwood (2): staging: comedi: addi_apci_1564: add subdevice to check dia

Re: scheduler crash on Power

2014-07-31 Thread Michael Ellerman
On Wed, 2014-07-30 at 00:22 -0700, Sukadev Bhattiprolu wrote: > I am getting this crash on a Powerpc system using 3.16.0-rc7 kernel plus > some patches related to perf (24x7 counters) that Cody Schafer posted here: > > https://lkml.org/lkml/2014/5/27/768 > > I don't get the crash on an unpa

Re: [PATCH] Add support to check for FALLOC_FL_COLLAPSE_RANGE and FALLOC_FL_ZERO_RANGE crap modes

2014-07-31 Thread Nick Krause
On Thu, Jul 31, 2014 at 3:09 PM, Hugo Mills wrote: > On Thu, Jul 31, 2014 at 01:53:33PM -0400, Nicholas Krause wrote: >> This adds checks for the stated modes as if they are crap we will return >> error >> not supported. > >You've just enabled two options, but you haven't actually > implement

Re: [PATCH] Add support to check for FALLOC_FL_COLLAPSE_RANGE and FALLOC_FL_ZERO_RANGE crap modes

2014-07-31 Thread Duncan
Nicholas Krause posted on Thu, 31 Jul 2014 13:53:33 -0400 as excerpted: > This adds checks for the stated modes as if they are crap we will return > error not supported. > > Signed-off-by: Nicholas Krause > --- > fs/btrfs/file.c |3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >

Re: [PATCH] swap: remove the struct cpumask has_work

2014-07-31 Thread Lai Jiangshan
On 08/01/2014 12:09 AM, Chris Metcalf wrote: > On 7/31/2014 7:51 AM, Michal Hocko wrote: >> On Thu 31-07-14 11:30:19, Lai Jiangshan wrote: >>> It is suggested that cpumask_var_t and alloc_cpumask_var() should be used >>> instead of struct cpumask. But I don't want to add this complicity nor >>> le

Re: [PATCH v3 tip/core/rcu 1/9] rcu: Add call_rcu_tasks()

2014-07-31 Thread Lai Jiangshan
On 08/01/2014 05:55 AM, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > This commit adds a new RCU-tasks flavor of RCU, which provides > call_rcu_tasks(). This RCU flavor's quiescent states are voluntary > context switch (not preemption!), userspace execution, and the idle loop. > Note th

Re: [PATCH 2/5] raid: Require designated initialization of structures

2014-07-31 Thread Josh Triplett
On Fri, Aug 01, 2014 at 11:10:55AM +1000, NeilBrown wrote: > On Thu, 31 Jul 2014 16:47:35 -0700 Josh Triplett > wrote: > > > Mark raid6_calls and other structures containing function pointers with > > __designated_init. Fix implementations in lib/raid6/ to use designated > > initializers; this a

Re: [PATCH percpu/for-3.17 1/2] percpu: implement percpu_pool

2014-07-31 Thread Tejun Heo
Hello, Andrew. On Thu, Jul 31, 2014 at 06:16:56PM -0700, Andrew Morton wrote: > Yet nowhere in either the changelog or the code comments is it even > mentioned that this allocator is unreliable and that callers *must* > implement (and test!) fallback paths. Hmmm, yeah, somehow the atomic behavior

Re: [PATCH percpu/for-3.17 1/2] percpu: implement percpu_pool

2014-07-31 Thread Andrew Morton
On Thu, 31 Jul 2014 20:44:38 -0400 Tejun Heo wrote: > Hello, Andrew. > > On Thu, Jul 31, 2014 at 6:03 PM, Andrew Morton > wrote: > > I don't think we should add facilities such as this. Because if we do, > > people will use them and thereby make the kernel less reliable, for > > obvious reason

Re: [PATCH v3 tip/core/rcu 1/9] rcu: Add call_rcu_tasks()

2014-07-31 Thread Lai Jiangshan
On 08/01/2014 05:55 AM, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > This commit adds a new RCU-tasks flavor of RCU, which provides > call_rcu_tasks(). This RCU flavor's quiescent states are voluntary > context switch (not preemption!), userspace execution, and the idle loop. > Note th

Re: [PATCH v2] ACPI / LPSS: add lpss device for Wildcat Point PCH

2014-07-31 Thread Rafael J. Wysocki
On Friday, August 01, 2014 09:06:35 AM Jie Yang wrote: > INT3438 is the ADSP device on Wildcat Point platform > with 2 DW DMA engines built In. The DMA engines are > used for DSP FW loading and audio data transferring. > These DMA engine probing need the clock, without it, > probing may failed and

Re: [PATCH 2/5] raid: Require designated initialization of structures

2014-07-31 Thread NeilBrown
On Thu, 31 Jul 2014 16:47:35 -0700 Josh Triplett wrote: > Mark raid6_calls and other structures containing function pointers with > __designated_init. Fix implementations in lib/raid6/ to use designated > initializers; this also simplifies those initializers using the default > initialization of

Re: [PATCH 0/2] new API to allocate buffer-cache for superblock in non-movable area

2014-07-31 Thread Gioh Kim
2014-08-01 오전 9:07, Gioh Kim 쓴 글: 2014-07-31 오후 9:21, Jan Kara 쓴 글: On Thu 31-07-14 09:37:15, Gioh Kim wrote: 2014-07-31 오전 9:03, Jan Kara 쓴 글: On Thu 31-07-14 08:54:40, Gioh Kim wrote: 2014-07-30 오후 7:11, Jan Kara 쓴 글: On Wed 30-07-14 16:44:24, Gioh Kim wrote: 2014-07-22 오후 6:38, Jan

[PATCH v2] ACPI / LPSS: add lpss device for Wildcat Point PCH

2014-07-31 Thread Jie Yang
INT3438 is the ADSP device on Wildcat Point platform with 2 DW DMA engines built In. The DMA engines are used for DSP FW loading and audio data transferring. These DMA engine probing need the clock, without it, probing may failed and can't go forward. Add lpss device "INT3438" for Wildcat Point PC

Re: [PATCH 1/3] irq / PM: New driver interface for wakeup interrupts

2014-07-31 Thread Rafael J. Wysocki
On Friday, August 01, 2014 02:08:12 AM Rafael J. Wysocki wrote: > On Friday, August 01, 2014 12:16:23 AM Thomas Gleixner wrote: > > On Thu, 31 Jul 2014, Rafael J. Wysocki wrote: > > > On Thursday, July 31, 2014 12:44:24 PM Thomas Gleixner wrote: [cut] > Except for a couple of points where I'm not

RE: [PATCH] KVM: nVMX: nested TPR shadow/threshold emulation

2014-07-31 Thread Zhang, Yang Z
Paolo Bonzini wrote on 2014-07-31: > Il 31/07/2014 10:03, Wanpeng Li ha scritto: >>> One thing: >>> + if (nested_cpu_has(vmcs12, CPU_BASED_TPR_SHADOW)) + vmcs_write32(TPR_THRESHOLD, vmcs12->tpr_threshold); >>> >>> I think you can just do this write unconditionally, since most

Re: [PATCH] cpufreq, store_scaling_governor requires policy->rwsem to be held for duration of changing governors [v2]

2014-07-31 Thread Saravana Kannan
On 07/31/2014 03:58 PM, Prarit Bhargava wrote: On 07/31/2014 06:13 PM, Saravana Kannan wrote: On 07/31/2014 02:08 PM, Prarit Bhargava wrote: On 07/31/2014 04:38 PM, Saravana Kannan wrote: On 07/31/2014 01:30 PM, Prarit Bhargava wrote: On 07/31/2014 04:24 PM, Saravana Kannan wrote: Pra

Re: [PATCH v2 tip/core/rcu 01/10] rcu: Add call_rcu_tasks()

2014-07-31 Thread Lai Jiangshan
On 08/01/2014 12:09 AM, Paul E. McKenney wrote: > >>> + /* >>> +* There were callbacks, so we need to wait for an >>> +* RCU-tasks grace period. Start off by scanning >>> +* the task list for tasks that are not already >>> +* voluntarily

  1   2   3   4   5   6   7   8   >