Re: 3.5-rc7 - can no longer wake up from suspend to RAM

2012-07-21 Thread Tomasz Chmielewski
On 07/22/2012 12:48 PM, Roland Dreier wrote: Thanks Hugh. I just went ahead and built 3.5 final, and suspend/resume look to be working again. I'm not even going to try to understand how a timekeeping bug broke resume... Yep, seems to be working fine here, too. -- Tomasz Chmielewski

Re: 3.5-rc7 - can no longer wake up from suspend to RAM

2012-07-21 Thread Roland Dreier
Thanks Hugh. I just went ahead and built 3.5 final, and suspend/resume look to be working again. I'm not even going to try to understand how a timekeeping bug broke resume... - R. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

linux-next: manual merge of the akpm tree with the vfs tree

2012-07-21 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in fs/cachefiles/rdwr.c between commit e89cdeffe531 ("switch dentry_open() to struct path, make it grab references itself") from the vfs, tree and commit "fs: cachefiles: add support for large files in filesystem caching" from

linux-next: manual merge of the akpm tree with the slave-dma tree

2012-07-21 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in drivers/dma/dmaengine.c between commit 634332502366 ("dmaengine: Cleanup logging messages") from the slave-dma tree and commit "drivers/dma/dmaengine.c: lower the priority of 'failed to get' dma channel message" from the akpm

[PATCH] tools/include: use stdint types for user-space byteshift headers

2012-07-21 Thread Yaakov (Cygwin/X)
From: Yaakov Selkowitz Commit a07f7672d7cf0ff0d6e548a9feb6e0bd016d9c6c added user-space copies of the byteshift headers to be used by hostprogs, changing e.g. u8 to __u8. However, in order to cross-compile the kernel from a non-Linux system, stdint.h types need to be used instead of

Re: False warning from Sparse

2012-07-21 Thread Josh Triplett
On Sat, Jul 21, 2012 at 10:52:54PM -0500, Larry Finger wrote: > I am getting the following false warning from sparse: > > CHECK drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c > drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:1158:13: warning: > context imbalance in

Re: [PATCH] acpi: fix pwr_btn_event_pending build error

2012-07-21 Thread Paul E. McKenney
On Sun, Jul 22, 2012 at 03:08:40AM +0300, Kirill A. Shutemov wrote: > On Sat, Jul 21, 2012 at 04:37:14PM -0700, Paul E. McKenney wrote: > > On Sun, Jul 22, 2012 at 12:52:43AM +0300, Kirill A. Shutemov wrote: > > > On Sat, Jul 21, 2012 at 02:41:56PM -0700, Paul E. McKenney wrote: > > > > Hello! > >

False warning from Sparse

2012-07-21 Thread Larry Finger
Hi, I am getting the following false warning from sparse: CHECK drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:1158:13: warning: context imbalance in 'rtl92c_dm_refresh_rate_adaptive_mask' - different lock contexts for basic block The

