Re: [-next] powerpc/pseries: Fix typo in parameter description

2017-02-14 Thread Michael Ellerman
On Thu, 2017-01-12 at 15:09:21 UTC, Wei Yongjun wrote: > From: Wei Yongjun > > Fix typo in parameter description. > > Signed-off-by: Wei Yongjun Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/b0b5a76579ea62a9eeb720e71fdaa9 cheers

Re: [1/3] kprobes: introduce weak variant of kprobe_exceptions_notify

2017-02-14 Thread Michael Ellerman
On Tue, 2017-02-07 at 19:54:14 UTC, "Naveen N. Rao" wrote: > kprobe_exceptions_notify() is not used on some of the architectures such > as arm[64] and powerpc anymore. Introduce a weak variant for such > architectures. > > Signed-off-by: Naveen N. Rao > Acked-by: Masami Hiramatsu Applied to pow

Re: [3/3] powerpc: kprobes: remove kprobe_exceptions_notify()

2017-02-14 Thread Michael Ellerman
On Tue, 2017-02-07 at 19:54:16 UTC, "Naveen N. Rao" wrote: > ... as the weak variant will do. > > Signed-off-by: Naveen N. Rao Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/0ddde5004d26c483c9e67005b2be5b cheers

[PATCH v2] net: ethernet: ti: cpsw: fix cpsw assignment in resume

2017-02-14 Thread Ivan Khoronzhuk
There is a copy-paste error, which hides breaking of resume for CPSW driver: there was replaced netdev_priv() to ndev_to_cpsw(ndev) in suspend, but left it unchanged in resume. Fixes: 606f39939595a4d4540406bfc11f265b2036af6d (ti: cpsw: move platform data and slaves info to cpsw_common) Reported-b

Re: [1/3] powerpc: asm/ppc-opcode.h: introduce __PPC_SH64()

2017-02-14 Thread Michael Ellerman
On Wed, 2017-02-08 at 08:57:29 UTC, Anju T wrote: > From: "Naveen N. Rao" > > Introduce __PPC_SH64() as a 64-bit variant to encode shift field in some > of the shift and rotate instructions operating on double-words. Convert > some of the BPF instruction macros to use the same. > > Signed-off-by

Re: [v4,1/2] arch/powerpc: Implement Optprobes

2017-02-14 Thread Michael Ellerman
On Wed, 2017-02-08 at 09:50:51 UTC, Anju T wrote: > Current infrastructure of kprobe uses the unconditional trap instruction > to probe a running kernel. Optprobe allows kprobe to replace the trap with > a branch instruction to a detour buffer. Detour buffer contains instructions > to create an in

[PATCH v2 3/3] x86/vdso: Add VCLOCK_HVCLOCK vDSO clock read method

2017-02-14 Thread Vitaly Kuznetsov
Hyper-V TSC page clocksource is suitable for vDSO, however, the protocol defined by the hypervisor is different from VCLOCK_PVCLOCK. Implement the required support by adding hvclock_page VVAR. Signed-off-by: Vitaly Kuznetsov --- arch/x86/entry/vdso/vclock_gettime.c | 24

[PATCH v2 2/3] x86/hyperv: move TSC reading method to asm/mshyperv.h

2017-02-14 Thread Vitaly Kuznetsov
As a preparation to making Hyper-V TSC page suitable for vDSO move the TSC page reading logic to asm/mshyperv.h. While on it, do the following - Document the reading algorithm. - Simplify the code a bit. - Add explicit barriers to prevent re-ordering (we need to read sequence stricktly before and

[PATCH v2 1/3] x86/hyperv: implement hv_get_tsc_page()

2017-02-14 Thread Vitaly Kuznetsov
To use Hyper-V TSC page clocksource from vDSO we need to make tsc_pg available. Implement hv_get_tsc_page() and add CONFIG_HYPERV_TSCPAGE to make #ifdef-s simple. Signed-off-by: Vitaly Kuznetsov --- arch/x86/hyperv/hv_init.c | 9 +++-- arch/x86/include/asm/mshyperv.h | 8 driv

[PATCH v2 0/3] x86/vdso: Add Hyper-V TSC page clocksource support

2017-02-14 Thread Vitaly Kuznetsov
Hi, while we're still waiting for a definitive ACK from Microsoft that the algorithm is good for SMP case (as we can't prevent the code in vdso from migrating between CPUs) I'd like to send v2 with some modifications to keep the discussion going. Changes since v1: - Document the TSC page reading

[RFC] mm/zsmalloc: remove redundant SetPagePrivate2 in create_page_chain

2017-02-14 Thread Yisheng Xie
We had used page->lru to link the component pages (except the first page) of a zspage, and used INIT_LIST_HEAD(&page->lru) to init it. Therefore, to get the last page's next page, which is NULL, we had to use page flag PG_Private_2 to identify it. But now, we use page->freelist to link all of the

Re: [PATCH RESEND 3/5] mtd: nand: Cleanup/rework the atmel_nand driver

2017-02-14 Thread Nicolas Ferre
Hi Boris, Le 27/01/2017 à 17:42, Boris Brezillon a écrit : > This is a complete rewrite of the driver whose main purpose is to > support the new DT representation where the NAND controller node is now > really visible in the DT and appears under the EBI bus. With this new > representation, we can

Re: linux-next: build failure after merge of the net tree

