Re: [writeback] 8bc4ad9498: INFO: suspicious RCU usage. ]

2016-09-07 Thread Tejun Heo
On Thu, Sep 01, 2016 at 06:21:30PM +0800, kernel test robot wrote: > > FYI, we noticed the following commit: > > https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git > wb-buf-throttle > commit 8bc4ad9498f81d6689da42457615db0989e720d3 ("writeback: throttle > buffered writeback")

Re: linux-next: Tree for Sep 7 (kernel/trace/trace_hwlat.c)

2016-09-07 Thread Steven Rostedt
On Wed, 7 Sep 2016 09:37:00 -0700 Randy Dunlap wrote: > On 09/07/16 00:52, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20160906: > > > > on i386: > > ../kernel/trace/trace_hwlat.c: In function 'get_sample': > ../kernel/trace/trace_hwlat.c:258:18: error: 'struct trace_array' ha

Re: [PATCH v6 3/4] tracing: Add trace_irqsoff tracepoints

2016-09-07 Thread Thomas Gleixner
On Wed, 7 Sep 2016, Binoy Jayan wrote: > This work is based on work by Daniel Wagner. A few tracepoints are added Interesting. The patch you are referring to was written by Carsten Emde. Can you please get these attributions right? They want to be reflected in the Tags and if you did not rewrit

[PATCH 06/21 v2] x86: microcode: Convert to hotplug state machine

2016-09-07 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. CPU_UP_CANCELED_FROZEN() is not preserved: It is only here to free memory in an error case because it is assumed if the CPU does show up on resume it won't be seen ever again. As per Borislav: |IOW, you don't need mc_cpu_dead(). Cc: Borislav Petkov Si

drivers/gpu/drm/i915/intel_display.c:2954:11: warning: cast to pointer

2016-09-07 Thread Nick Warne
Hi Daniel, kernel build 4.4.20 - I am still seeing this warning: drivers/gpu/drm/i915/intel_display.c: In function ‘intel_plane_obj_offset’: drivers/gpu/drm/i915/intel_display.c:2969:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] offset = (unsigned char *)vma-

[PATCH -v3 00/10] THP swap: Delay splitting THP during swapping out

2016-09-07 Thread Huang, Ying
From: Huang Ying This patchset is to optimize the performance of Transparent Huge Page (THP) swap. Hi, Andrew, could you help me to check whether the overall design is reasonable? Hi, Hugh, Shaohua, Minchan and Rik, could you help me to review the swap part of the patchset? Especially [01/10],

[PATCH -v3 06/10] mm, THP, swap: Support to clear SWAP_HAS_CACHE for huge page

2016-09-07 Thread Huang, Ying
From: Huang Ying __swapcache_free() is added to support to clear the SWAP_HAS_CACHE flag for the huge page. This will free the specified swap cluster now. Because now this function will be called only in the error path to free the swap cluster just allocated. So the corresponding swap_map[i] ==

[PATCH -v3 10/10] mm, THP, swap: Delay splitting THP during swap out

2016-09-07 Thread Huang, Ying
From: Huang Ying In this patch, splitting huge page is delayed from almost the first step of swapping out to after allocating the swap space for the THP (Transparent Huge Page) and adding the THP into the swap cache. This will reduce lock acquiring/releasing for the locks used for the swap cache

[PATCH -v3 08/10] mm, THP: Add can_split_huge_page()

2016-09-07 Thread Huang, Ying
From: Huang Ying Separates checking whether we can split the huge page from split_huge_page_to_list() into a function. This will help to check that before splitting the THP (Transparent Huge Page) really. This will be used for delaying splitting THP during swapping out. Where for a THP, we wil

[PATCH -v3 07/10] mm, THP, swap: Support to add/delete THP to/from swap cache

2016-09-07 Thread Huang, Ying
From: Huang Ying With this patch, a THP (Transparent Huge Page) can be added/deleted to/from the swap cache as a set of sub-pages (512 on x86_64). This will be used for the THP (Transparent Huge Page) swap support. Where one THP may be added/delted to/from the swap cache. This will batch the sw

[PATCH -v3 09/10] mm, THP, swap: Support to split THP in swap cache

2016-09-07 Thread Huang, Ying
From: Huang Ying This patch enhanced the split_huge_page_to_list() to work properly for the THP (Transparent Huge Page) in the swap cache during swapping out. This is used for delaying splitting the THP during swapping out. Where for a THP to be swapped out, we will allocate a swap cluster, add

[PATCH -v3 03/10] mm, memcg: Support to charge/uncharge multiple swap entries

2016-09-07 Thread Huang, Ying
From: Huang Ying This patch make it possible to charge or uncharge a set of continuous swap entries in the swap cgroup. The number of swap entries is specified via an added parameter. This will be used for the THP (Transparent Huge Page) swap support. Where a swap cluster backing a THP may be a

[PATCH -v3 04/10] mm, THP, swap: Add swap cluster allocate/free functions

2016-09-07 Thread Huang, Ying
From: Huang Ying The swap cluster allocation/free functions are added based on the existing swap cluster management mechanism for SSD. These functions don't work for the rotating hard disks because the existing swap cluster management mechanism doesn't work for them. The hard disks support may

[PATCH -v3 05/10] mm, THP, swap: Add get_huge_swap_page()

2016-09-07 Thread Huang, Ying
From: Huang Ying A variation of get_swap_page(), get_huge_swap_page(), is added to allocate a swap cluster (512 swap slots) based on the swap cluster allocation function. A fair simple algorithm is used, that is, only the first swap device in priority list will be tried to allocate the swap clus