[REPOST #3 PATCH v2] Input: atkbd - make repeat period more accurate.

2012-07-21 Thread George Spelvin
This replaces some inaccurate lookup tables with an exact computation. Although the diff adds source comments, it shrinks binary size. (By only 50 bytes, but hey.) AT keyboard repeat rates are multiples of 1/240 second expressed in a 0.2.3 bit floating point format. That is, possible values

Re: [PATCH 00/13] drivers: hv: kvp

2012-07-21 Thread Ben Hutchings
On Tue, 2012-07-03 at 15:24 +, KY Srinivasan wrote: > > > -Original Message- > > From: Ben Hutchings [mailto:b...@decadent.org.uk] > > Sent: Monday, July 02, 2012 3:57 PM > > To: KY Srinivasan > > Cc: Olaf Hering; Greg KH; a...@canonical.com; de...@linuxdriverproject.org; > >

next/mmotm unbootable on G5: irqdomain

2012-07-21 Thread Hugh Dickins
I have to revert the patch below from mmotm 2012-07-20-16-30 or next-20120720 in order to boot on the PowerPC G5: otherwise it freezes before switching to the framebuffer console - but I'm not certain where because that initial console doesn't scroll (there are mpic messages at bottom and at top

arm-allnoconfig error: '__LINUX_ARM_ARCH__' undeclared

2012-07-21 Thread Fengguang Wu
Hi Russell, Kernel build failed on arm-allnoconfig: include/linux/math64.h:55:15: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function) arch/arm/include/asm/glue-cache.h:129:2: error: #error Unknown cache maintenance model arch/arm/include/asm/glue-df.h:99:2: error: #error

mach-at91: undefined reference to `at91sam926x_timer'

2012-07-21 Thread Fengguang Wu
Hi Andrew, I get this build failure on config arm-at91_dt_defconfig (attached as .config): arch/arm/mach-at91/built-in.o:(.arch.info.init+0x34): undefined reference to `at91sam926x_timer' Thanks, Fengguang # # Automatically generated file; DO NOT EDIT. # Linux/arm 3.5.0-rc7 Kernel

[vhost:vhost-net-next 82/99] arch/arm/include/asm/timex.h:15:24: fatal error: mach/timex.h: No such file or directory

2012-07-21 Thread Fengguang Wu
Hi Russell, I get this build failure on config arm-spear13xx_defconfig (attached as .config): arch/arm/include/asm/timex.h:15:24: fatal error: mach/timex.h: No such file or directory Thanks, Fengguang # # Automatically generated file; DO NOT EDIT. # Linux/arm 3.5.0-rc7 Kernel Configuration #

Re: [PATCH 10/11] perf tool: give user better message if precise is not supported

2012-07-21 Thread David Ahern
On 7/21/12 4:40 AM, Namhyung Kim wrote: The name 'PEBS' is intel-specific, so shouldn't we try to avoid using it directly? How about this: Precise event sampling is not supported. Try removing 'p' modifier Your right. should keep the response consistent with the documentation which is

[PATCH] avr32: fix build error in ATSTK1002 code

2012-07-21 Thread Fengguang Wu
arch/avr32/boards/atstk1000/atstk1002.c:100: error: 'num_partitions' undeclared here (not in a function) which is introduced by commit 1754aab9bb86 ("mtd: ATMEL, AVR32: inline nand partition table access "). Signed-off-by: Fengguang Wu --- arch/avr32/boards/atstk1000/atstk1002.c |2 +- 1

Re: 3.5-rc7 - can no longer wake up from suspend to RAM

2012-07-21 Thread Hugh Dickins
On Sat, 21 Jul 2012, Roland Dreier wrote: > On Wed, Jul 18, 2012 at 9:46 PM, Tomasz Chmielewski wrote: > > After upgrading to 3.5-rc7, my laptop no longer wakes up reliable from > > suspend to RAM. 3.4.x worked fine. > > FWIW, I've been having similar problems with 3.5-rc7. With 3.5-rc6 my >

Re: linux-next: manual merge of the staging tree with the target-merge tree

2012-07-21 Thread Greg KH
On Fri, Jul 20, 2012 at 09:42:28PM +0300, Michael S. Tsirkin wrote: > On Fri, Jul 20, 2012 at 11:03:58AM -0700, Greg KH wrote: > > On Fri, Jul 20, 2012 at 10:52:58AM -0700, Nicholas A. Bellinger wrote: > > > Hi Greg, > > > > > > On Thu, 2012-07-19 at 16:55 -0700, Greg KH wrote: > > > > On Thu,

linux-next: manual merge of the mmc tree with the slave-dma tree

2012-07-21 Thread Stephen Rothwell
Hi Chris, Today's linux-next merge of the mmc tree got a conflict in drivers/mmc/host/sh_mmcif.c between commits 916001fe33b7 ("mmc: sh_mmcif: remove unneeded struct sh_mmcif_dma, prepare to shdma conversion") and 0e79f9ae1610 ("mmc: sh_mmcif: switch to the new DMA channel allocation and

linux-next: manual merge of the drm tree with the pci tree

2012-07-21 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in include/linux/pci_regs.h between commit a0dee2ed0cdc ("PCI: misc pci_reg additions") from the tree and commit cdcac9cd7741 ("pci_regs: define LNKSTA2 pcie cap + bits") from the drm tree. Just context changes. I fixed it up

[tip:x86/boot] x86, boot: Exclude cmdline.c if you can't use it

2012-07-21 Thread tip-bot for Gokul Caushik
Commit-ID: bd448d4d0a1bd88dc6fdc41217b2c25383fa8529 Gitweb: http://git.kernel.org/tip/bd448d4d0a1bd88dc6fdc41217b2c25383fa8529 Author: Gokul Caushik AuthorDate: Thu, 19 Jul 2012 18:04:42 -0700 Committer: H. Peter Anvin CommitDate: Sat, 21 Jul 2012 11:07:39 -0700 x86, boot: Exclude

[tip:x86/boot] x86, boot: Removed unused debug flag and set code

2012-07-21 Thread tip-bot for Joe Millenbach
Commit-ID: 641a1cebfe2f05fa1a48503d816fc70cf707d033 Gitweb: http://git.kernel.org/tip/641a1cebfe2f05fa1a48503d816fc70cf707d033 Author: Joe Millenbach AuthorDate: Thu, 19 Jul 2012 18:04:40 -0700 Committer: H. Peter Anvin CommitDate: Sat, 21 Jul 2012 11:07:29 -0700 x86, boot: Removed

Re: [PATCH] acpi: fix pwr_btn_event_pending build error

2012-07-21 Thread Kirill A. Shutemov
On Sat, Jul 21, 2012 at 04:37:14PM -0700, Paul E. McKenney wrote: > On Sun, Jul 22, 2012 at 12:52:43AM +0300, Kirill A. Shutemov wrote: > > On Sat, Jul 21, 2012 at 02:41:56PM -0700, Paul E. McKenney wrote: > > > Hello! > > > > > > A recent build for KVM on x86 resulted in the following build

linux-next: manual merge of the vfs tree with the nfs tree

2012-07-21 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got conflicts in fs/cifs/dir.c, fs/nfs/dir.c, fs/nfs/nfs4proc.c, ipc/mqueue.c, fs/open.c and fs/namei.c between commits from the nfs tree and commits from the vfs tree. These were all caused by the rebase of the vfs tree after it had been merged

Re: [PATCH] acpi: fix pwr_btn_event_pending build error

2012-07-21 Thread Paul E. McKenney
On Sun, Jul 22, 2012 at 12:52:43AM +0300, Kirill A. Shutemov wrote: > On Sat, Jul 21, 2012 at 02:41:56PM -0700, Paul E. McKenney wrote: > > Hello! > > > > A recent build for KVM on x86 resulted in the following build error: > > > > drivers/acpi/sleep.c:60:13: warning: ‘pwr_btn_event_pending’

Re: [PATCH v1 2/2] mmc: sdhci-dove: Prepare for common clock framework

2012-07-21 Thread Chris Ball
Hi, On Thu, Jul 05 2012, Sebastian Hesselbarth wrote: > As mach-dove is moving towards common clock framework prepare > the sdhci driver to grab it's clock. > > Signed-off-by: Sebastian Hesselbarth > Cc: Chris Ball > Cc: Anton Vorontsov > Cc: Shawn Guo > Cc: Viresh Kumar > Cc: Manuel Lauss

Re: [PATCH v1 1/2] mmc: sdhci-dove: Add SDHCI_QUIRK_NO_HISPD_BIT

2012-07-21 Thread Chris Ball
Hi Sebastian, On Thu, Jul 05 2012, Sebastian Hesselbarth wrote: > The sdio controller on dove doesn't have a bit to indicate > high-speed. With the quirk set it fixes accessing high-speed > sdcards. > > Signed-off-by: Sebastian Hesselbarth > Cc: Chris Ball > Cc: Anton Vorontsov > Cc: Shawn Guo

Re: Linux 3.5 released

2012-07-21 Thread Stephen Rothwell
Hi Linus, On Sat, 21 Jul 2012 15:16:00 -0700 Linus Torvalds wrote: > > And as usual, this obviously means that the merge window for 3.6 is > open, although I hope people will spend a little bit of time testing > and beating on 3.5 before pushing on with the merge window. Well, you could force

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Ming Lei
On Sun, Jul 22, 2012 at 4:38 AM, Linus Torvalds wrote: > > I agree that this is a problem. At the same time, early boot has some > of the exact same problems as resume has, and I do wish that people > would ask themselves: "why do I try to load the firmware at early boot > time"? > > There is

Re: [PATCH] mmc: omap_hsmmc: ensure probe returns error upon resource failure

2012-07-21 Thread Chris Ball
Hi, On Thu, Jul 12 2012, S, Venkatraman wrote: > On Wed, Jul 11, 2012 at 5:10 AM, Kevin Hilman wrote: >> If platform_get_resource_by_name() fails, driver probe is aborted an >> should return an error so the driver is not bound to the device. >> >> However, in the current error path of

Re: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)

