Re: [RFC] mm: change find_vma() function

2015-12-14 Thread Kirill A. Shutemov
On Mon, Dec 14, 2015 at 07:02:25PM +0800, yalin wang wrote: > change find_vma() to break ealier when found the adderss > is not in any vma, don't need loop to search all vma. > > Signed-off-by: yalin wang > --- > mm/mmap.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/mm/mmap.c

Re: !PageLocked from shmem charge path hits VM_BUG_ON with 4.4-rc4

2015-12-14 Thread Michal Hocko
On Mon 14-12-15 12:03:20, Michal Hocko wrote: > JFYI: Andrey Ryabinin has noticed that this might be related to > http://lkml.kernel.org/r/capasagzroqaabhota_o-mzocnikjptwjlfekqj3n5mbbm0t...@mail.gmail.com > > and indeed if somebody with pending signals would do wait_on_page_locked > then it

Re: [PATCH V9 2/5] dma: add Qualcomm Technologies HIDMA management driver

2015-12-14 Thread Mark Rutland
> +Required properties: > +- compatible: "qcom,hidma-mgmt-1.0"; > +- reg: Address range for DMA device > >>> > >>> Does this cover just the management registers, or those for channels as > >>> well? > >> > >> just management. > >> > >>> > +- dma-channels: Number of channels

Re: isolate_lru_page on !head pages

2015-12-14 Thread Kirill A. Shutemov
On Wed, Dec 09, 2015 at 02:02:05PM +0100, Michal Hocko wrote: > Hi Kirill, [ sorry for late reply, just back from vacation. ] > while looking at the issue reported by Minchan [1] I have noticed that > there is nothing to prevent from "isolating" a tail page from LRU because > isolate_lru_page

RE: [PATCH] doc: mei: fix handling return value of mei_recv_msg

2015-12-14 Thread Winkler, Tomas
> The function can return negative values, so its result should > be assigned to signed variable. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2046107 > >

Re: [PATCH 5/7] staging: lustre: Less checks in mgc_process_recover_log() after error detection

2015-12-14 Thread SF Markus Elfring
>> A few checks would be performed by the mgc_process_recover_log() function >> even if it is known already that the passed variable "pages" contained >> a null pointer. >> >> * Let us return directly if a call of the kcalloc() function failed. >> >> * Move assignments for the variables "eof" and

Re: [PATCH] i2c: allow building emev2 without slave mode again

2015-12-14 Thread Arnd Bergmann
On Sunday 13 December 2015 10:09:59 Wolfram Sang wrote: > > What about not ifdeffing the inline function and keep the build error > whenever someone uses it without I2C_SLAVE being selected? The inline function is only added there for the case that I2C_SLAVE is disabled, so that would be

Re: [RFC 3/3] irq: Privatize irq_common_data::state_use_accessors

2015-12-14 Thread Boqun Feng
On Mon, Dec 14, 2015 at 11:03:03AM +0100, Thomas Gleixner wrote: > On Mon, 14 Dec 2015, Peter Zijlstra wrote: > > On Sat, Dec 12, 2015 at 10:56:02AM +0800, Boqun Feng wrote: > > > According to Peter Zijlstra, irq_common_data::state_use_accessors is not > > > designed for public use. Therefore make

[PATCH v2] tools lib bpf: Support libbpf on PowerPC

2015-12-14 Thread Wang Nan
Support basic PowerPC compiling. Checks BPF syscall number, turn off libbpf building on platform doesn't support sys_bpf instead of blocking compiling. Reported-by: Naveen N. Rao Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: Jiri Olsa Cc: Sukadev

Re: [PATCH] sched/fair: fix mul overflow on 32-bit systems

2015-12-14 Thread Peter Zijlstra
On Mon, Dec 14, 2015 at 06:42:24AM +0800, Yuyang Du wrote: > > In most cases 'r' shouldn't exceed 1024 and util_sum not significantly > > exceed 1024*47742, but in extreme cases like spawning lots of new tasks > > it may potentially overflow 32 bit. Newly created tasks contribute > > 1024*47742

Re: [PATCH] perf: bpf: Fix build breakage due to libbpf

2015-12-14 Thread Wangnan (F)
Hi Naveen, On 2015/12/14 18:50, Naveen N. Rao wrote: perf build is currently (v4.4-rc5) broken on powerpc: bpf.c:28:4: error: #error __NR_bpf not defined. libbpf does not support your arch. # error __NR_bpf not defined. libbpf does not support your arch. ^ Fix this by including

Re: [PATCH v2] sound: codecs: pcm1792a: clean function exit

2015-12-14 Thread Raphaël Poggi
ping ? 2015-11-25 9:18 GMT+01:00 Michael Trimarchi : > Hi > > On Wed, Nov 25, 2015 at 9:10 AM, Raphael Poggi wrote: >> Signed-off-by: Raphael Poggi >> --- >> sound/soc/codecs/pcm1792a.c | 15 +++ >> 1 file changed, 3 insertions(+), 12 deletions(-) >> >> diff --git

