Re: why the count nr_file_pages is not equal to nr_inactive_file + nr_active_file ?

2016-05-13 Thread Aaron Lu
On 05/13/2016 11:58 AM, Xishi Qiu wrote: > I find the count nr_file_pages is not equal to nr_inactive_file + > nr_active_file. > There are 8 cpus, 2 zones in my system. > > I think may be the pagevec trigger the problem, but PAGEVEC_SIZE is only 14. > Does anyone know the reason? One thing I can

[PATCH v5 2/3] Documentation: DT: vdma: Add clock support for dmas

2016-05-13 Thread Kedareswara rao Appana
This patch updates the binding doc with clock description for AXI DMA's. Acked-by: Rob Herring Acked-by: Sören Brinkmann Signed-off-by: Kedareswara rao Appana --- Changes for v5: ---> None. Changes for v4: ---> None. Changes for v3: ---> Added clock support for all the AXI DMA's. Changes for v2

[PATCH v5 3/3] dmaengine: vdma: Add clock support

2016-05-13 Thread Kedareswara rao Appana
Added basic clock support for axi dma's. The clocks are requested at probe and released at remove. Reviewed-by: Shubhrajyoti Datta Signed-off-by: Kedareswara rao Appana --- Changes for v5: ---> None. Changes for v4: ---> Documented struct members as suggested by Soren. ---> Fixed required clock

[PATCH v9 2/2] dmaengine: Add Xilinx zynqmp dma engine driver support

2016-05-13 Thread Kedareswara rao Appana
Added the driver for zynqmp dma engine used in Zynq UltraScale+ MPSoC. This dma controller supports memory to memory and memory to I/O buffer transfers. Signed-off-by: Punnaiah Choudary Kalluri Signed-off-by: Kedareswara rao Appana --- Changes for v9: - Derive the include sg software runtime con

[PATCH v5 0/3] dmaengine: Add clock support for AXI DMAS

2016-05-13 Thread Kedareswara rao Appana
This patch series adds basic clock support for AXI DMAS This patch series is created on top of the dma-next branch. Kedareswara rao Appana (3): dmaengine: vdma: Add config structure to differentiate dmas Documentation: DT: vdma: Add clock support for dmas dmaengine: vdma: Add clock support

