Re: [resend Patch v3 1/2] kaslr: check if kernel location is changed

2014-10-14 Thread Vivek Goyal
On Mon, Oct 13, 2014 at 01:22:42PM -0400, Vivek Goyal wrote: > On Mon, Oct 13, 2014 at 08:43:00AM -0700, H. Peter Anvin wrote: > > On 10/13/2014 08:19 AM, Vivek Goyal wrote: > > >>> > > >>> This really shouldn't have happened this way on x86-64. It has to > > >>> happen > > >>> this way on i386,

[PATCH] pcmcia: don't bale on invalid card headers

2014-10-14 Thread Alan Cox
There is no requirement a PCMCIA card has valid CIS data or even a CIS. The MTD layer correctly handles this but the core PCMCIA code erroneously refuses to accept the card and prevents the MTD driver from working in this case. Tested with an Apple Newton 1MB SRAM card. Signed-off-by: Alan Cox

Re: [PATCH v2] regulator: rk808: Add support setting suspend voltage

2014-10-14 Thread Mark Brown
On Fri, Oct 10, 2014 at 03:35:06PM -0700, Chris Zhong wrote: > support setting suspend voltage and disable regulator in suspend. > > Signed-off-by: Chris Zhong > Reviewed-by: Doug Anderson Applied, thanks. signature.asc Description: Digital signature

Re: [RESEND PATCH v2 1/4] dmaengine: pl330: Remove non-NULL check for pl330_submit_req parameters

2014-10-14 Thread Krzysztof Kozlowski
On wto, 2014-10-14 at 17:21 +0530, Vinod Koul wrote: > On Mon, Sep 29, 2014 at 02:42:18PM +0200, Krzysztof Kozlowski wrote: > > The pl330_submit_req() checked supplied 'struct pl330_thread thrd' and > > 'struct dma_pl330_desc desc' parameters for non-NULL. However these > > checks are useless

[PATCH] pcmcia: fix sign extension on 64bit machines

2014-10-14 Thread One Thousand Gnomes
If you try and run pcmcia on a 64bit box the upper 32bits of the resource flags all end up set due to a sign extension bug in the PCMCIA core Signed-off-by: Alan Cox diff -u --new-file --recursive --exclude-from ac/.gitignore next/drivers/pcmcia/cs_internal.h ac/drivers/pcmcia/cs_internal.h

Re: [RESEND PATCH v2 1/4] dmaengine: pl330: Remove non-NULL check for pl330_submit_req parameters

2014-10-14 Thread Lars-Peter Clausen
On 10/14/2014 01:51 PM, Vinod Koul wrote: On Mon, Sep 29, 2014 at 02:42:18PM +0200, Krzysztof Kozlowski wrote: The pl330_submit_req() checked supplied 'struct pl330_thread thrd' and 'struct dma_pl330_desc desc' parameters for non-NULL. However these checks are useless because supplied arguments

Re: [PATCH 2/2] mfd: sec: Add support for S2MPS15 PMIC

2014-10-14 Thread Thomas Abraham
On Tue, Oct 14, 2014 at 2:11 PM, Krzysztof Kozłowski wrote: > On 14.10.2014 10:14, Thomas Abraham wrote: >> Add support for S2MPS15 PMIC which is similar to S2MPS11 PMIC. The S2MPS15 >> PMIC supports 27 LDO regulators, 10 buck regulators, RTC, three 32.768KHz >> clock outputs and battery charger.

[PATCH 4/7] x86/olpc/xo15/sci: Use newly added power_supply_put API

2014-10-14 Thread Krzysztof Kozlowski
Replace direct usage of put_device() with new API: power_supply_put(). Signed-off-by: Krzysztof Kozlowski --- arch/x86/platform/olpc/olpc-xo15-sci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/platform/olpc/olpc-xo15-sci.c

Re: [RESEND PATCH v2 4/4] dmaengine: pl330: Fix NULL pointer dereference on driver unbind

