Re: [PATCH 5/8] x86: switch atomic.h to use atomic-instrumented.h

2017-03-29 Thread Mark Rutland
On Tue, Mar 28, 2017 at 06:25:07PM +0200, Dmitry Vyukov wrote: > On Tue, Mar 28, 2017 at 6:15 PM, Dmitry Vyukov wrote: > > #define __try_cmpxchg(ptr, pold, new, size)\ > > __raw_try_cmpxchg((ptr), (pold), (new), (size), LOCK_PREFIX) > > >

[PATCH] Add hardware PTP support.

2017-03-29 Thread Rafal Ozieblo
This patch is based on original Harini's patch and Andrei's patch, implemented in aseparate file to ease the review/maintanance and integration with other platforms. In case that macb is compiled as a module, it has been renamed to cadence-macb.ko to avoid naming confusion in Makefile. This

[PATCH V5] perf/x86: add sysfs entry to freeze counter on SMI

2017-03-29 Thread kan . liang
From: Kan Liang Currently, the SMIs are visible to all performance counters. Because many users want to measure everything including SMIs. But in some cases, the SMI cycles should not be count. For example, to calculate the cost of SMI itself. So a knob is needed. When

Re: [PATCH v7 1/7] clocksource/drivers/clksrc-evt-probe: Describe with the DT both the clocksource and the clockevent

2017-03-29 Thread Mark Rutland
On Wed, Mar 29, 2017 at 03:41:34PM +0200, Daniel Lezcano wrote: > On Wed, Mar 29, 2017 at 01:57:14PM +0100, Mark Rutland wrote: > > On Wed, Mar 29, 2017 at 02:36:38PM +0200, Daniel Lezcano wrote: > > > arch/arc/boot/dts/abilis_tb10x.dtsi: > > > > > > /* TIMER0 with interrupt for

Re: [PATCH v3 2/2] PCI: Add tango PCIe host bridge support

2017-03-29 Thread Robin Murphy
On 29/03/17 13:53, Mason wrote: > On 29/03/2017 14:19, Robin Murphy wrote: > >> On 29/03/17 12:34, Marc Gonzalez wrote: >> >>> + /* >>> +* QUIRK #3 >>> +* Unfortunately, config and mem spaces are muxed. >>> +* Linux does not support such a setting, since drivers are free >>> +*

Re: [PATCH] crypto: vmx: Remove dubiously licensed crypto code

2017-03-29 Thread Greg Kroah-Hartman
On Wed, Mar 29, 2017 at 02:56:39PM +0200, Michal Suchanek wrote: > While reviewing commit 11c6e16ee13a ("crypto: vmx - Adding asm > subroutines for XTS") which adds the OpenSSL license header to > drivers/crypto/vmx/aesp8-ppc.pl licensing of this driver came into > qestion. The whole license

Re: [PATCH v9 10/15] ACPI: platform-msi: retrieve dev id from IORT

2017-03-29 Thread Marc Zyngier
On 29/03/17 14:00, Hanjun Guo wrote: > On 03/29/2017 08:38 PM, Lorenzo Pieralisi wrote: >> On Wed, Mar 29, 2017 at 07:52:48PM +0800, Hanjun Guo wrote: >>> Hi Lorenzo, >>> >>> On 03/29/2017 06:14 PM, Lorenzo Pieralisi wrote: Hi Hanjun, Marc, On Tue, Mar 07, 2017 at 08:40:05PM +0800,

Re: [Outreachy kernel] [PATCH 4/4] iio: light: si1145: Replace ternary operator with min macro

2017-03-29 Thread SIMRAN SINGHAL
On Wed, Mar 29, 2017 at 8:22 PM, SIMRAN SINGHAL wrote: > On Wed, Mar 29, 2017 at 6:23 PM, Lars-Peter Clausen wrote: >> On 03/29/2017 02:40 PM, Julia Lawall wrote: >>> >>> >>> On Wed, 29 Mar 2017, simran singhal wrote: >>> Use macro min() to get the

Re: [PATCH 27/46] selinux: Move an assignment for the variable "rc" in sens_read()

2017-03-29 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:27 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 22:02:14 +0100 > > A local variable was set to an error code in one case before a concrete > error situation was detected. Thus

[RFC PATCH 2/6] x86/apic: Construct a framework for setuping APIC mode as soon as possible

2017-03-29 Thread Dou Liyang
Now, there are two ways to setup local apic and io-apic in X86 arch: 1. In an SMP-capable system, it will be done when preparing the cpus in native_smp_prepare_boot_cpu(). 2. If UP_LATE_INIT is y, it will be done in smp_init() And, there are many switches in kernel which can determine the way

Re: [PATCH v2] livepatch: Reduce the time of finding module symbols

2017-03-29 Thread Josh Poimboeuf
On Tue, Mar 28, 2017 at 09:10:35PM +0800, Zhou Chengming wrote: > It's reported that the time of insmoding a klp.ko for one of our > out-tree modules is too long. > > ~ time sudo insmod klp.ko > real 0m23.799s > user 0m0.036s > sys 0m21.256s > > Then we found the reason: our out-tree module

Native Linux KVM tool v2

2017-03-29 Thread Spoorti S Doddamani
Hi, I am using kvmtool for the first time. I followed the instructions from this website to run kvmtool: https://lwn.net/Articles/447556/#kvm When I try to run the kvmtool with Debian Squeeze QCOW2 image with "./kvm run -d debian_squeeze_i386_standard.qcow2" command given in the website I get

Re: [PATCH 1/5] locking: Introduce range reader/writer lock

2017-03-29 Thread Davidlohr Bueso
On Wed, 29 Mar 2017, Peter Zijlstra wrote: On Mon, Mar 06, 2017 at 09:03:26PM -0800, Davidlohr Bueso wrote: +static __always_inline int +__range_read_lock_common(struct range_rwlock_tree *tree, +struct range_rwlock *lock, long state) +{ + struct interval_tree_node

[PATCHv2 8/8] x86/espfix: Add support 5-level paging

2017-03-29 Thread Kirill A. Shutemov
We don't need extra virtual address space for ESPFIX, so it stays within one PUD page table for both 4- and 5-level paging. Redefining ESPFIX_BASE_ADDR using P4D_SHIFT instead of PGDIR_SHIFT would make it stay in the same place regarding of paging mode. Signed-off-by: Kirill A. Shutemov

Re: [PATCH v3 3/7] arm: dts: dt-bindings: Add Renesas RZ pinctrl header

2017-03-29 Thread Linus Walleij
On Fri, Mar 24, 2017 at 4:22 PM, Jacopo Mondi wrote: > Add dt-bindings for Renesas r7s72100 pin controller header file. > > Signed-off-by: Jacopo Mondi > +/* > + * Pin is bi-directional. > + * An alternate function that needs both

Re: [PATCH v7 0/7] Implement clocksource for rockchip SoC using rockchip timer

2017-03-29 Thread Alexander Kochetkov
Hello, Daniel. Due to recent comments from Mark[1], may be is better to apply v6[2] series instead of v7[3]? Because my main goal was to fix wall time on rk3188. And I did it the same way how that was already done for other timer drivers (one of possible solution). You can rename

Re: [RFC PATCH tip/master 0/3] kprobes: tracing: kretprobe_instance dynamic allocation

2017-03-29 Thread Frank Ch. Eigler
mhiramat wrote: > Here is a correction of patches to introduce kretprobe_instance > dynamic allocation for avoiding kretprobe silently miss-hits. > [...] Thanks, this looks automatically useful also to systemtap users. - FChE

[PATCH] macintosh: Do not arbitrarily limit architecture for macintosh drivers.

2017-03-29 Thread Michal Suchanek
The mac mouse emulation is neat solution for notebooks with suboptimal touchpads. For historical reason this is available on x86 but not arm or mips so remove the limitation. The other more specific drivers depend on various platform drivers anyway so users will not select those by accident.

Re: [PATCH] drm/arcpgu: Get rid of "encoder-slave" property

2017-03-29 Thread Alexey Brodkin
Hi Liviu, Rob, On Fri, 2017-03-03 at 18:21 +, liviu.du...@arm.com wrote: > On Fri, Mar 03, 2017 at 05:48:19PM +, Alexey Brodkin wrote: > > > > Hi Liviu, > > > > On Fri, 2017-03-03 at 16:28 +, Liviu Dudau wrote: > > > > > > On Fri, Mar 03, 2017 at 06:19:24PM +0300, Alexey Brodkin

Re: [PATCH 2/2] mtd: spi-nor: add driver for STM32 quad spi flash controller

2017-03-29 Thread Marek Vasut
On 03/29/2017 03:35 PM, Ludovic BARRE wrote: [...] > +writel_relaxed(CR_PRESC(presc) | CR_FTHRES(3) | CR_TCEN | > CR_SSHIFT > + | CR_EN, qspi->io_base + QUADSPI_CR); > + > +/* a minimum fsize must be set to sent the command id */ > +flash->fsize

