Re: [PATCH] cpufreq: ondemand: Change the calculation of target frequency

2013-06-02 Thread Viresh Kumar
Sent half written mail.. sorry.. will continue from where I left. On 3 June 2013 12:21, Viresh Kumar wrote: > So, obviously the calculations aren't the same.. Now, this is how I understood these two different variables: - cpuinfo.max_freq: maximum frequency (in kHz) which is supported by this C

Re: [PATCH] cpufreq: ondemand: Change the calculation of target frequency

2013-06-02 Thread Viresh Kumar
On 2 June 2013 01:07, Rafael J. Wysocki wrote: > On Saturday, June 01, 2013 08:26:47 PM Viresh Kumar wrote: >> Even removal of __cpufreq_driver_getavg() should be done in a separate >> patch, so that it can be reverted easily if required later. > > Why would you want to revert it separately? We

Re: [PATCH] Add TI-Nspire keypad support

2013-06-02 Thread Daniel Tang
Hi, On 03/06/2013, at 4:36 PM, Dmitry Torokhov wrote: > > Does the patch below work for you? > > Thanks. > Looks perfect. Cheers, Daniel Tang -- 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

Re: [patch v7 0/8] sched: using runnable load avg in balance

2013-06-02 Thread Alex Shi
On 05/30/2013 03:01 PM, Alex Shi wrote: > Anyway, since using runnable load avg in balance brings much benefit on > performance and power. and this patch was reviewed for long time. > So maybe it's time to let it clobbered in some sub-maintain tree, like tip > or linux-next. Any comments? > Pe

linux-next: Tree for Jun 3

2013-06-02 Thread Stephen Rothwell
Hi all, Changes since 20130531: The devicetree-current tree gained a conflict against the kbuild-current tree. The m68k tree gained a conflict against the cris tree. The imx-mxs tree gained a conflict against the arm-soc tree. The msm tree still has its build failure for which I applied a fix

Re: [PATCH] Add TI-Nspire keypad support

2013-06-02 Thread Dmitry Torokhov
Hi Daniel, On Thu, May 30, 2013 at 09:20:58PM +1000, Daniel Tang wrote: > Hi, > > This patch adds a driver for the keypads found on the TI-Nspire series > calculators. > This looks pretty good, just a few comments. > Cheers, > Daniel Tang > > Signed-off-by: Daniel Tang > --- > .../devicetr

Re: linux-next: Tree for May 30

2013-06-02 Thread Stephen Rothwell
Hi Geert, On Thu, 30 May 2013 10:07:48 +0200 Geert Uytterhoeven wrote: > > The following defconfigs fail without anything useful in the log: > - at91sam9g20_defconfig > - at91sam9261_defconfig > - at91sam9260_defconfig > > A manual run reveals why: > Can't find default configuration "arch

Re: [RFC PATCH] sched: smart wake-affine

2013-06-02 Thread Michael Wang
On 06/03/2013 02:05 PM, Mike Galbraith wrote: > On Mon, 2013-06-03 at 13:50 +0800, Michael Wang wrote: >> On 06/03/2013 01:22 PM, Mike Galbraith wrote: >> [snip] I agree that this idea, in other work, 'stop wake-affine when current is busy with wakeup' may miss the chance to bring b

Re: Regression introduced by commit "lib/bitmap.c: speed up bitmap_find_free_region"

2013-06-02 Thread Stephen Rothwell
Hi Andrew, On Fri, 31 May 2013 12:05:42 -0700 Andrew Morton wrote: > > On Fri, 31 May 2013 12:15:10 +0530 Sachin Kamat > wrote: > > > While testing MFC decoder on Exynos machines, I encountered some > > memory allocation errors due to failure of dma_alloc_coherent(). > > File: drivers/media/p

[char-misc 3.10] mei: nfc: fix nfc device freeing

