[PATCH v15 2/8] perf evlist: Introduce aux evlist

2016-07-10 Thread Wang Nan
An auxiliary evlist is created by perf_evlist__new_aux() using an existing evlist as its parent. An auxiliary evlist can have its own 'struct perf_mmap', but can't have any other data. User should use its parent instead when accessing other data. Auxiliary evlists are containers of 'struct perf_mm

Re: [PATCH v2 2/5] usb: DT binding documentation for qoriq usb 2.0 controller

2016-07-10 Thread Peter Chen
On Sat, Jul 09, 2016 at 10:00:53AM +0530, Rajesh Bhagat wrote: > Describes the qoriq usb 2.0 controller driver binding, currently used > for LS1021A and LS1012A platform. > > Signed-off-by: Rajesh Bhagat > --- > Changes in v2: > - Adds DT binding documentation for qoriq usb 2.0 controller > -

linux-next: manual merge of the pwm tree with the regulator tree

2016-07-10 Thread Stephen Rothwell
Hi Thierry, Today's linux-next merge of the pwm tree got a conflict in: drivers/regulator/pwm-regulator.c between commit: 830583004e61 ("regulator: pwm: Drop unneeded pwm_enable() call") 27bfa8893b15 ("regulator: pwm: Support for enable GPIO") c2588393e631 ("regulator: pwm: Fix regulato

[PATCH v15 6/8] perf tools: Enable overwrite settings

2016-07-10 Thread Wang Nan
This patch allows following config terms and option: Globally setting events to overwrite; # perf record --overwrite ... Set specific events to be overwrite or no-overwrite. # perf record --event cycles/overwrite/ ... # perf record --event cycles/no-overwrite/ ... Add missing config terms a

[PATCH v15 7/8] perf tools: Don't warn about out of order event if write_backward is used

2016-07-10 Thread Wang Nan
If write_backward attribute is set, records are written into kernel ring buffer from end to beginning, but read from beginning to end. To avoid 'XX out of order events recorded' warning message (timestamps of records is in reverse order when using write_backward), suppress the warning message if wr