Re: [PATCH 25/46] selinux: Return directly after a failed kzalloc() in sens_read()

2017-03-29 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:25 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 21:42:02 +0100 > > Return directly after a call of the function "kzalloc" failed > at the beginning. > > Signed-off-by: Markus

[PATCH] i2c: add sc18is600 driver

2017-03-29 Thread Sebastian Reichel
This adds an I²C master driver for SPI -> I²C bus bridge chips. It currently supports NXP's SC18IS600 and SC18IS601, as well as Silicon Labs' CP2120. The driver was only tested on SC18IS600. Signed-off-By: Sebastian Reichel --- .../devicetree/bindings/i2c/i2c-cp2120.txt

Re: [PATCH v3] ASoC: Add support for Maxim Integrated MAX98927 Amplifier

2017-03-29 Thread Mark Brown
On Wed, Mar 29, 2017 at 09:53:48AM +0900, Ryan Lee wrote: > + case SND_SOC_DAIFMT_CBS_CFM: > + mode = MAX98927_PCM_MASTER_MODE_HYBRID; > + default: > + dev_err(codec->dev, "DAI clock mode unsupported"); Either we don't support _CBS_CFM or there's a missing break

Re: [Outreachy kernel] [PATCH] net: netfilter: remove unused variable

2017-03-29 Thread Julia Lawall
On Wed, 29 Mar 2017, Arushi Singhal wrote: > This patch uses the following coccinelle script to remove > a variable that was simply used to store the return > value of a function call before returning it: > > @@ > identifier len,f; > @@ > > -int len; > ... when != len > when strict > -len

Re: [PATCH v2] serdev: Replace serdev_device_write_buf with serdev_device_write