2014-10-14 Thread Vinod Koul
On Mon, Sep 29, 2014 at 02:42:21PM +0200, Krzysztof Kozlowski wrote: > Fix a NULL pointer dereference after unbinding the driver, if channel > resources were not yet allocated (no call to > pl330_alloc_chan_resources()): > $ echo 1285.mdma > /sys/bus/amba/drivers/dma-pl330/unbind > [

[PATCH 0/7] power_supply: Decrement the device reference counter

2014-10-14 Thread Krzysztof Kozlowski
Hi, The reference counter of device allocated for power supply was incremented with each call to power_supply_get_by_name() and power_supply_get_by_phandle(). Add a symmetric 'put' operation so the device could be released after final put_device() call during supply unregistering. Rebased on

Re: [RESEND PATCH v2 3/4] dmaengine: pl330: Fix NULL pointer dereference on probe failure

2014-10-14 Thread Vinod Koul
On Mon, Sep 29, 2014 at 02:42:20PM +0200, Krzysztof Kozlowski wrote: > If dma_async_device_register() returns error and probe should clean up > and return error, a NULL pointer exception happens because of > dereference of not allocated channel thread: > > Dmesg log (from early printk): >

Re: [PATCH 1/2] dt-bindings: mfd: s2mps11: add documentation for s2mps15 PMIC

2014-10-14 Thread Thomas Abraham
On Tue, Oct 14, 2014 at 2:13 PM, Krzysztof Kozłowski wrote: > On 14.10.2014 10:14, Thomas Abraham wrote: >> Add dt-binding documentation for s2mps15 PMIC device. The s2mps15 device >> is similar to s2mps11/14 PMIC device and has 27 LDO and 10 buck regulators. >> >> Cc: devicet...@vger.kernel.org

[PATCH 6/7] power: bq2415x_charger: Decrement the power supply's device reference counter

2014-10-14 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter (increased by power_supply_get_by_name() or power_supply_get_by_phandle()). Signed-off-by: Krzysztof Kozlowski --- drivers/power/bq2415x_charger.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

Re: [RESEND PATCH v2 2/4] dmaengine: pl330: Remove unused 'regs' variable in pl330_submit_req()

2014-10-14 Thread Vinod Koul
On Mon, Sep 29, 2014 at 02:42:19PM +0200, Krzysztof Kozlowski wrote: > The 'void __iomem *regs' is not used in pl330_submit_req() function. > Remove it. Applied, thanks -- ~Vinod > > Signed-off-by: Krzysztof Kozlowski > > --- > > Changes since v1: > = > 1. New patch. > ---

[PATCH 3/7] x86/olpc/xo1/sci: Use newly added power_supply_put API

2014-10-14 Thread Krzysztof Kozlowski
Replace direct usage of put_device() with new API: power_supply_put(). Signed-off-by: Krzysztof Kozlowski --- arch/x86/platform/olpc/olpc-xo1-sci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/platform/olpc/olpc-xo1-sci.c

[PATCH 5/7] power: 88pm860x_charger: Decrement the power supply's device reference counter

2014-10-14 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter. Signed-off-by: Krzysztof Kozlowski --- drivers/power/88pm860x_charger.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/power/88pm860x_charger.c

[PATCH 7/7] mfd: ab8500: Decrement the power supply's device reference counter

2014-10-14 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/ab8500-sysctrl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/ab8500-sysctrl.c b/drivers/mfd/ab8500-sysctrl.c index 93b2d2c32ca3..d05a5719cfc4

[PATCH 1/7] power_supply: Add power_supply_put for decrementing device reference counter

2014-10-14 Thread Krzysztof Kozlowski
The power_supply_get_by_phandle() and power_supply_get_by_name() use function class_find_device() for obtaining the reference to power supply. Each use of class_find_device() increases the power supply's device reference counter. However the reference counter was not decreased by users of this

[PATCH 2/7] power: charger-manager: Decrement the power supply's device reference counter

2014-10-14 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter. Signed-off-by: Krzysztof Kozlowski --- drivers/power/charger-manager.c | 69 +++-- 1 file changed, 46 insertions(+), 23 deletions(-) diff --git a/drivers/power/charger-manager.c

Re: [PATCH] regulator: s2mps11: add support for S2MPS15 regulators

2014-10-14 Thread Thomas Abraham
On Tue, Oct 14, 2014 at 2:18 PM, Krzysztof Kozłowski wrote: > On 14.10.2014 10:17, Thomas Abraham wrote: >> The S2MPS15 PMIC is similar in functionality to S2MPS11/14 PMIC. It contains >> 27 LDO and 10 Buck regulators and allows programming these regulators via a >> I2C interface. This patch adds

Re: [PATCH 1/2] mm: Introduce a general RCU get_user_pages_fast.

2014-10-14 Thread Steve Capper
On Tue, Oct 14, 2014 at 05:38:43PM +0530, Aneesh Kumar K.V wrote: > Steve Capper writes: > > > On Tue, Oct 14, 2014 at 04:27:53PM +0530, Aneesh Kumar K.V wrote: > >> get_user_pages_fast attempts to pin user pages by walking the page > >> tables directly and avoids taking locks. Thus the walker

[PATCH] mfd: max77693: Fix a truncate warning

2014-10-14 Thread Krzysztof Kozlowski
Fix warning on x86_64, make allyesconfig: drivers/mfd/max77693.c: In function ‘max77693_i2c_probe’: drivers/mfd/max77693.c:259:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] SRC_IRQ_ALL, ~SRC_IRQ_ALL); ^ Signed-off-by: Krzysztof Kozlowski ---

Re: [RESEND PATCH v2 1/4] dmaengine: pl330: Remove non-NULL check for pl330_submit_req parameters

2014-10-14 Thread Vinod Koul
On Mon, Sep 29, 2014 at 02:42:18PM +0200, Krzysztof Kozlowski wrote: > The pl330_submit_req() checked supplied 'struct pl330_thread thrd' and > 'struct dma_pl330_desc desc' parameters for non-NULL. However these > checks are useless because supplied arguments won't be NULL. even if we have some

Re: [PATCH 2/4] md: add flush_idx support for stacked devices

2014-10-14 Thread Mike Snitzer
On Tue, Oct 14 2014 at 6:03am -0400, Dmitry Monakhov wrote: > For single device mapping it is safe to introduce get_flush_idx conception. > This cover most common case linear mapping for a single dev. You really should email the entire patchset rather than forcing the need to hunt for the

