Re: [PATCH v2 5/5] kconfig: refactor ncurses package checks for building nconf

2018-05-21 Thread Masahiro Yamada
Randy, 2018-05-21 15:24 GMT+09:00 Randy Dunlap : > On 05/20/2018 09:58 PM, Masahiro Yamada wrote: >> 2018-05-21 13:51 GMT+09:00 Randy Dunlap : >>> On 05/20/2018 09:48 PM, Masahiro Yamada wrote: 2018-05-21 8:41 GMT+09:00 Randy Dunlap : > On 05/20/2018 01:16 AM, Masahiro Yamada wrote:

[PATCH v4 3/3] perf annotate: Support '--group' option

2018-05-21 Thread Jin Yao
With the '--group' option, even for non-explicit group, perf annotate will enable the group output. For example, perf record -e cycles,branches ./div perf annotate main --stdio --group :Disassembly of section .text: : :00

[PATCH v4 0/3] perf annotate: Support '--group' option

2018-05-21 Thread Jin Yao
For non-explicit group, perf report has already supported a option '--group' which can enable group output. This patch-set will support perf annotate with the same '--group'. For example, perf record -e cycles,branches ./div perf annotate main --stdio --group :

[PATCH v4 2/3] perf report: Use perf_evlist__force_leader to support '--group'

2018-05-21 Thread Jin Yao
Since we have created a new function perf_evlist__force_leader, so now remove the old code and use perf_evlist__force_leader instead. Signed-off-by: Jin Yao --- tools/perf/builtin-report.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tools/perf/builtin-repor

[PATCH v4 1/3] perf evlist: Create new function perf_evlist__force_leader

2018-05-21 Thread Jin Yao
For non-explicit group, perf report supports a option '--group' which can enable group output. We also need to support perf annotate with the same '--group'. Create a new function perf_evlist__force_leader which contains common code to force setting the group leader. Signed-off-by: Jin Yao ---

Re: [PATCH] mfd: intel-lpss: Fix Intel Cannon Lake LPSS I2C input clock

2018-05-21 Thread Jian-Hong Pan
Hi Jarkko, We have tried this patch on the two laptops we have now: ASUS X580GD dev@endless:~$ lscpu | grep "Model name" Model name: Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz dev@endless:~$ lspci | grep -E '(a36[89ab]|97c[56])' 00:15.0 Serial bus controller [0c80]: Intel Corporation Devi

Re: [PATCH v6 17/28] x86/asm: use SYM_INNER_LABEL instead of GLOBAL

2018-05-21 Thread Jiri Slaby
On 05/18/2018, 09:41 PM, Andy Lutomirski wrote: > On Fri, May 18, 2018 at 2:17 AM Jiri Slaby wrote: > >> GLOBAL had several meanings and is going away. In this patch, convert >> all the inner function labels marked with GLOBAL to use SYM_INNER_LABEL >> instead. > >> Note that retint_user needs n

Re: [PATCH] mtd: mtdoops: optionally dump boottime

2018-05-21 Thread Richard Weinberger
Stefan, Am Montag, 21. Mai 2018, 04:29:24 CEST schrieb Stefan Schaeckeler: > Hello Richard and others, > > > I get the use-case, but why is this only for mtdoops? > > Powerpc's nvram module also stores oops messages and does so by adding an > additional timestamp, as well (search for kmsg_dump_g

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Sam Ravnborg
Hi Masahiro, > Hmm, your suggestion is more shell-oriented parsing. ... > Probably, I found it was much more complex, > then I chose Make-like simpler one. Agree that the simple one should be the best choice for now. We shall not add anything more complex unless it is really needed. Sam

[PATCH RESEND] KVM: x86: Expose CLDEMOTE CPU feature to guest VM

2018-05-21 Thread Jingqi Liu
The CLDEMOTE instruction hints to hardware that the cache line that contains the linear address should be moved("demoted") from the cache(s) closest to the processor core to a level more distant from the processor core. This may accelerate subsequent accesses to the line by other cores in the same

[PATCH] coccinelle: deref_null: improve performance

2018-05-21 Thread Julia Lawall
Move rules looking for some special cases of safe dereferences before the collection of NULL-tested values. The special cases are fairly rare, but somewhat costly to find, because isomorphisms create many variants of the rules. There is thus no need to search for them over and over for each NULL

[PATCH] coccinelle: mini_lock: improve performance

2018-05-21 Thread Julia Lawall
Replace <+... ...+> by ... when any. <+... ...+> is slow, and in some obscure cases involving backward jumps it doesn't force the unlock to actually come after the end of the if. Signed-off-by: Julia Lawall --- scripts/coccinelle/locks/mini_lock.cocci |6 -- 1 file changed, 4 insertion

Re: [PATCH v2 0/2] Add support for QCOM cpufreq FW driver

2018-05-21 Thread Taniya Das
Hello Viresh, Sure, will do it next time. Hope updating the fixes in this email is fine. Do let me know in case you need me to send it across again the series with cover letter updated. On 5/21/2018 11:35 AM, Viresh Kumar wrote: On 19-05-18, 23:04, Taniya Das wrote: [v2] * Address com

Re: [PATCH v1 4/5] ARM: tegra: Don't apply CPU erratas in insecure mode

