[PATCH v4 4/6] [media] rc-ir-raw: do not generate any receiving thread for raw transmitters

2016-12-14 Thread Andi Shyti
Raw IR transmitters do not need any thread listening for occurring events. Check the driver type before running the thread. Signed-off-by: Andi Shyti Reviewed-by: Sean Young --- drivers/media/rc/rc-ir-raw.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/d

Re: [PATCH 12/23] drm: omapdrm: plane: update fifo size on atomic update

2016-12-14 Thread Sebastian Reichel
Hi, On Wed, Dec 14, 2016 at 11:14:32AM +0200, Tomi Valkeinen wrote: > On 14/12/16 11:10, Laurent Pinchart wrote: > > Hi Tomi, > > > > On Wednesday 14 Dec 2016 10:43:18 Tomi Valkeinen wrote: > >> On 13/12/16 19:35, Laurent Pinchart wrote: > >>> On Tuesday 08 Mar 2016 17:39:44 Sebastian Reichel wro

[PATCH 1/2] btrfs: drop trace_btrfs_all_work_done() from normal_work_helper()

2016-12-14 Thread Sebastian Andrzej Siewior
For btrfs_scrubparity_helper() the ->func() is set to scrub_parity_bio_endio_worker(). This functions invokes scrub_free_parity() which kfrees() the `work' object. All is good as long as trace events are not enabled because we boom with a backtrace like this: | Workqueue: btrfs-endio btrfs_endio_he

[PATCH 2/2] btrfs: swap free() and trace point in run_ordered_work()

2016-12-14 Thread Sebastian Andrzej Siewior
The previous patch removed a trace point due to a use after free problem with tracing enabled. While looking at the backtrace it took me a while to find the right spot. While doing so I noticed that this trace point could be used after one of two clean-up functions were invoked: - run_one_async_fre

Re: [PATCH] ARM: dts: Add missing CPU frequencies for Exynos5422/5800

2016-12-14 Thread Javier Martinez Canillas
Hello Bartlomiej, On 12/14/2016 10:28 AM, Bartlomiej Zolnierkiewicz wrote: > > On Tuesday, December 13, 2016 04:18:05 PM Javier Martinez Canillas wrote: >> Hello Bartlomiej, > > Hi, > >> On 12/13/2016 01:52 PM, Bartlomiej Zolnierkiewicz wrote: >>> Add missing 2000MHz & 1900MHz OPPs (for A15 co

[RFC] btrfs: lockdep says "possible recursive locking detected" in btrfs_clear_lock_blocking_rw()

2016-12-14 Thread Sebastian Andrzej Siewior
With lockdep enabled I managed to trigger the following lockdep splat: | = | [ INFO: possible recursive locking detected ] | 4.9.0-rt0 #804 Tainted: GW | - | kworker/u16:4/154 is trying to acquire

Re: [PATCH] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2016-12-14 Thread Maxime Ripard
Hi Emmanuel, On Wed, Dec 14, 2016 at 11:08:56AM +0100, Emmanuel Vadot wrote: > The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. > This makes the original node (mmc2_pins_a) scrapped out of the dtb and > result in a unusable eMMC if U-Boot didn't configured the pins to the >

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-14 Thread Hannes Frederic Sowa
On 09.12.2016 17:03, Greg Kroah-Hartman wrote: > On Sat, Dec 10, 2016 at 01:56:53AM +1000, Nicholas Piggin wrote: >> On Fri, 9 Dec 2016 15:36:04 +0100 >> Stanislav Kozina wrote: >> >>> The question is how to provide a similar guarantee if a different way? >> As a tool to aid distro revie

Re: [PATCH 1/2] drm/panel: Add support for S6E3HA2 panel driver on TM2 board

2016-12-14 Thread Andrzej Hajda
On 14.12.2016 07:04, Hoegeun Kwon wrote: > This patch add support for MIPI-DSI based S6E3HA2 AMOLED panel > driver. This panel has 1440x2560 resolution in 5.7-inch physical > panel in the TM2 device. > > Signed-off-by: Donghwa Lee > Signed-off-by: Hyungwon Hwang > Signed-off-by: Hoegeun Kwon Hi

Re: [PATCH linux v1 0/4] Seven segment display support

2016-12-14 Thread Arnd Bergmann
On Wednesday, December 14, 2016 2:12:41 PM CET Neil Armstrong wrote: > On 12/14/2016 01:56 PM, Greg KH wrote: > > On Wed, Dec 14, 2016 at 01:45:30PM +0100, Thomas Petazzoni wrote: > >> Hello, > >> > >> On Tue, 13 Dec 2016 23:55:00 -0800, Jaghathiswari Rankappagounder > >> Natarajan wrote: > >> > >>

Re: [PATCH] include/linux/kernel.h: fixed coding style issues

2016-12-14 Thread Michal Nazarewicz
On Wed, Dec 14 2016, Piotr Gregor wrote: > Apply coding style suggested by Documentation/CodingStyle > and checkpatch.pl script. Fix 59 warnings and 24 errors > reported by checkpatch.pl > > Signed-off-by: Piotr Gregor Acked-by: Michal Nazarewicz but I wouldn’t be surprised to see push-back get

Re: Issue with DRM and "reimplement IDR and IDA using the radix tree"

2016-12-14 Thread Alexandre Courbot
Forgot to add the most relevant list for this issue (linux-next). Stephen, maybe you will want to temporarily revert this patch until this is cleared? This probably affects other users than DRM. On 12/13/2016 04:14 PM, Alexandre Courbot wrote: > Hi Matthew, > > Trying the latest -next on the Jet

[PATCH] dt-bindings: mfd: stm32f429: Add QSPI & DSI constants into DT include file

2016-12-14 Thread gabriel.fernandez
From: Gabriel Fernandez It will be used by clock and reset drivers, and DT bindings. Signed-off-by: Gabriel Fernandez --- include/dt-bindings/mfd/stm32f4-rcc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/mfd/stm32f4-rcc.h b/include/dt-bindings/mfd/stm32f4-rcc.h i

[PATCH] clk: stm32f4: Use CLK_OF_DECLARE_DRIVER initialization method

2016-12-14 Thread gabriel.fernandez
From: Gabriel Fernandez Clock and reset controller use same compatible strings (same IP). Since commit 989eafd0b609 ("clk: core: Avoid double initialization of clocks") the OF core flags clock controllers registered with the CLK_OF_DECLARE() macro as OF_POPULATED, so platform devices with the sa

[PATCH] pinctrl: stm32: activate strict mux mode

2016-12-14 Thread gabriel.fernandez
From: Gabriel Fernandez This activates strict mode muxing for the STM32 pin controllers, as these do not allow GPIO and functions to use the same pin simultaneously. Signed-off-by: Gabriel Fernandez --- drivers/pinctrl/stm32/pinctrl-stm32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/d

Re: [GIT PULL] trivial for 4.10

2016-12-14 Thread Joe Perches
On Wed, 2016-12-14 at 11:05 +0100, Jiri Kosina wrote: > Linus, > > please pull from > >   git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial.git for-linus > > to receive 4.10 merge window updates from trivial tree > > I hereby confess to having rebased the for-next branch, because I wa

Re: Revised request_key(2) man page for review

2016-12-14 Thread Michael Kerrisk (man-pages)
Hi David, Might you also have a chance to take a look at this page? Cheers, Michael On 4 November 2016 at 16:45, Michael Kerrisk (man-pages) wrote: > Hi David (and anyone else with an interest to review) > > Triggered by Eugene Syromyatnikov's recent input for the keyctl(2) > man page, I've b

Re: [PATCH] ARM: dts: Add missing CPU frequencies for Exynos5422/5800

2016-12-14 Thread Bartlomiej Zolnierkiewicz
Hi, On Wednesday, December 14, 2016 11:06:45 AM Javier Martinez Canillas wrote: > > Hello Bartlomiej, > > On 12/14/2016 10:28 AM, Bartlomiej Zolnierkiewicz wrote: > > > > On Tuesday, December 13, 2016 04:18:05 PM Javier Martinez Canillas wrote: > >> Hello Bartlomiej, > > > > Hi, > > > >> On

Re: xhci_reset_endpoint() doesn't reset endpoint

2016-12-14 Thread Mathias Nyman
On 14.12.2016 12:58, Michal Necasek wrote: prior to the endpoint reset. SetFeature(CLEAR_HALT) resets the toggle on the device, but not on the host. But we know for a fact that the device sends a packet (with data toggle 0) which the host USB stack never sees, and a data toggle mismatch explains

jemalloc testsuite stalls in memset

2016-12-14 Thread Andreas Schwab
When running the jemalloc-4.4.0 testsuite on aarch64 with glibc 2.24 the test/unit/junk test hangs in memset: (gdb) r Starting program: /tmp/jemalloc/jemalloc-4.4.0/test/unit/junk [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". test_junk_sm

Re: [PATCH 2/3] selftests: do not require bash to run bpf tests

2016-12-14 Thread Shuah Khan
On 12/14/2016 04:03 AM, Daniel Borkmann wrote: > On 12/14/2016 11:58 AM, Rolf Eike Beer wrote: >> From b9d6c1b7427d708ef2d4d57aac17b700b3694d71 Mon Sep 17 00:00:00 2001 >> From: Rolf Eike Beer >> Date: Wed, 14 Dec 2016 09:58:12 +0100 >> Subject: [PATCH 2/3] selftests: do not require bash to run b

[RESEND PATCH 2/2] arm64: make WANT_HUGE_PMD_SHARE depends on HUGETLB_PAGE

2016-12-14 Thread zhongjiang
From: zhong jiang when HUGETLB_PAGE is disable, WANT_HUGE_PMD_SHARE contains the fuctions should not be use. therefore, we add the dependency. Signed-off-by: zhong jiang --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 969

[RESEND PATCH 1/2] arm64: change from CONT_PMD_SHIFT to CONT_PTE_SHIFT

2016-12-14 Thread zhongjiang
From: zhong jiang I think that CONT_PTE_SHIFT is more reasonable even if they are some value. and the patch is not any functional change. Signed-off-by: zhong jiang --- arch/arm64/mm/hugetlbpage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/mm/hugetlbpage.c b

Re: [PATCH 1/8] dax: add region-available-size attribute

2016-12-14 Thread Johannes Thumshirn
Hi Dan, On Sat, Dec 10, 2016 at 10:28:30PM -0800, Dan Williams wrote: > In preparation for a facility that enables dax regions to be > sub-divided, introduce a 'dax/available_size' attribute. This attribute > appears under the parent device that registered the device-dax region, > and it assumes

[PATCH] usb: hub: Move hub_port_disable() to fix warning if PM is disabled

2016-12-14 Thread Geert Uytterhoeven
If CONFIG_PM=n: drivers/usb/core/hub.c:107: warning: ‘hub_usb3_port_prepare_disable’ declared inline after being called drivers/usb/core/hub.c:107: warning: previous declaration of ‘hub_usb3_port_prepare_disable’ was here To fix this, move hub_port_disable() after hub_usb3_port_prepare_

Re: [PATCH] spi: SPI_FSL_DSPI should depend on HAS_DMA

2016-12-14 Thread Mark Brown
On Wed, Dec 14, 2016 at 01:28:05PM +0100, Geert Uytterhoeven wrote: > If NO_DMA=y: > ERROR: "bad_dma_ops" [drivers/spi/spi-fsl-dspi.ko] undefined! > Add a dependency on HAS_DMA to fix this. Honestly I think we should just fix the architectures that don't support DMA to provide compile out st

Re: [PATCH] spi: SPI_FSL_DSPI should depend on HAS_DMA

2016-12-14 Thread Geert Uytterhoeven
Hi Mark, On Wed, Dec 14, 2016 at 3:37 PM, Mark Brown wrote: > On Wed, Dec 14, 2016 at 01:28:05PM +0100, Geert Uytterhoeven wrote: >> If NO_DMA=y: > >> ERROR: "bad_dma_ops" [drivers/spi/spi-fsl-dspi.ko] undefined! > >> Add a dependency on HAS_DMA to fix this. > > Honestly I think we should jus

Re: [PATCH] ARM: dts: Add missing CPU frequencies for Exynos5422/5800

2016-12-14 Thread Javier Martinez Canillas
Hello Bartlomiej, On 12/14/2016 11:25 AM, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Wednesday, December 14, 2016 11:06:45 AM Javier Martinez Canillas wrote: >> >> Hello Bartlomiej, >> >> On 12/14/2016 10:28 AM, Bartlomiej Zolnierkiewicz wrote: >>> >>> On Tuesday, December 13, 2016 04:18:05

[RESEND PATCH 0/2] fix some trivial bug involving the contiguous bit

2016-12-14 Thread zhongjiang
From: zhong jiang Hi, The following patch have sent it last week, but it fails to receive any reply. These patch is simple but reasonable. I hope it can merge to next version. So, if anyone has any objection, just please let me know. Thanks zhongjiang zhong jiang (2): arm64: change fr

Re: [v1] net:ethernet:cavium:octeon:octeon_mgmt: Handle return NULL error from devm_ioremap

2016-12-14 Thread kbuild test robot
Hi Arvind, [auto build test ERROR on net-next/master] [also build test ERROR on v4.9 next-20161214] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arvind-Yadav/net-ethernet-cavium-octeon

Re: [PATCH] rcu: shift by 1UL rather than 1 to fix sign extension error

2016-12-14 Thread Boqun Feng
On Tue, Dec 13, 2016 at 11:33:19AM +, Colin Ian King wrote: > On 13/12/16 11:21, Boqun Feng wrote: > > On Tue, Dec 13, 2016 at 10:56:46AM +, Colin King wrote: > >> From: Colin Ian King > >> > >> mask and bit are unsigned longs, so if bit is 31 we end up sign > >> extending the 1 and mask e

Build failures due to missing 'posix_timer_event'

2016-12-14 Thread Guenter Roeck
avr32:allnoconfig: kernel/built-in.o: In function `do_adjtimex': (.text+0x1d748): undefined reference to `posix_timer_event' make[1]: *** [vmlinux] Error 1 metag:allnoconfig: kernel/built-in.o: In function `alarm_handle_timer': alarmtimer.c:(.text.alarm_handle_timer+0x38): undefined reference t

RE: [PATCH v2 3/4] secure_seq: use siphash24 instead of md5_transform

2016-12-14 Thread David Laight
From: Jason A. Donenfeld > Sent: 14 December 2016 13:44 > To: Hannes Frederic Sowa > > __packed not only removes all padding of the struct but also changes the > > alignment assumptions for the whole struct itself. The rule, the struct > > is aligned by its maximum alignment of a member is no longe

[PATCH] usb: musb: debugfs: allow forcing host mode together with speed in testmode

2016-12-14 Thread Pali Rohár
Signed-off-by: Pali Rohár --- drivers/usb/musb/musb_debugfs.c | 44 +-- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugfs.c index 9b22d94..62c13a2 100644 --- a/drivers/usb/musb/musb

[PATCH 1/3] mm, trace: extract COMPACTION_STATUS and ZONE_TYPE to a common header

2016-12-14 Thread Michal Hocko
From: Michal Hocko COMPACTION_STATUS resp. ZONE_TYPE are currently used to translate enum compact_result resp. struct zone index into their symbolic names for an easier post processing. The follow up patch would like to reuse this as well. The code involves some preprocessor black magic which is

[PATCH 3/3] oom, trace: add compaction retry tracepoint

2016-12-14 Thread Michal Hocko
From: Michal Hocko Higher order requests oom debugging is currently quite hard. We do have some compaction points which can tell us how the compaction is operating but there is no trace point to tell us about compaction retry logic. This patch adds a one which will have the following format

[PATCH 2/3] oom, trace: Add oom detection tracepoints

2016-12-14 Thread Michal Hocko
From: Michal Hocko should_reclaim_retry is the central decision point for declaring the OOM. It might be really useful to expose data used for this decision making when debugging an unexpected oom situations. Say we have an OOM report: [ 52.264001] mem_eater invoked oom-killer: gfp_mask=0x242

[PATCH 0/3] mm, oom: add oom detection tracepoints

2016-12-14 Thread Michal Hocko
Hi, this is a long overdue and I am really sorry about that. I just didn't get to sit and come up with this earlier as there was always some going on which preempted it. This patchset adds two tracepoints which should help us to debug oom decision making. The first one is placed in should_reclaim_r

Re: [PATCH] rcu: shift by 1UL rather than 1 to fix sign extension error

2016-12-14 Thread Colin Ian King
On 14/12/16 14:42, Boqun Feng wrote: > On Tue, Dec 13, 2016 at 11:33:19AM +, Colin Ian King wrote: >> On 13/12/16 11:21, Boqun Feng wrote: >>> On Tue, Dec 13, 2016 at 10:56:46AM +, Colin King wrote: From: Colin Ian King mask and bit are unsigned longs, so if bit is 31 we end

Re: [PATCHv3 perf/core 0/7] Reuse libbpf from samples/bpf

2016-12-14 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 14, 2016 at 10:25:01AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Dec 09, 2016 at 04:30:54PM +0100, Daniel Borkmann escreveu: > > On 12/09/2016 04:09 PM, Arnaldo Carvalho de Melo wrote: > > > > v3: Add ack for first patch. > > > > Split out second patch from v2 into separa

[PATCH v2] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2016-12-14 Thread Emmanuel Vadot
The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. This makes the original node (mmc2_pins_a) scrapped out of the dtb and result in a unusable eMMC if U-Boot didn't configured the pins to the correct functions. Changes since v1: * Rename the node mmc2-rst-pin Signed-off-by:

Question about regulator API

2016-12-14 Thread Harald Geyer
Hi all! I have a quite complex situation with regulator consumers, which I'm not sure how to handle best. Suppose there is some quirky HW that after some random time crashes - i.e. it doesn't respond to requests anymore at all. The driver can detect this situation and the only way to fix it is to

Re: [PATCH 3/3] crypto: brcm: Add Broadcom SPU driver DT entry.

2016-12-14 Thread Rob (William) Rice
I will rebase to Herbert's latest when I submit v3 to address Mark Rutland's DT comments (and any others that come in). Rob On 12/10/2016 7:14 PM, kbuild test robot wrote: Hi Rob, [auto build test ERROR on cryptodev/master] [also build test ERROR on v4.9-rc8] [cannot apply to next-20161209]

[char-misc 1/2] mei: bus: fix mei_cldev_enable KDoc

2016-12-14 Thread Tomas Winkler
From: Alexander Usyskin Adjust function name in KDoc. Fixes: d49dc5e76fc9 (mei: bus: use mei_cldev_ prefix for the API functions) Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

[char-misc 2/2] mei: move write cb to completion on credentials failures

2016-12-14 Thread Tomas Winkler
From: Alexander Usyskin The credentials handling was pushed to the write handlers but error handling wasn't done properly. Move write callbacks to completion queue to destroy them and to notify a blocked writer about the failure Fixes: 136698e535cd1 (mei: push credentials inside the irq write ha

Re: [PATCH 5/8] dax: refactor locking out of size calculation routines

2016-12-14 Thread Johannes Thumshirn
Hi Dan, On Sat, Dec 10, 2016 at 10:28:51PM -0800, Dan Williams wrote: > In preparation for other callers of these routines make the locking the > responsibility of the caller. > > Signed-off-by: Dan Williams > --- > drivers/dax/dax.c | 30 -- > 1 file changed, 24 i

Re: [PATCH 6/7] mq-deadline: add blk-mq adaptation of the deadline IO scheduler

2016-12-14 Thread Jens Axboe
On 12/14/2016 01:09 AM, Bart Van Assche wrote: > On 12/08/2016 09:13 PM, Jens Axboe wrote: >> +static inline bool dd_rq_is_shadow(struct request *rq) >> +{ >> +return rq->rq_flags & RQF_ALLOCED; >> +} > > Hello Jens, > > Something minor: because req_flags_t has been defined using __bitwise >

Re: [RESEND PATCH 1/2] arm64: change from CONT_PMD_SHIFT to CONT_PTE_SHIFT

2016-12-14 Thread Ard Biesheuvel
On 14 December 2016 at 14:19, zhongjiang wrote: > From: zhong jiang > > I think that CONT_PTE_SHIFT is more reasonable even if they are some > value. and the patch is not any functional change. > This may be the case for 64k pages, but not for 16k pages, and I actually think add_default_hugepage

Re: [PATCH 5/7] blk-mq-sched: add framework for MQ capable IO schedulers

2016-12-14 Thread Jens Axboe
On 12/14/2016 03:31 AM, Bart Van Assche wrote: > On 12/13/2016 04:14 PM, Jens Axboe wrote: >> On 12/13/2016 06:56 AM, Bart Van Assche wrote: >>> On 12/08/2016 09:13 PM, Jens Axboe wrote: +struct request *blk_mq_sched_alloc_shadow_request(struct request_queue *q, +

[PATCH] mm: consolidate GFP_NOFAIL checks in the allocator slowpath

2016-12-14 Thread Michal Hocko
From: Michal Hocko Tetsuo Handa has pointed out that 0a0337e0d1d1 ("mm, oom: rework oom detection") has subtly changed semantic for costly high order requests with __GFP_NOFAIL and withtout __GFP_REPEAT and those can fail right now. My code inspection didn't reveal any such users in the tree but

[PATCH 2/2] MIPS: Set defconfig target to a generic system for 32r2el

2016-12-14 Thread Matt Redfearn
The default system type should be a MIPS generic kernel. In order to include some level of board support, select a 32r2el generic defconfig by default. The alternative would be to use "generic_defconfig" but rather unintuitvely that is a bare bones configuration with no platform support so is not u

[PATCH 1/2] MIPS: Kconfig: Set default MIPS system type as generic

2016-12-14 Thread Matt Redfearn
The generic MIPS system type allows building a board agnostic kernel and should be the default starting point for users, so set it as the default system type in Kconfig. Since ip22 is no longer the default, update ip22_defconfig to select CONFIG_SGI_IP22. Signed-off-by: Matt Redfearn --- This p

Re: [PATCHv6] support for AD5820 camera auto-focus coil

2016-12-14 Thread Tony Lindgren
* Pali Rohár [161214 05:38]: > On Monday 08 August 2016 23:41:32 Pavel Machek wrote: > > On Mon 2016-08-08 11:09:56, Sakari Ailus wrote: > > > On Fri, Aug 05, 2016 at 12:26:11PM +0200, Pavel Machek wrote: > > > > This adds support for AD5820 autofocus coil, found for example in > > > > Nokia N900

Re: [PATCH v2 1/4] siphash: add cryptographically secure hashtable function

2016-12-14 Thread Hannes Frederic Sowa
Hello, On 14.12.2016 14:10, Jason A. Donenfeld wrote: > On Wed, Dec 14, 2016 at 12:21 PM, Hannes Frederic Sowa > wrote: >> Can you show or cite benchmarks in comparison with jhash? Last time I >> looked, especially for short inputs, siphash didn't beat jhash (also on >> all the 32 bit devices etc

Re: partial bluetooth success on n900 [was Re: bluetooth/uart timeout handling]

2016-12-14 Thread Tony Lindgren
* Sebastian Reichel [161214 05:32]: > Hi Pali & Pavel, > > On Wed, Dec 14, 2016 at 01:53:23PM +0100, Pavel Machek wrote: > > > > [ 220.248596] tty ttyO1: Radio packet sent > > > > [ 220.249328] Bluetooth: hci0: Frame reassembly failed (-84) > > > > [ 220.272949] tty ttyO1: wakeup received: 1 -

Re: [PATCH] x86/platform/intel-mid: switch MPU3050 driver to IIO

2016-12-14 Thread Andy Shevchenko
On Wed, 2016-12-14 at 14:39 +0100, Linus Walleij wrote: > The Intel Mid goes in and creates a I2C device for the > MPU3050 if the input driver for MPU-3050 is activated. > As of commit 3904b28efb2c > ("iio: gyro: Add driver for the MPU-3050 gyroscope") > there is a proper and fully featured IIO dri

Re: Build failures due to missing 'posix_timer_event'

2016-12-14 Thread Nicolas Pitre
On Wed, 14 Dec 2016, Guenter Roeck wrote: > avr32:allnoconfig: > > kernel/built-in.o: In function `do_adjtimex': > (.text+0x1d748): undefined reference to `posix_timer_event' > make[1]: *** [vmlinux] Error 1 > > metag:allnoconfig: > > kernel/built-in.o: In function `alarm_handle_timer': > alarm

[PATCH 1/1] remoteproc: fix vdev reference management

2016-12-14 Thread Loic Pallardy
Commit 2b45cef5868a ("remoteproc: Further extend the vdev life cycle") extends kref support for vdev management. It introduces a regression when following sequence is executed: rproc_boot --> rproc_shutdown --> rproc_boot Second rproc_boot call crashes on register_virtio_device as device is already

Re: [PATCH v2 2/3] power: supply: bq24735-charger: optionally poll the ac-detect gpio

2016-12-14 Thread Sebastian Reichel
Hi, On Wed, Dec 14, 2016 at 12:56:44AM +0100, Peter Rosin wrote: > If the ac-detect gpio does not support interrupts, provide a fallback > to poll the gpio at a configurable interval. > > Signed-off-by: Peter Rosin > --- > > [...] > > + } else if (charger->status_gpio) { > + ret

Re: linux-next: build warning after merge of the btrfs-kdave tree

2016-12-14 Thread David Sterba
On Wed, Dec 07, 2016 at 09:38:19AM +1100, Stephen Rothwell wrote: > Hi David, > > On Mon, 28 Nov 2016 11:02:30 +1100 Stephen Rothwell > wrote: > > > > After merging the btrfs-kdave tree, today's linux-next build (powerpc > > ppc64_defconfig) produced this warning: > > > > fs/btrfs/inode.c: In f

Re: [PATCH v2] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2016-12-14 Thread Maxime Ripard
On Wed, Dec 14, 2016 at 03:57:24PM +0100, Emmanuel Vadot wrote: > The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. > This makes the original node (mmc2_pins_a) scrapped out of the dtb and > result in a unusable eMMC if U-Boot didn't configured the pins to the > correct functi

Moratorium on coding style patches (was Re: [PATCH] include/linux/kernel.h: fixed coding style issues)

2016-12-14 Thread Alexey Dobriyan
OK, someone needs to say it. These type of patches are advertised by some people as a good way to enter Linux kernel development. You know, to learn how the process works, how to setup email client pipeline, to get initial feedback. And it is true. What those people aren't saying is that the above

Re: [OpenRISC] [PATCH] openrisc: Add _text symbol to fix ksym build error

2016-12-14 Thread Geert Uytterhoeven
Hi Stafford, On Wed, Dec 14, 2016 at 1:55 PM, Stafford Horne wrote: > The build report reports: > >.tmp_kallsyms1.o: In function `kallsyms_relative_base': >>> (.rodata+0x8a18): undefined reference to `_text' > > This is when using 'make alldefconfig'. Adding this _text symbol to mark > the st

