[PATCH 6/7] perf tool: make show-info in perf report a tool attribute

2017-05-17 Thread David Carrillo-Cisneros
Although defined as exclusive of perf report and perf script, the attribute show_full_info interacts with the full_only attributes of feature_ops, that are defined for all commands. Make show_full_info a tool attribute so that any perf_event__process_* callbacks that access to feature_ops can acce

[PATCH 7/7] perf tools: add feature header record to pipe-mode

2017-05-17 Thread David Carrillo-Cisneros
Add header record types to pipe-mode, reusing the functions used in file-mode and leveraging the new struct feat_fd. Add the perf_event__synthesize_feature event call back to process the new header records. Before this patch: $ perf record -o - -e cycles -c 10 sleep 1 | perf report --stdio

[PATCH 5/7] perf header: use struct feat_fd for process and read

2017-05-17 Thread David Carrillo-Cisneros
As preparation for using header records in pipe mode, replace int fd with struct feat_fd fd in process and read functions for all header record types. To reduce the boiler plate, define and use the FEAT_PROCESS_STR_FUN macro for the common case of header records that are a simple string. Signed-o

[PATCH 4/7] perf header: use struct feat_fd for print

2017-05-17 Thread David Carrillo-Cisneros
As preparation for using header records in pipe mode, replace int fd with struct feat_fd fd in print functions for all header record types. Signed-off-by: David Carrillo-Cisneros --- tools/perf/util/header.c | 104 ++- 1 file changed, 49 insertions(+),

[PATCH 1/7] perf header: fail on write_padded error

2017-05-17 Thread David Carrillo-Cisneros
Do not proceed if write_padded error failed. Also, add comments to remind that return value of write_* functions in util/header.c do not return number of bytes written. Signed-off-by: David Carrillo-Cisneros --- tools/perf/util/header.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-)

Re: [PATCH 1/9] crypto: add hmac IPAD/OPAD constant

2017-05-17 Thread Herbert Xu
On Mon, Apr 24, 2017 at 04:16:21PM +0200, Corentin Labbe wrote: > Many HMAC users directly use directly 0x36/0x5c values. > It's better with crypto to use a name instead of directly some crypto > constant. > > This patch simply add HMAC_IPAD_VALUE/HMAC_OPAD_VALUE defines. > > Signed-off-by: Coren

Re: [kbuild-all] [PATCH v4 2/3] hwmon: (adt7475) temperature smoothing

2017-05-17 Thread Guenter Roeck
On 05/17/2017 08:05 PM, Ye Xiaolong wrote: On 05/16, Guenter Roeck wrote: 0day bot applied your patchset on top of commit 6eaaea1 ("hwmon: (pmbus) Add client driver for IR35221"), is it wrong or you have some prerequisite patches? Thanks for the info, seems we need to improve the kbuild bot b

Re: [PATCH] crypto: hifn_795x: Fix a handful of minor bugs spotted by eye

2017-05-17 Thread David Miller
From: Logan Gunthorpe Date: Wed, 17 May 2017 21:33:22 -0600 > > > On 17/05/17 09:26 PM, Herbert Xu wrote: >> On Thu, May 18, 2017 at 11:25:06AM +0800, Herbert Xu wrote: >>> On Fri, Apr 28, 2017 at 11:02:40AM -0600, Logan Gunthorpe wrote: * Cleaned up the formatting of ablkcipher_get argume

[PATCH v3 2/6] clk: sunxi-ng: Support multiple variable pre-dividers

2017-05-17 Thread Chen-Yu Tsai
On the A83T, the AHB1 clock has a shared pre-divider on the two PLL-PERIPH clock parents. To support such instances of shared pre-dividers, this patch extends the mux clock type to support multiple variable pre-dividers. As the pre-dividers are only used to calculate the rate, but do not participa

[PATCH v3 4/6] ARM: sun8i: a83t: Add CCU device nodes

2017-05-17 Thread Chen-Yu Tsai
Now that we have support for the A83T CCU, add a device node for it, and replace any existing placeholder clock phandles with the correct ones. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/a

[PATCH v3 3/6] clk: sunxi-ng: Add driver for A83T CCU

2017-05-17 Thread Chen-Yu Tsai
The A83T clock control unit is a hybrid of some new style clock designs from the A80, and old style layout from the other Allwinner SoCs. Like the A80, the SoC does not have a low speed 32.768 kHz oscillator. Unlike the A80, there is no clock input either. The only low speed clock available is the

[PATCH v3 0/6] clk: sunxi-ng: Add support for A83T CCU

2017-05-17 Thread Chen-Yu Tsai
Hi everyone, This is v3 of my A83T CCU series. This is for 4.13. Changes since v2: - Dropped patches "clk: Provide option to query hardware for clk phase" and "clk: sunxi-ng: Add class of phase clocks supporting MMC new timing modes". - Dropped support for MMC new timing mode. T

[PATCH v3 6/6] ARM: sun8i: a83t: Switch to CCU device tree binding macros

2017-05-17 Thread Chen-Yu Tsai
Now that the CCU device tree binding headers have been merged, we can use the properly named macros in the device tree, instead of raw numbers. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/

