Re: [PATCH v4 3/6] KVM: MMU: introduce kvm_clear_all_lpage_info

2013-05-02 Thread Xiao Guangrong
On 05/03/2013 10:15 AM, Takuya Yoshikawa wrote: > On Sat, 27 Apr 2013 11:13:19 +0800 > Xiao Guangrong wrote: > >> This function is used to reset the large page info of all guest pages >> which will be used in later patch >> >> Signed-off-by: Xiao Guangrong >> --- >> arch/x86/kvm/x86.c | 25

Re: [PATCH] sched: wake-affine throttle

2013-05-02 Thread Michael Wang
Hi, Mike Thanks for your reply. On 05/03/2013 01:01 PM, Mike Galbraith wrote: [snip] >> >> If this approach caused any concerns, please let me know ;-) > > I wonder if throttling on failure is the way to go. Note the minimal > gain for pgbench with the default 1ms throttle interval. It's not

Re: [PATCH v4 2/6] KVM: x86: introduce memslot_set_lpage_disallowed

2013-05-02 Thread Xiao Guangrong
On 05/03/2013 10:10 AM, Takuya Yoshikawa wrote: > On Sat, 27 Apr 2013 11:13:18 +0800 > Xiao Guangrong wrote: > >> It is used to set disallowed large page on the specified level, can be >> used in later patch >> >> Signed-off-by: Xiao Guangrong >> --- >> arch/x86/kvm/x86.c | 53 >>

[PATCH v2 2/2] clk: si5351: Set initial clkout rate when defined in platform data.

2013-05-02 Thread Marek Belisko
Signed-off-by: Marek Belisko --- Changes v1->v2: - update commit message and comment to refer to platform data not DT drivers/clk/clk-si5351.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index cf39e53..24f5536 100644 ---

[PATCH v2 1/2] clk: si5351: Fix clkout rate computation.

2013-05-02 Thread Marek Belisko
Rate was incorrectly computed because we read from wrong divider register. Signed-off-by: Marek Belisko Acked-by: Sebastian Hesselbarth --- drivers/clk/clk-si5351.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index

Re: [PATCH v4 4/6] KVM: MMU: fast invalid all shadow pages

