[PATCH 6/9] soc: mediatek: pwrap: add pwrap_init pointer decided by the actual PMIC

2017-06-02 Thread sean.wang
From: Sean Wang pwrap initialization is highly associated with the PMIC types, so one additional function pointer in struct pwrap_slv_type is introduced for increasing flexibility and selecting the proper way when the slave device is detected. Signed-off-by: Chenglin Xu

[PATCH 9/9] soc: mediatek: pwrap: fixup warnings from coding style

2017-06-02 Thread sean.wang
From: Sean Wang fixup those warnings such as lines over 80 words and parenthesis alignment which would be complained by checkpatch.pl. Signed-off-by: Sean Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 25 - 1 file

Re: [PATCH v5 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-06-02 Thread Bjorn Andersson
On Thu 01 Jun 14:42 PDT 2017, Dwivedi, Avaneesh Kumar (avani) wrote: > Hi Bjorn, > > Thanks lot many for such a blazing fast response :) > > regarding your points. > > a- Do you mean caller's of q6v5_xfer_mem_ownership() should pass two > additional inputs i.e. *next_perm and *next_vmid >

[RESEND x2][PATCH v4] arm64: dts: hi6220: Add k3-dma and i2s/hdmi audio support

2017-06-02 Thread John Stultz
Add entry for k3-dma driver and i2s/hdmi audio devices. This enables HDMI audio output. Cc: Zhangfei Gao Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Wei Xu

[PATCH 1/2] ARM: dts: exynos: Use human-friendly symbols for interrupt flags in board sources

2017-06-02 Thread Krzysztof Kozlowski
Replace hard-coded values of interrupt flags with respective macros from header to increase code readability. Suggested-by: Marek Szyprowski Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos3250-monk.dts | 6 +++---

[PATCH 2/2] ARM: dts: exynos: Use human-friendly symbols for GIC interrupt properties

2017-06-02 Thread Krzysztof Kozlowski
Replace hard-coded values of type of GIC interrupt and its flags with respective macros from header to increase code readability. Suggested-by: Marek Szyprowski Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5.dtsi| 84

Re: [PATCH] net: davicom: dm9000: Avoid spinlock recursion during dm9000_timeout routine

2017-06-02 Thread David Miller
From: Liu Xiang Date: Wed, 31 May 2017 23:06:42 +0800 > On the DM9000B, dm9000_phy_write() is called after the main spinlock > is held, during the dm9000_timeout() routine. Spinlock recursion > occurs because the main spinlock is requested again in > dm9000_phy_write(). So

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

2017-06-02 Thread Serge E. Hallyn
Quoting Matt Brown (m...@nmatt.com): > On 6/2/17 12:57 PM, Serge E. Hallyn wrote: > > I'm not quite sure what you're asking for here. Let me offer a precise > > strawman design. I'm sure there are problems with it, it's just a starting > > point. > > > > system-wide whitelist (for now

Re: [PATCH] sched: Introduce scaled capacity awareness in enqueue

2017-06-02 Thread Rohit Jain
On 06/01/2017 05:37 AM, Peter Zijlstra wrote: On Thu, Jun 01, 2017 at 02:28:27PM +0200, Peter Zijlstra wrote: On Wed, May 31, 2017 at 03:19:46PM -0700, Rohit Jain wrote: 2) This scaled capacity is normalized and mapped into buckets. Why? And its not at all clear why you'd need that to

Re: [PATCH v2 06/18] xen/pvcalls: handle commands from the frontend

