Re: [PATCH] can: pcan_usb_core: fix memory leak on failure paths in peak_usb_start()

2013-09-05 Thread Stephane Grosjean
Le 06/09/2013 08:56, Marc Kleine-Budde a écrit : On 09/06/2013 08:52 AM, Stephane Grosjean wrote: Tx and rx urbs are not deallocated if something goes wrong in peak_usb_start(). The patch fixes error handling to deallocate all the resources. Found by Linux Driver Verification project (linuxtes

Re: [PATCH] ARM: OMAP2+: am335x-bone*: add DT for BeagleBone Black

2013-09-05 Thread George Cherian
On 9/6/2013 12:03 PM, Koen Kooi wrote: The BeagleBone Black is basically a regular BeagleBone with eMMC and HDMI added, so create a common dtsi both can use. MMC support for AM335x still isn't in, so only the LDO change has been added. Signed-off-by: Koen Kooi --- .../{am335x-bone.dts => am33

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-05 Thread Gleb Natapov
On Thu, Sep 05, 2013 at 02:05:09PM +1000, Benjamin Herrenschmidt wrote: > On Tue, 2013-09-03 at 13:53 +0300, Gleb Natapov wrote: > > > Or supporting all IOMMU links (and leaving emulated stuff as is) in on > > > "device" is the last thing I have to do and then you'll ack the patch? > > > > > I am

Re: [PATCH] can: pcan_usb_core: fix memory leak on failure paths in peak_usb_start()

2013-09-05 Thread Marc Kleine-Budde
On 09/06/2013 08:52 AM, Stephane Grosjean wrote: > Tx and rx urbs are not deallocated if something goes wrong in > peak_usb_start(). > The patch fixes error handling to deallocate all the resources. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khor

Re: [PATCH] VMCI: fix to pass correct device identity to free_irq()

2013-09-05 Thread Dmitry Torokhov
On Fri, Sep 06, 2013 at 02:39:28PM +0800, Wei Yongjun wrote: > From: Wei Yongjun > > free_irq() expects the same device identity that was passed to > corresponding request_irq(), otherwise the IRQ is not freed. > > Signed-off-by: Wei Yongjun Acked-by: Dmitry Torokhov > --- > drivers/misc/vm

[PATCH V3] PCI: exynos: add support for MSI

2013-09-05 Thread Jingoo Han
This patch adds support for Message Signaled Interrupt in the Exynos PCIe diver using Synopsys designware PCIe core IP. Signed-off-by: Siva Reddy Kallam Signed-off-by: Srikanth T Shivanand Signed-off-by: Jingoo Han Cc: Pratyush Anand Cc: Mohit KUMAR --- Changes since v2: - fixed MAX_MSI_CTRLS

Re: [PATCH 2/2] fsl: set wakeup sources

2013-09-05 Thread Hongbo Zhang
Sorry linux-kernel subscribers, This is for team internal review, linux-kernel is cced due to my carelessness, omit this mail please. On 09/06/2013 02:46 PM, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang Some devices can work as wakeup sources, they should be powerred on during syste

Re: [PATCH v4 3/5] clk: dt: binding for basic multiplexer clock

2013-09-05 Thread Tero Kristo
Hi, Chirping in my thoughts below. On 09/05/2013 11:30 PM, Stephen Warren wrote: On 09/05/2013 12:29 PM, Mike Turquette wrote: On Wed, Sep 4, 2013 at 11:36 AM, Stephen Warren wrote: On 09/03/2013 05:22 PM, Mike Turquette wrote: Quoting Stephen Warren (2013-08-30 14:37:46) On 08/30/2013 02:

Re: [PATCH v14 0/6] LSM: Multiple concurrent LSMs

2013-09-05 Thread Casey Schaufler
On 9/5/2013 11:48 AM, Kees Cook wrote: > On Mon, Aug 26, 2013 at 7:29 PM, Casey Schaufler > wrote: >> On 8/6/2013 3:36 PM, Kees Cook wrote: >>> On Tue, Aug 6, 2013 at 3:25 PM, Casey Schaufler >>> wrote: On 8/5/2013 11:30 PM, Kees Cook wrote: > On Thu, Jul 25, 2013 at 11:52 PM, Casey Sc

[PATCH 2/2] fsl: set wakeup sources

2013-09-05 Thread hongbo.zhang
From: Hongbo Zhang Some devices can work as wakeup sources, they should be powerred on during system deep sleep, this patch adds interface for configuring devices power supply status during deep sleep. Signed-off-by: Hongbo Zhang --- arch/powerpc/boot/dts/fsl/qoriq-power.dtsi | 73 ++

[PATCH v2 2/4] ab8500-charger: Remove redundant break

2013-09-05 Thread Sachin Kamat
Each of the if-else blocks has a break statement. Remove the additional one which is unreachable. Signed-off-by: Sachin Kamat --- No changes since v1. --- drivers/power/ab8500_charger.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/power/ab8500_charger.c b/drivers/power/ab8500_ch

[PATCH v2 4/4] pm2301-charger: Staticize pm2xxx_charger_die_therm_mngt

2013-09-05 Thread Sachin Kamat
pm2xxx_charger_die_therm_mngt is used only in this file. Make it static. Signed-off-by: Sachin Kamat Acked-by: Lee Jones --- No changes since v1. --- drivers/power/pm2301_charger.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/pm2301_charger.c b/drivers/po

[PATCH v2 1/4] ab8500-charger: Check return value of regulator_enable

2013-09-05 Thread Sachin Kamat
Check the return value of regulator_enable to silence the following type of warnings: drivers/power/ab8500_charger.c:1390:20: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Sachin Kamat Cc: Lee Jones --- Compile t

[PATCH v2 3/4] pm2301-charger: Check return value of regulator_enable

2013-09-05 Thread Sachin Kamat
Check the return value of regulator_enable to silence the following warning: drivers/power/pm2301_charger.c:725:20: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Sachin Kamat Cc: Lee Jones --- Compile tested. Cha

[PATCH] perf kvm: fix sample_type manipulation

2013-09-05 Thread Adrian Hunter
Manipulating the sample_type of an evsel requires the use of: perf_evsel__set_sample_bit() and perf_evsel__reset_sample_bit() Manipulating the sample type of an evlist requires the id position to be recalculated. Signed-off-by: Adrian Hunter --- tools/perf/builtin-kvm.c | 20 +++

Re: [PATCH v2 4/4] mm/zswap: use GFP_NOIO instead of GFP_KERNEL

2013-09-05 Thread Bob Liu
On 09/06/2013 01:16 PM, Weijie Yang wrote: > To avoid zswap store and reclaim functions called recursively, > use GFP_NOIO instead of GFP_KERNEL > The reason of using GFP_KERNEL in write back path is we want to try our best to move those pages from zswap to real swap device. I think it would be

Re: linux-next: problem fetching the watchdog tree

2013-09-05 Thread Wim Van Sebroeck
Hi Stephen, > Fetching the wireless tree yesterday and today produced this error: > > fatal: unable to connect to www.linux-watchdog.org: > www.linux-watchdog.org[0: 83.149.101.17]: errno=Connection refused Strange. I had a git zombie process, got rid of it i2 days ago and restarted git but appa

[PATCH] VMCI: fix to pass correct device identity to free_irq()

2013-09-05 Thread Wei Yongjun
From: Wei Yongjun free_irq() expects the same device identity that was passed to corresponding request_irq(), otherwise the IRQ is not freed. Signed-off-by: Wei Yongjun --- drivers/misc/vmw_vmci/vmci_guest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/vmw_v

Re: [PATCH 1/2] SDT markers listing by perf

2013-09-05 Thread Namhyung Kim
Hi Hemant, On Wed, 04 Sep 2013 23:07:57 +0530, Hemant wrote: > On 09/04/2013 12:12 PM, Namhyung Kim wrote: >> On Tue, 03 Sep 2013 13:06:55 +0530, Hemant Kumar wrote: >>> + /* >>> +* Look for Section type = SHT_NOTE, flags = no SHF_ALLOC >>> +* and name = .note.stapsdt >>> +*/ >>> +

[PATCH] ARM: OMAP2+: am335x-bone*: add DT for BeagleBone Black

2013-09-05 Thread Koen Kooi
The BeagleBone Black is basically a regular BeagleBone with eMMC and HDMI added, so create a common dtsi both can use. MMC support for AM335x still isn't in, so only the LDO change has been added. Signed-off-by: Koen Kooi --- .../{am335x-bone.dts => am335x-bone-common.dtsi} | 3 - arch/arm/b

Re: [PATCH v2 2/4] mm/zswap: bugfix: memory leak when invalidate and reclaim occur concurrently

2013-09-05 Thread Bob Liu
On 09/06/2013 01:16 PM, Weijie Yang wrote: > Consider the following scenario: > thread 0: reclaim entry x (get refcount, but not call > zswap_get_swap_cache_page) > thread 1: call zswap_frontswap_invalidate_page to invalidate entry x. > finished, entry x and its zbud is not freed as its ref

Re: [PATCH v2 3/4] mm/zswap: avoid unnecessary page scanning

2013-09-05 Thread Bob Liu
On 09/06/2013 01:16 PM, Weijie Yang wrote: > add SetPageReclaim before __swap_writepage so that page can be moved to the > tail of the inactive list, which can avoid unnecessary page scanning as this > page was reclaimed by swap subsystem before. > > Signed-off-by: Weijie Yang Reviewed-by: Bob

Re: [PATCH v2 1/4] mm/zswap: bugfix: memory leak when re-swapon

2013-09-05 Thread Bob Liu
On 09/06/2013 01:16 PM, Weijie Yang wrote: > zswap_tree is not freed when swapoff, and it got re-kmalloc in swapon, > so memory-leak occurs. > > Modify: free memory of zswap_tree in zswap_frontswap_invalidate_area(). > > Signed-off-by: Weijie Yang Reviewed-by: Bob Liu > --- > mm/zswap.c |

Re: [PATCH 2/2] cpufreq: serialize calls to __cpufreq_governor()

2013-09-05 Thread Srivatsa S. Bhat
On 09/05/2013 06:24 AM, Stephen Boyd wrote: > On 09/04/13 17:26, Rafael J. Wysocki wrote: >> On Wednesday, September 04, 2013 04:50:01 PM Stephen Boyd wrote: >>> On 09/04/13 16:55, Rafael J. Wysocki wrote: Well, I'm not sure when Viresh is going to be back. Srivatsa, can you please r

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-05 Thread Alexey Kardashevskiy
On 09/06/2013 04:01 PM, Gleb Natapov wrote: > On Fri, Sep 06, 2013 at 09:38:21AM +1000, Alexey Kardashevskiy wrote: >> On 09/06/2013 04:10 AM, Gleb Natapov wrote: >>> On Wed, Sep 04, 2013 at 02:01:28AM +1000, Alexey Kardashevskiy wrote: On 09/03/2013 08:53 PM, Gleb Natapov wrote: > On Mon,

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-05 Thread Gleb Natapov
On Fri, Sep 06, 2013 at 09:38:21AM +1000, Alexey Kardashevskiy wrote: > On 09/06/2013 04:10 AM, Gleb Natapov wrote: > > On Wed, Sep 04, 2013 at 02:01:28AM +1000, Alexey Kardashevskiy wrote: > >> On 09/03/2013 08:53 PM, Gleb Natapov wrote: > >>> On Mon, Sep 02, 2013 at 01:14:29PM +1000, Alexey Karda

[PATCH] mmc: sdhci: add support for pre_req and post_req

2013-09-05 Thread Chanho Min
This patch supports non-blocking mmc request function for the sdchi driver. (commit: aa8b683a7d392271ed349c6ab9f36b8c313794b7) pre_req() runs dma_map_sg(), post_req() runs dma_unmap_sg. If not calling pre_req() before sdhci_request(), dma_map_sg will be issued before starting the transfer. It is

[REPOST PATCH 2/4] slab: introduce helper functions to get/set free object

2013-09-05 Thread Joonsoo Kim
In the following patches, to get/set free objects from the freelist is changed so that simple casting doesn't work for it. Therefore, introduce helper functions. Signed-off-by: Joonsoo Kim diff --git a/mm/slab.c b/mm/slab.c index 9d4bad5..a0e49bb 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -2545,9

[REPOST PATCH 1/4] slab: factor out calculate nr objects in cache_estimate

2013-09-05 Thread Joonsoo Kim
This logic is not simple to understand so that making separate function helping readability. Additionally, we can use this change in the following patch which implement for freelist to have another sized index in according to nr objects. Signed-off-by: Joonsoo Kim diff --git a/mm/slab.c b/mm/sla

Re: [PATCH 0/4] slab: implement byte sized indexes for the freelist of a slab

2013-09-05 Thread Joonsoo Kim
On Thu, Sep 05, 2013 at 02:33:56PM +, Christoph Lameter wrote: > On Thu, 5 Sep 2013, Joonsoo Kim wrote: > > > I think that all patchsets deserve to be merged, since it reduces memory > > usage and > > also improves performance. :) > > Could you clean things up etc and the repost the patchset

