Re: [RFC 0/3] zsmalloc: make its pages movable

2015-10-08 Thread Sergey Senozhatsky
On (10/08/15 14:35), Hui Zhu wrote: > > As the discussion in the list, the zsmalloc introduce some problems > around pages because its pages are unmovable. > > These patches introduced page move function to zsmalloc. And they also > add interface to struct page. > Hi, have you seen http://lk

Re: [PATCH 1/8] dt-bindings: pmic: Document Hi655x pmic driver

2015-10-08 Thread wangfei
On 2015/10/1 15:58, Lee Jones wrote: > I just noticed that you Cc'ed all of the Core ARM people too. Please > do not do that. I'm sure they have enough of their own mail to trawl > though. > > Only mail relevant parties i.e. those who show up when you use: > > ./scripts/get_maintainer.pl. >

[PATCH v2 1/5] KVM: VMX: adjust interface to allocate/free_vpid

2015-10-08 Thread Wanpeng Li
Adjust allocate/free_vid so that they can be reused for the nested vpid. Reviewed-by: Wincy Van Signed-off-by: Wanpeng Li --- arch/x86/kvm/vmx.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 6407674.

[PATCH v2 0/5] KVM: nVMX: nested VPID emulation

2015-10-08 Thread Wanpeng Li
v1 -> v2: * set bit 32 of the VMX_EPT_VPID_CAP MSR * check against the supported types in the implementation of the INVVPID instruction * the memory operand must always be read even if it isn't needed (e.g., for type==global), similar to INVEPT * for single-context invalidation to check

[PATCH v2 3/5] KVM: nVMX: emulate the INVVPID instruction

2015-10-08 Thread Wanpeng Li
Add the INVVPID instruction emulation. Reviewed-by: Wincy Van Signed-off-by: Wanpeng Li --- arch/x86/include/asm/vmx.h | 3 +++ arch/x86/kvm/vmx.c | 49 +- 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/vm

[PATCH v2] mmc: core: Fix init_card in 52Mhz

2015-10-08 Thread Chaotian Jing
Suppose that we got a data crc error, and it triggers the mmc_reset. mmc_reset will call mmc_send_status to see if HW reset was supported. before issue CMD13, it will do retune, and if EMMC was in HS400 mode, it will reduce frequency to 52Mhz firstly, then results in card init was doing at 52Mhz. T

[PATCH v2 4/5] KVM: nVMX: nested VPID emulation

2015-10-08 Thread Wanpeng Li
VPID is used to tag address space and avoid a TLB flush. Currently L0 use the same VPID to run L1 and all its guests. KVM flushes VPID when switching between L1 and L2. This patch advertises VPID to the L1 hypervisor, then address space of L1 and L2 can be separately treated and avoid TLB flush wh

[PATCH v2 5/5] KVM: nVMX: expose VPID capability to L1

2015-10-08 Thread Wanpeng Li
Expose VPID capability to L1. For nested guests, we don't do anything specific for single context invalidation. Hence, only advertise support for global context invalidation. The major benefit of nested VPID comes from having separate vpids when switching between L1 and L2, and also when L2's v

[PATCH v2 2/5] KVM: VMX: introduce __vmx_flush_tlb to handle specific vpid

2015-10-08 Thread Wanpeng Li
Introduce __vmx_flush_tlb() to handle specific vpid. It will be used by later patches, note that the "all context" variant can be mapped to vpid_sync_vcpu_single with vpid02 as the argument (a nice side effect of vpid02 design). Reviewed-by: Wincy Van Signed-off-by: Wanpeng Li --- arch/x86/k

Re: linux-next: build warning after merge of the driver-core tree

2015-10-08 Thread Viresh Kumar
On 08-10-15, 00:47, Rafael J. Wysocki wrote: > Well, the conflicting commits here were from the same developer which is kind > of annoying. I do understand why its annoying, but I wasn't doing them in parallel. The patches in Greg's tree were written long after the other series got applied to your

[PATCH] HSI: Remove struct hsi_client private fields from kernel-doc

2015-10-08 Thread Javier Martinez Canillas
The kernel-doc how to says that structure fields that are inside a "private:" area shouldn't be listed in the generated documentation but the private fields for struct hsi_client private are listed. This also fixes the following make htmldocs warnings: .//include/linux/hsi/hsi.h:150: warning: Exc

Re: [PATCH v2] KVM: nVMX: expose VPID capability to L1

2015-10-08 Thread Wanpeng Li
On 9/29/15 6:39 PM, Paolo Bonzini wrote: On 29/09/2015 04:55, Wanpeng Li wrote: Expose VPID capability to L1. Signed-off-by: Wanpeng Li --- v1 -> v2: * set only VMX_VPID_EXTENT_GLOBAL_CONTEXT_BIT Thanks. I've checked more thoroughly your implementation against the SDM now, and there are a

Re: [PATCH RESEND] rtsx_usb_ms: Use msleep_interruptible() in polling loop

2015-10-08 Thread Lee Jones
On Mon, 28 Sep 2015, Ben Hutchings wrote: > rtsx_usb_ms creates a task that mostly sleeps, but tasks in > uninterruptible sleep still contribute to the load average (for > bug-compatibility with Unix). A load average of ~1 on a system that > should be idle is somewhat alarming. > > Change the sl

Re: [PATCH] mfd: remove unused variables

