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

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

[PATCH v4 7/7] perf tools: Check write_backward during evlist config

2016-05-23 Thread Wang Nan
Before this patch, when using overwritable ring buffer on an old kernel, error message is misleading: # ~/perf record -m 1 -e raw_syscalls:*/overwrite/ -a Error: The raw_syscalls:sys_enter event is not supported. This patch output clear error message to tell user his/her kernel is too old: #

[PATCH v4 5/7] perf record: Toggle overwrite ring buffer for reading

2016-05-23 Thread Wang Nan
overwrite_evt_state is introduced to reflect the state of overwritable ring buffers. It is a state machine with 3 states: RUNNING --(1)--> DATA_PENDING --(2)--> EMPTY ^ ^ | | |___(disallow)___/| ||

[PATCH v4 2/7] perf tools: Don't poll and mmap overwritable events

2016-05-23 Thread Wang Nan
There's no need to receive events from overwritable ring buffer. Instead, perf should make them run background until something happen. This patch makes normal events from overwrite events ignored. Overwritable events must be mapped readonly and backward, so if evlist and evsel is not match (evsel-

Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking

2016-05-23 Thread Josh Poimboeuf
On Mon, May 23, 2016 at 02:34:56PM -0700, Andy Lutomirski wrote: > On Thu, May 19, 2016 at 4:15 PM, Josh Poimboeuf wrote: > > On Mon, May 02, 2016 at 08:52:41AM -0700, Andy Lutomirski wrote: > >> On Mon, May 2, 2016 at 6:52 AM, Josh Poimboeuf wrote: > >> > On Fri, Apr 29, 2016 at 05:08:50PM -0700

Ahoj?

2016-05-23 Thread Bert
isem zastupujicí investicní zajem ze strany Dubaji, pro ktere hledáme vasi ucast. Odpoved na e-mailu nize v pripade zajmu. E-mail: pbrt...@gmail.com

Re: [PATCH v2 09/12] clocksource: add J-Core PIT/RTC driver

2016-05-23 Thread Rich Felker
On Mon, May 23, 2016 at 10:32:35PM +0200, Daniel Lezcano wrote: > On Fri, May 20, 2016 at 11:15:16PM -0400, Rich Felker wrote: > > On Fri, May 20, 2016 at 04:01:56PM +0200, Daniel Lezcano wrote: > > > On Fri, May 20, 2016 at 02:53:04AM +, Rich Felker wrote: > > > > Signed-off-by: Rich Felker >

Re: [PATCH v3] KVM: halt-polling: poll if emulated lapic timer will fire soon

2016-05-23 Thread Wanpeng Li
2016-05-24 10:19 GMT+08:00 Wanpeng Li : > 2016-05-24 2:01 GMT+08:00 David Matlack : >> On Sun, May 22, 2016 at 5:42 PM, Wanpeng Li wrote: >>> From: Wanpeng Li >> >> I'm ok with this patch, but I'd like to better understand the target >> workloads. What type of workloads do you expect to benefit f

Re: [PATCH V5 5/6] vfio: platform: call _RST method when using ACPI

2016-05-23 Thread Sinan Kaya
On 5/23/2016 11:21 AM, Eric Auger wrote: >> +acpi_ret = acpi_evaluate_integer(handle, "_RST", NULL, &val); >> > + if (ACPI_FAILURE(acpi_ret)) >> > + return -EINVAL; > Can't you return something more explicit here? The error code will be > visible to the userspace. Difficult for him to

Re: [PATCH V5 5/6] vfio: platform: call _RST method when using ACPI

2016-05-23 Thread Sinan Kaya
On 5/23/2016 10:41 AM, Eric Auger wrote: > On 05/16/2016 04:13 AM, Sinan Kaya wrote: >> The device tree code checks for the presence of a reset driver and calls >> the of_reset function pointer by looking up the reset driver as a module. >> >> ACPI defines _RST method to perform device level reset.

Re: [PATCH 1/4] dt-bindings: rng: Northstar Plus SoC rng bindings

2016-05-23 Thread Eric Anholt
Yendapally Reddy Dhananjaya Reddy writes: > Document the bindings used by Northstar Plus(NSP) SoC random number > generator. > > Signed-off-by: Yendapally Reddy Dhananjaya Reddy > Acked-by: Eric Anholt signature.asc Description: PGP signature

Re: [PATCH 4/4] hwrng: bcm2835: Read as much data as available

2016-05-23 Thread Eric Anholt
Yendapally Reddy Dhananjaya Reddy writes: > Read the requested number of data from the fifo > > Signed-off-by: Yendapally Reddy Dhananjaya Reddy > > --- > drivers/char/hw_random/bcm2835-rng.c | 12 ++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > > diff --git a/drivers/char/hw

Re: [PATCH v3] KVM: halt-polling: poll if emulated lapic timer will fire soon

2016-05-23 Thread Wanpeng Li
2016-05-24 2:01 GMT+08:00 David Matlack : > On Sun, May 22, 2016 at 5:42 PM, Wanpeng Li wrote: >> From: Wanpeng Li > > I'm ok with this patch, but I'd like to better understand the target > workloads. What type of workloads do you expect to benefit from this? dynticks guests I think is one of wo