[PATCH driver-core] debugfs: improve formatting of debugfs_real_fops()

2016-12-14 Thread Jakub Kicinski
Type of debugfs_real_fops() is longer than parameters and the name, so there is no way to break the declaration nicely. We have to go over 80 characters. Signed-off-by: Jakub Kicinski --- include/linux/debugfs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/

Re: [PATCH] usb: musb: debugfs: allow forcing host mode together with speed in testmode

2016-12-14 Thread Tony Lindgren
* Pali Rohár [161214 06:48]: We need this because and this allows debugging problems related to ...? Regards, Tony

Re: [Qemu-devel] [PATCH v7 1/1] crypto: add virtio-crypto driver

2016-12-14 Thread Halil Pasic
On 12/14/2016 12:50 PM, Gonglei wrote: > diff --git a/drivers/crypto/virtio/virtio_crypto_core.c > b/drivers/crypto/virtio/virtio_crypto_core.c > new file mode 100644 > index 000..c0854a1 > --- /dev/null > +++ b/drivers/crypto/virtio/virtio_crypto_core.c > @@ -0,0 +1,474 @@ [..] > + > +stati

Re: [PATCH] usb: musb: debugfs: allow forcing host mode together with speed in testmode

2016-12-14 Thread Pali Rohár
On Wednesday 14 December 2016 16:34:31 Tony Lindgren wrote: > * Pali Rohár [161214 06:48]: > > We need this because and this allows debugging problems related > to ...? Hi! We have already discussion about it, search for older email with Message-Id: <201601231357.32629@pali> After that in

