[PATCH 03/10] block: allow __blk_queue_bounce() to handle bios larger than BIO_MAX_PAGES

2015-04-27 Thread Ming Lin
From: Kent Overstreet Allow __blk_queue_bounce() to handle bios with more than BIO_MAX_PAGES segments. Doing that, it becomes possible to simplify the block layer in the kernel. The issue is that any code that clones the bio and must clone the biovec (i.e. it can't use bio_clone_fast()) won't be

[PATCH 08/10] fs: use helper bio_add_page() instead of open coding on bi_io_vec

2015-04-27 Thread Ming Lin
From: Kent Overstreet Call pre-defined helper bio_add_page() instead of open coding for iterating through bi_io_vec[]. Doing that, it's possible to make some parts in filesystems and mm/page_io.c simpler than before. Acked-by: Dave Kleikamp Cc: Christoph Hellwig Cc: Al Viro Cc: linux-fsde...@

[PATCH 02/10] block: simplify bio_add_page()

2015-04-27 Thread Ming Lin
From: Kent Overstreet Since generic_make_request() can now handle arbitrary size bios, all we have to do is make sure the bvec array doesn't overflow. __bio_add_page() doesn't need to call ->merge_bvec_fn(), where we can get rid of unnecessary code paths. Note that removing call to ->merge_bvec_

[PATCH 04/10] bcache: clean up hacks around bio_split_pool

2015-04-27 Thread Ming Lin
From: Kent Overstreet There has been workarounds only in bcache, for splitting pool as well as submitting bios. Since generic_make_request() is able to handle arbitrarily sized bios, it's now possible to delete those hacks. Cc: linux-bca...@vger.kernel.org Signed-off-by: Kent Overstreet [dpark:

[PATCH 09/10] md/raid10: make sync_request_write() call bio_copy_data()

2015-04-27 Thread Ming Lin
From: Kent Overstreet Refactor sync_request_write() of md/raid10 to use bio_copy_data() instead of open coding bio_vec iterations. Cc: Christoph Hellwig Cc: Neil Brown Cc: linux-r...@vger.kernel.org Reviewed-by: Christoph Hellwig Acked-by: NeilBrown Signed-off-by: Kent Overstreet [dpark: ad

[PATCH 06/10] md/raid5: get rid of bio_fits_rdev()

2015-04-27 Thread Ming Lin
From: Kent Overstreet Remove bio_fits_rdev() completely, because ->merge_bvec_fn() has now gone. There's no point in calling bio_fits_rdev() only for ensuring aligned read from rdev. Cc: Neil Brown Cc: linux-r...@vger.kernel.org Signed-off-by: Kent Overstreet [dpark: add more description in co

[PATCH 01/10] block: make generic_make_request handle arbitrarily sized bios

2015-04-27 Thread Ming Lin
From: Kent Overstreet The way the block layer is currently written, it goes to great lengths to avoid having to split bios; upper layer code (such as bio_add_page()) checks what the underlying device can handle and tries to always create bios that don't need to be split. But this approach become

[PATCH 07/10] block: kill merge_bvec_fn() completely

2015-04-27 Thread Ming Lin
From: Kent Overstreet As generic_make_request() is now able to handle arbitrarily sized bios, it's no longer necessary for each individual block driver to define its own ->merge_bvec_fn() callback. Remove every invocation completely. Cc: Jens Axboe Cc: Lars Ellenberg Cc: drbd-u...@lists.linbit

[RFC PATCH v2 00/10] simplify block layer based on immutable biovecs

2015-04-27 Thread Ming Lin
Dongsu sent v1 of this patchset. https://lkml.org/lkml/2014/12/22/128 This is the second attempt of simplifying block layer based on immutable biovecs. Immutable biovecs, implemented by Kent Overstreet, have been available in mainline since v3.14. Its original goal was actually making generic_make

[PATCH 05/10] btrfs: remove bio splitting and merge_bvec_fn() calls

2015-04-27 Thread Ming Lin
From: Kent Overstreet Btrfs has been doing bio splitting from btrfs_map_bio(), by checking device limits as well as calling ->merge_bvec_fn() etc. That is not necessary any more, because generic_make_request() is now able to handle arbitrarily sized bios. So clean up unnecessary code paths. Cc:

[PATCH 10/10] Documentation: update notes in biovecs about arbitrarily sized bios

2015-04-27 Thread Ming Lin
From: Dongsu Park Update block/biovecs.txt so that it includes a note on what kind of effects arbitrarily sized bios would bring to the block layer. Also fix a trivial typo, bio_iter_iovec. Cc: Christoph Hellwig Cc: Kent Overstreet Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org Signed-off-

Re: [PATCH v2 2/2] cpufreq: powernv: Register for OCC related opal_message notification

2015-04-27 Thread Viresh Kumar
On 28 April 2015 at 11:53, Shilpasri G Bhat wrote: > Changes from v1: > - Add macros to define OCC_RESET, OCC_LOAD and OCC_THROTTLE > - Define a structure to store chip id, chip mask which has bits set > for cpus present in the chip, throttled state and a work_struct. > - Modify powernv_cpufreq

[PATCH net-next,v3,1/1] hv_netvsc: introduce netif-msg into netvsc module

2015-04-27 Thread sixiao
From: Simon Xiao 1. Introduce netif-msg to netvsc to control debug logging output and keep msg_enable in netvsc_device_context so that it is kept persistently. 2. Only call dump_rndis_message() when NETIF_MSG_RX_ERR or above is specified in netvsc module debug param. In non-debug mode, in current

Re: Build regressions/improvements in v4.1-rc1

2015-04-27 Thread Rusty Russell
Geert Uytterhoeven writes: > On Mon, Apr 27, 2015 at 11:51 AM, Geert Uytterhoeven > wrote: >> Below is the list of build error/warning regressions/improvements in >> v4.1-rc1[1] compared to v4.0[2]. >> >> Summarized: >> - build errors: +34/-11 >> - build warnings: +135/-163 >> >> As I haven't

[PATCH v2 2/2] cpufreq: powernv: Register for OCC related opal_message notification

2015-04-27 Thread Shilpasri G Bhat
OCC is an On-Chip-Controller which takes care of power and thermal safety of the chip. During runtime due to power failure or overtemperature the OCC may throttle the frequencies of the CPUs to remain within the power budget. We want the cpufreq driver to be aware of such situations to be able to

[PATCH v2 1/2] powerpc/powernv: Add definition of OPAL_MSG_OCC message type

2015-04-27 Thread Shilpasri G Bhat
Add OPAL_MSG_OCC message definition to opal_message_type to receive OCC events like reset, load and throttled. Host performance can be affected when OCC is reset or OCC throttles the max Pstate. We can register to opal_message_notifier to receive OPAL_MSG_OCC type of message and report it to the us

Re: [PATCH] perf/x86/intel/uncore: fix IMC missing box initialization

2015-04-27 Thread Stephane Eranian
On Sun, Apr 26, 2015 at 8:43 PM, Liang, Kan wrote: > >> >> > This leads me to believe that this patch: >> > >> > commit c05199e5a57a579fea1e8fa65e2b511ceb524ffc >> > Author: Kan Liang >> > Date: Tue Jan 20 04:54:25 2015 + >> > >> > perf/x86/intel/uncore: Move uncore_box_init() out of dr

[PATCH v2 0/2] powernv: cpufreq: Report frequency throttle by OCC

2015-04-27 Thread Shilpasri G Bhat
This patchset intends to add frequency throttle reporting mechanism to powernv-cpufreq driver when OCC throttles the frequency. OCC is an On-Chip-Controller which takes care of the power and thermal safety of the chip. The CPU frequency can be throttled during an OCC reset or when OCC tries to limi

RE: [PATCH v6 01/26] IB/Verbs: Implement new callback query_transport()

2015-04-27 Thread Hefty, Sean
> > Keep in mind that this enum was Liran's response to Michael's original > > patch. In the enum in Michael's patch, there was both USNIC and > > USNIC_UDP. > > Right! That's why I'm confused. Seems wrong to drop it, right? I think the original USNIC protocol is layered directly over Ethernet.

Re: [PATCH 0/6] ARM: berlin: relicense the device trees under GPLv2/X11

2015-04-27 Thread Jisheng Zhang
Dear Antoine, On Sun, 26 Apr 2015 07:03:27 -0700 Antoine Tenart wrote: > Hi, > > The GPLv2 license makes it impractical for other software components > licensed under another license to use our device trees. To fix this, > and make our device tree usable by other software components, relicense

Re: [PATCH 2/2] cpufreq: powernv: Register for OCC related opal_message notification

2015-04-27 Thread Shilpasri G Bhat
Hi Preeti, On 04/23/2015 05:28 PM, Preeti U Murthy wrote: > Hi Shilpa, > > On 04/22/2015 10:34 PM, Shilpasri G Bhat wrote: >> OCC is an On-Chip-Controller which takes care of power and thermal >> safety of the chip. During runtime due to power failure or >> overtemperature the OCC may throttle th

[PATCH] coresight: fix typo in of_coresight.c

2015-04-27 Thread Pankaj Dubey
fixes obvious typo in of_coresight.c %s/non-configuable/non-configurable Signed-off-by: Pankaj Dubey --- drivers/hwtracing/coresight/of_coresight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_cor

Re: [PATCH 2/2] cpufreq: powernv: Register for OCC related opal_message notification

2015-04-27 Thread Shilpasri G Bhat
Hi Viresh, On 04/27/2015 10:02 AM, Viresh Kumar wrote: > On 22 April 2015 at 22:34, Shilpasri G Bhat > wrote: >> diff --git a/drivers/cpufreq/powernv-cpufreq.c >> b/drivers/cpufreq/powernv-cpufreq.c > >> +static char throttle_reason[6][50] = { "No throttling", > > Don't need to mention 6 here.

Re: revert "fs/befs/linuxvfs.c: replace strncpy by strlcpy"

2015-04-27 Thread Fabian Frederick
> On 28 April 2015 at 05:48 Al Viro wrote: > > > commit 39d7a29f867bd5a4a551fad6bb3812ceddb0bce1 > Author: Fabian Frederick > Date:   Fri Jun 6 14:36:15 2014 -0700 > >     fs/befs/linuxvfs.c: replace strncpy by strlcpy >      >     strncpy + end of string assignment replaced by strlcpy > > repl

Re: [PATCH v2] spi: omap2-mcspi: Add support for GPIO chipselects

2015-04-27 Thread Martin Sperl
> On 28.04.2015, at 03:21, Michael Welling wrote: > If I were to attempt to convert the driver to use the core chipselect support, > how would I go about doing it? > > Is there another driver that I can use for reference? You may look into this patch: e34ff011c70e5f4ef219141711142d5111ae6ebb for

[PATCH v2 6/8] clk: sirf: Constify parent names in clock init data

2015-04-27 Thread Krzysztof Kozlowski
The array of parent names can be made as array of const pointers to const strings. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/sirf/clk-common.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clk/sirf/clk-common.c b/drivers/clk/sirf/clk-common.c i

[PATCH v2 4/8] clk: tegra: Fix duplicate const for parent names

2015-04-27 Thread Krzysztof Kozlowski
Replace duplicated const keyword for 'emc_parent_clk_names' with proper array of const pointers to const strings. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/tegra/clk-emc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/tegra/clk-emc.c b/drivers/clk/tegra

[PATCH v2 5/8] clk: cdce706: Constify parent names in clock init data

2015-04-27 Thread Krzysztof Kozlowski
The array of parent names can be made as array of const pointers to const strings. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-cdce706.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-cdce706.c b/drivers/clk/clk-cdce706.c index b8e4f8a822e9..8a

[PATCH v2 8/8] MIPS: Alchemy: Remove unneeded cast removing const

2015-04-27 Thread Krzysztof Kozlowski
Parent names in clock init data is now array of const pointers to const strings so the cast is not needed. Signed-off-by: Krzysztof Kozlowski --- arch/mips/alchemy/common/clock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/alchemy/common/clock.c b/arch/mip

[PATCH v2 7/8] clk: ls1x: Fix duplicate const for parent names

2015-04-27 Thread Krzysztof Kozlowski
Replace duplicated const keyword with proper array of const pointers to const strings. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-ls1x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-ls1x.c b/drivers/clk/clk-ls1x.c index ca80103ac188..d4c61

[PATCH v2 3/8] clk: tegra: Fix inconsistent indenting

2015-04-27 Thread Krzysztof Kozlowski
Fix the indentation - spaces used instead of tabs and actually wrong number of spaces. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/tegra/clk-emc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/clk/tegra/clk-emc.c b/drivers/clk/tegra/clk-emc.c

[PATCH v2 1/8] clk: rockchip: Staticize file-scope declarations

2015-04-27 Thread Krzysztof Kozlowski
Add missing static to local (file-scope only) symbols. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/rockchip/clk-rk3188.c | 2 +- drivers/clk/rockchip/clk-rk3288.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3188.c b/drivers/clk/rockch

[PATCH v2 2/8] clk: exynos: Staticize file-scope declarations

2015-04-27 Thread Krzysztof Kozlowski
Add missing static to local (file-scope only) symbols. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk-exynos5260.c | 74 ++-- drivers/clk/samsung/clk-exynos5420.c | 10 ++--- 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/drivers/

[PATCH v2 0/8] clk: Minor cleanups

2015-04-27 Thread Krzysztof Kozlowski
Hi, Changes since v1 1. Rebase on next-20150427 and Sascha Hauer's: clk: make strings in parent name arrays const [1] 2. Add patch "clk: tegra: Fix inconsistent indenting". Description and dependencies Small cleanups for differen

Re: [PATCH 3/3 V8] workqueue: Allow modifying low level unbound workqueue cpumask

2015-04-27 Thread Mike Galbraith
On Mon, 2015-04-27 at 23:44 -0400, Tejun Heo wrote: > > So, we need an API to modify the wq_unbound_cpumask, and I provided > > this public function. Otherwise, the other code can't modify it. > > I see. I don't have too strong an opinion; however, changing the mask > is a fairly heavy operatio

RE: [PATCH v2 0/6] Drivers: hv: vmbus: fair round robin algorithm for vmbus_get_outgoing_channel()

2015-04-27 Thread Dexuan Cui
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, April 28, 2015 1:04 > To: KY Srinivasan > Cc: Haiyang Zhang; de...@linuxdriverproject.org; linux- > ker...@vger.kernel.org; Dexuan Cui > Subject: [PATCH v2 0/6] Drivers: hv: vmbus: fair round robin a

[PATCH] ASoC: fix simple_return.cocci warnings

2015-04-27 Thread kbuild test robot
sound/soc/codecs/adau1977.c:496:5-8: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Lars-Peter Clausen Signed-off-by: Fengguang Wu --- adau1977.c |

[PATCH] ASoC: fix simple_return.cocci warnings

2015-04-27 Thread kbuild test robot
sound/soc/codecs/ssm2518.c:521:5-8: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Lars-Peter Clausen Signed-off-by: Fengguang Wu --- ssm2518.c |

Re: [PATCH 3/3 V8] workqueue: Allow modifying low level unbound workqueue cpumask

2015-04-27 Thread Tejun Heo
Hello, On Tue, Apr 28, 2015 at 10:24:31AM +0800, Lai Jiangshan wrote: > >> Wouldn't this make a lot more sense above when copying @attrs into > >> @new_attrs? The comment there even says "make a copy of @attrs and > >> sanitize it". Copy to @new_attrs, mask with wq_unbound_cpumask and > >> fall

revert "fs/befs/linuxvfs.c: replace strncpy by strlcpy"

2015-04-27 Thread Al Viro
commit 39d7a29f867bd5a4a551fad6bb3812ceddb0bce1 Author: Fabian Frederick Date: Fri Jun 6 14:36:15 2014 -0700 fs/befs/linuxvfs.c: replace strncpy by strlcpy strncpy + end of string assignment replaced by strlcpy replaces perfectly safe code with undefined behaviour. All in the nam

Re: [PATCH 3/3 V8] workqueue: Allow modifying low level unbound workqueue cpumask

2015-04-27 Thread Tejun Heo
Hello, On Tue, Apr 28, 2015 at 09:44:44AM +0800, Lai Jiangshan wrote: > >> +int workqueue_set_unbound_cpumask(cpumask_var_t cpumask); > > > > Why is this a public function? > > > In V4 patchset, Kevin Hilman had requested the wq_unbound_cpumask > to be "cpumask_complement(wq_unbound_cpumask, ti

Re: [PATCH 0/4] extcon: Modify the name of unused external connector

2015-04-27 Thread Krzysztof Kozlowski
On 27.04.2015 21:31, Chanwoo Choi wrote: This patchset alter the unused name of external connector (jig/dock/MHL) as following. The name of jig cable and dock device include the non-standard H/W information. On user-space side, this information are not necessary. The extcon core will support the

Re: [PATCH 1/3] mtd: nand: Add on-die ECC support

2015-04-27 Thread punnaiah choudary kalluri
On Tue, Apr 28, 2015 at 8:52 AM, Brian Norris wrote: > On Tue, Apr 28, 2015 at 08:18:12AM +0530, punnaiah choudary kalluri wrote: >> On Tue, Apr 28, 2015 at 4:53 AM, Brian Norris >> wrote: >> > On Tue, Apr 28, 2015 at 12:19:16AM +0200, Richard Weinberger wrote: >> >> Oh, I thought every driver ha

Re: [PATCH 07/23] gpio: sysfs: rename gpiochip registration functions

2015-04-27 Thread Alexandre Courbot
On Mon, Apr 27, 2015 at 6:05 PM, Johan Hovold wrote: > On Mon, Apr 27, 2015 at 05:50:54PM +0900, Alexandre Courbot wrote: >> On Mon, Apr 27, 2015 at 5:27 PM, Johan Hovold wrote: >> > On Mon, Apr 27, 2015 at 12:54:36PM +0900, Alexandre Courbot wrote: >> >> On Wed, Apr 22, 2015 at 12:42 AM, Johan H

Re: [PATCH v9 13/17] h8300: configs

2015-04-27 Thread Guenter Roeck
On Mon, Apr 27, 2015 at 02:35:20PM +0900, Yoshinori Sato wrote: > h8300h-sim_defconfig: H8/300H simulator config. > h8s-sim_defconfig:H8S simulator config. > edosk2674_defconfig: EDOSK2674R evalution board config. Did that get lost ? Guenter > > Signed-off-by: Yoshinori Sato > --- > arch

Re: [PATCH] mlx4: Fix tx ring affinity_mask creation

2015-04-27 Thread Benjamin Poirier
On 2015/04/13 17:22, Benjamin Poirier wrote: > On 2015/04/12 10:03, Ido Shamay wrote: > > Hi Benjamin, > > > > On 4/10/2015 7:27 PM, Benjamin Poirier wrote: > > >By default, the number of tx queues is limited by the number of online > > >cpus in > > >mlx4_en_get_profile(). However, this limit no

Re: [PATCH v2] ipc/mqueue: remove STATE_PENDING

2015-04-27 Thread Davidlohr Bueso
On Fri, 2015-04-24 at 00:18 +0200, Thomas Gleixner wrote: > Can you please convert that over to Peters lockless wake queues so we > do not reimplement the same thing open coded here. So I'd like to include this in my v2 of the wake_q stuff, along with the futex conversion. What do you guys think o

RE: [PATCH net 1/1] hv_netvsc: Fix a bug in netvsc_start_xmit()

2015-04-27 Thread KY Srinivasan
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, April 27, 2015 7:57 PM > To: KY Srinivasan > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com > Subject

Re: [PATCH 1/3] mtd: nand: Add on-die ECC support

2015-04-27 Thread Brian Norris
On Tue, Apr 28, 2015 at 08:18:12AM +0530, punnaiah choudary kalluri wrote: > On Tue, Apr 28, 2015 at 4:53 AM, Brian Norris > wrote: > > On Tue, Apr 28, 2015 at 12:19:16AM +0200, Richard Weinberger wrote: > >> Oh, I thought every driver has to implement that function. ;-\ > > > > Nope. > > > >> But

Re: [PATCH 1/3] mtd: nand: Add on-die ECC support

2015-04-27 Thread punnaiah choudary kalluri
On Wed, Mar 25, 2015 at 7:32 PM, Richard Weinberger wrote: > Some Micron NAND chips offer an on-die ECC (AKA internal ECC) > feature. It is useful when the host-platform does not offer > multi-bit ECC and software ECC is not feasible. > > Based on original work by David Mosberger > > Signed-off-b

Re: [PATCH v2] net: netcp: remove call to netif_carrier_(on/off) for MAC to Phy interface

2015-04-27 Thread David Miller
From: Murali Karicheri Date: Mon, 27 Apr 2015 14:12:43 -0400 > Currently when interface type is MAC to Phy, netif_carrier_(on/off) > is called which is not needed as Phy lib already updates the carrier > status to net stack. This is needed only for other interface types > > Signed-off-by: Murali

linux-next: Tree for Apr 28

2015-04-27 Thread Stephen Rothwell
Hi all, Changes since 20150427: New tree: dmi Non-merge commits (relative to Linus' tree): 725 874 files changed, 61499 insertions(+), 14685 deletions(-) I have created today's linux-next t

[PATCH v3 2/6] random: Async and sync API for accessing kernel_pool

2015-04-27 Thread Stephan Mueller
The kernel_pool is intended to be the in-kernel equivalent to the blocking_pool, i.e. requests for random data may be blocked if insufficient entropy is present. The added API calls provide a synchronous function call get_blocking_random_bytes where the caller is blocked. In addition, an asynchro

[PATCH v3 3/6] crypto: drbg - prepare for async seeding

2015-04-27 Thread Stephan Mueller
In order to prepare for the addition of the asynchronous seeding call, the invocation of seeding the DRBG is moved out into a helper function. In addition, a block of memory is allocated during initialization time that will be used as a scratchpad for obtaining entropy. That scratchpad is used for

[PATCH v3 0/6] Seeding DRBG with more entropy

2015-04-27 Thread Stephan Mueller
Hi, as of now, the DRBG is only seeded from get_random_bytes. In various circumstances, the nonblocking_pool behind get_random_bytes may not be fully seeded from hardware events at the time the DRBG requires to be seeded. Based on the discussion in [1], the DRBG seeding is updated such that it doe

Re: [PATCHv5 04/28] mm, thp: adjust conditions when we can reuse the page on WP fault

2015-04-27 Thread Hillf Danton
> > With new refcounting we will be able map the same compound page with > PTEs and PMDs. It requires adjustment to conditions when we can reuse > the page on write-protection fault. > > For PTE fault we can't reuse the page if it's part of huge page. > > For PMD we can only reuse the page if no

[PATCH v3 1/6] random: Addition of kernel_pool

2015-04-27 Thread Stephan Mueller
The kernel pool is intended to serve kernel-internal callers only. Its purpose and usage is identical to the blocking_pool. As the kernel_pool is not available to user space, user space cannot directly interfere with the blocking behavior when obtaining data from the kernel_pool. Thus, if entropy

[PATCH v3 4/6] crypto: drbg - add async seeding operation

2015-04-27 Thread Stephan Mueller
The async seeding operation is triggered during initalization right after the first non-blocking seeding is completed. As required by the asynchronous operation of random.c, a callback function is provided that is triggered by random.c once entropy is available. That callback function performs the

[PATCH v3 6/6] crypto: add jitterentropy RNG

2015-04-27 Thread Stephan Mueller
The CPU Jitter RNG provides a source of good entropy by collecting CPU executing time jitter. The entropy in the CPU execution time jitter is magnified by the CPU Jitter Random Number Generator. The CPU Jitter Random Number Generator uses the CPU execution timing jitter to generate a bit stream whi

[PATCH v3 5/6] crypto: drbg - use Jitter RNG to obtain seed

2015-04-27 Thread Stephan Mueller
During initialization, the DRBG now tries to allocate a handle of the Jitter RNG. If such a Jitter RNG is available during seeding, the DRBG pulls the required entropy/nonce string from get_random_bytes and concatenates it with a string of equal size from the Jitter RNG. That combined string is now

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

2015-04-27 Thread William Cohen
Hi All, I have been experimenting with the patches for arm64 kprobes support. On occasion the kernel gets stuck in a loop printing output: Unexpected kernel single-step exception at EL1 This message by itself is not that enlighten. I added the attached patch to get some additional information

Re: [PATCH net 1/1] hv_netvsc: Fix a bug in netvsc_start_xmit()

2015-04-27 Thread David Miller
From: "K. Y. Srinivasan" Date: Mon, 27 Apr 2015 18:14:50 -0700 > Commit commit b08cc79155fc26d0d112b1470d1ece5034651a4b eliminated memory > allocation in the packet send path. This commit introduced a bug since it > did not account for the case if the skb was cloned. Fix this bug by > using the p

RE: [PATCH net 1/1] hv_netvsc: Fix a bug in netvsc_start_xmit()

2015-04-27 Thread Dexuan Cui
> -Original Message- > From: devel [mailto:driverdev-devel-boun...@linuxdriverproject.org] On > Behalf Of K. Y. Srinivasan > Sent: Tuesday, April 28, 2015 9:15 > To: da...@davemloft.net; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; >

Re: [PATCH 1/3] mtd: nand: Add on-die ECC support

2015-04-27 Thread punnaiah choudary kalluri
On Tue, Apr 28, 2015 at 4:53 AM, Brian Norris wrote: > On Tue, Apr 28, 2015 at 12:19:16AM +0200, Richard Weinberger wrote: >> Am 27.04.2015 um 23:35 schrieb Ben Shelton: >> > I tested this against the latest version of the PL353 NAND driver that >> > Punnaiah >> > has been working to upstream (co

Re: [PATCH RFC] net/macb: Fix UDPv4 checksum offload

2015-04-27 Thread David Miller
From: Jaeden Amero Date: Mon, 27 Apr 2015 17:43:30 -0500 > If we set the checksum field in the UDP header to 0, the checksum is > computed correctly. I think this is completely bogus. A UDP checksum of zero, means "checksum not computed". And your device isn't computing the checksum at all, bu

Re: [PATCH 2/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2015-04-27 Thread Joonwoo Park
Thomas, I made some clean up. Will much appreciate if you can give me some feedback on this. Thanks, Joonwoo On 04/27/2015 07:39 PM, Joonwoo Park wrote: > When a deferrable work (INIT_DEFERRABLE_WORK, etc.) is queued via > queue_delayed_work() it's probably intended to run the work item on any

[PATCH 2/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2015-04-27 Thread Joonwoo Park
When a deferrable work (INIT_DEFERRABLE_WORK, etc.) is queued via queue_delayed_work() it's probably intended to run the work item on any CPU that isn't idle. However, we queue the work to run at a later time by starting a deferrable timer that binds to whatever CPU the work is queued on which is s

RE: [RFC PATCH 5/5] GHES: Make NMI handler have a single reader

2015-04-27 Thread Zheng, Lv
Hi, > From: Zheng, Lv > Sent: Tuesday, April 28, 2015 8:44 AM > > Hi, > > > From: Borislav Petkov [mailto:b...@alien8.de] > > Sent: Monday, April 27, 2015 4:47 PM > > > > On Mon, Apr 27, 2015 at 03:16:00AM +, Zheng, Lv wrote: > > > > @@ -840,7 +840,9 @@ static int ghes_notify_nmi(unsigned in

Re: [RFC PATCH 3/3] iio: derive the mounting matrix from ACPI _PLD objects

2015-04-27 Thread Octavian Purdila
On Tue, Apr 28, 2015 at 12:57 AM, sathyanarayanan kuppuswamy wrote: > Hi > > On 04/27/2015 08:54 AM, Octavian Purdila wrote: >> >> On Mon, Apr 27, 2015 at 6:42 PM, Kuppuswamy Sathyanarayanan >> wrote: >>> >>> Since Acpi framework already exports this info to user space, Why not do >>> this deriva

[PATCH 1/2] timer: avoid unnecessary waking up of nohz CPU

2015-04-27 Thread Joonwoo Park
At present, internal_add_timer() examines flags with 'base' which doesn't contain flags. Examine with 'timer->base' to avoid unnecessary waking up of nohz CPU when timer base has TIMER_DEFERRABLE. CC: Thomas Gleixner CC: John Stultz Signed-off-by: Joonwoo Park --- kernel/time/timer.c | 2 +-

Re: [PATCH 3/3 V8] workqueue: Allow modifying low level unbound workqueue cpumask

2015-04-27 Thread Lai Jiangshan
On 04/28/2015 09:44 AM, Lai Jiangshan wrote: >>> >>> + /* save the user configured attrs */ >>> + cpumask_and(new_attrs->cpumask, attrs->cpumask, cpu_possible_mask); >> >> Wouldn't this make a lot more sense above when copying @attrs into >> @new_attrs? The comment there even says "make a c

Re: [PATCH V6 00/10] namespaces: log namespaces per task

2015-04-27 Thread Eric W. Biederman
Richard Guy Briggs writes: > On 15/04/24, Eric W. Biederman wrote: >> Richard Guy Briggs writes: >> > On 15/04/22, Richard Guy Briggs wrote: >> >> On 15/04/20, Eric W. Biederman wrote: >> >> > Richard Guy Briggs writes: >> >> > >> > >> > Do I even need to report the device number anymore since

Re: [PATCH v2] irqchip: renesas-intc-irqpin: Improve binding documentation

2015-04-27 Thread Simon Horman
On Mon, Apr 27, 2015 at 04:45:37PM +0200, Geert Uytterhoeven wrote: > Add missing documentation for required properties: > - interrupt-controller, > - parent interrupts (one entry per provided interrupt). > > Add missing documentation for optional properties: > - functional clock (managed si

Re: [PATCH V6 00/10] namespaces: log namespaces per task

2015-04-27 Thread Richard Guy Briggs
On 15/04/24, Eric W. Biederman wrote: > Richard Guy Briggs writes: > > On 15/04/22, Richard Guy Briggs wrote: > >> On 15/04/20, Eric W. Biederman wrote: > >> > Richard Guy Briggs writes: > >> > > >> > > The purpose is to track namespace instances in use by logged processes > >> > > from the > >

Re: [PATCH 3/3 V8] workqueue: Allow modifying low level unbound workqueue cpumask

2015-04-27 Thread Lai Jiangshan
Hello > >> --- a/include/linux/workqueue.h >> +++ b/include/linux/workqueue.h >> @@ -424,6 +424,7 @@ struct workqueue_attrs *alloc_workqueue_attrs(gfp_t >> gfp_mask); >> void free_workqueue_attrs(struct workqueue_attrs *attrs); >> int apply_workqueue_attrs(struct workqueue_struct *wq, >>

Re: [PATCH v6 01/26] IB/Verbs: Implement new callback query_transport()

2015-04-27 Thread Tom Talpey
On 4/27/2015 6:24 PM, Doug Ledford wrote: On Mon, 2015-04-27 at 17:53 -0700, Tom Talpey wrote: On 4/27/2015 5:36 PM, Doug Ledford wrote: On Mon, 2015-04-27 at 17:16 -0700, Tom Talpey wrote: On 4/27/2015 2:52 PM, ira.weiny wrote: On Mon, Apr 27, 2015 at 09:39:05AM +0200, Michael Wang wrote: O

Re: [PATCH 3.12 00/83] 3.12.41-stable review

2015-04-27 Thread Guenter Roeck
On 04/27/2015 02:31 PM, Jiri Slaby wrote: This is the start of the stable review cycle for the 3.12.41 release. There are 83 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by W

Re: [PATCH v6 01/26] IB/Verbs: Implement new callback query_transport()

2015-04-27 Thread Doug Ledford
On Mon, 2015-04-27 at 17:53 -0700, Tom Talpey wrote: > On 4/27/2015 5:36 PM, Doug Ledford wrote: > > On Mon, 2015-04-27 at 17:16 -0700, Tom Talpey wrote: > >> On 4/27/2015 2:52 PM, ira.weiny wrote: > >>> On Mon, Apr 27, 2015 at 09:39:05AM +0200, Michael Wang wrote: > On 04/24/2015 05:12 PM, Li

Re: [PATCH v2] spi: omap2-mcspi: Add support for GPIO chipselects

2015-04-27 Thread Michael Welling
On Mon, Apr 27, 2015 at 08:55:50PM +0100, Mark Brown wrote: > On Sun, Apr 26, 2015 at 10:44:30PM -0500, Michael Welling wrote: > > > + if (gpio_is_valid(spi->cs_gpio)) { > > + gpio_set_value(spi->cs_gpio, (cs_active) ? > > + !!(spi->mode & SPI_CS_HIGH) : > > +

Re: [PATCH] ARM: imx: Constify irq_domain_ops

2015-04-27 Thread Shawn Guo
On Mon, Apr 27, 2015 at 09:51:39PM +0900, Krzysztof Kozlowski wrote: > The irq_domain_ops are not modified by the driver and the irqdomain core > code accepts pointer to a const data. > > Signed-off-by: Krzysztof Kozlowski Applied, thanks. -- To unsubscribe from this list: send the line "unsubsc

Re: [PATCH v6 01/26] IB/Verbs: Implement new callback query_transport()

2015-04-27 Thread Tom Talpey
On 4/27/2015 5:36 PM, Doug Ledford wrote: On Mon, 2015-04-27 at 17:16 -0700, Tom Talpey wrote: On 4/27/2015 2:52 PM, ira.weiny wrote: On Mon, Apr 27, 2015 at 09:39:05AM +0200, Michael Wang wrote: On 04/24/2015 05:12 PM, Liran Liss wrote: [snip] Like: enum rdma_protocol { RDMA_PROTO

Re: [PATCH 0/7] ARM: shmobile: Add IRQC clock to device tree

2015-04-27 Thread Simon Horman
On Mon, Apr 27, 2015 at 04:15:14PM +0200, Geert Uytterhoeven wrote: > Hi Simon, > > On Thu, Mar 19, 2015 at 2:43 AM, Simon Horman wrote: > > On Wed, Mar 18, 2015 at 07:55:54PM +0100, Geert Uytterhoeven wrote: > >> This patch series adds the IRQC clock to the device tree on SoCs that > >> have suc

RE: [RFC PATCH 5/5] GHES: Make NMI handler have a single reader

2015-04-27 Thread Zheng, Lv
Hi, > From: Borislav Petkov [mailto:b...@alien8.de] > Sent: Monday, April 27, 2015 4:47 PM > > On Mon, Apr 27, 2015 at 03:16:00AM +, Zheng, Lv wrote: > > > @@ -840,7 +840,9 @@ static int ghes_notify_nmi(unsigned int cmd, struct > > > pt_regs *regs) > > > struct ghes *ghes; > > > int sev,

BUG: unable to handle kernel paging request at ffffffee

2015-04-27 Thread Fengguang Wu
13641efa74a031 # 00:04 0- 5 Linux 4.1-rc1 # extra tests on tree/branch next/master git bisect bad b722a93ff1074b1c3f2273c669bd51368aeedf66 # 00:29 0- 5 Add linux-next specific files for 20150427 This script may reproduce the error. --

Re: [PATCH v6 01/26] IB/Verbs: Implement new callback query_transport()

2015-04-27 Thread Doug Ledford
On Mon, 2015-04-27 at 17:16 -0700, Tom Talpey wrote: > On 4/27/2015 2:52 PM, ira.weiny wrote: > > On Mon, Apr 27, 2015 at 09:39:05AM +0200, Michael Wang wrote: > >> > >> > >> On 04/24/2015 05:12 PM, Liran Liss wrote: > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > > >>> [sn

Re: [PATCH 3.12 00/83] 3.12.41-stable review

2015-04-27 Thread Shuah Khan
On 04/27/2015 03:31 PM, Jiri Slaby wrote: > This is the start of the stable review cycle for the 3.12.41 release. > There are 83 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses should be

Re: Interacting with coherent memory on external devices

2015-04-27 Thread Benjamin Herrenschmidt
On Mon, 2015-04-27 at 11:48 -0500, Christoph Lameter wrote: > On Mon, 27 Apr 2015, Rik van Riel wrote: > > > Why would we want to avoid the sane approach that makes this thing > > work with the fewest required changes to core code? > > Becaus new ZONEs are a pretty invasive change to the memory m

Re: [PATCH v6 01/26] IB/Verbs: Implement new callback query_transport()

2015-04-27 Thread Tom Talpey
On 4/27/2015 2:52 PM, ira.weiny wrote: On Mon, Apr 27, 2015 at 09:39:05AM +0200, Michael Wang wrote: On 04/24/2015 05:12 PM, Liran Liss wrote: From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- [snip] a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 65994a1..d54f91e 100644

Re: [PATCH 2/2] livepatch: x86: make kASLR logic more accurate

2015-04-27 Thread Minfei Huang
On 04/28/15 at 01:29P, Jiri Kosina wrote: > On Mon, 27 Apr 2015, Minfei Huang wrote: > > > Found that kaslr_enabled is only exist for x86. Maybe you can define a > > weak function klp_adjustment_function_addr in general. Then each arch > > can overwrite the function to implemente it specially. >

[PATCH net 1/1] hv_netvsc: Fix a bug in netvsc_start_xmit()

2015-04-27 Thread K. Y. Srinivasan
Commit commit b08cc79155fc26d0d112b1470d1ece5034651a4b eliminated memory allocation in the packet send path. This commit introduced a bug since it did not account for the case if the skb was cloned. Fix this bug by using the pre-reserved head room only if the skb is not cloned. Signed-off-by: K. Y

[PATCH] MIPS: R6: memcpy bugfix - zero length overwrites memory

2015-04-27 Thread Leonid Yegoshin
MIPS R6 version of memcpy has bug - then length to copy is zero and addresses are not aligned then it can overwrite a whole memory. Signed-off-by: Leonid Yegoshin --- arch/mips/lib/memcpy.S |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/lib/memcpy.S b/arch/mips/lib/memcpy.S i

Re: [PATCHv5 00/28] THP refcounting redesign

2015-04-27 Thread Kirill A. Shutemov
On Mon, Apr 27, 2015 at 04:03:48PM -0700, Andrew Morton wrote: > On Fri, 24 Apr 2015 00:03:35 +0300 "Kirill A. Shutemov" > wrote: > > > Hello everybody, > > > > Here's reworked version of my patchset. All known issues were addressed. > > > > The goal of patchset is to make refcounting on THP p

Re: [PATCH 2/2] livepatch: x86: make kASLR logic more accurate

2015-04-27 Thread Jiri Kosina
On Mon, 27 Apr 2015, Minfei Huang wrote: > Found that kaslr_enabled is only exist for x86. Maybe you can define a > weak function klp_adjustment_function_addr in general. Then each arch > can overwrite the function to implemente it specially. It might start to make sense once there is at least

Re: [PATCH 1/3] mtd: nand: Add on-die ECC support

2015-04-27 Thread Brian Norris
On Tue, Apr 28, 2015 at 12:19:16AM +0200, Richard Weinberger wrote: > Am 27.04.2015 um 23:35 schrieb Ben Shelton: > > I tested this against the latest version of the PL353 NAND driver that > > Punnaiah > > has been working to upstream (copying her on this message). With a few > > changes > > to

Re: [PATCH 1/3] mtd: nand: Add on-die ECC support

2015-04-27 Thread Brian Norris
On Mon, Apr 27, 2015 at 4:15 PM, Richard Weinberger wrote: > Am 28.04.2015 um 01:10 schrieb Brian Norris: >> On Mon, Apr 27, 2015 at 3:57 PM, Richard Weinberger wrote: >>> Am 28.04.2015 um 00:53 schrieb Brian Norris: On Tue, Apr 28, 2015 at 12:42:18AM +0200, Richard Weinberger wrote: > A

Re: [PATCH 1/3] mtd: nand: Add on-die ECC support

2015-04-27 Thread Richard Weinberger
Am 28.04.2015 um 01:10 schrieb Brian Norris: > On Mon, Apr 27, 2015 at 3:57 PM, Richard Weinberger wrote: >> Am 28.04.2015 um 00:53 schrieb Brian Norris: >>> On Tue, Apr 28, 2015 at 12:42:18AM +0200, Richard Weinberger wrote: Am 28.04.2015 um 00:36 schrieb Ben Shelton: >>> When I build th

Re: [PATCH 1/3] mtd: nand: Add on-die ECC support

2015-04-27 Thread Brian Norris
On Mon, Apr 27, 2015 at 3:57 PM, Richard Weinberger wrote: > Am 28.04.2015 um 00:53 schrieb Brian Norris: >> On Tue, Apr 28, 2015 at 12:42:18AM +0200, Richard Weinberger wrote: >>> Am 28.04.2015 um 00:36 schrieb Ben Shelton: >> When I build this without CONFIG_MTD_NAND_ECC_ON_DIE enabled, I ge

Re: [PATCHv5 00/28] THP refcounting redesign

2015-04-27 Thread Andrew Morton
On Fri, 24 Apr 2015 00:03:35 +0300 "Kirill A. Shutemov" wrote: > Hello everybody, > > Here's reworked version of my patchset. All known issues were addressed. > > The goal of patchset is to make refcounting on THP pages cheaper with > simpler semantics and allow the same THP compound page to b

Re: mm: compaction: BUG in isolate_migratepages_block()

2015-04-27 Thread Kirill A. Shutemov
On Mon, Apr 27, 2015 at 06:34:59PM -0400, Sasha Levin wrote: > Hi all, > > While fuzzing with trinity inside a KVM tools guest running the latest -next > kernel I've stumbled on the following spew: > > [ 4249.344788] kernel BUG at include/linux/page-flags.h:575! This should help: https://lkml.or

Re: [PATCH 1/3] mtd: nand: Add on-die ECC support

2015-04-27 Thread Richard Weinberger
Am 28.04.2015 um 00:53 schrieb Brian Norris: > On Tue, Apr 28, 2015 at 12:42:18AM +0200, Richard Weinberger wrote: >> Am 28.04.2015 um 00:36 schrieb Ben Shelton: > When I build this without CONFIG_MTD_NAND_ECC_ON_DIE enabled, I get the > following warning here: > > In file included

  1   2   3   4   5   6   7   8   9   >