Re: [PATCH v4] acpi, apei, arm64: APEI initial support for aarch64.

2015-12-14 Thread Will Deacon
On Mon, Dec 14, 2015 at 12:20:04PM +0100, Borislav Petkov wrote: > On Thu, Dec 10, 2015 at 11:01:35AM +, Will Deacon wrote: > > [adding Boris, as he might know how this works] > > Gee, thanks Will, now you're making me look at this too :-) Hey, I was having way too much fun by myself, so

Re: [PATCH 01/38] arm-cci: fix handling cpumask_any_but return value

2015-12-14 Thread Suzuki K. Poulose
On 14/12/15 10:20, Andrzej Hajda wrote: Hi, Ping - almost three months passed. Andrzej, The cci patches normally go via the arm-soc tree (which is not quit obvious). Unfortunately, your post didn't have the maintainers alias - a...@vger.kernel.org - added (except for Arnd). Arnd, What do

Re: [PATCH] lightnvm: fix incorrect nr_free_blocks stat

2015-12-14 Thread Matias Bjørling
On 12/14/2015 11:23 AM, Chao Yu wrote: When initing bad block list in gennvm_block_bb, once we move bad block from free_list to bb_list, we should maintain both stat info nr_free_blocks and nr_bad_blocks. So this patch fixes to add missing operation related to nr_free_blocks. Signed-off-by:

Re: [PATCH 2/2] null_blk: Do a cleanup for function null_add_dev

2015-12-14 Thread Minfei Huang
Ping, Jens. Could you have any idea about this cleanup patch? Thanks Minfei On 11/27/15 at 09:26pm, Minfei Huang wrote: > If null block is a lightnvm device, it wouldn't need to allocate the > variant disk. So it is fine to separate the code for lightnvm and normal > device to use if/else. > >

Re: [PATCH v3 3/5] soc: rockchip: add reboot notifier driver

2015-12-14 Thread Arnd Bergmann
On Wednesday 18 November 2015 17:56:22 Andy Yan wrote: > rockchip platform have a protocol to pass the kernel reboot > mode to bootloader by some special registers when system reboot. > By this way the bootloader can take different action according > to the different kernel reboot mode, for

Re: [PATCH 1/7] iscsi-target: Use a variable initialisation in iscsi_set_default_param() directly

2015-12-14 Thread SF Markus Elfring
> @@ -127,9 +127,8 @@ static struct iscsi_param *iscsi_set_default_param(struct > iscsi_param_list *para > char *name, char *value, u8 phase, u8 scope, u8 sender, > u16 type_range, u8 use) > { > - struct iscsi_param *param = NULL; > + struct iscsi_param

Re: [PATCH v2 4/8] dt-bindings: Add a binding for Mediatek Video Encoder

2015-12-14 Thread Matthias Brugger
On 14/12/15 09:26, tiffany lin wrote: On Fri, 2015-12-11 at 11:29 -0600, Rob Herring wrote: On Fri, Dec 11, 2015 at 05:55:39PM +0800, Tiffany Lin wrote: Add a DT binding documentation of Video Encoder for the MT8173 SoC from Mediatek. Signed-off-by: Tiffany Lin A question and minor issue

[PATCH] tools lib bpf: Support libbpf on PowerPC

2015-12-14 Thread Wang Nan
Support basic PowerPC compiling. Checks BPF syscall number, turn off libbpf building on platform doesn't support sys_bpf instead of blocking compiling. Reported-by: Naveen N. Rao Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: Jiri Olsa Cc: Sukadev

Re: [PATCH V02 0/5] dmaengine: New 'universal' API for requesting channel

2015-12-14 Thread Arnd Bergmann
On Monday 14 December 2015 13:22:15 Peter Ujfalusi wrote: > > Changes since v1: > - Added Reviewed-by from Andy for patch 1-2, I decided to not add the > reviewed-by > to patch 3 due to the changes since v1 > - patch for omap-dma to support passing the filter setup to the core > -

Re: [PATCH 05/10] fs: make locks.c explicitly non-modular

2015-12-14 Thread Jeff Layton
On Sat, 12 Dec 2015 16:30:07 -0500 Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > config FILE_LOCKING > bool "Enable POSIX file locking API" if EXPERT > > ...meaning that it currently is not being built as a module by anyone. > > Lets remove

[PATCH V02 1/5] dmaengine: core: Skip mask matching when it is not provided to private_candidate

2015-12-14 Thread Peter Ujfalusi
If mask is NULL skip the mask matching against the DMA device capabilities. Signed-off-by: Peter Ujfalusi Reviewed-by: Andy Shevchenko --- drivers/dma/dmaengine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index

[PATCH V02 0/5] dmaengine: New 'universal' API for requesting channel

2015-12-14 Thread Peter Ujfalusi
Hi, Changes since v1: - Added Reviewed-by from Andy for patch 1-2, I decided to not add the reviewed-by to patch 3 due to the changes since v1 - patch for omap-dma to support passing the filter setup to the core - dma_request_slave_channel_reason() remeved and it is now defines as

[PATCH V02 3/5] dmaengine: core: Introduce new, universal API to request a channel

2015-12-14 Thread Peter Ujfalusi
The two API function can cover most, if not all current APIs used to request a channel. With minimal effort dmaengine drivers, platforms and dmaengine user drivers can be converted to use the two function. struct dma_chan *dma_request_chan_by_mask(const dma_cap_mask_t *mask); To request any

[PATCH V02 5/5] dmaengine: omap-dma: Add support for DMA filter mapping to slave devices

2015-12-14 Thread Peter Ujfalusi
Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API. Signed-off-by: Peter Ujfalusi --- drivers/dma/omap-dma.c | 4 include/linux/omap-dma.h | 6 ++ 2 files changed, 10 insertions(+) diff --git a/drivers/dma/omap-dma.c

[PATCH V02 4/5] dmaengine: edma: Add support for DMA filter mapping to slave devices

2015-12-14 Thread Peter Ujfalusi
Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 4 include/linux/platform_data/edma.h | 7 +++ 2 files changed, 11 insertions(+) diff --git

[PATCH V02 2/5] dmaengine: core: Move and merge the code paths using private_candidate

2015-12-14 Thread Peter Ujfalusi
Channel matching with private_candidate() is used in two paths, the error checking is slightly different in them and they are duplicating code also. Move the code under find_candidate() to provide consistent execution and going to allow us to reuse this mode of channel lookup later.

Re: [PATCH v4] acpi, apei, arm64: APEI initial support for aarch64.

2015-12-14 Thread Borislav Petkov
On Thu, Dec 10, 2015 at 11:01:35AM +, Will Deacon wrote: > [adding Boris, as he might know how this works] Gee, thanks Will, now you're making me look at this too :-) > It's not about flushing one page, flush_tlb_kernel_range (which is called > by unmap_kernel_range) already takes care of

Re: [PATCH v6 3/4] arm64: mm: support ARCH_MMAP_RND_BITS.

2015-12-14 Thread Will Deacon
Hi Daniel, On Fri, Dec 11, 2015 at 09:52:17AM -0800, Daniel Cashman wrote: > From: dcashman > > arm64: arch_mmap_rnd() uses STACK_RND_MASK to generate the > random offset for the mmap base address. This value represents a > compromise between increased ASLR effectiveness and avoiding >

[PATCH] extcon: max77693: fix handling return value of regmap_irq_get_virq

2015-12-14 Thread Andrzej Hajda
The function can return negative values, so its result should be assigned to signed variable. Signed-off-by: Andrzej Hajda Suggested-by: Krzysztof Kozlowski --- drivers/extcon/extcon-max77693.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] mm: mempool: Factor out mempool_refill()

