[PATCH 3/3] x86, mpx, selftests: add MPX self test

2016-06-08 Thread Dave Hansen
From: Dave Hansen I've had this code for a while, but never submitted it upstream. Now that Skylake hardware is out in the wild, folks can actually run this for real. It tests the following: 1. The MPX hardware is enabled by the kernel and doing what it is supposed to

[PATCH 1/3] x86, signals: add missing signal_compat code for x86 features

2016-06-08 Thread Dave Hansen
From: Dave Hansen The 32-bit siginfo is a different binary format than the 64-bit one. So, when running 32-bit binaries on 64-bit kernels, we have to convert the kernel's 64-bit version to a 32-bit version that userspace can grok. We've added a few features to siginfo over the past few years a

[PATCH 4/7] f2fs: skip clean segment for gc

2016-06-08 Thread Jaegeuk Kim
If a segment in a section is clean or prefreed, we don't need to get its summary and do gc. Signed-off-by: Jaegeuk Kim --- fs/f2fs/gc.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 67fd285..e1d274c 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -795,

[PATCH 2/7] f2fs: avoid reverse IO order for NODE and DATA

2016-06-08 Thread Jaegeuk Kim
There is a data race between allocate_data_block() and f2fs_sbumit_page_mbio(), which incur unnecessary reversed bio submission. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h| 1 + fs/f2fs/segment.c | 6 ++ fs/f2fs/super.c | 2 ++ 3 files changed, 9 insertions(+) diff --git a/fs/f2fs/

[tip:locking/urgent] futex: Calculate the futex key based on a tail page for file-based futexes

2016-06-08 Thread tip-bot for Mel Gorman
Commit-ID: 077fa7aed17de5022e44bf07dbaf732078b7b5b2 Gitweb: http://git.kernel.org/tip/077fa7aed17de5022e44bf07dbaf732078b7b5b2 Author: Mel Gorman AuthorDate: Wed, 8 Jun 2016 14:25:22 +0100 Committer: Thomas Gleixner CommitDate: Wed, 8 Jun 2016 19:23:54 +0200 futex: Calculate the futex

Re: [Linaro-mm-sig] [RFC][PATCH 0/6] ion: improved ABI

2016-06-08 Thread Laura Abbott
On 06/06/2016 11:59 PM, Chen Feng wrote: The idea is good, define the heap ids in header file is inconvenient. But if we query the heaps information from user-space. It need to maintain this ids and name userspace one by one. The code may be complicated in different module user-space. In andro

[PATCH 3/7] f2fs: drop any block plugging

2016-06-08 Thread Jaegeuk Kim
In f2fs, we don't need to keep block plugging for NODE and DATA writes, since we already merged bios as much as possible. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 4 fs/f2fs/data.c | 17 ++--- fs/f2fs/gc.c | 5 - fs/f2fs/segment.c| 7 +--

RE: [PATCH V2] MAINTAINERS: Add Dialog PMIC search terms for missing documentation and header files

2016-06-08 Thread Opensource [Steve Twiss]
On 08 June 2016 15:19, Mark Brown wrote: > Subject: Re: [PATCH V2] MAINTAINERS: Add Dialog PMIC search terms for > missing documentation and header files > > On Tue, May 24, 2016 at 08:53:46AM +0100, Steve Twiss wrote: > > > The majority of these updates are for MFD documentation and headers, >

Re: [RFC][PATCH 0/5] Functional dependencies between devices

