Re: [RFC PATCH 4/4] KVM: vmx: add support for emulating UMIP

2016-08-01 Thread Wanpeng Li
2016-08-01 23:01 GMT+08:00 Paolo Bonzini : > > > On 31/07/2016 04:32, Wanpeng Li wrote: >> 2016-07-14 16:09 GMT+08:00 Paolo Bonzini : >> [...] >>> >>> This is not necessary because this is how KVM computes >>> CPUID[EAX=7,EBX=0].ECX: >>> >>> unsigned f_umip = kvm_x86_ops->umip_emulated() ?

[PATCH] uprobe: Add uprobe_pre/post_sstep_notifier to NOKPROBE_SYMBOL

2016-08-01 Thread Pratyush Anand
uprobe_pre_sstep_notifier and uprobe_post_sstep_notifier are called from debug exception handler, so blacklist them for kprobing. Signed-off-by: Pratyush Anand --- kernel/events/uprobes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c ind

[RESEND PATCH] mfd: RK808: Fetch PMIC variant from chip id register

2016-08-01 Thread Wadim Egorov
Add and use the chip id registers to determine the PMIC variant. Signed-off-by: Wadim Egorov Tested-by: Andy Yan --- This patch is based on top of [v6,1/5] mfd: RK808: Add RK818 support (https://patchwork.kernel.org/patch/9172223/) --- drivers/mfd/rk808.c | 17 + includ

[PATCH v2] xen: Make VPMU init message look less scary

2016-08-01 Thread Juergen Gross
The default for the Xen hypervisor is to not enable VPMU in order to avoid security issues. In this case the Linux kernel will issue the message "Could not initialize VPMU for cpu 0, error -95" which looks more like an error than a normal state. Change the message to something less scary in case t

Re: [RFC v0 7/8] Input: ims-pcu: use firmware_stat instead of completion

2016-08-01 Thread Luis R. Rodriguez
On Tue, Aug 02, 2016 at 07:49:19AM +0200, Daniel Wagner wrote: > >The sysdata API's main goal rather is to provide a flexible API first, > >compartamentalizing the usermode helper was secondary. But now it seems > >I may just also add devm support too to help simplify code further. > > I missed th

Re: [RFT PATCH v2 2/3] ARM: Fix *MIGHT_HAVE_PCI* config from being selected redundantly

2016-08-01 Thread Kishon Vijay Abraham I
Hi, On Monday 01 August 2016 04:42 PM, Kishon Vijay Abraham I wrote: > *MIGHT_HAVE_PCI* config is already selected in ARCH_MULTIPLATFORM. > Fix it from getting redundantly selected in all > ARCH_MULTIPLATFORM based machines. > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm/Kconfig

Re: [PATCH v5 06/10] drm/mediatek: add dsi interrupt control

2016-08-01 Thread CK Hu
Hi, YT: On Thu, 2016-07-28 at 17:28 +0800, YT Shen wrote: > From: shaoming chen > > add dsi interrupt control > > Signed-off-by: shaoming chen > --- > drivers/gpu/drm/mediatek/mtk_dsi.c | 92 > > 1 file changed, 92 insertions(+) > > diff --git a/driver

Re: [PATCH v7 1/2] [media] atmel-isc: add the Image Sensor Controller code

2016-08-01 Thread Wu, Songjun
On 8/1/2016 17:47, Hans Verkuil wrote: Hi Songjun, Some more comments below. Except for one in the open/release functions it's all small things. On 07/29/2016 09:54 AM, Songjun Wu wrote: Add driver for the Image Sensor Controller. It manages incoming data from a parallel based CMOS/CCD senso

Re: [RFT PATCH v2 2/3] ARM: Fix *MIGHT_HAVE_PCI* config from being selected redundantly

2016-08-01 Thread Kishon Vijay Abraham I
On Tuesday 02 August 2016 12:40 AM, Robert Jarzmik wrote: > Kishon Vijay Abraham I writes: > >> *MIGHT_HAVE_PCI* config is already selected in ARCH_MULTIPLATFORM. >> Fix it from getting redundantly selected in all >> ARCH_MULTIPLATFORM based machines. > > If that's the purpose, then CM-X255 an

Re: [RFT PATCH v2 2/3] ARM: Fix *MIGHT_HAVE_PCI* config from being selected redundantly

2016-08-01 Thread Kishon Vijay Abraham I
Hi, On Monday 01 August 2016 08:54 PM, Russell King - ARM Linux wrote: > On Mon, Aug 01, 2016 at 04:42:29PM +0530, Kishon Vijay Abraham I wrote: >> *MIGHT_HAVE_PCI* config is already selected in ARCH_MULTIPLATFORM. >> Fix it from getting redundantly selected in all >> ARCH_MULTIPLATFORM based mach

[PATCH 0/2 v2] DesignWare HDMI I2S suport

2016-08-01 Thread Kuninori Morimoto
Hi Thierry, Russell, Mark These are v2 of DesignWare HDMI I2S support patches. It will use ALSA SoC hdmi-codec driver, but we can't use it as-is at this point. 1) patch tidyup hdmi-codec driver to enable dw-hdmi I2S support. 2) patch is based on it. Difficult is that these 2 patches are under dif

RE: [PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-08-01 Thread Yangbo Lu
Hi Scott, > -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Wednesday, July 27, 2016 8:38 AM > To: Yangbo Lu; Michael Ellerman; Arnd Bergmann; Ulf Hansson > Cc: linux-...@vger.kernel.org; devicet...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; linux-kernel@v

Re: [PATCH v2 2/4] dt-bindings: Add a binding for Mediatek MDP

2016-08-01 Thread Minghsiu Tsai
On Thu, 2016-07-28 at 10:55 -0500, Rob Herring wrote: > On Tue, Jul 26, 2016 at 8:44 PM, Minghsiu Tsai > wrote: > > On Tue, 2016-07-26 at 13:54 -0500, Rob Herring wrote: > >> On Fri, Jul 22, 2016 at 04:33:01PM +0800, Minghsiu Tsai wrote: > >> > Add a DT binding documentation of MDP for the MT8173

[PATCH 2/2 v2] drm: bridge: add DesignWare HDMI I2S audio support

2016-08-01 Thread Kuninori Morimoto
From: Kuninori Morimoto Current dw-hdmi is supporting sound via AHB bus, but it has I2S audio feature too. This patch adds I2S audio support to dw-hdmi. This HDMI I2S is supported by using ALSA SoC common HDMI encoder driver. Signed-off-by: Kuninori Morimoto --- v1 -> v2 - tidyup return valu

Re: [PATCH] net/mlx5_core/pagealloc: Remove deprecated create_singlethread_workqueue

2016-08-01 Thread Leon Romanovsky
On Mon, Aug 01, 2016 at 11:11:19AM -0400, Tejun Heo wrote: > > Right now, I'm feeling that I'm participating in soapie where one sends > > patch for every line, waits and sends the same patch for another file. > > It is worth to send one patch set and let us to test it all in once. > > Yeah, I gue

[PATCH 1/2 v2] ASoC: hdmi-codec: enable multi probe for same device

2016-08-01 Thread Kuninori Morimoto
From: Kuninori Morimoto hdmi-codec driver is common HDMI sound driver, but it doesn't care about multi sound ports. For example, hdmi-codec driver is supporting 1 I2S and 1 SPDIF ports, so, we can't use this driver if HDMI has 2 or more I2S ports. And we would like to use multi detection. For e

Re: [RFC v0 7/8] Input: ims-pcu: use firmware_stat instead of completion

2016-08-01 Thread Daniel Wagner
Hi Luis, I was ignorant on all the nasty details around the firmware loading. If I parse Luis' patches correctly they introduce an API which calls kernel_read_file_from_path() asynchronously: sysdata_file_request_async(..., &cookie) *coookie = async_schedule_domain(request_sysdata_file_work_f

Re: [PATCH] mm/memblock.c: fix NULL dereference error

2016-08-01 Thread zijun_hu
Hi All, this mail correct the following mistakes in last mail 1, remove test patch attached 2, format patch to satisfy rules i am so sorry for my mistake Hi Andrew, this patch is part of https://lkml.org/lkml/2016/7/26/347 and isn't merged in as you advised in another mail, i release this patch

Re: [PATCH v4 3/5] nvmem: core: Add consumer API to get nvmem cell from node

2016-08-01 Thread maitysanchayan
On 16-07-08 18:23:42, Srinivas Kandagatla wrote: > > > On 08/07/16 17:42, Stefan Agner wrote: > > On 2016-07-08 08:41, Srinivas Kandagatla wrote: > > > On 07/07/16 14:48, maitysancha...@gmail.com wrote: > > > > Hello Srinivas, > > > > > > > > On 16-07-07 1 > > ... > > > > > > > > > > > > > Ou

[PATCH 1/2 v5] perf sched: fix wrong conversion of task state

2016-08-01 Thread Tomoki Sekiyama
Currently sched_out_state() converts the prev_state u64 bitmask to a char using the bitmask as an index, which may cause invalid memory access. This fixes the issue by using the __ffs() returned value as an index. Signed-off-by: Tomoki Sekiyama Fixes: cdce9d738b91e ("perf sched: Add sched latency

[PATCH 2/2 v5] perf sched: adapt TASK_STATE_TO_CHAR_STR to the latest kernel

2016-08-01 Thread Tomoki Sekiyama
Update TASK_STATE_TO_CHAR_STR macro to one from sched.h in the latest kernel. Related kernel commits: - commit ad86622b478e ("wait: swap EXIT_ZOMBIE and EXIT_DEAD to hide EXIT_TRACE from user-space"): 'Z' and 'X' are swapped - commit 80ed87c8a9ca ("sched/wait: Introduce TASK_NOLOAD and TA

Re: [PATCH] mm/memblock.c: fix NULL dereference error

2016-08-01 Thread zijun_hu
i am sorry, the second patch is only a test patch, please don't apply it i will send another mail for correct this On 08/02/2016 01:23 PM, kbuild test robot wrote: > Hi zijun_hu, > > [auto build test WARNING on mmotm/master] > [also build test WARNING on v4.7 next-20160801] &g

[PATCH 3/5] arm64: Handle TRAP_HWBRKPT for user mode as well

2016-08-01 Thread Pratyush Anand
uprobe registers a handler at step_hook. So, single_step_handler now checks for user mode as well if there is a valid hook. Signed-off-by: Pratyush Anand --- arch/arm64/kernel/debug-monitors.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/arch/arm64

[PATCH 5/5] arm64: Add uprobe support

2016-08-01 Thread Pratyush Anand
This patch adds support for uprobe on ARM64 architecture. Unit test for following has been done so far and they have been found working 1. Step-able instructions, like sub, ldr, add etc. 2. Simulation-able like ret, cbnz, cbz etc. 3. uretprobe 4. Reject-able instructions like sev,

[PATCH 4/5] arm64: Handle TRAP_BRKPT for user mode as well

2016-08-01 Thread Pratyush Anand
uprobe is registered at break_hook with a unique ESR code. So, when a TRAP_BRKPT occurs, call_break_hook checks if it was for uprobe. If not, then send a SIGTRAP to user. Signed-off-by: Pratyush Anand --- arch/arm64/kernel/debug-monitors.c | 18 +++--- 1 file changed, 11 insertions(+

[PATCH] ARM: dts: am57xx-idk-common: Enable support for QSPI

2016-08-01 Thread Vignesh R
AM572x IDK has a Spansion s25fl256s1 QSPI flash on the EVM connected to TI QSPI IP over CS0. Hence, add QSPI and flash slave DT nodes. Signed-off-by: Vignesh R --- arch/arm/boot/dts/am57xx-idk-common.dtsi | 49 1 file changed, 49 insertions(+) diff --git a/arch/

[PATCH 1/5] arm64: kprobe: protect/rename few definitions to be reused by uprobe

2016-08-01 Thread Pratyush Anand
decode-insn code has to be reused by arm64 uprobe implementation as well. Therefore, this patch protects some portion of kprobe code and renames few other, so that decode-insn functionality can be reused by uprobe even when CONFIG_KPROBES is not defined. kprobe_opcode_t and struct arch_specific_in

[PATCH 0/5] ARM64: Uprobe support added

2016-08-01 Thread Pratyush Anand
ARM64 kprobe support is lying in torvalds/linux.git:master now. Therefore sending my uprobe patches which were dependent on decode-insn code of kprobe patches. Unit tests for following have been done so far and they have been found working. 1. Step-able instructions, like sub, ldr, add etc.

[PATCH 2/5] arm64: kgdb_step_brk_fn: ignore other's exception

2016-08-01 Thread Pratyush Anand
ARM64 step exception does not have any syndrome information. So, it is responsibility of exception handler to take care that they handle it only if exception was raised for them. Since kgdb_step_brk_fn() always returns 0, therefore we might have problem when we will have other step handler registe

Re: [PATCH] mm/memblock.c: fix NULL dereference error

2016-08-01 Thread kbuild test robot
Hi zijun_hu, [auto build test WARNING on mmotm/master] [also build test WARNING on v4.7 next-20160801] [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/zijun_hu/mm-memblock-c-fix-NULL-dereference

Re: [PATCH 0/3] DesignWare HDMI I2S suport

2016-08-01 Thread Kuninori Morimoto
Hi > These are DesignWare HDMI I2S support patches. > It will use ALSA SoC hdmi-codec driver, but we can't use it as-is. > So, 2), 3) patches modify hdmi-codec style. > > Kuninori Morimoto (3): > 1) drm: bridge: add DesignWare HDMI I2S audio support > 2) ASoC: hdmi-codec: callback function

Re: [PATCH v2 0/6] extcon: Add the support for extcon type and property

2016-08-01 Thread Guenter Roeck
On Mon, Aug 1, 2016 at 6:52 PM, Chanwoo Choi wrote: > Hi Guenter, > > On 2016년 08월 02일 03:18, Guenter Roeck wrote: >> On Sun, Jul 31, 2016 at 10:50 PM, Chanwoo Choi wrote: >>> This patch-set add the support the extcon type, extcon property >>> and the synchronization functions. >>> >>> The each e

[PATCH 1/2] tools lib traceevent: Ignore generated library files

2016-08-01 Thread Namhyung Kim
Signed-off-by: Namhyung Kim --- tools/lib/traceevent/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/traceevent/.gitignore b/tools/lib/traceevent/.gitignore index 3c60335fe7be..9e9f25fb1922 100644 --- a/tools/lib/traceevent/.gitignore +++ b/tools/lib/traceevent/.gitignore

[PATCH 2/2] tools lib traceevent: Add str_error_r()

2016-08-01 Thread Namhyung Kim
The libtraceevent uses str_error_r() but its implementation is outside of the library. So if an external program wants to link the libtraceevent it'd fail due to missing str_error_r. Add it. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/Build | 4 1 file changed, 4 insertions(+) d

Re: [PATCH 1/2] sparc: fix incorrect value returned by copy_from_user_fixup

2016-08-01 Thread David Miller
From: Mikulas Patocka Date: Sun, 31 Jul 2016 19:50:57 -0400 (EDT) > @@ -18,9 +25,9 @@ > * of the cases, just fix things up simply here. > */ > > -static unsigned long compute_size(unsigned long start, unsigned long size, > unsigned long *offset) > +static unsigned long compute_size(unsigne

Re: [PATCH] memcg: put soft limit reclaim out of way if the excess tree is empty

2016-08-01 Thread Vladimir Davydov
On Mon, Aug 01, 2016 at 04:12:28PM +0200, Michal Hocko wrote: ... > From: Michal Hocko > Date: Mon, 1 Aug 2016 10:42:06 +0200 > Subject: [PATCH] memcg: put soft limit reclaim out of way if the excess tree > is empty > > We've had a report about soft lockups caused by lock bouncing in the > soft

[PATCH] vhost: drop vringh dependency

2016-08-01 Thread Michael S. Tsirkin
vringh isn't used by vhost net or scsi - it's used by CAIF only at the moment. Drop the dependency. Signed-off-by: Michael S. Tsirkin --- Including vhost directory twice isn't pretty - we just want it scanned if either of the symbols is defined. Something along the lines of obj-$(subst %m%,m,$(

[PATCH] mm/memblock.c: fix NULL dereference error

2016-08-01 Thread zijun_hu
Hi Andrew, this patch is part of https://lkml.org/lkml/2016/7/26/347 and isn't merged in as you advised in another mail, i release this patch against linus's mainline for fixing relevant bugs completely, see test patch attached for verification details >From 5a74cb46b7754a45428ff95f4653ad27025c31

Re: [PATCH net v2] 8139too: fix system hang when there is a tx timeout event.

2016-08-01 Thread David Miller
From: Chunhao Lin Date: Mon, 1 Aug 2016 13:45:30 +0800 > If tx timeout event occur, kernel will call rtl8139_tx_timeout_task() to reset > hardware. But in this function, driver does not stop tx and rx function before > reset hardware, that will cause system hang. > > In this patch, add stop tx a

[PATCH v6 0/2] clk: uniphier: add clock drivers for UniPhier SoCs

2016-08-01 Thread Masahiro Yamada
I split into two patches to make review easier. 1/2: core support code 2/2: data arrays Changes in v6: - Fix provided clock description a bit Changes in v5: - Assign each gating register bit with a separate clk - Fix examples in binding document to add specific compatible - Document

[PATCH 1/3] perf/core: check return value of perf_event_read IPI

2016-08-01 Thread David Carrillo-Cisneros
The call to smp_call_function_single in perf_event_read() may fail and, when it does, its error value is the one to return. Signed-off-by: David Carrillo-Cisneros Reviewed-by: Stephane Eranian --- kernel/events/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kerne

[RFC PATCH] softirq: fix tasklet_kill() usage and users

2016-08-01 Thread Santosh Shilimkar
Semantically the expectation from the tasklet init/kill API should be as below. tasklet_init() == Init and Enable scheduling tasklet_kill() == Disable scheduling and Destroy tasklet_init() API exibit above behavior but not the tasklet_kill(). The tasklet handler can still get scheduled and run ev

[PATCH v5 2/2] clk: uniphier: add clock data for UniPhier SoCs

2016-08-01 Thread Masahiro Yamada
Add clock data arrays for all UniPhier SoCs. Signed-off-by: Masahiro Yamada --- .../devicetree/bindings/clock/uniphier-clock.txt | 134 ++ drivers/clk/uniphier/Makefile | 3 + drivers/clk/uniphier/clk-uniphier-core.c | 91 + driver

Re: [PULL] modules-next

2016-08-01 Thread Rusty Russell
Linus Torvalds writes: > So this feels wrong to me, can you guys please explain: > > On Sun, Jul 31, 2016 at 9:02 PM, Rusty Russell wrote: >> >> Ben Hutchings (3): >> module: Invalidate signatures on force-loaded modules >> module: Disable MODULE_FORCE_LOAD when MODULE_SIG_FORCE is en

[PATCH v6 1/2] clk: uniphier: add core support code for UniPhier clock driver

2016-08-01 Thread Masahiro Yamada
This includes UniPhier clock driver code, except SoC-specific data arrays. Signed-off-by: Masahiro Yamada --- MAINTAINERS | 1 + drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk

[PATCH v6 1/2] clk: uniphier: add core support code for UniPhier clock driver

2016-08-01 Thread Masahiro Yamada
This includes UniPhier clock driver code, except SoC-specific data arrays. Signed-off-by: Masahiro Yamada --- MAINTAINERS | 1 + drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk

linux-next: Tree for Aug 2

2016-08-01 Thread Stephen Rothwell
Hi all, Please do not add material destined for v4.9 to your linux-next included branches until after v4.8-rc1 has been released. Changes since 20160801: My fixes tree contains: clocksource/drivers/clps_711x: fixup for "ARM: clps711x: Switch to MULTIPLATFORM" The akpm tre

[PATCH v6 0/2] clk: uniphier: add clock drivers for UniPhier SoCs

2016-08-01 Thread Masahiro Yamada
I split into two patches to make review easier. 1/2: core support code 2/2: data arrays Changes in v6: - Fix provided clock description a bit Changes in v5: - Assign each gating register bit with a separate clk - Fix examples in binding document to add specific compatible - Document

[PATCH v6 2/2] clk: uniphier: add clock data for UniPhier SoCs

2016-08-01 Thread Masahiro Yamada
Add clock data arrays for all UniPhier SoCs. Signed-off-by: Masahiro Yamada --- .../devicetree/bindings/clock/uniphier-clock.txt | 134 ++ drivers/clk/uniphier/Makefile | 3 + drivers/clk/uniphier/clk-uniphier-core.c | 91 + driver

[PATCH v6 2/2] clk: uniphier: add clock data for UniPhier SoCs

2016-08-01 Thread Masahiro Yamada
Add clock data arrays for all UniPhier SoCs. Signed-off-by: Masahiro Yamada --- .../devicetree/bindings/clock/uniphier-clock.txt | 134 ++ drivers/clk/uniphier/Makefile | 3 + drivers/clk/uniphier/clk-uniphier-core.c | 91 + driver

Re: [PATCH v4 6/7] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-08-01 Thread Chanwoo Choi
Hi Lin, On the next version, I'd like you to add the 'linux...@vger.kernel.org' because devfreq is a subsystem of power management. On 2016년 08월 02일 10:03, hl wrote: > Hi Chanwoo Choi, > > Thanks for reviewing so carefully. And i have some question: > > On 2016年08月01日 18:28, Chanwoo Choi wr

[PATCH v3] reset: uniphier: add reset controller driver for UniPhier SoCs

2016-08-01 Thread Masahiro Yamada
This is the initial commit for UniPhier reset controller driver. Signed-off-by: Masahiro Yamada --- Changes in v3: - Fix examples in binding document to add specific compatible string - Assign each reset signal with a separate ID - Simplify reset_control operations - Unify to a single fi

[PATCH v5 1/2] clk: uniphier: add core support code for UniPhier clock driver

2016-08-01 Thread Masahiro Yamada
This includes UniPhier clock driver code, except SoC-specific data arrays. Signed-off-by: Masahiro Yamada --- MAINTAINERS | 1 + drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk

[PATCH v5 0/2] clk: uniphier: add clock drivers for UniPhier SoCs

2016-08-01 Thread Masahiro Yamada
I split into two patches to make review easier. 1/2: core support code 2/2: data arrays Changes in v5: - Assign each gating register bit with a separate clk - Fix examples in binding document to add specific compatible - Document provided clocks for system clock Changes in v4: - Unify

Re: [PATCH v3 3/3] mac80211: mesh: fixed HT ies in beacon template

2016-08-01 Thread Masashi Honma
On 2016年08月01日 19:03, Johannes Berg wrote: But why is that behaviour *correct*? We still support 40 MHz bandwidth things, we just don't use them if we disable HT40. Or do you mean difference between "hardware capability" and "software capability" ? Do you think IEEE80211_HT_CAP_SUP_WIDTH_20_4

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

2016-08-01 Thread Peter Chen
The current dts describes USB HUB's property at USB controller's entry, it is improper. The USB HUB should be the child node under USB controller, and power sequence properties are under it. Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx6qdl-udoo.dtsi | 26 +- 1 file

[PATCH v3] vfio : add aer process

2016-08-01 Thread Zhou Jie
During aer err occurs and resume do following to protect device from being accessed. 1. Make config space read only. 2. Disable INTx/MSI Interrupt. 3. Do nothing for bar regions. Signed-off-by: Zhou Jie --- v2-v3: 1. Call init_completion() in vfio_pci_probe. 2. Call reinit_completion() in v

[PATCH v4 5/6] usb: chipidea: let chipidea core device of_node equal's glue layer device of_node

2016-08-01 Thread Peter Chen
From: Peter Chen At device tree, we have no device node for chipidea core, the glue layer's node is the parent node for host and udc device. But in related driver, the parent device is chipidea core. So, in order to let the common driver get parent's node, we let the core's device node equals glu

Re: [v3,2/6] power: add power sequence library

2016-08-01 Thread Peter Chen
On Fri, Jul 29, 2016 at 01:06:48PM -0700, Matthias Kaehlcke wrote: > >... > > > >+static int pwrseq_generic_get(struct device_node *np, struct pwrseq *pwrseq) > >+{ > >+struct pwrseq_generic *pwrseq_gen = to_generic_pwrseq(pwrseq); > >+enum of_gpio_flags flags; > >+int reset_gpio, ret =

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

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

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

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

[PATCH v4 4/6] usb: core: add power sequence handling for USB devices

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

[PATCH v4 0/6] power: add power sequence library

2016-08-01 Thread Peter Chen
Hi all, This is a follow-up for my last power sequence framework patch set [1]. According to Rob Herring and Ulf Hansson's comments[2], I use a generic power sequence library for parsing the power sequence elements on DT, and implement generic power sequence on library. The host driver can allocat

linux-next: manual merge of the akpm tree with the powerpc tree

2016-08-01 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in: kernel/jump_label.c between commit: e3f91083facb ("jump_label: Make it possible for arches to invoke jump_label_init() earlier") from the powerpc tree and patch: "jump_label: remove bug.h, atomic.h dependencies fo

[PATCH v4 2/6] power: add power sequence library

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

Re: [kernel-hardening] Re: [PATCH v2 1/7] random: Simplify API for random address requests

2016-08-01 Thread Michael Ellerman
Jason Cooper writes: > On Mon, Aug 01, 2016 at 12:47:59PM -0700, Kees Cook wrote: >> On Sun, Jul 31, 2016 at 1:56 PM, Jason Cooper wrote: >> >> I have no new call sites in mind, but it seems safe to add a BUG_ON to >> verify we don't gain callers that don't follow the correct >> expectations. (O

[PATCH] extcon: Split out the extcon APIs for extcon provider driver

2016-08-01 Thread Chanwoo Choi
This patchs split out the extcon APIs of extcon provider driver in order to prevent the direct access of struct extcon_dev by extcon consumer driver. The extcon consumer driver don't need to handle the extcon provider APIs. The extcon subsystem has two type of extcon drivers as following: - extcon

Re: [PATCH] perf/core: set cgroup for cpu contexts for new cgroup events

2016-08-01 Thread kbuild test robot
Hi David, [auto build test ERROR on tip/perf/core] [also build test ERROR on v4.7 next-20160801] [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/David-Carrillo-Cisneros/perf-core-set-cgroup-for

Re: [git pull] drm for v4.8

2016-08-01 Thread Linus Torvalds
On Mon, Aug 1, 2016 at 9:32 PM, Dave Airlie wrote: > > This is the main drm pull request for 4.8, I'm down with a cold at the moment > so hopefully this isn't in too bad a state, I finished pulling stuff last > week mostly (nouveau fixes just went in today), so only this message should > be influe

[PATCH] ASoC: simple-card-utils: add missing MODULE_xxx()

2016-08-01 Thread Kuninori Morimoto
From: Kuninori Morimoto simple-card-utils might be used as module, but MODULE_xxx() information was missed. This patch adds it. Otherwise, we will have below error, and can't use it. Specil thanks to Kevin. > insmod simple-card-utils.ko simple_card_utils: module license 'unspecified' taints ker

[PATCH 0/3] remove unnecessary IPI reading uncore events

2016-08-01 Thread David Carrillo-Cisneros
This patch series adds a new flag to the struct perf_event (and a flag field to store it) to allow a PMU to tag a CPU or cgroup event as readable from any CPU in the same package and not just the CPU the event is attached to, even if the event is not currently active. This capability is used with

[PATCH 2/3] perf/core: introduce pmu_event_flags and PMUEF_READ_CPU_PKG

2016-08-01 Thread David Carrillo-Cisneros
Introduce the flag PMUEF_READ_CPU_PKG, useful for uncore events, that allows a PMU to signal the generic perf code that an event is readable on the current CPU if the event is: - active in a CPU in the same package as the current CPU (local CPU) - not active but is attached to a CPU (i.e. event

Re: [kernel-hardening] Re: Linker segfault on powerpc when CONFIG_LKDTM=y (was Re: [kernel-hardening] [PATCH 3/5] lkdtm: add function for testing .rodata section)

2016-08-01 Thread Michael Ellerman
Kees Cook writes: > On Mon, Aug 1, 2016 at 5:37 AM, Michael Ellerman wrote: >> Kees Cook writes: >> >>> This adds a function that lives in the .rodata section. The section >>> flags are corrected using objcopy since there is no way with gcc to >>> declare section flags in an architecture-agnost

Re: [RFC 0/4] tools lib traceevent: Install fixes

2016-08-01 Thread Namhyung Kim
On Mon, Aug 01, 2016 at 07:41:28PM +0200, Jiri Olsa wrote: > hi, > sending traceevent changes to make this lib installable > under rpm spec. > > Basically adding support to: > - install header files > - install version links > > Having this patchset applied over the fedora source, > I could b

[PATCH 3/3] perf/x86: use PMUEF_READ_CPU_PKG in uncore events

2016-08-01 Thread David Carrillo-Cisneros
Add flag to Intel's uncore and RAPL. Signed-off-by: David Carrillo-Cisneros Reviewed-by: Stephane Eranian --- arch/x86/events/intel/rapl.c | 2 ++ arch/x86/events/intel/uncore.c | 2 ++ arch/x86/events/intel/uncore_snb.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/arch/x86/

Re: [PATCH v2 0/6] extcon: Add the support for extcon type and property

2016-08-01 Thread Chanwoo Choi
Hi Guenter, On 2016년 08월 02일 03:18, Guenter Roeck wrote: > On Sun, Jul 31, 2016 at 10:50 PM, Chanwoo Choi wrote: >> This patch-set add the support the extcon type, extcon property >> and the synchronization functions. >> >> The each external connector has the common characters. So, the external >

[PATCH v5 1/3] irqchip/qeic: move qeic driver from drivers/soc/fsl/qe

2016-08-01 Thread Zhao Qiang
move the driver from drivers/soc/fsl/qe to drivers/irqchip, merge qe_ic.h and qe_ic.c into irq-qeic.c. Signed-off-by: Zhao Qiang --- Changes for v2: - modify the subject and commit msg Changes for v3: - merge .h file to .c, rename it with irq-qeic.c Changes for v4: - modif

[PATCH] perf/core: set cgroup for cpu contexts for new cgroup events

2016-08-01 Thread David Carrillo-Cisneros
There is an optimization in perf_cgroup_sched_{in,out} that skips the switch of cgroup events if the old and new cgroups in a task context switch are the same. This optimization interacts with the current code in two ways that cause a cpu context's cgroup (cpuctx->cgrp) to be NULL despite having a

Re: [PATCH v4 0/9] kexec_file_load implementation for PowerPC

2016-08-01 Thread Thiago Jung Bauermann
Hello, Am Donnerstag, 07 Juli 2016, 13:23:26 schrieb Thiago Jung Bauermann: > Note: We are currently discussing whether we need a new syscall so that > userspace can provide a custom device tree for the new kernel. Even if > that ends up being the way forward, it would affect only patches 7 and 8,

[PATCH v5 2/3] irqchip/qeic: merge qeic init code from platforms to a common function

2016-08-01 Thread Zhao Qiang
The codes of qe_ic init from a variety of platforms are redundant, merge them to a common function and put it to irqchip/irq-qeic.c For non-p1021_mds mpc85xx_mds boards, use "qe_ic_init(np, 0, qe_ic_cascade_low_mpic, qe_ic_cascade_high_mpic);" instead of "qe_ic_init(np, 0, qe_ic_cascade_muxed_mpic

[PATCH] perf tools: Fix build failture on perl script context

2016-08-01 Thread Namhyung Kim
On my Archlinux machine, perf faild to build like below: CC scripts/perl/Perf-Trace-Util/Context.o In file included from /usr/lib/perl5/core/perl/CORE/perl.h:3905:0, from Context.xs:23: /usr/lib/perl5/core/perl/CORE/inline.h: In function : /usr/lib/perl5/core/per

Re: [PATCH] mm/slab: Improve performance of gathering slabinfo stats

2016-08-01 Thread Aruna Ramakrishna
Hi Joonsoo, On 08/01/2016 05:55 PM, Joonsoo Kim wrote: Your patch updates these counters not only when a slabs are created and destroyed but also when object is allocated/freed from the slab. This would hurt runtime performance. The counters are not updated for each object allocation/free - o

Re: [PATCH] ASoC: simple-card: fix module load "unknown symbol" issue

2016-08-01 Thread Kevin Hilman
On Mon, Aug 1, 2016 at 6:13 PM, Kuninori Morimoto wrote: > > Hi Kevin > > Thank you for your patch > >> An ASoC driver using simple-card, when built as a module gets the >> following error at module load time: >> >> [ 23.571873] simple_card_utils: Unknown symbol snd_soc_of_parse_daifmt >> (err

Re: [PATCH 1/4] tools lib traceevent: Add install_headers target

2016-08-01 Thread Namhyung Kim
Hi Jiri, On Mon, Aug 01, 2016 at 07:41:29PM +0200, Jiri Olsa wrote: > Adding install_headers target to install all headers > under 'include/traceevent' path, like: > > $ make DESTDIR=/tmp/krava prefix=/usr install_headers > $ find /tmp/krava/ -type f > /tmp/krava/usr/include/traceevent/kbuf

Re: [PATCH] mm/slab: Improve performance of gathering slabinfo stats

2016-08-01 Thread Joonsoo Kim
On Mon, Aug 01, 2016 at 06:43:00PM -0700, Aruna Ramakrishna wrote: > Hi Joonsoo, > > On 08/01/2016 05:55 PM, Joonsoo Kim wrote: > >Your patch updates these counters not only when a slabs are created and > >destroyed but also when object is allocated/freed from the slab. This > >would hurt runtime

arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3000' requires '-mfp32'

2016-08-01 Thread kbuild test robot
Hi Guenter, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 77a87824ed676ca8ff8482e4157d3adb284fd381 commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier date

Re: [PATCH] fs: fix a bug when new_insert_key is not initialization

2016-08-01 Thread zhong jiang
On 2016/8/2 7:05, Andrew Morton wrote: > On Sat, 30 Jul 2016 11:51:09 +0800 zhongjiang wrote: > >> From: zhong jiang >> >> when compile the kenrel code, I happens to the following warn. >> fs/reiserfs/ibalance.c:1156:2: warning: ___new_insert_key___ may be used >> uninitialized in this function.

Re: Insights from doing regression tracking for Linux 4.7

2016-08-01 Thread Rafael J. Wysocki
On Monday, August 01, 2016 09:41:53 PM Thorsten Leemhuis wrote: > In case anyone wonders if I regret doing regression tracking for Linux > 4.7: No, that is not the case. It isn't really fun, but well, I didn't > expect it to be ;-) But FWIW, find below a few thoughts about the whole > regression tr

[PATCH v5 3/3] irqchip/qeic: merge qeic_of_init into qe_ic_init

2016-08-01 Thread Zhao Qiang
qeic_of_init just get device_node of qeic from dtb and call qe_ic_init, pass the device_node to qe_ic_init. So merge qeic_of_init into qe_ic_init to get the qeic node in qe_ic_init. Signed-off-by: Zhao Qiang --- Changes for v2: - modify subject and commit msg - return 0 and add pu

Re: [PATCH 1/3] drm/rockchip: inno_hdmi: add audio support

2016-08-01 Thread Yakir Yang
Hi Mark & Heiko, Ping.. Thanks, - Yakir On 06/15/2016 09:28 PM, Yakir Yang wrote: Using the common hdmi-codec driver to support hdmi audio function. Signed-off-by: Yakir Yang --- drivers/gpu/drm/rockchip/inno_hdmi.c | 237 ++- drivers/gpu/drm/rockchip/i

arch/mips/vdso/elf.S:1:0: error: '-march=r3000' requires '-mfp32'

2016-08-01 Thread kbuild test robot
Hi Alex, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 77a87824ed676ca8ff8482e4157d3adb284fd381 commit: ebb5e78cc63417a35254a791de66e1cc84f963cc MIPS: Initial implementation of a VDSO date: 9 months ago config:

[PATCH 3/3] mm: memcontrol: add sanity checks for memcg->id.ref on get/put

2016-08-01 Thread Vladimir Davydov
Signed-off-by: Vladimir Davydov --- mm/memcontrol.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 58c229071fb1..cf7fb63860e5 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -4032,18 +4032,22 @@ static DEFINE_IDR(mem_cgrou

Re: [RFC][PATCH 4/7] cpufreq / sched: Add flags argument to cpufreq_update_util()

2016-08-01 Thread Steve Muckle
On Tue, Aug 02, 2016 at 01:44:41AM +0200, Rafael J. Wysocki wrote: > On Monday, August 01, 2016 12:59:30 PM Steve Muckle wrote: > > On Mon, Aug 01, 2016 at 04:57:18PM +0200, Rafael J. Wysocki wrote: > > > On Monday, August 01, 2016 09:33:12 AM Dominik Brodowski wrote: > > > > On Mon, Aug 01, 2016 a

[PATCH v3 6/6] extcon: Add EXTCON_DISP_DP and the property for USB Type-C

2016-08-01 Thread Chanwoo Choi
From: Chris Zhong Add EXTCON_DISP_DP for the Display external connector. For Type-C connector the DisplayPort can work as an Alternate Mode(VESA DisplayPort Alt Mode on USB Type-C Standard). The Type-C support both normal and flipped orientation, so add a property to extcon. Signed-off-by: Chris

[PATCH v3 5/6] extcon: Add the synchronization extcon APIs to support the notification

2016-08-01 Thread Chanwoo Choi
This patch adds the synchronization extcon APIs to support the notifications for both state and property. When extcon_*_sync() functions is called, the extcon informs the information from extcon provider to extcon client. The extcon driver may need to change the both state and multiple properties

[PATCH v3 3/6] extcon: Add the support for the capability of each property

2016-08-01 Thread Chanwoo Choi
This patch adds the support of the property capability setting. This function decides the supported properties of each external connector on extcon provider driver. Ths list of new extcon APIs to get/set the capability of property as following: - int extcon_get_property_capability(struct extcon_de

[PATCH v3 2/6] extcon: Add the support for extcon property according to extcon type

2016-08-01 Thread Chanwoo Choi
This patch support the extcon property for the external connector because each external connector might have the property according to the H/W design and the specific characteristics. - EXTCON_PROP_USB_[property name] - EXTCON_PROP_CHG_[property name] - EXTCON_PROP_JACK_[property name] - EXTCON_PR

Re: [RESEND PATCH v2 3/8] clk: rockchip: rk3399: fix incorrect parent for rk3399's {c, g}pll_aclk_perihp_src

2016-08-01 Thread Xing Zheng
Hi Brain, On 2016年08月02日 04:13, Brian Norris wrote: On Mon, Aug 01, 2016 at 05:53:38PM +0800, Xing Zheng wrote: There was a typo, swapping 'c' <--> 'g'. (This patch is updated and am from https://patchwork.kernel.org/patch/9254067/) Signed-off-by: Xing Zheng Signed-off-by: Brian Norris Revie

[PATCH v3 0/6] extcon: Add the support for extcon type and property

2016-08-01 Thread Chanwoo Choi
This patch-set add the support the extcon type, extcon property and the synchronization functions. The each external connector has the common characters. So, the external connectors are able to gather in the specific type. And the each external connectors has the specific H/W desigin to support th

[PATCH v3 4/6] extcon: Rename the extcon_set/get_state() to maintain the function naming pattern

2016-08-01 Thread Chanwoo Choi
This patch just renames the existing extcon_get/set_cable_state_() as following because of maintaining the function naming pattern like as extcon APIs for property. - extcon_set_cable_state_() -> extcon_set_state() - extcon_get_cable_state_() -> extcon_get_state() But, this patch remains the old e

  1   2   3   4   5   6   7   >