2017-06-02 Thread Stefano Stabellini
On Fri, 26 May 2017, Boris Ostrovsky wrote: > On 05/19/2017 07:22 PM, Stefano Stabellini wrote: > > + > > static void pvcalls_back_work(struct work_struct *work) > > { > > + struct pvcalls_back_priv *priv = container_of(work, > > + struct pvcalls_back_priv, register_work); > > +

Re: [PATCH] net: ethernet: stmmac: Fix altr_tse_pcs SGMII Initialization

2017-06-02 Thread David Miller
From: thor.tha...@linux.intel.com Date: Wed, 31 May 2017 14:28:47 -0500 > From: Thor Thayer > > Fix NETDEV WATCHDOG timeout on startup by adding missing register > writes that properly setup SGMII. > > Signed-off-by: Thor Thayer

Re: [PATCH v9 2/5] irqchip/aspeed-i2c-ic: Add I2C IRQ controller for Aspeed

2017-06-02 Thread Brendan Higgins
>> + i2c_ic->irq_domain = irq_domain_add_linear( >> + node, ASPEED_I2C_IC_NUM_BUS, >> + _i2c_ic_irq_domain_ops, NULL); > > nit: can you have at least one argument following the function name? > Even if checkpatch shouts out you? Makes no difference to

Re: [PATCH V1 04/15] spmi: pmic-arb: optimize table lookups

2017-06-02 Thread Stephen Boyd
On 06/01, kgu...@codeaurora.org wrote: > On 2017-05-31 07:14, Stephen Boyd wrote: > >On 05/30, Kiran Gunda wrote: > >>diff --git a/drivers/spmi/spmi-pmic-arb.c > >>b/drivers/spmi/spmi-pmic-arb.c > >>index 7201611..6320f1f 100644 > >>--- a/drivers/spmi/spmi-pmic-arb.c > >>+++

Re: [PATCH v2 07/18] xen/pvcalls: implement socket command

2017-06-02 Thread Stefano Stabellini
On Fri, 26 May 2017, Boris Ostrovsky wrote: > > static int pvcalls_back_socket(struct xenbus_device *dev, > > struct xen_pvcalls_request *req) > > { > > - return 0; > > + struct pvcalls_back_priv *priv; > > + int ret; > > + struct xen_pvcalls_response *rsp; > > + > > + priv

Re: [PATCH v9 5/5] i2c: aspeed: added slave support for Aspeed I2C driver

2017-06-02 Thread Brendan Higgins
On Fri, Jun 2, 2017 at 5:04 AM, Benjamin Herrenschmidt wrote: > On Fri, 2017-06-02 at 01:46 -0700, Brendan Higgins wrote: >> Added slave support for Aspeed I2C controller. Supports fourteen busses >> present in AST24XX and AST25XX BMC SoCs by Aspeed. > > (Not an issue

Re: [PATCH v2 11/11] ARC: [plat-eznps] Handle memory error as an exception

2017-06-02 Thread Vineet Gupta
On 05/27/2017 11:52 PM, Noam Camus wrote: From: Noam Camus This commit adds the configuration CONFIG_EZNPS_MEM_ERROR. If set, it will cause the kernel to handle user memory error as a machine check exception. It is required in order to align the NPS simulator memory error

Re: [PATCH v2 11/18] xen/pvcalls: implement accept command

2017-06-02 Thread Stefano Stabellini
On Fri, 26 May 2017, Boris Ostrovsky wrote: > > static void __pvcalls_back_accept(struct work_struct *work) > > { > > + struct sockpass_mapping *mappass = container_of( > > + work, struct sockpass_mapping, register_work); > > + struct sock_mapping *map; > > + struct

Re: [PATCH v4] add the option of fortified string.h functions

2017-06-02 Thread Daniel Micay
On Fri, 2017-06-02 at 14:07 -0700, Andrew Morton wrote: > On Fri, 26 May 2017 05:54:04 -0400 Daniel Micay > wrote: > > > This adds support for compiling with a rough equivalent to the glibc > > _FORTIFY_SOURCE=1 feature, providing compile-time and runtime buffer > >

Re: hexagon: Use raw_copy_to_user

2017-06-02 Thread Richard Kuo
On Fri, Jun 02, 2017 at 06:03:53AM -0700, Guenter Roeck wrote: > ping > > On Tue, May 02, 2017 at 08:52:48PM -0700, Guenter Roeck wrote: > > Commit ac4691fac8ad ("hexagon: switch to RAW_COPY_USER") replaced > > __copy_to_user_hexagon() with raw_copy_to_user(), but did not catch > > all

Re: [PATCH v4 0/3] USB Audio Gadget refactoring

2017-06-02 Thread Ruslan Bilovol
Hi, On Fri, Jun 2, 2017 at 12:42 PM, Felipe Balbi wrote: > > Hi, > > Ruslan Bilovol writes: >> I came to this patch series when wanted to do two things: >> - use UAC1 as virtual ALSA sound card on gadget side, >>just like UAC2 is used so it's

Re: [PATCH] selftests/ftrace: Add a testcase for many kprobe events

2017-06-02 Thread Shuah Khan
On 05/25/2017 10:44 PM, Masami Hiramatsu wrote: > Add a testcase to test kprobes via ftrace interface > with many concurrent kprobe events. > > This tries to add many kprobe events (up to 256) on > kernel functions. To avoid making ftrace-based > kprobes (kprobes on fentry), it skips first N

Re: [PATCH v2] selftests/vm: Fix test for virtual address range mapping for arm64

2017-06-02 Thread Shuah Khan
On 05/18/2017 06:52 AM, Michal Suchanek wrote: > Arm64 has 256TB address space so fix the test to pass on Arm as well. > > Also remove unneeded numaif header. > > Signed-off-by: Michal Suchanek Thanks. Applied to linux-kselftest next for 4.13-rc1 -- Shuah > --- > v2: > -

Re: [PATCH][net-next] rxrpc: remove redundant proc_remove call

2017-06-02 Thread David Howells
Colin King wrote: > From: Colin Ian King > > The proc_remove call is dead code as it occurs after a return and > hence can never be called. Remove it. > > Detected by CoverityScan, CID#1437743 ("Logically dead code") > > Signed-off-by:

Re: [PATCH 5/9] [media] s5p-jpeg: Add IOMMU support

2017-06-02 Thread Jacek Anaszewski
Cc Marek Szyprowski. Marek, could you share your opinion about this patch? On 06/02/2017 06:02 PM, Thierry Escande wrote: > From: Tony K Nadackal > > This patch adds support for IOMMU s5p-jpeg driver if the Exynos IOMMU > and ARM DMA IOMMU configurations are supported. The

Re: [PATCH] selftests: sync: Skip the test if kernel support is not found

2017-06-02 Thread Shuah Khan
On 05/31/2017 04:40 AM, Michael Ellerman wrote: > The "Sync framework" test doesn't work if the kernel has no support, > obviously. Rather than reporting a failure, check for the kernel support > by looking for /sys/kernel/debug/sync/sw_sync, and if not found skip the > test. > > Signed-off-by:

Re: [PATCH] rpmsg: rpmsg_core: fix null-ptr dereference for devices without ops

2017-06-02 Thread Suman Anna
Hi Henri, On 06/02/2017 06:35 AM, Henri Roosen wrote: > A device might not have an ops structure registered. This The rpmsg devices are registered from the respective backends, which are supposed to plug in their ops. What is the scenario where you think these ops might not be populated? We

[PATCH] sparc64: mm: fix copy_tsb to correctly copy huge page TSBs

2017-06-02 Thread Mike Kravetz
When a TSB grows beyond its current capacity, a new TSB is allocated and copy_tsb is called to copy entries from the old TSB to the new. A hash shift based on page size is used to calculate the index of an entry in the TSB. copy_tsb has hard coded PAGE_SHIFT in these calculations. However, for

[PATCH 07/11] blktrace: export cgroup info in trace

2017-06-02 Thread Shaohua Li
From: Shaohua Li Currently blktrace isn't cgroup aware. blktrace prints out task name of current context, but the task of current context isn't always in the cgroup where the BIO comes from. We can't use task name to find out IO cgroup. For example, Writeback BIOs always comes from

[PATCH 03/11] kernfs: add an API to get kernfs node from inode number

2017-06-02 Thread Shaohua Li
From: Shaohua Li Add an API to get kernfs node from inode number. We will need this to implement exportfs operations. To make the API lock free, kernfs node is freed in RCU context. And we depend on kernfs_node count/ino number to filter stale kernfs nodes. Signed-off-by: Shaohua

[PATCH 08/11] block: always attach cgroup info into bio

2017-06-02 Thread Shaohua Li
From: Shaohua Li blkcg_bio_issue_check() already gets blkcg for a BIO. bio_associate_blkcg() uses a percpu refcounter, so it's a very cheap operation. There is no point we don't attach the cgroup info into bio at blkcg_bio_issue_check. This also makes blktrace outputs correct cgroup

[PATCH 11/11] block: use standard blktrace API to output cgroup info for debug notes

2017-06-02 Thread Shaohua Li
From: Shaohua Li Currently cfq/bfq/blk-throttle output cgroup info in trace in their own way. Now we have standard blktrace API for this, so convert them to use it. Note, this changes the behavior a little bit. cgroup info isn't output by default, we only do this with 'blk_cgroup'

[PATCH 09/11] block: call __bio_free in bio_endio

2017-06-02 Thread Shaohua Li
From: Shaohua Li bio_free isn't a good place to free cgroup/integrity info. There are a lot of cases bio is allocated in special way (for example, in stack) and never gets called by bio_put hence bio_free, we are leaking memory. This patch moves the free to bio endio, which should

[PATCH 10/11] blktrace: add an option to allow displying cgroup path

2017-06-02 Thread Shaohua Li
From: Shaohua Li By default we output cgroup id in blktrace. This adds an option to display cgroup path. Since get cgroup path is a relativly heavy operation, we don't enable it by default. with the option enabled, blktrace will output something like this: dd-1353 [007] d..2

[PATCH 05/11] kernfs: add exportfs operations

2017-06-02 Thread Shaohua Li
From: Shaohua Li Now we have the facilities to implement exportfs operations. The idea is cgroup can export the fhandle info to userspace, then userspace uses fhandle to find the cgroup name. Another example is userspace can get fhandle for a cgroup and BPF uses the fhandle to

[PATCH 01/11] kernfs: implement i_generation

2017-06-02 Thread Shaohua Li
From: Shaohua Li Set i_generation for kernfs inode. This is required to implement exportfs operations. Note, the generation is 32-bit, so it's possible the generation wraps up and we find stale files. The possiblity is low, since fhandle matches both inode number and generation. In

Re: [RFC] usb-phy-generic: Add support to SMSC USB3315

2017-06-02 Thread Stephen Boyd
On 05/26, Fabien Lahoudere wrote: > Hello > > I modify ci_hrdc_imx_probe to bypass "data->phy = > devm_usb_get_phy_by_phandle(>dev, > "fsl,usbphy", 0);". Everything works as expected and call ci_ulpi_init. > > The problem is that in ci_ulpi_init, before calling "ci->ulpi = >

Re: [PATCH 7/9] [media] s5p-jpeg: Change sclk_jpeg to 166MHz for Exynos5250

2017-06-02 Thread Jacek Anaszewski
Cc Marek and Sylwester. On 06/02/2017 06:02 PM, Thierry Escande wrote: > From: henryhsu > > The default clock parent of jpeg on Exynos5250 is fin_pll, which is > 24MHz. We have to change the clock parent to CPLL, which is 333MHz, > and set sclk_jpeg to 166MHz. > >

ath9k - Division by zero in kernel (as well as firmware panic)

2017-06-02 Thread Nathan Royce
ODroid XU4 $ uname -a Linux computer 4.12.0-rc3-dirty #1 SMP Wed May 31 15:02:05 CDT 2017 armv7l GNU/Linux $ lsusb ... Bus 001 Device 002: ID 2109:2813 VIA Labs, Inc. Bus 001 Device 010: ID 0cf3:7015 Qualcomm Atheros Communications TP-Link TL-WN821N v3 / TL-WN822N v2 802.11n [Atheros

[PATCH] clk: sunxi-ng: Move all clock types to a library

2017-06-02 Thread Stephen Boyd
e> Signed-off-by: Stephen Boyd <sb...@codeaurora.org> --- Based on linux-next-20170602. drivers/clk/sunxi-ng/Kconfig | 117 -- drivers/clk/sunxi-ng/Makefile | 26 +- 2 files changed, 13 insertions(+), 130 deletions(-) diff --git a/drivers/

Re: [PATCH V3 1/3] clk: add clk_bulk_get accessories

2017-06-02 Thread Stephen Boyd
On 05/19, Dong Aisheng wrote: > These helper function allows drivers to get several clk consumers in > one operation. If any of the clk cannot be acquired then any clks > that were got will be put before returning to the caller. > > This can relieve the driver owners' life who needs to handle

[GIT PULL] Power management fixes for v4.12-rc4

2017-06-02 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.12-rc4 with top-most commit bb5710e72c217e5bbdf0969a2fd84f5f5ad7fc2b Merge branch 'pm-cpufreq' on top of commit 5ed02dbb497422bf225783f46e6eadd237d23d6b Linux 4.12-rc3 to receive

Re: [PATCH] clk: Re-evaluate clock rate on min/max update

2017-06-02 Thread Stephen Boyd
On 06/02, Peter De Schrijver wrote: > On Thu, Jun 01, 2017 at 02:12:51AM -0700, Stephen Boyd wrote: > > On 04/13, Peter De Schrijver wrote: > > > On Wed, Apr 12, 2017 at 09:46:05AM -0700, Stephen Boyd wrote: > > > > On 03/21, Peter De Schrijver wrote: > > > > > > No. But I do rely on the rate

Re: [PATCH] Documentation: clock: address more for clock-cells property

2017-06-02 Thread Stephen Boyd
On 06/01, Chunyan Zhang wrote: > The value of property 'clock-cells' is not determined only by the number of > clock outputs in one clock node, it is actually determined by whether the > clock output in this node can be referenced directly without index. If > the output clock has to be referenced

[GIT PULL] /dev/random bug fixes for 4.12

2017-06-02 Thread Theodore Ts'o
The following changes since commit 08332893e37af6ae779367e78e444f8f9571511d: Linux 4.12-rc2 (2017-05-21 19:30:23 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random.git tags/random_for_linus_stable for you to fetch changes up to

Re: [PATCH 4/9] [media] s5p-jpeg: Decode 4:1:1 chroma subsampling format

2017-06-02 Thread Jacek Anaszewski
Hi Thierry, On 06/02/2017 06:02 PM, Thierry Escande wrote: > From: Tony K Nadackal > > This patch adds support for decoding 4:1:1 chroma subsampling in the > jpeg header parsing function. > > Signed-off-by: Tony K Nadackal > Signed-off-by: Thierry

Re: [PATCH] rpmsg: virtio_rpmsg_bus: cleanup multiple assignment to ops

2017-06-02 Thread Suman Anna
On 06/02/2017 06:36 AM, Henri Roosen wrote: > Trivial cleanup: the .ops pointer is assigned twice. This patch removes the > first assignment. > > Signed-off-by: Henri Roosen Acked-by: Suman Anna > --- > drivers/rpmsg/virtio_rpmsg_bus.c | 3 --- > 1

[PATCH 00/11]blktrace: output cgroup info

2017-06-02 Thread Shaohua Li
From: Shaohua Li Hi, Currently blktrace isn't cgroup aware. blktrace prints out task name of current context, but the task of current context isn't always in the cgroup where the BIO comes from. We can't use task name to find out IO cgroup. For example, Writeback BIOs always comes

[PATCH 06/11] cgroup: export fhandle info for a cgroup

2017-06-02 Thread Shaohua Li
From: Shaohua Li Add an API to export cgroup fhandle info. We don't export a full 'struct file_handle', there are unrequired info. Sepcifically, cgroup is always a directory, so we don't need a 'FILEID_INO32_GEN_PARENT' type fhandle, we only need export the inode number and

Re: [PATCH 6/9] [media] s5p-jpeg: Add support for resolution change event

2017-06-02 Thread Jacek Anaszewski
Hi Thierry, On 06/02/2017 06:02 PM, Thierry Escande wrote: > From: henryhsu > > This patch adds support for resolution change event to notify clients so > they can prepare correct output buffer. When resolution change happened, > G_FMT for CAPTURE should return old

[PATCH 04/11] kernfs: don't set dentry->d_fsdata

2017-06-02 Thread Shaohua Li
From: Shaohua Li When working on adding exportfs operations in kernfs, I found it's hard to initialize dentry->d_fsdata in the exportfs operations. Looks there is no way to do it without race condition. Look at the kernfs code closely, there is no point to set dentry->d_fsdata.

[PATCH 02/11] kernfs: use idr instead of ida to manage inode number

2017-06-02 Thread Shaohua Li
From: Shaohua Li kernfs uses ida to manage inode number. The problem is we can't get kernfs_node from inode number with ida. Switching to use idr, next patch will add an API to get kernfs_node from inode number. Signed-off-by: Shaohua Li --- fs/kernfs/dir.c|

Re: [PATCH 03/11] kernfs: add an API to get kernfs node from inode number

2017-06-02 Thread Eduardo Valentin
On Fri, Jun 02, 2017 at 02:53:56PM -0700, Shaohua Li wrote: > From: Shaohua Li > > Add an API to get kernfs node from inode number. We will need this to > implement exportfs operations. > > To make the API lock free, kernfs node is freed in RCU context. And we > depend on

Re: [PATCH 9/9] [media] s5p-jpeg: Add support for multi-planar APIs

2017-06-02 Thread Jacek Anaszewski
Hi Thierry, What is the gain of introducing multiplanar API for this hardware? AFAIR all the HW implementations store the data in a single contiguous memory region and use suitable padding between planes. On 06/02/2017 06:02 PM, Thierry Escande wrote: > From: Ricky Liang >

Re: [PATCH v6 03/11] clk: bcm: Add clocks for Stingray SOC

2017-06-02 Thread Stephen Boyd
On 06/02, Anup Patel wrote: > diff --git a/drivers/clk/bcm/clk-sr.c b/drivers/clk/bcm/clk-sr.c > new file mode 100644 > index 000..342f702 > --- /dev/null > +++ b/drivers/clk/bcm/clk-sr.c > @@ -0,0 +1,320 @@ > + > +static const struct iproc_clk_ctrl lcpll_pcie_clk[] = { > +

Re: [linux-sunxi] [PATCH 1/2] ARM: sun8i: v3s: add device nodes for DE2 display pipeline

2017-06-02 Thread Maxime Ripard
On Mon, May 29, 2017 at 09:01:59PM +0800, icen...@aosc.io wrote: > 在 2017-05-29 16:59,Maxime Ripard 写道: > > On Thu, May 25, 2017 at 10:28:24PM +0800, Icenowy Zheng wrote: > > > + compatible = "allwinner,sun8i-v3s-de2-mixer"; > > > + reg =

Re: [linux-sunxi] Re: [RFC PATCH 07/11] drm: sun4i: add support for the TV encoder in H3 SoC

2017-06-02 Thread Maxime Ripard
On Thu, Jun 01, 2017 at 10:11:14PM +0800, icen...@aosc.io wrote: > 在 2017-06-01 02:43,Maxime Ripard 写道: > > On Wed, May 24, 2017 at 04:25:46PM +0800, Icenowy Zheng wrote: > > > > > > > > > 于 2017年5月24日 GMT+08:00 下午3:30:19, Maxime Ripard > > > 写到: > > > >On Tue,

Re: [PATCH v6 00/21] net-next: stmmac: add dwmac-sun8i ethernet driver

2017-06-02 Thread Maxime Ripard
Hi, On Fri, Jun 02, 2017 at 10:22:05AM -0400, David Miller wrote: > From: Maxime Ripard > Date: Fri, 2 Jun 2017 11:13:20 +0200 > > > On Fri, Jun 02, 2017 at 08:37:52AM +0200, Maxime Ripard wrote: > >> On Thu, Jun 01, 2017 at 02:58:19PM -0400, David Miller

[PATCH V4 0/2] load_balance() fixes for affinity

2017-06-02 Thread Jeffrey Hugo
We noticed in testing that affined workloads do not provide consistent performance under certain circumstances. To isolate the issue, we began testing with a representative CPU workload. In some cases the CPU workload results would vary by a large percentage from run to run. We used JTAG and

[PATCH V4 1/2] sched/fair: Fix load_balance() affinity redo path

2017-06-02 Thread Jeffrey Hugo
If load_balance() fails to migrate any tasks because all tasks were affined, load_balance() removes the source cpu from consideration and attempts to redo and balance among the new subset of cpus. There is a bug in this code path where the algorithm considers all active cpus in the system (minus

[PATCH V4 2/2] sched/fair: Remove group imbalance from calculate_imbalance()

2017-06-02 Thread Jeffrey Hugo
The group_imbalance path in calculate_imbalance() made sense when it was added back in 2007 with commit 908a7c1b9b80 ("sched: fix improper load balance across sched domain") because busiest->load_per_task factored into the amount of imbalance that was calculated. That is not the case today. The

Re: CLK_OF_DECLARE advice required

2017-06-02 Thread Stephen Boyd
On 06/01, Phil Elwell wrote: > On 01/06/2017 07:39, Stephen Boyd wrote: > > On 05/31, Phil Elwell wrote: > >> For my edification, can you pretend for a moment that the application was > >> a valid one and > >> answer any of my original questions?: > >> > >> 1. Should all system clock drivers use

[PATCH v2] brcmfmac: Fix glom_skb leak in brcmf_sdiod_recv_chain

2017-06-02 Thread Peter S. Housel
An earlier change to this function (3bdae810721b) fixed a leak in the case of an unsuccessful call to brcmf_sdiod_buffrw(). However, the glom_skb buffer, used for emulating a scattering read, is never used or referenced after its contents are copied into the destination buffers, and therefore

[PATCH] drivers: char: mem: Fix wraparound check to allow mappings up to the end

2017-06-02 Thread Julius Werner
A recent fix to /dev/mem prevents mappings from wrapping around the end of physical address space. However, the check was written in a way that also prevents a mapping reaching just up to the end of physical address space, which may be a valid use case (especially on 32-bit systems). This patch

Re: [PATCH V3 2/3] clk: add managed version of clk_bulk_get

2017-06-02 Thread Stephen Boyd
On 05/19, Dong Aisheng wrote: > This patch introduces the managed version of clk_bulk_get. > > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: Russell King > Cc: Geert Uytterhoeven > Cc: "Rafael J.

Re: [PATCH V3 0/3] clk: introduce clk_bulk_get accessories

2017-06-02 Thread Stephen Boyd
On 05/19, Dong Aisheng wrote: > These helper function allows drivers to get several clk consumers in > one operation. If any of the clk cannot be acquired then any clks > that were got will be put before returning to the caller. > I've merged the first two into a stable branch and merged to

Re: [PATCH] clk: meson-gxbb: Add const to some parent name arrays

2017-06-02 Thread Stephen Boyd
On 06/02, Stephen Boyd wrote: > These can be marked as const * const. > > Cc: Neil Armstrong > Cc: Jerome Brunet > Signed-off-by: Stephen Boyd > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of

Re: [PATCH] clk: bcm2835: Correct the prediv logic

2017-06-02 Thread Stephen Boyd
On 05/15, Eric Anholt wrote: > From: Phil Elwell > > If a clock has the prediv flag set, both the integer and fractional > parts must be scaled when calculating the resulting frequency. > > Signed-off-by: Phil Elwell > Signed-off-by: Eric Anholt

[GIT PULL] ACPI fixes for v4.12-rc4

2017-06-02 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.12-rc4 with top-most commit 60319130254084b337e02439d3b4ec301b6328bb Merge branches 'acpi-button', 'acpica' and 'acpi-sysfs' on top of commit

[PATCH] Staging: ccree: ssi_aead.h: Fixed a pointer declaration error.

2017-06-02 Thread srishti sharma
Fixed a pointer declaration error , the dereferencing operator was misplaced. Signed-off-by: srishti sharma --- drivers/staging/ccree/ssi_aead.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.h

Re: [PATCH v4 2/2] clk: bcm2835: Minimise clock jitter for PCM clock

2017-06-02 Thread Stephen Boyd
On 06/01, Phil Elwell wrote: > Fractional clock dividers generate accurate average frequencies but > with jitter, particularly when the integer divisor is small. > > Introduce a new metric of clock accuracy to penalise clocks with a good > average but worse jitter compared to clocks with an

Re: hexagon: Use raw_copy_to_user

2017-06-02 Thread Guenter Roeck
Hi Richard, On Fri, Jun 02, 2017 at 04:33:04PM -0500, Richard Kuo wrote: > On Fri, Jun 02, 2017 at 06:03:53AM -0700, Guenter Roeck wrote: > > ping > > > > On Tue, May 02, 2017 at 08:52:48PM -0700, Guenter Roeck wrote: > > > Commit ac4691fac8ad ("hexagon: switch to RAW_COPY_USER") replaced >

Re: [PATCH v4 1/2] clk: bcm2835: Limit PCM clock to OSC and PLLD_PER

2017-06-02 Thread Stephen Boyd
On 06/01, Phil Elwell wrote: > Restrict clock sources for the PCM peripheral to the oscillator and > PLLD_PER because other source may have varying rates or be switched off. > Prevent other sources from being selected by replacing their names in > the list of potential parents with dummy entries

Re: [PATCH v3 3/5] clk: qcom: ipq8074: Add Global Clock Controller support

2017-06-02 Thread Stephen Boyd
On 06/01, Varadarajan Narayanan wrote: > From: Abhishek Sahu > > This patch adds support for the global clock controller found on > the IPQ8074 based devices. This includes UART, I2C, SPI etc. > > Signed-off-by: Abhishek Sahu > Signed-off-by:

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

2017-06-02 Thread Matt Brown
On 6/2/17 2:18 PM, Serge E. Hallyn wrote: > Quoting Matt Brown (m...@nmatt.com): >> On 6/2/17 12:57 PM, Serge E. Hallyn wrote: >>> I'm not quite sure what you're asking for here. Let me offer a precise >>> strawman design. I'm sure there are problems with it, it's just a starting >>> point. >>>

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

2017-06-02 Thread Matt Brown
On 6/2/17 3:25 PM, Kees Cook wrote: > On Fri, Jun 2, 2017 at 12:22 PM, Matt Brown wrote: >> On 6/2/17 2:18 PM, Serge E. Hallyn wrote: >>> Quoting Matt Brown (m...@nmatt.com): On 6/2/17 12:57 PM, Serge E. Hallyn wrote: > I'm not quite sure what you're asking for here. Let

Re: [kernel-hardening] [PATCH 1/6] binfmt_elf: document load_bias a little bit

2017-06-02 Thread Kees Cook
On Fri, Jun 2, 2017 at 8:20 AM, wrote: > From: Rik van Riel > > After me and another unnamed developer got confused by the subtraction > of vaddr in this branch of the code, followed by adding vaddr back in > a little bit later, for the third time, maybe it is

[PATCH v3 11/18] xen/pvcalls: implement accept command

2017-06-02 Thread Stefano Stabellini
Implement the accept command by calling inet_accept. To avoid blocking in the kernel, call inet_accept(O_NONBLOCK) from a workqueue, which get scheduled on sk_data_ready (for a passive socket, it means that there are connections to accept). Use the reqcopy field to store the request. Accept the

[PATCH v3 08/18] xen/pvcalls: implement connect command

2017-06-02 Thread Stefano Stabellini
Allocate a socket. Keep track of socket <-> ring mappings with a new data structure, called sock_mapping. Implement the connect command by calling inet_stream_connect, and mapping the new indexes page and data ring. Allocate a workqueue and a work_struct, called ioworker, to perform reads and

[PATCH v3 17/18] xen/pvcalls: implement write

2017-06-02 Thread Stefano Stabellini
When the other end notifies us that there is data to be written (pvcalls_back_conn_event), increment the io and write counters, and schedule the ioworker. Implement the write function called by ioworker by reading the data from the data ring, writing it to the socket by calling inet_sendmsg. Set

[PATCH v3 16/18] xen/pvcalls: implement read

2017-06-02 Thread Stefano Stabellini
When an active socket has data available, increment the io and read counters, and schedule the ioworker. Implement the read function by reading from the socket, writing the data to the data ring. Set in_error on error. Signed-off-by: Stefano Stabellini CC:

[PATCH v3 18/18] xen: introduce a Kconfig option to enable the pvcalls backend

2017-06-02 Thread Stefano Stabellini
Also add pvcalls-back to the Makefile. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/Kconfig | 12 drivers/xen/Makefile | 1 + 2 files changed, 13 insertions(+) diff --git a/drivers/xen/Kconfig

[PATCH v3 07/18] xen/pvcalls: implement socket command

2017-06-02 Thread Stefano Stabellini
Just reply with success to the other end for now. Delay the allocation of the actual socket to bind and/or connect. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/pvcalls-back.c | 29 - 1 file

[PATCH v3 06/18] xen/pvcalls: handle commands from the frontend

2017-06-02 Thread Stefano Stabellini
When the other end notifies us that there are commands to be read (pvcalls_back_event), wake up the backend thread to parse the command. The command ring works like most other Xen rings, so use the usual ring macros to read and write to it. The functions implementing the commands are empty stubs

[PATCH v3 10/18] xen/pvcalls: implement listen command

2017-06-02 Thread Stefano Stabellini
Call inet_listen to implement the listen command. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/pvcalls-back.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git

[PATCH v3 01/18] xen: introduce the pvcalls interface header

2017-06-02 Thread Stefano Stabellini
Introduce the C header file which defines the PV Calls interface. It is imported from xen/include/public/io/pvcalls.h. Signed-off-by: Stefano Stabellini CC: konrad.w...@oracle.com CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- include/xen/interface/io/pvcalls.h |

[PATCH v3 09/18] xen/pvcalls: implement bind command

2017-06-02 Thread Stefano Stabellini
Allocate a socket. Track the allocated passive sockets with a new data structure named sockpass_mapping. It contains an unbound workqueue to schedule delayed work for the accept and poll commands. It also has a reqcopy field to be used to store a copy of a request for delayed work. Reads/writes to

[PATCH v3 05/18] xen/pvcalls: connect to a frontend

2017-06-02 Thread Stefano Stabellini
Introduce a per-frontend data structure named pvcalls_fedata. It contains pointers to the command ring, its event channel, a list of active sockets and a tree of passive sockets (passing sockets need to be looked up from the id on listen, accept and poll commands, while active sockets only on

[PATCH v3 03/18] xen/pvcalls: initialize the module and register the xenbus backend

2017-06-02 Thread Stefano Stabellini
Keep a list of connected frontends. Use a semaphore to protect list accesses. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/pvcalls-back.c | 22

[PATCH v3 04/18] xen/pvcalls: xenbus state handling

2017-06-02 Thread Stefano Stabellini
Introduce the code to handle xenbus state changes. Implement the probe function for the pvcalls backend. Write the supported versions, max-page-order and function-calls nodes to xenstore, as required by the protocol. Introduce stub functions for disconnecting/connecting to a frontend.

Re: [PATCH v11 4/6] ARM: dts: imx6q-evi: support altera-ps-spi

2017-06-02 Thread stillcompiling
On Friday, June 2, 2017 6:30:12 PM PDT Andreas Färber wrote: > Hi, > > Am 25.05.2017 um 19:29 schrieb Joshua Clayton: > > Add support for Altera V FPGA connected to an spi port > > Did you mean "Altera Cyclone V"? I meant to shorten it from Altera Cyclone V to Altera FPGA. Didn't quite make it.

Re: [PATCH 1/2] perf report: ensure the perf DSO mapping matches what libdw sees

2017-06-02 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 02, 2017 at 06:21:44PM +0200, Milian Wolff escreveu: > On Freitag, 2. Juni 2017 17:23:41 CEST Arnaldo Carvalho de Melo wrote: > > Looks ok, having both implementations matching and the callchains making > > sense for your workloads is a good way to verify the sanity, thanks. > > I

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

2017-06-02 Thread Alan Cox
> Can't we also have a sysctl that toggles if CAP_SYS_ADMIN is involved in > this whitelist check? Otherwise someone might leave things out of the > whitelist just because they want to use those ioctls as a privileged > process. Also restricting a privileged user from ioctls with this > whitelist

Re: [PATCH v3 0/2] ARM: dts: imx7: add NAND support

2017-06-02 Thread Han Xu
On 06/01/2017 08:48 PM, Stefan Agner wrote: > Hi Han, > > On 2017-06-01 14:14, Han Xu wrote: >> On 06/01/2017 02:20 PM, Stefan Agner wrote: >>> This are the missing device tree parts to add NAND support for i.MX 7. >>> See previous patchset: >>>

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

2017-06-02 Thread Nick Kralevich
On Fri, Jun 2, 2017 at 1:05 PM, Alan Cox wrote: > So I'd say it's all the generic tty ioctls except TIOCSTI and TIOCSETD > but it would be good to see what Android is going with and why. Android limits tty ioctls to the following whitelist: TIOCOUTQ FIOCLEX

[PATCH 5/6] perf, tools: Support persistent memory encoding

2017-06-02 Thread Andi Kleen
From: Andi Kleen Teach the perf user tools to report the recently added persistent memory encoding for sample data sources. Signed-off-by: Andi Kleen --- tools/include/uapi/linux/perf_event.h | 3 ++- tools/perf/util/mem-events.c | 1 + 2

[PATCH 3/6] perf, tools: Add support for printing new mem_info encodings

2017-06-02 Thread Andi Kleen
From: Andi Kleen Add decoding for the new lvlx and snoopx field meminfo field added earlier to the kernel so that "perf mem report" and other tools can print it properly. Signed-off-by: Andi Kleen --- tools/include/uapi/linux/perf_event.h | 19

[PATCH 2/6] perf/x86: Fix data source decoding for Skylake

2017-06-02 Thread Andi Kleen
From: Andi Kleen Skylake changed the encoding of the PEBS data source field. Some combinations are not available anymore, but some new cases e.g. for L4 cache hit are added. Fix up the conversion table for Skylake, similar as had been done for Nehalem. To properly

[PATCH 6/6] perf, tools: Add test cases for new data source encoding

2017-06-02 Thread Andi Kleen
From: Andi Kleen Add some simple tests to perf test to test data source printing. Signed-off-by: Andi Kleen --- tools/perf/tests/Build | 1 + tools/perf/tests/builtin-test.c | 4 tools/perf/tests/mem.c | 42

[PATCH 4/6] perf/x86: Add support for PEBS sampling persistent RAM on Skylake

2017-06-02 Thread Andi Kleen
From: Andi Kleen On Skylake server the L4 encoding in the PEBS data source actually means persistent memory. Add a new perf encoding for this case, and report it on Skylake Server. Signed-off-by: Andi Kleen --- arch/x86/events/intel/core.c| 3

[PATCH 1/6] perf/x86: Move Nehalem PEBS code to flag

2017-06-02 Thread Andi Kleen
From: Andi Kleen Minor cleanup: use an explicit x86_pmu flag to handle the missing Lock / TLB information on Nehalem, instead of always checking the model number for each PEBS sample. Signed-off-by: Andi Kleen --- arch/x86/events/intel/core.c | 1 +

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