[PATCH v6 16/16] perf data: Support converting data from bpf_perf_event_output()

2015-12-17 Thread Wang Nan
bpf_perf_event_output() outputs data through sample->raw_data. This patch adds support to convert those data into CTF. A python script then can be used to process output data from BPF programs. Test result: # cat ./test_bpf_output_2.c / BEGIN **/

[PATCH v6 11/16] perf tools: Enable passing event to BPF object

2015-12-17 Thread Wang Nan
A new syntax is appended into parser so user can pass predefined perf events into BPF objects. After this patch, BPF programs for perf are finally able to utilize bpf_perf_event_read() introduced in commit 35578d7984003097af2b1e3 (bpf: Implement function bpf_perf_event_read() that get the selected

[PATCH v6 01/16] perf tools: Fix PowerPC native building

2015-12-17 Thread Wang Nan
Checks BPF syscall number, turn off libbpf building on platform doesn't correctly support sys_bpf instead of blocking compiling. Reported-by: Naveen N. Rao Acked-by: Jiri Olsa Tested-by: Naveen N. Rao Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Sukadev Bhattiprolu --- tools/bui

[PATCH v6 14/16] perf tools: Enable indices setting syntax for BPF maps

2015-12-17 Thread Wang Nan
This patch introduce a new syntax to perf event parser: # perf record -e './test_bpf_map_3.c/maps:channel.value[0,1,2,3...5]=101/' usleep 2 By utilizing the basic facilities in bpf-loader.c which allow setting different slots in a BPF map separately, the newly introduced syntax allows perf to c

[PATCH v6 08/16] perf tools: Add API to config maps in bpf object

2015-12-17 Thread Wang Nan
bpf__config_obj() is introduced as a core API to config BPF object after loading. One configuration option of maps is introduced. After this patch BPF object can accept configuration like: maps:my_map.value=1234 (maps.my_map.value looks pretty. However, there's a small but hard to fixed problem

[PATCH v6 12/16] perf tools: Support perf event alias name

2015-12-17 Thread Wang Nan
From: He Kuang This patch is useful when trying to pass a perf event to BPF map. Before this patch we are unable to pass an event with config term to BPF maps. For example: # perf record -a -e cycles/no-inherit,period=0x7fff/ \ -e './test_bpf_map_2.c/maps:pmu_map.

[PATCH v6 10/16] perf record: Apply config to BPF objects before recording

2015-12-17 Thread Wang Nan
bpf__apply_obj_config() is introduced as the core API to apply object config options to all BPF objects. This patch also does the real work for setting values for BPF_MAP_TYPE_PERF_ARRAY maps by inserting value stored in map's private field into the BPF map. This patch is required because we are n

RE: [PATCH 1/2] pci: Update VPD definitions

2015-12-17 Thread Seymour, Shane M
> The 'end' tag is actually 0x0f, it's the representation as a > small resource data type tag that's 0x78 (ie shifted by 3). > This patch also adds helper functions to extract the resource > data type tags for both large and small resource data types. > > Cc: Alexander Duyck > Cc: Bjorn Helgaas >

Re: [PATCH] virtio: use smp_load_acquire/smp_store_release

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 12:29:03PM +0200, Michael S. Tsirkin wrote: > +static inline __virtio16 virtio_load_acquire(bool weak_barriers, __virtio16 > *p) > +{ > + if (!weak_barriers) { > + rmb(); > + return READ_ONCE(*p); > + } > +#ifdef CONFIG_SMP > + return smp

[PATCH v6 09/16] perf tools: Enable BPF object configure syntax

2015-12-17 Thread Wang Nan
This patch adds the final step for BPF map configuration. A new syntax is appended into parser so user can config BPF objects through '/' '/' enclosed config terms. After this patch, following syntax is available: # perf record -e ./test_bpf_map_1.c/maps:channel.value=10/ ... It would takes eff

[PATCH v6 04/16] perf test: Fix false TEST_OK result for 'perf test hist'

2015-12-17 Thread Wang Nan
Commit 71d6de64feddd4b45326fba2111b3006d9e0 ('perf test: Fix hist testcases when kptr_restrict is on') solves a double free problem when 'perf test hist' calling setup_fake_machine(). However, the result is still incorrect. For example: $ ./perf test -v 'filtering hist entries' 25: Test filt

[PATCH v6 15/16] perf tools: Introduce bpf-output event

2015-12-17 Thread Wang Nan
Commit a43eec304259a6c637f4014a6d4767159b6a3aa3 (bpf: introduce bpf_perf_event_output() helper) add a helper to enable BPF program output data to perf ring buffer through a new type of perf event PERF_COUNT_SW_BPF_OUTPUT. This patch enable perf to create perf event of that type. Now perf user can u

[PATCH v6 13/16] perf tools: Support setting different slots in a BPF map separately

2015-12-17 Thread Wang Nan
This patch introduces basic facilities to support config different slots in a BPF map one by one. array.nr_ranges and array.ranges are introduced into 'struct parse_events_term', where ranges is an array of indices range (start, length) which will be configured by this config term. nr_ranges is th

Re: [RFC PATCH V2 8/8] irqchip/gic: Add support for tegra AGIC interrupt controller

2015-12-17 Thread Jon Hunter
On 17/12/15 10:48, Jon Hunter wrote: > Add a driver for the Tegra-AGIC interrupt controller which is compatible > with the ARM GIC-400 interrupt controller. > > The Tegra AGIC (Audio GIC) is part of the Audio Processing Engine (APE) on > Tegra210 and can route interrupts to either the GIC for the

[PATCH v6 00/16] perf tools: BPF related update and other improvements

2015-12-17 Thread Wang Nan
- Use WARN_ONCE in patch 06/16 'perf tools: Prevent calling machine__delete() on non-allocated machine' and add machine__exit() back. - Introduce perf_evsel__is_bpf_output() in 15/16 and use it in 16/16. - Resend PowerPC building breakage fix. He Kuang (1): perf tools: Support perf even

Re: [RFC PATCH V2 6/8] irqchip/gic: Assign irqchip dynamically

2015-12-17 Thread Marc Zyngier
Hi Jon, On 17/12/15 10:48, Jon Hunter wrote: > Dynamically assign the irqchip structure for each GIC controller > instance. This is necessary in order to populate the "dev" member > of the irqchip structure for GIC instances that require runtime > power management support. This also allows us to p

[PATCH v6 05/16] perf test: Reset err after using it hold errcode in hist testcases

2015-12-17 Thread Wang Nan
All hists test cases forget to reset err after using it to hold an error code. If error occure in setup_fake_machine() it incorrectly return TEST_OK. This patch fixes it. Signed-off-by: Wang Nan Suggested-by: Namhyung Kim Acked-by: Namhyung Kim Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc:

[PATCH v6 02/16] tools: Move Makefile.arch from perf/config to tools/scripts

2015-12-17 Thread Wang Nan
After this patch other directories can use this architecture detector without directly including it from perf's directory. Libbpf would utilize it to get proper $(ARCH) so it can receive correct uapi include directory. Signed-off-by: Wang Nan Acked-by: Jiri Olsa Tested-by: Naveen N. Rao Cc: Arn

[PATCH v6 07/16] perf test: Check environment before start real BPF test

2015-12-17 Thread Wang Nan
Copying perf to old kernel system results: # perf test bpf 37: Test BPF filter : 37.1: Test basic BPF filtering : FAILED! 37.2: Test BPF prologue generation : Skip However, in case when kernel doe

[PATCH v6 03/16] perf: bpf: Fix build breakage due to libbpf

2015-12-17 Thread Wang Nan
From: "Naveen N. Rao" perf build is currently (v4.4-rc5) broken on powerpc: bpf.c:28:4: error: #error __NR_bpf not defined. libbpf does not support your arch. # error __NR_bpf not defined. libbpf does not support your arch. ^ Fix this by including tools/scripts/Makefile.arch for the prope

Re: [PATCH 2/3] NTB: Add AMD NTB support in Kconfig and Makefile

2015-12-17 Thread kbuild test robot
Hi Xiangliang, [auto build test WARNING on v4.4-rc5] [also build test WARNING on next-20151217] url: https://github.com/0day-ci/linux/commits/Xiangliang-Yu/NTB-Add-AMD-PCI-Express-NTB-driver/20151217-113608 config: x86_64-randconfig-n0-12171710 (attached as .config) reproduce: # save

Re: SDHCI long sleep with interrupts off

2015-12-17 Thread Lucas Stach
Am Donnerstag, den 17.12.2015, 11:28 +0100 schrieb David Jander: > Hi all, > > I was investigating the source of abnormal irq-latency spikes on an i.MX6 > (ARM) board, and discovered this: > > # tracer: preemptirqsoff > # > # preemptirqsoff latency trace v1.1.5 on 4.4.0-rc4+ > #

Re: [PATCH] staging: rtl8192u: fix large frame size compiler warning

2015-12-17 Thread Dan Carpenter
Put a v3 in the subject. There are still paths where this is not freed, so we need a v4. Take your time, there is no rush. > drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 15 ++- > 1 file changed, 14 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/rtl8192u/ieee8

[PATCH v6 06/16] perf tools: Prevent calling machine__delete() on non-allocated machine

2015-12-17 Thread Wang Nan
To prevent futher commits calling machine__delete() on non-allocated 'struct machine' (which would cause memory corruption), this patch enforces machine__init(), record whether a machine structure is dynamically allocated or not, and warn if machine__delete() is called on incorrect object. Signed-

RE: [PATCH 2/2] pci: Update VPD size with correct length

2015-12-17 Thread Seymour, Shane M
Tested with a HP AE311-60001 PCIe card. It used to repeat the same VPD every 4k for 32k now only the 154 bytes are returned and lspci - reports that the data up to and including the end and that the check sum is good: ... Capabilities: [74] Vital Product Data Product N

use-after-free in sixpack_close

2015-12-17 Thread Dmitry Vyukov
Hello, The following program triggers use-after-free in sixpack_close: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include #include #include #include int main() { int fd = open("/dev/ptmx", O_RDWR); int opt = 0x7;

Re: [PATCH 2/2] pci: Update VPD size with correct length

2015-12-17 Thread kbuild test robot
Hi Hannes, [auto build test WARNING on pci/next] [also build test WARNING on v4.4-rc5 next-20151217] url: https://github.com/0day-ci/linux/commits/Hannes-Reinecke/pci-Update-VPD-definitions/20151217-160050 base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next reproduce

Re: SDHCI long sleep with interrupts off

2015-12-17 Thread David Jander
Hi Lucas, Thanks for reacting. On Thu, 17 Dec 2015 12:03:10 +0100 Lucas Stach wrote: > Am Donnerstag, den 17.12.2015, 11:28 +0100 schrieb David Jander: > > Hi all, > > > > I was investigating the source of abnormal irq-latency spikes on an i.MX6 > > (ARM) board, and discovered this: > > > >

Re: linux-next: manual merge of the regulator tree with the qcom tree

2015-12-17 Thread Mark Brown
On Thu, Dec 17, 2015 at 01:01:29PM +1100, Stephen Rothwell wrote: > between commit: > f6251e80956d ("soc: qcom: documentation: Update SMD/RPM Docs") > 9ee8373a1552 ("soc: qcom: smd-rpm: Add existing platform support") > from the qcom tree and commit: > 7a400585893e ("soc: qcom: documentat

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

2015-12-17 Thread Alexandre Belloni
On 17/12/2015 at 16:03:44 +1100, Stephen Rothwell wrote : > Hi Alexandre, > > After merging the rtc tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > drivers/built-in.o: In function `rtc_time64_to_tm': > sunxi_sid.c:(.text+0x366e54): undefined reference to `__aeabi_l

Re: [PATCH v6 03/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2015-12-17 Thread Catalin Marinas
On Wed, Dec 16, 2015 at 12:42:29AM +0300, Yury Norov wrote: > From: Andrew Pinski > > Reviewed-by: David Daney > Signed-off-by: Philipp Tomsich > Signed-off-by: Christoph Muellner > Signed-off-by: Yury Norov > Signed-off-by: Andrew Pinski I already asked here to add a long patch description

Re: [PATCH v4] spi: dts: sun4i: Add support for wait time between word transmissions

2015-12-17 Thread Marcus Weseloh
Hi Maxime, 2015-12-16 11:39 GMT+01:00 Maxime Ripard : > It looks mostly fine, however, please try to make only one thing in > one patch. > > In this case, it would mean having one patch to add the DT property > and support in the SPI core in a first one, and then add support for > it in your drive

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 12:32:53PM +0200, Michael S. Tsirkin wrote: > Seems to give a speedup on my box but I'm less sure about this one. E.g. as > xchng faster than mfence on all/most intel CPUs? Anyone has an opinion? Would help if you Cc people who would actually know this :-) Yes, we've rece

Re: SDHCI long sleep with interrupts off

2015-12-17 Thread Lucas Stach
Am Donnerstag, den 17.12.2015, 12:20 +0100 schrieb David Jander: > Hi Lucas, > > Thanks for reacting. > > On Thu, 17 Dec 2015 12:03:10 +0100 > Lucas Stach wrote: > > > Am Donnerstag, den 17.12.2015, 11:28 +0100 schrieb David Jander: > > > Hi all, > > > > > > I was investigating the source of

Re: [PATCH 3/3] NTB: Add flush_req and wakeup interface

2015-12-17 Thread kbuild test robot
Hi Xiangliang, [auto build test WARNING on v4.4-rc5] [also build test WARNING on next-20151217] url: https://github.com/0day-ci/linux/commits/Xiangliang-Yu/NTB-Add-AMD-PCI-Express-NTB-driver/20151217-113608 config: x86_64-randconfig-n0-12171710 (attached as .config) reproduce: # save

[Propose] Isolate core_pattern in mnt namespace.

2015-12-17 Thread Dongsheng Yang
Hi guys, We are working on making core dump behaviour isolated in container. But the problem is, the /proc/sys/kernel/core_pattern is a kernel wide setting, not belongs to a container. So we want to add core_pattern into mnt namespace. What do you think about it? Yang -

RE: [PATCH 07/10] drivers/pci: make host/pcie-rcar.c explicitly non-modular

2015-12-17 Thread Phil Edworthy
Hi Paul, On 13 December 2015 10:59, Geert Uytterhoeven wrote: > > CC MODULE_AUTHOR > > On Sun, Dec 13, 2015 at 2:41 AM, Paul Gortmaker > wrote: > > The Kconfig currently controlling compilation of this code is: > > > > drivers/pci/host/Kconfig:config PCI_RCAR_GEN2_PCIE > > drivers/pci/host/Kcon

[PATCH] drivers/usb : Set DMA_MASK of usb platform device

2015-12-17 Thread Sriram Dash
Set DMA_MASK of usb platform device properly. Signed-off-by: Sriram Dash Signed-off-by: Ramneek Mehresh --- drivers/usb/host/fsl-mph-dr-of.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/fsl-mph-dr-of.c b/drivers/usb/host/fsl-mph-dr-of.c index 0c3826

RE: [PATCH V1] rtc: da9063: access ordering error during RTC interrupt system power on

2015-12-17 Thread Opensource [Steve Twiss]
On 16 December 2015 23:47 Alexandre Belloni wrote: > Subject: Re: [PATCH V1] rtc: da9063: access ordering error during RTC > interrupt system power on > > This seems mostly fine, however ... Hi Alexandre, Thanks for reviewing this. > On 08/12/2015 at 16:28:39 +, Steve Twiss wrote : > >

Re: [PATCH v6 07/20] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2015-12-17 Thread Catalin Marinas
On Wed, Dec 16, 2015 at 12:42:33AM +0300, Yury Norov wrote: > diff --git a/arch/arm64/include/asm/is_compat.h > b/arch/arm64/include/asm/is_compat.h > new file mode 100644 > index 000..476db90 > --- /dev/null > +++ b/arch/arm64/include/asm/is_compat.h > @@ -0,0 +1,62 @@ > +/* > + * Copyright (

Re: module: s390: keep mod_arch_specific for livepatch modules

2015-12-17 Thread Miroslav Benes
On Wed, 16 Dec 2015, Jessica Yu wrote: > +++ Miroslav Benes [16/12/15 13:02 +0100]: > > On Mon, 30 Nov 2015, Jessica Yu wrote: > > > > > Livepatch needs to utilize the symbol information contained in the > > > mod_arch_specific struct in order to be able to call the s390 > > > apply_relocate_add(

Re: SDHCI long sleep with interrupts off

2015-12-17 Thread Ulf Hansson
On 17 December 2015 at 12:27, Lucas Stach wrote: > Am Donnerstag, den 17.12.2015, 12:20 +0100 schrieb David Jander: >> Hi Lucas, >> >> Thanks for reacting. >> >> On Thu, 17 Dec 2015 12:03:10 +0100 >> Lucas Stach wrote: >> >> > Am Donnerstag, den 17.12.2015, 11:28 +0100 schrieb David Jander: >> >

Re: [PATCH v6 0/3] USB MIDI Gadget improvements and bug fixes

2015-12-17 Thread Felipe Ferreri Tonello
Hi Balbi, On 16/12/15 16:03, Felipe Balbi wrote: > > Hi > > Felipe Ferreri Tonello writes: >> Hi all, >> >> On 01/12/15 18:30, Felipe F. Tonello wrote: >>> Fixed all comments suggested by the linux-usb list. >>> >>> changes in v6: >>> - Removed patches already applied in Balbi's tree >>> - Cl

Re: use-after-free in sixpack_close

2015-12-17 Thread One Thousand Gnomes
> This report is then followed by a dozen of other use-after-free reports. > > On commit edb42dc7bc0da0125ceacab810a553ce1f0cac8d (Dec 15). > > Thank you sixpack_close does unregister_netdev(sp->dev), which frees sp as sp is actually allocated via alloc_netdev() Then deletes two timers within s

[PATCH v5 1/2] spi: dts: Add new device property to specifcy a wait time between word transmissions

2015-12-17 Thread Marcus Weseloh
Adds a new property "spi-word-wait-ns" to the spi-bus binding that allows SPI slave devices to set a wait time between the transmission of words. Signed-off-by: Marcus Weseloh --- Documentation/devicetree/bindings/spi/spi-bus.txt | 2 ++ drivers/spi/spi.c | 2 ++

[BUG] perf test 21("Test object code reading") failure on ARM64

2015-12-17 Thread xiakaixu
Hi, Perf test "Test object code reading" failed on ARM64 board and the test log is here. ## # perf test -v 21 ... File is: /tmp/oxygen_root-root/lib64/libc-2.19-2014.08.so On file address is: 0x70c3c Objd

[PATCH v5 2/2] spi: sun4i: Add support for wait time between word transmissions

2015-12-17 Thread Marcus Weseloh
Modifies the sun4i SPI master driver to make use of the "spi-word-wait-ns" property. This specific SPI controller needs 3 clock cycles to set up the delay, which makes the minimum non-zero wait time on this hardware 4 clock cycles. Signed-off-by: Marcus Weseloh --- drivers/spi/spi-sun4i.c | 22 +

Re: [PATCH v6 08/20] arm64: ilp32: add is_ilp32_compat_{task, thread} and TIF_32BIT_AARCH64

2015-12-17 Thread Catalin Marinas
On Wed, Dec 16, 2015 at 12:42:34AM +0300, Yury Norov wrote: > Reviewed-by: David Daney > Signed-off-by: Philipp Tomsich > Signed-off-by: Christoph Muellner > Signed-off-by: Yury Norov > Signed-off-by: Andrew Pinski Long description missing. > diff --git a/arch/arm64/include/asm/is_compat.h

[PATCH v5 0/2] spi: dts: sun4i: Add support for wait time between word transmissions

2015-12-17 Thread Marcus Weseloh
Hi all, This patch set adds a new property "spi-word-wait-ns" to the spi-bus binding that allows SPI slave devices to set a wait time between the transmission of words. Modifies the spi_device struct and slave device probing to read and store the new property. Also modifies the sun4i SPI master d

Re: [PATCH v3 01/36] Documentation: usb: update usb-tools repository address

2015-12-17 Thread Felipe Ferreri Tonello
Hi Robert, On 11/12/15 11:24, Robert Baldyga wrote: > It seems that gitotious repository is no longer accessible, so we replace > it with address to active repository. > > Signed-off-by: Robert Baldyga > --- > Documentation/usb/gadget-testing.txt | 2 +- > 1 file changed, 1 insertion(+), 1 dele

Re: [PATCH V1] rtc: da9063: access ordering error during RTC interrupt system power on

2015-12-17 Thread Alexandre Belloni
On 17/12/2015 at 11:37:06 +, Opensource [Steve Twiss] wrote : > On 16 December 2015 23:47 Alexandre Belloni wrote: > > Subject: Re: [PATCH V1] rtc: da9063: access ordering error during RTC > > interrupt system power on > > > > This seems mostly fine, however ... > > Hi Alexandre, > Thanks fo

Re: [lm-sensors] LM90 driver and ti tmp461 detection

2015-12-17 Thread Jean Delvare
Hi Andreas, On Tue, 15 Dec 2015 16:11:24 +0100, Andreas Werner wrote: > here is the register dump of the tmp461. Thanks. > It seemse that we really cannot detect if it is a tmp461 or a tmp451. > Also the magic "ID Register" offset 0xff is 0x00 for both devices. I would use register 0x16, which

Re: [PATCH] ARM: multi_v7_defconfig: Enable fan, sensors and audio for Odroid XU3

2015-12-17 Thread Krzysztof Kozlowski
2015-12-07 18:43 GMT+09:00 Arnd Bergmann : > On Monday 07 December 2015 18:38:44 Krzysztof Kozlowski wrote: >> On 07.12.2015 18:14, Arnd Bergmann wrote: >> > On Monday 07 December 2015 09:59:54 Krzysztof Kozlowski wrote: >> >> For Odroid XU3-family enable the: >> >> - PWM fan (to control the CPU f

[PATCH V2 00/10] Introduce ACPI world to GICv3 & ITS irqchip

2015-12-17 Thread Tomasz Nowicki
These patches have been part of: [PATCH v4 00/10] ACPI GIC Self-probing, GICv2m and GICv3 support https://lkml.org/lkml/2015/7/29/234 Patches base on Suravee's ACPI GICv2m support: https://lkml.org/lkml/2015/12/10/475 The following git branch contains submitted patches along with the useful for t

[PATCH V2 05/10] irqchip, gicv3, its: Mark its_init() and its children as __init

2015-12-17 Thread Tomasz Nowicki
gicv3_init_bases() is the only caller for its_init(), also it is a __init function, so mark its_init() as __init too, then recursively mark the functions called as __init. This will help to introduce ITS initialization using ACPI tables as we will use acpi_table_parse_entries family functions ther

[PATCH V2 10/10] acpi, gicv3, its: Use MADT ITS subtable to do PCI/MSI domain initialization.

2015-12-17 Thread Tomasz Nowicki
After refactoring DT code, we let ACPI to build ITS PCI MSI domain and do requester ID to device ID translation using IORT table. We have now full PCI MSI domain stack, thus we can enable ITS initialization from GICv3 core driver for ACPI scenario. Signed-off-by: Tomasz Nowicki --- drivers/irqc

[PATCH V2 03/10] irqchip,GICv3,ACPI: Add redistributor support via GICC structures.

2015-12-17 Thread Tomasz Nowicki
On systems supporting GICv3 and above, in MADT GICC structures, the field of GICR Base Address holds the 64-bit physical address of the associated Redistributor if the GIC Redistributors are not in the always-on power domain, so instead of init GICR regions via GIC redistributor structure(s), init

[PATCH V2 09/10] acpi, gicv3, msi: Factor out code that might be reused for ACPI equivalent.

2015-12-17 Thread Tomasz Nowicki
Firmware agnostic code lands in separate function which do necessary domain initialization based on unique domain handler. Signed-off-by: Tomasz Nowicki --- drivers/irqchip/irq-gic-v3-its-pci-msi.c | 43 +--- 1 file changed, 28 insertions(+), 15 deletions(-) diff --g

[PATCH V2 01/10] irqchip / GICv3: Refactor gic_of_init() for GICv3 driver

2015-12-17 Thread Tomasz Nowicki
Isolate hardware abstraction (FDT) code to gic_of_init(). Rest of the logic goes to gic_init_bases() and expects well defined data to initialize GIC properly. The same solution is used for GICv2 driver. This is needed for ACPI initialization later. Signed-off-by: Tomasz Nowicki Signed-off-by: Ha

[PATCH V2 07/10] ARM64, ACPI, PCI: I/O Remapping Table (IORT) initial support.

2015-12-17 Thread Tomasz Nowicki
IORT shows representation of IO topology for ARM based systems. It describes how various components are connected together on parent-child basis e.g. PCI RC -> SMMU -> ITS. Initial support allows to: - register ITS MSI chip along with ITS translation ID and domain token - find registered domain to

[PATCH V2 08/10] irqchip, gicv3, its: Probe ITS in the ACPI way.

2015-12-17 Thread Tomasz Nowicki
Since we prepared ITS for being initialized different that via DT, it is now possible to parse MADT and pass mandatory info to firmware-agnostic ITS init call. Note that we are using here IORT lib to keep track of allocated domain handler which will be used to build PCI MSI domain on top in the la

[PATCH V2 06/10] irqchip/GICv3/ITS: Refator ITS dt init code to prepare for ACPI.

2015-12-17 Thread Tomasz Nowicki
Signed-off-by: Hanjun Guo Signed-off-by: Tomasz Nowicki --- drivers/irqchip/irq-gic-v3-its.c | 82 +++--- drivers/irqchip/irq-gic-v3.c | 6 +-- include/linux/irqchip/arm-gic-v3.h | 2 +- 3 files changed, 52 insertions(+), 38 deletions(-) diff --git a/dr

[PATCH V2 02/10] irqchip / GICv3: Add ACPI support for GICv3+ initialization

2015-12-17 Thread Tomasz Nowicki
With the refator of gic_of_init(), GICv3/4 can be initialized by gic_init_bases() with gic distributor base address and gic redistributor region(s). So get the redistributor region base addresses from MADT GIC redistributor subtable, and the distributor base address from GICD subtable to init GICv

[PATCH V2 04/10] irqchip / GICv3: remove gic root node in ITS

2015-12-17 Thread Tomasz Nowicki
From: Hanjun Guo The gic_root_node defined in ITS driver is not actually used, and the ITS driver seems will not use it in the future, so just remove it. Signed-off-by: Hanjun Guo --- drivers/irqchip/irq-gic-v3-its.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/irqchip/irq-gic

Re: [lm-sensors] LM90 driver and ti tmp461 detection

2015-12-17 Thread Andreas Werner
On Thu, Dec 17, 2015 at 12:48:08PM +0100, Jean Delvare wrote: > Hi Andreas, > > On Tue, 15 Dec 2015 16:11:24 +0100, Andreas Werner wrote: > > here is the register dump of the tmp461. > > Thanks. > > > It seemse that we really cannot detect if it is a tmp461 or a tmp451. > > Also the magic "ID Re

[PATCH v10 1/4] dt-binding:Documents of the mbigen bindings

2015-12-17 Thread MaJun
From: Ma Jun Add the mbigen msi interrupt controller bindings document. This patch based on Mark Rutland's patch https://lkml.org/lkml/2015/7/23/558 Signed-off-by: Ma Jun --- Documentation/devicetree/bindings/arm/mbigen.txt | 74 ++ 1 files changed, 74 insertions(+), 0 d

[PATCH v10 4/4] irqchip:implement the mbigen irq chip operation functions

2015-12-17 Thread MaJun
From: Ma Jun Add the interrupt controller chip operation functions of mbigen chip. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 81 ++ 1 files changed, 81 insertions(+), 0 deletions(-) diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/ir

Re: [PATCH] i2c: allow building emev2 without slave mode again

2015-12-17 Thread Wolfram Sang
On Mon, Dec 14, 2015 at 11:27:22PM +0100, Arnd Bergmann wrote: > On Monday 14 December 2015 14:52:06 Wolfram Sang wrote: > > > > What about not ifdeffing the inline function and keep the build error > > > > whenever someone uses it without I2C_SLAVE being selected? > > > > > > The inline function

[PATCH v10 0/4] irqchip:support mbigen interrupt controller

2015-12-17 Thread MaJun
From: Ma Jun This patch set adds the driver of mbigen and binding document for Hisilicon Mbigen chips. Compared with previous version, this version changed much. Because during the time between V3 and V4 of my patch, there are two related patches were committed by Mr.Marc Zyngier and Mr. Mark R

Re: [PATCH v3 0/8] drm/rockchip: covert to support atomic API

2015-12-17 Thread Heiko Stübner
Hi Mark, Am Donnerstag, 17. Dezember 2015, 18:32:31 schrieb Mark yao: > On 2015年12月17日 18:00, Heiko Stübner wrote: > > Am Donnerstag, 17. Dezember 2015, 11:01:07 schrieb Mark Yao: > >> The series of patches coverting drm rockchip to atomic API, do some > >> cleanup and some fixes on atomic side.

[PATCH v10 2/4] irqchip: add platform device driver for mbigen device

2015-12-17 Thread MaJun
From: Ma Jun Mbigen means Message Based Interrupt Generator(MBIGEN). Its a kind of interrupt controller that collects the interrupts from external devices and generate msi interrupt. Mbigen is applied to reduce the number of wire connected interrupts. As the peripherals increasing, the interrup

Re: [BUG] perf test 21("Test object code reading") failure on ARM64

2015-12-17 Thread Jiri Olsa
adding Jan Stancek to the loop jirka On Thu, Dec 17, 2015 at 07:41:43PM +0800, xiakaixu wrote: > Hi, > > Perf test "Test object code reading" failed on ARM64 board and the test log > is here. > > ## > # perf te

[PATCH v10 3/4] irqchip:create irq domain for each mbigen device

2015-12-17 Thread MaJun
From: Ma Jun For peripheral devices which connect to mbigen,mbigen is a interrupt controller. So, we create irq domain for each mbigen device and add mbigen irq domain into irq hierarchy structure. Signed-off-by: Ma Jun --- drivers/irqchip/irq-mbigen.c | 138 ++

[PATCH] net/macb: add proper header file

2015-12-17 Thread Sudip Mukherjee
gpiod_set_value(bp->reset_gpio, 0); ^ Add the proper header file to resolve it. Fixes: 5833e0526820 ("net/macb: add support for resetting PHY using GPIO") Cc: Gregory CLEMENT Signed-off-by: Sudip Mukherjee --- build log with next-20151217 is at: https://travis-ci.org/sudi

Re: [RFC PATCH V2 2/8] irqdomain: Don't set type when mapping an IRQ

2015-12-17 Thread Linus Walleij
Adding linux-gpio, so quoting in full. On Thu, Dec 17, 2015 at 11:48 AM, Jon Hunter wrote: > Some IRQ chips, such as GPIO controllers or secondary level interrupt > controllers, may require require additional runtime power management > control to ensure they are accessible. For such IRQ chips, i

Re: [PATCH v4] perf: bpf: Fix build breakage due to libbpf

2015-12-17 Thread Arnaldo Carvalho de Melo
Em Thu, Dec 17, 2015 at 10:37:14AM +0530, Naveen N. Rao escreveu: > On 2015/12/17 09:29AM, Wang Nan wrote: > > The whole thread is: > > > > [PATCH v3 0/3] perf build: PowerPC: Fix build breakage due to libbpf: > > http://lkml.kernel.org/g/1450150557-127942-1-git-send-email-wangn...@huawei.com > >

Re: [PATCHSET 00/10] perf tools: Support dynamic sort keys for tracepoints (v2)

2015-12-17 Thread Arnaldo Carvalho de Melo
Em Thu, Dec 17, 2015 at 04:56:31PM +0900, Namhyung Kim escreveu: > Hi Arnaldo, > > On Wed, Dec 16, 2015 at 09:17:59PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Wed, Dec 16, 2015 at 12:35:33AM +0900, Namhyung Kim escreveu: > > > Hello, > > > > > > This is an attempt to improve perf to deal wit

Re: [PATCH v2.1] perf hist: Save raw_data/size for tracepoint events

2015-12-17 Thread Arnaldo Carvalho de Melo
Em Thu, Dec 17, 2015 at 05:14:25PM +0900, Namhyung Kim escreveu: > The raw_data and raw_size fields are to provide tracepoint specific > information. They will be used by dynamic sort keys later. > > Signed-off-by: Namhyung Kim Ok, I'll update this in my local branch and test. - Arnaldo > ---

Re: SDHCI long sleep with interrupts off

2015-12-17 Thread David Jander
On Thu, 17 Dec 2015 12:39:20 +0100 Ulf Hansson wrote: > On 17 December 2015 at 12:27, Lucas Stach wrote: > > Am Donnerstag, den 17.12.2015, 12:20 +0100 schrieb David Jander: > >> Hi Lucas, > >> > >> Thanks for reacting. > >> > >> On Thu, 17 Dec 2015 12:03:10 +0100 > >> Lucas Stach wrote: > >> >

[PATCH] kernel/hung_task.c: use timeout diff when timeout is updated

2015-12-17 Thread Tetsuo Handa
>From 529ff00b556e110c6e801c39e94b06f559307136 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Thu, 17 Dec 2015 16:27:08 +0900 Subject: [PATCH] kernel/hung_task.c: use timeout diff when timeout is updated When new timeout is written to /proc/sys/kernel/hung_task_timeout_secs, khungtaskd is inte

[PATCH V5 1/2] watchdog: Use static struct class watchdog_class in stead of pointer

2015-12-17 Thread Pratyush Anand
We need few sysfs attributes to know different status of a watchdog device. To do that, we need to associate .dev_groups with watchdog_class. So convert it from pointer to static. Putting this static struct in watchdog_dev.c, so that static device attributes defined in that file can be attached to

[PATCH V5 2/2] watchdog: Read device status through sysfs attributes

2015-12-17 Thread Pratyush Anand
This patch adds following attributes to watchdog device's sysfs interface to read its different status. * state - reads whether device is active or not * identity - reads Watchdog device's identity string. * timeout - reads current timeout. * timeleft - reads timeleft before watchdog generates a r

Re: [BUG] perf test 21("Test object code reading") failure on ARM64

2015-12-17 Thread Jan Stancek
- Original Message - > From: "Jiri Olsa" > To: "xiakaixu" > Cc: "adrian hunter" , "Arnaldo Carvalho de Melo" > , "Ingo Molnar" > , "masami hiramatsu pt" , > linux-kernel@vger.kernel.org, "Wangnan > (F)" , "Jan Stancek" > Sent: Thursday, 17 December, 2015 1:09:26 PM > Subject: Re: [

[PATCH] serial: atmel: header file for MODULE_DEVICE_TABLE

2015-12-17 Thread Sudip Mukherjee
defined for mips so we need the definition of MODULE_DEVICE_TABLE to compile successfully. Fixes: c39dfebc7798 ("drivers/tty/serial: make serial/atmel_serial.c explicitly non-modular") Cc: Paul Gortmaker Signed-off-by: Sudip Mukherjee --- build log with next-20151217 is at: https://

Re: [PATCH 1/3] powercap, intel_rapl, implement get_max_time_window

2015-12-17 Thread Prarit Bhargava
On 12/17/2015 12:45 AM, Seiichi Ikarashi wrote: > On 2015-12-15 22:02, Prarit Bhargava wrote: >> The MSR_PKG_POWER_INFO register (Intel ASDM, section 14.9.3 >> "Package RAPL Domain") provides a maximum time window which the >> system can support. This window is read-only and is currently >> not

[PATCH v2 2/7] mm: vmscan: pass memcg to get_scan_count()

2015-12-17 Thread Vladimir Davydov
memcg will come in handy in get_scan_count(). It can already be used for getting swappiness immediately in get_scan_count() instead of passing it around. The following patches will add more memcg-related values, which will be used there. Signed-off-by: Vladimir Davydov Acked-by: Johannes Weiner

[PATCH v2 0/7] Add swap accounting to cgroup2

2015-12-17 Thread Vladimir Davydov
Hi, This is v2 of the patch set introducing swap accounting to cgroup2. For a detailed description and rationale please see patches 1 and 7. v1 can be found here: https://lwn.net/Articles/667472/ v2 mostly addresses comments by Johannes. For the detailed changelog, see individual patches. Thank

[PATCH v2 3/7] mm: memcontrol: replace mem_cgroup_lruvec_online with mem_cgroup_online

2015-12-17 Thread Vladimir Davydov
mem_cgroup_lruvec_online() takes lruvec, but it only needs memcg. Since get_scan_count(), which is the only user of this function, now possesses pointer to memcg, let's pass memcg directly to mem_cgroup_online() instead of picking it out of lruvec and rename the function accordingly. Signed-off-by

[PATCH v2 6/7] mm: free swap cache aggressively if memcg swap is full

2015-12-17 Thread Vladimir Davydov
Swap cache pages are freed aggressively if swap is nearly full (>50% currently), because otherwise we are likely to stop scanning anonymous when we near the swap limit even if there is plenty of freeable swap cache pages. We should follow the same trend in case of memory cgroup, which has its own s

[PATCH v2 4/7] swap.h: move memcg related stuff to the end of the file

2015-12-17 Thread Vladimir Davydov
The following patches will add more functions to the memcg section of include/linux/swap.h. Some of them will need values defined below the current location of the section. So let's move the section to the end of the file. No functional changes intended. Signed-off-by: Vladimir Davydov Acked-by:

[PATCH v2 5/7] mm: vmscan: do not scan anon pages if memcg swap limit is hit

2015-12-17 Thread Vladimir Davydov
We don't scan anonymous memory if we ran out of swap, neither should we do it in case memcg swap limit is hit, because swap out is impossible anyway. Signed-off-by: Vladimir Davydov Acked-by: Johannes Weiner --- Changes in v2: - Do not check swap limit on the legacy hierarchy. include/linux/s

[PATCH v2 7/7] Documentation: cgroup: add memory.swap.{current,max} description

2015-12-17 Thread Vladimir Davydov
The rationale of separate swap counter is given by Johannes Weiner. Signed-off-by: Vladimir Davydov --- Changes in v2: - Add rationale of separate swap counter provided by Johannes. Documentation/cgroup.txt | 33 + 1 file changed, 33 insertions(+) diff --git a/

[PATCH v2 1/7] mm: memcontrol: charge swap to cgroup2

2015-12-17 Thread Vladimir Davydov
In the legacy hierarchy we charge memsw, which is dubious, because: - memsw.limit must be >= memory.limit, so it is impossible to limit swap usage less than memory usage. Taking into account the fact that the primary limiting mechanism in the unified hierarchy is memory.high while memory

Re: block layer bug with 4.4-rc3+

2015-12-17 Thread Andre Przywara
Hi Ming, On 17/12/15 03:52, Ming Lei wrote: > On Wed, Dec 16, 2015 at 10:55 PM, Andre Przywara > wrote: >> Hi, >> >> On 15/12/15 13:39, Ming Lei wrote: >>> On Tue, Dec 15, 2015 at 8:23 PM, Andre Przywara >>> wrote: Hi Ming, thanks for the answer! On 15/12/15 11:54, Min

Re: block layer bug with 4.4-rc3+

2015-12-17 Thread Andre Przywara
Hi Ming, On 17/12/15 03:52, Ming Lei wrote: > On Wed, Dec 16, 2015 at 10:55 PM, Andre Przywara > wrote: >> Hi, >> >> On 15/12/15 13:39, Ming Lei wrote: >>> On Tue, Dec 15, 2015 at 8:23 PM, Andre Przywara >>> wrote: Hi Ming, thanks for the answer! On 15/12/15 11:54, Min

Re: randconfig build error with next-20151216, in drivers/i2c/busses

2015-12-17 Thread Wolfram Sang
On Wed, Dec 16, 2015 at 09:44:00AM -0700, Jim Davis wrote: > Building with the attached random configuration file, > > ERROR: "i2c_parse_fw_timings" [drivers/i2c/busses/i2c-rcar.ko] undefined! Thanks! I just sent a patch to fix it. signature.asc Description: Digital signature

Re: [PATCH v4] of: fix declaration of of_io_request_and_map

2015-12-17 Thread Sudip Mukherjee
the COMPILE_TEST > option") > Cc: Daniel Lezcano > Signed-off-by: Sudip Mukherjee A gentle ping. We still have the build failure with next-20151217. Build log is at: https://travis-ci.org/sudipm-mukherjee/parport/jobs/97388466 regards sudip -- To unsubscribe from this list: sen

Re: [PATCH V2 10/10] acpi, gicv3, its: Use MADT ITS subtable to do PCI/MSI domain initialization.

2015-12-17 Thread kbuild test robot
Hi Tomasz, [auto build test ERROR on v4.4-rc4] [also build test ERROR on next-20151217] [cannot apply to tip/irq/core v4.4-rc5] url: https://github.com/0day-ci/linux/commits/Tomasz-Nowicki/Introduce-ACPI-world-to-GICv3-ITS-irqchip/20151217-195910 config: i386-randconfig-s1-12171706 (attached

[PATCH v4 3/4] crypto: ccp: Use precalculated hash from headers

2015-12-17 Thread LABBE Corentin
Precalculated hash for empty message are now present in hash headers. This patch just use them. Signed-off-by: LABBE Corentin Tested-by: Tom Lendacky Acked-by: Tom Lendacky --- drivers/crypto/ccp/Kconfig | 2 ++ drivers/crypto/ccp/ccp-ops.c | 39 --- 2 fi

[PATCH v4 4/4] crypto: ux500: Use precalculated hash from headers

2015-12-17 Thread LABBE Corentin
Precalculated hash for empty message are now present in hash headers. This patch just use them. Signed-off-by: LABBE Corentin --- drivers/crypto/ux500/Kconfig | 2 ++ drivers/crypto/ux500/hash/hash_core.c | 20 ++-- 2 files changed, 4 insertions(+), 18 deletions(-) dif

<    1   2   3   4   5   6   7   8   9   >