2016-06-08 Thread Mark Brown
On Wed, Jun 08, 2016 at 07:24:15PM +0200, Rafael J. Wysocki wrote: > On Wed, Jun 8, 2016 at 2:15 PM, Mark Brown wrote: > > On Thu, Jan 14, 2016 at 02:52:11AM +0100, Rafael J. Wysocki wrote: > >> What follows is my prototype implementation of this. It took some time > >> to develop (much more tha

Re: [PATCH 0/9] [v2] System Calls for Memory Protection Keys

2016-06-08 Thread Dave Hansen
On 06/08/2016 02:23 AM, Michael Kerrisk (man-pages) wrote: > On 06/07/2016 10:47 PM, Dave Hansen wrote: >> > Are there any concerns with merging these into the x86 tree so >> > that they go upstream for 4.8? > I believe we still don't have up-to-date man pages, right? > Best from my POV to send t

Re: [RFC][PATCH 6/6] staging: android: ion: Introduce new ioctls for dynamic heaps

2016-06-08 Thread Laura Abbott
On 06/08/2016 06:50 AM, Liviu Dudau wrote: On Mon, Jun 06, 2016 at 11:23:33AM -0700, Laura Abbott wrote: From: Laura Abbott The Ion ABI for heaps is limiting to work with for more complex systems. Heaps have to be registered at boot time with known ids available to userspace. This becomes a t

Re: [PATCH 1/2] mfd: sm-usb-dig: Add support for the TI SM-USB-DIG

2016-06-08 Thread Andrew F. Davis
On 06/08/2016 08:06 AM, Lee Jones wrote: > On Tue, 31 May 2016, Andrew F. Davis wrote: > >> The TI SM-USB-DIG is a USB to SPI/I2C/1Wire/GPIO adapter. >> Add MFD core support. >> >> Signed-off-by: Andrew F. Davis >> --- >> The SPI, GPIO, and 1Wire drivers are WIP. >> >> drivers/mfd/Kconfig

Re: Files leak from nfsd in 4.7.1-rc1 (and more?)

2016-06-08 Thread Oleg Drokin
On Jun 8, 2016, at 1:22 PM, Jeff Layton wrote: > On Wed, 2016-06-08 at 12:10 -0400, Oleg Drokin wrote: >> On Jun 8, 2016, at 6:58 AM, Jeff Layton wrote: >> >>> A simple way to confirm that might be to convert all of the read locks >>> on the st_rwsem to write locks. That will serialize all of th

Re: dell-smm-hwmon: security problems

2016-06-08 Thread Guenter Roeck
On Wed, Jun 08, 2016 at 03:55:48PM +0200, Pali Rohár wrote: > On Wednesday 08 June 2016 15:24:10 Guenter Roeck wrote: > > On 06/08/2016 02:57 AM, Pali Rohár wrote: > > > Hello! > > > > > > Mario wrote me about two I think security problems in > > > dell-smm-hwmon driver and I would like to ask you

Re: [PATCH] nvmem: fix nvmem_cell_read() return type for !CONFIG_NVMEM

2016-06-08 Thread Guenter Roeck
On Wed, Jun 08, 2016 at 09:40:11AM -0700, Brian Norris wrote: > On Wed, Jun 08, 2016 at 09:26:46AM -0700, Brian Norris wrote: > > With CONFIG_NVMEM, nvmem_cell_read() returns void *. With !CONFIG_NVMEM > > it returns char *. Let's make that consistent. Also drop the > > incorrect/inconsistent comme

Re: [PATCH V2] MAINTAINERS: Add Dialog PMIC search terms for missing documentation and header files

2016-06-08 Thread Mark Brown
On Wed, Jun 08, 2016 at 05:25:30PM +, Opensource [Steve Twiss] wrote: > On 08 June 2016 15:19, Mark Brown wrote: > > We *really* shouldn't be blocking on my ack for trivial changes outside > > the subsystem like this though :( > There had been no reply since my first e-mail round about a mont

Re: [PATCH] hwmon: (tmp401) Add support for TI TMP461

2016-06-08 Thread Guenter Roeck
On Wed, Jun 08, 2016 at 11:56:29AM -0500, Andrew F. Davis wrote: [ ... ] > >> static const u8 TMP432_TEMP_MSB_READ[4][3] = { > >> @@ -149,6 +156,7 @@ static const struct i2c_device_id tmp401_id[] = { > >> { "tmp431", tmp431 }, > >> { "tmp432", tmp432 }, > >> { "tmp435", tmp435

Re: [PATCH v2 1/1] hwmon: (tmp401) Add support for TI TMP461

2016-06-08 Thread Guenter Roeck
On Wed, Jun 08, 2016 at 12:00:54PM -0500, Andrew F. Davis wrote: > Signed-off-by: Andrew F. Davis Applied to hwmon-next. Thanks, Guenter

Re: [PATCH 0/2] *** staging: lustre: Replace semaphore lock with mutex ***

2016-06-08 Thread James Simmons
> Hi, > > These are a set of patches which removes semaphores from: > > drivers/staging/lustre (lnet) > > These are part of a bigger effort to eliminate all semaphores > from the linux kernel. > > They build correctly (individually and as a whole). > > Thanks, > Binoy I just finishing runn

Re: [PATCH 1/2] staging: lustre: lloop_device: Replace semaphore lo_sem with completion

2016-06-08 Thread James Simmons
> The semaphore 'lo_sem' in lloop_device is used as completion, so it > should be written as one. Semaphores are going away in the future. > > Signed-off-by: Binoy Jayan NAK. The lloop_device is about to get deleted. > --- > drivers/staging/lustre/lustre/llite/lloop.c | 14 +++--- > 1

Re: dell-smm-hwmon: security problems

2016-06-08 Thread Austin S. Hemmelgarn
On 2016-06-08 13:37, Guenter Roeck wrote: On Wed, Jun 08, 2016 at 03:55:48PM +0200, Pali Rohár wrote: On Wednesday 08 June 2016 15:24:10 Guenter Roeck wrote: On 06/08/2016 02:57 AM, Pali Rohár wrote: Hello! Mario wrote me about two I think security problems in dell-smm-hwmon driver and I woul

Re: kbuild: default n removals? (was: Re: [PATCH v3 4/6] watchdog: add watchdog pretimeout framework)

2016-06-08 Thread Guenter Roeck
On Wed, Jun 08, 2016 at 08:38:52AM -0700, Joe Perches wrote: > (Adding Michal Marek and linux-kbuild) > > On Wed, 2016-06-08 at 18:11 +0300, Vladimir Zapolskiy wrote: > > On 08.06.2016 16:53, Guenter Roeck wrote: > > > On 06/08/2016 06:37 AM, Vladimir Zapolskiy wrote: > > > > > > +comment "Watchdo

[PATCH] mfd: omap-usb-tll: fix include of omap-usb.h

2016-06-08 Thread Ben Dooks
Fix the warnings about the following functions not being declared by including omap-usb.h which declares them: drivers/mfd/omap-usb-tll.c:333:5: warning: symbol 'omap_tll_init' was not declared. Should it be static? drivers/mfd/omap-usb-tll.c:408:5: warning: symbol 'omap_tll_enable' was not decl

Re: [PATCH] drivers/net/fsl_ucc: Do not prefix header guard with CONFIG_

2016-06-08 Thread David Miller
From: Andreas Ziegler Date: Wed, 8 Jun 2016 11:40:28 +0200 > The CONFIG_ prefix should only be used for options which > can be configured through Kconfig and not for guarding headers. > > Signed-off-by: Andreas Ziegler Applied.

Re: [PATCH] fsl/qe: Do not prefix header guard with CONFIG_

2016-06-08 Thread David Miller
From: Andreas Ziegler Date: Wed, 8 Jun 2016 11:36:56 +0200 > The CONFIG_ prefix should only be used for options which > can be configured through Kconfig and not for guarding headers. > > Signed-off-by: Andreas Ziegler Since this is fixing a patch that went via the networking tree, you should

Re: dell-smm-hwmon: security problems

2016-06-08 Thread Pali Rohár
On Wednesday 08 June 2016 19:37:43 Guenter Roeck wrote: > On Wed, Jun 08, 2016 at 03:55:48PM +0200, Pali Rohár wrote: > > And do you have idea what to do with problem 1)? > > If you really want to do something about it, you could whiteout the > serial number if CAP_SYS_ADMIN is not set. Ok, that

Re: dell-smm-hwmon: security problems

2016-06-08 Thread Pali Rohár
On Wednesday 08 June 2016 19:54:35 Austin S. Hemmelgarn wrote: > On 2016-06-08 13:37, Guenter Roeck wrote: > > On Wed, Jun 08, 2016 at 03:55:48PM +0200, Pali Rohár wrote: > >> On Wednesday 08 June 2016 15:24:10 Guenter Roeck wrote: > >>> On 06/08/2016 02:57 AM, Pali Rohár wrote: > Hello! > >>>

Re: [RFC][PATCH 2/5] driver core: Functional dependencies tracking support

2016-06-08 Thread Rafael J. Wysocki
On Wed, Jun 8, 2016 at 2:48 PM, Mark Brown wrote: > On Thu, Jan 14, 2016 at 02:54:17AM +0100, Rafael J. Wysocki wrote: > >> + * A side effect of the link creation is re-ordering of dpm_list and the >> + * devices_kset list by moving the consumer device and all devices depending >> + * on it to the

Re: [PATCH 1/2][v3] i2c: qup: add ACPI support

2016-06-08 Thread Christ, Austin
On 6/5/2016 12:57 PM, Andy Gross wrote: On Thu, May 26, 2016 at 01:37:56PM -0600, Austin Christ wrote: @@ -1354,14 +1359,13 @@ static void qup_i2c_disable_clocks(struct qup_i2c_dev *qup) static int qup_i2c_probe(struct platform_device *pdev) { static const int blk_sizes[] = {4,

Re: [PATCH net v2] sfc: report supported link speeds on SFP connections

2016-06-08 Thread David Miller
From: Jarod Wilson Date: Wed, 8 Jun 2016 09:41:14 -0400 > On Tue, Jun 07, 2016 at 05:20:16PM -0400, Jarod Wilson wrote: >> On Mon, Jun 06, 2016 at 02:55:29PM -0400, Jarod Wilson wrote: >> > On Mon, Jun 06, 2016 at 05:29:30PM +0100, Bert Kenward wrote: >> > > 7000-series SFC NICs connected with an

[PATCH v4 2/2] i2c: qup: support SMBus block read

2016-06-08 Thread Austin Christ
From: Naveen Kaje I2C QUP driver relies on SMBus emulation support from the framework. To handle SMBus block reads, the driver should check I2C_M_RECV_LEN flag and should read the first byte received as the message length. The driver configures the QUP hardware to read one byte. Once the message

[PATCH v4 1/2] i2c: qup: add ACPI support

2016-06-08 Thread Austin Christ
From: Naveen Kaje Add support to get the device parameters from ACPI. Assume that the clocks are managed by firmware. Signed-off-by: Naveen Kaje Signed-off-by: Austin Christ Reviewed-by: sricha...@codeaurora.org --- drivers/i2c/busses/i2c-qup.c | 59 ---

Re: [PATCH v3 4/6] watchdog: add watchdog pretimeout framework

2016-06-08 Thread Guenter Roeck
On Wed, Jun 08, 2016 at 05:08:09PM +0300, Vladimir Zapolskiy wrote: > Hi Wolfram, > > On 08.06.2016 09:54, Wolfram Sang wrote: > > On Tue, Jun 07, 2016 at 08:38:45PM +0300, Vladimir Zapolskiy wrote: > >> The change adds a simple watchdog pretimeout framework infrastructure, > >> its purpose is to

[RFC PATCH 00/15] Exynos big-endian fixes

2016-06-08 Thread Matthew Leach
Hi all, I've been working with Ben Dooks to get a big-endian kernel working on my Exynos 4412 board. Primarily this series consists of: - Replacing the __raw_{read,write}l accessors, which aren't endian-clean, with their respective {read,write}l_relaxed versions across various drivers.

[RFC PATCH 02/15] clocksource: samsung_pwm_timer: fix endian accessors

2016-06-08 Thread Matthew Leach
Fix the Samsung pwm timer access code to deal with kernels built for big endian operation. Signed-off-by: Matthew Leach --- CC: Daniel Lezcano CC: Thomas Gleixner CC: linux-kernel@vger.kernel.org --- drivers/clocksource/samsung_pwm_timer.c | 16 1 file changed, 8 insertions(+)

[RFC PATCH 01/15] clock: exynos: fixup endian in pll clk

2016-06-08 Thread Matthew Leach
Fix the clk endian access code to deal with kernels built for big endian operation. Signed-off-by: Matthew Leach --- CC: Sylwester Nawrocki CC: Tomasz Figa CC: Michael Turquette CC: Stephen Boyd CC: linux-samsung-...@vger.kernel.org CC: linux-...@vger.kernel.org CC: linux-kernel@vger.kernel.o

[RFC PATCH 03/15] clk: samsung: exynos4: fixup reg access on be

2016-06-08 Thread Matthew Leach
Use the byte-order aware big endian accessors, allowing for kernels running under big-endian. Signed-off-by: Matthew Leach --- CC: Sylwester Nawrocki CC: Tomasz Figa CC: Michael Turquette CC: Stephen Boyd CC: Kukjin Kim CC: Krzysztof Kozlowski CC: linux-samsung-...@vger.kernel.org CC: linux

[RFC PATCH 06/15] tty: serial: samsung: add byte-order aware bit functions

2016-06-08 Thread Matthew Leach
This driver makes use of the __set_bit() and __clear_bit() functions. When running under big-endian, these functions don't convert the bit indexes when working with peripheral registers, leading to the incorrect bits being set and cleared when running big-endian. Add two new driver functions for s

[RFC PATCH 12/15] irqchip/s3c24xx: fixup IO accessors for big endian

2016-06-08 Thread Matthew Leach
From: Ben Dooks Instead of using the __raw accesors, use the _relaxed versions to deal with any issues due to endian-ness of the CPU. Signed-off-by: Ben Dooks --- CC: Thomas Gleixner (maintainer:IRQCHIP DRIVERS) CC: Jason Cooper (maintainer:IRQCHIP DRIVERS) CC: Marc Zyngier (maintainer:IRQC

[RFC PATCH 13/15] memory: samsung: endian fixes for IO

2016-06-08 Thread Matthew Leach
From: Ben Dooks Use the relaxed versions of the IO accessors to avoid any issues if running in big endian. Signed-off-by: Ben Dooks --- Cc: Pavel Fedin Cc: Krzysztof Kozlowski Cc: Pankaj Dubey Cc: linux-arm-ker...@lists.codethink.co.uk --- drivers/memory/samsung/exynos-srom.c | 6 +++--- 1

[RFC PATCH 15/15] iommu/exynos: update to use iommu big-endian

2016-06-08 Thread Matthew Leach
From: Ben Dooks Add initial support for big endian by always writing the pte in le32. Note, revisit if hardware capable of doing big endian fetches. Signed-off-by: Ben Dooks --- Cc: Marek Szyprowski Cc: Joerg Roedel Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: io...@lists.linux-foundation.org

Re: [PATCH net-next v2] netvsc: get rid of completion timeouts

2016-06-08 Thread David Miller
From: Vitaly Kuznetsov Date: Wed, 8 Jun 2016 19:17:41 +0200 > I'm hitting 5 second timeout in rndis_filter_set_rss_param() while setting > RSS parameters for the device. When this happens we end up returning > -ETIMEDOUT from the function and rndis_filter_device_add() falls back to > setting >

[RFC PATCH 07/15] ARM: exynos: fixup debug macros for big-endian

2016-06-08 Thread Matthew Leach
From: Ben Dooks The exynos low-level debug macros need to be fixed if the system is being built big endian. Add the necessary endian swaps for accessing the registers to get output working again Signed-off-by: Ben Dooks --- arch/arm/include/debug/samsung.S | 8 1 file changed, 8 inser

[RFC PATCH 10/15] ARM: EXYNOS: fixup endian in pm/pmu

2016-06-08 Thread Matthew Leach
From: Ben Dooks Fix the PMU code endian access code to deal with kernels built for big endian operation. Signed-off-by: Ben Dooks --- arch/arm/mach-exynos/common.h | 4 ++-- arch/arm/mach-exynos/pm.c | 4 ++-- arch/arm/mach-exynos/pm_domains.c | 6 +++--- 3 files changed, 7 inserti

[RFC PATCH 11/15] ARM: EXYNOS: Enable ARCH_SUPPORTS_BIG_ENDIAN explicitly

2016-06-08 Thread Matthew Leach
From: Ben Dooks Now the initial fixes have the big-endian code working on EXYNOS, make sure we explicitly mark our arch as being big endian capable. Signed-off-by: Ben Dooks --- arch/arm/mach-exynos/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-exynos/Kconfig b/arch

[RFC PATCH 08/15] ARM: samsung: fixup endian issues in cpu detection

2016-06-08 Thread Matthew Leach
From: Ben Dooks If the system is built for big endian, then the cpu identificaiton register will be read in the wrong order. Fix this by using readl_relaxed() on the register. Signed-off-by: Ben Dooks --- arch/arm/plat-samsung/cpu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[RFC PATCH 14/15] hwrng: exynos - fixup IO accesors

2016-06-08 Thread Matthew Leach
From: Ben Dooks The __raw IO functions are not endian safe, so use the readl_relaxed and writel_relaxed versions of these. Signed-off-by: Ben Dooks --- CC: Matt Mackall CC: Krzysztof Kozlowski CC: linux-cry...@vger.kernel.org CC: linux-arm-ker...@lists.infradead.org CC: linux-samsung-...@vger

[RFC PATCH 09/15] ARM: EXYNOS: fixups for big-endian operation

2016-06-08 Thread Matthew Leach
From: Ben Dooks If the kernel is built big endian, then using the __raw read and write IO accessors is not going to work as they end up writing big-endian data to little-endian IO registers. Fix this by using the readl and writel relaxed versions which ensure little endian IO. Signed-off-by: Ben

[RFC PATCH 05/15] tty: serial: samsung: fixup accessors for endian

2016-06-08 Thread Matthew Leach
Fix the serial access code to deal with kernels built for big endian operation. Signed-off-by: Matthew Leach --- CC: Greg Kroah-Hartman CC: Jiri Slaby CC: linux-ser...@vger.kernel.org CC: linux-kernel@vger.kernel.org --- drivers/tty/serial/samsung.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[RFC PATCH 04/15] irqchip: exynos_combiner: fixup reg access on be

2016-06-08 Thread Matthew Leach
Use the byte-order aware big endian accessors, allowing for kernels running under big-endian. Signed-off-by: Matthew Leach --- CC: Thomas Gleixner CC: Jason Cooper CC: Marc Zyngier CC: Kukjin Kim CC: Krzysztof Kozlowski CC: linux-kernel@vger.kernel.org CC: linux-arm-ker...@lists.infradead.or

Re: [RFC][PATCH 2/5] driver core: Functional dependencies tracking support

2016-06-08 Thread Mark Brown
On Wed, Jun 08, 2016 at 08:12:34PM +0200, Rafael J. Wysocki wrote: > On Wed, Jun 8, 2016 at 2:48 PM, Mark Brown wrote: > > On Thu, Jan 14, 2016 at 02:54:17AM +0100, Rafael J. Wysocki wrote: > >> + * A side effect of the link creation is re-ordering of dpm_list and the > >> + * devices_kset list b

[PATCH] mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB

2016-06-08 Thread Alexander Potapenko
For KASAN builds: - switch SLUB allocator to using stackdepot instead of storing the allocation/deallocation stacks in the objects; - define SLAB_RED_ZONE, SLAB_POISON, SLAB_STORE_USER to zero, effectively disabling these debug features, as they're redundant in the presence of KASAN; -

Re: [PATCH] nvmem: fix nvmem_cell_read() return type for !CONFIG_NVMEM

2016-06-08 Thread Srinivas Kandagatla
On 08/06/16 17:40, Brian Norris wrote: On Wed, Jun 08, 2016 at 09:26:46AM -0700, Brian Norris wrote: With CONFIG_NVMEM, nvmem_cell_read() returns void *. With !CONFIG_NVMEM it returns char *. Let's make that consistent. Also drop the incorrect/inconsistent comment about char * above the nvmem_

Re: [tip:x86/urgent] x86/quirks: Add early quirk to reset Apple AirPort card

2016-06-08 Thread Yinghai Lu
On Wed, Jun 8, 2016 at 7:23 AM, tip-bot for Lukas Wunner wrote: > Commit-ID: 625a99d9bfd038ea492f57308555bf4e607ce591 > Gitweb: http://git.kernel.org/tip/625a99d9bfd038ea492f57308555bf4e607ce591 > Author: Lukas Wunner > AuthorDate: Sun, 29 May 2016 01:35:28 +0200 ... > --- > arch/x86/ke

Re: [RFC][PATCH 0/6] ion: improved ABI

2016-06-08 Thread Laura Abbott
On 06/08/2016 08:15 AM, Brian Starkey wrote: Hi Laura, On Mon, Jun 06, 2016 at 11:23:27AM -0700, Laura Abbott wrote: The ABI for Ion's ioctl interface are a pain to work with. The heap IDs are a 32-bit non-discoverable namespace that form part of the ABI. There's no way to determine what ABI ve

Re: [PATCH v3 06/12] power: pwrseq: simple: Add support for regulator and generic property

2016-06-08 Thread Rob Herring
On Tue, Jun 07, 2016 at 11:29:02AM +0200, Krzysztof Kozlowski wrote: > On 06/03/2016 04:02 AM, Rob Herring wrote: > >> Optional properties: > >> - reset-gpios : contains a list of GPIO specifiers. The reset GPIOs are > >> asserted > >> @@ -16,6 +22,7 @@ Optional properties: > >>See ../clocks

Re: [PATCH v5 3/3] sched/cputime: Add steal time support to full dynticks CPU time accounting

2016-06-08 Thread Rik van Riel
On Wed, 2016-06-08 at 11:05 +0800, Wanpeng Li wrote: >  > @@ -681,12 +681,17 @@ static cputime_t vtime_delta(struct task_struct > *tsk) >  static cputime_t get_vtime_delta(struct task_struct *tsk) >  { >   unsigned long now = READ_ONCE(jiffies); > - unsigned long delta = now - tsk->vtime_sn

Re: [tpmdd-devel] [PATCH v4 3/4] tpm: Allow TPM chip drivers to override reported command durations

2016-06-08 Thread Jason Gunthorpe
On Tue, Jun 07, 2016 at 05:45:39PM -0700, Ed Swierk wrote: > + case 0x32041114: /* Atmel 3204 */ > + chip->vendor.timeout_a = TIS_SHORT_TIMEOUT * HZ / 1000; > + chip->vendor.timeout_b = TIS_LONG_TIMEOUT * HZ / 1000; > + chip->vendor.timeout_c = TIS_SHORT_TIME

Re: [PATCH 00/18] staging/android: clean up SW_SYNC

2016-06-08 Thread Gustavo Padovan
Hi Greg, Any comment on this? Gustavo 2016-05-31 Gustavo Padovan : > From: Gustavo Padovan > > Hi, > > The following patches do a clean up on the sw_sync inteface. It starts by > removing struct sync_timeline_ops, which was creating unecessary wrappers > in the code and the start to

Re: [PATCH 3/5] ARM: sun8i: dt: Add DT bindings documentation for Allwinner sun8i-emac

2016-06-08 Thread Rob Herring
On Mon, Jun 06, 2016 at 08:10:54PM +0200, Corentin LABBE wrote: > Le 06/06/2016 16:14, Rob Herring a écrit : > > On Fri, Jun 03, 2016 at 11:56:28AM +0200, LABBE Corentin wrote: > >> This patch adds documentation for Device-Tree bindings for the > >> Allwinner sun8i-emac driver. > >> > >> Signed-off

Re: [v1 PATCH 1/4] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-06-08 Thread Rob Herring
On Wed, Jun 08, 2016 at 09:38:33AM +0800, Chris Zhong wrote: > Hi Rob > > On 06/07/2016 09:46 PM, Rob Herring wrote: > >On Mon, Jun 6, 2016 at 7:33 PM, Chris Zhong wrote: > >>Hi Rob > >> > >> > >>On 06/06/2016 10:27 PM, Rob Herring wrote: > >>>On Fri, Jun 03, 2016 at 11:15:08PM +0800, Chris Zhong

Re: [PATCH v3 1/2] usb: ohci-at91: Forcibly suspend ports while USB suspend

2016-06-08 Thread Alan Stern
On Wed, 8 Jun 2016, Wenyou Yang wrote: > In order to the save power consumption, as a workaround, suspend > forcibly the USB PORTA/B/C via set the SUSPEND_A/B/C bits of OHCI > Interrupt Configuration Register in the SFRs while OHCI USB suspend. > > This suspend operation must be done before the U

Re: [PATCH v6 3/6] crypto: AF_ALG -- add asymmetric cipher interface

2016-06-08 Thread Mat Martineau
On Wed, 8 Jun 2016, Stephan Mueller wrote: Am Dienstag, 7. Juni 2016, 17:28:07 schrieb Mat Martineau: Hi Mat, + used = ctx->used; + + /* convert iovecs of output buffers into scatterlists */ + while (iov_iter_count(&msg->msg_iter)) { + /* make one iovec availa

[PATCH] docs: Move brcm,bcm21664-resetmgr.txt

2016-06-08 Thread Chris Brand
Sebastian pointed out that .../bindings/reset is usually used for peripheral reset controllers, whereas .../bindings/power/reset is used for Board/System reset controllers. Reported-by: Sebastian Reichel Signed-off-by: Chris Brand --- .../devicetree/bindings/{ => power}/reset/brcm,bcm21664-rese

Re: [PATCH] mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB

2016-06-08 Thread kbuild test robot
Hi, [auto build test WARNING on v4.7-rc2] [cannot apply to next-20160608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Alexander-Potapenko/mm-kasan-switch-SLUB-to-stackdepot-enable-memory

Re: [PATCH] Documentation/devicetree: document cavium-pip rx-delay/tx-delay properties

2016-06-08 Thread Rob Herring
On Sun, Jun 05, 2016 at 01:24:02AM +0300, Aaro Koskinen wrote: > Document cavium-pip rx-delay/tx-delay properties. Currently the board > specific values need to be hardcoded in the platform code, which we > want to avoid when moving to DT-only booting. > > Signed-off-by: Aaro Koskinen > --- > Do

Re: [RFC][PATCH 6/6] staging: android: ion: Introduce new ioctls for dynamic heaps

2016-06-08 Thread Laura Abbott
On 06/08/2016 08:34 AM, Brian Starkey wrote: Hi, I'm finding "usage_id" a bit confusing - there's not a very clear distinction between usage_id and heap ID. For instance, ION_IOC_USAGE_CNT claims to return the number of usage IDs, but seems to return the number of heaps (i.e. number heap IDs, s

Re: [PATCH] mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB

2016-06-08 Thread kbuild test robot
Hi, [auto build test ERROR on v4.7-rc2] [cannot apply to next-20160608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Alexander-Potapenko/mm-kasan-switch-SLUB-to-stackdepot-enable-memory

Re: [PATCH 0/2] qcom: add l2 cache perf events driver

2016-06-08 Thread Neil Leeder
On 6/8/2016 12:12 PM, Mark Rutland wrote: > On Wed, Jun 08, 2016 at 11:21:16AM -0400, Neil Leeder wrote: >> >> >> On 6/6/2016 05:04 AM, Mark Rutland wrote: >>> On Fri, Jun 03, 2016 at 05:03:30PM -0400, Neil Leeder wrote: This adds a new dynamic PMU to the Perf Events framework to program >>>

Re: [PATCH v2] thinkpad_acpi: Add support for HKEY version 0x200

2016-06-08 Thread Darren Hart
On Wed, Jun 08, 2016 at 10:54:25AM -0400, Lyude wrote: > From: Dennis Wassenberg > > Lenovo Thinkpad devices T460, T460s, T460p, T560, X260 use > HKEY version 0x200 without adaptive keyboard. > > HKEY version 0x200 has method MHKA with one parameter value. > Passing parameter value 1 will get ho

Re: [PATCH 04/10] x86, asm: define CC_SET() and CC_OUT() macros

2016-06-08 Thread H. Peter Anvin
On 06/07/16 22:09, Andy Lutomirski wrote: > On Tue, Jun 7, 2016 at 4:31 PM, H. Peter Anvin wrote: >> From: "H. Peter Anvin" >> >> The CC_SET() and CC_OUT() macros can be used together to take >> advantage of the new __GCC_ASM_FLAG_OUTPUTS__ feature in gcc 6+ while >> remaining backwards compatibl

Re: [RFC 1/1] ARM: print MHz in /proc/cpuinfo

2016-06-08 Thread Jon Mason
On Wed, Jun 08, 2016 at 09:34:06AM +0100, Sudeep Holla wrote: > > > On 07/06/16 22:08, Jon Mason wrote: > >Query the CPU core clock in the device tree to determine the core clock > >speed. > > How do guarantee that it's the current frequency of the CPU ? I am basing it on the assumption (perhap

Re: [PATCH 04/10] x86, asm: define CC_SET() and CC_OUT() macros

2016-06-08 Thread H. Peter Anvin
On 06/08/16 12:29, H. Peter Anvin wrote: > On 06/07/16 22:09, Andy Lutomirski wrote: >> On Tue, Jun 7, 2016 at 4:31 PM, H. Peter Anvin wrote: >>> From: "H. Peter Anvin" >>> >>> The CC_SET() and CC_OUT() macros can be used together to take >>> advantage of the new __GCC_ASM_FLAG_OUTPUTS__ feature

Re: [PATCH 04/10] x86, asm: define CC_SET() and CC_OUT() macros

2016-06-08 Thread Borislav Petkov
On Wed, Jun 08, 2016 at 12:34:05PM -0700, H. Peter Anvin wrote: > (I'm going to assume for now that you meant the whole patch series.) Same from me: Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.

[PATCH v2 01/10] x86, bitops: remove use of "sbb" to return CF

2016-06-08 Thread H. Peter Anvin
From: "H. Peter Anvin" Use SETC instead of SBB to return the value of CF from assembly. Using SETcc enables uniformity with other flags-returning pieces of assembly code. Signed-off-by: H. Peter Anvin Reviewed-by: Andy Lutomirski Reviewed-by: Borislav Petkov Acked-by: Peter Zijlstra (Intel)

[PATCH v2 04/10] x86, asm: define CC_SET() and CC_OUT() macros

2016-06-08 Thread H. Peter Anvin
From: "H. Peter Anvin" The CC_SET() and CC_OUT() macros can be used together to take advantage of the new __GCC_ASM_FLAG_OUTPUTS__ feature in gcc 6+ while remaining backwards compatible. CC_SET() generates a SET instruction on older compilers; CC_OUT() makes sure the output is received in the co

Re: [PATCH v4 2/7] binding: Make "mdio-parent-bus" property from mandatory to optional

2016-06-08 Thread Rob Herring
On Mon, Jun 06, 2016 at 06:11:35PM +0530, Pramod Kumar wrote: > Change "mdio-parent-bus" from mandatory section to optional > as it won't be required by integrated MDIO multiplexer > which has bus selection and mdio transaction generation logic, > integrated inside. > > Signed-off-by: Pramod Kumar

[PATCH v2 09/10] x86, asm, boot: Use CC_SET()/CC_OUT() in arch/x86/boot/boot.h

2016-06-08 Thread H. Peter Anvin
Remove open-coded uses of set instructions to use CC_SET()/CC_OUT() in arch/x86/boot/boot.h. Signed-off-by: H. Peter Anvin Reviewed-by: Andy Lutomirski Reviewed-by: Borislav Petkov Acked-by: Peter Zijlstra (Intel) --- arch/x86/boot/boot.h | 9 + 1 file changed, 5 insertions(+), 4 dele

[PATCH v2 10/10] x86, asm: Use CC_SET()/CC_OUT() and static_cpu_has() in archrandom.h

2016-06-08 Thread H. Peter Anvin
Use CC_SET()/CC_OUT() and static_cpu_has(). This produces code good enough to eliminate ad hoc use of alternatives in , greatly simplifying the code. While we are at it, make x86_init_rdrand() compile out completely if we don't need it. Signed-off-by: H. Peter Anvin v2: fix a conflict between

[PATCH v2 05/10] x86, asm: change GEN_*_RMWcc() to use CC_SET()/CC_OUT()

2016-06-08 Thread H. Peter Anvin
From: "H. Peter Anvin" Change the GEN_*_RMWcc() macros to use the CC_SET()/CC_OUT() macros defined in , and disable the use of asm goto if __GCC_ASM_FLAG_OUTPUTS__ is enabled. This allows gcc to receive the flags output directly in gcc 6+. Signed-off-by: H. Peter Anvin Reviewed-by: Andy Lutomi

Re: [PATCH v4 3/7] binding: mdio-mux: Add DT binding doc for Broadcom MDIO bus multiplexer

2016-06-08 Thread Rob Herring
On Tue, Jun 07, 2016 at 05:27:29PM +0530, Pramod Kumar wrote: > Hi Florian, > > > -Original Message- > > From: Florian Fainelli [mailto:f.faine...@gmail.com] > > Sent: 07 June 2016 00:06 > > To: Pramod Kumar; Rob Herring; Pawel Moll; Mark Rutland; Ian Campbell; > > Kumar Gala; Catalin Mari

[PATCH v2 08/10] x86, asm: Use CC_SET()/CC_OUT() in

2016-06-08 Thread H. Peter Anvin
From: "H. Peter Anvin" Remove open-coded uses of set instructions to use CC_SET()/CC_OUT() in . Signed-off-by: H. Peter Anvin Reviewed-by: Andy Lutomirski Reviewed-by: Borislav Petkov Acked-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/rwsem.h | 4 ++-- 1 file changed, 2 insertions(+)

[PATCH v2 03/10] x86, asm: change the GEN_*_RMWcc() macros to not quote the condition

2016-06-08 Thread H. Peter Anvin
From: "H. Peter Anvin" Change the lexical defintion of the GEN_*_RMWcc() macros to not take the condition code as a quoted string. This will help support changing them to use the new __GCC_ASM_FLAG_OUTPUTS__ feature in a subsequent patch. Signed-off-by: H. Peter Anvin Reviewed-by: Andy Lutomir

[PATCH v2 06/10] x86, asm: Use CC_SET()/CC_OUT() in

2016-06-08 Thread H. Peter Anvin
From: "H. Peter Anvin" Remove open-coded uses of set instructions to use CC_SET()/CC_OUT() in . Signed-off-by: H. Peter Anvin Reviewed-by: Andy Lutomirski Reviewed-by: Borislav Petkov Acked-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/bitops.h | 16 1 file changed, 8

Re: [PATCH] Fix NFS option parsing bit-rot.

2016-06-08 Thread Rob Landley
On 06/06/2016 06:49 PM, Trond Myklebust wrote: > On 6/6/16, 18:58, "Rob Landley" wrote: > >>From: Rob Landley >> >>The kernel has string parsing code for NFS mount options, but it seems >>to have bit-rotted over the years, so toybox mount needs the following >>patch to be able to mount nfs. With

[PATCH v2 07/10] x86, asm: Use CC_SET()/CC_OUT() in

2016-06-08 Thread H. Peter Anvin
From: "H. Peter Anvin" Remove open-coded uses of set instructions to use CC_SET()/CC_OUT() in . Signed-off-by: H. Peter Anvin Reviewed-by: Andy Lutomirski Reviewed-by: Borislav Petkov Acked-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/percpu.h | 9 + 1 file changed, 5 inserti

[PATCH v2 02/10] x86, asm: use bool for bitops and other assembly outputs

2016-06-08 Thread H. Peter Anvin
From: "H. Peter Anvin" The gcc people have confirmed that using "bool" when combined with inline assembly always is treated as a byte-sized operand that can be assumed to be 0 or 1, which is exactly what the SET instruction emits. Change the output types and intermediate variables of as many ope

Re: [PATCH v3 1/2] checkpatch: add Kconfig 'default n' test

2016-06-08 Thread Paul Bolle
On di, 2016-06-07 at 21:16 +0800, Yingjoe Chen wrote: > On Mon, 2016-06-06 at 20:10 +0100, Andy Whitcroft wrote: > > > Is it obvious that a Kconfig has "default n" ? > > > This seems to work, but is this useful? > > While sending patch for upstream, I saw maintainers request it to be > removed. So

Re: [PATCH v4 3/7] binding: mdio-mux: Add DT binding doc for Broadcom MDIO bus multiplexer

2016-06-08 Thread Rob Herring
On Mon, Jun 06, 2016 at 06:11:36PM +0530, Pramod Kumar wrote: > Add DT binding doc for Broadcom MDIO bus multiplexer driver. > > Reviewed-by: Andrew Lunn > Signed-off-by: Pramod Kumar > --- > .../bindings/net/brcm,mdio-mux-iproc.txt | 59 > ++ > 1 file changed, 59

[PATCH v2 00/10] x86: use gcc 6+ asm flag output feature

2016-06-08 Thread H. Peter Anvin
From: "H. Peter Anvin" gcc 6+ has the ability to let flags (actually, conditions, which are specific combinations of flags) to be used directly as asm() outputs. The syntax for that is "=@cc" where is the same set of letters that would be used in a j or set instruction (e.g. "=@ccz" to test the

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

2016-06-08 Thread Bryant G. Ly
From: Nicholas Bellinger If a command with a Simple task attribute is failed due to a Unit Attention, then a subsequent command with an Ordered task attribute will hang forever. The reason for this is that the Unit Attention status is checked for in target_setup_cmd_from_cdb, before the call to

Re: [PATCH] x86:pvclock: add missing barriers

2016-06-08 Thread Borislav Petkov
On Wed, Jun 08, 2016 at 09:11:39PM +0300, Roman Kagan wrote: > Gradual removal of excessive barriers in pvclock reading functions > (commits 502dfeff239e8313bfbe906ca0a1a6827ac8481b, > a3eb97bd80134ba07864ca00747466c02118aca1) ended up removing too much: > although rdtsc is now orderd WRT other loa

[PATCH] x86:pvclock: add missing barriers

2016-06-08 Thread Roman Kagan
Gradual removal of excessive barriers in pvclock reading functions (commits 502dfeff239e8313bfbe906ca0a1a6827ac8481b, a3eb97bd80134ba07864ca00747466c02118aca1) ended up removing too much: although rdtsc is now orderd WRT other loads, there's no protection against the compiler reordering the loads o

[tip:x86/asm] x86, bitops: remove use of "sbb" to return CF

2016-06-08 Thread tip-bot for H. Peter Anvin
Commit-ID: 2823d4da5d8a0c222747b24eceb65f5b30717d02 Gitweb: http://git.kernel.org/tip/2823d4da5d8a0c222747b24eceb65f5b30717d02 Author: H. Peter Anvin AuthorDate: Wed, 8 Jun 2016 12:38:37 -0700 Committer: H. Peter Anvin CommitDate: Wed, 8 Jun 2016 12:41:20 -0700 x86, bitops: remove use

[tip:x86/asm] x86, asm: use bool for bitops and other assembly outputs

2016-06-08 Thread tip-bot for H. Peter Anvin
Commit-ID: 117780eef7740729e803bdcc0d5f2f48137ea8e3 Gitweb: http://git.kernel.org/tip/117780eef7740729e803bdcc0d5f2f48137ea8e3 Author: H. Peter Anvin AuthorDate: Wed, 8 Jun 2016 12:38:38 -0700 Committer: H. Peter Anvin CommitDate: Wed, 8 Jun 2016 12:41:20 -0700 x86, asm: use bool for b

[tip:x86/asm] x86, asm: change the GEN_*_RMWcc() macros to not quote the condition

2016-06-08 Thread tip-bot for H. Peter Anvin
Commit-ID: 18fe58229d80c7f4f138a07e84ba608e1ebd232b Gitweb: http://git.kernel.org/tip/18fe58229d80c7f4f138a07e84ba608e1ebd232b Author: H. Peter Anvin AuthorDate: Wed, 8 Jun 2016 12:38:39 -0700 Committer: H. Peter Anvin CommitDate: Wed, 8 Jun 2016 12:41:20 -0700 x86, asm: change the GEN

[tip:x86/asm] x86, asm: define CC_SET() and CC_OUT() macros

2016-06-08 Thread tip-bot for H. Peter Anvin
Commit-ID: ff3554b409b82d349f71e9d7082648b7b0a1a5bb Gitweb: http://git.kernel.org/tip/ff3554b409b82d349f71e9d7082648b7b0a1a5bb Author: H. Peter Anvin AuthorDate: Wed, 8 Jun 2016 12:38:40 -0700 Committer: H. Peter Anvin CommitDate: Wed, 8 Jun 2016 12:41:20 -0700 x86, asm: define CC_SET(

Re: [PATCH] arm64: dts: apm: Use lowercase consistently for hex constants

2016-06-08 Thread Rob Herring
On Mon, Jun 06, 2016 at 03:17:56PM -0500, Bjorn Helgaas wrote: > The convention in these files is to use lowercase for "0x" prefixes and for > the hex constants themselves, but a few changes didn't follow that > convention, which makes the file annoying to read. > > Use lowercase consistently for

[tip:x86/asm] x86, asm: change GEN_*_RMWcc() to use CC_SET()/CC_OUT()

2016-06-08 Thread tip-bot for H. Peter Anvin
Commit-ID: ba741e356c49bfce0adcfa851080666870867f6b Gitweb: http://git.kernel.org/tip/ba741e356c49bfce0adcfa851080666870867f6b Author: H. Peter Anvin AuthorDate: Wed, 8 Jun 2016 12:38:41 -0700 Committer: H. Peter Anvin CommitDate: Wed, 8 Jun 2016 12:41:20 -0700 x86, asm: change GEN_*_R

[tip:x86/asm] x86, asm: Use CC_SET()/CC_OUT() in

2016-06-08 Thread tip-bot for H. Peter Anvin
Commit-ID: 64be6d36f5674f3424d1901772f76e21874f4954 Gitweb: http://git.kernel.org/tip/64be6d36f5674f3424d1901772f76e21874f4954 Author: H. Peter Anvin AuthorDate: Wed, 8 Jun 2016 12:38:43 -0700 Committer: H. Peter Anvin CommitDate: Wed, 8 Jun 2016 12:41:20 -0700 x86, asm: Use CC_SET()/C

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