Re: [RFC PATCH] mm: support CONFIG_ZONE_DEVICE + CONFIG_ZONE_DMA

2016-01-26 Thread Dan Williams
On Tue, Jan 26, 2016 at 5:18 PM, Joonsoo Kim wrote: > Hello, > > On Tue, Jan 26, 2016 at 03:11:36PM -0800, Dan Williams wrote: >> On Tue, Jan 26, 2016 at 2:51 PM, Andrew Morton >> wrote: >> > On Tue, 26 Jan 2016 14:33:48 -0800 Dan Williams >> > wrote: >> > >> >> >> Towards this end, alias ZONE_

[lkp] [mm, vmscan] 7afa13d0ba: kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] SMP KASAN

2016-01-26 Thread kernel test robot
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux-balancenuma mm-vmscan-node-lru-v2r25 commit 7afa13d0bac733288e6b45bbb17a7f4c3960523e ("mm, vmscan: Move LRU lists to node") ++-

Re: [PATCH] be2iscsi: add checks for dma mapping errors

2016-01-26 Thread Martin K. Petersen
> "Alexey" == Alexey Khoroshilov writes: Alexey> hwi_write_buffer() does not check if mapping dma memory succeed. Alexey> The patch adds the check and failure handling. Applied to 4.6/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v3 04/10] rtc: max77686: Use a driver data struct instead hard-coded values

2016-01-26 Thread Krzysztof Kozlowski
On 27.01.2016 04:20, Javier Martinez Canillas wrote: > The driver has some hard-coded values such as the minimum delay needed > before a RTC update or the mask used for the sec/min/hour/etc registers. > > Use a data structure that contains these values and pass as driver data > using the platform

[lkp] [x86] 20c5a315cf: rodata_test: test data was not read only