[PATCH -v3 01/10] mm, swap: Make swap cluster size same of THP size on x86_64

2016-09-07 Thread Huang, Ying
From: Huang Ying In this patch, the size of the swap cluster is changed to that of the THP (Transparent Huge Page) on x86_64 architecture (512). This is for the THP swap support on x86_64. Where one swap cluster will be used to hold the contents of each THP swapped out. And some information of

[PATCH -v3 02/10] mm, memcg: Add swap_cgroup_iter iterator

2016-09-07 Thread Huang, Ying
From: Huang Ying The swap cgroup uses a kind of discontinuous array to record the information for the swap entries. lookup_swap_cgroup() provides a good encapsulation to access one element of the discontinuous array. To make it easier to access multiple elements of the discontinuous array, an i

Re: [PATCH 4.7 114/143] Revert "floppy: fix open(O_ACCMODE) for ioctl-only open"

2016-09-07 Thread Mark Hounschell
On 09/05/2016 12:44 PM, Greg Kroah-Hartman wrote: 4.7-stable review patch. If anyone has any objections, please let me know. -- From: Jens Axboe commit 468c298ad3ed3f0d94a65f8ca00f6bfc6c2b4e33 upstream. This reverts commit ff06db1efb2ad6db06eb5b99b88a0c15a9cc9b0e. Signed-of

[PATCH 1/2] clk: rockchip: add I2S internal clock IDs for rk3288

2016-09-07 Thread John Keeping
To minimize jitter on the I2S clocks, it is important that the denominator in the fractional divider is much greater than the numerator. Add identifiers for these internal clocks so that the specific clock topology and rates can be specified in the device tree. Signed-off-by: John Keeping --- i

[PATCH 2/2] clk: rockchip: use identifiers for rk3288 I2S clocks

2016-09-07 Thread John Keeping
Export these so that the rates can be set via the device tree. Signed-off-by: John Keeping --- drivers/clk/rockchip/clk-rk3288.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index 39af05a589b3..88

Re: x86-ksysfs: Use kmalloc_array() in create_setup_data_nodes()

2016-09-07 Thread SF Markus Elfring
> Fixing these kmalloc calls would be a nice thing to clean up everywhere. Thanks for your acknowledgement of such a software improvement opportunity. > Since it is a mistake people may continue to make, I think it would > make sense to add a coccinelle script that can do this to the > existing

Re: [PATCH] fs/proc/kcore.c: Omit kernel text area for hardened usercopy feature

2016-09-07 Thread Linus Torvalds
On Wed, Sep 7, 2016 at 9:38 AM, Andi Kleen wrote: >> >> - n = copy_to_user(buffer, (char *)start, tsz); >> + buf = kzalloc(tsz, GFP_KERNEL); > > You have to add some limit and a loop, otherwise a user can eat all kernel > memory, > or copies

Re: [PATCH 3/3] tty/serial: at91: fix hardware handshake when DMA is not used

2016-09-07 Thread Alexandre Belloni
Hi, On 07/09/2016 at 18:13:24 +0200, Richard Genoud wrote : > Commit 1cf6e8fc8341 ("tty/serial: at91: fix RTS line management when > hardware handshake is enabled") broke the hardware handshake when > DMA is not used. > > So, here's a summary: > If DMA is NOT USED the mode should be ATMEL_US_USMO

Re: [PATCH v2 2/2] arm64: Use static keys for CPU features

2016-09-07 Thread Jason Baron
On 09/05/2016 01:25 PM, Catalin Marinas wrote: This patch adds static keys transparently for all the cpu_hwcaps features by implementing an array of default-false static keys and enabling them when detected. The cpus_have_cap() check uses the static keys if the feature being checked is a constant

Re: x86-ksysfs: Use kmalloc_array() in create_setup_data_nodes()

2016-09-07 Thread Kees Cook
On Wed, Sep 7, 2016 at 9:37 AM, Joe Perches wrote: > On Wed, 2016-09-07 at 09:23 -0700, Kees Cook wrote: >> Fixing these kmalloc calls would be a nice thing to clean up >> everywhere. > > Dubious as gcc cannot currently optimize known small fixed size > allocations with alloc_array and will always

[PATCH] usercopy: remove page-spanning test for now

2016-09-07 Thread Kees Cook
A custom allocator without __GFP_COMP that copies to userspace has been found in vmw_execbuf_process[1], so this disables the page-span checker by placing it behind a CONFIG for future work where such things can be tracked down later. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1373326 Report

[PATCH] [media] VPU: mediatek: fix null pointer dereference on pdev

2016-09-07 Thread Colin King
From: Colin Ian King pdev is being null checked, however, prior to that it is being dereferenced by platform_get_drvdata. Move the assignments of vpu and run to after the pdev null check to avoid a potential null pointer dereference. Signed-off-by: Colin Ian King --- drivers/media/platform/mt

Re: [RFC RESEND] serial: 8250: fix regression in 8250 uart driver

2016-09-07 Thread Andy Shevchenko
On Tue, 2016-08-23 at 08:53 -0500, Dinh Nguyen wrote: > Hi Andy, > > On 08/17/2016 06:14 AM, Andy Shevchenko wrote: > > > > > > I sent a v2 of the series for internal review, same you may found on > > [1]. If Heikki is okay to that I'll send it here. > > > > [1] https://bitbucket.org/andy-shev/

Re: [PATCH] usercopy: remove page-spanning test for now