[PATCH v9 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

2016-05-13 Thread Kedareswara rao Appana
Device-tree binding documentation for Xilinx zynqmp dma engine used in Zynq UltraScale+ MPSoC. Signed-off-by: Punnaiah Choudary Kalluri Signed-off-by: Kedareswara rao Appana --- Changs in v9: - Removed include sg runtime configuration parameter from the binding doc as suggested by Lars. Change

Re: [PATCH] zram: introduce per-device debug_stat sysfs node

2016-05-13 Thread Sergey Senozhatsky
On (05/13/16 15:58), Sergey Senozhatsky wrote: > On (05/13/16 15:23), Minchan Kim wrote: > [..] > > @@ -737,12 +737,12 @@ static int zram_bvec_write(struct zram *zram, struct > > bio_vec *bvec, u32 index, > > zcomp_strm_release(zram->comp, zstrm); > > zstrm = NULL; > > >

Re: [PATCH RFT 1/2] phylib: add device reset GPIO support

2016-05-13 Thread Uwe Kleine-König
Hello Sergei, On Fri, May 13, 2016 at 12:35:50AM +0300, Sergei Shtylyov wrote: > On 05/12/2016 09:42 PM, Uwe Kleine-König wrote: > >>Index: net-next/drivers/net/phy/mdio_device.c > >>=== > >>--- net-next.orig/drivers/net/phy/mdio_devi

[PATCH v5 1/3] dmaengine: vdma: Add config structure to differentiate dmas

2016-05-13 Thread Kedareswara rao Appana
This patch adds config structure in the driver to differentiate AXI DMA's and to add more features(clock support etc..) to these DMA's. Signed-off-by: Kedareswara rao Appana --- Changes for v5: ---> Rename dma_config struct to xilinx_dma_config as suggested by vinod. Changes for v4: ---> Non

[PATCH 1/1] net: ethernet: Add SGMII support to dwmac-socfpga

2016-05-13 Thread thloh
From: Tien Hock Loh Adds SGMII support for dwmac-socfpga to enable the SGMII PHY when phy-mode of the dwmac is set to sgmii. Signed-off-by: Tien Hock Loh --- .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c| 339 - 1 file changed, 329 insertions(+), 10 deletions(-) diff

Re: [PATCH] zram: introduce per-device debug_stat sysfs node

2016-05-13 Thread Minchan Kim
On Fri, May 13, 2016 at 04:05:53PM +0900, Sergey Senozhatsky wrote: > On (05/13/16 15:58), Sergey Senozhatsky wrote: > > On (05/13/16 15:23), Minchan Kim wrote: > > [..] > > > @@ -737,12 +737,12 @@ static int zram_bvec_write(struct zram *zram, > > > struct bio_vec *bvec, u32 index, > > >

Re: [PATCH v3 3/7] perf tools: Remove the logical that skip buildid cache if symfs is given

2016-05-13 Thread Hekuang
hi 在 2016/5/13 4:23, David Ahern 写道: On 5/12/16 7:09 AM, Arnaldo Carvalho de Melo wrote: Em Thu, May 12, 2016 at 08:43:12AM +, He Kuang escreveu: Symfs dir and buildid dir are two places that perf looks into for symbols, currently, if symfs dir is given, buildid-cache is skipped. In the c

[PATCH] scripts/bloat-o-meter: print percent change

2016-05-13 Thread Vineet Gupta
This adds additional line of output (to end to reduce chances of breaking any existing output parsers) which prints the tot size before and after and the relative difference add/remove: 39/0 grow/shrink: 12408/55 up/down: 362227/-1430 (360797) function old n

Re: [tip:sched/core] sched/fair: Clean up scale confusion

2016-05-13 Thread Vincent Guittot
On 12 May 2016 at 21:42, Yuyang Du wrote: > On Thu, May 12, 2016 at 03:31:27AM -0700, tip-bot for Peter Zijlstra wrote: >> Commit-ID: 1be0eb2a97d756fb7dd8c9baf372d81fa9699c09 >> Gitweb: >> http://git.kernel.org/tip/1be0eb2a97d756fb7dd8c9baf372d81fa9699c09 >> Author: Peter Zijlstra >> Au

Re: why the count nr_file_pages is not equal to nr_inactive_file + nr_active_file ?

2016-05-13 Thread Xishi Qiu
On 2016/5/13 15:00, Aaron Lu wrote: > On 05/13/2016 11:58 AM, Xishi Qiu wrote: >> I find the count nr_file_pages is not equal to nr_inactive_file + >> nr_active_file. >> There are 8 cpus, 2 zones in my system. >> >> I think may be the pagevec trigger the problem, but PAGEVEC_SIZE is only 14. >> D

Re: [PATCH] zram: introduce per-device debug_stat sysfs node

2016-05-13 Thread Sergey Senozhatsky
On (05/13/16 16:20), Minchan Kim wrote: [..] > > here I assume that the biggest contributor to re-compress latency is > > enabled preemption after zcomp_strm_release() and this second zs_malloc(). > > the compression itself of a PAGE_SIZE buffer should be fast enough. so IOW > > we would pass down

Re: [PATCH 1/1] net: ethernet: Add SGMII support to dwmac-socfpga

2016-05-13 Thread Giuseppe CAVALLARO
Hello Tien On 5/13/2016 9:01 AM, th...@altera.com wrote: From: Tien Hock Loh Adds SGMII support for dwmac-socfpga to enable the SGMII PHY when phy-mode of the dwmac is set to sgmii. I wonder if part of this patch can be unified to the common code reusing (or improving) existent PCS support (

Re: [PATCH 2/2] clk: rockchip: fix the rk3399 sdmmc sample shift

2016-05-13 Thread Shawn Lin
在 2016/5/13 12:36, Doug Anderson 写道: Shawn, On Thu, May 12, 2016 at 4:47 PM, Shawn Lin wrote: 在 2016/5/13 7:10, Brian Norris 写道: On Thu, May 12, 2016 at 11:03:17AM -0700, Doug Anderson wrote: Just like every other Rockhip device, the MMC "_sample" clocks should have a shift of 0, not a shi

Re: [PATCHv2] devicetree: sunxi: Add OLinuXino Lime2 eMMC to the Makefile

2016-05-13 Thread Maxime Ripard
Hi Olliver, On Thu, May 12, 2016 at 12:10:51PM +0200, Olliver Schinagl wrote: > commit 27dd9af6bc (ARM: dts: sunxi: Add a olinuxino-lime2-emmc added the new > emmc equipped) lime2 but forgot its Makefile. This is still not the right commit format, the commit title should be around double quotes.

Bezpieczenstwa Alarm !!!

2016-05-13 Thread IT Administrator
-- Drogi email konta uzytkownika, Jest to automatyczna aktualizacja zabezpiecze 4;, aby poinformowac, ze Wykrylismy nieregularna aktywnosc na twojej, Nich konta e-mail zosta 2;y naruszone. moze nie byc w stanie wysy 2;ac i odbierac nowa poczte, az ponownie potwierdzic swoje konto e-mail, klika

[PATCH v11 1/3] dt/bindings/clk: Add PIC32 clock binding documentation.

2016-05-13 Thread Purna Chandra Mandal
Document the devicetree bindings for the clock driver found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Cc: Ralf Baechle Cc: Michael Turquette Cc: Stephen Boyd Acked-by: Rob Herring Acked-by: Michael Turquette --- Note: Please pull this complete series through the

[PATCH v11 0/3] PIC32MZDA Clock Driver

2016-05-13 Thread Purna Chandra Mandal
Clock bindings got acked and then essentially unacked, while the clock driver never made it upstream. In the meantime, the initial DTS file made it upstream. This latest patch series includes a patch to go back and correct the DTS files to reflect the new clock bindings in this patch series. Note:

[PATCH v11 2/3] clk: microchip: Add Microchip PIC32 clock driver.

2016-05-13 Thread Purna Chandra Mandal
This clock driver implements PIC32 specific clock-tree. clock-tree entities can only be configured through device-tree file (OF). Signed-off-by: Purna Chandra Mandal --- Note: Please pull this complete series through the MIPS tree. Changes in v11: - split clock-init-data from clock-driver-data

[PATCH v11 3/3] MIPS: dts: pic32: Update dts to reflect new PIC32MZDA clk binding

2016-05-13 Thread Purna Chandra Mandal
- now clock nodes definition is merged with core .dtsi file - only one rootclk is now part of DT - clock clients also updated based on new binding doc Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Michael Turquette Cc: Stephen Boyd --- Note: Please p

[PATCH 05/17] perf record: Prevent reading invalid data in record__mmap_read

2016-05-13 Thread Wang Nan
When record__mmap_read() requires data more than the size of ring buffer, drop those data to avoid accessing invalid memory. This can happen when reading from overwritable ring buffer, which should be avoided. However, check this for robustness. Signed-off-by: Wang Nan Signed-off-by: He Kuang C

[PATCH 10/17] perf tools: Enable overwrite settings

2016-05-13 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 13/17] perf tools: Add API to pause a channel

2016-05-13 Thread Wang Nan
perf_evlist__channel_toggle_paused() is introduced to pause/resume a channel in an evlist. Utilize PERF_EVENT_IOC_PAUSE_OUTPUT ioctl. Following commits use perf_evlist__channel_toggle_paused() to ensure overwrite ring buffer is turned off before reading. Signed-off-by: Wang Nan Signed-off-by: He

[PATCH 15/17] perf record: Read from backward ring buffer

2016-05-13 Thread Wang Nan
Introduce rb_find_range() to find start and end position from a backward ring buffer. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/builtin-record.c | 59

[PATCH 01/17] perf tools: Extract __perf_evlist__mmap_read()

2016-05-13 Thread Wang Nan
Extract event reader to __perf_evlist__mmap_read(). Future commit will feed it with manually computed 'head' and 'old' pointers. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/util/evlist.c | 10 +- 1 file chang

[PATCH 00/17] perf tools: Support overwritable ring buffer

2016-05-13 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

[PATCH 07/17] perf record: Don't read from and poll overwrite channel

2016-05-13 Thread Wang Nan
Reading from overwritable ring buffer is unreliable. Introduce record__mmap_should_read() and prevent reading from such ring buffers in 'perf record'. The rule in record__mmap_should_read() will be changed when perf support reading from backward writing ring buffer. Signed-off-by: Wang Nan Signed

[PATCH 09/17] perf tools: Detect avalibility of write_backward

2016-05-13 Thread Wang Nan
Detect avalibility of write_backward and save the result into record_opts. With write_backward the start pointer of a ring buffer mapped read only can be found reliably. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyun

[PATCH 08/17] perf record: Don't poll on overwrite channel

2016-05-13 Thread Wang Nan
There's no need to receive events from overwritable ring buffer. Instead, perf should make them run background until something happen. This patch makes normal events from overwrite ring buffer ignored. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa C

[PATCH 11/17] perf tools: Set write_backward attribut bit for overwrite events

2016-05-13 Thread Wang Nan
write_backward attribute makes kernel filling ring buffer from the end of it, makes reading from overwrite ring buffer possible. This patch selects this attribute if evsel->overwrite is selected explicitly by user. Overwrite and write_backward are still controled separatly for legacy readonly mma

[PATCH 16/17] perf record: Toggle overwrite ring buffer for reading

2016-05-13 Thread Wang Nan
Reading from a overwrite ring buffer is unrelible. perf_evlist__channel_toggle_paused() should be called before reading from them. Toggel overwrite_evt_paused director after receiving done or switch output. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri O

[PATCH v3] ASoC: MAX9860: new driver

2016-05-13 Thread Peter Rosin
This is a driver for the MAX9860 Mono Audio Voice Codec. https://datasheets.maximintegrated.com/en/ds/MAX9860.pdf This driver does not support sidetone since the DVST register field is backwards with the mute near the maximum level instead of the minimum. Signed-off-by: Peter Rosin --- .../dev

[PATCH 12/17] perf tools: Record fd into perf_mmap

2016-05-13 Thread Wang Nan
Add a fd field into perf_mmap so perf can track fd from mmap. This feature will be used for toggling overwrite ring buffers. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3or...@163.com ---

Applied "ASoC: dapm: deprecate MICBIAS widget type" to the asoc tree

2016-05-13 Thread Mark Brown
The patch ASoC: dapm: deprecate MICBIAS widget type has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

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

2016-05-13 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 net-next 10/11] net: hns: implement the reset sequence by asl

2016-05-13 Thread Yisen Zhuang
From: Kejian Yan The reset sequence is implemented in BIOS, the kernel can call _DSM method help to call the implementation in ACPI case. Here is a patch to do that. Signed-off-by: Kejian Yan Signed-off-by: Yisen Zhuang --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c | 113

[patch net-next 01/11] net: hisilicon: add support of acpi for hns-mdio

2016-05-13 Thread Yisen Zhuang
From: Kejian Yan hns-mdio needs to register itself to mii-bus. The info of the device can be read by both OF and ACPI. HNS tries to call Linux PHY driver to help access PHY-devices, the HNS hardware topology is as below. The MDIO controller may control several PHY-devices, and each PHY-device con

[PATCH 14/17] perf record: Rename variable to make code clear

2016-05-13 Thread Wang Nan
record__mmap_read() write data from ring buffer into perf.data. 'head' is maintained by kernel, points to the last writtend record. 'old' is maintained by perf, points to the record read in previous round. record__mmap_read() saves data from 'old' to 'head' to perf.data. The names of these variabl

[patch net-next 06/11] ACPI: bus: move acpi_match_device_ids() to linux/acpi.h

2016-05-13 Thread Yisen Zhuang
From: Hanjun Guo acpi_match_device_ids() will be used for drivers to match different hardware versions, it will be compiled in non-ACPI case, but acpi_match_device_ids() in acpi_bus.h and it can only be used in ACPI case, so move it to linux/acpi.h and introduce a stub function for it. Signed-of

[patch net-next 00/11] net: hns: add support of ACPI

2016-05-13 Thread Yisen Zhuang
HNS driver needs to run only in ACPI case, so this series adds HNS support of acpi. The routine will call some ACPI helper functions, like acpi_match_device_ids() and acpi_evaluate_dsm(), which are not included in other cases. In order to make system compile successfully in other cases except ACPI,

[patch net-next 08/11] net: hns: register phy device in each mac initial sequence

2016-05-13 Thread Yisen Zhuang
From: Kejian Yan In ACPI case, there is no interface to register phy device to mdio-bus. Phy device has to be registered itself to mdio-bus, and then enet can get the phy device's info so that it can config the phy-device to help to trasmit and receive data. HNS hardware topology is as below. The

[patch net-next 02/11] net: hns: use device_* APIs instead of of_* APIs

2016-05-13 Thread Yisen Zhuang
From: Kejian Yan OF series functions can be used only for OF case. It needs to be similar series function for the others cases. There are uniform interface which has device_ prefix to get properties from the platform firmware. So this patch will use the device_* series functions instead of of_* f

[patch net-next 11/11] net: hns: enet adds support of acpi

2016-05-13 Thread Yisen Zhuang
From: Kejian Yan Enet needs to get configration parameter by acpi. This patch adds support of ACPI for enet. The configuration parameter will be configed in BIOS. Signed-off-by: Kejian Yan Signed-off-by: Yisen Zhuang --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 54 +

[patch net-next 04/11] net: hns: enet specify a reference to dsaf by fwnode_handle

2016-05-13 Thread Yisen Zhuang
From: Kejian Yan As device_node is only used by OF case, it is expected to find uniform ways. So fwnode_handle is the suitable method. Signed-off-by: Kejian Yan Signed-off-by: Yisen Zhuang --- drivers/net/ethernet/hisilicon/hns/hnae.c | 18 -- drivers/net/ethernet/hisilico

[patch net-next 09/11] ACPI: bus: add stub acpi_evaluate_dsm() to linux/acpi.h

2016-05-13 Thread Yisen Zhuang
From: Kejian Yan acpi_evaluate_dsm() will be used to handle the _DSM method in ACPI case. It will be compiled in non-ACPI case, but the function is in acpi_bus.h and acpi_bus.h can only be used in ACPI case, so this patch add the stub function to linux/acpi.h to make compiled successfully in non-

[patch net-next 05/11] net: hns: add uniform interface for phy connection

2016-05-13 Thread Yisen Zhuang
From: Kejian Yan As device_node is only used by OF case, HNS needs to treat the others cases including ACPI. It needs to use uniform ways to handle both of OF and ACPI. This patch chooses phy_device, and of_phy_connect and of_phy_attach are only used by OF case. It needs to add uniform interface

Re: [PATCH RESEND 2/2] regulator: mt6397: Add buck change mode regulator interface for mt6397

2016-05-13 Thread Henry Chen
Hi Mark, On Wed, 2016-05-11 at 15:50 +0100, Mark Brown wrote: > On Wed, May 11, 2016 at 05:31:30PM +0800, Henry Chen wrote: > > > +The possible values for "regulator-supported-modes" are: > > + 0: PWM mode, mapping to regulator fast mode, allow the > > + converter to remain in the PWM mode re

Re: [PATCH] mm: add config option to select the initial overcommit mode

2016-05-13 Thread Michal Hocko
On Tue 10-05-16 13:56:30, Sebastian Frias wrote: [...] > NOTE: I understand that the overcommit mode can be changed dynamically thru > sysctl, but on embedded systems, where we know in advance that overcommit > will be disabled, there's no reason to postpone such setting. To be honest I am not par

Re: [PATCH] zram: introduce per-device debug_stat sysfs node

2016-05-13 Thread Sergey Senozhatsky
On (05/13/16 16:20), Minchan Kim wrote: > > > > @@ -737,12 +737,12 @@ static int zram_bvec_write(struct zram *zram, > > > > struct bio_vec *bvec, u32 index, > > > > zcomp_strm_release(zram->comp, zstrm); > > > > zstrm = NULL; > > > > > > > > - atomic

[patch net-next 03/11] net: hns: use platform_get_irq instead of irq_of_parse_and_map

2016-05-13 Thread Yisen Zhuang
From: Kejian Yan As irq_of_parse_and_map is only used by OF case, it is excepted to use a uniform interface. So it is used platform_get_irq() instead. Signed-off-by: Kejian Yan Signed-off-by: Yisen Zhuang --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 5 ++--- 1 file changed, 2 inser

Re: [PATCHv2] devicetree: sunxi: Add OLinuXino Lime2 eMMC to the Makefile

2016-05-13 Thread Olliver Schinagl
and now i'm embarrassed and ashamed. Teaches me not to rush things, right? i'll correct it and take some time to do it right. sorry maxime! On 13-05-16 09:48, Maxime Ripard wrote: Hi Olliver, On Thu, May 12, 2016 at 12:10:51PM +0200, Olliver Schinagl wrote: commit 27dd9af6bc (ARM: dts: sunxi:

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Borislav Petkov
On Fri, May 13, 2016 at 07:23:34AM +0200, Marc Haber wrote: > How do I apply this? I'm attaching it. $ patch -p1 --dry-run -i /tmp/01-mm-thp-calculate_the_mapcount_correctly_for_thp_pages_during_wp_faults.patch checking file include/linux/mm.h checking file include/linux/swap.h checking file mm/

[patch net-next 07/11] net: hns: dsaf adds support of acpi

2016-05-13 Thread Yisen Zhuang
From: Kejian Yan Dsaf needs to get configuration parameter by ACPI, so this patch add support of ACPI. Signed-off-by: Kejian Yan Signed-off-by: Yisen Zhuang --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 80 +++ drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 86 ---

[PATCH 02/17] perf tools: Add evlist channel helpers

2016-05-13 Thread Wang Nan
In this commit sereval helpers are introduced to support the principle of channel. Channels hold different groups of evsels which configured differently. It will be used for overwritable evsels, which allows perf record some events continuously while capture snapshot for other events when something

[PATCH 04/17] perf tools: Operate multiple channels

2016-05-13 Thread Wang Nan
Before this patch perf operates on only the first channel. Make perf mmap and read from multiple channels. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/built

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Borislav Petkov
Try this one better - it fixes an unitialized var. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. >From linux-kernel-ow...@vger.kernel.org Thu May 12 18:32:37 2016 From: Andrea Arcangeli To: Andrew Morton , linux...@kvack.org, linux-kernel@vger.kernel.org, linux-r..

[PATCH 06/17] perf tools: Squash overwrite setting into channel

2016-05-13 Thread Wang Nan
Make 'overwrite' a channel configuration other than a evlist global option. With this setting an evlist can have two channels, one is normal channel, another is overwritable channel. perf_evlist__channel_for_evsel() ensures events with 'overwrite' configuration inserted to overwritable channel. Si

Re: [RFC 04/13] mm, page_alloc: restructure direct compaction handling in slowpath

2016-05-13 Thread Vlastimil Babka
On 05/12/2016 03:29 PM, Michal Hocko wrote: On Tue 10-05-16 09:35:54, Vlastimil Babka wrote: This patch attempts to restructure the code with only minimal functional changes. The call to the first compaction and THP-specific checks are now placed above the retry loop, and the "noretry" direct co

[PATCH 03/17] perf tools: Automatically add new channel according to evlist

2016-05-13 Thread Wang Nan
perf_evlist__channel_find() can be used to find a proper channel based on propreties of a evsel. If the channel doesn't exist, it can create new one for it. After this patch there's no need to create default channel explicitly. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-13 Thread Zhangjian (Bamvor)
Hi, On 2016/5/12 23:28, Catalin Marinas wrote: On Thu, May 12, 2016 at 05:24:57PM +0300, Yury Norov wrote: On Thu, May 12, 2016 at 03:07:35PM +0100, Catalin Marinas wrote: On Thu, May 12, 2016 at 04:44:31PM +0300, Yury Norov wrote: On Thu, May 12, 2016 at 02:35:34PM +0100, Catalin Marinas wro

[PATCH 0/2] Fix DNV HSUART RX DMA timeout interrupt issue

2016-05-13 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" These patches fix a DNV HSUART DMA issue with timeout interrupts which causes: - RX to be padded with zeros up to 4kB when <4kB should be received - RX to be truncated at 4kB when >4kB should be received. These patches have been tested on Intel Denverton platform. Ch

[PATCH 2/2] serial: 8250_mid: Read RX buffer on RX DMA timeout for DNV

2016-05-13 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" In DNV, when RX DMA is used and number of bytes received is less than transfer size, only RX DMA timeout interrupt is sent. When this happens, read the RX buffer. Signed-off-by: Chuah, Kim Tatt --- drivers/tty/serial/8250/8250_mid.c | 6 -- 1 file changed, 4 inserti

[PATCH 1/2] dmaengine: hsu: Export hsu_dma_get_status()

2016-05-13 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" To allow other code to safely read DMA Channel Status Register (where the register attribute for Channel Error, Descriptor Time Out & Descriptor Done fields are read-clear), export hsu_dma_get_status(). hsu_dma_irq() is renamed to hsu_dma_do_irq() and requires Status Regis

Re: [tip:sched/core] sched/fair: Correct unit of load_above_capacity

2016-05-13 Thread Vincent Guittot
On 12 May 2016 at 23:48, Yuyang Du wrote: > On Thu, May 12, 2016 at 03:31:51AM -0700, tip-bot for Morten Rasmussen wrote: >> Commit-ID: cfa10334318d8212d007da8c771187643c9cef35 >> Gitweb: >> http://git.kernel.org/tip/cfa10334318d8212d007da8c771187643c9cef35 >> Author: Morten Rasmussen >

Re: [RFC 06/13] mm, thp: remove __GFP_NORETRY from khugepaged and madvised allocations

2016-05-13 Thread Vlastimil Babka
On 05/12/2016 06:20 PM, Michal Hocko wrote: On Tue 10-05-16 09:35:56, Vlastimil Babka wrote: [...] diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 570383a41853..0cb09714d960 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -256,8 +256,7 @@ struct vm_area_struct; #defi

Re: [PATCH] irqchip: nps: add 64BIT dependency

2016-05-13 Thread Marc Zyngier
On 12/05/16 22:03, Arnd Bergmann wrote: > The newly added nps irqchip driver causes build warnings on ARM64. > > include/soc/nps/common.h: In function 'nps_host_reg_non_cl': > include/soc/nps/common.h:148:9: warning: cast to pointer from integer of > different size [-Wint-to-pointer-cast] > > As

[PATCH v11] mtd: spi-nor: add hisilicon spi-nor flash controller driver

2016-05-13 Thread Jiancheng Xue
Add hisilicon spi-nor flash controller driver Signed-off-by: Binquan Peng Signed-off-by: Jiancheng Xue Acked-by: Rob Herring Reviewed-by: Ezequiel Garcia --- change log v11: Fixed issues pointed by Brian Norris and Cyrille Pitchen. 1)Changed hisi_spi_nor_read_reg()/write_reg() to configure reg

Two mailing lists

2016-05-13 Thread Joonas Saarinen
Shouldn't there be two Linux kernel mailing lists: one for patches, another one for discussion? Joonas Saarinen

RE: [PATCH 0/3] Write dump into container's filesystem for pipe_type core_pattern

2016-05-13 Thread Zhao Lei
(Offline) Hi, Eric I rewrited patch to support code_dump in container according to your suggestion. Could you take a look of it, and give me your opinion in this version? Thanks Zhaolei > -Original Message- > From: Zhao Lei [mailto:zhao...@cn.fujitsu.com] > Sent: Wednesday, May 11, 201

Re: [patch net-next 08/11] net: hns: register phy device in each mac initial sequence

2016-05-13 Thread kbuild test robot
Hi, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Yisen-Zhuang/net-hns-add-support-of-ACPI/20160513-161402 config: ia64-allyesconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 4.9.0 reproduce: wget https://git.kernel.org/cgit

Re: [RFC 04/13] mm, page_alloc: restructure direct compaction handling in slowpath

2016-05-13 Thread Michal Hocko
On Fri 13-05-16 10:10:50, Vlastimil Babka wrote: > On 05/12/2016 03:29 PM, Michal Hocko wrote: > > On Tue 10-05-16 09:35:54, Vlastimil Babka wrote: > > > This patch attempts to restructure the code with only minimal functional > > > changes. The call to the first compaction and THP-specific checks

Re: [PATCH] irqchip: nps: add 64BIT dependency

2016-05-13 Thread Vineet Gupta
On Friday 13 May 2016 01:54 PM, Marc Zyngier wrote: > On 12/05/16 22:03, Arnd Bergmann wrote: ... >> >> config EZNPS_GIC >> bool "NPS400 Global Interrupt Manager (GIM)" >> +depends on ARC || (COMPILE_TEST && !64BIT) >> select IRQ_DOMAIN >> help >>Support the EZchip NPS

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Dr. David Alan Gilbert
* Marc Haber (mh+linux-ker...@zugschlus.de) wrote: > Hi David, > > On Sat, Apr 23, 2016 at 07:52:46PM +0100, Dr. David Alan Gilbert wrote: > > Hmm, your problem does sound like bad hardware, but > > If you've got a nice reliable crash, can you try turning transparent huge > > pages > > off on

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

2016-05-13 Thread Greg KH
On Fri, May 13, 2016 at 01:15:38PM +1000, Stephen Rothwell wrote: > Hi Greg, > > After merging the staging tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c:1706:9: > error: too few arguments to function 'ib_map_mr_sg

Re: [RFC 2/2] perf/core: change errno for sampling event not supported in hardware

2016-05-13 Thread Vineet Gupta
On Friday 13 May 2016 04:34 AM, Vince Weaver wrote: > On Thu, 12 May 2016, Peter Zijlstra wrote: > >> Ah.. which might be a hint that nobody is actually explicitly testing >> for this and we might just get away with changing the ABI. >> >> Vince, what say you; shall we try and get away with it? ;-

[PATCH] Bluetooth: fix power_on vs close race

2016-05-13 Thread Jiri Slaby
With all the latest fixes applied, I am still able to reproduce this (and other) warning(s): WARNING: CPU: 1 PID: 19684 at ../kernel/workqueue.c:4092 destroy_workqueue+0x70a/0x770() ... Call Trace: [] ? dump_stack+0xb3/0x112 [] ? warn_slowpath_common+0xde/0x140 [] ? destroy_workqueue+0x70a/0x77

Re: [PATCH] irqchip: nps: add 64BIT dependency

2016-05-13 Thread Marc Zyngier
On 13/05/16 09:35, Vineet Gupta wrote: > On Friday 13 May 2016 01:54 PM, Marc Zyngier wrote: >> On 12/05/16 22:03, Arnd Bergmann wrote: > ... >>> >>> config EZNPS_GIC >>> bool "NPS400 Global Interrupt Manager (GIM)" >>> + depends on ARC || (COMPILE_TEST && !64BIT) >>> select IRQ_DOMAIN

Re: [PATCH] mm: add config option to select the initial overcommit mode

2016-05-13 Thread Mason
On 13/05/2016 10:04, Michal Hocko wrote: > On Tue 10-05-16 13:56:30, Sebastian Frias wrote: > [...] >> NOTE: I understand that the overcommit mode can be changed dynamically thru >> sysctl, but on embedded systems, where we know in advance that overcommit >> will be disabled, there's no reason to

[PATCH] spi: pic32-sqi: Fix linker error, undefined reference to `bad_dma_ops'.

2016-05-13 Thread Purna Chandra Mandal
Even if DMA support is disabled code using DMA mapping APIs compiles fine, but fails in linking. --- drivers/built-in.o: In function `ring_desc_ring_free': spi-pic32-sqi.c:(.text+0x2cfbe0): undefined reference to `bad_dma_ops' spi-pic32-sqi.c:(.text+0x2cfbe4): undefined reference to `bad_dma_op

[PATCH v3 1/7 UPDATE] perf tools: Find vdso with the consider of cross-platform

2016-05-13 Thread He Kuang
There's a problem in machine__findnew_vdso(), vdso buildid generated by a 32-bit machine stores it with the name 'vdso', but when processing buildid on a 64-bit machine with the same 'perf.data', perf will search for vdso named as 'vdso32' and get failed. This patch tries to find the exsiting dsos

Re: [PATCH v3 1/7] perf tools: Set vdso name to vdso[64,32] depending on platform

2016-05-13 Thread Hekuang
在 2016/5/12 18:06, Adrian Hunter 写道: On 12/05/16 11:43, He Kuang wrote: This is a preparation for cross-platform vdso lookup. There is a naming confusion about vdso name, vdso buildid generated by a 32-bit machine stores it with the name 'vdso', but when processing buildid on a 64-bit machine

Re: powerpc: Discard ffs() function and use builtin_ffs instead

2016-05-13 Thread Gabriel Paubert
On Fri, May 13, 2016 at 04:16:57PM +1000, Michael Ellerman wrote: > On Thu, 2016-12-05 at 15:32:22 UTC, Christophe Leroy wrote: > > With the ffs() function as defined in arch/powerpc/include/asm/bitops.h > > GCC will not optimise the code in case of constant parameter, as shown > > by the small exe

Re: Two mailing lists

2016-05-13 Thread Richard Weinberger
On Fri, May 13, 2016 at 10:22 AM, Joonas Saarinen wrote: > Shouldn't there be two Linux kernel mailing lists: one for patches, another > one for discussion? Why do you think so? Patches should lead to discussions (review, etc..). And discussions should lead to patches (being productive). So, hav

Re: linux-4.6-rc7/drivers/regulator/qcom_spmi-regulator.c:1208: possible expression typo ?

2016-05-13 Thread Mark Brown
On Fri, May 13, 2016 at 06:36:03AM +, David Binderman wrote: > Hello there, Please fix your mail client to word wrap within paragraphs at something substantially less than 80 columns. Doing this makes your messages much easier to read and reply to. > linux-4.6-rc7/drivers/regulator/qcom_spmi

Re: [PATCH RFT 1/2] phylib: add device reset GPIO support

2016-05-13 Thread Roger Quadros
Hi Sergei, On 12/05/16 21:42, Uwe Kleine-König wrote: > Hello Sergei, > > [we already talked about this patch in #armlinux, I'm now just > forwarding my comments on the list. Background was that I sent an easier > and less complete patch with the same idea. See > http://patchwork.ozlabs.org/patch

Re: transparent huge pages breaks KVM on AMD.

2016-05-13 Thread Marc Haber
On Fri, May 13, 2016 at 10:07:45AM +0200, Borislav Petkov wrote: > On Fri, May 13, 2016 at 07:23:34AM +0200, Marc Haber wrote: > > How do I apply this? > > I'm attaching it. Ok, stupid me, I thought that one could simply curl the web page. Too bad that list archives keep mangling patches :-( It

Re: [PATCH v2 1/2] vb2: core: Skip planes array verification if pb is NULL

2016-05-13 Thread Hans Verkuil
On 05/12/2016 02:14 PM, Sakari Ailus wrote: > An earlier patch fixing an input validation issue introduced another > issue: vb2_core_dqbuf() is called with pb argument value NULL in some > cases, causing a NULL pointer dereference. Fix this by skipping the > verification as there's nothing to verif

[tip:perf/urgent] perf tools: Use readdir() instead of deprecated readdir_r()

2016-05-13 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 2515e614834f362eed36fb5ea5d359d94a525263 Gitweb: http://git.kernel.org/tip/2515e614834f362eed36fb5ea5d359d94a525263 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 8 Apr 2016 11:32:15 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 12 May 2016 10:22:54 -0300 per

Re: [PATCH] sched/core: don't include asm/mmu_context from drivers

2016-05-13 Thread Russell King - ARM Linux
On Thu, May 12, 2016 at 10:46:56PM -0700, Andy Lutomirski wrote: > On Fri, Apr 29, 2016 at 6:42 AM, Steven Rostedt wrote: > > On Fri, 29 Apr 2016 10:52:32 +0200 > > Arnd Bergmann wrote: > > > >> This reverts the earlier fix attempt and works around the problem > >> by including both linux/mmu_con

[tip:perf/urgent] perf script: Use readdir() instead of deprecated readdir_r()

2016-05-13 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 9a5f3bf332bbd42625b71553ca9ffdffa9fc4785 Gitweb: http://git.kernel.org/tip/9a5f3bf332bbd42625b71553ca9ffdffa9fc4785 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 8 Apr 2016 11:25:59 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 12 May 2016 11:26:57 -0300 per

[tip:perf/urgent] perf tools: Use readdir() instead of deprecated readdir_r()

2016-05-13 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 22a9f41b555673e7499b97acf3ffb07bf0af31ad Gitweb: http://git.kernel.org/tip/22a9f41b555673e7499b97acf3ffb07bf0af31ad Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 8 Apr 2016 11:53:02 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 12 May 2016 11:26:58 -0300 per

[tip:perf/urgent] perf dwarf: Guard !x86_64 definitions under #ifdef else clause

2016-05-13 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 62aa0e177d278462145a29c30d3c8501ae57e200 Gitweb: http://git.kernel.org/tip/62aa0e177d278462145a29c30d3c8501ae57e200 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 8 Apr 2016 12:04:29 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 12 May 2016 11:26:59 -0300 per

[tip:perf/urgent] perf thread_map: Use readdir() instead of deprecated readdir_r()

2016-05-13 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 7839b9f32e45075d9eb48da8480faef3dbd019f0 Gitweb: http://git.kernel.org/tip/7839b9f32e45075d9eb48da8480faef3dbd019f0 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 8 Apr 2016 11:31:24 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 12 May 2016 11:26:58 -0300 per

[tip:perf/urgent] perf probe: Check if dwarf_getlocations() is available

2016-05-13 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 4924734570a073049450b11f7c59ce5992b03343 Gitweb: http://git.kernel.org/tip/4924734570a073049450b11f7c59ce5992b03343 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 5 Apr 2016 11:33:41 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 12 May 2016 11:26:59 -0300 per

[tip:perf/urgent] tools lib traceevent: Do not reassign parg after collapse_tree()

2016-05-13 Thread tip-bot for Steven Rostedt
Commit-ID: 106b816cb46ebd87408b4ed99a2e16203114daa6 Gitweb: http://git.kernel.org/tip/106b816cb46ebd87408b4ed99a2e16203114daa6 Author: Steven Rostedt AuthorDate: Wed, 11 May 2016 15:09:36 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 12 May 2016 11:27:00 -0300 tools lib tr

RE: [PATCH 5/5] vfio-pci: Allow to mmap MSI-X table if interrupt remapping is supported

2016-05-13 Thread David Laight
From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: 13 May 2016 06:33 ... > Simply denying direct writes to the vector table or preventing mapping > of the vector table into the user address space does not provide any > tangible form of protection. Many devices make use of window reg

  1   2   3   4   5   6   >