[PATCH v15 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-07-10 Thread Wang Nan
Create an auxiliary evlist for overwritable events. Before mmap, build this evlist and set 'overwrite' and 'backward' attribute. Since perf_evlist__mmap_ex() only maps events when evsel->overwrite matches evlist's corresponding attributes, with these two evlists an event goes to either rec->evlist

[PATCH v15 3/8] perf tests: Add testcase for auxiliary evlist

2016-07-10 Thread Wang Nan
Improve test backward-ring-buffer, trace both enter and exit event of prctl() syscall, utilize auxiliary evlist to mmap enter and exit event into separated mmaps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: Nilay V

[PATCH v15 1/8] perf tools: Drop redundant evsel->overwrite indicator

2016-07-10 Thread Wang Nan
From: Arnaldo Carvalho de Melo evsel->overwrite indicator means an event should be put into overwritable ring buffer. In current implementation, it equals to evsel->attr.write_backward. To reduce compliexity, remove evsel->overwrite, use evsel->attr.write_backward instead. In addition, in __perf

[PATCH v15 5/8] perf record: Read from overwritable ring buffer

2016-07-10 Thread Wang Nan
overwrite_evt_state is introduced to reflect the state of overwritable ring buffers. It is a state machine with following states: .(forbid)_. | V NOTREADY -(0)-> RUNNING --(1)--> DATA_PENDING --(

[PATCH v15 0/8] perf tools: Support overwritable ring buffer

2016-07-10 Thread Wang Nan
This patch set enables daemonized perf recording by utilizing overwritable backward ring buffer. With this feature one can put perf background, and dump ring buffer records by a SIGUSR2 when he/she find something unusual. For example, following command record system calls, schedule events and sampl

Re: [PATCH v5 2/3] pwm: iproc: Add support for Broadcom iproc pwm controller

2016-07-10 Thread Yendapally Reddy Dhananjaya Reddy
Hi Thierry, On Fri, Jul 8, 2016 at 8:46 PM, Thierry Reding wrote: > On Tue, Jul 05, 2016 at 02:00:25AM -0400, Yendapally Reddy Dhananjaya Reddy > wrote: >> Add support for the PWM controller present in Broadcom's iProc >> family of SoCs.It has been tested on the Northstar+ bcm958625HR board. >>

[PATCH v15 8/8] perf tools: Add --tail-synthesize option

2016-07-10 Thread Wang Nan
When working with overwritable ring buffer there's a inconvenience problem: if perf dumps data after a long period after it starts, non-sample events may lost, which makes following 'perf report' unable to identify proc name and mmap layout. For example: # perf record -m 4 -e raw_syscalls:* -g --

Re: [PATCH v2 1/5] drivers: usb: chipidea: Add qoriq platform driver

2016-07-10 Thread Peter Chen
On Sat, Jul 09, 2016 at 10:00:52AM +0530, Rajesh Bhagat wrote: > Adds qoriq platform driver for chipidea controller, > verfied on LS1021A and LS1012A platforms. > > Signed-off-by: Rajesh Bhagat > --- > Changes in v2: > - Replaced Freescale with QorIQ in comments section > - Added macros to remo

Re: [PATCH v5 7/7] ARM: dts: sun9i: Switch to the AC100 RTC clock outputs for osc32k

2016-07-10 Thread Maxime Ripard
Hi, On Fri, Jul 08, 2016 at 10:33:42PM +0800, Chen-Yu Tsai wrote: > The 32.768 kHz clock inside the A80 SoC is fed from an external source, > typically the AC100 RTC module. > > Make the osc32k placeholder a fixed-factor clock so board dts files can > specify its source. > > Signed-off-by: Chen-

[PATCH] cdrom: support read sub-channel command in LBA format

2016-07-10 Thread Veeraiyan Chidambaram (RBEI/ECF32)
Hello Jens, In CDROM Linux driver code, "Read Sub channel" format is hard coded with CDROM_MSF format only in the function cdrom_read_subchannel() and mmc_ioctl_cdrom_subchannel() in cdrom.c. Hence, irrespective of "Read Sub channel" command with CDROM_LBA/CDROM_MSF format, the reported Respo

Re: bug in memcg oom-killer results in a hung syscall in another process in the same cgroup

2016-07-10 Thread Michal Hocko
On Sat 09-07-16 16:49:32, Shayan Pooya wrote: > I came across the following issue in kernel 3.16 (Ubuntu 14.04) which > was then reproduced in kernels 4.4 LTS: > After a couple of of memcg oom-kills in a cgroup, a syscall in > *another* process in the same cgroup hangs indefinitely. > > Reproducin

[PATCH 1/2] kexec: remove unnecessary unusable_pages

2016-07-10 Thread zhongjiang
From: zhong jiang In general, kexec alloc pages from buddy system, it cannot exceed the physical address in the system. The patch just remove this code, no functional change. Signed-off-by: zhong jiang --- include/linux/kexec.h | 1 - kernel/kexec_core.c | 13 - 2 files changed

[PATCH 2/2] kexec: add a pmd huge entry condition during the page table

2016-07-10 Thread zhongjiang
From: zhong jiang when image is loaded into kernel, we need set up page table for it. and all valid pfn also set up new mapping. it will set up a pmd huge entry if pud_present is true. relocate_kernel points to code segment can locate in the pmd huge entry in init_transtion_pgtable. therefore, w

[PATCH v4 2/3] iio: adc: mt2701: Add Mediatek auxadc driver for mt2701.

2016-07-10 Thread Zhiyong Tao
Add Mediatek auxadc driver based on iio. It will register a device in iio and support iio. So thermal can read auxadc channel to sample data by iio device. It is tested successfully on mt2701 platform. Mt8173 and mt6577 platforms are not tested. But the expectation is compatible. Signed-off-by: Zh

Re: [patch] crypto: sha256-mb - cleanup a || vs | typo

2016-07-10 Thread Geert Uytterhoeven
Hi Linus, On Fri, Jul 8, 2016 at 7:19 PM, Linus Torvalds wrote: > (c) > // This can be a single line. Or many. Your choice. > The (c) form is particularly good for things like enum or structure > member comments at the end of code, where you might want to align > things up, but the ending

[PATCH v4 1/3] dt-bindings: auxadc: Add binding document for Mediatek auxadc.

2016-07-10 Thread Zhiyong Tao
The commit adds the device tree binding documentation for the mediatek auxadc found on Mediatek MT2701. Thermal gets auxadc sample data by iio device. So the commit changes auxadc device tree binding documentation from /soc/mediatek/auxadc.txt to /iio/adc/mt6577_auxadc.txt. Signed-off-by: Zhiyong

[PATCH v4 3/3] arm: dts: mt2701: Add auxadc node.

2016-07-10 Thread Zhiyong Tao
The commit adds auxadc nodes to the Mediatek MT2701 dtsi file. Signed-off-by: Zhiyong Tao --- arch/arm/boot/dts/mt2701.dtsi |9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 42d5a37..c0a2644 100644 --- a/arch/arm/b

[PATCH v4 0/3] AUXADC: Mediatek auxadc driver

2016-07-10 Thread Zhiyong Tao
This series includes three patches: 1.Change the device tree binding documentation. 2.Add auxadc driver based on linux iio. 3.Add auxadc nodes in the mediatek MT2701 dtsi file. Changes in patch v4: 1).Change the file name 'mt65xx_auxdc.txt' to 'mt6577_auxdc.txt'. 2).Remove 'break' after 'return' i

Re: [PATCH 1/3] Add a new field to struct shrinker

2016-07-10 Thread Michal Hocko
On Sat 09-07-16 04:43:31, Janani Ravichandran wrote: > Struct shrinker does not have a field to uniquely identify the shrinkers > it represents. It would be helpful to have a new field to hold names of > shrinkers. This information would be useful while analyzing their > behavior using tracepoints.

Re: [PATCH v2 4/4] kernel/time/clockevents: compensate for monotonic clock's dynamic frequency

2016-07-10 Thread Nicolai Stange
Nicolai Stange writes: > With NOHZ_FULL and one single well-isolated, CPU consumptive task, one > would expect approximately one clockevent interrupt per second. However, on > my Intel Haswell where the monotonic clock is the TSC monotonic clock and > the clockevent device is the TSC deadline dev

Re: [tip:perf/core] Revert "perf/x86/intel, watchdog: Switch NMI watchdog to ref cycles on x86"

2016-07-10 Thread Andi Kleen
On Sun, Jul 10, 2016 at 12:03:41PM -0700, tip-bot for Ingo Molnar wrote: > Commit-ID: 44530d588e142a96cf0cd345a7cb8911c4f88720 > Gitweb: http://git.kernel.org/tip/44530d588e142a96cf0cd345a7cb8911c4f88720 > Author: Ingo Molnar > AuthorDate: Sun, 10 Jul 2016 20:58:36 +0200 > Committer: Ing