2018-05-21 Thread Dmitry Osipenko
On 20.05.2018 13:15, Dmitry Osipenko wrote: > CPU isn't allowed to touch secure registers while running under secure > monitor. Hence skip applying CPU erratas in the reset handler if Trusted > Foundations firmware presents. > > Signed-off-by: Dmitry Osipenko > --- > arch/arm/mach-tegra/reset-ha

[PATCH] drm/xen-front: fix pointer casts

2018-05-21 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Building for a 32-bit target results in warnings from casting between a 32-bit pointer and a 64-bit integer. Fix the warnings by casting those pointers to uintptr_t first. Signed-off-by: Oleksandr Andrushchenko --- drivers/gpu/drm/xen/xen_drm_front.h | 4 ++-

Re: [PATCH 12/15] drm/sun4i: Add support for second clock parent to DW HDMI PHY clk driver

2018-05-21 Thread kbuild test robot
-ci/linux/commits/Jernej-Skrabec/Add-support-for-R40-HDMI-pipeline/20180521-131839 base: git://people.freedesktop.org/~airlied/linux.git drm-next config: arm64-allmodconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https

[PATCH] bpf: check NULL for sk_to_full_sk()

2018-05-21 Thread YueHaibing
like commit df39a9f106d5 ("bpf: check NULL for sk_to_full_sk() return value"), we should check sk_to_full_sk return value against NULL. Signed-off-by: YueHaibing --- include/linux/bpf-cgroup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/bpf-cgroup.h b/includ

Re: [PATCH v3 17/26] drm/bridge: thc63lvd1024: provide an owner .odev device

2018-05-21 Thread jacopo mondi
Hi Peter, On Wed, May 16, 2018 at 12:15:01PM +0200, Peter Rosin wrote: > The .of_node member is going away. > > Signed-off-by: Peter Rosin For this specific driver Acked-by: Jacopo Mondi Thanks j > --- > drivers/gpu/drm/bridge/thc63lvd1024.c | 2 +- > 1 file changed, 1 insertion(+), 1 de

Re: [PATCH 04/15] dt-bindings: display: sunxi-drm: Add TCON TOP description

2018-05-21 Thread Maxime Ripard
Hi, On Sat, May 19, 2018 at 08:31:16PM +0200, Jernej Skrabec wrote: > TCON TOP main purpose is to configure whole display pipeline. It > determines relationships between mixers and TCONs, selects source TCON > for HDMI, muxes LCD and TV encoder GPIO output, I'm not sure you mean GPIO here, but ra

Re: [PATCH 05/15] drm/sun4i: Add TCON TOP driver

2018-05-21 Thread Maxime Ripard
On Sat, May 19, 2018 at 08:31:17PM +0200, Jernej Skrabec wrote: > As already described in DT binding, TCON TOP is responsible for > configuring display pipeline. In this initial driver focus is on HDMI > pipeline, so TVE and LCD configuration is not implemented. > > Implemented features: > - HDMI

Re: [PATCH 06/15] drm/sun4i: tcon: Add support for tcon-top

2018-05-21 Thread Maxime Ripard
On Sat, May 19, 2018 at 08:31:18PM +0200, Jernej Skrabec wrote: > If SoC has TCON TOP unit, it has to be configured from TCON, since it > has all information needed. Additionally, if it is TCON TV, it must also > enable bus gate inside TCON TOP unit. Why? > Add support for such TCONs. > > Signed

Re: [PATCH 12/15] drm/sun4i: Add support for second clock parent to DW HDMI PHY clk driver

2018-05-21 Thread Maxime Ripard
On Sat, May 19, 2018 at 08:31:24PM +0200, Jernej Skrabec wrote: > Expand HDMI PHY clock driver to support second clock parent. > > Signed-off-by: Jernej Skrabec > --- > drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 6 +- > drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c | 29 ++- > drivers/gpu/dr

Re: [PATCH V2 2/3] clk: imx7d: correct enet clock CCGR registers

2018-05-21 Thread Stefan Agner
On 21.05.2018 04:35, Anson Huang wrote: > Hi, Stefan > > Anson Huang > Best Regards! > > >> -Original Message- >> From: Stefan Agner [mailto:ste...@agner.ch] >> Sent: Friday, May 18, 2018 9:02 PM >> To: Anson Huang >> Cc: shawn...@kernel.org; ker...@pengutronix.de; Fabio Estevam >> ; ro

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-21 Thread Rafael J. Wysocki
On Mon, May 21, 2018 at 7:14 AM, Viresh Kumar wrote: > On 18-05-18, 11:55, Joel Fernandes (Google.) wrote: >> From: "Joel Fernandes (Google)" >> >> Currently there is a chance of a schedutil cpufreq update request to be >> dropped if there is a pending update request. This pending request can >>

Re: REGRESSION: HiKey eMMC corruption

2018-05-21 Thread Wei Xu
Hi John, On 2018/5/18 23:59, John Stultz wrote: > The last few months have been busy and I've not been ontop of my > upstream testing as well as I'd like, but today I did manage to chase > down an issue I've been seeing since 4.17-rc1 on the HiKey board, > which was causing emmc corruption and sto

