Re: [PATCH v4 0/4] iio: adc: sama5d2_adc hw triggers and buffers

2017-06-13 Thread Ludovic Desroches
Hi, On Fri, Jun 09, 2017 at 10:07:15AM +0300, Eugen Hristev wrote: > This patch implements the hardware triggers support and buffer management > for sama5d2. > The DT modifications ( [PATCH v4 1/4] ARM: dts: at91: sama5d2_xplained: > enable ADTRG pin) are for demonstration purposes of the feature,

Re: [PATCH v3] HID: Replace semaphore driver_lock with mutex

2017-06-13 Thread Benjamin Tissoires
Hi Binoy, Looks good to me. However (and maybe Jiri can amend this while applying the patch), the title still says "HID: Replace semaphore driver_lock with mutex" while you killed it altogether... Cheers, Benjamin On Jun 14 2017 or thereabouts, Binoy Jayan wrote: > The semaphore 'driver_lock' is

Re: [RESEND PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true

2017-06-13 Thread Hoeun Ryu
On Tue, 2017-06-13 at 22:27 -0700, Tony Lindgren wrote: > Hi, > > * Hoeun Ryu [170612 18:18]: > > > > --- a/arch/arm/include/debug/omap2plus.S > > +++ b/arch/arm/include/debug/omap2plus.S > > @@ -58,11 +58,22 @@ > >   > >  #define UART_OFFSET(addr) ((addr) & 0x00ff) > >   > > +/* > > + * De

Re: [PATCH v4 00/16] perf tool: add meta-data header support for pipe-mode

2017-06-13 Thread David Carrillo-Cisneros
On Tue, Jun 13, 2017 at 11:55 AM, Jiri Olsa wrote: > On Mon, Jun 12, 2017 at 09:29:16PM -0700, David Carrillo-Cisneros wrote: >> v4: - Limit write_* functions to page_size. >> - Fixed bugs spotted by Jiri. >> - Add information about pipe-mode to some error messages. > > looks like this ver

mpt3sas: driver got task abort request just after it's .shutdown() function is invoked

2017-06-13 Thread Sreekanth Reddy
Hi All, I am using 4.9 kernel and I am observing NULL pointer deference type kernel panic in the below scenario, * Hotplug (i.e. hot add) the HBA (with a set of drives attached to it) to the system just few seconds before issuing "poweroff" command. * Observed that during drives discovery proces

RE: [PATCH V3 2/3] watchdog: uniphier: add UniPhier watchdog driver

2017-06-13 Thread Keiji Hayashibara
Hello Yamada-san, From: Masahiro Yamada [mailto:yamada.masah...@socionext.com] Sent: Wednesday, June 14, 2017 12:08 PM > > 2017-06-13 10:14 GMT+09:00 Keiji Hayashibara > > diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > > index 52a70ee..2a9d9a6 100644 > > --- a/drivers/watchdog/

Re: [PATCH v2 0/2] Avoid namespace collision within macros & tidyup

2017-06-13 Thread Ian Arkver
on't collide with the caller I believe. Also tidied couple of instances where the macro arguments are used in expressions without paranthesis. This patchset is based on top of today's linux-next repo. commit bc4c75f41a1c ("Add linux-next specific files for 20170613&quo

Re: [PATCH] powerpc: dts: use #include "..." to include local DT

2017-06-13 Thread Michael Ellerman
Masahiro Yamada writes: > 2017-06-13 19:21 GMT+09:00 Michael Ellerman : >> Masahiro Yamada writes: >>> >>> (+Anatolij Gustschin ) >>> >>> Ping. >>> I am not 100% sure who is responsible for this, >>> but somebody, could take a look at this patch, please? >> >> Have you tested it actually works? >

Re: [PATCH v4 00/16] perf tool: add meta-data header support for pipe-mode

2017-06-13 Thread David Carrillo-Cisneros
On Tue, Jun 13, 2017 at 11:54 AM, Jiri Olsa wrote: > On Mon, Jun 12, 2017 at 09:29:16PM -0700, David Carrillo-Cisneros wrote: >> v4: - Limit write_* functions to page_size. >> - Fixed bugs spotted by Jiri. >> - Add information about pipe-mode to some error messages. > > hum, looks like we

[PATCH v2] drm/exynos/dsi: Remove error handling for bridge_node DT parsing

2017-06-13 Thread Hoegeun Kwon
Remove the error handling of bridge_node because the bridge_node is required optionally. For example, In case of Exynos SoC, a bridge device such as mDNIe and MIC could be placed between Display Controller and MIPI DSI device but the bridge device is required optionally. Signed-off-by: Hoegeun Kw

Re: [PATCH 04/14] mm, memory_hotplug: get rid of is_zone_device_section

2017-06-13 Thread Michal Hocko
On Wed 14-06-17 14:12:59, Wei Yang wrote: [...] > Hi, Michal > > Not sure you missed this one or you think this is fine. > > Hmm... this will not happen since we must offline a whole memory_block? yes > So the memory_hotplug/unplug unit is memory_block instead of mem_section? yes. -- Michal H

Re: [PATCH v3 11/18] xen/pvcalls: implement accept command

2017-06-13 Thread Juergen Gross
On 14/06/17 02:47, Stefano Stabellini wrote: > On Tue, 13 Jun 2017, Juergen Gross wrote: >> On 02/06/17 21:31, Stefano Stabellini wrote: >>> Implement the accept command by calling inet_accept. To avoid blocking >>> in the kernel, call inet_accept(O_NONBLOCK) from a workqueue, which get >>> schedul

[PATCH] fs/jffs2: Fix a Invalid argument error when mkdir in jffs2 which is mounted as overlayfs

2017-06-13 Thread yangshukui
In jffs2 filesystem, I mount a overlayfs, after rmdir and mkdir, 'Invalid argument' error will appear. It can be reproduced like this, [root@localhost mnt]# mkdir -p overlay-mkdir [root@localhost overlay-mkdir]# pwd;mount|grep jffs2 /root/mnt/overlay-mkdir /dev/mtdblock0 on /root/mnt type jffs2

Re: [RESEND PATCH] base/memory: pass the base_section in add_memory_block

2017-06-13 Thread Michal Hocko
On Wed 14-06-17 14:05:58, Wei Yang wrote: > Hi, Michael > > I copied your reply here: > > >[Sorry for a late response] > > > >On Wed 07-06-17 16:52:12, Wei Yang wrote: > >> The second parameter of init_memory_block() is used to calculate the > >> start_section_nr of this block, which means any se

[PATCH] dt-bindings: display: sunxi: Improve endpoint ID scheme readability

2017-06-13 Thread Chen-Yu Tsai
The explanation for the endpoint ID numbering scheme is convoluted and hard to understand. This patch aims to improve the readability of it by combining the existing two paragraphs, while also providing a diagram example, and how endpoints should be numbered based on that example. Signed-off-by:

Re: kernel BUG at net/ipv4/tcp_output.c:2748!

2017-06-13 Thread Dison River
Hi: I tested the PoC on v3.18 ~ v4.11,all the kenel have crashed.But,The v4.12-rc4 version is not affected thanks. 2017-06-13 21:02 GMT+08:00 Greg KH : > On Tue, Jun 13, 2017 at 07:39:00PM +0800, Dison River wrote: >> Hi >>I've got the following error report while fuzzing the kernel with >> sy

Re: [RESEND PATCH] base/memory: pass the base_section in add_memory_block

2017-06-13 Thread Michal Hocko
On Wed 14-06-17 14:19:59, Wei Yang wrote: > On Wed, Jun 14, 2017 at 07:59:25AM +0200, Michal Hocko wrote: > >On Wed 14-06-17 13:45:50, Wei Yang wrote: > >> Based on Greg's comment, cc it to mm list. > >> The original thread could be found https://lkml.org/lkml/2017/6/7/202 > > > > Wow, you are sti

Re: [RESEND PATCH] base/memory: pass the base_section in add_memory_block

2017-06-13 Thread Wei Yang
On Wed, Jun 14, 2017 at 07:59:25AM +0200, Michal Hocko wrote: >On Wed 14-06-17 13:45:50, Wei Yang wrote: >> Based on Greg's comment, cc it to mm list. >> The original thread could be found https://lkml.org/lkml/2017/6/7/202 > Wow, you are still working~ I just moved your response in this thread~

Re: [PATCH 04/14] mm, memory_hotplug: get rid of is_zone_device_section

2017-06-13 Thread Wei Yang
On Mon, Jun 12, 2017 at 08:49:53AM +0200, Michal Hocko wrote: >On Sat 10-06-17 22:58:21, Wei Yang wrote: >> On Sat, Jun 10, 2017 at 5:56 PM, Wei Yang wrote: >[...] >> > Hmm... one question about the memory_block behavior. >> > >> > In case one memory_block contains more than one memory section. >>

Re: [PATCH][mmc-next] mmc: sdhci-pci: make guid intel_dsm_guid static

2017-06-13 Thread Adrian Hunter
On 13/06/17 16:14, Colin King wrote: > From: Colin Ian King > > The guid intel_dsm_guid does not need to be in global scope, so make > it static. > > Cleans up sparse warning: > "symbol 'intel_dsm_guid' was not declared. Should it be static?" > > Signed-off-by: Colin Ian King Acked-by: Adrian

Re: [PATCH 04/14] mm, memory_hotplug: get rid of is_zone_device_section

2017-06-13 Thread Wei Yang
On Sat, Jun 10, 2017 at 05:56:02PM +0800, Wei Yang wrote: >On Mon, May 15, 2017 at 4:58 PM, Michal Hocko wrote: >> From: Michal Hocko >> >> device memory hotplug hooks into regular memory hotplug only half way. >> It needs memory sections to track struct pages but there is no >> need/desire to as

[PATCH v3] HID: Replace semaphore driver_lock with mutex

2017-06-13 Thread Binoy Jayan
The semaphore 'driver_lock' is used as a simple mutex, and also unnecessary as suggested by Arnd. Hence removing it, as the concurrency between the probe and remove is already handled in the driver core. Suggested-by: Arnd Bergmann Signed-off-by: Binoy Jayan Acked-by: Benjamin Tissoires Reviewe

Re: [PATCH v2 05/10] x86/mm: Rework lazy TLB mode and TLB freshness tracking

2017-06-13 Thread Juergen Gross
On 14/06/17 06:56, Andy Lutomirski wrote: > x86's lazy TLB mode used to be fairly weak -- it would switch to > init_mm the first time it tried to flush a lazy TLB. This meant an > unnecessary CR3 write and, if the flush was remote, an unnecessary > IPI. > > Rewrite it entirely. When we enter laz

linux-next: Tree for Jun 14

2017-06-13 Thread Stephen Rothwell
Hi all, Changes since 20170613: The sound-current tree lost its build failure. The net-next tree gained conflicts against the net tree. The drm tree gained conflicts against the drm-intel-fixes tree. The sound-asoc tree gained a build failure so I used the version from next-20170613. The md

Re: [RESEND PATCH] base/memory: pass the base_section in add_memory_block

2017-06-13 Thread Wei Yang
Hi, Michael I copied your reply here: >[Sorry for a late response] > >On Wed 07-06-17 16:52:12, Wei Yang wrote: >> The second parameter of init_memory_block() is used to calculate the >> start_section_nr of this block, which means any section in the same block >> would get the same start_section_

[PATCH] usb: host: ohci-pxa27x: Handle return value of clk_prepare_enable

2017-06-13 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/usb/host/ohci-pxa27x.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/usb/host/ohci-pxa27x.c index 79efde8f..c5afdb

Re: [PATCH] via-rhine: add support for changing MTU

2017-06-13 Thread Magnus Damm
On Wed, Jun 14, 2017 at 6:33 AM, David Miller wrote: > From: Magnus Damm > Date: Wed, 14 Jun 2017 02:18:27 +0900 > >> From: Magnus Damm >> >> Allow adjusting the MTU for via-rhine devices in case of no TX alignment >> buffer is used. >> >> Lightly tested on ALIX2D13 hardware by making use of VXL

Re: [RESEND PATCH] base/memory: pass the base_section in add_memory_block

2017-06-13 Thread Michal Hocko
On Wed 14-06-17 13:45:50, Wei Yang wrote: > Based on Greg's comment, cc it to mm list. > The original thread could be found https://lkml.org/lkml/2017/6/7/202 I have already given you feedback http://lkml.kernel.org/r/20170613114842.gi10...@dhcp22.suse.cz and you seemed to ignore it completely. >

[PATCH 2/3] ACPI: EC: Fix EC command visibility for dynamic debug

2017-06-13 Thread Lv Zheng
acpi_ec_cmd_string() currently is only enabled for "DEBUG" macro, but users trend to use CONFIG_DYNAMIC_DEBUG and enable ec.c pr_debug() print-outs by "dyndbg='file ec.c +p'". In this use case, all command names are turned into UNDEF and the log is confusing. This affects bugzilla triage work. Thi

[PATCH 3/3] ACPI: EC: Change EC noirq tuning to be an optional behavior

2017-06-13 Thread Lv Zheng
According to the bug report, though the busy polling mode can make noirq stages executed faster, it causes abnormal fan blowing in noirq stages. This patch prepares an option so that the automatic busy polling mode switching for noirq stages can be enabled by who wants to tune it, not all users. N

[PATCH 1/3] ACPI: EC: Fix an EC event IRQ storming issue

2017-06-13 Thread Lv Zheng
The EC event IRQ (SCI_EVT) can only be handled by submitting QR_EC. As the EC driver handles SCI_EVT in a workqueue, after SCI_EVT is flagged and before QR_EC is submitted, there is a period risking IRQ storming. EC IRQ must be masked for this period but linux EC driver never does so. No end user

[PATCH 02/18] spi: qup: Setup DMA mode correctly

2017-06-13 Thread Varadarajan Narayanan
To operate in DMA mode, the buffer should be aligned and the size of the transfer should be a multiple of block size (for v1). And the no. of words being transferred should be programmed in the count registers appropriately. Signed-off-by: Andy Gross Signed-off-by: Varadarajan Narayanan --- dri

[PATCH 03/18] spi: qup: Add completion timeout for dma mode

2017-06-13 Thread Varadarajan Narayanan
Use different 'completion' structures to track the completion of DMA Tx/Rx and PIO. Signed-off-by: Andy Gross Signed-off-by: Varadarajan Narayanan --- drivers/spi/spi-qup.c | 41 - 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/drivers/sp

[PATCH 00/18] spi: qup: Fixes and add support for >64k transfers

2017-06-13 Thread Varadarajan Narayanan
v1: This series fixes some existing issues in the code for both interrupt and dma mode. Patches 1 - 11 are the fixes. Random failures/timeout are observed without these fixes. Also, the current driver does not support block transfers > 64K and the driver quie

[PATCH 07/18] spi: qup: Fix transaction done signaling

2017-06-13 Thread Varadarajan Narayanan
Wait to signal done until we get all of the interrupts we are expecting to get for a transaction. If we don't wait for the input done flag, we can be inbetween transactions when the done flag comes in and this can mess up the next transaction. Signed-off-by: Andy Gross Signed-off-by: Varadarajan

[PATCH 11/18] spi: qup: properly detect extra interrupts

2017-06-13 Thread Varadarajan Narayanan
It's possible for a SPI transaction to complete and get another interrupt and have it processed on the same spi_transfer before the transfer_one can set it to NULL. This masks unexpected interrupts, so let's set the spi_transfer to NULL in the interrupt once the transaction is done. So we can prop

Re: [Merge tag 'pci-v4.12-changes' of git] 857f864014: BUG: unable to handle kernel NULL pointer dereference at 00000000000000a8

2017-06-13 Thread Logan Gunthorpe
On 13/06/17 11:00 PM, Greg Kroah-Hartman wrote: > No, don't modify any drivers, do this in the core chardev code. Ok, well then maybe I misunderstood what you originally asked for because I don't see how you can change a fixed allocation to a dynamic one without touching the driver code which ne

[PATCH 12/18] spi: qup: refactor spi_qup_io_config into two functions

2017-06-13 Thread Varadarajan Narayanan
This is in preparation for handling transactions larger than 64K-1 bytes in block mode, which is currently unsupported and quietly fails. We need to break these into two functions 1) prep is called once per spi_message and 2) io_config is called once per spi-qup bus transaction This is just refac