2012-07-21 Thread valdis . kletnieks
On Fri, 20 Jul 2012 17:03:59 +0200, richard -rw- weinberger said: > On Fri, Jul 20, 2012 at 4:00 PM, KY Srinivasan wrote: > > Thank you for your interest in fixing this problem. When we decide to > > change this > > ID, we will conform to the MSFT guidelines on constructing this guest ID. > > >

linux-next: manual merge of the ceph tree with Linus' tree

2012-07-21 Thread Stephen Rothwell
Hi Sage, Today's linux-next merge of the ceph tree got a conflict in net/ceph/messenger.c between commit 5bdca4e0768d ("libceph: fix messenger retry") from Linus' tree and commit e22004235a90 ("libceph: rename kvec_reset and kvec_add functions") from the ceph tree. Just context changes. I fixed

[PATCH v2] pcmcia: move unbind/rebind into dev_pm_ops.complete

2012-07-21 Thread Christian Lamparter
This patch moves the device rebind procedures for cardbus devices from the pm.resume into the pm.complete callback. The reasons for moving the code is:" [...] The PM code needs to send suspend and resume messages to every device in the right order, and it can't do that if new devices are being

[PULL] vhost-net changes for net/3.6

2012-07-21 Thread Michael S. Tsirkin
Hi Dave, Please merge the following patches into net tree for 3.6. They are on top of the current net-next. Thanks! The following changes since commit 186e868786f97c8026f0a81400b451ace306b3a4: forcedeth: spin_unlock_irq in interrupt handler fix (2012-07-20 16:18:36 -0700) are available in

Re: Oops after merge of tty-next

2012-07-21 Thread Alan Cox
On Fri, 20 Jul 2012 23:07:06 +0100 Ian Abbott wrote: > I'm getting an Oops in the linux-next tree today after the merge of the > remote-tracking branch 'tty/tty-next'. I bisected it down to commit > 36b3c070d2346c890d690d71f6eab02f8c511137 in >

[GIT PULL] target updates for v3.6-rc1 (round 1)

2012-07-21 Thread Nicholas A. Bellinger
Hello Linus, The following is the first round of target core + fabric driver updates for the freshly opened v3.6 merge window. Please go ahead and pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git for-next This series is based on target-pending/master commit

Linux 3.5 released

2012-07-21 Thread Linus Torvalds
Ok, not a lot happened since -rc7. There's a number of MIPS commits (for some reason MIPS has had a horrible track record with the -rc time schedule, I suspect I should just stop pulling late in the game), but most of the rest is pretty small. A couple of dm/md fixes, some gma500 work, make kgdb

Re: 3.5-rc7 - can no longer wake up from suspend to RAM

