[PATCH] perf tools: Show better error message in case we fail to open counters due to EBUSY error

2014-08-01 Thread Jiri Olsa
Showing better error message in case we fail to open counters due to the EBUSY error. If we detect oprofile daemon process running, we now display following message for EBUSY error: $ perf record ls Error: The PMU counters are busy/taken by another profiler. We found oprofile daemon runnin

Re: [PATCH v2 tip/core/rcu 01/10] rcu: Add call_rcu_tasks()

2014-08-01 Thread Oleg Nesterov
On 07/30, Paul E. McKenney wrote: > > + rcu_read_lock(); > + for_each_process_thread(g, t) { > + if (t != current && ACCESS_ONCE(t->on_rq) && > + !is_idle_task(t)) { > + t->rcu_tasks_nvcsw = ACCESS_ONCE(

Re: [PATCH v2 2/2] xen/setup: Remap Xen Identity Mapped RAM

2014-08-01 Thread Boris Ostrovsky
On 08/01/2014 11:52 AM, Matt Wilson wrote: On Fri, Aug 01, 2014 at 03:52:28PM +0100, David Vrabel wrote: On 31/07/14 18:43, David Vrabel wrote: On 20/07/14 01:01, Matt Rushton wrote: Instead of ballooning up and down dom0 memory this remaps the existing mfns that were replaced by the identity

[PATCH v2] ASoC: tas2552: Add DAPM calls for amp and PLL

2014-08-01 Thread Dan Murphy
Add DAPM calls to enable/disable the Class D amp. Also add a DAPM call to turn off the PLL upon the stream completing. Signed-off-by: Dan Murphy --- v2 - Added proper audio routing map for ClassD and PLL enable/disable - https://patchwork.kernel.org/patch/4586831/ sound/soc/codecs/tas2552.c |

Re: [PATCH v2 2/2] xen/setup: Remap Xen Identity Mapped RAM

2014-08-01 Thread Matt Wilson
On Fri, Aug 01, 2014 at 03:52:28PM +0100, David Vrabel wrote: > On 31/07/14 18:43, David Vrabel wrote: > > On 20/07/14 01:01, Matt Rushton wrote: > >> Instead of ballooning up and down dom0 memory this remaps the existing mfns > >> that were replaced by the identity map. The reason for this is that

Hello

2014-08-01 Thread Joyce
Dear, How are you? am very happy to your email profile today and will like to establish a long lasting relationship with you, in addition i will like to discuss more important issue with you. Waiting for your responds, God bless you and your family. Yours Sincerely Miss. Joyce -- To unsubscribe

Re: [PATCH 0/2] new API to allocate buffer-cache for superblock in non-movable area

2014-08-01 Thread Peter Zijlstra
On Fri, Aug 01, 2014 at 05:24:59PM +0200, Jan Kara wrote: > OK, makes sense. But then if there's heavy IO going on, anything that has > IO pending on it is pinned and IO completion can easily take something > close to a second or more. So meeting subsecond deadlines may be tough even > for ordin

Re: [PATCH] PKCS#7: issuer and subject are mandatory fields in the ASN.1

2014-08-01 Thread Vivek Goyal
On Thu, Jul 31, 2014 at 03:11:03PM +0100, David Howells wrote: > issuer and subject are mandatory fields in the ASN.1 and so their existence > needn't be tested for. They are guaranteed to end up with an empty string if > the name material has nothing we can use (see x509_fabricate_name()). > > R

Re: [PATCH 3/4 V3] irqchip: gic: Add supports for ARM GICv2m MSI(-X)

2014-08-01 Thread Marc Zyngier
On Fri, Aug 01 2014 at 4:42:26 pm BST, Suravee Suthikulanit wrote: > On 7/30/2014 9:57 AM, Marc Zyngier wrote: >> On Thu, Jul 10 2014 at 12:05:03 am BST, "suravee.suthikulpa...@amd.com" >> wrote: >> >> Hi Suravee, >> >>> From: Suravee Suthikulpanit >>> > >> .. > >> >>> - first region i

Re: [PATCH v4 net-next 5/5] net: filter: split 'struct sk_filter' into socket and bpf parts

2014-08-01 Thread Pablo Neira Ayuso
On Thu, Jul 31, 2014 at 02:02:19PM -0700, Alexei Starovoitov wrote: > On Thu, Jul 31, 2014 at 12:40 PM, Pablo Neira Ayuso > wrote: > > On Wed, Jul 30, 2014 at 08:34:16PM -0700, Alexei Starovoitov wrote: > >> clean up names related to socket filtering and bpf in the following way: > >> - everythin

[PATCH] jffs2: Re-enable write-buffering after filesystem sync

2014-08-01 Thread Jeff Harris
A JFFS2 filesystem sync cancels the write buffering dirty work and performs the flush manually. However, the flag which indicates that the work is active is not reset. Thus, if a sync happens while the work is pending, the flag will never be reset resulting in future work never being started. Th

INQUIRY ABOUT YOUR PRODUCT?

2014-08-01 Thread Shenzhen Steve LLC
Dear Sir/Madam, We are interested in your product, please can you send us your product clarification/specification and your price list it is a bulk order. Please send me your product details, minimum order, terms of payment and preferably your product catalog with detailed specifications.

Re: [PATCH] Add support to check for FALLOC_FL_COLLAPSE_RANGE and FALLOC_FL_ZERO_RANGE crap modes

2014-08-01 Thread Nick Krause
On Fri, Aug 1, 2014 at 8:21 AM, Theodore Ts'o wrote: > On Thu, Jul 31, 2014 at 08:09:10PM +0100, Hugo Mills wrote: >> On Thu, Jul 31, 2014 at 01:53:33PM -0400, Nicholas Krause wrote: >> > This adds checks for the stated modes as if they are crap we will return >> > error >> > not supported. >> >>

Re: [PATCH] x86, irq: Keep IRQ assignment for PCI devices during suspend/hibernation, bisected

2014-08-01 Thread Borislav Petkov
On Fri, Aug 01, 2014 at 04:39:22PM +0200, Borislav Petkov wrote: > I could try to disable the IOMMU and see whether it still triggers. > That could tell us something. Ok, let me summarize what I've been able to observe so far: * https://lkml.kernel.org/r/1406766807-5745-1-git-send-email-jiang...

[PATCH] ath6kl: convert a driver to use module_usb_driver()

2014-08-01 Thread Himangi Saraogi
This converts a driver in drivers/net/* to use the module_usb_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- drivers/net/wireless/ath/ath6kl/usb.c | 21 + 1 file changed, 1 insertion(+), 20 deletions(-

Re: [PATCH] efi-bgrt: Add error handling; inform the user when ignoring the BGRT

2014-08-01 Thread Josh Triplett
On Fri, Aug 01, 2014 at 10:19:49AM +0100, Matt Fleming wrote: > (Including akpm, the __GFP_NOWARN police) Andrew suggested __GFP_NOWARN here in the first place. > On Thu, 31 Jul, at 09:11:33AM, Josh Triplett wrote: > > > > I started to add an explicit limit, but any reasonable limit (large > > e

Re: [PATCH/RFC V8 1/1] clk: Support for clock parents and rates assigned from device tree

2014-08-01 Thread Wolfram Sang
On Fri, Jul 25, 2014 at 02:42:31PM -0700, Mike Turquette wrote: > Quoting Sylwester Nawrocki (2014-07-03 10:25:53) > > On 18/06/14 17:29, Sylwester Nawrocki wrote: > > > This patch adds helper functions to configure clock parents and rates > > > as specified through 'assigned-clock-parents', 'assig

Re: [PATCH 2/5] arm64, thunder: Add initial dts for Cavium Thunder SoC

2014-08-01 Thread Robert Richter
Olof, On 30.07.14 11:14:23, Olof Johansson wrote: > On Wed, Jul 30, 2014 at 8:06 AM, Robert Richter wrote: > > From: Radha Mohan Chintakuntla > > > > Add initial device tree nodes for Cavium Thunder SoCs with support of > > 48 cores and gicv3. The dts file requires further changes, esp. for > >

Re: [PATCH 4/4 V3] irqchip: gicv2m: Add support for multiple MSI for ARM64 GICv2m

2014-08-01 Thread Suravee Suthikulanit
On 8/1/2014 9:51 AM, Marc Zyngier wrote: Hi Suravee, On 01/08/14 15:36, Suravee Suthikulanit wrote: On 7/30/2014 10:16 AM, Marc Zyngier wrote: Why do we need this complexity at all? Is there any case where we'd want to limit ourselves to a single vector for MSI? I think the ARM64 GICv2m shou

Re: [PATCH v5 01/10] ARM: dts: Fix MMC pinctrl for exynos5250-snow

2014-08-01 Thread Doug Anderson
Hi, On Thu, Jul 31, 2014 at 9:54 PM, Andreas Färber wrote: > The pinctrl properties should be on the device directly and not on the > slot sub-node. > > Reported-by: Doug Anderson > Cc: Jaehoon Chung > Reviewed-by: Tomasz Figa > Signed-off-by: Andreas Färber Let's land this one before Jaehoo

Re: [PATCH 3/4 V3] irqchip: gic: Add supports for ARM GICv2m MSI(-X)

2014-08-01 Thread Suravee Suthikulanit
On 8/1/2014 10:42 AM, Suravee Suthikulanit wrote: +#ifdef CONFIG_SMP + .irq_set_affinity = gic_set_affinity, +#endif +#ifdef CONFIG_PM + .irq_set_wake = gic_set_wake, +#endif +}; + +#ifdef CONFIG_OF +static int __init +gicv2m_of_init(struct device_node *node, struct de

[RFC][PATCH 2/2] PM: Suspend: Print wall time at suspend entry and exit

2014-08-01 Thread Amit Pundir
From: Todd Poynor Existing printk timestamps in a dmesg only log suspend activities (e.g. filesystem syncs, freezing/unfreezing tasks etc) while the system has already started to enter/exit the suspend state. Sometimes it is handy to have suspend entry/exit overhead information while debugging su

[RFC][PATCH 1/2] PM: Print pending wakeup IRQ preventing suspend to dmesg

2014-08-01 Thread Amit Pundir
From: Todd Poynor Currently when a pending wakeup irq stops suspend, it can be difficult to determine why suspend was prevented and which IRQ was actually responsible. In order to help debug these situations, this patch prints the IRQ number and action name of that pending wakeup irq which preve

[RFC][PATCH 0/2] Minor Suspend debugging patches from Android

2014-08-01 Thread Amit Pundir
Couple of PM patches from Android tree printing Suspend debug messages. These messages are used to help debug PM related issues on Android based devices and look useful enough to troubleshoot PM issues on generic Linux devices as well. I'd greatly appreciate any feedback or comments! Todd Poynor

Re: [PATCH 09/19] drm/radeon: handle lockup in delayed work, v2

2014-08-01 Thread Christian König
Am 31.07.2014 um 17:33 schrieb Maarten Lankhorst: Signed-off-by: Maarten Lankhorst --- V1 had a nasty bug breaking gpu lockup recovery. The fix is not allowing radeon_fence_driver_check_lockup to take exclusive_lock, and kill it during lockup recovery instead. That looks like the delayed work

Re: [PATCH v5 02/10] ARM: dts: Fold exynos5250-cros-common into exynos5250-snow

2014-08-01 Thread Doug Anderson
Andreas, On Thu, Jul 31, 2014 at 9:54 PM, Andreas Färber wrote: > exynos5250-cros-common.dtsi was meant for sharing common pieces across > ChromeOS devices. This turned out premature, as several devices ended up > in the common file that are not common after all. Since the remaining > common Chro

[git pull] device mapper fixes for 3.16 final

2014-08-01 Thread Mike Snitzer
Hi Linus, The following changes since commit 64aa90f26c06e1cb2aacfb98a7d0eccfbd6c1a91: Linux 3.16-rc7 (2014-07-27 12:41:55 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git tags/dm-3.16-fixes-3 for you to fetch changes

Re: [PATCH v4 net-next 5/5] net: filter: split 'struct sk_filter' into socket and bpf parts

2014-08-01 Thread Alexei Starovoitov
On Fri, Aug 1, 2014 at 9:06 AM, Pablo Neira Ayuso wrote: > On Thu, Jul 31, 2014 at 02:02:19PM -0700, Alexei Starovoitov wrote: >> On Thu, Jul 31, 2014 at 12:40 PM, Pablo Neira Ayuso >> wrote: >> > On Wed, Jul 30, 2014 at 08:34:16PM -0700, Alexei Starovoitov wrote: >> >> clean up names related to

[PATCHv2] dma: at_hdmac: fix invalid remaining bytes detection

2014-08-01 Thread Alexandre Belloni
Found using smatch: drivers/dma/at_hdmac.c:299 atc_get_bytes_left() warn: unsigned 'atchan->remain_desc' is never less than zero. Signed-off-by: Alexandre Belloni --- Changes in v2: - remove unnecessary parentheses drivers/dma/at_hdmac.c | 12 +++- 1 file changed, 7 insertions(+), 5 d

Re: [PATCH 2/2] dma: imx-sdma: Adding tasklet_kill() in sdma_remove function.

2014-08-01 Thread Vinod Koul
On Fri, Aug 01, 2014 at 07:36:53PM +0530, Vignesh Raman wrote: > On Thursday 31 July 2014 05:32 PM, Vinod Koul wrote: > > On Wed, Jul 30, 2014 at 06:41:15PM +0530, Vignesh Raman wrote: > >> Several dma drivers calls tasklet_kill() in remove function. This is > >> missing in > >> imx driver, so add

Re: [PATCH RFC] sysfs: fix the race of "parent deleted before child added"

2014-08-01 Thread Dan Williams
On Fri, Aug 1, 2014 at 4:18 AM, Jianyu Zhan wrote: > From: Jianyu Zhan > > I've met such a race conditon the same as what commit 3a198886 > ("sysfs: handle 'parent deleted before child added'") tackled. > > The senario got triggered under a torturing test of quick disk > removal and plugging. > >

Re: [PATCH] jffs2: Re-enable write-buffering after filesystem sync

2014-08-01 Thread Al Viro
On Fri, Aug 01, 2014 at 12:06:12PM -0400, Jeff Harris wrote: > + spin_lock(&c->wbuf_dwork_lock); > cancel_delayed_work_sync(&c->wbuf_dwork); Umm... Usually ..._sync in function name is a sign of potential sleeper, and calling those under a spinlock is a bad idea. And looking at the de

Re: Help with btrfs_zero_range function

2014-08-01 Thread Nick Krause
Please forget my other questions , seems the only work to make punch hole work for zero range is to make a function like the one I am pasting below for zero range and change the calls to punch range to zero range as the other parts of the function can be the same from my reading. Regards Nick stati

Linux 3.12.26

2014-08-01 Thread Jiri Slaby
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm announcing the release of the 3.12.26 kernel. All users of the 3.12 kernel series must upgrade. The updated 3.12.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.12.y and can be bro

pull request: wireless-next 2014-08-01

2014-08-01 Thread John W. Linville
Dave, Please pull this last(?) batch of wireless change intended for the 3.17 stream... For the NFC bits, Samuel says: "This is a rather quiet one, we have: - A new driver from ST Microelectronics for their NCI ST21NFCB, including device tree support. - p2p support for the ST21NFCA driver

Re: Help with btrfs_zero_range function

2014-08-01 Thread Nick Krause
On Fri, Aug 1, 2014 at 12:58 PM, Nick Krause wrote: > Please forget my other questions , seems the only work to make punch > hole work for zero range is to > make a function like the one I am pasting below for zero range and > change the calls to punch range to > zero range as the other parts of t

Re: [PATCH 4/5] x86: entry_64.S: always allocate complete "struct pt_regs"

2014-08-01 Thread Andy Lutomirski
On Fri, Aug 1, 2014 at 7:48 AM, Denys Vlasenko wrote: > 64-bit code was using six stack slots fewer by not saving/restoring > registers which a callee-preserved according to C ABI, > and not allocating space for them This is great. Next up: remove FIXUP/RESTORE_TOP_OF_STACK? :) Maybe I'll give

Re: [PATCH 2/5] arm64, thunder: Add initial dts for Cavium Thunder SoC

2014-08-01 Thread Robert Richter
Mark, On 31.07.14 12:33:01, Mark Rutland wrote: > On Thu, Jul 31, 2014 at 12:12:33PM +0100, Ganapatrao Kulkarni wrote: > >We mark RAM used by ATF as secure-RAM, however we don't support > >secure/non-secure address aliasing. > >i.e, a DRAM address that can be referenced from both a sec

Re: [PATCH 3/4 V3] irqchip: gic: Add supports for ARM GICv2m MSI(-X)

2014-08-01 Thread Marc Zyngier
On Fri, Aug 01 2014 at 5:29:40 pm BST, Suravee Suthikulanit wrote: > On 8/1/2014 10:42 AM, Suravee Suthikulanit wrote: +#ifdef CONFIG_SMP + .irq_set_affinity = gic_set_affinity, +#endif +#ifdef CONFIG_PM + .irq_set_wake = gic_set_wake, +#

[Question: Drivers/base/core.c] Why dev->init_name = NULL in device_add function ?

2014-08-01 Thread Aniroop Mathur
Dear Mr. Greg Kroah-Hartman and Linux Community, Greetings of the day !! :) I am Aniroop Mathur working on Linux Kernel for last two years. I am stuck at one point and could not find the solution over internet. I posted on linuxquestions.org too. So I need your help and suggestion for it. Can you

Re: [PATCH] jffs2: Re-enable write-buffering after filesystem sync

2014-08-01 Thread Jeff Harris
On Fri, Aug 1, 2014 at 12:56 PM, Al Viro wrote: > > On Fri, Aug 01, 2014 at 12:06:12PM -0400, Jeff Harris wrote: > > > + spin_lock(&c->wbuf_dwork_lock); > > cancel_delayed_work_sync(&c->wbuf_dwork); > > Umm... Usually ..._sync in function name is a sign of potential sleeper, > and calli

Re: [PATCH] serial/option: Add support for Option GTM671WFS

2014-08-01 Thread Dan Williams
On Fri, 2014-08-01 at 14:00 +0200, Ricardo Ribalda Delgado wrote: > After this patch: > > [5.389385] usbserial: USB Serial support registered for GSM modem (1-port) > [5.390181] option 2-1.4:1.0: GSM modem (1-port) converter detected > [5.390556] usb 2-1.4: GSM modem (1-port) converter

Re: [PATCH] swap: remove the struct cpumask has_work

2014-08-01 Thread Chris Metcalf
On 7/31/2014 9:39 PM, Lai Jiangshan wrote: On 08/01/2014 12:09 AM, Chris Metcalf wrote: On 7/31/2014 7:51 AM, Michal Hocko wrote: On Thu 31-07-14 11:30:19, Lai Jiangshan wrote: It is suggested that cpumask_var_t and alloc_cpumask_var() should be used instead of struct cpumask. But I don't wan

Re: [PATCH] cpufreq, store_scaling_governor requires policy->rwsem to be held for duration of changing governors [v2]

2014-08-01 Thread Stephen Boyd
On 08/01/14 03:27, Prarit Bhargava wrote: > > Can you send me the test and the trace of the deadlock? I'm not creating it > with: > This was with conservative as the default, and switching to ondemand # cd /sys/devices/system/cpu/cpu2/cpufreq # ls affected_cpus scaling_availabl

Re: [PATCH 5/5] platform: Make platform_bus device a platform device

2014-08-01 Thread Pawel Moll
On Sat, 2014-07-26 at 21:12 +0100, Greg Kroah-Hartman wrote: > On Fri, Jul 25, 2014 at 03:23:53PM +0100, Pawel Moll wrote: > > ... describing the root of the device tree, so one can write > > a platform driver initializing the platform. > > Wait, what do you mean by "one can write a platform drive

Re: [PATCH 2/5] char: tile-srom: Remove reference to platform_bus

2014-08-01 Thread Pawel Moll
On Thu, 2014-07-31 at 21:24 +0100, Chris Metcalf wrote: > On 7/25/2014 10:23 AM, Pawel Moll wrote: > > The code was creating "srom" class devices using > > platform_bus as a parent. As they are not really > > platform devices, make them virtual, using NULL instead. > > > > Cc: Chris Metcalf > > Sig

Re: [PATCH 5/5] platform: Make platform_bus device a platform device

2014-08-01 Thread Pawel Moll
On Sat, 2014-07-26 at 21:13 +0100, Greg Kroah-Hartman wrote: > > @@ -946,12 +946,20 @@ int __init platform_bus_init(void) > > > > early_platform_cleanup(); > > > > - error = device_register(&platform_bus); > > + dev_set_name(&platform_bus.dev, "%s", platform_bus.name); > > + error = d

Re: [PATCH] Documentation: dmaengine: Add a documentation for the dma controller API

2014-08-01 Thread Vinod Koul
On Thu, Jul 31, 2014 at 06:23:30PM +0200, Maxime Ripard wrote: > On Thu, Jul 31, 2014 at 05:26:28PM +0530, Vinod Koul wrote: > > Also, feel free to add anything that you feel like you keep saying > during the review. If mistakes keep coming, it's probably worth > documenting what you expect. I thi

[PATCH] reset: Provide !RESET_CONTROLLER stub for devm_reset_control_get()

2014-08-01 Thread Mark Brown
From: Mark Brown At least the sun6i DMA controller driver makes use of the reset controller API stubs when being built for coverage and otherwise fails to build. Signed-off-by: Mark Brown --- include/linux/reset.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/reset.h

Re: [PATCH] Documentation: dmaengine: Add a documentation for the dma controller API

2014-08-01 Thread Vinod Koul
On Fri, Aug 01, 2014 at 10:57:07AM +0200, Maxime Ripard wrote: > On Fri, Aug 01, 2014 at 10:00:10AM +0200, Lars-Peter Clausen wrote: > > On 07/31/2014 07:37 PM, Maxime Ripard wrote: > > >On Thu, Jul 31, 2014 at 06:54:11PM +0200, Lars-Peter Clausen wrote: > > >>On 07/31/2014 06:13 PM, Maxime Ripard

Re: [PATCH 4/5] [SCSI] Do not use platform_bus as a parent

2014-08-01 Thread Pawel Moll
On Sun, 2014-07-27 at 16:07 +0100, Greg Kroah-Hartman wrote: > Ah, ok, it's a scsi core thing, not a driver core thing, that's less > confusing now. For a "fallback" of a platform device, if you switch the > lines around you should be fine, something like this patch perhaps: > > diff --git a/driv

Re: [cxgb4i] INFO: suspicious RCU usage. ]

2014-08-01 Thread Cong Wang
On Fri, Aug 1, 2014 at 5:32 AM, Fengguang Wu wrote: > Hi Anish, > > FYI, here is one more bug message for > > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > commit 759a0cc5a3e1bc2cc48fa3c0b91bdcad8b8f87d6 ("cxgb4i: Add ipv6 code to > driver, call into libcxgbi ipv6 api

Re: [PATCH] swap: remove the struct cpumask has_work

2014-08-01 Thread Frederic Weisbecker
On Fri, Aug 01, 2014 at 01:16:05PM -0400, Chris Metcalf wrote: > On 7/31/2014 9:39 PM, Lai Jiangshan wrote: > >On 08/01/2014 12:09 AM, Chris Metcalf wrote: > >>On 7/31/2014 7:51 AM, Michal Hocko wrote: > >>>On Thu 31-07-14 11:30:19, Lai Jiangshan wrote: > It is suggested that cpumask_var_t and

RE: [PATCH] HID: hyperv: register as a wakeup source

2014-08-01 Thread KY Srinivasan
> -Original Message- > From: Dexuan Cui [mailto:de...@microsoft.com] > Sent: Friday, August 1, 2014 7:27 AM > To: gre...@linuxfoundation.org; jkos...@suse.cz; linux- > in...@vger.kernel.org; linux-kernel@vger.kernel.org; driverdev- > de...@linuxdriverproject.org; o...@aepfle.de; a...@cano

RE: [PATCH] Input: hyperv-keyboard: register as a wakeup source

2014-08-01 Thread KY Srinivasan
> -Original Message- > From: Dexuan Cui [mailto:de...@microsoft.com] > Sent: Friday, August 1, 2014 7:28 AM > To: gre...@linuxfoundation.org; dmitry.torok...@gmail.com; linux- > in...@vger.kernel.org; linux-kernel@vger.kernel.org; driverdev- > de...@linuxdriverproject.org; o...@aepfle.de;

Re: [PATCH] Documentation: dmaengine: Add a documentation for the dma controller API

2014-08-01 Thread Vinod Koul
On Thu, Jul 31, 2014 at 02:22:23PM +0100, Russell King - ARM Linux wrote: > DMA engine has lacked a lot of infrastructure for common patterns in > drivers; some of that is solved by my efforts with the virt_dma.c > support, and also various cleanups to existing drivers, but it's not > easy to fix t

[PATCH v2 3/3] mm/hugetlb: add migration entry check in hugetlb_change_protection

2014-08-01 Thread Naoya Horiguchi
There is a race condition between hugepage migration and change_protection(), where hugetlb_change_protection() doesn't care about migration entries and wrongly overwrites them. That causes unexpected results like kernel crash. This patch adds is_hugetlb_entry_(migration|hwpoisoned) check in this

[PATCH v2 2/3] mm/hugetlb: use get_page_unless_zero() in hugetlb_fault()

2014-08-01 Thread Naoya Horiguchi
After fixing locking in follow_page(FOLL_GET) for hugepages, I start to observe the BUG of "get_page() on refcount 0 page" in hugetlb_fault() in the same test. I'm not exactly sure about how this race is triggered, but hugetlb_fault() calls pte_page() and get_page() outside page table lock, so it'

[PATCH v2 1/3] mm/hugetlb: take refcount under page table lock in follow_huge_pmd()

2014-08-01 Thread Naoya Horiguchi
We have a race condition between move_pages() and freeing hugepages, where move_pages() calls follow_page(FOLL_GET) for hugepages internally and tries to get its refcount without preventing concurrent freeing. This race crashes the kernel, so this patch fixes it by moving FOLL_GET code for hugepage

Re: [PATCH v2] drivers: i2c: i2c-st: Update i2c timings

2014-08-01 Thread Wolfram Sang
On Wed, Jul 23, 2014 at 05:44:07PM +0200, Maxime COQUELIN wrote: > The i2c timing values specified in the driver are the minimun values defined > in the I2C specifications. > The I2C specification does not specify any default or maximum values. > > Some I2C devices are out of spec, such as the HDM

RE: [PATCH 1/1] Drivers: net-next: hyperv: Increase the size of the sendbuf region

2014-08-01 Thread KY Srinivasan
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Thursday, July 31, 2014 9:59 PM > To: KY Srinivasan > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com > Subjec

Re: [LKP] [cxgb4i] INFO: suspicious RCU usage. ]

2014-08-01 Thread Anish Bhatt
One socket to bind them all From: Aaron Lu Sent: Jul 27, 2014 7:05 PM To: Anish Bhatt Cc: "David S. Miller" ;LKML;l...@01.org Subject: [LKP] [cxgb4i] INFO: suspicious RCU usage. ] FYI, we noticed the below changes on git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master com

Re: [PATCH 09/19] drm/radeon: handle lockup in delayed work, v2

2014-08-01 Thread Maarten Lankhorst
On 01-08-14 18:35, Christian König wrote: > Am 31.07.2014 um 17:33 schrieb Maarten Lankhorst: >> Signed-off-by: Maarten Lankhorst >> --- >> V1 had a nasty bug breaking gpu lockup recovery. The fix is not >> allowing radeon_fence_driver_check_lockup to take exclusive_lock, >> and kill it during l

Re: [PATCH v5 3/4] Staging: rts5208: Use dev_dbg and %*ph specifierto dump memory

2014-08-01 Thread Fabio Falzoi
On Wed, Jul 30, 2014 at 09:52:35AM +0800, micky wrote: > Documentation/printk-formats.txt > > Raw buffer as a hex string: > %*ph00 01 02 ... 3f > %*phC 00:01:02: ... :3f > %*phD 00-01-02- ... -3f > %*phN 000102 ... 3f > > For printing a small buffers (up

Re: [PATCH v2] i2c: pca954x: put the mux to disconnected state after resume

2014-08-01 Thread Wolfram Sang
On Fri, Jul 25, 2014 at 07:57:46PM +0800, Jisheng Zhang wrote: > pca954x may be power lost during suspend, so after resume we also suffer > the issue fixed by commit cd823db8b1161ef0d756514d280715a576d65cc3, > > "pca954x power-on default is channel 0 connected. If multiple pca954x > muxes are co

Re: [PATCH 2/5] arm64, thunder: Add initial dts for Cavium Thunder SoC

2014-08-01 Thread Mark Rutland
On Fri, Aug 01, 2014 at 06:04:11PM +0100, Robert Richter wrote: > Mark, Hi Robert, > On 31.07.14 12:33:01, Mark Rutland wrote: > > On Thu, Jul 31, 2014 at 12:12:33PM +0100, Ganapatrao Kulkarni wrote: > > >We mark RAM used by ATF as secure-RAM, however we don't support > > >secure/non-secu

Re: [PATCH 1/5] x86: entry_64.S: delete unused code

2014-08-01 Thread Frederic Weisbecker
On Fri, Aug 01, 2014 at 04:48:14PM +0200, Denys Vlasenko wrote: > A define, two macros and an unreferenced bit of assembly are gone. > > Signed-off-by: Denys Vlasenko > CC: Oleg Nesterov > CC: "H. Peter Anvin" > CC: Andy Lutomirski Acked-by: Frederic Weisbecker -- To unsubscribe from this li

Re: [PATCH] Documentation: dmaengine: Add a documentation for the dma controller API

2014-08-01 Thread Lars-Peter Clausen
On 08/01/2014 07:15 PM, Vinod Koul wrote: On Fri, Aug 01, 2014 at 10:57:07AM +0200, Maxime Ripard wrote: On Fri, Aug 01, 2014 at 10:00:10AM +0200, Lars-Peter Clausen wrote: On 07/31/2014 07:37 PM, Maxime Ripard wrote: On Thu, Jul 31, 2014 at 06:54:11PM +0200, Lars-Peter Clausen wrote: On 07/3

Re: [PATCH 4/5] x86: entry_64.S: always allocate complete "struct pt_regs"

2014-08-01 Thread Alexei Starovoitov
On Fri, Aug 1, 2014 at 7:48 AM, Denys Vlasenko wrote: > 64-bit code was using six stack slots fewer by not saving/restoring > registers which a callee-preserved according to C ABI, > and not allocating space for them. > > Only when syscall needed a complete "struct pt_regs", > the complete area wa

[PATCH v2 1/1] vfs: Respect MS_RDONLY at bind mount creation

2014-08-01 Thread Richard Yao
`mount -o bind,ro ...` suffers from a silent failure where the readonly flag is ignored. The bind mount will be created rw whenever the target is rw. Users typically workaround this by remounting readonly, but that does not work when you want to define readonly bind mounts in fstab. This is a major

[PATCH v2 0/1] vfs: Respect MS_RDONLY at bind mount creation

2014-08-01 Thread Richard Yao
The first version of this patch had a few issues: 1. It marked mount points readonly after graft_tree(). 2. The commit message did not read very well. 3. It failed to make it to the LKML archives. 4. One person absent from the CC list asked to be included after I sent it. Issue #1 merits a v2, so

Re: [PATCH v2 tip/core/rcu 01/10] rcu: Add call_rcu_tasks()

2014-08-01 Thread Paul E. McKenney
On Fri, Aug 01, 2014 at 05:53:10PM +0200, Oleg Nesterov wrote: > On 07/30, Paul E. McKenney wrote: > > > > + rcu_read_lock(); > > + for_each_process_thread(g, t) { > > + if (t != current && ACCESS_ONCE(t->on_rq) && > > + !is_idle_task(t))

Re: [PATCHv10 0/4] Common Mailbox Framework

2014-08-01 Thread Mark Brown
On Fri, Aug 01, 2014 at 05:59:54PM +0530, Jassi Brar wrote: > Hello, > Here's v10. Not much different from v9. The code and the generic > bindings looked good enough to relevant gods, but the patchset still > needs some formal loving in the form of Acked-by's. > > Changes since v9: > o Purely co

Re: [PATCHv10 1/4] mailbox: rename pl320-ipc specific mailbox.h

2014-08-01 Thread Mark Brown
On Fri, Aug 01, 2014 at 06:00:57PM +0530, Jassi Brar wrote: > From: Suman Anna > > The patch 30058677 "ARM / highbank: add support for pl320 IPC" > added a pl320 IPC specific header file as a generic mailbox.h. > This file has been renamed appropriately to allow the > introduction of the generic

Re: [PATCH v3 tip/core/rcu 1/9] rcu: Add call_rcu_tasks()

2014-08-01 Thread Paul E. McKenney
On Fri, Aug 01, 2014 at 04:11:44PM +0200, Oleg Nesterov wrote: > On 07/31, Paul E. McKenney wrote: > > > > +/* Lists of tasks that we are still waiting for during this grace period. > > */ > > +static LIST_HEAD(rcu_tasks_holdouts); Good point, fixed! > This can be local var in rcu_tasks_kthread(

Re: [PATCH 3/5] x86: entry_64.S: fold SAVE_ARGS_IRQ macro into its sole user

2014-08-01 Thread Frederic Weisbecker
On Fri, Aug 01, 2014 at 04:48:16PM +0200, Denys Vlasenko wrote: > No code changes. > > This is a preparatory patch for change in "struct pt_regs" handling. > > Signed-off-by: Denys Vlasenko > CC: Oleg Nesterov > CC: "H. Peter Anvin" > CC: Andy Lutomirski One macro dissolved == one Hop-o'-My-

Re: [PATCH 4/5] x86: entry_64.S: always allocate complete "struct pt_regs"

2014-08-01 Thread Oleg Nesterov
On 08/01, Denys Vlasenko wrote: > > This patch changes code to always allocate a complete "struct pt_regs". > The saving of registers is still done lazily. I obviously like this change very much. Unfortunately I can only ack the intent ;) I really hope that maintainers will take a closer look. O

Re: [PATCH v3 tip/core/rcu 3/9] rcu: Add synchronous grace-period waiting for RCU-tasks

2014-08-01 Thread Paul E. McKenney
On Fri, Aug 01, 2014 at 05:09:26PM +0200, Oleg Nesterov wrote: > On 07/31, Paul E. McKenney wrote: > > > > +void synchronize_rcu_tasks(void) > > +{ > > + /* Complain if the scheduler has not started. */ > > + rcu_lockdep_assert(!rcu_scheduler_active, > > + "synchronize_rcu

Re: [PATCH 4/5] x86: entry_64.S: always allocate complete "struct pt_regs"

2014-08-01 Thread H. Peter Anvin
On 08/01/2014 07:48 AM, Denys Vlasenko wrote: > > Patch was run-tested: 64-bit executables, 32-bit executables, > strace works. > Could you please try to see if there is a measurable change in the latency of a trivial syscall? -hpa -- To unsubscribe from this list: send the line "unsu

Re: [PATCHv10 2/4] mailbox: Introduce framework for mailbox

2014-08-01 Thread Mark Brown
On Fri, Aug 01, 2014 at 06:01:36PM +0530, Jassi Brar wrote: > Introduce common framework for client/protocol drivers and > controller drivers of Inter-Processor-Communication (IPC). > > Client driver developers should have a look at > include/linux/mailbox_client.h to understand the part of > the

Re: [PATCH v2 tip/core/rcu 01/10] rcu: Add call_rcu_tasks()

2014-08-01 Thread Oleg Nesterov
On 08/01, Paul E. McKenney wrote: > > On Fri, Aug 01, 2014 at 05:53:10PM +0200, Oleg Nesterov wrote: > > On 07/30, Paul E. McKenney wrote: > > > > > > + rcu_read_lock(); > > > + for_each_process_thread(g, t) { > > > + if (t != current && ACCESS_ONCE(t->on_rq) && > >

Re: [PATCHv10 4/4] dt: mailbox: add generic bindings

2014-08-01 Thread Mark Brown
On Fri, Aug 01, 2014 at 06:02:45PM +0530, Jassi Brar wrote: > +Optional property: > +- mbox-names: List of identifier strings for each mailbox channel > + required by the client. The use of this property > + is discouraged in favor of using index in list of > +

Re: [PATCH v3 tip/core/rcu 1/9] rcu: Add call_rcu_tasks()

2014-08-01 Thread Oleg Nesterov
On 08/01, Paul E. McKenney wrote: > > On Fri, Aug 01, 2014 at 04:11:44PM +0200, Oleg Nesterov wrote: > > Not sure this makes any sense, but perhaps we can check for the new > > callbacks and start the next gp. IOW, the main loop roughly does > > > > for (;;) { > > list = rcu_tasks_c

Re: [PATCH v8 04/22] Change direct_access calling convention

2014-08-01 Thread Zwisler, Ross
On Thu, 2014-07-31 at 14:30 -0600, Ross Zwisler wrote: > On Thu, 2014-07-31 at 21:04 +0300, Boaz Harrosh wrote: > > On 07/31/2014 08:19 PM, Matthew Wilcox wrote: > > > On Thu, Jul 31, 2014 at 06:28:37PM +0300, Boaz Harrosh wrote: > > >> Matthew what is your opinion about this, do we need to push fo

Re: [PATCH 2/2] memcg, vmscan: Fix forced scan of anonymous pages

2014-08-01 Thread Johannes Weiner
On Thu, Jul 31, 2014 at 02:30:26PM +0200, Michal Hocko wrote: > On Thu 31-07-14 13:49:45, Jerome Marchand wrote: > > @@ -1950,8 +1950,11 @@ static void get_scan_count(struct lruvec *lruvec, > > int swappiness, > > */ > > if (global_reclaim(sc)) { > > unsigned long free = zone_

Re: [PATCH 2/3] x86 perf: Protect LBR msrs accessing against potential #GP

2014-08-01 Thread Peter Zijlstra
On Fri, Aug 01, 2014 at 03:21:20PM +0200, Andi Kleen wrote: > > > NAK! > > > > > > I already said this isn't going to ever happen. > > > > > > Both PT and LBR are arbitrated through the kernel, therefore we can (and > > > must) deny PT when there's existing LBR usage and vice versa. > > > > > >

Re: [PATCH 2/2] memcg, vmscan: Fix forced scan of anonymous pages

2014-08-01 Thread Michal Hocko
On Fri 01-08-14 14:45:25, Johannes Weiner wrote: > On Thu, Jul 31, 2014 at 02:30:26PM +0200, Michal Hocko wrote: > > On Thu 31-07-14 13:49:45, Jerome Marchand wrote: > > > @@ -1950,8 +1950,11 @@ static void get_scan_count(struct lruvec *lruvec, > > > int swappiness, > > >*/ > > > if (global_

Re: [PATCH v3 tip/core/rcu 1/9] rcu: Add call_rcu_tasks()

2014-08-01 Thread Oleg Nesterov
On 07/31, Paul E. McKenney wrote: > > + rcu_read_lock(); > + for_each_process_thread(g, t) { > + if (t != current && ACCESS_ONCE(t->on_rq) && > + !is_idle_task(t)) { > + get_task_struct(t); > +

Re: [PATCH v4 net-next 5/5] net: filter: split 'struct sk_filter' into socket and bpf parts

2014-08-01 Thread Pablo Neira Ayuso
On Fri, Aug 01, 2014 at 09:50:31AM -0700, Alexei Starovoitov wrote: > On Fri, Aug 1, 2014 at 9:06 AM, Pablo Neira Ayuso wrote: > > On Thu, Jul 31, 2014 at 02:02:19PM -0700, Alexei Starovoitov wrote: > >> On Thu, Jul 31, 2014 at 12:40 PM, Pablo Neira Ayuso > >> wrote: > >> > On Wed, Jul 30, 2014

[PATCH v3] EEPROM: Introduce the use of devm_kzalloc

2014-08-01 Thread Himangi Saraogi
This patch introduces the use of devm_kzalloc and does away with the kfrees in the probe and remove functions. Also, a label and the err variable are removed. The header device.h is included to make the devm_ function explicitly available and slab.h is done away with as it is no longer needed. Sig

Re: [PATCH v4 net-next 5/5] net: filter: split 'struct sk_filter' into socket and bpf parts

2014-08-01 Thread Alexei Starovoitov
On Fri, Aug 1, 2014 at 12:03 PM, Pablo Neira Ayuso wrote: >> > I think you can allocate the sk_filter once you get the final bpf >> > program, then you can memcpy() it. This adds some extra overhead in >> > the sk_attach_filter(), but that path is executed from user context >> > and it's also a ra

Re: [PATCH] jffs2: Re-enable write-buffering after filesystem sync

2014-08-01 Thread Al Viro
On Fri, Aug 01, 2014 at 01:15:45PM -0400, Jeff Harris wrote: > On Fri, Aug 1, 2014 at 12:56 PM, Al Viro wrote: > > > > On Fri, Aug 01, 2014 at 12:06:12PM -0400, Jeff Harris wrote: > > > > > + spin_lock(&c->wbuf_dwork_lock); > > > cancel_delayed_work_sync(&c->wbuf_dwork); > > > > Umm...

Re: [PATCH] cpufreq, store_scaling_governor requires policy->rwsem to be held for duration of changing governors [v2]

2014-08-01 Thread Prarit Bhargava
On 08/01/2014 01:18 PM, Stephen Boyd wrote: > On 08/01/14 03:27, Prarit Bhargava wrote: >> >> Can you send me the test and the trace of the deadlock? I'm not creating it >> with: >> > > This was with conservative as the default, and switching to ondemand > > # cd /sys/devices/system/cpu/cpu2/

Re: [PATCH] clk: tegra: Implement memory-controller clock

2014-08-01 Thread Stephen Warren
On 08/01/2014 06:09 AM, Thierry Reding wrote: From: Thierry Reding The memory controller clock runs either at half or the same frequency as the EMC clock. Very quickly, Reviewed-by: Stephen Warren -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mes

Re: [PATCH v2 1/1] vfs: Respect MS_RDONLY at bind mount creation

2014-08-01 Thread Mateusz Guzik
On Fri, Aug 01, 2014 at 02:12:24PM -0400, Richard Yao wrote: > `mount -o bind,ro ...` suffers from a silent failure where the readonly > flag is ignored. The bind mount will be created rw whenever the target > is rw. Users typically workaround this by remounting readonly, but that > does not work w

Re: MNT_DETACH and mount namespace issue

2014-08-01 Thread Richard Weinberger
Am 01.08.2014 17:44, schrieb Ram Pai: > On Fri, Aug 01, 2014 at 12:17:13AM +0200, Richard Weinberger wrote: >> Am 30.07.2014 22:46, schrieb Richard Weinberger: >>> Am 30.07.2014 15:59, schrieb Richard Weinberger: If we use the plain list_empty() we might not see the hlist_del_init_rcu() a

[PATCH -mm v6 08/13] numa_maps: remove numa_maps->vma

2014-08-01 Thread Naoya Horiguchi
pagewalk.c can handle vma in itself, so we don't have to pass vma via walk->private. And show_numa_map() walks pages on vma basis, so using walk_page_vma() is preferable. ChangeLog v4: - remove redundant vma Signed-off-by: Naoya Horiguchi Acked-by: Kirill A. Shutemov --- fs/proc/task_mmu.c | 2

[PATCH -mm v6 12/13] mm: /proc/pid/clear_refs: avoid split_huge_page()

2014-08-01 Thread Naoya Horiguchi
From: "Kirill A. Shutemov" Currently pagewalker splits all THP pages on any clear_refs request. It's not necessary. We can handle this on PMD level. One side effect is that soft dirty will potentially see more dirty memory, since we will mark whole THP page dirty at once. Sanity checked with

[PATCH -mm v6 11/13] mempolicy: apply page table walker on queue_pages_range()

2014-08-01 Thread Naoya Horiguchi
queue_pages_range() does page table walking in its own way now, but there is some code duplicate. This patch applies page table walker to reduce lines of code. queue_pages_range() has to do some precheck to determine whether we really walk over the vma or just skip it. Now we have test_walk() call

[PATCH -mm v6 03/13] pagewalk: add walk_page_vma()

2014-08-01 Thread Naoya Horiguchi
Introduces walk_page_vma(), which is useful for the callers which want to walk over a given vma. It's used by later patches. ChangeLog v3: - check walk_page_test's return value instead of walk->skip Signed-off-by: Naoya Horiguchi Acked-by: Kirill A. Shutemov --- include/linux/mm.h | 1 + mm/

<    1   2   3   4   5   6   >