Re: [PATCH] powerpc: dts: use #include "..." to include local DT

2017-06-13 Thread Masahiro Yamada
Hi. 2017-06-13 19:21 GMT+09:00 Michael Ellerman : > Masahiro Yamada writes: > >> Hi >> >> (+Anatolij Gustschin ) >> >> >> Ping. >> I am not 100% sure who is responsible for this, >> but somebody, could take a look at this patch, please? > > Have you tested it actually works? > > It sounds reason

[PATCH 17/18] spi: qup: Ensure done detection

2017-06-13 Thread Varadarajan Narayanan
This patch fixes an issue where a SPI transaction has completed, but the done condition is missed. This occurs because at the time of interrupt the MAX_INPUT_DONE_FLAG is not asserted. However, in the process of reading blocks of data from the FIFO, the last portion of data comes in. The opflags

[PATCH 13/18] spi: qup: call io_config in mode specific function

2017-06-13 Thread Varadarajan Narayanan
DMA transactions should only only need to call io_config only once, but block mode might call it several times to setup several transactions so it can handle reads/writes larger than the max size per transaction, so we move the call to the do_ functions. This is just refactoring, there should be n

[PATCH 14/18] spi: qup: allow block mode to generate multiple transactions

2017-06-13 Thread Varadarajan Narayanan
This let's you write more to the SPI bus than 64K-1 which is important if the block size of a SPI device is >= 64K or some other device wants to do something larger. This has the benefit of completely removing spi_message from the spi-qup transactions Signed-off-by: Matthew McClintock Signed-off