2017-02-14 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 14, 2017 at 10:19:37AM +0100, Jiri Olsa escreveu: > On Tue, Feb 14, 2017 at 07:42:21AM +0100, Ingo Molnar wrote: > > * Stephen Rothwell wrote: > > > Unfortunately, the perf header files are kept separate from the kernel > > > header files proper and are not automatically copied over :-

Re: [PATCH v13 06/12] usb: xhci: use bus->sysdev for DMA configuration

2017-02-14 Thread Arnd Bergmann
On Tue, Feb 14, 2017 at 1:26 PM, Roger Quadros wrote: > On 14/02/17 13:44, Arnd Bergmann wrote: >> On Tue, Feb 14, 2017 at 11:36 AM, Roger Quadros wrote: >>> Why are we using sysdev to read DT property? We should be using the >>> XHCI device (&pdev->dev) here, no? >> >> If I remember correctly,

[PATCH v3 15/18] ARM: dtsi: axp209: add battery power supply subnode

2017-02-14 Thread Quentin Schulz
The X-Powers AXP209 PMIC exposes battery supply various data such as the battery status (charging, discharging, full, dead), current max limit, current current, battery capacity (in percentage), voltage max and min limits, current voltage, and battery capacity (in Ah). This adds the battery power

Re: net: BUG in __skb_gso_segment

2017-02-14 Thread Andrey Konovalov
On Mon, Feb 13, 2017 at 10:56 PM, Eric Dumazet wrote: > On Mon, Feb 13, 2017 at 11:54 AM, Andrey Konovalov > wrote: >> Hi, >> >> I've got the following error report while fuzzing the kernel with syzkaller. >> >> A reproducer and .config are attached. >> >> On commit 926af6273fc683cd98cd0ce7bf0d04

Re: [PATCH 3/3] perf: Allow kernel filters on cpu events

2017-02-14 Thread Alexander Shishkin
Ingo Molnar writes: > * Alexander Shishkin wrote: > >> While supporting file-based address filters for cpu events requires some >> extra context switch handling, kernel address filters are easy, since the >> kernel mapping is preserved across address spaces. It is also useful as >> it permits tr

Re: [PATCH V6 1/5] LIB: Indirect ISA/LPC port IO introduced

2017-02-14 Thread Alexander Graf
On 13/02/2017 15:05, zhichang.yuan wrote: Hi, Alex, Thanks for your review! Sorry for the late response! As this patch-set was two weeks ago, it must be painful to check this thread again. I thought John had discussed with you about most of the comments when I was back from ten days' leave,

[PATCH v3 13/18] power: supply: add battery driver for AXP20X and AXP22X PMICs

2017-02-14 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. This patch adds the battery power supply driver to get various data from the PMIC, such as the battery status (charging, discharging, full, dead), current max limit, current current, battery capacity (in percentage), voltage

Re: [PATCH V6 1/5] LIB: Indirect ISA/LPC port IO introduced

2017-02-14 Thread Alexander Graf
On 13/02/2017 15:17, zhichang.yuan wrote: Hi, Alex, On 2017/2/1 3:37, Alexander Graf wrote: On 31/01/2017 14:32, John Garry wrote: On 30/01/2017 17:12, Alexander Graf wrote: On 01/24/2017 08:05 AM, zhichang.yuan wrote: Low-pin-count interface is integrated into some SoCs. The accesses t

[PATCH 0/2] perf/x86/intel/pt: VMX related updates

2017-02-14 Thread Alexander Shishkin
Hi Peter, On systems where PT does not coexist with VMX operation, we silently stop scheduling in PT events while VMX is on. It is confusing to the user as what they get in return is a perf session with no PT trace. So I added a check for any preexisting VMX users to the event creation path, so th

Re: linux-next: build failure after merge of the net tree

2017-02-14 Thread Jiri Olsa
On Tue, Feb 14, 2017 at 09:50:20AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > What I think Ingo meant with dependency at the build system level is to > somehow state that if file A gets changed, then tool B must be rebuilt. > > Now that samples/bpf and tools/perf/ depend on tools/lib/bpf/

Re: [PATCH V6 4/5] LPC: Support the device-tree LPC host on Hip06/Hip07

2017-02-14 Thread Alexander Graf
On 13/02/2017 15:39, zhichang.yuan wrote: Hi, Alex, Thanks for your review! John had replied most of your comments, I only mentioned those which haven't made clear. On 2017/1/31 4:08, Alexander Graf wrote: On 24/01/2017 08:05, zhichang.yuan wrote: The low-pin-count(LPC) interface of Hi

Re: [PATCH RESEND 3/5] mtd: nand: Cleanup/rework the atmel_nand driver

2017-02-14 Thread Boris Brezillon
On Tue, 14 Feb 2017 13:58:30 +0100 Nicolas Ferre wrote: [..] > > obj-$(CONFIG_MTD_NAND_OMAP2) += omap2_nand.o > > diff --git a/drivers/mtd/nand/atmel/Makefile > > b/drivers/mtd/nand/atmel/Makefile > > new file mode 100644 > > index ..15bc4a014f33 > > --- /dev/null > >

[PATCH 2/2] perf/x86/intel/pt: Fail event creation if VMX operation is on

2017-02-14 Thread Alexander Shishkin
On systems where PT does not coexist with VMX, users get confused when PT turns up with no data because they forgot they're running a kvm session at the same time. This patch adds a preemptive check for any active VMX operations that will fail event creation. This does not provide any guarantees o

