Re: [PATCH 08/17] ARM: dts: dra7: Add dt node for the sycon pcie

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 05:20 PM, Roger Quadros wrote: On Tue, 23 Jun 2015 17:28:53 +0530 Kishon Vijay Abraham I kis...@ti.com wrote: Add new device tree node for the control module register space where PCIe registers are present. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com

Re: Crypto Update for 4.2

2015-06-24 Thread Herbert Xu
On Tue, Jun 23, 2015 at 07:11:19PM -0700, Linus Torvalds wrote: On Mon, Jun 22, 2015 at 1:44 AM, Herbert Xu herb...@gondor.apana.org.au wrote: Here is the crypto update for 4.2: Hmm. I noticed a new annoyance: I get this at bootup: [ +0.001504] alg: No test for __gcm-aes-aesni

Re: [PATCH 11/17] ARM: dts: dra7: Use ti,dra7x-usb2-phy2 compatible string for USB2 PHY2

2015-06-24 Thread Roger Quadros
On Wed, 24 Jun 2015 18:40:31 +0530 Kishon Vijay Abraham I kis...@ti.com wrote: Hi, On Wednesday 24 June 2015 05:37 PM, Roger Quadros wrote: On Tue, 23 Jun 2015 17:28:56 +0530 Kishon Vijay Abraham I kis...@ti.com wrote: The USB2 PHY2 has a different register map compared to USB2 PHY1

Re: [PATCH] mfd: fix dependency warning for CHROME_PLATFORMS on !X86, !ARM

2015-06-24 Thread Heiko Stübner
Am Mittwoch, 24. Juni 2015, 15:17:50 schrieb Lee Jones: On Sun, 21 Jun 2015, Javier Martinez Canillas wrote: Hello Paul, On 06/21/2015 02:01 AM, Paul Gortmaker wrote: In commit 062476f24aa7cf714169342cc50626fd9bbb93da (mfd: cros_ec: Move protocol helpers out of the MFD driver) there

Re: [PATCH V2 0/5] drivers/rtc/rtc-ds1307.c: Basic cleanups and support for wakeupirq

2015-06-24 Thread Felipe Balbi
Hi, On Tue, Jun 23, 2015 at 11:15:09AM -0500, Nishanth Menon wrote: Hi, Here is the revamp of the patch posted eariler to support wakeupirq. This series does a few cleanups as well prior to introducing the generic apis required to support the wakeirq mechanism used on certain TI SoCs.

[4.2-rc1][PATCH] gpio: omap: add missed spin_unlock_irqrestore in omap_gpio_irq_type

2015-06-24 Thread Grygorii Strashko
From: Grygorii Strashko grygorii.stras...@linaro.org Add missed spin_unlock_irqrestore in omap_gpio_irq_type when omap_set_gpio_triggering() is failed. It fixes static checker warning: drivers/gpio/gpio-omap.c:523 omap_gpio_irq_type() warn: inconsistent returns

Re: [PATCH 05/17] phy: omap-usb2: Add a new compatible string for USB2 PHY2

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 04:33 PM, Roger Quadros wrote: On Tue, 23 Jun 2015 17:28:50 +0530 Kishon Vijay Abraham I kis...@ti.com wrote: The USB2 PHY2 has a different register map compared to USB2 PHY1 to power on/off the PHY. In order to handle it, add a new compatible string.

Directories in Linux are accessible even if you don't have permissions to open their parent directory.

2015-06-24 Thread 積丹尼 Dan Jacobson
http://stackoverflow.com/questions/4864875/folder-for-temporary-files-creation-in-android-why-does-data-local-tmp-doesnt says Directories in Linux are accessible even if you don't have permissions to open their parent directory. Could someone with enough Stackoverflow reputation points to enable

[PATCH v2 8/9] dt: cpufreq: st: Provide bindings for ST's CPUFreq implementation

2015-06-24 Thread Lee Jones
Cc: devicet...@vger.kernel.org Signed-off-by: Lee Jones lee.jo...@linaro.org --- .../devicetree/bindings/cpufreq/cpufreq-st.txt | 72 ++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-st.txt diff --git

Re: [RFC][PATCH 12/13] stop_machine: Remove lglock

2015-06-24 Thread Paul E. McKenney
On Wed, Jun 24, 2015 at 03:43:37PM +0200, Ingo Molnar wrote: * Paul E. McKenney paul...@linux.vnet.ibm.com wrote: On Wed, Jun 24, 2015 at 10:42:48AM +0200, Ingo Molnar wrote: * Peter Zijlstra pet...@infradead.org wrote: On Tue, Jun 23, 2015 at 11:26:26AM -0700, Paul E.

Re: [PATCH RFC] vhost: add ioctl to query nregions upper limit

2015-06-24 Thread Igor Mammedov
On Wed, 24 Jun 2015 15:49:27 +0200 Michael S. Tsirkin m...@redhat.com wrote: Userspace currently simply tries to give vhost as many regions as it happens to have, but you only have the mem table when you have initialized a large part of VM, so graceful failure is very hard to support. The

Re: [RFC][PATCH 09/13] hotplug: Replace hotplug lock with percpu-rwsem

2015-06-24 Thread Peter Zijlstra
On Wed, Jun 24, 2015 at 03:50:49PM +0200, Oleg Nesterov wrote: On 06/23, Peter Zijlstra wrote: If in one callchain we do: get_online_cpus(); lock(A); in another we do: lock(A); get_online_cpus(); lockdep will complain about the inverted lock order, however