2016-09-07 Thread Linus Torvalds
On Wed, Sep 7, 2016 at 10:06 AM, Kees Cook wrote: > > +#ifndef CONFIG_HARDENED_USERCOPY_PAGESPAN > + /* > +* The page-spanning checks are hitting false positives, so > +* do not check them for now. > +*/ > + return NULL; > +#endif > + > /* Allow kernel d

Re: [PATCH] fs/proc/kcore.c: Omit kernel text area for hardened usercopy feature

2016-09-07 Thread Kees Cook
On Tue, Sep 6, 2016 at 12:48 PM, Linus Torvalds wrote: > On Tue, Sep 6, 2016 at 12:41 PM, Andi Kleen wrote: >> >> I suspect it's more than just /proc/kcore, there could be also >> legitimate cases to read kernel text from /dev/mem or /dev/kmem > > Yes, that's probably true. Although I suspect tha

[PATCH v2 2/2] xen/events: Convert to hotplug state machine

2016-09-07 Thread Boris Ostrovsky
From: Sebastian Andrzej Siewior Install the callbacks via the state machine. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Boris Ostrovsky --- drivers/xen/events/events_fifo.c | 34 -- include/linux/cpuhotplug.h | 1 + 2 files changed, 13 inser

[PATCH v2 1/2] xen/x86: Convert to hotplug state machine

2016-09-07 Thread Boris Ostrovsky
Switch to new CPU hotplug infrastructure. Signed-off-by: Boris Ostrovsky Suggested-by: Sebastian Andrzej Siewior --- Changes in v2: * Replace xen_cpu_up_cancel with xen_cpu_dead * Use existing CPUHP_AP_ONLINE_DYN instead of introducing new state * Be more careful with return value of cpuhp_setup

[PATCH v2 0/2] Convert to new CPU hotplug framework

2016-09-07 Thread Boris Ostrovsky
New CPU hotplug framework was introduced recently. These patches convert Xen CPU hotplug code to this infrastructure. The patches (patch 1 specifically) will apply on top of https://lists.xenproject.org/archives/html/xen-devel/2016-08/msg00562.html v2: Changes in patch 1 suggested by Sebastian

Re: mm: GPF in __insert_vmap_area

2016-09-07 Thread Kees Cook
On Tue, Sep 6, 2016 at 4:11 PM, Daniel Borkmann wrote: > On 09/06/2016 11:03 PM, Kees Cook wrote: >> >> On Sat, Sep 3, 2016 at 8:15 AM, Dmitry Vyukov wrote: >>> >>> Hello, >>> >>> While running syzkaller fuzzer I've got the following GPF: >>> >>> general protection fault: [#1] SMP DEBUG_PAGE

Re: [PATCH] fs/proc/kcore.c: Omit kernel text area for hardened usercopy feature

2016-09-07 Thread Linus Torvalds
On Wed, Sep 7, 2016 at 10:17 AM, Kees Cook wrote: > > !DEVKMEM is easy to represent, but STRICT_DEVMEM=y gets a little ugly, I think you can just do config STRICT_DEVMEM bool "Filter access to /dev/mem" if !HARDENED_USERCOPY depends on MMU depends on ARCH_HAS_DEVMEM_IS

Re: [PATCH] crypto: qce: Initialize core src clock @100Mhz

2016-09-07 Thread Iaroslav Gridin
> > + ret = clk_set_rate(qce->core_src, 1); > > Could you point me from where you got this number? I got it from codeaurora qce driver: https://android.googlesource.com/kernel/msm/+/android-msm-hammerhead-3.4-kk-r1/drivers/crypto/msm/qce50.c#3386

Re: [list] 8052ce2d97: WARNING: CPU: 0 PID: 1 at lib/list_debug.c:60 __list_del_entry+0x4d/0x71

2016-09-07 Thread Kees Cook
On Wed, Sep 7, 2016 at 12:31 AM, Paul E. McKenney wrote: > On Tue, Sep 06, 2016 at 11:49:04AM -0400, Kees Cook wrote: >> On Sun, Sep 4, 2016 at 5:48 AM, Paul E. McKenney >> wrote: >> > On Sun, Sep 04, 2016 at 08:35:40AM +0800, kernel test robot wrote: >> >> >> >> FYI, we noticed the following com

Re: [PATCH 3/3] tty/serial: at91: fix hardware handshake when DMA is not used

2016-09-07 Thread Cyrille Pitchen
Hi Richard, For usart without FIFOs (hence before sama5d2), according to our designers, the RTS line could only been controlled by an internal PDC signal which doesn't exist with the DMA controller. Referring to its datasheet, the sam9g35 embeds DMA controllers. So if you enable the hardware hands

[PATCH v6] i2c: imx: make bus recovery through pinctrl optional

2016-09-07 Thread Li Yang
Since commit 1c4b6c3bcf30 ("i2c: imx: implement bus recovery") the driver starts to use gpio/pinctrl to do i2c bus recovery. But pinctrl is not always available for platforms with this controller such as ls1021a and ls1043a, and the device tree binding also mentioned this gpio based recovery mecha

Re: [PATCH 2/3] tty/serial: at91: fix hardware handshake with GPIOs

2016-09-07 Thread Alexandre Belloni
On 07/09/2016 at 18:13:23 +0200, Richard Genoud wrote : > Commit 1cf6e8fc8341 ("tty/serial: at91: fix RTS line management when > hardware handshake is enabled") broke the hardware handshake when GPIOs > where used. > > Hardware handshake with GPIOs used to work before this commit because > the CRT

[PATCH 1/2] mm, swap: Use offset of swap entry as key of swap cache