Re: [PATCH V5 4/6] vfio: platform: add support for ACPI probe

2016-05-23 Thread Sinan Kaya
On 5/23/2016 9:18 AM, Eric Auger wrote: > On 05/16/2016 04:13 AM, Sinan Kaya wrote: >> The code is using the compatible DT string to associate a reset driver >> with the actual device itself. The compatible string does not exist on >> ACPI based systems. HID is the unique identifier for a device dr

Re: [RFC][PATCH] ftracetest: Fix hist unsupported result in hist selftests

2016-05-23 Thread Namhyung Kim
On Mon, May 23, 2016 at 09:50:45PM -0400, Steven Rostedt wrote: > On Tue, 24 May 2016 08:54:38 +0900 > Namhyung Kim wrote: > > > Hi Steve, > > > > On Mon, May 23, 2016 at 03:15:38PM -0400, Steven Rostedt wrote: > > > > > > [ Folks, is this a proper work around? ] > > > > > > When histograms ar

Re: [PATCH v3 3/3] sched, x86: Check that we're on the right stack in schedule and __might_sleep

2016-05-23 Thread Linus Torvalds
On Mon, May 23, 2016 at 7:09 PM, Andy Lutomirski wrote: > > What about this silly fix? (Pardon the probable whitespace damage.) That looks fine to me, and has a reason for it. That said, I'm not convinced about the preempt_enable/preempt_disable excuse: that would be horribly buggy anyway, and

Re: [PATCH v3 3/3] sched, x86: Check that we're on the right stack in schedule and __might_sleep

2016-05-23 Thread Andy Lutomirski
On Mon, May 23, 2016 at 6:48 PM, Linus Torvalds wrote: > On Mon, May 23, 2016 at 6:23 PM, Andy Lutomirski wrote: >>> >>> Or we could just let ksoftirqd do its thing and stop raising >>> HARDIRQ_COUNT. We could add a new preempt count field just for IST >>> (yuck). We could try to hijack a diffe

Re: [PATCH V5 2/6] vfio: platform: move reset call to a common function

2016-05-23 Thread Sinan Kaya
On 5/23/2016 9:02 AM, Eric Auger wrote: > Hi Sinan, > On 05/16/2016 04:13 AM, Sinan Kaya wrote: >> The reset call sequence seems to replicate itself multiple times >> across the file. Grouping them together for maintenance reasons. >> >> Signed-off-by: Sinan Kaya >> --- >> drivers/vfio/platform/v

Re: [PATCH 2/4] hwrng: bcm2835: Support Broadcom NSP SoC rng

2016-05-23 Thread Eric Anholt
Yendapally Reddy Dhananjaya Reddy writes: > This supports the random number generator available in NSP SoC. > Masks the rng interrupt for NSP. The interrupt reg is also present on the 2835. I would prefer for simplicity if you also initialized the register to the same value on the Pi, even thou

Re: [PATCH] staging: lustre: llite: drop acl from cache

2016-05-23 Thread Andreas Grünbacher
2016-05-24 2:35 GMT+02:00 James Simmons : > Commit b8a7a3a6 change get_acl() for posix xattr to always cache > the ACL which increases the reference count. That reference count > can be reduced by have ll_get_acl() call forget_cached_acl() which > it wasn't. When an inode gets deleted by Lustre the

Re: [PATCH V7 00/11] Support for generic ACPI based PCI host controller

2016-05-23 Thread Jon Masters
Additional: I would like to thank Ard for suggesting this approach. It turns out (apparently) that Mark Salter's initial X-Gene quirks internal to RH did it this way as well. You great minds think alike. If this works for folks then I hope it leads to upstream kernel support in F25 (we have a bu

Re: [PATCH v5 5/5] mmc: sdhci-of-arasan: implement enhanced strobe callback

2016-05-23 Thread Shawn Lin
在 2016/5/24 5:00, Doug Anderson 写道: Shawn, On Sun, May 22, 2016 at 9:14 PM, Shawn Lin wrote: Currently sdhci-arasan 5.1 can support enhanced strobe function, and we now limit it just for "arasan,sdhci-5.1". Add mmc-hs400-enhanced-strobe in DT to enable the function if we're sure our controller

Re: [PATCH v3 3/3] sched, x86: Check that we're on the right stack in schedule and __might_sleep

2016-05-23 Thread Linus Torvalds
On Mon, May 23, 2016 at 6:23 PM, Andy Lutomirski wrote: >> >> Or we could just let ksoftirqd do its thing and stop raising >> HARDIRQ_COUNT. We could add a new preempt count field just for IST >> (yuck). We could try to hijack a different preempt count field >> (NMI?). But I kind of like the id

Re: [PATCH v5 4/5] mmc: debugfs: add HS400 enhanced strobe description

2016-05-23 Thread Shawn Lin
在 2016/5/24 4:56, Doug Anderson 写道: Shawn, On Sun, May 22, 2016 at 9:14 PM, Shawn Lin wrote: We introduce HS400 with enhanced strobe function, so we need to add it for debug show. Signed-off-by: Shawn Lin --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None

