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 debu

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 guest

[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] 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] 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 dumpmm

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 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 spl

[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 zsmalloc,

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

[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, whi

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

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

[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 a/mm/z

[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 a/m

[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: He

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

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 An

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] 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 remov

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 drive

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 device

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 upda

[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 --- drivers/power/bq2415x_

[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 --- drivers/power/charger-

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 protection

[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 --- drivers/power/apm_powe

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

[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 --- drivers/mfd/ab8500-sys

[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 --- drivers/power/ab8500_b

[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: Krz

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

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

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 remai

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 err

[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 --- drivers/mfd

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 ne

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

[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

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

[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 b/arch/x86/platform/olpc/olpc-xo1-sci

[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 b/drivers/power/88pm860x_charg

[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

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 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 --gi

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): > dma-pl33

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 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 ne

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

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

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.

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

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

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

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

2014-10-14 Thread Thomas Shao
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Tuesday, October 14, 2014 7:19 PM > To: Thomas Shao > Cc: t...@linutronix.de; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com

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

2014-10-14 Thread Artem Bityutskiy
On Tue, 2014-10-14 at 15:21 +0300, Tanya Brokhman wrote: > Hi Artem/Richard > > I think your discussion here stopped being relevant to this specific > patch but went on to the fastmap feature design in general :) > This patch fixes a real bug in the current implementation of the > feature. What

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

2014-10-14 Thread Dan Carpenter
On Mon, Oct 13, 2014 at 07:19:38PM -0700, Joe Perches wrote: > I don't know of a way to compare objects when functions are > rearranged in the source file. > > Anyone else? I have a perl script that I use to review function movement. It barfed on the DaeSeok's original patch so I re-wrote it, bu

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

2014-10-14 Thread Thomas Shao
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Richard Cochran > Sent: Tuesday, October 14, 2014 7:54 PM > To: Thomas Shao > Cc: t...@linutronix.de; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; de.

[GIT PULL] percpu consistent-ops changes for v3.18-rc1

2014-10-14 Thread Tejun Heo
Hello, Linus. Way back, before the current percpu allocator was implemented, static and dynamic percpu memory areas were allocated and handled separately and had their own accessors. The distinction has been gone for many years now; however, the now duplicate two sets of accessors remained with t

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

2014-10-14 Thread Dan Carpenter
On Tue, Oct 14, 2014 at 12:50:23PM +, Thomas Shao wrote: > > > -static inline void do_adj_guesttime(u64 hosttime) > > > +static inline void do_adj_guesttime(u64 hosttime, bool forceSync) > > > > I'm surprise checkpatch.pl does't complain about this CamelCase. > > I've run the scripts/checkpat

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

2014-10-14 Thread Thomas Shao
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Tuesday, October 14, 2014 9:10 PM > To: Thomas Shao > Cc: o...@aepfle.de; gre...@linuxfoundation.org; jasow...@redhat.com; > linux-kernel@vger.kernel.org; a...@canonical.com; > de...@linuxdriverproject.org

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

2014-10-14 Thread Mike Surcouf
What is your expected value for TICK_USEC? I cant make the arithmetic work. You double the check time if you are close but you never reduce the check time if you are not. Adjusting the tick count is a coarse adjustment of the clock. You will end up chasing the host time but never stabilizing it.

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

2014-10-14 Thread Richard Cochran
On Tue, Oct 14, 2014 at 01:04:35PM +, Thomas Shao wrote: > > > + /* > > > + * Use the Hyper-V time sample to adjust the guest time. The > > > + * algorithm is: If the sample offsets exceeds 1 second, we > > > + * directly set the clock to the server time. If the

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

2014-10-14 Thread Richard Cochran
On Tue, Oct 14, 2014 at 01:04:35PM +, Thomas Shao wrote: > > I really don't see the need for this. We have NTP. If the guests want to, > > they > > may use it. Otherwise, they have a free running clock, just like real > > machines. > > > Sometimes the user can't setup NTP. For example the gu

Re: [PATCH v3 8/8] clk: Add floor and ceiling constraints to clock rates

2014-10-14 Thread Tomeu Vizoso
On 11 October 2014 01:55, Stephen Boyd wrote: > On 10/09, Tomeu Vizoso wrote: >> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c >> index 4db918a..97cf1a3 100644 >> --- a/drivers/clk/clk.c >> +++ b/drivers/clk/clk.c >> @@ -1629,18 +1609,27 @@ int clk_set_rate(struct clk *clk, unsigned long rate

[net] genl_magic: Resolve logical-op warnings

2014-10-14 Thread Jeff Kirsher
From: Mark Rustad Resolve "logical 'and' applied to non-boolean constant" warnings" that appear in W=2 builds by adding !! to a bit test. Signed-off-by: Mark Rustad Signed-off-by: Jeff Kirsher --- include/linux/genl_magic_func.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

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

2014-10-14 Thread Tanya Brokhman
On 10/14/2014 4:02 PM, Artem Bityutskiy wrote: On Tue, 2014-10-14 at 15:21 +0300, Tanya Brokhman wrote: Hi Artem/Richard I think your discussion here stopped being relevant to this specific patch but went on to the fastmap feature design in general :) This patch fixes a real bug in the current

Re: [PATCH 04/10] of: Add Tegra124 EMC bindings

2014-10-14 Thread Mikko Perttunen
On 10/10/2014 04:14 PM, Mark Rutland wrote: On Fri, Oct 10, 2014 at 01:46:55PM +0100, Tomeu Vizoso wrote: From: Mikko Perttunen Add binding documentation for the nvidia,tegra124-emc device tree node. Signed-off-by: Mikko Perttunen Signed-off-by: Tomeu Vizoso --- .../bindings/memory-contro

[PATCH] scsi: Resolve some missing-field-initializers warnings

2014-10-14 Thread Jeff Kirsher
From: Mark Rustad Resolve some missing-field-initializers warnings by using designated initialization. Signed-off-by: Mark Rustad Signed-off-by: Jeff Kirsher --- drivers/scsi/scsi_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/

Re: [PATCH 03/13] ACPI: Allow drivers to match using Device Tree compatible property

2014-10-14 Thread Grant Likely
On Tue, 07 Oct 2014 02:13:29 +0200 , "Rafael J. Wysocki" wrote: > From: Mika Westerberg > > We have lots of existing Device Tree enabled drivers and allocating > separate _HID for each is not feasible. Instead we allocate special _HID > "PRP0001" that means that the match should be done using D

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 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 ta

Re: [PATCH 06/13] gpio / ACPI: Add support for _DSD device properties

2014-10-14 Thread Grant Likely
On Tue, 07 Oct 2014 02:15:18 +0200 , "Rafael J. Wysocki" wrote: > From: Mika Westerberg > > With release of ACPI 5.1 and _DSD method we can finally name GPIOs (and > other things as well) returned by _CRS. Previously we were only able to > use integer index to find the corresponding GPIO, which

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

2014-10-14 Thread Joe Perches
On Tue, 2014-10-14 at 14:19 +0300, Dan Carpenter wrote: > 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/driver

Re: [PATCH 04/10] of: Add Tegra124 EMC bindings

2014-10-14 Thread Thierry Reding
On Tue, Oct 14, 2014 at 04:36:45PM +0300, Mikko Perttunen wrote: > On 10/10/2014 04:14 PM, Mark Rutland wrote: > >On Fri, Oct 10, 2014 at 01:46:55PM +0100, Tomeu Vizoso wrote: > >>From: Mikko Perttunen > >> > >>Add binding documentation for the nvidia,tegra124-emc device tree node. > >> > >>Signed

[PATCH v2 3/3] arm: vfp: Bounce undefined instructions in vectored mode

2014-10-14 Thread Stephen Boyd
From: Stepan Moskovchenko Certain ARM CPU implementations (e.g. Cortex-A15) may not raise a floating- point exception whenever deprecated short-vector VFP instructions are executed. Instead these instructions are treated as UNALLOCATED. Change the VFP exception handling code to emulate short-vect

[PATCH v2 1/3] ARM: vfp: Workaround bad MVFR1 register on some Kraits

2014-10-14 Thread Stephen Boyd
Certain versions of the Krait processor don't report that they support the fused multiply accumulate instruction via the MVFR1 register despite the fact that they actually do. Unfortunately we use this register to identify support for VFPv4. Override the hwcap on all Krait processors to indicate su

[PATCH v2 0/3] VFP fixes

2014-10-14 Thread Stephen Boyd
These changes allow us to detect VFP correctly on Krait processors. They also fix short vector emulation for Cortex-A15 and Krait. Changes since v1: * Move to use CPUID and MVFR0 in patch 2 * Patches 1 and 3 unchanged Stepan Moskovchenko (1): arm: vfp: Bounce undefined instructions in vectore

[PATCH v2 2/3] ARM: vfp: Fix VFPv3 hwcap detection on CPUID based cpus

2014-10-14 Thread Stephen Boyd
The subarchitecture field in the fpsid register is 7 bits wide on ARM CPUs using the CPUID identification scheme, spanning bits 22 to 16. The topmost bit is used to designate that the subarchitecture designer is not ARM when it is set to 1. On non-CPUID scheme CPUs the subarchitecture field is only

Re: [PATCH v7]pwm: add BCM2835 PWM driver

2014-10-14 Thread Thierry Reding
On Wed, Oct 08, 2014 at 12:14:32PM +0200, Bart Tanghe wrote: [...] > diff --git a/drivers/pwm/pwm-bcm2835.c b/drivers/pwm/pwm-bcm2835.c [...] > +static void bcm2835_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) > +{ > + struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); > + u32 value;

Re: [PATCH 1/1] rasd: Use perf_evlist__open() instead of open coded

2014-10-14 Thread Jiri Olsa
On Mon, Oct 13, 2014 at 09:29:57AM +0200, Jean Pihet wrote: > Hi Arnaldo, Borislav, > > On 10 October 2014 22:44, Borislav Petkov wrote: > > On Fri, Oct 10, 2014 at 05:41:58PM -0300, Arnaldo Carvalho de Melo wrote: > >> Right, stoopid me, no need for some specific tracepoint, just to see > >> tha

Re: [Linaro-mm-sig] [RFC 0/4] dma-buf Constraints-Enabled Allocation helpers

2014-10-14 Thread Sumit Semwal
Hi Laura, On 13 October 2014 13:42, Laura Abbott wrote: > On 10/10/2014 1:07 PM, Sumit Semwal wrote: >> >> Hi, >> >> Why: >> >> While sharing buffers using dma-buf, currently there's no mechanism to >> let >> devices share their memory access constraints with each other to allow for >> del

Re: [PATCH 1/1] rasd: Use perf_evlist__open() instead of open coded

2014-10-14 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 14, 2014 at 03:56:31PM +0200, Jiri Olsa escreveu: > On Mon, Oct 13, 2014 at 09:29:57AM +0200, Jean Pihet wrote: > > On 10 October 2014 22:44, Borislav Petkov wrote: > > > On Fri, Oct 10, 2014 at 05:41:58PM -0300, Arnaldo Carvalho de Melo wrote: > > >> That way we just make public the b

[PATCH] perf tools: Do not call pevent_free_format when deleting tracepoint

2014-10-14 Thread Jiri Olsa
On Mon, Oct 13, 2014 at 03:43:18PM +, Liang, Kan wrote: > Hi Jolsa, > > Does the new patch set work on your machine? > I tested the V8 patch set on haswell, ivybridge and Romley platform, > I cannot reproduce the issue you mentioned. > Could you please try the latest V8 patch? actually it st

[PATCH v2] CLK: TI: Remove unused includes of linux/clk-private.h

2014-10-14 Thread Tomeu Vizoso
Because they are unused, and there's plans to remove that header in the near future. Signed-off-by: Tomeu Vizoso --- v2: * Add rationale to commit message * Include clk-provider.h in each file that uses it, instead of in clk/ti.h --- drivers/clk/ti/clk-44xx.c | 2 +- driv

Re: [PATCH v9 1/5] thermal: rockchip: add driver for thermal

2014-10-14 Thread Caesar Wang
Doug, 在 2014年10月14日 00:11, Doug Anderson 写道: Caesar, On Sat, Oct 11, 2014 at 12:29 AM, Caesar Wang wrote: +static void rk_tsadcv2_initialize(int reset_mode, int chn, void __iomem *regs, + unsigned long hw_shut_temp) +{ + u32 shutdown_value; + + shu

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

2014-10-14 Thread Thomas Shao
> -Original Message- > From: Mike Surcouf [mailto:mps.surcouf.l...@gmail.com] > Sent: Tuesday, October 14, 2014 9:17 PM > To: Thomas Shao > Cc: Dan Carpenter; t...@linutronix.de; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a.

Re: [PATCH] xen/setup: add paranoid index check and warning

2014-10-14 Thread Martin Kelly
On 10/14/2014 02:22 AM, David Vrabel wrote: > On 14/10/14 02:19, Martin Kelly wrote: >> In a call to set_phys_range_identity, i-1 is used without checking that >> i is non-zero. Although unlikely, a bug in the code before it could >> cause the value to be 0, leading to erroneous behavior. This patc

Re: [RFC 2/4] cenalloc: Constraint-Enabled Allocation helpers for dma-buf

2014-10-14 Thread Sumit Semwal
Hi Greg, Daniel! On 12 October 2014 00:10, Daniel Vetter wrote: > On Fri, Oct 10, 2014 at 04:09:00PM -0700, Greg Kroah-Hartman wrote: >> On Sat, Oct 11, 2014 at 01:37:56AM +0530, Sumit Semwal wrote: >> > Devices sharing buffers using dma-buf could benefit from sharing their >> > constraints via s

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

2014-10-14 Thread Martin Kelly
On 10/14/2014 02:33 AM, David Vrabel wrote: > 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 passe

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

2014-10-14 Thread Thomas Shao
> -Original Message- > From: Richard Cochran [mailto:richardcoch...@gmail.com] > Sent: Tuesday, October 14, 2014 9:20 PM > To: Thomas Shao > Cc: t...@linutronix.de; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.c

Re: [Linaro-mm-sig] [RFC 2/4] cenalloc: Constraint-Enabled Allocation helpers for dma-buf

2014-10-14 Thread Sumit Semwal
Hi Laura, On 13 October 2014 14:05, Laura Abbott wrote: > On 10/10/2014 1:07 PM, Sumit Semwal wrote: >> >> Devices sharing buffers using dma-buf could benefit from sharing their >> constraints via struct device, and dma-buf framework would manage the >> common constraints for all attached device

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

2014-10-14 Thread Thomas Shao
> -Original Message- > From: Richard Cochran [mailto:richardcoch...@gmail.com] > Sent: Tuesday, October 14, 2014 9:26 PM > To: Thomas Shao > Cc: t...@linutronix.de; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.c

[PATCH] s390/hmcdrv: Restrict s390 HMC driver to S390 arch

2014-10-14 Thread Josh Boyer
This driver is only usable on 64-bit s390 machines. Mark the Kconfig dependencies to that users on other architectures are not prompted for it. Fixes: 8f933b1043e1e5 ("s390/hmcdrv: HMC drive CD/DVD access") Signed-off-by: Josh Boyer --- drivers/s390/char/Kconfig | 2 +- 1 file changed, 1 insert

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

2014-10-14 Thread Mike Surcouf
Even with networking I think there are other senarios where this would be useful such as no access to an NTP server due to firewall rules or no internal NTP or simply an admin without much knowledge of NTP. HyperV host very likely has good time from AD and it would be good if the Linux VM just sy

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

2014-10-14 Thread Tanya Brokhman
If there is more then one UBI device mounted, there is no way to distinguish between messages from different UBI devices. Add device number to all ubi layer message types. The R/O block driver messages were replaced by pr_* since ubi_device structure is not used by it. Signed-off-by: Tanya Brokhm

[PATCH] mtd: orion_nand: fix error code path in probe

2014-10-14 Thread Michael Opdenacker
This replaces kzalloc() and ioremap() calls by the corresponding devm_ functions in the probe() routine, which automatically release the corresponding resources when probe() fails or when the device is removed. This simplifies the error management code and fixes a bug reported by "make coccicheck"

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

2014-10-14 Thread Tanya Brokhman
On 10/14/2014 5:13 PM, 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 device number to all ubi layer message types. The R/O block driver messages were replaced by pr_* since ubi_device structure

<    1   2   3   4   5   6   >