[PATCH 16/18] spi: qup: allow multiple DMA transactions per spi xfer

2017-06-13 Thread Varadarajan Narayanan
Much like the block mode changes, we are breaking up DMA transactions into 64K chunks so we can reset the QUP engine. Signed-off-by: Matthew McClintock Signed-off-by: Varadarajan Narayanan --- drivers/spi/spi-qup.c | 105 -- 1 file changed, 77 ins

[PATCH 18/18] spi: qup: support for qup v1 dma

2017-06-13 Thread Varadarajan Narayanan
Currently the QUP Version v1 does not work with DMA so added the support for the same. 1. It uses ADM DMA which requires TX and RX CRCI 2. DMA channel initialization need to be done after setting block size for having valid values in maxburst 3. QUP mode should be DMOV instead of BAM. Signed-o

[PATCH 15/18] spi: qup: refactor spi_qup_prep_sg

2017-06-13 Thread Varadarajan Narayanan
Take specific sgl and nent to be prepared. This is in preparation for splitting DMA into multiple transacations, this contains no code changes just refactoring. Signed-off-by: Matthew McClintock Signed-off-by: Varadarajan Narayanan --- drivers/spi/spi-qup.c | 25 ++--- 1 fi

[PATCH 09/18] spi: qup: Do block sized read/write in block mode