2015-10-08 Thread Lee Jones
On Wed, 07 Oct 2015, Arnd Bergmann wrote: > A mass-cleanup by Javier Martinez Canillas removed a lot of > unused code, but left at least two variables in mfd drivers > in place that are now causing warnings: > > drivers/mfd/rtsx_pcr.c: In function 'rtsx_pci_set_pull_ctl': > drivers/mfd/rtsx_pcr.c

Re: [PATCH 1/3] page: add new flags "PG_movable" and add interfaces to control these pages

2015-10-08 Thread Vlastimil Babka
On 10/08/2015 08:35 AM, Hui Zhu wrote: This patch add PG_movable to mark a page as movable. And when system call migrate function, it will call the interfaces isolate, put and migrate to control it. There is a patch for page migrate interface in LKML. But for zsmalloc, it is too deep inside the

Re: [PATCH 1/3] page: add new flags "PG_movable" and add interfaces to control these pages

2015-10-08 Thread Kirill A. Shutemov
On Thu, Oct 08, 2015 at 02:35:50PM +0800, Hui Zhu wrote: > This patch add PG_movable to mark a page as movable. > And when system call migrate function, it will call the interfaces isolate, > put and migrate to control it. > > There is a patch for page migrate interface in LKML. But for zsmalloc,

Re: [PATCH] mfd: remove unused variables

2015-10-08 Thread Lee Jones
On Thu, 08 Oct 2015, Lee Jones wrote: > On Wed, 07 Oct 2015, Arnd Bergmann wrote: > > > A mass-cleanup by Javier Martinez Canillas removed a lot of > > unused code, but left at least two variables in mfd drivers > > in place that are now causing warnings: > > > > drivers/mfd/rtsx_pcr.c: In funct

Re: [PATCH] USB: serial: cp210x: Workaround for cp2108 failure due to GET_LINE_CTL bug