2013-06-02 Thread Tomas Winkler
The nfc_dev is a static variable and is not cleaned properly upon reset mainly ndev->cl and ndev->cl_info are not set to NULL after freeing which mei_stop:198: mei_me :00:16.0: stopping the device. [ 404.253427] general protection fault: [#2] SMP [ 404.253437] Modules linked in: mei_me(

Re: [PATCH] KVM: fix sil/dil/bpl/spl in the mod/rm fields

2013-06-02 Thread Paolo Bonzini
Il 02/06/2013 20:12, Gleb Natapov ha scritto: > On Thu, May 30, 2013 at 04:35:55PM +0200, Paolo Bonzini wrote: >> The x86-64 extended low-byte registers were fetched correctly from reg, >> but not from mod/rm. >> >> This fixes another bug in the boot of RHEL5.9 64-bit, but it is still >> not enough

Re: [TIPC] BUG: unable to handle kernel NULL pointer dereference at 00000014

2013-06-02 Thread Ying Xue
Hi Fengguang, Thanks for your report. I have found its root cause. Please see below call paths: tipc_init()->tipc_cfg_init()->tipc_server_start()->kmem_cache_create() When kmem_cache_create() return -ENOMEM due to lack of memory, tipc_cfg_init() will call tipc_core_stop() immediately. Subsequen

Re: [PATCH RFC V9 0/19] Paravirtualized ticket spinlocks

2013-06-02 Thread Raghavendra K T
On 06/03/2013 07:10 AM, Raghavendra K T wrote: On 06/02/2013 09:50 PM, Jiannan Ouyang wrote: On Sun, Jun 2, 2013 at 1:07 AM, Gleb Natapov wrote: High level question here. We have a big hope for "Preemptable Ticket Spinlock" patch series by Jiannan Ouyang to solve most, if not all, ticketing s

Re: [v4][PATCH 2/6] mm: swap: make 'struct page' and swp_entry_t variants of swapcache_free().

2013-06-02 Thread Minchan Kim
Hello Dave, On Fri, May 31, 2013 at 11:38:58AM -0700, Dave Hansen wrote: > > From: Dave Hansen > > swapcache_free() takes two arguments: > > void swapcache_free(swp_entry_t entry, struct page *page) > > Most of its callers (5/7) are from error handling paths haven't even > instantiated

Re: [PATCH] cpufreq: ondemand: Change the calculation of target frequency

2013-06-02 Thread Viresh Kumar
On 1 June 2013 21:36, Stratos Karafotis wrote: > On 06/01/2013 05:56 PM, Viresh Kumar wrote: >> Even removal of __cpufreq_driver_getavg() should be done in a separate >> patch, so that it can be reverted easily if required later. > > Thanks, Viresh. I will do the removal of that function in a sep

Re: [RFC PATCH] sched: smart wake-affine

2013-06-02 Thread Mike Galbraith
On Mon, 2013-06-03 at 13:50 +0800, Michael Wang wrote: > On 06/03/2013 01:22 PM, Mike Galbraith wrote: > [snip] > >> > >> I agree that this idea, in other work, 'stop wake-affine when current is > >> busy with wakeup' may miss the chance to bring benefit, although I could > >> not find such worklo

Re: [PATCH v2] rcu: fix a race in hlist_nulls_for_each_entry_rcu macro

2013-06-02 Thread Paul E. McKenney
On Sun, Jun 02, 2013 at 08:49:15PM -0700, David Miller wrote: > From: "Paul E. McKenney" > Date: Sun, 2 Jun 2013 20:42:54 -0700 > > > On Sun, Jun 02, 2013 at 08:27:03PM -0700, David Miller wrote: > >> From: Eric Dumazet > >> Date: Sun, 02 Jun 2013 20:12:49 -0700 > >> > >> > On Sun, 2013-06-02 a

Re: [PATCH v4 00/22] x86, ACPI, numa: Parse numa info early

2013-06-02 Thread Tang Chen
Hi HPA, Would you please tell me if this patch-set has been merged into any tree or branch ? If not merged, I'll rebased it to the latest kernel and resend it again. Hope the rebasing will help to push this patch-set. Thanks. :) On 05/22/2013 01:18 PM, H. Peter Anvin wrote: Sorry, just have b

Re: [RFC PATCH] sched: smart wake-affine

2013-06-02 Thread Michael Wang
On 06/03/2013 01:22 PM, Mike Galbraith wrote: [snip] >> >> I agree that this idea, in other work, 'stop wake-affine when current is >> busy with wakeup' may miss the chance to bring benefit, although I could >> not find such workload, but I can't do promise... > > Someday we'll find the perfect ba

Re: [PATCH] MTD: atmel_nand: using a stronger ECC is not dangerous

2013-06-02 Thread Josh Wu
On 5/31/2013 10:34 PM, Richard Genoud wrote: We don't have to issue a warning when a stronger error correting capability is chosen. Signed-off-by: Richard Genoud Acked-by: Josh Wu Best Regards, Josh Wu --- drivers/mtd/nand/atmel_nand.c |2 +- 1 file changed, 1 insertion(+), 1 delet

Re: [PATCH] kprobes: handle empty/invalid input to debugfs "enabled" file

2013-06-02 Thread Masami Hiramatsu
(2013/06/01 6:15), Mathias Krause wrote: > When writing invalid input to 'debug/kprobes/enabled' it'll silently > be ignored. Even worse, when writing an empty string to this file, > the outcome is purely random as the switch statement will make its > decision based on the value of an uninitialized

linux-next: manual merge of the imx-mxs tree with the arm-soc tree

2013-06-02 Thread Stephen Rothwell
Hi Shawn, Today's linux-next merge of the imx-mxs tree got a conflict in arch/arm/mach-mxs/mach-mxs.c between commit 6aaab172c99b ("ARM: mxs: remove the .map_io declaration") from the arm-soc tree and commit fe7149dfa886 ("ARM: mxs: Remove init_irq declaration in machine description") from the imx

Re: [v4][PATCH 1/6] mm: swap: defer clearing of page_private() for swap cache pages

2013-06-02 Thread Minchan Kim
On Fri, May 31, 2013 at 11:38:56AM -0700, Dave Hansen wrote: > > From: Dave Hansen > > This patch defers the destruction of swapcache-specific data in > 'struct page'. This simplifies the code because we do not have > to keep extra copies of the data during the removal of a page > from the swap

Re: [PATCH V3] irqchip: Add TB10x interrupt controller driver (2)

2013-06-02 Thread Vineet Gupta
On 06/01/2013 04:31 PM, Christian Ruppert wrote: > On Fri, May 31, 2013 at 11:18:14PM +0100, Grant Likely wrote: >> On Fri, 31 May 2013 19:32:34 +0200 (CEST), Thomas Gleixner >> wrote: >>> On Fri, 31 May 2013, Christian Ruppert wrote: >>> The SOC interrupt controller driver for the Abilis Sy

[GIT PULL] extcon-next for 3.10

2013-06-02 Thread Chanwoo Choi
Hi Greg, This is extcon-next pull request for 3.10. Please pull extcon with following updates. Best regards and Thanks, Chanwoo Choi The following changes since commit e4aa937ec75df0eea0bee03bffa3303ad36c986b: Linux 3.10-rc3 (2013-05-26 16:00:47 -0700) are available in the git repository at:

RE: A bug about system call on ARM

2013-06-02 Thread Wang, Yalin
Hi Will, I have a question about this patch . If the user space is thumb mode, The PC should be rewind by 2 bytes, So the fix_up code should be Sub lr, lr, #2 . Am I right ? Thanks for your help . -Original Message- From: Wang, Yalin Sent: Friday, May 31, 2013 7:31 PM To: 'Will D

Re: [RFC PATCH] sched: smart wake-affine

2013-06-02 Thread Mike Galbraith
On Mon, 2013-06-03 at 12:52 +0800, Michael Wang wrote: > On 06/03/2013 11:53 AM, Mike Galbraith wrote: > > On Mon, 2013-06-03 at 11:26 +0800, Michael Wang wrote: > >> On 06/03/2013 11:09 AM, Mike Galbraith wrote: > >>> On Mon, 2013-06-03 at 10:28 +0800, Michael Wang wrote: > On 05/28/2013 0

Re: [net-next rfc V2 7/8] macvtap: add TUNSETQUEUE ioctl

2013-06-02 Thread Jason Wang
On 06/02/2013 07:22 PM, Michael S. Tsirkin wrote: > On Fri, May 31, 2013 at 05:53:24PM +0800, Jason Wang wrote: >> This patch adds TUNSETQUEUE ioctl to let userspace can temporarily disable or >> enable a queue of macvtap. This is used to be compatible at API layer of >> tuntap >> to simplify the

Re: [RFC PATCH v0 0/2] dw_dmac: move to own folder and split

2013-06-02 Thread Viresh Kumar
On 31 May 2013 21:20, Andy Shevchenko wrote: > This is first attempt to do split as suggested by Arnd et al. > First patch moves driver to its own folder. > Second one does the actual split. > > During this files are renamed: mostly means that dw_dmac prefix is eliminated. > I hope to get it ready

Re: [PATCH 1/3] ARM: EXYNOS: uncompress - print debug messages if DEBUG_LL is defined

2013-06-02 Thread Tushar Behera
On 06/01/2013 09:29 AM, Olof Johansson wrote: > On Fri, May 31, 2013 at 05:19:02PM +0530, Tushar Behera wrote: >> Printing low-level debug messages make an assumption that the specified >> UART port has been preconfigured by the bootloader. Incorrectly >> specified UART port results in system getti

Re: [RFC PATCH v0 1/2] dma: move dw_dmac driver to an own directory

2013-06-02 Thread Viresh Kumar
On 31 May 2013 21:20, Andy Shevchenko wrote: > diff --git a/drivers/dma/Makefile b/drivers/dma/Makefile > +obj-$(CONFIG_DW_DMAC) += dw/ > +++ b/drivers/dma/dw/Makefile > +obj-$(CONFIG_DW_DMAC) += dw_dmac.o The lower one should be obj-y += dw_dmac.o as this will always be true. -- To unsubscribe

Re: [RFC PATCH] sched: smart wake-affine

2013-06-02 Thread Michael Wang
On 06/03/2013 11:53 AM, Mike Galbraith wrote: > On Mon, 2013-06-03 at 11:26 +0800, Michael Wang wrote: >> On 06/03/2013 11:09 AM, Mike Galbraith wrote: >>> On Mon, 2013-06-03 at 10:28 +0800, Michael Wang wrote: On 05/28/2013 01:05 PM, Michael Wang wrote: > wake-affine stuff is always try

[PATCH v2 1/4] perf util: Add parse_nsec_time() function

2013-06-02 Thread Namhyung Kim
From: Namhyung Kim The parse_nsec_time() function is for parsing a string of time into 64-bit nsec value. It's a preparation of time filtering in some of perf commands. Cc: David Ahern Signed-off-by: Namhyung Kim --- tools/perf/util/util.c | 30 ++ tools/perf/util

[PATCH v2 3/4] perf report: Add --time-filter option

2013-06-02 Thread Namhyung Kim
From: Namhyung Kim The --time-filter option is for limiting samples within a range of time. A time range looks like - and at most one of them can be omitted. This can be useful when analyzing a part of a huge data only. Cc: Joonsoo Kim Cc: David Ahern Signed-off-by: Namhyung Kim --- tools/

[PATCH v2 2/4] perf script: Add --time-filter option

2013-06-02 Thread Namhyung Kim
From: Namhyung Kim The --time-filter option is for limiting samples within a range of time. A time range looks like - and at most one of them can be omitted. For instance: $ perf script --time-filter -2178446.12 ... xchat 1772 [002] 2178446.070330: sched:sched_switch: prev_comm=x

[PATCH/RFC v2 4/4] perf inject: Add --time-filter option

2013-06-02 Thread Namhyung Kim
From: Namhyung Kim The --time-filter option is for limiting samples within a range of time. A time range looks like - and at most one of them can be omitted. This can be useful when analyzing a part of a huge data only. It's unclear how to specify a time range when used with a pipe. It seems

[PATCH] writeback: make wb_do_writeback() as static

2013-06-02 Thread Haicheng Li
It's not used globally and could be static. Cc: Jan Kara Signed-off-by: Haicheng Li --- fs/fs-writeback.c |2 +- include/linux/writeback.h |1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 3be5718..f892dec 100644 ---

Re: [PATCH 3/3] ARM: S5P64X0: Remove duplicate uncompress code

2013-06-02 Thread Tushar Behera
On 06/01/2013 02:11 PM, Sylwester Nawrocki wrote: > Hi, > > On 05/31/2013 01:49 PM, Tushar Behera wrote: >> The uncompress code in S5P64X0 is almost same as the uncompress code >> defined in plat-samsung. Better to reuse that code. >> >> Signed-off-by: Tushar Behera >> --- >> arch/arm/mach-s5p64

Re: [PATCH v3] backlight: Convert from Legacy pm ops to dev_pm_ops

2013-06-02 Thread Jingoo Han
On Sunday, June 02, 2013 8:07 AM, Shuah Khan wrote: > > Convert drivers/video/backlight/class to use dev_pm_ops for power > management and remove Legacy PM ops hooks. With this change, backlight > class registers suspend/resume callbacks via class->pm (dev_pm_ops) > instead of Legacy class->suspen

Re: [PATCH] powerpc/pci: Improve device hotplug initialization

2013-06-02 Thread Guenter Roeck
On Mon, Jun 03, 2013 at 10:28:47AM +0800, Chen Yuanquan-B41889 wrote: > On 06/01/2013 09:58 PM, Guenter Roeck wrote: > >On Fri, May 31, 2013 at 03:44:07PM +1000, Benjamin Herrenschmidt wrote: > >>On Thu, 2013-05-30 at 22:14 -0700, Guenter Roeck wrote: > >>>On Wed, May 29, 2013 at 05:30:41PM +0800,

Re: [PATCH V3] irqchip: Add TB10x interrupt controller driver

2013-06-02 Thread Vineet Gupta
On 06/01/2013 03:48 AM, Grant Likely wrote: > On Fri, 31 May 2013 19:32:34 +0200 (CEST), Thomas Gleixner > wrote: >> irq chip. >>> +static void tb10x_irq_cascade(unsigned int irq, struct irq_desc *desc) >>> +{ >>> + struct irq_domain *domain = irq_desc_get_handler_data(desc); >>> + >>> + gene

Re: 3.9.4 Oops running xfstests (WAS Re: 3.9.3: Oops running xfstests)

2013-06-02 Thread Dave Chinner
On Sun, Jun 02, 2013 at 11:04:11PM -0400, CAI Qian wrote: > > > There's memory corruption all over the place. It is most likely > > that trinity is causing this - it's purpose is to trigger corruption > > issues, but they aren't always immediately seen. If you can trigger > > this xfs trace with

Re: [PATCH] firewire: introduce fw_driver.probe and .remove methods

2013-06-02 Thread Takashi Sakamoto
Hi Stefan and Greg, I test Stefan's patches and it works well with my devices. > This is one of two(?) drivers on which he is currently working on; Yes. I'm developing for two driver modules for some firewire sound device. One is "snd-fireworks" as Stefan mentioned and another is "snd-bebob"

Re: [RFC PATCH] sched: smart wake-affine

2013-06-02 Thread Mike Galbraith
On Mon, 2013-06-03 at 11:26 +0800, Michael Wang wrote: > On 06/03/2013 11:09 AM, Mike Galbraith wrote: > > On Mon, 2013-06-03 at 10:28 +0800, Michael Wang wrote: > >> On 05/28/2013 01:05 PM, Michael Wang wrote: > >>> wake-affine stuff is always trying to pull wakee close to waker, by > >>> theor

Re: [PATCH v1 2/2] ARM:prima2:move postcore_initcalls to init_machine.

2013-06-02 Thread Barry Song
hi Srinivas, 2013/5/31 Srinivas KANDAGATLA : > From: Srinivas Kandagatla > > This patch moves all postcore_initcalls to very first calls in > init_machine. This should achieve the same sequencing as done via > postcore_initcalls. > Without this patch a multi_v7 kernel panics if we boot it on any

Re: Please add to stable: module: don't unlink the module until we've removed all exposure.

2013-06-02 Thread Joe Lawrence
On Sun, 2 Jun 2013, Rusty Russell wrote: > Ben Greear writes: > > > It turns out, the bug I spent yesterday chasing in various 3.9 kernels is > > apparently > > fixed by the commit in the title (c9c390bb5535380d40614571894ef0c00bc026ff). > > Apparently being the operative word. > > This commi

Re: [PATCH v2] rcu: fix a race in hlist_nulls_for_each_entry_rcu macro

2013-06-02 Thread David Miller
From: "Paul E. McKenney" Date: Sun, 2 Jun 2013 20:42:54 -0700 > On Sun, Jun 02, 2013 at 08:27:03PM -0700, David Miller wrote: >> From: Eric Dumazet >> Date: Sun, 02 Jun 2013 20:12:49 -0700 >> >> > On Sun, 2013-06-02 at 19:58 -0700, David Miller wrote: >> >> From: Eric Dumazet >> >> Date: Sun,

Re: [PATCH v2] rcu: fix a race in hlist_nulls_for_each_entry_rcu macro

2013-06-02 Thread Paul E. McKenney
On Sun, Jun 02, 2013 at 08:12:49PM -0700, Eric Dumazet wrote: > On Sun, 2013-06-02 at 19:58 -0700, David Miller wrote: > > From: Eric Dumazet > > Date: Sun, 02 Jun 2013 16:31:35 -0700 > > > > > On Thu, 2013-05-30 at 12:25 +0400, Roman Gushchin wrote: > > >> On 29.05.2013 23:06, Eric Dumazet wrote

Re: [PATCH v2] rcu: fix a race in hlist_nulls_for_each_entry_rcu macro

2013-06-02 Thread Eric Dumazet
On Sun, 2013-06-02 at 20:42 -0700, Paul E. McKenney wrote: > Or if you would like to take it: > > Acked-by: Paul E. McKenney > Thanks guys ! -- 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

Re: [PATCH v2] rcu: fix a race in hlist_nulls_for_each_entry_rcu macro

2013-06-02 Thread Paul E. McKenney
On Sun, Jun 02, 2013 at 08:27:03PM -0700, David Miller wrote: > From: Eric Dumazet > Date: Sun, 02 Jun 2013 20:12:49 -0700 > > > On Sun, 2013-06-02 at 19:58 -0700, David Miller wrote: > >> From: Eric Dumazet > >> Date: Sun, 02 Jun 2013 16:31:35 -0700 > >> > >> > On Thu, 2013-05-30 at 12:25 +040

Re: [PATCH v2] rcu: fix a race in hlist_nulls_for_each_entry_rcu macro

2013-06-02 Thread Paul E. McKenney
On Sun, Jun 02, 2013 at 07:58:26PM -0700, David Miller wrote: > From: Eric Dumazet > Date: Sun, 02 Jun 2013 16:31:35 -0700 > > > On Thu, 2013-05-30 at 12:25 +0400, Roman Gushchin wrote: > >> On 29.05.2013 23:06, Eric Dumazet wrote: > >> > On Wed, 2013-05-29 at 14:09 +0400, Roman Gushchin wrote: >

[GIT PULL] cgroup fixes for v3.10-rc4

2013-06-02 Thread Tejun Heo
Hello, Linus. This pull request contains * Fix for yet another xattr bug which may lead to NULL deref. * A subtle bug in for_each_descendant_pre(). This bug requires quite specific conditions to trigger and isn't too likely to actually happen in the wild, but maybe that just makes it that m

[Announce] sg3_utils-1.36 available

2013-06-02 Thread Douglas Gilbert
sg3_utils is a package of command line utilities for sending SCSI and some ATA commands to devices. This package targets the Linux 3, 2.6 and 2.4 kernel series. It also has ports to FreeBSD, Tru64, Solaris, and Windows (cygwin and mingw). Mainly small changes and fixes in this version including s

[GIT PULL] libata fixes for v3.10-rc4

2013-06-02 Thread Tejun Heo
Hello, Linus. libata changes for v3.10-rc4. Nothing too interesting. PCI ID additions, some sata_rcar fixes and a fringe bug fix for DMADIR handling which shouldn't affect any device remotely modern. The changes are available in the following git branch git://git.kernel.org/pub/scm/linux/ker

Re: [PATCH v2] rcu: fix a race in hlist_nulls_for_each_entry_rcu macro

2013-06-02 Thread David Miller
From: Eric Dumazet Date: Sun, 02 Jun 2013 20:12:49 -0700 > On Sun, 2013-06-02 at 19:58 -0700, David Miller wrote: >> From: Eric Dumazet >> Date: Sun, 02 Jun 2013 16:31:35 -0700 >> >> > On Thu, 2013-05-30 at 12:25 +0400, Roman Gushchin wrote: >> >> On 29.05.2013 23:06, Eric Dumazet wrote: >> >>

Re: [PATCH 08/10] clk: add basic Rockchip rk3066a clock support

2013-06-02 Thread Olof Johansson
On Mon, Jun 03, 2013 at 01:00:31AM +0200, Heiko Stübner wrote: > This adds basic support for clocks on Rockchip rk3066 SoCs. > The clock handling thru small dt nodes is heavily inspired by the > sunxi clk code. > > The clock specifiers are named as "x-cortex-a9-x", because the clock > semantics ar

Re: [RFC PATCH] sched: smart wake-affine

2013-06-02 Thread Michael Wang
On 06/03/2013 11:09 AM, Mike Galbraith wrote: > On Mon, 2013-06-03 at 10:28 +0800, Michael Wang wrote: >> On 05/28/2013 01:05 PM, Michael Wang wrote: >>> wake-affine stuff is always trying to pull wakee close to waker, by theory, >>> this will bring benefit if waker's cpu cached hot data for wakee

Re: [PATCH 02/10] clocksource: dw_apb_timer_of: add clock-handling

2013-06-02 Thread Baruch Siach
Hi Heiko, On Mon, Jun 03, 2013 at 12:56:37AM +0200, Heiko Stübner wrote: > Add the possibility to get the clock-frequency from a timer clock instead > of specifying it as dt property. Additionally also add the possibility > to also define a controlling periphal clock for the timer block. > > The

Re: [PATCH] dma: mmp_pdma: support for getting residual bytes

2013-06-02 Thread Xiang Wang
2013/5/31 Andy Shevchenko : > On Fri, May 31, 2013 at 11:21 AM, Xiang Wang wrote: >> In some of our drivers (e.g. UART) we may stop a running DMA >> before it finishes. So we need to know how many bytes have >> been transferred. > > Couple of comments below. > >> --- a/drivers/dma/mmp_pdma.c >> ++

Re: Baremetal during suspend gives: WARNING: at /home/konrad/linux/arch/x86/kernel/smp.c:123 native_smp_send_reschedule+0x5b/0x60()

2013-06-02 Thread Michael Wang
On 06/01/2013 05:11 AM, Konrad Rzeszutek Wilk wrote: > Heya! > > This is v3.10-rc3 with a revert of b5096566f6e1ee2b88324772f020ae9bc0cfa9a0 > (drm/nv50/fifo: prevent races between clients updating playlists) since said > commit hangs resume. Hi, Konrad Borislav has reported the BUG before, and

Re: [PATCH v2] rcu: fix a race in hlist_nulls_for_each_entry_rcu macro

2013-06-02 Thread Eric Dumazet
On Sun, 2013-06-02 at 19:58 -0700, David Miller wrote: > From: Eric Dumazet > Date: Sun, 02 Jun 2013 16:31:35 -0700 > > > On Thu, 2013-05-30 at 12:25 +0400, Roman Gushchin wrote: > >> On 29.05.2013 23:06, Eric Dumazet wrote: > >> > On Wed, 2013-05-29 at 14:09 +0400, Roman Gushchin wrote: > >> > >

Re: [RFC PATCH] sched: smart wake-affine

2013-06-02 Thread Mike Galbraith
On Mon, 2013-06-03 at 10:28 +0800, Michael Wang wrote: > On 05/28/2013 01:05 PM, Michael Wang wrote: > > wake-affine stuff is always trying to pull wakee close to waker, by theory, > > this will bring benefit if waker's cpu cached hot data for wakee, or the > > extreme ping-pong case. > > > > And

Re: [net-next rfc V2 6/8] macvtap: allow TUNSETIFF to create multiqueue device

2013-06-02 Thread Jason Wang
On 05/31/2013 10:48 PM, Sergei Shtylyov wrote: > Hello. > > On 31-05-2013 13:53, Jason Wang wrote: > >> Though the queue were in fact created by open(), we still need to add >> this check >> to be compatible with tuntap which can let mgmt software use a single >> API to >> manage queues. This patch

Re: 3.9.4 Oops running xfstests (WAS Re: 3.9.3: Oops running xfstests)

2013-06-02 Thread CAI Qian
> There's memory corruption all over the place. It is most likely > that trinity is causing this - it's purpose is to trigger corruption > issues, but they aren't always immediately seen. If you can trigger > this xfs trace without trinity having been run and without all the > RCU/idle/scheduler

Re: [PATCH v2] rcu: fix a race in hlist_nulls_for_each_entry_rcu macro

2013-06-02 Thread David Miller
From: Eric Dumazet Date: Sun, 02 Jun 2013 16:31:35 -0700 > On Thu, 2013-05-30 at 12:25 +0400, Roman Gushchin wrote: >> On 29.05.2013 23:06, Eric Dumazet wrote: >> > On Wed, 2013-05-29 at 14:09 +0400, Roman Gushchin wrote: >> > >> > True, these lookup functions are usually structured the same arou

[PATCH] staging/media: lirc_imon: fix leaks in imon_probe()

2013-06-02 Thread Alexey Khoroshilov
Error handling of usb_submit_urb() is not as all others in imon_probe(). It just unlocks mutexes and returns nonzero leaving all already allocated resources unfreed. The patch makes sure all the resources are deallocated. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-

Re: [PATCH] eCryptfs: Cocci spatch "memdup.spatch"

2013-06-02 Thread Tyler Hicks
On 2013-06-01 11:39:36, Thomas Meyer wrote: > > Signed-off-by: Thomas Meyer > --- Thanks Thomas - I've pushed this to my next branch. Tyler > > diff -u -p a/fs/ecryptfs/messaging.c b/fs/ecryptfs/messaging.c > --- a/fs/ecryptfs/messaging.c > +++ b/fs/ecryptfs/messaging.c > @@ -247,14 +247,13 @

Re: [PATCH] There is no /sys/parameters

2013-06-02 Thread Rusty Russell
Jean Delvare writes: > There is no such path as /sys/parameters, module parameters live in > /sys/module/*/parameters. Thanks, applied! Cheers, Rusty. > Signed-off-by: Jean Delvare > Cc: Rusty Russell > --- > include/linux/moduleparam.h |2 +- > kernel/params.c |2 +- >

[RFC] PTR_ERR: return 0 if ptr isn't an error value.

2013-06-02 Thread Rusty Russell
Back in 2011, Uwe Kleine-König added the nonsensically-named PTR_RET(), providing a means to avoid if() statements in code (commit fa9ee9c4b9). Instead, just make PTR_ERR() return 0 if the pointer isn't an error value. This is harmless, since PTR_ERR() should have never been passed a non-error

Re: [PATCHv4 3/3] gpio: msm: Add device tree and irqdomain support for gpio-msm-v2

2013-06-02 Thread Rohit Vaswani
On 6/1/2013 1:09 AM, Grant Likely wrote: On Sat, Jun 1, 2013 at 1:22 AM, Rohit Vaswani wrote: This cleans up the gpio-msm-v2 driver of all the global define usage. The number of gpios are now defined in the device tree. This enables adding irqdomain support as well. Signed-off-by: Rohit Vaswan

Re: [RFC PATCH] sched: smart wake-affine

2013-06-02 Thread Michael Wang
On 05/28/2013 01:05 PM, Michael Wang wrote: > wake-affine stuff is always trying to pull wakee close to waker, by theory, > this will bring benefit if waker's cpu cached hot data for wakee, or the > extreme ping-pong case. > > And testing show it could benefit hackbench 15% at most. > > However,

Re: [PATCH] powerpc/pci: Improve device hotplug initialization

2013-06-02 Thread Chen Yuanquan-B41889
On 06/01/2013 09:58 PM, Guenter Roeck wrote: On Fri, May 31, 2013 at 03:44:07PM +1000, Benjamin Herrenschmidt wrote: On Thu, 2013-05-30 at 22:14 -0700, Guenter Roeck wrote: On Wed, May 29, 2013 at 05:30:41PM +0800, Chen Yuanquan-B41889 wrote: On 05/29/2013 01:35 AM, Guenter Roeck wrote: bios_

[PATCH] ntp: Eliminate compile warning of unused variable flags

2013-06-02 Thread Ying Xue
kernel/time/ntp.c: In function ‘__hardpps’: kernel/time/ntp.c:877:16: warning: unused variable ‘flags’ [-Wunused-variable] Signed-off-by: Ying Xue --- kernel/time/ntp.c |1 - 1 file changed, 1 deletion(-) diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c index 12ff13a..8f5b3b9 100644 --- a

Re: [PATCH RFC V9 0/19] Paravirtualized ticket spinlocks

2013-06-02 Thread Raghavendra K T
On 06/02/2013 09:50 PM, Jiannan Ouyang wrote: On Sun, Jun 2, 2013 at 1:07 AM, Gleb Natapov wrote: High level question here. We have a big hope for "Preemptable Ticket Spinlock" patch series by Jiannan Ouyang to solve most, if not all, ticketing spinlocks in overcommit scenarios problem without

Re: [PATCH] ntp: Move do_adjtimex() and hardpps() functions to timekeeping.c

2013-06-02 Thread Ying Xue
Sorry, please ignore the patch as I send out wrong patch. Regards, Ying On 06/03/2013 10:18 AM, Ying Xue wrote: > From: John Stultz > > In preparation for changing the ntp locking rules, move > do_adjtimex and hardpps accessor functions to timekeeping.c, > but keep the code logic in ntp.c. >

Re: [PATCH v1 1/2] ARM:prima2: move sirfsoc_of_rstc_init to .init_early

2013-06-02 Thread Barry Song
hi Srinivas, 2013/5/31 Srinivas KANDAGATLA : > From: Srinivas Kandagatla > > This patch moves sirfsoc_of_rstc_init from early_initcall to .init_early > in machine descriptor, doing this way a multi_v7 kernel will not crash > on non-prima2 SOCs. > > Without this patch the multi_v7 kernel panics if

[PATCH] ntp: Move do_adjtimex() and hardpps() functions to timekeeping.c

2013-06-02 Thread Ying Xue
From: John Stultz In preparation for changing the ntp locking rules, move do_adjtimex and hardpps accessor functions to timekeeping.c, but keep the code logic in ntp.c. This patch also introduces a ntp_internal.h file so timekeeping specific interfaces of ntp.c can be more limitedly shared with

Re: [PATCH 10/10] arm: add basic support for Rockchip RK3066a boards

2013-06-02 Thread Arnd Bergmann
On Monday 03 June 2013 01:02:20 Heiko Stübner wrote: > index 000..094b37d > --- /dev/null > +++ b/arch/arm/mach-rockchip/rockchip.c If all goes well, this file can be removed again in 3.11 since it's all generic, but let's add it for now. > + > +static void __init rockchip_timer_init(void) >

[PATCH 5/7] dwc2: remove redundant D0 power state set

2013-06-02 Thread Yijing Wang
Pci_enable_device() will set device power state to D0, so it's no need to do it again in dwc2_driver_probe(). Acked-by: Paul Zimmerman Signed-off-by: Yijing Wang Cc: Paul Zimmerman Cc: linux-...@vger.kernel.org Cc: de...@driverdev.osuosl.org --- drivers/staging/dwc2/pci.c |2 -- 1 files ch

[PATCH 2/7] usb, dwc3: remove redundant D0 power state set

2013-06-02 Thread Yijing Wang
Pci_enable_device() will set device power state to D0, so it's no need to do it again in dwc3_pci_probe(). Signed-off-by: Yijing Wang Cc: Felipe Balbi Cc: linux-o...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/usb/dwc3/dwc3-pci.c |1 - 1 files changed, 0 insertions(+), 1 delet

[PATCH 1/7] usb, chipidea: remove redundant D0 power state set

2013-06-02 Thread Yijing Wang
Pci_enable_device() will set device power state to D0, so it's no need to do it again in ci13xxx_pci_probe(). Signed-off-by: Yijing Wang Cc: Alexander Shishkin Cc: linux-...@vger.kernel.org --- drivers/usb/chipidea/ci13xxx_pci.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff -

Re: [PATCH 09/10] arm: add debug uarts for rockchip rk29xx and rk3xxx series

2013-06-02 Thread Arnd Bergmann
On Monday 03 June 2013 01:01:03 Heiko Stübner wrote: > +#if defined(CONFIG_DEBUG_RK29_UART0) > +#define ROCKCHIP_UART_DEBUG_PHYS_BASE 0x2006 > +#define ROCKCHIP_UART_DEBUG_VIRT_BASE 0xfe06 0xfed6 maybe? looks like a typo. Arnd -- To unsubscribe from this list: send the line "

[PATCH -next] staging/lustre: fix return value check in libcfs_sock_ioctl()

2013-06-02 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function sock_alloc_file() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- no compile test --- drivers/staging/lustre/lustre/libcfs/linux/linux-tcpip.c | 4

Re: arm: add basic support for Rockchip Cortex-A9 SoCs

2013-06-02 Thread Arnd Bergmann
On Monday 03 June 2013 00:55:15 Heiko Stübner wrote: > Prepare your eggs and tomatoes please, I got myself a second playground . > > As the title implies this series adds basic support for Rockchip's Cortex-A9 > SoCs, like the RK3066 used in many cheaper tablets. > > On the periphal side it's ve

Re: [PATCH v1.1] gpiolib: append SFI helpers for GPIO API

2013-06-02 Thread Joe Perches
On Mon, 2013-06-03 at 11:59 +1000, Ryan Mallon wrote: > On 31/05/13 19:27, Andy Shevchenko wrote: > Some trivial coding style comment below. [] > > + for (i = 0; i < sfi_gpio_num_entry; i++, pentry++) { > > + if (!strncmp(name, pentry->pin_name, SFI_NAME_LEN)) > > + re

Re: [PATCH v1.1] gpiolib: append SFI helpers for GPIO API

2013-06-02 Thread Ryan Mallon
On 31/05/13 19:27, Andy Shevchenko wrote: > To support some (legacy) firmwares and platforms let's make life easier for > their customers. > > This patch extracts SFI GPIO API from arch/x86/platform/mrst/mrst.c. > > Signed-off-by: Andy Shevchenko > Acked-by: Len Brown > Cc: Grant Likely > Cc:

Re: [PATCH v3 06/13] memblock, numa: Introduce flag into memblock.

2013-06-02 Thread Tang Chen
Hi Li, On 06/03/2013 09:30 AM, Wanpeng Li wrote: On Fri, May 24, 2013 at 05:29:15PM +0800, Tang Chen wrote: There is no flag in memblock to discribe what type the memory is. s/discribe/describe OK. .. +#define MEMBLK_FLAGS_DEFAULT 0 + MEMBLK_FLAGS_DEFAULT is one of the memblock fl

Re: Exotic architecture fixes

2013-06-02 Thread Stephen Rothwell
Hi Geert, [Chen Liqin removed from cc as that domain appears to not work :-(] On Sun, 2 Jun 2013 21:39:38 +0200 Geert Uytterhoeven wrote: > > On Tue, May 28, 2013 at 11:38 AM, Geert Uytterhoeven > wrote: > > On Thu, May 23, 2013 at 10:09 PM, Geert Uytterhoeven > > wrote: > >> I created a bra

RE: IO regression after ab8fabd46f on x86 kernels with high memory

2013-06-02 Thread Yuhong Bao
> We kernel guys have been asking the distros to ship 64-bit kernels even > in their 32-bit distros for many years, but concerns of compat issues > and the desire to deprecate 32-bit userspace seems to have kept that > from happening. And now there is another reason: to call 64-bit EFI runtime ser

linux-next: manual merge of the m68k tree with the cris tree

2013-06-02 Thread Stephen Rothwell
Hi Geert, Today's linux-next merge of the m68k tree got a conflict in arch/cris/arch-v32/drivers/Kconfig between commit aca30fdc0fb6 ("CRIS: drop unused Kconfig symbols") from the cris tree and commit 6b8faf979bca ("cris: Switch cris to drivers/Kconfig") from the m68k tree. Thanks for the heads u

[PATCH] rtc: cmos: Workaround bios clearing rtc control

2013-06-02 Thread Derek Basehore
The bios may clear the rtc control register when resuming the system. Since the cmos interrupt handler may now be run before the rtc_cmos is resumed, this can cause the interrupt handler to ignore an alarm since the alarm bit is not set in the rtc control register. To work around this, check if the

Re: [PATCH 3/4] sys/reboot: boolize C_A_D

2013-06-02 Thread Joe Perches
On Fri, 2013-05-31 at 16:02 -0700, Andrew Morton wrote: > there's no rule > which states that sizeof(bool) must equal sizeof(int). For gcc, sizeof(_Bool) isn't sizeof(int) so it would work for one endian but not the other. gcc has sizeof(_Bool) == sizeof(unsigned char) -- To unsubscribe from thi

Re: Re: [PATCH 2/3] mm/kmemleak.c: Use list_for_each_entry_safe to reconstruct function scan_gray_list

2013-06-02 Thread majianpeng
>On Tue, May 14, 2013 at 12:49:44PM +0100, majianpeng wrote: >> Signed-off-by: Jianpeng Ma >> --- >> mm/kmemleak.c | 8 +--- >> 1 file changed, 1 insertion(+), 7 deletions(-) >> >> diff --git a/mm/kmemleak.c b/mm/kmemleak.c >> index b1525db..f0ece93 100644 >> --- a/mm/kmemleak.c >> +++ b/mm/

linux-next: manual merge of the devicetree-current tree with the kbuild-current tree

2013-06-02 Thread Stephen Rothwell
Hi Grant, Today's linux-next merge of the devicetree-current tree got a conflict in scripts/Makefile.lib between commit ad06156876c0 ("kbuild: Don't assume dts files live in arch/*/boot/dts") from the tree and commit 2c302eb0a6a5 ("kbuild: make sure we clean up DTB temporary files") from the

Re: [PATCH 3/4] sys/reboot: boolize C_A_D

2013-06-02 Thread li guang
在 2013-05-31五的 16:02 -0700,Andrew Morton写道: > On Thu, 30 May 2013 15:58:05 +0800 liguang wrote: > > > --- a/include/linux/reboot.h > > +++ b/include/linux/reboot.h > > @@ -35,7 +35,7 @@ extern void kernel_restart(char *cmd); > > extern void kernel_halt(void); > > extern void kernel_power_off(vo

[PATCH] hw_rng: nomadik: use clk_prepare_enable()

2013-06-02 Thread Linus Walleij
The Nomadik HW RNG driver has seen some rust and is not preparing the clock before use. Fix this up so we get rid of runtime complaints from the clock subsystem. Signed-off-by: Linus Walleij --- drivers/char/hw_random/nomadik-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH 05/10] mmc: dw_mmc-pltfm: remove static from dw_mci_pltfm_remove

2013-06-02 Thread Heiko Stübner
dw_mci_pltfm_remove gets exported and used by dw_mmc-exynos, so should not be static. Signed-off-by: Heiko Stuebner --- drivers/mmc/host/dw_mmc-pltfm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/dw_mmc-pltfm.c b/drivers/mmc/host/dw_mmc-pltfm.c inde

[PATCH 06/10] mmc: dw_mmc-pltfm: add Rockchip variant

2013-06-02 Thread Heiko Stübner
Cortex-A9 SoCs from Rockchip use a slightly modified variant of dw_mmc controllers that seems to require the SDMMC_CMD_USE_HOLD_REG bit to always be set. There also seem to be no other modifications (additional register etc) present, so to keep the footprint low, add this small variant to the pltf

arm: add basic support for Rockchip Cortex-A9 SoCs

2013-06-02 Thread Heiko Stübner
Prepare your eggs and tomatoes please, I got myself a second playground ;-) . As the title implies this series adds basic support for Rockchip's Cortex-A9 SoCs, like the RK3066 used in many cheaper tablets. On the periphal side it's very lightweight, as it seems someone from Rockchip was shopping

[PATCH 04/10] clk: divider: add flag to limit possible dividers to even numbers

2013-06-02 Thread Heiko Stübner
SoCs like the Rockchip Cortex-A9 ones contain divider some clocks that use the regular mechanisms for storage but allow only even dividers and 1 to be used. Therefore add a flag that lets _is_valid_div limit the valid dividers to these values. _get_maxdiv is also adapted to return even values for

  1   2   >