Re: [RFC][PATCH] ftracetest: Fix hist unsupported result in hist selftests

2016-05-23 Thread Steven Rostedt
On Tue, 24 May 2016 08:54:38 +0900 Namhyung Kim wrote: > Hi Steve, > > On Mon, May 23, 2016 at 03:15:38PM -0400, Steven Rostedt wrote: > > > > [ Folks, is this a proper work around? ] > > > > When histograms are not configured in the kernel, the ftracetest histogram > > selftests should return

Re: [PATCH 1/2] Documentation: add binding description of Rockchip PCIe controller

2016-05-23 Thread Shawn Lin
On 2016/5/24 3:53, Heiko Stuebner wrote: Am Samstag, 21. Mai 2016, 11:55:35 schrieb Shawn Lin: On 2016/5/20 19:20, Heiko Stuebner wrote: Hi Shawn, Am Freitag, 20. Mai 2016, 18:29:06 schrieb Shawn Lin: This patch add some required and optional properties for Rockchip PCIe controller. Also we a

Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking

2016-05-23 Thread Andy Lutomirski
On Mon, May 23, 2016 at 4:02 PM, Jiri Kosina wrote: > On Fri, 20 May 2016, Andy Lutomirski wrote: > >> I think it would be negligible, at least for interrupts, since >> interrupts are already extremely expensive. But I don't love adding >> assembly code that makes them even slower. The real thin

Re: [PATCH v2] ASoC: rockchip: Add machine driver for MAX98357A/RT5514/DA7219

2016-05-23 Thread Xing Zheng
Hi Heiko, On 2016年05月23日 22:51, Heiko Stuebner wrote: Hi Xing, Am Montag, 23. Mai 2016, 22:43:32 schrieb Xing Zheng: There are multi codec devices on the RK3399 platform, we can use this patch support and control these codecs. --- Changes in v2: Signed-off-by: Xing Zheng something seems to

Re: x86: A process doesn't stop on hw breakpoints sometimes

2016-05-23 Thread Andy Lutomirski
On Mon, May 23, 2016 at 4:05 PM, Andrei Vagin wrote: > Hi, > > We use breakpoints on CRIU to stop a processes before calling > rt_sigreturn and we found that sometimes a process runs through a > break-point without stopping on it. > > https://github.com/xemul/criu/issues/162 > > > A small reproduc

[RESEND PATCH v2] ASoC: rockchip: Add machine driver for MAX98357A/RT5514/DA7219

2016-05-23 Thread Xing Zheng
There are multi codec devices on the RK3399 platform, we can use this patch support and control these codecs. Signed-off-by: Xing Zheng --- Changes in v2: - use the FS 256 to set mclks of the max98357a and rt5514 danamically - add more sample rate for da7219 .../sound/rockchip-max98357a-rt5514

Re: [PATCH] autofs: don't stuck in a loop if vfs_write returns an error

2016-05-23 Thread Ian Kent
On Mon, 2016-05-23 at 14:50 -0700, Andrei Vagin wrote: > Hi Ian, > > When are you going to apply this patch? We can't test linux-next without it. I though I sent this with the last series but I can't see that I have. I have the rest of that series to send over to Andrew which I was planning to d

Re: [PATCH] regulator: mt6397: Constify struct regulator_ops

2016-05-23 Thread Henry Chen
Hi Mark, On Mon, 2016-05-23 at 12:32 +0100, Mark Brown wrote: > On Mon, May 23, 2016 at 03:30:16PM +0800, Henry Chen wrote: > > Consitify the structure of regulator operations. > > Oh, actually the mode setting patch does apply but it depends on this > one (which was sent after...). It would hav

Re: [PATCH 2/2] pci: Add PCIe driver for Rockchip Soc