2015-12-14 Thread Wang, Zhi A
This patch factors out mempool_refill() from mempool_resize(). It's reasonable that the mempool user wants to refill the pool immdiately when it has chance e.g. inside a sleepible context, so that next time in the IRQ context the pool would have much more available elements to allocate. After the

Re: [PATCH 10/10] fs: make quota/dquot.c explicitly non-modular

2015-12-14 Thread Jan Kara
On Sat 12-12-15 16:30:12, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > config QUOTA > bool "Quota support" > > ...meaning that it currently is not being built as a module by anyone. > > Lets remove the couple traces of modularity so that

Re: [PATCH 02/10] fs: make quota/netlink.c explicitly non-modular

2015-12-14 Thread Jan Kara
On Sat 12-12-15 16:30:04, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > config QUOTA_NETLINK_INTERFACE > bool "Report quota messages through netlink interface" > > ...meaning that it currently is not being built as a module by anyone. > >

[RFC] mm: change find_vma() function

2015-12-14 Thread yalin wang
change find_vma() to break ealier when found the adderss is not in any vma, don't need loop to search all vma. Signed-off-by: yalin wang --- mm/mmap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/mmap.c b/mm/mmap.c index b513f20..8294c9b 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@

Re: !PageLocked from shmem charge path hits VM_BUG_ON with 4.4-rc4

2015-12-14 Thread Michal Hocko
JFYI: Andrey Ryabinin has noticed that this might be related to http://lkml.kernel.org/r/capasagzroqaabhota_o-mzocnikjptwjlfekqj3n5mbbm0t...@mail.gmail.com and indeed if somebody with pending signals would do wait_on_page_locked then it could race AFAIU. So far I am not able to reproduce the

Re: [PATCH] clk: exynos: use irqsave version of spin_lock to avoid deadlock with irqs

2015-12-14 Thread Tomasz Figa
Hi Marek, 2015-12-11 23:38 GMT+09:00 Marek Szyprowski : > It is allowed to enable/disable clocks from interrupts, so common Exynos > ARM clock management code for CPUfreq should use 'irqsave' version of > spin_lock calls to avoid potential deadlock caused by spin_lock recursion. > The same

[PATCH] iio: ina2xx: add ABI documentation entry sysfs-bus-iio-ina2xx-adc