[PATCH 3/8] power: 88pm860x_charger: Use power_supply_*() API for accessing function attrs

2014-10-14 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access access in case of unregistering the power supply (.e.g by removing the driver). Replace: - get_property -> power_supply_get_property - set_property -> power_supply_set_property Signed-off-by:

[PATCH 2/8] power_supply: sysfs: Use power_supply_*() API for accessing function attrs

2014-10-14 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access access in case of unregistering the power supply (.e.g by removing the driver). Replace: - get_property -> power_supply_get_property - set_property -> power_supply_set_property -

[PATCH 0/8] power_supply: Add API for safe access of get_property-like function attrs

2014-10-14 Thread Krzysztof Kozlowski
Hi, After fixing issue with referencing old power supply after driver unbind in charger manager [1] I noticed that the race condition in such case may still exist. It would be harder to trigger but still possible. The race is between using a reference to power supply (obtained with

[PATCH 4/8] power: ab8500: Use power_supply_*() API for accessing function attrs

2014-10-14 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access access in case of unregistering the power supply (.e.g by removing the driver). Replace: - get_property -> power_supply_get_property Signed-off-by: Krzysztof Kozlowski ---

[PATCH 5/8] mfd: ab8500: Use power_supply_*() API for accessing function attrs

2014-10-14 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access access in case of unregistering the power supply (.e.g by removing the driver). Replace: - get_property -> power_supply_get_property Signed-off-by: Krzysztof Kozlowski ---

[PATCH 1/8] power_supply: Add API for safe access of power supply function attrs

2014-10-14 Thread Krzysztof Kozlowski
Add simple wrappers for accessing power supply's function attributes: - get_property -> power_supply_get_property - set_property -> power_supply_set_property - property_is_writeable -> power_supply_property_is_writeable - external_power_changed -> power_supply_external_power_changed -

[PATCH 6/8] power: apm_power: Use power_supply_*() API for accessing function attrs

2014-10-14 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access access in case of unregistering the power supply (.e.g by removing the driver). Replace: - get_property -> power_supply_get_property Signed-off-by: Krzysztof Kozlowski ---

[PATCH 7/8] power: bq2415x_charger: Use power_supply_*() API for accessing function attrs

2014-10-14 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access access in case of unregistering the power supply (.e.g by removing the driver). Replace: - get_property -> power_supply_get_property Signed-off-by: Krzysztof Kozlowski ---

[PATCH 8/8] power: charger-manager: Use power_supply_*() API for accessing function attrs

2014-10-14 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access access in case of unregistering the power supply (.e.g by removing the driver). Replace: - get_property -> power_supply_get_property Signed-off-by: Krzysztof Kozlowski ---

Re: [PATCH 3/4] UBI: Fastmap: Care about the protection queue

2014-10-14 Thread Tanya Brokhman
On 10/14/2014 1:23 PM, Artem Bityutskiy wrote: On Mon, 2014-10-13 at 23:04 +0200, Richard Weinberger wrote: Am 13.10.2014 um 17:23 schrieb Artem Bityutskiy: Well, used and free are RB-trees, looking them up is slow. This is true but we'd have to look it up in multiple trees and the

Btrfs-progs pre-release 3.17

2014-10-14 Thread David Sterba
Hi, the 3.17 release is almost ready, I've updated the git repositories at http://repo.or.cz/w/btrfs-progs-unstable/devel.git https://github.com/kdave/btrfs-progs tagged as 3.17-rc3 (7fd6d933528f30a). Please give it some testing, I'm about to do a release in 1-2 days. Among other fixes and

Re: [PATCH v3] mtd: ubi: Extend UBI layer debug/messaging capabilities

2014-10-14 Thread Tanya Brokhman
On 10/13/2014 6:59 PM, Artem Bityutskiy wrote: On Mon, 2014-10-13 at 18:37 +0300, Artem Bityutskiy wrote: On Mon, 2014-10-06 at 14:01 +0300, Tanya Brokhman wrote: If there is more then one UBI device mounted, there is no way to distinguish between messages from different UBI devices. Add

Re: [PATCH v6] mmc: dw_mmc: Add IDMAC 64-bit address mode support

2014-10-14 Thread Alim Akhtar
Hi Prahu, Thanks for a quick re-spin o the patch. One last comment, this is more of a information seek. On Thu, Oct 9, 2014 at 1:09 PM, Prabu Thangamuthu wrote: > Synopsys DW_MMC IP core supports Internal DMA Controller with 64-bit address > mode from IP version 2.70a onwards. > Updated the

Re: [PATCH] staging: dgap: re-arrange functions for removing forward declarations.

2014-10-14 Thread Mark Hounschell
On 10/13/2014 10:04 PM, Greg KH wrote: On Mon, Oct 13, 2014 at 07:56:38AM -0700, Joe Perches wrote: On Mon, 2014-10-13 at 17:01 +0900, DaeSeok Youn wrote: Hi, 2014-10-13 12:25 GMT+09:00 Greg KH : On Mon, Oct 13, 2014 at 11:34:25AM +0900, Daeseok Youn wrote: Re-arrange the functions for

Re: [PATCH 1/2] mm: Introduce a general RCU get_user_pages_fast.

2014-10-14 Thread Aneesh Kumar K.V
Steve Capper writes: > On Tue, Oct 14, 2014 at 04:27:53PM +0530, Aneesh Kumar K.V wrote: >> get_user_pages_fast attempts to pin user pages by walking the page >> tables directly and avoids taking locks. Thus the walker needs to be >> protected from page table pages being freed from under it, and

Re: [PATCH] mmc: dw_mmc: Change signal voltage error to dev_dbg()

2014-10-14 Thread Alim Akhtar
Hi Doug, On Sat, Oct 11, 2014 at 9:46 AM, Doug Anderson wrote: > In (28f92b5 mmc: core: Try other signal levels during power up) we can > see that there are times when it's valid to try several signal > voltages. Don't print an ugly error in the logs when that happens. > > Signed-off-by: Doug

[RFC PATCH 1/9] mm/zbud: tidy up a bit

2014-10-14 Thread Heesub Shin
For aesthetics, add a blank line between functions, remove useless initialization statements, and simplify codes a bit. No functional differences are introduced. Signed-off-by: Heesub Shin --- mm/zbud.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git

[RFC PATCH 7/9] mm/zbud: drop zbud_header

2014-10-14 Thread Heesub Shin
Now that the only field in zbud_header is .under_reclaim, get it out of the struct and let PG_reclaim bit in page->flags take over. As a result of this change, we can finally eliminate the struct zbud_header, and hence all the internal data structures of zbud live in struct page. Signed-off-by:

[RFC PATCH 4/9] mm/zbud: remove first|last_chunks from zbud_header

2014-10-14 Thread Heesub Shin
The size information of each first and last buddy are stored into first|last_chunks in struct zbud_header respectively. Put them into page->private instead of zbud_header. Signed-off-by: Heesub Shin --- mm/zbud.c | 62 -- 1 file

[RFC PATCH 3/9] mm/zbud: remove lru from zbud_header

2014-10-14 Thread Heesub Shin
zbud_pool has an lru list for tracking zbud pages and they are strung together via zhdr->lru. If we reuse page->lru for linking zbud pages instead of it, the lru field in zbud_header can be dropped. Signed-off-by: Heesub Shin --- mm/zbud.c | 23 +-- 1 file changed, 13

[RFC PATCH 9/9] mm/zswap: use highmem pages for compressed pool

2014-10-14 Thread Heesub Shin
Now that the zbud supports highmem, storing compressed anonymous pages on highmem looks more reasonble. So, pass __GFP_HIGHMEM flag to zpool when zswap allocates memory from it. Signed-off-by: Heesub Shin --- mm/zswap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[RFC PATCH 8/9] mm/zbud: allow clients to use highmem pages

2014-10-14 Thread Heesub Shin
Now that all fields for the internal data structure of zbud are moved to struct page, there is no reason to restrict zbud pages to be allocated only in lowmem. This patch allows to use highmem pages for zbud pages. Pages from highmem are mapped using kmap_atomic() before accessing. Signed-off-by:

[RFC PATCH 6/9] mm/zbud: remove list_head for buddied list from zbud_header

2014-10-14 Thread Heesub Shin
zbud allocator links the _unbuddied_ zbud pages into a list in the pool. When it tries to allocate some spaces, the list is first searched for the best fit possible. Thus, current implementation has a list_head in zbud_header structure to construct the list. This patch simulates a list using the

[RFC PATCH 5/9] mm/zbud: encode zbud handle using struct page

2014-10-14 Thread Heesub Shin
As a preparation for further patches, this patch changes the way of encoding zbud handle. Currently, zbud handle is actually just a virtual address that is casted to unsigned long before return back. Exporting the address to clients would be inappropriate if we use highmem pages for zbud pages,

[RFC PATCH 2/9] mm/zbud: remove buddied list from zbud_pool

2014-10-14 Thread Heesub Shin
There's no point in having the _buddied_ list of zbud_pages, as nobody refers it. Tracking it adds runtime overheads only, so let's remove it. Signed-off-by: Heesub Shin --- mm/zbud.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/mm/zbud.c b/mm/zbud.c

[RFC PATCH 0/9] mm/zbud: support highmem pages

2014-10-14 Thread Heesub Shin
zbud is a memory allocator for storing compressed data pages. It keeps two data objects of arbitrary size on a single page. This simple design provides very deterministic behavior on reclamation, which is one of reasons why zswap selected zbud as a default allocator over zsmalloc. Unlike

Re: [PATCH 1/2] mm: Introduce a general RCU get_user_pages_fast.

2014-10-14 Thread Steve Capper
On Tue, Oct 14, 2014 at 04:27:53PM +0530, Aneesh Kumar K.V wrote: > get_user_pages_fast attempts to pin user pages by walking the page > tables directly and avoids taking locks. Thus the walker needs to be > protected from page table pages being freed from under it, and needs > to block any THP

Re: [PATCH] smaps should deal with huge zero page exactly same as normal zero page

2014-10-14 Thread Kirill A. Shutemov
On Fri, Oct 10, 2014 at 09:21:08PM +0800, Fengwei Yin wrote: > On Thu, Oct 09, 2014 at 09:36:30AM -0700, Dave Hansen wrote: > > On 10/09/2014 02:19 AM, Fengwei Yin wrote: > > > diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c > > > index 80ca4fb..8550b27 100644 > > > --- a/fs/proc/task_mmu.c >

Re: [PATCH] mm, debug: mm-introduce-vm_bug_on_mm-fix-fix.patch

2014-10-14 Thread Michal Hocko
On Mon 13-10-14 14:51:56, Dave Jones wrote: [...] > diff --git a/mm/debug.c b/mm/debug.c > index 5ce45c9a29b5..e04e2ae902a1 100644 > --- a/mm/debug.c > +++ b/mm/debug.c > @@ -164,74 +164,85 @@ void dump_vma(const struct vm_area_struct *vma) > } > EXPORT_SYMBOL(dump_vma); > > +static char

