Re: [greybus-dev] [PATCH] staging: greybus: mark PM functions as __maybe_unused

2017-05-18 Thread Arnd Bergmann
On Fri, May 19, 2017 at 5:40 AM, Viresh Kumar wrote: > On 18-05-17, 16:51, Arnd Bergmann wrote: >> I find that a lot of users get the #ifdef wrong, either using the wrong >> macro (CONFIG_PM vs CONFIG_PM_SLEEP) or not using the right >> set of functions (e.g. calling a function only from the suspe

[PATCH v2 3/9] crypto: ixp4xx - Use IPAD/OPAD constant

2017-05-18 Thread Corentin Labbe
This patch simply replace all occurrence of HMAC IPAD/OPAD value by their define. Signed-off-by: Corentin Labbe --- drivers/crypto/ixp4xx_crypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index 771dd26c7

[PATCH v2 4/9] crypto: marvell - Use IPAD/OPAD constant

2017-05-18 Thread Corentin Labbe
This patch simply replace all occurrence of HMAC IPAD/OPAD value by their define. Signed-off-by: Corentin Labbe --- drivers/crypto/marvell/hash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/marvell/hash.c b/drivers/crypto/marvell/hash.c index 77c0fb936

[PATCH v2 0/9] crypto: add HMAC IPAD/OPAD constant

2017-05-18 Thread Corentin Labbe
Hello Many HMAC users directly use directly 0x36/0x5c values. It's better with crypto to use a name instead of directly some crypto constant. Changes since v1: - Moved constant to include/crypto/hmac.h - Added to includes Corentin Labbe (9): crypto: add hmac IPAD/OPAD constant crypto: brcm

[PATCH v2 9/9] crypto: ccp - Use IPAD/OPAD constant

2017-05-18 Thread Corentin Labbe
This patch simply replace all occurrence of HMAC IPAD/OPAD value by their define. Signed-off-by: Corentin Labbe --- drivers/crypto/ccp/ccp-crypto-sha.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/ccp/ccp-crypto-sha.c b/drivers/crypto/ccp/ccp-crypto-sh

[PATCH v2 5/9] crypto: mv_cesa - Use IPAD/OPAD constant

2017-05-18 Thread Corentin Labbe
This patch simply replace all occurrence of HMAC IPAD/OPAD value by their define. Signed-off-by: Corentin Labbe --- drivers/crypto/mv_cesa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c index 451fa18c1c7b..bf25f415ee

[PATCH v2 6/9] crypto: omap-sham - Use IPAD/OPAD constant

2017-05-18 Thread Corentin Labbe
This patch simply replace all occurrence of HMAC IPAD/OPAD value by their define. Signed-off-by: Corentin Labbe --- drivers/crypto/omap-sham.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index d0b16e5e4ee5..1864

[PATCH v2 7/9] crypto: qat - Use IPAD/OPAD constant

2017-05-18 Thread Corentin Labbe
This patch simply replace all occurrence of HMAC IPAD/OPAD value by their define. Signed-off-by: Corentin Labbe --- drivers/crypto/qat/qat_common/qat_algs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/qat/qat_common/qat_algs.c b/drivers/crypto/qat/qat

Re: [PATCH v3 0/3] Add support for the S6E3HF2 panel on TM2e board

2017-05-18 Thread Hoegeun Kwon
Dear Thierry, Could you check these patches? I think this patches have accumulated enough dust. If you have a another opinion, please tell me. Best regards, Hoegeun On 04/18/2017 05:40 PM, Hoegeun Kwon wrote: Hi all, The purpose of this patch is add support for s6e3hf2 AMOLED panel on the TM2

[PATCH v2 8/9] crypto: mediatek - Use IPAD/OPAD constant

2017-05-18 Thread Corentin Labbe
This patch simply replace all occurrence of HMAC IPAD/OPAD value by their define. Signed-off-by: Corentin Labbe --- drivers/crypto/mediatek/mtk-sha.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/mediatek/mtk-sha.c b/drivers/crypto/mediatek/mtk-sha.c in

[PATCH v2 2/9] crypto: brcm - Use IPAD/OPAD constant

2017-05-18 Thread Corentin Labbe
This patch simply replace all occurrence of HMAC IPAD/OPAD value by their define. Signed-off-by: Corentin Labbe --- drivers/crypto/bcm/cipher.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/bcm/cipher.c b/drivers/crypto/bcm/cipher.c index cc0d5b98006e..6

[PATCH] mount.2: revise description of MS_REMOUNT | MS_BIND

2017-05-18 Thread NeilBrown
MS_REMOUNT|MS_BIND affect all per-mount-point flag. MS_READONLY is only special because it, uniquely, is both a per-mount-point flag *and* a per-filesystem flag. So the sections of per-mount-point flags and MS_REMOUNT can usefully be clarified. Signed-off-by: NeilBrown --- man2/mount.2 | 23 +

Re: [PATCH v2 00/10] rt2x00: rt2x00: improve calling conventions for register accessors