[PATCH net 2/4] virtio-net: correctly transmit XDP buff after linearizing

2018-05-21 Thread Jason Wang
We should not go for the error path after successfully transmitting a XDP buffer after linearizing. Since the error path may try to pop and drop next packet and increase the drop counters. Fixing this by simply drop the refcnt of original page and go for xmit path. Fixes: 72979a6c3590 ("virtio_net

[PATCH net 0/4] Fix several issues of virtio-net mergeable XDP

2018-05-21 Thread Jason Wang
Hi: Please review the patches that tries to fix sevreal issues of virtio-net mergeable XDP. Thanks Jason Wang (4): virtio-net: correctly redirect linearized packet virtio-net: correctly transmit XDP buff after linearizing virtio-net: reset num_buf to 1 after linearizing packet virito-net

[PATCH net 4/4] virito-net: fix leaking page for gso packet during mergeable XDP

2018-05-21 Thread Jason Wang
We need to drop refcnt to xdp_page if we see a gso packet. Otherwise it will be leaked. Fixing this by moving the check of gso packet above the linearizing logic. Cc: John Fastabend Fixes: 72979a6c3590 ("virtio_net: xdp, add slowpath case for non contiguous buffers") Signed-off-by: Jason Wang -

[PATCH net 3/4] virtio-net: reset num_buf to 1 after linearizing packet

2018-05-21 Thread Jason Wang
If we successfully linearize the packets, num_buf were set to zero which was wrong since we now have only 1 buffer to be used for e.g in the error path of receive_mergeable(). Zero num_buf will lead the code try to pop the buffers of next packet and drop it. Fixing this by set num_buf to 1 if we su

[PATCH net 1/4] virtio-net: correctly redirect linearized packet

2018-05-21 Thread Jason Wang
After a linearized packet was redirected by XDP, we should not go for the err path which will try to pop buffers for the next packet and increase the drop counter. Fixing this by just drop the page refcnt for the original page. Fixes: 186b3c998c50 ("virtio-net: support XDP_REDIRECT") Reported-by:

Re: [PATCH] usb: dwc2: Fix HiKey regression caused by power_down feature

2018-05-21 Thread Minas Harutyunyan
Hi John, On 5/19/2018 4:49 AM, John Stultz wrote: > In 4.17-rc, commit 03ea6d6e9e1f ("usb: dwc2: Enable power down") > caused the HiKey board to not correctly handle switching between > usb-gadget and usb-host mode. > > Unplugging the OTG port would result in: > [ 42.240973] dwc2 f72c.usb:

Re: [PATCH 1/2] slimbus: ngd: dt-bindings: Add slim ngd dt bindings

2018-05-21 Thread Srinivas Kandagatla
On 18/05/18 21:47, Trilok Soni wrote: Hi Srinivas On 5/16/2018 9:51 AM, Srinivas Kandagatla wrote: This patch adds bindings for Qualcomm SLIMBus NGD controller found in all new SoCs starting from B family. "X/Y/Z family" has no meaning here in upstream and just put the processor name from

[PATCH v3 2/2] cpufreq: schedutil: Cleanup and document iowait boost

2018-05-21 Thread Patrick Bellasi
The iowait boosting code has been recently updated to add a progressive boosting behavior which allows to be less aggressive in boosting tasks doing only sporadic IO operations, thus being more energy efficient for example on mobile platforms. The current code is now however a bit convoluted. Some

[PATCH v3 1/2] cpufreq: schedutil: Fix iowait boost reset

2018-05-21 Thread Patrick Bellasi
A more energy efficient update of the IO wait boosting mechanism has been introduced in: commit a5a0809bc58e ("cpufreq: schedutil: Make iowait boost more energy efficient") where the boost value is expected to be: - doubled at each successive wakeup from IO staring from the minimum frequ

[RFT v2 1/4] perf cs-etm: Generate sample for missed packets

2018-05-21 Thread Leo Yan
Commit e573e978fb12 ("perf cs-etm: Inject capabilitity for CoreSight traces") reworks the samples generation flow from CoreSight trace to match the correct format so Perf report tool can display the samples properly. But the change has side effect for packet handling, it only generate samples when

[PATCH v3 0/2] Fix and cleanup iowait boost

2018-05-21 Thread Patrick Bellasi
Here is an update of: https://lkml.org/lkml/2018/4/10/642 20180410155931.31973-1-patrick.bell...@arm.com which is now a series since I've split the fix from the refactoring/cleanup patch, as suggested by Viresh. Cheers Patrick Changes in v3: - renamed the iowait boost functions (Peter)

[RFT v2 0/4] Perf script: Add python script for CoreSight trace disassembler

2018-05-21 Thread Leo Yan
This patch series is to support for using 'perf script' for CoreSight trace disassembler, for this purpose this patch series adds a new python script to parse CoreSight tracing event and use command 'objdump' for disassembled lines, finally this can generate readable program execution flow for revi

Re: [PATCH v2 1/5] media: cec-notifier: Get notifier by device and connector name

2018-05-21 Thread Neil Armstrong
Hi Sean, On 18/05/2018 17:48, Sean Paul wrote: > On Fri, May 18, 2018 at 03:05:00PM +0200, Neil Armstrong wrote: >> In non device-tree world, we can need to get the notifier by the driver >> name directly and eventually defer probe if not yet created. >> >> This patch adds a variant of the get fun

[RFT v2 4/4] coresight: Document for CoreSight trace disassembler

2018-05-21 Thread Leo Yan
This commit documents CoreSight trace disassembler usage and gives example for it. Signed-off-by: Leo Yan --- Documentation/trace/coresight.txt | 52 +++ 1 file changed, 52 insertions(+) diff --git a/Documentation/trace/coresight.txt b/Documentation/trace/co

[RFT v2 2/4] perf script python: Add addr into perf sample dict

2018-05-21 Thread Leo Yan
ARM CoreSight auxtrace uses 'sample->addr' to record the target address for branch instructions, so the data of 'sample->addr' is required for tracing data analysis. This commit collects data of 'sample->addr' into perf sample dict, finally can be used for python script for parsing event. Signed-

[RFT v2 3/4] perf script python: Add script for CoreSight trace disassembler

2018-05-21 Thread Leo Yan
This commit adds python script to parse CoreSight tracing event and use command 'objdump' for disassembled lines, finally we can generate readable program execution flow for reviewing tracing data. The script receives CoreSight tracing packet with below format: ++-

Re: [PATCH 2/2] slimbus: ngd: Add qcom SLIMBus NGD driver

2018-05-21 Thread Srinivas Kandagatla
Thanks for the report! This patch has dependency on https://lkml.org/lkml/2018/5/17/251 I should have mentioned this in cover letter! thanks, srini On 18/05/18 22:39, kbuild test robot wrote: Hi Srinivas, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [

Re: [PATCH v2 3/4] mm: add find_alloc_contig_pages() interface

2018-05-21 Thread Vlastimil Babka
On 05/04/2018 01:29 AM, Mike Kravetz wrote: > find_alloc_contig_pages() is a new interface that attempts to locate > and allocate a contiguous range of pages. It is provided as a more How about dropping the 'find_' from the name, so it's more like other allocator functions? All of them have to 'f

Re: [PATCH v2 2/5] drm/i915: hdmi: add CEC notifier to intel_hdmi

2018-05-21 Thread Neil Armstrong
Hi Ville, On 18/05/2018 15:24, Ville Syrjälä wrote: > On Fri, May 18, 2018 at 03:05:01PM +0200, Neil Armstrong wrote: >> This patchs adds the cec_notifier feature to the intel_hdmi part >> of the i915 DRM driver. It uses the HDMI DRM connector name to differentiate >> between each HDMI ports. >> T

Re: [PATCH v2 3/5] mfd: cros-ec: Introduce CEC commands and events definitions.

2018-05-21 Thread Neil Armstrong
Hi Enric, On 18/05/2018 18:19, Enric Balletbo Serra wrote: > Hi Neil, > > 2018-05-18 15:05 GMT+02:00 Neil Armstrong : >> The EC can expose a CEC bus, this patch adds the CEC related definitions >> needed by the cros-ec-cec driver. >> Having a 16 byte mkbp event size makes it possible to send CEC

RE: [PATCH v8 10/15] cpufreq: Add Kryo CPU scaling driver

2018-05-21 Thread ilialin
Final version (addressing Russel's comment as well): // SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2018, The Linux Foundation. All rights reserved. */ /* * In Certain QCOM SoCs like apq8096 and msm8996 that have KRYO processors, * the CPU frequency subset and voltage value of each

Re: [PATCH v2 2/2] cpufreq: qcom-fw: Add support for QCOM cpufreq FW driver

2018-05-21 Thread Viresh Kumar
On 19-05-18, 23:04, Taniya Das wrote: > The CPUfreq FW present in some QCOM chipsets offloads the steps necessary > for changing the frequency of CPUs. The driver implements the cpufreq > driver interface for this firmware. > > Signed-off-by: Saravana Kannan > Signed-off-by: Taniya Das > --- >

Re: [PATCH v2 5/5] media: platform: Add Chrome OS EC CEC driver

2018-05-21 Thread Neil Armstrong
Hi Enric, On 18/05/2018 17:02, Enric Balletbo Serra wrote: > Hi Neil, > > 2018-05-18 15:05 GMT+02:00 Neil Armstrong : >> The Chrome OS Embedded Controller can expose a CEC bus, this patch add the > > A minor nit, there is a "consensus" on tell cros-ec as "ChromeOS > Embedded Controller" or "Chro

Re: [PATCH v2 0/5] Add ChromeOS EC CEC Support

2018-05-21 Thread Neil Armstrong
On 18/05/2018 16:04, Enric Balletbo Serra wrote: > Hi Neil, > > 2018-05-18 15:04 GMT+02:00 Neil Armstrong : >> Hi All, >> >> The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support >> through it's Embedded Controller, to enable the Linux CEC Core to communicate >> with it and get

Re: [PATCH v2 0/2] Add support for QCOM cpufreq FW driver

2018-05-21 Thread Viresh Kumar
On 21-05-18, 13:05, Taniya Das wrote: > Hello Viresh, > > Sure, will do it next time. Hope updating the fixes in this email is fine. > Do let me know in case you need me to send it across again the series with > cover letter updated. > > On 5/21/2018 11:35 AM, Viresh Kumar wrote: > > On 19-05-18,

Re: [PATCH v3 1/2] cpufreq: schedutil: Fix iowait boost reset

2018-05-21 Thread Viresh Kumar
On 21-05-18, 09:51, Patrick Bellasi wrote: > A more energy efficient update of the IO wait boosting mechanism has > been introduced in: > >commit a5a0809bc58e ("cpufreq: schedutil: Make iowait boost more energy > efficient") > > where the boost value is expected to be: > > - doubled at eac

[RFC PATCH net-next 00/12] XDP batching for TUN/vhost_net

2018-05-21 Thread Jason Wang
Hi all: We do not support XDP batching for TUN since it can only receive one packet a time from vhost_net. This series tries to remove this limitation by: - introduce a TUN specific msg_control that can hold a pointer to an array of XDP buffs - try copy and build XDP buff in vhost_net - store X

Re: REGRESSION: HiKey eMMC corruption

2018-05-21 Thread Leo Yan
Hi Wei, John, On Mon, May 21, 2018 at 09:34:04AM +0100, Wei Xu wrote: > Hi John, > > On 2018/5/18 23:59, John Stultz wrote: > > The last few months have been busy and I've not been ontop of my > > upstream testing as well as I'd like, but today I did manage to chase > > down an issue I've been se

[RFC PATCH net-next 02/12] vhost_net: introduce vhost_exceeds_weight()

2018-05-21 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/net.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 15d191a..de544ee 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -479,6 +479,12 @@ static size_t init_i

[RFC PATCH net-next 05/12] vhost_net: batch update used ring for datacopy TX

2018-05-21 Thread Jason Wang
Like commit e2b3b35eb989 ("vhost_net: batch used ring update in rx"), this patches implements batch used ring update for datacopy TX (zerocopy has already done some kind of batching). Testpmd transmission from guest to ixgbe via XDP_REDIRECT shows about 15% improvement from 2.8Mpps to 3.2Mpps. Si

[RFC PATCH net-next 12/12] vhost_net: batch submitting XDP buffers to underlayer sockets

2018-05-21 Thread Jason Wang
This patch implements XDP batching for vhost_net with tun. This is done by batching XDP buffs in vhost and submit them when: - vhost_net can not build XDP buff (mostly because of the size of packet) - #batched exceeds the limitation (VHOST_NET_RX_BATCH). - tun accept a batch of XDP buff through ms

[RFC PATCH net-next 10/12] vhost_net: build xdp buff

2018-05-21 Thread Jason Wang
This patch implement build XDP buffers in vhost_net. The idea is do userspace copy in vhost_net and build XDP buff based on the page. Vhost_net can then submit one or an array of XDP buffs to underlayer socket (e.g TUN). TUN can choose to do XDP or call build_skb() to build skb. To support build sk

[RFC PATCH net-next 08/12] tuntap: tweak on the path of non-xdp case in tun_build_skb()

2018-05-21 Thread Jason Wang
If we're sure not to go native XDP, there's no need for several things like touching preemption counter and rcu stuffs. Signed-off-by: Jason Wang --- drivers/net/tun.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index f6e0f96

[RFC PATCH net-next 11/12] vhost_net: passing raw xdp buff to tun

2018-05-21 Thread Jason Wang
This patches implement a TUN specific msg_control: #define TUN_MSG_UBUF 1 #define TUN_MSG_PTR 2 struct tun_msg_ctl { int type; void *ptr; }; The first supported type is ubuf which is already used by vhost_net zerocopy code. The second is XDP buff, which allows vhost_net to pass XDP

Re: [PATCH v8 10/15] cpufreq: Add Kryo CPU scaling driver

2018-05-21 Thread Viresh Kumar
On 21-05-18, 12:00, ilia...@codeaurora.org wrote: > Final version (addressing Russel's comment as well): Sorry, can't review it like this. At least you should be posting your diff here and you also need to do that from a sane email client like mutt, which wouldn't auto-fix/update the code. Doing i

[RFC PATCH net-next 06/12] tuntap: enable premmption early

2018-05-21 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/net/tun.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 44d4f3d..24ecd82 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -1697,6 +1697,8 @@ static struct sk_buff *tun_build_skb(s

[RFC PATCH net-next 09/12] tuntap: split out XDP logic

2018-05-21 Thread Jason Wang
This patch split out XDP logic into a single function. This make it to be reused by XDP batching path in the following patch. Signed-off-by: Jason Wang --- drivers/net/tun.c | 85 +-- 1 file changed, 51 insertions(+), 34 deletions(-) diff --gi

[RFC PATCH net-next 07/12] tuntap: simplify error handling in tun_build_skb()

2018-05-21 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/net/tun.c | 36 ++-- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 24ecd82..f6e0f96 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -1612,7 +1612,7 @@ stat

[RFC PATCH net-next 01/12] vhost_net: introduce helper to initialize tx iov iter

2018-05-21 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/net.c | 34 +++--- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index c4b49fc..15d191a 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -459,6 +459,26

[RFC PATCH net-next 04/12] vhost_net: split out datacopy logic

2018-05-21 Thread Jason Wang
Instead of mixing zerocopy and datacopy logics, this patch tries to split datacopy logic out. This results for a more compact code and specific optimization could be done on top more easily. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 111 +++--

[RFC PATCH net-next 03/12] vhost_net: introduce vhost_has_more_pkts()

2018-05-21 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/net.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index de544ee..4ebac76 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -485,6 +485,13 @@ static bool vhost_exc

[PATCH v2] kernfs: fix dentry unexpected skip

2018-05-21 Thread Hatayama, Daisuke
kernfs_dir_next_pos() overlooks the situation that the dentry corresponding to a given pos object has already been inactive. Hence, when kernfs_dir_pos() returns the dentry with a hash value larger than the original one, kernfs_dir_next_pos() returns the dentry next to the one returned by kernfs_di

[PATCH] iio: adc: fix spelling mistake: "Freeacale" -> "Freescale"

2018-05-21 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in module description text Signed-off-by: Colin Ian King --- drivers/iio/adc/imx7d_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/imx7d_adc.c b/drivers/iio/adc/imx7d_adc.c index cfab31162845..ad6764

Re: Revert "dmaengine: pl330: add DMA_PAUSE feature"

2018-05-21 Thread Vinod Koul
On 18-05-18, 14:56, Frank Mori Hess wrote: > On Fri, May 18, 2018 at 12:03 AM, Vinod wrote: > > > > You are simply mixing things up! > > It certainly feels like I'm mixed up. If I have to resolve this, I'd > like to be a little less mixed up before I submit more patches which > are going to inev

Re: [PATCH v6 14/17] mm: Iterate only over charged shrinkers during memcg shrink_slab()

2018-05-21 Thread Kirill Tkhai
On 20.05.2018 11:00, Vladimir Davydov wrote: > On Fri, May 18, 2018 at 11:44:01AM +0300, Kirill Tkhai wrote: >> Using the preparations made in previous patches, in case of memcg >> shrink, we may avoid shrinkers, which are not set in memcg's shrinkers >> bitmap. To do that, we separate iterations o

Re: [PATCH v2 1/2] clk: meson: mpll: add round closest support

2018-05-21 Thread Martin Blumenstingl
On Tue, May 15, 2018 at 6:36 PM, Jerome Brunet wrote: > Allow the mpll driver to round the requested rate up if > CLK_MESON_MPLL_ROUND_CLOSEST is set and it provides a rate closer to the > requested rate. > > Signed-off-by: Jerome Brunet Acked-by: Martin Blumenstingl I gave it a quick spin on O

Re: [PATCH v6 15/17] mm: Generalize shrink_slab() calls in shrink_node()

2018-05-21 Thread Kirill Tkhai
On 20.05.2018 11:08, Vladimir Davydov wrote: > On Fri, May 18, 2018 at 11:44:11AM +0300, Kirill Tkhai wrote: >> From: Vladimir Davydov >> >> The patch makes shrink_slab() be called for root_mem_cgroup >> in the same way as it's called for the rest of cgroups. >> This simplifies the logic and impro

[PATCH] [media] hdpvr: fix spelling mistake: "Hauppage" -> "Hauppauge"

2018-05-21 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in name field Signed-off-by: Colin Ian King --- drivers/media/usb/hdpvr/hdpvr-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/hdpvr/hdpvr-i2c.c b/drivers/media/usb/hdpvr/hdpvr-i2c.c index 4720d79b

[PATCH] HV: Fix definition of struct hv_vp_assist_page.

2018-05-21 Thread Tianyu Lan
The struct hv_vp_assist_page was defined incorrectly. The "vtl_control" should be u64[3], "nested_enlightenments_control" should be a u64 and there is 7 reserved bytes following "enlighten_vmentry". This patch is to fix it. Signed-off-by: Lan Tianyu --- arch/x86/include/asm/hyperv-tlfs.h | 9 +++

[RFC] perf: Allow fine-grained PMU access control

2018-05-21 Thread Tvrtko Ursulin
From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of of access control for different PMUs, we start creating per-PMU perf_event_paranoid controls in sysfs. These work in equivalent fashion as the existing perf_event_paranoid sysctl, which now becomes the par

[PATCH] ceph: fix st_nlink stat for directories

2018-05-21 Thread Luis Henriques
Currently, calling stat on a cephfs directory returns 1 for st_nlink. This behaviour has recently changed in the fuse client, as some applications seem to expect this value to be either 0 (if it's unlinked) or 2 + number of subdirectories. This behaviour was changed in the fuse client with commit

Re: [PATCH v9 02/12] drivers: base: cacheinfo: setup DT cache properties early

2018-05-21 Thread Sudeep Holla
On 18/05/18 22:50, Andy Shevchenko wrote: > On Thu, May 17, 2018 at 6:47 PM, Sudeep Holla wrote: > >> Is below patch does what you were looking for ? > > Somewhat. > See below for some minors. > Thanks >> of_property_read_u64 searches for a property in a device node and read >> a 64-bit val

Re: [PATCH v6 12/17] mm: Set bit in memcg shrinker bitmap on first list_lru item apearance

2018-05-21 Thread Kirill Tkhai
On 20.05.2018 10:55, Vladimir Davydov wrote: > On Fri, May 18, 2018 at 11:43:42AM +0300, Kirill Tkhai wrote: >> Introduce set_shrinker_bit() function to set shrinker-related >> bit in memcg shrinker bitmap, and set the bit after the first >> item is added and in case of reparenting destroyed memcg'

Re: [PATCH v9 06/11] arm64: kexec_file: allow for loading Image-format kernel

2018-05-21 Thread AKASHI Takahiro
James, I haven't commented on this email. On Tue, May 15, 2018 at 06:14:37PM +0100, James Morse wrote: > Hi Akashi, > > On 15/05/18 06:13, AKASHI Takahiro wrote: > > On Fri, May 11, 2018 at 06:07:06PM +0100, James Morse wrote: > >> On 07/05/18 08:21, AKASHI Takahiro wrote: > >>> On Tue, May 01,

Re: [PATCH v2 1/2] clk: meson: mpll: add round closest support

2018-05-21 Thread Jerome Brunet
On Mon, 2018-05-21 at 11:18 +0200, Martin Blumenstingl wrote: > On Tue, May 15, 2018 at 6:36 PM, Jerome Brunet wrote: > > Allow the mpll driver to round the requested rate up if > > CLK_MESON_MPLL_ROUND_CLOSEST is set and it provides a rate closer to the > > requested rate. > > > > Signed-off-by:

Re: [PATCH v2 2/2] clk: meson: axg: let mpll clocks round closest

2018-05-21 Thread Jerome Brunet
On Tue, 2018-05-15 at 18:46 +0200, Neil Armstrong wrote: > On 15/05/2018 18:36, Jerome Brunet wrote: > > Let the mpll dividers achieve the closest rate possible, even if > > it means rounding the requested rate up. > > > > This is done to improve the accuracy of the rates provided by these > > pll

Re: [PATCH v3 1/4] rcu: Add comment documenting how rcu_seq_snap works

2018-05-21 Thread Joe Perches
On Sun, 2018-05-20 at 22:48 -0700, Joel Fernandes wrote: > Also I realize I need some better automated tools to catch these issues > (spelling errors in commit, diffs etc). Probably checkpatch.pl should > have such checks for these common things too. checkpatch already does typo checking using the

Re: [PATCH v3 4/5] ARM: perf: Allow the use of the PMUv3 driver on 32bit ARM

2018-05-21 Thread Vladimir Murzin
On 18/05/18 15:39, Marc Zyngier wrote: > +static inline int read_pmuver(void) > +{ > + /* PMUVers is not a signed field */ > + u32 dfr0 = read_cpuid_ext(CPUID_EXT_DFR0); > + return (dfr0 >> 24) & 0xf; > +} Should we rule out versions prior v3 here or in __armv8pmu_probe_pmu()? Thanks

[PATCH] ASoC: intel: skylake: fix spelling mistake: "Homogenous" -> "Homogeneous"

2018-05-21 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in snprintf literal string Signed-off-by: Colin Ian King --- sound/soc/intel/skylake/skl-debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/intel/skylake/skl-debug.c b/sound/soc/intel/skylake/skl-debug

[PATCH v6 1/5] drm/rockchip: add transfer function for cdn-dp

2018-05-21 Thread Lin Huang
From: Chris Zhong We may support training outside firmware, so we need support dpcd read/write to get the message or do some setting with display. Signed-off-by: Chris Zhong Signed-off-by: Lin Huang Reviewed-by: Sean Paul Reviewed-by: Enric Balletbo --- Changes in v2: - update patch followin

[PATCH v6 2/5] Documentation: dt-bindings: phy: add phy_config for Rockchip USB Type-C PHY

2018-05-21 Thread Lin Huang
If want to do training outside DP Firmware, need phy voltage swing and pre_emphasis value. Signed-off-by: Lin Huang --- Changes in v2: - None Changes in v3: - modify property description and add this property to Example Changes in v4: - None Changes in v5: - None Changes in v6: - change rockchip

[PATCH v6 3/5] soc: rockchip: split rockchip_typec_phy struct to separate header

2018-05-21 Thread Lin Huang
we may use rockchip_phy_typec struct in other driver, so split it to separate header. Signed-off-by: Lin Huang --- Changes in v2: - None Changes in v3: - None Changes in v4: - None Changes in v5: - None Changes in v6: - new patch here drivers/phy/rockchip/phy-rockchip-typec.c | 47 +

[PATCH v6 4/5] phy: rockchip-typec: support variable phy config value

2018-05-21 Thread Lin Huang
the phy config values used to fix in dp firmware, but some boards need change these values to do training and get the better eye diagram result. So support that in phy driver. Signed-off-by: Chris Zhong Signed-off-by: Lin Huang --- Changes in v2: - update patch following Enric suggest Changes in

[PATCH v6 5/5] drm/rockchip: support dp training outside dp firmware

2018-05-21 Thread Lin Huang
DP firmware uses fixed phy config values to do training, but some boards need to adjust these values to fit for their unique hardware design. So get phy config values from dts and use software link training instead of relying on firmware, if software training fail, keep firmware training as a fallb

Re: [PATCH v9 07/11] arm64: kexec_file: add crash dump support

2018-05-21 Thread AKASHI Takahiro
James, On Fri, May 18, 2018 at 05:00:55PM +0100, James Morse wrote: > Hi Akashi, > > On 18/05/18 11:39, AKASHI Takahiro wrote: > > On Tue, May 15, 2018 at 06:11:15PM +0100, James Morse wrote: > >> On 25/04/18 07:26, AKASHI Takahiro wrote: > >>> Enabling crash dump (kdump) includes > >>> * prepare

Re: [PATCH v3 4/5] ARM: perf: Allow the use of the PMUv3 driver on 32bit ARM

2018-05-21 Thread Marc Zyngier
On 21/05/18 10:34, Vladimir Murzin wrote: > On 18/05/18 15:39, Marc Zyngier wrote: >> +static inline int read_pmuver(void) >> +{ >> +/* PMUVers is not a signed field */ >> +u32 dfr0 = read_cpuid_ext(CPUID_EXT_DFR0); >> +return (dfr0 >> 24) & 0xf; >> +} > > Should we rule out versions p

Re: [PATCH v3 2/2] cpufreq: schedutil: Cleanup and document iowait boost

2018-05-21 Thread Viresh Kumar
On 21-05-18, 09:51, Patrick Bellasi wrote: > diff --git a/kernel/sched/cpufreq_schedutil.c > b/kernel/sched/cpufreq_schedutil.c > +static void sugov_iowait_boost(struct sugov_cpu *sg_cpu, u64 time, > +unsigned int flags) > +{ > + bool set_iowait_boost = flags & SCHE

Re: [PATCH v3 2/3] arm64: dts: renesas: draak: Describe CVBS input

2018-05-21 Thread jacopo mondi
Hi Laurent, On Fri, May 18, 2018 at 06:12:15PM +0300, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > On Friday, 18 May 2018 17:47:57 EEST Jacopo Mondi wrote: > > Describe CVBS video input through analog video decoder ADV7180 > > connected to video input interface VIN4. > > >

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-21 Thread Juri Lelli
On 21/05/18 10:29, Rafael J. Wysocki wrote: > On Mon, May 21, 2018 at 7:14 AM, Viresh Kumar wrote: > > On 18-05-18, 11:55, Joel Fernandes (Google.) wrote: > >> From: "Joel Fernandes (Google)" > >> > >> Currently there is a chance of a schedutil cpufreq update request to be > >> dropped if there i

[PATCH v10 RESEND 3/9] mfd: madera: Add common support for Cirrus Logic Madera codecs

2018-05-21 Thread Richard Fitzgerald
This adds the generic core support for Cirrus Logic "Madera" class codecs. These are complex audio codec SoCs with a variety of digital and analogue I/O, onboard audio processing and DSPs, and other features. These codecs are all based off a common set of hardware IP so can be supported by a core

[PATCH v10 RESEND 0/9] Add support for Cirrus Logic CS47L35/L85/L90/L91 codecs

2018-05-21 Thread Richard Fitzgerald
NOTE: Compared to older versions of this chain I have removed patches at the end of the chain that were being ignored until the earlier patches had been merged - an impossible circular dependency. There were too many moving targets to keep the whole chain up-to-date and so patches that were already

[PATCH v10 RESEND 6/9] mfd: madera: Register map tables for Cirrus Logic CS47L90/91

2018-05-21 Thread Richard Fitzgerald
Regmap configuration tables for Cirrus Logic CS47L90 and CS47L91 codecs. Signed-off-by: Nikesh Oswal Signed-off-by: Richard Fitzgerald Signed-off-by: Charles Keepax Acked-for-MFD-by: Lee Jones --- drivers/mfd/Kconfig |7 + drivers/mfd/Makefile |3 + drivers/mfd/cs47l9

[PATCH v10 RESEND 2/9] mfd: madera: Add DT bindings for Cirrus Logic Madera codecs

2018-05-21 Thread Richard Fitzgerald
Specification of the bindings for the parent MFD driver component of the Cirrus Logic Madera codec drivers. Note that although the interrupt controller and GPIO are child drivers their required bindings are trivial, mandatory, and exist within the parent MFD node so are documented here. Signed-of

[PATCH v10 RESEND 8/9] pinctrl: madera: Add driver for Cirrus Logic Madera codecs

2018-05-21 Thread Richard Fitzgerald
These codecs have a variable number of I/O lines each of which is individually selectable to a wide range of possible functions. The functionality is slightly different from the traditional muxed GPIO since most of the functions can be mapped to any pin (and even the same function to multiple pins

[PATCH v10 RESEND 4/9] mfd: madera: Register map tables for Cirrus Logic CS47L35

2018-05-21 Thread Richard Fitzgerald
Regmap configuration tables for Cirrus Logic CS47L35 codecs. Signed-off-by: Piotr Stankiewicz Signed-off-by: Richard Fitzgerald Signed-off-by: Charles Keepax Acked-for-MFD-by: Lee Jones --- drivers/mfd/Kconfig |7 + drivers/mfd/Makefile |3 + drivers/mfd/cs47l35-table

  1   2   3   4   5   6   7   8   9   10   >