Re: [PATCH v6] ASoC: rockchip: Add machine driver for RK3399 GRU Boards

2016-07-10 Thread Xing Zheng
Hi Mark, In your opinion, is there anything needs to be optimized in this patch? Thanks. On 2016年06月20日 21:08, Rob Herring wrote: On Thu, Jun 16, 2016 at 08:40:58PM +0800, Xing Zheng wrote: Because we need to support the multiple codecs (MAX98357A/RT5514/DA7219) on the RK3399 GRU boards, t

Re: [RFC][PATCH v2 3/3] mm/page_owner: track page free call chain

2016-07-10 Thread Joonsoo Kim
On Fri, Jul 08, 2016 at 09:11:32PM +0900, Sergey Senozhatsky wrote: > Extend page_owner with free_pages() tracking functionality. This adds to the > dump_page_owner() output an additional backtrace, that tells us what path has > freed the page. > > Aa a trivial example, let's assume that do_some_f

Re: [LEDE-DEV] DHCP via bridge in case of IPv4

2016-07-10 Thread Alexey Brodkin
Hi Russel, On Sun, 2016-07-10 at 00:19 -0700, Russell Senior wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > "Alexey" == Alexey Brodkin writes: > Alexey> Hi Aaron, > Alexey> On Sat, 2016-07-09 at 07:47 -0400, Aaron Z wrote: > > > > > > > > On Sat, Jul 9, 2016 at 4:37 AM, Alexey

linux-next: build warning after merge of the net-next tree

2016-07-10 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (arm multi_v7_defconfig) produced this warning (CONFIG_MPLS is disabled): net/ipv4/tunnel4.c: In function 'tunnel4_init': net/ipv4/tunnel4.c:223:1: warning: label 'err_mpls' defined but not used [-Wunused-label] err_mpls: ^ and

Re: [PATCH v7 0/11] Output raw touch data via V4L2

2016-07-10 Thread Hans Verkuil
On 07/08/2016 01:25 PM, Nick Dyer wrote: > This is a series of patches to add output of raw touch diagnostic data via > V4L2 > to the Atmel maXTouch and Synaptics RMI4 drivers. > > It's a rewrite of the previous implementation which output via debugfs: it now > uses a V4L2 device in a similar way

Re: [PATCH v2 04/13] KVM: x86: dynamic kvm_apic_map

2016-07-10 Thread Yang Zhang
On 2016/7/8 1:15, Radim Krčmář wrote: x2APIC supports up to 2^32-1 LAPICs, but most guest in coming years will have slighly less VCPUs. Dynamic size saves memory at the cost of turning one constant into a variable. apic_map mutex had to be moved before allocation to avoid races with cpu hotplug

Re: [PATCH v2 11/13] KVM: x86: add KVM_CAP_X2APIC_API

2016-07-10 Thread Yang Zhang
On 2016/7/8 1:15, Radim Krčmář wrote: KVM_CAP_X2APIC_API can be enabled to extend APIC ID in get/set ioctl and MSI addresses to 32 bits. Both are needed to support x2APIC. The capability has to be toggleable and disabled by default, because get/set ioctl shifted and truncated APIC ID to 8 bits

[lkp] [btrfs] 407237cea1: RIP: [] btrfs_init_free_space_ctl+0x41/0x90

2016-07-10 Thread kernel test robot
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 407237cea1a068b2fad0455654c2f33266df79d2 ("btrfs: pull node/sector/stripe sizes out of root and into fs_info") in testcase: boot on test machine: 2 threads qemu-system-x86_64

linux-next: manual merge of the kvm-ppc-paulus tree with the fsl tree

2016-07-10 Thread Stephen Rothwell
Hi Paul, Today's linux-next merge of the kvm-ppc-paulus tree got a conflict in: arch/powerpc/include/asm/paca.h between commit: c223c90386bc ("powerpc32: provide VIRT_CPU_ACCOUNTING") from the fsl tree and commit: fd7bacbca47a ("KVM: PPC: Book3S HV: Fix TB corruption in guest exit path

Re: [kernel-hardening] Re: [PATCH 9/9] mm: SLUB hardened usercopy support

2016-07-10 Thread Joonsoo Kim
On Fri, Jul 08, 2016 at 04:48:38PM -0400, Kees Cook wrote: > On Fri, Jul 8, 2016 at 1:41 PM, Kees Cook wrote: > > On Fri, Jul 8, 2016 at 12:20 PM, Christoph Lameter wrote: > >> On Fri, 8 Jul 2016, Kees Cook wrote: > >> > >>> Is check_valid_pointer() making sure the pointer is within the usable >

Re: [PATCH v6] mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB

2016-07-10 Thread Joonsoo Kim
On Fri, Jul 08, 2016 at 12:36:50PM +0200, Alexander Potapenko wrote: > For KASAN builds: > - switch SLUB allocator to using stackdepot instead of storing the >allocation/deallocation stacks in the objects; > - change the freelist hook so that parts of the freelist can be put >into the qua

Re: [PATCH v3] Add tw5864 driver

2016-07-10 Thread Hans Verkuil
Hi Andrey, Thanks for this driver. Some review comments below: On 07/09/2016 09:46 PM, Andrey Utkin wrote: > From: Andrey Utkin > > > Changes in v3 since v2: > - Kconfig: select VIDEOBUF2_DMA_CONTIG, not SG > - drop i2c code as unused > - Dropped num_buffers check in queue_setup as suggeste