2017-05-18 Thread Arnd Bergmann
On Fri, May 19, 2017 at 8:44 AM, Tom Psyborg wrote: > warning: 'rt2800_bbp_read' used but never defined > static u8 rt2800_bbp_read(struct rt2x00_dev *rt2x00dev, >^ > /home/ubuntu/Music/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/compat-wireless-2016-05-12/dri

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

2017-05-18 Thread Corentin Labbe
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 in a new include file "crypto/hmac.h" and use them in crypto/hmac.c Signed-off-by: Corentin Labbe

Re: [PATCH v2 00/10] rt2x00: rt2x00: improve calling conventions for register accessors

2017-05-18 Thread Arnd Bergmann
On Fri, May 19, 2017 at 7:18 AM, Kalle Valo wrote: > Arnd Bergmann writes: > >> I've managed to split up my long patch into a series of reasonble >> steps now. >> >> The first two are required to fix a regression from commit 41977e86c984 >> ("rt2x00: add support for MT7620"), the rest are just cl

Re: [PATCH v2 2/2] sched: Make iowait_boost optional in schedutil

2017-05-18 Thread Viresh Kumar
On 18-05-17, 23:23, Joel Fernandes wrote: > We should apply the iowait boost only if cpufreq policy has iowait boost > enabled. Also make it a schedutil configuration from sysfs so it can be turned > on/off if needed (by default initialize it to the policy value). > > For systems that don't need/w

Re: [PATCH] nvme: Change our APST table to be no more aggressive than Intel RSTe

2017-05-18 Thread Christoph Hellwig
On Thu, May 18, 2017 at 06:13:55PM -0700, Andy Lutomirski wrote: > a) Leave the Dell quirk in place until someone from Dell or Samsung > figures out what's actually going on. Add a blanket quirk turning off > the deepest sleep state on all Intel devices [1] at least until > someone from Intel figu

Re: [PATCH] mmc: sdhci-iproc: suppress spurious interrupt with Multiblock read

2017-05-18 Thread Adrian Hunter
On 18/05/17 19:57, Srinath Mannam wrote: > The stingray SDHCI hardware supports ACMD12 and automatically > issues after multi block transfer completed. > > If ACMD12 in SDHCI is disabled, spurious tx done interrupts are seen > on multi block read command with below error message: > > Got data int

Re: [PATCH net-next V5 0/9] vhost_net rx batch dequeuing

2017-05-18 Thread Jason Wang
On 2017年05月18日 04:59, Michael S. Tsirkin wrote: On Wed, May 17, 2017 at 12:14:36PM +0800, Jason Wang wrote: This series tries to implement rx batching for vhost-net. This is done by batching the dequeuing from skb_array which was exported by underlayer socket and pass the sbk back through msg_

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

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

[PATCH v2 1/2] cpufreq: Make iowait boost a policy option

2017-05-18 Thread Joel Fernandes
Make iowait boost a cpufreq policy option and enable it for intel_pstate cpufreq driver. Governors like schedutil can use it to determine if boosting for tasks that wake up with p->in_iowait set is needed. Cc: Srinivas Pandruvada Cc: Len Brown Cc: Rafael J. Wysocki Cc: Viresh Kumar Cc: Ingo Mo

[PATCH v2 0/2] Make iowait_boost optional and default to policy

2017-05-18 Thread Joel Fernandes
iowait_boost is causing power regression on our arm64 SoC. Really going to max frequency is bad for power on mobile devices and not wise. These patches make it optional and default to what the policy suggests coming from the cpufreq driver as input to the governor. Here are some power numbers coll

[PATCH v2 2/2] sched: Make iowait_boost optional in schedutil

2017-05-18 Thread Joel Fernandes
We should apply the iowait boost only if cpufreq policy has iowait boost enabled. Also make it a schedutil configuration from sysfs so it can be turned on/off if needed (by default initialize it to the policy value). For systems that don't need/want it enabled, such as those on arm64 based mobile

Re: Use case for TASKS_RCU

2017-05-18 Thread Ingo Molnar
* Paul E. McKenney wrote: > On Tue, May 16, 2017 at 08:22:33AM +0200, Ingo Molnar wrote: > > > > * Paul E. McKenney wrote: > > > > > Hello! > > > > > > The question of the use case for TASKS_RCU came up, and here is my > > > understanding. Steve will not be shy about correcting any misconce

Re: [PATCH v5 4/5] arm64: dts: exynos: Remove the OF graph from DSI node

2017-05-18 Thread Hoegeun Kwon
On 05/16/2017 01:48 AM, Krzysztof Kozlowski wrote: On Wed, Mar 08, 2017 at 01:54:11PM +0900, Hoegeun Kwon wrote: The OF graph is not needed because the panel is a child of dsi. Remove the ports node in DSI node. Signed-off-by: Hoegeun Kwon Reviewed-by: Andrzej Hajda Reviewed-by: Andi Shyti -

[lkp-robot] [waitid()] 75f64d68f9: Kernel_panic-not_syncing:Attempted_to_kill_init!exitcode=

2017-05-18 Thread kernel test robot
FYI, we noticed the following commit: commit: 75f64d68f9816a1c244b8685f056389b24d97e98 ("waitid(): switch copyout of siginfo to unsafe_put_user()") url: https://github.com/0day-ci/linux/commits/Al-Viro/move-compat-wait4-and-waitid-next-to-native-variants/20170516-084127 in testcase: boot on