2012-07-21 Thread Roland Dreier
On Wed, Jul 18, 2012 at 9:46 PM, Tomasz Chmielewski wrote: > After upgrading to 3.5-rc7, my laptop no longer wakes up reliable from > suspend to RAM. 3.4.x worked fine. FWIW, I've been having similar problems with 3.5-rc7. With 3.5-rc6 my laptop resumed fine, but since updating to -rc7, it

Re: [PATCHv3 0/6] tun zerocopy support

2012-07-21 Thread Michael S. Tsirkin
On Fri, Jul 20, 2012 at 05:49:02PM -0700, David Miller wrote: > From: "Michael S. Tsirkin" > Date: Fri, 20 Jul 2012 22:23:03 +0300 > > > Same as with macvtap, I get single-percentage wins in CPU utilization > > on guest to external from this patchset, and a performance regression on > > guest to

[RFC][PATCH 4/5] PM / shmobile: Specify device latencies for Mackerel devices directly

2012-07-21 Thread Rafael J. Wysocki
The results of adaptive latency computations in GENPD_DEV_TIMED_CALLBACK() show that the start/stop and save/restore state latencies of all devices on the Mackerel board I have tried are a little below 250 us. Therefore, if the 250 us is used as the common initial value of the latency fields in

[RFC][PATCH 1/5] PM / shmobile: Set SH7372 PM domain on/off latencies directly

2012-07-21 Thread Rafael J. Wysocki
The results of adaptive latency computations in __pm_genpd_poweron() and pm_genpd_poweroff() show that the power on/power off latencies of all power domains in SH7372 are a little below 250 us. Therefore, if 250 us is used as the common initial value of the latency fields in struct

Re: [PATCH] acpi: fix pwr_btn_event_pending build error

2012-07-21 Thread Kirill A. Shutemov
On Sat, Jul 21, 2012 at 02:41:56PM -0700, Paul E. McKenney wrote: > Hello! > > A recent build for KVM on x86 resulted in the following build error: > > drivers/acpi/sleep.c:60:13: warning: ‘pwr_btn_event_pending’ defined but not > +used [-Wunused-variable] > > This patch silences this error. >

[RFC][PATCH 5/5] PM / shmobile: Allow device latencies to be read from a DT

2012-07-21 Thread Rafael J. Wysocki
Modify rmobile_read_domain_from_dt() so that it can read device latency information from the device tree along with the PM domain name and make it use rmobile_add_device_to_domain_td() for adding the device to the PM domain along with the device latency data. Signed-off-by: Rafael J. Wysocki

[RFC][PATCH 3/5] PM / shmobile: Specify device latencies for SH7372 devices directly

2012-07-21 Thread Rafael J. Wysocki
The results of adaptive latency computations in GENPD_DEV_TIMED_CALLBACK() show that the start/stop and save/restore state latencies of all devices on SH7372 I have tried are a little below 250 us. Therefore, if the 250 us is used as the common initial value of the latency fields in struct

[RFC][PATCH 0/5] PM / shmobile: Specify PM domain and device latency information directly

2012-07-21 Thread Rafael J. Wysocki
Hi all, The following patchset is on top of the previous one at: https://lkml.org/lkml/2012/7/16/399 Generally speaking, it adds code for the direct specification of various PM domain and device latencies used by PM QoS to the SH7372 SoC and Mackerel board and suggests a mechanism for reading

[RFC][PATCH 2/5] PM / shmobile: Allow device latencies to be specified directly

2012-07-21 Thread Rafael J. Wysocki
Make it possible to specify device start/stop and save/restore state latencies directy when adding devices to PM domains. For this purpose, introduce rmobile_add_device_to_domain_td() whose third argument is a pointer to a struct gpd_timing_data object containing device latency data.

[PATCH] acpi: fix pwr_btn_event_pending build error

2012-07-21 Thread Paul E. McKenney
Hello! A recent build for KVM on x86 resulted in the following build error: drivers/acpi/sleep.c:60:13: warning: ‘pwr_btn_event_pending’ defined but not +used [-Wunused-variable] This patch silences this error. Signed-off-by: Paul E. McKenney diff --git a/drivers/acpi/sleep.c

$p $o $k $e $r $o $n l i $n $e

2012-07-21 Thread Kasha Sylve
Mr. Giles directed an leaning facilitate at the ambush; but he had suddenly colossal parlous. Vassenka surf, her cookery, and separately delay, and many something else breeze knew, other times pelt reaped without saying, and would fabricate perhaps deprecated basin every quite-called cruelty

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Rafael J. Wysocki
On Saturday, July 21, 2012, Ming Lei wrote: > On Sun, Jul 22, 2012 at 1:49 AM, Rafael J. Wysocki wrote: > > On Friday, July 20, 2012, Ming Lei wrote: > > >> + if (system_state != SYSTEM_RUNNING) > >> + return -EPROBE_DEFER; > > > > You can't just return here,

Re: [Ksummit-2012-discuss] Linux Foundation Technical Advisory Board Elections and Nomination process