[PATCH 1/2] perf/x86/intel/pt: Fail event scheduling on conflict with VMX

2017-02-14 Thread Alexander Shishkin
At the moment, if VMX operation prevents PT tracing, the PMU will silently return success to the event scheduling code, which will track its 'on' time, etc. Instead, report failure so that perf core knows this event is not actually on. Signed-off-by: Alexander Shishkin Reported-by: Andi Kleen Fi

Re: [PATCH v1 3/3] ASoC: zx-tdm: add zte's tdm controller driver

2017-02-14 Thread Shawn Guo
On Mon, Feb 13, 2017 at 04:17:33PM +0800, Baoyou Xie wrote: > This patch adds tdm controller driver for zte's SoC family. > > Signed-off-by: Baoyou Xie The patch looks rather pretty to me. I have only a few small comments below. > --- > sound/soc/zte/Kconfig | 8 + > sound/soc/zte/Makefile

Re: linux-next: manual merge of the kvm tree with the powerpc tree

2017-02-14 Thread Paolo Bonzini
On 14/02/2017 09:45, Michael Ellerman wrote: >> If possible, please pull only up to "powerpc/64: Allow for relocation-on >> interrupts from guest to host" and cherry-pick the top two patches >> ("powerpc/64: CONFIG_RELOCATABLE support for hmi interrupts" and >> "powerpc/powernv: Remove separate e

[no subject]

2017-02-14 Thread Charlyn Belle Falsis
Hiya Linux http://gurunanakpublicschool.org.in/newhome.php?region=bggn242v3n0cpe Yours Truly Charlyn Belle Falsis

[PATCH v3 01/18] dt-bindings: power: battery: add constant-charge-current property

2017-02-14 Thread Quentin Schulz
This adds the constant-charge-current property to the list of optional properties of the battery. The constant charge current is critical for batteries as they can't handle all charge currents. Signed-off-by: Quentin Schulz --- added in v3 Documentation/devicetree/bindings/power/supply/batter

[RFC 03/13] v4l: split lane parsing code

2017-02-14 Thread Pavel Machek
From: Sakari Ailus The function to parse CSI2 bus parameters was called v4l2_of_parse_csi_bus(), rename it as v4l2_of_parse_csi2_bus() in anticipation of CSI1/CCP2 support. Obtain data bus type from bus-type property. Only try parsing bus specific properties in this case. Separate lane parsing

[RFC 02/13] smiapp: add CCP2 support

2017-02-14 Thread Pavel Machek
Add support for CCP2 connected SMIA sensors as found on the Nokia N900. Signed-off-by: Sebastian Reichel Signed-off-by: Ivaylo Dimitrov Signed-off-by: Pavel Machek --- drivers/media/i2c/smiapp/smiapp-core.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dri

[RFC 01/13] Core changes for CCP2/CSI1 support.

2017-02-14 Thread Pavel Machek
From: Sakari Ailus CCP2, or CSI-1, is an older single data lane serial bus. Add core support neccessary for it. Signed-off-by: Sakari Ailus Signed-off-by: Ivaylo Dimitrov Signed-off-by: Pavel Machek --- include/media/v4l2-mediabus.h | 4 include/media/v4l2-of.h | 17 +

[RFC 08/13] smiapp-pll: Take existing divisor into account in minimum divisor check

2017-02-14 Thread Pavel Machek
From: Sakari Ailus Required added multiplier (and divisor) calculation did not take into account the existing divisor when checking the values against the minimum divisor. Do just that. Signed-off-by: Sakari Ailus Signed-off-by: Ivaylo Dimitrov Signed-off-by: Pavel Machek --- drivers/media/i

[RFC 07/13] v4l2: device_register_subdev_nodes: allow calling multiple times

2017-02-14 Thread Pavel Machek
From: Sebastian Reichel Without this, exposure / gain controls do not work in the camera application. Signed-off-by: Sebastian Reichel Signed-off-by: Ivaylo Dimitrov Signed-off-by: Pavel Machek --- drivers/media/v4l2-core/v4l2-device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/d

[RFC 10/13] omap3isp: fix capture

2017-02-14 Thread Pavel Machek
This is neccessary for capture (not preview) to work properly on N900. Why is unknown. --- drivers/media/platform/omap3isp/ispccdc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/omap3isp/ispccdc.c b/drivers/media/platform/omap3isp/ispccdc.c index

[RFC 12/13] Enable camera on N900.

2017-02-14 Thread Pavel Machek
--- arch/arm/boot/dts/omap3-n900.dts | 158 ++- 1 file changed, 157 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 87ca50b..aa4170f9 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/ar

[RFC 09/13] media: Add video bus switch

2017-02-14 Thread Pavel Machek
N900 contains front and back camera, with a switch between the two. This adds support for the switch component, and it is now possible to select between front and back cameras during runtime. FIXME: need to get acks and merge device tree support. Signed-off-by: Sebastian Reichel Signed-off-by: I

[RFC 13/13] adp1653: add subdevs

2017-02-14 Thread Pavel Machek
Needed for number of camera devices to match and fcam-dev to work. --- drivers/media/i2c/adp1653.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/adp1653.c b/drivers/media/i2c/adp1653.c index ba1ec4a..b3d8e60 100644 --- a/drivers/media/i2c/ad

[RFC 11/13] gpio-switch is for some reason neccessary for camera to work.

2017-02-14 Thread Pavel Machek
Probably something fun happening in userspace. --- arch/arm/mach-omap2/Makefile | 1 + arch/arm/mach-omap2/board-rx51-peripherals.c | 51 2 files changed, 52 insertions(+) create mode 100644 arch/arm/mach-omap2/board-rx51-peripherals.c diff --git a/a

[RFC 06/13] v4l2-async: per notifier locking

2017-02-14 Thread Pavel Machek
From: Sebastian Reichel Without this, camera support breaks boot on N900. Signed-off-by: Ivaylo Dimitrov --- drivers/media/v4l2-core/v4l2-async.c | 54 ++-- include/media/v4l2-async.h | 2 ++ 2 files changed, 29 insertions(+), 27 deletions(-) diff --

[RFC 05/13] omap3isp: Add subdevices support

2017-02-14 Thread Pavel Machek
Add subdevices support to omap3isp. It is neccessary for connecting subdevices (camera flash and autofocus coil) for N900 camera subsystem. Signed-off-by: Sakari Ailus Signed-off-by: Pavel Machek --- drivers/media/platform/omap3isp/isp.c | 128 ++-- drivers/media/p

[PATCH] Power: Supply: sbs-charger: simplfied bool function

2017-02-14 Thread Daniel Perez
Simplified the syntax of a simple bool return value function. Signed-off-by: Daniel Perez --- drivers/power/supply/sbs-charger.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/power/supply/sbs-charger.c b/drivers/power/supply/sbs-charger.c index 353765a..3e40553

[RFC 04/13] omap3isp: add support for CSI1 bus

2017-02-14 Thread Pavel Machek
Obtain the CSI1/CCP2 bus parameters from the OF node. ISP CSI1 module needs all the bits correctly set to work. OMAP3430 needs various syscon CONTROL_CSIRXFE bits set in order to operate. Implement the missing functionality. [FIXME: Laurent has some comments here] Signed-off-by: Sakari Ailus S

Re: [RFC 04/13] omap3isp: add support for CSI1 bus

2017-02-14 Thread Pavel Machek
Hi! > Obtain the CSI1/CCP2 bus parameters from the OF node. > > ISP CSI1 module needs all the bits correctly set to work. > > OMAP3430 needs various syscon CONTROL_CSIRXFE bits set in order to > operate. Implement the missing functionality. > > [FIXME: Laurent has some comments here] > > Signe

Re: Boot regression (was "Re: [PATCH] genhd: Do not hold event lock when scheduling workqueue elements")

2017-02-14 Thread h...@lst.de
Hi Dexuan, can you try the hack below for now? I disable the TUR call from sd_check_events, which I think your VM is hanging on. The checks it does on the sense data look a bit fishy, but so far I've not identified a possible root cause. diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index

Re: [BUGFIX PATCH 3/3] kprobes/arm: Fix the return address of multiple kretprobes

2017-02-14 Thread Jon Medhurst (Tixy)
On Tue, 2017-02-14 at 10:32 +, Jon Medhurst (Tixy) wrote: > On Tue, 2017-02-14 at 00:05 +0900, Masami Hiramatsu wrote: > > This is arm port of commit 737480a0d525 ("kprobes/x86: > > Fix the return address of multiple kretprobes"). > > > > Fix the return address of subsequent kretprobes when mu

[PATCH v3 04/18] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-02-14 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs have multiple ADCs. They expose the battery voltage, battery charge and discharge currents, AC-in and VBUS voltages and currents, 2 GPIOs muxable in ADC mode and PMIC temperature. This adds support for most of AXP20X and AXP22X ADCs. Signed-off-by: Quentin Sch

Re: net: BUG in __skb_gso_segment

2017-02-14 Thread Eric Dumazet
On Tue, 2017-02-14 at 13:59 +0100, Andrey Konovalov wrote: > On Mon, Feb 13, 2017 at 10:56 PM, Eric Dumazet wrote: > Hi Eric, > > > > > 926af6273fc683cd98cd0ce7bf0d04a02eed6 is quite old ;) > > Updated to 4.10-rc8 :) > > > > > Probably already fixed ? > > Yes, it is. > > Thanks! Perfect, th