2015-12-14 Thread Marc Titinger
Documentation for attributes: * in_allow_async_readout * in_shunt_resistor Signed-off-by: Marc Titinger --- Documentation/ABI/testing/sysfs-bus-iio-ina2xx-adc | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-ina2xx-adc

Re: [PATCH 5/7] staging: lustre: Less checks in mgc_process_recover_log() after error detection

2015-12-14 Thread Dan Carpenter
On Sun, Dec 13, 2015 at 02:57:38PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 13 Dec 2015 12:21:17 +0100 > > A few checks would be performed by the mgc_process_recover_log() function > even if it is known already that the passed variable "pages" contained > a null

Re: [PATCH v3] spi: dts: sun4i: Add support for hardware-based wait time between words

2015-12-14 Thread Mark Brown
On Mon, Dec 14, 2015 at 12:23:29AM +0100, Marcus Weseloh wrote: > Should I resend the patch? No, it's OK. signature.asc Description: PGP signature

[PATCH] perf: bpf: Fix build breakage due to libbpf

2015-12-14 Thread Naveen N. Rao
perf build is currently (v4.4-rc5) broken on powerpc: bpf.c:28:4: error: #error __NR_bpf not defined. libbpf does not support your arch. # error __NR_bpf not defined. libbpf does not support your arch. ^ Fix this by including tools/perf/config/Makefile.arch for the proper $ARCH macro.

Re: [PATCH v4] acpi, apei, arm64: APEI initial support for aarch64.

2015-12-14 Thread Borislav Petkov
On Tue, Dec 08, 2015 at 03:03:03PM +0800, fu@linaro.org wrote: > From: Tomasz Nowicki > > This commit provides APEI arch-specific bits for aarch64 > > Meanwhile, add a new subfunction "hest_ia_init" for > "acpi_disable_cmcff" which is used by IA-32 Architecture > Corrected Machine Check

Re: [PATCH] Fix misleading indentation issues in perf

2015-12-14 Thread Matt Fleming
On Sat, 12 Dec, at 07:07:02PM, Markus Trippelsdorf wrote: > perf doesn't build with gcc-6 because of several misleading-indentation > warnings, e.g.: > > arch/x86/tests/intel-cqm.c: In function ‘spawn’: > arch/x86/tests/intel-cqm.c:21:3: error: statement is indented as if it were > guarded by...

[PATCH v5 04/14] perf tools: Add API to config maps in bpf object