2012-07-21 Thread Randy Dunlap
On 07/06/2012 11:07 AM, Randy Dunlap wrote: > On 07/06/2012 06:49 AM, James Bottomley wrote: > >> The elections for five of the ten members of the Linux Foundation >> Technical Advisory Board[TAB] are held every year. Currently the >> election will be at the 2011 Kernel Summit at one of the

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Francois Romieu
Ming Lei : > On Sun, Jul 22, 2012 at 1:31 AM, Linus Torvalds > wrote: > > On Fri, Jul 20, 2012 at 5:33 AM, Ming Lei wrote: > >> The RFC patch is just for discussing if the idea of deferring > >> request_firmware is doable for addressing the issue of > >> request_firmware in resume path, which

Re: [RFC][PATCH v2 0/3] efi_pstore: avoid losing critical message

2012-07-21 Thread valdis . kletnieks
On Thu, 19 Jul 2012 21:11:44 -, Seiji Aguchi said: > [Solution] >To avoid losing a critical message, this patchset is based on a following > concept. > - A basic policy is _not_ to overwrite existing entries. > > - However, if kernel panics while a system is rebooting, a

Re: [RFC] Simplifying kernel configuration for distro issues

2012-07-21 Thread valdis . kletnieks
On Thu, 19 Jul 2012 13:56:50 -0400, Josh Boyer said: > On Thu, Jul 19, 2012 at 01:33:42PM -0400, Steven Rostedt wrote: > > What happens if someone does a yum update, and the kernel requirement > > changes slightly. The yum update should update > > this /usr/share/Linux/Kconfig. But it's still set

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread david
On Sat, 21 Jul 2012, Linus Torvalds wrote: In my opinion, we should cache firmware data for all hotplug devices or devices which may experience power loss automatically in kernel during suspend-resume cycle because all such devices may be disconnected and connected again during suspend-resume

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Linus Torvalds
On Sat, Jul 21, 2012 at 12:55 PM, Ming Lei wrote: > > Suppose it is not good for resume case, I think it still makes sense > for early boot situation, at least the patch will support to request > firmware inside init call, and allow drivers to be built in kernel i > case of requesting firmware

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Ming Lei
On Sun, Jul 22, 2012 at 1:49 AM, Rafael J. Wysocki wrote: > On Friday, July 20, 2012, Ming Lei wrote: >> + if (system_state != SYSTEM_RUNNING) >> + return -EPROBE_DEFER; > > You can't just return here, _request_firmware_cleanup() has to be done still. Good catch, thanks. > >> +

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Ming Lei
Thanks for your so detailed comments. On Sun, Jul 22, 2012 at 1:31 AM, Linus Torvalds wrote: > On Fri, Jul 20, 2012 at 5:33 AM, Ming Lei wrote: >> The RFC patch is just for discussing if the idea of deferring >> request_firmware is doable for addressing the issue of >> request_firmware in

[PATCH] of: i2c: add support for wakeup-source property

2012-07-21 Thread Olof Johansson
Add support for specifying a generic "wakeup-source" property on i2c clients, which will set the I2C_CLIENT_WAKE flag, thus configuring the device to wake the system from suspend (via IRQ). This obviously doesn't make sense on devices lacking IRQ, but since we still allow that in the

Re: [PATCH 2/2] kthread_worker: reimplement flush_kthread_work() to allow freeing the work item being executed

2012-07-21 Thread Andy Walls
On Thu, 2012-07-19 at 14:16 -0700, Tejun Heo wrote: > From 06f9a06f4aeecdb9d07014713ab41b548ae219b5 Mon Sep 17 00:00:00 2001 > From: Tejun Heo > Date: Thu, 19 Jul 2012 13:52:53 -0700 > > kthread_worker provides minimalistic workqueue-like interface for > users which need a dedicated worker

[PATCH] Remove SYSTEM_SUSPEND_DISK system state

2012-07-21 Thread Rafael J. Wysocki
The SYSTEM_SUSPEND_DISK system state is never used, so drop it. Signed-off-by: Rafael J. Wysocki --- include/linux/kernel.h |1 - 1 file changed, 1 deletion(-) Index: linux/include/linux/kernel.h === ---

Re: [Patch 3/7] smpboot: Provide infrastructure for percpu hotplug threads

2012-07-21 Thread Srivatsa S. Bhat
On 07/21/2012 02:56 PM, Srivatsa S. Bhat wrote: > On 07/16/2012 04:12 PM, Thomas Gleixner wrote: >> Provide a generic interface for setting up and tearing down percpu >> threads. >> >> On registration the threads for already online cpus are created and >> started. On deregistration (modules) the

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Rafael J. Wysocki
On Saturday, July 21, 2012, Linus Torvalds wrote: > On Fri, Jul 20, 2012 at 5:33 AM, Ming Lei wrote: > > The RFC patch is just for discussing if the idea of deferring > > request_firmware is doable for addressing the issue of > > request_firmware in resume path, which is caused by driver > >

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Rafael J. Wysocki
On Friday, July 20, 2012, Ming Lei wrote: > The RFC patch is just for discussing if the idea of deferring > request_firmware is doable for addressing the issue of > request_firmware in resume path, which is caused by driver > unbind/rebind during resume. > > At least usb bus is involved in such

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Linus Torvalds
On Fri, Jul 20, 2012 at 5:33 AM, Ming Lei wrote: > The RFC patch is just for discussing if the idea of deferring > request_firmware is doable for addressing the issue of > request_firmware in resume path, which is caused by driver > unbind/rebind during resume. NAK. It really *has* to be

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Rafael J. Wysocki
On Saturday, July 21, 2012, Ming Lei wrote: > On Sat, Jul 21, 2012 at 5:56 PM, Rafael J. Wysocki wrote: > > On Saturday, July 21, 2012, Ming Lei wrote: > >> CC guys who discussed the problem in the below link in Jan. : > >> > >> http://marc.info/?t=13252895602=10=2 > >> > >> On Fri, Jul