Re: [PATCH v2 02/11] mfd: axp20x: add volatile and writeable reg ranges for VBUS power supply driver

2016-12-14 Thread Chen-Yu Tsai
On Fri, Dec 9, 2016 at 7:04 PM, Quentin Schulz wrote: > The X-Powers AXP20X and AXP22X PMICs allow to choose the maximum voltage > and minimum current delivered by the VBUS power supply. > > This adds the register used by the VBUS power supply driver to the range > of volatile and writeable regs r

Re: [PATCH v2 03/11] power: supply: axp20x_usb_power: set min voltage and max current from sysfs

2016-12-14 Thread Chen-Yu Tsai
On Fri, Dec 9, 2016 at 7:04 PM, Quentin Schulz wrote: > AXP20X and AXP22X PMICs allow setting the min voltage and max current of > VBUS power supply. This adds entries in sysfs to allow to do so. > > Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai

Re: [PATCH v2 01/11] power: supply: axp20x_usb_power: use of_device_id data field instead of device_is_compatible

2016-12-14 Thread Chen-Yu Tsai
On Fri, Dec 9, 2016 at 7:04 PM, Quentin Schulz wrote: > This replaces calls to of_device_is_compatible to check data field of > of_device_id matched when probing the driver. > > Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai

Re: [PATCH v9 3/3] fpga: Add support for Lattice iCE40 FPGAs