2017-06-13 Thread Varadarajan Narayanan
This patch corrects the behavior of the BLOCK transactions. During block transactions, the controller must be read/written to in block size transactions. Signed-off-by: Andy Gross Signed-off-by: Varadarajan Narayanan --- drivers/spi/spi-qup.c | 151 +++--

[PATCH 10/18] spi: qup: Fix DMA mode interrupt handling

2017-06-13 Thread Varadarajan Narayanan
This is needed for v1, where the i/o completion is not handled in the dma driver. Signed-off-by: Andy Gross Signed-off-by: Varadarajan Narayanan --- drivers/spi/spi-qup.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi

[PATCH 08/18] spi: qup: Handle v1 dma completion differently

2017-06-13 Thread Varadarajan Narayanan
Do not assign i/o completion callbacks while running on v1 of QUP. Signed-off-by: Varadarajan Narayanan --- drivers/spi/spi-qup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index 7c22ee4..0f6a4c7 100644 --- a/drivers/spi

[PATCH 06/18] spi: qup: Fix error handling in spi_qup_prep_sg

2017-06-13 Thread Varadarajan Narayanan
Signed-off-by: Varadarajan Narayanan --- drivers/spi/spi-qup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index 363bd43..2124815 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c @@ -310,8 +310,8 @@ static int

[PATCH 05/18] spi: qup: Place the QUP in run mode before DMA transactions

2017-06-13 Thread Varadarajan Narayanan
Signed-off-by: Varadarajan Narayanan --- drivers/spi/spi-qup.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index d3ccf53..363bd43 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c @@ -336,6 +336

[PATCH 04/18] spi: qup: Add completion timeout for fifo/block mode

2017-06-13 Thread Varadarajan Narayanan
Signed-off-by: Andy Gross Signed-off-by: Varadarajan Narayanan --- drivers/spi/spi-qup.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index 272e48e..d3ccf53 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/sp

[PATCH 01/18] spi: qup: Enable chip select support

2017-06-13 Thread Varadarajan Narayanan
Enable chip select support for QUP versions later than v1 Signed-off-by: Sham Muthayyan Signed-off-by: Varadarajan Narayanan --- drivers/spi/spi-qup.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index 1bfa889..c0d4def

Re: [PATCH v2 1/1] PCI: imx6: Add pcie compliance test option

2017-06-13 Thread Schöfegger Stefan
On Tuesday, June 13, 2017 8:58:47 AM CEST Bjorn Helgaas wrote: > On Tue, Jun 13, 2017 at 05:43:14AM +, Schöfegger Stefan wrote: > > On Monday, June 12, 2017 6:49:24 PM CEST Bjorn Helgaas wrote: > > > On Wed, Jun 07, 2017 at 01:36:11PM +0200, Stefan Schoefegger wrote: > > > > Link speed must not