2016-01-26 Thread kernel test robot
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git kspp/postinit-readonly commit 20c5a315cf30093ea5bcad5fb0a79ad4c5e86b59 ("x86: make CONFIG_DEBUG_RODATA non-optional") We found the following new message in kernel after your commit. [ 26.15256

Re: Implement kernel live patching for ppc64le (ABIv2)

2016-01-26 Thread Jessica Yu
+++ Miroslav Benes [26/01/16 15:14 +0100]: [ Jessica added to CC list so she is aware that there are plans to implement livepatch on ppc64le ] On Tue, 26 Jan 2016, Torsten Duwe wrote: On Tue, Jan 26, 2016 at 11:50:25AM +0100, Miroslav Benes wrote: > > + */ > > +int klp_write_module_reloc(stru

Re: [PATCH v3 05/10] rtc: max77686: Add an indirection level to access RTC registers

2016-01-26 Thread Krzysztof Kozlowski
On 27.01.2016 04:20, Javier Martinez Canillas wrote: > The max77686 driver is generic enough that can be used for other > Maxim RTC IP blocks but these might not have the same registers > layout so instead of accessing the registers directly, add a map > to translate offsets to the real registers a

Re: [PATCH v3 07/10] rtc: max77686: Use dev_warn() instead of pr_warn()

2016-01-26 Thread Javier Martinez Canillas
Hello Andi, Thanks a lot for your feedback and review. On 01/26/2016 10:22 PM, Andi Shyti wrote: Hi Javier, if (tm->tm_year < 100) { - pr_warn("RTC can't handle year %d. Assume it's 2000.\n", - 1900 + tm->tm_year); +

Re: sched-freq locking

2016-01-26 Thread Steve Muckle
On 01/21/2016 05:21 PM, Rafael J. Wysocki wrote: > On Thursday, January 21, 2016 10:49:58 AM Juri Lelli wrote: >> [+Punit, Javi] >> >> Hi Rafael, >> >> On 21/01/16 02:46, Rafael J. Wysocki wrote: >>> On Wednesday, January 20, 2016 05:39:14 PM Steve Muckle wrote: On 01/20/2016 05:22 PM, Rafael

Re: [PATCH v3 06/10] rtc: max77686: Add max77802 support

2016-01-26 Thread Krzysztof Kozlowski
On 27.01.2016 04:20, Javier Martinez Canillas wrote: > The MAX77686 and MAX77802 RTC IP blocks are very similar with only > these differences: > > 0) The RTC registers layout and addresses are different. > > 1) The MAX77686 use 1 bit of the sec/min/hour/etc registers as the >alarm enable whil

Re: [PATCH] mmc: sdhci-iproc: use sdhci_pltfm_unregister directly

2016-01-26 Thread Scott Branden
Hi Jisheng, Looks good. Acked-by: Scott Branden On 16-01-26 02:26 AM, Jisheng Zhang wrote: The sdhci_iproc_remove() is jsut a wrapper to sdhci_pltfm_unregister. So use the sdhci_pltfm_unregister() for the .remove hook directly. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-iproc

Re: [PATCH v2] lib/spinlock_debug.c: prevent an infinite recursive cycle in spin_dump()

2016-01-26 Thread Byungchul Park
On Tue, Jan 26, 2016 at 04:11:24PM -0800, Andrew Morton wrote: > I can't immediately think of anything better than this. It's a hack, but > it's a small and quite clear hack. I am sorry for making you confused. :( I think I need to find another way to solve this problem. At first, when I wrote th

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-26 Thread Boqun Feng
On Tue, Jan 26, 2016 at 03:29:21PM -0800, Paul E. McKenney wrote: > On Tue, Jan 26, 2016 at 02:33:40PM -0800, Linus Torvalds wrote: > > On Tue, Jan 26, 2016 at 2:15 PM, Linus Torvalds > > wrote: > > > > > > You might as well just write it as > > > > > > struct foo x = READ_ONCE(*ptr); > > >

Re: [PATCH v3 07/10] rtc: max77686: Use dev_warn() instead of pr_warn()

2016-01-26 Thread Krzysztof Kozlowski
On 27.01.2016 10:53, Javier Martinez Canillas wrote: > Hello Andi, > > Thanks a lot for your feedback and review. > > On 01/26/2016 10:22 PM, Andi Shyti wrote: >> Hi Javier, >> >>> if (tm->tm_year < 100) { >>> -pr_warn("RTC can't handle year %d. Assume it's 2000.\n", >>> -

Re: [PATCH v3 1/4] KVM: Recover IRTE to remapped mode if the interrupt is not single-destination

2016-01-26 Thread Yang Zhang
On 2016/1/27 2:22, rkrc...@redhat.com wrote: 2016-01-26 09:44+0800, Yang Zhang: On 2016/1/25 21:59, rkrc...@redhat.com wrote: 2016-01-25 09:49+0800, Yang Zhang: On 2016/1/22 21:31, rkrc...@redhat.com wrote: 2016-01-22 10:03+0800, Yang Zhang: Not so complicated. We can reuse the wake up vecto

Re: [PATCH v3 08/10] rtc: Remove Maxim 77802 driver

2016-01-26 Thread Krzysztof Kozlowski
On 27.01.2016 04:20, Javier Martinez Canillas wrote: > The max77686 RTC driver now supports the max77802 RTC as > well so there's no need to have a separate driver anymore. > > Signed-off-by: Javier Martinez Canillas > Reviewed-by: Krzysztof Kozlowski > Acked-by: Laxman Dewangan > > --- > > C

Re: [PATCH v3 07/10] rtc: max77686: Use dev_warn() instead of pr_warn()

2016-01-26 Thread Andi Shyti
> >>if (tm->tm_year < 100) { > >>- pr_warn("RTC can't handle year %d. Assume it's 2000.\n", > >>- 1900 + tm->tm_year); > >>+ dev_warn(info->dev, > >>+"RTC can't handle year %d. Assume it's 2000\n",

Re: [PATCH, RESEND 3] qla2xxx: Remove use of 'struct timeval'

2016-01-26 Thread Martin K. Petersen
> "Arnd" == Arnd Bergmann writes: Arnd> struct register_host_info stores a 64-bit UTC system time Arnd> timestamp. This patch removes the use of 'struct timeval' to Arnd> obtain that timestamp as its tv_sec value will overflow on 32-bit Arnd> systems in year 2038 beyond. The patch uses Arnd

Re: [RFC PATCH] mm: support CONFIG_ZONE_DEVICE + CONFIG_ZONE_DMA

2016-01-26 Thread Joonsoo Kim
On Tue, Jan 26, 2016 at 05:37:38PM -0800, Dan Williams wrote: > On Tue, Jan 26, 2016 at 5:18 PM, Joonsoo Kim wrote: > > Hello, > > > > On Tue, Jan 26, 2016 at 03:11:36PM -0800, Dan Williams wrote: > >> On Tue, Jan 26, 2016 at 2:51 PM, Andrew Morton > >> wrote: > >> > On Tue, 26 Jan 2016 14:33:48

Re: [Xen-devel] [PATCH v1 04/12] xen/hvmlite: Bootstrap HVMlite guest

2016-01-26 Thread Luis R. Rodriguez
On Tue, Jan 26, 2016 at 4:04 PM, Luis R. Rodriguez wrote: > You go: > > hvmlite_start_xen() --> > HVM stub > startup_64() | (startup_32() Hrm, does HVMlite work well with load_ucode_bsp(), note the patches to rebrand pv_enabled() to pv_legacy() or whatever, this PV type will not b

Re: [PATCH 03/22] scsi: Fix dependencies for !HAS_IOMEM and !HAS_DMA archs

2016-01-26 Thread Martin K. Petersen
> "John" == John Garry writes: John> We can just add HAS_IOMEM dependency on the scsi fixes branch, ok? Yes, please submit a patch against 4.5/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] hisi_sas: add dependency for HAS_IOMEM

2016-01-26 Thread Martin K. Petersen
> "John" == John Garry writes: John> Not every arch has io, so fix build by adding necessary John> dependency. Ignore previous mail. Will apply this... -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] hisi_sas: fix v1 hw check for slot error

2016-01-26 Thread Martin K. Petersen
> "John" == John Garry writes: John> Completion header bit CMPLT_HDR_RSPNS_XFRD flags whether the John> response frame is received into host memory, and not whether the John> response frame has an error. As such, change the decision on John> whether a slot has an error. Also redundant check

Re: [PATCH v3 07/10] rtc: max77686: Use dev_warn() instead of pr_warn()

2016-01-26 Thread Javier Martinez Canillas
Hello Krzysztof, On Tue, Jan 26, 2016 at 11:05 PM, Krzysztof Kozlowski wrote: > On 27.01.2016 10:53, Javier Martinez Canillas wrote: >> Hello Andi, >> >> Thanks a lot for your feedback and review. >> >> On 01/26/2016 10:22 PM, Andi Shyti wrote: >>> Hi Javier, >>> if (tm->tm_year <

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-26 Thread Wenwei Tao
Yes, It's a spelling mistake, will correct it in next version. 2016-01-26 22:52 GMT+08:00 Matias Bjørling : > On 01/26/2016 01:33 PM, Wenwei Tao wrote: >> We can create more than one target on a lightnvm >> device by specifying its begin lun and end lun. >> >> But only specify the physical address

Re: [PATCH v3 06/10] rtc: max77686: Add max77802 support

2016-01-26 Thread Andi Shyti
On Tue, Jan 26, 2016 at 04:20:16PM -0300, Javier Martinez Canillas wrote: > The MAX77686 and MAX77802 RTC IP blocks are very similar with only > these differences: > > 0) The RTC registers layout and addresses are different. > > 1) The MAX77686 use 1 bit of the sec/min/hour/etc registers as the >

Re: [PATCH v2] lib/spinlock_debug.c: prevent an infinite recursive cycle in spin_dump()

2016-01-26 Thread Byungchul Park
On Wed, Jan 27, 2016 at 11:00:14AM +0900, Byungchul Park wrote: > On Tue, Jan 26, 2016 at 04:11:24PM -0800, Andrew Morton wrote: > > I can't immediately think of anything better than this. It's a hack, but > > it's a small and quite clear hack. > > I am sorry for making you confused. :( I think I

Re: [PATCH v3] mptlan: add checks for dma mapping errors

2016-01-26 Thread Martin K. Petersen
> "Tomas" == Tomas Henzl writes: Tomas> Other than that - previous patch for this driver came in in 2010 Tomas> - six years ago and the driver seems unmaintained now. I'm not Tomas> sure if we should fix hw we can't test and when there is not an Tomas> user bug report. This example nicely sh

Re: [PATCH v3 06/10] rtc: max77686: Add max77802 support

2016-01-26 Thread Javier Martinez Canillas
Hello Krzysztof, On Tue, Jan 26, 2016 at 10:59 PM, Krzysztof Kozlowski wrote: > On 27.01.2016 04:20, Javier Martinez Canillas wrote: [snip] >> data[RTC_MONTH] = tm->tm_mon + 1; >> - data[RTC_YEAR] = tm->tm_year > 100 ? (tm->tm_year - 100) : 0; >> >> - if (tm->tm_year < 100) { >> -

[PATCH v8 0/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-01-26 Thread Wenyou Yang
This patch set adds support for the Active-semi ACT8945A PMIC MFD driver. It is a Multi Function Device with the following subdevices: - Regulator - Charger It is interfaced to the host controller using I2C interface, ACT8945A is a child device of the I2C. Changes in v8: - change the subdevice

[PATCH v8 1/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-01-26 Thread Wenyou Yang
This patch adds support for the Active-semi ACT8945A PMIC. It is a Multi Function Device with the following subdevices: - Regulator - Charger It is interfaced to the host controller using I2C interface, ACT8945A is a child device of the I2C. Signed-off-by: Wenyou Yang Reviewed-by: Krzysztof Ko

[PATCH v8 2/2] mfd: add documentation for ACT8945A DT bindings

2016-01-26 Thread Wenyou Yang
The Active-semi ACT8945A PMIC is a Multi-Function Device, it has two subdevices: - Regulator - Charger This patch adds documentation for ACT8945A DT bindings. Signed-off-by: Wenyou Yang Acked-by: Rob Herring Acked-by: Lee Jones --- Changes in v8: None Changes in v7: - collect Acked-by from

Re: [PATCH] lpfc: Remove redundant code block in lpfc_scsi_cmd_iocb_cmpl

2016-01-26 Thread Martin K. Petersen
> "Johannes" == Johannes Thumshirn writes: Johannes> This removes a redundant code block that will either be Johannes> executed if the ENABLE_FCP_RING_POLLING flag is set in Johannes> phba->cfg_poll or not. The code is just duplicated in both Johannes> cases, hence we unify it again. Johanne

Re: [PATCH v3 07/10] rtc: max77686: Use dev_warn() instead of pr_warn()

2016-01-26 Thread Andi Shyti
> > On 01/26/2016 10:22 PM, Andi Shyti wrote: > >> Hi Javier, > >> > >>> if (tm->tm_year < 100) { > >>> -pr_warn("RTC can't handle year %d. Assume it's 2000.\n", > >>> -1900 + tm->tm_year); > >>> +dev_warn(info->dev, > >>> + "RTC can

Re: [PATCH 05/54] perf build: Use feature dump file for build-test

2016-01-26 Thread Wangnan (F)
On 2016/1/27 0:59, Arnaldo Carvalho de Melo wrote: Em Mon, Jan 25, 2016 at 09:55:52AM +, Wang Nan escreveu: To prevent feature check run too many times, this patch utilizes previous introduced feature-dump make target and FEATURES_DUMP variable, makes sure the feature checkers run only onc

Re: linux-next: build failure after merge of the aio tree

2016-01-26 Thread Stephen Rothwell
Hi Benjamin, On Tue, 12 Jan 2016 11:38:35 -0500 Benjamin LaHaise wrote: > > On Tue, Jan 12, 2016 at 04:40:34PM +1100, Stephen Rothwell wrote: > > > > After merging the aio tree, today's linux-next build (arm > > multi_v7_defconfig) failed like this: > > > > fs/built-in.o: In function `aio_threa

Re: [PATCH v3 07/10] rtc: max77686: Use dev_warn() instead of pr_warn()

2016-01-26 Thread Javier Martinez Canillas
Hello Andi, On Tue, Jan 26, 2016 at 11:35 PM, Andi Shyti wrote: >> > On 01/26/2016 10:22 PM, Andi Shyti wrote: >> >> Hi Javier, >> >> >> >>> if (tm->tm_year < 100) { >> >>> -pr_warn("RTC can't handle year %d. Assume it's 2000.\n", >> >>> -1900 + tm->tm_year);

Re: [PATCH v3 07/10] rtc: max77686: Use dev_warn() instead of pr_warn()

2016-01-26 Thread Alexandre Belloni
Hi, On 27/01/2016 at 11:05:36 +0900, Krzysztof Kozlowski wrote : > On 27.01.2016 10:53, Javier Martinez Canillas wrote: > > Hello Andi, > > > > Thanks a lot for your feedback and review. > > > > On 01/26/2016 10:22 PM, Andi Shyti wrote: > >> Hi Javier, > >> > >>> if (tm->tm_year < 100)

Re: [PATCH v3 07/10] rtc: max77686: Use dev_warn() instead of pr_warn()

2016-01-26 Thread Javier Martinez Canillas
Hello Alexandre, On Tue, Jan 26, 2016 at 11:46 PM, Alexandre Belloni wrote: > Hi, > > On 27/01/2016 at 11:05:36 +0900, Krzysztof Kozlowski wrote : >> On 27.01.2016 10:53, Javier Martinez Canillas wrote: >> > Hello Andi, >> > >> > Thanks a lot for your feedback and review. >> > >> > On 01/26/2016

[PATCH v4 1/2] regulator: act8945a: add regulator driver for ACT8945A

2016-01-26 Thread Wenyou Yang
This patch adds new regulator driver to support ACT8945A MFD chip's regulators. The ACT8945A has three step-down DC/DC converters and four low-dropout regulators. Signed-off-by: Wenyou Yang --- Changes in v4: - change the name "act8945a-pmic" to "act8945a-regulator" to align mfd subdevice's

[PATCH v4 0/2] regulator: act8945a: add regulator driver for the sub-device of ACT8945A MFD

2016-01-26 Thread Wenyou Yang
The ACT8945A is a Multi Function Device with the following subdevices: - Regulator - Charger This patch set is to add regulator driver for ACT8945A. It is based on the patch set: http://lists.infradead.org/pipermail/linux-arm-kernel/2016-January/402199.html Changes in v4: - change the

[PATCH v4 2/2] regulator: add documentation for ACT8945A's regulator DT bindings

2016-01-26 Thread Wenyou Yang
This patch adds documentation for the DT bindings of the regulator subdevice of ACT8945A MFD. Signed-off-by: Wenyou Yang Acked-by: Rob Herring --- Changes in v4: None Changes in v3: None Changes in v2: - add Acked-by Rob Herring. .../bindings/regulator/act8945a-regulator.txt | 78

RE: [PATCH V6 8/8] hvsock: introduce Hyper-V Socket feature

2016-01-26 Thread Dexuan Cui
> From: Olaf Hering [mailto:o...@aepfle.de] > Sent: Tuesday, January 26, 2016 18:24 > To: Dexuan Cui > Cc: gre...@linuxfoundation.org; da...@davemloft.net; > step...@networkplumber.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; driverdev-de...@linuxdriverproject.org; > a...@canonica

Re: [PATCH] cpufreq: Fix NULL reference crash while accessing policy->governor_data

2016-01-26 Thread Viresh Kumar
On 26-01-16, 09:57, Juri Lelli wrote: > This patch fixes the crash I was seeing. > > Tested-by: Juri Lelli Thanks. > However, it exposes another problem (running the concurrent lockdep test It exposes? How can this patch expose the below crash. AFAIR, you reported that you are getting below cr

Re: [PATCH] cpufreq: Fix NULL reference crash while accessing policy->governor_data

2016-01-26 Thread Viresh Kumar
On 26-01-16, 18:01, Juri Lelli wrote: > So, this goes away with your patch (that I forward ported) and a small > additional fix on top of that. I pushed all that here (so that it is > also tested by 0-day): I am surprised :) > git://linux-arm.org/linux-jl.git fixes/cpufreq/policy_exit_race > >

Re: fast path cycle muncher (vmstat: make vmstat_updater deferrable again and shut down on idle)

2016-01-26 Thread Mike Galbraith
Good morning, On Tue, 2016-01-26 at 13:20 -0600, Christoph Lameter wrote: > On Tue, 26 Jan 2016, Mike Galbraith wrote: > > > > The system going idle is a fastpath. Mind boogling. > > > > Hohum, noted. Now what about those cycles, and the sleeping lock you > > injected for -rt? > > Since we (th

Re: [kernel] powerpc: Make vmalloc_to_phys() public

2016-01-26 Thread Alexey Kardashevskiy
On 01/25/2016 09:06 PM, Paul Mackerras wrote: On Mon, Jan 25, 2016 at 04:46:03PM +1100, Michael Ellerman wrote: On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote: This makes vmalloc_to_phys() public as there will be another user (in-kernel VFIO acceleration) for it soon. As a part

Re: [PATCH 2/8] radix tree test harness

2016-01-26 Thread Matthew Wilcox
On Tue, Jan 26, 2016 at 03:44:38PM -0800, Andrew Morton wrote: > > diff --git a/tools/testing/radix-tree/linux/radix-tree.h > > b/tools/testing/radix-tree/linux/radix-tree.h > > new file mode 12 > > index 000..1e6f41f > > --- /dev/null > > +++ b/tools/testing/radix-tree/linux/radix-tree.h

Re: [RFC PATCH] mm: support CONFIG_ZONE_DEVICE + CONFIG_ZONE_DMA

2016-01-26 Thread Dan Williams
On Tue, Jan 26, 2016 at 6:15 PM, Joonsoo Kim wrote: > On Tue, Jan 26, 2016 at 05:37:38PM -0800, Dan Williams wrote: >> On Tue, Jan 26, 2016 at 5:18 PM, Joonsoo Kim wrote: [..] >> > Please refer my previous attempt to add a new zone, ZONE_CMA. >> > >> > https://lkml.org/lkml/2015/2/12/84 >> > >> >

Re: [PATCH v7 1/6] clk: hisilicon: add CRG driver for hi3519 soc

2016-01-26 Thread xuejiancheng
Hi Paul Bolle, Thank you for your reply. On 2016/1/26 9:17, Paul Bolle wrote: > On ma, 2016-01-25 at 11:01 +0800, Jiancheng Xue wrote: >> --- a/drivers/clk/hisilicon/Kconfig >> +++ b/drivers/clk/hisilicon/Kconfig > >> +config COMMON_CLK_HI3519 >> +bool "Hi3519 Clock Driver" >> +depends

Re: [PATCH 06/10] x86/cpufeature: Get rid of the non-asm goto variant

2016-01-26 Thread Brian Gerst
On Tue, Jan 26, 2016 at 4:12 PM, Borislav Petkov wrote: > From: Borislav Petkov > > I can simply quote hpa from the mail: > > "Get rid of the non-asm goto variant and just fall back to dynamic if > asm goto is unavailable. It doesn't make any sense, really, if it is > supposed to be safe, and by

[PATCH v4 00/10] rtc: max77686: Extend driver and add max77802 support

2016-01-26 Thread Javier Martinez Canillas
Hello, On a recent disussion [0] with Krzysztof Kozlowski and Laxman Dewangan, we came to the conclusion that the max77686 and max77802 RTC are almost the same with only a few differences so there shouldn't be two separate drivers and is better to extend max77686 driver and delete rtc-max77802. B

[PATCH v4 06/10] rtc: max77686: Add max77802 support

2016-01-26 Thread Javier Martinez Canillas
The MAX77686 and MAX77802 RTC IP blocks are very similar with only these differences: 0) The RTC registers layout and addresses are different. 1) The MAX77686 use 1 bit of the sec/min/hour/etc registers as the alarm enable while MAX77802 has a separate register for that. 2) The MAX77686 RTCYE

[PATCH v4 01/10] rtc: max77686: Fix max77686_rtc_read_alarm() return value

2016-01-26 Thread Javier Martinez Canillas
The function is always returning zero even in case of failures since the ret value was not propagated to the callers. Fix the error path. Reported-by: Krzysztof Kozlowski Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Tested-by: Krzysztof Kozlowski Acked-by: Laxman De

[PATCH v4 03/10] rtc: max77686: Use usleep_range() instead of msleep()

2016-01-26 Thread Javier Martinez Canillas
Documentation/timers/timers-howto.txt suggest to use usleep_range() instead of msleep() for small msec (1ms - 20ms) since msleep() will often sleep for 20ms for any value in that range. This is fine in this case since 16ms is the _minimum_ delay required by max77686 for an RTC update but by using

[PATCH v4 05/10] rtc: max77686: Add an indirection level to access RTC registers

2016-01-26 Thread Javier Martinez Canillas
The max77686 driver is generic enough that can be used for other Maxim RTC IP blocks but these might not have the same registers layout so instead of accessing the registers directly, add a map to translate offsets to the real registers addresses for each IP. Signed-off-by: Javier Martinez Canilla

[PATCH v4 09/10] ARM: exynos_defconfig: Remove MAX77802 RTC Kconfig symbol

2016-01-26 Thread Javier Martinez Canillas
The driver has been removed so the Kconfig symbol is not valid anymore. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski --- Changes in v4: None Changes in v3: None Changes in v2: - Add Krzysztof Kozlowski's Reviewed-by tag to patch #9. arch/arm/configs/exynos_defconf

[PATCH v4 10/10] ARM: multi_v7_defconfig: Remove MAX77802 RTC Kconfig symbol

2016-01-26 Thread Javier Martinez Canillas
The driver has been removed so the Kconfig symbol is not valid anymore. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski --- Changes in v4: None Changes in v3: None Changes in v2: - Add Krzysztof Kozlowski's Reviewed-by tag to patch #10. arch/arm/configs/multi_v7_def

[PATCH v4 08/10] rtc: Remove Maxim 77802 driver

2016-01-26 Thread Javier Martinez Canillas
The max77686 RTC driver now supports the max77802 RTC as well so there's no need to have a separate driver anymore. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Acked-by: Laxman Dewangan Reviewed-by: Andi Shyti Tested-by: Krzysztof Kozlowski --- Changes in v4: -

[PATCH v4 07/10] rtc: max77686: Fix unsupported year message

2016-01-26 Thread Javier Martinez Canillas
The max77686 RTC only supports a range of 99 years so instead of using year 1900 as the base, the year 2000 is used. This means that 1900 to 1999 are unsupported years. The driver was printing a warning for those values but was returning a error so for consistency, print an error message instead a

[PATCH v4 04/10] rtc: max77686: Use a driver data struct instead hard-coded values

2016-01-26 Thread Javier Martinez Canillas
The driver has some hard-coded values such as the minimum delay needed before a RTC update or the mask used for the sec/min/hour/etc registers. Use a data structure that contains these values and pass as driver data using the platform device ID table for each device. This allows to make the drive

[PATCH v4 02/10] rtc: max77686: Use ARRAY_SIZE() instead of current array length

2016-01-26 Thread Javier Martinez Canillas
It is better to use the ARRAY_SIZE() macro instead of the array length to avoid bugs if the array is later changed and the length not updated. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Tested-by: Krzysztof Kozlowski Reviewed-by: Andi Shyti --- Changes in v4: -

Re: [RFC PATCH] mm: support CONFIG_ZONE_DEVICE + CONFIG_ZONE_DMA

2016-01-26 Thread Joonsoo Kim
On Tue, Jan 26, 2016 at 07:23:59PM -0800, Dan Williams wrote: > On Tue, Jan 26, 2016 at 6:15 PM, Joonsoo Kim wrote: > > On Tue, Jan 26, 2016 at 05:37:38PM -0800, Dan Williams wrote: > >> On Tue, Jan 26, 2016 at 5:18 PM, Joonsoo Kim > >> wrote: > [..] > >> > Please refer my previous attempt to ad

Re: Bug in radix tree gang lookup?

2016-01-26 Thread Hugh Dickins
On Fri, 22 Jan 2016, Matthew Wilcox wrote: > > I think there's a race in radix_tree_gang_lookup() (and > related functions). I was trying to understand why we need the > 'indirect_to_ptr()' call here: > > radix_tree_for_each_slot(slot, root, &iter, first_index) { > result

Re: [PATCH] powerpc/perf: Remove PPMU_HAS_SSLOT flag for Power8

2016-01-26 Thread Michael Ellerman
On Mon, 2016-01-25 at 14:03 +0530, Madhavan Srinivasan wrote: > Commit: 7a7868326d77 introduced PPMU_HAS_SSLOT flag to > remove assumption of MMCRA[SLOT] with respect to > PPMU_ALT_SIPR flag. Commit 7a7868326d77's message also > specifies that Power8 does not support MMCRA[SLOT]. > But still

Re: fast path cycle muncher (vmstat: make vmstat_updater deferrable again and shut down on idle)

2016-01-26 Thread Mike Galbraith
On Wed, 2016-01-27 at 04:12 +0100, Mike Galbraith wrote: > Good morning, > > On Tue, 2016-01-26 at 13:20 -0600, Christoph Lameter wrote: > > On Tue, 26 Jan 2016, Mike Galbraith wrote: > > > > > > The system going idle is a fastpath. Mind boogling. > > > > > > Hohum, noted. Now what about those

Re: [PATCH 3/3] dax: Handle write faults more efficiently

2016-01-26 Thread Matthew Wilcox
On Mon, Jan 25, 2016 at 09:38:19AM -0800, Andy Lutomirski wrote: > On Mon, Jan 25, 2016 at 9:25 AM, Matthew Wilcox > wrote: > > From: Matthew Wilcox > > > > When we handle a write-fault on a DAX mapping, we currently insert a > > read-only mapping and then take the page fault again to convert it

Re: [PATCH 2/3] mm: Convert vm_insert_pfn_prot to vmf_insert_pfn_prot

2016-01-26 Thread Matthew Wilcox
On Mon, Jan 25, 2016 at 09:35:36AM -0800, Andy Lutomirski wrote: > On Mon, Jan 25, 2016 at 9:25 AM, Matthew Wilcox > wrote: > > From: Matthew Wilcox > > > > Other than the name, the vmf_ version takes a pfn_t parameter, and > > returns a VM_FAULT_ code suitable for returning from a fault handler.

Re: [PATCH v4 06/10] rtc: max77686: Add max77802 support

2016-01-26 Thread Krzysztof Kozlowski
On 27.01.2016 12:36, Javier Martinez Canillas wrote: > The MAX77686 and MAX77802 RTC IP blocks are very similar with only > these differences: > > 0) The RTC registers layout and addresses are different. > > 1) The MAX77686 use 1 bit of the sec/min/hour/etc registers as the >alarm enable whil

Re: [PATCH v4 07/10] rtc: max77686: Fix unsupported year message

2016-01-26 Thread Krzysztof Kozlowski
On 27.01.2016 12:36, Javier Martinez Canillas wrote: > The max77686 RTC only supports a range of 99 years so instead of using > year 1900 as the base, the year 2000 is used. This means that 1900 to > 1999 are unsupported years. > > The driver was printing a warning for those values but was returni

Re: [RFC PATCH] mm: support CONFIG_ZONE_DEVICE + CONFIG_ZONE_DMA

2016-01-26 Thread Dan Williams
On Tue, Jan 26, 2016 at 7:52 PM, Joonsoo Kim wrote: > On Tue, Jan 26, 2016 at 07:23:59PM -0800, Dan Williams wrote: >> On Tue, Jan 26, 2016 at 6:15 PM, Joonsoo Kim wrote: >> > On Tue, Jan 26, 2016 at 05:37:38PM -0800, Dan Williams wrote: >> >> On Tue, Jan 26, 2016 at 5:18 PM, Joonsoo Kim >> >>

[PATCH 04/15] arc: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Vineet Gupta Signed-off-by: Kefeng Wang --- arch/arc/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/

[PATCH 02/15] arm64: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Catalin Marinas Cc: Will Deacon Cc: Arnd Bergmann Signed-off-by: Kefeng Wang --- arch/arm64/kernel/setup.c | 3 +-- 1 file changed, 1 inser

[PATCH 03/15] mips: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Ralf Baechle Signed-off-by: Kefeng Wang --- arch/mips/ath79/setup.c | 2 +- arch/mips/jz4740/setup.c | 2 +- arch/mips/mti

[PATCH 00/15] use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Then it is possible for driver code build as a module, and no need to export of_default_bus_match_table anymore. This patchset is based on Linux 4.

[PATCH 06/15] metag: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: James Hogan Signed-off-by: Kefeng Wang --- arch/metag/kernel/setup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ar

[PATCH 01/15] arm: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Nicolas Ferre Cc: Ray Jui Cc: Lee Jones Cc: Krzysztof Halasa Cc: Kukjin Kim Cc: Rob Herring Cc: Shawn Guo Cc: Santosh Shilimkar Cc: Rola

[PATCH 13/15] of: unittest: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Rob Herring Cc: Frank Rowand Cc: Grant Likely Signed-off-by: Kefeng Wang --- drivers/of/unittest.c | 5 ++--- 1 file changed, 2 insertions(

[PATCH 08/15] nios2: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Ley Foon Tan Signed-off-by: Kefeng Wang --- arch/nios2/platform/platform.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --gi

[PATCH 05/15] c6x: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Mark Salter Cc: Aurelien Jacquiot Signed-off-by: Kefeng Wang --- arch/c6x/platforms/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH 12/15] memory: omap-gpmc: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Roger Quadros Cc: Tony Lindgren Signed-off-by: Kefeng Wang --- drivers/memory/omap-gpmc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletio

[PATCH 15/15] Revert "of/platform: export of_default_bus_match_table"

2016-01-26 Thread Kefeng Wang
This reverts commit b80443c2211c7daaabd20fbbe9e7beb3fa3408e0. After covering to use helper of_platform_default_populate() to populate the default bus, no need to export of_default_bus_match_table anymore. Cc: Masahiro Yamada Cc: Rob Herring Cc: Frank Rowand Cc: Grant Likely Signed-off-by: Ke

linux-next: Tree for Jan 27

2016-01-26 Thread Stephen Rothwell
Hi all, Changes since 20160125: New tree: btrfs-kdave The aio tree still had a build failure so I used the version from next-20160111. Non-merge commits (relative to Linus' tree): 1141 989 files changed, 38122 insertions(+), 11891 deletions(-) -

[PATCH 10/15] bus: imx-weim: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Signed-off-by: Huang Shijie Cc: Shawn Guo Signed-off-by: Kefeng Wang --- drivers/bus/imx-weim.c | 5 ++--- 1 file changed, 2 insertions(+),

[PATCH 14/15] Revert "bus: uniphier: allow only built-in driver"

2016-01-26 Thread Kefeng Wang
This reverts commit 326ea45aa827da6686c78b5907f9839f91ef5782. After covering to use helper of_platform_default_populate() to populate the default bus, no error in build uniphier driver as a module. Cc: Masahiro Yamada Cc: Arnd Bergmann Signed-off-by: Kefeng Wang --- drivers/bus/Kconfig | 2 +-

Re: [PATCH 0/4] support for text-relative kallsyms table

2016-01-26 Thread Rusty Russell
Ard Biesheuvel writes: > On 21 January 2016 at 07:45, Ard Biesheuvel wrote: >> On 21 January 2016 at 06:10, Rusty Russell wrote: >>> Ard Biesheuvel writes: This implements text-relative kallsyms address tables. This was developed as part of my series to implement KASLR/CONFIG_RELOCATA

[PATCH 09/15] xtensa: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Chris Zankel Cc: Max Filippov Signed-off-by: Kefeng Wang --- arch/xtensa/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[PATCH 11/15] bus: uniphier-system-bus: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Masahiro Yamada Signed-off-by: Kefeng Wang --- drivers/bus/uniphier-system-bus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) dif

[PATCH 07/15] cris: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Mikael Starvik Cc: Jesper Nilsson Signed-off-by: Kefeng Wang --- arch/cris/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH 09/15] xtensa: use of_platform_default_populate() to populate default bus

2016-01-26 Thread Max Filippov
On Wed, Jan 27, 2016 at 7:27 AM, Kefeng Wang wrote: > Use helper of_platform_default_populate() in linux/of_platform > when possible, instead of calling of_platform_populate() with > the default match table. > > Cc: Chris Zankel > Cc: Max Filippov > Signed-off-by: Kefeng Wang > --- > arch/xten

Re: [PATCH v4 06/10] rtc: max77686: Add max77802 support

2016-01-26 Thread Javier Martinez Canillas
Hello Krzysztof, On Wed, Jan 27, 2016 at 1:23 AM, Krzysztof Kozlowski wrote: > On 27.01.2016 12:36, Javier Martinez Canillas wrote: [snip] >> >> + if (!info->drv_data->separate_i2c_addr) >> + info->max77686->rtc_regmap = info->max77686->regmap; >> + > > At this stage I don't lik

Re: [PATCH 00/16] mm/slab: introduce new freed objects management way, OBJFREELIST_SLAB

2016-01-26 Thread Andrew Morton
On Thu, 14 Jan 2016 14:24:13 +0900 Joonsoo Kim wrote: > This patchset implements new freed object management way, that is, > OBJFREELIST_SLAB. Purpose of it is to reduce memory overhead in SLAB. > > SLAB needs a array to manage freed objects in a slab. If there is > leftover after objects are pa

Re: [PATCH 1/3] x86: Honour passed pgprot in track_pfn_insert() and track_pfn_remap()

2016-01-26 Thread Matthew Wilcox
On Mon, Jan 25, 2016 at 09:33:35AM -0800, Andy Lutomirski wrote: > On Mon, Jan 25, 2016 at 9:25 AM, Matthew Wilcox > wrote: > > From: Matthew Wilcox > > > > track_pfn_insert() overwrites the pgprot that is passed in with a value > > based on the VMA's page_prot. This is a problem for people tryi

Re: [PATCH v1 1/1] lib/vsprintf: define special_hex_number_unsigned_long()

2016-01-26 Thread Andrew Morton
On Thu, 14 Jan 2016 14:34:49 +0200 Andy Shevchenko wrote: > Define a macro for convenient use with values of unsigned long type. > > The value in symbol_string() is type of unsigned long. Use it instead of void > * > when getting sizeof() of it. > > ... > > --- a/lib/vsprintf.c > +++ b/lib/vs

Re: [PATCH 00/16] mm/slab: introduce new freed objects management way, OBJFREELIST_SLAB

2016-01-26 Thread Joonsoo Kim
On Tue, Jan 26, 2016 at 08:40:13PM -0800, Andrew Morton wrote: > On Thu, 14 Jan 2016 14:24:13 +0900 Joonsoo Kim wrote: > > > This patchset implements new freed object management way, that is, > > OBJFREELIST_SLAB. Purpose of it is to reduce memory overhead in SLAB. > > > > SLAB needs a array to

[PATCH] ARM: dts: rockchip: add the leds control for kylin board

2016-01-26 Thread Caesar Wang
As the kylin schematic drawing, add the needed work led for kylin board. Run: ucho 0 > /sys/class/leds/kylin:red:led/brightness echo 1 > /sys/class/leds/kylin:red:led/brightness The led can be normall on/off on kylin board. Signed-off-by: Caesar Wang --- Hi Heiko, Describing the content: - T

Re: [PATCH v3] watchdog: Add watchdog timer support for the WinSystems EBC-C384

2016-01-26 Thread Guenter Roeck
On 01/26/2016 03:38 PM, William Breathitt Gray wrote: On 01/25/2016 08:26 PM, Guenter Roeck wrote: The manual for this motherboard does not provide much information about the Super I/O chip (no model number, etc.), and neither sensors-detect nor superiotool was able to detect it. I've sent an em

[RESEND PATCH] ARM: dts: rockchip: add the leds control for kylin board

2016-01-26 Thread Caesar Wang
As the kylin schematic drawing, add the needed work led for kylin board. Run: echo 0 > /sys/class/leds/kylin:red:led/brightness echo 1 > /sys/class/leds/kylin:red:led/brightness The led can be normall on/off on kylin board. Signed-off-by: Caesar Wang --- Hi Heiko, Describing the content: - T

[RFC PATCH 02/21] mmc: sdhci-iproc: consolidate parsing path

2016-01-26 Thread Shawn Lin
This patch remove mmc_of_parse and check return value of sdhci_get_of_property. Cc: Scott Branden Signed-off-by: Shawn Lin --- drivers/mmc/host/sdhci-iproc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c

[RFC PATCH 0/21] Totally remove SDHCI_QUIRK_BROKEN_CARD_DETECTION quirk

2016-01-26 Thread Shawn Lin
Ulf wants to make sdhci into a library, but it's a huge task since any improvemts may touch too much platforms. But at least we should make some effort to push things torwards to this target. This patchset remove SDHCI_QUIRK_BROKEN_CARD_DETECTION from sdhci to gradually reduce quirk of sdhci. Fi

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