2016-05-23 Thread Shawn Lin
Hi Bharat, On 2016/5/23 23:15, Bharat Kumar Gogada wrote: + + irq = platform_get_irq_byname(pdev, "pcie-sys"); + if (irq < 0) { + dev_err(dev, "missing pcie_sys IRQ resource\n"); + return -EINVAL; + } + err = devm_request_irq(dev, irq, rockchip

Re: x86: A process doesn't stop on hw breakpoints sometimes

2016-05-23 Thread Andrei Vagin
On Mon, May 23, 2016 at 4:05 PM, Andrei Vagin wrote: > Hi, > > We use breakpoints on CRIU to stop a processes before calling > rt_sigreturn and we found that sometimes a process runs through a > break-point without stopping on it. > > https://github.com/xemul/criu/issues/162 > > > A small reproduc

Re: [PATCH v3 3/3] sched, x86: Check that we're on the right stack in schedule and __might_sleep

2016-05-23 Thread Andy Lutomirski
On Sun, Feb 28, 2016 at 9:27 PM, Andy Lutomirski wrote: > On Wed, Nov 19, 2014 at 11:44 AM, Linus Torvalds > wrote: >> On Wed, Nov 19, 2014 at 11:29 AM, Andi Kleen wrote: >>> >>> The exception handlers which use the IST stacks don't necessarily >>> set irq count. Maybe they should. >> >> Hmm. I

Re: [PATCH] fbcon: warn on invalid cursor blink intervals

2016-05-23 Thread Scot Doyle
On Fri, 20 May 2016, Scot Doyle wrote: > On Fri, 20 May 2016, Jeremy Kerr wrote: > > Hi Ming, > > > > >Then looks there are two fix patches acked & tested: > > > > > > - the patch in this thread > > > - another one "[PATCH] tty: vt: Fix soft lockup in fbcon cursor > > >blink timer." > > > https://

Re: [PATCH v2] KVM: halt-polling: poll if emulated lapic timer will fire soon

2016-05-23 Thread David Matlack
On Mon, May 23, 2016 at 6:13 PM, Yang Zhang wrote: > On 2016/5/24 2:04, David Matlack wrote: >> >> On Sun, May 22, 2016 at 6:26 PM, Yang Zhang >> wrote: >>> >>> On 2016/5/21 2:37, David Matlack wrote: It's not obvious to me why polling for a timer interrupt would improve conte

Re: [PATCH v2] KVM: halt-polling: poll if emulated lapic timer will fire soon

2016-05-23 Thread Yang Zhang
On 2016/5/24 2:04, David Matlack wrote: On Sun, May 22, 2016 at 6:26 PM, Yang Zhang wrote: On 2016/5/21 2:37, David Matlack wrote: It's not obvious to me why polling for a timer interrupt would improve context switch latency. Can you explain a bit more? We have a workload which using high

Re: [PATCH V7 00/11] Support for generic ACPI based PCI host controller

2016-05-23 Thread Jon Masters
Bjorn, Out walking so sorry about top posting. Quick reply though: 1. I checked with the Windows team. They usually avoid quirks entirely but when it has happened, it has been done via the MCFG/FADT not DSDT. 2. They would be ok if we were to key off the OEM name and revision for the IP in th

Re: [PATCH 1/3] Documentation: dtb: xgene: Add hwmon dts binding documentation

2016-05-23 Thread Hoan Tran
Hi Rob, Thanks for your review ! On Mon, May 23, 2016 at 1:30 PM, Rob Herring wrote: > > On Mon, May 16, 2016 at 09:17:25AM -0700, Hoan Tran wrote: > > This patch adds the APM X-Gene hwmon device tree node documentation. > > > > Signed-off-by: Hoan Tran > > --- > > .../devicetree/bindings/hwmo

[PATCH 1/3] perf pt: Mark PT return events as "return"

2016-05-23 Thread Andi Kleen
From: Andi Kleen With perf script --itrace=cr we can synthesize calls and returns out of a PT log. However both calls and returns are marked with the same event, called branches. This makes it difficult to read and post process, because calls and returns are somewhat diffferent. Create a separat

[PATCH 2/3] perf util: Move get_main_thread to thread.c

2016-05-23 Thread Andi Kleen
From: Andi Kleen Move the get_main_thread function from db-export.c to thread.c so that it can be used elsewhere. Signed-off-by: Andi Kleen --- tools/perf/util/db-export.c | 13 + tools/perf/util/db-export.h | 2 ++ tools/perf/util/thread.c| 11 +++ tools/perf/util/thr

[PATCH 3/3] perf script: Support callindent

2016-05-23 Thread Andi Kleen
From: Andi Kleen When printing PT instruction traces with perf script it is rather useful to see some indentation for the call tree. This patch adds a new callindent field to perf script that prints spaces for the function call stack depth. We already have code to track the function call stack f

Re: [PATCH 1/2] perf pt: Mark PT return events as "return"

2016-05-23 Thread Andi Kleen
On Mon, May 23, 2016 at 03:05:08PM +0300, Adrian Hunter wrote: > On 20/05/16 22:52, Andi Kleen wrote: > > From: Andi Kleen > > > > With perf script --itrace=cr we can synthesize calls and returns out of > > a PT log. However both calls and returns are marked with the same event, > > called branch

Re: [PATCH v5 3/5] mmc: core: implement enhanced strobe support

2016-05-23 Thread Doug Anderson
Shawn, On Sun, May 22, 2016 at 9:13 PM, Shawn Lin wrote: > Controllers use data strobe line to latch data from devices > under hs400 mode, but not for cmd line. So since emmc 5.1, JEDEC > introduces enhanced strobe mode for latching cmd response from > emmc devices to host controllers. This new f

[PATCH] staging: lustre: llite: drop acl from cache

2016-05-23 Thread James Simmons
Commit b8a7a3a6 change get_acl() for posix xattr to always cache the ACL which increases the reference count. That reference count can be reduced by have ll_get_acl() call forget_cached_acl() which it wasn't. When an inode gets deleted by Lustre the POSIX ACL reference count is tested to ensure its

[PATCH v4 2/4] gpio: Allow PC/104 devices on X86_64

2016-05-23 Thread William Breathitt Gray
With the introduction of the ISA_BUS_API Kconfig option, ISA-style drivers may be built for X86_64 architectures. This patch changes the ISA Kconfig option dependency of the PC/104 drivers to ISA_BUS_API, thus allowing them to build for X86_64 as they are expected to. Cc: Guenter Roeck Cc: Linus

[PATCH v4 4/4] watchdog: ebc-c384_wdt: Allow build for X86_64

2016-05-23 Thread William Breathitt Gray
With the introduction of the ISA_BUS_API Kconfig option, ISA-style drivers may be built for X86_64 architectures. This patch changes the ISA Kconfig option dependency of the WinSystems EBC-C384 watchdog timer driver to ISA_BUS_API, thus allowing it to build for X86_64 as it is expected to. Cc: Gue

[PATCH v4 1/4] isa: Allow ISA-style drivers on modern systems

2016-05-23 Thread William Breathitt Gray
Several modern devices, such as PC/104 cards, are expected to run on modern systems via an ISA bus interface. Since ISA is a legacy interface for most modern architectures, ISA support should remain disabled in general. Support for ISA-style drivers should be enabled on a per driver basis. To allo

[PATCH v4 3/4] iio: stx104: Allow build for X86_64

2016-05-23 Thread William Breathitt Gray
With the introduction of the ISA_BUS_API Kconfig option, ISA-style drivers may be built for X86_64 architectures. This patch changes the ISA Kconfig option dependency of the Apex Embedded Systems STX104 DAC driver to ISA_BUS_API, thus allowing it to build for X86_64 as it is expected to. Cc: Hartm

[PATCH v4 0/4] Allow ISA-style drivers on modern systems

2016-05-23 Thread William Breathitt Gray
Changes in v4: - Remove unnecessary explicit "default n" from the X86 ISA_BUS Kconfig option since Kconfig options are disabled by default Changes in v3: - Remove redundant X86 dependency from the X86 ISA_BUS Kconfig option Changes in v2: - Adjusted preprocessor compilation conditional

[PATCH 13/23] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2016-05-23 Thread Yury Norov
Based on patch of Andrew Pinski. This patch introduces is_a32_compat_task and is_a32_thread so it is easier to say this is a a32 specific thread or a generic compat thread/task. Corresponding functions are located in to avoid mess in headers. Some files include both and , and this is wrong beca

[PATCH 05/23] all: wrap needed syscalls in generic unistd

2016-05-23 Thread Yury Norov
As generic unistd syscall table is written in C, syscall prototypes declaration is needed. It's added to compat header. Signed-off-by: Yury Norov --- include/linux/compat.h| 225 + include/uapi/asm-generic/unistd.h | 227 +++

[PATCH 10/23] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2016-05-23 Thread Yury Norov
From: Andrew Pinski In this patchset ILP32 ABI support is added. Additionally to AARCH32, which is binary-compatible with ARM, ILP32 is (mostly) ABI-compatible. >From now, AARCH32_EL0 (former COMPAT) config option means the support of AARCH32 userspace, ARM64_ILP32 - support of ILP32 ABI (see n

Re: Regression in 4.6.0-git - bisected to commit dd254f5a382c

2016-05-23 Thread Al Viro
On Mon, May 23, 2016 at 04:30:43PM -0500, Larry Finger wrote: > The mainline kernels past 4.6.0 fail hang when logging in. There are no > error messages, and the machine seems to be waiting for some event that > never happens. > > The problem has been bisected to commit dd254f5a382c ("fold checks

[PATCH v6 00/21] ILP32 for ARM64

2016-05-23 Thread Yury Norov
This series enables aarch64 with ilp32 mode, and as supporting work, introduces compat wrappers based on s390 solution, and also introduces ARCH_32BIT_OFF_T configuration option that is enabled for existing 32-bit architectures but disabled for new arches (so 64-bit off_t is is used by new userspa

[PATCH 04/23] all: s390: move compat_wrappers.c from arch/s390/kernel to kernel/

2016-05-23 Thread Yury Norov
Some syscalls are declared conditionally, so corresponding wrappers are conditional accordingly. Signed-off-by: Yury Norov --- arch/s390/kernel/Makefile | 2 +- arch/s390/kernel/compat_linux.c | 4 + arch/s390/kernel/compat_wrapper.c | 129 kernel/Makef

[PATCH 02/23] all: introduce COMPAT_WRAPPER option and enable it for s390

2016-05-23 Thread Yury Norov
Signed-off-by: Yury Norov --- arch/Kconfig | 4 arch/s390/Kconfig | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 81869a5..92fcbd4 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -589,6 +589,10 @@ config HAVE_STACK_VALIDATION Architectur

[PATCH 07/23] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2016-05-23 Thread Yury Norov
All new 32-bit architectures should have 64-bit off_t type, but existing architectures has 32-bit ones. To handle it, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled for non-64 bit architectures. All existing 32-bit architectures enable it explicitly here.

[PATCH 18/23] arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-05-23 Thread Yury Norov
From: Andrew Pinski Add a separate syscall-table for ILP32, which dispatches either to native LP64 system call implementation or to compat-syscalls, as appropriate. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov --- arch/arm64/include/asm/unistd.h | 11 +- arch/arm64/kernel/Makefi

[PATCH 15/23] arm64: introduce binfmt_elf32.c

2016-05-23 Thread Yury Norov
As we support more than one compat formats, it looks more reasonable to not use fs/compat_binfmt.c. Custom binfmt_elf32.c allows to move aarch32 specific definitions there and make code more maintainable and readable. Signed-off-by: Yury Norov --- arch/arm64/Kconfig | 1 - arch/ar

[PATCH 17/23] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2016-05-23 Thread Yury Norov
Here new aarch32 ptrace syscall handler is introsuced to avoid run-time detection of the task type. Signed-off-by: Yury Norov --- arch/arm64/include/asm/unistd32.h | 2 +- arch/arm64/kernel/ptrace.c| 50 ++- arch/arm64/kernel/sys32.c | 1 + i

[PATCH 14/23] arm64: ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2016-05-23 Thread Yury Norov
ILP32 tasks are needed to be distinguished from lp64 and aarch32. This patch adds helper functions is_ilp32_compat_{task,thread} and thread flag TIF_32BIT_AARCH64 to address it. This is a preparation for following patches in ilp32 patchset. For consistency, SET_PERSONALITY is changed here accordin

[PATCH 20/23] arm64: signal32: move ilp32 and aarch32 common code to separated file

2016-05-23 Thread Yury Norov
Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal32_common.h | 25 +++ arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/signal32.c | 85 --- arch/arm64/kernel/signal32_common.c | 115 +++ 4 files c

Re: [PATCH] xen/privcmd: use vma_pages().

2016-05-23 Thread Muhammad Falak R Wani
On Mon, May 23, 2016 at 04:26:37PM -0400, Boris Ostrovsky wrote: > On 05/21/2016 09:09 AM, Muhammad Falak R Wani wrote: > > Replace explicit computation of vma page count by a call to > > vma_pages() > > > > Can you combine all three patches into a single one? > > Thanks. > -boris > Sure, I hav

[PATCH 12/23] thread: move thread bits accessors to separated file

2016-05-23 Thread Yury Norov
They may be accessed from low-level code, so isolating is a measure to avoid circular dependencies in header files. The exact reason for circular dependency is WARN_ON() macro added by Al Viro in patch [edd63a27] "set_restore_sigmask() is never called without SIGPENDING (and never should be)" Sig

[PATCH 09/23] arm64: ensure the kernel is compiled for LP64

2016-05-23 Thread Yury Norov
From: Andrew Pinski The kernel needs to be compiled as a LP64 binary for ARM64, even when using a compiler that defaults to code-generation for the ILP32 ABI. Consequently, we need to explicitly pass '-mabi=lp64' (supported on gcc-4.9 and newer). Signed-off-by: Andrew Pinski Signed-off-by: Phil

[PATCH 21/23] arm64: ilp32: introduce ilp32-specific handlers for sigframe and ucontext

2016-05-23 Thread Yury Norov
From: Andrew Pinski ILP32 uses AARCH32 compat structures and syscall handlers for signals. But ILP32 struct rt_sigframe and ucontext differs from both LP64 and AARCH32. So some specific mechanism is needed to take care of it. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov --- arch/ar

[PATCH 19/23] arm64: signal: share lp64 signal routines to ilp32

2016-05-23 Thread Yury Norov
After that, it will be possible to reuse it in ilp32. Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal_common.h | 33 arch/arm64/kernel/signal.c | 91 +- 2 files changed, 90 insertions(+), 34 deletions(-) create mode 100644 arc

[PATCH 23/23] arm64:ilp32: add ARM64_ILP32 to Kconfig

2016-05-23 Thread Yury Norov
From: Andrew Pinski This patch adds the config option for ILP32. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/Kconfig | 12 +++- 1 file changed, 11 insertions(+), 1 de

[PATCH 16/23] arm64: ilp32: introduce binfmt_ilp32.c

2016-05-23 Thread Yury Norov
to handle ILP32 binaries Signed-off-by: Yury Norov --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/binfmt_ilp32.c | 91 2 files changed, 92 insertions(+) create mode 100644 arch/arm64/kernel/binfmt_ilp32.c diff --git a/arch/arm64/kernel/M

[PATCH 22/23] arm64:ilp32: add vdso-ilp32 and use for signal return

2016-05-23 Thread Yury Norov
From: Philipp Tomsich ILP32 VDSO exports next symbols: __kernel_rt_sigreturn; __kernel_gettimeofday; __kernel_clock_gettime; __kernel_clock_getres; What shared object to use, kernel selects depending on result of is_ilp32_compat_task() in arch/arm64/kernel/vdso.c, so it substitutes correct p

[PATCH 11/23] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2016-05-23 Thread Yury Norov
From: Andrew Pinski Define __BITS_PER_LONG depending on the ABI used (i.e. check whether __ILP32__ or __LP64__ is defined). This is necessary for glibc to determine the appropriate type definitions for the system call interface. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Sign

[PATCH 08/23] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2016-05-23 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov --- Documentation/arm64/ilp32.txt | 25 + 1 file changed, 25 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git a/Documentation/arm64/ilp32.txt b/Documentation/arm64/ilp32.txt new fi

[PATCH 01/23] all: syscall wrappers: add documentation

2016-05-23 Thread Yury Norov
Signed-off-by: Yury Norov --- Documentation/adding-syscalls.txt | 32 1 file changed, 32 insertions(+) diff --git a/Documentation/adding-syscalls.txt b/Documentation/adding-syscalls.txt index cc2d4ac..d02a6bd 100644 --- a/Documentation/adding-syscalls.txt +++ b/

[PATCH 03/23] all: s390: move wrapper infrastructure to generic headers

2016-05-23 Thread Yury Norov
This patch moves required calls to generic files to let other arches use it if needed. Here also, additional code is introduced, as s390 uses asm syscall tables, while in general case, wrappers may be used in C code. __SC_COMPAT_CAST for s390 is too specific due to 31-bit pointer length, so it's m

[PATCH 06/23] compat ABI: use non-compat openat and open_by_handle_at variants

2016-05-23 Thread Yury Norov
The only difference is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we don't support 32-bit off_t. The only exception is tile32, that continues with compat version of syscalls. Signed-off-by: Yury Norov Acked-by: Arnd Bergmann Acked

[PATCH v2] xen: use vma_pages().

2016-05-23 Thread Muhammad Falak R Wani
Replace explicit computation of vma page count by a call to vma_pages(). Signed-off-by: Muhammad Falak R Wani --- drivers/xen/gntalloc.c | 2 +- drivers/xen/gntdev.c | 2 +- drivers/xen/privcmd.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/xen/gntalloc.c b/d

Re: [PATCH v2 2/3] drm/arm: Add support for Mali Display Processors

2016-05-23 Thread Emil Velikov
Hi Liviu, Humble request: For the future please split things into manageable hunks. I doubt you wrote the whole thing in one go, right ? At the very minimum you could have introduced DP500 support initially and then DP550 and DP650 as follow up commits. On 25 April 2016 at 15:19, Liviu Dudau wr

Re: [RFC][PATCH] ftracetest: Fix hist unsupported result in hist selftests

2016-05-23 Thread Namhyung Kim
Hi Steve, On Mon, May 23, 2016 at 03:15:38PM -0400, Steven Rostedt wrote: > > [ Folks, is this a proper work around? ] > > When histograms are not configured in the kernel, the ftracetest histogram > selftests should return "unsupported" and not "Failed". To detect this, the > test scripts have:

Re: [PATCH v3 1/4] isa: Allow ISA-style drivers on modern systems

2016-05-23 Thread Guenter Roeck
On Mon, May 23, 2016 at 07:13:31PM -0400, William Breathitt Gray wrote: > Several modern devices, such as PC/104 cards, are expected to run on > modern systems via an ISA bus interface. Since ISA is a legacy interface > for most modern architectures, ISA support should remain disabled in > general.

mmotm 2016-05-23-16-51 uploaded

2016-05-23 Thread akpm
The mm-of-the-moment snapshot 2016-05-23-16-51 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

[RFC PATCH 3/5] usb: gadget: f_uac1: drop volume/mute functionality

2016-05-23 Thread Ruslan Bilovol
The volume/mute feature unit was dummy implementation since this driver creation (2009) and never had real volume control or mute functionality. Since it was never implemented, drop it and increase maintainability of the driver. Those who want real volume/mute support may revert this patch and add

[RFC PATCH 2/5] usb: gadget: f_uac2: split out audio core

2016-05-23 Thread Ruslan Bilovol
Abstract the peripheral side ALSA sound card code from the f_uac2 function into a component that can be called by various functions, so the various flavors can be split apart and selectively reused. Visible changes: - add uac_params structure to pass audio paramteres for gaudio_setup - make A

[GIT PULL] dax-misc for 4.7

2016-05-23 Thread Vishal Verma
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/dax-misc-for-4.7 ...to receive the dax error handling topic branch for 4.7. Most of these changes have been stable since before the merge window, but getting the different trees/patchsets integrated

[RFC PATCH 0/5] USB Audio Gadget refactoring

2016-05-23 Thread Ruslan Bilovol
I came to this patch series when wanted to do two things: - use UAC1 as virtual ALSA sound card on gadget side, just like UAC2 is used so it's possible to do rate resampling - have both playback/capture support in UAC1 Since I wanted to have same behavior for both UAC1/UAC2, obviously I've

[RFC PATCH 4/5] usb: gadget: f_uac1: switch to u_audio core utilities

2016-05-23 Thread Ruslan Bilovol
Reuse existing u_audio core utilities making f_uac1 much simpler. This also drops previous f_uac1 approach (write audio samples directly to existing ALSA sound card) and moves to more generic/flexible one - create an f_uac1 ALSA sound card that represents USB Audio function and allows to be used b

[RFC PATCH 1/5] usb: gadget: f_uac2: remove platform driver/device creation

2016-05-23 Thread Ruslan Bilovol
Simplify f_uac2 by removing platform driver/device creation; use composite's usb_gadget device as parent for sound card and for debug prints. This removes extra layer of code without any functional change. Signed-off-by: Ruslan Bilovol --- drivers/usb/gadget/function/f_uac2.c | 107 +

[RFC PATCH 5/5] usb: gadget: f_uac1: add capture support

2016-05-23 Thread Ruslan Bilovol
Add capture support (gadget->host) to the f_uac1 driver. This requires renaming of some descriptors, enums etc that were used exclusively for playback path. To make it meaningful, f_uac2 driver naming convention has been used. By default, capture interface has 48000kHz/2ch configuration, same as p

Re: [patch] mm, migrate: increment fail count on ENOMEM

2016-05-23 Thread Hugh Dickins
On Mon, 23 May 2016, Andrew Morton wrote: > On Fri, 20 May 2016 15:31:21 +0200 Michal Hocko wrote: > > On Fri 20-05-16 15:19:12, Vlastimil Babka wrote: > > > On 05/20/2016 03:06 PM, Michal Hocko wrote: > > [...] > > > > Why don't we need also to count also retries? > > > > > > We could, but not l

Re: [PATCH V7 00/11] Support for generic ACPI based PCI host controller

2016-05-23 Thread Bjorn Helgaas
On Mon, May 23, 2016 at 03:16:01PM +, Gabriele Paoloni wrote: > Hi Lorenzo > > > -Original Message- > > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > > Sent: 23 May 2016 11:57 > > To: Ard Biesheuvel > > Cc: Gabriele Paoloni; Jon Masters; Tomasz Nowicki; helg...@kernel.or

Re: [PATCH v2 02/12] of: add J-Core cpu bindings

2016-05-23 Thread Rob Herring
On Mon, May 23, 2016 at 4:03 PM, Rich Felker wrote: > On Mon, May 23, 2016 at 03:48:46PM -0500, Rob Herring wrote: >> On Fri, May 20, 2016 at 02:53:03AM +, Rich Felker wrote: >> > Signed-off-by: Rich Felker >> > --- >> > Documentation/devicetree/bindings/jcore/cpus.txt | 91 >> > +++

Re: [PATCH] Fix for hang of Ordered task in TCM

2016-05-23 Thread Bryant G Ly
Quoting "Nicholas A. Bellinger" : So AFAICT for delayed commands, the above patch ends up skipping these three checks subsequently when doing __target_execute_cmd() directly from target_restart_delayed_cmds(), no..? After pondering this some more, what about moving these checks into __target

Re: [PATCH v2 05/12] of: add J-Core SPI master bindings

2016-05-23 Thread Rob Herring
On Mon, May 23, 2016 at 4:06 PM, Rich Felker wrote: > On Mon, May 23, 2016 at 04:00:20PM -0500, Rob Herring wrote: >> On Fri, May 20, 2016 at 02:53:04AM +, Rich Felker wrote: >> > Signed-off-by: Rich Felker >> > --- >> > .../devicetree/bindings/spi/jcore,spi.txt | 23 >> > +

[PATCH v3 4/4] watchdog: ebc-c384_wdt: Allow build for X86_64

2016-05-23 Thread William Breathitt Gray
With the introduction of the ISA_BUS_API Kconfig option, ISA-style drivers may be built for X86_64 architectures. This patch changes the ISA Kconfig option dependency of the WinSystems EBC-C384 watchdog timer driver to ISA_BUS_API, thus allowing it to build for X86_64 as it is expected to. Cc: Gue

[PATCH v6] ASoC: cs53l30: Add codec driver support for Cirrus CS53L30

2016-05-23 Thread Nicolin Chen
CS53L30 is a Quad-Channel ADC from Cirrus Logic with an I2S/TDM DAI. So this patch adds support for CS53L30 that supports 24-bit recording feature. Signed-off-by: Nicolin Chen --- Changelog: v5->v6 * Added clock controls * Reconstructed bitfield macros and improved coding style * Fixed some mi

[PATCH v3 3/4] iio: stx104: Allow build for X86_64

2016-05-23 Thread William Breathitt Gray
With the introduction of the ISA_BUS_API Kconfig option, ISA-style drivers may be built for X86_64 architectures. This patch changes the ISA Kconfig option dependency of the Apex Embedded Systems STX104 DAC driver to ISA_BUS_API, thus allowing it to build for X86_64 as it is expected to. Cc: Hartm

[PATCH v3 1/4] isa: Allow ISA-style drivers on modern systems

2016-05-23 Thread William Breathitt Gray
Several modern devices, such as PC/104 cards, are expected to run on modern systems via an ISA bus interface. Since ISA is a legacy interface for most modern architectures, ISA support should remain disabled in general. Support for ISA-style drivers should be enabled on a per driver basis. To allo

[PATCH v3 2/4] gpio: Allow PC/104 devices on X86_64

2016-05-23 Thread William Breathitt Gray
With the introduction of the ISA_BUS_API Kconfig option, ISA-style drivers may be built for X86_64 architectures. This patch changes the ISA Kconfig option dependency of the PC/104 drivers to ISA_BUS_API, thus allowing them to build for X86_64 as they are expected to. Cc: Guenter Roeck Cc: Linus

[PATCH v3 0/4] Allow ISA-style drivers on modern systems

2016-05-23 Thread William Breathitt Gray
Changes in v3: - Remove redundant X86 dependency from the X86 ISA_BUS Kconfig option Changes in v2: - Adjusted preprocessor compilation conditional in include/linux/isa.h to use CONFIG_ISA_BUS_API in order to link the correct ISA bus driver function definitions when available - Move

<    1   2   3   4   5   6   7   8   9   >