2016-12-14 Thread Alan Tull
On Fri, 9 Dec 2016, Moritz Fischer wrote: > Joel, > > A couple of minor nits below (none of them are real blockers), other > than that looks good. > > On Thu, Dec 8, 2016 at 9:35 PM, Joel Holdsworth > wrote: > > The Lattice iCE40 is a family of FPGAs with a minimalistic architecture > > and ver

Re: [PATCH] usb: musb: debugfs: allow forcing host mode together with speed in testmode

2016-12-14 Thread Tony Lindgren
* Pali Rohár [161214 07:40]: > On Wednesday 14 December 2016 16:34:31 Tony Lindgren wrote: > > * Pali Rohár [161214 06:48]: > > > > We need this because and this allows debugging problems related > > to ...? > > Hi! We have already discussion about it, search for older email with > Messag

Re: [PATCH v2 2/4] KVM: x86: replace kvm_apic_id with kvm_{x,x2}apic_id

2016-12-14 Thread Paolo Bonzini
On 14/12/2016 14:41, Radim Krčmář wrote: > 2016-12-14 13:39+0100, David Hildenbrand: >> Am 13.12.2016 um 17:29 schrieb Radim Krčmář: >>> There were three calls sites: >>> - recalculate_apic_map and kvm_apic_match_physical_addr, where it would >>>only complicate implementation of x2APIC hotpl