Re: [PATCH] regulator: s2mps11: add support for S2MPS15 regulators

2014-10-14 Thread Mark Brown
On Tue, Oct 14, 2014 at 01:47:43PM +0530, Thomas Abraham wrote: > The S2MPS15 PMIC is similar in functionality to S2MPS11/14 PMIC. It contains > 27 LDO and 10 Buck regulators and allows programming these regulators via a > I2C interface. This patch adds initial support for LDO/Buck regulators of >

Re: [PATCH 2/2] hyperv: Implement Time Synchronization using host time sample

2014-10-14 Thread Richard Cochran
On Tue, Oct 14, 2014 at 04:11:18AM -0700, Thomas Shao wrote: > In current hyper-v time sync service,it only gets the initial clock time > from the host. It didn't process the following time samples. This change > introduced a module parameter called host_time_sync. If it is set to true, > the

[PATCH] video/console: Resolve several shadow warnings

2014-10-14 Thread Jeff Kirsher
From: Mark Rustad Resolve shadow warnings that appear in W=2 builds by renaming the "state" global to "vgastate". Signed-off-by: Mark Rustad Signed-off-by: Jeff Kirsher --- drivers/video/console/vgacon.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff

Re: [PATCH] serial: 8250_core: use pre-decrement for iteration limit