2015-12-14 Thread Wang Nan
bpf__config_obj() is introduced as a core API to config BPF object after loading. One configuration option of maps is introduced. After this patch BPF object can accept configuration like: maps:my_map.value=1234 (maps.my_map.value looks pretty. However, there's a small but hard to fixed problem

[PATCH v5 05/14] perf tools: Enable BPF object configure syntax

2015-12-14 Thread Wang Nan
This patch adds the final step for BPF map configuration. A new syntax is appended into parser so user can config BPF objects through '/' '/' enclosed config terms. After this patch, following syntax is available: # perf record -e ./test_bpf_map_1.c/maps:channel.value=10/ ... It would takes

[PATCH v5 03/14] perf test: Check environment before start real BPF test

2015-12-14 Thread Wang Nan
Copying perf to old kernel system results: # perf test bpf 37: Test BPF filter : 37.1: Test basic BPF filtering : FAILED! 37.2: Test BPF prologue generation : Skip However, in case when kernel

[PATCH v5 06/14] perf record: Apply config to BPF objects before recording

2015-12-14 Thread Wang Nan
bpf__apply_obj_config() is introduced as the core API to apply object config options to all BPF objects. This patch also does the real work for setting values for BPF_MAP_TYPE_PERF_ARRAY maps by inserting value stored in map's private field into the BPF map. This patch is required because we are

[PATCH v5 00/14] perf tools: BPF related update and other improvements

2015-12-14 Thread Wang Nan
Hi Arnaldo, Based on your suggestion here is v5. In this patchset: - Change patch order so patch 8/14 (event alias) won't confuse you. - Examples in commit messages are updated to use . - Update warning/error messages in 13/14. - 'perf test bpf' won't report 'FAILED!' on old

[PATCH v5 01/14] perf tests: Fix incorrect free and false TEST_OK result

2015-12-14 Thread Wang Nan
Commit cc1121ab9687d660cc02f50b1a4974112f87a8e6 ('perf machine: Fix machine.vmlinux_maps to make sure to clear the old one') reveals a bug in 'perf test' that in all test cases which use setup_fake_machine() incorrectly call free() when failure, because all users of setup_fake_machine() use static

[PATCH v5 09/14] perf tools: Support setting different slots in a BPF map separately

2015-12-14 Thread Wang Nan
This patch introduces basic facilities to support config different slots in a BPF map one by one. array.nr_ranges and array.ranges are introduced into 'struct parse_events_term', where ranges is an array of indices range (start, length) which will be configured by this config term. nr_ranges is

[PATCH v5 10/14] perf tools: Enable indices setting syntax for BPF maps

2015-12-14 Thread Wang Nan
This patch introduce a new syntax to perf event parser: # perf record -e './test_bpf_map_3.c/maps:channel.value[0,1,2,3...5]=101/' usleep 2 By utilizing the basic facilities in bpf-loader.c which allow setting different slots in a BPF map separately, the newly introduced syntax allows perf to

[PATCH v5 14/14] perf record: Support custom vmlinux path

2015-12-14 Thread Wang Nan
From: He Kuang Make perf-record command support --vmlinux option if BPF_PROLOGUE is on. 'perf record' needs vmlinux as the source of DWARF info to generate prologue for BPF programs, so path of vmlinux should be specified. Short name 'k' has been taken by 'clockid'. This patch skips the short

[PATCH v5 13/14] perf tools: Always give options even it not compiled

2015-12-14 Thread Wang Nan
This patch keeps options of perf builtins same in all conditions. If one option is disabled because of compiling options, users should be notified. Masami suggested another implementation in [1] that, by adding a OPTION_NEXT_DEPENDS option before those options in the 'struct option' array,

[PATCH v5 11/14] perf tools: Introduce bpf-output event

2015-12-14 Thread Wang Nan
Commit a43eec304259a6c637f4014a6d4767159b6a3aa3 (bpf: introduce bpf_perf_event_output() helper) add a helper to enable BPF program output data to perf ring buffer through a new type of perf event PERF_COUNT_SW_BPF_OUTPUT. This patch enable perf to create perf event of that type. Now perf user can

RE: [RESEND RFC PATCH 0/2] Expose the PIO_ISR register on SAMA5D3

2015-12-14 Thread Peter Rosin
Jonathan Cameron [mailto:ji...@kernel.org] wrote: > On 11/12/15 12:53, Linus Walleij wrote: > > Quoting extensively since I'm involving the linux-iio mailinglist. > > > > The use case you describe is hand-in-glove with Industrial I/O. > > I think you want a trigger interface from IIO and read

[PATCH v5 08/14] perf tools: Support perf event alias name

2015-12-14 Thread Wang Nan
From: He Kuang This patch is useful when trying to pass a perf event to BPF map. Before this patch we are unable to pass an event with config term to BPF maps. For example: # perf record -a -e cycles/no-inherit,period=0x7fff/ \ -e

[PATCH v5 07/14] perf tools: Enable passing event to BPF object

2015-12-14 Thread Wang Nan
A new syntax is appended into parser so user can pass predefined perf events into BPF objects. After this patch, BPF programs for perf are finally able to utilize bpf_perf_event_read() introduced in commit 35578d7984003097af2b1e3 (bpf: Implement function bpf_perf_event_read() that get the

[PATCH v5 02/14] perf tools: Prevent calling machine__delete() on non-allocated machine

2015-12-14 Thread Wang Nan
To prevent futher commits calling machine__delete() on non-allocated 'struct machine' (which would cause memory corruption), this patch enforces machine__init(), record whether a machine structure is dynamically allocated or not, and warn if machine__delete() is called on incorrect object.

[PATCH v5 12/14] perf data: Support converting data from bpf_perf_event_output()

2015-12-14 Thread Wang Nan
bpf_perf_event_output() outputs data through sample->raw_data. This patch adds support to convert those data into CTF. A python script then can be used to process output data from BPF programs. Test result: # cat ./test_bpf_output_2.c / BEGIN **/

Re: [PATCH v12] Add Mediatek thermal support

2015-12-14 Thread Sascha Hauer
Eduardo, Ok, to apply this? There seem to be no further comments. Sascha On Mon, Nov 30, 2015 at 12:42:30PM +0100, Sascha Hauer wrote: > This series adds support for the thermal sensors included in the > MT8173 SoC. Currently only basic temperature reading is supported > without any interrupt

Information leak in pptp_bind

2015-12-14 Thread Dmitry Vyukov
Hello, The following program leak various uninit garbage including kernel addresses and whatever is on kernel stack, in particular defeating ASLR. The issue is in pptp_bind which does not verify sockaddr_len #include #include #include #include #include #include #include #include #include

[PATCH 3/3] extcon: arizona: Add DT binding examples

2015-12-14 Thread Charles Keepax
Add an example for all elements of the Arizona extcon device tree binding. Signed-off-by: Charles Keepax --- .../devicetree/bindings/extcon/extcon-arizona.txt | 26 ++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/extcon/extcon-arizona.txt

[PATCH v2 1/3] extcon: arizona: Add device bindings for the micd configurations

2015-12-14 Thread Charles Keepax
Add device bindings to support configuring the jack detection configurations. Each configuration needs to specify the connection of the mic det pins, which micbias should be used and the value of the micd polarity GPIO required to activate that configuration. Signed-off-by: Charles Keepax

[PATCH v2 2/3] extcon: arizona: Update device tree binding for mic detect configurations

2015-12-14 Thread Charles Keepax
Update the device tree binding documentation to include documentation for the wlf,micd-configs property that is used to specify the configurations for headset polarity detection (CTIA / OTMP). Signed-off-by: Charles Keepax Acked-by: Rob Herring --- No changes since v1. Thanks, Charles

Re: [PATCH v3 06/17] perf build: Rename LIB_PATH -> API_PATH

2015-12-14 Thread Jiri Olsa
On Sun, Dec 13, 2015 at 10:18:06PM -0600, Josh Poimboeuf wrote: > 'LIB_PATH' is a misnomer because there are multiple library paths. > > Signed-off-by: Josh Poimboeuf Acked-by: Jiri Olsa thanks, jirka > --- > tools/perf/Makefile.perf | 8 > 1 file changed, 4 insertions(+), 4

Re: [PATCH 11/19] clocksource: fix __ftm_clk_init result

2015-12-14 Thread Andrzej Hajda
Hi, Ping. Regards Andrzej On 09/24/2015 04:00 PM, Andrzej Hajda wrote: > The function tries to return clock frequency (unsigned long) or error > (int < 0). Using int as a result could be dangerous. On the other side > caller is not interested in error value, so the best solution is to > return

RE: [PATCH V2] input: da9063: report KEY_POWER instead of KEY_SLEEP during power key-press

2015-12-14 Thread Opensource [Steve Twiss]
Regarding: > To: Dmitry Torokhov; LINUX-INPUT; LINUXKERNEL > Subject: [PATCH V2] input: da9063: report KEY_POWER instead of KEY_SLEEP > during power key-press Hi Dmitry, Thanks for your Signed-off-by and merge. Regards, Steve repo linux-next tag next-201512

Re: [PATCH] comedi/comedi.h: cleanup coding style

2015-12-14 Thread kbuild test robot
Hi George, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.4-rc5 next-20151214] url: https://github.com/0day-ci/linux/commits/George-Kobiashvili/comedi-comedi-h-cleanup-coding-style/20151214-175007 config: i386-randconfig-s0-201550 (attached as .config

Re: [PATCH 07/25] serial: sh-sci: Convert from clk_get() to devm_clk_get()

2015-12-14 Thread Geert Uytterhoeven
Hi Laurent, On Sun, Dec 13, 2015 at 8:39 PM, Laurent Pinchart wrote: > On Thursday 10 December 2015 13:30:18 Geert Uytterhoeven wrote: >> On Thu, Nov 19, 2015 at 9:38 PM, Laurent Pinchart wrote: >> > On Thursday 19 November 2015 19:38:46 Geert Uytterhoeven wrote: >> >> Transfer clock cleanup

Re: [PATCH v3 10/17] perf: Provide subcmd configuration at runtime

2015-12-14 Thread Jiri Olsa
On Sun, Dec 13, 2015 at 10:18:10PM -0600, Josh Poimboeuf wrote: SNIP > > typedef int (*config_fn_t)(const char *, const char *, void *); > extern int perf_default_config(const char *, const char *, void *); > diff --git a/tools/perf/util/exec_cmd.c b/tools/perf/util/exec_cmd.c > index

Re: [PATCH v3 15/17] perf: Finalize subcmd independence

2015-12-14 Thread Jiri Olsa
On Sun, Dec 13, 2015 at 10:18:15PM -0600, Josh Poimboeuf wrote: > For the files that will be moved to the subcmd library, remove all their > perf-specific includes and duplicate any needed functionality. > > Signed-off-by: Josh Poimboeuf > --- > tools/perf/util/exec_cmd.c | 75 >

Re: [PATCH v2 14/38] clk: vt8500: fix sign of possible PLL values

2015-12-14 Thread Andrzej Hajda
Hi, Ping. Regards Andrzej On 10/02/2015 06:49 AM, Andrzej Hajda wrote: > With unsigned values underflow in loops can occur resulting in > theoretically infinite loops. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci

Re: [PATCH] extcon: max14577: fix handling return value of regmap_irq_get_virq

2015-12-14 Thread Krzysztof Kozlowski
2015-12-14 19:06 GMT+09:00 Andrzej Hajda : > The function can return negative values, so its result should > be assigned to signed variable. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. > > [1]:

Re: [RFC PATCH 2/2] block: virtio-blk: support multi virt queues per virtio-blk device

2015-12-14 Thread Paolo Bonzini
On 18/06/2014 06:04, Ming Lei wrote: > For virtio-blk, I don't think it is always better to take more queues, and > we need to leverage below things in host side: > > - host storage top performance, generally it reaches that with more > than 1 jobs with libaio(suppose it is N, so basically we

Re: [PATCH] extcon: max77843: fix handling return value of regmap_irq_get_virq

2015-12-14 Thread Krzysztof Kozlowski
2015-12-14 19:06 GMT+09:00 Andrzej Hajda : > The function can return negative values, so its result should > be assigned to signed variable. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. > > [1]:

Re: [PATCH v3 0/5] Add reboot notifier driver for rockchip platform

2015-12-14 Thread Andy Yan
Hi John: On 2015年12月12日 05:29, Heiko Stübner wrote: Am Mittwoch, 18. November 2015, 17:47:24 schrieb Andy Yan: rockchip platform have a protocol to pass the kernel reboot mode to bootloader by some special registers when system reboot. By this way the bootloader can take different action

Re: [PATCH 2/2] mm/compaction: speed up pageblock_pfn_to_page() when zone is contiguous

2015-12-14 Thread Vlastimil Babka
On 12/14/2015 06:02 AM, Joonsoo Kim wrote: There is a performance drop report due to hugepage allocation and in there half of cpu time are spent on pageblock_pfn_to_page() in compaction [1]. In that workload, compaction is triggered to make hugepage but most of pageblocks are un-available for

Re: [PATCH v3 4/4] printk/nmi: Increase the size of NMI buffer and make it configurable

2015-12-14 Thread Daniel Thompson
On 11/12/15 23:21, Russell King - ARM Linux wrote: As I explained when I did that work, the vast majority of ARM platforms are unable to trigger anything like a NMI - the FIQ is something that's generally a property of the secure monitor, and is not accessible to Linux. However, there are

Re: [PATCH 11/38] HSI: omap_ssi: fix handling ida_simple_get result

2015-12-14 Thread Andrzej Hajda
Hi, Ping - almost three months passed. Regards Andrzej On 09/21/2015 03:33 PM, Andrzej Hajda wrote: > The function can return negative value. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. > > [1]:

Re: [PATCH 12/38] HSI: omap_ssi_port: fix handling of_get_named_gpio result

2015-12-14 Thread Andrzej Hajda
Hi, Ping - almost three months passed. Regards Andrzej On 09/21/2015 03:33 PM, Andrzej Hajda wrote: > The function can return negative value. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. > > [1]:

Re: [PATCH 00/10] drivers/pci: avoid module_init in non-modular host/pci*

2015-12-14 Thread Arnd Bergmann
On Monday 14 December 2015 10:19:40 Thierry Reding wrote: > > PCIe host driver that use fixup (DECLARE_PCI_FIXUP_*) can't use tristate. > > Fixup region is in kernel region and this region if not updated when > > loading a module. > > Interesting, I hadn't thought about that. I suppose this means

Re: [PATCH v3 14/17] perf: Remove subcmd dependencies on strbuf

2015-12-14 Thread Jiri Olsa
On Sun, Dec 13, 2015 at 10:18:14PM -0600, Josh Poimboeuf wrote: > Introduce and use new astrcat() and astrcatf() functions which replace > the strbuf functionality for subcmd. hum, would it be better then to put strbuf into lib as well? jirka -- To unsubscribe from this list: send the line

[PATCH] lightnvm: fix incorrect nr_free_blocks stat

2015-12-14 Thread Chao Yu
When initing bad block list in gennvm_block_bb, once we move bad block from free_list to bb_list, we should maintain both stat info nr_free_blocks and nr_bad_blocks. So this patch fixes to add missing operation related to nr_free_blocks. Signed-off-by: Chao Yu --- drivers/lightnvm/gennvm.c | 1

[PATCH 3/7] kexec: Fix race between panic() and crash_kexec()

2015-12-14 Thread Borislav Petkov
From: Hidehiro Kawai Currently, panic() and crash_kexec() can be called at the same time. For example (x86 case): CPU 0: oops_end() crash_kexec() mutex_trylock() // acquired nmi_shootdown_cpus() // stop other CPUs CPU 1: panic() crash_kexec() mutex_trylock() //

[PATCH 0/7] tip-queue 2015-12-14

2015-12-14 Thread Borislav Petkov
From: Borislav Petkov Hi Ingo, here's a pile which addresses issues which arise when using an NMI button on certain platforms which provide it, to cause an external NMI and thus cause a concurrent kdump to fail. For that, we're getting a new cmdline option called "apic_extnmi" which can control

Re: [PATCH 01/38] arm-cci: fix handling cpumask_any_but return value

2015-12-14 Thread Andrzej Hajda
Hi, Ping - almost three months passed. Regards Andrzej On 09/21/2015 03:33 PM, Andrzej Hajda wrote: > cpumask_any_but returns value >= nr_cpu_ids if there are no more CPUs. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci

Re: [3.16.y-ckt stable] Linux 3.16.7-ckt21

2015-12-14 Thread Luis Henriques
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index ddc531a74d04..225ae3ba74b3 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt @@ -139,7 +139,8 @@ Table 1-1: Process specific entries in /proc stat Process

Re: [RFC PATCH 3/7] doc: dt: mtd: partition: add on-flash format binding

2015-12-14 Thread Geert Uytterhoeven
On Sat, Dec 12, 2015 at 6:51 AM, David Gibson wrote: > On Thu, Dec 10, 2015 at 12:43:24PM -0800, Brian Norris wrote: >> On Mon, Dec 07, 2015 at 12:36:28PM +1100, David Gibson wrote: >> > On Sat, Dec 05, 2015 at 10:33:30PM +0100, Michal Suchanek wrote: >> > > On 5 December 2015 at 12:39, Jonas

[PATCH 6/7] Documentation: Document kernel.panic_on_io_nmi sysctl

2015-12-14 Thread Borislav Petkov
From: Hidehiro Kawai kernel.panic_on_io_nmi sysctl was introduced by commit 5211a242d0cb ("x86: Add sysctl to allow panic on IOCK NMI error") but its documentation is missing. So, add it. Signed-off-by: Hidehiro Kawai Requested-by: Borislav Petkov Cc: Andrew Morton Cc: Baoquan He Cc:

[PATCH 4/7] x86/apic: Introduce apic_extnmi command line parameter

2015-12-14 Thread Borislav Petkov
From: Hidehiro Kawai This patch introduces a command line parameter apic_extnmi: apic_extnmi=( bsp|all|none ) The default value is "bsp" and this is the current behavior: only the Boot-Strapping Processor receives an external NMI. "all" allows external NMIs to be broadcast to all CPUs. This

[PATCH 1/7] panic, x86: Fix re-entrance problem due to panic on NMI

2015-12-14 Thread Borislav Petkov
From: Hidehiro Kawai If panic on NMI happens just after panic() on the same CPU, panic() is recursively called. Kernel stalls, as a result, after failing to acquire panic_lock. To avoid this problem, don't call panic() in NMI context if we've already entered panic(). For that, introduce

[PATCH 2/7] panic, x86: Allow CPUs to save registers even if looping in NMI context

2015-12-14 Thread Borislav Petkov
From: Hidehiro Kawai Currently, kdump_nmi_shootdown_cpus(), a subroutine of crash_kexec(), sends an NMI IPI to CPUs which haven't called panic() to stop them, save their register information and do some cleanups for crash dumping. However, if such a CPU is infinitely looping in NMI context, we

RE: [PATCH v2] usb: gadget: forbid queuing request to a disabled ep

2015-12-14 Thread Du, Changbin
> diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h > index 3d583a1..b566a4b 100644 > --- a/include/linux/usb/gadget.h > +++ b/include/linux/usb/gadget.h > @@ -402,6 +402,9 @@ static inline void usb_ep_free_request(struct usb_ep > *ep, > static inline int usb_ep_queue(struct

Re: [PATCH] vgaarb: fix signal handling in vga_get()

2015-12-14 Thread David Herrmann
Hi On Mon, Dec 14, 2015 at 9:19 AM, Kirill A. Shutemov wrote: > On Thu, Dec 10, 2015 at 11:28:58AM +0100, David Herrmann wrote: >> Hi >> >> On Mon, Nov 30, 2015 at 3:17 AM, Kirill A. Shutemov >> wrote: >> > There are few defects in vga_get() related to signal hadning: >> > >> > - we shouldn't

[PATCH 7/7] x86/mm: Align macro defines

2015-12-14 Thread Borislav Petkov
From: Borislav Petkov Bring PAGE_{SHIFT,SIZE,MASK} to the same indentation level as the rest of the header. Signed-off-by: Borislav Petkov --- arch/x86/include/asm/page_types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/page_types.h

[PATCH 5/7] x86/nmi: Save regs in crash dump on external NMI

2015-12-14 Thread Borislav Petkov
From: Hidehiro Kawai Now, multiple CPUs can receive an external NMI simultaneously by specifying the "apic_extnmi=all" command line parameter. When we take a crash dump by using external NMI with this option, we fail to save registers into the crash dump. This happens as follows: CPU 0

[3.16.y-ckt stable] Linux 3.16.7-ckt21

2015-12-14 Thread Luis Henriques
I am announcing the release of the Linux 3.16.7-ckt21 kernel. The updated 3.16.y-ckt tree can be found at: git://kernel.ubuntu.com/ubuntu/linux.git linux-3.16.y and can be browsed at: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.16.y The diff from v3.16.7-ckt20 is posted

[PATCH v2 1/2] mfd: arizona: Add device tree binding to specify mono outputs

2015-12-14 Thread Charles Keepax
Add device tree bindings to support specifying outputs from the chip as mono outputs. Whilst we are doing it change the out_mono pdata from a bool to an int, because Sparse gets upset about using ARRAY_SIZE on bools. Signed-off-by: Charles Keepax --- No changes since v1. Thanks, Charles

[PATCH v2 2/2] mfd: arizona: Update binding docs for selecting mono/stereo outputs

2015-12-14 Thread Charles Keepax
Update the device tree binding documentation to include the wlf,out-mono property that is used to specify whether each output is a mono or stereo output. Signed-off-by: Charles Keepax --- Changes since v1: - Clarify which outputs correspond to which entry in the out-mono list. Thanks, Charles

Re: [tip:x86/asm] x86/kvm: On KVM re-enable (e.g. after suspend), update clocks

2015-12-14 Thread Paolo Bonzini
On 14/12/2015 09:16, tip-bot for Andy Lutomirski wrote: > Commit-ID: 677a73a9aa5433ea728200c26a7b3506d5eaa92b > Gitweb: http://git.kernel.org/tip/677a73a9aa5433ea728200c26a7b3506d5eaa92b > Author: Andy Lutomirski > AuthorDate: Thu, 10 Dec 2015 19:20:18 -0800 > Committer: Ingo Molnar

<    4   5   6   7   8   9   10   11   12   13   >