Re: linux-next: build failure after merge of the net tree

2017-02-14 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 14, 2017 at 02:23:26PM +0100, Jiri Olsa escreveu: > On Tue, Feb 14, 2017 at 09:50:20AM -0300, Arnaldo Carvalho de Melo wrote: > > SNIP > > > > > What I think Ingo meant with dependency at the build system level is to > > somehow state that if file A gets changed, then tool B must be

Re: [PATCH 1/2] perf/x86/intel/pt: Fail event scheduling on conflict with VMX

2017-02-14 Thread Peter Zijlstra
On Tue, Feb 14, 2017 at 03:24:15PM +0200, Alexander Shishkin wrote: > At the moment, if VMX operation prevents PT tracing, the PMU will > silently return success to the event scheduling code, which will > track its 'on' time, etc. Instead, report failure so that perf > core knows this event is not

Re: [PATCH] Power: Supply: sbs-charger: simplfied bool function

2017-02-14 Thread Joe Perches
On Tue, 2017-02-14 at 14:43 +0100, Daniel Perez wrote: > Simplified the syntax of a simple bool return value function. > > Signed-off-by: Daniel Perez > --- > drivers/power/supply/sbs-charger.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/power/supply/sbs

Re: [PATCH 2/2] perf/x86/intel/pt: Fail event creation if VMX operation is on