Re: [PATCH 3/3] ARM: dts: exynos: correct the rtc compatible value for exynos5

2016-07-10 Thread Krzysztof Kozlowski
On 07/09/2016 11:23 AM, Randy Li wrote: > Those platforms are reported to use the same rtc IP core > as exynos3250's. Insufficient. Exynos4 also has to be updated. Actually all SoC from SoC family requires rtc src clock. I think S3C6410 also requires it but I don't have all the data necessary to c

Re: [PATCH 2/3] rtc: s3c: add device data for samsung,exynos3250-rtc

2016-07-10 Thread Krzysztof Kozlowski
On 07/09/2016 11:23 AM, Randy Li wrote: > The device data for samsung,exynos3250-rtc and samsung,s3c6410-rtc > are just have a difference, but keeping using the same device data > would cause the platform using the other IP core not work. I cannot understand what you wanted to say here. Please rep

Re: [PATCH 1/3] Revert "drivers/rtc/rtc-s3c.c: add .needs_src_clk to s3c6410 RTC data"

2016-07-10 Thread Krzysztof Kozlowski
On 07/09/2016 11:23 AM, Randy Li wrote: > This reverts commit 8792f7772f4f40ffc68bad5f28311205584b734d. > The s3c6410 rtc don't use rtc_src property, that property is designed > for Exynos5250 and Exynos5440. The problem reported in the commit > I mentioned should be fixed in the other way. ... so

Re: [PATCH v2 19/22] usb: chipidea: msm: Handle phy power states

2016-07-10 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:21:10PM -0700, Stephen Boyd wrote: > The ULPI phy on qcom platforms needs to be initialized and > powered on after a USB reset and before we toggle the run/stop > bit. Otherwise, the phy locks up and doesn't work properly. Hook > the phy initialization into the RESET even

Re: [PATCH v2 20/22] usb: chipidea: msm: Be silent on probe defer errors

2016-07-10 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:21:11PM -0700, Stephen Boyd wrote: > If something fails in ci_hdrc_add_device() due to probe defer, we > shouldn't print an error message. Be silent in this case as we'll > try probe again later. > > Cc: Peter Chen > Cc: Greg Kroah-Hartman > Signed-off-by: Stephen Boyd

Re: [PATCH 0/3] making rtc cores from s3c6410 and exynos3250 both work

2016-07-10 Thread Krzysztof Kozlowski
On 07/09/2016 11:23 AM, Randy Li wrote: > The 8792f7772f4f40ffc68bad5f28311205584b734d would just make those > platform using rtc core from exynos3250 work but have a huge > effect on those platforms using the rtc core from s3c6410. > These patches would fix this problem. > Which problem? What h

Re: [PATCH v2 18/22] usb: chipidea: msm: Add reset controller for PHY POR bit

2016-07-10 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:21:09PM -0700, Stephen Boyd wrote: > The MSM chipidea wrapper has two bits that are used to reset the > first or second phy. Add support for these bits via the reset > controller framework, so that phy drivers can reset their > hardware at the right time during initializa

Re: [PATCH v2 17/22] usb: chipidea: msm: Make platform data driver local instead of global

2016-07-10 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:21:08PM -0700, Stephen Boyd wrote: > If two devices are probed with this same driver, they'll share > the same platform data structure, while the chipidea core layer > writes and modifies it. This can lead to interesting results > especially if one device is an OTG type c

[RFC PATCH v2] clk: move check of CLK_SET_RATE_GATE flag to clk_propagate_rate_change()

2016-07-10 Thread jiada_wang
From: Jiada Wang Previously CLK_SET_RATE_GATE flag is only checked in clk_set_rate() which only ensures the clock being called by clk_set_rate() won't change rate when it has been prepared if CLK_SET_RATE_GATE flag is set. But a clk_set_rate() request may propagate rate change to these clocks fro

Re: [PATCH v2 16/22] usb: chipidea: msm: Restore wrapper settings after reset

2016-07-10 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:21:07PM -0700, Stephen Boyd wrote: > When the RESET bit is set in the USBCMD register it resets quite > a few of the wrapper's registers to their reset state. This > includes the GENCONFIG and GENCONFIG2 registers. Currently this > is done by the usb phy and ehci-msm driv

Re: linux-next: build failure after merge of the pm tree

2016-07-10 Thread Stephen Rothwell
Hi Mika, On Mon, 11 Jul 2016 07:48:17 +0300 Mika Westerberg wrote: > > Looks like it is the module name (configfs.o) that confuses modpost or > linker. The below patch fixes it for me. That makes sense. Thanks. -- Cheers, Stephen Rothwell

Re: linux-next: manual merge of the clockevents tree with the arm-soc tree

2016-07-10 Thread Stephen Rothwell
Hi all, On Thu, 7 Jul 2016 14:12:26 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the clockevents tree got a conflict in: > > arch/arm/Kconfig > > between commit: > > c86f51737f8d ("ARM: clps711x: Switch to MULTIPLATFORM") > > from the arm-soc tree and commit: > > 250e

Re: [PATCH v15 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-07-10 Thread Baolin Wang
Hi Felipe, On 1 July 2016 at 14:05, Baolin Wang wrote: > Currently the Linux kernel does not provide any standard integration of this > feature that integrates the USB subsystem with the system power regulation > provided by PMICs meaning that either vendors must add this in their kernels > or US

linux-next: manual merge of the tip tree with the kspp tree

2016-07-10 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/x86/kernel/x86_init.c between commit: 255303026193 ("x86: apply more __ro_after_init and const") from the kspp tree and commit: 1bf8915ae515 ("x86/tsc: Enumerate SKL cpu_khz and tsc_khz via CPUID") from the tip tr

Re: [lkp] [ext4] 5405511e1a: ltp.acl_test01.fail]

