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 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

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

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

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

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:

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: [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

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 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

[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.

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

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 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

[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

[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

[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:

[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:

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

[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

[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

[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

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

[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

[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

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

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

[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

[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

[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

[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 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 ---

[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

[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 **/

Re: [PATCH v6 09/20] arm64:ilp32: share HWCAP between LP64 and ILP32

2015-12-17 Thread Catalin Marinas
On Wed, Dec 16, 2015 at 08:17:25PM +0100, Arnd Bergmann wrote: > On Wednesday 16 December 2015 17:19:05 Catalin Marinas wrote: > > On Wed, Dec 16, 2015 at 04:58:20PM +, Catalin Marinas wrote: > > > On Wed, Dec 16, 2015 at 04:54:34PM +0100, Arnd Bergmann wrote: > > > > On Wednesday 16 December

[RFC PATCH V2 5/8] irqchip/gic: Return an error if GIC initialisation fails

2015-12-17 Thread Jon Hunter
If the GIC initialisation fails, then currently we do not return an error or clean-up afterwards. Although for root controllers, this failure may be fatal anyway, for secondary controllers, it may not be fatal and so return an error on failure and clean-up. Also for non-banked GIC controllers,

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

2015-12-17 Thread Jon Hunter
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 populate a unique name for each GIC controller. This

[RFC PATCH V2 7/8] irqchip/gic: Prepare for adding platform driver

2015-12-17 Thread Jon Hunter
To support GIC chips located in power-domains outside of the CPU subsystem it is necessary to add a platform driver for these chips, so that the probing of the chip can be deferred if the power-domain has not yet been registered with the generic power-domain infrastructure. Before adding a

[RFC PATCH V2 3/8] genirq: Add runtime power management support for IRQ chips

2015-12-17 Thread Jon Hunter
Some IRQ chips may be located in a power domain outside of the CPU subsystem and hence will require device specific runtime power management. In order to support such IRQ chips, add a pointer for a device structure to the irq_chip structure, and if this pointer is populated by the IRQ chip driver

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: > +static inline void virtio_store_mb(bool weak_barriers, > +__virtio16 *p, __virtio16 v) > +{ > +#ifdef CONFIG_SMP > + if (weak_barriers) > + smp_store_mb(*p, v); > + else >

[RFC PATCH V2 0/8] Add support for Tegra210 AGIC

2015-12-17 Thread Jon Hunter
The Tegra210 AGIC interrupt controller is a 2nd level interrupt controller located in a separate power domain to the main GIC interrupt controller. It can route interrupts to the main CPU cluster or an Audio DSP slave. Ideally we would like to re-use the existing ARM GIC driver because the AGIC

[RFC PATCH V2 1/8] irqdomain: Ensure type settings match for an existing mapping

2015-12-17 Thread Jon Hunter
When mapping an IRQ, if a mapping already exists, then we simply return the virual IRQ number. However, we do not check that the type settings for the existing mapping match those for the mapping that is about to be created. It may be unlikely that the type settings would not match, but check for

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

2015-12-17 Thread Jon Hunter
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 CPU subsystem or the Audio DSP (ADSP) within

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

2015-12-17 Thread Jon Hunter
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, it makes sense to enable the IRQ chip when interrupts are requested and disabled them again once all

[RFC PATCH V2 4/8] irqchip/gic: Don't initialise chip if mapping IO space fails

2015-12-17 Thread Jon Hunter
If we fail to map the address space for the GIC distributor or CPU interface, then don't attempt to initialise the chip, just WARN and return. Signed-off-by: Jon Hunter --- drivers/irqchip/irq-gic.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

SDHCI long sleep with interrupts off

2015-12-17 Thread 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+ # # latency: 2068 us, #4/4,

Re: corruption causing crash in __queue_work

2015-12-17 Thread Nikolay Borisov
On 12/14/2015 10:31 PM, Mike Snitzer wrote: > On Mon, Dec 14 2015 at 3:11pm -0500, > Nikolay Borisov wrote: > >> On Mon, Dec 14, 2015 at 5:31 PM, Mike Snitzer wrote: >>> On Mon, Dec 14 2015 at 3:41P -0500, >>> Nikolay Borisov wrote: >>> Had another poke at the backtrace that is

[PATCH v2 2/2] drm/vc4: use CONFIG_PM_SLEEP

2015-12-17 Thread Sudip Mukherjee
us patch discussion at https://lkml.org/lkml/2015/12/16/159 build log of next-20151216 at: https://travis-ci.org/sudipm-mukherjee/parport/jobs/97149763 build log of next-20151217 at: https://travis-ci.org/sudipm-mukherjee/parport/jobs/97388456 drivers/gpu/drm/vc4/vc4_v3d.c | 2 ++ 1 file changed,

Re: [PATCH V2 06/23] XEN / PCI: Remove the dependence on arch x86 when PCI_MMCONFIG=y

2015-12-17 Thread Tomasz Nowicki
On 17.12.2015 11:25, Tomasz Nowicki wrote: On 16.12.2015 16:16, Tomasz Nowicki wrote: In drivers/xen/pci.c, there are arch x86 dependent codes when CONFIG_PCI_MMCONFIG is enabled, since CONFIG_PCI_MMCONFIG depends on ACPI, so this will prevent XEN PCI running on other architectures using ACPI

[PATCH v2 1/2] drm/vc4: make function as void

2015-12-17 Thread Sudip Mukherjee
The return value of vc4_v3d_set_power() is never checked, we can make it void. Signed-off-by: Sudip Mukherjee --- drivers/gpu/drm/vc4/vc4_drv.h | 2 +- drivers/gpu/drm/vc4/vc4_v3d.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_drv.h

Re: [RFC PATCH 3/3] vfio-pci: Allow to mmap MSI-X table if EEH is supported

2015-12-17 Thread yongji xie
On 2015/12/17 4:14, Alex Williamson wrote: On Fri, 2015-12-11 at 16:53 +0800, Yongji Xie wrote: Current vfio-pci implementation disallows to mmap MSI-X table in case that user get to touch this directly. However, EEH mechanism could ensure that a given pci device can only shoot the MSIs

Re: [PATCH RESEND] kvm:x86:Fix error handling in the function kvm_write_wall_clock

2015-12-17 Thread Paolo Bonzini
On 17/12/2015 03:30, Nicholas Krause wrote: > This fixes error handling in the function kvm_write_wall_clock > by checking if any of the calls to kvm_write_guest have failed > inside this paricutlar function and if so print to the console > with pr_err that we are unable to write the data to the

[PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Michael S. Tsirkin
We need a full barrier after writing out event index, using smp_store_mb there seems better than open-coding. As usual, we need a wrapper to account for strong barriers/non smp. It's tempting to use this in vhost as well, for that, we'll need a variant of smp_store_mb that works on __user

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

2015-12-17 Thread Mark yao
On 2015年12月17日 18:00, Heiko Stübner wrote: Hi Mark, 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. TODO: fence is not support on current version. Tested on rk3288 popmetal

[PATCH] virtio: use smp_load_acquire/smp_store_release

2015-12-17 Thread Michael S. Tsirkin
virtio ring entries have exactly the acquire/release semantics: - reading used index acquires a ring entry from host - updating the available index releases it to host Thus when using weak barriers and building for SMP (as most people do), smp_load_acquire and smp_store_release

Re: Add top down metrics to perf stat v2

2015-12-17 Thread Stephane Eranian
Andi, On Tue, Dec 15, 2015 at 4:54 PM, Andi Kleen wrote: > Note to reviewers: includes both tools and kernel patches. > The kernel patches are at the end. > > This patchkit adds support for TopDown measurements to perf stat > It applies on top of my earlier metrics patchkit, posted > separately,

Re: [PATCH v2 0/8] Raspberry Pi 2 support.

2015-12-17 Thread Arnd Bergmann
On Thursday 17 December 2015 09:48:57 Stefan Wahren wrote: > Am 17.12.2015 um 01:37 schrieb Eric Anholt: > > Arnd Bergmann writes: > > > >> On Wednesday 16 December 2015 15:55:07 Eric Anholt wrote: > >>> This is a major rewrite of the previous Raspberry Pi 2 submission. > >>> SMP support is now

Re: [PATCH V2 06/23] XEN / PCI: Remove the dependence on arch x86 when PCI_MMCONFIG=y

2015-12-17 Thread Tomasz Nowicki
On 16.12.2015 16:16, Tomasz Nowicki wrote: In drivers/xen/pci.c, there are arch x86 dependent codes when CONFIG_PCI_MMCONFIG is enabled, since CONFIG_PCI_MMCONFIG depends on ACPI, so this will prevent XEN PCI running on other architectures using ACPI with PCI_MMCONFIG enabled (such as ARM64).

Re: [RFC PATCH 2/3] vfio-pci: Allow to mmap sub-page MMIO BARs if all MMIO BARs are page aligned

2015-12-17 Thread yongji xie
On 2015/12/17 4:04, Alex Williamson wrote: On Fri, 2015-12-11 at 16:53 +0800, Yongji Xie wrote: Current vfio-pci implementation disallows to mmap sub-page(size < PAGE_SIZE) MMIO BARs because these BARs' mmio page may be shared with other BARs. But we should allow to mmap these sub-page MMIO

Re: [PATCH v3 00/36] usb: gadget: composite: introduce new function API

2015-12-17 Thread Robert Baldyga
Hi Felipe, I can see that you have applied the documentation fix patch to your tree. Have also you looked at the remaining patches of this series? What do you think about this concept? Any comments? Best regards, Robert On 12/11/2015 12:24 PM, Robert Baldyga wrote: > Hi Felipe, > > Here is my

Re: Partial revert of "powerpc: Individual System V IPC system calls"

2015-12-17 Thread Michael Ellerman
On Wed, 2015-16-12 at 10:53:29 UTC, Michael Ellerman wrote: > This partially reverts commit a34236155afb1cc41945e58388ac988431bcb0b8. > > While reviewing the glibc patch to exploit the individual IPC calls, > Arnd & Andreas noticed that we were still requiring userspace to pass > IPC_64 in order

Re: [PATCH 00/10] bpf samples: Uses libbpf in tools/lib to do BPF operations

2015-12-17 Thread Wangnan (F)
On 2015/12/17 16:29, Daniel Wagner wrote: On 12/17/2015 08:03 AM, Daniel Wagner wrote: On 12/17/2015 07:51 AM, Wangnan (F) wrote: On 2015/12/17 14:38, Daniel Wagner wrote: On 12/17/2015 06:23 AM, Wang Nan wrote: Since we already have libbpf in tools/lib, we don't need to maintain another

[PATCH 1/2] power:bq27xxx: fix reading for bq27000 and bq27010

2015-12-17 Thread H. Nikolaus Schaller
bug: the driver reports funny capacity values: root@letux:/sys/class/power_supply/bq27000-battery# cat uevent POWER_SUPPLY_NAME=bq27000-battery POWER_SUPPLY_STATUS=Charging POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_VOLTAGE_NOW=3702000 POWER_SUPPLY_CURRENT_NOW=-464635 POWER_SUPPLY_CAPACITY=1536

[PATCH 0/2] two fixes for new bq27000/10 and bq27500 driver

2015-12-17 Thread H. Nikolaus Schaller
H. Nikolaus Schaller (2): power:bq27xxx: fix reading for bq27000 and bq27010 power:bq27xxx: fix register numbers of bq27500 drivers/power/bq27xxx_battery.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) -- 2.5.1 -- To unsubscribe from this list: send the line

[PATCH 2/2] power:bq27xxx: fix register numbers of bq27500

2015-12-17 Thread H. Nikolaus Schaller
bug: according to data sheet some register numbers are wrong. tested: no Signed-off-by: H. Nikolaus Schaller --- drivers/power/bq27xxx_battery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/bq27xxx_battery.c b/drivers/power/bq27xxx_battery.c index

RE: [RFC PATCH 3/3] vfio-pci: Allow to mmap MSI-X table if EEH is supported

2015-12-17 Thread David Laight
> The MSI-X table is paravirtualized on vfio in general and interrupt > remapping theoretically protects against errant interrupts, so why is > this PPC64 specific? We have the same safeguards on x86 if we want to > decide they're sufficient. Offhand, the only way I can think that a > device can

[PATCH v3] usb: gadget: forbid queuing request to a disabled ep

2015-12-17 Thread changbin . du
From: "Du, Changbin" Queue a request to disabled ep doesn't make sense, and induce caller make mistakes. Here is a example for the android mtp gadget function driver. A mem corruption can happen on below senario. 1) On disconnect, mtp driver disable its EPs, 2) During send_file_work and

[PATCH] ASoC: sgtl5000: fix VAG power up timing

2015-12-17 Thread Jean-Michel Hautbois
When power up, a "pop" is heard on line-in and mic-in. An analysis of the PCM shows it lasts ~400ms and looks like a filter response. VAG power up should be delayed by 400ms as VAG power down is. Signed-off-by: Jean-Michel Hautbois --- sound/soc/codecs/sgtl5000.c | 1 + 1 file changed, 1

Re: [PATCH v6 0/6] Add mipi dsi support for rk3288

2015-12-17 Thread Heiko Stübner
Hi Chris, Am Mittwoch, 16. Dezember 2015, 18:10:10 schrieb Chris Zhong: > The rk3288 MIPI DSI is a Synopsys DesignWare MIPI DSI host controller > IP. This series adds support for a Synopsys DesignWare MIPI DSI host > controller DRM driver. > > The MIPI DSI feature is tested on rk3288 evb board,

Re: [PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver

2015-12-17 Thread Nicolas Ferre
It seems that the $subject is not correct. Le 17/12/2015 10:44, Songjun Wu a écrit : > DT binding documentation for this new ASoC driver. > > Signed-off-by: Songjun Wu > --- > > Changes in v2: None > > .../devicetree/bindings/sound/atmel-pdmic.txt | 55 > > 1

Re: PELT initial task load and wake_up_new_task()

2015-12-17 Thread Yuyang Du
On Thu, Dec 17, 2015 at 10:43:03AM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 07:34:27AM +0800, Yuyang Du wrote: > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > index e3266eb..3f6a8b3 100644 > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c > > @@ -2908,10

[PATCH v3 0/2] Create specific kconfig for kselftest

2015-12-17 Thread Bamvor Jian Zhang
There is a discussion about improving the usability of kselftest by creating test-specific kconfig in recent kernel Summit. Patch 1 keep test-specific kconfig fragments inside each selftest so that merge_configs.sh could build up a kernel that can test the specific or all feature(s). Patch 2 add

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, 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. > > TODO: fence is not support on current version. > > Tested on rk3288 popmetal board. In general this works

Re: [PATCH LINUX v4 06/13] tty: xuartps: Move request_irq to after setting up the HW

2015-12-17 Thread Sören Brinkmann
On Wed, 2015-12-16 at 06:37AM -0800, Peter Hurley wrote: > On 12/16/2015 01:03 AM, Sören Brinkmann wrote: > > On Tue, 2015-12-15 at 03:26PM -0800, Peter Hurley wrote: > >> On 12/15/2015 07:41 AM, Sören Brinkmann wrote: > >>> On Thu, 2015-12-10 at 01:41PM -0800, Peter Hurley wrote: > On

[PATCH v2 1/2] ppdev: convert to y2038 safe

2015-12-17 Thread Bamvor Jian Zhang
The y2038 issue for ppdev is changes of timeval in the ioctl (PPSETTIME and PPGETTIME). The size of struct timeval changes from 8bytes to 16bytes due to the changes of time_t. It lead to the changes of the command of ioctl, e.g. for PPGETTIME, We have: on 32-bit (old): 0x80087095 on 32-bit (new):

[PATCH v2 2/2] ppdev: add support for compat ioctl

2015-12-17 Thread Bamvor Jian Zhang
The arg of ioctl in ppdev is the pointer of integer except the timeval in PPSETTIME, PPGETTIME. Different size of timeval is already supported by the previous patches. So, it is safe to add compat support. Signed-off-by: Bamvor Jian Zhang --- drivers/char/ppdev.c | 12 1 file

[PATCH v2 0/2] Convert ppdev to y2038 safe

2015-12-17 Thread Bamvor Jian Zhang
These series of patches try to convert parport device(ppdev) to y2038 safe, and support y2038 safe and unsafe application at the same time. The first version is here[1]. An y2038 safe application/kernel use 64bit time_t(aka time64_t) to avoid 32-bit time types broken in the year 2038. Given that

[PATCH v3 1/2] selftests: create test-specific kconfig fragments

2015-12-17 Thread Bamvor Jian Zhang
Create the config file in each directory of testcase which need more kernel configuration than the default defconfig. User could use these configs with merge_config.sh script: Enable config for specific testcases: (export ARCH=xxx #for cross compiling) ./scripts/kconfig/merge_config.sh .config \

[PATCH v3 2/2] scripts/kconfig/Makefile: add kselftest-mergeconfig

2015-12-17 Thread Bamvor Jian Zhang
Add kselftest-mergeconfig to enable the dependencies of kernel config for all the kselftest testcases. User could call it after create the kernel configuration(.config), eg: $ make kselftest-mergeconfig Signed-off-by: Bamvor Jian Zhang --- scripts/kconfig/Makefile | 9 + 1 file

[PATCH v3 0/2] Create specific kconfig for kselftest

2015-12-17 Thread Bamvor Jian Zhang
There is a discussion about improving the usability of kselftest by creating test-specific kconfig in recent kernel Summit. Patch 1 keep test-specific kconfig fragments inside each selftest so that merge_configs.sh could build up a kernel that can test the specific or all feature(s). Patch 2 add

[RESEND PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver

2015-12-17 Thread Songjun Wu
DT binding documentation for this new ASoC driver. Signed-off-by: Songjun Wu --- Changes in v2: None .../devicetree/bindings/sound/atmel-pdmic.txt | 55 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/atmel-pdmic.txt

[RESEND PATCH v2 1/2] ASoC: atmel-pdmic: add the Pulse Density Modulation Interface Controller

2015-12-17 Thread Songjun Wu
Add driver for the Pulse Density Modulation Interface Controller. It comes with digitallly controlled gain, a High-Pass and a SINCC filter. Signed-off-by: Songjun Wu --- Changes in v2: - Remove the function 'atmel_pdmic_codec_get_remap', since the regmap is initialized in the core. - Replace

[RESEND PATCH v2 0/2] ASoC: atmel-pdmic: add driver for Atmel PDMIC

2015-12-17 Thread Songjun Wu
The Pulse Density Modulation Inteface Controller driver includes two parts. 1) Driver code to implement the PDMIC function. 2) Device tree binding documentation, it describes how to add the PDMIC in device tree. Changes in v2: - Remove the function 'atmel_pdmic_codec_get_remap', since the

Re: [RESEND] Lenovo Yoga 900 touchpad issues

2015-12-17 Thread Benjamin Tissoires
On Dec 16 2015 or thereabouts, Nish Aravamudan wrote: > Hi Jiri, > > On Wed, Dec 16, 2015 at 5:18 AM, Jiri Kosina wrote: > > On Wed, 16 Dec 2015, Mika Westerberg wrote: > > > >> > [Apologies for the resend, didn't realize I hadn't changed my GMail > >> > settings > >> > to not use HTML.] > >> >

[PATCH v2 1/2] ASoC: atmel-pdmic: add the Pulse Density Modulation Interface Controller

2015-12-17 Thread Songjun Wu
Add driver for the Pulse Density Modulation Interface Controller. It comes with digitallly controlled gain, a High-Pass and a SINCC filter. Signed-off-by: Songjun Wu --- Changes in v2: - Remove the function 'atmel_pdmic_codec_get_remap', since the regmap is initialized in the core. - Replace

[PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver

2015-12-17 Thread Songjun Wu
DT binding documentation for this new ASoC driver. Signed-off-by: Songjun Wu --- Changes in v2: None .../devicetree/bindings/sound/atmel-pdmic.txt | 55 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/atmel-pdmic.txt

[PATCH] net/macb: Update device tree binding for resetting PHY using GPIO

2015-12-17 Thread Gregory CLEMENT
Instead of being at the MAC level the reset gpio preperty is moved at the PHY child node level. It is still managed by the MAC, but from the point of view of the binding it make more sense to be part of the PHY node. This commit also fixes a build errors if GPIOLIB is not selected.

Re: [PATCH v4 2/5] mtd: nand: Qualcomm NAND controller driver

2015-12-17 Thread Archit Taneja
On 12/16/2015 07:48 PM, Boris Brezillon wrote: On Wed, 16 Dec 2015 17:27:48 +0530 Archit Taneja wrote: +/* + * NAND controller page layout info + * + * |---| |-| + * | xx...xx| | *xx...xx| + *

Re: [PATCH] locking/osq: fix ordering of node initialisation in osq_lock

2015-12-17 Thread Will Deacon
On Wed, Dec 16, 2015 at 05:18:48PM -0800, David Daney wrote: > What is the status of this patch? It there a good likelihood that it will > make it into v4.4? > > If not, we should request that c55a6ffa6285 ("locking/osq: Relax atomic > semantics") be reverted for v4.4 I think Peter was going to

Re: block layer bug with 4.4-rc3+

2015-12-17 Thread Arnd Bergmann
On Thursday 17 December 2015 09:28:36 Andre Przywara wrote: > > So it was running for almost a day without LPAE now, but with highmem, > and the bug didn't show up. So for the time being I'd avoid another test > run without highmem, as LPAE alone is sufficient to trigger it. There is clearly no

Re: PELT initial task load and wake_up_new_task()

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 07:34:27AM +0800, Yuyang Du wrote: > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index e3266eb..3f6a8b3 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -2908,10 +2908,18 @@ void remove_entity_load_avg(struct sched_entity *se) > { >

RE: [PATCH v2] usb: gadget: forbid queuing request to a disabled ep

2015-12-17 Thread Du, Changbin
> >> 2.5.0 > > > > With this patch, ep0 transfer breaks. it because the 'enabled' of ep0 > > is not set. Ep0 is not enabled by usb_ep_enable, but in UDC driver. So > > there need another patch to set ep0's flag also. > > yeah, we don't like regressions :-) So the fix should come before > $subject

Re: block layer bug with 4.4-rc3+

2015-12-17 Thread Andre Przywara
Tach Arnd, On 16/12/15 15:43, Arnd Bergmann wrote: > On Wednesday 16 December 2015 14:55:43 Andre Przywara wrote: >> Using the plain multi_v7_defconfig (which doesn't have LPAE and makes me >> loose half of the RAM on that box) didn't show the bug so far. >> One of the effects of turning on LPAE

Re: [PATCH] MAINTAINERS: Add co-maintainer for Renesas Pin Controllers

2015-12-17 Thread Linus Walleij
On Wed, Dec 16, 2015 at 11:31 AM, Geert Uytterhoeven wrote: > Add myself as a co-maintainer for Renesas Pin Controllers. > > Signed-off-by: Geert Uytterhoeven > --- > To be included in next sh-pfc-for-v4.5 pull request. Awesome. Acked-by: Linus Walleij Yours, Linus Walleij -- To unsubscribe

Re: [RFC] selftests: report proper exit statuses

2015-12-17 Thread Michael Ellerman
Hi Brian, On Mon, 2015-12-14 at 11:15 -0800, Brian Norris wrote: > Hi Michael, > > On Mon, Dec 14, 2015 at 02:19:35PM +1100, Michael Ellerman wrote: > > On Fri, 2015-12-11 at 15:15 -0800, Brian Norris wrote: > > > > > There are several places where we don't report proper exit statuses, and > >

Re: [PATCH 05/10] perf, tools, stat: Basic support for TopDown in perf stat

2015-12-17 Thread Stephane Eranian
Andi, On Wed, Dec 16, 2015 at 1:21 PM, Andi Kleen wrote: >> > +/* >> > + * Check whether we can use a group for top down. >> > + * Without a group may get bad results due to multiplexing. >> > + */ >> >> That is not because you have a counter used by the NMI that >> you cannot group. If HT is

Re: [PATCH] af_unix: Revert 'lock_interruptible' in stream receive code

2015-12-17 Thread Hannes Frederic Sowa
On 16.12.2015 21:09, Rainer Weikusat wrote: > With b3ca9b02b00704053a38bfe4c31dbbb9c13595d0, the AF_UNIX SOCK_STREAM > receive code was changed from using mutex_lock(>readlock) to > mutex_lock_interruptible(>readlock) to prevent signals from being > delayed for an indefinite time if a thread

RE: [f2fs-dev] [PATCH] f2fs: optimize the flow of f2fs_map_blocks

2015-12-17 Thread Chao Yu
> -Original Message- > From: Fan Li [mailto:fanofcode...@samsung.com] > Sent: Thursday, December 17, 2015 1:21 PM > To: 'Jaegeuk Kim' > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: [f2fs-dev] [PATCH] f2fs: optimize the flow of f2fs_map_blocks > >

[PATCH] f2fs: add a tracepoint for sync_dirty_inodes

2015-12-17 Thread Chao Yu
This patch adds a tracepoint for sync_dirty_inodes. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c| 8 include/trace/events/f2fs.h | 38 ++ 2 files changed, 46 insertions(+) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index

[PATCH v3 5/7] f2fs: stat dirty regular/symlink inodes

2015-12-17 Thread Chao Yu
Add to stat dirty regular and symlink inode for showing in debugfs. Signed-off-by: Chao Yu --- v2: - rename F2FS_DIRTY_DATAS to F2FS_DIRTY_DATA v3: - fix compiler warning --- fs/f2fs/checkpoint.c | 7 ++- fs/f2fs/debug.c | 6 +- fs/f2fs/f2fs.h | 13 +++-- 3

<    3   4   5   6   7   8   9   10   11   12   >