Re: [Patch 4/7] softirq: Use hotplug thread infrastructure

2012-07-21 Thread Paul E. McKenney
On Mon, Jul 16, 2012 at 10:42:37AM -, Thomas Gleixner wrote: > Signed-off-by: Thomas Gleixner > --- > kernel/softirq.c | 107 > +-- > 1 file changed, 26 insertions(+), 81 deletions(-) This is also much more compact! One issue with fix

[PATCH] [trivial] iommu: Fix typo in iommu

2012-07-21 Thread Masanari Iida
Correct spelling typo in debug messages and comments in drivers/iommu. Signed-off-by: Masanari Iida --- drivers/iommu/amd_iommu_v2.c | 2 +- drivers/iommu/exynos-iommu.c | 2 +- drivers/iommu/iova.c | 14 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git

Re: [PATCH 1/2] kthread_worker: reorganize to prepare for flush_kthread_work() reimplementation

2012-07-21 Thread Andy Walls
On Thu, 2012-07-19 at 14:15 -0700, Tejun Heo wrote: > From c9bba34243a86fb3ac82d1bdd0ce4bf796b79559 Mon Sep 17 00:00:00 2001 > From: Tejun Heo > Date: Thu, 19 Jul 2012 13:52:53 -0700 > > Make the following two non-functional changes. > > * Separate out insert_kthread_work() from

Re: [Question] perf header: Why the HEADER_EVENT_DESC is needed?

2012-07-21 Thread Stephane Eranian
On Sat, Jul 21, 2012 at 1:11 PM, Namhyung Kim wrote: > Hi Stephane, > > I wonder why we need to save the event descriptions in the feature area > of file header. Since the perf_event_attr, its ids and the event name > are already saved in the header, it seems a duplicate work to do that. > For

Re: [Patch 3/7] smpboot: Provide infrastructure for percpu hotplug threads

2012-07-21 Thread Paul E. McKenney
On Mon, Jul 16, 2012 at 10:42:36AM -, Thomas Gleixner wrote: > Provide a generic interface for setting up and tearing down percpu > threads. > > On registration the threads for already online cpus are created and > started. On deregistration (modules) the threads are stoppped. > > During

Re: [RFC][PATCH 0/14] PM / shmobile: Pass power domain information via DT (was: Re: [RFD] PM: Device tree representation of power domains)

2012-07-21 Thread Rafael J. Wysocki
On Monday, July 16, 2012, Rafael J. Wysocki wrote: > On Thursday, July 05, 2012, Rafael J. Wysocki wrote: > > On Wednesday, July 04, 2012, Mark Brown wrote: > > > On Tue, Jul 03, 2012 at 11:02:17PM +0200, Rafael J. Wysocki wrote: > > > > > > > I actually don't have any ideas how to do that at the

Re: [RFC][PATCH] hwmon: add support for Sensirion C1 sensor

2012-07-21 Thread Guenter Roeck
On Fri, Jul 20, 2012 at 02:57:22PM +0200, Johannes Winkelmann wrote: > this is an initial version of the driver for the upcoming Sensirion > SHT C1 humidity and temperature sensor. First hardware samples are > being tested by our key customers, and we'd therefore appreciate to > get feedback on

Re: [PATCHv2] cpufreq: Fix sysfs deadlock with concurrent hotplug/frequency switch

2012-07-21 Thread Shilimkar, Santosh
On Sat, Jul 21, 2012 at 1:21 AM, Rafael J. Wysocki wrote: > On Friday, July 20, 2012, Stephen Boyd wrote: >> Running one program that continuously hotplugs and replugs a cpu >> concurrently with another program that continuously writes to the >> scaling_setspeed node eventually deadlocks with: >>

Re: [PATCH 17/17] NFS: nfs_migrate_page() does not wait for FS-Cache to finish with a page

2012-07-21 Thread Jonathan Nieder
Hi, In February, David Howells wrote: > nfs_migrate_page() does not wait for FS-Cache to finish with a page, probably > leading to the following bad-page-state: [...] > nfs_migrate_page() calls nfs_fscache_release_page() which doesn't actually > wait > - even if __GFP_WAIT is set. The reason

[PATCH 4/5] perf header: Remove unused @fd arg from ->print callback

2012-07-21 Thread Namhyung Kim
As we don't need the @fd in the ->print any more, get rid of it from the signature. Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/header.c | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/tools/perf/util/header.c

[PATCH 2/5] perf header: add ->process callbacks to most of features

2012-07-21 Thread Namhyung Kim
>From now for each feature information is processed and saved in perf header so that it can be used wherever needed. The EVENT_DESC and BRANCH_STACK features are exceptions since they need nothing to be done. Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/header.c | 360

[PATCH 5/5] perf header: Remove unused @feat arg from ->process callback

