Re: [PATCH 6/7] perf record: Add switch-output size option argument

2017-01-03 Thread Jiri Olsa
On Tue, Jan 03, 2017 at 11:20:27AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jan 03, 2017 at 09:19:59AM +0100, Jiri Olsa escreveu: > > It's now possible to specify the threshold size for > > perf.data like: > > > > $ perf record --switch-output=2G ... > > > > Once it's reached, the curre

Re: [PATCH v2] mmc: sdhci-cadence: add Socionext UniPhier specific compatible string

2017-01-03 Thread Adrian Hunter
On 14/12/16 04:10, Masahiro Yamada wrote: > Add a Socionext SoC specific compatible (suggested by Rob Herring). > > No SoC specific data are associated with the compatible strings for > now, but other SoC vendors may use this IP and want to differentiate > IP variants in the future. > > Signed-of

Re: [PATCH v2] fscrypt: Factor out bio specific functions

2017-01-03 Thread Theodore Ts'o
On Tue, Jan 03, 2017 at 10:49:26AM +0100, Richard Weinberger wrote: > Ted, > > Am 01.01.2017 um 22:47 schrieb Theodore Ts'o: > > On Mon, Dec 19, 2016 at 12:25:32PM +0100, Richard Weinberger wrote: > >> That way we can get rid of the direct dependency on CONFIG_BLOCK. > >> > >> Reported-by: Arnd Be

Re: [PATCH] staging: comedi: cb_pcidas64: Fixed coding issue about multiple line dereferencing

2017-01-03 Thread Greg KH
On Mon, Dec 19, 2016 at 08:44:28PM +0530, devendra sharma wrote: > Fixed coding issue about multiple line dereferencing > > Signed-off-by: Devendra Sharma > --- > drivers/staging/comedi/drivers/cb_pcidas64.c | 13 + > 1 file changed, 5 insertions(+), 8 deletions(-) Always test-build

[PATCH] Without a bool string present, using "# CONFIG_DEVPORT is not set" in defconfig files would not actually unset devport. This esnured that /dev/port was always on, but there are reasons a user

2017-01-03 Thread Max Bires
Signed-off-by: Max Bires Acked-by: Arnd Bergmann --- drivers/char/Kconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index fde005e..4ee2a10 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig @@ -571,9 +571,12 @@ c

[PATCH] perf/x86: Reject non sampling events with precise_ip

2017-01-03 Thread Jiri Olsa
On Tue, Jan 03, 2017 at 10:40:59AM +0100, Peter Zijlstra wrote: > On Wed, Dec 28, 2016 at 02:31:04PM +0100, Jiri Olsa wrote: > > When in counting mode we setup the counter with the > > longest possible period and read the value with read > > syscall. > > > > We also still setup the PMI to be trigg

[PATCH v4 13/15] mtd: nand: samsung: retrieve ECC requirements from extended ID

2017-01-03 Thread Boris Brezillon
From: Hans de Goede On some nand controllers with hw-ecc the controller code wants to know the ecc strength and size and having these as 0, 0 is not accepted. Specifying these in devicetree is possible but undesirable as the nand may be different in different production runs of the same board, s

Re: [RFC PATCH v2] crypto: Add IV generation algorithms

2017-01-03 Thread Gilad Ben-Yossef
Hi Binoy, On Tue, Dec 13, 2016 at 02:19:09PM +0530, Binoy Jayan wrote: > Currently, the iv generation algorithms are implemented in dm-crypt.c. > The goal is to move these algorithms from the dm layer to the kernel > crypto layer by implementing them as template ciphers so they can be > implemente

Re: [RFC PATCH net-next v4 1/2] macb: Add 1588 support in Cadence GEM.

2017-01-03 Thread Nicolas Ferre
Le 03/01/2017 à 11:47, Rafal Ozieblo a écrit : >> From: Harini Katakam [mailto:harinikatakamli...@gmail.com] >> Sent: 3 stycznia 2017 06:06 >> Subject: Re: [RFC PATCH net-next v4 1/2] macb: Add 1588 support in Cadence >> GEM. >> >> Hi Richard, >> >> On Mon, Jan 2, 2017 at 9:43 PM, Richard Cochran

[PATCH v7 0/2] soc: qcom: Add SoC info driver

2017-01-03 Thread Imran Khan
This is patchset v7 which takes care of review comments received for patchset v6. Major changes with respect to patch v6 are as below: - Rather than showing string for h/w types, just show the number obtained from SMEM. The reader of this number is supposed to parse this into a human reada

Re: [PATCH 6/7] perf record: Add switch-output size option argument

2017-01-03 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 03, 2017 at 11:20:27AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Jan 03, 2017 at 09:19:59AM +0100, Jiri Olsa escreveu: > > It's now possible to specify the threshold size for > > perf.data like: > > > > $ perf record --switch-output=2G ... > > > > Once it's reached, the cu

Re: [PATCH 6/7] perf record: Add switch-output size option argument

2017-01-03 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 03, 2017 at 09:19:59AM +0100, Jiri Olsa escreveu: > It's now possible to specify the threshold size for > perf.data like: > > $ perf record --switch-output=2G ... > > Once it's reached, the current data are dumped in to the > perf.data. file and session does on. s/does/goes/g Bu

[PATCH 2/3] genksyms: Fix segfault with invalid declarations

2017-01-03 Thread Michal Marek
Do not try to recover too early and segfault when parsing invalid declarations such as echo 'int (int);' | scripts/genksyms/genksyms echo 'int a, (int);' | scripts/genksyms/genksyms echo 'extern void *__inline_memcpy((void *), (const void *), (__kernel_size_t));' | scripts/genksyms/genksyms The