Re: [PATCH v5] media: Driver for Toshiba et8ek8 5MP sensor

2016-12-14 Thread Ivaylo Dimitrov
Hi On 14.12.2016 15:03, Pali Rohár wrote: Hi! See inlined some my notes. + +#ifdef USE_CRC + rval = et8ek8_i2c_read_reg(client, ET8EK8_REG_8BIT, 0x1263, &val); + if (rval) + goto out; +#if USE_CRC /* TODO get crc setting from DT */ + val |= BIT(4); +#else +

Re: [RFC 03/10] kmod: add dynamic max concurrent thread count

2016-12-14 Thread Petr Mladek
On Thu 2016-12-08 11:48:14, Luis R. Rodriguez wrote: > We currently statically limit the number of modprobe threads which > we allow to run concurrently to 50. As per Keith Owens, this was a > completely arbitrary value, and it was set in the 2.3.38 days [0] > over 16 years ago in year 2000. > > A

Re: [PATCH 1/8] dax: add region-available-size attribute

2016-12-14 Thread Dan Williams
On Wed, Dec 14, 2016 at 6:38 AM, Johannes Thumshirn wrote: > Hi Dan, > > On Sat, Dec 10, 2016 at 10:28:30PM -0800, Dan Williams wrote: >> In preparation for a facility that enables dax regions to be >> sub-divided, introduce a 'dax/available_size' attribute. This attribute >> appears under the pa