[REPOST PATCH 3/4] slab: introduce byte sized index for the freelist of a slab

2013-09-05 Thread Joonsoo Kim
Currently, the freelist of a slab consist of unsigned int sized indexes. Most of slabs have less number of objects than 256, since restriction for page order is at most 1 in default configuration. For example, consider a slab consisting of 32 byte sized objects on two continous pages. In this case,

[REPOST PATCH 4/4] slab: make more slab management structure off the slab

2013-09-05 Thread Joonsoo Kim
Now, the size of the freelist for the slab management diminish, so that the on-slab management structure can waste large space if the object of the slab is large. Consider a 128 byte sized slab. If on-slab is used, 31 objects can be in the slab. The size of the freelist for this case would be 31 b

[REPOST PATCH 0/4] slab: implement byte sized indexes for the freelist of a slab

2013-09-05 Thread Joonsoo Kim
* THIS IS JUST REPOSTED ACCORDING TO MAINTAINER'S REQUEST * * Changes from original post Correct the position of the results. Attach more results about cache-misses and elapsed time on a hackbench test. - This patchset implements byte sized inde

Re: [PATCH V4] regulator: palmas: add support for external control of rails

2013-09-05 Thread Laxman Dewangan
On Thursday 05 September 2013 09:04 PM, Mark Brown wrote: * PGP Signed by an unknown key On Thu, Sep 05, 2013 at 08:27:24PM +0530, Laxman Dewangan wrote: On Thursday 05 September 2013 08:04 PM, Lee Jones wrote: It won't go in until v3.12 now, but I have applied the patch. Thanks Lee for takin

