Re: [PATCH v3] vfio error recovery: kernel support

2017-01-22 Thread Jason Wang
On 2017年01月22日 15:38, Michael S. Tsirkin wrote: diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index 26c155b..6b0f416 100644 --- a/include/linux/virtio_config.h +++ b/include/linux/virtio_config.h @@ -159,7 +159,17 @@ static inline bool virtio_has_iommu_quirk(const s

Re: [PATCH v2 10/26] drm/rockchip: dw-mipi-dsi: only request HS clock when required

2017-01-22 Thread Chris Zhong
Hi John Reviewed-by: Chris Zhong On 01/22/2017 12:31 AM, John Keeping wrote: Requesting the HS clock from the PHY before we initialize it causes an invalid signal to be sent out since the input clock is not yet configured. The PHY databook suggests only asserting this signal when performing H

Re: [PATCH v2 11/26] drm/rockchip: dw-mipi-dsi: don't assume buffer is aligned

2017-01-22 Thread Chris Zhong
Hi John Reviewed-by: Chris Zhong On 01/22/2017 12:31 AM, John Keeping wrote: By dereferencing the MIPI command buffer as a u32* we rely on it being correctly aligned on ARM, but this may not be the case. Copy it into a stack variable that will be correctly aligned. Signed-off-by: John Keepi

[PATCH v4 1/3] dt: bindings: add documentation for zx2967 family watchdog controller

2017-01-22 Thread Baoyou Xie
This patch adds dt-binding documentation for zx2967 family watchdog controller. Signed-off-by: Baoyou Xie --- .../bindings/watchdog/zte,zx2967-wdt.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/zte,zx296

[PATCH v4 3/3] watchdog: zx2967: add watchdog controller driver for ZTE's zx2967 family

2017-01-22 Thread Baoyou Xie
This patch adds watchdog controller driver for ZTE's zx2967 family. Signed-off-by: Baoyou Xie --- drivers/watchdog/Kconfig | 10 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/zx2967_wdt.c | 282 ++ 3 files changed, 293 insertions(+) cre

[PATCH v4 2/3] MAINTAINERS: add zx2967 watchdog controller driver to ARM ZTE architecture

2017-01-22 Thread Baoyou Xie
Add the zx2967 watchdog controller driver as maintained by ARM ZTE architecture maintainers, as they're parts of the core IP. Signed-off-by: Baoyou Xie --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index edfdea3..275c434 100644 --- a/MAINTAINERS

Re: [PATCH net] virtio-net: restore VIRTIO_HDR_F_DATA_VALID on receiving

2017-01-22 Thread Jason Wang
On 2017年01月22日 12:22, Michael S. Tsirkin wrote: On Sun, Jan 22, 2017 at 10:41:22AM +0800, Jason Wang wrote: On 2017年01月21日 00:45, Michael S. Tsirkin wrote: On Fri, Jan 20, 2017 at 02:32:42PM +0800, Jason Wang wrote: Commit 501db511397f ("virtio: don't set VIRTIO_NET_HDR_F_DATA_VALID on xmit

Re: [PATCH v2 12/26] drm/rockchip: dw-mipi-dsi: prepare panel after phy init

2017-01-22 Thread Chris Zhong
Hi John Reviewed-by: Chris Zhong On 01/22/2017 12:31 AM, John Keeping wrote: Some panels need to be configured with commands sent over the MIPI link, which they will do in the prepare hook. Call this after the PHY has been initialized so that we are able to send commands to the panel. Signed

[PATCH 0/5] block: Fine-tuning for five function implementations

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 21 Jan 2017 23:00:00 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (5): Move three assignments for the variable "ret" in tg_set_max() Move an assignment for the variable "ret" in tg_set_conf() Adjust

[PATCH 1/5] blk-throttle: Move three assignments for the variable "ret" in tg_set_max()

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 21 Jan 2017 21:23:06 +0100 A local variable was set to an error code before a concrete error situation was detected. Thus move the corresponding assignments into if branches to indicate a software failure there. Signed-off-by: Markus Elfring --- block/blk-thrott

Re: [PATCH 00/13] Input: Automated coccinelle cleanup (take 2)

2017-01-22 Thread Dmitry Torokhov
On Sat, Jan 21, 2017 at 10:45:52AM -0800, Guenter Roeck wrote: > This patch series is the result of applying a set of coccinelle semantic > patches to the input subsystem. The patches are only cleanup patches; > there is little or no change in functionality. > > This time around, the patches are c

[PATCH 2/5] blk-throttle: Move an assignment for the variable "ret" in tg_set_conf()

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 21 Jan 2017 21:40:38 +0100 A local variable was set to an error code before a concrete error situation was detected. Thus move the corresponding assignment into an if branch to indicate a software failure there. This issue was detected by using the Coccinelle soft

[PATCH 3/5] blk-throttle: Adjust two function calls together with a variable assignment

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 21 Jan 2017 22:15:33 +0100 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code places. Signed-off-by: Markus Elfring --- block/blk-throttle.c | 6 -- 1 file c

[PATCH 4/5] cfq-iosched: Move an assignment for the variable "ret" in __cfqg_set_weight_device()

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 21 Jan 2017 22:26:38 +0100 A local variable was set to an error code before a concrete error situation was detected. Thus move the corresponding assignment into an if branch to indicate a software failure there. This issue was detected by using the Coccinelle soft

[PATCH 5/5] cfq-iosched: Adjust one function call together with a variable assignment

2017-01-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 21 Jan 2017 22:44:07 +0100 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code place. Signed-off-by: Markus Elfring --- block/cfq-iosched.c | 6 -- 1 file cha

[PATCH] pinctrl: rockchip: Add rk3328 pinctrl support

2017-01-22 Thread David Wu
From: "david.wu" This patch supports 3bit width iomux type. Note, the iomux of following pins are special, need to be handled specially. - gpio2_b0 ~ gpio2_b6 - gpio2_b7 - gpio2_c7 - gpio3_b0 - gpio3_b1 ~ gpio3_b7 And therefore add IOMUX_RECALCED_FLAG to indicate which iomux source of the ba

Re: [PATCH v2 13/26] drm/rockchip: dw-mipi-dsi: allow commands in panel_disable

2017-01-22 Thread Chris Zhong
Hi John On 01/22/2017 12:31 AM, John Keeping wrote: Panel drivers may want to sent commands during the disable function, for example MIPI_DCS_SET_DISPLAY_OFF before the video signal ends. In order to send commands we need to write to registers, so pclk must be enabled. While changing this, r

[btrfs/rt] lockdep false positive

2017-01-22 Thread Mike Galbraith
Greetings btrfs/lockdep wizards, RT trees have trouble with the BTRFS lockdep positive avoidance lock class dance (see disk-io.c). Seems the trouble is due to RT not having a means of telling lockdep that its rwlocks are recursive for read by the lock owner only, combined with the BTRFS lock clas

Re: kvm: WARNING in kvm_load_guest_fpu

2017-01-22 Thread Dmitry Vyukov
On Sat, Nov 12, 2016 at 4:57 AM, Dmitry Vyukov wrote: > Hello, > > The following program triggers WARNING in kvm_load_guest_fpu: > https://gist.githubusercontent.com/dvyukov/5bc076073b48772e22b5f33acbe2b743/raw/1000df869f0d58a5c6e637268453c711280b255d/gistfile1.txt > > On commit 015ed9433be2b476ec

Re: [PATCH v7 3/5] phy: Add set_vbus callback

2017-01-22 Thread Kishon Vijay Abraham I
Hi, On Saturday 21 January 2017 12:20 AM, Stephen Boyd wrote: > Some USB PHYs need to be told about vbus changing state > explicitly. For example the qcom USB HS PHY needs to toggle a bit > when vbus goes from low to high (VBUSVLDEXT) to cause the > "session valid" signal to toggle. This signal wi

[PATCH] x86/fpu: set the xcomp_bv when we fake up a XSAVES area

2017-01-22 Thread Kevin Hao
I got the following calltrace on a Apollo Lake SoC with 32bit kernel. WARNING: CPU: 2 PID: 261 at arch/x86/include/asm/fpu/internal.h:363 fpu__restore+0x1f5/0x260 Modules linked in: CPU: 2 PID: 261 Comm: check_hostname. Not tainted 4.10.0-rc4-next-20170120 #90 Hardware name: Intel Corp. Br

Re: kvm: WARNING In kvm_apic_accept_events

2017-01-22 Thread Dmitry Vyukov
On Sat, Nov 12, 2016 at 2:56 AM, Dmitry Vyukov wrote: > Hello, > > The following program triggers WARNING in kvm_apic_accept_events: > https://gist.githubusercontent.com/dvyukov/95b845a2e637485568ea1ef181a72370/raw/d90717dd67128b21715c5e794568a1600f613d97/gistfile1.txt > > On commit 015ed9433be2b4

Re: [PATCH v2 3/3] clk: rockchip: rk3288: make all niu clocks critical

2017-01-22 Thread Jacob Chen
2017-01-18 13:42 GMT+08:00 Jacob Chen : > NIU clocks are related to the interconnect and it's important to other blocks. > Since we don't have a driver to handle it, we should always enable it to avoid > casually close. > > Make all of them critical,so that we don't have to each clock on its own >

Re: [PATCH v5 1/4] usb: dbc: early driver for xhci debug capability

2017-01-22 Thread Ingo Molnar
* Lu Baolu wrote: > > > >> +static void xdbc_runtime_delay(unsigned long count) > >> +{ > >> + udelay(count); > >> +} > >> +static void (*xdbc_delay)(unsigned long) = xdbc_early_delay; > > Is this udelay() complication really necessary? udelay() should work fine > > even in > > early code. It

[tip:timers/core] x86/timer: Make delay() work during early bootup

2017-01-22 Thread tip-bot for Jiri Slaby
Commit-ID: 4c45c5167c9563b1a2eee3e2fe954621355e4ca8 Gitweb: http://git.kernel.org/tip/4c45c5167c9563b1a2eee3e2fe954621355e4ca8 Author: Jiri Slaby AuthorDate: Thu, 19 Jan 2017 12:47:30 +0100 Committer: Ingo Molnar CommitDate: Sun, 22 Jan 2017 10:03:12 +0100 x86/timer: Make delay() work

Re: [PATCH v6 1/4] usb: dbc: early driver for xhci debug capability

2017-01-22 Thread Ingo Molnar
* Lu Baolu wrote: > xHCI debug capability (DbC) is an optional but standalone > functionality provided by an xHCI host controller. Software > learns this capability by walking through the extended > capability list of the host. xHCI specification describes > DbC in section 7.6. > > This patch i

Re: [PATCH 3/3] dts: hisi: add dts files for Hi3516CV300 demo board

2017-01-22 Thread Kefeng Wang
On 2016/10/17 20:07, Pan Wen wrote: > Add dts files for Hi3516CV300 demo board. > > Signed-off-by: Pan Wen > --- > arch/arm/boot/dts/Makefile | 1 + [...] > diff --git a/arch/arm/boot/dts/hi3516cv300.dtsi > b/arch/arm/boot/dts/hi3516cv300.dtsi > new file mode 100644 > index 000

Re: [PATCH v2 14/26] drm/rockchip: dw-mipi-dsi: fix escape clock rate

2017-01-22 Thread Chris Zhong
Reviewed-by: Chris Zhong On 01/22/2017 12:31 AM, John Keeping wrote: Use the same calculation as the vendor kernel to derive the escape clock speed. Signed-off-by: John Keeping --- Unchanged in v2 --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 4 +++- 1 file changed, 3 insertions(+), 1 delet

Re: [PATCH v2 15/26] drm/rockchip: dw-mipi-dsi: ensure PHY is reset

2017-01-22 Thread Chris Zhong
Reviewed-by: Chris Zhong On 01/22/2017 12:31 AM, John Keeping wrote: Also don't power up the DSI host at this point since this is not necessary in order to configure the PHY and we do so later when selecting video or command mode. Signed-off-by: John Keeping --- Unchanged in v2 --- drivers

Re: [PATCH] x86 tsc: Add the Intel Denverton Processor to native_calibrate_tsc()

2017-01-22 Thread Ingo Molnar
* Len Brown wrote: > From: Len Brown > > The Intel Denverton microserver uses a 25 MHz TSC crystal, > so we can derive its exact * TSC frequency > using CPUID and some arithmetic, eg. > > TSC: 1800 MHz (2500 Hz * 216 / 3 / 100) > > * 'exact' is only as good as the crystal, which shou

Re: Regression on Dell XPS13 (was: [char-misc for 4.10-rc4 V2] mei: bus: enable OS version only for SPT and newer)

2017-01-22 Thread Rafael J. Wysocki
On Sat, Jan 21, 2017 at 12:11 AM, wrote: > Greg, > >> -Original Message- >> From: Darren Hart [mailto:dvh...@infradead.org] >> Sent: Tuesday, January 17, 2017 5:34 PM >> To: Limonciello, Mario >> Cc: gre...@linuxfoundation.org; rafael.j.wyso...@intel.com; >> pmen...@molgen.mpg.de; li...@

[PATCH] f2fs: introduce nid cache

2017-01-22 Thread Chao Yu
In scenario of intensively node allocation, free nids will be ran out soon, then it needs to stop to load free nids by traversing NAT blocks, in worse case, if NAT blocks does not be cached in memory, it generates IOs which slows down our foreground operations. In order to speed up node allocation

Re: [linux-sunxi] Re: [PATCH 1/4] phy: sun4i-usb: support PHY0 on H3 in MUSB mode

2017-01-22 Thread Hans de Goede
HI, On 22-01-17 10:39, Icenowy Zheng wrote: 20.01.2017, 16:04, "Hans de Goede" : HI, On 19-01-17 21:27, Karsten Merker wrote: On Thu, Jan 19, 2017 at 11:10:08PM +0800, Icenowy Zheng wrote: 19.01.2017, 22:34, "Maxime Ripard" : On Wed, Jan 18, 2017 at 04:09:32AM +0800, Chen-Yu Tsai wrote

Re: [PATCH] prctl: propagate has_child_subreaper flag to every descendant

2017-01-22 Thread Pavel Tikhomirov
On 01/20/2017 09:14 PM, Oleg Nesterov wrote: On 01/19, Pavel Tikhomirov wrote: Having these two differently behaving groups can lead to confusion. Also it is a problem for CRIU, as when we restore process tree we need to somehow determine which descendants belong to which group and much harde

Re: [PATCH v2 17/26] drm/rockchip: dw-mipi-dsi: don't enable PHY PLL until it's configured

2017-01-22 Thread Chris Zhong
Hi John This patch do the similar thing with https://patchwork.kernel.org/patch/9530405/ They are changing the phy configuration order, my suggestion is to merge them. On 01/22/2017 12:31 AM, John Keeping wrote: Signed-off-by: John Keeping --- Unchanged in v2 --- drivers/gpu/drm/rockchip

Re: [PATCH] prctl: propagate has_child_subreaper flag to every descendant

2017-01-22 Thread Pavel Tikhomirov
Sorry I had some problem with mail-agent, resend to be on the safe side. On 01/20/2017 09:14 PM, Oleg Nesterov wrote: On 01/19, Pavel Tikhomirov wrote: Having these two differently behaving groups can lead to confusion. Also it is a problem for CRIU, as when we restore process tree we need to

[tip:locking/core] locking/rwsem: Reinit wake_q after use

2017-01-22 Thread tip-bot for Waiman Long
Commit-ID: bcc9a76d5ac426bc45c9e863b1830347827ca77a Gitweb: http://git.kernel.org/tip/bcc9a76d5ac426bc45c9e863b1830347827ca77a Author: Waiman Long AuthorDate: Sat, 21 Jan 2017 21:33:35 -0500 Committer: Ingo Molnar CommitDate: Sun, 22 Jan 2017 09:54:00 +0100 locking/rwsem: Reinit wake_q

[tip:sched/core] sched/Documentation/sched-rt-group: Fix incorrect example

2017-01-22 Thread tip-bot for Zhou Chengming
Commit-ID: 3a09b8d45b3c05d49e581831de626927c37599f8 Gitweb: http://git.kernel.org/tip/3a09b8d45b3c05d49e581831de626927c37599f8 Author: Zhou Chengming AuthorDate: Sun, 22 Jan 2017 15:22:35 +0800 Committer: Ingo Molnar CommitDate: Sun, 22 Jan 2017 10:34:17 +0100 sched/Documentation/sched

Re: [PATCH] Input: evdev: fix queueing of SYN_DROPPED event for EVIOCG[type] IOCTL case

2017-01-22 Thread David Herrmann
Hi On Thu, Nov 24, 2016 at 9:11 PM, Aniroop Mathur wrote: > Currently, when EVIOCG[type] ioctl call is issued and bits_to_user fails, > then SYN_DROPPED event is inserted in the event queue always. > > However, it is not compulsory that some events are flushed out on every > EVIOCG[type] ioctl ca

About commit 65fe935d ("x86/KASLR, x86/power: Remove x86 hibernation restrictions")

2017-01-22 Thread Baoquan He
Hi Kees, In your commit 65fe935dd, you mentioned with the fix of 70595b479ce1, the x86 hibernation restrictions can be removed. However I didn't find it in Linus's tree. I found commit 65c0554 ("x86/power/64: Fix kernel text mapping corruption during image restoration"), it should be the one you m

arch/mips/vdso/elf.S:1:0: error: '-march=r3000' requires '-mfp32'

2017-01-22 Thread kbuild test robot
Hi Alex, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c497f8d17246720afe680ea1a8fa6e48e75af852 commit: ebb5e78cc63417a35254a791de66e1cc84f963cc MIPS: Initial implementation of a VDSO date: 1 year, 2 months ago

Re: [PATCH 1/4] lib: Update LZ4 compressor module

2017-01-22 Thread Greg KH
On Sat, Jan 21, 2017 at 04:09:08PM +0100, Sven Schmidt wrote: > This patch updates LZ4 kernel module to LZ4 v1.7.3 by Yann Collet. > The kernel module is inspired by the previous work by Chanho Min. > The updated LZ4 module will not break existing code since there were alias > methods added to ensu

fs/xfs/xfs_ondisk.h:96:2: error: call to '__compiletime_assert_96' declared with attribute error: XFS: sizeof(xfs_dir2_sf_entry_t) is wrong, expected 3

2017-01-22 Thread kbuild test robot
Hi Dave, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c497f8d17246720afe680ea1a8fa6e48e75af852 commit: ab9d1e4f7b0217948a3b35a64178602ab30ff45d Merge branch 'xfs-misc-fixes-4.6-3' into for-next date: 11 months

Re: [PATCH 1/2] random: use chacha20 for get_random_int/long

2017-01-22 Thread Greg Kroah-Hartman
On Sat, Jan 21, 2017 at 03:08:12PM +0100, Jason A. Donenfeld wrote: > Hi Ted, > > On Sat, Jan 21, 2017 at 7:24 AM, Theodore Ts'o wrote: > > Oh, I see. > > > > So that's not how I would do things, but it's fine. > > > Great, alright. In what tree should I look for these two commits? Or > should

Re: Regression on Dell XPS13 (was: [char-misc for 4.10-rc4 V2] mei: bus: enable OS version only for SPT and newer)

2017-01-22 Thread Greg KH
On Sat, Jan 21, 2017 at 12:49:50PM +0100, Rafael J. Wysocki wrote: > On Sat, Jan 21, 2017 at 10:11 AM, Greg KH wrote: > > On Fri, Jan 20, 2017 at 11:11:45PM +, mario.limoncie...@dell.com wrote: > >> Greg, > >> > >> > -Original Message- > >> > From: Darren Hart [mailto:dvh...@infradead.

Re: [PATCH] Input: max11801_ts - drop call to input_set_drvdata()

2017-01-22 Thread Guenter Roeck
On 01/21/2017 11:38 PM, Dmitry Torokhov wrote: Nobody calls input_get_drvdata() so setting it is not required. Signed-off-by: Dmitry Torokhov Acked-by: Guenter Roeck Surprisingly, there is about a dozen of those. I'll send a series of coccinelle generated patches later. Guenter --- driv

arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3000' requires '-mfp32'

2017-01-22 Thread kbuild test robot
Hi Guenter, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c497f8d17246720afe680ea1a8fa6e48e75af852 commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier date

Re: [PATCH v2 3/3] clk: rockchip: rk3288: make all niu clocks critical

2017-01-22 Thread Heiko Stuebner
Am Sonntag, 22. Januar 2017, 17:02:17 CET schrieb Jacob Chen: > 2017-01-18 13:42 GMT+08:00 Jacob Chen : > > NIU clocks are related to the interconnect and it's important to other > > blocks. Since we don't have a driver to handle it, we should always > > enable it to avoid casually close. > > > >

[GIT pull] x86 fix for 4.10

2017-01-22 Thread Thomas Gleixner
Linus, please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus Restore the retrigger callbacks in the IO APIC irq chips. That addresses a long standing regression which got introduced with the rewrite of the x8

[GIT pull] smp/hotplug fix for 4.10

2017-01-22 Thread Thomas Gleixner
Linus, please pull the latest smp-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp-urgent-for-linus Remove an unused variable which is a leftover from the notifier removal. Thanks, tglx --> Tobias Klauser (1): cpu/

[PATCH 02/22] irqchip: DT bindings for Cortina Gemini irqchip

2017-01-22 Thread Linus Walleij
This adds device tree bindings for the Cortina Gemini interrupt controller. They are pretty standard. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Cc: devicet...@vger.kernel.org Signed-off-by: Linus Walleij --- irqchip maintainers: please just apply this when

[PATCH 04/22] clocksource: add DT bindings for Cortina Gemini

2017-01-22 Thread Linus Walleij
This adds device tree bindings for the Cortina Systems Gemini timer block used in these SoCs. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Cc: devicet...@vger.kernel.org Signed-off-by: Linus Walleij --- clocksource maintainers: please just apply this when you

[PATCH 03/22] irqchip: add a driver for Cortina Gemini

2017-01-22 Thread Linus Walleij
As a part of transitioning the Gemini platform to device tree we create this clean, device-tree-only irqchip driver. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Signed-off-by: Linus Walleij --- irqchip maintainers: please just apply this when you feel pleased

[PATCH 05/22] clocksource: Add driver for the Cortina Gemini

2017-01-22 Thread Linus Walleij
This is a rewrite of the Gemini timer driver in arch/arm/mach-gemini/timer.c trying to do everything the device tree way: - Make every IO-access relative to a base address and dynamic so we can do a dynamic ioremap and get going. - Do not poke around directly in the global syscon registers, ac

[PATCH 06/22] gpio: add DT bindings for Cortina Gemini GPIO

2017-01-22 Thread Linus Walleij
This adds fairly standard DT bindings for the Cortina Systems Gemini GPIO controller. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Cc: devicet...@vger.kernel.org Signed-off-by: Linus Walleij --- Note to self: just apply this to the GPIO tree when discussion is

[PATCH 07/22] gpio: Add a driver for Cortina Systems Gemini GPIO

2017-01-22 Thread Linus Walleij
This is a heavy edit/rewrite of the GPIO driver for the Gemini SoC from arch/arm/mach-gemini/gpio.c. This rewrite uses all the best-in-class helper like generic GPIO and GPIOLIB_IRQCHIP and has been tested on ITian Square One Gemini-based NAS/router. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Han

Re: [PATCH 1/2] random: use chacha20 for get_random_int/long

2017-01-22 Thread Jason A. Donenfeld
Hey Greg, On Sun, Jan 22, 2017 at 12:24 PM, Greg Kroah-Hartman wrote: > On Sat, Jan 21, 2017 at 03:08:12PM +0100, Jason A. Donenfeld wrote: >> Hi Ted, >> >> On Sat, Jan 21, 2017 at 7:24 AM, Theodore Ts'o wrote: >> > Oh, I see. >> > >> > So that's not how I would do things, but it's fine. >> >> >

[PATCH 21/22] ARM: gemini: convert to ARMv4 multiplatform

2017-01-22 Thread Linus Walleij
This converts the Gemini platform to ARMv4 multiplatform, deleting the local include directory, moving an idiomatic local idling function into the .machine_init() call and getting rid of the Makefile.boot finally. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli S

[PATCH 17/22] ARM: dts: add a devicetree for Wiliboard WBD-222

2017-01-22 Thread Linus Walleij
This devicetree is simply based on the board file in arch/arm/mach-gemini/board-wbd222.c and contain the equivalent platform data, mainly just moving the GPIOs from the global numberspace to explicitly reference their parent GPIO. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Flo

[PATCH 11/22] ARM: dts: add top-level DT bindings for Cortina Gemini

2017-01-22 Thread Linus Walleij
This adds the top level SoC bindings for Cortina systems Gemini platforms. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Cc: devicet...@vger.kernel.org Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/arm/gemini.txt | 58 +

[PATCH 13/22] ARM: dts: add device tree for Gemini SoC and SQ201

2017-01-22 Thread Linus Walleij
This adds a device tree for the Gemini SoC and the ITian Square One SQ201 board that has been my testing target for Gemini device tree support. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Signed-off-by: Linus Walleij --- arch/arm/boot/dts/Makefile |

[PATCH 16/22] ARM: dts: add a devicetree for Wiliboard WBD-111

2017-01-22 Thread Linus Walleij
This devicetree is simply based on the board file in arch/arm/mach-gemini/board-wbd111.c and contain the equivalent platform data, mainly just moving the GPIOs from the global numberspace to explicitly reference their parent GPIO. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Flo

[PATCH 14/22] ARM: dts: add a devicetree for Raidsonic NAS IB-4220-B

2017-01-22 Thread Linus Walleij
This devicetree is simply based on the board file in arch/arm/mach-gemini/board-nas4220b.c and contain the equivalent platform data, mainly just moving the GPIOs from the global numberspace to explicitly reference &gpio1. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fain

[PATCH 22/22] ARM: configs: add a gemini defconfig

2017-01-22 Thread Linus Walleij
It makes sense to have a stripped-down defconfig for just Gemini, as it is a pretty small platform used in NAS etc, and will use appended device tree. It is also quick to compile and test. Hopefully this defconfig can be a good base for distributions such as OpenWRT. Cc: Janos Laube Cc: Paulius Z

[PATCH 19/22] ARM: gemini: switch to sparse IRQs

2017-01-22 Thread Linus Walleij
There is no boardfiles or anything else using the fixed IRQs anymore, switch the platform to use sparse IRQs and delete the header. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Signed-off-by: Linus Walleij --- arch/arm/Kconfig | 1 +

[PATCH 18/22] ARM: gemini: delete all boardfiles

2017-01-22 Thread Linus Walleij
Delete the Gemini boardfiles: we have corresponding, fully-featured device trees for all these boards. Delete the referenced include files. Delete the local config symbols, especially one for "swapped memory", as all supported boards have swapped memory, and would a new board be supported this is l

[PATCH 12/22] ARM: gemini: DT for the Cortina Gemini SoC platforms

2017-01-22 Thread Linus Walleij
This adds initial and compulsory device tree support to the Gemini ARMv4 platform. We are selecting a bunch of "absolute minimals" for getting a working system up with just device tree: - We select USE_OF for natural reasons or nothing works. - We select CLKSRC_OF and GEMINI_TIMER so we get time

[PATCH 20/22] ARM: gemini: select ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR

2017-01-22 Thread Linus Walleij
This platform survives physical to virtual patching without any hickups, and can use AUTO_ZRELADDR. We still need to keep Makefile.boot but it is now empty. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Signed-off-by: Linus Walleij --- arch/arm/Kconfig

[PATCH] nfc: nxp-nci: use msleep for long delays

2017-01-22 Thread Nicholas Mc Guire
ulseep_range() uses hrtimers and provides no advantage over msleep() for larger delays. For this large delay msleep() is preferable. Fixes: commit 6be88670fc59 ("NFC: nxp-nci_i2c: Add I2C support to NXP NCI driver") Link: http://lkml.org/lkml/2017/1/11/377 Signed-off-by: Nicholas Mc Guire --- Pr

[PATCH 08/22] rtc: Add device tree probing to the Gemini driver

2017-01-22 Thread Linus Walleij
This adds bindings and simple probing for the Cortina Systems Gemini SoC RTC. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Cc: devicet...@vger.kernel.org Signed-off-by: Linus Walleij --- RTC maintainers: please just apply this to the RTC tree when you are plea

[PATCH 09/22] mtd: add DT bindings for the Cortina Systems Gemini Flash

2017-01-22 Thread Linus Walleij
This adds device tree bindings for the Cortina systems Gemini flash controller, a simple physmap which however need a few syscon bits to be poked to operate properly. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Cc: devicet...@vger.kernel.org Signed-off-by: Lin

Re: [PATCH] iio: trigger: close race condition in acquiring trigger reference

2017-01-22 Thread Jonathan Cameron
On 22/01/17 03:28, Alison Schofield wrote: > In iio_trigger_write_current() we find the trigger we want while > holding mutex on the list of triggers, but we don't actually do a > get on it while holding mutex. We wait until further validations > are completed and we're sure it's the one we want.

[PATCH 10/22] mtd: physmap_of: add a hook for Gemini flash probing

2017-01-22 Thread Linus Walleij
In order to support device tree probing of Gemini NOR flash chips, a certain register in the syscon needs to be poked to enable parallel flash mode. Such things used to happen in "necessarily different" board file code, and this indeed was also done for the Gemini, so the MTD driver could treat it

[PATCH 15/22] ARM: dts: add a devicetree for Teltonika RUT1xx

2017-01-22 Thread Linus Walleij
This devicetree is simply based on the board file in arch/arm/mach-gemini/board-rut1xx.c and contain the equivalent platform data, mainly just moving the GPIOs from the global numberspace to explicitly reference their parent GPIO. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Flo

Re: [PATCH 1/7] iio: adc: stm32: add support for triggered buffer mode

2017-01-22 Thread Jonathan Cameron
On 19/01/17 13:34, Fabrice Gasnier wrote: > STM32 ADC conversions can be launched using hardware triggers. > It can be used to start conversion sequences (group of channels). > Selected channels are select via sequence registers. > Trigger source is selected via 'extsel' (external trigger mux). > T

Re: [PATCH 2/7] iio: adc: stm32: Enable use of stm32 timer triggers

2017-01-22 Thread Jonathan Cameron
On 19/01/17 13:34, Fabrice Gasnier wrote: > STM32 ADC has external timer trigger sources. Use stm32 timer triggers > API (e.g. is_stm32_timer_trigger()) with local ADC lookup table to > validate a trigger can be used. > This also provides correct trigger selection value (e.g. extsel). > > Signed-o

Re: [PATCH 3/7] iio: adc: stm32: add trigger polarity extended attribute

2017-01-22 Thread Jonathan Cameron
On 19/01/17 13:34, Fabrice Gasnier wrote: > Define extended attribute so that user may choose rising, falling or both > edges for external trigger sources. > Default to rising edge in case it isn't set. > > Signed-off-by: Fabrice Gasnier Creates a custom attibute. Documentation please! /Document

[PATCH] mm: do not export ioremap_page_range symbol for external module

2017-01-22 Thread zhongjiang
From: zhong jiang Recently, I find the ioremap_page_range had been abusing. The improper address mapping is a issue. it will result in the crash. so, remove the symbol. It can be replaced by the ioremap_cache or others symbol. Signed-off-by: zhong jiang --- lib/ioremap.c | 1 - 1 file changed,

Re: [PATCH 5/7] iio: adc: stm32: add optional dma support

2017-01-22 Thread Jonathan Cameron
On 19/01/17 13:34, Fabrice Gasnier wrote: > Add optional DMA support to STM32 ADC. > Use dma cyclic mode with at least two periods. > > Signed-off-by: Fabrice Gasnier What is the point going forward in supporting non dma buffered reads at all? Is there hardware that doesn't have DMA support? Just

Re: [PATCH] iio: industrialio-trigger: constify device_type structures

2017-01-22 Thread Jonathan Cameron
On 21/01/17 16:59, 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 declaration of device_type structure. > > File size before: >text data bss dec he

Re: [PATCH] iio: adc: constify iio_info structures

2017-01-22 Thread Jonathan Cameron
On 21/01/17 17:03, Bhumika Goyal wrote: > Declare iio_info structures as const as they are only stored in > the info field of a iio_dev structure. This field is of type const, > so iio_info structures having similar properties can be made const too. > > File size before: >text data

Re: [PATCH 5/5] iio: stx104: Add GPIO set_multiple callback function support

2017-01-22 Thread Jonathan Cameron
On 19/01/17 15:06, William Breathitt Gray wrote: > The Apex Embedded Systems STX104 series provides a digital output > register where 4 lines may be set at a time. This patch add support for > the set_multiple callback function, thus allowing multiple digital > output lines to be set more efficient

Re: [PATCH v8 12/12] mux: support simplified bindings for single-user gpio mux

2017-01-22 Thread Jonathan Cameron
On 18/01/17 15:57, Peter Rosin wrote: > Allow bindings for a GPIO controlled mux to be specified in the > mux consumer node. > > Signed-off-by: Peter Rosin Code is good as far as I am concerned. Only question is whether this is worth the hassle given the normal bindings don't give that high a bur

Re: [PATCH 5/5] iio: stx104: Add GPIO set_multiple callback function support

2017-01-22 Thread Linus Walleij
On Thu, Jan 19, 2017 at 4:06 PM, William Breathitt Gray wrote: > The Apex Embedded Systems STX104 series provides a digital output > register where 4 lines may be set at a time. This patch add support for > the set_multiple callback function, thus allowing multiple digital > output lines to be se

[PATCH 1/1] IB/cxgb3: fix misspelling in header guard

2017-01-22 Thread Nicolas Iooss
Use CXGB3_... instead of CXBG3_... Signed-off-by: Nicolas Iooss --- include/uapi/rdma/cxgb3-abi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/rdma/cxgb3-abi.h b/include/uapi/rdma/cxgb3-abi.h index 48a19bda071b..d24eee12128f 100644 --- a/include/uapi/rdma/cxgb

arch/xtensa/include/asm/initialize_mmu.h:41: Error: invalid register 'atomctl' for 'wsr' instruction

2017-01-22 Thread kbuild test robot
Hi Pete, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c497f8d17246720afe680ea1a8fa6e48e75af852 commit: d0b73b488c55df905ea8faaad079f8535629ed26 xtensa: Add config files for Diamond 233L - Rev C processor variant

Re: [PATCH v3 2/3] iio: distance: srf08: add IIO driver for us ranger

2017-01-22 Thread Jonathan Cameron
On 17/01/17 13:49, Andreas Klinger wrote: > This is the IIO driver for devantech srf08 ultrasonic ranger which can be > used to measure the distances to an object. > > The sensor supports I2C with some registers. > > Supported Features include: > - read the distance in ranging mode in centimeter

[PATCH 1/1] drm/amd/powerplay: fix misspelling in header guard

2017-01-22 Thread Nicolas Iooss
In smu7_clockpowergating.h, the #ifndef statement which prevents multiple inclusions of the header file uses _SMU7_CLOCK_POWER_GATING_H_ but the following #define statement uses _SMU7_CLOCK__POWER_GATING_H_. Signed-off-by: Nicolas Iooss --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergati

Re: [PATCH v3 3/3] iio: distance: srf08: add driver ABI documentation

2017-01-22 Thread Jonathan Cameron
On 17/01/17 13:50, Andreas Klinger wrote: > Add sysfs-bus-iio-distance-srf08 for individual attributes of the driver, > especially: > - sensitivity which the device documentation calls gain for amplifying the >signal > - max_range for limiting the maximum distance for expected echos and >

[PATCH 1/1] EDAC: always return an initialized value in knl_show_interleave_mode

2017-01-22 Thread Nicolas Iooss
When building drivers/edac/sb_edac.c with compiler warning flags which aim to detect the use of uninitialized values at compile time, the compiler reports that knl_show_interleave_mode() may return an uninitialized value. This function indeed uses a switch statement to set a local variable ("s"), w

cc1: error: '-march=r3000' requires '-mfp32'

2017-01-22 Thread kbuild test robot
Hi James, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c497f8d17246720afe680ea1a8fa6e48e75af852 commit: 034827c727f7f3946a18355b63995b402c226c82 MIPS: Fix -mabi=64 build of vdso.lds date: 3 months ago config: m

Re: [PATCH 1/1] IB/cxgb3: fix misspelling in header guard

2017-01-22 Thread Leon Romanovsky
On Sun, Jan 22, 2017 at 02:41:22PM +0100, Nicolas Iooss wrote: > Use CXGB3_... instead of CXBG3_... > > Signed-off-by: Nicolas Iooss > --- > include/uapi/rdma/cxgb3-abi.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Fixes: a85fb3383340 ("IB/cxgb3: Move user vendor structures

[PATCH] kbuild: drop unneeded patterns '.*.orig' and '.*.rej' from distclean

2017-01-22 Thread Masahiro Yamada
The patterns '.*.orig' and '.*.rej' are cleaned away by '*.orig' and '*.rej' seen two lines above. Signed-off-by: Masahiro Yamada --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 96e2352..303ada8 100644 --- a/Makefile +++ b/Makefile

Re: [PATCH v2] iio: trigger: free trigger resource correctly

2017-01-22 Thread Jonathan Cameron
On 20/01/17 03:47, Alison Schofield wrote: > These stand-alone trigger drivers were using iio_trigger_put() > where they should have been using iio_trigger_free(). The > iio_trigger_put() adds a module_put which is bad since they > never did a module_get. > > In the sysfs driver, module_get/put's

Re: [PATCH] writeback: use rb_entry()

2017-01-22 Thread Geliang Tang
On Sun, Jan 15, 2017 at 06:54:31PM -0500, Tejun Heo wrote: > On Fri, Jan 13, 2017 at 11:17:12PM +0800, Geliang Tang wrote: > > To make the code clearer, use rb_entry() instead of container_of() to > > deal with rbtree. > > > > Signed-off-by: Geliang Tang > > --- > > mm/backing-dev.c | 4 ++-- > >

Re: [PATCH 1/1] EDAC: always return an initialized value in knl_show_interleave_mode

2017-01-22 Thread Borislav Petkov
On Sun, Jan 22, 2017 at 02:51:15PM +0100, Nicolas Iooss wrote: > When building drivers/edac/sb_edac.c with compiler warning flags which > aim to detect the use of uninitialized values at compile time, the > compiler reports that knl_show_interleave_mode() may return an > uninitialized value. This f

Re: [PATCH] net/mlx4: use rb_entry()

2017-01-22 Thread Geliang Tang
On Sun, Jan 22, 2017 at 09:48:39AM +0200, Leon Romanovsky wrote: > On Fri, Jan 20, 2017 at 10:36:57PM +0800, Geliang Tang wrote: > > To make the code clearer, use rb_entry() instead of container_of() to > > deal with rbtree. > > > > Signed-off-by: Geliang Tang > > --- > > drivers/net/ethernet/mel

Re: [PATCH 09/22] mtd: add DT bindings for the Cortina Systems Gemini Flash

2017-01-22 Thread Marek Vasut
On 01/22/2017 01:21 PM, Linus Walleij wrote: > This adds device tree bindings for the Cortina systems Gemini > flash controller, a simple physmap which however need a few > syscon bits to be poked to operate properly. > > Cc: Janos Laube > Cc: Paulius Zaleckas > Cc: Hans Ulli Kroll > Cc: Floria

Re: [PATCH 10/22] mtd: physmap_of: add a hook for Gemini flash probing

2017-01-22 Thread Marek Vasut
On 01/22/2017 01:21 PM, Linus Walleij wrote: > In order to support device tree probing of Gemini NOR flash > chips, a certain register in the syscon needs to be poked > to enable parallel flash mode. > > Such things used to happen in "necessarily different" board > file code, and this indeed was a

Re: [tpmdd-devel] [PATCH RFC v3 5/5] tpm2: expose resource manager via a device link /dev/tpms

2017-01-22 Thread Jarkko Sakkinen
On Sat, Jan 21, 2017 at 12:38:56PM -0800, James Bottomley wrote: > On Fri, 2017-01-20 at 23:05 +0200, Jarkko Sakkinen wrote: > > On Fri, Jan 20, 2017 at 03:39:14PM +0200, Jarkko Sakkinen wrote: > > > On Thu, Jan 19, 2017 at 07:19:40AM -0500, James Bottomley wrote: > > > > On Thu, 2017-01-19 at 12:4

  1   2   3   4   5   >