[PATCH v3 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: [PATCH v2 1/2] powerpc: Emulation support for load/store instructions on LE

2017-02-14 Thread Ravi Bangoria
On Tuesday 14 February 2017 02:17 PM, Naveen N. Rao wrote: > On 2017/02/14 01:32PM, Ravi Bangoria wrote: >> 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

[PATCH v3 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

[PATCH] dt-bindings: net: generalize moxart-mac to support all faraday based ftmac IP

2017-02-14 Thread Greentime Hu
Andestech and moxa use the same faraday mac IP, so we use faraday,ftmac.txt to describe it. Signed-off-by: Greentime Hu --- .../net/{moxa,moxart-mac.txt => faraday,ftmac.txt} |7 +-- .../devicetree/bindings/vendor-prefixes.txt|1 + 2 files changed, 6 insertions(+), 2 deletio

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

2017-02-14 Thread Jiri Olsa
On Tue, Feb 14, 2017 at 07:42:21AM +0100, Ingo Molnar wrote: > > * Stephen Rothwell wrote: > > > Hi all, > > > > After merging the net tree, today's linux-next build (powerpc64le perf) > > failed like this: > > > > Warning: tools/include/uapi/linux/bpf.h differs from kernel > > bpf.c: In funct

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

2017-02-14 Thread Paul Durrant
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 in the hypervisor on buffers being pag

Re: [PATCH v7 1/5] x86: add simple udelay calibration

2017-02-14 Thread Sergei Shtylyov
Hello! On 2/14/2017 5:27 AM, Lu Baolu wrote: Add a simple udelay calibration in x86 architecture-specific boot-time initializations. This will get a workable estimate for loops_per_jiffy. Hence, udelay() could be used after this initialization. Cc: Ingo Molnar Cc: x...@kernel.org Signed-off-b

[PATCH] staging: gdm724x: Fix sparse warnings

2017-02-14 Thread maomao xu
drivers/staging/gdm724x/gdm_lte.c:311:39: warning: incorrect type in assignment (different base types) drivers/staging/gdm724x/gdm_lte.c:311:39:expected restricted __sum16 [addressable] [assigned] [usertype] icmp6_cksum drivers/staging/gdm724x/gdm_lte.c:311:39:got int Signed-off-by: maom

[PATCH 05/15] staging: rtl8192u: Use min_t instead of min

2017-02-14 Thread simran singhal
Use min_t instead of min function in ieee80211/ieee80211_wx.c fixed warning: WARNING: min() should probably be min_t(u8, network->ssid_len, 32) Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH] drivers: crypto: cpt: cpt_bind_vq_to_grp could return an error code

2017-02-14 Thread George Cherian
cpt_bind_vq_to_grp() could return an error code. However, it currently returns a u8. This produce the static checker warning. drivers/crypto/cavium/cpt/cptpf_mbox.c:70 cpt_bind_vq_to_grp() warn: signedness bug returning '(-22)' Reported-by: Dan Carpenter Signed-off-by: George Cherian --- driv

Re: [PATCH v6 3/3] i2c: zx2967: add i2c controller driver for ZTE's zx2967 family

2017-02-14 Thread Andy Shevchenko
On Tue, Feb 14, 2017 at 6:05 AM, Jun Nie wrote: > On 2017年02月09日 17:32, Baoyou Xie wrote: >> First of all, please, Jun, remove tons of lines of over quoting when answering to emails with one line question. Respect others time. See below. >> +static irqreturn_t zx2967_i2c_isr(int irq, void *dev_

PCI / PM: Crashes in PME scan during system suspend

2017-02-14 Thread Geert Uytterhoeven
Hi all, Laurent Pinchart reported that r8a7790/Lager crashes during suspend tests. I managed to reproduce the issue on r8a7791/koelsch: - It only happens during suspend tests, after writing either "platform" or "processors" to /sys/power/pm_test, - It does not (or is less likely) to happe

Re: [PATCH 1/5] clk: sunxi-ng: mp: Adjust parent rate for pre-dividers

2017-02-14 Thread Maxime Ripard
On Tue, Feb 14, 2017 at 11:35:22AM +0800, Chen-Yu Tsai wrote: > The MP style clocks support an mux with pre-dividers. While the driver > correctly accounted for them in the .determine_rate callback, it did > not in the .recalc_rate and .set_rate callbacks. > > This means when calculating the facto

[PATCH v2] staging: bcm2835-audio: remove unused macro

2017-02-14 Thread Hendrik v. Raven
The VC_AUDIO_MAX_MSG_LEN macro is not used by anything in the bcm2835-audio driver. Signed-off-by: Hendrik v. Raven --- v2: - rebased against next-20170214 --- drivers/staging/bcm2835-audio/vc_vchi_audioserv_defs.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/bcm2835

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

2017-02-14 Thread Masami Hiramatsu
On Mon, 13 Feb 2017 10:04:16 +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: [PATCH 2/5] clk: sunxi-ng: gate: Support common pre-dividers

2017-02-14 Thread Maxime Ripard
On Tue, Feb 14, 2017 at 11:35:23AM +0800, Chen-Yu Tsai wrote: > Some clock gates have a pre-divider between the source input and the > gate itself. A notable example is the HSIC 12 MHz clock found on the > A83T, which has the 24 MHz main oscillator as its input, and a /2 > pre-divider. > > Signed-

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

2017-02-14 Thread Peter Zijlstra
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 kernel.

[PATCH v3 05/18] mfd: axp20x: add ADC cells for AXP20X and AXP22X PMICs

2017-02-14 Thread Quentin Schulz
This adds the AXP20X/AXP22x ADCs driver to the mfd cells of the AXP209, AXP221 and AXP223 MFD. Signed-off-by: Quentin Schulz Acked-by: Maxime Ripard --- v3: - removed of_compatible as DT node has been removed, - use different names to probe the ADC driver, drivers/mfd/axp20x.c | 6 ++ 1

Re: [PATCH v2] drm/amd/dc: resource: fix semicolon.cocci warnings (fwd)

2017-02-14 Thread Christian König
Am 14.02.2017 um 07:21 schrieb Julia Lawall: Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Harry Wentland Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu Acked-by: Christian König for this one as well as the other similar patches. Thanks f

[PATCH 4/5] sprd_serial: switch comptible string to sc-uart

2017-02-14 Thread Chunyan Zhang
This driver sprd_serial is not only for SC9836, but for all Spreadtrum SoCs so far. Signed-off-by: Chunyan Zhang --- drivers/tty/serial/sprd_serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/sprd_serial.c b/drivers/tty/serial/sprd_serial.c index

[PATCH 3/5] devicetree: bindings: revise compatible string of sprd uart

2017-02-14 Thread Chunyan Zhang
This patch revise the compatible string of sprd uart to "sc-uart" since this driver is not only for SC9836, but for all Spreadtrum SoCs so far. Signed-off-by: Chunyan Zhang --- Documentation/devicetree/bindings/serial/sprd-uart.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH 2/5] Documentation: sprd: Add bindings for SP9860G

2017-02-14 Thread Chunyan Zhang
Added support for Spreadtrum SP9860G board and SC9860 SoC. This patch also revised bindings of SC9836 to make the format more clear. Signed-off-by: Chunyan Zhang --- Documentation/devicetree/bindings/arm/sprd.txt | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/D

[PATCH 5/5] serial: sprd: adjust TIMEOUT to a big value

2017-02-14 Thread Chunyan Zhang
From: Wei Qiao SPRD_TIMEOUT was 256, which is too small to wait until the status switched to workable in a while loop, so that the earlycon could not work correctly. Signed-off-by: Wei Qiao Signed-off-by: Chunyan Zhang --- drivers/tty/serial/sprd_serial.c | 2 +- 1 file changed, 1 insertion(+

[PATCH 0/5] Add Spreadtrum SP9860G support

2017-02-14 Thread Chunyan Zhang
SC9860 is a Spreadtrum SoC with eight Cortex A53, which are divided into 4 Big cores and 4 little cores. In this patch-set, patch-1/5 only provides a basic configuration for SC9860 in device tree to make it run to console. After this we will continue to submit other drivers step by step, which ar

[PATCH 1/5] arm64: dts: Add basic DT to support Spreadtrum's SP9860G

2017-02-14 Thread Chunyan Zhang
From: Orson Zhai SC9860G is a 8 cores of A53 SoC with 4G LTE support SoC from Spreadtrum. According to regular hierarchy of sprd dts, whale2.dtsi contains SoC peripherals IP nodes, sc9860.dtsi contains stuff related to ARM core stuff and sp9860g dts is for the board level. Signed-off-by: Orson

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

2017-02-14 Thread Eddie Cai
Hi 2017-02-09 7:07 GMT+08:00 Heiko Stuebner : > Hi Eddie > > Am Montag, 6. Februar 2017, 10:14:47 CET schrieb Eddie Cai: >> This patch add basic support for RK3288-Tinker board. We can boot in to >> rootfs with this patch. >> >> Signed-off-by: Eddie Cai >> --- > > [...] > >> +&hdmi { >> + #ad

Re: [PATCH V2 RFC] mtd: spi-nor: intel: provide a range for poll_timout

2017-02-14 Thread Mika Westerberg
On Mon, Feb 13, 2017 at 09:13:42AM +0100, Nicholas Mc Guire wrote: > The overall poll time here is INTEL_SPI_TIMEOUT * 1000 which is > 5000 * 1000 - so 5seconds and it is coded as a tight loop here delay_us > to readl_poll_timeout() is set to 0. As this is never called in an atomic > context sleepi

Re: [PATCH 4/5] clk: sunxi-ng: Add driver for A83T CCU

2017-02-14 Thread Maxime Ripard
On Tue, Feb 14, 2017 at 11:35:25AM +0800, Chen-Yu Tsai wrote: > +/* Some PLLs are input * N / div1 / P. Model them as NKMP with no K */ Is that even working? I'm not quite sure we want to do that. We might model it as a NP clock with a variable prediv? > +/* Use a separate clock for the pre-divi

Re: [PATCH V2] mtd: spi-nor: intel: use true/false for boolean

2017-02-14 Thread Mika Westerberg
On Tue, Feb 14, 2017 at 05:52:48AM +0100, Marek Vasut wrote: > On 02/13/2017 09:13 AM, Nicholas Mc Guire wrote: > > writeable in struct intel_spi is a boolean and assignment should be to > > true/false not 1/0 as recommended by boolinit.cocci. > > > > Signed-off-by: Nicholas Mc Guire > > --- > >

[PATCH v3 06/18] mfd: axp20x: add AC power supply cells for AXP22X PMICs

2017-02-14 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs expose the status of AC power supply. This adds the AC power supply driver to the MFD cells of the AXP22X PMICs. Signed-off-by: Quentin Schulz Acked-by: Maxime Ripard Acked-By: Sebastian Reichel Acked-by: Chen-Yu Tsai Acked-for-MFD-by: Lee Jones --- driv

Re: [PATCH] mtd: spi-nor: intel: use ERR_CAST in return statement

2017-02-14 Thread Mika Westerberg
On Mon, Feb 13, 2017 at 09:14:21AM +0100, Nicholas Mc Guire wrote: > This fixes a sparse warning about incorrect type in retrun expression > > Signed-off-by: Nicholas Mc Guire Acked-by: Mika Westerberg

[PATCH V3 0/2] Add support for RK3288 Tinker board

2017-02-14 Thread Eddie Cai
This patch set add support for RK3288 Tinker board. Tinker board is a credit card size develop board powered by RK3288. Eddie Cai (2): dt-bindings: add Asus Tinker board ARM: dts: rockchip: add dts for RK3288-Tinker board Documentation/devicetree/bindings/arm/rockchip.txt | 3 + arch/arm/b

Re: [BUGFIX PATCH 2/3] kprobes/arm: Skip single-stepping in recursing path if possible

2017-02-14 Thread Jon Medhurst (Tixy)
On Tue, 2017-02-14 at 00:04 +0900, Masami Hiramatsu wrote: > Kprobes/arm skips single-stepping (moreover handling the event) > if the conditional instruction must not be executed. This > also apply the rule when we hit the recursing kprobe, so > that kprobe does not count nmissed up in that case.

[PATCH 2/2] x86/mm/ptdump: Add address marker for KASAN shadow region

2017-02-14 Thread Andrey Ryabinin
Annotate the KASAN shadow with address markers in page table dump output: $ cat /sys/kernel/debug/kernel_page_tables ... ---[ Vmemmap ]--- 0xea00-0xea000300 48M RW PSE GLB NX pmd 0xea000300-0xea000400 16M

Re: [PATCH v2 04/10] mm, page_alloc: count movable pages when stealing from pageblock

2017-02-14 Thread Xishi Qiu
On 2017/2/11 1:23, Vlastimil Babka wrote: > When stealing pages from pageblock of a different migratetype, we count how > many free pages were stolen, and change the pageblock's migratetype if more > than half of the pageblock was free. This might be too conservative, as there > might be other pag

[PATCH 1/2] x86/mm/ptdump: Optimize check for W+X mappings for CONFIG_KASAN=y

2017-02-14 Thread Andrey Ryabinin
Enabling both DEBUG_WX=y and KASAN=y options significantly increases boot time (dozens of seconds at least). KASAN fills kernel page tables with repeated values to map several TBs of the virtual memory to the single kasan_zero_page: kasan_zero_pud -> kasan_zero_pmd-> kasan_

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

2017-02-14 Thread Eddie Cai
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 2 files changed, 537 insertions(+) create mod

[PATCH V3 1/2] dt-bindings: add Asus Tinker board

2017-02-14 Thread Eddie Cai
From: Eddie Cai Tinker board is a credit card size develop board designed by Asus. Powered by RK3288. Acked-by: Rob Herring Signed-off-by: Eddie Cai --- Documentation/devicetree/bindings/arm/rockchip.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/

Re: [PATCH] mtd: spi-nor: intel: use ERR_CAST in return statement

2017-02-14 Thread Boris Brezillon
On Mon, 13 Feb 2017 09:14:21 +0100 Nicholas Mc Guire wrote: > This fixes a sparse warning about incorrect type in retrun expression ^return and you miss a comma at the end of this sentence. > > Signed-off-by: Nicholas Mc Guire You forgot

Re: [PATCH RESEND] Kbuild: add cpp_its_S in ksym_dep_filter

2017-02-14 Thread James Hogan
On Mon, Feb 13, 2017 at 11:15:56AM +0100, Marcin Nowakowski wrote: > Add a new command cpp_its_S introduced in: > cf2a5e0bb4c6 ("MIPS: Support generating Flattened Image Trees (.itb)") > to ksym_dep_filter handler - otherwise a warning is produced during the > build of MIPS platforms (when vmlinux.

Re: [PATCH] mips: audit and remove any unnecessary uses of module.h

2017-02-14 Thread James Hogan
On Sat, Jan 28, 2017 at 09:05:57PM -0500, Paul Gortmaker wrote: > Historically a lot of these existed because we did not have > a distinction between what was modular code and what was providing > support to modules via EXPORT_SYMBOL and friends. That changed > when we forked out support for the l

Re: [PATCH -next] MIPS: sysmips: Remove duplicated include from syscall.c

2017-02-14 Thread James Hogan
On Mon, Feb 06, 2017 at 04:26:50PM +, Wei Yongjun wrote: > From: Wei Yongjun > > Remove duplicated include. > > Signed-off-by: Wei Yongjun Applied Thanks James > --- > arch/mips/kernel/syscall.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/mips/kernel/syscall.c b/arch/m

Re: [PATCH V2 3/3] mm: Enable Buddy allocation isolation for CDM nodes

2017-02-14 Thread Anshuman Khandual
On 02/14/2017 01:58 PM, Vlastimil Babka wrote: > On 02/10/2017 11:06 AM, Anshuman Khandual wrote: >> This implements allocation isolation for CDM nodes in buddy allocator by >> discarding CDM memory zones all the time except in the cases where the gfp >> flag has got __GFP_THISNODE or the nodemask

[PATCH v3 08/18] ARM: dtsi: axp22x: add AC power supply subnode

2017-02-14 Thread Quentin Schulz
The X-Powers AXP22X PMIC exposes the status of AC power supply. This adds the AC power supply subnode for the AXP22X PMIC. Signed-off-by: Quentin Schulz Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- v2: - changed DT node name from ac_power_supply to ac-power-supply, - removed io-channe

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

2017-02-14 Thread Michael Ellerman
Ravi Bangoria writes: > emulate_step() uses a number of underlying kernel functions that were > initially not enabled for LE. This has been rectified since. When exactly? ie. which commit. Should we backport this? ie. is it actually a bug people are hitting in the real world much? cheers

Re: [PATCH 4/5] clk: sunxi-ng: Add driver for A83T CCU

2017-02-14 Thread Chen-Yu Tsai
On Tue, Feb 14, 2017 at 5:58 PM, Maxime Ripard wrote: > On Tue, Feb 14, 2017 at 11:35:25AM +0800, Chen-Yu Tsai wrote: >> +/* Some PLLs are input * N / div1 / P. Model them as NKMP with no K */ > > Is that even working? Looking at the nkmp clock code, only .recalc_rate will work properly though. M

Re: [PATCH v13 00/12] power: add power sequence library

2017-02-14 Thread Roger Quadros
Peter, On 11/02/17 03:27, Peter Chen wrote: > Hi all, > > This is a follow-up for my last power sequence framework patch set [1]. > According to Rob Herring and Ulf Hansson's comments[2]. The kinds of > power sequence instances will be added at postcore_initcall, the match > criteria is compatibl

Re: [BUGFIX PATCH 1/3] kprobes/arm: Allow to handle reentered kprobe on single-stepping

2017-02-14 Thread Jon Medhurst (Tixy)
On Tue, 2017-02-14 at 00:03 +0900, Masami Hiramatsu wrote: > This is arm port of commit 6a5022a56ac3 ("kprobes/x86: Allow to > handle reentered kprobe on single-stepping") > > Since the FIQ handlers can interrupt in the single stepping > (or preparing the single stepping, do_debug etc.), we should

[PATCH v3 10/18] ARM: sun5i: chip: enable ACIN power supply subnode

2017-02-14 Thread Quentin Schulz
The NextThing Co. CHIP has an AXP209 PMIC and can be power-supplied by ACIN via the CHG-IN pin. This enables the ACIN power supply subnode in the DT. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-r8-chip.dts | 4 1 file changed,

Re: [PATCH] kretprobes: reject registration if a symbol offset is specified

2017-02-14 Thread Masami Hiramatsu
On Tue, 14 Feb 2017 14:01:18 +0530 "Naveen N. Rao" wrote: > Users shouldn't be able to specify an offset with kretprobes, as we always > want to probe at function entry. Otherwise, we won't be able to capture > the proper return address resulting in the kretprobe never firing. > Nack, this shou

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 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 multiple > kretprobes are set on the same function. > > For example: > >

[PATCH v1 0/2] Add pinctrl input schmitt support

2017-02-14 Thread David Wu
From: "david.wu" Some pins need to enable Schmitt triggers which are used in open loop configurations for noise immunity and closed loop configurations to implement function generators. david.wu (2): pinctrl: rockchip:Add input schmitt support pinctrl: rockchip: Add input schmitt support for

[PATCH v1 2/2] pinctrl: rockchip: Add input schmitt support for rk3328

2017-02-14 Thread David Wu
From: "david.wu" Signed-off-by: david.wu --- drivers/pinctrl/pinctrl-rockchip.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c index 6a071b1..6206e1e 100644 --- a/drivers/pinctrl/pinctrl-rockchi

Re: [PATCH] lz4: fix performance regressions

2017-02-14 Thread Sven Schmidt
Hey Eric, On Sun, Feb 12, 2017 at 03:38:02PM -0800, Eric Biggers wrote: > Hi Sven, > > On Sun, Feb 12, 2017 at 12:16:18PM +0100, Sven Schmidt wrote: > > /*- > > * Reading and writing into memory > > **/ > > +typedef unio

[PATCH v1 1/2] pinctrl: rockchip:Add input schmitt support

2017-02-14 Thread David Wu
From: "david.wu" To prevent external noise crosstalk, some pins need to enable input schmitt, like i2c pins, 32k-input pin and so on. Signed-off-by: david.wu --- drivers/pinctrl/pinctrl-rockchip.c | 69 ++ 1 file changed, 69 insertions(+) diff --git a/drive

Re: [PATCH] mtd: spi-nor: add support for GD25Q256

2017-02-14 Thread Cyrille Pitchen
Hi Andy, Le 14/02/2017 à 01:36, Andy Yan a écrit : > GD25Q256 is a 32MiB SPI Nor flash from Gigadevice. > > Signed-off-by: Andy Yan > --- > drivers/mtd/spi-nor/spi-nor.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > mode change 100644 => 100755 drivers/mtd/spi-nor/spi-nor.c

Re: [PATCHSET for-4.11] cgroup: implement cgroup v2 thread mode

2017-02-14 Thread Peter Zijlstra
On Sun, Feb 12, 2017 at 02:05:44PM +0900, Tejun Heo wrote: > Hello, > > On Fri, Feb 10, 2017 at 06:51:45PM +0100, Peter Zijlstra wrote: > > Sure, we're past that. This isn't about what memcg can or cannot do. > > Previous discussions established that controllers come in two shapes: > > > > - tas

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

2017-02-14 Thread Roger Quadros
Hi, On 11/02/17 03:27, Peter Chen wrote: > From: Arnd Bergmann > > For xhci-hcd platform device, all the DMA parameters are not > configured properly, notably dma ops for dwc3 devices. So, set > the dma for xhci from sysdev. sysdev is pointing to device that > is known to the system firmware or

[PATCH] uapi: fix linux/if_pppol2tp.h userspace compilation errors

2017-02-14 Thread Dmitry V. Levin
Move inclusion of before to fix userspace compilation errors like this: In file included from /usr/include/linux/l2tp.h:12:0, from /usr/include/linux/if_pppol2tp.h:21, /usr/include/netinet/in.h:31:8: error: redefinition of 'struct in_addr' Fixes: 47c3e7783be4 ("net: l2tp: depre

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

2017-02-14 Thread Michael Ellerman
Ravi Bangoria writes: > diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c > index fce05a3..5c5ae66 100644 > --- a/arch/powerpc/kernel/kprobes.c > +++ b/arch/powerpc/kernel/kprobes.c > @@ -528,6 +528,8 @@ int __kprobes longjmp_break_handler(struct kprobe *p, > struct pt_r

[PATCH 06/15] staging: rtl8192u: Fixing coding style issues

2017-02-14 Thread simran singhal
fixed errors and warnings: ERROR: spaces required around that '=' ERROR: spaces required around that '<' ERROR: space required before the open parenthesis '(' CHECK: spaces preferred around that '&' CHECK: spaces preferred around that '<<' ERROR: space required after that ',' ERROR: spaces required

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

2017-02-14 Thread Michael Ellerman
Ravi Bangoria writes: > diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile > index 0e649d7..ddc879d 100644 > --- a/arch/powerpc/lib/Makefile > +++ b/arch/powerpc/lib/Makefile > @@ -33,3 +33,7 @@ obj-$(CONFIG_ALTIVEC) += xor_vmx.o > CFLAGS_xor_vmx.o += -maltivec $(call cc-op

[PATCH v3 07/18] ARM: dtsi: axp209: add AC power supply subnode

2017-02-14 Thread Quentin Schulz
The X-Powers AXP20X PMIC exposes the status of AC power supply, the current current and voltage supplied to the board by the AC power supply. This adds the AC power supply subnode for AXP20X PMIC. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- v2: - changed

Re: [PATCH] sched/deadline: Remove redundant code replenishing runtime

2017-02-14 Thread Juri Lelli
On 14/02/17 11:06, Byungchul Park wrote: > On Tue, Feb 14, 2017 at 08:42:43AM +0900, Byungchul Park wrote: > > On Mon, Feb 13, 2017 at 03:24:55PM +, Juri Lelli wrote: > > > > > > I think we actually want to replenish and set the next deadline at > > > > > > this > > > > > > point of time, not

[PATCH v3 09/18] ARM: dts: sun8i: sina33: enable ACIN power supply subnode

2017-02-14 Thread Quentin Schulz
The Sinlinx SinA33 has an AXP223 PMIC and an ACIN connector, thus, we enable the ACIN power supply in its Device Tree. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file changed, 4 insertions(+) diff

Re: [PATCH 2/2] powerpc/mm/autonuma: Switch ppc64 to its own implementeation of saved write

2017-02-14 Thread Michael Ellerman
Michael Neuling writes: > On Thu, 2017-02-09 at 08:30 +0530, Aneesh Kumar K.V wrote: >> With this our protnone becomes a present pte with READ/WRITE/EXEC bit >> cleared. >> By default we also set _PAGE_PRIVILEGED on such pte. This is now used to help >> us identify a protnone pte that as saved w

Re: [PATCH V2 1/2] mm/autonuma: Let architecture override how the write bit should be stashed in a protnone pte.

2017-02-14 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: > On Tuesday 14 February 2017 11:19 AM, Michael Ellerman wrote: >> "Aneesh Kumar K.V" writes: >> >>> Autonuma preserves the write permission across numa fault to avoid taking >>> a writefault after a numa fault (Commit: b191f9b106ea " mm: numa: preserve >>> PTE >>> wr

Re: [PATCH v2 2/3] perf: make build_cpu_topology skip offline/absent CPUs

2017-02-14 Thread Jiri Olsa
On Mon, Feb 13, 2017 at 04:34:35PM +0100, Jan Stancek wrote: SNIP > This patch makes build_cpu_topology() skip offline/absent CPUs, > by checking their presence against cpu_map built from online CPUs. > > Signed-off-by: Jan Stancek > --- > tools/perf/util/header.c | 21 + >

Re: [PATCH V2 2/2] powerpc/mm/autonuma: Switch ppc64 to its own implementeation of saved write

2017-02-14 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: > diff --git a/arch/powerpc/include/asm/book3s/64/mmu-hash.h > b/arch/powerpc/include/asm/book3s/64/mmu-hash.h > index 0735d5a8049f..8720a406bbbe 100644 > --- a/arch/powerpc/include/asm/book3s/64/mmu-hash.h > +++ b/arch/powerpc/include/asm/book3s/64/mmu-hash.h > @@ -16,

[PATCH] mmc: sdhci-cadence: fix bit shift of read data from PHY port

2017-02-14 Thread Masahiro Yamada
This macro is currently unused, but it may be useful for debug use. Fix it just in case. Fixes: ff6af28faff5 ("mmc: sdhci-cadence: add Cadence SD4HC support") Signed-off-by: Masahiro Yamada --- drivers/mmc/host/sdhci-cadence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH v3 11/18] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-02-14 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. This patch adds the DT binding documentation for the battery power supply which gets various data from the PMIC, such as the battery status (charging, discharging, full, dead), current max limit, current current, battery capa

Re: [PATCH v2 1/3] perf: add cpu__max_present_cpu()

2017-02-14 Thread Jiri Olsa
On Mon, Feb 13, 2017 at 04:34:34PM +0100, Jan Stancek wrote: > Similar to cpu__max_cpu() (which returns max possible CPU), > returns max present CPU. > > Signed-off-by: Jan Stancek > --- > tools/perf/util/cpumap.c | 22 ++ > tools/perf/util/cpumap.h | 1 + > 2 files changed,

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

2017-02-14 Thread Rafael J. Wysocki
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 utility can be used in two ways: > > - If there is Linux trace file w

[PATCH v3 12/18] mfd: axp20x: add CHRG_CTRL1/2/3 to writeable regs for AXP20X/AXP22X

2017-02-14 Thread Quentin Schulz
The CHRG_CTRL1 and CHRG_CTRL2 registers are made for controlling different battery charging settings such as the constant current charge value. The AXP22X also have a third register CHRG_CTRL3 which has settings for battery charging too. This adds the CHRG_CTRL1, CHRG_CTRL2 and CHRG_CTRL3 registe

Re: [PATCH] ARM: mvebu: add support for the Linksys WRT1900ACS (Shelby)

2017-02-14 Thread Imre Kaloz
On 2017-02-14 09:59, Ralph Sennhauser wrote: The Linksys WRT1900ACS (Shelby) is another Armada 385 based router in the Linksys WRT AC Series which got released in October 2015. The file armada-385-linksys-shelby.dts is taken from OpenWrt as-is and originally authored by Imre Kaloz. URL: http:/

Re: PCI / PM: Crashes in PME scan during system suspend

2017-02-14 Thread Rafael J. Wysocki
On Tuesday, February 14, 2017 10:31:38 AM Geert Uytterhoeven wrote: > Hi all, > > Laurent Pinchart reported that r8a7790/Lager crashes during suspend tests. > > I managed to reproduce the issue on r8a7791/koelsch: > - It only happens during suspend tests, after writing either "platform" > o

Re: [PATCH] mmc: sdhci-cadence: fix bit shift of read data from PHY port

2017-02-14 Thread Adrian Hunter
On 14/02/17 13:05, Masahiro Yamada wrote: > This macro is currently unused, but it may be useful for debug use. > Fix it just in case. > > Fixes: ff6af28faff5 ("mmc: sdhci-cadence: add Cadence SD4HC support") > Signed-off-by: Masahiro Yamada Acked-by: Adrian Hunter > --- > > drivers/mmc/host

Re: Question about DEC Alpha memory ordering

2017-02-14 Thread Andrea Parri
On Mon, Feb 13, 2017 at 01:24:36PM -0800, Paul E. McKenney wrote: > On Mon, Feb 13, 2017 at 04:06:21PM -0500, Alan Stern wrote: > > On Mon, 13 Feb 2017, Paul E. McKenney wrote: > > > > > On Mon, Feb 13, 2017 at 08:14:23PM +0100, Tobias Klausmann wrote: > > > > Hi! > > > > > > > > On Mon, 13 Feb

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

2017-02-14 Thread Ravi Bangoria
Thanks Michael, On Tuesday 14 February 2017 03:50 PM, Michael Ellerman wrote: > Ravi Bangoria writes: > >> emulate_step() uses a number of underlying kernel functions that were >> initially not enabled for LE. This has been rectified since. > When exactly? ie. which commit. I found couple of com

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

2017-02-14 Thread Ravi Bangoria
On Tuesday 14 February 2017 04:16 PM, Michael Ellerman wrote: > Ravi Bangoria writes: > >> diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile >> index 0e649d7..ddc879d 100644 >> --- a/arch/powerpc/lib/Makefile >> +++ b/arch/powerpc/lib/Makefile >> @@ -33,3 +33,7 @@ obj-$(CONFIG_A

[PATCH v3 16/18] ARM: dtsi: axp22x: add battery power supply subnode

2017-02-14 Thread Quentin Schulz
The X-Powers AXP22X 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 limit, current voltage, and battery capacity (in Ah). This adds the battery power supply su

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 11:36 AM, Roger Quadros wrote: > On 11/02/17 03:27, Peter Chen wrote: >> From: Arnd Bergmann >> >> For xhci-hcd platform device, all the DMA parameters are not >> configured properly, notably dma ops for dwc3 devices. So, set >> the dma for xhci from sysdev. sysdev is poin

Re: [PATCH V2 3/3] mtd: spi-nor: add support for ESMT_f25l32qa and ESMT_f25l64qa

2017-02-14 Thread Rafał Miłecki
On 01/30/2017 02:04 PM, Cyrille Pitchen wrote: Le 21/12/2016 à 08:23, John Crispin a écrit : From: "Larry D. Pinney" Add Support for the ESMT_F25L32QA and ESMT_F25L64QA These are 4MB and 8MB SPI NOR Chips from Elite Semiconductor Memory Technology Acked-by: Marek Vasut Signed-off-by: John Cr

[PATCH 07/15] staging: rtl8192u: Fixing style issues in r8180_93cx6.c

2017-02-14 Thread simran singhal
Fixing the following checkpatch.pl errors and warning: WARNING: Block comments use * on subsequent lines CHECK: Please don't use multiple blank lines CHECK: Alignment should match open parenthesis CHECK: spaces preferred around that '<<' CHECK: spaces preferred around that '-' CHECK: Alignment

[PATCH 08/15] staging: rtl8192u: Fixing style issues in r8180_93cx6.h

2017-02-14 Thread simran singhal
Fixing the following checkpatch.pl errors and warning: WARNING: Block comments use * on subsequent lines CHECK: Please don't use multiple blank lines Signed-off-by: simran singhal --- drivers/staging/rtl8192u/r8180_93cx6.h | 27 +-- 1 file changed, 13 insertions(+), 14 d

[PATCH v3 18/18] ARM: sun5i: chip: enable battery power supply subnode

2017-02-14 Thread Quentin Schulz
The NextThing Co. CHIP has an AXP209 PMIC with battery connector. This enables the battery power supply subnode. Signed-off-by: Quentin Schulz Acked-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-r8-chip.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-r8-chip

Re: [PATCH 2/3] lockdep: consolidate by new validate_held_lock()

2017-02-14 Thread Peter Zijlstra
On Fri, Feb 03, 2017 at 01:38:16AM +0900, J. R. Okajima wrote: > A simple consolidataion. The behaviour should not change. > > Signed-off-by: J. R. Okajima > --- > kernel/locking/lockdep.c | 39 +-- > 1 file changed, 21 insertions(+), 18 deletions(-) > > diff

Re: [PATCH 3/3] lockdep: new annotation lock_downgrade()

2017-02-14 Thread Peter Zijlstra
On Fri, Feb 03, 2017 at 06:05:31AM +0900, J. R. Okajima wrote: > Peter Zijlstra: > > > >> kernel/locking/rwsem.c:126:2: error: implicit declaration of functi= > on 'lock_downgrade' [-Werror=3Dimplicit-function-declaration] > > > lock_downgrade(&sem->dep_map, _RET_IP_); > > > ^

[PATCH 09/15] staging: rtl8192u: fixing block comments use * on subsequent lines

2017-02-14 Thread simran singhal
Fixed checkpatch.pl warning: WARNING: Block comments use * on subsequent lines Signed-off-by: simran singhal --- drivers/staging/rtl8192u/r8190_rtl8256.h | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8192u/r8190_rtl8256.h b/drivers/s

Re: [PATCH -next] drm/bridge/tfp410: Make symbol tfp410_platform_driver static

2017-02-14 Thread Archit Taneja
On 2/9/2017 8:55 PM, Wei Yongjun wrote: From: Wei Yongjun Fixes the following sparse warning: drivers/gpu/drm/bridge/ti-tfp410.c:223:24: warning: symbol 'tfp410_platform_driver' was not declared. Should it be static? This was queued to drm-misc-next Thanks, Archit Signed-off-by: Wei Y

Re: [RFC/PATCH 2/3] security: Add the Timgad module

2017-02-14 Thread Djalal Harouni
On Sat, Feb 11, 2017 at 1:33 AM, Kees Cook wrote: > On Thu, Feb 2, 2017 at 9:04 AM, Djalal Harouni wrote: >> From: Djalal Harouni >> >> This adds the Timgad module. Timgad allows to apply restrictions on >> which task is allowed to load or unload kernel modules. Auto-load module >> feature is al

Re: [PATCH 2/2] x86/mm/ptdump: Add address marker for KASAN shadow region

2017-02-14 Thread Alexander Potapenko
On Tue, Feb 14, 2017 at 11:08 AM, Andrey Ryabinin wrote: > Annotate the KASAN shadow with address markers in page table > dump output: > > $ cat /sys/kernel/debug/kernel_page_tables > ... > ---[ Vmemmap ]--- > 0xea00-0xea000300 48M RW PSE GLB > NX pmd

[PATCH v3 14/18] mfd: axp20x: add MFD cells for AXP20X and AXP22X battery driver

2017-02-14 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. This patch adds the AXP20X/AXP22X battery driver to the MFD cells of the AXP209, AXP221 and AXP223 MFD. Signed-off-by: Quentin Schulz Acked-for-MFD-by: Lee Jones --- drivers/mfd/axp20x.c | 9 + 1 file changed, 9 i

Re: [PATCH 1/2] x86/mm/ptdump: Optimize check for W+X mappings for CONFIG_KASAN=y

2017-02-14 Thread Alexander Potapenko
On Tue, Feb 14, 2017 at 11:08 AM, Andrey Ryabinin wrote: > Enabling both DEBUG_WX=y and KASAN=y options significantly increases > boot time (dozens of seconds at least). > KASAN fills kernel page tables with repeated values to map several > TBs of the virtual memory to the single kasan_zero_page:

Re: [PATCH] powerpc/xmon: add turn off xmon option

2017-02-14 Thread Michael Ellerman
Pan Xinhui writes: > Once xmon is triggered, there is no interface to turn it off again. > However there exists disable/enable xmon code flows. And more important, > System reset interrupt on powerVM will fire an oops to make a dump. At > that time, xmon should not be triggered. > > So add 'z' op

Re: [PATCH V2 2/2] powerpc/mm/autonuma: Switch ppc64 to its own implementeation of saved write

2017-02-14 Thread Aneesh Kumar K.V
Michael Ellerman writes: > "Aneesh Kumar K.V" writes: >> diff --git a/arch/powerpc/include/asm/book3s/64/mmu-hash.h >> b/arch/powerpc/include/asm/book3s/64/mmu-hash.h >> index 0735d5a8049f..8720a406bbbe 100644 >> --- a/arch/powerpc/include/asm/book3s/64/mmu-hash.h >> +++ b/arch/powerpc/include/

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

2017-02-14 Thread Roger Quadros
On 14/02/17 13:44, Arnd Bergmann wrote: > On Tue, Feb 14, 2017 at 11:36 AM, Roger Quadros wrote: >> On 11/02/17 03:27, Peter Chen wrote: >>> From: Arnd Bergmann >>> >>> For xhci-hcd platform device, all the DMA parameters are not >>> configured properly, notably dma ops for dwc3 devices. So, set

Re: [PATCH v8 9/9] perf/amd/iommu: Enable support for multiple IOMMUs

2017-02-14 Thread Peter Zijlstra
On Tue, Feb 07, 2017 at 08:57:52AM +0700, Suravee Suthikulpanit wrote: > >But instead it looks like you get the counter form: > > > > #define _GET_CNTR(ev) ((u8)(ev->hw.extra_reg.reg)) > > > >Which is absolutely insane. > > > > So, the IOMMU counters are grouped into bank, and there could b

[PATCH] perf: fix documentation of sysctls perf_event_paranoid and perf_event_mlock_kb

2017-02-14 Thread Konstantin Khlebnikov
Fix misprint CAP_IOC_LOCK -> CAP_IPC_LOCK. This capability have nothing to do with raw tracepoints. This part is about bypassing mlock limits. Sysctl kernel.perf_event_paranoid = -1 allows raw and ftrace function tracepoints without CAP_SYS_ADMIN. Signed-off-by: Konstantin Khlebnikov --- Docume

[PATCH v3 17/18] ARM: dts: sun8i: sina33: enable battery power supply subnode

2017-02-14 Thread Quentin Schulz
The Sinlinx SinA33 has an AXP223 PMIC and a battery connector, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz Acked-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file changed, 4 insertions(+) diff --git a/ar

<    1   2   3   4   5   6   7   8   >