[PATCH] perf tools: Free strlist in strlist__delete()

2013-09-05 Thread Namhyung Kim
From: Namhyung Kim It seems strlist never deleted after allocated. AFAICS every strlist is allocated dynamically, just free it in the _delete() function. Signed-off-by: Namhyung Kim --- tools/perf/util/strlist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf

Re: [RFC PATCH v3 09/35] mm: Track the freepage migratetype of pages accurately

2013-09-05 Thread Srivatsa S. Bhat
On 09/04/2013 01:53 PM, Yasuaki Ishimatsu wrote: > (2013/09/03 17:45), Srivatsa S. Bhat wrote: >> On 09/03/2013 12:08 PM, Yasuaki Ishimatsu wrote: >>> (2013/08/30 22:16), Srivatsa S. Bhat wrote: Due to the region-wise ordering of the pages in the buddy allocator's free lists, whenever we

[PATCH v3 06/20] mm, hugetlb: return a reserved page to a reserved pool if failed

2013-09-05 Thread Joonsoo Kim
If we fail with a reserved page, just calling put_page() is not sufficient, because put_page() invoke free_huge_page() at last step and it doesn't know whether a page comes from a reserved pool or not. So it doesn't do anything related to reserved count. This makes reserve count lower than how we n

[PATCH v3 03/20] mm, hugetlb: fix subpool accounting handling