Re: [PATCH] mfd: fix dependency warning for CHROME_PLATFORMS on !X86, !ARM

2015-06-24 Thread Lee Jones
On Sun, 21 Jun 2015, Javier Martinez Canillas wrote: Hello Paul, On 06/21/2015 02:01 AM, Paul Gortmaker wrote: In commit 062476f24aa7cf714169342cc50626fd9bbb93da (mfd: cros_ec: Move protocol helpers out of the MFD driver) there was a select added on CHROME_PLATFORMS, which leads to the

Re: [PATCH RFC] vhost: add ioctl to query nregions upper limit

2015-06-24 Thread Michael S. Tsirkin
On Wed, Jun 24, 2015 at 04:07:27PM +0200, Igor Mammedov wrote: On Wed, 24 Jun 2015 15:49:27 +0200 Michael S. Tsirkin m...@redhat.com wrote: Userspace currently simply tries to give vhost as many regions as it happens to have, but you only have the mem table when you have initialized a

Re: [PATCH] trace-cmd: add a kernel memory leak detector

2015-06-24 Thread Steven Rostedt
On Tue, 23 Jun 2015 16:06:39 -0700 Josef Bacik jba...@fb.com wrote: I needed to track down a very slow memory leak so I adapted the same approach trace-cmd profile uses to track kernel memory allocations. You run this with trace-cmd kmemleak and then you can kill -SIGUSR2 trace-cmd pid

Re: [PATCH] SCSI-OSD: Delete an unnecessary check before the function call put_disk

2015-06-24 Thread Johannes Thumshirn
On Wed, Jun 24, 2015 at 04:16:34PM +0200, SF Markus Elfring wrote: From: Markus Elfring elfr...@users.sourceforge.net Date: Wed, 24 Jun 2015 16:06:21 +0200 The put_disk() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed.

Re: [PATCH v2 7/9] ARM: multi_v7_defconfig: Enable support for PWM Regulators

2015-06-24 Thread Javier Martinez Canillas
Hello Lee, On Wed, Jun 24, 2015 at 3:59 PM, Lee Jones lee.jo...@linaro.org wrote: Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig

Re: [RFC][PATCH 12/13] stop_machine: Remove lglock

2015-06-24 Thread Paul E. McKenney
On Wed, Jun 24, 2015 at 09:35:03AM +0200, Peter Zijlstra wrote: On Tue, Jun 23, 2015 at 11:26:26AM -0700, Paul E. McKenney wrote: I really think you're making that expedited nonsense far too accessible. This has nothing to do with accessibility and everything to do with robustness. And

Re: [PATCH RFC] vhost: add ioctl to query nregions upper limit

2015-06-24 Thread Igor Mammedov
On Wed, 24 Jun 2015 16:17:46 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 24, 2015 at 04:07:27PM +0200, Igor Mammedov wrote: On Wed, 24 Jun 2015 15:49:27 +0200 Michael S. Tsirkin m...@redhat.com wrote: Userspace currently simply tries to give vhost as many regions as

Re: [PATCH 11/17] ARM: dts: dra7: Use ti,dra7x-usb2-phy2 compatible string for USB2 PHY2

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 05:37 PM, Roger Quadros wrote: On Tue, 23 Jun 2015 17:28:56 +0530 Kishon Vijay Abraham I kis...@ti.com wrote: The USB2 PHY2 has a different register map compared to USB2 PHY1 to power on/off the PHY. In order to handle it, use the new compatible string

[PATCH] keys: Delete an unnecessary check before the function call key_put

2015-06-24 Thread SF Markus Elfring
From: Markus Elfring elfr...@users.sourceforge.net Date: Wed, 24 Jun 2015 15:16:35 +0200 The key_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by:

Re: Use of pinctrl-single for external device over I2C

2015-06-24 Thread Tony Lindgren
* Vaibhav Hiremath vaibhav.hirem...@linaro.org [150624 05:06]: On Tuesday 23 June 2015 04:25 PM, Vaibhav Hiremath wrote: /* * REVISIT: Reads and writes could eventually use regmap or something * generic. But at least on omaps, some mux registers are performance * critical as they may

Re: [PATCH 1/1] usb: usleep_range is preferred over udelay where wakeup is flexible

2015-06-24 Thread Alan Stern
On Wed, 24 Jun 2015, Sunny Kumar wrote: According to Documentation/timers/timers-howto.txt udelay() is only called once from a place where sleeping is allowed. We can replace it with a call to usleep_range() with a reasonable upper limit. Signed-off-by: Sunny Kumar

Re: [PATCH 03/17] phy: ti-pipe3: use *syscon* framework to set PCS value of the PHY

2015-06-24 Thread Roger Quadros
On Wed, 24 Jun 2015 18:46:08 +0530 Kishon Vijay Abraham I kis...@ti.com wrote: Hi, On Wednesday 24 June 2015 04:04 PM, Roger Quadros wrote: On Tue, 23 Jun 2015 17:28:48 +0530 Kishon Vijay Abraham I kis...@ti.com wrote: Deprecate using phy-omap-control driver to set PCS value of the

Re: [RFC][PATCH 12/13] stop_machine: Remove lglock

2015-06-24 Thread Paul E. McKenney
On Wed, Jun 24, 2015 at 11:31:02AM +0200, Peter Zijlstra wrote: On Wed, Jun 24, 2015 at 10:32:57AM +0200, Peter Zijlstra wrote: + s = atomic_long_read(rsp-expedited_done); + if (ULONG_CMP_GE((ulong)s, (ulong)snap)) { + /* ensure test happens before caller kfree */ +