Re: [PATCH] perf/x86: Fix overlap counter scheduling bug

2016-12-14 Thread Jiri Olsa
On Wed, Nov 09, 2016 at 04:51:53PM +0100, Peter Zijlstra wrote: SNIP > > As per a prior mail, the masks on the PMU in question are: > > 0x01 - 0001 > 0x03 - 0011 > 0x0e - 1110 > 0x0c - 1100 > > But since all the masks that have overlap (0xe -> {0xc,0x3}) and (0x3 -> > 0x1) are of heavier w

Re: partial bluetooth success on n900 [was Re: bluetooth/uart timeout handling]

2016-12-14 Thread Tony Lindgren
* Sebastian Reichel [161214 07:52]: > On Wed, Dec 14, 2016 at 07:10:56AM -0800, Tony Lindgren wrote: > > Maybe send it so we can merge it as a fix during the early -rc > > cycle? > > Sorry if I was not clear enough: mainline does *not* contain > incorrect DT information. My bluetooth RFC patches

Re: [PATCH 5/8] dax: refactor locking out of size calculation routines

2016-12-14 Thread Dan Williams
On Wed, Dec 14, 2016 at 7:01 AM, Johannes Thumshirn wrote: > Hi Dan, > > On Sat, Dec 10, 2016 at 10:28:51PM -0800, Dan Williams wrote: >> In preparation for other callers of these routines make the locking the >> responsibility of the caller. >> >> Signed-off-by: Dan Williams >> --- >> drivers/d