Re: Make BCMA a menuconfig to ease disabling it all

2017-05-18 Thread Kalle Valo
Vincent Legoll wrote: > No need to get into the submenu to disable all BCMA-related config entries > > Signed-off-by: Vincent Legoll I would like to get an ack from someone before I'll apply this. Patch set to Deferred. -- https://patchwork.kernel.org/patch/9683685/ https://wireless.wiki.ke

Re: [01/11] mwifiex: fixup error cases in mwifiex_add_virtual_intf()

2017-05-18 Thread Kalle Valo
Brian Norris wrote: > If we fail to add an interface in mwifiex_add_virtual_intf(), we might > hit a BUG_ON() in the networking code, because we didn't tear things > down properly. Among the problems: > > (a) when failing to allocate workqueues, we fail to unregister the > netdev before cal

Re: [v2] mwifiex: pcie: de-duplicate buffer allocation code

2017-05-18 Thread Kalle Valo
Brian Norris wrote: > This code was duplicated as part of the PCIe FLR code added to this > driver. Let's de-duplicate it to: > > * make things easier to read (mwifiex_pcie_free_buffers() now has a >corresponding mwifiex_pcie_alloc_buffers()) > * reduce likelihood of bugs > * make error lo

Re: [PATCH] powerpc/sequoia: fix NAND partitions not to overlap

2017-05-18 Thread Michael Ellerman
Pavel Machek writes: > On Wed 2017-05-17 14:37:17, Andrew Morton wrote: >> On Wed, 17 May 2017 14:06:13 +0200 Pavel Machek wrote: >> >> > On Sun 2017-04-02 12:05:36, Pavel Machek wrote: >> > > Fix overlapping NAND partitions. >> > > >> > > Signed-off-by: Pavel Machek >> > >> > Ping? Two part

Re: [REGRESSION] Failed network caused by: xhci: switch to pci_alloc_irq_vectors

2017-05-18 Thread Greg Kroah-Hartman
On Thu, May 18, 2017 at 11:42:34PM -0400, Steven Rostedt wrote: > > One of my the configs I use to test ftrace with (configs that have > caused failures in the past), has lots of irq issues and fails to > initialize the network of my box. I bisected the problem down to a > single commit, and when

Re: Virtually Mapped Stacks: Do not disable interrupts

2017-05-18 Thread Andy Lutomirski
On Wed, May 17, 2017 at 8:58 AM, Christoph Lameter wrote: > The reason to disable interrupts seems to be to avoid switching > to a different processor while handling per cpu data using > individual loads and stores. If we use per cpu RMV primitives > we will not have to disable interrupts. I like

Re: [PATCH 4.11 000/114] 4.11.2-stable review

2017-05-18 Thread Greg Kroah-Hartman
On Thu, May 18, 2017 at 06:10:07PM -0700, Guenter Roeck wrote: > On 05/18/2017 03:45 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.11.2 release. > > There are 114 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH 10/30] kobject.txt: standardize document format

2017-05-18 Thread Greg Kroah-Hartman
On Thu, May 18, 2017 at 10:24:02PM -0300, Mauro Carvalho Chehab wrote: > Each text file under Documentation follows a different > format. Some doesn't even have titles! > > Change its representation to follow the adopted standard, > using ReST markups for it to be parseable by Sphinx: > > - Add m

Re: [uwb-i1480] question about value overwrite