2016-09-07 Thread Huang, Ying
From: Huang Ying This patch is to improve the performance of swap cache operations when the type of the swap device is not 0. Originally, the whole swap entry value is used as the key of the swap cache, even though there is one radix tree for each swap device. If the type of the swap device is

Re: [PATCH V2 2/4] ARM64 LPC: LPC driver implementation on Hip06

2016-09-07 Thread kbuild test robot
Hi zhichang.yuan, [auto build test WARNING on linus/master] [also build test WARNING on v4.8-rc5 next-20160907] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenie

[PATCH 0/2] Add IIO support for counter devices

2016-09-07 Thread William Breathitt Gray
This patchset adds new IIO channel type and info constants to facilitate support for counter devices. In addition, a new "counter" subdirectory is created to house drivers for these counter devices. Quadrature encoders, such as rotary encoders and linear encoders, are devices which are capable of

[PATCH 2/2] iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8

2016-09-07 Thread William Breathitt Gray
The ACCES 104-QUAD-8 is a general purpose quadrature encoder counter/interface board. The 104-QUAD-8 is capable of monitoring the outputs of eight encoders via four on-board LSI/CSI LS7266R1 24-bit dual-axis quadrature counter chips. Core functions handled by the LS7266R1, such as direction and tot

RE: [PATCH 1/3] storvsc: use tagged SRB requests if supported by the device

2016-09-07 Thread Long Li
> -Original Message- > From: Johannes Thumshirn [mailto:jthumsh...@suse.de] > Sent: Wednesday, September 7, 2016 12:47 AM > To: Long Li > Cc: KY Srinivasan ; Haiyang Zhang > ; James E.J. Bottomley > ; Martin K. Petersen > ; de...@linuxdriverproject.org; linux- > s...@vger.kernel.org; linux

Re: [PATCH 5/6] ARM: dts: Add NextThing GR8 dtsi

2016-09-07 Thread Rask Ingemann Lambertsen
On Wed, Aug 31, 2016 at 4:18 PM, Maxime Ripard wrote: > From: Mylène Josserand > > The GR8 is an SoC made by Nextthing loosely based on the sun5i family. > > Since it's not clear yet what we can factor out and merge with the A10s and > A13 support, let's keep it out of the sun5i.dtsi include tree

[PATCH 2/2] mm: Remove page_file_index

2016-09-07 Thread Huang, Ying
From: Huang Ying After using the offset of the swap entry as the key of the swap cache, the page_index() becomes exactly same as page_file_index(). So the page_file_index() is removed and the callers are changed to use page_index() instead. Cc: Trond Myklebust Cc: Anna Schumaker Cc: "Kirill A

Re: [PATCH 1/2] clk: rockchip: add I2S internal clock IDs for rk3288

2016-09-07 Thread Heiko Stuebner
Hi John, Am Mittwoch, 7. September 2016, 17:53:29 CEST schrieb John Keeping: > To minimize jitter on the I2S clocks, it is important that the > denominator in the fractional divider is much greater than the > numerator. Add identifiers for these internal clocks so that the > specific clock topolo

[PATCH 1/2] iio: Implement counter channel type and info constants