2013-05-02 Thread Xiao Guangrong
On 05/03/2013 09:05 AM, Marcelo Tosatti wrote: >> + >> +/* >> + * Fast invalid all shadow pages belong to @slot. >> + * >> + * @slot != NULL means the invalidation is caused the memslot specified >> + * by @slot is being deleted, in this case, we should ensure that rmap >> + * and lpage-info of

[PATCH] ASoC: McASP: Fix receive clock polarity in DAIFMT_NB_NF mode.

2013-05-02 Thread Marek Belisko
According documentation bit ACLKRPOL is set to 0 (receiver samples data on falling edge) and when set to 1 (receiver samples data on rising edge). I2S data are always sampled on falling edge and valid during rising edge of bit clock. So in case of capture data transmitter sample data on falling

[PATCH v2] clk: si5351: Allow user to define disabled state for every clock output

2013-05-02 Thread Marek Belisko
From: Sebastian Hesselbarth This patch adds platform data and DT bindings to allow to overwrite the stored disabled state for each clock output. Signed-off-by: Marek Belisko Signed-off-by: Sebastian Hesselbarth --- Changes from v1->v2: Sebastian Hesselbarth send me updated version of patch

Re: [PATCH -next] power: fix lp8788-charger kconfig & build

2013-05-02 Thread Anton Vorontsov
On Wed, May 01, 2013 at 11:04:38PM +, Kim, Milo wrote: > > Subject: [PATCH -next] power: fix lp8788-charger kconfig & build > > > > From: Randy Dunlap > > > Acked-by: Milo Kim Applied, thanks a lot! Anton -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH v2 2/5] ARM: dove: add DT parsing for legacy mv643xx_eth

2013-05-02 Thread Andrew Lunn
On Fri, May 03, 2013 at 01:48:36AM +0200, Sebastian Hesselbarth wrote: > To allow to move to orion irqchip driver, existing legacy devices > have to map their irqs. This patch adds init code to map the > corresponding irqs. It will vanish as soon as there is true device tree > support for

Re: [PATCH] sched: wake-affine throttle

2013-05-02 Thread Mike Galbraith
On Fri, 2013-05-03 at 11:46 +0800, Michael Wang wrote: > On 04/10/2013 11:30 AM, Michael Wang wrote: > > Now long time has been passed since the first version, I'd like to > do some summary about current states: > > On a 12 cpu box with tip 3.9.0-rc7, test show that: > > 1. remove wake-affine

[GIT PULL] linux-pstore.git

2013-05-02 Thread Anton Vorontsov
Hello Linus, Please pull a few updates for the pstore subsystem. Here is what is in: - A new platform data parameter to specify ECC configuration; - Rounding fixup to not waste memory in ecc_blocks; - Restore ECC information printouts; - A small code cleanup: use kmemdup where appropriate.

Re: [PATCH, RFC 02/22] cpufreq: ARM_DT_BL_CPUFREQ needs ARM_CPU_TOPOLOGY

2013-05-02 Thread Viresh Kumar
On 2 May 2013 20:46, Arnd Bergmann wrote: > The big.LITTLE cpufreq driver uses the CPU topology API, which > needs to be reflected in Kconfig to prevent broken configurations. > > warning: (ARM_DT_BL_CPUFREQ) selects ARM_BIG_LITTLE_CPUFREQ which > has unmet direct dependencies (ARCH_HAS_CPUFREQ

[PATCH 2/7] posix-cpu-timers: fix acounting delta_exec twice

2013-05-02 Thread kosaki . motohiro
From: KOSAKI Motohiro Currently glibc rt/tst-cpuclock2 test(*) sporadically fails because scheduler delta can be accounted twice from thread_group_cputimer() and account_group_exec_runtime(). Finally, clock_nanosleep() wakes up before an argument. This is posix violation. This issue was

[PATCH 6/7] sched: task_sched_runtime introduce micro optimization

2013-05-02 Thread kosaki . motohiro
From: KOSAKI Motohiro rq lock in task_sched_runtime() is necessary for two reasons. 1) accessing se.sum_exec_runtime is not atomic on 32bit and 2) do_task_delta_exec() require it. So, 64bit can avoid holding rq lock when add_delta is false and delta_exec is 0. Cc: Olivier Langlois Cc: Thomas

[PATCH 7/7] posix-cpu-timers: cleanup cpu_{clock,timer}_sample{,_group}

2013-05-02 Thread kosaki . motohiro
From: KOSAKI Motohiro Now we have four similar timer related functions, cpu_clock_sample(), cpu_clock_sample_group(), cpu_timer_sample() and cpu_timer_sample_group(). For readability, make do_cpu_clock_timer_sample() and thread_cputime() helper functions and all *_sample functions use these.

[PATCH 5/7] posix-cpu-timers: check_thread_timers() uses task_sched_runtime()

2013-05-02 Thread kosaki . motohiro
From: KOSAKI Motohiro A type of tsk->se.sum_exec_runtime is u64. Thus, reading it is racy when running 32bit. We should use task_sched_runtime(). Cc: Olivier Langlois Cc: Thomas Gleixner Cc: Frederic Weisbecker Cc: Ingo Molnar Acked-by: Peter Zijlstra Signed-off-by: KOSAKI Motohiro ---

[PATCH 3/7] posix-cpu-timers: fix wrong timer initialization

2013-05-02 Thread kosaki . motohiro
From: KOSAKI Motohiro Currently glibc's rt/tst-cputimer1 testcase sporadically fails because a timer created by timer_create() may fire earlier than specified. posix_cpu_timer_set() uses "val" as current time for three purpose. 1) initialize sig->cputimer. 2) calculation "old" val. 3)

[PATCH 4/7] posix-cpu-timers: timer functions should use timer time instead of clock time

2013-05-02 Thread kosaki . motohiro
From: KOSAKI Motohiro For process timers, we use cpu_clock_sample_group() and cpu_timer_sample_group() correctly. However, for thread timers, we always use cpu_clock_sample(). This is wrong because a cpu_clock_sample() accounts uncommitted delta_exec too. And this is inconsistent against

[PATCH 1/7] posix-cpu-timers: don't account cpu timer after stopped thread runtime accounting

2013-05-02 Thread kosaki . motohiro
From: KOSAKI Motohiro When tsk->signal->cputimer->running is 1, signal->cputimer and tsk->sum_sched_runtime increase at the same pace because update_curr() increases both accounting. However, there is one exception. When thread exiting, __exit_signal() turns over task's sum_shced_runtime to

[PATCH v4 0/7] posix timers fixlet

2013-05-02 Thread kosaki . motohiro
From: KOSAKI Motohiro Glibc's posix timer testcase found a lot of bugs in posix timer code. This series, hopefully, fixes all of them. All patches are independent each other logically. Changes from v3 - task_sched_runtime() micro optimization add to care tsk->on_cpu. suggested Paul Turner.

[PATCH V2] cpufreq: cpu0: Free parent node for error cases

2013-05-02 Thread Viresh Kumar
We are freeing parent node in success cases but not in failure cases. Lets do it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq-cpu0.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index

RE: [ANNOUNCE] 3.8.10-rt6

2013-05-02 Thread Jain Priyanka-B32167
Hello Sebastian, It is mentioned below that SLxB is broken. I assume it means bit SLUB and SLAB is broken? Can you please share the error-details/logs/scenario/steps-to-reproduce. Regards Priyanka > -Original Message- > From: linux-rt-users-ow...@vger.kernel.org [mailto:linux-rt-users-

Re: [PATCH] dma: tegra: implement suspend/resume callbacks

2013-05-02 Thread Vinod Koul
On Thu, May 02, 2013 at 12:42:30PM -0600, Stephen Warren wrote: > On 04/30/2013 04:30 AM, Vinod Koul wrote: > > On Wed, Apr 24, 2013 at 03:24:27PM +0530, Laxman Dewangan wrote: > >> Implement suspend/resume callbacks to store APB DMA channel's > >> register on suspend and restore APB DMA channel's

Re: [PATCH v2 03/10] freezer: add new freezable helpers using freezer_do_not_count()

2013-05-02 Thread Tejun Heo
On Thu, May 02, 2013 at 09:17:21PM -0700, Colin Cross wrote: > > And I *hope* the lockdep annotation is stricter than what was added > > before. I think it better be "no lock ever should be held at this > > point" rather than "consider this a big lock". > > The previous patch

Re: [PATCH v2 03/10] freezer: add new freezable helpers using freezer_do_not_count()

2013-05-02 Thread Colin Cross
On Thu, May 2, 2013 at 9:09 PM, Tejun Heo wrote: > Hello, > > On Thu, May 02, 2013 at 07:41:39PM -0700, Colin Cross wrote: >> On Thu, May 2, 2013 at 7:16 PM, Colin Cross wrote: >> > This sounds the same as what ended up getting reverted in >> > https://lkml.org/lkml/2013/3/4/221 >> > I can add

Re: [PATCH v2 03/10] freezer: add new freezable helpers using freezer_do_not_count()

2013-05-02 Thread Tejun Heo
On Thu, May 02, 2013 at 09:09:34PM -0700, Tejun Heo wrote: > But that conflicts with what you're doing here which seems pretty > useful, so, to satisfy both goals, when somebody needs to put a > pseudo-frozen task into the actual frozen jobctl stop, those spots > which are currently using

linux-next: Tree for May 3

2013-05-02 Thread Stephen Rothwell
Hi all, Please do not add any v3.11 destined work to your linux-next included branches until after v3.10-rc1 is released. Changes since 20130502: I have created today's linux-next tree at git://git.kernel.org/pub

Re: [PATCH v2 03/10] freezer: add new freezable helpers using freezer_do_not_count()

2013-05-02 Thread Tejun Heo
Hello, On Thu, May 02, 2013 at 07:41:39PM -0700, Colin Cross wrote: > On Thu, May 2, 2013 at 7:16 PM, Colin Cross wrote: > > This sounds the same as what ended up getting reverted in > > https://lkml.org/lkml/2013/3/4/221 > > I can add the WARN_ON_ONCE to all my new calls, and leave them out of

KVM VM(rhel-5.5) %si is too high when TX/RX packets

2013-05-02 Thread Zhanghaoyu (A)
I running a VM(RHEL-5.5) on KVM hypervisor(linux-3.8 + QEMU-1.4.1), and direct-assign intel 82576 VF to the VM. When TX/RX packets on VM to the other host via iperf tool, top tool result on VM shown that the %si is too high, approximately 95% ~ 100%, but from the view of host, the VM's total

Re: [PATCH v3 net-next] net/usb: new driver for RTL8152

2013-05-02 Thread David Miller
From: 'Greg KH' Date: Thu, 2 May 2013 20:23:15 -0700 > On Fri, May 03, 2013 at 11:11:47AM +0800, hayeswang wrote: >> Greg KH [mailto:gre...@linuxfoundation.org] >> > Sent: Friday, May 03, 2013 10:33 AM >> > To: Hayeswang >> > Cc: oli...@neukum.org; net...@vger.kernel.org; >> >

Re: [PATCH v3 net-next] net/usb: new driver for RTL8152

2013-05-02 Thread 'Greg KH'
On Fri, May 03, 2013 at 11:11:47AM +0800, hayeswang wrote: > Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: Friday, May 03, 2013 10:33 AM > > To: Hayeswang > > Cc: oli...@neukum.org; net...@vger.kernel.org; > > linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; nic_swsd > > Subject:

Re: [PATCH] sched: wake-affine throttle

2013-05-02 Thread Michael Wang
On 04/10/2013 11:30 AM, Michael Wang wrote: Now long time has been passed since the first version, I'd like to do some summary about current states: On a 12 cpu box with tip 3.9.0-rc7, test show that: 1. remove wake-affine stuff cause regression on hackbench (could be 15%). 2. reserve

Re: Re: Re: [PATCH] UBI: fix memory leak when use fastmap

2013-05-02 Thread wang . bo116
richard -rw- weinberger write 2013-05-03 03:21:33: > On Thu, May 2, 2013 at 10:30 AM, wrote: > >> Hi! > >> > >> On Tue, Apr 16, 2013 at 10:53 AM, wrote: > >> > Hello, > >> > Sorry, there is still something wrong with the previous > > patch's > >> > format, try to submit it again.

Re: X86 fpu registers in a signal handler's ucontext

2013-05-02 Thread H. Peter Anvin
On 04/29/2013 07:34 AM, Warlich, Christof wrote: > Second, only FP state seems to be available through ucontext_t, and I would > need to clear exceptions for SSE as well. Not true. > Can anyone give me some advice on how to I could proceed? To optimize the common case, if the signal handler

Re: [PATCH v2 07/10] futex: use freezable blocking call

2013-05-02 Thread Darren Hart
On 05/02/2013 12:45 PM, Thomas Gleixner wrote: > On Wed, 1 May 2013, Colin Cross wrote: > >> Avoid waking up every thread sleeping in a futex_wait call during >> suspend and resume by calling a freezable blocking call. Previous >> patches modified the freezer to avoid sending wakeups to

RE: [PATCH v3 net-next] net/usb: new driver for RTL8152

2013-05-02 Thread hayeswang
Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, May 03, 2013 10:33 AM > To: Hayeswang > Cc: oli...@neukum.org; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; nic_swsd > Subject: Re: [PATCH v3 net-next] net/usb: new driver for RTL8152 > > On Fri,

Re: Subject : [ PATCH ] pci-reset-error_state-to-pci_channel_io_normal-at-report_slot_reset

2013-05-02 Thread Yanmin Zhang
On Thu, 2013-05-02 at 19:00 -0700, Greg Kroah-Hartman wrote: > On Fri, May 03, 2013 at 08:33:00AM +0800, Yanmin Zhang wrote: > > On Wed, 2013-05-01 at 20:20 -0500, Linas Vepstas wrote: > > > Hi, > > > > > > On 1 May 2013 19:30, Yanmin Zhang > > > wrote: > > > On Fri, 2013-04-26 at 06:28

[PATCH] trivial: beautify code, let 'inline' in front of 'void'

2013-05-02 Thread Chen Gang
Let 'inline' in front of 'void' to make code more beautiful. It also can avoid the related warnings when EXTRA_CFLAGS=-W. Signed-off-by: Chen Gang --- arch/ia64/kernel/mca.c |2 +- arch/ia64/sn/pci/pcibr/pcibr_ate.c |2 +-

Re: OOM-killer and strange RSS value in 3.9-rc7

2013-05-02 Thread Han Pingtian
On Thu, May 02, 2013 at 03:10:15PM +, Christoph Lameter wrote: > On Thu, 2 May 2013, Han Pingtian wrote: > > > Looks like "ibmvscsi" + "slub" can trigger this problem. > > And the next merge of the slab-next tree will also cause SLAB to trigger > this issue. I would like to have this fixes.

Re: [PATCH V4 4/9] mtd: get the ECC info from the Extended Parameter Page

2013-05-02 Thread Huang Shijie
于 2013年05月03日 07:39, Brian Norris 写道: only run the extended parameter page function after that point. sorry, I prefer to run the extended parameter page function here just following the case "p-> ecc_bits != 0xff". IMHO, the two cases should be put together as the onfi spec tells, rather be

Re: [PATCH v3 net-next] net/usb: new driver for RTL8152

2013-05-02 Thread Greg KH
On Fri, May 03, 2013 at 10:01:25AM +0800, Hayes Wang wrote: > Add new driver for supporting Realtek RTL8152 Based USB 2.0 Ethernet Adapters > > Signed-off-by: Hayes Wang > Cc: Realtek linux nic maintainers You removed the wording I had questions about last time, does that mean the previous

Re: [PATCH v2 03/10] freezer: add new freezable helpers using freezer_do_not_count()

2013-05-02 Thread Colin Cross
On Thu, May 2, 2013 at 7:16 PM, Colin Cross wrote: > This sounds the same as what ended up getting reverted in > https://lkml.org/lkml/2013/3/4/221 > I can add the WARN_ON_ONCE to all my new calls, and leave them out of > existing calls, but that seems a little odd, and will be redundant if > the

Re: [PATCH, RFC 20/22] media: coda: select GENERIC_ALLOCATOR

2013-05-02 Thread Shawn Guo
On Thu, May 02, 2013 at 09:53:19PM +0200, Arnd Bergmann wrote: > Unfortunately, linux-next as of today is still broken. Shawn, did I > miss a pull request from you? No, I haven't sent you a pull request for that. I have queued it for 3.10-rc but am still waiting for a stable base (3.10-rc1 where

Re: [PATCH v4 4/6] KVM: MMU: fast invalid all shadow pages

2013-05-02 Thread Takuya Yoshikawa
On Sat, 27 Apr 2013 11:13:20 +0800 Xiao Guangrong wrote: > +/* > + * Fast invalid all shadow pages belong to @slot. > + * > + * @slot != NULL means the invalidation is caused the memslot specified > + * by @slot is being deleted, in this case, we should ensure that rmap > + * and lpage-info of

Re: [PATCH v2 03/10] freezer: add new freezable helpers using freezer_do_not_count()

2013-05-02 Thread Colin Cross
This sounds the same as what ended up getting reverted in https://lkml.org/lkml/2013/3/4/221 I can add the WARN_ON_ONCE to all my new calls, and leave them out of existing calls, but that seems a little odd, and will be redundant if the lockdep call in try_to_freeze goes back in in 3.11. Do you

Re: [PATCH, RFC 04/22] staging/drm: imx: add missing dependencies

2013-05-02 Thread Shawn Guo
On Thu, May 02, 2013 at 05:16:08PM +0200, Arnd Bergmann wrote: > The imx DRM driver needs a couple of extra Kconfig dependencies > to avoid random build failures: > > drivers/staging/imx-drm/ipuv3-crtc.c:448: > undefined reference to `ipu_idmac_put' > drivers/staging/imx-drm/ipuv3-crtc.c:450:

Re: [PATCH v4 3/6] KVM: MMU: introduce kvm_clear_all_lpage_info

2013-05-02 Thread Takuya Yoshikawa
On Sat, 27 Apr 2013 11:13:19 +0800 Xiao Guangrong wrote: > This function is used to reset the large page info of all guest pages > which will be used in later patch > > Signed-off-by: Xiao Guangrong > --- > arch/x86/kvm/x86.c | 25 + > arch/x86/kvm/x86.h |2 ++ >

Re: [PATCH v4 2/6] KVM: x86: introduce memslot_set_lpage_disallowed

2013-05-02 Thread Takuya Yoshikawa
On Sat, 27 Apr 2013 11:13:18 +0800 Xiao Guangrong wrote: > It is used to set disallowed large page on the specified level, can be > used in later patch > > Signed-off-by: Xiao Guangrong > --- > arch/x86/kvm/x86.c | 53 ++- > 1 files changed,

Re: Subject : [ PATCH ] pci-reset-error_state-to-pci_channel_io_normal-at-report_slot_reset

2013-05-02 Thread Greg Kroah-Hartman
On Fri, May 03, 2013 at 08:33:00AM +0800, Yanmin Zhang wrote: > On Wed, 2013-05-01 at 20:20 -0500, Linas Vepstas wrote: > > Hi, > > > > On 1 May 2013 19:30, Yanmin Zhang > > wrote: > > On Fri, 2013-04-26 at 06:28 +, Zhang, LongX wrote: > > > From: Zhang Long > > > >

[PATCH v3 net-next] net/usb: new driver for RTL8152

2013-05-02 Thread Hayes Wang
Add new driver for supporting Realtek RTL8152 Based USB 2.0 Ethernet Adapters Signed-off-by: Hayes Wang Cc: Realtek linux nic maintainers --- drivers/net/usb/Kconfig | 11 + drivers/net/usb/Makefile|1 + drivers/net/usb/cdc_ether.c | 10 + drivers/net/usb/r8152.c | 1767

Re: [PATCH v10 0/2] (arm-soc for v3.10) arm: introduce psci_smp_ops

2013-05-02 Thread Rob Herring
On 05/02/2013 03:34 PM, Olof Johansson wrote: > Hi, > > On Thu, May 2, 2013 at 12:03 PM, Arnd Bergmann wrote: >> On Thursday 02 May 2013, Russell King - ARM Linux wrote: >>> The only issue that there is is where we are in the development cycle >>> (almost mid merge window), and I've yet to push

[PATCH] virtio_blk: Add missing 'static' qualifiers

2013-05-02 Thread Jonghwan Choi
Add missing 'static' qualifiers Signed-off-by: Jonghwan Choi --- drivers/block/virtio_blk.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 6472395..5cdf88b 100644 --- a/drivers/block/virtio_blk.c +++

[PATCH-V2] HID: hid-steelseries fix led class build issue

2013-05-02 Thread Simon Wood
Fixes 'undefined reference' issue when hid-steelseries is built in, but led-class is a module. -- drivers/built-in.o: In function `steelseries_srws1_remove': hid-steelseries.c:(.text+0x3b97a1): undefined reference to `led_classdev_unregister' drivers/built-in.o: In function

Re: [PATCH] powerpc: Make Book E watchdog reset type configurable

2013-05-02 Thread Guenter Roeck
Hi Dirk, On Thu, May 02, 2013 at 09:11:19PM +0200, Dirk Eibach wrote: > Hi Guenter, > > >>diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > >>index e89fc31..6048593 100644 > >>--- a/drivers/watchdog/Kconfig > >>+++ b/drivers/watchdog/Kconfig > >>@@ -1172,6 +1172,38 @@ config

Re: [PATCH v4 4/6] KVM: MMU: fast invalid all shadow pages

2013-05-02 Thread Marcelo Tosatti
On Sat, Apr 27, 2013 at 11:13:20AM +0800, Xiao Guangrong wrote: > The current kvm_mmu_zap_all is really slow - it is holding mmu-lock to > walk and zap all shadow pages one by one, also it need to zap all guest > page's rmap and all shadow page's parent spte list. Particularly, things > become

Re: [GIT PULL] Removal of GENERIC_GPIO

2013-05-02 Thread Stephen Rothwell
Hi Guys, On Fri, 3 May 2013 10:52:34 +1000 Stephen Rothwell wrote: > > I currently have 3 merge fix patches for the gen-cpio tree: > > gen-gpio: GPIOLIB merge fix up > merge fix for Convert selectors of GENERIC_GPIO to GPIOLIB > merge fix 2 for Convert selectors of GENERIC_GPIO to GPIOLIB > >

[PATCH V2] ARM: bcm281xx: Add L2 support for Rev A2 chips

2013-05-02 Thread Christian Daudt
Rev A2 SoCs have an unorthodox memory re-mapping and this needs to be reflected in the cache operations. This patch adds new outer cache functions for the l2x0 driver to support this SoC revision. It also adds a new compatible value for the cache to enable this functionality. Updates from V1: -

Re: [patch 4/4] sched: Distangle worker accounting from rq->lock

2013-05-02 Thread Steven Rostedt
On Thu, 2013-05-02 at 17:12 -0700, Tejun Heo wrote: > On Tue, Apr 30, 2013 at 06:47:10PM -0400, Steven Rostedt wrote: > > On Tue, Apr 30, 2013 at 09:37:22AM -0400, Steven Rostedt wrote: > > > [ Blast from the past! ] > > > > > > When merging in 3.4.42 into the 3.4-rt branch I hit a conflict with

Help with the Watchdog subsystem

2013-05-02 Thread Guenter Roeck
Hi Wim, I noticed you seem to be quite busy lately. Do you need help maintaining the watchdog subsystem ? I already stepped in to do code reviews, but I am not sure if that is helpful and/or enough. Thanks, Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [GIT PULL] Removal of GENERIC_GPIO

2013-05-02 Thread Stephen Rothwell
Hi Grant, On Thu, 2 May 2013 19:20:10 +0900 Alex Courbot wrote: > > Here is the pull request for the GENERIC_GPIO removal. It is almost > certain that a few fixups will be necessary - while I don't have precise > patches, the following steps should ensure the state of the code is clean: > > *

[PATCH 3/8] FS-Cache: Don't sleep in page release if __GFP_FS is not set

2013-05-02 Thread David Howells
Don't sleep in __fscache_maybe_release_page() if __GFP_FS is not set. This goes some way towards mitigating fscache deadlocking against ext4 by way of the allocator, eg: INFO: task flush-8:0:24427 blocked for more than 120 seconds. "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this

[PATCH 8/8] FS-Cache: Simplify cookie retention for fscache_objects, fixing access problems

2013-05-02 Thread David Howells
Simplify the way fscache cache objects retain their cookie. The way I implemented the cookie storage handling made synchronisation a pain (ie. the object state machine can't rely on the cookie actually still being there). Instead of the the object being detached from the cookie and the cookie

[PATCH 5/8] FS-Cache: Wrap checks on object state

2013-05-02 Thread David Howells
Wrap checks on object state (mostly outside of fs/fscache/object.c) with inline functions so that the mechanism can be replaced. Some of the state checks within object.c are left as-is as they will be replaced. Signed-off-by: David Howells --- fs/cachefiles/namei.c |4 ++--

[PATCH 6/8] Add wait_on_atomic_t() and wake_up_atomic_t()

2013-05-02 Thread David Howells
Add wait_on_atomic_t() and wake_up_atomic_t() to indicate became-zero events on atomic_t types. This uses the bit-wake waitqueue table. Signed-off-by: David Howells --- include/linux/wait.h | 29 - kernel/wait.c| 85

[PATCH 4/8] FS-Cache: Uninline fscache_object_init()

2013-05-02 Thread David Howells
Uninline fscache_object_init() so as not to expose some of the FS-Cache internals to the cache backend. Signed-off-by: David Howells --- fs/fscache/object.c | 40 ++-- include/linux/fscache-cache.h | 38 ++ 2

[PATCH 2/8] CacheFiles: name i_mutex lock class explicitly

2013-05-02 Thread David Howells
From: J. Bruce Fields Just some cleanup. (And note the caller of this function may, for example, call vfs_unlink on a child, so the "1" (I_MUTEX_PARENT) really was what was intended here.) Signed-off-by: J. Bruce Fields Signed-off-by: David Howells --- fs/cachefiles/namei.c |2 +- 1

[PATCH 0/8] Fix assorted FS-Cache issues

2013-05-02 Thread David Howells
Following this mail is a series of patches to fix a number of FS-Cache issues, including a number of oopses. The patches can also be found at: http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=fscache The patches are as follows: (1) Don't put spin_lock() in a

[PATCH 1/8] fs/fscache: remove spin_lock() from the condition in while()

2013-05-02 Thread David Howells
From: Sebastian Andrzej Siewior The spinlock() within the condition in while() will cause a compile error if it is not a function. This is not a problem on mainline but it does not look pretty and there is no reason to do it that way. That patch writes it a little differently and avoids the

Re: Subject : [ PATCH ] pci-reset-error_state-to-pci_channel_io_normal-at-report_slot_reset

2013-05-02 Thread Yanmin Zhang
On Wed, 2013-05-01 at 20:20 -0500, Linas Vepstas wrote: > Hi, > > On 1 May 2013 19:30, Yanmin Zhang > wrote: > On Fri, 2013-04-26 at 06:28 +, Zhang, LongX wrote: > > From: Zhang Long > > > > Specific pci device drivers might have many functions to >

Re: [patch 4/4] sched: Distangle worker accounting from rq->lock

2013-05-02 Thread Tejun Heo
On Tue, Apr 30, 2013 at 06:47:10PM -0400, Steven Rostedt wrote: > On Tue, Apr 30, 2013 at 09:37:22AM -0400, Steven Rostedt wrote: > > [ Blast from the past! ] > > > > When merging in 3.4.42 into the 3.4-rt branch I hit a conflict with the > > try_to_wake_up_local() call. It seems that the 3.4-rt

[RFC PATCH v3 10/31] page_alloc: when dynamic numa is enabled, don't check that all pages in a block belong to the same zone

2013-05-02 Thread Cody P Schafer
When dynamic numa is enabled, the last or first page in a pageblock may have been transplanted to a new zone (or may not yet be transplanted to a new zone). Disable a BUG_ON() which checks that the start_page and end_page are in the same zone, if they are not in the proper zone they will simply

Re: [PATCH v2 00/10] optimize freezing tasks by reducing task wakeups

2013-05-02 Thread Tejun Heo
Hey, Rafael. On Thu, May 02, 2013 at 11:06:35PM +0200, Rafael J. Wysocki wrote: > > v2 moves the skip check to freeze_task(), and expands the commit > > messages. > > The entire series makes sense to me, so are there any objections? > > Tejun, Oleg?? Generally looks good to me. I'm a bit

[RFC PATCH v3 23/31] x86: memlayout: add a arch specific inital memlayout setter.

2013-05-02 Thread Cody P Schafer
On x86, we have numa_info specifically to track the numa layout, which is precisely the data memlayout needs, so use it to create an initial memlayout. Signed-off-by: Cody P Schafer --- arch/x86/mm/numa.c | 28 1 file changed, 28 insertions(+) diff --git

[RFC PATCH v3 04/31] memory_hotplug: export ensure_zone_is_initialized() in mm/internal.h

2013-05-02 Thread Cody P Schafer
Export ensure_zone_is_initialized() so that it can be used to initialize new zones within the dynamic numa code. Signed-off-by: Cody P Schafer --- mm/internal.h | 8 mm/memory_hotplug.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mm/internal.h

Re: [PATCH v2 10/10] af_unix: use freezable blocking calls in read

2013-05-02 Thread Tejun Heo
On Wed, May 01, 2013 at 06:35:08PM -0700, Colin Cross wrote: > Avoid waking up every thread sleeping in read call on an AF_UNIX > socket during suspend and resume by calling a freezable blocking > call. Previous patches modified the freezer to avoid sending > wakeups to threads that are blocked

[RFC PATCH v3 26/31] x86/mm/numa: when dnuma is enabled, use memlayout to handle memory hotplug's physaddr_to_nid.

2013-05-02 Thread Cody P Schafer
When a memlayout is tracked (ie: CONFIG_DYNAMIC_NUMA is enabled), rather than iterate over numa_meminfo, a lookup can be done using memlayout. Signed-off-by: Cody P Schafer --- arch/x86/mm/numa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/numa.c

[RFC PATCH v3 24/31] init/main: call memlayout_global_init() in start_kernel().

2013-05-02 Thread Cody P Schafer
memlayout_global_init() initializes the first memlayout, which is assumed to match the initial page-flag nid settings. This is done in start_kernel() as the initdata used to populate the memlayout is purged from memory early in the boot process (XXX: When?). Signed-off-by: Cody P Schafer ---

[RFC PATCH v3 25/31] dnuma: memlayout: add memory_add_physaddr_to_nid() for memory_hotplug

2013-05-02 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- mm/memlayout.c | 16 1 file changed, 16 insertions(+) diff --git a/mm/memlayout.c b/mm/memlayout.c index 8b9ba9a..3e89482 100644 --- a/mm/memlayout.c +++ b/mm/memlayout.c @@ -336,3 +336,19 @@ void memlayout_global_init(void)

[RFC PATCH v3 01/31] rbtree: add postorder iteration functions.

2013-05-02 Thread Cody P Schafer
Add postorder iteration functions for rbtree. These are useful for safely freeing an entire rbtree without modifying the tree at all. Signed-off-by: Cody P Schafer --- include/linux/rbtree.h | 4 lib/rbtree.c | 40 2 files changed, 44

[RFC PATCH v3 06/31] mm: add nid_zone() helper

2013-05-02 Thread Cody P Schafer
Add nid_zone(), which returns the zone corresponding to a given nid & zonenum. Signed-off-by: Cody P Schafer --- include/linux/mm.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 1a7f19e..2004713 100644 ---

[RFC PATCH v3 28/31] mm/page_alloc: in page_outside_zone_boundaries(), avoid premature decisions.

2013-05-02 Thread Cody P Schafer
With some code that expands the zone boundaries, VM_BUG_ON(bad_range()) was being triggered. Previously, page_outside_zone_boundaries() decided that once it detected a page outside the boundaries, it was certainly outside even if the seqlock indicated the data was invalid & needed to be reread.

[RFC PATCH v3 27/31] mm/memory_hotplug: VM_BUG if nid is too large.

2013-05-02 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- mm/memory_hotplug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 8e6658d..320d914 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1071,6 +1071,8 @@ int __mem_online_node(int nid)

[RFC PATCH v3 09/31] page_alloc: in move_freepages(), skip pages instead of VM_BUG on node differences.

2013-05-02 Thread Cody P Schafer
With dynamic numa, pages are going to be gradully moved from one node to another, causing the page ranges that move_freepages() examines to contain pages that actually belong to another node. When dynamic numa is enabled, we skip these pages instead of VM_BUGing out on them. This additionally

[RFC PATCH v3 05/31] mm/memory_hotplug: use {pgdat,zone}_is_empty() when resizing zones & pgdats

2013-05-02 Thread Cody P Schafer
Use the *_is_empty() helpers to be more clear about what we're actually checking for. Signed-off-by: Cody P Schafer --- mm/memory_hotplug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index f4cb01a..a65235f 100644 ---

[RFC PATCH v3 30/31] mm/page_alloc: use manage_pages instead of present pages when calculating default_zonelist_order()

2013-05-02 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- mm/page_alloc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 4fe35b24..cc7b332 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3514,8 +3514,8 @@ static int default_zonelist_order(void)

[RFC PATCH v3 29/31] mm/page_alloc: make pr_err() in page_outside_zone_boundaries() more useful

2013-05-02 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- mm/page_alloc.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 3695ca5..4fe35b24 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -254,8 +254,11 @@ static int

[RFC PATCH v3 31/31] mm: add a early_param "extra_nr_node_ids" to increase nr_node_ids above the minimum by a percentage.

2013-05-02 Thread Cody P Schafer
For dynamic numa, sometimes the hypervisor we're running under will want to split a single NUMA node into multiple NUMA nodes. If the number of numa nodes is limited to the number avaliable when the system booted (as it is on x86), we may not be able to fully adopt the new memory layout provided

[RFC PATCH v3 08/31] page_alloc: add return_pages_to_zone() when DYNAMIC_NUMA is enabled.

2013-05-02 Thread Cody P Schafer
Add return_pages_to_zone(), which uses return_page_to_zone(). It is a minimized version of __free_pages_ok() which handles adding pages which have been removed from another zone into a new zone. Signed-off-by: Cody P Schafer --- mm/internal.h | 5 - mm/page_alloc.c | 17 +

[RFC PATCH v3 12/31] memory_hotplug: factor out locks in mem_online_cpu()

2013-05-02 Thread Cody P Schafer
In dynamic numa, when onlining nodes, lock_memory_hotplug() is already held when mem_online_node()'s functionality is needed. Factor out the locking and create a new function __mem_online_node() to allow reuse. Signed-off-by: Cody P Schafer --- include/linux/memory_hotplug.h | 1 +

[RFC PATCH v3 07/31] mm: Add Dynamic NUMA Kconfig.

2013-05-02 Thread Cody P Schafer
We need to add some functionality for use by Dynamic NUMA to pieces of mm/, so provide the Kconfig prior to adding actual Dynamic NUMA functionality. For details on Dynamic NUMA, see te later patch (which adds baseline functionality): "mm: add memlayout & dnuma to track pfn->nid & transplant

[RFC PATCH v3 19/31] mm: memory,memlayout: add refresh_memory_blocks() for Dynamic NUMA.

2013-05-02 Thread Cody P Schafer
Properly update the sysfs info when memory blocks move between nodes due to a Dynamic NUMA reconfiguration. --- drivers/base/memory.c | 39 +++ include/linux/memory.h | 5 + mm/memlayout.c | 3 +++ 3 files changed, 47 insertions(+) diff --git

Re: [PATCH v2 03/10] freezer: add new freezable helpers using freezer_do_not_count()

2013-05-02 Thread Tejun Heo
On Thu, May 02, 2013 at 04:55:05PM -0700, Tejun Heo wrote: > So, the freezable interface can't be something that people can use > casually. It is something which should be carefully and strategically > deployed where we *know* that lock dependency risks don't exist or at > least are acceptable.

[RFC PATCH v3 17/31] drivers/base/node: rename unregister_mem_blk_under_nodes() to be more acurate

2013-05-02 Thread Cody P Schafer
unregister_mem_block_under_nodes() only unregisters a single section in the mem block under all nodes, not the entire mem block. Rename it to unregister_mem_block_section_under_nodes(). Also rename the phys_index param to indicate that it is a section number. --- drivers/base/memory.c | 2 +-

[RFC PATCH v3 13/31] mm: add memlayout & dnuma to track pfn->nid & transplant pages between nodes

2013-05-02 Thread Cody P Schafer
On some systems, the hypervisor can (and will) relocate physical addresses as seen in a VM between real NUMA nodes. For example, IBM Power systems which are using particular revisions of PHYP (IBM's proprietary hypervisor) This change set introduces the infrastructure for tracking & dynamically

[RFC PATCH v3 16/31] drivers/base/node,memory: rename function to match interface

2013-05-02 Thread Cody P Schafer
Rename register_mem_sect_under_node() to register_mem_block_under_node() and rename unregister_mem_sect_under_nodes() to unregister_mem_block_under_nodes() to reflect that both of these functions are given memory_blocks instead of mem_sections --- drivers/base/memory.c | 4 ++--

[RFC PATCH v3 02/31] rbtree: add rbtree_postorder_for_each_entry_safe() helper.

2013-05-02 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- include/linux/rbtree.h | 8 1 file changed, 8 insertions(+) diff --git a/include/linux/rbtree.h b/include/linux/rbtree.h index 2879e96..1b239ca 100644 --- a/include/linux/rbtree.h +++ b/include/linux/rbtree.h @@ -85,4 +85,12 @@ static inline void

[RFC PATCH v3 15/31] drivers/base/memory.c: alphabetize headers.

2013-05-02 Thread Cody P Schafer
--- drivers/base/memory.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/base/memory.c b/drivers/base/memory.c index 14f8a69..5247698 100644 --- a/drivers/base/memory.c +++ b/drivers/base/memory.c @@ -10,20 +10,20 @@ * SPARSEMEM should be contained

[RFC PATCH v3 20/31] page_alloc: use dnuma to transplant newly freed pages in __free_pages_ok()

2013-05-02 Thread Cody P Schafer
__free_pages_ok() handles higher order (order != 0) pages. Transplant hook is added here as this is where the struct zone to free to is decided. Signed-off-by: Cody P Schafer --- mm/page_alloc.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/mm/page_alloc.c

[RFC PATCH v3 11/31] page-flags dnuma: reserve a pageflag for determining if a page needs a node lookup.

2013-05-02 Thread Cody P Schafer
Add a pageflag called "lookup_node"/ PG_lookup_node / Page*LookupNode(). Used by dynamic numa to indicate when a page has a new node assignment waiting for it. FIXME: This also exempts PG_lookup_node from PAGE_FLAGS_CHECK_AT_PREP due to the asynchronous usage of PG_lookup_node, which needs to be

  1   2   3   4   5   6   7   8   9   10   >