2014-10-14 Thread Frans Klaver
On Mon, Oct 13, 2014 at 05:09:11PM +0200, Frans Klaver wrote: > In serial8250_rx_chars(), max_count is set to 256. Due to the > post-decrement operator used in the while() condition, the maximum > number of iterations actually 257. This is not a problem, but it is > mildly surprising if you're

Re: [BUG] mm, thp: khugepaged can't allocate on requested node when confined to a cpuset

2014-10-14 Thread Kirill A. Shutemov
On Wed, Oct 08, 2014 at 02:10:50PM -0500, Alex Thorlton wrote: > Hey everyone, > > I've run into a some frustrating behavior from the khugepaged thread, > that I'm hoping to get sorted out. It appears that if you pin > khugepaged to a cpuset (i.e. node 0), Why whould you want to pin khugpeaged?

Re: [PATCH resend] cgroup/kmemleak: add kmemleak_free() for cgroup deallocations.

2014-10-14 Thread Michal Hocko
[Adding Andrew who seems to be the right one to pick this up] On Tue 14-10-14 19:46:04, Wang Nan wrote: > Commit ff7ee93f4 introduces kmemleak_alloc() for alloc_page_cgroup(), > but corresponding kmemleak_free() is missing, which makes kmemleak be > wrongly disabled after memory offlining. Log is

Re: [PATCH] cgroup/kmemleak: add kmemleak_free() for cgroup deallocations.

2014-10-14 Thread Wang Nan
Hi, I can't find this patch appear in any tree, is there any problem? As Michal Hocko's suggestion, I resent this patch with stable tag added. Please review. Thanks. On 2014/9/18 9:38, Wang Nan wrote: > Commit ff7ee93f4 introduces kmemleak_alloc() for alloc_page_cgroup(), > but corresponding

[PATCH resend] cgroup/kmemleak: add kmemleak_free() for cgroup deallocations.

2014-10-14 Thread Wang Nan
Commit ff7ee93f4 introduces kmemleak_alloc() for alloc_page_cgroup(), but corresponding kmemleak_free() is missing, which makes kmemleak be wrongly disabled after memory offlining. Log is pasted at the end of this commit message. This patch add kmemleak_free() into free_page_cgroup(). During page

[PATCH] kernel/sysctl: Resolve missing-field-initializers warnings

2014-10-14 Thread Jeff Kirsher
From: Mark Rustad Resolve missing-field-initializers warnings in W=2 builds by using designated initialization. Signed-off-by: Mark Rustad Signed-off-by: Jeff Kirsher --- kernel/sysctl.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/sysctl.c

Re: [PATCH 4/4] ext4: Add fdatasync scalability optimization

2014-10-14 Thread Christoph Hellwig
On Tue, Oct 14, 2014 at 03:25:54PM +0400, Dmitry Monakhov wrote: > Christoph Hellwig writes: > > > Much of the bookkeeping here seems generic and should be in common > > code and not inside a filesystem. > Yes. But this means that I need to store flush_id inside generic inode > which likely will

