[git pull] assorted fixes

2017-09-03 Thread Al Viro
Loose ends and regressions from the last merge window. Strictly speaking, only binfmt_flat thing is a build regression per se - the rest is "only sparse cares about that" stuff. The following changes since commit cc4a41fe5541a73019a864883297bd5043aa6d98: Linux 4.13-rc7 (2017-08-27 17:20

Re: [PATCH 2/3] iio: Introduce the generic counter interface

2017-09-03 Thread Jonathan Cameron
On Mon, 28 Aug 2017 11:57:07 -0400 William Breathitt Gray wrote: > On Sun, Aug 20, 2017 at 12:40:02PM +0100, Jonathan Cameron wrote: > >On Mon, 31 Jul 2017 12:03:23 -0400 > >William Breathitt Gray wrote: > > > >> This patch introduces the IIO generic counter interface for supporting > >> count

Re: [PATCH 0/3] iio: Introduce the generic counter interface

2017-09-03 Thread Jonathan Cameron
On Mon, 28 Aug 2017 10:16:33 -0400 William Breathitt Gray wrote: > On Sun, Aug 20, 2017 at 01:00:16PM +0100, Jonathan Cameron wrote: > >On Mon, 31 Jul 2017 12:02:45 -0400 > >William Breathitt Gray wrote: > > > >> Summary > >> === > > > >I'd like to see some of this brought out as proper

Re: [PATCH 3/3] iio: 104-quad-8: Add IIO generic counter interface support

2017-09-03 Thread Jonathan Cameron
On Mon, 28 Aug 2017 12:23:45 -0400 William Breathitt Gray wrote: > On Sun, Aug 20, 2017 at 01:11:18PM +0100, Jonathan Cameron wrote: > >On Mon, 31 Jul 2017 12:03:46 -0400 > >William Breathitt Gray wrote: > > > >> This patch adds support for the IIO generic counter interface to the > >> 104-QUA

Re: [PATCH][next] net/mlx4_core: fix incorrect size allocation for dev->caps.spec_qps

2017-09-03 Thread David Miller
From: Colin King Date: Thu, 31 Aug 2017 18:07:24 +0100 > From: Colin Ian King > > The current allocation for dev->caps.spec_qps is for the size of the > pointer and not the size of the actual mlx4_spec_qps structure. Fix > this by using the correct size. Also splint allocation over a few >

Re: [PATCH][next] net/mlx4_core: fix memory leaks on error exit path

2017-09-03 Thread David Miller
From: Colin King Date: Thu, 31 Aug 2017 17:30:53 +0100 > From: Colin Ian King > > The structures hca_param and func_cap are not being kfree'd on an error > exit path causing two memory leaks. Fix this by jumping to the existing > free memory error exit path. > > Detected by CoverityScan, CID#1

Re: [git pull] assorted fixes

2017-09-03 Thread Linus Torvalds
On Sun, Sep 3, 2017 at 10:15 AM, Al Viro wrote: > Loose ends and regressions from the last merge window. > Strictly speaking, only binfmt_flat thing is a build regression > per se - the rest is "only sparse cares about that" stuff. I'll pull these after the release. None of them look crit

Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the idlest CPU

2017-09-03 Thread Thomas Gleixner
On Fri, 1 Sep 2017, Chen Yu wrote: > This is the major logic to spread the vectors on different CPUs. > The main idea is to choose the 'idlest' CPU which has assigned > the least number of vectors as the candidate/hint for the vector > allocation domain, in the hope that the vector allocation doma

[PATCH RFC v3 0/4] Add cross-compilation support to eBPF samples

2017-09-03 Thread Joel Fernandes
These patches fix issues seen when cross-compiling eBPF samples on arm64. Compared to [1], I dropped the controversial inline-asm patch pending further discussion on the right way to do it. However these patches are still a step in the right direction and I wanted them to get in before the more con

Re: [PATCH 3/3] iio: 104-quad-8: Add IIO generic counter interface support

2017-09-03 Thread Jonathan Cameron
On Sun, 3 Sep 2017 18:50:01 +0100 Jonathan Cameron wrote: > On Mon, 28 Aug 2017 12:23:45 -0400 > William Breathitt Gray wrote: > > > On Sun, Aug 20, 2017 at 01:11:18PM +0100, Jonathan Cameron wrote: > > >On Mon, 31 Jul 2017 12:03:46 -0400 > > >William Breathitt Gray wrote: > > > > > >> T

[PATCH RFC v3 3/4] samples/bpf: Fix pt_regs issues when cross-compiling

2017-09-03 Thread Joel Fernandes
BPF samples fail to build when cross-compiling for ARM64 because of incorrect pt_regs param selection. This is because clang defines __x86_64__ and bpf_headers thinks we're building for x86. Since clang is building for the BPF target, it shouldn't make assumptions about what target the BPF program

[PATCH RFC v3 4/4] samples/bpf: Add documentation on cross compilation

2017-09-03 Thread Joel Fernandes
CC: Alexei Starovoitov CC: Daniel Borkmann CC: David Miller Signed-off-by: Joel Fernandes --- samples/bpf/README.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/samples/bpf/README.rst b/samples/bpf/README.rst index 79f9a58f1872..2b906127ef54 100644 --- a/samples/bpf/README.

[PATCH RFC v3 2/4] samples/bpf: Enable cross compiler support

2017-09-03 Thread Joel Fernandes
When cross compiling, bpf samples use HOSTCC for compiling the non-BPF part of the sample, however what we really want is to use the cross compiler to build for the cross target since that is what will load and run the BPF sample. Detect this and compile samples correctly. CC: Alexei Starovoitov

[PATCH RFC v3 1/4] samples/bpf: Use getppid instead of getpgrp for array map stress

2017-09-03 Thread Joel Fernandes
When cross-compiling the bpf sample map_perf_test for aarch64, I find that __NR_getpgrp is undefined. This causes build errors. This syscall is deprecated and requires defining __ARCH_WANT_SYSCALL_DEPRECATED. To avoid having to define that, just use a different syscall (getppid) for the array map s

[PATCH 2/7] media: v4l2 uapi book: get rid of driver programming's chapter

2017-09-03 Thread Mauro Carvalho Chehab
It doesn't make any sense having a driver programming's chapter at the uAPI book, as this is related to kernel API. Also, we now have such kAPI book where V4L2 driver programming is covered. So, get rid of this left-over. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/dri

[PATCH 7/7] media: index.rst: don't write "Contents:" on PDF output

2017-09-03 Thread Mauro Carvalho Chehab
Right now, Sphinx unconditionally creates a blank page with just "Contents:" on it, on PDF output. While this makes sense for html, it doesn't o PDF, as LaTeX does what's required automatically. Fix it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/index.rst | 6 +- 1 file ch

[PATCH 4/7] media: vidioc-g-fmt.rst: adjust table format

2017-09-03 Thread Mauro Carvalho Chehab
While doing a visual inspection with Sphinx 1.5, I noticed that one of the columns was smaller than the text written there. As this is the only thing I noticed with Sphinx 1.5, I suspect that this was also a problem with Sphinx 1.4. Yet, I opted to touch it in a way that wouldn't cause backward is

[PATCH 5/7] media: fix build breakage with Sphinx 1.6

2017-09-03 Thread Mauro Carvalho Chehab
Not sure why, but, on this particular document, on Sphinx 1.4 and 1.5, the usage of \small here causes it to write the table at the same column where the text before it ended, with makes the table to go out of the page. A possible solution would be to add a \newline on latex raw, with was the appr

[PATCH 1/7] media: format.rst: use the right markup for important notes

2017-09-03 Thread Mauro Carvalho Chehab
There's an important note there, but it is not using the ReST markup. So, it doesn't get any visual highlight on the output. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/format.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/media/ua

[PATCH 6/7] media: pixfmt*.rst: replace a two dots by a comma

2017-09-03 Thread Mauro Carvalho Chehab
On several tables, the color sample location table preamble is written as: Color Sample Location.. Instead of: Color Sample Location: I suspect that the repetition of such pattern was due to some copy-and-paste (or perhaps some error during DocBook conversion). Anyway, fix it. Si

[PATCH 0/7] Another set of fixes for PDF output

2017-09-03 Thread Mauro Carvalho Chehab
There are other things that are needed for a proper PDF output, and a fix for yet another Sphinx 1.6 breakage. After this patch series, PDF output now looks OK on Sphinx 1.4 to 1.6. There's, however, one step back on Sphinx 1.6: I couldn't find any way to use a background color for notifications

[PATCH 3/7] media: vivid.rst: add a blank line to correct ReST format

2017-09-03 Thread Mauro Carvalho Chehab
On all vivid parameters, there's an space after the parameter, except for "DV Timings Signal Mode". That makes this single one to be written in bold, and, at PDF output, at the same line as its description. Use the same convention as the other parameters, in order to adjust its output. Signed-off

[PATCH 1/2] docs-rst: conf.py: remove lscape from LaTeX preamble

2017-09-03 Thread Mauro Carvalho Chehab
Only the media book used this extension in the past, but it is not required anymore. Cleanup patch only. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/Documentation/conf.py b/Documentation/conf.py index f9054ab60cb1..38a606b

[PATCH 0/2] Two cleanups for Sphinx conf.py

2017-09-03 Thread Mauro Carvalho Chehab
Hi Jon, Those patches are just cleanups for Documentation/conf.py. The first one removes a package usage directive for a LateX package that it is not used. The second one moves some LaTeX preamble code that it is used only on Sphinx 1.4 and 1.5 to a separate if. On Sphinx 1.6, the macros there

[PATCH 2/2] docs-rst: conf.py: only setup notice box colors if Sphinx < 1.6

2017-09-03 Thread Mauro Carvalho Chehab
Sphinx 1.5 added a new way to change backward colors for note boxes, but kept backward compatibility with 1.4. On Sphinx 1.6, the old way stopped working, in favor of a new less hackish way. Unfortunately, this is currently too buggy to be used, and the old way doesn't work anymore. So, we have no

RFD: x86: Sanitize the vector allocator

2017-09-03 Thread Thomas Gleixner
The vector allocator of x86 is a pretty stupid linear search algorithm with a worst case of nr_vectors * nr_online_cpus * nr_cpus_in_affinity mask It has some other magic properties and really wants to be replaced by something smarter. That needs quite some cleanup of the vector management c

Re: [PATCH 2/4] arm: dts: exynos: add exynos5420 cpu capacity-dmips-mhz information

2017-09-03 Thread Krzysztof Kozlowski
On Thu, Aug 31, 2017 at 11:36:07AM +0100, Dietmar Eggemann wrote: > On 30/08/17 21:26, Krzysztof Kozlowski wrote: > > On Wed, Aug 30, 2017 at 03:41:18PM +0100, Dietmar Eggemann wrote: > >> The following 'capacity-dmips-mhz' dt property values are used: > >> > >> Cortex-A15: 1024, Cortex-A7: 539 > >

Re: [PATCH 0/10] Use ARRAY_SIZE macro - v4.13-rc7

2017-09-03 Thread Thomas Meyer
On Sun, Sep 03, 2017 at 08:36:02AM -0700, Joe Perches wrote: > On Sun, 2017-09-03 at 14:19 +0200, Thomas Meyer wrote: > > Use ARRAY_SIZE macro, rather than explicitly coding some variant of it > > yourself. > > > > Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e > > 's/\b

Re: [PATCH 1/3] ASoC: samsung: i2s: Use specific name for i2s dais

2017-09-03 Thread Krzysztof Kozlowski
On Mon, Aug 28, 2017 at 07:01:00PM +0900, Jaechul Lee wrote: > Add specific dais name when components are registered. Component and dai > name will follow their parent dev name, if the name isn't described. In > case of this driver, each dais will have same name like '1144.i2s0' by > fmt_singl

Re: [PATCH v2 00/26] Improve DVB documentation and reduce its gap

2017-09-03 Thread Honza Petrouš
> There is still a gap at the CA API, as there are three ioctls that are used > only by a few drivers and whose structs are not properly documented: > CA_GET_MSG, CA_SEND_MSG and CA_SET_DESCR. > > The first two ones seem to be related to a way that a few drivers > provide to send/receive messages.

Re: [PATCH 3/3] ASoC: samsung: Fix invalid argument when devm_gpiod_get is called

2017-09-03 Thread Krzysztof Kozlowski
On Mon, Aug 28, 2017 at 07:01:02PM +0900, Jaechul Lee wrote: > devm_gpiod_get is called with GPIOF_OUT_INIT_LOW but the function doesn't > allow the parameters. Unluckily, GPIOF_OUT_INIT_LOW is same value as > GPIOD_IN so it works like input gpio. In overall, makes sense however one thing troubles

[PATCH 1/1] docs-rst: media: Don't use \small for V4L2_PIX_FMT_SRGGB10 documentation

2017-09-03 Thread Sakari Ailus
There appears to be an issue in using \small in certain cases on Sphinx 1.4 and 1.5. Other format documents don't use \small either, remove it from here as well. Signed-off-by: Sakari Ailus --- Hi Mauro, What would you think of this as an alternative approach? No hacks needed. Just a recognition

[PATCH RFC v2 2/2] sched/fair: Skip frequency update if CPU about to idle

2017-09-03 Thread Joel Fernandes
In an application playing music where the music app's thread wakes up and sleeps periodically on an Android device, its seen that the frequency increases slightly on the dequeue and is reduced after the wake up on the wake up. This oscillation continues between 300Mhz and 350Mhz, all the while the

[PATCH RFC RESEND v2 0/2] Prevent cpufreq update for only task on rq that sleeps

2017-09-03 Thread Joel Fernandes
These patches are just a repost of [1] and [2] with a cover letter for more history and backround. On the Pixel product we carry a similar path which was also posted some time ago to LKML [3] [4] however that patch was for schedfreq governor (which isn't upstream). For schedutil which is upstream a

[PATCH RFC v2 1/2] Revert "sched/fair: Drop always true parameter of update_cfs_rq_load_avg()"

2017-09-03 Thread Joel Fernandes
This reverts commit 3a12310d54dbdde6ccbbd519c74c91ba2f52. Its needed by the series for controlling whether cpufreq is notified about updating frequency during an update to the utilization. Cc: Srinivas Pandruvada Cc: Len Brown Cc: Rafael J. Wysocki Cc: Viresh Kumar Cc: Ingo Molnar Cc: Pe

Re: Converting struct timer_list callback argument to struct timer_list *

2017-09-03 Thread Kees Cook
On Sun, Sep 3, 2017 at 12:37 AM, Christoph Hellwig wrote: > On Fri, Sep 01, 2017 at 09:24:22AM -0700, Kees Cook wrote: >> #define list_entry(ptr, type, member) container_of(ptr, type, member) >> #define rb_entry(ptr, type, member) container_of(ptr, type, member) >> >> The use of a "timer_entry()"

Re: [PATCH 0/10] Use ARRAY_SIZE macro - v4.13-rc7

2017-09-03 Thread Joe Perches
On Sun, 2017-09-03 at 21:59 +0200, Thomas Meyer wrote: > On Sun, Sep 03, 2017 at 08:36:02AM -0700, Joe Perches wrote: > > On Sun, 2017-09-03 at 14:19 +0200, Thomas Meyer wrote: > > > Use ARRAY_SIZE macro, rather than explicitly coding some variant of it > > > yourself. > > > > > > Found with: find

[PATCH 0/7] [media] SAA71..: Adjustments for four function implementations

2017-09-03 Thread SF Markus Elfring
>From 2f421e83375df1aeef50ce053f1dbcd1366c2365 Mon Sep 17 00:00:00 2001 From: Markus Elfring Date: Sun, 3 Sep 2017 20:50:10 +0200 Subject: [PATCH 0/7] [media] SAA71..: Adjustments for four function implementations Three update suggestions were taken into account from static source code analysis.

[PATCH 1/7] [media] saa7164: Delete an error message for a failed memory allocation in saa7164_buffer_alloc()

2017-09-03 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 3 Sep 2017 17:47:41 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/pci/saa7164/saa7164-buffer.c | 4 +--- 1 file changed, 1

Re: [PATCH v2 00/26] Improve DVB documentation and reduce its gap

2017-09-03 Thread Honza Petrouš
> There is still a gap at the CA API, as there are three ioctls that are used > only by a few drivers and whose structs are not properly documented: > CA_GET_MSG, CA_SEND_MSG and CA_SET_DESCR. > > The first two ones seem to be related to a way that a few drivers > provide to send/receive messages.

[PATCH 2/7] [media] saa7164: Improve a size determination in two functions

2017-09-03 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 3 Sep 2017 17:53:05 +0200 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was detect

[PATCH 3/7] [media] Hexium Gemini: Delete an error message for a failed memory allocation in hexium_attach()

2017-09-03 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 3 Sep 2017 19:23:37 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/pci/saa7146/hexium_gemini.c | 5 ++--- 1 file changed, 2

[PATCH 4/7] [media] Hexium Gemini: Improve a size determination in hexium_attach()

2017-09-03 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 3 Sep 2017 19:51:46 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was dete

[PATCH 5/7] [media] Hexium Orion: Delete an error message for a failed memory allocation in hexium_probe()

2017-09-03 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 3 Sep 2017 19:55:25 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/pci/saa7146/hexium_orion.c | 4 +--- 1 file changed, 1 in

[PATCH 6/7] [media] Hexium Orion: Improve a size determination in hexium_probe()

2017-09-03 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 3 Sep 2017 20:00:17 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was dete

n900 in next-20170901

2017-09-03 Thread Pavel Machek
Hi! It compiles ok, but it hangs on boot; black screen, so sometime before display is initialized. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/h

[PATCH 7/7] [media] Hexium Orion: Adjust one function call together with a variable assignment

2017-09-03 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 3 Sep 2017 20:12:36 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code place. Signed-off-by: Markus Elfring --- drivers/media/pci/saa7146/hexium_orion.c |

Re: [PATCH 2/2] Bluetooth: btqcomsmd: BD address setup

2017-09-03 Thread Bjorn Andersson
On Fri 01 Sep 23:12 PDT 2017, Marcel Holtmann wrote: > Hi Rob, > > >>> Bluetooth BD address can be retrieved in the same way as > >>> for wcnss-wlan MAC address. This patch mainly stores the > >>> local-mac-address property and sets the BD address during > >>> hci device setup. > >>> > >>> Signe

Re: [PATCH 27/31] usb/gadget/snps_udc_core: Move timer initialization earlier

2017-09-03 Thread Michal Nazarewicz
On Thu, Aug 31 2017, Kees Cook wrote: > With timer initialization made earlier at the start, there is no reason > to make del_timer_sync() calls conditionally, there by removing the > assignments and tests of the .data field. > > Cc: Felipe Balbi > Cc: Greg Kroah-Hartman > Cc: Raviteja Garimella

Re: linux-next: Signed-off-by missing for commits in the mips tree

2017-09-03 Thread Martin Blumenstingl
Hi Hauke, Hi Ralf, On Sun, Sep 3, 2017 at 6:13 PM, Stephen Rothwell wrote: > Hi all, > > Commits > > bb19a5e5205b MIPS: lantiq: Remove the arch/mips/lantiq/xway/reset.c > implementation > f6a4de1654c9 MIPS: lantiq: Add a GPHY driver which uses the RCU syscon-mfd > 565f7e8292f5 reset: Add a reset

Linux 4.13

2017-09-03 Thread Linus Torvalds
So last week was actually somewhat eventful, but not enough to push me to delay 4.13. Most of the changes since rc7 are actually networking fixes, the bulk of them to various drivers. With apologies to the authors of said patches, they don't look all that interesting (which is definitely exactly w

Re: Linux 4.13

2017-09-03 Thread Linus Torvalds
Oh, and a side note on the merge window for 4.14 that obviously opened as a result of the 4.13 release.. Tomorrow being Labor Day(*) in the US, I'm likely not merging as much as I usually try to do early in the merge window. I'll probably do some early pull requests today, do _some_ stuff tomorrow

[PULL] Documentation for 4.14

2017-09-03 Thread Jonathan Corbet
After a fair amount of churn in the last couple of cycles, docs are taking it easier this time around. Lots of fixes and some new documentation, but nothing all that radical. Perhaps the most interesting change for many is the scripts/sphinx-pre-install tool from Mauro; it will tell you exactly w

Re: [PATCH 05/13] irqchip: add initial support for ompic

2017-09-03 Thread Stafford Horne
On Fri, Sep 01, 2017 at 06:25:01PM +0100, Marc Zyngier wrote: > On 01/09/17 02:24, Stafford Horne wrote: > > On Thu, Aug 31, 2017 at 10:28:01AM +0100, Marc Zyngier wrote: > >> On 30/08/17 22:58, Stafford Horne wrote: > >>> From: Stefan Kristiansson > >>> > >>> IPI driver for OpenRISC Multicore pro

Re: [PATCH V13 1/4] PCI: Don't ignore valid response before CRS timeout

2017-09-03 Thread Yinghai Lu
On Tue, Aug 29, 2017 at 12:53 PM, Bjorn Helgaas wrote: > > Applied this series to pci/enumeration for v4.14. You didn't include a > cover letter, but the series includes: > > [V13 1/4] PCI: Don't ignore valid response before CRS timeout > [V13 2/4] PCI: Factor out pci_bus_wait_crs() > [V13

Re: [PATCH -tip 2/4] arm: Cleanup in_exception_text() and move it in asm/sections.h

2017-09-03 Thread Russell King - ARM Linux
On Thu, Aug 17, 2017 at 04:15:00PM +0900, Masami Hiramatsu wrote: > Cleanup in_exception_text() using memory_contains() and > move it in asm/sections.h from asm/trap.h because > section symbols and memory_contains() are defined in > asm/sections.h. > > Signed-off-by: Masami Hiramatsu > --- > arc

linux-next: build warning after merge of the dma-mapping tree

2017-09-03 Thread Stephen Rothwell
Hi Christoph, After merging the dma-mapping tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: drivers/base/dma-coherent.c: In function '__dma_alloc_from_coherent': drivers/base/dma-coherent.c:160:6: warning: unused variable 'dma_memory_map' [-Wunused-variable] int

[PATCH 02/10] dmaengine: sun6i: Correct burst length field offsets for H3

2017-09-03 Thread Stefan Brüns
For the H3, the burst lengths field offsets in the channel configuration register differs from earlier SoC generations. Using the A31 register macros actually configured the H3 controller do to bursts of length 1 always, which although working leads to higher bus utilisation. Signed-off-by: Stefa

[PATCH 09/10] arm64: allwinner: a64: Add device node for DMA controller

2017-09-03 Thread Stefan Brüns
The A64 SoC has a DMA controller that supports 8 DMA channels to and from various peripherals. The last used DRQ port is 27. Add a device node for it. Signed-off-by: Stefan Brüns --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/a

[PATCH 08/10] dmaengine: sun6i: Add support for Allwinner A64 and compatibles

2017-09-03 Thread Stefan Brüns
The A64 SoC has the same dma engine as the H3 (sun8i), with a reduced amount of physical channels. To allow future reuse of the compatible, leave the channel count etc. in the config data blank and retrieve it from the devicetree. Signed-off-by: Stefan Brüns --- drivers/dma/sun6i-dma.c | 12

[PATCH 07/10] dmaengine: sun6i: Retrieve channel count/max request from devicetree

2017-09-03 Thread Stefan Brüns
To avoid introduction of a new compatible for each small SoC/DMA controller variation, move the definition of the channel count to the devicetree. The number of vchans is no longer explicit, but limited by the highest port/DMA request number. The result is a slight overallocation for SoCs with a s

[PATCH 06/10] arm64: allwinner: a64: Add devicetree binding for DMA controller

2017-09-03 Thread Stefan Brüns
The A64 is register compatible with the H3, but has a different number of dma channels and request ports. Attach additional properties to the node to allow future reuse of the compatible for controllers with different number of channels/requests. If dma-requests is not specified, the register lay

[PATCH 05/10] dmaengine: sun6i: Move number of pchans/vchans/request to device struct

2017-09-03 Thread Stefan Brüns
Preparatory patch: If the same compatible is used for different SoCs which have a common register layout, but different number of channels, the channel count can no longer be stored in the config. Store it in the device structure instead. Signed-off-by: Stefan Brüns --- drivers/dma/sun6i-dma.c |

[PATCH 04/10] dmaengine: sun6i: Enable additional burst lengths/widths on H3

2017-09-03 Thread Stefan Brüns
The H3 supports bursts lengths of 1, 4, 8 and 16 transfers, each with a width of 1, 2, 4 or 8 bytes. The register value for the the width is log2-encoded, change the conversion function to provide the correct value for width == 8. Signed-off-by: Stefan Brüns --- drivers/dma/sun6i-dma.c | 12 +++

[PATCH 00/10] dmaengine: sun6i: Fixes for H3/A83T, enable A64

2017-09-03 Thread Stefan Brüns
Commit 3a03ea763a67 ("dmaengine: sun6i: Add support for Allwinner A83T (sun8i) variant") and commit f008db8c00c1 ("dmaengine: sun6i: Add support for Allwinner H3 (sun8i) variant") added support for the A83T resp. H3, but missed some differences between the original A31 and A83T/H3. The first patch

[PATCH 01/10] dmaengine: sun6i: Correct setting of clock autogating register for A83T/H3

2017-09-03 Thread Stefan Brüns
The H83T uses a compatible string different from the A23, but requires the same clock autogating register setting. The H3 also requires setting the clock autogating register, but has the register at a different offset. Some currently available SoCs not yet supported by the sun6i-dma driver will r

[PATCH 03/10] dmaengine: sun6i: Restructure code to allow extension for new SoCs

2017-09-03 Thread Stefan Brüns
The current code mixes three distinct operations when transforming the slave config to register settings: 1. special handling of DMA_SLAVE_BUSWIDTH_UNDEFINED, maxburst == 0 2. range checking 3. conversion of raw to register values As the range checks depend on the specific SoC, move these o

Re: [PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-03 Thread Rafael J. Wysocki
On Sunday, September 3, 2017 4:31:23 PM CEST Chao Fan wrote: > KASLR should choose the memory region of immovable node to extract kernel. > So get ACPI SRAT table and store the memory region of movable node which > kaslr shold avoid. Please elaborate. This is far too little information on what pr

Re: [PATCH 3/3] dmaengine: sun6i: Add support for Allwinner A64

2017-09-03 Thread André Przywara
On 02/09/17 03:02, Stefan Bruens wrote: > On Samstag, 2. September 2017 00:32:50 CEST André Przywara wrote: >> Hi, >> >> On 01/09/17 02:19, Stefan Bruens wrote: >>> On Freitag, 1. September 2017 02:31:35 CEST Andre Przywara wrote: Hi, On 31/08/17 00:36, Stefan Brüns wrote: > The

Re: [PATCH 01/10] dmaengine: sun6i: Correct setting of clock autogating register for A83T/H3

2017-09-03 Thread André Przywara
On 03/09/17 23:40, Stefan Brüns wrote: > The H83T uses a compatible string different from the A23, but requires A83T > the same clock autogating register setting. > > The H3 also requires setting the clock autogating register, but has > the register at a different offset. > > Some current

Re: [PATCH 0/7] EDAC, mce_amd: Issue decoded MCE through the tracepoint

2017-09-03 Thread mark gross
On Wed, Aug 30, 2017 at 07:30:58PM -0400, Steven Rostedt wrote: > On Wed, 30 Aug 2017 14:47:19 -0700 > mark gross wrote: > > > > > struct dentry *ras_debugfs_dir; > > > > > > static atomic_t trace_count = ATOMIC_INIT(0); > > > @@ -12,7 +14,9 @@ EXPORT_SYMBOL_GPL(ras_userspace_consumers); > >

Re: [PATCH 08/10] dmaengine: sun6i: Add support for Allwinner A64 and compatibles

2017-09-03 Thread André Przywara
Hi, On 03/09/17 23:40, Stefan Brüns wrote: > The A64 SoC has the same dma engine as the H3 (sun8i), with a > reduced amount of physical channels. To allow future reuse of the > compatible, leave the channel count etc. in the config data blank > and retrieve it from the devicetree. > > Signed-off-

Re: [PATCH 07/10] dmaengine: sun6i: Retrieve channel count/max request from devicetree

2017-09-03 Thread André Przywara
Hi, On 03/09/17 23:40, Stefan Brüns wrote: > To avoid introduction of a new compatible for each small SoC/DMA controller > variation, move the definition of the channel count to the devicetree. > > The number of vchans is no longer explicit, but limited by the highest > port/DMA request number. T

linux-next: manual merge of the s390 tree with Linus' tree

2017-09-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the s390 tree got a conflict in: arch/s390/include/asm/mmu_context.h between commit: 0b89ede62963 ("s390/mm: fork vs. 5 level page tabel") from Linus' tree and commit: f1c1174fa099 ("s390/mm: use new mm defines instead of magic values") from the s390

Re: [PATCH 07/10] dmaengine: sun6i: Retrieve channel count/max request from devicetree

2017-09-03 Thread Stefan Bruens
On Montag, 4. September 2017 01:44:54 CEST André Przywara wrote: > Hi, > > On 03/09/17 23:40, Stefan Brüns wrote: > > To avoid introduction of a new compatible for each small SoC/DMA > > controller > > variation, move the definition of the channel count to the devicetree. > > > > The number of vc

Re: [PATCH 08/10] dmaengine: sun6i: Add support for Allwinner A64 and compatibles

2017-09-03 Thread Stefan Bruens
On Montag, 4. September 2017 01:37:58 CEST André Przywara wrote: > > @@ -1090,6 +1101,7 @@ MODULE_DEVICE_TABLE(of, sun6i_dma_match); > > > > static int sun6i_dma_probe(struct platform_device *pdev) > > { > > > > const struct of_device_id *device; > > > > + struct device_node *np = pdev

[GIT PULL] hwmon updates for v4.14

2017-09-03 Thread Guenter Roeck
Hi Linus, Please pull hwmon updates for Linux v4.14 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus-v4.14 Thanks, Guenter -- The following changes since commit aae4e7a8bc44722fe70d58920a36916b1043195e: Linux 4.13-rc4 (2017-08-0

Re: [PATCH 09/13] thermal/drivers/hisi: Remove costly sensor inspection

2017-09-03 Thread Leo Yan
On Sat, Sep 02, 2017 at 03:10:29PM +0200, Daniel Lezcano wrote: [...] > On 02/09/2017 05:29, Leo Yan wrote: > > On Wed, Aug 30, 2017 at 10:47:33AM +0200, Daniel Lezcano wrote: > >> The sensor is all setup, bind, resetted, acked, etc... every single second. > >> > >> That was the way to workaround

Re: [PATCH v2 00/26] Improve DVB documentation and reduce its gap

2017-09-03 Thread Mauro Carvalho Chehab
Em Sun, 3 Sep 2017 22:05:23 +0200 Honza Petrouš escreveu: > 1) #define CA_SET_DESCR _IOW('o', 134, ca_descr_t) > > > CA_SET_DESCR is used for feeding descrambler device > with correct keys (called here "control words") what > allows to get servic

Re: [PATCH 00/15] Improve DVB documentation and reduce its gap

2017-09-03 Thread Soeren Moch
Hi Mauro, On 01.09.2017 11:32, Mauro Carvalho Chehab wrote: > Em Fri, 1 Sep 2017 10:40:28 +0200 > Honza Petrouš escreveu: > >> 2017-09-01 1:46 GMT+02:00 Mauro Carvalho Chehab : >>> The DVB documentation was negligected for a long time, with >>> resulted on several gaps between the API description

Re: [PATCH] mm: kvfree the swap cluster info if the swap file is unsatisfactory

2017-09-03 Thread Huang, Ying
David Rientjes writes: > On Thu, 31 Aug 2017, Darrick J. Wong wrote: > >> If initializing a small swap file fails because the swap file has a >> problem (holes, etc.) then we need to free the cluster info as part of >> cleanup. Unfortunately a previous patch changed the code to use >> kvzalloc b

Re: [PATCH 08/13] thermal/drivers/hisi: Fix configuration register setting

2017-09-03 Thread Leo Yan
On Sat, Sep 02, 2017 at 10:34:34AM +0200, Daniel Lezcano wrote: > On 02/09/2017 04:54, Leo Yan wrote: > > On Wed, Aug 30, 2017 at 10:47:32AM +0200, Daniel Lezcano wrote: > >> The TEMP0_CFG configuration register contains different field to set up the > >> temperature controller. However in the code

[PATCH v4 2/2] arm64: dts: uniphier: add nodes of thermal monitor and thermal zone for LD20

2017-09-03 Thread Kunihiko Hayashi
Add nodes of thermal monitor and thermal zone for UniPhier LD20 SoC. The thermal monitor is included in sysctrl. Furthermore, since the reference board doesn't have a calibrated value of thermal monitor, this patch gives the default value for LD20 reference board. Signed-off-by: Kunihiko Hayashi

[PATCH v4 0/2] add thermal nodes for UniPhier SoCs

2017-09-03 Thread Kunihiko Hayashi
This series adds thermal nodes for UniPhier PXs2 and LD20 SoCs. Changes since v3: - rebase on top of linux-next Changes since v2: - add the calibration value to device tree for LD20 reference board Changes since v1: - separate from driver's patchset[1] - add cooling-maps nodes on the device tree

[PATCH v4 1/2] ARM: dts: uniphier: add nodes of thermal monitor and thermal zone for PXs2

2017-09-03 Thread Kunihiko Hayashi
Add nodes of thermal monitor and thermal zone for UniPhier PXs2 SoC. The thermal monitor is included in sysctrl. Furthermore, add cpuN labels for reference in cooling-device property. Signed-off-by: Kunihiko Hayashi --- arch/arm/boot/dts/uniphier-pxs2.dtsi | 43 --

Re: [PATCH v2 00/26] Improve DVB documentation and reduce its gap

2017-09-03 Thread Mauro Carvalho Chehab
Em Sun, 3 Sep 2017 22:05:23 +0200 Honza Petrouš escreveu: > > There is still a gap at the CA API, as there are three ioctls that are used > > only by a few drivers and whose structs are not properly documented: > > CA_GET_MSG, CA_SEND_MSG and CA_SET_DESCR. > > > > The first two ones seem to be re

Re: [PATCH] f2fs: clear get_ssr_cost

2017-09-03 Thread Chao Yu
On 2017/9/1 20:14, Yunlong Song wrote: > se->ckpt_valid_blocks is always larger than se->valid_blocks, so > get_ssr_cost can be cleared. I think this is not correct. Thanks, > > Signed-off-by: Yunlong Song > --- > fs/f2fs/gc.c | 11 +-- > 1 file changed, 1 insertion(+), 10 deletions(-

Re: [f2fs-dev] [PATCH 1/2] f2fs: don't need to update inode checksum for recovery

2017-09-03 Thread Chao Yu
On 2017/9/2 1:25, Jaegeuk Kim wrote: > This patch fixes "f2fs: support inode checksum". > The recovered inode page will be rewritten with valid checksum. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu > --- > fs/f2fs/node.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/f2

Re: [PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-09-03 Thread Byungchul Park
On Fri, Sep 01, 2017 at 06:38:52PM +0200, Peter Zijlstra wrote: > On Fri, Sep 01, 2017 at 10:51:48PM +0900, Byungchul Park wrote: > > On Fri, Sep 1, 2017 at 9:38 PM, Peter Zijlstra wrote: > > > On Fri, Sep 01, 2017 at 07:16:29PM +0900, Byungchul Park wrote: > > > > > >> It would be gone _only_ at

Re: [f2fs-dev] [PATCH 2/2] f2fs: don't check inode's checksum if it was dirtied or writebacked

2017-09-03 Thread Chao Yu
On 2017/9/2 1:25, Jaegeuk Kim wrote: > If another thread already made the page dirtied or writebacked, we must avoid > to verify checksum. If we got an error, we need to remove its uptodate as > well. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu > --- > fs/f2fs/inode.c | 3 ++- > fs/f

Re: Re: [PATCH] mm/vmstats: add counters for the page frag cache

2017-09-03 Thread Kyeongdon Kim
Thanks for your reply, But I couldn't find "NR_FRAGMENT_PAGES" in linux-next.git .. is that vmstat counter? or others? As you know, page_frag_alloc() directly calls __alloc_pages_nodemask() function, so that makes too difficult to see memory usage in real time even though we have "/meminfo or

Re: Re: [PATCH] mm/vmstats: add counters for the page frag cache

2017-09-03 Thread Kyeongdon Kim
Thanks for your reply, We already used other i/f like page_owner and kmemleak to resolve memory leakage issue. But, page_owner can only for guess but cannot find intuitively memory usage regarding page_frag_cache. And kmemleak cannot use (because of calling directly __alloc_pages_nodemask()).

Re: [PATCH 1/1] docs-rst: media: Don't use \small for V4L2_PIX_FMT_SRGGB10 documentation

2017-09-03 Thread Mauro Carvalho Chehab
Em Sun, 3 Sep 2017 23:12:33 +0300 Sakari Ailus escreveu: > There appears to be an issue in using \small in certain cases on Sphinx > 1.4 and 1.5. Other format documents don't use \small either, remove it > from here as well. > > Signed-off-by: Sakari Ailus > --- > Hi Mauro, > > What would you

Re: [PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-03 Thread Chao Fan
On Mon, Sep 04, 2017 at 12:55:00AM +0200, Rafael J. Wysocki wrote: >On Sunday, September 3, 2017 4:31:23 PM CEST Chao Fan wrote: >> KASLR should choose the memory region of immovable node to extract kernel. >> So get ACPI SRAT table and store the memory region of movable node which >> kaslr shold a

Re: [PATCH] f2fs: clear get_ssr_cost

2017-09-03 Thread Yunlong Song
The update_sit_entry provides this: ... 1658 if (!f2fs_test_bit(offset, se->ckpt_valid_map)) 1659 se->ckpt_valid_blocks += del; ... As a result, the ckpt_valid_blocks is always larger than valid_blocks. If not correct, can you provide the case valid_blocks larger than ckpt_valid_bloc

Re: [PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-09-03 Thread Byungchul Park
On Mon, Sep 04, 2017 at 10:30:32AM +0900, Byungchul Park wrote: > On Fri, Sep 01, 2017 at 06:38:52PM +0200, Peter Zijlstra wrote: > > On Fri, Sep 01, 2017 at 10:51:48PM +0900, Byungchul Park wrote: > > > On Fri, Sep 1, 2017 at 9:38 PM, Peter Zijlstra > > > wrote: > > > > On Fri, Sep 01, 2017 at 0

Re: [PATCH v4 0/2] add thermal nodes for UniPhier SoCs

2017-09-03 Thread Masahiro Yamada
Hi. 2017-09-04 10:16 GMT+09:00 Kunihiko Hayashi : > This series adds thermal nodes for UniPhier PXs2 and LD20 SoCs. > > Changes since v3: > - rebase on top of linux-next This repost is a spam. I left some comments in v3, but no response from you nothing was reflected in v4. > Changes sinc

Re: [PATCH] iio staging: tsl2x7x: clean up limit checks

2017-09-03 Thread Brian Masney
On Sun, Sep 03, 2017 at 12:35:05PM +0100, Jonathan Cameron wrote: > On Mon, 21 Aug 2017 13:11:03 +0300 > Dan Carpenter wrote: > > > The second part of this patch is probably the most interesting. We > > use "TSL2X7X_MAX_LUX_TABLE_SIZE * 3" as the limit instead of just > > "TSL2X7X_MAX_LUX_TABLE_

Re: [PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-03 Thread Baoquan He
On 09/04/17 at 12:55am, Rafael J. Wysocki wrote: > On Sunday, September 3, 2017 4:31:23 PM CEST Chao Fan wrote: > > KASLR should choose the memory region of immovable node to extract kernel. > > So get ACPI SRAT table and store the memory region of movable node which > > kaslr shold avoid. > > Ple

linux-next: build warning after merge of the sound-asoc tree

2017-09-03 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: sound/soc/codecs/cs43130.c: In function 'cs43130_imp_meas': sound/soc/codecs/cs43130.c:2089:18: warning: 'hpload_seq' may be used uninitialized in this function [-Wmaybe-uninitialized

<    1   2   3   >