2016-09-07 Thread William Breathitt Gray
Quadrature encoders, such as rotary encoders and linear encoders, are devices which are capable of encoding the relative position and direction of motion of a shaft. This patch introduces several IIO constants for supporting quadrature encoder counter devices. IIO_COUNT: Current count (main data

RE: [PATCH] [SCSI] aacraid: mark aac_src_select_comm() static

2016-09-07 Thread David Carroll
> > We get 1 warning when building kernel with W=1: > drivers/scsi/aacraid/src.c:616:5: warning: no previous prototype for > 'aac_src_select_comm' [-Wmissing-prototypes] > > In fact, this function is only used in the file in which it is declared and > don't need > a declaration, but can be made

Re: [PATCH v10 5/5] drm/rockchip: Add dmc notifier in vop driver

2016-09-07 Thread dbasehore .
On Tue, Sep 6, 2016 at 12:07 PM, Sean Paul wrote: > On Tue, Sep 6, 2016 at 3:01 PM, hl wrote: >> Hi >> >> >> On 2016年09月07日 02:55, Sean Paul wrote: >>> >>> On Tue, Sep 6, 2016 at 2:15 PM, hl wrote: Hi Sean, On 2016年09月07日 01:18, Sean Paul wrote: > > On Mon, Sep 5

[PATCH v2] usercopy: remove page-spanning test for now

2016-09-07 Thread Kees Cook
A custom allocator without __GFP_COMP that copies to userspace has been found in vmw_execbuf_process[1], so this disables the page-span checker by placing it behind a CONFIG for future work where such things can be tracked down later. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1373326 Report

Re: [PATCH v6] i2c: imx: make bus recovery through pinctrl optional

2016-09-07 Thread Uwe Kleine-König
Hello, On Wed, Sep 07, 2016 at 12:03:16PM -0500, Li Yang wrote: > Since commit 1c4b6c3bcf30 ("i2c: imx: implement bus recovery") the > driver starts to use gpio/pinctrl to do i2c bus recovery. But pinctrl > is not always available for platforms with this controller such as > ls1021a and ls1043a,

Re: [PATCH 1/8] ARM: dts: bcm283x: Define standard pinctrl groups in the gpio node.

2016-09-07 Thread Stefan Wahren
Hi Gerd, > Gerd Hoffmann hat am 7. September 2016 um 12:31 > geschrieben: > > > From: Eric Anholt > > The BCM2835-ARM-Peripherals.pdf documentation specifies what the > function selects do for the pins, and there are a bunch of obvious > groupings to be made. With these created, we'll be abl

Re: [PATCH v4 5/6] arm64: dts: rockchip: add the gmac needed node for rk3399

2016-09-07 Thread Heiko Stuebner
Am Freitag, 2. September 2016, 01:50:03 CEST schrieb Caesar Wang: > From: Roger Chen > > The RK3399 GMAC Ethernet Controller provides a complete Ethernet interface > from processor to a Reduced Media Independent Interface (RMII) and Reduced > Gigabit Media Independent Interface (RGMII) compliant

Re: [PATCH v10 5/5] drm/rockchip: Add dmc notifier in vop driver

2016-09-07 Thread dbasehore .
On Tue, Sep 6, 2016 at 10:18 AM, Sean Paul wrote: > On Mon, Sep 5, 2016 at 1:06 AM, Lin Huang wrote: >> when in ddr frequency scaling process, vop can not do enable or >> disable operation, since in dcf we check vop clock to see whether >> vop work. If vop work, dcf do ddr frequency scaling when

Re: [PATCH 4/8] ARM: dts: bcm283x: Add a new EMMC pin group from the downstream tree.

2016-09-07 Thread Stefan Wahren
> Gerd Hoffmann hat am 7. September 2016 um 12:31 > geschrieben: > > > From: Eric Anholt > > This will be used for having EMMC (sdhci-bcm2835.c) drive the > wireless. sdhci-bcm2835.c has been replaced by sdhci-iproc.c > > Signed-off-by: Eric Anholt > --- > arch/arm/boot/dts/bcm283x.dtsi

Re: [PATCH v4 6/6] arm64: dts: rockchip: enable the gmac for rk3399 evb board

2016-09-07 Thread Heiko Stuebner
Am Freitag, 2. September 2016, 01:50:04 CEST schrieb Caesar Wang: > From: Roger Chen > > We add the required and optional properties for evb board. > See the [0] to get the detail information. > > [0]: > Documentation/devicetree/bindings/net/rockchip-dwmac.txt > > Signed-off-by: Roger Chen > S

[PATCH] phy: rockchip-typec: add pm runtime support

2016-09-07 Thread Chris Zhong
Adds pm_runtime support for rockchip Type-C, so that power domain is enabled only when there is a transaction going on to help save power. Signed-off-by: Chris Zhong --- drivers/phy/phy-rockchip-typec.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/phy/phy-rock

Re: [PATCH 1/2] clk: rockchip: add I2S internal clock IDs for rk3288

2016-09-07 Thread John Keeping
On Wed, 07 Sep 2016 19:58:31 +0200, Heiko Stuebner wrote: > Am Mittwoch, 7. September 2016, 17:53:29 CEST schrieb John Keeping: > > To minimize jitter on the I2S clocks, it is important that the > > denominator in the fractional divider is much greater than the > > numerator. Add identifiers for

Re: [v14 PATCH 3/5] arm64: dts: rockchip: add Type-C phy for RK3399

2016-09-07 Thread Heiko Stuebner
Am Dienstag, 23. August 2016, 22:17:03 CEST schrieb Chris Zhong: > There are 2 Type-C phy on RK3399, they are almost same, except the > address of register. They support USB3.0 Type-C and DisplayPort1.3 > Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller > and DP controller. > >

Re: [PATCH v10 5/5] drm/rockchip: Add dmc notifier in vop driver

2016-09-07 Thread Sean Paul
On Wed, Sep 7, 2016 at 2:07 PM, dbasehore . wrote: > On Tue, Sep 6, 2016 at 12:07 PM, Sean Paul wrote: >> On Tue, Sep 6, 2016 at 3:01 PM, hl wrote: >>> Hi >>> >>> >>> On 2016年09月07日 02:55, Sean Paul wrote: On Tue, Sep 6, 2016 at 2:15 PM, hl wrote: > > Hi Sean, > >

Re: [PATCH v2] usercopy: remove page-spanning test for now

2016-09-07 Thread Rik van Riel
On Wed, 2016-09-07 at 11:08 -0700, Kees Cook wrote: > A custom allocator without __GFP_COMP that copies to userspace has > been > found in vmw_execbuf_process[1], so this disables the page-span > checker > by placing it behind a CONFIG for future work where such things can > be > tracked down later

Re: [PATCH v2] usercopy: remove page-spanning test for now

2016-09-07 Thread Linus Torvalds
On Wed, Sep 7, 2016 at 11:08 AM, Kees Cook wrote: > v2: > - split logic into separate function entirely, torvalds The diff looks much messier, but the end result looks better. Thanks. Was I supposed to apply this directly, or will it come through a git tree later? Linus

Re: [PATCH v2] usercopy: remove page-spanning test for now

2016-09-07 Thread Kees Cook
On Wed, Sep 7, 2016 at 11:31 AM, Linus Torvalds wrote: > On Wed, Sep 7, 2016 at 11:08 AM, Kees Cook wrote: >> v2: >> - split logic into separate function entirely, torvalds > > The diff looks much messier, but the end result looks better. Thanks. > > Was I supposed to apply this directly, or will

Re: [PATCH v2 0/5] perf, bts: Fallout from the fuzzer for perf/urgent

2016-09-07 Thread Alexander Shishkin
Vince Weaver writes: > On Wed, 7 Sep 2016, Alexander Shishkin wrote: > >> Sure. And yes, I did catch a warning, which calls for one more patch >> (below). Also one unrelated thing in PEBS that Peter fixed. > > Does that fix this which I just got on my skylake machine (4.8-rc5 with > your other 5

Re: linux-next: Tree for Sep 7 (kernel/trace/trace_hwlat.c)

2016-09-07 Thread Randy Dunlap
On 09/07/16 09:44, Steven Rostedt wrote: > Thanks! > > Below is the fix. I'll have to add it. > > -- Steve > > > diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig > index 72c07c2ffd79..d9000a81960e 100644 > --- a/kernel/trace/Kconfig > +++ b/kernel/trace/Kconfig > @@ -224,6 +224,7 @@ co

[GIT PULL] usercopy fixes for v4.8-rc6-part2

2016-09-07 Thread Kees Cook
Hi, Please pull these usercopy fixes for v4.8-rc6-part2. Thanks! -Kees The following changes since commit ab29b33a84f6910ebf01a32f69a370886a4283dd: Merge tag 'seccomp-v4.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux (2016-09-07 10:46:06 -0700) are available in the git

Re: [PATCH 1/3] serial: mctrl_gpio: implement mctrl_gpio_use_rtscts

2016-09-07 Thread kbuild test robot
Hi Richard, [auto build test WARNING on abelloni/rtc-next] [also build test WARNING on v4.8-rc5 next-20160907] [cannot apply to tty/tty-testing] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --b

Re: [PATCH 3/3] soc: ti: Add ti_sci_pm_domains driver

2016-09-07 Thread Kevin Hilman
Dave Gerlach writes: > On 08/30/2016 03:26 PM, Ulf Hansson wrote: >> On 30 August 2016 at 21:43, Dave Gerlach wrote: >>> Jon, Ulf, >>> >>> On 08/26/2016 06:37 PM, Dave Gerlach wrote: Hi, On 08/25/2016 02:27 AM, Ulf Hansson wrote: > > + Jon > > [...] > >> +

Re: [PATCH] ALSA: squash lines for simple wrapper functions

2016-09-07 Thread Takashi Iwai
On Tue, 06 Sep 2016 13:41:19 +0200, Masahiro Yamada wrote: > > Remove unneeded variables and assignments. > > Signed-off-by: Masahiro Yamada Applied, thanks. Takashi > --- > > sound/aoa/fabrics/layout.c | 7 +-- > sound/pci/asihpi/hpifunc.c | 7 ++---

Re: linux-next: Tree for Sep 7 (kernel/trace/trace_hwlat.c)

2016-09-07 Thread Steven Rostedt
On Wed, 7 Sep 2016 11:34:24 -0700 Randy Dunlap wrote: > Hm, now I get: > > ../kernel/trace/trace.c: In function 'tracing_set_tracer': > ../kernel/trace/trace.c:4850:3: error: implicit declaration of function > 'free_snapshot' [-Werror=implicit-function-declaration] >free_snapshot(tr); >

[PATCHv3 1/2] staging: android: ion: Pull out ion ioctls to a separate file

2016-09-07 Thread Laura Abbott
The number of Ion ioctls may continue to grow along with necessary validation. Pull it out into a separate file for easier management and review. Signed-off-by: Laura Abbott --- v3: Rebase to staging-next --- drivers/staging/android/ion/Makefile| 3 +- drivers/staging/android/ion/ion-ioct

[PATCHv3 0/2] New Ion query ioctl

2016-09-07 Thread Laura Abbott
Hi, This is v3 of the previous series. The scope continues to shrink. The ABI ioctl was dropped after discussion about how it creates more problems than it actually solves. This is mostly a rebase to staging-next with some refactoring from not having the ABI ioctl. There was some discussion about

[PATCHv3 2/2] staging: android: ion: Add ioctl to query available heaps

2016-09-07 Thread Laura Abbott
Ion clients currently lack a good method to determine what heaps are available and what ids they map to. This leads to tight coupling between user and kernel space and headaches. Add a query ioctl to let userspace know the availability of heaps. Signed-off-by: Laura Abbott --- v3: Include some r

Re: [PATCH 1/8] ARM: dts: bcm283x: Define standard pinctrl groups in the gpio node.

2016-09-07 Thread Eric Anholt
Stefan Wahren writes: > Hi Gerd, > >> Gerd Hoffmann hat am 7. September 2016 um 12:31 >> geschrieben: >> >> >> From: Eric Anholt >> >> The BCM2835-ARM-Peripherals.pdf documentation specifies what the >> function selects do for the pins, and there are a bunch of obvious >> groupings to be mad

[PATCH] arm64: dts: rk3399: add powerdomain for typec

2016-09-07 Thread Chris Zhong
The tcpc power domain will try to power up/down the power of Type-C PHY. Hence, we need control it in Type-C PHY driver with the pm_runtime helper. Change-Id: I727ed3f7c6e7075f41f0940470796ba0cd3232df Signed-off-by: Chris Zhong --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++ 1 file changed,

Re: [PATCH] usb: phy: generic: request regulator optionally

2016-09-07 Thread Mark Brown
On Tue, Sep 06, 2016 at 11:01:15AM -0700, Stefan Agner wrote: > On 2016-09-06 01:22, Mark Brown wrote: > > This is nonsense unless the device can work without this supply. Given > > that the supply is called VCC that doesn't seem entirely likely. > Afaik it is kind of a generic device tree bindi

Re: [PATCH v2] usercopy: remove page-spanning test for now

2016-09-07 Thread Sinclair Yeh
Reviewed-by: Sinclair Yeh On Wed, Sep 07, 2016 at 11:08:45AM -0700, Kees Cook wrote: > A custom allocator without __GFP_COMP that copies to userspace has been > found in vmw_execbuf_process[1], so this disables the page-span checker > by placing it behind a CONFIG for future work where such thing

Re: [PATCH] hwmon: xgene: Fix crash when alarm occurs before driver probe

2016-09-07 Thread Hoan Tran
Hi Guenter, On Tue, Sep 6, 2016 at 11:39 PM, Guenter Roeck wrote: > On 09/06/2016 11:07 PM, Hoan Tran wrote: >> >> Hi Guenter, >> >> On Tue, Sep 6, 2016 at 10:50 PM, Guenter Roeck wrote: >>> >>> On 09/06/2016 10:21 PM, Hoan Tran wrote: Hi Guenter, Thank for your quick re

Re: [PATCH V3 0/5] firmware: Add support for TI System Control Interface (TI-SCI) protocol driver

2016-09-07 Thread Kevin Hilman
Nishanth Menon writes: > Hi, > > Version 3 of the series with change in the way we describe the children > nodes (no change to drivers required - only the dts description changes). > > Texas Instruments' Keystone generation System on Chips (SoC) > starting with 66AK2G02[1], now include a dedicate

Re: [PATCH 2/2] PCI: add CRS support to error handling path

2016-09-07 Thread Sinan Kaya
Hi Bjorn, On 9/1/2016 7:00 PM, Sinan Kaya wrote: > The PCIE spec allows an endpoint device to extend the initialization time > beyond 1 second by issuing Configuration Request Retry Status (CRS) for a > vendor ID read request. > > This basically means "I'm busy now, please call me back later". >

Re: [PATCH 4/7] spi: meson: Add GXBB compatible

2016-09-07 Thread Mark Brown
On Wed, Sep 07, 2016 at 05:13:40PM +0200, Jerome Brunet wrote: > From: Neil Armstrong > > Signed-off-by: Neil Armstrong > --- I can't do anything with this, you've not provided a signoff. Please resend with a signoff - see SubmittingPatches for details on what this means and why it's important

Re: [PATCH] iio: ensure ret is initialized to zero before entering do loop

2016-09-07 Thread Jonathan Cameron
On 06/09/16 18:10, Brian Norris wrote: > Hi, > > On Mon, Sep 05, 2016 at 09:03:26PM +0100, Jonathan Cameron wrote: >> On 05/09/16 15:39, Colin King wrote: >>> From: Colin Ian King >>> >>> A recent fix to iio_buffer_read_first_n_outer removed ret from being set by >>> a return from wait_event_inte

Re: [GIT PULL] usercopy fixes for v4.8-rc6-part2

2016-09-07 Thread Linus Torvalds
On Wed, Sep 7, 2016 at 11:36 AM, Kees Cook wrote: > > - move page-spanning check behind a CONFIG since it's triggering false > positives Hmm. I pulled this, but looking at it I realized that + depends on !COMPILE_TEST doesn't make any real sense to me. All it does is make sure that "mak

Re: [PATCH v2 1/4] pinctrl: sunxi: Add GR8 controller support

2016-09-07 Thread Linus Walleij
On Wed, Sep 7, 2016 at 4:53 PM, Maxime Ripard wrote: > From: Mylène Josserand > > Just like the other member of the sunxi family, let's add a pinctrl table > for the muxing options. > > Signed-off-by: Mylène Josserand > Signed-off-by: Maxime Ripard > Acked-by: Chen-Yu Tsai This v2 patch appl

[PATCH 001/001] drivers/gpu/radeon: NULL pointer deference workaround

2016-09-07 Thread Mark Fortescue
On an LV-683 (AMD Dual-core G-T56N) Mini-ITX board, I get a Kernel Oops because Connector 0 (LCD Panel interface) does not have DDC. Ubuntu 16.04 LTS Kernel (4.4 series): ... [ 8.262990] [drm] ib test on ring 5 succeeded [ 8.288897] [drm] Radeon Display Connectors [ 8.293175] [drm] Connector

Re: [PATCH] hwmon: xgene: Fix crash when alarm occurs before driver probe

2016-09-07 Thread Guenter Roeck
On Wed, Sep 07, 2016 at 11:55:06AM -0700, Hoan Tran wrote: > Hi Guenter, > > On Tue, Sep 6, 2016 at 11:39 PM, Guenter Roeck wrote: > > On 09/06/2016 11:07 PM, Hoan Tran wrote: > >> > >> Hi Guenter, > >> > >> On Tue, Sep 6, 2016 at 10:50 PM, Guenter Roeck wrote: > >>> > >>> On 09/06/2016 10:21 PM

Re: [PATCH] fs/proc/kcore.c: Omit kernel text area for hardened usercopy feature

2016-09-07 Thread Jiri Olsa
On Wed, Sep 07, 2016 at 09:58:01AM -0700, Linus Torvalds wrote: > On Wed, Sep 7, 2016 at 9:38 AM, Andi Kleen wrote: > >> > >> - n = copy_to_user(buffer, (char *)start, tsz); > >> + buf = kzalloc(tsz, GFP_KERNEL); > > > > You have to add some

Re: [writeback] 8bc4ad9498: INFO: suspicious RCU usage. ]

2016-09-07 Thread Jens Axboe
On 09/07/2016 10:41 AM, Tejun Heo wrote: On Thu, Sep 01, 2016 at 06:21:30PM +0800, kernel test robot wrote: FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git wb-buf-throttle commit 8bc4ad9498f81d6689da42457615db0989e720d3 ("writeback:

Re: [PATCH v2 1/4] pinctrl: sunxi: Add GR8 controller support

2016-09-07 Thread Maxime Ripard
Hi Linus, On Wed, Sep 07, 2016 at 09:17:08PM +0200, Linus Walleij wrote: > On Wed, Sep 7, 2016 at 4:53 PM, Maxime Ripard > wrote: > > > From: Mylène Josserand > > > > Just like the other member of the sunxi family, let's add a pinctrl table > > for the muxing options. > > > > Signed-off-by: Myl

[PATCH] tracing/hwlat: select TRACER_MAX_TRACE

2016-09-07 Thread Arnd Bergmann
hwlat_trace cannot work without CONFIG_TRACER_MAX_TRACE: kernel/trace/trace_hwlat.c: In function 'get_sample': kernel/trace/trace_hwlat.c:258:18: error: 'struct trace_array' has no member named 'max_latency'; did you mean 'max_lock'? if (sample > tr->max_latency) ^~ kernel/tr

Re: [PATCH v2 3/4] ARM: dts: Add NextThing GR8 dtsi

2016-09-07 Thread Linus Walleij
On Wed, Sep 7, 2016 at 4:53 PM, Maxime Ripard wrote: > From: Mylène Josserand > > The GR8 is an SoC made by Nextthing loosely based on the sun5i family. > > Since it's not clear yet what we can factor out and merge with the A10s and > A13 support, let's keep it out of the sun5i.dtsi include tree

Re: [Linaro-mm-sig] [PATCHv3 2/2] staging: android: ion: Add ioctl to query available heaps

2016-09-07 Thread Arnd Bergmann
On Wednesday, September 7, 2016 11:49:59 AM CEST Laura Abbott wrote: > - if (dir & _IOC_WRITE) > - if (copy_from_user(&data, (void __user *)arg, _IOC_SIZE(cmd))) > - return -EFAULT; > + /* > + * The copy_from_user is unconditional here for both read and

Re: [Linaro-mm-sig] [PATCHv3 1/2] staging: android: ion: Pull out ion ioctls to a separate file

2016-09-07 Thread Arnd Bergmann
On Wednesday, September 7, 2016 11:49:58 AM CEST Laura Abbott wrote: > The number of Ion ioctls may continue to grow along with necessary > validation. Pull it out into a separate file for easier management > and review. > > Signed-off-by: Laura Abbott > Acked-by: Arnd Bergmann

Re: linux-next: Tree for Sep 7 (kernel/trace/trace_hwlat.c)

2016-09-07 Thread Steven Rostedt
On Wed, 7 Sep 2016 14:48:38 -0400 Steven Rostedt wrote: > Will send another one soon. What about this? -- Steve commit 64cfdb9788bf3fb2bf6c30701fc3644f25e76df2 Author: Steven Rostedt (Red Hat) Date: Wed Sep 7 12:45:09 2016 -0400 tracing: Have max_latency be defined for HWLAT_TRACER as

Re: [PATCH 4/5] mm: fix cache mode of dax pmd mappings

2016-09-07 Thread Kani, Toshimitsu
On Tue, 2016-09-06 at 14:52 -0700, Dan Williams wrote: > On Tue, Sep 6, 2016 at 1:17 PM, Andrew Morton org> wrote: > > > > On Tue, 06 Sep 2016 09:49:41 -0700 Dan Williams > el.com> wrote: > > > > > > > > track_pfn_insert() is marking dax mappings as uncacheable. > > > > > > It is used to keep

Re: [PATCH v2 3/4] pinctrl: sunxi: Remove unsupported PWM channel pinmux in H3

2016-09-07 Thread Linus Walleij
On Wed, Aug 31, 2016 at 10:25 AM, Milo Kim wrote: > H3 has single PWM channel. The second PWM channel is not supported, > so the pinctrl function should be removed. > > Cc: Linus Walleij > Cc: Maxime Ripard > Cc: Chen-Yu Tsai > Cc: Icenowy Zheng > Cc: Jens Kuske > Cc: Krzysztof Adamski > Cc

Re: [PATCH 4/5] mm: fix cache mode of dax pmd mappings

2016-09-07 Thread Dan Williams
On Wed, Sep 7, 2016 at 12:39 PM, Kani, Toshimitsu wrote: > On Tue, 2016-09-06 at 14:52 -0700, Dan Williams wrote: >> On Tue, Sep 6, 2016 at 1:17 PM, Andrew Morton > org> wrote: >> > >> > On Tue, 06 Sep 2016 09:49:41 -0700 Dan Williams > > el.com> wrote: >> > >> > > >> > > track_pfn_insert() is mar

Re: [PATCH] usb: dwc3: host: inherit dma configuration from parent dev

2016-09-07 Thread Arnd Bergmann
On Wednesday, September 7, 2016 12:08:20 PM CEST Alan Stern wrote: > On Wed, 7 Sep 2016, Arnd Bergmann wrote: > > > drivers/usb/host/ehci-fsl.c| 4 ++-- > > How did this driver end up in the patch? > > > diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c > > index 9f5ffb6

rfc: Updating SubmittingPatches with [RFC PATCH] and/or [WIP PATCH]

2016-09-07 Thread Joe Perches
On Wed, 2016-09-07 at 17:38 +0100, Lee Jones wrote: > On Wed, 07 Sep 2016, Joe Perches wrote: [] > > And another patch series prefix that could be used > > instead of RFC is WIP. > Certainly sounds reasonable. Is there a difference in the meaning? Request for Comment and Work In Progress differenc

<    1   2   3   4   5   6   7   8   9   >