2017-03-29 Thread Andrey Smirnov
On Tue, Mar 28, 2017 at 10:07 AM, Andy Shevchenko wrote: > On Tue, Mar 28, 2017 at 7:01 PM, Andrey Smirnov > wrote: >> Convert serdev_device_write_buf's code to be able to transfer amount of >> data potentially exceeding "write room" at the

Re: [PATCH 4.4 48/76] libceph: force GFP_NOIO for socket allocations

2017-03-29 Thread Ilya Dryomov
On Wed, Mar 29, 2017 at 1:49 PM, Brian Foster wrote: > On Wed, Mar 29, 2017 at 01:18:34PM +0200, Michal Hocko wrote: >> On Wed 29-03-17 13:14:42, Ilya Dryomov wrote: >> > On Wed, Mar 29, 2017 at 1:05 PM, Brian Foster wrote: >> > > On Wed, Mar 29, 2017 at

Re: [PATCH v22 07/11] acpi/arm64: Add GTDT table parse driver

2017-03-29 Thread Fu Wei
Hi Lorenzo, On 28 March 2017 at 19:35, Lorenzo Pieralisi wrote: > On Wed, Mar 22, 2017 at 12:31:18AM +0800, fu@linaro.org wrote: >> From: Fu Wei >> >> This patch adds support for parsing arch timer info in GTDT, >> provides some kernel APIs to

Re: [PATCH v22 07/11] acpi/arm64: Add GTDT table parse driver

2017-03-29 Thread Fu Wei
On 29 March 2017 at 22:29, Fu Wei wrote: > Hi Lorenzo, > > On 28 March 2017 at 19:35, Lorenzo Pieralisi > wrote: >> On Wed, Mar 22, 2017 at 12:31:18AM +0800, fu@linaro.org wrote: >>> From: Fu Wei >>> >>> This patch adds

Re: [PATCH 2/2] extcon: max77843: support USB accessories as external USB hosts

2017-03-29 Thread Andi Shyti
Hi Krzysztof, > > + case MAX77843_MUIC_ADC_RESERVED_ACC_1: > > + case MAX77843_MUIC_ADC_RESERVED_ACC_2: > > + case MAX77843_MUIC_ADC_RESERVED_ACC_3: > > + case MAX77843_MUIC_ADC_RESERVED_ACC_4: > > +

[RFC PATCH 3/6] x86/apic: Extract APIC timer related code from apic_bsp_setup()

2017-03-29 Thread Dou Liyang
The apic_bsp_setup() contains the APIC timer related code, which leads to hard reuse the local APIC and I/O APIC setup independently. Extract the related code to a single function for setuping APIC in advance. Signed-off-by: Dou Liyang ---

Re: [PATCH v7 2/2] soc/imx: Add GPCv2 power gating driver

2017-03-29 Thread Dong Aisheng
On Thu, Mar 30, 2017 at 02:58:36PM +0800, Dong Aisheng wrote: > On Mon, Mar 27, 2017 at 11:42:15AM -0700, Andrey Smirnov wrote: > > On Thu, Mar 23, 2017 at 11:24 PM, Dong Aisheng wrote: > > > On Tue, Mar 21, 2017 at 07:50:04AM -0700, Andrey Smirnov wrote: > > >> Add code

Re: [PATCH] crypto: vmx: Remove dubiously licensed crypto code

2017-03-29 Thread Michal Suchánek
On Wed, 29 Mar 2017 16:51:35 +0200 Greg Kroah-Hartman wrote: > On Wed, Mar 29, 2017 at 02:56:39PM +0200, Michal Suchanek wrote: > > While reviewing commit 11c6e16ee13a ("crypto: vmx - Adding asm > > subroutines for XTS") which adds the OpenSSL license header to > >

[PATCH] ubifs: Don't block RENAME_WHITEOUT flag in rename

2017-03-29 Thread Jesper Nilsson
The test does not allow the valid flag RENAME_WHITEOUT and in fact, the calling function of do_rename already tests the flags, so the test is unnecessary, allowing us to drop it completely. With this patch RENAME_WHITEOUT for overlayfs on ubifs works as intended. Signed-off-by: Jesper Nilsson

[PATCH] power: supply: charger manager: refactor return statements

2017-03-29 Thread Andi Shyti
Some trivial improvements on the returning value of the functions: - remove unnecessary goto labels that just return, return immediately, instead. - do not initialize when not needed. - return the value from the calling function that fails instead of politically choosing -EINVAL.

[RESEND PATCH] staging: media: davinci_vpfe: Replace a bit shift

2017-03-29 Thread Arushi Singhal
This patch replaces bit shifting on 1 with the BIT(x) macro. This was done with coccinelle: @@ constant c; @@ -1 << c +BIT(c) Signed-off-by: Arushi Singhal --- drivers/staging/media/davinci_vpfe/dm365_ipipe.c | 2 +-

Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode

2017-03-29 Thread Felipe Balbi
Hi, Roger Quadros writes: >> Roger Quadros writes: Roger Quadros writes: > dra7 OTG core limits the host controller to USB2.0 (high-speed) mode > when we're operating in dual-role. yeah, that's not a quirk. DRA7 supports

Re: Including Alpine -next tree in linux-next

2017-03-29 Thread Antoine Tenart
Hi Stephen, On Thu, Mar 30, 2017 at 12:14:54AM +1100, Stephen Rothwell wrote: > On Wed, 29 Mar 2017 15:12:01 +0200 Antoine Tenart > wrote: > > > > Hello Eric, > > Who is this "Eric" person? ;-) My apologies. I completely messed up my copy-and-paste I

