[PATCH 14/22] samples/bpf: Move open_raw_sock to separate header

2016-12-13 Thread Arnaldo Carvalho de Melo
From: Joe Stringer This function was declared in libbpf.c and was the only remaining function in this library, but has nothing to do with BPF. Shift it out into a new header, sock_example.h, and include it from the relevant samples. Signed-off-by: Joe Stringer Cc: Alexei Starovoitov Cc: Daniel

[PATCH resend] IB/core: fix unmap_sg argument

2016-12-13 Thread Sebastian Ott
Hi, using dapltest on s390 I ran into the following warning: [ 20.781709] mlx4_core :00:00.0: DMA-API: device driver frees DMA sg list with different entry count [map count=2] [unmap count=1] [ 20.781760] [ cut here ] [ 20.781767] WARNING: CPU: 4 PID: 1063 at li

[PATCH 01/22] perf tools: Move headers check into bash script

2016-12-13 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa To make it nicer and easily maintainable. Also moving the check into fixdep sub make, so its output is not scattered around the build output. Removing extra $$ from mman*.h checks. Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim

[PATCH 05/22] perf sched timehist: Skip non-idle events when necessary

2016-12-13 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Sometimes it only focuses on idle-related events like upcoming idle-hist feature. In this case we don't want to see other event to reduce noise. Signed-off-by: Namhyung Kim Acked-by: David Ahern Cc: Andi Kleen Cc: Jiri Olsa Cc: Minchan Kim Cc: Peter Zijlstra Link: http:

[PATCH 07/22] perf sched timehist: Show callchains for idle stat

2016-12-13 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim When --idle-hist option is used with --summary, it now shows idle stats with callchains like below: Idle stats by callchain: CPU 0: 902.195 msec Idle time (msec)Count Callchains --- --

Re: [PATCH] Coccinelle: uslee_range: ensure delta not zero

2016-12-13 Thread Julia Lawall
issue > > > a warning if delta is 0. > > > > > > Signed-off-by: Nicholas Mc Guire > > > --- > > > > > > As of 4.9.0 this finds about 20 cases - all of which look like the > > > should be passing a range. > > > > > > Patch

[PATCH 18/22] perf evsel: Use variable instead of repeating lengthy FD macro

2016-12-13 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa It's more readable and will ease up following patches. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1481538943-21874-3-git-send-email-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util

[PATCH 04/22] perf sched timehist: Save callchain when entering idle

2016-12-13 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim In order to investigate the idleness reason, it is necessary to keep the callchains when entering idle. This can be identified by the sched:sched_switch event having the next_pid field as 0. Signed-off-by: Namhyung Kim Acked-by: David Ahern Cc: Andi Kleen Cc: Jiri Olsa Cc

[GIT PULL 00/22] perf/core improvements and fixes

2016-12-13 Thread Arnaldo Carvalho de Melo
t.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-20161213 for you to fetch changes up to a03f73547fb6e0f7f2942c46cce9b48df50238ba: samples/bpf: Drop unnecessary build targets. (2016-12-13 10:38:10 -0300) --

[PATCH 21/22] perf record: Force ignore_missing_thread for uid option

2016-12-13 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Enable perf_evsel::ignore_missing_thread for -u option to ignore complete failure if any of the user's processes die between its enumeration and time we open the event. Committer notes: While doing a 'make -j4 allmodconfig' we sometimes get into the race: Before: # perf reco

Re: [PATCH v4 5/5] i2c: designware: Cleaning comments and formatation

2016-12-13 Thread Jarkko Nikula
On 12/07/2016 07:55 PM, Luis Oliveira wrote: - Missspelling, comment formatation and fix a string of the existing code Signed-off-by: Luis Oliveira --- Changes V3->V4: (Andy Shevchenko) - created a commit message drivers/i2c/busses/i2c-designware-common.c | 2 +- drivers/i2c/busses/i2c-des

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