[PATCH v3 5/6] ARM: sun8i: a83t: Set clock accuracy for 24MHz oscillator

2017-05-17 Thread Chen-Yu Tsai
The datasheets for Allwinner SoCs set strict requirements on the stability of the external crystal oscillators. Add the accuracy for the main 24MHz oscillator to the device tree. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH v3 1/6] dt-bindings: clock: sunxi-ccu: Add compatible string for A83T CCU

2017-05-17 Thread Chen-Yu Tsai
The A83T clock control unit is a hybrid of some new style clock designs from the A80, and old style layout from the other Allwinner SoCs. Like the A80, the SoC does not have a low speed 32.768 kHz oscillator. Unlike the A80, there is no clock input either. The only low speed clock available is the

Re: [PATCH 3/3] arm: dts: rk322x: add watchdog device node.

2017-05-17 Thread Frank Wang
Hi, Sorry, I forgot to declare that this change required below patch on patchwork. https://patchwork.kernel.org/patch/9703945/ BR. Frank On 2017/5/18 11:18, kbuild test robot wrote: Hi Frank, [auto build test ERROR on rockchip/for-next] [also build test ERROR on v4.12-rc1 next-20170517

Re: [RFC][PATCH 0/5] perf/tracing/cpuhotplug: Fix locking order

2017-05-17 Thread Paul E. McKenney
On Wed, May 17, 2017 at 07:55:20AM -0700, Paul E. McKenney wrote: > On Wed, May 17, 2017 at 12:40:10PM +0200, Peter Zijlstra wrote: > > On Tue, May 16, 2017 at 07:27:42AM -0700, Paul E. McKenney wrote: > > > On Tue, May 16, 2017 at 05:46:06AM -0700, Paul E. McKenney wrote: [ . . . ] > > > > With

Re: [PATCH] tracing: Make sure RCU is watching before calling a stack trace

2017-05-17 Thread Paul E. McKenney
On Wed, May 17, 2017 at 10:08:45PM -0400, Steven Rostedt wrote: > > From: "Steven Rostedt (VMware)" > > As stack tracing now requires "rcu watching", force RCU to be watching when > recording a stack trace. > > Link: http://lkml.kernel.org/r/20170512172449.879684...@goodmis.org > > Cc: "Paul E

[PATCH 2/4] phy: rockchip-inno-usb2: increase otg sm work first schedule time

2017-05-17 Thread Frank Wang
From: William Wu In rockchip-inno-usb2 phy driver, we use otg_sm_work to dynamically manage power consumption for phy otg-port. If the otg-port works as peripheral mode and does not communicate with usb host, we will suspend phy. But once suspend phy, the phy no longer has any internal clock run

[PATCH 1/4] phy: rockchip-inno-usb2: add a delay after phy resume

2017-05-17 Thread Frank Wang
From: William Wu When resume phy, it need about 1.5 ~ 2ms to wait for utmi_clk which used for USB controller to become stable. Signed-off-by: William Wu Signed-off-by: Frank Wang --- drivers/phy/phy-rockchip-inno-usb2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/phy/phy-ro

[PATCH 3/4] phy: rockchip-inno-usb2: add one phy comprises with two host-ports support

2017-05-17 Thread Frank Wang
From: William Wu At the current rockchip-inno-usb2 phy driver framework, it can only support usb2-phy which comprises with one otg-port and one host-port. However, some Rockchip SoCs' (e.g RK3228, RK3229) usb2-phy comprises with two host-ports, so we use index of otg id for one host-port configu

[PATCH 4/4] phy: rockchip-inno-usb2: add support of usb2-phy for rk322x SoCs

2017-05-17 Thread Frank Wang
This adds support usb2-phy for rk322x SoCs and amend phy Documentation. Signed-off-by: Frank Wang --- .../bindings/phy/phy-rockchip-inno-usb2.txt| 1 + drivers/phy/phy-rockchip-inno-usb2.c | 60 ++ 2 files changed, 61 insertions(+) diff --git a/Documen

[PATCH 0/4] fix some issues for Rockchip usb2-phy and add rk322x SoCs' support

2017-05-17 Thread Frank Wang
These series of patches fix some issues for rockchip usb2-phy and amend usb2-phy framework to support one phy which comprises with two host-ports. In addition, this change also add rk322x usb2-phy support. Frank Wang (1): phy: rockchip-inno-usb2: add support of usb2-phy for rk322x SoCs William

linux-next: Tree for May 18