Re: [PATCH] Fix IB va_start+ib_bytes range check on 32Bit systems

2017-03-29 Thread Christian König
Am 29.03.2017 um 11:18 schrieb Jan Burgmeier: Signed-off-by: Jan Burgmeier --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

Re: [RFC 8/8] ARM: dts: imx6qdl-sabresd: Enable fsl,ldo-bypass

2017-03-29 Thread Leonard Crestez
On Wed, 2017-03-22 at 18:13 +0100, Lucas Stach wrote: > Am Mittwoch, den 22.03.2017, 18:53 +0200 schrieb Leonard Crestez: > > This enables LDO bypass by default on the imx6qdl-sabresd boards. New > > dts files with -ldo suffix are added for users who want to run with LDOs > > enabled on these

Re: [PATCH v4 0/9] kasan: improve error reports

2017-03-29 Thread Andrey Ryabinin
On 03/24/2017 10:32 PM, Andrey Konovalov wrote: > > Andrey Konovalov (9): > kasan: introduce helper functions for determining bug type > kasan: unify report headers > kasan: change allocation and freeing stack traces headers > kasan: simplify address description logic > kasan: change

Re: [PATCH v7 1/7] clocksource/drivers/clksrc-evt-probe: Describe with the DT both the clocksource and the clockevent

2017-03-29 Thread Daniel Lezcano
On Wed, Mar 29, 2017 at 01:57:14PM +0100, Mark Rutland wrote: > On Wed, Mar 29, 2017 at 02:36:38PM +0200, Daniel Lezcano wrote: > > On Wed, Mar 29, 2017 at 11:49:11AM +0100, Mark Rutland wrote: > > > On Wed, Mar 29, 2017 at 11:22:10AM +0200, Daniel Lezcano wrote: > > > > On Tue, Mar 28, 2017 at

[PATCH] iio: accel: bma180: Set up buffer timestamps for non-zero values

2017-03-29 Thread simran singhal
Use the iio_pollfunc_store_time parameter during triggered buffer set-up to get valid timestamps. Signed-off-by: simran singhal --- drivers/iio/accel/bma180.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/bma180.c

Re: [PATCH 2/2] extcon: max77843: support USB accessories as external USB hosts

2017-03-29 Thread Krzysztof Kozlowski
On Wed, Mar 29, 2017 at 2:54 PM, Andi Shyti wrote: > The ADC state defines the resistance that a USB device has in > order to distinguish between devices. > > The external accessories (like the Gear VR) are defined as: > > MAX77843_MUIC_ADC_RESERVED_ACC_1 >

Re: [PATCH v2 06/18] arm64: arch_timer: Add infrastructure for multiple erratum detection methods