Re: [PATCH] tools: usb: usbip: Update README

2016-12-14 Thread Shuah Khan
Hi Krzysztof, Thanks for the patch. On 12/13/2016 12:52 PM, Krzysztof Opasiak wrote: > Update README file: > - remove outdated parts > - clarify terminology and general structure > - add some description of vUDC > > Signed-off-by: Krzysztof Opasiak > --- > tools/usb/usbip/README | 56 > ++

Re: [RFC 06/10] kmod: provide sanity check on kmod_concurrent access

2016-12-14 Thread Petr Mladek
On Thu 2016-12-08 11:48:50, Luis R. Rodriguez wrote: > Only decrement *iff* we're possitive. Warn if we've hit > a situation where the counter is already 0 after we're done > with a modprobe call, this would tell us we have an unaccounted > counter access -- this in theory should not be possible as

Re: partial bluetooth success on n900 [was Re: bluetooth/uart timeout handling]

2016-12-14 Thread Sebastian Reichel
Hi Tony, On Wed, Dec 14, 2016 at 07:10:56AM -0800, Tony Lindgren wrote: > * Sebastian Reichel [161214 05:32]: > > Hi Pali & Pavel, > > > > On Wed, Dec 14, 2016 at 01:53:23PM +0100, Pavel Machek wrote: > > > > > [ 220.248596] tty ttyO1: Radio packet sent > > > > > [ 220.249328] Bluetooth: hci0:

Re: [PATCH] ARM: dts: Add missing CPU frequencies for Exynos5422/5800

2016-12-14 Thread Bartlomiej Zolnierkiewicz
Hi, On Wednesday, December 14, 2016 11:40:08 AM Javier Martinez Canillas wrote: > Hello Bartlomiej, > > On 12/14/2016 11:25 AM, Bartlomiej Zolnierkiewicz wrote: > > > > Hi, > > > > On Wednesday, December 14, 2016 11:06:45 AM Javier Martinez Canillas wrote: > >> > >> Hello Bartlomiej, > >> > >>

Re: [PATCH 0/2] Add maintainers to the admin guide

2016-12-14 Thread Joe Perches
On Tue, 2016-12-13 at 07:38 -0200, Mauro Carvalho Chehab wrote: > Em Mon, 12 Dec 2016 12:56:50 -0800 > Joe Perches escreveu: > > Does the boxing with the === blocks align properly? > > It it really useful? Is there another/better way? > > Do you mean those? > > ===

[PATCH v3 0/2] iio: adc: hx711: Add IIO driver for AVIA HX711 ADC

2016-12-14 Thread Andreas Klinger
This series adds IIO driver support for the AVIA HX711 ADC which is mostly used in weighting cells. The first patch adds the new DT binding for which a new vendor avia was also added. The second patch is the simple IIO driver implemented as ADC. The protocol is specific to this device and implem

Re: [PATCH] spi: SPI_FSL_DSPI should depend on HAS_DMA

2016-12-14 Thread Mark Brown
On Wed, Dec 14, 2016 at 03:40:43PM +0100, Geert Uytterhoeven wrote: > On Wed, Dec 14, 2016 at 3:37 PM, Mark Brown wrote: > > On Wed, Dec 14, 2016 at 01:28:05PM +0100, Geert Uytterhoeven wrote: > > Honestly I think we should just fix the architectures that don't support > > DMA to provide compile

Re: Fw: [lkp-developer] [sched,rcu] cf7a2dca60: [No primary change] +186% will-it-scale.time.involuntary_context_switches

2016-12-14 Thread Michal Hocko
On Wed 14-12-16 03:06:09, Paul E. McKenney wrote: > On Wed, Dec 14, 2016 at 10:54:25AM +0100, Michal Hocko wrote: > > On Tue 13-12-16 07:14:08, Paul E. McKenney wrote: > > > Just FYI for the moment... > > > > > > So even with the slowed-down checking, making cond_resched() do what > > > cond_resch

[PATCH v3 1/2] iio: adc: hx711: Add DT binding for avia,hx711

2016-12-14 Thread Andreas Klinger
Add DT bindings for avia,hx711 Add vendor avia to vendor list Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 16 Documentation/devicetree/bindings/vendor-prefixes.txt| 1 + 2 files changed, 17 insertions(+) create mode 100644