2013-09-05 Thread Joonsoo Kim
There is a case that we attempt to allocate a hugepage with chg = 0 and avoid_reserve = 1. Although chg = 0 means that it has a reserved hugepage, we wouldn't use it, since avoid_reserve = 1 represents that we don't want to allocate a hugepage from a reserved pool. This happens when the parent proc

[PATCH v3 03/20] mm, hugetlb: fix subpool accounting handling

2013-09-05 Thread Joonsoo Kim
There is a case that we attempt to allocate a hugepage with chg = 0 and avoid_reserve = 1. Although chg = 0 means that it has a reserved hugepage, we wouldn't use it, since avoid_reserve = 1 represents that we don't want to allocate a hugepage from a reserved pool. This happens when the parent proc

[PATCH v2 1/4] mm/zswap: bugfix: memory leak when re-swapon

2013-09-05 Thread Weijie Yang
zswap_tree is not freed when swapoff, and it got re-kmalloc in swapon, so memory-leak occurs. Modify: free memory of zswap_tree in zswap_frontswap_invalidate_area(). Signed-off-by: Weijie Yang --- mm/zswap.c |4 1 file changed, 4 insertions(+) diff --git a/mm/zswap.c b/mm/zswap.c inde

[PATCH v2 2/4] mm/zswap: bugfix: memory leak when invalidate and reclaim occur concurrently

2013-09-05 Thread Weijie Yang
Consider the following scenario: thread 0: reclaim entry x (get refcount, but not call zswap_get_swap_cache_page) thread 1: call zswap_frontswap_invalidate_page to invalidate entry x. finished, entry x and its zbud is not freed as its refcount != 0 now, the swap_map[x] = 0 thread 0:

[PATCH v2 3/4] mm/zswap: avoid unnecessary page scanning

2013-09-05 Thread Weijie Yang
add SetPageReclaim before __swap_writepage so that page can be moved to the tail of the inactive list, which can avoid unnecessary page scanning as this page was reclaimed by swap subsystem before. Signed-off-by: Weijie Yang --- mm/zswap.c |3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v2 4/4] mm/zswap: use GFP_NOIO instead of GFP_KERNEL

2013-09-05 Thread Weijie Yang
To avoid zswap store and reclaim functions called recursively, use GFP_NOIO instead of GFP_KERNEL Signed-off-by: Weijie Yang --- mm/zswap.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/zswap.c b/mm/zswap.c index cc40e6a..3d05ed8 100644 --- a/mm/zswap.c +++ b/mm

[PATCH v2 0/4] mm/zswap bugfix: memory leaks and other problems

2013-09-05 Thread Weijie Yang
This patch series fix a few bugs in zswap based on Linux-3.11. v1 --> v2 - free memory in zswap_frontswap_invalidate_area (in patch 1) - fix whitespace corruption (line wrapping) Corresponding mail thread: https://lkml.org/lkml/2013/8/18/59 These issues fixed/optimized are: 1.

Re: [PATCH v3 0/2] ext4: increase mbcache scalability

2013-09-05 Thread Andreas Dilger
On 2013-09-05, at 3:49 AM, Thavatchai Makphaibulchoke wrote: > On 09/05/2013 02:35 AM, Theodore Ts'o wrote: >> How did you gather these results? The mbcache is only used if you >> are using extended attributes, and only if the extended attributes don't fit >> in the inode's extra space. >> >> I

linux-next: build warning after merge of the ceph tree

2013-09-05 Thread Stephen Rothwell
Hi Sage, After merging the ceph tree, today's linux-next build (x86_64 allmodconfig) produced this warning: In file included from fs/ceph/super.h:4:0, from fs/ceph/cache.c:26: include/linux/ceph/ceph_debug.h:4:0: warning: "pr_fmt" redefined [enabled by default] #define pr_fmt(f

Re: [PATCH] ethernet/arc/arc_emac: optimize the Tx/Tx-reclaim paths a bit

2013-09-05 Thread David Miller
From: Vineet Gupta Date: Fri, 6 Sep 2013 04:24:39 + > On 09/05/2013 11:54 PM, David Miller wrote: >> You should keep the check in the transmit queueing code as a BUG check, >> almost every driver has code of the form (using NIU as an example): ... >> Otherwise queue management bugs are incre

Re: [PATCH 7/9] KGDB/KDB: add new system NMI entry code to KDB

2013-09-05 Thread Jason Wessel
On 09/05/2013 05:50 PM, Mike Travis wrote: > This patch adds a new "KDB_REASON" code (KDB_REASON_SYSTEM_NMI). This > is purely cosmetic to distinguish it from the other various reasons that > NMI may occur and are usually after an error occurred. Also the dumping > of registers is not done to mor

Re: [PATCH RESEND v3 3/7] Intel MIC Host Driver, card OS state management.

2013-09-05 Thread Greg Kroah-Hartman
On Thu, Sep 05, 2013 at 04:41:55PM -0700, Sudeep Dutt wrote: > +What:/sys/class/mic/mic(x)/firmware > +Date:August 2013 > +KernelVersion: 3.11 > +Contact: Sudeep Dutt > +Description: > + When read, this sysfs entry provides the path name under