2012-07-21 Thread Namhyung Kim
As the @feat arg is not used anywhere, get rid of it from the signature. Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/header.c | 48 ++ 1 file changed, 19 insertions(+), 29 deletions(-) diff --git a/tools/perf/util/header.c

[PATCH 3/5] perf header: Make feat_ops->print use processed result

2012-07-21 Thread Namhyung Kim
Now we have all of necessary information in the perf_header so just use it for printing. Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/header.c | 219 +++--- 1 file changed, 92 insertions(+), 127 deletions(-) diff --git

[PATCH 1/5] perf header: Do not write event_desc feature

2012-07-21 Thread Namhyung Kim
Since the event descriptions are saved already in the header, do not write them to the feature section. Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/header.c | 154 +++--- 1 file changed, 21 insertions(+), 133 deletions(-) diff

Re: [RFC][PATCH] hwmon: add support for Sensirion C1 sensor

2012-07-21 Thread Guenter Roeck
On Fri, Jul 20, 2012 at 05:14:49PM +0200, Oliver Neukum wrote: > On Friday 20 July 2012 17:13:51 Johannes Winkelmann wrote: > > On Fri, Jul 20, 2012 at 4:03 PM, Oliver Neukum wrote: > > > > We have dedicated macros for conversion of endianness. > > > > Like this: > > val =

Re: [PATCH] vfs: simply the code logic