Re: [PATCH v2 2/4] KVM: x86: replace kvm_apic_id with kvm_{x,x2}apic_id

2016-12-14 Thread David Hildenbrand
kvm_for_each_vcpu(i, vcpu, kvm) if (kvm_apic_present(vcpu)) - max_id = max(max_id, kvm_apic_id(vcpu->arch.apic)); + max_id = max(max_id, kvm_x2apic_id(vcpu->arch.apic)); new = kvm_kvzalloc(sizeof(struct kvm_apic_map) +

Re: [RFC/PATCH] tracing: show total NMI time in hwlat tracer

2016-12-14 Thread Steven Rostedt
[ added the forgotten LKML ;-) ] On Wed, 14 Dec 2016 09:53:01 -0500 Steven Rostedt wrote: > On Wed, 14 Dec 2016 16:13:51 +0900 > Namhyung Kim wrote: > > > Hi Steve, > > > > While looking at the code I found the below. I'm not sure the current > > code is correct but it seems that nmi_total_

[PATCH v3 2/2] iio: adc: hx711: Add IIO driver for AVIA HX711

2016-12-14 Thread Andreas Klinger
This is the IIO driver for AVIA HX711 ADC which ist mostly used in weighting cells. The protocol is quite simple and using GPIOs: One GPIO is used as clock (SCK) while another GPIO is read (DOUT) The raw value read from the chip is delivered. To get a weight one needs to subtract the zero offset

[PATCH V2 0/4] OPTPROBES for powerpc

2016-12-14 Thread Anju T Sudhakar
This is the V2 patchset of the kprobes jump optimization (a.k.a OPTPROBES)for powerpc. Kprobe being an inevitable tool for kernel developers, enhancing the performance of kprobe has got much importance. Currently kprobes inserts a trap instruction to probe a running kernel. Jump optimization allow

[PATCH V2 4/4] arch/powerpc: Optimize kprobe in kretprobe_trampoline

2016-12-14 Thread Anju T Sudhakar
Kprobe placed on the kretprobe_trampoline during boot time can be optimized, since the instruction at probe point is a 'nop'. Signed-off-by: Anju T Sudhakar --- arch/powerpc/kernel/kprobes.c | 8 arch/powerpc/kernel/optprobes.c | 7 +++ 2 files changed, 11 insertions(+), 4 delet

Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask

2016-12-14 Thread Michal Hocko
On Wed 14-12-16 11:13:11, Alan Stern wrote: > On Wed, 14 Dec 2016, Michal Hocko wrote: > > > On Tue 13-12-16 08:33:34, Alan Stern wrote: > > > On Tue, 13 Dec 2016, Michal Hocko wrote: [...] > > > > Well, my point was that it is not really hard to imagine to deplete > > > > larger contiguous memory

[PATCH V2 2/4] powerpc: add helper to check if offset is within rel branch range

2016-12-14 Thread Anju T Sudhakar
From: "Naveen N. Rao" Signed-off-by: Naveen N. Rao Signed-off-by: Anju T Sudhakar --- arch/powerpc/include/asm/code-patching.h | 1 + arch/powerpc/lib/code-patching.c | 24 +++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm

[PATCH V2 3/4] arch/powerpc: Implement Optprobes

2016-12-14 Thread Anju T Sudhakar
Detour buffer contains instructions to create an in memory pt_regs. After the execution of the pre-handler, a call is made for instruction emulation. The NIP is determined in advanced through dummy instruction emulation and a branch instruction is created to the NIP at the end of the trampoline.

[PATCH V2 1/4] powerpc: asm/ppc-opcode.h: introduce __PPC_SH64()

2016-12-14 Thread Anju T Sudhakar
From: "Naveen N. Rao" Introduce __PPC_SH64() as a 64-bit variant to encode shift field in some of the shift and rotate instructions operating on double-words. Convert some of the BPF instruction macros to use the same. Signed-off-by: Naveen N. Rao --- arch/powerpc/include/asm/ppc-opcode.h | 1

Re: [RFC 07/10] kmod: use simplified rate limit printk

2016-12-14 Thread Petr Mladek
On Thu 2016-12-08 11:49:01, Luis R. Rodriguez wrote: > Just use the simplified rate limit printk when the max modprobe > limit is reached, while at it throw out a bone should the error > be triggered. > > Signed-off-by: Luis R. Rodriguez > --- > kernel/kmod.c | 10 ++ > 1 file changed, 2

Re: [PATCH v2 04/11] Documentation: DT: binding: axp20x_usb_power: add axp223 compatible

2016-12-14 Thread Chen-Yu Tsai
On Fri, Dec 9, 2016 at 7:04 PM, Quentin Schulz wrote: > This adds the "x-powers,axp223-usb-power-supply" to the list of > compatibles for AXP20X VBUS power supply driver. > > Signed-off-by: Quentin Schulz > --- > > v2: > - adding small explanation on AXP223 variation compared to the AXP221, > >

Re: [PATCH v2] keys/encrypted: Fix two crypto-on-the-stack bugs

2016-12-14 Thread Andy Lutomirski
On Wed, Dec 14, 2016 at 12:37 AM, David Howells wrote: > Andy Lutomirski wrote: > >> > - sg_set_buf(&sg_out[1], pad, sizeof pad); >> > + sg_set_buf(&sg_out[1], empty_zero_page, 16); >> >> My fix here is obviously bogus (I meant to use ZERO_PAGE(0)), but what >> exactly is the code try

<    1   2   3   4   5   6   7   8   9   >