[patch] gpiolib: unlock on error in gpio_export()

2012-10-26 Thread Dan Carpenter
We need to unlock here before returning. Signed-off-by: Dan Carpenter --- Only needed in linux-next. diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index d5f9742..14251c3 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -728,7 +728,8 @@ int gpio_export(unsigned g

[patch] mei: copy_from_user() doesn't return an error code

2012-10-26 Thread Dan Carpenter
copy_from_user() returns the number of bytes remaining but we should be returning -EFAULT here. Signed-off-by: Dan Carpenter --- Only needed in linux-next. diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index ed4943f..ce1014e 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/mis

Re: [PATCH] mm: readahead: remove redundant ra_pages in file_ra_state

2012-10-26 Thread Ni zhan Chen
On 10/26/2012 02:58 PM, Fengguang Wu wrote: static void shrink_readahead_size_eio(struct file *filp, struct file_ra_state *ra) { - ra->ra_pages /= 4; + spin_lock(&filp->f_lock); + filp->f_mode |= FMODE_RANDOM; + spin_unlock(&fil

[PATCH V2 4/6] Thermal: Remove the cooling_cpufreq_list.

2012-10-26 Thread hongbo.zhang
From: "hongbo.zhang" Problem of using this list is that the cpufreq_get_max_state callback will be called when register cooling device by thermal_cooling_device_register, but this list isn't ready at this moment. What's more, there is no need to maintain such a list, we can get cpufreq_cooling_de

Re: [PATCH] mm: readahead: remove redundant ra_pages in file_ra_state

2012-10-26 Thread Fengguang Wu
On Fri, Oct 26, 2012 at 03:03:12PM +0800, Ni zhan Chen wrote: > On 10/26/2012 02:58 PM, Fengguang Wu wrote: > >> static void shrink_readahead_size_eio(struct file *filp, > >> struct file_ra_state *ra) > >> { > >>- ra->ra_pages /= 4; > >>+ spin_l

Re: [RFC PATCH 3.7.0-rc2] dt: match id-table before creating platform device

2012-10-26 Thread Srinivas KANDAGATLA
On 23/10/12 14:15, Rob Herring wrote: re-sending my reply again, as it did not appear in my inbox from dt mailing list. > Adding lkml. DT patches should go to both lists. > > On 10/23/2012 05:30 AM, Srinivas KANDAGATLA wrote: >> From: Srinivas Kandagatla >> >> As part of of_platform_populate call,

Re: [PATCH 26/31] sched, numa, mm: Add fault driven placement and migration policy

2012-10-26 Thread Ingo Molnar
* Linus Torvalds wrote: > On Thu, Oct 25, 2012 at 5:16 AM, Peter Zijlstra > wrote: > > + /* > > +* Using runtime rather than walltime has the dual advantage that > > +* we (mostly) drive the selection from busy threads and that the > > +* task needs to have done s

Re: [RFC PATCH v2] gpiolib: add gpio get direction callback support

2012-10-26 Thread Linus Walleij
On Wed, Oct 24, 2012 at 4:25 PM, Mathias Nyman wrote: > Add .get_direction callback to gpio_chip. This allows gpiolib > to check the current direction of a gpio. > Used to show the correct gpio direction in sysfs and debug entries. > > If callback is not set then gpiolib will work as previously;

Re: [PATCH] mm: readahead: remove redundant ra_pages in file_ra_state

2012-10-26 Thread Ni zhan Chen
On 10/26/2012 03:09 PM, Fengguang Wu wrote: On Fri, Oct 26, 2012 at 03:03:12PM +0800, Ni zhan Chen wrote: On 10/26/2012 02:58 PM, Fengguang Wu wrote: static void shrink_readahead_size_eio(struct file *filp, struct file_ra_state *ra) { - ra->ra_

Re: [PATCH] gpiolib: Don't return -EPROBE_DEFER to sysfs, or for invalid gpios

2012-10-26 Thread Linus Walleij
On Thu, Oct 25, 2012 at 1:03 PM, Mathias Nyman wrote: > gpios requested with invalid numbers, or gpios requested from userspace via > sysfs > should not try to be deferred on failure. > > Signed-off-by: Mathias Nyman Very good catch. I applied this to my fixes branch and also put the stable ta

[PATCH] Staging: android: binder: Fixed multi-line strings

2012-10-26 Thread Anmol Sarma
Changed all user visible multi-line strings to single line. Removed 'binder:' prefix on stings. Signed-off-by: Anmol Sarma --- drivers/staging/android/binder.c | 483 +- 1 file changed, 165 insertions(+), 318 deletions(-) diff --git a/drivers/staging/android

Re: [PATCH] kfifo: remove unnecessary type check

2012-10-26 Thread Yuanhan Liu
On Fri, Oct 26, 2012 at 03:17:57PM +0800, Yuanhan Liu wrote: > On Fri, Oct 26, 2012 at 08:51:06AM +0200, Stefani Seibold wrote: > > Am Freitag, den 26.10.2012, 14:11 +0800 schrieb Yuanhan Liu: > > > On Fri, Oct 26, 2012 at 07:38:31AM +0200, Stefani Seibold wrote: > > > > Am Freitag, den 26.10.2012,

Re: [PATCH v2] acpi : acpi_bus_trim() stops removing devices when failing to remove the device

2012-10-26 Thread Yasuaki Ishimatsu
Hi Greg, Sorry for late reply. 2012/10/20 2:59, Greg Kroah-Hartman wrote: On Fri, Oct 19, 2012 at 06:29:52AM +0200, Rafael J. Wysocki wrote: On Thursday 11 of October 2012 19:12:28 Yasuaki Ishimatsu wrote: acpi_bus_trim() stops removing devices, when acpi_bus_remove() return error number. But

Re: [PATCH] ARM: davinci: dm644x: fix out range signal for ED

2012-10-26 Thread Sekhar Nori
On 10/4/2012 7:23 PM, Prabhakar Lad wrote: > Sekhar > > On Thu, Oct 4, 2012 at 12:43 PM, Sekhar Nori wrote: >> On 10/4/2012 10:22 AM, Prabhakar Lad wrote: >>> Hi Sekhar, >>> >>> On Wed, Oct 3, 2012 at 4:08 PM, Sekhar Nori wrote: On 10/3/2012 12:05 PM, Prabhakar wrote: > From: Lad, Prabh

Re: [patch] gpiolib: unlock on error in gpio_export()

2012-10-26 Thread Linus Walleij
On Fri, Oct 26, 2012 at 8:59 AM, Dan Carpenter wrote: > We need to unlock here before returning. > > Signed-off-by: Dan Carpenter > --- > Only needed in linux-next. Thanks Dan, applied to my devel branch. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-k

Re: [PATCH] mm: readahead: remove redundant ra_pages in file_ra_state

2012-10-26 Thread Fengguang Wu
On Fri, Oct 26, 2012 at 03:19:57PM +0800, Ni zhan Chen wrote: > On 10/26/2012 03:09 PM, Fengguang Wu wrote: > >On Fri, Oct 26, 2012 at 03:03:12PM +0800, Ni zhan Chen wrote: > >>On 10/26/2012 02:58 PM, Fengguang Wu wrote: > static void shrink_readahead_size_eio(struct file *filp, >

Re: [PATCH] net: usb: Fix memory leak on Tx data path

2012-10-26 Thread Oliver Neukum
On Thursday 25 October 2012 21:17:54 Hemant Kumar wrote: > Driver anchors the tx urbs and defers the urb submission if > a transmit request comes when the interface is suspended. > Anchoring urb increments the urb reference count. These > deferred urbs are later accessed by calling usb_get_from_anc

Re: [PATCH v3] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-26 Thread Kirill A. Shutemov
On Thu, Oct 25, 2012 at 05:44:31PM +0100, Will Deacon wrote: > On x86 memory accesses to pages without the ACCESSED flag set result in the > ACCESSED flag being set automatically. With the ARM architecture a page access > fault is raised instead (and it will continue to be raised until the ACCESSED

Re: [PATCH] net: usb: Fix memory leak on Tx data path

2012-10-26 Thread David Miller
From: Oliver Neukum Date: Fri, 26 Oct 2012 09:39:16 +0200 > On Thursday 25 October 2012 21:17:54 Hemant Kumar wrote: >> Driver anchors the tx urbs and defers the urb submission if >> a transmit request comes when the interface is suspended. >> Anchoring urb increments the urb reference count. The

Re: [PATCH] ARM: davinci: dm644x: fix out range signal for ED

2012-10-26 Thread Prabhakar Lad
Sekhar, On Fri, Oct 26, 2012 at 1:05 PM, Sekhar Nori wrote: > On 10/4/2012 7:23 PM, Prabhakar Lad wrote: >> Sekhar >> >> On Thu, Oct 4, 2012 at 12:43 PM, Sekhar Nori wrote: >>> On 10/4/2012 10:22 AM, Prabhakar Lad wrote: Hi Sekhar, On Wed, Oct 3, 2012 at 4:08 PM, Sekhar Nori wrot

Re: [PATCH v2 3/3] ARM: OMAP: ocp2scp: create omap device for ocp2scp

2012-10-26 Thread Arnd Bergmann
On Friday 26 October 2012, Felipe Balbi wrote: > > +static void omap_init_ocp2scp(void) > > +{ > > + struct omap_hwmod *oh; > > + struct platform_device *pdev; > > + int bus_id = -1, dev_cnt = 0, i; > > + struct omap_ocp2scp_dev *ocp2scp_dev; > > + con

Re: [PATCH] mm: readahead: remove redundant ra_pages in file_ra_state

2012-10-26 Thread Ni zhan Chen
On 10/26/2012 03:36 PM, Fengguang Wu wrote: On Fri, Oct 26, 2012 at 03:19:57PM +0800, Ni zhan Chen wrote: On 10/26/2012 03:09 PM, Fengguang Wu wrote: On Fri, Oct 26, 2012 at 03:03:12PM +0800, Ni zhan Chen wrote: On 10/26/2012 02:58 PM, Fengguang Wu wrote: static void shrink_readahead_size_e

Re: MMTests 0.06

2012-10-26 Thread Ni zhan Chen
On 10/12/2012 10:51 PM, Mel Gorman wrote: MMTests 0.06 is a configurable test suite that runs a number of common workloads of interest to MM developers. There are multiple additions all but in many respects the most useful will be automatic package installation. The package names are based on ope

Re: [PATCH] add some drop_caches documentation and info messsge

2012-10-26 Thread Mika Boström
On Wed, Oct 24, 2012 at 01:48:36PM -0700, Andrew Morton wrote: > Dave Hansen wrote: > > What kind of interface _is_ it in the first place? Is it really a > > production-level thing that we expect users to be poking at? Or, is it > > a rarely-used debugging and benchmarking knob which is fair gam

[PATCH 1/2] kfifo: round up the fifo size power of 2

2012-10-26 Thread Yuanhan Liu
Say, if we want to allocate a filo with size of 6 bytes, it would be safer to allocate 8 bytes instead of 4 bytes. I know it works with rounddown_pow_of_two as well, since size is maintained in the kfifo internal part. But, I'm quite curious why Stefani chose rounddown_pow_of_two. To reduce me

[PATCH 2/2] kfifo: handle the case that alloc size is equal to 0

2012-10-26 Thread Yuanhan Liu
is_power_of_2(size) will be failed if size is 0, and then it calls roundup_pow_of_two(0), then will return a quite *huge* value(well, the comments at roundup_pow_of_two macro says: the result is undefined when n == 0). Moving the size check before power of 2 testing and rounding will fix this "not

Re: [Xen-devel] [PATCH 4/5] xen: arm: implement remap interfaces needed for privcmd mappings.

2012-10-26 Thread Ian Campbell
On Fri, 2012-10-26 at 02:39 +0100, Mukesh Rathor wrote: > Yup. I made the change on xen side and added this patch to my tree > and got it working after reverting Konrad's setup.c changes. Not sure > if you need an ack from x86, but if you do: > > Acked-by: Mukesh Rathor The more ack's the merrie

[GIT PULL] EFI fixes for v3.7

2012-10-26 Thread Matt Fleming
Hi guys, The following changes since commit ddffeb8c4d0331609ef2581d84de4d763607bd37: Linux 3.7-rc1 (2012-10-14 14:41:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git tags/efi-for-3.7 for you to fetch changes up to 5189c2a7c7

Re: [PATCH 10/31] mm/mpol: Remove NUMA_INTERLEAVE_HIT

2012-10-26 Thread Ingo Molnar
* Andi Kleen wrote: > Peter Zijlstra writes: > > > Since the NUMA_INTERLEAVE_HIT statistic is useless on its > > own; it wants to be compared to either a total of interleave > > allocations or to a miss count, remove it. > > > > Fixing it would be possible, but since we've gone years > > wi

Re: MMTests 0.06

2012-10-26 Thread Mel Gorman
On Fri, Oct 26, 2012 at 03:48:48PM +0800, Ni zhan Chen wrote: > On 10/12/2012 10:51 PM, Mel Gorman wrote: > >MMTests 0.06 is a configurable test suite that runs a number of common > >workloads of interest to MM developers. There are multiple additions > >all but in many respects the most useful wil

Re: [PATCH] mm: readahead: remove redundant ra_pages in file_ra_state

2012-10-26 Thread Fengguang Wu
On Fri, Oct 26, 2012 at 03:47:19PM +0800, Ni zhan Chen wrote: > On 10/26/2012 03:36 PM, Fengguang Wu wrote: > >On Fri, Oct 26, 2012 at 03:19:57PM +0800, Ni zhan Chen wrote: > >>On 10/26/2012 03:09 PM, Fengguang Wu wrote: > >>>On Fri, Oct 26, 2012 at 03:03:12PM +0800, Ni zhan Chen wrote: > On 10

Re: PCIe IO space support on Tilera GX: Is there any one who can confirm my modification to fix it is OK?

2012-10-26 Thread Bjorn Helgaas
[+cc Chris, also a few comments below] On Fri, Oct 26, 2012 at 12:59 AM, Cyberman Wu wrote: > After we upgrade to MDE 4.1.0 from Tilera, we encounter a problem that > only on HighPoint 2680 card works, I've > tried to fix it, but since most time I'm working in user space, I'm > not sure my fix is

Re: [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung

2012-10-26 Thread Daniel Vetter
On Fri, Oct 26, 2012 at 6:43 AM, Justin P. Mattock wrote: >> >> No worries, it is another ILK hang similar to the ones reported earlier >> - it just seems the ring stops advancing. Hopefully it is a missing w/a >> from http://cgit.freedesktop.org/~danvet/drm/log/?h=ilk-wa-pile >> -Chris >> > > wel

Re: [ 08/31] use clamp_t in UNAME26 fix

2012-10-26 Thread Jonathan Nieder
Greg Kroah-Hartman wrote: > On Thu, Oct 25, 2012 at 05:11:19PM -0700, Jonathan Nieder wrote: >> Greg Kroah-Hartman wrote: >>> v = ((LINUX_VERSION_CODE >> 8) & 0xff) + 40; >>> - copy = min(sizeof(buf), max_t(size_t, 1, len)); >>> + copy = clamp_t(size_t, len, 1, size

Re: [PATCH] mm: readahead: remove redundant ra_pages in file_ra_state

2012-10-26 Thread Ni zhan Chen
On 10/26/2012 04:02 PM, Fengguang Wu wrote: On Fri, Oct 26, 2012 at 03:47:19PM +0800, Ni zhan Chen wrote: On 10/26/2012 03:36 PM, Fengguang Wu wrote: On Fri, Oct 26, 2012 at 03:19:57PM +0800, Ni zhan Chen wrote: On 10/26/2012 03:09 PM, Fengguang Wu wrote: On Fri, Oct 26, 2012 at 03:03:12PM +0

Re: [PATCH] mm: readahead: remove redundant ra_pages in file_ra_state

2012-10-26 Thread YingHang Zhu
Hi Fengguang, On Fri, Oct 26, 2012 at 4:02 PM, Fengguang Wu wrote: > On Fri, Oct 26, 2012 at 03:47:19PM +0800, Ni zhan Chen wrote: >> On 10/26/2012 03:36 PM, Fengguang Wu wrote: >> >On Fri, Oct 26, 2012 at 03:19:57PM +0800, Ni zhan Chen wrote: >> >>On 10/26/2012 03:09 PM, Fengguang Wu wrote: >> >

Re: [PATCH 02/16 v2] f2fs: add on-disk layout

2012-10-26 Thread Arnd Bergmann
On Friday 26 October 2012, Jaegeuk Kim wrote: > > > + > > > +#define F2FS_ROOT_INO(sbi) (sbi->root_ino_num) > > > +#define F2FS_NODE_INO(sbi) (sbi->node_ino_num) > > > +#define F2FS_META_INO(sbi) (sbi->meta_ino_num) > > > + > > > +#define GFP_F2FS_MOVABLE (__GFP_WAIT | __GFP_IO |

Re: [PATCH 1/1] usb: gadget: Don't attempt to dequeue requests for a disabled USB endpoint on Freescale hardware

2012-10-26 Thread Felipe Balbi
Hi, On Thu, Oct 25, 2012 at 02:36:24AM +0200, Laurent Pinchart wrote: > Hi Felipe, > > On Monday 22 October 2012 13:56:01 Felipe Balbi wrote: > > On Mon, Oct 22, 2012 at 12:47:21PM +0200, Laurent Pinchart wrote: > > > On Monday 22 October 2012 03:33:19 Li Yang-R58472 wrote: > > > > On Saturday, O

[PATCH] n_gsm: prevent crash due to dereferencing NULL gsm->tty

2012-10-26 Thread Guillaume Juan
From: Guillaume Juan If gsm->tty happens to be NULL in gsmld_output, avoid crashing the kernel (the crash is replaced by a warning dump). Prevent at earlier level such situation: - gsmtty_hangup does no longer call gsm_dlci_begin_close when called synchronously from gsm_cleanup_mux, because thi

Re: [GIT PULL] EFI fixes for v3.7

2012-10-26 Thread Ingo Molnar
* Matt Fleming wrote: > Hi guys, > > The following changes since commit ddffeb8c4d0331609ef2581d84de4d763607bd37: > > Linux 3.7-rc1 (2012-10-14 14:41:04 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git > tags/efi-for-3

[PATCH] Staging: android: binder: Fixed multi-line strings

2012-10-26 Thread Anmol Sarma
Changed all user visible multi-line strings to single line. Removed 'binder:' prefix on stings. Signed-off-by: Anmol Sarma --- drivers/staging/android/binder.c | 370 -- 1 file changed, 150 insertions(+), 220 deletions(-) diff --git a/drivers/staging/android

Re: [PATCH RFT] microblaze: dma-mapping: support debug_dma_mapping_error

2012-10-26 Thread Michal Simek
On 10/26/2012 01:29 AM, Shuah Khan wrote: Add support for debug_dma_mapping_error() call to avoid warning from debug_dma_unmap() interface when it checks for mapping error checked status. Without this patch, device driver failed to check map error warning is generated. Signed-off-by: Shuah Khan

Re: [PATCH v2 1/1] Platform: x86: Add Chrome OS Laptop driver

2012-10-26 Thread Corentin Chary
On Thu, Oct 25, 2012 at 10:21 PM, Benson Leung wrote: > This adds the chromeos_laptop driver. It supports > the Cypress APA SMBUS touchpad as well as the isl29018 i2c ambient > light sensor on the Samsung Series 5 550 Chromebook. > > Signed-off-by: Benson Leung > Reviewed-by: Olof Johansson > --

RE: [PATCH 02/16 v2] f2fs: add on-disk layout

2012-10-26 Thread Jaegeuk Kim
> On Friday 26 October 2012, Jaegeuk Kim wrote: > > > > > + > > > > +#define F2FS_ROOT_INO(sbi) (sbi->root_ino_num) > > > > +#define F2FS_NODE_INO(sbi) (sbi->node_ino_num) > > > > +#define F2FS_META_INO(sbi) (sbi->meta_ino_num) > > > > + > > > > +#define GFP_F2FS_MOVABLE (__GFP_W

Re: [GIT PULL 0/3] perf/core trace improvements

2012-10-26 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, got sidetracked today with some other stuff, > but made progress on reviewing the group patches from Namhyung that Jiri uses > for that PERF_SAMPLE_READ patchset. > > - Arnaldo > > The following changes since comm

Re: [RFC PATCH v3 00/16] DMA Engine support for AM33XX

2012-10-26 Thread Russ Dill
On Thu, Oct 18, 2012 at 6:26 AM, Matt Porter wrote: > Changes since v2: > - Rebased on 3.7-rc1 > - Fixed bug in DT/pdata parsing first found by Gururaja > that turned out to be masked by some toolchains > - Dropped unused mach-omap2/devices.c hsmmc patch >

Re: [PATCH RFT] ARM64: dma-mapping: support debug_dma_mapping_error

2012-10-26 Thread Santosh Shilimkar
On Friday 26 October 2012 04:17 AM, Shuah Khan wrote: Add support for debug_dma_mapping_error() call to avoid warning from debug_dma_unmap() interface when it checks for mapping error checked status. Without this patch, device driver failed to check map error warning is generated. Signed-off-by:

Re: [PATCH] kfifo: remove unnecessary type check

2012-10-26 Thread Yuanhan Liu
On Fri, Oct 26, 2012 at 08:51:06AM +0200, Stefani Seibold wrote: > Am Freitag, den 26.10.2012, 14:11 +0800 schrieb Yuanhan Liu: > > On Fri, Oct 26, 2012 at 07:38:31AM +0200, Stefani Seibold wrote: > > > Am Freitag, den 26.10.2012, 09:46 +0800 schrieb Yuanhan Liu: > > > > From: Yuanhan Liu > > > >

Re: [patch for-3.7] mm, mempolicy: fix printing stack contents in numa_maps

2012-10-26 Thread Peter Zijlstra
On Thu, 2012-10-25 at 16:09 -0700, Linus Torvalds wrote: > On Thu, Oct 25, 2012 at 7:39 AM, Peter Zijlstra wrote: > > > > So I think the below should work, we hold the spinlock over both rb-tree > > modification as sp free, this makes mpol_shared_policy_lookup() which > > returns the policy with a

Re: [PATCH 01/16] math128: Introduce various 128bit primitives

2012-10-26 Thread Peter Zijlstra
On Thu, 2012-10-25 at 15:26 -0700, Linus Torvalds wrote: > it's the *rest* of the "u128" math I really object to. I also wonder > about the u64xu64 math case for SCHED_DEADLINE, because I assume that > it doesn't actually end up using the 128-bit result in that form, but > scales it down again some

Re: [PATCH] hrtimer:__run_hrtimer races with enqueue_hrtimer

2012-10-26 Thread Yanmin Zhang
On Fri, 2012-10-26 at 10:51 +0800, he, bo wrote: > From: Yanmin Zhang > > We hit a kernel panic at __run_hrtimer=>BUG_ON(timer->state != > HRTIMER_STATE_CALLBACK). > <2>[ 10.226053, 3] kernel BUG at > /home/android/xiaobing/ymz/r4/hardware/intel/linux-2.6/kernel/hrtimer.c:1228! > <0>[ 10.23

[tip:perf/core] perf tools: Don' t stop synthesizing threads when one vanishes

2012-10-26 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: ba361c92e73c771fcbbbd24c2c03c322e2de2e31 Gitweb: http://git.kernel.org/tip/ba361c92e73c771fcbbbd24c2c03c322e2de2e31 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 17 Oct 2012 18:50:13 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 25 Oct 2012 10:37:15 -0200 pe

[PATCH V2] hrtimer:__run_hrtimer races with enqueue_hrtimer

2012-10-26 Thread Yanmin Zhang
V2 adds a checking HRTIMER_STATE_ENQUEUED. If HRTIMER_STATE_ENQUEUED is set, We don't call enqueue_hrtimer. It should be rare that HRTIMER_STATE_ENQUEUED is set. --- We hit a kernel panic at __run_hrtimer=>BUG_ON(timer->state != HRTIMER_STATE_CALLBACK). <2>[ 10.226053, 3] kernel BUG at /home

[tip:perf/core] perf trace: Count number of events for each thread and globally

2012-10-26 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: efd5745e43f3aabd95d521289e0caa0e30668cf4 Gitweb: http://git.kernel.org/tip/efd5745e43f3aabd95d521289e0caa0e30668cf4 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 17 Oct 2012 17:09:46 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 25 Oct 2012 10:40:37 -0200 pe

Re: [PATCH V3 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-26 Thread Viresh Kumar
Hi Vinod, On 16 October 2012 09:49, Viresh Kumar wrote: > dw_dmac driver already supports device tree but it used to have its platform > data passed the non-DT way. > > This patch does following changes: > - pass platform data via DT, non-DT way still takes precedence if both are > used. > - cre

[PATCH RESEND 1/5] tools lib traceevent: Do not generate dependency for system header files

2012-10-26 Thread Namhyung Kim
Ingo reported (again!) that 'make clean' on perf/traceevent does not work due to some reason with system header file. Quotes Ingo: "Note that the old dependency related build failure thought to be fixed in commit 860df5833e46 is back: make[1]: *** No rule to make target `/usr/lib/gcc/x86

[PATCH 2/5] perf tools: Cleanup doc related targets

2012-10-26 Thread Namhyung Kim
From: Namhyung Kim Documentation targets handling rules are duplicate. Consolidate them with DOC_TARGETS and INSTALL_DOC_TARGETS. Cc: Borislav Petkov Signed-off-by: Namhyung Kim --- tools/perf/Makefile | 46 +- 1 file changed, 9 insertions(+), 37 d

[PATCH 5/5] perf tools: Fix LIBELF_MMAP checking

2012-10-26 Thread Namhyung Kim
From: Namhyung Kim Currently checking mmap support in libelf failed due to wrong flags. CHK libelf CHK libdw CHK libunwind CHK -DLIBELF_MMAP /tmp/ccYJwdR0.o: In function `main': :(.text+0x18): undefined reference to `elf_begin' collect2: error: ld returned 1 exit status This can

[PATCH 4/5] perf tools: Always show CHK message when doing try-cc

2012-10-26 Thread Namhyung Kim
From: Namhyung Kim It might be useful to see what's happening behind us rather than just waiting few seconds during the config checking. Also align the CHK message with other ones. Cc: Jiri Olsa Cc: Borislav Petkov Signed-off-by: Namhyung Kim --- tools/perf/config/utilities.mak | 3 +-- 1 f

[tip:perf/core] perf trace: Use sched: sched_stat_runtime to provide a thread summary

2012-10-26 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 1302d88e66f12a7b46a5598e641d93f0713007e0 Gitweb: http://git.kernel.org/tip/1302d88e66f12a7b46a5598e641d93f0713007e0 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 17 Oct 2012 17:13:12 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 25 Oct 2012 10:57:43 -0200 pe

[PATCH 3/5] perf tools: Convert invocation of MAKE into SUBDIR

2012-10-26 Thread Namhyung Kim
From: Namhyung Kim This will show directory change info in a consistent form. Also it can be converted again into David Howell's descend command. Cc: Borislav Petkov Cc: David Howells Signed-off-by: Namhyung Kim --- tools/perf/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletion

where is trace_kmalloc_node?

2012-10-26 Thread yili0568
hello: everyone, I can't find the definition of trace_kmalloc_node, where is it? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please

Re: [PATCH v2 3/4] DMA: PL330: Balance module remove function with probe

2012-10-26 Thread Vinod Koul
On Thu, 2012-10-25 at 16:53 +0530, Inderpal Singh wrote: > > This code will get executed only in case of force removal of the > module which was discussed in the first version of the patch at [1]. > Now, if we do not have to think about force removal then this patch > will go back to the first ver

Re: [PATCH 2/2] ARM: mach-imx: CAN clock fix for i.MX53

2012-10-26 Thread Sascha Hauer
On Thu, Oct 25, 2012 at 01:26:40PM +0200, Roland Stigge wrote: > This patch fixes CAN clocking on i.MX53. > > Signed-off-by: Roland Stigge > > --- > arch/arm/mach-imx/clk-imx51-imx53.c |8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > --- linux-2.6.orig/arch/arm/mach-imx/c

Re: PCIe IO space support on Tilera GX: Is there any one who can confirm my modification to fix it is OK?

2012-10-26 Thread Cyberman Wu
We're not using 3.6.x, we're using is from MDE-4.1.0 from Tilera and it patch 3.0.38. >From its release notes that PCIe I/O space is already supported. I provide diff of pci_gx.c between 3.6.3 and MDE-4.1.0 for a hint, since I don't know if it's allowed to use attached file in mail list, and their

Re: arch/x86/Kconfig: not select X86_MPPARSE when SFI is present

2012-10-26 Thread Bin Gao
Yes, your suggested descriptions more match the change. I'm sending a new patch for your review. Thanks. -Bin On Thu, Oct 25, 2012 at 09:57:52AM +0200, Ingo Molnar wrote: > > * Bin Gao wrote: > > > MPS tables are not needed for systems that have proper ACPI support. > > This is also true for s

Re: [PATCH V3 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-26 Thread Vinod Koul
On Fri, 2012-10-26 at 14:25 +0530, Viresh Kumar wrote: > Hi Vinod, > > On 16 October 2012 09:49, Viresh Kumar wrote: > > dw_dmac driver already supports device tree but it used to have its platform > > data passed the non-DT way. > > > > This patch does following changes: > > - pass platform data

Re: [PATCH V3 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-26 Thread Viresh Kumar
On 26 October 2012 14:18, Vinod Koul wrote: > On Fri, 2012-10-26 at 14:25 +0530, Viresh Kumar wrote: >> I can see that you applied these patches and they are present in >> linux-next. But i feel >> the order of patches is bad. > Yes looks like I forgot to sort the mbox series :( > > since all patc

[PATCH 3/3] x86: ce4100: fixup PCI configuration register access for devices without interrupts

2012-10-26 Thread Florian Fainelli
From: Maxime Bizon Some CE4100 devices such as the: - DFX module (01:0b.7) - entertainment encryption device (01:10.0) - multimedia controller (01:12.0) do not have a device interrupt at all. This patch fixes the PCI controller code to declare the missing PCI configuration register space, as wel

[PATCH 1/3] x86: ce4100: implement pm_poweroff

2012-10-26 Thread Florian Fainelli
The CE4100 platform is currently missing a proper pm_poweroff implementation leading to poweroff making the CPU spin forever and the CE4100 platform does not enter a low-power mode where the external Power Management Unit can properly power off the system. Power off on this platform is implemented

Re: [PATCH v3] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-26 Thread Will Deacon
On Fri, Oct 26, 2012 at 08:44:35AM +0100, Kirill A. Shutemov wrote: > On Thu, Oct 25, 2012 at 05:44:31PM +0100, Will Deacon wrote: > > On x86 memory accesses to pages without the ACCESSED flag set result in the > > ACCESSED flag being set automatically. With the ARM architecture a page > > access

Re: where is trace_kmalloc_node?

2012-10-26 Thread David Rientjes
On Fri, 26 Oct 2012, yili0...@gmail.com wrote: > hello: > everyone, I can't find the definition of trace_kmalloc_node, > where is it? Look for DEFINE_EVENT(..., kmalloc_node, ...) in include/trace/events/kmem.h. -- To unsubscribe from this list: send the line "unsubscribe linux-kerne

[PATCH 0/3] x86: ce4100 fixes and improvements

2012-10-26 Thread Florian Fainelli
Hi all, This patch serie contains shutdown/reboot fixes for the CE4100 platform as well as a PCI controller fix for devices without an interrupt line. Florian Fainelli (3): x86: ce4100: implement pm_poweroff x86: ce4100: force reboot method to be KBD x86: ce4100: fixup PCI configuration reg

Re: [PATCH 00/31] numa/core patches

2012-10-26 Thread Peter Zijlstra
On Fri, 2012-10-26 at 17:07 +0800, Zhouping Liu wrote: > [ 180.918591] RIP: 0010:[] [] > mem_cgroup_prepare_migration+0xba/0xd0 > [ 182.681450] [] do_huge_pmd_numa_page+0x180/0x500 > [ 182.775090] [] handle_mm_fault+0x1e9/0x360 > [ 182.863038] [] __do_page_fault+0x172/0x4e0 > [ 182.95057

[PATCH 2/3] x86: ce4100: force reboot method to be KBD

2012-10-26 Thread Florian Fainelli
From: Maxime Bizon The default reboot is via ACPI for this platform, and the CEFDK bootloader actually supports this, but will issue a system power off instead of a real reboot. Setting the reboot method to be KBD instead of ACPI ensures proper system reboot. Signed-off-by: Florian Fainelli ---

Re: [PATCH 2/3] PCI: correctly detect ACPI PCI host bridge objects

2012-10-26 Thread Bjorn Helgaas
On Thu, Oct 18, 2012 at 2:50 PM, Yinghai Lu wrote: > From: Jiang Liu > > The code in pci_root_hp.c depends on function acpi_is_root_bridge() > to check whether an ACPI object is a PCI host bridge or not. > If an ACPI device hasn't been created for the ACPI object yet, > function acpi_is_root_brid

[PATCH v3] Enable A20 using KBC for some MSI laptops to fix S3 resume

2012-10-26 Thread Ondrej Zary
Some MSI laptop BIOSes are broken - INT 15h code uses port 92h to enable A20 line but resume code assumes that KBC was used. The laptop will not resume from S3 otherwise but powers off after a while and then powers on again stuck with a blank screen. Fix it by enabling A20 using KBC. Affected lapt

Re: [PATCH 00/11] perf tool: Add PERF_SAMPLE_READ sample read support

2012-10-26 Thread Peter Zijlstra
On Fri, 2012-10-26 at 10:29 +0900, Namhyung Kim wrote: > Hi Jiri, > > On Sat, 20 Oct 2012 16:33:08 +0200, Jiri Olsa wrote: > > hi, > > adding support to read sample values through the PERF_SAMPLE_READ > > sample type. It's now possible to specify 'S' modifier for an event > > and get its sample va

Re: [PATCH v2 2/4] gpio: add viperboard gpio driver

2012-10-26 Thread Lars Poeschel
On Thursday 25 October 2012 at 18:06:51, Mark Brown wrote: > Are you saying that whoever designed this USB device has done it so that > it takes a byte stream with something like RRVV where RR is the register > and VV is the value? That's the marshalling, as you'll have seen that's > done before t

Re: [PATCH 2/2] ARM: mach-imx: CAN clock fix for i.MX53

2012-10-26 Thread Roland Stigge
Hi! On 10/26/2012 10:59 AM, Sascha Hauer wrote: > On Thu, Oct 25, 2012 at 01:26:40PM +0200, Roland Stigge wrote: >> This patch fixes CAN clocking on i.MX53. >> >> Signed-off-by: Roland Stigge >> >> --- >> arch/arm/mach-imx/clk-imx51-imx53.c |8 >> 1 file changed, 4 insertions(+), 4

Re: Enabling hardlink restrictions to the Linux VFS in 3.6 by default

2012-10-26 Thread Holger Kiehl
Hello Kees, first, many thanks for trying to help! On Thu, 25 Oct 2012, Kees Cook wrote: Hi Holger, On Thu, Oct 25, 2012 at 12:13:40PM +, Holger Kiehl wrote: as of linux 3.6 hardlink restrictions to the Linux VFS have been enabled by default. This breaks the application AFD [1] of which

Re: [PATCH 00/31] numa/core patches

2012-10-26 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Fri, 2012-10-26 at 17:07 +0800, Zhouping Liu wrote: > > [ 180.918591] RIP: 0010:[] [] > > mem_cgroup_prepare_migration+0xba/0xd0 > > > [ 182.681450] [] do_huge_pmd_numa_page+0x180/0x500 > > [ 182.775090] [] handle_mm_fault+0x1e9/0x360 > > [ 182.863038] [] _

Re: PCIe IO space support on Tilera GX: Is there any one who can confirm my modification to fix it is OK?

2012-10-26 Thread Bjorn Helgaas
On Fri, Oct 26, 2012 at 3:01 AM, Cyberman Wu wrote: > We're not using 3.6.x, we're using is from MDE-4.1.0 from Tilera and > it patch 3.0.38. That's fine, but you sent the email to the linux-pci and linux-kernel lists, and on those lists, we're only concerned with the upstream Linux kernels, e.g.

Re: [PATCH V3 2/3] dmaengine: dw_dmac: Enhance device tree support

2012-10-26 Thread Vinod Koul
On Fri, 2012-10-26 at 14:35 +0530, Viresh Kumar wrote: > >> I can see that you applied these patches and they are present in > >> linux-next. But i feel > >> the order of patches is bad. > > Yes looks like I forgot to sort the mbox series :( > > > > since all patches were applied nicely, and they s

Re: [PATCH 01/16] math128: Introduce various 128bit primitives

2012-10-26 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Thu, 2012-10-25 at 15:26 -0700, Linus Torvalds wrote: > > it's the *rest* of the "u128" math I really object to. I also wonder > > about the u64xu64 math case for SCHED_DEADLINE, because I assume that > > it doesn't actually end up using the 128-bit result in that fo

[PATCH v2 1/2] acpi : cpu hot-remove returns error when cpu_down() fails

2012-10-26 Thread Yasuaki Ishimatsu
v1 -> v2 - update Rafael's comment. static int acpi_processor_handle_eject(struct acpi_processor *pr) { -if (cpu_online(pr->id)) -cpu_down(pr->id); +int ret = 0; + +if (cpu_online(pr->id)) { +ret = cpu_down(pr->id); If you defined ret here ... +if (re

Re: [PATCH] kfifo: remove unnecessary type check

2012-10-26 Thread Stefani Seibold
Am Freitag, den 26.10.2012, 15:17 +0800 schrieb Yuanhan Liu: > On Fri, Oct 26, 2012 at 08:51:06AM +0200, Stefani Seibold wrote: > > Am Freitag, den 26.10.2012, 14:11 +0800 schrieb Yuanhan Liu: > > > On Fri, Oct 26, 2012 at 07:38:31AM +0200, Stefani Seibold wrote: > > > > Am Freitag, den 26.10.2012,

Re: [PATCH 1/3] x86: ce4100: implement pm_poweroff

2012-10-26 Thread Ingo Molnar
* Florian Fainelli wrote: > The CE4100 platform is currently missing a proper pm_poweroff implementation > leading to poweroff making the CPU spin forever and the CE4100 platform does > not enter a low-power mode where the external Power Management Unit can > properly power off the system. Power

Re: [PATCH 1/2] kfifo: round up the fifo size power of 2

2012-10-26 Thread Stefani Seibold
Am Freitag, den 26.10.2012, 15:56 +0800 schrieb Yuanhan Liu: > Say, if we want to allocate a filo with size of 6 bytes, it would be safer > to allocate 8 bytes instead of 4 bytes. > > I know it works with rounddown_pow_of_two as well, since size is maintained > in the kfifo internal part. But,

Re: [PATCH 2/3] x86: ce4100: force reboot method to be KBD

2012-10-26 Thread Ingo Molnar
* Florian Fainelli wrote: > From: Maxime Bizon > > The default reboot is via ACPI for this platform, and the CEFDK bootloader > actually supports this, but will issue a system power off instead of a real > reboot. Setting the reboot method to be KBD instead of ACPI ensures proper > system rebo

Re: [PATCH v2] arch/arm/mach-davinci/board-dm646x-evm.c: Remove unecessary semicolon

2012-10-26 Thread Sekhar Nori
On 9/18/2012 10:29 PM, Peter Senna Tschudin wrote: > Found by http://coccinelle.lip6.fr/ > > Signed-off-by: Peter Senna Tschudin Queuing this for v3.8 Thanks, Sekhar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

Re: [PATCH v3] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-26 Thread Will Deacon
On Fri, Oct 26, 2012 at 07:19:55AM +0100, Ni zhan Chen wrote: > On 10/26/2012 12:44 AM, Will Deacon wrote: > > On x86 memory accesses to pages without the ACCESSED flag set result in the > > ACCESSED flag being set automatically. With the ARM architecture a page > > access > > fault is raised inst

[GIT PULL] Urgent DMA-mapping fix for v3.7-rc3

2012-10-26 Thread Marek Szyprowski
Hi Linus, I would like to ask for pulling an urgent fix for ARM DMA-mapping framework for v3.7-rc3. Due to my mistake, my previous pull request (merged as cff7b8ba60e332377568c3d55c8036e9b1de32e6) contained a patch which is aimed for v3.8 and lacks its dependences. This pull request reverts it and

Re: [PATCH 01/16] math128: Introduce various 128bit primitives

2012-10-26 Thread Peter Zijlstra
On Fri, 2012-10-26 at 11:24 +0200, Ingo Molnar wrote: > So can we control this by restricting the users and avoiding the > overflow? > > A 2^64 result should be a *huge* amount of space already for > just about anything. I _think_ something like: dl_runtime * dl_deadline < U64_MAX, might do th

[PATCH] cpufreq: Avoid calling cpufreq driver's target() routine if target_freq == policy->cur

2012-10-26 Thread Viresh Kumar
Avoid calling cpufreq driver's target() routine if new frequency is same as policies current frequency. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 261ef65..28dc134 1

Re: [PATCH v3 4/9] clear the memory to store struct page

2012-10-26 Thread Wen Congyang
Hi, andrew morton: This patch has been acked by kosaki motohiro. Is it OK to be merged into -mm tree? Thanks Wen Congyang At 10/19/2012 02:46 PM, we...@cn.fujitsu.com Wrote: > From: Wen Congyang > > If sparse memory vmemmap is enabled, we can't free the memory to store > struct page when a mem

Re: [PATCH 00/31] numa/core patches

2012-10-26 Thread Zhouping Liu
On 10/26/2012 05:20 PM, Ingo Molnar wrote: * Peter Zijlstra wrote: On Fri, 2012-10-26 at 17:07 +0800, Zhouping Liu wrote: [ 180.918591] RIP: 0010:[] [] mem_cgroup_prepare_migration+0xba/0xd0 [ 182.681450] [] do_huge_pmd_numa_page+0x180/0x500 [ 182.775090] [] handle_mm_fault+0x1e9/0x360

[PATCH] rcu: Fix unrecovered RCU user mode in syscall_trace_leave()

2012-10-26 Thread Frederic Weisbecker
On x86-64 syscall exit, 3 non exclusive events may happen looping in the following order: 1) Check if we need resched for user preemption, if so call schedule_user() 2) Check if we have pending signals, if so call do_notify_resume() 3) Check if we do syscall tracing, if so call syscall_trace_lea

Re: [PATCH 01/16] math128: Introduce various 128bit primitives

2012-10-26 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Fri, 2012-10-26 at 11:24 +0200, Ingo Molnar wrote: > > > So can we control this by restricting the users and avoiding > > the overflow? > > > > A 2^64 result should be a *huge* amount of space already for > > just about anything. > > I _think_ something like: dl

Re: lots of suspicious RCU traces

2012-10-26 Thread Frederic Weisbecker
2012/10/25 Sergey Senozhatsky : > On (10/25/12 09:06), Frederic Weisbecker wrote: >> >> > My understanding is (I may be wrong) that we can schedule() from ptrace >> >> > chain to >> >> > some arbitrary task, which will continue its execution from the point >> >> > where RCU assumes >> >> > CPU as

  1   2   3   4   5   6   7   >