2016-07-10 Thread Ye Xiaolong
Hi, Theodore On Sun, Jul 10, 2016 at 11:15:53PM -0400, Theodore Ts'o wrote: >On Mon, Jul 11, 2016 at 09:59:54AM +0800, kernel test robot wrote: >> >> FYI, we noticed the following commit: >> >> https://github.com/0day-ci/linux >> Vegard-Nossum/ext4-validate-number-of-clusters-in-group/20160708-

Re: [PATCH v7 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga

2016-07-10 Thread David Miller
From: Date: Thu, 7 Jul 2016 20:23:30 -0700 > From: Tien Hock Loh > > This adds support for TSE PCS that uses SGMII adapter when the phy-mode of > the dwmac is set to sgmii. > > Signed-off-by: Tien Hock Loh > Acked-by: Rob Herring Applied to net-next, thanks.

Re: [PATCH] spi: spi-ti-qspi: clear wlen field while setting word length.

2016-07-10 Thread Vignesh R
Hi Prahlad, On Sunday 10 July 2016 01:35 AM, Prahlad V wrote: > When a word length of 1 byte is selected and writing data of length > more than QSPI_WLEN_MAX_BYTES, first MAX_BYTES will be transfered > and remaining will be transfered byte by byte. In that case wlen > field should be cleared befor

Re: [PATCH v3] sched/deadline: remove useless param from setup_new_dl_entity

2016-07-10 Thread Xunlei Pang
On 2016/07/08 at 19:28, Juri Lelli wrote: > setup_new_dl_entity() takes two parameters, but it only actually uses > one of them, under a different name, to setup a new dl_entity, after: > > 2f9f3fdc928 "sched/deadline: Remove dl_new from struct sched_dl_entity" > > as we currently do > > setup_ne

Re: [RFT PATCH v5 0/3] Fix preemption timer optimization while nested guests run

2016-07-10 Thread Wanpeng Li
2016-07-08 20:02 GMT+08:00 Paolo Bonzini : > As mentioned earlier, I don't have a reproducer yet that requires any > changes beyond Wanpeng's (patch 1)---it's possible of course to write > a kvm-unit-test testcase but I haven't had time for that yet. > > Thanks, > > Paolo Bonzini (2): > KVM: VMX:

[RFC PATCH] clk: move check of CLK_SET_RATE_GATE flag to clk_propagate_rate_change()

2016-07-10 Thread jiada_wang
From: Jiada Wang Previously CLK_SET_RATE_GATE flag is only checked in clk_set_rate() which only ensures the clock being called by clk_set_rate() won't change rate when it has been prepared if CLK_SET_RATE_GATE flag is set. But a clk_set_rate() request may propagate rate change to these clocks fro

linux-next: manual merge of the block tree with the f2fs tree

2016-07-10 Thread Stephen Rothwell
Hi Jens, Today's linux-next merge of the block tree got a conflict in: fs/f2fs/data.c between commits: 19a5f5e2ef37 ("f2fs: drop any block plugging") 52763a4b7a21 ("f2fs: detect host-managed SMR by feature flag") 78682f794479 ("f2fs: fix to avoid reading out encrypted data in page cache

Re: [PATCH v2 15/22] usb: chipidea: msm: Mux over secondary phy at the right time

2016-07-10 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:21:06PM -0700, Stephen Boyd wrote: > We need to pick the correct phy at runtime based on how the SoC > has been wired onto the board. If the secondary phy is used, take > it out of reset and mux over to it by writing into the TCSR > register. Make sure to do this on reset

Re: linux-next: build failure after merge of the pm tree

2016-07-10 Thread Mika Westerberg
On Mon, Jul 11, 2016 at 11:46:53AM +1000, Stephen Rothwell wrote: > Hi Rafael, > > After merging the pm tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > ERROR: "configfs_unregister_subsystem" [samples/configfs/configfs_sample.ko] > undefined! > ERROR: "configfs_regist

Re: [PATCH v2 14/22] usb: chipidea: msm: Add proper clk and reset support

2016-07-10 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:21:05PM -0700, Stephen Boyd wrote: > The msm chipidea controller uses two main clks, an AHB clk to > read/write the MMIO registers and a core clk called the system > clk that drives the controller itself. Add support for these clks > as they're required in all designs. >

Re: [PATCH] vcodec: mediatek: Add g/s_selection support for V4L2 Encoder

2016-07-10 Thread Hans Verkuil
Hi Tiffany, My apologies for the delay, but here is my review at last: On 05/30/2016 09:52 AM, Tiffany Lin wrote: > This patch add g/s_selection support for MT8173 > > Signed-off-by: Tiffany Lin > --- > drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c | 74 > > 1 file

Re: [PATCH 6/9] x86, pkeys: add pkey set/get syscalls

2016-07-10 Thread Andy Lutomirski
On Jul 9, 2016 1:37 AM, "Ingo Molnar" wrote: > > > * Dave Hansen wrote: > > > On 07/08/2016 12:18 AM, Ingo Molnar wrote: > > > > > So the question is, what is user-space going to do? Do any glibc patches > > > exist? How are the user-space library side APIs going to look like? > > > > My goal at

Re: [PATCH] arm64: defconfig: Enable more IP blocks for Exynos7 and Exynos5433

2016-07-10 Thread Alim Akhtar
Hi Krzysztof, On 07/09/2016 01:47 AM, Krzysztof Kozlowski wrote: Enable more drivers for IP blocks for existing Exynos7 and upcoming Exynos5433: 1. SPI, 2. Watchdog, 3. USB: DWC3, Exynos EHCI and OHCI, 4. Exynos ADC, 5. Samsung PWM. These are already used by Exynos7 Espresso board or will be us

Re: [PATCH v3 0/9] Add MT8173 Video Decoder Driver

2016-07-10 Thread tiffany lin
Hi Hans, On Fri, 2016-07-08 at 13:44 +0200, Hans Verkuil wrote: > On 07/07/2016 12:16 PM, tiffany lin wrote: > > Hi Hans, > > > > > > On Wed, 2016-07-06 at 15:19 +0200, Hans Verkuil wrote: > >> Hi Tiffany, > >> > >> I plan to review this patch series on Friday, but one obvious question is > >> w

Linux 4.7-rc7

2016-07-10 Thread Linus Torvalds
We've had a nicely calm week, which is what I expected - the last rc really was bigger just due to random timing issues, and not some worrying pattern about this release cycle. Whew. Anyway, there's a couple of regressions still being looked at, but unless anything odd happens, this is going to be

RE: [PATCH v2 08/17] libnvdimm: introduce nvdimm_flush() and nvdimm_has_flush()

2016-07-10 Thread Li, Philip
ERROR on next-20160708] > > [cannot apply to v4.7-rc6] > > [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/Dan-Williams/replace- > pcommit-with-A

Re: [PATCH 3/3] net: hisilicon: Add Fast Ethernet MAC driver

2016-07-10 Thread Dongpo Li
Hi Arnd, On 2016/6/28 17:34, Arnd Bergmann wrote: > On Tuesday, June 28, 2016 5:21:19 PM CEST Dongpo Li wrote: >> On 2016/6/15 5:20, Arnd Bergmann wrote: >>> On Tuesday, June 14, 2016 9:17:44 PM CEST Li Dongpo wrote: On 2016/6/13 17:06, Arnd Bergmann wrote: > On Monday, June 13, 2016 2:07

Re: [PATCH v2 12/22] usb: chipidea: msm: Rely on core to override AHBBURST

2016-07-10 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:21:03PM -0700, Stephen Boyd wrote: > The core framework already handles setting this parameter with a > platform quirk. Add the appropriate flag so that we always set > AHBBURST to 0. Technically DT should be doing this, but we always > do it for msm chipidea devices so s

Re: [lkp] [ACPI / APEI] a3e2acc5e3: kmsg.BERT:Can't_request_iomem_region<#-#>

2016-07-10 Thread Tony Luck
I'm very surprised that there was a BERT table on an Atom machine. More details about the machine please. Also BIOS version. Sent from my iPhone > On Jul 10, 2016, at 18:43, kernel test robot wrote: > > > FYI, we noticed the following commit: > > https://git.kernel.org/pub/scm/linux/kernel/g

Re: [PATCH v2 11/22] usb: chipidea: msm: Mark device as runtime pm active

2016-07-10 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:21:02PM -0700, Stephen Boyd wrote: > We're not properly marking the glue layer/wrapper device as > runtime active, so runtime PM believes that the hardware state is > inactive when we call pm_runtime_enable() in this driver. This > causes a problem when the glue layer has

Re: [PATCH v4 3/9] kexec_file: Factor out kexec_locate_mem_hole from kexec_add_buffer.

2016-07-10 Thread Dave Young
On 07/07/16 at 01:23pm, Thiago Jung Bauermann wrote: > kexec_locate_mem_hole will be used by the PowerPC kexec_file_load > implementation to find free memory for the purgatory stack. > > Signed-off-by: Thiago Jung Bauermann > Cc: Eric Biederman > Cc: Dave Young > --- > include/linux/kexec.h |

Re: [PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist

2016-07-10 Thread Wangnan (F)
On 2016/7/8 22:48, Jiri Olsa wrote: On Thu, Jul 07, 2016 at 05:34:44AM +, Wang Nan wrote: SNIP ret = TEST_FAIL; - err = do_test(evlist, opts.mmap_pages, &sample_count, + err = do_test(evlist, aux_evlist, opts.mmap_pages, + &enter_sample_count, &exi

Re: [PATCH v4 2/9] kexec_file: Change kexec_add_buffer to take kexec_buf as argument.

2016-07-10 Thread Dave Young
On 07/07/16 at 01:23pm, Thiago Jung Bauermann wrote: > Adapt all callers to the new function prototype. > > In addition, change the type of kexec_buf.buffer from char * to void *. > There is no particular reason for it to be a char *, and the change > allows us to get rid of 3 existing casts to ch

Re: [PATCH v4 1/9] kexec_file: Allow arch-specific memory walking for kexec_add_buffer

2016-07-10 Thread Dave Young
On 07/07/16 at 01:23pm, Thiago Jung Bauermann wrote: > Allow architectures to specify a different memory walking function for > kexec_add_buffer. x86 uses iomem to track reserved memory ranges, but > PowerPC uses the memblock subsystem. > > Signed-off-by: Thiago Jung Bauermann > Cc: Eric Biederma

linux-next: build failure after merge of the drm-msm tree

2016-07-10 Thread Stephen Rothwell
Hi Rob, After merging the drm-msm tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/gpu/drm/msm/hdmi/hdmi.c:523:15: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .hw_params = msm_hdmi_audio_hw_params, ^

RE: [PATCH v2 4/4] ACPI / button: Add document for ACPI control method lid device restrictions

2016-07-10 Thread Zheng, Lv
Hi, > From: Benjamin Tissoires [mailto:benjamin.tissoi...@gmail.com] > Subject: Re: [PATCH v2 4/4] ACPI / button: Add document for ACPI control > method lid device restrictions > > Hi, > > On Thu, Jul 7, 2016 at 9:11 AM, Lv Zheng wrote: > > There are many AML tables reporting wrong initial lid

Re: [PATCH v2 10/22] usb: chipidea: Add support for ULPI PHY bus

2016-07-10 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:21:01PM -0700, Stephen Boyd wrote: > Some phys for the chipidea controller are controlled via the ULPI > viewport. Add support for the ULPI bus so that these sorts of > phys can be probed and read/written automatically without having > to duplicate the viewport logic in e

Re: [lkp] [ext4] 5405511e1a: ltp.acl_test01.fail]

2016-07-10 Thread Theodore Ts'o
On Mon, Jul 11, 2016 at 09:59:54AM +0800, kernel test robot wrote: > > FYI, we noticed the following commit: > > https://github.com/0day-ci/linux > Vegard-Nossum/ext4-validate-number-of-clusters-in-group/20160708-041426 > commit 5405511e1a984ab644fa9e29a0d3d958b835ab75 ("ext4: validate number of

[PATCH v3 1/2] dt-bindings: auxadc: Add binding document for Mediatek auxadc.

2016-07-10 Thread Zhiyong Tao
The commit adds the device tree binding documentation for the mediatek auxadc found on Mediatek MT2701. Thermal gets auxadc sample data by iio device. So the commit changes auxadc device tree binding documentation from /soc/mediatek/auxadc.txt to /iio/adc/mt65xx_auxadc.txt. Signed-off-by: Zhiyong

Re: [RFC] arm64: kexec_file_load support

2016-07-10 Thread Dave Young
On 07/08/16 at 11:48am, Thiago Jung Bauermann wrote: > Am Donnerstag, 07 Juli 2016, 14:12:45 schrieb Dave Young: > > If so maybe change a bit from your precious mentioned 7 args proposal like > > below? > > > > struct kexec_file_fd { > > enum kexec_file_type; > > int fd; > > } > > > > str

[PATCH v3 2/2] iio: adc: mt2701: Add Mediatek auxadc driver for mt2701.

2016-07-10 Thread Zhiyong Tao
Add Mediatek auxadc driver based on iio. It will register a device in iio and support iio. So thermal can read auxadc channel to sample data by iio device. It is tested successfully on mt2701 platform. Mt8173 and mt6577 platforms are not tested. But the expectation is compatible. Signed-off-by: Zh

[PATCH v3 0/2] AUXADC: Mediatek auxadc driver

2016-07-10 Thread Zhiyong Tao
This series includes three patches: 1.Change the device tree binding documentation. 2.Add auxadc driver based on linux iio. 3.Add auxadc nodes in the mediatek MT2701 dtsi file. changes in patch v3: 1).Add '#' before 'io-channel-cells' and change 'auxadc@' to 'adc@' in auxadc binding document. 2).

Re: [PATCH v2 05/10] power/reset: Add reset driver support for nuc900

2016-07-10 Thread Paul Gortmaker
[Re: [PATCH v2 05/10] power/reset: Add reset driver support for nuc900] On 11/07/2016 (Mon 10:30) Wan Zongshun wrote: > > > On 2016年07月11日 05:56, Paul Gortmaker wrote: > >On Sun, Jul 10, 2016 at 3:27 AM, Wan Zongshun wrote > >>This driver is to add reset support for nuc900 series, > >>currentl

Re: [PATCH v3 3/9] DocBook/v4l: Add compressed video formats used on MT8173 codec driver

2016-07-10 Thread tiffany lin
Hi Hans, On Fri, 2016-07-08 at 12:23 +0200, Hans Verkuil wrote: > On 05/30/2016 02:29 PM, Tiffany Lin wrote: > > Add V4L2_PIX_FMT_MT21 documentation > > > > Signed-off-by: Tiffany Lin > > --- > > Documentation/DocBook/media/v4l/pixfmt.xml |6 ++ > > 1 file changed, 6 insertions(+) > >

Re: [PATCH v9 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-07-10 Thread Horng-Shyang Liao
Hi Jan, On Fri, 2016-07-08 at 12:17 +0200, Jan Lübbe wrote: > On Do, 2016-06-30 at 15:14 +0800, HS Liao wrote: > [...] > > +Required properties: > > +- compatible: Must be "mediatek,mt8173-gce" > > +- reg: Address range of the GCE unit > > +- interrupts: The interrupt signal from the GCE block > >

[PATCH v2] usb: gadget: f_midi: Add checking if it need align buffer's size to an ep's maxpacketsize

2016-07-10 Thread Baolin Wang
Some gadget device (such as dwc3 gadget) requires quirk_ep_out_aligned_size attribute, which means it need to align the request buffer's size to an ep's maxpacketsize. Thus we add usb_ep_align_maybe() function to check if it is need to align the request buffer's size to an ep's maxpacketsize. Sig

[PATCH] xen_pvscsi: reclaim the ring request when mapping data failed

2016-07-10 Thread Bin Wu
During scsi command queueing, if mapping data fails, we need to reclaim the failed request. Otherwise, the garbage request will be pushed into the ring for the backend to work. Signed-off-by: Bin Wu --- drivers/scsi/xen-scsifront.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scs

PCIe MSI address is not written at pci_enable_msi_range call

2016-07-10 Thread Bharat Kumar Gogada
Hi, I have a query. I see that when we use PCI_MSI_IRQ_DOMAIN to handle MSI's, MSI address is not being written in to end point's PCI_MSI_ADDRESS_LO/HI at the call pci_enable_msi_range. Instead it is being written at the time end point requests irq. Can any one tell the reason why is it handle

Re: [PATCH v4 3/9] kexec_file: Factor out kexec_locate_mem_hole from kexec_add_buffer.

2016-07-10 Thread Dave Young
On 07/10/16 at 04:11pm, Michael Ellerman wrote: > Thiago Jung Bauermann writes: > > > kexec_locate_mem_hole will be used by the PowerPC kexec_file_load > > implementation to find free memory for the purgatory stack. > > > > Signed-off-by: Thiago Jung Bauermann > > Cc: Eric Biederman > > Cc: Dav

Re: [PATCH] x86: fix rdmsr MSR_PLATFORM_INFO unsafe warning in kvm guest

2016-07-10 Thread Wanpeng Li
Hi Ingo, Thomas, 2016-06-22 9:28 GMT+08:00 Wanpeng Li : > From: Wanpeng Li > > [ cut here ] > WARNING: CPU: 0 PID: 0 at arch/x86/mm/extable.c:50 > ex_handler_rdmsr_unsafe+0x6a/0x70 > unchecked MSR access error: RDMSR from 0xce > Modules linked in: > CPU: 0 PID: 0 Comm: swa

PCIe MSI address is not written at pci_enable_msi_range call

2016-07-10 Thread Bharat Kumar Gogada
Hi, I have a query. I see that when we use PCI_MSI_IRQ_DOMAIN to handle MSI's, MSI address is not being written in to end point's PCI_MSI_ADDRESS_LO/HI at the call pci_enable_msi_range. Instead it is being written at the time end point requests irq. Can any one tell the reason why is it handle

Re: [PATCH v2 09/22] usb: chipidea: Kick OTG state machine for AVVIS with vbus extcon

2016-07-10 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:21:00PM -0700, Stephen Boyd wrote: > Force the OTG state machine to go forward when we're using an > extcon for vbus detection. In this case, the controller may never > raise an interrupt for AVVIS, so we need to simulate the event by > toggling the appropriate OTG fsm bi

linux-next: manual merge of the drm tree with the jc_docs tree

2016-07-10 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in: Documentation/index.rst between commit: 17defc282fe6 ("Documentation: add meta-documentation for Sphinx and kernel-doc") from the jc_docs tree and commit: cb597fcea5c2 ("Documentation/gpu: add new gpu.rst converted fr

Re: [PATCH v2 05/10] power/reset: Add reset driver support for nuc900

2016-07-10 Thread Wan Zongshun
On 2016年07月11日 05:56, Paul Gortmaker wrote: On Sun, Jul 10, 2016 at 3:27 AM, Wan Zongshun wrote This driver is to add reset support for nuc900 series, currently, it only supports nuc970 SoC reset. Signed-off-by: Wan Zongshun --- drivers/power/reset/Kconfig| 7 +++ drivers/power/

Re: [PATCH 2/2] net: ethernet: bcmgenet: use phy_ethtool_{get|set}_link_ksettings

2016-07-10 Thread Florian Fainelli
Le 10/07/2016 15:50, Philippe Reynes a écrit : > Hi all, > > > On 05/07/16 23:40, Ben Hutchings wrote: >> On Tue, 2016-07-05 at 14:15 -0700, Florian Fainelli wrote: >>> On 07/05/2016 02:07 PM, Philippe Reynes wrote: Hi Florian, On 05/07/16 06:30, Florian Fainelli wrote: > Le 04

Re: [PATCH] usb: gadget: f_midi: Add checking if it need align buffer's size to an ep's maxpacketsize

2016-07-10 Thread Baolin Wang
On 8 July 2016 at 21:04, Michal Nazarewicz wrote: > On Fri, Jul 08 2016, Baolin Wang wrote: >> On 7 July 2016 at 20:51, Michal Nazarewicz wrote: >>> On Thu, Jul 07 2016, Baolin Wang wrote: Some gadget device (such as dwc3 gadget) requires quirk_ep_out_aligned_size attribute, which means

Re: [PATCH] usb: gadget: f_midi: Add checking if it need align buffer's size to an ep's maxpacketsize

2016-07-10 Thread Baolin Wang
On 8 July 2016 at 21:27, Felipe Balbi wrote: > > Hi again, > > Felipe Balbi writes: >> Michal Nazarewicz writes: >>> On Fri, Jul 08 2016, Baolin Wang wrote: On 7 July 2016 at 20:51, Michal Nazarewicz wrote: > On Thu, Jul 07 2016, Baolin Wang wrote: >> Some gadget device (such as dw

Re: [PATCH] usb: gadget: f_midi: Add checking if it need align buffer's size to an ep's maxpacketsize

2016-07-10 Thread Baolin Wang
On 8 July 2016 at 21:21, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >> Some gadget device (such as dwc3 gadget) requires quirk_ep_out_aligned_size >> attribute, which means it need to align the request buffer's size to an ep's >> maxpacketsize. >> >> Thus we add usb_ep_align_maybe() func

  1   2   3   >