[GIT PULL] ARC updates for 4.9-rc3

2016-10-28 Thread Vineet Gupta
Hi Linus, Please pull Thx, -Vineet --> The following changes since commit 1001354ca34179f3db924eb66672442a173147dc: Linux 4.9-rc1 (2016-10-15 12:17:50 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/ tags/arc-4.9-rc3 for you

Re: [PATCH] lpfc: use %zd format string for size_t

2016-10-28 Thread Vineet Gupta
On 10/28/2016 03:03 PM, Arnd Bergmann wrote: > On Friday, October 28, 2016 2:58:33 PM CEST Vineet Gupta wrote: >> On 10/28/2016 02:52 PM, Vineet Gupta wrote: >>> On 10/28/2016 02:44 PM, Vineet Gupta wrote: This is configuration specific, and something caused your compiler to > be built ass

[PATCH] [ARC] define SIZE_TYPE and PTRDIFF_TYPE correctly

2016-10-28 Thread Vineet Gupta
This silences tons of -Wformat= warnings when building ARC Linux kernel with gcc 6.x (and restores the ARC gcc 4.8.x behaviour) which had similar fix. gcc/ 2016-10-28 Vineet Gupta * config/arc/arc.h (SIZE_TYPE): define as unsigned int. * (PTRDIFF_TYPE): define as int. Signed-of

Re: [PATCH] lpfc: use %zd format string for size_t

2016-10-28 Thread Arnd Bergmann
On Friday, October 28, 2016 2:58:33 PM CEST Vineet Gupta wrote: > On 10/28/2016 02:52 PM, Vineet Gupta wrote: > > On 10/28/2016 02:44 PM, Vineet Gupta wrote: > >> This is configuration specific, and something caused your compiler to > >>> be built assuming that size_t is unsigned long, while the ke

Re: [PATCH] lpfc: use %zd format string for size_t

2016-10-28 Thread Vineet Gupta
On 10/28/2016 02:52 PM, Vineet Gupta wrote: > On 10/28/2016 02:44 PM, Vineet Gupta wrote: >> This is configuration specific, and something caused your compiler to >>> be built assuming that size_t is unsigned long, while the kernel >>> headers are assuming it should be unsigned int. > > So yes thi

Re: [PATCH] lpfc: use %zd format string for size_t

2016-10-28 Thread Vineet Gupta
On 10/28/2016 02:44 PM, Vineet Gupta wrote: > This is configuration specific, and something caused your compiler to >> be built assuming that size_t is unsigned long, while the kernel >> headers are assuming it should be unsigned int. So yes this seems to be target specific gcc thing for ARC 4.8

Re: [PATCH] lpfc: use %zd format string for size_t

2016-10-28 Thread Arnd Bergmann
On Friday, October 28, 2016 2:44:13 PM CEST Vineet Gupta wrote: > > Indeed if I hack include/linux/types.h > > -typedef __kernel_size_tsize_t; > +typedef unsigned long size_t; > > then the warning goes away, so gcc is indeed assuming size_t to be unsigned > long > and n

Re: [PATCH] lpfc: use %zd format string for size_t

2016-10-28 Thread Vineet Gupta
On 10/28/2016 02:33 PM, Arnd Bergmann wrote: > On Friday, October 28, 2016 2:03:21 PM CEST Vineet Gupta wrote: >> >> I'm trying to use about to be released ARC gcc 6.x with current kernels and >> see a >> flood of warnings due to these legit fixes - i.e.g arc gcc 6.2 complains >> when it >> sees

Re: [PATCH] lpfc: use %zd format string for size_t

2016-10-28 Thread Arnd Bergmann
On Friday, October 28, 2016 2:03:21 PM CEST Vineet Gupta wrote: > > I'm trying to use about to be released ARC gcc 6.x with current kernels and > see a > flood of warnings due to these legit fixes - i.e.g arc gcc 6.2 complains when > it > sees -zx formats. > > CC mm/percpu.o > ../mm/percpu

Re: [PATCH] lpfc: use %zd format string for size_t

2016-10-28 Thread Vineet Gupta
Hi Arnd, On 10/17/2016 05:35 AM, Arnd Bergmann wrote: > A recent bugfix introduced a harmless warning in the lpfc driver: > > drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_write_firmware': > drivers/scsi/lpfc/lpfc_logmsg.h:56:45: error: format '%ld' expects argument > of type 'long int', but

Re: [PATCH] ARC: Enable PERF_EVENTS in nSIM driven platforms

2016-10-28 Thread Vineet Gupta
On 10/28/2016 01:41 AM, Alexey Brodkin wrote: > Now when we have properly working performance counters in nSIM > even with interrupt support (fix should be a part of upcoming > nSIM engineering build 2016.12-005) we may enable perf support > by default for all platforms that use nSIM for ARC cores

Re: [PATCH] ARC: [SMP] get CPUs mask from DT

2016-10-28 Thread Vineet Gupta
On 10/26/2016 01:04 AM, Noam Camus wrote: > From: Noam Camus > > Today we use smp_init_cpus() to set cpu possible mask > and we use smp_prepare_cpus() to set cpu present mask. > For possible mask we use all CPUs at range [0-NR_CPUS] and > for present mask we use all CPUs at range [0-max_cpus] >

Re: [PATCH v3 0/3] dmaengine: DW DMAC: split pdata to hardware properties

2016-10-28 Thread Andy Shevchenko
On Fri, 2016-10-28 at 18:59 +0300, Eugeniy Paltsev wrote: > This series is to address a proposal by Andy in these threads: > http://www.spinics.net/lists/dmaengine/msg11506.html > http://www.spinics.net/lists/dmaengine/msg11541.html > Split platform data to actual hardware properties, and platform

[PATCH v3 1/3] dmaengine: DW DMAC: split pdata to hardware properties and platform quirks

2016-10-28 Thread Eugeniy Paltsev
Split platform data to actual hardware properties, and platform quirks. Now we able to use quirks and hardware properties separately from different sources (pdata, device tree or autoconfig registers) Signed-off-by: Eugeniy Paltsev --- drivers/dma/dw/core.c| 23 ++

[PATCH v3 3/3] dmaengine: DW DMAC: move "nollp" to "dwc->flags"

2016-10-28 Thread Eugeniy Paltsev
Add "DW_DMA_IS_LLP_SUPPORTED" flag. Use this flag to get rid of "dwc->nollp" as separate variable. Signed-off-by: Eugeniy Paltsev --- drivers/dma/dw/core.c | 11 ++- drivers/dma/dw/regs.h | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/dma/dw/core.c b/driv

[PATCH v3 2/3] dmaengine: DW DMAC: convert to unified device property API

2016-10-28 Thread Eugeniy Paltsev
Convert device tree properties reading to unified device property API, update properties names as ordered by DT policy. Signed-off-by: Eugeniy Paltsev --- drivers/dma/dw/platform.c | 33 ++--- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/drivers/dma

[PATCH v3 0/3] dmaengine: DW DMAC: split pdata to hardware properties

2016-10-28 Thread Eugeniy Paltsev
This series is to address a proposal by Andy in these threads: http://www.spinics.net/lists/dmaengine/msg11506.html http://www.spinics.net/lists/dmaengine/msg11541.html Split platform data to actual hardware properties, and platform quirks. Now we able to use quirks and hardware properties separate

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

2016-10-28 Thread Arnd Bergmann
On Thursday, October 27, 2016 10:21:16 AM CEST Vineet Gupta wrote: > > On 10/27/2016 02:39 AM, Alexey Brodkin wrote: > > > > And these are functions required by U-Boot (most probably the same is > > applied to kernel): > > 1) so-called millicode, stuff like __ld_rX_to_rY, __st_rX_to_rX > > This

[PATCH] ARC: Enable PERF_EVENTS in nSIM driven platforms

2016-10-28 Thread Alexey Brodkin
Now when we have properly working performance counters in nSIM even with interrupt support (fix should be a part of upcoming nSIM engineering build 2016.12-005) we may enable perf support by default for all platforms that use nSIM for ARC cores simulation. Note all defconfigs were regenerated with