2017-03-29 Thread Daniel Lezcano
On Tue, Mar 28, 2017 at 04:38:41PM +0100, Marc Zyngier wrote: > On 28/03/17 15:55, Daniel Lezcano wrote: > > On Tue, Mar 28, 2017 at 03:48:23PM +0100, Marc Zyngier wrote: > >> On 28/03/17 15:36, Daniel Lezcano wrote: > >>> On Tue, Mar 28, 2017 at 03:07:52PM +0100, Marc Zyngier wrote: > >>> > >>> [

Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS

2017-03-29 Thread gengdongjiu
Hi Achin, Thanks for your mail and answer. 2017-03-29 18:36 GMT+08:00, Achin Gupta : > Hi gengdongjiu, > > On Wed, Mar 29, 2017 at 05:36:37PM +0800, gengdongjiu wrote: >> >> Hi Laszlo/Biesheuvel/Qemu developer, >> >>Now I encounter a issue and want to consult with you

[RFC PATCH 1/6] x86/apic: Replace init_bsp_APIC() with apic_virture_wire_mode_setup()

2017-03-29 Thread Dou Liyang
The init_bsp_APIC() setups the virtual wire mode through the local APIC. The function name is unsuitable which might imply that the BSP's APIC will be initialized here, actually, where it will be done is almost at the end of start_kernel(). And the CONFIG X86_64 is also imply the X86_LOCAL_APIC

[RFC PATCH 0/6] Unify the Interrupt Mode and setup it as soon as possible

2017-03-29 Thread Dou Liyang
According to Ingo's and Eric's advice[1,2], Try my best to optimize the init of Interrupt Mode for x86. The MP specification defines three different interrupt modes as follows: 1. PIC Mode 2. Virtual Wire Mode 3. Symmetic I/O Mode Currently, In kernel, 1. Setup the Virtual Wire Mode during

RE: [PATCH v3 3/7] arm: dts: dt-bindings: Add Renesas RZ pinctrl header

2017-03-29 Thread Chris Brandt
On Wednesday, March 29, 2017, Linus Walleij wrote: > On Fri, Mar 24, 2017 at 4:22 PM, Jacopo Mondi > wrote: > > > Add dt-bindings for Renesas r7s72100 pin controller header file. > > > > Signed-off-by: Jacopo Mondi > > > +/* > > + * Pin is

Re: [PATCH v7 2/2] soc/imx: Add GPCv2 power gating driver

2017-03-29 Thread Dong Aisheng
On Mon, Mar 27, 2017 at 11:42:15AM -0700, Andrey Smirnov wrote: > On Thu, Mar 23, 2017 at 11:24 PM, Dong Aisheng wrote: > > On Tue, Mar 21, 2017 at 07:50:04AM -0700, Andrey Smirnov wrote: > >> Add code allowing for control of various power domains managed by GPCv2 > >> IP

Re: [PATCH v22 02/11] clocksource: arm_arch_timer: separate out device-tree code and remove arch_timer_detect_rate

2017-03-29 Thread Fu Wei
On 29 March 2017 at 22:41, Daniel Lezcano wrote: > On Wed, Mar 29, 2017 at 01:11:58PM +0800, Fu Wei wrote: >> Hi Daniel, >> >> On 29 March 2017 at 11:41, Fu Wei wrote: >> > Hi Daniel, >> > >> > Great thanks for your review, allow me to answer your

[PATCH] x86/intel_rdt: Add cpus_list rdtgroup file

2017-03-29 Thread Jiri Olsa
While playing with the resctrl interface I found it much easier to deal with cpumask list rather than just regular cpumask. Adding cpus_list file to provide cpumask list interface to define group's cpus. # cd /sys/fs/resctrl/ # echo 1-10 > krava/cpus_list # cat krava/cpus_list 1-10 #

Re: [BUG nohz]: wrong user and system time accounting

2017-03-29 Thread Luiz Capitulino
On Wed, 29 Mar 2017 09:14:32 -0400 Rik van Riel wrote: > > I failed to reproduce with your config. I'm still getting 99% > > userspace > > cputime. So I'm wondering if the hogging style plays a role. > > > > I run pure user loops: > > > > int main(int argc, char **argv) >

Re: [PATCH v22 07/11] acpi/arm64: Add GTDT table parse driver

2017-03-29 Thread Fu Wei
Hi Lorenzo, On 29 March 2017 at 19:33, Lorenzo Pieralisi wrote: > On Wed, Mar 29, 2017 at 06:48:26PM +0800, Fu Wei wrote: >> Hi Lorenzo, >> >> On 29 March 2017 at 18:21, Lorenzo Pieralisi >> wrote: >> > On Wed, Mar 29, 2017 at 05:48:17PM

Re: [PATCH 7/8] asm-generic: add KASAN instrumentation to atomic operations

2017-03-29 Thread Mark Rutland
c: linux...@kvack.org > Cc: linux-kernel@vger.kernel.org > Cc: x...@kernel.org FWIW, I think that structuring the file this way will make it easier to add the {acquire,release,relaxed} variants (as arm64 will need), so this looks good to me. As a heads-up, I wanted to have a go at that, but I

RE: [PATCH v2 2/7] dt-bindings: pinctrl: Add RZ/A1 bindings doc

2017-03-29 Thread Chris Brandt
On Wednesday, March 29, 2017, Linus Walleij: > If you prefer to use preprocessor macros or whatever to make the bitmasks > or how you want to organize the constants in your include files is not my > concern, do whatever you seem fit, just pack it into a 32bit thing somehow > which makes sense from

RE: [PATCH v3 2/2] PCI: Add tango PCIe host bridge support

2017-03-29 Thread David Laight
> > For my education, what is the API to send an IPI? > > And the API to handle an IPI? > > There are a few ways you could implement some custom cross-call, > although in this case I think stop_machine() would probably be the most > appropriate candidate. However, you're right that in general it

Re: [PATCH v2] serdev: Replace serdev_device_write_buf with serdev_device_write

2017-03-29 Thread Andy Shevchenko
On Wed, Mar 29, 2017 at 5:16 PM, Andrey Smirnov wrote: > On Tue, Mar 28, 2017 at 10:07 AM, Andy Shevchenko > wrote: >> On Tue, Mar 28, 2017 at 7:01 PM, Andrey Smirnov >> wrote: >> So, what I would see if no one

Re: [PATCH] ARM: imx_v6_v7_defconfig: Select SMSC_PHY

2017-03-29 Thread Dong Aisheng
On Tue, Mar 28, 2017 at 02:16:50PM +0300, Leonard Crestez wrote: > On Fri, 2017-03-24 at 14:43 +0800, Dong Aisheng wrote: > > Hi Leonard, > > > > On Wed, Mar 22, 2017 at 04:27:37PM +0200, Leonard Crestez wrote: > > > > > > The imx6sl-evk board has a LAN8720A ethernet phy supported by SMSC_PHY. >

[RFC PATCH 4/6] x86/apic: Make the APIC mode setup earlier for SMP-capable system

2017-03-29 Thread Dou Liyang
In the SMP-capable system, enable and setup the APIC mode in native_smp_prepare_boot_cpu() which almost be called at the end of start_kernel(). The MP table or ACPI has been read earlier, and time_init() which is called before the APIC mode setup may need the IRQ. Move the APIC mode setup code

Re: [PATCH v5 6/9] coresight: add support for CPU debug module

2017-03-29 Thread Mike Leach
Hi Leo On 29 March 2017 at 02:54, Leo Yan wrote: > Hi Mathieu, > > On Tue, Mar 28, 2017 at 10:50:10AM -0600, Mathieu Poirier wrote: >> On Sun, Mar 26, 2017 at 02:23:14AM +0800, Leo Yan wrote: > > [...] > >> > +static void debug_force_cpu_powered_up(struct debug_drvdata

[RFC PATCH 5/6] x86/apic: Make the APIC mode setup earlier for UP system

2017-03-29 Thread Dou Liyang
The SMP-capable system has already enable and setup the APIC mode as soon as possible. Do it for UP system and make the code clear. Signed-off-by: Dou Liyang --- arch/x86/include/asm/apic.h | 2 ++ arch/x86/kernel/apic/apic.c | 81

[RFC PATCH 6/6] x86/apic: Remove the apic_virture_wire_mode_setup()

2017-03-29 Thread Dou Liyang
Currently, enable and setup the interrupt mode has been advanced and has already included the virtual wire mode. Remove the apic_virture_wire_mode_setup() which works for the virtual wire mode originally. Signed-off-by: Dou Liyang --- arch/x86/include/asm/apic.h | 2

[RESEND PATCH] staging: iio: Remove extra Parenthesis

2017-03-29 Thread Arushi Singhal
Remove the extra parenthesis remove the checkpatch issue. Signed-off-by: Arushi Singhal --- drivers/staging/iio/cdc/ad7746.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c

Re: [PATCH v5 6/9] coresight: add support for CPU debug module

2017-03-29 Thread Mike Leach
On 29 March 2017 at 04:07, Leo Yan wrote: > Hi Suzuki, > > On Mon, Mar 27, 2017 at 05:34:57PM +0100, Suzuki K Poulose wrote: >> On 25/03/17 18:23, Leo Yan wrote: > > [...] > >> Leo, >> >> Thanks a lot for the quick rework. I don't fully understand (yet!) why we >> need the >>

Re: [Outreachy kernel] [PATCH] iio: accel: bma180: Set up buffer timestamps for non-zero values

2017-03-29 Thread Alison Schofield
On Wed, Mar 29, 2017 at 07:41:31PM +0530, simran singhal wrote: > Use the iio_pollfunc_store_time parameter during triggered buffer set-up > to get valid timestamps. > > Signed-off-by: simran singhal Hi Simran, I guess you knew I'd recognize this one ;) My first

Re: [PATCH 28/46] selinux: Return directly after a failed kzalloc() in user_read()

2017-03-29 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:28 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 22:08:22 +0100 > > Return directly after a call of the function "kzalloc" failed > at the beginning. > > Signed-off-by: Markus

[PATCHv2 3/8] x86/mm: Define virtual memory map for 5-level paging

2017-03-29 Thread Kirill A. Shutemov
The first part of memory map (up to %esp fixup) simply scales existing map for 4-level paging by factor of 9 -- number of bits addressed by additional page table level. The rest of the map is unchanged. Signed-off-by: Kirill A. Shutemov --- v2: - Document

Re: [PATCH 2/2] mtd: spi-nor: add driver for STM32 quad spi flash controller

2017-03-29 Thread Ludovic BARRE
On 03/29/2017 03:09 PM, Marek Vasut wrote: On 03/29/2017 02:24 PM, Ludovic BARRE wrote: hi Marek Hi! thanks for review comment below On 03/29/2017 12:54 PM, Marek Vasut wrote: On 03/27/2017 02:54 PM, Ludovic Barre wrote: From: Ludovic Barre The quadspi is a

Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS

2017-03-29 Thread Laszlo Ersek
On 03/29/17 14:51, Michael S. Tsirkin wrote: > On Wed, Mar 29, 2017 at 01:58:29PM +0200, Laszlo Ersek wrote: >> (8) When QEMU gets SIGBUS from the kernel -- I hope that's going to come >> through a signalfd -- QEMU can format the CPER right into guest memory, >> and then inject whatever interrupt

[PATCH v1] x86/platform/intel-mid: Enable bluetooth on Intel Edison

2017-03-29 Thread Andy Shevchenko
Intel Edison has Wi-Fi + BT module attached and, since it's an SFI-enumerated platform, needs a platform data. Here we add bits to enable bluetooth device. Signed-off-by: Andy Shevchenko --- arch/x86/platform/intel-mid/device_libs/Makefile | 3 +-

KLIENTSKIE BAZI http://xurl.es/128 YZNAITE PODROBNEE!

2017-03-29 Thread Klientskie bazi
KLIENTSKIE BAZI http://xurl.es/128 YZNAITE PODROBNEE!

Re: [PATCH] staging: vc04_services: bcm2835-audio: fixed checkpatch warning on coding style

2017-03-29 Thread Greg Kroah-Hartman
On Wed, Mar 29, 2017 at 12:29:30AM +0100, Andrea della Porta wrote: > Fixed several chekpatch warnign about alignment of function parameters, > removed spaces after a cast, split one line that was over 80 chars Only do one thing per patch, please fix this up as a patch series. thanks, greg k-h

[PATCH] iommu/vt-d: Make sure IOMMUs are off when intel_iommu=off

2017-03-29 Thread Joerg Roedel
From: Joerg Roedel When booting into a kexec kernel with intel_iommu=off, and the previous kernel had intel_iommu=on, the IOMMU hardware is still enabled and gets not disabled by the new kernel. This causes the boot to fail because DMA is blocked by the hardware. Disable the

Re: [PATCH 1/1] get_nr_restart_syscall() should return __NR_ia32_restart_syscall if __USER32_CS

2017-03-29 Thread Oleg Nesterov
On 03/28, Oleg Nesterov wrote: > > On 03/28, Andy Lutomirski wrote: > > > > How about we store the syscall arch to be restored in task_struct > > along with restart_block? > > Yes, perhaps we will have to finally do this. Not really nice too. OK, how about the hack below? I do not want to a new

Re: [PATCH 1/5] locking: Introduce range reader/writer lock

2017-03-29 Thread Davidlohr Bueso
On Wed, 29 Mar 2017, Peter Zijlstra wrote: On Mon, Mar 06, 2017 at 09:03:26PM -0800, Davidlohr Bueso wrote: diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index 88e01e08e279..e4d9eadd2c47 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig @@ -154,7 +154,6 @@

Re: [PATCH v2 06/18] arm64: arch_timer: Add infrastructure for multiple erratum detection methods

2017-03-29 Thread Daniel Lezcano
On Wed, Mar 29, 2017 at 03:56:52PM +0100, Marc Zyngier wrote: > On 29/03/17 15:27, Daniel Lezcano wrote: > > On Tue, Mar 28, 2017 at 04:38:41PM +0100, Marc Zyngier wrote: > >> On 28/03/17 15:55, Daniel Lezcano wrote: > >>> On Tue, Mar 28, 2017 at 03:48:23PM +0100, Marc Zyngier wrote: > On

Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode

2017-03-29 Thread Roger Quadros
On 29/03/17 16:21, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: >>> Roger Quadros writes: > Roger Quadros writes: >> dra7 OTG core limits the host controller to USB2.0 (high-speed) mode >> when we're operating in dual-role.

Re: [PATCH 4.4 48/76] libceph: force GFP_NOIO for socket allocations

2017-03-29 Thread Ilya Dryomov
On Wed, Mar 29, 2017 at 1:16 PM, Michal Hocko wrote: > On Wed 29-03-17 13:10:01, Ilya Dryomov wrote: >> On Wed, Mar 29, 2017 at 12:55 PM, Michal Hocko wrote: >> > On Wed 29-03-17 12:41:26, Michal Hocko wrote: >> > [...] >> >> > ceph_con_workfn >> >> >

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

2017-03-29 Thread Boris Brezillon
On Mon, 27 Mar 2017 15:56:55 +0530 Sekhar Nori wrote: > This partly reverts commit 28c015a9daabe4ed3aeb0ccf669a3f1c2b8b81d5. > > Since f6d7c1b5598b ("mtd: nand: davinci: Reinitialize the HW ECC > engine in 4bit hwctl") using subpage and 4bit HWECC works. > > Revert the original

[PATCH v1 4/8] ARM: dts: stm32: Enable DCMI camera interface on STM32F429-EVAL board

2017-03-29 Thread Hugues Fruchet
Signed-off-by: Hugues Fruchet --- arch/arm/boot/dts/stm32429i-eval.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 3c99466..87733d3 100644 ---

Re: [PATCH 4/8] asm-generic: add atomic-instrumented.h

2017-03-29 Thread Mark Rutland
On Tue, Mar 28, 2017 at 02:35:13PM -0700, Matthew Wilcox wrote: > On Tue, Mar 28, 2017 at 06:15:41PM +0200, Dmitry Vyukov wrote: > > The new header allows to wrap per-arch atomic operations > > and add common functionality to all of them. > > Why a new header instead of putting this in

[PATCH v1 8/8] ARM: configs: stm32: DCMI + OV2640 camera support

2017-03-29 Thread Hugues Fruchet
Enable DCMI camera interface and OV2640 camera sensor drivers. Signed-off-by: Hugues Fruchet --- arch/arm/configs/stm32_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index

Re: [PATCH 24/46] selinux: Return directly after a failed kzalloc() in cat_read()

2017-03-29 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:24 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 21:20:43 +0100 > > Return directly after a call of the function "kzalloc" failed > at the beginning. > > Signed-off-by: Markus

Re: [PATCH] leds: pca9532: Extend pca9532 device tree support

2017-03-29 Thread Felix Brack
Hello Jacek, On 08.02.2017 20:42, Jacek Anaszewski wrote: > Hi Felix, > > On 02/08/2017 05:12 PM, Felix Brack wrote: >> Hello Jacek, >> >> On 07.02.2017 21:45, Jacek Anaszewski wrote: >>> Hi Felix, >>> >>> Thanks for the patch. >>> >>> On 02/07/2017 07:11 PM, Felix Brack wrote: This patch

Re: [PATCH] ezchip: nps_enet: check if napi has been completed

2017-03-29 Thread Eric Dumazet
On Wed, 2017-03-29 at 13:41 +0300, Vlad Zakharov wrote: > After a new NAPI_STATE_MISSED state was added to NAPI we can get into > this state and in such case we have to reschedule NAPI as some work is > still pending and we have to process it. napi_complete_done() function > returns false if we

Re: [Outreachy kernel] [PATCH 4/4] iio: light: si1145: Replace ternary operator with min macro

2017-03-29 Thread SIMRAN SINGHAL
On Wed, Mar 29, 2017 at 6:23 PM, Lars-Peter Clausen wrote: > On 03/29/2017 02:40 PM, Julia Lawall wrote: >> >> >> On Wed, 29 Mar 2017, simran singhal wrote: >> >>> Use macro min() to get the minimum of two values for brevity and >>> readability. >>> >>> Signed-off-by: simran

Re: [PATCH 26/46] selinux: Improve another size determination in sens_read()

2017-03-29 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:26 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 21:52:55 +0100 > > Replace the specification of a data type by a pointer dereference > as the parameter for the operator

Re: [PATCH v3 3/7] arm: dts: dt-bindings: Add Renesas RZ pinctrl header

2017-03-29 Thread Geert Uytterhoeven
Hi Chris, On Wed, Mar 29, 2017 at 4:55 PM, Chris Brandt wrote: > On Wednesday, March 29, 2017, Linus Walleij wrote: >> On Fri, Mar 24, 2017 at 4:22 PM, Jacopo Mondi >> wrote: >> > +/* >> > + * Flags used to ask software to drive the pin I/O

Re: [PATCH 1/5] locking: Introduce range reader/writer lock

2017-03-29 Thread Davidlohr Bueso
On Wed, 29 Mar 2017, Peter Zijlstra wrote: On Mon, Mar 06, 2017 at 09:03:26PM -0800, Davidlohr Bueso wrote: +#define RANGE_RWLOCK_INFINITY (~0UL - 1) +#define DEFINE_RANGE_RWLOCK_INF(name) \ + struct range_rwlock name = __RANGE_RWLOCK_INITIALIZER(0, RANGE_RWLOCK_INFINITY)

Re: [RFC PATCH v2 18/32] kvm: svm: Use the hardware provided GPA instead of page walk

2017-03-29 Thread Borislav Petkov
On Thu, Mar 02, 2017 at 10:16:05AM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > When a guest causes a NPF which requires emulation, KVM sometimes walks > the guest page tables to translate the GVA to a GPA. This is unnecessary > most of the time on AMD hardware

Re: [PATCH net-next v6 01/11] bpf: Add eBPF program subtype and is_valid_subtype() verifier (fwd)

2017-03-29 Thread Julia Lawall
LSM-Toward-unprivileged-sandboxing/20170329-211258 :: branch date: 2 hours ago :: commit date: 2 hours ago >> kernel/bpf/syscall.c:1041:5-9: WARNING: Unsigned expression compared with >> zero: size < 0 git remote add linux-review https://github.com/0day-ci/

[PATCH v1 1/8] dt-bindings: Document STM32 DCMI bindings

2017-03-29 Thread Hugues Fruchet
This adds documentation of device tree bindings for the STM32 DCMI (Digital Camera Memory Interface). Signed-off-by: Hugues Fruchet --- .../devicetree/bindings/media/st,stm32-dcmi.txt| 77 ++ 1 file changed, 77 insertions(+) create mode 100644

[PATCH v1 5/8] ARM: dts: stm32: Enable stmpe1600 gpio expandor of STM32F429-EVAL board

2017-03-29 Thread Hugues Fruchet
Signed-off-by: Hugues Fruchet --- arch/arm/boot/dts/stm32429i-eval.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 87733d3..7ffcf07 100644 ---

[PATCH v1 3/8] ARM: dts: stm32: Enable DCMI support on STM32F429 MCU

2017-03-29 Thread Hugues Fruchet
Signed-off-by: Hugues Fruchet --- arch/arm/boot/dts/stm32f429.dtsi | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index ee0da97..e1ff978 100644 ---

Re: [PATCH 1/2] pinctrl: imx: use generic pinctrl helpers for managing groups

2017-03-29 Thread Fabio Estevam
Tony/Linus On Wed, Mar 15, 2017 at 6:46 AM, Linus Walleij wrote: >> Still waiting to hear back from Linus on what he prefers. > > I am snowed under by mail and might be missing stuff at the > moment... > > If there is some especially urgent fix patch I need to look

Re: [PATCH net-next v6 01/11] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2017-03-29 Thread kbuild test robot
Hi Mickaël, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Micka-l-Sala-n/Landlock-LSM-Toward-unprivileged-sandboxing/20170329-211258 config: i386-randconfig-x002-201713 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901

Re: [PATCH v22 02/11] clocksource: arm_arch_timer: separate out device-tree code and remove arch_timer_detect_rate

2017-03-29 Thread Daniel Lezcano
On Wed, Mar 29, 2017 at 01:11:58PM +0800, Fu Wei wrote: > Hi Daniel, > > On 29 March 2017 at 11:41, Fu Wei wrote: > > Hi Daniel, > > > > Great thanks for your review, allow me to answer your question below: > > > > On 28 March 2017 at 22:58, Daniel Lezcano

Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS

2017-03-29 Thread Christoffer Dall
On Wed, Mar 29, 2017 at 10:36:51PM +0800, gengdongjiu wrote: > Hi Achin, > Thanks for your mail and answer. > > 2017-03-29 18:36 GMT+08:00, Achin Gupta : > > Hi gengdongjiu, > > > > On Wed, Mar 29, 2017 at 05:36:37PM +0800, gengdongjiu wrote: > >> > >> Hi

Re: [PATCH] Fix IB va_start+ib_bytes range check on 32Bit systems

2017-03-29 Thread Michel Dänzer
On 29/03/17 10:22 PM, Christian König wrote: > Am 29.03.2017 um 11:18 schrieb Jan Burgmeier: >> Signed-off-by: Jan Burgmeier >> --- >> drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git

Re: [PATCH v2 06/18] arm64: arch_timer: Add infrastructure for multiple erratum detection methods

2017-03-29 Thread Marc Zyngier
On 29/03/17 15:27, Daniel Lezcano wrote: > On Tue, Mar 28, 2017 at 04:38:41PM +0100, Marc Zyngier wrote: >> On 28/03/17 15:55, Daniel Lezcano wrote: >>> On Tue, Mar 28, 2017 at 03:48:23PM +0100, Marc Zyngier wrote: On 28/03/17 15:36, Daniel Lezcano wrote: > On Tue, Mar 28, 2017 at

  1   2   3   4   5   6   7   8   9   10   >