2015-10-08 Thread Bjørn Mork
Konstantin Shkolnyy writes: > @@ -343,6 +344,28 @@ static int cp210x_get_config(struct usb_serial_port > *port, u8 request, > return result; > } > > + /* Workaround for swapped bytes in 16-bit value from > CP210X_GET_LINE_CTL */ > + if (spriv->swap_get_line_ctl &&

Re: [PATCH v3 2/3] uio_pci_generic: add MSI/MSI-X support

2015-10-08 Thread Michael S. Tsirkin
On Thu, Oct 08, 2015 at 08:33:45AM +0300, Avi Kivity wrote: > It is good practice to defend against root oopsing the kernel, but in some > cases it cannot be achieved. Absolutely. That's one of the issues with these patches. They don't even try where it's absolutely possible. -- MST -- To unsubs

Re: [PATCH 4/8] regulator: Hi655x: Add support for Hi655x regulator

2015-10-08 Thread wangfei
On 2015/10/1 1:58, Mark Brown wrote: > On Wed, Sep 30, 2015 at 07:05:07PM +0800, Fei Wang wrote: > >> +config REGULATOR_HI655X >> +tristate "Hisilicon HI655X PMIC regulators support" >> +depends on ARCH_HISI >> +depends on MFD_HI655X_PMIC && OF > > You've got some tab/space co

Re: [PATCHv3 1/2] ARM: exynos_defconfig: Enable rtl8152 ethernet driver for Odroid-XU4

2015-10-08 Thread Arnd Bergmann
On Thursday 08 October 2015 03:48:36 Anand Moon wrote: > diff --git a/arch/arm/configs/exynos_defconfig > b/arch/arm/configs/exynos_defconfig > index 1ff2bfa..5d1937b 100644 > --- a/arch/arm/configs/exynos_defconfig > +++ b/arch/arm/configs/exynos_defconfig > @@ -61,6 +61,7 @@ CONFIG_BLK_DEV_DM=y

Re: [PATCH v3 2/3] uio_pci_generic: add MSI/MSI-X support

2015-10-08 Thread Michael S. Tsirkin
On Thu, Oct 08, 2015 at 07:19:13AM +0300, Gleb Natapov wrote: > Well > the alternative is to add /dev/vfio/nommu like you've said, but what > would be the difference between this and uio eludes me. Are you familiar with vfio that you ask such a question? Here's the vfio pci code: $ wc -l drivers

Re: [PATCH] leds: triggers: add invert to heartbeat

2015-10-08 Thread Jacek Anaszewski
Hi Jiri, On 10/07/2015 04:14 PM, Jiří Prchal wrote: Hi Jacek, comments below... On 7.10.2015 15:32, Jacek Anaszewski wrote: Hi Jiri, Thanks for the patch. It's nice in general, but please see my comments below. On 10/07/2015 11:31 AM, Jiri Prchal wrote: This patcht adds possibility to inver

Re: [kbuild-all] [PATCH 2/2] mfd: rtsx: fix build warning

2015-10-08 Thread Sudip Mukherjee
On Thu, Oct 08, 2015 at 07:30:22AM +0100, Greg KH wrote: > On Thu, Oct 08, 2015 at 08:56:38AM +0800, Fengguang Wu wrote: > > On Wed, Oct 07, 2015 at 09:11:25PM +0530, Sudip Mukherjee wrote: > > > On Wed, Oct 07, 2015 at 09:48:16PM +0800, Fengguang Wu wrote: > > > > On Wed, Oct 07, 2015 at 06:16:52P

Re: [PATCHv3 1/2] ARM: exynos_defconfig: Enable rtl8152 ethernet driver for Odroid-XU4

2015-10-08 Thread Krzysztof Kozlowski
On 08.10.2015 16:41, Arnd Bergmann wrote: > On Thursday 08 October 2015 03:48:36 Anand Moon wrote: >> diff --git a/arch/arm/configs/exynos_defconfig >> b/arch/arm/configs/exynos_defconfig >> index 1ff2bfa..5d1937b 100644 >> --- a/arch/arm/configs/exynos_defconfig >> +++ b/arch/arm/configs/exynos_d

Re: [kbuild-all] [PATCH 4/5 v2] pseries/iommu: implement DDW-aware dma_get_page_shift

2015-10-08 Thread Christoph Hellwig
Hi Fengguang, I think this proactive testing does a little more harm than good in it's current form. While offering testing for patches that aren't in git trees and or by people that don't even have a git tree that the build bots known about does seem useful, blindly doing it for every patch agai

Re: [PATCH 4/8] regulator: Hi655x: Add support for Hi655x regulator

2015-10-08 Thread Javier Martinez Canillas
Hello Fei Wang, On Wed, Sep 30, 2015 at 1:05 PM, Fei Wang wrote: > Add Hi655x regulator driver. > > Signed-off-by: Fei Wang > --- [snip] > > +config REGULATOR_HI655X > +tristate "Hisilicon HI655X PMIC regulators support" The Kconfig symbol is tree state which means it can be built as

Re: [PATCH] PM / OPP: fix debugfs files for 64-bit

2015-10-08 Thread Viresh Kumar
On 07-10-15, 21:12, Arnd Bergmann wrote: > I think it clearly makes sense to have a fixed length for each of these > members: > > either 32 bit is enough to represent all possible values, then > there is no need to make them 'long' on 64-bit architectures, or 32 bit > is not enough and then the cod

[PATCH RFC 1/1] irqchip/GICv2m: Add support for multiple v2m frames

2015-10-08 Thread Duc Dang
GICv2m driver currently only supports single v2m frame. This patch extend this driver to support multiple v2m frames. All of the v2m frames will be own by a single MSI domain. Each PCIe node can specify msi-parent as the first frame of the v2m frame list to be able to use all available v2m frames f

Re: [PATCH] h8300: Fix build error due to missing word-at-a-time.h

2015-10-08 Thread Yoshinori Sato
On Tue, 06 Oct 2015 14:32:58 +0900, Guenter Roeck wrote: > > h8300 builds fail with > > lib/string.c:31:32: fatal error: asm/word-at-a-time.h: No such file or > directory > > Fixes: 30035e45753b ("string: provide strscpy()") > Cc: Chris Metcalf > Signed-off-by: Guenter Roeck > --- > arch/h83

[PATCH] drm/i915/irq: Fix kernel-doc warnings

2015-10-08 Thread Javier Martinez Canillas
Add the dev parameter for the functions i915_enable_asle_pipestat() and i915_reset_and_wakeup() to the kernel-doc to fix the following warnings: .//drivers/gpu/drm/i915/i915_irq.c:586: warning: No description found for parameter 'dev' .//drivers/gpu/drm/i915/i915_irq.c:2400: warning: No descripti

[PATCH] drm/i915/irq: Fix misspelled word register in kernel-doc

2015-10-08 Thread Javier Martinez Canillas
There is a typo in the function i915_handle_error() kernel-doc and the word register is spelled wrongly. Signed-off-by: Javier Martinez Canillas --- drivers/gpu/drm/i915/i915_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/

Re: [PATCH v3 2/3] uio_pci_generic: add MSI/MSI-X support

2015-10-08 Thread Gleb Natapov
On Thu, Oct 08, 2015 at 10:41:53AM +0300, Michael S. Tsirkin wrote: > On Thu, Oct 08, 2015 at 07:19:13AM +0300, Gleb Natapov wrote: > > Well > > the alternative is to add /dev/vfio/nommu like you've said, but what > > would be the difference between this and uio eludes me. > > Are you familiar wit

[PATCH 3/3] arm64: dts: Add dts node for hi6220 iommu

2015-10-08 Thread Chen Feng
Signed-off-by: Chen Feng Signed-off-by: Yu Dongbin --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 3f03380..3ef33b4 100644 --- a/arch/ar

[PATCH 1/3] docs: dts: Documentation for smmu in hi6220 SoC.

2015-10-08 Thread Chen Feng
Documentation for system mmu in hi6220 platform. Signed-off-by: Chen Feng Signed-off-by: Yu Dongbin --- .../bindings/iommu/hisi,hi6220-iommu.txt | 52 ++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/iommu/hisi,hi6220-iommu

[PATCH 2/3] staging: android: ion: Add ion driver for Hi6220 SoC platform

2015-10-08 Thread Chen Feng
Signed-off-by: Chen Feng Signed-off-by: Yu Dongbin --- drivers/staging/android/ion/Kconfig| 7 + drivers/staging/android/ion/Makefile | 1 + drivers/staging/android/ion/hisilicon/Kconfig | 5 + drivers/staging/android/ion/hisilicon/Makefile | 1 + d

[PATCH 1/3] docs: dts: Add documentation for hi6220 SoC ION node

2015-10-08 Thread Chen Feng
Documentation for hi6220 SoC ION node Signed-off-by: Chen Feng Signed-off-by: Yu Dongbin --- .../devicetree/bindings/staging/ion/hi6220-ion.txt | 27 ++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/staging/ion/hi6220-ion.txt diff --

[PATCH 3/3] arm64: dts: Add dts files to enable ION on Hi6220 SoC.

2015-10-08 Thread Chen Feng
Add ION node to enable ION on hi6220 SoC platform Signed-off-by: Chen Feng Signed-off-by: Yu Dongbin --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 + arch/arm64/boot/dts/hisilicon/hi6220-ion.dtsi | 23 +++ 2 files changed, 24 insertions(+) create mode 100644 arch

Re: [RFC] regmap: change bool to 1 bit variable in struct regmap

2015-10-08 Thread Mark Brown
On Thu, Oct 08, 2015 at 12:24:02PM +0800, yalin wang wrote: > + u8 async : 1, Please use the kernel coding style, no spaces around the :. signature.asc Description: Digital signature

[PATCH 2/3] iommu/hisilicon: Add hi6220 iommu driver

2015-10-08 Thread Chen Feng
Enable iommu on hi6220 SoC platform. Signed-off-by: Chen Feng Signed-off-by: Yu Dongbin --- drivers/iommu/Kconfig| 8 + drivers/iommu/Makefile | 1 + drivers/iommu/hi6220_iommu.c | 503 +++ 3 files changed, 512 insertions(+) create mode

Re: [BUG] perf cross-compile error dual to fixdep not host-exe

2015-10-08 Thread He Kuang
hi, Jirka On 2015/9/30 14:13, Jiri Olsa wrote: On Wed, Sep 30, 2015 at 11:18:20AM +0800, He Kuang wrote: Hi, perf cross-compile error dual to fixdep is not a host executable, first bad commit is 7c422f557266("tools build: Build fixdep helper from perf and basic libs") Cross-compiling an aarc

Re: [Intel-gfx] [PATCH] drm/i915/irq: Fix misspelled word register in kernel-doc

2015-10-08 Thread Daniel Vetter
On Thu, Oct 08, 2015 at 09:57:49AM +0200, Javier Martinez Canillas wrote: > There is a typo in the function i915_handle_error() > kernel-doc and the word register is spelled wrongly. > > Signed-off-by: Javier Martinez Canillas Both kerneldoc patches applied, thanks. -Daniel > --- > > drivers/

Re: CFS scheduler unfairly prefers pinned tasks

2015-10-08 Thread Mike Galbraith
On Tue, 2015-10-06 at 04:45 +0200, Mike Galbraith wrote: > On Tue, 2015-10-06 at 08:48 +1100, paul.sz...@sydney.edu.au wrote: > > The Linux CFS scheduler prefers pinned tasks and unfairly > > gives more CPU time to tasks that have set CPU affinity. > > This effect is observed with or without CGROUP

Re: [RFC] regmap: change bool to 1 bit variable in struct regmap

2015-10-08 Thread yalin wang
ok, i will send V2 patch > On Oct 8, 2015, at 16:15, Mark Brown wrote: > > On Thu, Oct 08, 2015 at 12:24:02PM +0800, yalin wang wrote: > >> +u8 async : 1, > > Please use the kernel coding style, no spaces around the :. -- To unsubscribe from this list: send the line "unsubscribe linux-kern

Re: [PATCH 3/3] drm: panel-simple: implement URT UMSH-8596MD-xT panel support

2015-10-08 Thread Thierry Reding
On Wed, Oct 07, 2015 at 11:02:20PM +0200, Maciej S. Szmigiero wrote: > This patch implements support for United Radiant Technology > UMSH-8596MD-xT 7.0" WVGA TFT LCD panels in DRM panel-simple > driver. > > Signed-off-by: Maciej Szmigiero > --- > This replaces "drm: panel-simple: add URT UMSH-859

[PATCH] dmaengine: xgene-dma: Disable memcpy operation due to performance drop

2015-10-08 Thread Rameshwar Prasad Sahu
The DMA engine supports memory copy, RAID5 XOR, RAID6 PQ, and other computations. But the bandwidth of the entire DMA engine is shared among all channels. This patch re-configures operations availability such that one can achieve maximum performance for XOR and PQ computation by removing the memory

[RFC V2] regmap: change bool to 1 bit variable in struct regmap

2015-10-08 Thread yalin wang
This patch change some bool variables in struct regmap { } to be u8 v : 1 type, so that we can shrink the sizeof of struct regmap. Signed-off-by: yalin wang --- drivers/base/regmap/internal.h | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/bas

Re: [PATCH 2/3] of: add URT UMSH-8596MD-xT panel DT bindings

2015-10-08 Thread Thierry Reding
On Wed, Oct 07, 2015 at 11:00:51PM +0200, Maciej S. Szmigiero wrote: > This patch adds DT bindings for United Radiant Technology > UMSH-8596MD-xT 7.0" WVGA TFT LCD panels. > > Signed-off-by: Maciej Szmigiero > --- > Documentation/devicetree/bindings/panel/urt,umsh-8596md.txt | 12 >

Re: [BUG] perf cross-compile error dual to fixdep not host-exe

2015-10-08 Thread Jiri Olsa
On Thu, Oct 08, 2015 at 04:02:48PM +0800, He Kuang wrote: > hi, Jirka > > On 2015/9/30 14:13, Jiri Olsa wrote: > >On Wed, Sep 30, 2015 at 11:18:20AM +0800, He Kuang wrote: > >>Hi, > >> > >>perf cross-compile error dual to fixdep is not a host executable, first bad > >>commit > >>is 7c422f557266("

Re: [PATCH] iwlwifi:Fix incorrect fallthrough in switch statement in the function iwl_mvm_check_running_scans

2015-10-08 Thread Coelho, Luciano
On Tue, 2015-09-22 at 20:24 -0400, Nicholas Krause wrote: > This fixes incorrect fallthrough in the switch statment checking > the scan type passed by the caller to iwl_mvm_check_running_scans > for the switch case IWL_MVM_SCAN_SCHED to return directly after > the call to iwl_mvm_scan_stop in order

Re ...

2015-10-08 Thread BRGF
Apply for your urgent financial help today and have it in your bank account within 24 hours. For more information, contact us with your interest through the form below; Full Name: Address: Country: Loan Amount: Duration: Purpose of Loan: Phone Number: We hope to hear from you soonest. Hamon

[GIT PULL 00/22] perf tools: filtering events using eBPF programs

2015-10-08 Thread Wang Nan
python: Support the PERF_RECORD_SWITCH event (2015-10-07 19:41:50 -0300) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pi3orama/linux tags/perf-ebpf-for-acme-20151008 for you to fetch changes up to 60d6b3bceb3d87497c542dec61e4a968d9e2b488: perf test

Re: [alsa-devel] [PATCH v5 06/10] dmaengine: add API for getting dma controller's quirk

2015-10-08 Thread Lars-Peter Clausen
On 10/06/2015 11:21 AM, Shawn Lin wrote: > Hi Vinod, > > On 2015/10/5 23:37, Vinod Koul wrote: >> On Mon, Sep 14, 2015 at 07:48:59AM +0800, Shawn Lin wrote: >>> Add dmaengine_get_quirks API for peripheral devices to query >>> quirks if they need it to make special workaround due to broken >>> dma

[PATCH 04/22] perf record, bpf: Create probe points for BPF programs

2015-10-08 Thread Wang Nan
This patch introduces bpf__{un,}probe() functions to enable callers to create kprobe points based on section names a BPF program. It parses the section names in the program and creates corresponding 'struct perf_probe_event' structures. The parse_perf_probe_command() function is used to do the main

[PATCH 13/22] bpf tools: Load a program with different instances using preprocessor

2015-10-08 Thread Wang Nan
In this patch, caller of libbpf is able to control the loaded programs by installing a preprocessor callback for a BPF program. With preprocessor, different instances can be created from one BPF program. This patch will be used by perf to generate different prologue for different 'struct probe_tra

[PATCH 01/22] perf tools: Make perf depend on libbpf

2015-10-08 Thread Wang Nan
By adding libbpf into perf's Makefile, this patch enables perf to build libbpf during building if libelf is found and neither NO_LIBELF nor NO_LIBBPF is set. The newly introduced code is similar to libapi and libtraceevent building in Makefile.perf. MANIFEST is also updated for 'make perf-*-src-pk

[PATCH 02/22] perf ebpf: Add the libbpf glue

2015-10-08 Thread Wang Nan
The 'bpf-loader.[ch]' files are introduced in this patch. Which will be the interface between perf and libbpf. bpf__prepare_load() resides in bpf-loader.c. Following patches will enrich these two files. Signed-off-by: Wang Nan Signed-off-by: Arnaldo Carvalho de Melo Acked-by: Alexei Starovoitov

Re: [linux-sunxi] Re: [PATCH v2] ARM: dts: sunxi: Add regulators for LeMaker BananaPi

2015-10-08 Thread Hans de Goede
Hi, On 10/07/2015 05:01 PM, Stefan Monnier wrote: @Maxime: How should we handle this? In its current form, the patch applies only to the BananaPi dts by overriding the inherited opp from the SoC dtsi. In an earlier discussion, it was said that this can be done, even though it might not be the mo

Re: [PATCH v3 2/3] uio_pci_generic: add MSI/MSI-X support

2015-10-08 Thread Michael S. Tsirkin
On Thu, Oct 08, 2015 at 08:33:45AM +0300, Avi Kivity wrote: > On 08/10/15 00:05, Michael S. Tsirkin wrote: > >On Wed, Oct 07, 2015 at 07:39:16PM +0300, Avi Kivity wrote: > >>That's what I thought as well, but apparently adding msix support to the > >>already insecure uio drivers is even worse. > >I

[PATCH v2] leds: triggers: add invert to heartbeat

2015-10-08 Thread Jiri Prchal
This patcht adds possibility to invert heartbeat blinking. The inverted LED is more time ON then OFF. It's because it looks better when the heartbeat LED is next to other LED which is most time ON. The invert value is exported same way via sysfs in file invert like oneshot. I get inspiration from t

[PATCH 05/22] perf record: Load eBPF object into kernel

2015-10-08 Thread Wang Nan
This patch utilizes bpf_object__load() provided by libbpf to load all objects into kernel. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Daniel Borkmann Cc: David Ahern Cc: He Kuang Cc: Jiri Olsa Cc: Kaixu Xia Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Paul Mackerra

Re: [PATCH v13 1/2] ARM: dts: vf610twr: add NAND flash controller peripherial

2015-10-08 Thread Shawn Guo
On Wed, Oct 07, 2015 at 04:58:35PM -0700, Stefan Agner wrote: > This adds the NAND flash controller (NFC) peripherial. The driver > supports the SLC NAND chips found on Freescale's Vybrid Tower System > Module. The Micron NAND chip on the module needs 4-bit ECC per 512 > byte page. Use 24-bit ECC p

[PATCH 12/22] perf probe: Reset args and nargs for probe_trace_event when failure

2015-10-08 Thread Wang Nan
When failure occures in add_probe_trace_event(), args in probe_trace_event is incomplete. Since information in it may be used in futher, this patch frees the allocated memory and set it to NULL to avoid dangling pointer. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Danie

[PATCH 21/22] perf test: Enforce LLVM test, add kbuild test

2015-10-08 Thread Wang Nan
This patch enforces existing LLVM test, makes it compile more than one BPF source file. The compiled results are stored, can be used for other testcases. Except the first testcase (named LLVM_TESTCASE_BASE), failures of other test cases are not considered as failure of the whole test. Adds a kbuil

Re: [PATCH 10/12] drm: bridge/dw_hdmi: fix phy enable/disable handling

2015-10-08 Thread Yakir Yang
Oh, I haven't noticed that those patches already have been merged into linux-next :-) On 10/08/2015 03:17 AM, Russell King - ARM Linux wrote: On Wed, Oct 07, 2015 at 06:40:11PM +0800, Yakir Yang wrote: On 10/07/2015 05:48 PM, Russell King - ARM Linux wrote: On Wed, Oct 07, 2015 at 12:05:37

[PATCH 16/22] perf tools: Add prologue for BPF programs for fetching arguments

2015-10-08 Thread Wang Nan
From: He Kuang This patch generates prologue for a BPF program which fetch arguments for it. With this patch, the program can have arguments as follow: SEC("lock_page=__lock_page page->flags") int lock_page(struct pt_regs *ctx, int err, unsigned long flags) { return 1; } This patch

Re: [PATCH v3 0/4] USB MIDI Gadget bug fixes and improvements

2015-10-08 Thread Felipe Tonello
On Tue, Sep 29, 2015 at 1:01 PM, Felipe F. Tonello wrote: > Here is the third version of this patch set. It includes memory leakage bug > fix, improvements and code cleanups. > > Felipe F. Tonello (4): > usb: gadget: f_midi: free usb request when done > usb: gadget: f_midi: free request when

[PATCH 15/22] perf tools: Compile dwarf-regs.c if CONFIG_BPF_PROLOGUE is on

2015-10-08 Thread Wang Nan
regs_query_register_offset() in dwarf-regs.c is required by BPF prologue. Make it be compiled if CONFIG_BPF_PROLOGUE is on to avoid building failure when CONFIG_BPF_PROLOGUE is on but CONFIG_DWARF is not set. Signed-off-by: Wang Nan Signed-off-by: He Kuang Acked-by: Masami Hiramatsu Cc: Alexei

[PATCH 19/22] perf record: Support custom vmlinux path

2015-10-08 Thread Wang Nan
From: He Kuang Make perf-record command support --vmlinux option if BPF_PROLOGUE is on. 'perf record' needs vmlinux as the source of DWARF info to generate prologue for BPF programs, so path of vmlinux should be specified. Short name 'k' has been taken by 'clockid'. This patch skips the short o

[PATCH 18/22] perf tools: Use same BPF program if arguments are identical

2015-10-08 Thread Wang Nan
This patch allows creating only one BPF program for different 'probe_trace_event'(tev) generated by one 'perf_probe_event'(pev), if their prologues are identical. This is done by comparing argument list of different tev, and maps type of prologue and tev using a mapping array. This patch utilizes

[PATCH 22/22] perf test: Test BPF prologue

2015-10-08 Thread Wang Nan
This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is chosen because it is a function pointer, so we don't need to consider inlining and LTP. By extracting file->f_mode, bp

[PATCH 20/22] perf tools: Allow BPF program attach to uprobe events

2015-10-08 Thread Wang Nan
This patch appends new syntax to BPF object section name to support probing at uprobe event. Now we can use BPF program like this: SEC( "target=/lib64/libc.so.6\n" "libcwrite=__write" ) int libcwrite(void *ctx) { return 1; } Where, in section name of a program, before the main config

[PATCH 14/22] perf tools: Add BPF_PROLOGUE config options for further patches

2015-10-08 Thread Wang Nan
If both LIBBPF and DWARF are detected, it is possible to create prologue for eBPF programs to help them accessing kernel data. HAVE_BPF_PROLOGUE and CONFIG_BPF_PROLOGUE is added as flags for this feature. PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET indicates an architecture supports converting name

Re: [PATCHv3 1/2] ARM: exynos_defconfig: Enable rtl8152 ethernet driver for Odroid-XU4

2015-10-08 Thread Arnd Bergmann
On Thursday 08 October 2015 16:46:27 Krzysztof Kozlowski wrote: > On 08.10.2015 16:41, Arnd Bergmann wrote: > > On Thursday 08 October 2015 03:48:36 Anand Moon wrote: > >> diff --git a/arch/arm/configs/exynos_defconfig > >> b/arch/arm/configs/exynos_defconfig > >> index 1ff2bfa..5d1937b 100644 > >

[PATCH 06/22] perf tools: Collect perf_evsel in BPF object files

2015-10-08 Thread Wang Nan
This patch collects 'struct perf_evsel' for every probing points in BPF object file(s) and fill 'struct evlist'. The previous introduced dummy event now removed. After this patch, following command: # perf record --event filter.o ls Can trace on each probing points defined in filter.o. The core

[PATCH 08/22] perf record: Add clang options for compiling BPF scripts

2015-10-08 Thread Wang Nan
Although previous patch allows setting BPF compiler related options in perfconfig, on some ad-hoc situation it still requires passing options through cmdline. This patch introduces 2 options to 'perf record' for this propose: --clang-path and --clang-opt. Signed-off-by: Wang Nan Cc: Alexei Starov

[PATCH 03/22] perf tools: Enable passing bpf object file to --event

2015-10-08 Thread Wang Nan
By introducing new rules in tools/perf/util/parse-events.[ly], this patch enables 'perf record --event bpf_file.o' to select events by an eBPF object file. It calls parse_events_load_bpf() to load that file, which uses bpf__prepare_load() and finally calls bpf_object__open() for the object files.

[PATCH 11/22] perf test: Add 'perf test BPF'

2015-10-08 Thread Wang Nan
This patch adds BPF testcase for testing BPF event filtering. By utilizing the result of 'perf test LLVM', this patch compiles the eBPF sample program then test it ability. The BPF script in 'perf test LLVM' collects half of execution of epoll_pwait(). This patch runs 111 times of it, so the resul

[PATCH 09/22] perf tools: Compile scriptlets to BPF objects when passing '.c' to --event

2015-10-08 Thread Wang Nan
This patch provides infrastructure for passing source files to --event directly using: # perf record --event bpf-file.c command This patch does following works: 1) Allow passing '.c' file to '--event'. parse_events_load_bpf() is expanded to allow caller tell it whether the passed file is s

RE: [PATCH v2 3/3] ASoC: da7213: Add bindings documentation for codec driver

2015-10-08 Thread Opensource [Adam Thomson]
On October 07, 2015 17:22, Rob Herring wrote: > > +- dlg,micbias1-lvl : Voltage (mV) for Mic Bias 1 > > + [<1600>, <2200>, <2500>, <3000>] > > +- dlg,micbias2-lvl : Voltage (mV) for Mic Bias 2 > > + [<1600>, <2200>, <2500>, <3000>] > > Please append the units (-microvolt). Given that

[PATCH 10/22] perf test: Enforce LLVM test for BPF test

2015-10-08 Thread Wang Nan
This patch replaces the original toy BPF program with previous introduced bpf-script-example.c. Dynamically embedded it into 'llvm-src.c'. The newly introduced BPF program attaches a BPF program at 'sys_epoll_pwait()', and collect half samples from it. perf itself never use that syscall, so furthe

[PATCH 07/22] perf tools: Attach eBPF program to perf event

2015-10-08 Thread Wang Nan
This is the final patch which makes basic BPF filter work. After applying this patch, users are allowed to use BPF filter like: # perf record --event ./hello_world.o ls A bpf_fd field is appended to 'struct evsel', and setup during the callback function add_bpf_event() for each 'probe_trace_even

[PATCH 17/22] perf tools: Generate prologue for BPF programs

2015-10-08 Thread Wang Nan
This patch generates prologue for each 'struct probe_trace_event' for fetching arguments for BPF programs. After bpf__probe(), iterate over each programs to check whether prologue is required. If none of 'struct perf_probe_event' a program will attach to has at least one argument, simply skip prep

Re: [PATCH v3 2/3] uio_pci_generic: add MSI/MSI-X support

2015-10-08 Thread Avi Kivity
On 10/08/2015 10:32 AM, Michael S. Tsirkin wrote: On Thu, Oct 08, 2015 at 08:33:45AM +0300, Avi Kivity wrote: It is good practice to defend against root oopsing the kernel, but in some cases it cannot be achieved. Absolutely. That's one of the issues with these patches. They don't even try wh

Re: [PATCH v3 2/3] uio_pci_generic: add MSI/MSI-X support

2015-10-08 Thread Michael S. Tsirkin
On Wed, Oct 07, 2015 at 10:55:30AM +0300, Vlad Zolotarov wrote: > * not safe - UIO That's wrong. UIO (in particular uio_pci_generic) can be used safely in many ways, for example with any device not doing DMA. I wouldn't put it upstream otherwise. Make your driver work in such a way that it can

Re: [PATCH] string: Improve the generic strlcpy() implementation

2015-10-08 Thread Ingo Molnar
* Linus Torvalds wrote: > So I really refuse to worry about the snprintf() family of functions wrt this > race. I don't think it was hugely important for strlcpy() either - more of a > "quality of implementation" issue rather than anything fundamental - but for > snprintf and friends it's an

Re: [PATCH V4 2/3] arm64: support initrd outside kernel linear map

2015-10-08 Thread Christoffer Dall
On Tue, Oct 06, 2015 at 01:16:52PM -0400, Mark Salter wrote: > On Tue, 2015-10-06 at 18:11 +0100, Mark Rutland wrote: > > On Tue, Sep 08, 2015 at 12:31:13PM +0100, Mark Rutland wrote: > > > Hi Mark, > > > > > > On Mon, Aug 17, 2015 at 06:01:06PM +0100, Mark Salter wrote: > > > > The use of mem= co

Re: [PATCH v2] x86, bitops, variable_test_bit should return 1 not -1 on a match

2015-10-08 Thread Ingo Molnar
* Prarit Bhargava wrote: > re-ping on this. Just making sure this wasn't dropped on the floor. So I didn't apply it back when I saw your patch because I didn't see where you addressed/analyzed the second paragraph of hpa's review: "The downside with set is that it only sets a single byte,

Re: [PATCH] timekeeping: Limit system time to prevent 32-bit time_t overflow

2015-10-08 Thread Arnd Bergmann
On Thursday 08 October 2015 08:23:44 Miroslav Lichvar wrote: > On Wed, Oct 07, 2015 at 05:10:34PM +0200, Arnd Bergmann wrote: > > On Wednesday 07 October 2015 16:23:44 Miroslav Lichvar wrote: > > > Without the limit added by this patch make will go nuts just one week > > > later when the 32-bit tim

Re: [PATCH v3 2/3] uio_pci_generic: add MSI/MSI-X support

2015-10-08 Thread Gleb Natapov
On Thu, Oct 08, 2015 at 11:32:50AM +0300, Michael S. Tsirkin wrote: > On Thu, Oct 08, 2015 at 08:33:45AM +0300, Avi Kivity wrote: > > On 08/10/15 00:05, Michael S. Tsirkin wrote: > > >On Wed, Oct 07, 2015 at 07:39:16PM +0300, Avi Kivity wrote: > > >>That's what I thought as well, but apparently add

Re: [PATCH] dmaengine: xgene-dma: Disable memcpy operation due to performance drop

2015-10-08 Thread Arnd Bergmann
On Thursday 08 October 2015 13:55:16 Rameshwar Prasad Sahu wrote: > The DMA engine supports memory copy, RAID5 XOR, RAID6 PQ, and other > computations. But the bandwidth of the entire DMA engine is shared > among all channels. This patch re-configures operations availability > such that one can ach

Re: [PATCH] ASoC: rt5645: fix build warning

2015-10-08 Thread Sudip Mukherjee
On Wed, Oct 07, 2015 at 03:05:27PM +0100, Mark Brown wrote: > On Wed, Oct 07, 2015 at 05:52:12PM +0530, Sudip Mukherjee wrote: > > We were getting build warning about "Section mismatch". > > dmi_platform_intel_broadwell is being referenced from the probe function > > rt5645_i2c_probe(), but dmi_pla

Re: [PATCH] dmaengine: xgene-dma: Disable memcpy operation due to performance drop

2015-10-08 Thread Rameshwar Sahu
On Thu, Oct 8, 2015 at 2:23 PM, Arnd Bergmann wrote: > On Thursday 08 October 2015 13:55:16 Rameshwar Prasad Sahu wrote: >> The DMA engine supports memory copy, RAID5 XOR, RAID6 PQ, and other >> computations. But the bandwidth of the entire DMA engine is shared >> among all channels. This patch re

Re: [tip:x86/asm] x86/entry, locking/lockdep: Move lockdep_sys_exit() to prepare_exit_to_usermode()

2015-10-08 Thread Peter Zijlstra
On Wed, Oct 07, 2015 at 09:17:44AM -0700, tip-bot for Andy Lutomirski wrote: > Commit-ID: 72f924783b8a87e4454516520ffb5f35e4930371 > Gitweb: http://git.kernel.org/tip/72f924783b8a87e4454516520ffb5f35e4930371 > Author: Andy Lutomirski > AuthorDate: Mon, 5 Oct 2015 17:47:54 -0700 > Committe

Re: [PATCH tip/core/rcu 04/18] rcu: Use single-stage IPI algorithm for RCU expedited grace period

2015-10-08 Thread Peter Zijlstra
On Wed, Oct 07, 2015 at 09:14:45AM -0700, Paul E. McKenney wrote: > On Wed, Oct 07, 2015 at 03:49:29PM +0200, Peter Zijlstra wrote: > > On Wed, Oct 07, 2015 at 03:43:11PM +0200, Peter Zijlstra wrote: > > > On Tue, Oct 06, 2015 at 09:29:23AM -0700, Paul E. McKenney wrote: > > > > @@ -167,42 +307,18

Re: [PATCH] serial: atmel: fix compiler warning on address cast

2015-10-08 Thread Alexandre Belloni
On 05/10/2015 at 18:00:52 +0100, Andre Przywara wrote : > Turning on KVM and LPAE support on top of a multi_v7_defconfig will > produce a compiler warning in the Atmel serial driver: > drivers/tty/serial/atmel_serial.c: In function 'atmel_verify_port': > drivers/tty/serial/atmel_serial.c:2299:6: wa

Re: [PATCH tip/core/rcu 18/18] rcu: Better hotplug handling for synchronize_sched_expedited()

2015-10-08 Thread Peter Zijlstra
On Wed, Oct 07, 2015 at 09:26:53AM -0700, Paul E. McKenney wrote: > On Wed, Oct 07, 2015 at 04:26:27PM +0200, Peter Zijlstra wrote: > Indeed, that approach looks better than moving rcu_note_context_switch(), > which probably results in deadlocks. I will update my patch accordingly. Yeah, calling

Re: [PATCH] panic: release stale console lock to always get the logbuf printed out

2015-10-08 Thread Jan Kara
On Wed 07-10-15 15:34:08, Andrew Morton wrote: > (cc Jan) > > On Wed, 7 Oct 2015 19:02:22 +0200 Vitaly Kuznetsov > wrote: > > > In some cases we may end up killing the CPU holding the console lock > > while still having valuable data in logbuf. E.g. I'm observing the > > following: > > - A cra

Re: [PATCH net-next 3/6] net: remove dsa.h include from linux/netdevice.h

2015-10-08 Thread kbuild test robot
Hi Vivien, [auto build test ERROR on net-next/master -- if it's inappropriate base, please ignore] config: arm64-allyesconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x

[PATCH v2] dmaengine: xgene-dma: Disable memcpy operation due to performance drop

2015-10-08 Thread Rameshwar Prasad Sahu
The DMA engine supports memory copy, RAID5 XOR, RAID6 PQ, and other computations. But the bandwidth of the entire DMA engine is shared among all channels. This patch re-configures operations availability such that one can achieve maximum performance for XOR and PQ computation by removing the memory

  1   2   3   4   5   6   7   8   9   10   >