[PATCH] xen: delay construction of mfn_list_list

2014-10-14 Thread Juergen Gross
The 3 level p2m tree for the Xen tools is constructed very early at boot by calling xen_build_mfn_list_list(). Memory needed for this tree is allocated via extend_brk(). As this tree (other than the kernel internal p2m tree) is only needed for domain save/restore, live migration and crash dump

Re: [PATCH 4/4] ext4: Add fdatasync scalability optimization

2014-10-14 Thread Dmitry Monakhov
Christoph Hellwig writes: > Much of the bookkeeping here seems generic and should be in common > code and not inside a filesystem. Yes. But this means that I need to store flush_id inside generic inode which likely will be accepted negatively because VFS people do not like inode bloating. But if

Re: [PATCH 2/2] hyperv: Implement Time Synchronization using host time sample

2014-10-14 Thread Dan Carpenter
I had a couple small style nits. On Tue, Oct 14, 2014 at 04:11:18AM -0700, Thomas Shao wrote: > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c > index 3b9c9ef..1d8390c 100644 > --- a/drivers/hv/hv_util.c > +++ b/drivers/hv/hv_util.c > @@ -51,11 +51,30 @@ > #define HB_WS2008_MAJOR

Re: [PATCH] staging: dgap: re-arrange functions for removing forward declarations.

2014-10-14 Thread DaeSeok Youn
Hi, 2014-10-14 11:19 GMT+09:00 Joe Perches : > On Tue, 2014-10-14 at 04:04 +0200, Greg KH wrote: >> On Mon, Oct 13, 2014 at 07:56:38AM -0700, Joe Perches wrote: >> > On Mon, 2014-10-13 at 17:01 +0900, DaeSeok Youn wrote: >> > > 2014-10-13 12:25 GMT+09:00 Greg KH : >> > > > On Mon, Oct 13, 2014 at

Re: [GIT] Security subsystem upate for 3.18

2014-10-14 Thread James Morris
On Mon, 13 Oct 2014, Paul Moore wrote: > On Monday, October 13, 2014 03:06:34 PM James Morris wrote: > > On Sun, 12 Oct 2014, Linus Torvalds wrote: > > > on some previous development, so it's often a good time to simply > > > create a new feature branch. I don't know how James feels about > > >

[PATCH 2/2] arch/powerpc: Switch to generic RCU get_user_pages_fast

2014-10-14 Thread Aneesh Kumar K.V
This patch switch the ppc arch to use the generic RCU based gup implementation. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/hugetlb.h | 8 +- arch/powerpc/include/asm/page.h | 3 +-

Re: [PATCH 4/4] ext4: Add fdatasync scalability optimization

2014-10-14 Thread Christoph Hellwig
Much of the bookkeeping here seems generic and should be in common code and not inside a filesystem. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 1/2] mm: Introduce a general RCU get_user_pages_fast.

2014-10-14 Thread Aneesh Kumar K.V
get_user_pages_fast attempts to pin user pages by walking the page tables directly and avoids taking locks. Thus the walker needs to be protected from page table pages being freed from under it, and needs to block any THP splits. One way to achieve this is to have the walker disable interrupts,

Re: [PATCH v2] netfilter: release skbuf when nlmsg put fail

2014-10-14 Thread Florian Westphal
Houcheng Lin wrote: > When system is under heavy loading, the __nfulnl_send() may may failed > to put nlmsg into skbuf of nfulnl_instance. If not clear the skbuff on failed, > the __nfulnl_send() will still try to put next nlmsg onto this half-full skbuf > and cause the user program can never

why commit 3189eddbcafc cause crisv32 panic

2014-10-14 Thread Real Name
hi, Guenter http://www.gossamer-threads.com/lists/linux/kernel/2011061 >[PATCH] Revert "percpu: free percpu allocation info for uniprocessor system" > > The commit causes a hang with a crisv32 image. This may be an architecture > problem, but at least for now the revert is necessary to be able

Re: [PATCH v6] ASoC: dapm: add code to configure dai link parameters

2014-10-14 Thread Nikesh Oswal
On Fri, Oct 10, 2014 at 05:49:59PM +0100, Mark Brown wrote: > On Fri, Oct 10, 2014 at 05:17:15PM +0100, Nikesh Oswal wrote: > > dai-link params for codec-codec links were fixed. The fixed > > link between codec and another chip which may be another codec, > > baseband, bluetooth codec etc may

Re: [PATCH 3.17 00/25] 3.17.1-stable review

2014-10-14 Thread Satoru Takeuchi
At Tue, 14 Oct 2014 05:26:07 +0200, Greg Kroah-Hartman wrote: > > On Tue, Oct 14, 2014 at 04:39:11AM +0200, Greg Kroah-Hartman wrote: > > On Mon, Oct 13, 2014 at 08:19:56AM -0700, Guenter Roeck wrote: > > > On 10/12/2014 07:24 PM, Greg Kroah-Hartman wrote: > > > >This is the start of the stable