[PATCH 3/3] genksyms: Regenerate parser

2017-01-03 Thread Michal Marek
Regenerate the parser after 309d4cef4667 ("genksyms: Fix segfault with invalid declarations"). Reported-by: Reported-by: Borislav Petkov Signed-off-by: Michal Marek --- scripts/genksyms/parse.tab.c_shipped | 474 +-- 1 file changed, 234 insertions(+), 240 deletio

[PATCH v4 15/15] mtd: nand: hynix: add read-retry support for 1x nm MLC NANDs

2017-01-03 Thread Boris Brezillon
All Hynix MLC NANDs using the produced with the 1X nm process support read-retry. This read retry implementation should also be reusable for other Hynix NANDs, but the method to retrieve the read-retry parameters from the read-retry OTP area might change a bit (some NANDs are even using a fixed set

[PATCH 1/3] asm-prototypes: Clear any CPP defines before declaring the functions

2017-01-03 Thread Michal Marek
The asm-prototypes.h file is used to provide dummy function declarations for genksyms, when processing asm files with EXPORT_SYMBOL. Make sure that any architecture defines get out of our way. x86 currently has an issue with memcpy on 64bit with CONFIG_KMEMCHECK=y and with memset/__memset on 32bit:

Re: [PATCH] staging : lustre : Remove braces from single-line body.

2017-01-03 Thread Greg KH
On Wed, Dec 28, 2016 at 07:40:09PM +0530, Tabrez khan wrote: > Remove unnecessary braces from single-line if statement. > This warning is found using checkpatch.pl. > > Signed-off-by: Tabrez khan > --- > drivers/staging/lustre/lustre/ptlrpc/import.c | 4 ++-- > 1 file changed, 2 insertions(+), 2

Re: [PATCH] staging: lustre: headers: potential UAPI headers

2017-01-03 Thread Greg Kroah-Hartman
On Mon, Dec 19, 2016 at 12:06:47PM -0500, James Simmons wrote: > Not for landing. This is the purposed UAPI headers > with the removal of unlikely and debugging macros. > This is just for feedback to see if this is acceptable > for the upstream client. > > Signed-off-by: James Simmons > --- > ..

RE: [PATCH] backlight: da9052: Fix module autoload

2017-01-03 Thread Adam Thomson
On 02 January 2017 16:03, Javier Martinez Canillas wrote: > The driver has a platform device ID table with multiple device entries, > each setting a different register address in its driver_data to control > the WLED brightness. > > But the driver doesn't export these as aliases with MODULE_DEVIC

Re: [PATCH v6 01/14] ACPI: ARM64: IORT: minor cleanup for iort_match_node_callback()

2017-01-03 Thread Lorenzo Pieralisi
On Mon, Jan 02, 2017 at 09:31:32PM +0800, Hanjun Guo wrote: > Cleanup iort_match_node_callback() a little bit to reduce > some lines of code, aslo fix the indentation in iort_scan_node(). s/aslo/also "Also" in a commit log is a sign a patch should be split and that's what you should do even thoug

Re: [PATCH] staging: lustre: selftest: Make brw_inject_one_error() static

2017-01-03 Thread Greg KH
On Fri, Dec 23, 2016 at 09:12:44PM +0530, Karthik Nayak wrote: > Since the function brw_inject_one_error() is used only within > brw_test.c, make it static. This was reported as a warning by sparse. > > Signed-off-by: Karthik Nayak > --- > drivers/staging/lustre/lnet/selftest/brw_test.c | 2 +- >

[PATCH v7 2/2] Documentation/ABI: Add ABI information for QCOM socinfo driver

2017-01-03 Thread Imran Khan
The socinfo ABI document describes the information provided by socinfo driver and the corresponding attributes to access that information. Signed-off-by: Imran Khan --- Documentation/ABI/stable/sysfs-driver-qcom_socinfo | 147 + 1 file changed, 147 insertions(+) create mode

[PATCH v7 1/2] soc: qcom: Add SoC info driver

2017-01-03 Thread Imran Khan
The SoC info driver provides information such as Chip ID, Chip family, serial number and other such details about Qualcomm SoCs to user space, so that if needed some user space utility(like antutu) can query such information using sysfs interface. Signed-off-by: Imran Khan --- v6 --> v7: - Some

Re: [tpmdd-devel] [PATCH v2 0/2] tpm: enhance TPM 2.0 extend function to support multiple PCR banks

2017-01-03 Thread Jarkko Sakkinen
On Tue, Jan 03, 2017 at 12:15:50AM +0200, Jarkko Sakkinen wrote: > On Fri, Dec 30, 2016 at 02:02:28PM -0500, Nayna Jain wrote: > > IMA extends its hash measurements in the TPM PCRs, based on policy. > > The existing in-kernel TPM extend function extends only the SHA1 > > PCR bank. TPM 2.0 defines m

Re: [PATCH v2 2/6] staging: fbtft: do not override DMA coherent mask

2017-01-03 Thread Andy Shevchenko
On Tue, 2017-01-03 at 12:51 +0200, Andy Shevchenko wrote: > On Mon, 2017-01-02 at 19:14 +0100, Noralf Trønnes wrote: > > Den 02.01.2017 12:35, skrev Andy Shevchenko: > > > Usually it's not consumer's business to override resources passed > > > from > > > provider, in particularly DMA coherent mask.

Re: [tpmdd-devel] [PATCH v2 0/2] tpm: enhance TPM 2.0 extend function to support multiple PCR banks

2017-01-03 Thread Jarkko Sakkinen
On Tue, Jan 03, 2017 at 07:27:49AM -0500, Mimi Zohar wrote: > On Tue, 2017-01-03 at 00:15 +0200, Jarkko Sakkinen wrote: > > On Fri, Dec 30, 2016 at 02:02:28PM -0500, Nayna Jain wrote: > > > IMA extends its hash measurements in the TPM PCRs, based on policy. > > > The existing in-kernel TPM extend f

Re: [PATCH 0/2] Begin auditing SECCOMP_RET_ERRNO return actions

2017-01-03 Thread Tyler Hicks
On 01/02/2017 11:57 PM, Andy Lutomirski wrote: > On Mon, Jan 2, 2017 at 8:53 AM, Tyler Hicks wrote: >> This patch set creates the basis for auditing information specific to a given >> seccomp return action and then starts auditing SECCOMP_RET_ERRNO return >> actions. The audit messages for SECCOMP

Re: [PATCH] char: lack of bool string made CONFIG_DEVPORT always on

2017-01-03 Thread Greg KH
On Tue, Jan 03, 2017 at 04:53:13AM -0800, Max Bires wrote: > Without a bool string present, using "# CONFIG_DEVPORT is not set" in > defconfig files would not actually unset devport. This ensured that > /dev/port was always on, but there are reasons a user may wish to disable > it (smaller kernel,

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-03 Thread Jarkko Sakkinen
On Mon, Jan 02, 2017 at 01:40:48PM -0800, James Bottomley wrote: > On Mon, 2017-01-02 at 21:33 +0200, Jarkko Sakkinen wrote: > > On Mon, Jan 02, 2017 at 08:36:20AM -0800, James Bottomley wrote: > > > On Mon, 2017-01-02 at 15:22 +0200, Jarkko Sakkinen wrote: > > > > This patch set adds support for T

RE: [PATCH v2] watchdog: constify watchdog_info structures

2017-01-03 Thread Adam Thomson
On 26 December 2016 17:05, Bhumika Goyal wrote: > Declare watchdog_info structures as const as they are only stored in the > info field of watchdog_device structures. This field is of type const > struct watchdog_info *, so watchdog_info structures having this property > can be declared const too.

Re: [PATCH v2 2/3] dmaeninge: xilinx_dma: Fix bug in multiple frame stores scenario in vdma

2017-01-03 Thread Jose Abreu
Hi Kedar, On 02-01-2017 16:00, Appana Durga Kedareswara Rao wrote: > Hi Jose Miguel Abreu, > > Thanks for the review... > > [snip]... >> I just noticed there is a write to XILINX_DMA_REG_FRMSTORE which, by the >> description in the VDMA databook, allows to modify the total number of >> fram

Re: [PATCH 3/5] arm64: dts: sun50i: add MMC nodes

2017-01-03 Thread Chen-Yu Tsai
On Tue, Jan 3, 2017 at 6:48 PM, André Przywara wrote: > On 03/01/17 02:52, Chen-Yu Tsai wrote: > > Hi, > >> On Tue, Jan 3, 2017 at 7:03 AM, Andre Przywara >> wrote: >> >> A commit message explaining the mmc controllers would be nice. > > OK. > >>> Signed-off-by: Andre Przywara >>> --- >>> arch

Re: [PATCH 4/4] perf/x86/intel: Throttle PEBS events only from pmi

2017-01-03 Thread Peter Zijlstra
On Wed, Dec 28, 2016 at 02:31:06PM +0100, Jiri Olsa wrote: > This patch fixes following WARNING: > > WARNING: CPU: 15 PID: 15768 at arch/x86/events/core.c:1256 > x86_pmu_start+0x1b3/0x1c0 > ... > Call Trace: > >dump_stack+0x86/0xc3 >__warn+0xcb/0xf0 >warn_slowpath_null+0x1d/

[RFC PATCH] lib/bug: use stackdepot for WARN*ONCE to make it more useful

2017-01-03 Thread Michal Hocko
From: Michal Hocko One of the main problem of WARN_*ONCE style of warnings is that they might easily hide different callpaths which lead to the warning. This is especially true for library functions. Rebooting after each offender hitting the particular WARN_*ONCE is just not feasible. This patch

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-03 Thread Jarkko Sakkinen
On Mon, Jan 02, 2017 at 09:26:58PM -0800, James Bottomley wrote: > On Mon, 2017-01-02 at 13:40 -0800, James Bottomley wrote: > > On Mon, 2017-01-02 at 21:33 +0200, Jarkko Sakkinen wrote: > > > On Mon, Jan 02, 2017 at 08:36:20AM -0800, James Bottomley wrote: > > > > On Mon, 2017-01-02 at 15:22 +0200

[PATCH] input: tm2-touchkey: fix odd_ptr_err.cocci warnings

2017-01-03 Thread Julia Lawall
code comes from: url: https://github.com/0day-ci/linux/commits/Jaechul-Lee/Add-touch-key-driver-su pport-for-TM2/20170103-183357 :: branch date: 2 hours ago :: commit date: 2 hours ago tm2-touchkey.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/input/keyboard/tm2

GREETINGS FROM DUBAI

2017-01-03 Thread Mr.Austin Lizin
Hello, Am Austin Lizin Managing Director of Global Trust Bank Dubai U.A.E. I write you this proposal in good faith hoping that I will rely on you in a business transaction that require absolute confidentiality and of great interest and benefit to our both families. In 2007,one Mr. Husson whose su

Re: [PATCH v4 14/15] mtd: nand: hynix: rework NAND ID decoding to extract more information

2017-01-03 Thread Boris Brezillon
On Tue, 03 Jan 2017 21:17:13 +0800 Icenowy Zheng wrote: > 03.01.2017, 21:01, "Boris Brezillon" : > > The current NAND ID detection in nand_hynix.c is not handling the > > different scheme used by Hynix, thus forcing developers to add new > > entries in the nand_ids table each time they want to su

Re: [PATCH v7 2/2] tpm: add securityfs support for TPM 2.0 firmware event log

2017-01-03 Thread Jarkko Sakkinen
On Tue, Jan 03, 2017 at 01:09:18PM +0530, Nayna wrote: > > > On 01/03/2017 03:42 AM, Jarkko Sakkinen wrote: > > On Sun, Dec 11, 2016 at 12:35:33AM -0500, Nayna Jain wrote: > > > Unlike the device driver support for TPM 1.2, the TPM 2.0 does > > > not support the securityfs pseudo files for displa

Re: [PATCH net-next V2 3/3] tun: rx batching

2017-01-03 Thread Stefan Hajnoczi
On Wed, Dec 28, 2016 at 04:09:31PM +0800, Jason Wang wrote: > +static int tun_rx_batched(struct tun_file *tfile, struct sk_buff *skb, > + int more) > +{ > + struct sk_buff_head *queue = &tfile->sk.sk_write_queue; > + struct sk_buff_head process_queue; > + int qlen;

Re: [PATCH 0/2] Begin auditing SECCOMP_RET_ERRNO return actions

2017-01-03 Thread Tyler Hicks
On 01/02/2017 04:47 PM, Paul Moore wrote: > On Mon, Jan 2, 2017 at 11:53 AM, Tyler Hicks wrote: >> This patch set creates the basis for auditing information specific to a given >> seccomp return action and then starts auditing SECCOMP_RET_ERRNO return >> actions. The audit messages for SECCOMP_RET

Re: [Intel-gfx] linux-next: build failure after merge of the drm-intel-fixes tree

2017-01-03 Thread Jani Nikula
On Tue, 03 Jan 2017, Zhenyu Wang wrote: > On 2017.01.02 21:48:57 -0700, Alex Williamson wrote: >> > Alex, I liked to have kvmgt related mdev interface change be merged through >> > vfio tree, but wasn't awared one of Jike's fix had conflict. Could you >> > apply >> > below fix in your tree? I thi

Re: [PATCH v3] net: ethernet: faraday: To support device tree usage.

2017-01-03 Thread Arnd Bergmann
On Tuesday, January 3, 2017 2:05:47 PM CET Greentime Hu wrote: > ​I am not sure if atmac and moxa-art are exactly hardware compatible though > they are based on faraday ftmac. > It may be better if we use 2 different device tree binding documents to > describe for these 2 different drivers to use.

PROBLEM: Kernel Bug: Updated gup.c/faultin_page() makes wine crash and system unresponsive

2017-01-03 Thread Alexander Freudenberg
[1.] One line summary of the problem: Wine crash makes system unresponsive. [2.] Full description of the problem/report: Since kernel patch-4.8.2-3, certain applications make the wineserver process stuck, running with full load and blocking user attempts to login. One has to send SIGKILL the wi

[PATCH v4 11/15] mtd: nand: move AMD/Spansion specific init/detection logic in nand_amd.c

2017-01-03 Thread Boris Brezillon
Moving AMD/Spansion specific initialization/detection into nand_amd.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/Makefile| 1 + drivers/mtd/nand/nand_amd.c | 48

Re: [RESEND PATCH 0/6] apalis-tk1: updates for v1.1 hw

2017-01-03 Thread Marcel Ziswiler
On Thu, 2016-11-24 at 02:04 +0100, mar...@ziswiler.com wrote: > From: Marcel Ziswiler > > > This series updates the device tree for the upcoming V1.1 HW samples. > All changes are purely opportunistic meaning they fix stuff which on > older HW was anyway broken so there should be no backwards >

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-03 Thread Arnd Bergmann
On Monday, January 2, 2017 10:08:28 PM CET Andy Lutomirski wrote: > > > This seems to nicely address the same problem on arm64, which has > > run into the same issue due to the various page table formats > > that can currently be chosen at compile time. > > On further reflection, I think this has

[PATCH] crypto: mediatek: don't return garbage err on successful return

2017-01-03 Thread Colin King
From: Colin Ian King In the case where keylen <= bs mtk_sha_setkey returns an uninitialized return value in err. Fix this by returning 0 instead of err. Issue detected by static analysis with cppcheck. Signed-off-by: Colin Ian King --- drivers/crypto/mediatek/mtk-sha.c | 2 +- 1 file changed

Re: AMD Bulldozer topology regression since 4.6

2017-01-03 Thread Borislav Petkov
On Tue, Jan 03, 2017 at 11:49:38AM +0100, Brice Goglin wrote: > Are you pushing this fix to Linus soon? > We received several bug reports on our side about dual-core compute > units being exposed as a dual-threaded single-cores in sysfs. Yes, it is the first thing on my TODO list for when I get ba

[PATCH v4 04/15] mtd: nand: rename nand_get_flash_type() into nand_detect()

2017-01-03 Thread Boris Brezillon
The only caller of nand_get_flash_type() (nand_scan_ident()) actually don't use the returned nand_flash_dev pointer except for converting it to to an error code. Rename this function nand_detect() and make it return an integer. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 5

Re: [PATCH net-next] bridge: multicast to unicast

2017-01-03 Thread Felix Fietkau
On 2017-01-02 20:32, Linus Lüssing wrote: > Implements an optional, per bridge port flag and feature to deliver > multicast packets to any host on the according port via unicast > individually. This is done by copying the packet per host and > changing the multicast destination MAC to a unicast one

Re: [PATCH net-next V2 2/3] vhost_net: tx batching

2017-01-03 Thread Stefan Hajnoczi
On Wed, Dec 28, 2016 at 04:09:30PM +0800, Jason Wang wrote: > This patch tries to utilize tuntap rx batching by peeking the tx > virtqueue during transmission, if there's more available buffers in > the virtqueue, set MSG_MORE flag for a hint for backend (e.g tuntap) > to batch the packets. > > Si

Re: [PATCH] mtd: davinci-nand: disable subpage write for davinci-nand

2017-01-03 Thread Boris Brezillon
Hi Sekhar, On Tue, 3 Jan 2017 17:07:44 +0530 Sekhar Nori wrote: > Hi Boris, > > On Tuesday 03 January 2017 02:29 PM, Boris Brezillon wrote: > > Hi Sushaanth, > > Sushaanth is not with TI anymore. You might have received a bounce. Indeed. > > > > > Sorry for the late reply, I'm dequeing o

Re: [PATCH 4/4] arm64: dts: exynos: Add tm2 touchkey node

2017-01-03 Thread Javier Martinez Canillas
Hello Jaechul, On 01/03/2017 04:57 AM, Jaechul Lee wrote: > Add DT node support for TM2 touchkey device. > > Signed-off-by: Jaechul Lee > Signed-off-by: Beomho Seo > Signed-off-by: Andi Shyti > --- > arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 12 > 1 file changed, 12 inserti

Re: [PATCH 2/4] input: tm2-touchkey: Add touchkey driver support for TM2

2017-01-03 Thread Javier Martinez Canillas
Hello Jaechul, On 01/03/2017 04:57 AM, Jaechul Lee wrote: > This patch adds support for the TM2 touch key and led > functionlity. > s/functionlity/functionality > The driver interfaces with userspace through an input device and > reports KEY_PHONE and KEY_BACK event types. LED brightness can be

Re: [PATCH] drop_monitor: consider inserted data in genlmsg_end

2017-01-03 Thread Neil Horman
On Tue, Jan 03, 2017 at 01:39:10AM +0100, Reiter Wolfgang wrote: > Final nlmsg_len field update must reflect inserted net_dm_drop_point > data. > > This patch depends on previous patch: > "drop_monitor: add missing call to genlmsg_end" > > Signed-off-by: Reiter Wolfgang > --- > net/core/drop_mo

Re: [PATCH net-next V2 1/3] vhost: better detection of available buffers

2017-01-03 Thread Stefan Hajnoczi
On Wed, Dec 28, 2016 at 04:09:29PM +0800, Jason Wang wrote: > This patch tries to do several tweaks on vhost_vq_avail_empty() for a > better performance: > > - check cached avail index first which could avoid userspace memory access. > - using unlikely() for the failure of userspace access > - che

Re: [PATCH v2 4/6] KVM: x86: refactor pic setup in kvm_set_routing_entry

2017-01-03 Thread David Hildenbrand
Am 16.12.2016 um 16:10 schrieb Radim Krčmář: Reviewed-by: Paolo Bonzini Signed-off-by: Radim Krčmář --- v2: r-b Paolo --- arch/x86/kvm/irq_comm.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/x86/kvm/irq_comm.c b/arch/x86/kvm/irq_comm.c index 6c0191615f23..1

Re: [PATCH v2 5/6] KVM: x86: prevent setup of invalid routes

2017-01-03 Thread David Hildenbrand
Am 16.12.2016 um 16:10 schrieb Radim Krčmář: The check in kvm_set_pic_irq() and kvm_set_ioapic_irq() was just a temporary measure until the code improved enough for us to do this. This changes APIC in a case when KVM_SET_GSI_ROUTING is called to set up pic and ioapic routes before KVM_CREATE_IRQ

Re: [PATCH v2 3/6] KVM: x86: make pic setup code look like ioapic setup

2017-01-03 Thread David Hildenbrand
Am 16.12.2016 um 16:10 schrieb Radim Krčmář: We don't treat kvm->arch.vpic specially anymore, so the setup can look like ioapic. This gets a bit more information out of return values. Reviewed-by: Paolo Bonzini Signed-off-by: Radim Krčmář --- v2: r-b Paolo --- arch/x86/kvm/i8259.c | 16

[PATCH v4 01/15] mtd: nand: get rid of the mtd parameter in all auto-detection functions

2017-01-03 Thread Boris Brezillon
Now that struct nand_chip embeds an mtd_info object we can get rid of the mtd parameter and extract it from the chip parameter with the nand_to_mtd() helper. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 54 1 file changed, 30 inse

Re: [PATCH v6 6/8] IIO: add STM32 timer trigger driver

2017-01-03 Thread Benjamin Gaignard
2017-01-03 10:23 GMT+01:00 Benjamin Gaignard : > 2017-01-02 19:22 GMT+01:00 Jonathan Cameron : >> On 02/01/17 08:46, Benjamin Gaignard wrote: >>> 2016-12-30 22:12 GMT+01:00 Jonathan Cameron : On 09/12/16 14:15, Benjamin Gaignard wrote: > Timers IPs can be used to generate triggers for othe

Re: [PATCH v2 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2017-01-03 Thread David Hildenbrand
Am 16.12.2016 um 16:10 schrieb Radim Krčmář: irqchip_in_kernel() tried to save a bit by reusing pic_irqchip(), but it just complicated the code. Add a separate state for the irqchip mode. Signed-off-by: Radim Krčmář --- v2: change two bools into one enum and rename everything [Paolo] --- arch

[PATCH] char: lack of bool string made CONFIG_DEVPORT always on

2017-01-03 Thread Max Bires
Without a bool string present, using "# CONFIG_DEVPORT is not set" in defconfig files would not actually unset devport. This ensured that /dev/port was always on, but there are reasons a user may wish to disable it (smaller kernel, attack surface reduction) if it's not being used. Adding a message

Re: [PATCH 0/3] usb: xhci: Add broken port disable quirk

2017-01-03 Thread Felipe Balbi
Hi, Roger Quadros writes: > Mathias & Felipe, > > On 17/11/16 17:01, Roger Quadros wrote: >> Hi, >> >> Some XHCI controllers e.g. dwc3 based have a broken Port disable [1]. >> >> If the attached high-speed device is misbehaving, the USB stack typically >> disables the port using the PED bit in

Re: [PATCH] extcon: Add documentation for EXTCON_CHG_USB_SLOW/FAST

2017-01-03 Thread Chanwoo Choi
Hi Baolin, 2017-01-03 14:50 GMT+09:00 Baolin Wang : > Currently there are no documentation for EXTCON_CHG_USB_SLOW/FAST > charger connector. These names don't mean much and no guide to tell > users how to use it, thus try to add documentation to make them clear. > > Suggested-by: NeilBrown > Sign

Re: [PATCH v3 RESEND 07/11] pwm: imx: Provide atomic PWM support for i.MX PWMv2

2017-01-03 Thread Boris Brezillon
Hi Lukasz, On Tue, 3 Jan 2017 12:43:14 +0100 Lukasz Majewski wrote: > Hi Boris, > > > Hi Lukasz, > > > > On Thu, 29 Dec 2016 17:45:35 +0100 > > Lukasz Majewski wrote: > > > > > Hi Boris, > > > > > > > Hi Lukasz, > > > > > > > > On Mon, 26 Dec 2016 23:55:57 +0100 > > > > Lukasz Majewski

Re: [PATCH 0/3] usb: xhci: Add broken port disable quirk

2017-01-03 Thread Roger Quadros
Mathias & Felipe, On 17/11/16 17:01, Roger Quadros wrote: > Hi, > > Some XHCI controllers e.g. dwc3 based have a broken Port disable [1]. > > If the attached high-speed device is misbehaving, the USB stack typically > disables the port using the PED bit in PORTSC. For the controllers that > have

Re: [PATCH] Revert "usb: gadget: f_hid: use alloc_ep_req()"

2017-01-03 Thread Felipe Balbi
Hi, David Lechner writes: > This reverts commit ba1582f22231821c57534e87b077d84adbc15dbd. > > I am getting a null pointer dereference when setting up an hid gadget using > configfs. Reverting this commit fixes the crash. > > dmesg: > > [ 382.406622] Unable to handle kernel NULL pointer derefere

Re: [PATCH] usb: dwc3: gadget: Avoid race between dwc3 interrupt handler and irq thread handler

2017-01-03 Thread Felipe Balbi
Hi, Baolin Wang writes: > On 28 December 2016 at 20:30, Janusz Dziedzic > wrote: >> 2016-12-27 13:16 GMT+01:00 Baolin Wang : >>> Hi, >>> >>> On 27 December 2016 at 19:11, Felipe Balbi wrote: Hi, Baolin Wang writes: > Hi, > > On 27 December 2016 at 18:52, Janus

[PATCH v2] usb: dwc3: gadget: Fix full speed mode

2017-01-03 Thread Roger Quadros
DCFG.DEVSPD == 0x3 is not valid and we need to set DCFG.DEVSPD to 0x1 for full speed mode. Same goes for DSTS.CONNECTSPD. Old databooks had 0x3 for full speed in 48MHz mode for USB1.1 transceivers which was never supported. Newer databooks don't mention 0x3 at all. Cc: John Youn Signed-off-by: R

Re: [PATCH 3/4] hv_util: use do_adjtimex() to update system time

2017-01-03 Thread Vitaly Kuznetsov
"Alex Ng (LIS)" writes: >> -Original Message- >> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] >> Sent: Monday, January 2, 2017 11:41 AM >> To: de...@linuxdriverproject.org >> Cc: linux-kernel@vger.kernel.org; KY Srinivasan ; >> Haiyang Zhang ; John Stultz >> ; Thomas Gleixner ; Ale

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

2017-01-03 Thread Catalin Marinas
On Wed, Dec 14, 2016 at 10:19:10PM +0800, 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. > > Signed-off-by: zhong jiang > --- > arch/arm64/mm/hugetlbpage.c | 2 +- > 1 file chan

Re: [PATCH 2/2] mm: add PageWaiters indicating tasks are waiting for a page bit

2017-01-03 Thread Nicholas Piggin
On Tue, 3 Jan 2017 10:24:39 + Mel Gorman wrote: > On Thu, Dec 29, 2016 at 03:26:15PM +1000, Nicholas Piggin wrote: > > > And I fixed that too. > > > > > > Of course, I didn't test the changes (apart from building it). But > > > I've been running the previous version since yesterday, so far n

Re: [PATCH 4/4] hv_util: improve time adjustment accuracy by disabling interrupts

2017-01-03 Thread Vitaly Kuznetsov
Stephen Hemminger writes: > On Mon, 2 Jan 2017 20:41:14 +0100 > Vitaly Kuznetsov wrote: > >> If we happen to receive interrupts during hv_set_host_time() execution >> our adjustments may get inaccurate. Make the whole function atomic. >> Unfortunately, we can's call do_settimeofday64() with int

Re: [4.10, panic, regression] iscsi: null pointer deref at iscsi_tcp_segment_done+0x20d/0x2e0

2017-01-03 Thread Jan Kara
On Mon 02-01-17 16:11:36, Johannes Weiner wrote: > On Fri, Dec 23, 2016 at 03:33:29AM -0500, Johannes Weiner wrote: > > On Fri, Dec 23, 2016 at 02:32:41AM -0500, Johannes Weiner wrote: > > > On Thu, Dec 22, 2016 at 12:22:27PM -0800, Hugh Dickins wrote: > > > > On Wed, 21 Dec 2016, Linus Torvalds wr

Re: [tpmdd-devel] [PATCH v2 0/2] tpm: enhance TPM 2.0 extend function to support multiple PCR banks

2017-01-03 Thread Mimi Zohar
On Tue, 2017-01-03 at 00:15 +0200, Jarkko Sakkinen wrote: > On Fri, Dec 30, 2016 at 02:02:28PM -0500, Nayna Jain wrote: > > IMA extends its hash measurements in the TPM PCRs, based on policy. > > The existing in-kernel TPM extend function extends only the SHA1 > > PCR bank. TPM 2.0 defines multiple

Re: [PATCH v4 2/3] soc: zte: pm_domains: Add support for zx296718 board

2017-01-03 Thread kbuild test robot
-supporting-ARMv8-zx2967-family/20170103-181714 config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod

Re: [PATCH 1/4] input: Add support for the tm2 touchkey device driver

2017-01-03 Thread Javier Martinez Canillas
Hello Jaechul, On 01/03/2017 04:57 AM, Jaechul Lee wrote: > This patch adds the binding description of the tm2 touchkey > device driver. > > Signed-off-by: Jaechul Lee > --- Patch looks good to me. Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Open Source G

Re: [PATCH v3] mfd: intel-lpss: Avoid resuming runtime-suspended lpss unnecessarily

2017-01-03 Thread Lee Jones
On Sat, 17 Dec 2016, Lukas Wunner wrote: > you wrote on Oct 4 that you applied the below patch for v4.10. > However I don't see the patch on your for-mfd-next branch. > Maybe the patch slipped between the cracks, please double-check. > I would like to use the DPM_DIRECT_COMPLETE macro introduced by

Re: [PATCH] usb: dwc3: gadget: Avoid race between dwc3 interrupt handler and irq thread handler

2017-01-03 Thread Baolin Wang
On 28 December 2016 at 20:30, Janusz Dziedzic wrote: > 2016-12-27 13:16 GMT+01:00 Baolin Wang : >> Hi, >> >> On 27 December 2016 at 19:11, Felipe Balbi wrote: >>> >>> Hi, >>> >>> Baolin Wang writes: Hi, On 27 December 2016 at 18:52, Janusz Dziedzic wrote: > 2016-12-26 9

Re: [PATCH v2 1/6] KVM: x86: don't allow kernel irqchip with split irqchip

2017-01-03 Thread David Hildenbrand
Am 16.12.2016 um 16:10 schrieb Radim Krčmář: Split irqchip cannot be created after creating the kernel irqchip, but we forgot to restrict the other way. This is an API change. Reviewed-by: Paolo Bonzini Signed-off-by: Radim Krčmář --- v2: r-b Paolo --- arch/x86/kvm/x86.c | 2 +- 1 file chan

Re: [PATCH 3/4] arm64: dts: exynos: make tm2 and tm2e independent from each other

2017-01-03 Thread Javier Martinez Canillas
Hello Andi, On 01/03/2017 08:55 AM, Andi Shyti wrote: > Hi Chanwoo, > >>> Currently tm2e dts includes tm2 but there are some differences >>> between the two boards and tm2 has some properties that tm2e >>> doesn't have. >>> >>> That's why it's important to keep the two dts fil

Re: [PATCH v4 0/5] mfd: dt: Add bindings for the Aspeed MFDs

2017-01-03 Thread Lee Jones
On Thu, 22 Dec 2016, Corey Minyard wrote: > It looks like this is ready. Should I take this in the IPMI tree, or is > there a better tree for it? Please refrain from top posting. Judging by the diff, it looks like the MFD tree would be the most appropriate place to merge these into. > On 12/20

Re: [PATCH 0/4 v2] of/overlay: sysfs based ABI for dt overlays

2017-01-03 Thread Pantelis Antoniou
Hi Frank, Heinrich, > On Dec 22, 2016, at 21:00 , Frank Rowand wrote: > > Hi Heinrich, > > On 12/20/16 11:04, Heinrich Schuchardt wrote: >> Currently the kernel only supplies an internal API for creating >> and destroying device tree overlays. >> >> For some boards vendor specific kernel modul

Re: [PATCH] KVM: ioapic: fix NULL deref ioapic->lock

2017-01-03 Thread David Hildenbrand
Thanks, this is beautiful enough. :) Hmm, the combination of 6c7caebc26c5 ("KVM: introduce kvm->created_vcpus", 2016-06-16) and 4c5ea0a9cd02 ("locking/static_key: Fix concurrent static_key_slow_inc()", 2016-06-24) should have fixed it for good. Is the ENABLE_CAP necessary to reproduce? Then,

Re: [PATCH] perf/core: introduce context per CPU event list

2017-01-03 Thread Mark Rutland
On Sun, Jan 01, 2017 at 01:18:27PM -0800, David Carrillo-Cisneros wrote: > On Sun, Jan 1, 2017 at 12:20 PM, David Carrillo-Cisneros > wrote: > > From: Mark Rutland > > > > On Thu, Nov 10, 2016 at 05:26:32PM +0100, Peter Zijlstra wrote: > >> On Thu, Nov 10, 2016 at 02:10:37PM +, Mark Rutland w

Re: [RFC PATCH] ACPI/PCI: Fix bus range comparation in pci_mcfg_lookup

2017-01-03 Thread Lorenzo Pieralisi
On Thu, Dec 22, 2016 at 05:07:43PM +0800, Zhou Wang wrote: > Multiple PCIe host bridges may exists in one PCIe segment. So bus range for > each > host bridge should be in the coverage of bus range of related PCIe segment. > > This patch will support this kind of scenario: > > MCFG: > bus r

Re: [PATCH net-next] bridge: multicast to unicast

2017-01-03 Thread Nikolay Aleksandrov
On 02/01/17 20:32, Linus Lüssing wrote: Implements an optional, per bridge port flag and feature to deliver multicast packets to any host on the according port via unicast individually. This is done by copying the packet per host and changing the multicast destination MAC to a unicast one accordi

Re: [PATCH v2 0/8] PM / devfreq: Update the devfreq and devfreq-event device

2017-01-03 Thread Chanwoo Choi
Dear Myungjoo, Thanks for your review for patch1/2/3/4/5. But, patch6/7/8 are not yet reviewed. The patch4 should be resent according to your comment. So, Could you please review these patch6/7/8? 2016-12-28 20:56 GMT+09:00 Chanwoo Choi : > This patches update the devfreq and devfreq-event devic

[v1] vfio: pci: vfio_pci:- Handle error from pci_iomap

2017-01-03 Thread Arvind Yadav
Here, pci_iomap can fail, handle this case release selected pci regions and return -ENOMEM. Signed-off-by: Arvind Yadav --- drivers/vfio/pci/vfio_pci.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c index dcd7c2a..324c52e 100644

[PATCH 0/3] hisi_sas: some CQ processing fixes

2017-01-03 Thread John Garry
This patchset fixes some issues related to servicing of the completion queue interrupt. The major fix is that sensitive hisi_hba structures need to be locked when free'ing a slot. Another modification is that the v2 hw completion queue irq is now serviced with a tasklet, as too much work was being

[PATCH 3/3] scsi: hisi_sas: lock sensitive region in hisi_sas_slot_abort()

2017-01-03 Thread John Garry
When we call hisi_sas_slot_task_free() we should grab the hisi_hba.lock, as hisi_sas_slot_task_free() accesses common hisi_hba elements. Function hisi_sas_slot_abort() is missing this, so add it. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 3 +++ 1 file changed, 3 inser

[PATCH 1/3] scsi: hisi_sas: service v2 hw CQ ISR with tasklet

2017-01-03 Thread John Garry
Currently the all the slot processing for the completion queue is done in ISR context. It is judged that the slot processing can take a long time, especially when a SATA NCQ completes (upto 32 slots). So, as a solution, defer the bulk of the ISR processing to tasklet context. Each CQ will have its

Re: [PATCH 3/4] arm64: dts: exynos: make tm2 and tm2e independent from each other

2017-01-03 Thread Andi Shyti
Hi Chanwoo, > >> >> > Currently tm2e dts includes tm2 but there are some differences > >> >> > between the two boards and tm2 has some properties that tm2e > >> >> > doesn't have. > >> >> > > >> >> > That's why it's important to keep the two dts files independent > >> >> > and put all the commonal

[PATCH 2/3] scsi: hisi_sas: lock sensitive regions when servicing CQ interrupt

2017-01-03 Thread John Garry
There is a bug in the current driver in that certain hisi_hba and port structure elements which we access when servicing the CQ interrupt do not use thread-safe accesses; these include hisi_sas_port linked-list of active slots (hisi_sas_port.entry), bitmap of currently allocated IPTT (in hisi_hba.s

Re: [PATCH v2 0/3] PM / devfreq: Fix the bug and add reviewer for devfreq support

2017-01-03 Thread Chanwoo Choi
Dear Myungjoo, Thanks for your review for patch1. But, patch2/3 is not yet reviewed. Could you please review these patches? 2016-12-28 20:52 GMT+09:00 Chanwoo Choi : > This patches fix the bug of devfreq_add_device() when governor name is wrong > and the wrong return value of probe() function for

Re: [PATCH 3/4] arm64: dts: exynos: make tm2 and tm2e independent from each other

2017-01-03 Thread Chanwoo Choi
Dear all, 2017-01-03 19:25 GMT+09:00 Andi Shyti : >> >> > Currently tm2e dts includes tm2 but there are some differences >> >> > between the two boards and tm2 has some properties that tm2e >> >> > doesn't have. >> >> > >> >> > That's why it's important to keep the two dts files independent >> >>

Re: [PATCH v2 2/2] mtd: nand: Update dependency of IFC for LS1021A

2017-01-03 Thread Marek Vasut
On 01/03/2017 03:41 AM, Alison Wang wrote: > As NAND support for Freescale/NXP IFC controller is available on > LS1021A, the dependency for LS1021A is added. Does LS stand for LayerScape ? Yes it does. So why does ARCH_LAYERSCAPE not cover LS1021 ? > Signed-off-by: Alison Wang > --- > Changes in

Re: [PATCH v3 RESEND 07/11] pwm: imx: Provide atomic PWM support for i.MX PWMv2

2017-01-03 Thread Lukasz Majewski
Hi Boris, > Hi Lukasz, > > On Thu, 29 Dec 2016 17:45:35 +0100 > Lukasz Majewski wrote: > > > Hi Boris, > > > > > Hi Lukasz, > > > > > > On Mon, 26 Dec 2016 23:55:57 +0100 > > > Lukasz Majewski wrote: > > > > > > > This commit provides apply() callback implementation for i.MX's > > > > PWM

<    3   4   5   6   7   8   9   10   >