2017-02-14 Thread Peter Zijlstra
On Tue, Feb 14, 2017 at 03:24:16PM +0200, Alexander Shishkin wrote: > On systems where PT does not coexist with VMX, users get confused when > PT turns up with no data because they forgot they're running a kvm > session at the same time. > > This patch adds a preemptive check for any active VMX op

[PATCH] net: ethernet: ti: cpsw: use var instead of func for usage count

2017-02-14 Thread Ivan Khoronzhuk
The usage count function is based on ndev_running flag that is updated before calling ndo_open/close, but if ndo is called in another place, as with suspend/resume, the counter is not changed, that breaks sus/resume. For common resource no difference which device is using it, does matter only devic

Re: Please turn "Cannot use CONFIG_STACK_VALIDATION" into build error

2017-02-14 Thread Josh Poimboeuf
On Tue, Feb 14, 2017 at 07:59:38AM -0600, Josh Poimboeuf wrote: > On Mon, Feb 13, 2017 at 06:08:52PM -0500, Jessica Yu wrote: > > +++ Josh Poimboeuf [13/02/17 12:41 -0600]: > > > On Mon, Feb 13, 2017 at 12:07:09AM -0800, Marc MERLIN wrote: > > > > Hi Josh, > > > > > > > > I'll start with the story

RE: Re: Re: Re: Subject: [PATCH v1] USB:Core: BugFix: Proper handling of Race Condition when two USB class drivers try to call init_usb_class simultaneously

2017-02-14 Thread Ajay Kaher
 At boot time, probe function of multiple connected devices  (proprietary devices) execute simultaneously. >>> >>> What exactly do you mean here?  How can probe happen "simultaneously"? >>> The USB core prevents this, right? >>  >> I have observed two scenarios to call probe function: >> 

Re: Please turn "Cannot use CONFIG_STACK_VALIDATION" into build error

2017-02-14 Thread Josh Poimboeuf
On Mon, Feb 13, 2017 at 06:08:52PM -0500, Jessica Yu wrote: > +++ Josh Poimboeuf [13/02/17 12:41 -0600]: > > On Mon, Feb 13, 2017 at 12:07:09AM -0800, Marc MERLIN wrote: > > > Hi Josh, > > > > > > I'll start with the story as to why. > > > i've lost more hours than I care to list, because I was un

Re: [PATCH V3 2/2] ARM: dts: rockchip: add dts for RK3288-Tinker board

2017-02-14 Thread Wadim Egorov
Hi Eddie, On 14.02.2017 11:07, Eddie Cai wrote: > This patch add basic support for RK3288-Tinker board. We can boot in to rootfs > with this patch. > > Signed-off-by: Eddie Cai > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/rk3288-tinker.dts | 536 > ++

Re: [PATCH] mm/autonuma: don't use set_pte_at when updating protnone ptes

2017-02-14 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > Architectures like ppc64, use privilege access bit to mark pte non accessible. > This implies that kernel can do a copy_to_user to an address marked for numa > fault. > This also implies that there can be a parallel hardware update for the pte. > set_pte_at cannot be

[PATCH v3 00/18] add support for AXP20X and AXP22X power supply drivers

2017-02-14 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs have multiple ADCs. They expose information and data of the various power supplies they support such as ACIN, battery and VBUS. For example, they expose the current battery voltage, charge or discharge, as well as ACIN and VBUS current voltages and currents, int

RE: Boot regression (was "Re: [PATCH] genhd: Do not hold event lock when scheduling workqueue elements")

2017-02-14 Thread Dexuan Cui
> From: h...@lst.de [mailto:h...@lst.de] > > Hi Dexuan, > > can you try the hack below for now? I disable the TUR call from > sd_check_events, which I think your VM is hanging on. The checks > it does on the sense data look a bit fishy, but so far I've not > identified a possible root cause. >

[PATCH] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state

2017-02-14 Thread Ritesh Raj Sarraf
Lenovo Yoga (many variants: Yoga, Yoga2 Pro, Yoga2 13, Yoga3 Pro, Yoga 3 14 etc) has multiple modles that are a hybrid laptop, working in laptop mode as well as tablet mode. Currently, there is no easy interface to determine the touchpad status, which in case of the Yoga family of machines, can al

[PATCH] HID: Accutouch: Add driver for ELO Accutouch 2216 USB Touchscreens

2017-02-14 Thread Martyn Welch
The Accutouch 2216 is reporting BTN_LEFT/BTN_MOUSE rather than BTM_TOUCH in it's capabilities, which is what user space expects a touchscreen device to report. This is causing udev to consider the device to be a "VMware's USB mouse" rather than as a touchscreen, which results in a mouse cursor bein

[PATCH v3 02/18] power: supply: power_supply_core: add constant-current-charge optional property

2017-02-14 Thread Quentin Schulz
This adds the constant-current-charge property to the list of optional properties for the battery. The constant charge current is critical for batteries as they can't handle all charge currents. Signed-off-by: Quentin Schulz --- added in v3 drivers/power/supply/power_supply_core.c | 3 +++ in

[PATCH v4 0/2] powerpc: Emulation support for load/store instructions on LE