2017-05-17 Thread Stephen Rothwell
Hi all, Changes since 20170517: The netfilter tree still had its build failure for which I applied a supplied fix patch. The file-locks tree lost its build failure. The sound tree lost its build failure. The scsi-mkp tree lost its build failure. Non-merge commits (relative to Linus'

Re: [PATCH] crypto: hifn_795x: Fix a handful of minor bugs spotted by eye

2017-05-17 Thread Logan Gunthorpe
On 17/05/17 09:26 PM, Herbert Xu wrote: > On Thu, May 18, 2017 at 11:25:06AM +0800, Herbert Xu wrote: >> On Fri, Apr 28, 2017 at 11:02:40AM -0600, Logan Gunthorpe wrote: >>> * Cleaned up the formatting of ablkcipher_get arguments so it complies >>> with kernel style >>> * The offset in ablkciph

Re: [PATCH] crypto: hifn_795x: Fix a handful of minor bugs spotted by eye

2017-05-17 Thread Herbert Xu
On Thu, May 18, 2017 at 11:25:06AM +0800, Herbert Xu wrote: > On Fri, Apr 28, 2017 at 11:02:40AM -0600, Logan Gunthorpe wrote: > > * Cleaned up the formatting of ablkcipher_get arguments so it complies > > with kernel style > > * The offset in ablkcipher_get sould be added to the source, not the

Re: [PATCH] crypto: hifn_795x: Fix a handful of minor bugs spotted by eye

2017-05-17 Thread Herbert Xu
On Fri, Apr 28, 2017 at 11:02:40AM -0600, Logan Gunthorpe wrote: > * Cleaned up the formatting of ablkcipher_get arguments so it complies > with kernel style > * The offset in ablkcipher_get sould be added to the source, not the > destination. We rename it to soffset for clarity. > * dst++ shou

Re: [PATCH 3/3] arm: dts: rk322x: add watchdog device node.

2017-05-17 Thread kbuild test robot
Hi Frank, [auto build test ERROR on rockchip/for-next] [also build test ERROR on v4.12-rc1 next-20170517] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Frank-Wang/add-and-fix-some-device-node

Re: [kernel-hardening] Re: [PATCH v6 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-05-17 Thread Kees Cook
On Wed, May 17, 2017 at 11:25 AM, Daniel Micay wrote: > On Wed, 2017-05-17 at 17:41 +0100, Alan Cox wrote: >> > If we're adjusting applications, they should be made to avoid >> > TIOSCTI >> > completely. This looks to me a lot like the symlink restrictions: >> > yes, >> > userspace should be fixed

Re: [kbuild-all] [PATCH v4 2/3] hwmon: (adt7475) temperature smoothing

2017-05-17 Thread Ye Xiaolong
On 05/16, Guenter Roeck wrote: 0day bot applied your patchset on top of commit 6eaaea1 ("hwmon: (pmbus) Add client driver for IR35221"), is it wrong or you have some prerequisite patches? >> >>Thanks for the info, seems we need to improve the kbuild bot by pulling the >>latest tree bef

[PATCH v2 2/2] f2fs: dax: Implement direct access

2017-05-17 Thread sunqiuyang
From: Qiuyang Sun This patch implements Direct Access (DAX) in F2FS, including: - a mount option to choose whether to enable DAX or not - read/write and mmap of regular files in the DAX way - zero-out of unaligned partial blocks in the DAX way - garbage collection of DAX files, by mapping both ol

[PATCH v2 1/2] f2fs: dax: fix races between page faults and truncating pages

2017-05-17 Thread sunqiuyang
From: Qiuyang Sun Currently in F2FS, page faults and operations that truncate the pagecahe or data blocks, are completely unsynchronized. This can result in page fault faulting in a page into a range that we are changing after truncating, and thus we can end up with a page mapped to disk blocks t

[PATCH v2 1/2] f2fs: dax: fix races between page faults and truncating pages

2017-05-17 Thread sunqiuyang
From: Qiuyang Sun Currently in F2FS, page faults and operations that truncate the pagecahe or data blocks, are completely unsynchronized. This can result in page fault faulting in a page into a range that we are changing after truncating, and thus we can end up with a page mapped to disk blocks t

[PATCH] ARM: sun8i: v3s: fix build of Lichee Pi Zero Dock dtb

2017-05-17 Thread Icenowy Zheng
The Lichee Pi Zero Dock dtb file is not added to the Makefile, so that it won't be built; and the file contains a problem that prevents it from being correctly built. Fix these issues. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/Makefile | 3 ++- arch/arm/boot/dts

Re: sparse on scripts/kconfig/*.c

2017-05-17 Thread Randy Dunlap
On 05/16/17 02:43, Dan Carpenter wrote: > On Mon, May 15, 2017 at 11:00:22AM -0700, Randy Dunlap wrote: >> On 05/10/17 13:53, Dan Carpenter wrote: >>> I have created some new tools to make this process easier. >>> >>> 1) First you still have to edit the Makefile: >>> >>> -HOSTCC = gcc >>> +HO

Re: [PATCH] kernel: trace: pass export pointer as argument to ->write()

2017-05-17 Thread Steven Rostedt
On Thu, 18 May 2017 10:26:59 +0800 Chunyan Zhang wrote: > On 17 May 2017 at 16:05, Felipe Balbi wrote: > > That way, users don't need to keep a global static pointer and can > > rely on container_of() to fetch their own structure. > > > > Signed-off-by: Felipe Balbi > > Reviewed-by: Chunyan

[PATCH] DT: hwspinlock: Add binding documentation for Spreadtrum hwspinlock

2017-05-17 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum hardware spinlock device. Signed-off-by: Baolin Wang --- .../devicetree/bindings/hwlock/sprd-hwspinlock.txt | 23 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/sprd-hws

[PATCH v2] dlm: Make dismatch error message more clear

2017-05-17 Thread Gang He
This change will try to make this error message more clear, since the upper applications (e.g. ocfs2) invoke dlm_new_lockspace to create a new lockspace with passing a cluster name. Sometimes, dlm_new_lockspace return failure while two cluster names dismatch, the user is a little confused since thi

Re: [RFC 04/10] kmod: provide wrappers for kmod_concurrent inc/dec

2017-05-17 Thread Luis R. Rodriguez
On Tue, May 16, 2017 at 08:02:17PM +0200, Luis R. Rodriguez wrote: > On Wed, Jan 11, 2017 at 09:08:57PM +0100, Luis R. Rodriguez wrote: > > On Tue, Jan 10, 2017 at 07:57:10PM +0100, Luis R. Rodriguez wrote: > > > On Fri, Dec 16, 2016 at 09:05:00AM +0100, Luis R. Rodriguez wrote: > > > > On Thu, Dec

Re: [PATCH] clk: sunxi-ng: enable SUNXI_CCU_MP for PRCM

2017-05-17 Thread Chen-Yu Tsai
On Thu, May 18, 2017 at 5:19 AM, Arnd Bergmann wrote: > The newly added PRCM CCU driver uses SUNXI_CCU_MP_WITH_MUX_GATE, which causes > a link error when no other driver enables SUNXI_CCU_MP: > > drivers/clk/built-in.o:(.data+0x5c8c8): undefined reference to `ccu_mp_ops' > > This adds an explicit

Re: [PATCH] kernel: trace: pass export pointer as argument to ->write()

2017-05-17 Thread Chunyan Zhang
On 17 May 2017 at 16:05, Felipe Balbi wrote: > That way, users don't need to keep a global static pointer and can > rely on container_of() to fetch their own structure. > > Signed-off-by: Felipe Balbi Reviewed-by: Chunyan Zhang Thanks, Chunyan > --- > > I'm working on exposing this data over

[RFC][PATCH] zram: try harder to store user data on compression error

2017-05-17 Thread Sergey Senozhatsky
__zram_bvec_write() overwrites the existing compressed object only when it successfully compresses a new one. When zram_compress() fails, we propagate the error, but never touch the old object, so we keep the old data for that particular page and all reads that could hit that index later will read

[PATCH v2 1/3] clk: rockchip: add dt-binding header for rk3128

2017-05-17 Thread Elaine Zhang
Add the dt-bindings header for the rk3128, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3128. And it also applies to the RK3126 SoC. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rk3128-cru.h | 281 +

[PATCH v2 2/3] dt-bindings: add bindings for rk3128 clock controller

2017-05-17 Thread Elaine Zhang
Add devicetree bindings for Rockchip cru which found on Rockchip SoCs. Signed-off-by: Elaine Zhang --- .../bindings/clock/rockchip,rk3128-cru.txt | 56 ++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,rk3128-cru

[PATCH v2 3/3] clk: rockchip: add clock controller for rk3128

2017-05-17 Thread Elaine Zhang
Add the clock tree definition for the new rk3128 SoC. And it also applies to the RK3126 SoC. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk-rk3128.c | 612 ++ 2 files changed, 613 insertions(+) create mode

[PATCH v2 0/3] clk: rockchip: support clk controller for RK3128 SoC

2017-05-17 Thread Elaine Zhang
The driver and clk ID\SRST ID it's also applies to the RK3126 SoC. change in V2: rename the rk312x to rk3128. Elaine Zhang (3): clk: rockchip: add dt-binding header for rk3128 dt-bindings: add bindings for rk3128 clock controller clk: rockchip: add clock controller for rk3128 .../binding

[PATCH] tracing: Make sure RCU is watching before calling a stack trace

2017-05-17 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" As stack tracing now requires "rcu watching", force RCU to be watching when recording a stack trace. Link: http://lkml.kernel.org/r/20170512172449.879684...@goodmis.org Cc: "Paul E. McKenney" Signed-off-by: Steven Rostedt (VMware) --- kernel/trace/trace.c | 2

Re: [PATCH 0/3] xen/blkback: several fixes of resource management

2017-05-17 Thread Steven Haigh
On 2017-05-16 16:23, Juergen Gross wrote: Destroying a Xen guest domain while it was doing I/Os via xen-blkback leaked several resources, including references of the guest's memory pages. This patch series addresses those leaks by correcting usage of reference counts and the sequence when to fre

Re: [RESEND PATCH] llist: Provide a safe version for llist_for_each

2017-05-17 Thread Byungchul Park
On Fri, May 12, 2017 at 09:36:56AM +0900, Byungchul Park wrote: > Sometimes we have to dereference next field of llist node before entering > loop becasue the node might be deleted or the next field might be > modified within the loop. So this adds the safe version of llist_for_each, > that is, lli

Re: [RESEND PATCH] fput: Don't reinvent the wheel but use existing llist API

2017-05-17 Thread Byungchul Park
On Fri, May 12, 2017 at 09:39:01AM +0900, Byungchul Park wrote: > Although llist provides proper APIs, they are not used. Make them used. +cc o...@redhat.com > > Signed-off-by: Byungchul Park > Reviewed-by: Oleg Nesterov > --- > fs/file_table.c | 12 +--- > 1 file changed, 5 insertion

[Subject-Prefix 2/3] PCI: dwc: kirin: add PCIe Driver for HiSilicon Kirin SoC

2017-05-17 Thread Xiaowei Song
From: Song Xiaowei Hisilicon PCIe Driver shares the common functions fo PCIe dw-host The poweron functions is developed on hi3660 SoC, while Others Functions are common for Kirin series SoCs. Lowpower(L1ss and SR), hotplug and MSI feature are not supported currently. Cc: Guodong Xu Signed-off

Re: [RESEND PATCH v3] sched/rt: Remove unnecessary condition in push_rt_task()

2017-05-17 Thread Byungchul Park
On Fri, May 12, 2017 at 10:05:43AM +0900, Byungchul Park wrote: > pick_next_pushable_task(rq) has BUG_ON(rq_cpu != task_cpu(task)) when > it returns a task other than NULL, which means that task_cpu(task) must > be rq->cpu. So if task == next_task, then task_cpu(next_task) must be > rq->cpu as well

Re: [RESEND PATCH v3] sched/deadline: Remove unnecessary condition in push_dl_task()

2017-05-17 Thread Byungchul Park
On Fri, May 12, 2017 at 10:05:59AM +0900, Byungchul Park wrote: > pick_next_pushable_dl_task(rq) has BUG_ON(rq->cpu != task_cpu(task)) > when it returns a task other than NULL, which means that task_cpu(task) > must be rq->cpu. So if task == next_task, then task_cpu(next_task) must > be rq->cpu as

Re: [RESEND PATCH] llist: Provide a safe version for llist_for_each

2017-05-17 Thread Byungchul Park
On Fri, May 12, 2017 at 09:36:56AM +0900, Byungchul Park wrote: > Sometimes we have to dereference next field of llist node before entering > loop becasue the node might be deleted or the next field might be > modified within the loop. So this adds the safe version of llist_for_each, > that is, lli

Re: [PATCH v2] hwspinlock: sprd: Add hardware spinlock driver

2017-05-17 Thread Baolin Wang
On 三, 5月 17, 2017 at 11:06:11上午 -0700, Bjorn Andersson wrote: > On Tue 16 May 22:59 PDT 2017, Baolin Wang wrote: > > > The Spreadtrum hardware spinlock device can provide hardware assistance > > for synchronization between the multiple subsystems. > > > > Signed-off-by: Baolin Wang > > --- > >

答复: [PATCH 1/2] PCI: dwc: kirin: add PCIe Driver for HiSilicon Kirin SoC

2017-05-17 Thread songxiaowei
Hi Arnd, On Fri, May 12, 2017 at 3:51 AM, Song Xiaowei wrote: > From: songxiaowei Looks good overall, just a few details: Please fix your ~/.gitconfig to contain the same real name ("Song Xiaowei" instead of "songxiaowei") that you use for sending the emails. [Xiaowei Song] I'll fix this is

[PATCH v2 2/2] arm64: dts: add sp804 timer node for Hi3660

2017-05-17 Thread Leo Yan
The Hi3660 SoC comes with the sp804 timer in addition to the architecture timers. These ones are shutdown when reaching a deep idle states and a backup timer is needed. The sp804 belongs to another power domain and can fulfill the purpose of replacing temporarily an architecture timer when the CPU

RE: [RFC PATCH 6/6] drm/i915/gvt: support QEMU getting the dmabuf

2017-05-17 Thread Chen, Xiaoguang
Hi Alex, >-Original Message- >From: Alex Williamson [mailto:alex.william...@redhat.com] >Sent: Thursday, May 18, 2017 5:44 AM >To: Chen, Xiaoguang >Cc: Gerd Hoffmann ; Tian, Kevin ; >linux-kernel@vger.kernel.org; zhen...@linux.intel.com; Lv, Zhiyuan >; intel-gvt-...@lists.freedesktop.org;

[PATCH v2 1/2] clk: Hi3660: change to register crgctrl clock with CLK_OF_DECLARE_DRIVER

2017-05-17 Thread Leo Yan
The timer will register into system at very early phase at kernel boot; if timer needs to use clock, the clock should be get ready in function of_clk_init() so later the timer driver probe can retrieve clock successfully. This is finished in below flow on arm64: start_kernel() `-> time_init(

[PATCH v2 0/2] Hi3660: enable sp804 timer

2017-05-17 Thread Leo Yan
This patch set is to enable sp804 timer on Hi3660 for Hikey960 platform. On Hi3660, the sp804 timer co-exists with CPUs' architecture timer; but sp804 timer is located in SoC level but CPU's architecture timer is in CPU power domain. sp804 timer is used as broadcast timer when CPU enters idle stat

Re: [PATCH linux-next v2 1/1] spi: imx: dynamic burst length adjust for PIO mode

2017-05-17 Thread Jiada Wang
Hello Leonard Thanks for the report, can you help to check if the following change address the issue? diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 782045f..19b30cf 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -288,6 +288,9 @@ static void spi_imx_u32_swa

[PATCH] Staging: media: fix missing blank line coding style issue in atomisp_tpg.c

2017-05-17 Thread Manny Vindiola
This is a patch to the atomisp_tpg.c file that fixes up a missing blank line warning found by the checkpatch.pl tool Signed-off-by: Manny Vindiola --- drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/atomisp/pci/at

[PATCH 5/5] drm: dw-hdmi-i2s: add .get_dai_id callback for ALSA SoC

2017-05-17 Thread Kuninori Morimoto
From: Kuninori Morimoto ALSA SoC needs to know connected DAI ID for probing. It is not a big problem if device/driver was only for sound, but getting DAI ID will be difficult if device includes both Video/Sound, like HDMI. To solve this issue, this patch adds new .get_dai_id callback on hdmi_cod

[PATCH 4/5] ASoC: hdmi-codec: add .get_dai_id support

2017-05-17 Thread Kuninori Morimoto
From: Kuninori Morimoto ALSA SoC needs to know connected DAI ID for probing. It is not a big problem if device/driver was only for sound, but getting DAI ID will be difficult if device includes both Video/Sound, like HDMI. To solve this issue, this patch adds new .get_dai_id callback on hdmi_cod

[PATCH 3/5] ASoC: hdmi-codec: remove multi detection support

2017-05-17 Thread Kuninori Morimoto
From: Kuninori Morimoto DesignWare HDMI driver (= dw-hdmi) is supporting HDMI sound, and its probe function was calling sound binding function multiple times as same HDMI device different port. Because of this behavior, commit 9731f82d601 ("ASoC: hdmi-codec: enable multi probe for ...") was add

[PATCH 2/5] ASoC: simple-card-utils: support snd_soc_get_dai_id()

2017-05-17 Thread Kuninori Morimoto
From: Kuninori Morimoto ALSA SoC needs to know connected DAI ID for detecting. It is not a big problem if device/driver was only for sound, but getting DAI ID will be difficult if device includes both Video/Sound, like HDMI. To solve this issue, this patch adds new snd_soc_get_dai_id() and its r

Re: [net-realtek-btcoexist] question about identical code for different branches

2017-05-17 Thread Larry Finger
On 05/17/2017 04:52 PM, Gustavo A. R. Silva wrote: Hello everybody, While looking into Coverity ID 1362263 I ran into the following piece of code at drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c:1000: 1000void exhalbtc_set_ant_num(struct rtl_priv *rtlpriv, u8 type, u8 ant_num

[PATCH v3] drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI

2017-05-17 Thread Robert Foss
Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ defines to the UAPI as a convenience. Ideally the DRM_ROTATE_ and DRM_REFLECT_ property ids are looked up through the atomic API, but realizing that userspace is likely to take shortcuts and assume that the enum values are what is sent over the wire. As

[PATCH 1/5] ASoC: add snd_soc_get_dai_id() function

2017-05-17 Thread Kuninori Morimoto
From: Kuninori Morimoto ALSA SoC needs to know connected DAI ID for detecting. It is not a big problem if device/driver was only for sound, but getting DAI ID will be difficult if device includes both Video/Sound, like HDMI. To solve this issue, this patch adds new snd_soc_get_dai_id() and its r

[PATCH 0/5] ASoC: add HDMI sound support for Codec

2017-05-17 Thread Kuninori Morimoto
Hi Mark, Archit These supports HDMI sound for Codec. Now, SYNOPSYS dw-hdmi-i2s-audio driver is supporting HDMI I2S and is using hdmi-codec driver. Now, ALSA SoC supports OF-graph DT style, this means V4L2/ALSA SoC can share same DT bindings. But 1 issue is that ALSA SoC side needs to adjust port

[PATCH] scsi: remove useless variable assignment

2017-05-17 Thread Gustavo A. R. Silva
Remove both variable assignments once the value stored in variable _reqlen_ is overwritten at some point either by line 2321: reqlen = mptr - msg; or by line 2330: reqlen = 12; Addresses-Coverity-ID: 1226930 Addresses-Coverity-ID: 1226931 Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/dpt_i

[PATCH] drm/pl111: Add a debugfs node to dump our registers.

2017-05-17 Thread Eric Anholt
While debugging an X11 display failure, I wanted to see where we were actually scanning out from. This is probably generally useful to others that might be working on this device. Signed-off-by: Eric Anholt --- drivers/gpu/drm/pl111/Makefile| 2 ++ drivers/gpu/drm/pl111/pl111_debugfs.c

[PATCH v14 4/7] usb: core: add power sequence handling for USB devices

2017-05-17 Thread Peter Chen
Some hard-wired USB devices need to do power sequence to let the device work normally, the typical power sequence like: enable USB PHY clock, toggle reset pin, etc. But current Linux USB driver lacks of such code to do it, it may cause some hard-wired USB devices works abnormal or can't be recogniz

[PATCH v14 7/7] ARM: dts: imx6q-evi: Fix onboard hub reset line

2017-05-17 Thread Peter Chen
From: Joshua Clayton Previously the onboard hub was made to work by treating its reset gpio as a regulator enable. Get rid of that kludge now that pwseq has added reset gpio support Move pin muxing the hub reset pin into the usbh1 group Signed-off-by: Joshua Clayton Signed-off-by: Peter Chen -

[PATCH v14 6/7] ARM: dts: imx6qdl-udoo.dtsi: fix onboard USB HUB property

2017-05-17 Thread Peter Chen
The current dts describes USB HUB's property at USB controller's entry, it is improper. The USB HUB should be the child node under USB controller, and power sequence properties are under it. Besides, using gpio pinctrl setting for USB2415's reset pin. Signed-off-by: Peter Chen Signed-off-by: Josh

[PATCH v14 5/7] ARM: dts: imx6qdl: Enable usb node children with

2017-05-17 Thread Peter Chen
From: Joshua Clayton Give usb nodes #address and #size attributes, so that a child node representing a permanently connected device such as an onboard hub may be addressed with a attribute Signed-off-by: Joshua Clayton Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx6qdl.dtsi | 6 ++

[PATCH v14 1/7] binding-doc: power: pwrseq-generic: add binding doc for generic power sequence library

2017-05-17 Thread Peter Chen
Add binding doc for generic power sequence library. Signed-off-by: Peter Chen Acked-by: Philipp Zabel Acked-by: Rob Herring --- .../bindings/power/pwrseq/pwrseq-generic.txt | 48 ++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/binding

[PATCH v14 2/7] power: add power sequence library

2017-05-17 Thread Peter Chen
We have an well-known problem that the device needs to do some power sequence before it can be recognized by related host, the typical example like hard-wired mmc devices and usb devices. This power sequence is hard to be described at device tree and handled by related host driver, so we have crea

[PATCH v14 3/7] binding-doc: usb: usb-device: add optional properties for power sequence

2017-05-17 Thread Peter Chen
Add optional properties for power sequence. Signed-off-by: Peter Chen Acked-by: Rob Herring --- Documentation/devicetree/bindings/usb/usb-device.txt | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/usb-device.txt b/Documentatio

[PATCH v14 0/7] power: add power sequence library

2017-05-17 Thread Peter Chen
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 compatible string first, if the compatible string is not matched between dt

Re: [PATCH] phy-rockchip-pcie: Mark phy_rd_cfg() as __maybe_unused

2017-05-17 Thread Shawn Lin
Hi Matthias, On 2017/5/18 7:03, Matthias Kaehlcke wrote: The function is not used, but is probably kept around for debugging and symmetry with phy_wr_cfg(). Adding the attribute fixes the following warning when building with clang: drivers/phy/phy-rockchip-pcie.c:102:19: error: unused function

[PATCH v3] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360.

2017-05-17 Thread Eric Anholt
Cygnus is a small family of SoCs, of which we currently have devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the same as 58xx, just requiring a tiny bit of setup that was previously missing. Signed-off-by: Eric Anholt Reviewed-by: Florian Fainelli Acked-by: Rob Herring --- v2:

[PATCH] scsi: remove useless variable assignment

2017-05-17 Thread Gustavo A. R. Silva
Remove this assignment once the value stored in variable _k_ is overwritten after a few lines. Addresses-Coverity-ID: 1226927 Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/qlogicfas408.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/qlogicfas408.c b/drivers/scsi/qlogicfas

Re: [PATCH] lpfc: fix build issue if NVME_FC_TARGET is not defined

2017-05-17 Thread Martin K. Petersen
James, > fix build issue if NVME_FC_TARGET is not defined. noop the code. > The code will never be invoked if target mode is not enabled. Applied to 4.12/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH] perf annotate: process tracing data in pipe mode

2017-05-17 Thread David Carrillo-Cisneros
perf annotate was missing the handler for tracing data records. Prior to this patch we obtained "unhandled" records when piping trace events to perf annotate (using -D option to show the dump_printf messages in process_event_synth_tracing_data_stub): $ perf record -o - -e block:bio_free sleep 2

[PATCH 07/15] liblockdep: Fix 'defined but not used' warning for init_utsname()

2017-05-17 Thread alexander . levin
From: Ben Hutchings We define init_utsname() as static but not inline, resulting in a warning for every source file that includes lockdep.h but doesn't call it. Since it is only used by lockdep.c, define it in there. Signed-off-by: Ben Hutchings Signed-off-by: Sasha Levin --- tools/lib/lockd

[PATCH 06/15] liblockdep: Fix 'set but not used' warnings

2017-05-17 Thread alexander . levin
From: Ben Hutchings liblockdep defines trivial macros for working with interrupt flags, as interrupts are never disabled in userland. This results in warnings from gcc when -Wunused-but-set-variable is enabled, and it is enabled by -Wall. Fix this by evaluating the flags parameter and casting i

[PATCH 11/15] tools: liblockdep: Don't mix fd-based and stream IO

2017-05-17 Thread alexander . levin
From: Alexander Sverdlin Mixing fd-based and stream-base IO results in interleaved output like following: = [ BUG: bad unlock balance detected! ] liblockdep 4.7.6 - conopal/372 is trying to release lock (0x3a45c) at: /lib/li

[PATCH 04/15] liblockdep: Enable -Wall by default

2017-05-17 Thread alexander . levin
From: Ben Hutchings Regressions in liblockdep may be missed because it doesn't enable warnings. Adding -Wall immediately introduces a lot of warnings, but those will be fixed by the following commits. Signed-off-by: Ben Hutchings Signed-off-by: Sasha Levin --- tools/lib/lockdep/Makefile | 1

[PATCH 13/15] tools: liblockdep: Fix object file paths used in an out-of-tree build

2017-05-17 Thread alexander . levin
From: Ben Hutchings Signed-off-by: Ben Hutchings Signed-off-by: Sasha Levin --- tools/lib/lockdep/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile index 98d8a5ae8334..e5e64d6ad0a7 100644 --- a/tools/lib

[PATCH v2 1/1] Drivers: hv: vmbus: Close timing hole that can corrupt per-cpu page

2017-05-17 Thread mikelley
From: Michael Kelley Extend the disabling of preemption to include the hypercall so that another thread can't get the CPU and corrupt the per-cpu page used for hypercall arguments. Signed-off-by: Michael Kelley --- drivers/hv/hv.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-

[PATCH] ring-buffer: Remove unused function __rb_data_page_index()

2017-05-17 Thread Matthias Kaehlcke
This fixes the following warning when building with clang: kernel/trace/ring_buffer.c:1842:1: error: unused function '__rb_data_page_index' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke --- kernel/trace/ring_buffer.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/ke

Re: [PATCH 2/6] wl1251: Use request_firmware_prefer_user() for loading NVS calibration data

2017-05-17 Thread Bjorn Andersson
On Wed 17 May 05:53 PDT 2017, Pali Roh?r wrote: > On Wednesday 17 May 2017 14:06:06 Johannes Berg wrote: > > On Tue, 2017-05-16 at 01:13 +0200, Luis R. Rodriguez wrote: > > > > > Now for N900 case there is a similar scenario > > > > > alhtough it has additional requirement to go to user-space due

[PATCH 09/15] MAINTAINERS: update email for Sasha Levin

2017-05-17 Thread alexander . levin
New position, new email address. Signed-off-by: Sasha Levin --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 38d3e4ed7208..c67ad6fe6f6c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7450,7 +7450,7 @@ S:Maintained F:

[PATCH 15/15] tools: liblockdep: Use LDFLAGS

2017-05-17 Thread alexander . levin
From: Ben Hutchings Signed-off-by: Ben Hutchings Signed-off-by: Sasha Levin --- tools/lib/lockdep/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile index ce21b9429314..ed9ace59d112 100644 --- a/tools/lib/lockdep

[PATCH 05/15] liblockdep: Fix 'unused value' warnings

2017-05-17 Thread alexander . levin
From: Ben Hutchings liblockdep defines various macros that may expand to an expression with no effect, while the in-kernel definition does have an effect. This results in warnings from gcc when -Wunused-value is enabled, and is is enabled by -Wall. Fix this by introducing trivial functions, as f

[PATCH 12/15] tools: liblockdep: fix compilation for 4.11

2017-05-17 Thread alexander . levin
- More rcu stubs - New dummy headers due to sched header split - jhash2 included in due to kernel lockdep inclusion and usage Signed-off-by: Sasha Levin --- tools/include/linux/bitops.h | 10 ++ tools/include/linux/jhash.h | 175 ++

[PATCH 03/15] liblockdep: Define the ARRAY_SIZE() macro

2017-05-17 Thread alexander . levin
From: Ben Hutchings lockdep.c now uses ARRAY_SIZE(). Fixes: 75dd602a5198 ("lockdep: Fix lock_chain::base size") Signed-off-by: Ben Hutchings Signed-off-by: Sasha Levin --- tools/lib/lockdep/uinclude/linux/kernel.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/lib/lockdep/uinclud

[PATCH 02/15] liblockdep: Reduce MAX_LOCK_DEPTH to avoid overflowing lock_chain::depth

2017-05-17 Thread alexander . levin
From: Ben Hutchings liblockdep has been broken since commit 75dd602a5198 ("lockdep: Fix lock_chain::base size"), as that adds a check that MAX_LOCK_DEPTH is within the range of lock_chain::depth and in liblockdep it is much too large. That should have resulted in a compiler error, but didn't bec

[PATCH 14/15] tools: liblockdep: Remove double-quotes from soname

2017-05-17 Thread alexander . levin
From: Ben Hutchings Signed-off-by: Ben Hutchings Signed-off-by: Sasha Levin --- tools/lib/lockdep/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile index e5e64d6ad0a7..ce21b9429314 100644 --- a/tools/lib/lockdep

<    1   2   3   4   5   6   7   8   9   10   >