2012-07-21 Thread Matthew Wilcox
On Sat, Jul 21, 2012 at 11:38:19PM +0800, zwu.ker...@gmail.com wrote: > if (offset >= 0 && offset <= size) { > - if (offset != file->f_pos) { > - file->f_pos = offset; > - } > - retval = offset; > + retval = file->f_pos =

Extend procfs status for bonded links to show "backup" and "inactive" flags

2012-07-21 Thread Jeroen van Bemmel
Hi, bond_info_show_slave in /drivers/net/bonding/bond_procfs.c currently does not show all the information that is relevant to determine whether a given slave is used for network traffic or not. In certain active-backup setups, this means one can not easily tell what's happening. An example

Re: sysfs permissions on dynamic attributes (led delay_on and delay_off)

2012-07-21 Thread Colin Cross
On Sat, Jul 21, 2012 at 9:15 AM, Greg KH wrote: > On Sat, Jul 21, 2012 at 01:08:55PM -0300, Henrique de Moraes Holschuh wrote: >> On Sat, 21 Jul 2012, Colin Cross wrote: >> > The delay_on and delay_off files could easily override the values from >> > the trigger. >> > >> > Sending a KOBJ_CHANGE

Re: sysfs permissions on dynamic attributes (led delay_on and delay_off)

2012-07-21 Thread Colin Cross
On Sat, Jul 21, 2012 at 9:13 AM, Greg KH wrote: > On Sat, Jul 21, 2012 at 08:42:12AM -0700, Colin Cross wrote: >> On Sat, Jul 21, 2012 at 4:21 AM, Richard Purdie >> wrote: >> > On Sat, 2012-07-21 at 01:26 -0700, Colin Cross wrote: >> >> On Sat, Jul 21, 2012 at 12:33 AM, Richard Purdie >> >>

Re: sysfs permissions on dynamic attributes (led delay_on and delay_off)

2012-07-21 Thread Greg KH
On Sat, Jul 21, 2012 at 01:08:55PM -0300, Henrique de Moraes Holschuh wrote: > On Sat, 21 Jul 2012, Colin Cross wrote: > > The delay_on and delay_off files could easily override the values from > > the trigger. > > > > Sending a KOBJ_CHANGE uevent is not a great solution, it's still > > horribly

Re: sysfs permissions on dynamic attributes (led delay_on and delay_off)

2012-07-21 Thread Greg KH
On Sat, Jul 21, 2012 at 08:42:12AM -0700, Colin Cross wrote: > On Sat, Jul 21, 2012 at 4:21 AM, Richard Purdie > wrote: > > On Sat, 2012-07-21 at 01:26 -0700, Colin Cross wrote: > >> On Sat, Jul 21, 2012 at 12:33 AM, Richard Purdie > >> wrote: > >> > On Fri, 2012-07-20 at 21:08 -0700, Greg KH

Re: sysfs permissions on dynamic attributes (led delay_on and delay_off)

2012-07-21 Thread Henrique de Moraes Holschuh
On Sat, 21 Jul 2012, Colin Cross wrote: > The delay_on and delay_off files could easily override the values from > the trigger. > > Sending a KOBJ_CHANGE uevent is not a great solution, it's still > horribly racy in userspace. This script would never work reliably: > echo timer > trigger > echo

RE: [ 11/37] sched/nohz: Rewrite and fix load-avg computation -- again

2012-07-21 Thread Doug Smythies
> On 2012.07.20 10:26 -0700, Peter Zijlstra wrote: >> On Fri, 2012-07-20 at 12:13 -0500, Jonathan Nieder wrote: >> > Peter Zijlstra wrote: >> >> On Tue, 2012-07-17 at 19:16 -0500, Jonathan Nieder wrote: >> >> >> I'm thrilled to see this regression fix for stable@, but are we really >> >> really

Re: sysfs permissions on dynamic attributes (led delay_on and delay_off)

2012-07-21 Thread Colin Cross
On Sat, Jul 21, 2012 at 4:21 AM, Richard Purdie wrote: > On Sat, 2012-07-21 at 01:26 -0700, Colin Cross wrote: >> On Sat, Jul 21, 2012 at 12:33 AM, Richard Purdie >> wrote: >> > On Fri, 2012-07-20 at 21:08 -0700, Greg KH wrote: >> >> On Fri, Jul 20, 2012 at 05:46:14PM -0700, Colin Cross wrote:

[PATCH] vfs: simply the code logic

2012-07-21 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- fs/block_dev.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index c2bbe1f..0f268d3 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -396,10 +396,7 @@ static loff_t

[PATCH] [trivial] video: Fix typo in drivers/video

2012-07-21 Thread Masanari Iida
Correct spelling typo in debug messages and comments within drivers/video. Signed-off-by: Masanari Iida --- drivers/video/arcfb.c | 4 ++-- drivers/video/atmel_lcdfb.c | 2 +- drivers/video/aty/atyfb_base.c| 2 +- drivers/video/aty/radeon_base.c

Re: [PATCH 1/2] init: Introduce early initrd files through uncompressed cpio passing

2012-07-21 Thread H. Peter Anvin
On 07/18/2012 03:36 AM, Thomas Renninger wrote: cpio parsing code comes from H. Peter Anvin. The CONFIG_EARLY_INITRD feature is architecture independent, but for now only enabled/called for X86. The problem is that initrd_start must be valid, but there is no architecture independent

Re: [PATCH] spi: omap2-mcspi: Fix the below warning

2012-07-21 Thread Shubhrajyoti Datta
On Fri, Jul 20, 2012 at 3:40 PM, Mark Brown wrote: > On Thu, Jul 19, 2012 at 11:16:52PM +0530, Shubhrajyoti D wrote: >> The dma_map and dma_unmap should have same parameter >> passed otherwise we get the below warn. > > Applied, thanks. thanks, -- To unsubscribe from this list: send the line

Re: sysfs permissions on dynamic attributes (led delay_on and delay_off)

2012-07-21 Thread Greg KH
On Fri, Jul 20, 2012 at 10:14:27PM -0700, Colin Cross wrote: > On Fri, Jul 20, 2012 at 9:08 PM, Greg KH wrote: > > On Fri, Jul 20, 2012 at 05:46:14PM -0700, Colin Cross wrote: > >> I'm trying to use the standard ledtrig-timer.c code to handle led > >> blinking for notifications on an Android

Re: sysfs permissions on dynamic attributes (led delay_on and delay_off)

2012-07-21 Thread Henrique de Moraes Holschuh
On Sat, 21 Jul 2012, Richard Purdie wrote: > On Sat, 2012-07-21 at 01:26 -0700, Colin Cross wrote: > > On Sat, Jul 21, 2012 at 12:33 AM, Richard Purdie > > wrote: > > > On Fri, 2012-07-20 at 21:08 -0700, Greg KH wrote: > > >> On Fri, Jul 20, 2012 at 05:46:14PM -0700, Colin Cross wrote: > > >> >

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Ming Lei
On Sat, Jul 21, 2012 at 5:56 PM, Rafael J. Wysocki wrote: > On Saturday, July 21, 2012, Ming Lei wrote: >> CC guys who discussed the problem in the below link in Jan. : >> >> http://marc.info/?t=13252895602=10=2 >> >> On Fri, Jul 20, 2012 at 8:33 PM, Ming Lei wrote: >> > The RFC patch

[PATCH] staging/vme: fix checkpatch warnings

2012-07-21 Thread Toshiaki Yamane
Now checkpatch clean. $ find drivers/staging/vme -name "*.[ch]"|xargs ./scripts/checkpatch.pl \ -f --terse --nosummary|cut -f3- -d":"|sort |uniq -c|sort -n 1 ERROR: trailing whitespace 2 WARNING: Prefer pr_debug(... to printk(KERN_DEBUG, ... 5 WARNING: Prefer pr_info(... to

Re: [PATCH 2/2] x86/mce: Add quirk for instruction recovery on Sandy Bridge processors

2012-07-21 Thread Borislav Petkov
On Fri, Jul 20, 2012 at 09:33:23AM -0700, Tony Luck wrote: > > Maybe define a default empty quirk_no_way_out() on the remaining > > families/vendors so that the compiler can optimize it away and we save > > ourselves the if-test? > > Perhaps I misunderstood your suggestion. I don't see how the

efitools rpm up on opensuse build service: contains useful tools for taking control of UEFI secure boot platforms

2012-07-21 Thread James Bottomley
All the tools are in the git repository http://git.kernel.org/?p=linux/kernel/git/jejb/efitools.git;a=summary But for ease of consumption, this is now packaged and build by the opensuse build server as installable rpm files.

Re: [net-next RFC V5 4/5] virtio_net: multiqueue support

2012-07-21 Thread Sasha Levin
On 07/20/2012 03:40 PM, Michael S. Tsirkin wrote: >> -err = init_vqs(vi); >> > + if (virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) >> > + vi->has_cvq = true; >> > + > How about we disable multiqueue if there's no cvq? > Will make logic a bit simpler, won't it? multiqueues don't

  1   2   3   >