2017-02-14 Thread Ravi Bangoria
emulate_step is the basic infrastructure which is used by number of other kernel infrastructures like kprobe, hw-breakpoint(data breakpoint) etc. In case of kprobe, enabling emulation of load/store instructions will speedup the execution of probed instruction. In case of kernel-space breakpoint, ca

RE: [PATCH] PCI: Xilinx NWL: Remove mask for messages not supported by AXI

2017-02-14 Thread Bharat Kumar Gogada
> On Tue, Jan 31, 2017 at 02:29:30PM +0530, Bharat Kumar Gogada wrote: > > - Removing support for vendor defined messages which are not > > suppoerted by AXI > > > > Signed-off-by: Bharat Kumar Gogada > > Applied to pci/host-xilinx for v4.11, thanks. > Thanks Bjorn. > Bharat, get_maintainer.pl l

[PATCH v4 2/2] powerpc: emulate_step tests for load/store instructions

2017-02-14 Thread Ravi Bangoria
Add new selftest that test emulate_step for Normal, Floating Point, Vector and Vector Scalar - load/store instructions. Test should run at boot time if CONFIG_KPROBES_SANITY_TEST and CONFIG_PPC64 is set. Sample log: [0.762063] emulate_step smoke test: start. [0.762219] emulate_step sm

Re: [PULL] IIO fixes for 4.10 set 3 - a couple of regression fixes.

2017-02-14 Thread Peter Rosin
On 2017-02-11 10:16, Jonathan Cameron wrote: > On 11/02/17 07:17, Greg Kroah-Hartman wrote: >> On Fri, Feb 10, 2017 at 11:35:35PM +0100, Peter Rosin wrote: On Sun, Feb 05, 2017 at 10:35:02AM +, Jonathan Cameron wrote: > The following changes since commit > 5c113b5e0082e90d2e1c7b12

Re: [PATCH v3 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP

2017-02-14 Thread Boris Ostrovsky
On 02/14/2017 04:20 AM, Paul Durrant wrote: My previous reply got bounced because my tablet insisted on using HTML... -Original Message- These need to be static. (I can fix it when committing.) Ok, thanks. And I am still not sure about using XEN_PAGE_SIZE. There is no dependency

[PATCH v4 1/2] powerpc: Emulation support for load/store instructions on LE

2017-02-14 Thread Ravi Bangoria
emulate_step() uses a number of underlying kernel functions that were initially not enabled for LE. This has been rectified since. So, fix emulate_step() for LE for the corresponding instructions. Reported-by: Anton Blanchard Signed-off-by: Ravi Bangoria --- arch/powerpc/lib/sstep.c | 20 --

Re: Boot regression (was "Re: [PATCH] genhd: Do not hold event lock when scheduling workqueue elements")

2017-02-14 Thread h...@lst.de
Ok, thanks for testing. Can you try the patch below? It fixes a clear problem which was partially papered over before the commit you bisected to, although it can't explain why blk-mq still works. >From e4a66856fa2d92c0298000de658365f31bea60cd Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Dat

Re: [PATCH] HID: intel-ish-hid: constify device_type structure

2017-02-14 Thread Jiri Kosina
On Sat, 11 Feb 2017, Bhumika Goyal wrote: > Declare device_type structure as const as it is only stored in the > type field of a device structure. This field is of type const, so add > const to the declaration of device_type structure. > > File size before: drivers/hid/intel-ish-hid/ishtp/bus.o >

Re: [PATCH v2] tools/power/x86: Debug utility for intel_pstate driver

2017-02-14 Thread Srinivas Pandruvada
On Tue, 2017-02-14 at 12:15 +0100, Rafael J. Wysocki wrote: > On Monday, February 13, 2017 08:19:00 PM Srinivas Pandruvada wrote: > > On Mon, 2017-02-13 at 15:19 -0800, Doug Smythies wrote: > > > This utility can be used to debug and tune the performance of the > > > intel_pstate driver. > > > This

Re: [tpmdd-devel] [RFC] tpm2-space: add handling for global session exhaustion

2017-02-14 Thread Dr. Greg Wettstein
On Fri, Feb 10, 2017 at 04:13:05PM -0500, Kenneth Goldman wrote: Good morning to everyone. > James Bottomley wrote on > 02/10/2017 11:46:03 AM: > > > > quote: 810 milliseconds > > > verify signature: 635 milliseconds For those who may be interested in this sort of thing I grabbed a few minute

Re: [PATCH] PCI: Xilinx NWL: Remove mask for messages not supported by AXI

2017-02-14 Thread Michal Simek
On 14.2.2017 15:29, Bharat Kumar Gogada wrote: >> On Tue, Jan 31, 2017 at 02:29:30PM +0530, Bharat Kumar Gogada wrote: >>> - Removing support for vendor defined messages which are not >>> suppoerted by AXI >>> >>> Signed-off-by: Bharat Kumar Gogada >> >> Applied to pci/host-xilinx for v4.11, thank

RE: Boot regression (was "Re: [PATCH] genhd: Do not hold event lock when scheduling workqueue elements")

2017-02-14 Thread Dexuan Cui
> From: h...@lst.de [mailto:h...@lst.de] > Sent: Tuesday, February 14, 2017 22:29 > To: Dexuan Cui > Subject: Re: Boot regression (was "Re: [PATCH] genhd: Do not hold event lock > when scheduling workqueue elements") > > Ok, thanks for testing. Can you try the patch below? It fixes a > clear pr

RE: [PATCH v2 0/3] x86/vdso: Add Hyper-V TSC page clocksource support

2017-02-14 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, February 14, 2017 4:44 AM > To: x...@kernel.org; Andy Lutomirski > Cc: Thomas Gleixner ; Ingo Molnar ; > H. Peter Anvin ; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; Dexuan Cui ; linux

Re: [PATCH] pinctrl: Really force states during suspend/resume

2017-02-14 Thread Florian Fainelli
On 02/07/2017 05:17 PM, Florian Fainelli wrote: > In case a platform only defaults a "default" set of pins, but not a > "sleep" set of pins, and this particular platform suspends and resumes > in a way that the pin states are not preserved by the hardware, when we > resume, we would call pinctrl_

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-14 Thread Waiman Long
On 02/14/2017 04:39 AM, Peter Zijlstra wrote: > On Mon, Feb 13, 2017 at 05:34:01PM -0500, Waiman Long wrote: >> It is the address of &steal_time that will exceed the 32-bit limit. > That seems extremely unlikely. That would mean we have more than 4G > worth of per-cpu variables declared in the kern

[PATCH v3 03/18] mfd: axp20x: correct name of temperature data ADC registers

2017-02-14 Thread Quentin Schulz
The registers 0x56 and 0x57 of AXP22X PMIC store the value of the internal temperature of the PMIC. This patch modifies the name of these registers from AXP22X_PMIC_ADC_H/L to AXP22X_PMIC_TEMP_H/L so their purpose is clearer. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai Acked-by: Maxime

Re: Boot regression (was "Re: [PATCH] genhd: Do not hold event lock when scheduling workqueue elements")

2017-02-14 Thread h...@lst.de
On Tue, Feb 14, 2017 at 02:46:41PM +, Dexuan Cui wrote: > > From: h...@lst.de [mailto:h...@lst.de] > > Sent: Tuesday, February 14, 2017 22:29 > > To: Dexuan Cui > > Subject: Re: Boot regression (was "Re: [PATCH] genhd: Do not hold event lock > > when scheduling workqueue elements") > > > > Ok

Re: [PATCH 1/2] pwm: loongson1: Add PWM driver for Loongson1 SoC

2017-02-14 Thread Marcin Nowakowski
Hi Yang, On 13.02.2017 16:28, Yang Ling wrote: Add support for the PWM controller present in Loongson1 family of SoCs. Signed-off-by: Yang Ling --- drivers/pwm/Kconfig | 9 +++ drivers/pwm/Makefile| 1 + drivers/pwm/pwm-loongson1.c | 169 ++

Re: [PATCH v2 0/3] x86/vdso: Add Hyper-V TSC page clocksource support

2017-02-14 Thread Thomas Gleixner
On Tue, 14 Feb 2017, Vitaly Kuznetsov wrote: > Hi, > > while we're still waiting for a definitive ACK from Microsoft that the > algorithm is good for SMP case (as we can't prevent the code in vdso from > migrating between CPUs) I'd like to send v2 with some modifications to keep > the discussion