Re: [RFC/PATCH] gpio/pinctrl: baytrail: move gpio driver from pinctrl to gpio directory

2014-10-14 Thread Mathias Nyman
On 13.10.2014 22:17, David Cohen wrote: > Even though GPIO module on Intel Bay Trail is able to control pin > functionality, it's unlikely Linux kernel driver will ever support it > since BIOS should handle all pin muxing itself. > > Currently this driver does not register any pinctrl interface

[PATCH 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-14 Thread Thomas Shao
Export do_adjtimex function for hyper-v Time Synchronization component Signed-off-by: Thomas Shao --- kernel/time/timekeeping.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index ec1791f..205a4b3 100644 ---

RE: [PATCHv5] clk: ppc-corenet: rename to qoriq and add CLK_OF_DECLARE support

2014-10-14 Thread Jingchang Lu
Hi, Scott and Mike, Could you please help review this patch. Thanks. Best Regards, Jingchang >-Original Message- >From: Jingchang Lu [mailto:jingchang...@freescale.com] >Sent: Friday, October 10, 2014 5:15 PM >To: mturque...@linaro.org >Cc: Wood Scott-B07421;

Re: [PATCHv4] serial: of-serial: fix up PM ops on no_console_suspend and port type

2014-10-14 Thread Peter Hurley
On 10/14/2014 04:42 AM, Jingchang Lu wrote: > This patch fixes commit 2dea53bf57783f243c892e99c10c6921e956aa7e, > "serial: of-serial: add PM suspend/resume support", which disables > the uart clock on suspend, but also causes a hardware hang on register > access if no_console_suspend command line

Re: RCU bug with v3.17-rc3 ?

2014-10-14 Thread Peter Hurley
On 10/13/2014 10:06 PM, Greg KH wrote: > On Mon, Oct 13, 2014 at 12:43:07PM +0100, Russell King - ARM Linux wrote: >> On Mon, Oct 13, 2014 at 09:11:34AM +, David Laight wrote: >>> From: Nathan Lynch On 10/10/2014 11:25 AM, Russell King - ARM Linux wrote: > > Right, so GCC

Re: [PATCH 3/4] UBI: Fastmap: Care about the protection queue

2014-10-14 Thread Artem Bityutskiy
On Mon, 2014-10-13 at 23:04 +0200, Richard Weinberger wrote: > Am 13.10.2014 um 17:23 schrieb Artem Bityutskiy: > > Well, used and free are RB-trees, looking them up is slow. > > This is true but we'd have to look it up in multiple trees and the protection > queue... Right. 2 RB-trees, and one

[PATCH 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-14 Thread Thomas Shao
Export do_adjtimex function for hyper-v Time Synchronization component Signed-off-by: Thomas Shao --- kernel/time/timekeeping.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index ec1791f..205a4b3 100644 ---

[PATCH v2] [media] s5p-fimc: Only build suspend/resume for PM

2014-10-14 Thread Thierry Reding
From: Thierry Reding If power management is disabled these functions become unused, so there is no reason to build them. This fixes a couple of build warnings when PM(_SLEEP,_RUNTIME) is not enabled. Signed-off-by: Thierry Reding --- Changes in v2: - add #endif comment for readability

[PATCH v2] [media] s5p-jpeg: Only build suspend/resume for PM

2014-10-14 Thread Thierry Reding
From: Thierry Reding If power management is disabled these function become unused, so there is no reason to build them. This fixes a couple of build warnings when PM(_SLEEP,_RUNTIME) is not enabled. Acked-by: Geert Uytterhoeven Signed-off-by: Thierry Reding --- Changes in v2: - add #endif

Re: [PATCH 3.14 36/37] crypto: caam - fix addressing of struct member

2014-10-14 Thread Cristian Stoica
Hi Greg, You can cherry-pick 307fd543f3d23f8f56850eca1b27b1be2fe71017 on stable 3.13+ as well. The original 'cc stable 3.13+' line was deleted by mistake during commit. Thank you, Cristian S. On 10/13/2014 05:24 AM, Greg Kroah-Hartman wrote: > 3.14-stable review patch. If anyone has any

[PATCH 3/4] ext4: cleanup data integrity sync fo nonjournal mode

2014-10-14 Thread Dmitry Monakhov
There are several rules we must follows during data integrity 1) barrier MUST being sent if barrier_opt is enabled (and must not otherwise) 2) If we can guarantee that barrier will be sent for us, we can skip explicit barrier. Change log: - Fix needs_barrier var initialization according to

[PATCH 4/4] ext4: Add fdatasync scalability optimization

2014-10-14 Thread Dmitry Monakhov
If block device support flush epoch generation we can optimize fsync by using following logic 1) track flush_idx on per-inode basis, update it inside end_io 2) During fsync we can compare inode's flush_idx and curent device's flush_idx. If device generation is newer than it means someone

[PATCH 2/2] hyperv: Implement Time Synchronization using host time sample

2014-10-14 Thread Thomas Shao
In current hyper-v time sync service,it only gets the initial clock time from the host. It didn't process the following time samples. This change introduced a module parameter called host_time_sync. If it is set to true, the guest will periodically sychronize it's time with the host clock using