[PATCH RFC] vhost: add ioctl to query nregions upper limit

2015-06-24 Thread Michael S. Tsirkin
Userspace currently simply tries to give vhost as many regions as it happens to have, but you only have the mem table when you have initialized a large part of VM, so graceful failure is very hard to support. The result is that userspace tends to fail catastrophically. Instead, add a new ioctl

[PATCH v2 6/9] ARM: STi: STiH407: Move PWM nodes STiH407 = STiH407-family

2015-06-24 Thread Lee Jones
This also incorporates the STiH410. Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/boot/dts/stih407-family.dtsi | 29 + arch/arm/boot/dts/stih407.dtsi| 28 2 files changed, 29 insertions(+), 28 deletions(-) diff --git

[PATCH v2 4/9] ARM: STi: STiH407: Provide CPU with a means to look-up Major number

2015-06-24 Thread Lee Jones
This is used for CPU Frequency Scaling. Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/boot/dts/stih407-family.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index f48767e..838f1c3 100644 ---

Re: [PATCH 33/36] IB/odp/hmm: add core infiniband structure and helper for ODP with HMM.

2015-06-24 Thread Haggai Eran
On 21/05/2015 23:23, jgli...@redhat.com wrote: +int ib_umem_odp_get(struct ib_ucontext *context, struct ib_umem *umem) +{ + struct mm_struct *mm = get_task_mm(current); + struct ib_device *ib_device = context-device; + struct ib_mirror *ib_mirror; + struct pid *our_pid; +

[PATCH v2 5/9] ARM: STi: Register CPUFreq device

2015-06-24 Thread Lee Jones
DT will not allow pseudo-devices. Only devices which represent real hardware are permitted. So we have to register the CPUFreq driver from platform code instead. Rather than create a new file, we're bundling this in with the SMP functionality and renaming it from 'smp' to the more generic

[PATCH] PM / hibernate: re-enable nonboot cpus on disable_nonboot_cpus() failure

2015-06-24 Thread Vitaly Kuznetsov
When disable_nonboot_cpus() fails on some cpu it doesn't bring back all cpus it managed to offline, a consequent call to enable_nonboot_cpus() is expected. In hibernation_platform_enter() we don't call enable_nonboot_cpus() on error so cpus stay offlined. create_image() and resume_target_kernel()

Re: [PATCH v4 2/2] mfd: flexcom: add a driver for Atmel Flexible Serial Communication Unit

2015-06-24 Thread Lee Jones
On Mon, 22 Jun 2015, Cyrille Pitchen wrote: This driver supports the new Atmel Flexcom. The Flexcom is a wrapper which integrates one SPI controller, one I2C controller and one USART. Only one function can be enabled at a time. This driver selects the function once for all, when the Flexcom

Re: [PATCH 1/1] usb: usleep_range is preferred over udelay where wakeup is flexible

2015-06-24 Thread Alan Stern
Please don't top-post. On Wed, 24 Jun 2015, Sunny Kumar wrote: Ok so what about putting lower limit to 125 and increase upper limit 200 Or even just 150. That would be fine. Alan Stern -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

[RFC PATCH 0/3] restartable sequences: fast user-space percpu critical sections

2015-06-24 Thread Paul Turner
This is a fairly small series demonstrating a feature we've found to be quite powerful in practice, restartable sequences. Most simply: these sequences comprise small snippets of user-code that are guaranteed to be (effectively) executed serially, with support for restart (or other handling) in

Re: [PATCH-v3 2/3] mfd: 88pm800: Allow configuration of interrupt clear method

2015-06-24 Thread Krzysztof Kozlowski
2015-06-24 18:21 GMT+09:00 Vaibhav Hiremath vaibhav.hirem...@linaro.org: As per the spec, bit 1 (INT_CLEAR_MODE) of reg addr 0xe (page 0) controls the method of clearing interrupt status of 88pm800 family of devices; 0: clear on read 1: clear on write This patch allows to configure

[RFC][PATCH] sched: might_sleep(): do rate-limiting before sanity checks

2015-06-24 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com I have a dumb microbenchmark. It loops doing single-byte writes to a file. I have a few other patches to work on some things in the filesystem write path. But after those are applied, the 4th-hottest kernel function is ___might_sleep() which seems

Re: [PATCH v7 00/14] crypto: add a new driver for Marvell's CESA

2015-06-24 Thread Paul Gortmaker
[Re: [PATCH v7 00/14] crypto: add a new driver for Marvell's CESA] On 22/06/2015 (Mon 15:59) Herbert Xu wrote: On Mon, Jun 22, 2015 at 09:23:36AM +0200, Boris Brezillon wrote: Hi Herbert, On Sun, 21 Jun 2015 16:27:17 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Sun, Jun

[PATCH 0/3] mfd: ChromeOS EC Kconfig dependency cleanup

2015-06-24 Thread Javier Martinez Canillas
Hello, This is a trivial series that do some changes to the dependency for the ChromeOS EC drivers Kconfig symbols. The patches are on top of Paul's patch mfd: fix dependency warning for CHROME_PLATFORMS on !X86, !ARM: https://lkml.org/lkml/2015/6/20/219. Paul fixed a warning about unmet

[PATCH 3/3] mfd: Remove MFD_CROS_EC_SPI depends on OF

2015-06-24 Thread Javier Martinez Canillas
The ChromeOS EC SPI transport driver has a dependency on OF because it uses some OF helpers from the linux/of.h header. But there isn't a need for an explicit dependency since the header has stub functions if CONFIG_OF is not defined. Also, MFD_CROS_EC_SPI already depends on MFD_CROS_EC which in

[PATCH 1/3] platform/chrome: Don't make CHROME_PLATFORMS depends on X86 || ARM

2015-06-24 Thread Javier Martinez Canillas
The Chrome platform support depends on X86 || ARM because there are only Chromebooks using those architectures. But only some drivers depend on a given architecture, and the ones that do already have a dependency on their specific Kconfig symbol entries. An option is to also make CHROME_PLATFORMS

[PATCH 2/3] mfd: Remove MFD_CROS_EC depends on X86 || ARM

2015-06-24 Thread Javier Martinez Canillas
A dependency on X86 || ARM for MFD_CROS_EC was added to fix the warning: (MFD_CROS_EC) selects CHROME_PLATFORMS which has unmet direct dependencies (X86 || ARM) This happened because CHROME_PLATFORMS had a dependency on X86 || ARM but that dependency was removed since there isn't a reason why

[PATCH v8 8/9] video: fbdev: s3fb: use arch_phys_wc_add() and pci_iomap_wc()

2015-06-24 Thread Luis R. Rodriguez
From: Luis R. Rodriguez mcg...@suse.com This driver uses the same area for MTRR as for the ioremap(). Convert the driver from using the x86 specific MTRR code to the architecture agnostic arch_phys_wc_add(). arch_phys_wc_add() will avoid MTRR if write-combining is available, in order to take

Re: Stop SSD from waiting for Spinning up disk...

2015-06-24 Thread Greg Kroah-Hartman
On Thu, Jun 25, 2015 at 07:55:45AM +0800, Jeff Chua wrote: On Thu, Jun 25, 2015 at 12:28 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Thu, Jun 25, 2015 at 12:22:47AM +0800, Jeff Chua wrote: Both sda and sdb have the same SSD model. That's a bug in your USB bridge chip,

Re: kdbus: to merge or not to merge?

2015-06-24 Thread Steven Rostedt
On Tue, Jun 23, 2015 at 08:07:41AM -0700, Andy Lutomirski wrote: FWIW, once there are real distros with kdbus userspace enabled, reviewing kdbus gets more complicated -- we'll be in the position where merging kdbus in a different form from that which was proposed will break existing users.

Re: [RFC PATCH 0/3] restartable sequences: fast user-space percpu critical sections

2015-06-24 Thread Andy Lutomirski
On Wed, Jun 24, 2015 at 3:26 PM, Paul Turner p...@google.com wrote: This is a fairly small series demonstrating a feature we've found to be quite powerful in practice, restartable sequences. On an extremely short glance, I'm starting to think that the right approach, at least for x86, is to

Re: [PATCH v7 5/9] PCI: Add pci_iomap_wc() variants

2015-06-24 Thread Luis R. Rodriguez
On Thu, Jun 25, 2015 at 09:38:01AM +1000, Benjamin Herrenschmidt wrote: On Wed, 2015-06-24 at 15:29 -0700, Luis R. Rodriguez wrote: Nope but at least what made me squint at this being a possible feature was that in practice when reviewing all of the kernels pending device drivers using

Re: [PATCH] arm: Update memblock limit after mapping lowmem

2015-06-24 Thread Laura Abbott
On 06/11/2015 06:07 AM, Mark Rutland wrote: On Thu, Jun 04, 2015 at 08:15:49PM +0100, Laura Abbott wrote: The memblock limit is currently used in find_limits to find the bounds for ZONE_NORMAL. The memblock limit may need to be rounded down a PMD size to ensure allocations are fully mapped

[RFC PATCH 08/10] mm/compaction: remove compaction deferring

2015-06-24 Thread Joonsoo Kim
Now, we have a way to determine compaction depleted state and compaction activity will be limited according this state and depletion depth so compaction overhead would be well controlled without compaction deferring. So, this patch remove compaction deferring completely. Various functions are

[RFC PATCH 04/10] mm/compaction: clean-up restarting condition check

2015-06-24 Thread Joonsoo Kim
Rename check function and move one outer condition check to this function. There is no functional change. Signed-off-by: Joonsoo Kim iamjoonsoo@lge.com --- mm/compaction.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mm/compaction.c b/mm/compaction.c index

[RFC PATCH 01/10] mm/compaction: update skip-bit if whole pageblock is really scanned

2015-06-24 Thread Joonsoo Kim
Scanning pageblock is stopped at the middle of pageblock if enough pages are isolated. In the next run, it begins again at this position and if it find that there is no isolation candidate from the middle of pageblock to end of pageblock, it updates skip-bit. In this case, scanner doesn't start at

[RFC PATCH 02/10] mm/compaction: skip useless pfn for scanner's cached pfn

2015-06-24 Thread Joonsoo Kim
Scanner's cached pfn is used to determine the start position of scanner at next compaction run. Current cached pfn points the skipped pageblock so we uselessly checks whether pageblock is valid for compaction and skip-bit is set or not. If we set scanner's cached pfn to next pfn of skipped

[RFC PATCH 03/10] mm/compaction: always update cached pfn

2015-06-24 Thread Joonsoo Kim
Signed-off-by: Joonsoo Kim iamjoonsoo@lge.com --- mm/compaction.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/mm/compaction.c b/mm/compaction.c index 9c5d43c..2d8e211 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -510,6 +510,10 @@ isolate_fail: if (locked)

[RFC PATCH 00/10] redesign compaction algorithm

2015-06-24 Thread Joonsoo Kim
Recently, I got a report that android get slow due to order-2 page allocation. With some investigation, I found that compaction usually fails and many pages are reclaimed to make order-2 freepage. I can't analyze detailed reason that causes compaction fail because I don't have reproducible

RE: [PATCH v2 05/28] ACPICA: Hardware: Enable firmware waking vector for both 32-bit and 64-bit FACS.

2015-06-24 Thread Zheng, Lv
Hi, Rafael From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] Sent: Thursday, June 25, 2015 7:57 AM On Wednesday, June 24, 2015 11:02:54 AM Lv Zheng wrote: ACPICA commit 368eb60778b27b6ae94d3658ddc902ca1342a963 ACPICA commit 70f62a80d65515e1285fdeeb50d94ee6f07df4bd The following

[RFC PATCH 10/10] mm/compaction: new threshold for compaction depleted zone

2015-06-24 Thread Joonsoo Kim
Now, compaction algorithm become powerful. Migration scanner traverses whole zone range. So, old threshold for depleted zone which is designed to imitate compaction deferring approach isn't appropriate for current compaction algorithm. If we adhere to current threshold, 1, we can't avoid excessive

[RFC PATCH 07/10] mm/compaction: limit compaction activity in compaction depleted state

2015-06-24 Thread Joonsoo Kim
Compaction deferring was introduced to reduce overhead of compaction when compaction attempt is expected to fail. But, it has a problem. Whole zone is rescanned after some compaction attempts are deferred and this rescan overhead is quite big. And, it imposes large latency to one random requestor

[RFC PATCH 06/10] mm/compaction: introduce compaction depleted state on zone

2015-06-24 Thread Joonsoo Kim
Further compaction attempt is deferred when some of compaction attempts already fails. But, after some number of trial are skipped, compaction restarts work to check whether compaction is now possible or not. It scans whole range of zone to determine this possibility and if compaction possibility

Re: [Xen-devel] [PATCH v7 5/9] PCI: Add pci_iomap_wc() variants

2015-06-24 Thread Benjamin Herrenschmidt
On Wed, 2015-06-24 at 17:58 -0700, Luis R. Rodriguez wrote: On Wed, Jun 24, 2015 at 5:52 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Thu, 2015-06-25 at 02:08 +0200, Luis R. Rodriguez wrote: OK thanks I'll proceed with these patches then. As for user mappings,

[PATCH v8 2/9] video: fbdev: i740fb: use arch_phys_wc_add() and pci_ioremap_wc_bar()

2015-06-24 Thread Luis R. Rodriguez
From: Luis R. Rodriguez mcg...@suse.com Convert the driver from using the x86 specific MTRR code to the architecture agnostic arch_phys_wc_add(). arch_phys_wc_add() will avoid MTRR if write-combining is available, in order to take advantage of that also ensure the ioremap'd area is requested as

[PATCH v8 4/9] video: fbdev: gxt4500: use pci_ioremap_wc_bar() for framebuffer

2015-06-24 Thread Luis R. Rodriguez
From: Luis R. Rodriguez mcg...@suse.com The driver doesn't use mtrr_add() or arch_phys_wc_add() but since we know the framebuffer is isolated already on an ioremap() we can take advantage of write combining for performance where possible. In this case there are a few motivations for this: a)

Re: [PATCH v4 4/9] staging:lustre: merge socklnd_lib-linux.h into socklnd.h

2015-06-24 Thread Guenter Roeck
On Wed, Jun 24, 2015 at 02:37:51PM +0200, Geert Uytterhoeven wrote: Hi James, On Thu, Jun 11, 2015 at 9:18 PM, James Simmons jsimm...@infradead.org wrote: From: John L. Hammond john.hamm...@intel.com Originally socklnd_lib-linux.h contained linux specific wrappers and defines but since

[PATCH v5 3/3] video: fbdev: atyfb: use arch_phys_wc_add() and ioremap_wc()

2015-06-24 Thread Luis R. Rodriguez
From: Luis R. Rodriguez mcg...@suse.com This driver uses strong UC for the MMIO region, and ioremap_wc() for the framebuffer to whitelist for the WC MTRR what can be changed to WC. On PAT systems we don't need the MTRR call so just use arch_phys_wc_add() there, this lets us remove all those

[PATCH v8 9/9] video: fbdev: vt8623fb: use arch_phys_wc_add() and pci_iomap_wc()

2015-06-24 Thread Luis R. Rodriguez
From: Luis R. Rodriguez mcg...@suse.com This driver uses the same area for MTRR as for the ioremap(). Convert the driver from using the x86 specific MTRR code to the architecture agnostic arch_phys_wc_add(). arch_phys_wc_add() will avoid MTRR if write-combining is available, in order to take

RE: [v4 08/16] KVM: kvm-vfio: User API for IRQ forwarding

2015-06-24 Thread Wu, Feng
-Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Thursday, June 25, 2015 3:49 AM To: Eric Auger Cc: Joerg Roedel; Avi Kivity; Wu, Feng; k...@vger.kernel.org; linux-kernel@vger.kernel.org; pbonz...@redhat.com; mtosa...@redhat.com Subject: Re: [v4

Re: [PATCH 6/6] mtd: docg3: Don't do ERR_PTR(0)

2015-06-24 Thread Brian Norris
Hi Robert, On Tue, Jun 23, 2015 at 10:41:33PM +0200, Robert Jarzmik wrote: Richard Weinberger rich...@nod.at writes: Am 17.06.2015 um 20:41 schrieb Brian Norris: Have you tested this patch? nah, I don't own such a device. But I do. If you resend a patch, please Cc me. You can even ask

Re: [RFC PATCH 0/3] restartable sequences: fast user-space percpu critical sections

2015-06-24 Thread Paul Turner
On Wed, Jun 24, 2015 at 5:07 PM, Andy Lutomirski l...@amacapital.net wrote: On Wed, Jun 24, 2015 at 3:26 PM, Paul Turner p...@google.com wrote: This is a fairly small series demonstrating a feature we've found to be quite powerful in practice, restartable sequences. On an extremely short

Re: [PATCH v7 5/9] PCI: Add pci_iomap_wc() variants

2015-06-24 Thread Benjamin Herrenschmidt
On Wed, 2015-06-24 at 15:29 -0700, Luis R. Rodriguez wrote: Nope but at least what made me squint at this being a possible feature was that in practice when reviewing all of the kernels pending device drivers using MTRR (potential write-combine candidates) I encountered a slew of them which

Re: [PATCH-v3 1/3] mfd: 88pm800: Add device tree support

2015-06-24 Thread Krzysztof Kozlowski
2015-06-24 18:21 GMT+09:00 Vaibhav Hiremath vaibhav.hirem...@linaro.org: Add DT support to the 88pm800 driver, along with compatible field for it's sub-devices (rtc, onkey and regulator) Signed-off-by: Chao Xie chao@marvell.com Signed-off-by: Vaibhav Hiremath vaibhav.hirem...@linaro.org

Re: [PATCH v5 4/7] extcon: arizona: Convert to gpiod

2015-06-24 Thread Chanwoo Choi
Hi, Applied it. Thanks, Chanwoo Choi On 06/20/2015 01:23 AM, Charles Keepax wrote: Convert to using the newer gpiod interface for the micd_pol_gpio. Although we still carry support for the old gpio interface from pdata. Signed-off-by: Charles Keepax ckee...@opensource.wolfsonmicro.com ---

Re: [PATCH v7 00/16] libnvdimm: non-volatile memory devices

2015-06-24 Thread Toshi Kani
On Wed, 2015-06-17 at 19:13 -0400, Dan Williams wrote: A new sub-system in support of non-volatile memory storage devices. Stephen, please add libnvdimm-for-next to -next: git://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm libnvdimm-for-next Changes since v6 [1]: 1/ Deferred

Re: changing format/size of data in TRACE_EVENT(extlog_mem_event)

2015-06-24 Thread Steven Rostedt
On Wed, 24 Jun 2015 14:56:49 -0700 Luck, Tony tony.l...@intel.com wrote: So the question is - how can we update the trace event to include these new wider fields with the minimum pain to applications that look at it? I don't know if there are any other consumers besides rasdaemon at the

Re: [PATCH] ARM64: smp: Silence suspicious RCU usage with ipi tracepoints

2015-06-24 Thread Steven Rostedt
On Wed, 24 Jun 2015 23:29:30 +0200 Peter Zijlstra pet...@infradead.org wrote: On Wed, Jun 24, 2015 at 01:14:18PM -0700, Stephen Boyd wrote: John Stultz reported an RCU splat on ARM with ipi trace events enabled. It looks like the same problem exists on ARM64. At this point in the IPI

RE: [v4 08/16] KVM: kvm-vfio: User API for IRQ forwarding

2015-06-24 Thread Wu, Feng
-Original Message- From: Joerg Roedel [mailto:j...@8bytes.org] Sent: Wednesday, June 24, 2015 11:46 PM To: Alex Williamson Cc: Wu, Feng; Eric Auger; Avi Kivity; k...@vger.kernel.org; linux-kernel@vger.kernel.org; pbonz...@redhat.com; mtosa...@redhat.com Subject: Re: [v4 08/16]

Re: [PATCH 3/4] blk-mq: establish new mapping before cpu starts handling requests

2015-06-24 Thread Akinobu Mita
2015-06-25 1:24 GMT+09:00 Ming Lei tom.leim...@gmail.com: On Wed, Jun 24, 2015 at 10:34 PM, Akinobu Mita akinobu.m...@gmail.com wrote: Hi Ming, 2015-06-24 18:46 GMT+09:00 Ming Lei tom.leim...@gmail.com: On Sun, Jun 21, 2015 at 9:52 PM, Akinobu Mita akinobu.m...@gmail.com wrote:

[PATCH] sched: split sched_switch trace event into two

2015-06-24 Thread Cong Wang
Currently we only have one sched_switch trace event for task switching, which is generated very early during task switch. When we try to monitor per-container events, this is not what we expect. For example, we have a process A which is in the cgroup we monitor, and process B which isn't, when

[RFC PATCH 3/3] restartable sequences: basic user-space self-tests

2015-06-24 Thread Paul Turner
Implements two basic tests of RSEQ functionality. The first, basic_test only asserts that RSEQ works moderately correctly. E.g. that: - The CPUID pointer works - Code infinitely looping within a critical section will eventually be interrupted. basic_percpu_ops_test is a slightly more

[RFC PATCH 2/3] restartable sequences: x86 ABI

2015-06-24 Thread Paul Turner
Implements the x86 (i386 x86-64) ABIs for interrupting and restarting execution within restartable sequence sections. With respect to the x86-specific ABI: On 32-bit: Upon restart, the interrupted rip is placed in %ecx On 64-bit (or x32): Upon restart, the interrupted rip is

[RFC PATCH 1/3] restartable sequences: user-space per-cpu critical sections

2015-06-24 Thread Paul Turner
Introduce the notion of 'restartable sequence'. This is a user-defined range within which we guarantee user-execution will occur serially with respect to scheduling events such as migration or competition with other threads. Preemption, or other interruption within this region, results in

Re: [PATCH] tick/idle/powerpc: Do not register idle states with CPUIDLE_FLAG_TIMER_STOP set in periodic mode

2015-06-24 Thread Rafael J. Wysocki
On Thu, Jun 25, 2015 at 12:06 AM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Wed, 2015-06-24 at 15:50 +0200, Rafael J. Wysocki wrote: 4.2 material I suppose? And stable. Without this, if you configure without TICK_ONESHOT, the machine will hang. OK, which -stable? All of them

RE: [PATCH v2 02/28] ACPICA: Linuxize: Replace __FUNCTION__ with __func__.

2015-06-24 Thread Zheng, Lv
Hi, From: Christoph Hellwig [mailto:h...@infradead.org] Sent: Wednesday, June 24, 2015 8:56 PM On Wed, Jun 24, 2015 at 11:02:03AM +0800, Lv Zheng wrote: ACPICA commit cb3d1c79f862cd368d749c9b8d9dced40111b0d0 __FUNCTION__ is MSVC only, in Linux, it is __func__. Lv Zheng. In ACPICA,

[PULL] Documentation for 4.2

2015-06-24 Thread Jonathan Corbet
The following changes since commit d4a4f75cd8f29cd9464a5a32e9224a91571d6649: Linux 4.1-rc7 (2015-06-07 20:23:50 -0700) are available in the git repository at: git://git.lwn.net/linux-2.6.git tags/docs-for-linus for you to fetch changes up to 36f95a0b34cb980dcfff9c1082ca5d8f0dc5e78b:

Re: [RFC PATCH] Fix: x86 unaligned __memcpy to/from virtual memory

2015-06-24 Thread Linus Torvalds
On Wed, Jun 24, 2015 at 4:54 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: OK, see below. This time the fault occurred at an unaligned address. It fails on the !pte_present(*pte_ref) check. So every time, %rcx is 0x001fb. Once, your rdx value (which is remaining bytes after the

Re: [RFCv2][PATCH 1/7] fs: optimize inotify/fsnotify code for unwatched files

2015-06-24 Thread Eric Paris
On Wed, 2015-06-24 at 17:16 -0700, Dave Hansen wrote: From: Dave Hansen dave.han...@linux.intel.com I have a _tiny_ microbenchmark that sits in a loop and writes single bytes to a file. Writing one byte to a tmpfs file is around 2x slower than reading one byte from a file, which is a _bit_

RE: [PATCH v2 03/28] ACPICA: Hardware: Enable 64-bit firmware waking vector for selected FACS.

2015-06-24 Thread Zheng, Lv
Hi, Rafael From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] Sent: Wednesday, June 24, 2015 10:06 PM On Wednesday, June 24, 2015 11:02:10 AM Lv Zheng wrote: ACPICA commit 7aa598d711644ab0de5f70ad88f1e2de253115e4 The following commit is reported to have broken s2ram on some platforms:

[PATCH v5 2/3] video: fbdev: atyfb: replace MTRR UC hole with strong UC

2015-06-24 Thread Luis R. Rodriguez
From: Luis R. Rodriguez mcg...@suse.com Replace a WC MTRR call followed by a UC MTRR hole call with a single WC MTRR call and use strong UC to protect the MMIO region and account for the device's architecture and MTRR size requirements. The atyfb driver relies on two overlapping MTRRs. It does

[PATCH v8 7/9] video: fbdev: arkfb: use arch_phys_wc_add() and pci_iomap_wc()

2015-06-24 Thread Luis R. Rodriguez
From: Luis R. Rodriguez mcg...@suse.com Convert the driver from using the x86 specific MTRR code to the architecture agnostic arch_phys_wc_add(). arch_phys_wc_add() will avoid MTRR if write-combining is available, in order to take advantage of that also ensure the ioremap'd area is requested as

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

2015-06-24 Thread Stephen Rothwell
Hi Dan, On Thu, 25 Jun 2015 08:57:06 +1000 Stephen Rothwell s...@canb.auug.org.au wrote: On Wed, 24 Jun 2015 14:18:44 -0400 Dan Streetman ddstr...@ieee.org wrote: On Tue, Jun 23, 2015 at 9:37 PM, Stephen Rothwell s...@canb.auug.org.au wrote: After merging the modules tree, today's

[PATCH] drm/msm: Set different display size limitation on each target

2015-06-24 Thread Hai Li
The maximum output width of one pipeline depends on the LayerMixer's capability. It may be different on each target. Also, MDP5 doesn't have vertical limitation in one frame, as long as the pixel clock can be supported. This change obtains the maximum LM resolution from configuration table and

Re: [PATCH v2 05/28] ACPICA: Hardware: Enable firmware waking vector for both 32-bit and 64-bit FACS.

2015-06-24 Thread Rafael J. Wysocki
On Wednesday, June 24, 2015 11:02:54 AM Lv Zheng wrote: ACPICA commit 368eb60778b27b6ae94d3658ddc902ca1342a963 ACPICA commit 70f62a80d65515e1285fdeeb50d94ee6f07df4bd The following commit is reported to have broken s2ram on some platforms: Commit: 0249ed2444d65d65fc3f3f64f398f1ad0b7e54cd

Re: 4.0.5: WARNING: CPU: 3 PID: 249 at /home/kernel/COD/linux/mm/backing-dev.c:372 bdi_unregister+0x36/0x40()

2015-06-24 Thread NeilBrown
On Mon, 15 Jun 2015 21:39:03 +0900 Tomasz Chmielewski t...@virtall.com wrote: Got this after stopping a RAID-1 array: [ 626.694737] md: md3 still in use. [ 626.694946] md: delaying resync of md3 until md2 has finished (they share one or more physical units) [ 628.256210] md3: detected

Re: [PATCH] iop-adma: detangle dma_alloc_writecombine() use and check

2015-06-24 Thread Luis R. Rodriguez
On Tue, Jun 16, 2015 at 12:40 PM, Luis R. Rodriguez mcg...@do-not-panic.com wrote: From: Luis R. Rodriguez mcg...@suse.com dma_alloc_writecombine()'s call and return value check is tangled in all in one call. Detangle both calls as we're used to. Signed-off-by: Luis R. Rodriguez

Re: [PATCH] tick/idle/powerpc: Do not register idle states with CPUIDLE_FLAG_TIMER_STOP set in periodic mode

2015-06-24 Thread Benjamin Herrenschmidt
On Wed, 2015-06-24 at 15:50 +0200, Rafael J. Wysocki wrote: 4.2 material I suppose? And stable. Without this, if you configure without TICK_ONESHOT, the machine will hang. Cheers, Ben. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [RFC PATCH] Fix: x86 unaligned __memcpy to/from virtual memory

2015-06-24 Thread Mathieu Desnoyers
- On Jun 24, 2015, at 3:15 PM, Linus Torvalds torva...@linux-foundation.org wrote: On Wed, Jun 24, 2015 at 11:49 AM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: Here is the output. I added the printk just after the initial range check within vmalloc_fault. Good. Can you

Re: Stop SSD from waiting for Spinning up disk...

2015-06-24 Thread Jeff Chua
On Thu, Jun 25, 2015 at 12:28 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Thu, Jun 25, 2015 at 12:22:47AM +0800, Jeff Chua wrote: Both sda and sdb have the same SSD model. That's a bug in your USB bridge chip, odds are it is not reporting the value properly. There's nothing

[RFCv2][PATCH 2/7] fs: use RCU for free_super() vs. __sb_start_write()

2015-06-24 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com Currently, __sb_start_write() and freeze_super() can race with each other. __sb_start_write() uses a smp_mb() to ensure that freeze_super() can see its write to sb-s_writers.counter and that it can see freeze_super()'s update to sb-s_writers.frozen.

[RFCv2][PATCH 1/7] fs: optimize inotify/fsnotify code for unwatched files

2015-06-24 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com I have a _tiny_ microbenchmark that sits in a loop and writes single bytes to a file. Writing one byte to a tmpfs file is around 2x slower than reading one byte from a file, which is a _bit_ more than I expecte. This is a dumb benchmark, but I

[RFCv2][PATCH 5/7] fsnotify: use fsnotify_head for vfsmount data

2015-06-24 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com Use the new 'struct fsnotify_head' for the vfsmount fsnotify data, just like we did for inodes in the last patch. Cc: Jan Kara j...@suse.cz Cc: Alexander Viro v...@zeniv.linux.org.uk Cc: linux-fsde...@vger.kernel.org Cc: linux-kernel@vger.kernel.org

[RFCv2][PATCH 3/7] fs: fsnotify: replace memory barrier in __sb_end_write() with RCU

2015-06-24 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com If I sit in a loop and do write()s to small tmpfs files, __sb_end_write() is third-hottest kernel function due to its smp_mb(). __sb_end_write() uses the barrier to avoid races with freeze_super() and its calls to sb_wait_write(). But, now that

[RFCv2][PATCH 6/7] fsnotify: change fsnotify_recalc_mask() conventions

2015-06-24 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com fsnotify_recalc_mask() currently takes a list of fsnotify_marks and calculates a mask from them. Now that we store the marks and the masks together in a fsnotify_head, just pass the whole thing in and have fsnotify_recalc_mask() set -mask

Re: [PATCH v7 00/14] crypto: add a new driver for Marvell's CESA

2015-06-24 Thread Javier Martinez Canillas
Hello Paul, On Thu, Jun 25, 2015 at 2:00 AM, Paul Gortmaker paul.gortma...@windriver.com wrote: [Re: [PATCH v7 00/14] crypto: add a new driver for Marvell's CESA] On 22/06/2015 (Mon 15:59) Herbert Xu wrote: On Mon, Jun 22, 2015 at 09:23:36AM +0200, Boris Brezillon wrote: Hi Herbert, On

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