2016-12-13 Thread Jens Axboe
On 12/13/2016 04:04 AM, Bart Van Assche wrote: > On 12/08/2016 09:13 PM, Jens Axboe wrote: >> +static int dd_init_queue(struct request_queue *q, struct elevator_type *e) >> +{ >> +struct deadline_data *dd; >> +struct elevator_queue *eq; >> + >> +eq = elevator_alloc(q, e); >> +if (!e

[PATCH] drm: tilcdc: simplify the recovery from sync lost error on rev1

2016-12-13 Thread Bartosz Golaszewski
Revision 2 of LCDC suffers from an issue where a SYNC_LOST error caused by limited memory bandwidth may leave the picture shifted a couple pixels to the right. This issue has not been observed on revision 1, while the recovery mechanism introduces a different issue, where the END_OF_FRAME interrup

Re: [PATCH 7/7] blk-mq-sched: allow setting of default IO scheduler

2016-12-13 Thread Jens Axboe
On 12/13/2016 03:13 AM, Bart Van Assche wrote: > On 12/08/2016 09:13 PM, Jens Axboe wrote: >> +config DEFAULT_MQ_IOSCHED >> +string >> +default "mq-deadline" if DEFAULT_MQ_DEADLINE >> +default "none" if DEFAULT_MQ_NONE >> + >> endmenu >> >> +config MQ_IOSCHED_ONLY_SQ >> +bool "Enab

Re: usb/core: warning in usb_create_ep_devs/sysfs_create_dir_ns

2016-12-13 Thread Dmitry Vyukov
On Mon, Dec 12, 2016 at 11:04 PM, Alan Stern wrote: > On Mon, 12 Dec 2016, Alan Stern wrote: > >> On Mon, 12 Dec 2016, Dmitry Vyukov wrote: >> >> > On Mon, Dec 12, 2016 at 10:05 PM, Alan Stern >> > wrote: >> > > On Mon, 12 Dec 2016, Andrey Konovalov wrote: >> > > >> > >> Hi! >> > >> >> > >> Whil

Re: [PATCH 2/7] blk-mq: abstract out blk_mq_dispatch_rq_list() helper

2016-12-13 Thread Jens Axboe
On 12/13/2016 01:51 AM, Bart Van Assche wrote: > On 12/08/2016 09:13 PM, Jens Axboe wrote: >> +static void blk_mq_process_rq_list(struct blk_mq_hw_ctx *hctx) >> +{ >> +LIST_HEAD(rq_list); >> +LIST_HEAD(driver_list); > > Hello Jens, > > driver_list is not used in this function so please co

Re: [PATCH] Fix multiple definition error under lto

2016-12-13 Thread Jiri Kosina
On Mon, 12 Dec 2016, Eduardo Valentin wrote: > > > drivers/thermal/built-in.o: In function `type_show.lto_priv.33': > > > (.text+0x3d80): multiple definition of `type_show.lto_priv.33' > > > drivers/base/built-in.o:(.text+0x2a40): first defined here > > > > > can you illustrate how to reproduce t

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

2016-12-13 Thread Paul E. McKenney
On Tue, Dec 13, 2016 at 08:25:42PM +0800, Boqun Feng wrote: > On Tue, Dec 13, 2016 at 07:21:48PM +0800, 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 > > > ex

[RFC PATCH v3] audit: use proper refcount locking on audit_sock

2016-12-13 Thread Richard Guy Briggs
Resetting audit_sock appears to be racy. audit_sock was being copied and dereferenced without using a refcount on the source sock. Bump the refcount on the underlying sock when we store a refrence in audit_sock and release it when we reset audit_sock. audit_sock modification needs the audit_cmd_

Re: [PATCH V8 1/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-12-13 Thread Agustin Vega-Frias
Hi Lorenzo, On 2016-12-08 06:05, Lorenzo Pieralisi wrote: Hi Agustin, please CC me for next version. On Tue, Nov 29, 2016 at 05:57:37PM -0500, Agustin Vega-Frias wrote: When an Extended IRQ Resource contains a valid ResourceSource use it to map the IRQ on the domain associated with the ACPI d

Re: [PATCH v2] audit: use proper refcount locking on audit_sock

2016-12-13 Thread Richard Guy Briggs
On 2016-12-13 00:10, Richard Guy Briggs wrote: > On 2016-12-12 15:18, Paul Moore wrote: > > On Mon, Dec 12, 2016 at 5:03 AM, Richard Guy Briggs wrote: > > > Resetting audit_sock appears to be racy. > > > > > > audit_sock was being copied and dereferenced without using a refcount on > > > the sourc

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

2016-12-13 Thread Paul E. McKenney
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

Re: [PATCH v2] audit: use proper refcount locking on audit_sock

2016-12-13 Thread Richard Guy Briggs
On 2016-12-12 15:58, Cong Wang wrote: > On Mon, Dec 12, 2016 at 2:03 AM, Richard Guy Briggs wrote: > > Resetting audit_sock appears to be racy. > > > > audit_sock was being copied and dereferenced without using a refcount on > > the source sock. > > > > Bump the refcount on the underlying sock whe

RE: [PATCH V7 5/8] arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2016-12-13 Thread Sricharan
-coherent? >>>> + * @attrs: DMA attributes for the mapping >>>> * >>>> * Return: corresponding IOMMU API page protection flags >>>> */ >>>> -int dma_direction_to_prot(enum dma_data_direction dir, bool coherent) >>>> +int dma_info_t

Re: [PATCH RFC] [media] s5k6aa: set usleep_range greater 0

2016-12-13 Thread Sylwester Nawrocki
Hi Laurent, On 12/13/2016 03:10 PM, Laurent Pinchart wrote: > As pointed out by Ian Arkver, the datasheet states the delay should be >50µs. > Would it make sense to reduce the sleep duration to (3000, 4000) for instance > (or possibly even lower), instead of increasing it ? Theoretically it wou

[PATCH v2 3/7] hwrng: core: Rewrite the header

2016-12-13 Thread Corentin Labbe
checkpatch have lot of complaint about header. Furthermore, the header have some offtopic/useless information. This patch rewrite a proper header. Signed-off-by: Corentin Labbe --- drivers/char/hw_random/core.c | 38 +- 1 file changed, 9 insertions(+), 29 del

[PATCH v2 2/7] hwrng: core: rewrite better comparison to NULL

2016-12-13 Thread Corentin Labbe
This patch fix the checkpatch warning "Comparison to NULL could be written "!ptr" Signed-off-by: Corentin Labbe --- drivers/char/hw_random/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index 00cbb81..70

[PATCH v2 6/7] hwrng: core: remove unused PFX macro

2016-12-13 Thread Corentin Labbe
This patch remove the unused PFX macro. Signed-off-by: Corentin Labbe --- drivers/char/hw_random/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index 1e1e385..5c654b5 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers

[PATCH v2 4/7] hwrng: core: Replace asm/uaccess.h by linux/uaccess.h

2016-12-13 Thread Corentin Labbe
This patch fix the checkpatch warning about asm/uaccess.h. In the same time, we sort the headers in alphabetical order. Signed-off-by: Corentin Labbe --- drivers/char/hw_random/core.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/char/hw_random/core

[PATCH v2 5/7] hwrng: core: Move hwrng miscdev minor number to include/linux/miscdevice.h

2016-12-13 Thread Corentin Labbe
This patch move the define for hwrng's miscdev minor number to include/linux/miscdevice.h. It's better that all minor number are in the same place. Rename it to HWRNG_MINOR (from RNG_MISCDEV_MINOR) in he process since no other miscdev define have MISCDEV in their name. Signed-off-by: Corentin Labb

[PATCH v2 7/7] hwrng: core: Remove linux/sched.h from includes

2016-12-13 Thread Corentin Labbe
linux/sched.h is useless for hw_random/core.c. This patch remove it. Signed-off-by: Corentin Labbe --- Change since v1: - linux/fs.h was needed, keep it drivers/char/hw_random/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.

[PATCH v2 1/7] hwrng: core: do not use multiple blank lines

2016-12-13 Thread Corentin Labbe
This patch fix the checkpatch warning "Please don't use multiple blank lines" Signed-off-by: Corentin Labbe --- drivers/char/hw_random/core.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index d2d2c89..00cbb81 100644 --- a/

Re: mlx5: net_device.addr_list_lock usage before initialization

2016-12-13 Thread Saeed Mahameed
On Tue, Dec 13, 2016 at 3:22 PM, Sebastian Ott wrote: > Hi, > > I ran into the following lockdep complaint: > > [7.059561] INFO: trying to register non-static key. > [7.059566] the code is fine but needs lockdep annotation. > [7.059570] turning off the locking correctness validator. >

Re: [PATCH V7 5/8] arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2016-12-13 Thread Robin Murphy
t;> +unsigned long attrs) >>> { >>> int prot = coherent ? IOMMU_CACHE : 0; >>> >>> + if (attrs & DMA_ATTR_PRIVILEGED) >>> + prot |= IOMMU_PRIV; >>> + >>> switch (dir) { >>> case DMA_BIDIREC

[PATCH] greybus: timesync: replace init_timer with setup_timer

2016-12-13 Thread Xie Qirong
/timesync.c:1058:1-11: Use setup_timer function for function on line 1059. Patch was compile checked with: x86_64_defconfig + CONFIG_STAGING=y, CONFIG_GREYBUS=m Kernel version: 4.9.0 (localversion-next is next-20161213) drivers/staging/greybus/timesync.c | 5 ++--- 1 file changed, 2

[PATCH] locking/hung_task: Defer showing held locks

2016-12-13 Thread Tetsuo Handa
When I was running my testcase which may block hundreds of threads on fs locks, I got lockup due to output from debug_show_all_locks() added by commit b2d4c2edb2e4f89a ("locking/hung_task: Show all locks"). I think we don't need to call debug_show_all_locks() on each blocked thread. Let's defer ca

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

2016-12-13 Thread Bart Van Assche
On 12/08/2016 09:13 PM, Jens Axboe wrote: +static inline void blk_mq_sched_put_request(struct request *rq) +{ + struct request_queue *q = rq->q; + struct elevator_queue *e = q->elevator; + + if (e && e->type->mq_ops.put_request) + e->type->mq_ops.put_request(rq); +

Re: [PATCH] firmware: dmi_scan: Always show system identification string

2016-12-13 Thread Ard Biesheuvel
On 13 December 2016 at 14:42, Jean Delvare wrote: > On mar., 2016-12-13 at 14:25 +, Ard Biesheuvel wrote: >> On 12 December 2016 at 01:51, Kefeng Wang wrote: >> > >> > >> > On 2016/12/9 22:55, Ard Biesheuvel wrote: >> >> On 9 December 2016 at 06:54, Kefeng Wang >> >> wrote: >> >>> Let's kee

Re: [PATCH] firmware: dmi_scan: Always show system identification string

2016-12-13 Thread Jean Delvare
On mar., 2016-12-13 at 14:25 +, Ard Biesheuvel wrote: > On 12 December 2016 at 01:51, Kefeng Wang wrote: > > > > > > On 2016/12/9 22:55, Ard Biesheuvel wrote: > >> On 9 December 2016 at 06:54, Kefeng Wang > >> wrote: > >>> Let's keep consistent when print dmi_ids_string between SMBIOS 2.x >

[PATCH] lib/Kconfig.debug: correct documentation paths

2016-12-13 Thread Hans Holmberg
A bunch of documentation files have moved, correct the paths. Signed-off-by: Hans Holmberg --- lib/Kconfig.debug | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index e6327d1..18ffa80 100644 --- a/lib/Kconfig.debug ++

Re: [PATCH 09/10] s390/cputime: delayed accounting of system time

2016-12-13 Thread Frederic Weisbecker
On Tue, Dec 13, 2016 at 12:13:22PM +0100, Martin Schwidefsky wrote: > On Mon, 12 Dec 2016 16:02:30 +0100 > Frederic Weisbecker wrote: > > > On Mon, Dec 12, 2016 at 11:27:54AM +0100, Martin Schwidefsky wrote: > > > 3) The call to vtime_flush in account_process_tick is done in irq context > > > fr

RE: [PATCH V7 5/8] arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2016-12-13 Thread Sricharan
? IOMMU_CACHE : 0; >> >> +if (attrs & DMA_ATTR_PRIVILEGED) >> +prot |= IOMMU_PRIV; >> + >> switch (dir) { >> case DMA_BIDIRECTIONAL: >> return prot | IOMMU_READ | IOMMU_WRITE; > >...and applying against -next now also

4.9.0 build error on Alpha

2016-12-13 Thread Bob Tracy
Got all the way to the end of the 4.9-final kernel build, and ran into the following: LD init/built-in.o arch/alpha/lib/lib.a(strcat.o): In function `strcat': (.text+0x60): relocation truncated to fit: BRADDR against symbol `__stxcpy' defined in .text section in arch/alpha/lib/lib.a(stxcpy

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

2016-12-13 Thread Arvind Yadav
Here, If devm_ioremap will fail. It will return NULL. Kernel can run into a NULL-pointer dereference. This error check will avoid NULL pointer dereference. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/cavium/octeon/octeon_mgmt.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/d

Re: WARNING: kernel stack frame pointer at ffffffff82e03f40 in swapper:0 has bad value (null)

2016-12-13 Thread Josh Poimboeuf
On Mon, Dec 12, 2016 at 05:05:11PM -0600, Josh Poimboeuf wrote: > On Mon, Dec 12, 2016 at 11:33:54PM +0100, Borislav Petkov wrote: > > On Mon, Dec 12, 2016 at 04:11:47PM -0600, Josh Poimboeuf wrote: > > > Yes, please. > > > > Attached. > > Thanks, I was able to recreate. Will take a look tomorro

Re: [PATCH] selftest: sync: improve assert() failure message

2016-12-13 Thread Shuah Khan
On 12/13/2016 06:48 AM, Gustavo Padovan wrote: > From: Gustavo Padovan > > Print "ERROR" on all messages instead of using the not well defined terms > like "BAD". > > Signed-off-by: Gustavo Padovan > --- > tools/testing/selftests/sync/synctest.h | 2 +- > 1 file changed, 1 insertion(+), 1 dele

[PATCH v9 3/3] iio: adc: add support for Allwinner SoCs ADC

2016-12-13 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. This patch adds the ADC driver which is based on the MFD for the same SoCs ADC. This also registers the thermal adc channel in the iio map array so iio_hwmon could use it without modifying the De

[PATCH] seq_file: reset iterator to first record for zero offset

2016-12-13 Thread Miklos Szeredi
From: Tomasz Majchrzak Date: Tue, 29 Nov 2016 15:18:20 +0100 If kernfs file is empty on a first read, successive read operations using the same file descriptor will return no data, even when data is available. Default kernfs 'seq_next' implementation advances iterator position even when next obje

[PATCH v9 2/3] mfd: Kconfig: MFD_SUN4I_GPADC depends on !TOUCHSCREN_SUN4I_GPADC

2016-12-13 Thread Quentin Schulz
MFD_SUN4I_GPADC and TOUCHSCREEN_SUN4I are incompatible (both are drivers for Allwinner SoCs' ADC). This makes sure TOUCHSCREEN_SUN4I isn't enabled while MFD_SUN4I_GPADC is enabled. Signed-off-by: Quentin Schulz --- added in v8. I wrongly put the XOR dependance for SUN4I_GPADC and TOUCHSCREEN_SUN

[PATCH v9 0/3] add support for Allwinner SoCs ADC

2016-12-13 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. The first four channels can be used either for the ADC or the touchscreen and the fifth channel is used for the thermal sensor. We currently have a driver for the two latter functions in drivers/i

[PATCH v9 1/3] ARM: sunxi_defconfig: Add CONFIG_THERMAL_OF

2016-12-13 Thread Quentin Schulz
This enables CONFIG_THERMAL_OF by default for sunxi_defconfig. It is required to get Allwinner SoCs' temperature from the GPADC driver. The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. The first four channels can be used either for the ADC or t

[PATCH v6 2/2] Add support for OV5647 sensor.

2016-12-13 Thread Ramiro Oliveira
Modes supported: - 640x480 RAW 8 Signed-off-by: Ramiro Oliveira --- MAINTAINERS| 7 + drivers/media/i2c/Kconfig | 12 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/ov5647.c | 718 + 4 files changed, 738 insertions(+) cre

[PATCH v6 1/2] Add OV5647 device tree documentation

2016-12-13 Thread Ramiro Oliveira
Create device tree bindings documentation. Signed-off-by: Ramiro Oliveira --- .../devicetree/bindings/media/i2c/ov5647.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov5647.txt diff --git a/Documentation/de

[PATCH v6 0/2] Add support for Omnivision OV5647

2016-12-13 Thread Ramiro Oliveira
Hello, This patch adds support for the Omnivision OV5647 sensor. At the moment it only supports 640x480 in Raw 8. This is the sixth version of the OV5647 camera driver patchset. v6: - Add example to DT documentation - Remove data-lanes and clock-lane property from DT - Add external clock pro

[PATCH] crypto: bring back alphabetical order of Makefile

2016-12-13 Thread Corentin Labbe
THe major content of drivers/crypto/Makefile is sorted, only recent addition break this sort. This patch bring back this alphabetical sorting. Signed-off-by: Corentin Labbe --- drivers/crypto/Makefile | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/crypt

[PATCH v4 0/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2016-12-13 Thread Serge Semin
Changelog v3: - Get rid of dev_*_idt() macros - Replace to_pdev_kobj() macro with naked dev_get_drvdata() call - Return naked 0 instead of SUCCESS macro - IDT CSR debug file is moved to debugfs - BIN_ATTR_RW is used to declare sysfs binary attribute - Moved bindings file to a separate patch - Need

[PATCH v4 2/2] eeprom: Add IDT 89HPESx driver bindings file

2016-12-13 Thread Serge Semin
IDT 89HPESx PCIe-switches exposes SMBus interface to have an access to the device CSRs and EEPROM. So to properly utilize the interface functionality, developer should declare a valid dts-file node, which would refer to the corresponding 89HPESx device. Signed-off-by: Serge Semin --- .../devicet

Re: [PATCH 4/5] 9p: introduce async read requests

2016-12-13 Thread Latchesar Ionkov
If the user asked for more than msize-iohdrsz (or rather iounit) bytes, you should do your best to read as much as possible before you return to user space. That means that if a read returns the maximum possible count you HAVE to issue another read until you get a short read. What Al is hinting at

Re: [PATCH] iio: misc: add a generic regulator driver

2016-12-13 Thread Bartosz Golaszewski
2016-12-12 18:15 GMT+01:00 Lars-Peter Clausen : > On 12/06/2016 12:12 PM, Bartosz Golaszewski wrote: [snip!] >> >> So the problem we have is not power-cycling the adc - it's >> power-cycling the device connected to a probe on which there's an adc. >> What I was trying to do was adding support for

Re: [PATCH] firmware: dmi_scan: Always show system identification string

2016-12-13 Thread Ard Biesheuvel
On 12 December 2016 at 01:51, Kefeng Wang wrote: > > > On 2016/12/9 22:55, Ard Biesheuvel wrote: >> On 9 December 2016 at 06:54, Kefeng Wang wrote: >>> Let's keep consistent when print dmi_ids_string between SMBIOS 2.x >>> and SMBIOS 3.x, and always show the system identification string, >>> like

Re: [PATCH v2 3/4] printk/btrfs: Handle more message headers

2016-12-13 Thread David Sterba
On Tue, Dec 13, 2016 at 02:52:47PM +0100, Petr Mladek wrote: > Here is the proposed fix for the warning: > > > From 5b5a8f7ff4f2d5c33316e600a29d45314ac47a16 Mon Sep 17 00:00:00 2001 > From: Petr Mladek > Date: Tue, 13 Dec 2016 13:12:56 +0100 > Subject: [PATCH] btrfs: Better handle btrfs_printk()

[PATCH v4 6/9] clk: stm32f4: Add SAI clocks

2016-12-13 Thread gabriel.fernandez
From: Gabriel Fernandez This patch introduces SAI clocks for stm32f4 socs. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32f4.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/clk/clk-stm32f4.c b/drivers/clk/clk-stm32f4.c index a7a6a16..2bff436 100644 --

[PATCH v4 2/9] clk: stm32f4: Add PLL_I2S & PLL_SAI for STM32F429/469 boards

2016-12-13 Thread gabriel.fernandez
From: Gabriel Fernandez This patch introduces PLL_I2S and PLL_SAI. Vco clock of these PLLs can be modify by DT (only n multiplicator, m divider is still fixed by the boot-loader). Each PLL has 3 dividers. PLL should be off when we modify the rate. Signed-off-by: Gabriel Fernandez Acked-by: Rob

[PATCH v4 1/9] clk: stm32f4: Update DT bindings documentation

2016-12-13 Thread gabriel.fernandez
From: Gabriel Fernandez Creation of dt include file for specific stm32f4 clocks. These specific clocks are not derived from system clock (SYSCLOCK) We should use index 1 to use these clocks in DT. e.g. <&rcc 1 CLK_LSI> Signed-off-by: Gabriel Fernandez Acked-by: Rob Herring --- .../devicetree/

[PATCH v4 5/9] clk: stm32f4: Add I2S clock

2016-12-13 Thread gabriel.fernandez
From: Gabriel Fernandez This patch introduces I2S clock for stm32f4 soc. The I2S clock could be derived from an external clock or from pll-i2s Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32f4.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH v4 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2016-12-13 Thread Serge Semin
This driver provides an access to EEPROM of IDT PCIe-switches. IDT PCIe- switches expose a simple SMBus interface to perform IO-operations from/to EEPROM, which is located at private (so called Master) SMBus. The driver creates a simple binary sysfs-file to have an access to the EEPROM using the

[PATCH v4 9/9] ARM: dts: stm32f4: Include auxiliary stm32fx clock definition

2016-12-13 Thread gabriel.fernandez
From: Gabriel Fernandez This patch include auxiliary clock definition (clocks which are not derived from system clock. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32f429.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/

[PATCH v4 4/9] clk: stm32f4: Add lcd-tft clock

2016-12-13 Thread gabriel.fernandez
From: Gabriel Fernandez This patch introduces lcd-tft clock for stm32f4 soc. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32f4.c | 114 ++ 1 file changed, 114 insertions(+) diff --git a/drivers/clk/clk-stm32f4.c b/drivers/clk/clk-stm32f4.

[PATCH v4 3/9] clk: stm32f4: Add post divisor for I2S & SAI PLLs

2016-12-13 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds post dividers of I2S & SAI PLLs. These dividers are managed by a dedicated register (RCC_DCKCFGR). The PLL should be off before a set rate. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32f4.c | 55 ++

[PATCH v4 0/9] STM32F4 missing clocks

2016-12-13 Thread gabriel.fernandez
From: Gabriel Fernandez v4: - Fix post divider for lcd (replace CLK_DIVIDER_POWER_OF_TWO flage by a divider table) - Allow posibility to change parent of SAI clocks. - Use common definition file for STM32Fx clocks. v3: - restructure the patch series to have only one patch for all bindings c

[PATCH v4 8/9] ARM: dts: stm32f4: Add external I2S clock

2016-12-13 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds an external I2S clock in the DT. The I2S clock could be derived from an external I2S clock or by I2S pll. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32f429.dtsi | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arc

[PATCH v4 7/9] clk: stm32f4: SDIO & 48Mhz clock management for STM32F469 board

2016-12-13 Thread gabriel.fernandez
From: Gabriel Fernandez In the stm32f469 soc, the 48Mhz clock could be derived from pll-q or from pll-sai-p. The SDIO clock could be also derived from 48Mhz or from sys clock. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32f4.c | 49 ---

Re: Revised keyrings(7) man page for review

2016-12-13 Thread David Howells
Michael Kerrisk (man-pages) wrote: > The payload data may be stored in a tmpfs filesystem, > rather than in kernel memory, if the data size exceeds the > overhead of storing the data in the filesystem. (Storing > the data in a fil

ATENCIÓN;

2016-12-13 Thread Administrador
ATENCIÓN; Su buzón ha superado el límite de almacenamiento, que es de 5 GB definidos por el administrador, quien actualmente está ejecutando en 10.9GB, no puede ser capaz de enviar o recibir correo nuevo hasta que vuelva a validar su buzón de correo electrónico. Para revalidar su buzón de corre

[PATCH v2 3/3] drivers: crypto: Enable CPT options crypto for build

2016-12-13 Thread George Cherian
Add the CPT options in crypto Kconfig and update the crypto Makefile Signed-off-by: George Cherian --- drivers/crypto/Kconfig | 1 + drivers/crypto/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 4d2b81f..15f9040 100644 --- a/

[PATCH v2 2/3] drivers: crypto: Add the Virtual Function driver for CPT

2016-12-13 Thread George Cherian
Enable the CPT VF driver. CPT is the cryptographic Accelaration Unit in Octeon-tx series of processors. Signed-off-by: George Cherian --- drivers/crypto/cavium/cpt/Makefile | 3 +- drivers/crypto/cavium/cpt/cptvf.h| 145 drivers/crypto/cavium/cpt/cptvf_algs.c |

Re: [PATCH v2] kasan: Support for r/w instrumentation control

2016-12-13 Thread Dmitry Vyukov
On Tue, Dec 13, 2016 at 2:59 PM, Andrey Ryabinin wrote: > On 12/13/2016 12:38 PM, Dmitry Vyukov wrote: >> On Tue, Dec 13, 2016 at 10:20 AM, Andrey Ryabinin >> wrote: >>> >>> >>> On 12/13/2016 11:58 AM, Dmitry Vyukov wrote: >>> --- a/Documentation/dev-tools/kasan.rst +++ b/Documentation/

Re: [PATCH v4 3/5] i2c: designware: Add slave definitions

2016-12-13 Thread Rob Herring
Again, please don't top post. And your line wrapping is messed up. IOW, you can't use Outlook. On Tue, Dec 13, 2016 at 4:50 AM, Luis de Oliveira wrote: > The controller for i2c-designware cannot be slave/master at the same time and > it has to be enabled knowing beforehand if we want it to be sl

Re: [PATCH v2] crypto: sun4i-ss: support the Security System PRNG

2016-12-13 Thread Corentin Labbe
On Thu, Dec 08, 2016 at 05:06:18PM +0800, Herbert Xu wrote: > On Wed, Dec 07, 2016 at 01:51:27PM +0100, Corentin Labbe wrote: > > > > So I must expose it as a crypto_rng ? > > If it is to be exposed at all then algif_rng would be the best > place. > > > Could you explain why PRNG must not be use

Re: [PATCH RFC] [media] s5k6aa: set usleep_range greater 0

2016-12-13 Thread Laurent Pinchart
Hi Sylwester, On Tuesday 13 Dec 2016 13:38:52 Sylwester Nawrocki wrote: > On 12/13/2016 02:58 AM, Nicholas Mc Guire wrote: > > As this is not in atomic context and it does not seem like a critical > > timing setting a range of 1ms allows the timer subsystem to optimize > > the hrtimer here. > > >

Re: [PATCH v2 2/2] eeprom: Add IDT 89HPESx driver bindings file

2016-12-13 Thread Serge Semin
On Mon, Dec 12, 2016 at 05:04:31PM -0600, Rob Herring wrote: > On Mon, Dec 5, 2016 at 1:04 PM, Serge Semin wrote: > > On Mon, Dec 05, 2016 at 11:27:07AM -0600, Rob Herring > > wrote: > >> On Mon, Dec 5, 2016 at 9:25 AM, Serge Semin > >> wrote: > >> > On Mon, Dec 05, 2016 at 08:46:21AM -0600,

Re: [PATCH] Input: ar1021-i2c - fix too long name in driver's device table

2016-12-13 Thread Jean Delvare
Hi Dmitry, On lun., 2016-12-12 at 15:57 -0800, Dmitry Torokhov wrote: > The name field in structure i2c_device_id is 20 characters, and we > expect it to be NULL-terminated, however we are trying to stuff it with > 21 bytes and thus NULL-terminator is lost. This causes issues when one > creates de

Re: [PATCH] selftests: ftrace: Shift down default message verbosity

2016-12-13 Thread Shuah Khan
On 12/12/2016 08:23 PM, Masami Hiramatsu wrote: > Ping? > > On Fri, 25 Nov 2016 21:58:48 +0900 > Masami Hiramatsu wrote: > >> Shift down default message verbosity, so that do not show >> error results in stdout by default. Since that behavior >> is same as giving --quiet option, this patch remov

Re: [PATCH V7 5/8] arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2016-12-13 Thread Robin Murphy
mu_dma_map_resource(struct device *dev, phys_addr_t phys, size_t size, enum dma_data_direction dir, unsigned long attrs) { return __iommu_dma_map(dev, phys, size, - dma_direction_to_prot(dir, false) | IOMMU_MMIO); + dma_info_to_prot(dir, fal

Re: [PATCH v2 3/4] printk/btrfs: Handle more message headers

2016-12-13 Thread Geert Uytterhoeven
Hi Petr, On Tue, Dec 13, 2016 at 2:52 PM, Petr Mladek wrote: > From 5b5a8f7ff4f2d5c33316e600a29d45314ac47a16 Mon Sep 17 00:00:00 2001 > From: Petr Mladek > Date: Tue, 13 Dec 2016 13:12:56 +0100 > Subject: [PATCH] btrfs: Better handle btrfs_printk() defaults > MIME-Version: 1.0 > Content-Type: te

Re: [PATCH v2] kasan: Support for r/w instrumentation control

2016-12-13 Thread Andrey Ryabinin
On 12/13/2016 12:38 PM, Dmitry Vyukov wrote: > On Tue, Dec 13, 2016 at 10:20 AM, Andrey Ryabinin > wrote: >> >> >> On 12/13/2016 11:58 AM, Dmitry Vyukov wrote: >> >>> --- a/Documentation/dev-tools/kasan.rst >>> +++ b/Documentation/dev-tools/kasan.rst >>> @@ -40,6 +40,14 @@ similar to the following

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

2016-12-13 Thread Bart Van Assche
On 12/08/2016 09:13 PM, Jens Axboe wrote: +/* + * Empty set + */ +static struct blk_mq_ops mq_sched_tag_ops = { + .queue_rq = NULL, +}; Hello Jens, Would "static struct blk_mq_ops mq_sched_tag_ops;" have been sufficient? Can this data structure be declared 'const' if the blk_mq_op

Re: [PATCH V7 4/8] common: DMA-mapping: add DMA_ATTR_PRIVILEGED attribute

2016-12-13 Thread Robin Murphy
On 12/12/16 18:38, Sricharan R wrote: > From: Mitchel Humpherys > > This patch adds the DMA_ATTR_PRIVILEGED attribute to the DMA-mapping > subsystem. > > Some advanced peripherals such as remote processors and GPUs perform > accesses to DMA buffers in both privileged "supervisor" and unprivilege

Re: [RFC v2 00/13] usb/mmc/power: Fix USB/LAN when TFTP booting

2016-12-13 Thread Krzysztof Kozlowski
On Tue, Dec 13, 2016 at 2:34 PM, Hans Verkuil wrote: > Try again, this time with Krzysztof's new email address... > > > On 13/12/16 13:20, Hans Verkuil wrote: >> >> Hi Krzysztof, >> >> This still seems to be broken with the latest 4.9 kernel, right? >> >> Has there been any progress on this? Do yo

mmotm git tree since-4.9 branch created (was: mmotm 2016-12-12-17-02 uploaded)

2016-12-13 Thread Michal Hocko
I have just created since-4.9 branch in mm git tree (http://git.kernel.org/?p=linux/kernel/git/mhocko/mm.git;a=summary). It is based on v4.9 tag in Linus tree and mmotm-2016-12-12-17-02. Tracking all the dax related changes was quite challenging but I hope I have it all. I have pulled from

Re: [PATCH] ath9k: unlock rcu read when returning early

2016-12-13 Thread Felix Fietkau
On 2016-12-13 14:41, Tobias Klausmann wrote: > On 13.12.2016 11:41, Felix Fietkau wrote: >> On 2016-12-12 19:50, Tobias Klausmann wrote: >>> diff --git a/drivers/net/wireless/ath/ath9k/xmit.c >>> b/drivers/net/wireless/ath/ath9k/xmit.c >>> index 52bfbb988611..857d5ae09a1d 100644 >>> --- a/drivers/

Re: [PATCH v2 3/4] printk/btrfs: Handle more message headers

2016-12-13 Thread Petr Mladek
On Tue 2016-12-13 10:21:27, Geert Uytterhoeven wrote: > Hi Petr, > > On Wed, Nov 9, 2016 at 1:41 PM, Petr Mladek wrote: > > The commit 4bcc595ccd80decb4245096e ("printk: reinstate KERN_CONT for > > printing continuation lines") allows to define more message headers > > for a single message. The m

Re: Revised keyrings(7) man page for review

2016-12-13 Thread Michael Kerrisk (man-pages)
On 12/13/2016 02:38 PM, David Howells wrote: > Michael Kerrisk (man-pages) wrote: > >> So, I've updated this piece a couple of times since the draft that you >> reviewed, and by now it reads: >> >>"big_key" (since Linux 3.13) >> This key type is similar to the "user" key typ

Re: [PATCHv5 00/11] CONFIG_DEBUG_VIRTUAL for arm64

2016-12-13 Thread Mark Rutland
On Tue, Dec 06, 2016 at 03:50:46PM -0800, Laura Abbott wrote: > Hi, > > This is v5 of the series to add CONFIG_DEBUG_VIRTUAL for arm64. This mostly > contains minor fixups including adding a few extra headers around and > splitting > things out into a few more sub-patches. > > With a few more ac

[PATCH] selftest: sync: improve assert() failure message

2016-12-13 Thread Gustavo Padovan
From: Gustavo Padovan Print "ERROR" on all messages instead of using the not well defined terms like "BAD". Signed-off-by: Gustavo Padovan --- tools/testing/selftests/sync/synctest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/sync/synctest.h b/

Re: [patch 2/2] x86/tsc: Force TSC_ADJUST register to value >= zero

2016-12-13 Thread Peter Zijlstra
On Tue, Dec 13, 2016 at 01:14:17PM -, Thomas Gleixner wrote: > @@ -429,8 +447,13 @@ void check_tsc_sync_target(void) >* that the warp is not longer detectable when the observed warp >* value is used. In the worst case the adjustment needs to go >* through a 3rd run for f

[PATCH 4/9] dmaengine: stm32-dma: Fix null pointer dereference in stm32_dma_tx_status

2016-12-13 Thread M'boumba Cedric Madianga
chan->desc is always set to NULL when a DMA transfer is complete. As a DMA transfer could be complete during the call of stm32_dma_tx_status, we need to be sure that chan->desc is not NULL before using this variable to avoid a null pointer deference issue. Signed-off-by: M'boumba Cedric Madianga

[PATCH 8/9] dmaengine: stm32-dma: Add synchronization support

2016-12-13 Thread M'boumba Cedric Madianga
Implement the new device_synchronize() callback to allow proper synchronization when stopping a channel. Signed-off-by: M'boumba Cedric Madianga --- drivers/dma/stm32-dma.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/dma/stm32-dma.c b/drivers/dma/stm32-dma.c index 35639f6

[PATCH 1/9] dmaengine: stm32-dma: Set correct args number for DMA request from DT

2016-12-13 Thread M'boumba Cedric Madianga
This patch sets the right number of arguments to be used for DMA clients which request channels from DT. Signed-off-by: M'boumba Cedric Madianga Reviewed-by: Ludovic BARRE --- drivers/dma/stm32-dma.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/dma/stm32-dm

[PATCH 5/9] dmaengine: stm32-dma: Rework starting transfer management

2016-12-13 Thread M'boumba Cedric Madianga
This patch reworks the way to manage transfer starting. Now, starting DMA is only allowed when the channel is not busy. Then, stm32_dma_start_transfer is declared as void. At least, after each transfer completion, we start the next transfer if a new descriptor as been queued in the issued list duri

<    2   3   4   5   6   7   8   9   10   >