[PATCH 0/4] blkdev: flush optimization

2014-10-14 Thread Dmitry Monakhov
Some filesystems try to optimize barrier flushes by maintaining fs-specific generation counters, but if we introduce generic flush generation counter for block device filesystems may use it for fdatasync(2) optimization. Optimization should works if userspace performs mutli-threaded IO with a lot

[PATCH 1/4] blkdev: add flush generation counter

2014-10-14 Thread Dmitry Monakhov
PROF: *Flush machinery addumptions C1. At any given time, only one flush shall be in progress. This is double buffering sufficient. C2. Flush is deferred if any request is executing DATA of its ence. This avoids issuing separate POSTFLUSHes for requests which ed PREFLUSH. C3. The

[PATCH 2/4] md: add flush_idx support for stacked devices

2014-10-14 Thread Dmitry Monakhov
For single device mapping it is safe to introduce get_flush_idx conception. This cover most common case linear mapping for a single dev. CC: Alasdair Kergon CC: Mike Snitzer CC: dm-de...@redhat.com Signed-off-by: Dmitry Monakhov --- drivers/md/dm.c | 31 +++ 1

Re: [Xen-devel] [PATCH] xen: avoid writing to freed memory after race in p2m handling

2014-10-14 Thread Juergen Gross
On 10/14/2014 11:30 AM, David Vrabel wrote: On 14/10/14 10:00, Juergen Gross wrote: In case a race was detected during allocation of a new p2m tree element in alloc_p2m() the new allocated mid_mfn page is freed without updating the pointer to the found value in the tree. This will result in

Re: [PATCH 04/13] ACPI: Document ACPI device specific properties

2014-10-14 Thread Mika Westerberg
On Mon, Oct 13, 2014 at 02:41:32PM +0200, Grant Likely wrote: > On Tue, 07 Oct 2014 02:14:06 +0200 > , "Rafael J. Wysocki" > wrote: > > From: Mika Westerberg > > > > This document describes the data format and interfaces of ACPI device > > specific properties. > > > > Signed-off-by: Mika

[PATCH v2] netfilter: release skbuf when nlmsg put fail

2014-10-14 Thread Houcheng Lin
When system is under heavy loading, the __nfulnl_send() may may failed to put nlmsg into skbuf of nfulnl_instance. If not clear the skbuff on failed, the __nfulnl_send() will still try to put next nlmsg onto this half-full skbuf and cause the user program can never receive packet. This patch fix

Re: [PATCH] netfilter: release skbuf when nlmsg put fail

2014-10-14 Thread Houcheng Lin
Hi Florian: Please see my replies below. 2014-10-13 19:42 GMT+08:00 Florian Westphal : > Houcheng Lin wrote: >> When system is under heavy loading, the __nfulnl_send() may may failed >> to put nlmsg into skbuf of nfulnl_instance. If not clear the skbuff on >> failed, >> the __nfulnl_send() will

RE: [PATCH] hyperv: Implement Time Synchronization using host time sample

2014-10-14 Thread Thomas Shao
> -Original Message- > From: Thomas Gleixner [mailto:t...@linutronix.de] > Sent: Tuesday, October 14, 2014 5:14 PM > To: Thomas Shao > Cc: Greg KH; linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; a...@canonical.com; jasow...@redhat.com; KY Srinivasan >

Re: [PATCH v3 1/2] iio: vadc: Qualcomm SPMI PMIC voltage ADC driver

2014-10-14 Thread Stanimir Varbanov
On 10/13/2014 01:07 AM, Hartmut Knaack wrote: > Stanimir Varbanov schrieb am 24.09.2014 14:56: >> The voltage ADC is peripheral of Qualcomm SPMI PMIC chips. It has >> 15bits resolution and register space inside PMIC accessible across >> SPMI bus. >> >> The vadc driver registers itself through IIO

Re: [PATCH 1/1] pci: fix dmar fault for kdump kernel

2014-10-14 Thread Li, ZhenHua
I tested on the latest stable version 3.17, it works well. On 10/10/2014 03:13 PM, Li, Zhen-Hua wrote: On a HP system with Intel vt-d supported and many PCI devices on it, when kernel crashed and the kdump kernel boots with intel_iommu=on, there may be some unexpected DMA requests on this

Re: [Xen-devel] [PATCH 1/2] x86: separate out sanitize_e820_map return codes

2014-10-14 Thread David Vrabel
On 14/10/14 03:30, Martin Kelly wrote: > Previously, sanitize_e820_map returned -1 in all cases in which it did > nothing. However, sanitize_e820_map can do nothing either because the > input map has size 1 (this is ok) or because the input map passed in is > invalid (likely an issue). It is nice

Re: [Xen-devel] [PATCH] xen: avoid writing to freed memory after race in p2m handling

2014-10-14 Thread David Vrabel
On 14/10/14 10:00, Juergen Gross wrote: > In case a race was detected during allocation of a new p2m tree > element in alloc_p2m() the new allocated mid_mfn page is freed without > updating the pointer to the found value in the tree. This will result > in overwriting the just freed page with the

<    1   2   3   4   5   6   7   8   9   10   >