[PATCH] oom_reaper: switch to struct list_head for reap queue

2017-02-14 Thread Aleksa Sarai
Rather than implementing an open addressing linked list structure ourselves, use the standard list_head structure to improve consistency with the rest of the kernel and reduce confusion. Cc: Michal Hocko Cc: Oleg Nesterov Signed-off-by: Aleksa Sarai --- include/linux/sched.h | 6 +- kerne

Re: [PATCH] PCI: Add cavium acs pci quirk

2017-02-14 Thread Bjorn Helgaas
On Mon, Feb 13, 2017 at 09:44:57PM -0700, Alex Williamson wrote: > On Sat, 30 Jan 2016 01:33:58 +0530 > Manish Jaggi wrote: > > > Cavium devices matching this quirk do not perform > > peer-to-peer with other functions, allowing masking out > > these bits as if they were unimplemented in the ACS c

re: sched: check negative err value to safe one level of indent

2017-02-14 Thread Colin Ian King
Jiro, A recent static analysis run with CoverityScan identified a potential change in functionality with your recent commit "sched: check negative err value to safe one level of indent" that landed in linux-next. The original path for case RTM_DELTFILTER would always goto errout, but your commit

Re: [PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-14 Thread Jens Axboe
On 02/13/2017 11:58 PM, Hannes Reinecke wrote: > On 02/13/2017 11:28 PM, Jens Axboe wrote: >> On 02/13/2017 03:09 PM, Omar Sandoval wrote: >>> On Mon, Feb 13, 2017 at 10:01:07PM +0100, Paolo Valente wrote: If, at boot, a legacy I/O scheduler is chosen for a device using blk-mq, or, viceve

Re: [PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-14 Thread Jens Axboe
On 02/14/2017 01:14 AM, Paolo Valente wrote: > >> Il giorno 14 feb 2017, alle ore 00:10, Jens Axboe ha >> scritto: >> >> On 02/13/2017 03:28 PM, Jens Axboe wrote: >>> On 02/13/2017 03:09 PM, Omar Sandoval wrote: On Mon, Feb 13, 2017 at 10:01:07PM +0100, Paolo Valente wrote: > If, at boo

Re: [PATCH v4 1/4] [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces

2017-02-14 Thread Fabien DESSENNE
Hi Thibault On 13/02/17 20:08, Thibault Saunier wrote: > From: Javier Martinez Canillas > > The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace > should be used for SDTV and V4L2_COLORSPACE_REC709 for HDTV. But drivers > don't agree on the display resolution that should be

Re: sched: check negative err value to safe one level of indent

2017-02-14 Thread Jiri Pirko
Tue, Feb 14, 2017 at 04:10:13PM CET, colin.k...@canonical.com wrote: >Jiro, > >A recent static analysis run with CoverityScan identified a potential >change in functionality with your recent commit "sched: check negative >err value to safe one level of indent" that landed in linux-next. > >The orig

Re: [PATCH 1/2] Fix mmdc_pmu_write_accesses event definition

2017-02-14 Thread Zhi Li
Subject should add prefix like: ARM: imx: fix best regards Frank Li On Tue, Feb 14, 2017 at 3:01 AM, Tiberiu Breana wrote: > Fixed an error in the "write-accesses" event definition. > > Signed-off-by: Tiberiu Breana > --- > arch/arm/mach-imx/mmdc.c | 2 +- > 1 file changed, 1 insertion(+

Re: [RFC][PATCH 11/21] tracing: Add variable support to hist triggers

2017-02-14 Thread Tom Zanussi
Hi Namhyung, On Mon, 2017-02-13 at 15:03 +0900, Namhyung Kim wrote: > On Wed, Feb 08, 2017 at 11:25:07AM -0600, Tom Zanussi wrote: > > Add support for saving the value of a current event's event field by > > assigning it to a variable that can be read by a subsequent event. > > > > The basic synt

Re: [PATCH v2 3/4] rtc: cros-ec: add cros-ec-rtc driver.

2017-02-14 Thread Lee Jones
On Tue, 14 Feb 2017, Enric Balletbo i Serra wrote: > Hi Lee, > > On 23/01/17 13:14, Lee Jones wrote: > > On Mon, 23 Jan 2017, Alexandre Belloni wrote: > > > >> On 19/01/2017 at 13:30:31 +0100, Enric Balletbo i Serra wrote : > >>> From: Stephen Barber > >>> > >>> On platforms with a Chrome OS EC

Re: [RFC][PATCH 12/21] tracing: Account for variables in named trigger compatibility

2017-02-14 Thread Tom Zanussi
On Mon, 2017-02-13 at 15:04 +0900, Namhyung Kim wrote: > On Wed, Feb 08, 2017 at 11:25:08AM -0600, Tom Zanussi wrote: > > Named triggers must also have the same set of variables in order to be > > considered compatible - update the trigger match test to account for > > that. > > > > The reason for

Re: [RFC][PATCH 00/21] tracing: Inter-event (e.g. latency) support

2017-02-14 Thread Tom Zanussi
On Mon, 2017-02-13 at 10:04 +0900, Namhyung Kim wrote: > On Fri, Feb 10, 2017 at 12:58:30PM -0600, Tom Zanussi wrote: > > Hi Masami, > > > > On Fri, 2017-02-10 at 18:34 +0900, Masami Hiramatsu wrote: > > > On Fri, 10 Feb 2017 13:16:17 +0900 > > > Namhyung Kim wrote: > > > > > > > > > > >

Re: [PATCHv4 3/5] x86/mm: fix 32-bit mmap() for 64-bit ELF

2017-02-14 Thread Dmitry Safonov
On 02/11/2017 10:49 PM, Thomas Gleixner wrote: On Mon, 30 Jan 2017, Dmitry Safonov wrote: Fix 32-bit compat_sys_mmap() mapping VMA over 4Gb in 64-bit binaries and 64-bit sys_mmap() mapping VMA only under 4Gb in 32-bit binaries. Introduced new bases for compat syscalls in mm_struct: mmap_compat_

[PATCH v2 0/5] md: use bio_clone_fast()

2017-02-14 Thread Ming Lei
Hi, This patches replaces bio_clone() with bio_fast_clone() in bio_clone_mddev() because: 1) bio_clone_mddev() is used in raid normal I/O and isn't in resync I/O path, and all the direct access to bvec table in raid happens on resync I/O only except for write behind of raid1. Write behind is trea

[PATCH v2 2/5] md: fail if mddev->bio_set can't be created

2017-02-14 Thread Ming Lei
The current behaviour is to fall back to allocate bio from 'fs_bio_set', that isn't a correct way because it might cause deadlock. So this patch simply return failure if mddev->bio_set can't be created. Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- drivers/md/md.c | 5 - 1 fil

Re: [RFC][PATCH 13/21] tracing: Add simple expression support to hist triggers

2017-02-14 Thread Tom Zanussi
Hi Namhyung, On Tue, 2017-02-14 at 11:37 +0900, Namhyung Kim wrote: > On Wed, Feb 08, 2017 at 11:25:09AM -0600, Tom Zanussi wrote: > > Add support for simple addition, subtraction, and unary expressions > > (-(expr) and expr, where expr = b-a, a+b, a+b+c) to hist triggers, in > > order to support

[PATCH v2 3/5] md/raid1: use bio_clone_bioset_partial() in case of write behind

2017-02-14 Thread Ming Lei
Write behind need to replace pages in bio's bvecs, and we have to clone a fresh bio with new bvec table, so use the introduced bio_clone_bioset_partial() for it. For other bio_clone_mddev() cases, we will use fast clone since they don't need to touch bvec table. Reviewed-by: Christoph Hellwig Si

<    2   3   4   5   6   7   8   >