Re: [PATCH] kernel/kprobes: Add test to validate pt_regs

2017-06-13 Thread Masami Hiramatsu
On Wed, 14 Jun 2017 11:40:08 +0900 Masami Hiramatsu wrote: > On Fri, 9 Jun 2017 00:53:08 +0530 > "Naveen N. Rao" wrote: > > > Add a test to verify that the registers passed in pt_regs on kprobe > > (trap), optprobe (jump) and kprobe_on_ftrace (ftrace_caller) are > > accurate. The tests are exe

Re: [PATCHv2] ARM: OMAP: PM: stop early on systems without twl

2017-06-13 Thread Tony Lindgren
* Sebastian Reichel [170613 02:50]: > From: Sebastian Reichel > diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c > index 63027e60cc20..92e335decc61 100644 > --- a/arch/arm/mach-omap2/pm.c > +++ b/arch/arm/mach-omap2/pm.c > @@ -240,6 +240,10 @@ omap_postcore_initcall(omap2_common_p

[RESEND PATCH] base/memory: pass the base_section in add_memory_block

2017-06-13 Thread Wei Yang
Based on Greg's comment, cc it to mm list. The original thread could be found https://lkml.org/lkml/2017/6/7/202 The second parameter of init_memory_block() is used to calculate the start_section_nr of this block, which means any section in the same block would get the same start_section_nr. This

Re: [PATCH 1/2] perf evsel: Fix probing of precise_ip level for default cycles event

2017-06-13 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > tools/perf/tests/task-exit.c | 2 +- > tools/perf/util/evsel.c | 5 + > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/tests/task-exit.c b/tools/perf/tests/task-exit.c > index 32873ec91a4e..cf00ebad2ef5 100644 > --- a/to

Re: [RFC/RFT PATCH 4/4] [debug] ARM: am335x: illustrate hwstamp

2017-06-13 Thread Tony Lindgren
* Grygorii Strashko [170613 16:20]: > This patch allows to test CPTS HW_TS_PUSH functionality on am335x boards > > below sequence of commands will enable Timer7 to trigger 1sec > periodic pulses on CPTS HW4_TS_PUSH input pin: > > # echo 10 > /sys/class/pwm/pwmchip0/pwm0/period > # echo

Re: [GIT PULL 0/2] perf/urgent fixes for 4.12

2017-06-13 Thread Ingo Molnar
erf-urgent-for-mingo-4.12-20170608' of > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent > (2017-06-09 00:41:33 +0200) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-ur

Re: [PATCH v2 09/10] x86/mm: Enable CR4.PCIDE on supported systems

2017-06-13 Thread Juergen Gross
On 14/06/17 06:56, Andy Lutomirski wrote: > We can use PCID if the CPU has PCID and PGE and we're not on Xen. > > By itself, this has no effect. The next patch will start using > PCID. > > Cc: Juergen Gross > Cc: Boris Ostrovsky > Signed-off-by: Andy Lutomirski Reviewed-by: Juergen Gross

RE: [PATCH v8 4/6] vfio: Define vfio based vgpu's dma-buf operations

2017-06-13 Thread Chen, Xiaoguang
>-Original Message- >From: Alex Williamson [mailto:alex.william...@redhat.com] >Sent: Wednesday, June 14, 2017 11:46 AM >To: Chen, Xiaoguang >Cc: Tian, Kevin ; intel-...@lists.freedesktop.org; linux- >ker...@vger.kernel.org; zhen...@linux.intel.com; ch...@chris-wilson.co.uk; Lv, >Zhiyuan

Re: [PATCH] ip6_tunnel: Correct tos value in collect_md mode

2017-06-13 Thread Peter Dawson
On Wed, 14 Jun 2017 10:54:31 +0800 严海双 wrote: > > Changes since v2: > > * mask key->tos with RT_TOS() suggested by Daniel Can you help me understand the rationale for this change? Is there are bug introduced by dsfield = ip6_tclass(key->label); ? The RT_TOS masks out 4bits of the 8bit tos fi

Re: [RESEND PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true

2017-06-13 Thread Tony Lindgren
Hi, * Hoeun Ryu [170612 18:18]: > --- a/arch/arm/include/debug/omap2plus.S > +++ b/arch/arm/include/debug/omap2plus.S > @@ -58,11 +58,22 @@ > > #define UART_OFFSET(addr)((addr) & 0x00ff) > > +/* > + * Definition of ZIMAGE is in arch/arm/boot/compressed/Makefile. > + * Place the follo

Re: RESEND Re: [Patch 2/2]: powerpc/hotplug/mm: Fix hot-add memory node assoc

2017-06-13 Thread Balbir Singh
On Wed, Jun 14, 2017 at 3:25 PM, Balbir Singh wrote: > > > On Wed, Jun 14, 2017 at 8:21 AM, Michael Bringmann > wrote: >> >> On a related note, we are discussing the addition of 2 new device-tree >> properties >> with Pete Heyrman and his fellows that should simplify the determination >> of the >

Re: [PATCH v2] HID: Replace semaphore driver_lock with mutex

2017-06-13 Thread Binoy Jayan
Hi, On 14 June 2017 at 01:55, Arnd Bergmann wrote: >> The mutex code clearly states mutex_trylock() must not be used in >> interrupt context (see kernel/locking/mutex.c), hence we used a >> semaphore here. Unless the mutex code is changed to allow this, we >> cannot switch away from semaphores.

Re: [PATCH] Staging: vc04_services: bcm2835-audio: bcm2835-ctl.c: Fixed alignment to match open parenthesis.

2017-06-13 Thread Greg KH
On Wed, Jun 14, 2017 at 03:15:11AM +0530, srishti sharma wrote: > On Tue, Jun 13, 2017 at 8:17 PM, Dan Carpenter > wrote: > > On Tue, Jun 13, 2017 at 08:07:14PM +0530, srishti sharma wrote: > >> On Tue, Jun 13, 2017 at 6:30 PM, Greg KH > >> wrote: > >> > On Sat, Jun 10, 2017 at 02:37:22AM +0530

Re: [PATCH] staging: android: uapi: drop definitions of removed ION_IOC_{FREE,SHARE} ioctls

2017-06-13 Thread Greg Kroah-Hartman
On Tue, Jun 13, 2017 at 09:17:05PM +0300, Gleb Fotengauer-Malinovskiy wrote: > On Tue, May 30, 2017 at 04:33:57PM -0700, Laura Abbott wrote: > > On 05/30/2017 07:11 AM, Gleb Fotengauer-Malinovskiy wrote: > > > This problem was found by strace ioctl list generator. > > > > > > Fixes: 15c6098cfec5 (

Re: [PATCH 1/1] uio: Fix uio_device memory leak

2017-06-13 Thread Greg KH
On Tue, Jun 13, 2017 at 07:35:51PM -0500, Mike Christie wrote: > On 06/13/2017 07:16 PM, Mike Christie wrote: > > On 06/13/2017 09:01 AM, Greg KH wrote: > >> > On Wed, Jun 07, 2017 at 03:06:44PM -0500, Mike Christie wrote: > >>> >> It looks like there might be 2 issues with the uio_device allocatio

Re: [Merge tag 'pci-v4.12-changes' of git] 857f864014: BUG: unable to handle kernel NULL pointer dereference at 00000000000000a8

2017-06-13 Thread Greg Kroah-Hartman
On Tue, Jun 13, 2017 at 09:13:32PM +0200, Sven-Haegar Koch wrote: > On Tue, 13 Jun 2017, Greg Kroah-Hartman wrote: > > > On Tue, Jun 13, 2017 at 10:25:40AM -0600, Logan Gunthorpe wrote: > > > > > > On 12/06/17 10:35 PM, Greg Kroah-Hartman wrote: > > > > Or better yet, just turn all char major all

Re: [Merge tag 'pci-v4.12-changes' of git] 857f864014: BUG: unable to handle kernel NULL pointer dereference at 00000000000000a8

2017-06-13 Thread Greg Kroah-Hartman
On Tue, Jun 13, 2017 at 11:47:30AM -0600, Logan Gunthorpe wrote: > > > On 13/06/17 10:35 AM, Greg Kroah-Hartman wrote: > > For char devices, I doubt it, but we can't take the chance, which is why > > you make it an option. Then, it's enabled for 'allmodconfig' builds, > > which helps testers out

[PATCH v2 01/10] x86/ldt: Simplify LDT switching logic

2017-06-13 Thread Andy Lutomirski
Originally, Linux reloaded the LDT whenever the prev mm or the next mm had an LDT. It was changed in 0bbed3beb4f2 ("[PATCH] Thread-Local Storage (TLS) support") (from the historical tree) like this: - /* load_LDT, if either the previous or next thread -* has a non-de

[PATCH v2 00/10] PCID and improved laziness

2017-06-13 Thread Andy Lutomirski
There are three performance benefits here: 1. TLB flushing is slow. (I.e. the flush itself takes a while.) This avoids many of them when switching tasks by using PCID. In a stupid little benchmark I did, it saves about 100ns on my laptop per context switch. I'll try to improve that ben

[PATCH v2 03/10] x86/mm: Give each mm TLB flush generation a unique ID

2017-06-13 Thread Andy Lutomirski
This adds two new variables to mmu_context_t: ctx_id and tlb_gen. ctx_id uniquely identifies the mm_struct and will never be reused. For a given mm_struct (and hence ctx_id), tlb_gen is a monotonic count of the number of times that a TLB flush has been requested. The pair (ctx_id, tlb_gen) can be u

[PATCH v2 04/10] x86/mm: Track the TLB's tlb_gen and update the flushing algorithm

2017-06-13 Thread Andy Lutomirski
There are two kernel features that would benefit from tracking how up-to-date each CPU's TLB is in the case where IPIs aren't keeping it up to date in real time: - Lazy mm switching currently works by switching to init_mm when it would otherwise flush. This is wasteful: there isn't fundamenta

[PATCH v2 05/10] x86/mm: Rework lazy TLB mode and TLB freshness tracking

2017-06-13 Thread Andy Lutomirski
x86's lazy TLB mode used to be fairly weak -- it would switch to init_mm the first time it tried to flush a lazy TLB. This meant an unnecessary CR3 write and, if the flush was remote, an unnecessary IPI. Rewrite it entirely. When we enter lazy mode, we simply remove the cpu from mm_cpumask. Thi

[PATCH v2 02/10] x86/mm: Remove reset_lazy_tlbstate()

2017-06-13 Thread Andy Lutomirski
The only call site also calls idle_task_exit(), and idle_task_exit() puts us into a clean state by explicitly switching to init_mm. Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/tlbflush.h | 8 arch/x86/kernel/smpboot.c | 1 - 2 files changed, 9 deletions(-) diff --git

[PATCH v2 07/10] x86/mm: Disable PCID on 32-bit kernels

2017-06-13 Thread Andy Lutomirski
32-bit kernels on new hardware will see PCID in CPUID, but PCID can only be used in 64-bit mode. Rather than making all PCID code conditional, just disable the feature on 32-bit builds. Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/disabled-features.h | 4 +++- arch/x86/kernel/cpu/bug

Re: [PATCH] pci: iov: use device lock to protect IOV sysfs accesses

2017-06-13 Thread Jakub Kicinski
On Tue, 30 May 2017 16:34:29 -0700, Jakub Kicinski wrote: > On Tue, 30 May 2017 18:07:18 -0500, Bjorn Helgaas wrote: > > On Fri, May 26, 2017 at 04:58:20PM -0700, Jakub Kicinski wrote: > > > On Fri, 26 May 2017 18:47:26 -0500, Bjorn Helgaas wrote: > > > > On Mon, May 22, 2017 at 03:50:23PM -0

[PATCH v2 06/10] x86/mm: Stop calling leave_mm() in idle code

2017-06-13 Thread Andy Lutomirski
Now that lazy TLB suppresses all flush IPIs (as opposed to all but the first), there's no need to leave_mm() when going idle. This means we can get rid of the rcuidle hack in switch_mm_irqs_off() and we can unexport leave_mm(). This also removes acpi_unlazy_tlb() from the x86 and ia64 headers, si

[PATCH v2 10/10] x86/mm: Try to preserve old TLB entries using PCID

2017-06-13 Thread Andy Lutomirski
PCID is a "process context ID" -- it's what other architectures call an address space ID. Every non-global TLB entry is tagged with a PCID, only TLB entries that match the currently selected PCID are used, and we can switch PGDs without flushing the TLB. x86's PCID is 12 bits. This is an unortho

[PATCH v2 08/10] x86/mm: Add nopcid to turn off PCID

2017-06-13 Thread Andy Lutomirski
The parameter is only present on x86_64 systems to save a few bytes, as PCID is always disabled on x86_32. Signed-off-by: Andy Lutomirski --- Documentation/admin-guide/kernel-parameters.txt | 2 ++ arch/x86/kernel/cpu/common.c| 18 ++ 2 files changed, 20 inse

[PATCH v2 09/10] x86/mm: Enable CR4.PCIDE on supported systems

2017-06-13 Thread Andy Lutomirski
We can use PCID if the CPU has PCID and PGE and we're not on Xen. By itself, this has no effect. The next patch will start using PCID. Cc: Juergen Gross Cc: Boris Ostrovsky Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/tlbflush.h | 8 arch/x86/kernel/cpu/common.c| 15

Re: [PATCH 2/4] ARM: dts: tps65217: Add power button interrupt to the common tps65217.dtsi file

2017-06-13 Thread Tony Lindgren
* Enric Balletbo Serra [170613 02:12]: > Hi Tony, > > 2017-06-13 9:35 GMT+02:00 Tony Lindgren : > > * Enric Balletbo i Serra [170612 14:28]: > >> The interrupt for power button is static data that comes from the > >> datasheet, there is no reason to need to define this value on every > >> board

Re: [PATCH] dmaengine: pl330: Mark unused functions as __maybe_unused

2017-06-13 Thread Vinod Koul
On Fri, May 19, 2017 at 01:02:26PM -0700, Matthias Kaehlcke wrote: > Several functions are not used and probably kept around for completeness > or debugging. Adding the attribute fixes a bunch of warnings like this > when building with clang: > > drivers/dma/pl330.c:568:19: error: unused function

Re: [PATCH v3 2/2] PCI: iproc: add device shutdown for PCI RC

2017-06-13 Thread Oza Oza
On Tue, Jun 13, 2017 at 5:13 AM, Bjorn Helgaas wrote: > On Sun, Jun 11, 2017 at 09:35:38AM +0530, Oza Pawandeep wrote: >> PERST# must be asserted around ~500ms before >> the reboot is applied. >> >> During soft reset (e.g., "reboot" from Linux) on some iProc based SoCs >> LCPLL clock and PERST bot

Re: [PATCH 0/7] selftests/ftrace: Some improvements of ftracetest

2017-06-13 Thread Masami Hiramatsu
On Wed, 14 Jun 2017 11:12:17 +0900 Masami Hiramatsu wrote: > Hi Shuah and Steve, > > Sorry for replying so late... > > On Thu, 8 Jun 2017 17:51:44 -0400 > Steven Rostedt wrote: > > > On Thu, 8 Jun 2017 15:44:08 -0600 > > Shuah Khan wrote: > > > > > > Also, did you see my reply about having

[PATCH 1/2] pinctrl: uniphier: fix WARN_ON() of pingroups dump on LD11

2017-06-13 Thread Masahiro Yamada
The pingroups dump of debugfs hits WARN_ON() in pinctrl_groups_show(). Filling non-existing ports with '-1' turned out a bad idea. Fixes: 70f2f9c4cf25 ("pinctrl: uniphier: add UniPhier PH1-LD11 pinctrl driver") Signed-off-by: Masahiro Yamada --- drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c

[PATCH 2/2] pinctrl: uniphier: fix WARN_ON() of pingroups dump on LD20

2017-06-13 Thread Masahiro Yamada
The pingroups dump of debugfs hits WARN_ON() in pinctrl_groups_show(). Filling non-existing ports with '-1' turned out a bad idea. Fixes: 336306ee1f2d ("pinctrl: uniphier: add UniPhier PH1-LD20 pinctrl driver") Signed-off-by: Masahiro Yamada --- drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c

[PATCH v2] [media] v4l2: add V4L2_CAP_IO_MC

2017-06-13 Thread Helen Koike
Add V4L2_CAP_IO_MC to be used in struct v4l2_capability to indicate that input and output are controlled by the Media Controller instead of V4L2 API. When this flag is set, ioctls for get, set and enum input and outputs are automatically enabled and programmed to call helper function. Signed-off-b

Re: [RFC][PATCH] slub: Introduce 'alternate' per cpu partial lists

2017-06-13 Thread Joonsoo Kim
On Thu, Jun 08, 2017 at 04:53:04PM -0700, Laura Abbott wrote: > SLUB debugging features (poisoning, red zoning etc.) skip the fast path > completely. This ensures there is a single place to do all checks and > take any locks that may be necessary for debugging. The overhead of some > of the debuggi

Re: [PATCH V2 2/2] powerpc/powernv : Add support for OPAL-OCC command/response interface

2017-06-13 Thread Cyril Bur
On Tue, 2017-06-13 at 23:26 +0530, Shilpasri G Bhat wrote: > In P9, OCC (On-Chip-Controller) supports shared memory based > commad-response interface. Within the shared memory there is an OPAL > command buffer and OCC response buffer that can be used to send > inband commands to OCC. This patch add

Re: WMI and Kernel:User interface

2017-06-13 Thread Greg Kroah-Hartman
On Tue, Jun 13, 2017 at 10:07:19AM -0700, Darren Hart wrote: > On Tue, Jun 13, 2017 at 06:52:47PM +0200, Greg Kroah-Hartman wrote: > > > As a concrete example, Dell has specifically made the request that we > > > work on a solution that doesn't require them to come back to the kernel > > > communit

Re: linux-next: manual merge of the char-misc tree with the jc_docs tree

2017-06-13 Thread Greg KH
On Wed, Jun 14, 2017 at 02:04:16PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the char-misc tree got a conflict in: > > Documentation/DocBook/w1.tmpl > > between commit: > > b4c1064a76e7 ("docs-rst: convert w1 book to ReST") > > from the jc_docs tree and commi

Re: [GIT PULL rcu/next] RCU commits for 4.13

2017-06-13 Thread Paul E. McKenney
On Wed, Jun 14, 2017 at 04:54:04AM +0200, Andrea Parri wrote: > On Mon, Jun 12, 2017 at 02:37:55PM -0700, Paul E. McKenney wrote: > > Hello, Ingo, > > > > This pull request is unusual in being a single linear set of commits, > > as opposed to my usual topic branches. This is due to the many > > l

RE: [PATCH v8 07/10] hyper-v: globalize vp_index

2017-06-13 Thread Jork Loeser
> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, June 13, 2017 19:29 > > Stephen Hemminger writes: > > > On Fri, 9 Jun 2017 15:27:33 +0200 > > Vitaly Kuznetsov wrote: > > > >> To support implementing remote TLB flushing on Hyper-V with a > >> hypercall we need to make vp_

[PATCH] of: document /sys/firmware/fdt

2017-06-13 Thread frowand . list
From: Frank Rowand Add ABI documentation for /sys/firmware/fdt Update contact for /sys/firmware/devicetree/* to include mail list Signed-off-by: Frank Rowand --- Documentation/ABI/testing/sysfs-firmware-ofw | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) dif

linux-next: manual merge of the char-misc tree with the jc_docs tree

2017-06-13 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the char-misc tree got a conflict in: Documentation/DocBook/w1.tmpl between commit: b4c1064a76e7 ("docs-rst: convert w1 book to ReST") from the jc_docs tree and commit: f85e8813b2c9 ("DocBook: w1: Update W1 file locations and names in DocBook") from

Re: [PATCH tip/sched/core] Add comments to aid in safer usage of swake_up.

2017-06-13 Thread Paul E. McKenney
On Tue, Jun 13, 2017 at 09:15:47PM -0400, Steven Rostedt wrote: > On Tue, 13 Jun 2017 16:42:05 -0700 > "Paul E. McKenney" wrote: > > > On Tue, Jun 13, 2017 at 07:23:08PM -0400, Steven Rostedt wrote: > > > On Fri, 9 Jun 2017 05:45:54 -0700 > > > "Paul E. McKenney" wrote: > > > > > > > On Fri,

Re: [PATCH v8 4/6] vfio: Define vfio based vgpu's dma-buf operations

2017-06-13 Thread Alex Williamson
On Wed, 14 Jun 2017 03:18:31 + "Chen, Xiaoguang" wrote: > >-Original Message- > >From: intel-gvt-dev [mailto:intel-gvt-dev-boun...@lists.freedesktop.org] On > >Behalf Of Alex Williamson > >Sent: Wednesday, June 14, 2017 11:06 AM > >To: Chen, Xiaoguang > >Cc: Tian, Kevin ; intel-...@l

[PATCH v3 3/3] arm64: dts: rockchip: use cs-gpios for cros_ec_spi

2017-06-13 Thread Jeffy Chen
The cros_ec requires CS line to be active after last message. But the CS would be toggled when powering off/on rockchip spi, which breaks ec xfer. Use GPIO CS to prevent that. Signed-off-by: Jeffy Chen --- Changes in v3: None Changes in v2: Fix wrong pinconf for spi5_cs0. arch/arm64/boot/dts/r

  1   2   3   4   5   6   7   8   9   10   >