Re: [PATCH RESEND v3 3/7] Intel MIC Host Driver, card OS state management.

2013-09-05 Thread Greg Kroah-Hartman
On Thu, Sep 05, 2013 at 04:41:55PM -0700, Sudeep Dutt wrote: > +What:/sys/class/mic/mic(x)/cmdline > +Date:August 2013 > +KernelVersion: 3.11 > +Contact: Sudeep Dutt > +Description: > + An Intel MIC device runs a Linux OS during its operation.

Re: [PATCH RESEND v3 3/7] Intel MIC Host Driver, card OS state management.

2013-09-05 Thread Greg Kroah-Hartman
Again, very minor fixups for later (I can even do them...) > +static DEVICE_ATTR(state, S_IRUGO|S_IWUSR, mic_show_state, mic_store_state); DEVICE_ATTR_RW() please. Same for the other attributes you create in this patch. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscr

Re: [PATCH v2 1/1] dcache: Translating dentry into pathname without taking rename_lock

2013-09-05 Thread Linus Torvalds
On Thu, Sep 5, 2013 at 7:01 PM, Waiman Long wrote: > > I am sorry that I misunderstand what you said. I will do what you and Al > advise me to do. I'm sorry I shouted at you. I was getting a bit frustrated there.. Linus -- To unsubscribe from this list: send the line "unsubscribe lin

Re: [PATCH RESEND v3 1/7] Intel MIC Host Driver for X100 family.

2013-09-05 Thread Greg Kroah-Hartman
On Thu, Sep 05, 2013 at 04:41:31PM -0700, Sudeep Dutt wrote: > drivers/misc/mic/common/mic_device.h | 37 +++ > drivers/misc/mic/host/mic_device.h| 109 + Two different files, with the same name? You are asking for trouble in the future, getting them confused :) Ple

Re: [PATCH RESEND v3 1/7] Intel MIC Host Driver for X100 family.

2013-09-05 Thread Greg Kroah-Hartman
Very minor nits, you can change this in a future add-on patch: > +static DEVICE_ATTR(family, S_IRUGO, mic_show_family, NULL); This should use DEVICE_ATTR_RO(), so that we don't have to audit the permissions of your DEVICE_ATTR() files. > +static DEVICE_ATTR(stepping, S_IRUGO, mic_show_stepping,

Re: [PATCH 0/8] ceph: fscache support & upstream changes

