Re: [PATCH v5 0/8] Add generic support for relaxed atomics

2015-08-07 Thread Will Deacon
On Fri, Aug 07, 2015 at 04:13:03PM +0100, Peter Zijlstra wrote: > On Thu, Aug 06, 2015 at 05:54:36PM +0100, Will Deacon wrote: > > The series adds support for a family of relaxed atomics to the kernel. > > More specifically: > > > > - acquire/release/relaxed flavours of xchg, cmpxchg and

[GIT PULL] at91: defconfig for 4.3 #2

2015-08-07 Thread Alexandre Belloni
Arnd, Olof, Kevin, A little defconfig update. That will probably be all for this cycle. Thanks, bye, The following changes since commit eff7f41572a645bf14a96a6f844be4f1c88cd9dd: ARM: at91: at91_dt_defconfig: enable ISI and ov2640 support (2015-07-30 14:17:31 +0200) are available in the

Re: [PATCH v2] dma: omap-dma: add support for pause of non-cyclic transfers

2015-08-07 Thread Russell King - ARM Linux
On Fri, Aug 07, 2015 at 05:36:05PM +0200, Sebastian Andrzej Siewior wrote: > + /* > + * We do not allow DMA_MEM_TO_DEV transfers to be paused. > + * According to RMK the OMAP hardware might prefetch bytes from > + * memory into its FIFO and not

Re: [PATCH v4 2/3] i2c: i801: Create iTCO device on newer Intel PCHs

2015-08-07 Thread Guenter Roeck
On 08/07/2015 08:55 AM, Wolfram Sang wrote: On Thu, Aug 06, 2015 at 01:46:25PM +0100, Matt Fleming wrote: From: Mika Westerberg Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources have been moved to reside under the i801 SMBus host controller whereas previously they

Re: [PATCH] dma: omap-dma: add support for pause of non-cyclic transfers

2015-08-07 Thread Sebastian Andrzej Siewior
On 08/07/2015 06:07 PM, Peter Hurley wrote: >> If we look at what 8250-dma.c is doing: >> >> if (dma->rx_running) { >> dmaengine_pause(dma->rxchan); >> >> It's 8250-dma.c which is silently _ignoring_ the return code, failing >> to check that the operation it

[PATCH 2/6] target/rd: always chain S/G list

2015-08-07 Thread Christoph Hellwig
The rd sg lists are never passed to hardware, so use S/G chaining unonditionally. Signed-off-by: Christoph Hellwig --- drivers/target/target_core_rd.c | 44 - 1 file changed, 44 deletions(-) diff --git a/drivers/target/target_core_rd.c

scatterlist cleanups

2015-08-07 Thread Christoph Hellwig
This series contains various scatterlist cleanups. It makes the chained scatterlist helpers generally available, even if a architecture doesn't allow a DMA mapping for it, and changes two callers to make use of this as well as cleans up various opencoded access to scatterlist internals. A large

[PATCH 5/6] crypto/omap-sham: remove an open coded access to ->page_link

2015-08-07 Thread Christoph Hellwig
Signed-off-by: Dan Williams [hch: split from a larger patch by Dan] Signed-off-by: Christoph Hellwig --- drivers/crypto/omap-sham.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index b2024c95..48adb2a 100644 ---

Re: [PATCH v9 0/9] Add simple NVMEM Framework via regmap.

2015-08-07 Thread Srinivas Kandagatla
Thanks Kevin, On 07/08/15 17:13, Kevin Hilman wrote: Srinivas Kandagatla writes: This patchset adds a new simple NVMEM framework to kernel, and it is tested with various drivers like "QCOM thermal sensors", "QCOM cpr driver", "begal bone cape manager" and few more on the way. Can you please

[PATCH 6/6] scatterlist: use sg_phys()

2015-08-07 Thread Christoph Hellwig
From: Dan Williams Coccinelle cleanup to replace open coded sg to physical address translations. This is in preparation for introducing scatterlists that reference __pfn_t. // sg_phys.cocci: convert usage page_to_phys(sg_page(sg)) to sg_phys(sg) // usage: make coccicheck COCCI=sg_phys.cocci

[PATCH 3/6] crypto: replace scatterwalk_sg_chain with sg_chain

2015-08-07 Thread Christoph Hellwig
From: Dan Williams Signed-off-by: Dan Williams [hch: split from a larger patch by Dan] Signed-off-by: Christoph Hellwig --- crypto/algif_skcipher.c | 2 +- crypto/ccm.c | 8 crypto/gcm.c | 4 ++-- drivers/crypto/bfin_crc.c| 3 +--

[PATCH 1/6] scatterlist: allow limited chaining without ARCH_HAS_SG_CHAIN

2015-08-07 Thread Christoph Hellwig
There are a couple of uses of struct scatterlist that never go to the dma_map_sg() helper and thus don't care about ARCH_HAS_SG_CHAIN which indicates that we can map chained S/G list. The most important one is the crypto code, which currently has to open code a few helpers to always allow

[PATCH 4/6] scatterlist: remove open coded sg_unmark_end instances

2015-08-07 Thread Christoph Hellwig
From: Dan Williams Signed-off-by: Dan Williams [hch: split from a larger patch by Dan] Signed-off-by: Christoph Hellwig --- block/blk-merge.c| 2 +- drivers/mmc/card/queue.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block/blk-merge.c b/block/blk-merge.c

Re: [PATCH 0/8] misc: remove boundary checks from bin attr users

2015-08-07 Thread Vladimir Zapolskiy
Hi Wolfram, On 07.08.2015 19:10, Wolfram Sang wrote: > Vladimir, > > On Mon, Jul 27, 2015 at 12:18:22AM +0300, Vladimir Zapolskiy wrote: >> This change removes a number of redundant checks on bin attribute >> client's side, the same checks are done by sysfs_kf_bin_read() or >>

Re: [PATCH 1/6] pmem: remove indirection layer arch_has_pmem_api()

2015-08-07 Thread Dan Williams
On Thu, Aug 6, 2015 at 10:43 AM, Ross Zwisler wrote: > Prior to this change arch_has_wmb_pmem() was only called by > arch_has_pmem_api(). Both arch_has_wmb_pmem() and arch_has_pmem_api() > checked to make sure that CONFIG_ARCH_HAS_PMEM_API was enabled. > > Instead, remove one extra layer of

Potential data race in SyS_swapon

2015-08-07 Thread Andrey Konovalov
Hi! We are working on a dynamic data race detector for the Linux kernel called KernelThreadSanitizer (ktsan) (https://github.com/google/ktsan/wiki). While running ktsan on the upstream revision 21bdb584af8c with trinity we got a few reports from SyS_swapon, here is one of them:

Re: [PATCH v9 0/9] Add simple NVMEM Framework via regmap.

2015-08-07 Thread Kevin Hilman
Srinivas Kandagatla writes: > This patchset adds a new simple NVMEM framework to kernel, and it is tested > with various drivers like "QCOM thermal sensors", "QCOM cpr driver", > "begal bone cape manager" and few more on the way. > > Can you please consider this as 4.3 material, AFAIK there are

Re: false positives with checkpatch

2015-08-07 Thread Andy Whitcroft
On Fri, Aug 07, 2015 at 08:37:47AM -0700, Joe Perches wrote: > On Fri, 2015-08-07 at 09:01 -0600, Ross Zwisler wrote: > > When running checkpatch.pl against my latest patch set, I hit what I think > > are > > two false positives. Here are the related lines: > > > > +static inline void

Re: [PATCH 0/8] misc: remove boundary checks from bin attr users

2015-08-07 Thread Wolfram Sang
Vladimir, On Mon, Jul 27, 2015 at 12:18:22AM +0300, Vladimir Zapolskiy wrote: > This change removes a number of redundant checks on bin attribute > client's side, the same checks are done by sysfs_kf_bin_read() or > sysfs_kf_bin_write() caller from fs/sysfs/file.c. > > Note,

[PATCH v2 2/4] KVM: arm/arm64: check power_off in kvm_arch_vcpu_runnable

2015-08-07 Thread Eric Auger
kvm_arch_vcpu_runnable now also checks whether the power_off flag is set. Signed-off-by: Eric Auger --- arch/arm/kvm/arm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 3ac6b4c..4f50be3 100644 --- a/arch/arm/kvm/arm.c +++

Re: [PATCH] x86/vdso: Emit a GNU hash

2015-08-07 Thread Nathan Lynch
On 08/06/2015 05:52 PM, Andy Lutomirski wrote: > [adding lots of cc's] > > On Thu, Aug 6, 2015 at 2:45 PM, Andy Lutomirski wrote: >> From: Andy Lutomirski >> >> Some dynamic loaders may be slightly faster if a GNU hash is >> available. Strangely, this seems to have no effect at all on the >>

[PATCH v2 1/4] KVM: arm/arm64: rename pause into power_off

2015-08-07 Thread Eric Auger
The kvm_vcpu_arch pause field is renamed into power_off to prepare for the introduction of a new pause field. Also vcpu_pause is renamed into vcpu_sleep since we will sleep until both power_off and pause are false. Signed-off-by: Eric Auger --- v1 -> v2: - rename pause in

Re: [PATCH v3 5/7] iio: Support triggered events

2015-08-07 Thread Vladimir Barinov
Hi Lars, On 07.08.2015 16:45, Lars-Peter Clausen wrote: Hi, On 07/29/2015 02:57 PM, Vladimir Barinov wrote: Support triggered events. This is useful for chips that don't have their own interrupt sources. It allows to use generic/standalone iio triggers for those drivers. Thanks for the

[PATCH v2 0/4] KVM: arm/arm64: guest synchronous halt/resume

2015-08-07 Thread Eric Auger
This series introduces the capability to synchronously exit the guest and prevent it from being re-entered. This modality will be used by IRQ forwarding series when changing the state of the IRQ. Former pause flag used when starting the vcpu in KVM_ARM_VCPU_POWER_OFF state, in PSCI calls and in

[PATCH v2 4/4] KVM: arm/arm64: implement kvm_arm_[halt,resume]_guest

2015-08-07 Thread Eric Auger
We introduce kvm_arm_halt_guest and resume functions. They will be used for IRQ forward state change. Halt is synchronous and prevents the guest from being re-entered. We use the same mechanism put in place for PSCI former pause, now renamed power_off. A new flag is introduced in arch vcpu state,

Re: [RFC][PATCH 1/4] sched: Fix a race between __kthread_bind() and sched_setaffinity()

2015-08-07 Thread Tejun Heo
Hello, Peter. On Fri, Aug 07, 2015 at 05:59:54PM +0200, Peter Zijlstra wrote: > > So, the problem there is that __kthread_bind() doesn't grab the same > > lock that the syscall side grabs but workqueue used > > set_cpus_allowed_ptr() which goes through the rq locking, so as long > > as the check

Re: [PATCH] coredump: Replace opencoded set_mask_bits()

2015-08-07 Thread Peter Zijlstra
On Fri, Aug 07, 2015 at 09:28:05PM +0530, Vineet Gupta wrote: > On Friday 07 August 2015 09:15 PM, Peter Zijlstra wrote: > > On Fri, Aug 07, 2015 at 09:05:06PM +0530, Vineet Gupta wrote: > >> On Friday 07 August 2015 08:27 PM, Peter Zijlstra wrote: > >>> On Fri, Aug 07, 2015 at 08:14:03PM +0530,

[PATCH v2 3/4] KVM: arm/arm64: check power_off in critical section before VCPU run

2015-08-07 Thread Eric Auger
In case KVM_SET_MP_STATE ioctl is called just after we executed the vcpu_sleep check, we can enter the guest although KVM_MP_STATE_STOPPED is set. Let's check the power_off state in the critical section, just before entering the guest. Signed-off-by: Eric Auger Reported-by: Christoffer Dall ---

Re: [PATCH v2] misc: eeprom: Export I2C module alias information in missing drivers

2015-08-07 Thread Wolfram Sang
On Fri, Aug 07, 2015 at 02:04:19PM +0200, Javier Martinez Canillas wrote: > The I2C core always reports the MODALIAS uevent as "i2c: regardless if the driver later is match using the I2C id_table or the > of_match_table. So the driver needs to export the I2C table and this > be built into the

Re: [BUG] net/ipv4: inconsistent routing table

2015-08-07 Thread Alexander Duyck
On 08/07/2015 01:23 AM, Zang MingJie wrote: IMO, the routing decision is determined, given a specific routing table and local network the result MUST be determined, independence of how/what order the routing entry is added. Now there are two ways to configure the system resulting EXACTLY the

Re: [PATCH] dma: omap-dma: add support for pause of non-cyclic transfers

2015-08-07 Thread Peter Hurley
On 08/07/2015 11:29 AM, Russell King - ARM Linux wrote: > On Fri, Aug 07, 2015 at 11:08:48AM -0400, Peter Hurley wrote: >> [ + Greg KH ] >> >> On 08/07/2015 09:57 AM, Russell King - ARM Linux wrote: >>> As it is something that the driver has _not_ supported, you are clearly >>> adding a feature to

Re: [Xen-devel] [PATCH v5 0/6] xen/PMU: PMU support for Xen PV(H) guests

2015-08-07 Thread Boris Ostrovsky
On 08/07/2015 11:50 AM, Julien Grall wrote: Hi, On 07/08/15 16:35, David Vrabel wrote: On 02/07/15 15:53, Boris Ostrovsky wrote: I haven't posted Linux part of PV(H) VPMU support in a while but now that (hopefully) the hypervisor part is getting close to be done I think it's time to post it

[PATCH] sh/kprobes: respect gdb breakpoints

2015-08-07 Thread Jim Keniston
On the sh architecture, kprobes and gdb/gdbserver use different breakpoint opcodes. Without this fix, kprobes doesn't recognize the gdb traps, and the resulting NOTIFY_STOP prevents ptrace and gdb from being notified. The result is that if kprobes is configured, a gdb-traced process hangs when

Re: [PATCH V9 3/3] audit: add audit by children of executable path

2015-08-07 Thread Richard Guy Briggs
On 15/08/07, Paul Moore wrote: > On Friday, August 07, 2015 02:37:15 AM Richard Guy Briggs wrote: > > On 15/08/06, Paul Moore wrote: > > > > > I guess what I'm saying is that I'm not currently convinced that > > > there is enough value in this to offset the risk I feel the loop > > > presents. I

Re: [RFC][PATCH 1/4] sched: Fix a race between __kthread_bind() and sched_setaffinity()

2015-08-07 Thread Peter Zijlstra
On Fri, Aug 07, 2015 at 11:38:28AM -0400, Tejun Heo wrote: > Hello, > > On Fri, Aug 07, 2015 at 05:29:56PM +0200, Peter Zijlstra wrote: > > Even if we were to strictly order those stores you could have (note > > there is no matching barrier, as there is only the one load, so ordering > > cannot

Re: [PATCH] coredump: Replace opencoded set_mask_bits()

2015-08-07 Thread Vineet Gupta
On Friday 07 August 2015 09:15 PM, Peter Zijlstra wrote: > On Fri, Aug 07, 2015 at 09:05:06PM +0530, Vineet Gupta wrote: >> On Friday 07 August 2015 08:27 PM, Peter Zijlstra wrote: >>> On Fri, Aug 07, 2015 at 08:14:03PM +0530, Vineet Gupta wrote: >>> > See, I have such a cmpxchg loop in ARC

Re: [PATCH v4 2/3] i2c: i801: Create iTCO device on newer Intel PCHs

2015-08-07 Thread Wolfram Sang
On Thu, Aug 06, 2015 at 01:46:25PM +0100, Matt Fleming wrote: > From: Mika Westerberg > > Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources > have been moved to reside under the i801 SMBus host controller whereas > previously they were under the LPC device. > > In order

Re: [PATCH] block: fix update first/last mergeable segment sizes

2015-08-07 Thread Jeff Moyer
Wanpeng Li writes: > To keep track of the max segment size, the sizes of the first and last > mergeable segments in the bio are accounted, prev->bio->bi_seg_front_size > and next->biotail->bi_seg_back_size will be updated if > blk_phys_contig_segment > is true, however, there are still some

Re: [PATCH RFC V9 2/3] perf,tools: per-event callgraph support

2015-08-07 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 06, 2015 at 03:44:53PM -0400, kan.li...@intel.com escreveu: > From: Kan Liang > Here are some examples and test results. > > 1. Comparing the elapsed time and perf.data size from "kernbench -M -H". > > The test command for FULL callgraph and time support. >"perf record -e >

Re: [Xen-devel] [PATCH v5 0/6] xen/PMU: PMU support for Xen PV(H) guests

2015-08-07 Thread Julien Grall
Hi, On 07/08/15 16:35, David Vrabel wrote: > On 02/07/15 15:53, Boris Ostrovsky wrote: >> I haven't posted Linux part of PV(H) VPMU support in a while but now >> that (hopefully) the hypervisor part is getting close to be done I >> think it's time to post it again. >> >> There are very few

Re: [PATCH RFC V9 2/3] perf,tools: per-event callgraph support

2015-08-07 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 07, 2015 at 12:38:43PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Aug 06, 2015 at 03:44:53PM -0400, kan.li...@intel.com escreveu: > > From: Kan Liang > > Here are some examples and test results. > > > > 1. Comparing the elapsed time and perf.data size from "kernbench -M -H".

[GIT PULL] at91: dt for 4.3 #2

2015-08-07 Thread Alexandre Belloni
Arnd, Olof, Kevin, This is the second batch of DT changes for 4.3. It is mainly some preparation to support properly getting the slow clock from each driver so that the dtsis are ready when the driver change lands in each subsystem. It also adds support for the lcd controller on at91sam9x5 and

Re: [PATCH] coredump: Replace opencoded set_mask_bits()

2015-08-07 Thread Peter Zijlstra
On Fri, Aug 07, 2015 at 09:05:06PM +0530, Vineet Gupta wrote: > On Friday 07 August 2015 08:27 PM, Peter Zijlstra wrote: > > On Fri, Aug 07, 2015 at 08:14:03PM +0530, Vineet Gupta wrote: > > > >> > See, I have such a cmpxchg loop in ARC code - originally from Peter :-) > >> >

Re: [PATCH] dma: omap-dma: add support for pause of non-cyclic transfers

2015-08-07 Thread Sebastian Andrzej Siewior
On 08/07/2015 05:29 PM, Russell King - ARM Linux wrote: > On Fri, Aug 07, 2015 at 11:08:48AM -0400, Peter Hurley wrote: >> [ + Greg KH ] >> >> On 08/07/2015 09:57 AM, Russell King - ARM Linux wrote: >>> As it is something that the driver has _not_ supported, you are clearly >>> adding a feature to

Re: [PATCH v2] staging: ion: Add a default struct device for cma heap

2015-08-07 Thread Feng Tang
On Fri, Aug 07, 2015 at 04:48:28PM +0200, Michal Nazarewicz wrote: > On Fri, Aug 07 2015, Feng Tang wrote: > > As I described above, the dummy struct device is only needed for > > dma request, its lifetime is align with the cma_heap itself. > > Again, this is from perspective of someone who is

[PATCH v6 6/7] clocksource: Add Pistachio clocksource-only driver

2015-08-07 Thread Govindraj Raja
From: Ezequiel Garcia The Pistachio SoC provides four general purpose timers, and allow to implement a clocksource driver. This driver can be used as a replacement for the MIPS GIC and MIPS R4K clocksources and sched clocks, which are clocked from the CPU clock. Given the general purpose

Re: [RFC][PATCH 1/4] sched: Fix a race between __kthread_bind() and sched_setaffinity()

2015-08-07 Thread Tejun Heo
Hello, On Fri, Aug 07, 2015 at 05:29:56PM +0200, Peter Zijlstra wrote: > Even if we were to strictly order those stores you could have (note > there is no matching barrier, as there is only the one load, so ordering > cannot help): > > __kthread_bind() >

Re: false positives with checkpatch

2015-08-07 Thread Joe Perches
On Fri, 2015-08-07 at 09:01 -0600, Ross Zwisler wrote: > When running checkpatch.pl against my latest patch set, I hit what I think are > two false positives. Here are the related lines: > > +static inline void flush_cache_pmem(void __pmem *addr, size_t size) > +{ > + if

Re: kdbus: to merge or not to merge?

2015-08-07 Thread cee1
2015-08-07 2:43 GMT+08:00 Andy Lutomirski : > On Thu, Aug 6, 2015 at 11:14 AM, Daniel Mack wrote: >> On 08/06/2015 05:21 PM, Andy Lutomirski wrote: >>> Maybe gdbus really does use kdbus already, but on >>> very brief inspection it looked like it didn't at least on my test VM. >> >> No, it's not

[PATCH v2] dma: omap-dma: add support for pause of non-cyclic transfers

2015-08-07 Thread Sebastian Andrzej Siewior
This DMA driver is used by 8250-omap on DRA7-evm. There is one requirement that is to pause a transfer. This is currently used on the RX side. It is possible that the UART HW aborted the RX (UART's RX-timeout) but the DMA controller starts the transfer shortly after. Before we can manually purge

Re: [Xen-devel] [PATCH v5 0/6] xen/PMU: PMU support for Xen PV(H) guests

2015-08-07 Thread David Vrabel
On 02/07/15 15:53, Boris Ostrovsky wrote: > I haven't posted Linux part of PV(H) VPMU support in a while but now > that (hopefully) the hypervisor part is getting close to be done I > think it's time to post it again. > > There are very few differences compared to the last version, mostly due >

Re: [PATCH] coredump: Replace opencoded set_mask_bits()

2015-08-07 Thread Vineet Gupta
On Friday 07 August 2015 08:27 PM, Peter Zijlstra wrote: > On Fri, Aug 07, 2015 at 08:14:03PM +0530, Vineet Gupta wrote: > >> > See, I have such a cmpxchg loop in ARC code - originally from Peter :-) >> > arch/arc/kernel/smp.c. @ipi_data_ptr is NOT atomic_t >> > >> >do { >> >new

Re: [PATCH v4 1/3] iTCO_wdt: Expose watchdog properties using platform data

2015-08-07 Thread Guenter Roeck
On 08/06/2015 05:46 AM, Matt Fleming wrote: From: Matt Fleming Intel Sunrisepoint (Skylake PCH) has the iTCO watchdog accessible across the SMBus, unlike previous generations of PCH/ICH where it was on the LPC bus. Because it's on the SMBus, it doesn't make sense to pass around a 'struct

Re: [PATCH v4 2/2] serial: mxs-auart: keep the AUART unit in reset state when not in use

2015-08-07 Thread Peter Hurley
On 08/07/2015 06:47 AM, Juergen Borleis wrote: > Whenever the UART device driver gets closed from userland, the driver > disables the UART unit and then stops the clocks to save power. > > The bit which disabled the UART unit is described as: > > "UART Enable. If this bit is set to 1, the UART

Re: [PATCH] dma: omap-dma: add support for pause of non-cyclic transfers

2015-08-07 Thread Russell King - ARM Linux
On Fri, Aug 07, 2015 at 11:08:48AM -0400, Peter Hurley wrote: > [ + Greg KH ] > > On 08/07/2015 09:57 AM, Russell King - ARM Linux wrote: > > As it is something that the driver has _not_ supported, you are clearly > > adding a feature to an existing driver. It's not a bug fix. > > > >>> If

Re: [RFC][PATCH 1/4] sched: Fix a race between __kthread_bind() and sched_setaffinity()

2015-08-07 Thread Peter Zijlstra
On Fri, Aug 07, 2015 at 11:16:08AM -0400, Tejun Heo wrote: > On Fri, Aug 07, 2015 at 04:27:08PM +0200, Peter Zijlstra wrote: > > Which is the rescue thread attaching itself to a pool that needs help, > > and obviously the rescue thread isn't new so kthread_bind doesn't work > > right. > > > > The

Re: page-flags behavior on compound pages: a worry

2015-08-07 Thread Christoph Lameter
On Fri, 7 Aug 2015, Kirill A. Shutemov wrote: > On Thu, Aug 06, 2015 at 03:45:31PM -0500, Christoph Lameter wrote: > > On Thu, 6 Aug 2015, Hugh Dickins wrote: > > > > > > I know a patchset which solves this! ;) > > > > > > Oh, and I know a patchset which avoids these problems completely, > > > by

Re: [PATCH v6 2/2] Documentation: dt: binding: atmel-sama5d4-wdt: for SAMA5D4 watchdog driver

2015-08-07 Thread Guenter Roeck
On 08/06/2015 03:17 AM, Wenyou Yang wrote: The compatible "atmel,sama5d4-wdt" supports the SAMA5D4 watchdog driver and the watchdog's WDT_MR register can be written more than once. Signed-off-by: Wenyou Yang Reviewed-by: Guenter Roeck --- .../bindings/watchdog/atmel-sama5d4-wdt.txt

Re: [PATCH v6 1/2] drivers: watchdog: add a driver to support SAMA5D4 watchdog timer

2015-08-07 Thread Guenter Roeck
On 08/06/2015 03:16 AM, Wenyou Yang wrote: From SAMA5D4, the watchdog timer is upgrated with a new feature, which is describled as in the datasheet, "WDT_MR can be written until a LOCKMR command is issued in WDT_CR". That is to say, as long as the bootstrap and u-boot don't issue a LOCKMR

[PATCH v2 00/11] test_user_copy improvements

2015-08-07 Thread James Hogan
These patches extend the test_user_copy test module to handle lots more cases of user accessors which architectures can override separately, and in particular those which are important for checking the MIPS Enhanced Virtual Addressing (EVA) implementations, which need to handle overlapping user

[PATCH v2 05/11] test_user_copy: Check legit kernel accesses

2015-08-07 Thread James Hogan
Check that the use of the user accessors for accessing kernel memory succeed as expected after set_fs(get_ds()) is used to increases the address limit, as used by the kernel to directly invoke system call code with kernel pointers. The tests are basically the same as the tests normally expected

[PATCH v2 03/11] openrisc: Export __clear_user to modules

2015-08-07 Thread James Hogan
Update the OpenRISC architecture code to export __clear_user() to modules, so that modules can make use of clear_user(). For example the test_user_copy module will soon test it. Signed-off-by: James Hogan Cc: Jonas Bonn Cc: li...@lists.openrisc.net --- arch/openrisc/kernel/or32_ksyms.c | 1 +

[PATCH v2 01/11] microblaze: Export __strnlen_user to modules

2015-08-07 Thread James Hogan
Update the microblaze architecture code to export __strnlen_user() to modules, so they can make use of strnlen_user(). For example the test_user_copy module will soon test it. Signed-off-by: James Hogan Cc: Michal Simek --- arch/microblaze/kernel/microblaze_ksyms.c | 1 + 1 file changed, 1

[PATCH v2 04/11] xtensa: Export __strnlen_user to modules

2015-08-07 Thread James Hogan
Update the Xtensa architecture code to export __strnlen_user() to modules, so that modules can make use of strnlen_user() and strlen_user(). For example the test_user_copy module will soon test them. Signed-off-by: James Hogan Cc: Chris Zankel Cc: Max Filippov Cc: linux-xte...@linux-xtensa.org

[PATCH v2 06/11] test_user_copy: Check unchecked accessors

2015-08-07 Thread James Hogan
Currently the test_user_copy module only tests the user accessors which already check the address with access_ok(). Corresponding unchecked accessors exist however which may be used after access_ok() is checked. Since the addresses the test uses are known to be valid kernel addresses, test these

[PATCH v2 08/11] test_user_copy: Check __clear_user()/clear_user()

2015-08-07 Thread James Hogan
Add basic success/failure checking of __clear_user() and clear_user(), which zero an area of user or kernel memory and return the number of bytes left to clear. This catches a couple of bugs in the MIPS Enhanced Virtual Memory (EVA) implementation (which have already been fixed): test_user_copy:

[PATCH v2 07/11] test_user_copy: Check __copy_{to,from}_user_inatomic()

2015-08-07 Thread James Hogan
Add basic success/failure checking of __copy_to_user_inatomic() and __copy_from_user_inatomic(). For testing purposes these are similar to their non-atomic non-checking friends, so the new tests match those for __copy_to_user() and __copy_from_user(). New tests: - legitimate

[PATCH v2 09/11] test_user_copy: Check user string accessors

2015-08-07 Thread James Hogan
Add basic success/failure checking of the user string functions which copy or find the length of userland strings. The following cases are checked: - strncpy_from_user() with legitimate user to kernel addresses, illegal all-kernel and reversed addresses, and legitimate all-kernel addresses. -

[PATCH v2 11/11] test_user_copy: Check user checksum functions

2015-08-07 Thread James Hogan
Add basic success/failure checking of the combined user copy and checksum functions which copy data between user and kernel space while also checksumming that data. Some architectures have optimised versions of these which combine both operations into a single pass. The following cases are

[PATCH v2 10/11] test_user_copy: Check user compatibility accessors

2015-08-07 Thread James Hogan
Add basic success/failure checking of user accessors used by 32-bit compatibility code. This includes copy_in_user() which copies data from userspace to userspace (or kernel to kernel), its unchecking friend __copy_in_user which assume that access_ok() has already been used, and

[PATCH v2 02/11] nios2: Export strncpy_from_user / strnlen_user to modules

2015-08-07 Thread James Hogan
Update the nios2 architecture code to export strncpy_from_user() and strnlen_user() to modules. The test_user_copy module will soon test them. Signed-off-by: James Hogan Cc: Ley Foon Tan Cc: nios2-...@lists.rocketboards.org --- arch/nios2/mm/uaccess.c | 2 ++ 1 file changed, 2 insertions(+)

[GIT PULL] sound fixes for 4.2-rc6

2015-08-07 Thread Takashi Iwai
Linus, please pull sound fixes for v4.2-rc6 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.2-rc6 The topmost commit is 6ac7ada210a8d23a56fbf18b6e1e00528844565c The only bulk changes in this

Re: [RFC][PATCH 1/4] sched: Fix a race between __kthread_bind() and sched_setaffinity()

2015-08-07 Thread Tejun Heo
On Fri, Aug 07, 2015 at 04:27:08PM +0200, Peter Zijlstra wrote: > Which is the rescue thread attaching itself to a pool that needs help, > and obviously the rescue thread isn't new so kthread_bind doesn't work > right. > > The best I could come up with is something like the below on top; does >

RE: [PATCH v5 6/7] clocksource: Add Pistachio clocksource-only driver

2015-08-07 Thread Govindraj Raja
Hi Daniel, > -Original Message- > From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > Sent: 07 August 2015 11:28 AM > To: Govindraj Raja; linux-kernel@vger.kernel.org; linux-m...@linux-mips.org; > devicet...@vger.kernel.org > Cc: Thomas Gleixner; Andrew Bresticker; James Hartley;

Re: [PATCH v5 0/8] Add generic support for relaxed atomics

2015-08-07 Thread Peter Zijlstra
On Thu, Aug 06, 2015 at 05:54:36PM +0100, Will Deacon wrote: > Hi all, > The series adds support for a family of relaxed atomics to the kernel. > More specifically: > > - acquire/release/relaxed flavours of xchg, cmpxchg and {add,sub}_return > - atomic_read_acquire > - atomic_set_release >

Re: kdbus: to merge or not to merge?

2015-08-07 Thread Andy Lutomirski
On Fri, Aug 7, 2015 at 7:40 AM, Daniel Mack wrote: > On 08/06/2015 08:43 PM, Andy Lutomirski wrote: >> Nonetheless, it looks like the slice logic (aside: it looks *way* more >> complicated than necessary -- what's wrong with circular buffers) >> will, under most (but not all!) workloads,

Re: [PATCH v3 5/6] power: bq27xxx_battery: Add support for additional bq27xxx family devices

2015-08-07 Thread Andrew F. Davis
On 08/06/2015 03:28 AM, Pali Rohár wrote: On Wednesday 05 August 2015 11:05:39 Andrew F. Davis wrote: Add support for additional devices and register equivalent family devices including the bq27010, bq27210, bq27500, bq27510, bq27520, bq27530, bq27531, bq27541, bq27542, bq27546, bq27545,

Re: [PATCH] dma: omap-dma: add support for pause of non-cyclic transfers

2015-08-07 Thread Peter Hurley
[ + Greg KH ] On 08/07/2015 09:57 AM, Russell King - ARM Linux wrote: > On Fri, Aug 07, 2015 at 03:42:06PM +0200, Sebastian Andrzej Siewior wrote: >> On 08/07/2015 03:22 PM, Russell King - ARM Linux wrote: >>> On Fri, Aug 07, 2015 at 12:36:14PM +0200, Sebastian Andrzej Siewior wrote: On

Re: [PATCH v2] mm/slub: don't wait for high-order page allocation

2015-08-07 Thread Michal Hocko
On Fri 07-08-15 11:10:03, Joonsoo Kim wrote: [...] > diff --git a/mm/slub.c b/mm/slub.c > index 257283f..52b9025 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -1364,6 +1364,8 @@ static struct page *allocate_slab(struct kmem_cache *s, > gfp_t flags, int node) >* so we fall-back to the

[PATCH 08/24] bpf tools: Collect map definitions from 'maps' section

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan If maps are used by eBPF programs, corresponding object file(s) should contain a section named 'map'. Which contains map definitions. This patch copies the data of the whole section. Map data parsing should be acted just before map loading. Signed-off-by: Wang Nan Acked-by:

Re: [PATCH 0/3] zram: Replace pr_* with dev_*

2015-08-07 Thread Minchan Kim
On Fri, Aug 07, 2015 at 03:37:56PM +0900, Sergey Senozhatsky wrote: > Hello Minchan, > > On (08/07/15 15:05), Minchan Kim wrote: > [..] > > > I'd prefer to leave the messages the way they are. Changing anything > > > visible to user space (api, eror codes, error messages, etc.) is a > > > very

[PATCH] pwm: core: cleanup pointer tests

2015-08-07 Thread Olliver Schinagl
From: Olliver Schinagl pwm_set_polarity() checks if there's ops and polarity function pointers. Most of these pointers are actually checked when a chip is added via pwm_add, except for set_polarity. This patch adds set_polarity to the list of functions to test on pwmchip_add_with_polarity();

[PATCH 05/24] bpf tools: Check endianness and make libbpf fail early

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan Check endianness according to EHDR. Code is taken from tools/perf/util/symbol-elf.c. Libbpf doesn't magically convert missmatched endianness. Even if we swap eBPF instructions to correct byte order, we are unable to deal with endianness in code logical generated by LLVM.

Re: [PATCH] coredump: Replace opencoded set_mask_bits()

2015-08-07 Thread Peter Zijlstra
On Fri, Aug 07, 2015 at 08:14:03PM +0530, Vineet Gupta wrote: > See, I have such a cmpxchg loop in ARC code - originally from Peter :-) > arch/arc/kernel/smp.c. @ipi_data_ptr is NOT atomic_t > > do { > new = old = ACCESS_ONCE(*ipi_data_ptr); > new |= 1U << msg;

[PATCH 14/24] bpf tools: Create eBPF maps defined in an object file

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch creates maps based on 'map' section in object file using bpf_create_map(), and stores the fds into an array in 'struct bpf_object'. Previous patches parse ELF object file and collects required data, but doesn't play with the kernel. They belong to the 'opening' phase.

Re: page-flags behavior on compound pages: a worry

2015-08-07 Thread Kirill A. Shutemov
On Thu, Aug 06, 2015 at 03:45:31PM -0500, Christoph Lameter wrote: > On Thu, 6 Aug 2015, Hugh Dickins wrote: > > > > I know a patchset which solves this! ;) > > > > Oh, and I know a patchset which avoids these problems completely, > > by not using compound pages at all ;) > > Another dumb idea:

[PATCH 06/24] bpf tools: Iterate over ELF sections to collect information

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan bpf_obj_elf_collect() is introduced to iterate over each elf sections to collection information in eBPF object files. This function will futher enhanced to collect license, kernel version, programs, configs and map information. Signed-off-by: Wang Nan Acked-by: Alexei

[PATCH 11/24] bpf tools: Collect relocation sections from SHT_REL sections

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch collects relocation sections into 'struct object'. Such sections are used for connecting maps to bpf programs. 'reloc' field in 'struct bpf_object' is introduced for storing such information. This patch simply store the data into 'reloc' field. Following patch will

[PATCH 13/24] bpf tools: Add bpf.c/h for common bpf operations

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch introduces bpf.c and bpf.h, which hold common functions issuing bpf syscall. The goal of these two files is to hide syscall completely from user. Note that bpf.c and bpf.h deal with kernel interface only. Things like structure of 'map' section in the ELF object is not

[PATCH 01/24] bpf tools: Introduce 'bpf' library and add bpf feature check

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan This is the first patch of libbpf. The goal of libbpf is to create a standard way for accessing eBPF object files. This patch creates 'Makefile' and 'Build' for it, allows 'make' to build libbpf.a and libbpf.so, 'make install' to put them into proper directories. Most part of

[PATCH 10/24] bpf tools: Collect eBPF programs from their own sections

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch collects all programs in an object file into an array of 'struct bpf_program' for further processing. That structure is for representing each eBPF program. 'bpf_prog' should be a better name, but it has been used by linux/filter.h. Although it is a kernel space name, I

[PATCH 16/24] bpf tools: Introduce bpf_load_program() to bpf.c

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan bpf_load_program() can be used to load bpf program into kernel. To make loading faster, first try to load without logbuf. Try again with logbuf if the first try failed. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov Cc: Brendan Gregg Cc: Daniel Borkmann Cc: David Ahern

[PATCH 20/24] perf tools: Introduce llvm config options

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch introduces [llvm] config section with 5 options. Following patches will use then to config llvm dynamica compiling. 'llvm-utils.[ch]' is introduced in this patch for holding all llvm/clang related stuffs. Example: [llvm] # Path to clang. If omit, search it

Re: [PATCH 2/2] net, thunder, bgx: Add support for ACPI binding.

2015-08-07 Thread Graeme Gregory
On Thu, Aug 06, 2015 at 05:33:10PM -0700, David Daney wrote: > From: David Daney > > Find out which PHYs belong to which BGX instance in the ACPI way. > > Set the MAC address of the device as provided by ACPI tables. This is > similar to the implementation for devicetree in >

[PATCH 23/24] perf tools: Auto detecting kernel include options

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan To help user find correct kernel include options, this patch extracts them from kbuild system by an embedded script kinc_fetch_script, which creates a temporary directory, generates Makefile and an empty dummy.o then use the Makefile to fetch $(NOSTDINC_FLAGS), $(LINUXINCLUDE) and

[GIT PULL 00/24] perf/ebpf lib + llvm/clang building infrastructure

2015-08-07 Thread Arnaldo Carvalho de Melo
Hi Ingo, This is up to a test that checks that the infrastructure for getting a C source file and build it to a form that can then be used to upload it to the kernel is working. Wang has a tree where we go all the way to passing a .c file as an --event, but I thought about

[PATCH 19/24] bpf tools: Link all bpf objects onto a list

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan To allow enumeration of all bpf_objects, keep them in a list (hidden to caller). bpf_object__for_each_safe() is introduced to do this iteration. It is safe even user close the object during iteration. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov Cc: Brendan Gregg Cc:

[PATCH 22/24] perf tools: Auto detecting kernel build directory

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch detects kernel build directory by checking the existence of include/generated/autoconf.h. clang working directory is changed to kbuild directory if it is found, to help user use relative include path. Following patch will detect kernel include directory, which contains

[PATCH 09/24] bpf tools: Collect symbol table from SHT_SYMTAB section

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch collects symbols section. This section is useful when linking BPF maps. What 'bpf_map_xxx()' functions actually require are map's file descriptors (and the internal verifier converts fds into pointers to 'struct bpf_map'), which we don't know when compiling. Therefore,

[PATCH 15/24] bpf tools: Relocate eBPF programs

2015-08-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan If an eBPF program accesses a map, LLVM generates a load instruction which loads an absolute address into a register, like this: ld_64 r1, ... call2 That ld_64 instruction will be recorded in relocation section. To enable the usage of that map, relocation must be

<    1   2   3   4   5   6   7   8   9   10   >