2017-05-18 Thread Greg KH
On Thu, May 18, 2017 at 06:00:06PM -0500, Gustavo A. R. Silva wrote: > > Hello everybody, > > While looking into Coverity ID 1226913 I ran into the following piece of > code at drivers/uwb/i1480/dfu/phy.c:99: > > 99static > 100int i1480_mpi_read(struct i1480 *i1480, u8 *data, u16 srcaddr, size_

Re: [PATCH v2 00/10] rt2x00: rt2x00: improve calling conventions for register accessors

2017-05-18 Thread Kalle Valo
Arnd Bergmann writes: > I've managed to split up my long patch into a series of reasonble > steps now. > > The first two are required to fix a regression from commit 41977e86c984 > ("rt2x00: add support for MT7620"), the rest are just cleanups to > have a consistent state across all the register

Re: [PATCH 2/8 v2] clocksource/drivers/fttmr010: Merge FTTMR010 DT bindings

2017-05-18 Thread Joel Stanley
On Fri, May 19, 2017 at 4:16 AM, Linus Walleij wrote: > This merges the Moxa and FTTMR010 device tree bindings into the > Faraday binding document to avoid confusion. > > The FTTMR010 is the IP block used by these SoCs, in vanilla > or modified variant. > > The Aspeed variant is modified such that

Re: [PATCH 7/8 v2] clocksource/drivers/fttmr010: Merge Moxa into FTTMR010

2017-05-18 Thread Joel Stanley
On Fri, May 19, 2017 at 4:17 AM, Linus Walleij wrote: > This merges the Moxa Art timer driver into the Faraday FTTMR010 > driver and replaces all Kconfig symbols to use the Faraday > driver instead. We are now so similar that the drivers can > be merged by just adding a few lines to the Faraday ti

linux-next: Tree for May 19

2017-05-18 Thread Stephen Rothwell
Hi all, Changes since 20170518: The netfilter tree still had its build failure for which I applied a supplied fix patch. The drm-intel tree gained a conflict against the drm tree. Non-merge commits (relative to Linus' tree): 1926 2098 files changed, 66645 insertions(+), 43483 dele

Re: [PATCH 1/2] cpufreq: Make iowait boost a policy option

2017-05-18 Thread Joel Fernandes
On Thu, May 18, 2017 at 9:17 PM, Viresh Kumar wrote: > On Fri, May 19, 2017 at 12:00 AM, Joel Fernandes wrote: >> Make iowait boost a cpufreq policy option and enable it for intel_pstate >> cpufreq driver. Governors like schedutil can use it to determine if >> boosting for tasks that wake up with

Re: [PATCH 2/2] sched: Use iowait boost policy option in schedutil

2017-05-18 Thread Joel Fernandes
On Thu, May 18, 2017 at 9:39 PM, Viresh Kumar wrote: [..] >> diff --git a/kernel/sched/cpufreq_schedutil.c >> b/kernel/sched/cpufreq_schedutil.c >> index 76877a62b5fa..6915925bc947 100644 >> --- a/kernel/sched/cpufreq_schedutil.c >> +++ b/kernel/sched/cpufreq_schedutil.c >> @@ -24,6 +24,7 @@ >>

Re: [PATCH 2/2] sched: Use iowait boost policy option in schedutil

2017-05-18 Thread Joel Fernandes
On Thu, May 18, 2017 at 9:39 PM, Viresh Kumar wrote: > On Fri, May 19, 2017 at 12:00 AM, Joel Fernandes wrote: >> If cpufreq policy has iowait boost enabled, use it. Also make it a schedutil >> configuration from sysfs so it can be turned on/off if needed (by default use >> the policy value). > >

Re: [PATCH v6 2/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-05-18 Thread Matt Brown
On 5/18/17 9:31 AM, Greg KH wrote: > On Fri, May 05, 2017 at 07:20:18PM -0400, Matt Brown wrote: >> This introduces the tiocsti_restrict sysctl, whose default is controlled via >> CONFIG_SECURITY_TIOCSTI_RESTRICT. When activated, this control restricts >> all TIOCSTI ioctl calls from non CAP_SYS_AD

linux-next: build warning after merge of the akpm-current tree

2017-05-18 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: mm/vmstat.c: In function 'pagetypeinfo_showblockcount_print': mm/vmstat.c:1230:8: warning: 'page' may be used uninitialized in this function [-Wmaybe-uninitialized] if (!me

Re: [PATCH 2/2] sched: Use iowait boost policy option in schedutil

2017-05-18 Thread Viresh Kumar
On Fri, May 19, 2017 at 12:00 AM, Joel Fernandes wrote: > If cpufreq policy has iowait boost enabled, use it. Also make it a schedutil > configuration from sysfs so it can be turned on/off if needed (by default use > the policy value). As I understand it, you want to make iowait boost optional. I

Re: [PATCH v2] printk: Use the main logbuf in NMI when logbuf_lock is available

2017-05-18 Thread Sergey Senozhatsky
On (05/19/17 11:58), Sergey Senozhatsky wrote: > > void printk_nmi_exit(void) > > { > > - this_cpu_and(printk_context, ~PRINTK_NMI_CONTEXT_MASK); > > + this_cpu_and(printk_context, > > +~(PRINTK_NMI_CONTEXT_MASK || > > + PRINTK_NMI_DEFERRED_CONTEXT_MASK)); > >

[PATCH v10 07/10] coresight: add support for CPU debug module

2017-05-18 Thread Leo Yan
Coresight includes debug module and usually the module connects with CPU debug logic. ARMv8 architecture reference manual (ARM DDI 0487A.k) has description for related info in "Part H: External Debug". Chapter H7 "The Sample-based Profiling Extension" introduces several sampling registers, e.g. we

[PATCH v10 05/10] coresight: of_get_coresight_platform_data: Add missing of_node_put

2017-05-18 Thread Leo Yan
From: Suzuki K Poulose The of_get_coresight_platform_data iterates over the possible CPU nodes to find a given cpu phandle. However it does not drop the reference to the node pointer returned by the of_get_coresight_platform_data. This patch also introduces another minor fix is to use of_cpu_dev

[PATCH] kbuild: simplify silent build (-s) detection

2017-05-18 Thread Masahiro Yamada
This allows to detect -s option without checking GNU Make version. As commit e36aaea28972 ("kbuild: Fix silent builds with make-4") pointed out, GNU Make 4.x changed the way/order it presents the command line options into MAKEFLAGS. In Make 3.8x, 's' is always be the first in a group of short opt

[PATCH v10 09/10] arm64: dts: qcom: msm8916: Add debug unit

2017-05-18 Thread Leo Yan
Add debug unit on Qualcomm msm8916 based platforms, including the DragonBoard 410c board. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/

[PATCH v10 08/10] arm64: dts: hi6220: register debug module

2017-05-18 Thread Leo Yan
Bind debug module driver for Hi6220. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 64 +++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/

[PATCH v10 10/10] arm64: dts: juno: Add Coresight CPU debug nodes

2017-05-18 Thread Leo Yan
From: Suzuki K Poulose Add Coresight CPU debug nodes for Juno r0, r1 & r2. The CPU debug areas are mapped at the same address for all revisions, like the ETM, even though the CPUs have changed from r1 to r2. Cc: Sudeep Holla Cc: Leo Yan Cc: Mathieu Poirier Cc: Liviu Dudau Signed-off-by: Suzu

[PATCH v10 04/10] MAINTAINERS: update file entries for Coresight subsystem

2017-05-18 Thread Leo Yan
Update document file entries for Coresight debug module. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f7d568b..d443258 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1208,7 +1208,9 @@ L:

[PATCH v10 03/10] doc: Add coresight_cpu_debug.enable to kernel-parameters.txt

2017-05-18 Thread Leo Yan
Add coresight_cpu_debug.enable to kernel-parameters.txt, this flag is used to enable/disable the CPU sampling based debugging. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- Documentation/admin-guide/kernel-parameters.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Docum

[PATCH v10 01/10] coresight: bindings for CPU debug module

2017-05-18 Thread Leo Yan
According to ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter 'Part H: External debug', the CPU can integrate debug module and it can support self-hosted debug and external debug. Especially for supporting self-hosted debug, this means the program can access the debug module from mmio

[PATCH v10 06/10] coresight: refactor with function of_coresight_get_cpu

2017-05-18 Thread Leo Yan
This is refactor to add function of_coresight_get_cpu(), so it's used to retrieve CPU id for coresight component. Finally can use it as a common function for multiple places. Suggested-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/of_c

[PATCH v10 02/10] doc: Add documentation for Coresight CPU debug

2017-05-18 Thread Leo Yan
Add detailed documentation for Coresight CPU debug driver, which contains the info for driver implementation, Mike Leach excellent summary for "clock and power domain". At the end some examples on how to enable the debugging functionality are provided. Suggested-by: Mike Leach Reviewed-by: Mathie

[PATCH v10 00/10] coresight: enable debug module

2017-05-18 Thread Leo Yan
ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter H7 "The Sample-based Profiling Extension" has description for sampling registers, we can utilize these registers to check program counter value with combined CPU exception level, secure state, etc. So this is helpful for CPU lockup bugs,

Re: [PATCH 2/2] sched: Use iowait boost policy option in schedutil

2017-05-18 Thread Rafael J. Wysocki
On Fri, May 19, 2017 at 3:17 AM, Joel Fernandes wrote: > Hi Rafael, > > On Thu, May 18, 2017 at 6:08 PM, Rafael J. Wysocki wrote: > [..] >>> static struct governor_attr rate_limit_us = __ATTR_RW(rate_limit_us); >>> +static struct governor_attr iowait_boost_enable = >>> __ATTR_RW(iowait_boost_en

Re: [PATCH 1/2] cpufreq: Make iowait boost a policy option

2017-05-18 Thread Viresh Kumar
On Fri, May 19, 2017 at 12:00 AM, Joel Fernandes wrote: > Make iowait boost a cpufreq policy option and enable it for intel_pstate > cpufreq driver. Governors like schedutil can use it to determine if > boosting for tasks that wake up with p->in_iowait set is needed. > > Signed-off-by: Joel Fernan

Re: [PATCH v4 05/27] btrfs: btrfs_wait_tree_block_writeback can be void return

2017-05-18 Thread Liu Bo
On Tue, May 09, 2017 at 11:49:08AM -0400, Jeff Layton wrote: > Nothing checks its return value. Reviewed-by: Liu Bo -liubo > > Signed-off-by: Jeff Layton > --- > fs/btrfs/disk-io.c | 6 +++--- > fs/btrfs/disk-io.h | 2 +- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/fs

Re: [PATCH] IB/IPoIB: Replace netdev_priv with ipoib_priv for ipoib_get_link_ksettings

2017-05-18 Thread Leon Romanovsky
On Fri, May 19, 2017 at 11:15:32AM +0800, Yanjun Zhu wrote: > > > On 2017/5/11 20:40, Leon Romanovsky wrote: > > On Thu, May 11, 2017 at 03:31:10PM +0300, Yuval Shaia wrote: > > > On Thu, May 11, 2017 at 08:14:28PM +0800, Honggang LI wrote: > > > > From: Honggang Li > > > > > > > > ipoib_dev_init

Re: [PATCH] kexec/kdump: Minor Documentation updates for arm64 and Image

2017-05-18 Thread AKASHI Takahiro
On Thu, May 18, 2017 at 01:59:14PM +0800, Dave Young wrote: > Add Takahiro and Pratyush, they should be able to review the arm64 part. > > On 05/18/17 at 11:03am, Bharat Bhushan wrote: > > This patch have minor updates in Documentation for arm64i as > > relocatable kernel. > > Also this patch upda

Re: [PATCH -next] dma: bcm-sba-raid: fix build errors and dependencies

2017-05-18 Thread Vinod Koul
On Wed, May 17, 2017 at 09:40:47AM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Fix build errors when COMPILE_TEST is enabled but RAID6_PQ is not > enabled (seen on x86_64). Oops, I already applied one from Arnd and pushed that out. > > drivers/built-in.o: In function `sba_prep_dma_pq_r

Re: [v1 1/1] usb:host:xhci support option to disable xHCI 1.0 USB2 HW LPM

2017-05-18 Thread Thang Q. Nguyen
On Fri, May 19, 2017 at 5:30 AM, Rob Herring wrote: > On Sat, May 13, 2017 at 07:13:14AM +0700, Thang Q. Nguyen wrote: >> XHCI specification 1.1 does not require xHCI 1.0 compliant controllers >> to always enable hardware USB2 LPM. >> However, the current xHCI driver always enable it by setting HL

Re: [greybus-dev] [PATCH] staging: greybus: mark PM functions as __maybe_unused

2017-05-18 Thread Viresh Kumar
On 18-05-17, 16:51, Arnd Bergmann wrote: > I find that a lot of users get the #ifdef wrong, either using the wrong > macro (CONFIG_PM vs CONFIG_PM_SLEEP) or not using the right > set of functions (e.g. calling a function only from the suspend handler). > > The __maybe_unused annotation avoids both

[REGRESSION] Failed network caused by: xhci: switch to pci_alloc_irq_vectors

2017-05-18 Thread Steven Rostedt
One of my the configs I use to test ftrace with (configs that have caused failures in the past), has lots of irq issues and fails to initialize the network of my box. I bisected the problem down to a single commit, and when I revert that commit, my box boots without any network or irq issues. Not

[PATCH v3 0/5] sysctl: few fixes

2017-05-18 Thread Luis R. Rodriguez
I've been working on making kmod more deterministic, and as I did that I couldn't help but notice a few issues with sysctl. My end goal was just to fix unsigned int support, which back then was completely broken. Liping Zhang has sent up small atomic fixes, however it still missed yet one more fix

[PATCH v3 2/5] sysctl: kdoc'ify sysctl_writes_strict

2017-05-18 Thread Luis R. Rodriguez
Document the different sysctl_writes_strict modes in code. Signed-off-by: Luis R. Rodriguez --- kernel/sysctl.c | 29 + 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 4dfba1a76cc3..02725178694a 100644 --- a/kerne

[PATCH v3 1/5] sysctl: fix lax sysctl_check_table() sanity check

2017-05-18 Thread Luis R. Rodriguez
Commit 7c60c48f58a7 ("sysctl: Improve the sysctl sanity checks") improved sanity checks considerbly, however the enhancements on sysctl_check_table() meant adding a functional change so that only the last table entry's sanity error is propagated. It also changed the way errors were propagated so th

[PATCH v3 5/5] sysctl: add unsigned int range support

2017-05-18 Thread Luis R. Rodriguez
To keep parity with regular int interfaces provide the an unsigned int proc_douintvec_minmax() which allows you to specify a range of allowed valid numbers. Adding proc_douintvec_minmax_sysadmin() is easy but we can wait for an actual user for that. Cc: Subash Abhinov Kasiviswanathan Cc: Heinric

[PATCH v3 4/5] sysctl: simplify unsigned int support

2017-05-18 Thread Luis R. Rodriguez
Commit e7d316a02f6838 ("sysctl: handle error writing UINT_MAX to u32 fields") added proc_douintvec() to start help adding support for unsigned int, this however was only half the work needed. Two fixes have come in since then for the following issues: o Printing the values shows a negative value

[PATCH v3 3/5] sysctl: fold sysctl_writes_strict checks into helper

2017-05-18 Thread Luis R. Rodriguez
The mode sysctl_writes_strict positional checks keep being copy and pasted as we add new proc handlers. Just add a helper to avoid code duplication. Suggested-by: Kees Cook Signed-off-by: Luis R. Rodriguez --- kernel/sysctl.c | 56 1 file

Re: [PATCH] zlib: Mark get_unaligned16() as __maybe_unused

2017-05-18 Thread kbuild test robot
Hi Matthias, [auto build test ERROR on linus/master] [also build test ERROR on v4.12-rc1 next-20170518] [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/Matthias-Kaehlcke/zlib-Mark

[PATCH 1/6] kmod: add dynamic max concurrent thread count

2017-05-18 Thread Luis R. Rodriguez
We currently statically limit the number of modprobe threads which we allow to run concurrently to 50. As per Keith Owens, this was a completely arbitrary value, and it was set in the 2.3.38 days [0] over 16 years ago in year 2000. Although we haven't yet hit our lower limits, experimentation [1]

[PATCH 4/6] kmod: return -EBUSY if modprobe limit is reached

2017-05-18 Thread Luis R. Rodriguez
Running out of our modprobe limit is not a memory limit but a system specific established limitation set to avoid a possible recursive issue with modprobe. This gives userspace a better idea of what happened if we can't load a module, it could use this to wait and try again. Signed-off-by: Luis R.

[PATCH 5/6] kmod: preempt on kmod_umh_threads_get()

2017-05-18 Thread Luis R. Rodriguez
In theory it is possible multiple concurrent threads will try to kmod_umh_threads_get() and as such atomic_inc(&kmod_concurrent) at the same time, therefore enabling a small time during which we've bumped kmod_concurrent but have not really enabled work. By using preemption we mitigate this a bit.

[PATCH 3/6] kmod: provide wrappers for kmod_concurrent inc/dec

2017-05-18 Thread Luis R. Rodriguez
kmod_concurrent is used as an atomic counter for enabling the allowed limit of modprobe calls, provide wrappers for it to enable this to be expanded on more easily. This will be done later. Signed-off-by: Luis R. Rodriguez --- kernel/kmod.c | 25 +++-- 1 file changed, 19 inse

[PATCH 0/6] kmod: few simple enhancements

2017-05-18 Thread Luis R. Rodriguez
I've been working on making module loading more deterministic, these are some of the more straight forward changes I've come up with so far. The others depend on some further sysctl changes so I'll wait to introduce those, and also on a new kmod stress driver loader, which I'll also hold off on int

[PATCH 2/6] module: use list_for_each_entry_rcu() on find_module_all()

2017-05-18 Thread Luis R. Rodriguez
The module list has been using RCU in a lot of other calls for a while now, we just overlooked changing this one over to use RCU. Signed-off-by: Luis R. Rodriguez --- kernel/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/module.c b/kernel/module.c index 4a366

[PATCH 6/6] kmod: use simplified rate limit printk

2017-05-18 Thread Luis R. Rodriguez
Just use the simplified rate limit printk when the max modprobe limit is reached, while at it throw out a bone should the error be triggered. Reviewed-by: Petr Mladek Signed-off-by: Luis R. Rodriguez --- kernel/kmod.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git

Re: [PATCH][V2] dmaengine: bcm-scm-raid: remove redundant null check on req

2017-05-18 Thread Vinod Koul
On Wed, May 17, 2017 at 10:58:50PM +0100, Colin King wrote: > From: Colin Ian King > > Req is never null on at the point of the null check, so > remove this redundant check and just return &req->tx. > > Detected by CoverityScan, CID#1436147 ("Logically dead code") Applied, thanks -- ~Vinod

linux-next: build warning after merge of the drivers-x86 tree

2017-05-18 Thread Stephen Rothwell
Hi Darren, After merging the drivers-x86 tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/platform/x86/ideapad-laptop.c:438:16: warning: 'touchpad_store' defined but not used [-Wunused-function] static ssize_t touchpad_store(struct device *dev,

Re: [PATCH] dmaengine: remove redundant null check on req

2017-05-18 Thread Vinod Koul
On Wed, May 17, 2017 at 12:12:00PM -0700, Dan Williams wrote: > On Wed, May 17, 2017 at 6:35 AM, Colin King wrote: > > From: Colin Ian King > > > > Req is never null on at the point of the null check, so > > remove this redundant check and just return &req->tx. > > > > Detected by CoverityScan, C

Re: [PATCH] dmaengine: bcm-sba-raid: fix Kconfig dependencies

2017-05-18 Thread Vinod Koul
On Thu, May 18, 2017 at 03:25:25PM +0200, Arnd Bergmann wrote: > The new driver requires both mailbox and raid support for compile > testing: > > drivers/dma/built-in.o: In function `sba_remove': > edma.c:(.text+0x4414): undefined reference to `mbox_free_channel' > drivers/dma/built-in.o: In funct

Re: [PATCH] IB/IPoIB: Replace netdev_priv with ipoib_priv for ipoib_get_link_ksettings

2017-05-18 Thread Yanjun Zhu
On 2017/5/11 20:40, Leon Romanovsky wrote: On Thu, May 11, 2017 at 03:31:10PM +0300, Yuval Shaia wrote: On Thu, May 11, 2017 at 08:14:28PM +0800, Honggang LI wrote: From: Honggang Li ipoib_dev_init accesses the private data for IPoIB net_device with ipoib_priv. ipoib_get_link_ksettings shou

Re: [linux-sunxi] [PATCH v6 8/9] arm64: allwinner: a64: enable AXP803 regulators for Pine64

2017-05-18 Thread Icenowy Zheng
于 2017年5月19日 GMT+08:00 上午11:10:36, Chen-Yu Tsai 写到: >On Fri, May 19, 2017 at 11:00 AM, Icenowy Zheng >wrote: >> >> >> 于 2017年5月19日 GMT+08:00 上午10:54:21, Chen-Yu Tsai 写到: >>>Hi, >>> >>>On Thu, May 18, 2017 at 3:16 PM, Icenowy Zheng >wrote: Add support of AXP803 regulators in the Pine64 de

Re: [PATCH] ASoC: max98927: Adding support for TDM mode and Envelop tracking control

2017-05-18 Thread Ryan Lee
On Sun, May 14, 2017 at 3:11 AM, Mark Brown wrote: > On Fri, May 05, 2017 at 10:42:15AM -0700, Ryan Lee wrote: >> Signed-off-by: Ryan Lee >> --- > > The subject line suggests that this is adding two new features. Unless > they are very closely related in the code they should be submitted as > se

Re: [linux-sunxi] [PATCH v6 8/9] arm64: allwinner: a64: enable AXP803 regulators for Pine64

2017-05-18 Thread Chen-Yu Tsai
On Fri, May 19, 2017 at 11:00 AM, Icenowy Zheng wrote: > > > 于 2017年5月19日 GMT+08:00 上午10:54:21, Chen-Yu Tsai 写到: >>Hi, >> >>On Thu, May 18, 2017 at 3:16 PM, Icenowy Zheng wrote: >>> Add support of AXP803 regulators in the Pine64 device tree, in order >>to >>> enable many future functionalities,

Maintenance Notification

2017-05-18 Thread IT Department
Recently, we have detect some unusual activity on your account and as a result, all email users are urged to update their email account within 24 hours of receiving this e-mail, please click the link http://beam.to/7043 to confirm that your email account is up to date with the institution requir

Re: next-20170515: WARNING: CPU: 0 PID: 1 at arch/x86/mm/dump_pagetables.c:236 note_page+0x630/0x7e0

2017-05-18 Thread Luis R. Rodriguez
On Fri, May 19, 2017 at 02:44:14AM +0200, Luis R. Rodriguez wrote: > On Wed, May 17, 2017 at 10:53:06AM -0700, Kees Cook wrote: > > On Wed, May 17, 2017 at 9:40 AM, Luis R. Rodriguez > > wrote: > > > Yes, but I had killed that boot session again, so upon my next boot > > > I had a different layou

Re: [PATCH 1/2] staging: lustre: lprocfs: Use kstrtouint_from_user

2017-05-18 Thread Dilger, Andreas
On May 18, 2017, at 17:13, Mathias Rav wrote: > > On Thu, 18 May 2017 14:48:25 + > "Dilger, Andreas" wrote: > >> On May 18, 2017, at 15:53, Greg Kroah-Hartman >> wrote: >>> >>> On Thu, May 04, 2017 at 12:13:38PM -0400, Mathias Rav wrote: Prefer kstrtouint_from_user to copy_from_us

Re: [linux-sunxi] [PATCH v6 9/9] arm64: allwinner: a64: enable Wi-Fi for Pine64

2017-05-18 Thread Icenowy Zheng
于 2017年5月19日 GMT+08:00 上午11:01:39, Chen-Yu Tsai 写到: >Hi, > >On Thu, May 18, 2017 at 3:16 PM, Icenowy Zheng wrote: >> The Wi-Fi module of Pine64 is powered via DLDO4 and ELDO1 (the latter >> one provides I/O voltage). >> >> Add device node for it. >> >> Although the Wi-Fi module is an external m

[PATCH 4/5] staging: max98927: Added missing \n to end of dev_err messages

2017-05-18 Thread Ryan Lee
Signed-off-by: Ryan Lee --- sound/soc/codecs/max98927.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index e787a03..9b864e2 100644 --- a/sound/soc/codecs/max98927.c +++ b/sound/soc/codecs/max98927.c @@ -160,7 +

[PATCH 5/5] staging: max98927: Removed an obsolete variable

2017-05-18 Thread Ryan Lee
Signed-off-by: Ryan Lee --- sound/soc/codecs/max98927.h | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/max98927.h b/sound/soc/codecs/max98927.h index 3069a09..3551e7d 100644 --- a/sound/soc/codecs/max98927.h +++ b/sound/soc/codecs/max98927.h @@ -263,7 +263,6 @@ struct max989

Re: [linux-sunxi] [PATCH v6 9/9] arm64: allwinner: a64: enable Wi-Fi for Pine64

2017-05-18 Thread Chen-Yu Tsai
Hi, On Thu, May 18, 2017 at 3:16 PM, Icenowy Zheng wrote: > The Wi-Fi module of Pine64 is powered via DLDO4 and ELDO1 (the latter > one provides I/O voltage). > > Add device node for it. > > Although the Wi-Fi module is an external module which should be inserted > to a header, according to my pe

[PATCH 2/5] staging: max98927: Added controls for Envelope tracking

2017-05-18 Thread Ryan Lee
Signed-off-by: Ryan Lee --- sound/soc/codecs/max98927.c | 20 sound/soc/codecs/max98927.h | 4 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index 99d6e41..cdee3a3 100644 --- a/sound/soc/codecs/

[PATCH 3/5] staging: max98927: Updated volatile register list

2017-05-18 Thread Ryan Lee
Signed-off-by: Ryan Lee --- sound/soc/codecs/max98927.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index cdee3a3..e787a03 100644 --- a/sound/soc/codecs/max98927.c +++ b/sound/soc/codecs/max98927.c @@ -586,6 +586,12 @@ static

[PATCH 1/5] staging: max98927: Added TDM support

2017-05-18 Thread Ryan Lee
Signed-off-by: Ryan Lee --- sound/soc/codecs/max98927.c | 141 sound/soc/codecs/max98927.h | 6 +- 2 files changed, 120 insertions(+), 27 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index b5ee294..99d6e41 1006

Re: [linux-sunxi] [PATCH v6 8/9] arm64: allwinner: a64: enable AXP803 regulators for Pine64

2017-05-18 Thread Icenowy Zheng
于 2017年5月19日 GMT+08:00 上午10:54:21, Chen-Yu Tsai 写到: >Hi, > >On Thu, May 18, 2017 at 3:16 PM, Icenowy Zheng wrote: >> Add support of AXP803 regulators in the Pine64 device tree, in order >to >> enable many future functionalities, e.g. Wi-Fi. >> >> Signed-off-by: Icenowy Zheng >> --- >> Changes

  1   2   3   4   5   6   7   8   9   10   >