2013-09-05 Thread Milosz Tanski
David, After running this for a day on some loaded machines I ran into what looks like an old issue with the new code. I remember you saw an issue that manifested it self in a similar way a while back. [13837253.462779] FS-Cache: Assertion failed [13837253.462782] 3 == 5 is false [13837253.462807

Re: [PATCH 2/3] thermal: samsung: change base_common to more meaningful base_second

2013-09-05 Thread amit daniel kachhap
On Wed, Sep 4, 2013 at 9:53 AM, Naveen Krishna Chatradhi wrote: > On Exynos5440 and Exynos5420 there are registers common > across the TMU channels. > > To support that, we introduced a ADDRESS_MULTIPLE flag in the > driver and the 2nd set of register base and size are provided > in the "reg" prop

Re: [PATCH 5/9] KGDB/KDB: add support for external NMI handler to call KGDB/KDB.

2013-09-05 Thread Jason Wessel
On 09/05/2013 05:50 PM, Mike Travis wrote: > This patch adds a kgdb_nmicallin() interface that can be used by > external NMI handlers to call the KGDB/KDB handler. The primary need > for this is for those types of NMI interrupts where all the CPUs > have already received the NMI signal. Therefore

Re: [PATCH] ethernet/arc/arc_emac: optimize the Tx/Tx-reclaim paths a bit

2013-09-05 Thread Vineet Gupta
Hi David, On 09/05/2013 11:54 PM, David Miller wrote: > From: Vineet Gupta > Date: Wed, 4 Sep 2013 18:33:11 +0530 > >> This came out of staring at code due to recent performance fix. >> >> * TX BD reclaim can call netif_wake_queue() once, outside the loop if >> one/more BDs were freed, NO need

Re: [PATCH] net: stmmac: fix bad merge conflict resolution

2013-09-05 Thread Stephen Rothwell
Hi all, On Thu, 05 Sep 2013 22:58:17 -0400 (EDT) David Miller wrote: > > From: Olof Johansson > Date: Thu, 5 Sep 2013 18:01:41 -0700 > > > Merge commit 06c54055bebf919249aa1eb68312887c3cfe77b4 did a bad conflict > > resolution accidentally leaving out a closing brace. Add it back. > > > > Si

[PATCH 0/5] Squashfs: extra sanity checks and sanity check fixes

2013-09-05 Thread Phillip Lougher
Hi, Following on from the "Squashfs: sanity check information from disk" patch from Dan Carpenter, I have added a couple more sanity checks, and fixed a couple of existing sanity checks (including the patch from Dan Carpenter). These sanity checks mainly exist to trap maliciously corrupted filesy

[PATCH 2/5] Squashfs: fix corruption checks in squashfs_lookup()

2013-09-05 Thread Phillip Lougher
The dir_count and size fields when read from disk are sanity checked for correctness. However, the sanity checks only check the values are not greater than expected. As dir_count and size were incorrectly defined as signed ints, this can lead to corrupted values appearing as negative which are no

[PATCH 4/5] Squashfs: add corruption check in get_dir_index_using_offset()

2013-09-05 Thread Phillip Lougher
We read the size (of the name) field from disk. This value should be sanity checked for correctness to avoid blindly reading huge amounts of unnecessary data from disk on corruption. Note, here we're not actually reading the name into a buffer, but skipping it, and so corruption doesn't cause buf

[PATCH 3/5] Squashfs: fix corruption checks in squashfs_readdir()

2013-09-05 Thread Phillip Lougher
The dir_count and size fields when read from disk are sanity checked for correctness. However, the sanity checks only check the values are not greater than expected. As dir_count and size were incorrectly defined as signed ints, this can lead to corrupted values appearing as negative which are no

[PATCH 5/5] Squashfs: add corruption check for type in squashfs_readdir()

2013-09-05 Thread Phillip Lougher
We read the type field from disk. This value should be sanity checked for correctness to avoid an out of bounds access when reading the squashfs_filetype_table array. Signed-off-by: Phillip Lougher --- fs/squashfs/dir.c | 7 +-- fs/squashfs/squashfs_fs.h | 5 - 2 files changed,

[PATCH 1/5] Squashfs: fix corruption check in get_dir_index_using_name()

2013-09-05 Thread Phillip Lougher
Patch "Squashfs: sanity check information from disk" from Dan Carpenter adds a missing check for corruption in the "size" field while reading the directory index from disk. It, however, sets err to -EINVAL, this value is not used later, and so setting it is completely redundant. So remove it. Er

Re: ftrace 'failed to modify' bug when loading reiserfs.ko

2013-09-05 Thread Dave Jones
On Thu, Sep 05, 2013 at 09:51:54PM -0400, Steven Rostedt wrote: > On Thu, 5 Sep 2013 21:48:59 -0400 > Dave Jones wrote: > > > On Thu, Sep 05, 2013 at 09:44:55PM -0400, Steven Rostedt wrote: > > > On Thu, 5 Sep 2013 21:34:55 -0400 > > > Dave Jones wrote: > > > > > > > On Thu, Sep 05,

[PATCH v2] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-05 Thread wei_wang
From: Wei WANG In some platforms, specially Thinkpad series, rts5249 won't be initialized properly. So we need adjust some phy parameters to improve the compatibility issue. Signed-off-by: Wei WANG --- drivers/mfd/rts5249.c| 35 -- include/linux/mfd/rt

Re: [PATCH] perf mem: add priv level filtering support

2013-09-05 Thread Andi Kleen
> But my worry here is about consistency accross tools for the single > letter options, so perhaps if you could use: > > -U collect only user level samples > -K collect only kernel level samples Support for this would be nice for perf stat too, to use with t

[PATCH v2] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-05 Thread wei_wang
From: Wei WANG v2: Name those new-added register values Wei WANG (1): mfd: rtsx: Modify rts5249_optimize_phy drivers/mfd/rts5249.c| 35 -- include/linux/mfd/rtsx_pci.h | 43 ++ 2 files changed, 76 insertions(

[PATCH 1/4] perf, x86: Avoid checkpointed counters causing excessive TSX aborts v5

2013-09-05 Thread Andi Kleen
From: Andi Kleen With checkpointed counters there can be a situation where the counter is overflowing, aborts the transaction, is set back to a non overflowing checkpoint, causes interupt. The interrupt doesn't see the overflow because it has been checkpointed. This is then a spurious PMI, typic

[PATCH 2/4] perf, x86: Report TSX transaction abort cost as weight v3

2013-09-05 Thread Andi Kleen
From: Andi Kleen Use the existing weight reporting facility to report the transaction abort cost, that is the number of cycles wasted in aborts. Haswell reports this in the PEBS record. This was in fact the original user for weight. This is a very useful sort key to concentrate on the most cost

[PATCH 3/4] perf, x86: Add Haswell TSX event aliases v6

2013-09-05 Thread Andi Kleen
From: Andi Kleen Add TSX event aliases, and export them from the kernel to perf. These are used by perf stat -T and to allow more user friendly access to events. The events are designed to be fairly generic and may also apply to other architectures implementing HTM. They all cover common situat

perf, x86: Add parts of the remaining haswell PMU functionality v5

2013-09-05 Thread Andi Kleen
I hope this version is ok for everyone now. [v2: Added Peter's changes to the PEBS handler] [v3: Addressed Arnaldo's feedback for the perf stat -T change and avoid conflict] [v4: Remove XXX comment in checkpoint patch. Add Arnaldo's ack for tools patch] [v5: Some white space adjustments]

[PATCH 4/4] perf, tools: Add perf stat --transaction v5

2013-09-05 Thread Andi Kleen
From: Andi Kleen Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the in_tx and in_tx_checkpoint qualifiers. Transaction Starts and Elision Starts, to compute the average transaction length.

Re: soft lockup in sysvipc code.

2013-09-05 Thread Lin Ming
On Thu, Sep 5, 2013 at 5:50 AM, Dave Jones wrote: > Haven't seen this before. > Tree based on v3.11-3104-gf357a82 > > BUG: soft lockup - CPU#0 stuck for 22s! [trinity-child0:25479] Can't imagine how it could happen. In my understanding, "soft lockup" happens when code stuck at somewhere with pree

[PATCH] mm/mmap.c: Remove unnecessary pgoff assignment

2013-09-05 Thread Zhang Yanfei
We never access variable pgoff later, so the assignment is redundant. Remove it. Signed-off-by: Zhang Yanfei --- mm/mmap.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index f9c97d1..db44f6a 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1570,7 +15

Re: linux-next: back merge of Linus' tree into the vfio tree

2013-09-05 Thread Stephen Rothwell
Hi Alex, On Thu, 05 Sep 2013 17:14:29 -0600 Alex Williamson wrote: > > On Fri, 2013-09-06 at 09:08 +1000, Stephen Rothwell wrote: > > > > I noticed that you have back merged Linus' tree into yours. Linus > > usually takes a dim view of that - especially when there is no > > explanation in the

Re: [PATCH 10/11] x86, mem-hotplug: Support initialize page tables from low to high.

2013-09-05 Thread Tang Chen
Hi Wanpeng, On 09/06/2013 10:16 AM, Wanpeng Li wrote: .. +#ifdef CONFIG_MOVABLE_NODE + unsigned long kernel_end; + + if (movablenode_enable_srat&& + memblock.current_order == MEMBLOCK_ORDER_LOW_TO_HIGH) { I think memblock.current_order == MEMBLOCK_ORDER_LOW_TO_HIGH is

Re: [PATCH] net: stmmac: fix bad merge conflict resolution

2013-09-05 Thread David Miller
From: Olof Johansson Date: Thu, 5 Sep 2013 18:01:41 -0700 > Merge commit 06c54055bebf919249aa1eb68312887c3cfe77b4 did a bad conflict > resolution accidentally leaving out a closing brace. Add it back. > > Signed-off-by: Olof Johansson > --- > > This breaks a handful of defconfigs on ARM, so i

Re: [GIT] Sparc

2013-09-05 Thread David Miller
From: Sergei Shtylyov Date: Fri, 06 Sep 2013 02:32:51 +0400 > Hello. > > On 09/06/2013 12:44 AM, David Miller wrote: > >> Several bug fixes (from Kirill Tkhai, Geery Uytterhoeven, and Alexey >> Dobriyan) and some support for Fujitsu sparc64x chips (from Allen >> Pais). > >> Please pull, thanks

[git pull] Please pull powerpc.git next branch

2013-09-05 Thread Benjamin Herrenschmidt
Hi Linus ! Here's the powerpc batch for this merge window. Some of the highlights are: * A bunch of endian fixes ! We don't have full LE support yet in that release but this contains a lot of fixes all over arch/powerpc to use the proper accessors, call the firmware with the right endian mode, e

Re: [PATCH v2 4/4] kernel: add support for init_array constructors

2013-09-05 Thread Rusty Russell
Frantisek Hrbata writes: > This adds the .init_array section as yet another section with constructors. > This > is needed because gcc could add __gcov_init calls to .init_array or .ctors > section, depending on gcc version. > > v2: - reuse mod->ctors for .init_array section for modules, because g

Re: [PATCH v2 1/1] dcache: Translating dentry into pathname without taking rename_lock

2013-09-05 Thread Waiman Long
On 09/05/2013 04:42 PM, Linus Torvalds wrote: On Thu, Sep 5, 2013 at 1:29 PM, Waiman Long wrote: It is not as simple as doing a strncpy(). Yes it damn well is. Stop the f*cking stupid arguments, and instead listen to what I say. Here. Let me bold-face the most important part for you, so that

Hope and your long-term cooperation

2013-09-05 Thread jenny
Dear Manager: Glad to write to you. We are manufacturer of Stearic acid from China, We have Zinc stearate, calcium stearate, magnesium stearate, etc. If you need such chemicals, please do not hesitate to contact me. Best Regards, --

Re: ftrace 'failed to modify' bug when loading reiserfs.ko

2013-09-05 Thread Steven Rostedt
On Thu, 5 Sep 2013 21:48:59 -0400 Dave Jones wrote: > On Thu, Sep 05, 2013 at 09:44:55PM -0400, Steven Rostedt wrote: > > On Thu, 5 Sep 2013 21:34:55 -0400 > > Dave Jones wrote: > > > > > On Thu, Sep 05, 2013 at 09:28:34PM -0400, Steven Rostedt wrote: > > Did you change a config option, o

[for-next][PATCH 4/4] ftrace/rcu: Do not trace debug_lockdep_rcu_enabled()

2013-09-05 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The function debug_lockdep_rcu_enabled() is part of the RCU lockdep debugging, and is called very frequently. I found that if I enable a lot of debugging and run the function graph tracer, this function can cause a live lock of the system. We don't usually trace

[for-next][PATCH 1/4] tracing: Make tracing_cpumask available for all instances

2013-09-05 Thread Steven Rostedt
From: Alexander Z Lam Allow tracer instances to disable tracing by cpu by moving the static global tracing_cpumask into trace_array. Link: http://lkml.kernel.org/r/921622317f239bfc2283cac2242647801ef584f2.1375980149.git@google.com Cc: Vaibhav Nagarnaik Cc: David Sharp Cc: Alexander Z Lam

[for-next][PATCH 3/4] x86-32, ftrace: Fix static ftrace when early microcode is enabled

2013-09-05 Thread Steven Rostedt
From: "H. Peter Anvin" Early microcode loading runs C code before paging is enabled on 32 bits. Since ftrace puts a hook into every function, that hook needs to be safe to execute in the pre-paging environment. This is currently true for dynamic ftrace but not for static ftrace. Static ftrace

[for-next][PATCH 2/4] ftrace: Fix a slight race in modifying what function callback gets traced

2013-09-05 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" There's a slight race when going from a list function to a non list function. That is, when only one callback is registered to the function tracer, it gets called directly by the mcount trampoline. But if this function has filters, it may be called by the wrong fu

[for-next][PATCH 0/4] tracing: Updated changes for 3.12

2013-09-05 Thread Steven Rostedt
I'm holding off on the rcu unsafe changes with perf and function tracing. We'll still get bug splats with unsafe rcu usage, but we need to work out a better solution than I was going to push for 3.12. It's too late to get things smooth, thus we need to wait till 3.13 to get something that is decent

Re: ftrace 'failed to modify' bug when loading reiserfs.ko

2013-09-05 Thread Dave Jones
On Thu, Sep 05, 2013 at 09:44:55PM -0400, Steven Rostedt wrote: > On Thu, 5 Sep 2013 21:34:55 -0400 > Dave Jones wrote: > > > On Thu, Sep 05, 2013 at 09:28:34PM -0400, Steven Rostedt wrote: > > > On Thu, 5 Sep 2013 21:19:24 -0400 > > > Dave Jones wrote: > > > > > > > For whatever du

Re: ftrace 'failed to modify' bug when loading reiserfs.ko

2013-09-05 Thread Steven Rostedt
On Thu, 5 Sep 2013 21:34:55 -0400 Dave Jones wrote: > On Thu, Sep 05, 2013 at 09:28:34PM -0400, Steven Rostedt wrote: > > On Thu, 5 Sep 2013 21:19:24 -0400 > > Dave Jones wrote: > > > > > For whatever dumb reason, when running 'make install' on a Fedora system, > > > os-prober tries to fig

[GIT PULL] security subsystem changes for 3.12

2013-09-05 Thread James Morris
Nothing major for this kernel, just maintenance updates. Please pull. The following changes since commit 2e032852245b3dcfe5461d7353e34eb6da095ccf: Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm (2013-09-05 18:07:32 -0700) are available in the git repository at: gi

Re: [PATCH 10/11] x86, mem-hotplug: Support initialize page tables from low to high.

2013-09-05 Thread Tang Chen
Hi Wanpeng, Thank you for reviewing. See below, please. On 09/05/2013 09:30 PM, Wanpeng Li wrote: .. +#ifdef CONFIG_MOVABLE_NODE + unsigned long kernel_end; + + if (movablenode_enable_srat&& + memblock.current_order == MEMBLOCK_ORDER_LOW_TO_HIGH) { I think memblock.c

Re: [PATCH RESEND v3 0/7] Enable Drivers for Intel MIC X100 Coprocessors.

2013-09-05 Thread Joe Perches
Whitespace neatening... Multiline statement argument alignment. Argument wrapping. Use kmalloc_array instead of kmalloc. --- drivers/misc/mic/card/mic_virtio.c | 17 --- drivers/misc/mic/card/mic_x100.c| 4 +- drivers/misc/mic/host/mic_debugfs.c | 91 ++

Re: ftrace 'failed to modify' bug when loading reiserfs.ko

2013-09-05 Thread Dave Jones
On Thu, Sep 05, 2013 at 09:28:34PM -0400, Steven Rostedt wrote: > On Thu, 5 Sep 2013 21:19:24 -0400 > Dave Jones wrote: > > > For whatever dumb reason, when running 'make install' on a Fedora system, > > os-prober tries to figure out what filesystems are needed by loading > > filesystems,

Re: ftrace 'failed to modify' bug when loading reiserfs.ko

2013-09-05 Thread Steven Rostedt
On Thu, 5 Sep 2013 21:19:24 -0400 Dave Jones wrote: > For whatever dumb reason, when running 'make install' on a Fedora system, > os-prober tries to figure out what filesystems are needed by loading > filesystems, > and seeing what sticks.. Today it blew up spectacularly when it got to > loadin

[PATCH V2] arm: LLVMLinux: use static inline in ARM ftrace.h

2013-09-05 Thread behanw
From: Behan Webster With compilers which follow the C99 standard (like modern versions of gcc and clang), "extern inline" does the wrong thing (emits code for an externally linkable version of the inline function). In this case using static inline and removing the NULL version of return_address i

ftrace 'failed to modify' bug when loading reiserfs.ko

2013-09-05 Thread Dave Jones
For whatever dumb reason, when running 'make install' on a Fedora system, os-prober tries to figure out what filesystems are needed by loading filesystems, and seeing what sticks.. Today it blew up spectacularly when it got to loading reiserfs.. System wedged entirely afterwards. Dave

Re: [PATCH v4 0/3] cleanup of gpio_pcf857x.c

2013-09-05 Thread Kuninori Morimoto
Hi > This patch series > - removes the irq_demux_work > - Uses devm_request_threaded_irq > - Call the user handler iff gpio_to_irq is done. > > v1 --> v2 > Split v1 to 3 patches > v2 --> v3 > Remove the unnecessary dts patches. > v3 --> v4 > Remove gpi

  1   2   3   4   5   6   7   >