Re: [PATCH V4 5/9] mtd: replace the hardcode with the onfi_feature()

2013-05-01 Thread Huang Shijie
于 2013年05月02日 13:42, Gupta, Pekon 写道: - *busw = 0; - if (le16_to_cpu(p->features)& 1) - *busw = NAND_BUSWIDTH_16; + + *busw = (onfi_feature(chip)& ONFI_FEATURE_16_BIT_BUS) ? + NAND_BUSWIDTH_16 : 0; Is this really needed ? you have

[PATCH V3 7/7] watchdog: ts72xx_wdt: use devm_*() functions

2013-05-01 Thread Jingoo Han
Use devm_*() functions to make cleanup paths simpler. Signed-off-by: Jingoo Han --- Changes since v2: - removed unnecessary platform_set_drvdata(pdev, NULL) drivers/watchdog/ts72xx_wdt.c | 67 ++-- 1 files changed, 10 insertions(+), 57 deletions(-) diff

[PATCH RESEND 6/7] watchdog: riowd: use devm_kzalloc()

2013-05-01 Thread Jingoo Han
Use devm_kzalloc() to make cleanup paths simpler. Signed-off-by: Jingoo Han --- drivers/watchdog/riowd.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/watchdog/riowd.c b/drivers/watchdog/riowd.c index 0040451..13363ad 100644 ---

[PATCH RESEND 5/7] watchdog: rc32434_wdt: use devm_ioremap_nocache() functions

2013-05-01 Thread Jingoo Han
Use devm_ioremap_nocache() functions to make cleanup paths simpler. Signed-off-by: Jingoo Han --- drivers/watchdog/rc32434_wdt.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/watchdog/rc32434_wdt.c b/drivers/watchdog/rc32434_wdt.c index

[PATCH RESEND 4/7] watchdog: nuc900_wdt: use devm_*() functions

2013-05-01 Thread Jingoo Han
Use devm_*() functions to make cleanup paths simpler. Signed-off-by: Jingoo Han --- drivers/watchdog/nuc900_wdt.c | 50 + 1 files changed, 11 insertions(+), 39 deletions(-) diff --git a/drivers/watchdog/nuc900_wdt.c b/drivers/watchdog/nuc900_wdt.c

[PATCH RESEND 3/7] watchdog: mv64x60_wdt: use devm_ioremap()

2013-05-01 Thread Jingoo Han
Use devm_ioremap() to make cleanup paths simpler. Signed-off-by: Jingoo Han --- drivers/watchdog/mv64x60_wdt.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/mv64x60_wdt.c b/drivers/watchdog/mv64x60_wdt.c index c7fb878..e4cf980 100644 ---

[PATCH RESEND 2/7] watchdog: bcm63xx_wdt: use devm_ioremap_nocache()

2013-05-01 Thread Jingoo Han
Use devm_ioremap_nocache() to make cleanup paths simpler. Signed-off-by: Jingoo Han --- drivers/watchdog/bcm63xx_wdt.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog/bcm63xx_wdt.c index b2b80d4..a14a58d 100644

[PATCH RESEND 1/7] watchdog: at32ap700x_wdt: use devm_*() functions

2013-05-01 Thread Jingoo Han
Use devm_*() functions to make cleanup paths simpler. Signed-off-by: Jingoo Han --- drivers/watchdog/at32ap700x_wdt.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/watchdog/at32ap700x_wdt.c b/drivers/watchdog/at32ap700x_wdt.c index 7a715e3..c4cb552

Re: [PATCH] sched: wake-affine throttle

2013-05-01 Thread Michael Wang
On 04/22/2013 06:23 PM, Peter Zijlstra wrote: > > OK,.. Ingo said that pipe-test was the original motivation for > wake_affine() and since that's currently broken to pieces due to > select_idle_sibling() is there still a benefit to having it at all? > > Can anybody find any significant

[PATCH v2] media: i2c: tvp7002: enable TVP7002 decoder for media controller based usage

2013-05-01 Thread Prabhakar Lad
From: Lad, Prabhakar This patch enables tvp7002 decoder driver for media controller based usage by adding v4l2_subdev_pad_ops operations support for enum_mbus_code, set_pad_format, get_pad_format and media_entity_init() on probe and media_entity_cleanup() on remove. Signed-off-by: Lad,

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

2013-05-01 Thread Warlich, Christof
Mikael Pettersson writes: > You're looking at the wrong header: glibc-2.17/sysdeps/i386/sys/ucontext.h is > legacy SVR4. > Instead look at glibc-2.17/sysdeps/unix/sysv/linux/x86/sys/ucontext.h. > > (If the old one got installed on your system then something there is > seriously wrong.) Oh-oh:

RE: [PATCH V4 5/9] mtd: replace the hardcode with the onfi_feature()

2013-05-01 Thread Gupta, Pekon
> >> - *busw = 0; > >> - if (le16_to_cpu(p->features)& 1) > >> - *busw = NAND_BUSWIDTH_16; > >> + > >> + *busw = (onfi_feature(chip)& ONFI_FEATURE_16_BIT_BUS) ? > >> + NAND_BUSWIDTH_16 : 0; > > Is this really needed ? you have already checked the 'onfi_version' >

[PATCH] thermal: exynos: Support for TMU regulator defined at device tree

2013-05-01 Thread Amit Daniel Kachhap
TMU probe function now checks for a device tree defined regulator. For compatibility reasons it is allowed to probe driver even without this regulator defined. Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Signed-off-by: Amit Daniel Kachhap --- This patch is repost of the patch

Re: [PATCH] linkage.h: fix build breakage due to symbol prefix handling

2013-05-01 Thread Stephen Rothwell
Hi Rusty, On Thu, 2 May 2013 13:37:37 +1000 Stephen Rothwell wrote: > > This is the merge fix patch I have been carrying in linux-next since > March 14: (this probably does not quite apply any more but, hey ...) > > From: Stephen Rothwell > Date: Thu, 14 Mar 2013 17:14:41 +1100 > Subject:

Re: [GIT] Networking

2013-05-01 Thread David Miller
From: Linus Torvalds Date: Wed, 1 May 2013 18:28:38 -0700 > On Wed, May 1, 2013 at 1:47 PM, David Miller wrote: >> >> Highlights (1721 non-merge commits, this has to be a record of some >> sort): > > Lowlight: it completely breaks my machine with r8169 ethernet. In the > networkmanager

Re: [PATCH RESEND v5] fat: editions to support fat_fallocate

2013-05-01 Thread OGAWA Hirofumi
Namjae Jeon writes: Hm, why d_count == 1 check is needed? Feel strange and racy. >>> Since, fat_file_release() is called on every close for the file. >> >> What is wrong? IIRC, it is what you choose (i.e. for each last close for >> the file descriptor). > Yes, this is what we had chosen

Re: [GIT] Networking

2013-05-01 Thread Linus Torvalds
On Wed, May 1, 2013 at 9:37 PM, Linus Torvalds wrote: > > I don't see what could be broken in that commit, and I'd *like* to > just revert it on top of current -git, but that causes problems > ("error: ‘NETIF_F_HW_VLAN_STAG_TX_BIT’ undeclared"), so I can't just > do a straight revert to

Re: [PATCH RESEND v5] fat: editions to support fat_fallocate

2013-05-01 Thread Namjae Jeon
2013/5/1, OGAWA Hirofumi : > Namjae Jeon writes: > >> Hi OGAWA. > > Hi, > >>> I couldn't review fully though. >>> + if (mmu_private_ideal < MSDOS_I(inode)->mmu_private && + filp->f_dentry->d_count == 1) + fat_truncate_blocks(inode, inode->i_size); >>> >>> Hm, why

Re: [PATCH 0/3] vhost-scsi: file renames

2013-05-01 Thread Asias He
On Thu, May 02, 2013 at 04:45:30AM +0300, Michael S. Tsirkin wrote: > This reorgs the files a bit, renaming tcm_vhost to > vhost_scsi as that's how userspace refers to it. > While at it, cleanup some leftovers from when it was a > staging driver. > > Signed-off-by: Michael S. Tsirkin

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

2013-05-01 Thread Sonny Rao
On Mon, Apr 29, 2013 at 3:08 PM, Pierre-Loup A. Griffais wrote: > On 04/29/2013 03:03 PM, Linus Torvalds wrote: >> >> On Mon, Apr 29, 2013 at 2:53 PM, Pierre-Loup A. Griffais >> wrote: >>> >>> >>> Other than this particular concern, what's the high-level take-away? Is >>> PAE >>> support in the

Re: [GIT] Networking

2013-05-01 Thread Linus Torvalds
On Wed, May 1, 2013 at 6:28 PM, Linus Torvalds wrote: > > Lowlight: it completely breaks my machine with r8169 ethernet. In the > networkmanager applet, it claims no cable connection, which is a bit > odd, because (a) it works with an older kernel and (b) the kernel > messages actually say > >

Re: Linux 3.8.9 Build Failure in user_namespace.c

2013-05-01 Thread Shea Levy
On 4/29/13 4:56 PM, Serge E. Hallyn wrote: Quoting s...@shealevy.com (s...@shealevy.com): Hi All, I just hit the following error trying to build 3.8.9: /nix/store/vkvwpn6f7iff6zqrq2d9z2a1945pcsza-linux-3.8.9-source/kernel/user_namespace.c: In function 'map_write':

Re: [PATCH] linkage.h: fix build breakage due to symbol prefix handling

2013-05-01 Thread Al Viro
On Wed, May 01, 2013 at 10:43:35PM +0100, Al Viro wrote: > Oh, hell... Guys, my deep apologies - what happened is that this thing > has been caught in -next, rebase done here (on top of Rusty's commit) > and *not* pushed to linux-next. Curiouser and curiouser... FWIW, what I have is $ cat

Re: [PATCH -v7 0/11] Shutdown from reboot_cpuid without stopping other cpus.

2013-05-01 Thread Robin Holt
On Thu, May 02, 2013 at 12:13:47AM +0100, Russell King - ARM Linux wrote: > On Wed, May 01, 2013 at 12:06:40PM -0500, Robin Holt wrote: > > Andrew, Please do _NOT_ take this patch series yet. I am sending this > > to you because you had comments on my -v6 submission. > > Another reason for not

Re: [PATCH] linkage.h: fix build breakage due to symbol prefix handling

2013-05-01 Thread Stephen Rothwell
Hi all, On Thu, 02 May 2013 09:58:08 +0930 Rusty Russell wrote: > > James Hogan writes: > > Al's commit e1b5bb6d1236d4ad2084c53aa83dde7cdf6f8eea ("consolidate > > cond_syscall and SYSCALL_ALIAS declarations") broke the build on > > blackfin and metag due to the following code: > > > > #ifndef

Re: linux-next: manual merge of the net-next tree with the wireless tree

2013-05-01 Thread Stephen Rothwell
Hi Dave, On Thu, 4 Apr 2013 11:44:44 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the net-next tree got a conflict in > drivers/net/wireless/rt2x00/rt2x00pci.c between commit 69a2bac8984c > ("rt2x00: rt2x00pci: fix build error on Ralink RT3x5x SoCs") from the > wireless tree

Re: [PATCH v2 1/4] Wrap crc_t10dif function all to use crypto transform framework

2013-05-01 Thread Tim Chen
On Tue, 2013-04-30 at 11:27 +0800, Herbert Xu wrote: > On Mon, Apr 29, 2013 at 01:40:30PM -0700, Tim Chen wrote: > > > > If I allocate the transform under the mod init instead, how can I make > > sure that the fast version is already registered if I have it compiled > > in? It is not clear to me

[PATCH v3 2/4] Accelerated CRC T10 DIF computation with PCLMULQDQ instruction

2013-05-01 Thread Tim Chen
This is the x86_64 CRC T10 DIF transform accelerated with the PCLMULQDQ instructions. Details discussing the implementation can be found in the paper: "Fast CRC Computation for Generic Polynomials Using PCLMULQDQ Instruction"

[PATCH v3 4/4] Simple correctness and speed test for CRCT10DIF hash

2013-05-01 Thread Tim Chen
These are simple tests to do sanity check of CRC T10 DIF hash. The correctness of the transform can be checked with the command modprobe tcrypt mode=47 The speed of the transform can be evaluated with the command modprobe tcrypt mode=320 Set the cpu frequency to constant and turn

[PATCH v3 0/4] Patchset to use PCLMULQDQ to accelerate CRC-T10DIF checksum computation

2013-05-01 Thread Tim Chen
Currently the CRC-T10DIF checksum is computed using a generic table lookup algorithm. By switching the checksum to PCLMULQDQ based computation, we can speedup the computation by 8x for checksumming 512 bytes and even more for larger buffer size. This will improve performance of SCSI drivers

[PATCH v3 3/4] Glue code to cast accelerated CRCT10DIF assembly as a crypto transform

2013-05-01 Thread Tim Chen
Glue code that plugs the PCLMULQDQ accelerated CRC T10 DIF hash into the crypto framework. The config CRYPTO_CRCT10DIF_PCLMUL should be turned on to enable the feature. The crc_t10dif crypto library function will use this faster algorithm when crct10dif_pclmul module is loaded. Signed-off-by:

[PATCH v3 1/4] Wrap crc_t10dif function all to use crypto transform framework

2013-05-01 Thread Tim Chen
When CRC T10 DIF is calculated using the crypto transform framework, we wrap the crc_t10dif function call to utilize it. This allows us to take advantage of any accelerated CRC T10 DIF transform that is plugged into the crypto framework. Signed-off-by: Tim Chen --- crypto/Kconfig |

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

2013-05-01 Thread Shawn Guo
On Wed, May 01, 2013 at 10:34:43AM +0530, Viresh Kumar wrote: > 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 | 13 - > 1 file changed, 8 insertions(+), 5 deletions(-) > >

[PATCH] mm,x86: limit 32 bit kernel to 12GB memory

2013-05-01 Thread Rik van Riel
On Wed, 1 May 2013 21:34:26 -0400 Steven Rostedt wrote: > On Mon, Apr 29, 2013 at 08:48:17PM -0400, Rik van Riel wrote: > > > > It could also print out a friendly message, to > > inform the user they should upgrade to a 64 bit > > kernel to enjoy the use of all of their memory. > > Oh, oh,

Re: [PATCH] gpio: mxs: Use set and clear capabilities of the gpio controller

2013-05-01 Thread Shawn Guo
On Mon, Apr 29, 2013 at 04:07:18PM +0200, Maxime Ripard wrote: > The current driver doesn't use the set and clear registers found on the > mxs gpio controller. > > This leads the generic gpio controller to be using some internal value > to avoid looking up the value stored in the registers,

Re: [PATCH] mxs: icoll: Add function to register an interrupt as FIQ source

2013-05-01 Thread Shawn Guo
On Mon, Apr 29, 2013 at 03:58:37PM +0200, Maxime Ripard wrote: > MXS, unlike other ARM platforms, How are other ARM platforms handling that? > has no way to make a FIQ from an > interrupt from a driver, without poking directly into the icoll. > > Add an exported function to do this. > >

RE: [PATCH v6 01/16] spi/spi-atmel: fix probing failure after xfer->speed_hz set

2013-05-01 Thread Yang, Wenyou
Hi, Joachim, > -Original Message- > From: Joachim Eastwood [mailto:manab...@gmail.com] > Sent: 2013年3月7日 20:31 > To: Yang, Wenyou > Cc: linux-arm-ker...@lists.infradead.org; grant.lik...@secretlab.ca; Ferre, > Nicolas; plagn...@jcrosoft.com; richard.gen...@gmail.com; Lin, JM; >

[PATCH RFC] x86: uaccess s/might_sleep/might_fault/

2013-05-01 Thread Michael S. Tsirkin
The only reason uaccess routines might sleep is if they fault. Make this explicit for __copy_from_user_nocache, and consistent with copy_from_user and friends. Signed-off-by: Michael S. Tsirkin --- I've updated all other arches as well - still build-testing. Any objections to the x86 patch?

Re: [PATCH -v7 0/11] Shutdown from reboot_cpuid without stopping other cpus.

2013-05-01 Thread Robin Holt
On Thu, May 02, 2013 at 12:13:47AM +0100, Russell King - ARM Linux wrote: > On Wed, May 01, 2013 at 12:06:40PM -0500, Robin Holt wrote: > > Andrew, Please do _NOT_ take this patch series yet. I am sending this > > to you because you had comments on my -v6 submission. > > Another reason for not

Re: [PATCH V4 5/9] mtd: replace the hardcode with the onfi_feature()

2013-05-01 Thread Huang Shijie
于 2013年04月30日 18:04, Gupta, Pekon 写道: - *busw = 0; - if (le16_to_cpu(p->features)& 1) - *busw = NAND_BUSWIDTH_16; + + *busw = (onfi_feature(chip)& ONFI_FEATURE_16_BIT_BUS) ? + NAND_BUSWIDTH_16 : 0; Is this really needed ? you have already

Re: [PATCH 0/3] vhost-scsi: file renames

2013-05-01 Thread Nicholas A. Bellinger
On Thu, 2013-05-02 at 04:45 +0300, Michael S. Tsirkin wrote: > This reorgs the files a bit, renaming tcm_vhost to > vhost_scsi as that's how userspace refers to it. > While at it, cleanup some leftovers from when it was a > staging driver. > > Signed-off-by: Michael S. Tsirkin > > Acked-by:

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

2013-05-01 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in fs/coredump.c between commit acdedd99b0f3 ("coredump: sanitize the setting of signal->group_exit_code") from Linus' tree and commit 03d95eb2f257 ("lift sb_start_write() out of ->write()") from the vfs tree. I fixed it up (see

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

2013-05-01 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in fs/compat.c between commit 76b021d053ed ("convert vmsplice to COMPAT_SYSCALL_DEFINE") from Linus' tree and commit 72ec35163f9f ("switch compat readv/writev variants to COMPAT_SYSCALL_DEFINE") from the vfs tree. I fixed it up (see

[PATCH] x86, x86-64, gdt, hibernate: Store/load GDT for hibernate path.

2013-05-01 Thread Konrad Rzeszutek Wilk
The git commite7a5cd063c7b4c58417f674821d63f5eb6747e37 ("x86-64, gdt: Store/load GDT for ACPI S3 or hibernate/resume path is not needed.") assumes that for the hibernate path the booting kernel and the resuming kernel MUST be the same. That is certainly the case for a 32-bit kernel (see

[RFC] Fix restore from hibernate with different kernel versions.

2013-05-01 Thread Konrad Rzeszutek Wilk
This patch is intended for v3.10 and it should be considered RFC as I had only tested it under QEMU and not real hardware (that to be done on Friday). The patch addresses a shortcomming of the git commite 7a5cd063c7b4c58417f674821d63f5eb6747e37 ("x86-64, gdt: Store/load GDT for ACPI S3 or

Re: [PATCH] linkage.h: fix build breakage due to symbol prefix handling

2013-05-01 Thread Rusty Russell
James Hogan writes: > Al's commit e1b5bb6d1236d4ad2084c53aa83dde7cdf6f8eea ("consolidate > cond_syscall and SYSCALL_ALIAS declarations") broke the build on > blackfin and metag due to the following code: > > #ifndef SYMBOL_NAME > #ifdef CONFIG_SYMBOL_PREFIX > #define SYMBOL_NAME(x)

Crypto Update for 3.10

2013-05-01 Thread Herbert Xu
Hi Linus: Here is the crypto update for 3.10: * XTS mode optimisation for twofish/cast6/camellia/aes on x86. * AVX2/x86_64 implementation for blowfish/twofish/serpent/camellia. * SSSE3/AVX/AVX2 optimisations for sha256/sha512. * Added driver for SAHARA2 crypto accelerator. * Fix for GMAC when

Re: [PULL] vhost: cleanups and fixes for 3.10

2013-05-01 Thread Michael S. Tsirkin
On Wed, May 01, 2013 at 03:05:48PM -0400, David Miller wrote: > From: "Michael S. Tsirkin" > Date: Wed, 1 May 2013 18:01:31 +0300 > > > Please pull the following vhost core updates for 3.10 - > > they affect both vhost-net and vhost-scsi devices. > > They also *depend* on both net-next and

[PATCH 3/3] vhost_scsi: module rename

2013-05-01 Thread Michael S. Tsirkin
Rename module and update Kconfig and Makefile. Add alias for compatibility with old userspace scripts if any. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/Kconfig | 10 +++--- drivers/vhost/Kconfig.tcm | 6 -- drivers/vhost/Makefile| 4 ++-- drivers/vhost/scsi.c |

[PATCH 1/3] vhost: src file renames

2013-05-01 Thread Michael S. Tsirkin
Move tcm_vhost.c -> scsi.c Signed-off-by: Michael S. Tsirkin --- drivers/vhost/Makefile| 1 + drivers/vhost/{tcm_vhost.c => scsi.c} | 0 2 files changed, 1 insertion(+) rename drivers/vhost/{tcm_vhost.c => scsi.c} (100%) diff --git a/drivers/vhost/Makefile

[PATCH 2/3] tcm_vhost: header split up

2013-05-01 Thread Michael S. Tsirkin
move uapi parts to vhost.h move .c private parts to .c itself Signed-off-by: Michael S. Tsirkin --- drivers/vhost/scsi.c | 112 +++--- drivers/vhost/tcm_vhost.h | 131 - include/uapi/linux/vhost.h | 28

[PATCH 0/3] vhost-scsi: file renames

2013-05-01 Thread Michael S. Tsirkin
This reorgs the files a bit, renaming tcm_vhost to vhost_scsi as that's how userspace refers to it. While at it, cleanup some leftovers from when it was a staging driver. Signed-off-by: Michael S. Tsirkin Michael S. Tsirkin (3): vhost: src file renames tcm_vhost: header split up

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

2013-05-01 Thread Colin Cross
On slow cpus the large number of task wakeups and context switches triggered by freezing and thawing tasks can take a significant amount of cpu time. This patch series reduces the amount of work done during freezing tasks by avoiding waking up tasks that are already in a freezable state. The

[PATCH v2 01/10] freezer: shorten freezer sleep time using exponential backoff

2013-05-01 Thread Colin Cross
All tasks can easily be frozen in under 10 ms, switch to using an initial 1 ms sleep followed by exponential backoff until 8 ms. Also convert the printed time to ms instead of centiseconds. Signed-off-by: Colin Cross --- kernel/power/process.c | 23 +-- 1 file changed, 13

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

2013-05-01 Thread Colin Cross
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 threads that are blocked in freezable blocking calls. This call was selected to be converted to a freezable

[PATCH v2 04/10] binder: use freezable blocking calls

2013-05-01 Thread Colin Cross
Avoid waking up every thread sleeping in a binder call during suspend and resume by calling a freezable blocking call. Previous patches modified the freezer to avoid sending wakeups to threads that are blocked in freezable blocking calls. This call was selected to be converted to a freezable

[PATCH v2 06/10] select: use freezable blocking call

2013-05-01 Thread Colin Cross
Avoid waking up every thread sleeping in a select call during suspend and resume by calling a freezable blocking call. Previous patches modified the freezer to avoid sending wakeups to threads that are blocked in freezable blocking calls. This call was selected to be converted to a freezable

[PATCH v2 05/10] epoll: use freezable blocking call

2013-05-01 Thread Colin Cross
Avoid waking up every thread sleeping in an epoll_wait call during suspend and resume by calling a freezable blocking call. Previous patches modified the freezer to avoid sending wakeups to threads that are blocked in freezable blocking calls. This call was selected to be converted to a

[PATCH v2 08/10] nanosleep: use freezable blocking call

2013-05-01 Thread Colin Cross
Avoid waking up every thread sleeping in a nanosleep call during suspend and resume by calling a freezable blocking call. Previous patches modified the freezer to avoid sending wakeups to threads that are blocked in freezable blocking calls. This call was selected to be converted to a freezable

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

2013-05-01 Thread Colin Cross
Freezing tasks will wake up almost every userspace task from where it is blocking and force it to run until it hits a call to try_to_sleep(), generally on the exit path from the syscall it is blocking in. On resume each task will run again, usually restarting the syscall and running until it hits

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

2013-05-01 Thread Colin Cross
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 in freezable blocking calls. This call was selected to be converted

[PATCH v2 02/10] freezer: skip waking up tasks with PF_FREEZER_SKIP set

2013-05-01 Thread Colin Cross
Android goes through suspend/resume very often (every few seconds when on a busy wifi network with the screen off), and a significant portion of the energy used to go in and out of suspend is spent in the freezer. If a task has called freezer_do_not_count(), don't bother waking it up. If it

[PATCH v2 09/10] sigtimedwait: use freezable blocking call

2013-05-01 Thread Colin Cross
Avoid waking up every thread sleeping in a sigtimedwait call during suspend and resume by calling a freezable blocking call. Previous patches modified the freezer to avoid sending wakeups to threads that are blocked in freezable blocking calls. This call was selected to be converted to a

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

2013-05-01 Thread Steven Rostedt
On Mon, Apr 29, 2013 at 08:48:17PM -0400, Rik van Riel wrote: > > It could also print out a friendly message, to > inform the user they should upgrade to a 64 bit > kernel to enjoy the use of all of their memory. Oh, oh, oh!!! Can we use my message: http://lwn.net/Articles/501769/ OK, maybe

Re: [PATCH 3.8-stable] kernel/audit_tree.c: tree will leak memory when failure occurs in audit_trim_trees()

2013-05-01 Thread Chen Gang
On 2013年04月30日 16:44, Jonghwan Choi wrote: > This patch looks like it should be in the 3.8-stable tree, should we apply > it? For me, I recommend it. :-) Thanks. -- Chen Gang Asianux Corporation -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [GIT] Networking

2013-05-01 Thread Linus Torvalds
On Wed, May 1, 2013 at 1:47 PM, David Miller wrote: > > Highlights (1721 non-merge commits, this has to be a record of some > sort): Lowlight: it completely breaks my machine with r8169 ethernet. In the networkmanager applet, it claims no cable connection, which is a bit odd, because (a) it

Re: linux-next: manual merge of the net-next tree with the net tree

2013-05-01 Thread Chen Gang
On 2013年04月30日 10:24, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in > net/mac802154/mac802154.h between commit 2c1bbbffa0b6 ("net: mac802154: > comparision issue of type cast, finding by EXTRA_CFLAGS=-W") from the net > tree and commit

Re: [PATCH] lib: add weak __clzsi2()/__clzdi2() functions

2013-05-01 Thread 민찬호
>No, the link errors are for __ctzdi2, not __clzdi2. >__ctzdi2 can be implemented using __ffs(). >> How's about we stop using __builtin_ctz[ll]() altogether? Use N-fls()? > >That was my first suggestion ;-) > Do we remove existing __builtin_ct[l]z? Some architecture's __builtin_clz will be more

Re: WARNING: at drivers/gpu/drm/drm_crtc.c:82 drm_warn_on_modeset_not_all_locked+0x8d/0xc0()

2013-05-01 Thread Dave Airlie
On Thu, May 2, 2013 at 10:41 AM, Daniel Vetter wrote: > On Thu, May 2, 2013 at 2:02 AM, Borislav Petkov wrote: >> Hi, >> >> I'm seeing this when booting latest Linus tree + tip/master in kvm. >> Config is attached. Looks like it cannot find root fs and panics and >> calls the panic notifier

Re: [PATCH 1/3 RFC] Driver core: Add offline/online device operations

2013-05-01 Thread Rafael J. Wysocki
On Tuesday, April 30, 2013 05:38:38 PM Toshi Kani wrote: > On Mon, 2013-04-29 at 14:26 +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > In some cases, graceful hot-removal of devices is not possible, > > although in principle the devices in question support hotplug. > > For

[PATCH 03/31] blkcg: implement blkg_for_each_descendant_post()

2013-05-01 Thread Tejun Heo
This will be used by blk-throttle hierarchy support. Signed-off-by: Tejun Heo --- block/blk-cgroup.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 11f5b92..e15f731 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h @@

[PATCH 07/31] blk-throttle: removed deferred config application mechanism

2013-05-01 Thread Tejun Heo
When bps or iops configuration changes, blk-throttle records the new configuration and sets a flag indicating that the config has changed. The flag is checked in the bio dispatch path and applied. This deferred config application was necessary due to limitations in blkcg framework, which haven't

[PATCH 10/31] blk-throttle: remove pointless throtl_nr_queued() optimizations

2013-05-01 Thread Tejun Heo
throtl_nr_queued() is used in several places to avoid performing certain operations when the throtl_data is empty. This usually is useless as those paths usually aren't traveled if there's no bio queued. * throtl_schedule_delayed_work() skips scheduling dispatch work item if @td doesn't have

[PATCH 08/31] blk-throttle: collapse throtl_dispatch() into the work function

2013-05-01 Thread Tejun Heo
blk-throttle is about to go through major restructuring to support hierarchy. Do cosmetic updates in preparation. * s/throtl_data->throtl_work/throtl_data->dispatch_work/ * s/blk_throtl_work()/blk_throtl_dispatch_work_fn()/ * Collapse throtl_dispatch() into blk_throtl_dispatch_work_fn() This

[PATCH 12/31] blk-throttle: simplify throtl_grp flag handling

2013-05-01 Thread Tejun Heo
blk-throttle is still using function-defining macros to define flag handling functions, which went out style at least a decade ago. Just define the flag as bitmask and use direct bit operations. This patch doesn't make any functional changes. Signed-off-by: Tejun Heo --- block/blk-throttle.c

[PATCH 13/31] blk-throttle: add backlink pointer from throtl_grp to throtl_data

2013-05-01 Thread Tejun Heo
Add throtl_grp->td so that the td (throtl_data) a given tg (throtl_grp) belongs to can be determined, and remove @td argument from functions which take both @td and @tg as the former now can be determined from the latter. This generally simplifies the code and removes a number of cases where @td

[PATCH 04/31] blkcg: invoke blkcg_policy->pd_init() after parent is linked

2013-05-01 Thread Tejun Heo
Currently, when creating a new blkcg_gq, each policy's pd_init_fn() is invoked in blkg_alloc() before the parent is linked. This makes it difficult for policies to perform initializations which are dependent on the parent. This patch moves pd_init_fn() invocations to blkg_create() after the

[PATCH 05/31] blkcg: move bulk of blkcg_gq release operations to the RCU callback

2013-05-01 Thread Tejun Heo
Currently, when the last reference of a blkcg_gq is put, all then release operations sans the actual freeing happen directly in blkg_put(). As blkg_put() may be called under queue_lock, all pd_exit_fn()s may be too. This makes it impossible for pd_exit_fn()s to use del_timer_sync() on timers

[PATCH 15/31] blk-throttle: reorganize throtl_service_queue passed around as argument

2013-05-01 Thread Tejun Heo
throtl_service_queue will be the building block of hierarchy support and will form a tree. This patch updates its usages as arguments to reduce confusion. * When a service queue is used as the parent role - the host of the rbtree - use @parent_sq instead of @sq. * For functions taking both

[PATCH 16/31] blk-throttle: add throtl_grp->service_queue

2013-05-01 Thread Tejun Heo
Currently, there's single service_queue per queue - throtl_data->service_queue. All active throtl_grp's are queued on the queue and dispatched according to their limits. To support hierarchy, this will be expanded such that active throtl_grp's form a tree anchored at throtl_data->service_queue

[PATCH 18/31] blk-throttle: dispatch to throtl_data->service_queue.bio_lists[]

2013-05-01 Thread Tejun Heo
throtl_service_queues will eventually form a tree which is anchored at throtl_data->service_queue and queue bios will climb the tree to the top service_queue to be executed. This patch makes the dispatch paths in blk_throtl_dispatch_work_fn() and blk_throtl_drain() to dispatch bios to

[PATCH 19/31] blk-throttle: generalize update_disptime optimization in blk_throtl_bio()

2013-05-01 Thread Tejun Heo
When blk_throtl_bio() wants to queue a bio to a tg (throtl_grp), it avoids invoking tg_update_disptime() and throtl_schedule_next_dispatch() if the tg already has bios queued in that direction. As a new bio is appeneded after the existing ones, it can't change the tg's next dispatch time or the

Re: [PATCH 3/3 RFC] ACPI / hotplug: Use device offline/online for graceful hot-removal

2013-05-01 Thread Rafael J. Wysocki
On Wednesday, May 01, 2013 02:20:12 PM Toshi Kani wrote: > On Wed, 2013-05-01 at 17:05 +0200, Rafael J. Wysocki wrote: > > On Tuesday, April 30, 2013 05:49:38 PM Toshi Kani wrote: > > > On Mon, 2013-04-29 at 14:29 +0200, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > > > > >

[PATCH 20/31] blk-throttle: add throtl_service_queue->parent_sq

2013-05-01 Thread Tejun Heo
To prepare for hierarchy support, this patch adds throtl_service_queue->service_sq which points to the arent service_queue. Currently, for all service_queues embedded in throtl_grps, it points to throtl_data->service_queue. As throtl_data->service_queue doesn't have a parent its parent_sq is set

[PATCH 06/31] blk-throttle: remove spurious throtl_enqueue_tg() call from throtl_select_dispatch()

2013-05-01 Thread Tejun Heo
throtl_select_dispatch() calls throtl_enqueue_tg() right after tg_update_disptime(), which always calls the function anyway. The call is, while harmless, unnecessary. Remove it. This patch doesn't introduce any behavior difference. Signed-off-by: Tejun Heo --- block/blk-throttle.c | 4 +---

[PATCH 21/31] blk-throttle: implement sq_to_tg(), sq_to_td() and throtl_log()

2013-05-01 Thread Tejun Heo
Now that both throtl_data and throtl_grp embed throtl_service_queue, we can unify throtl_log() and throtl_log_tg(). * sq_to_tg() is added. This returns the throtl_grp a service_queue is embedded in. If the service_queue is the top-level one embedded in throtl_data, NULL is returned. *

[PATCH 24/31] blk-throttle: implement dispatch looping

2013-05-01 Thread Tejun Heo
throtl_select_dispatch() only dispatches throtl_quantum bios on each invocation. blk_throtl_dispatch_work_fn() in turn depends on throtl_schedule_next_dispatch() scheduling the next dispatch window immediately so that undue delays aren't incurred. This effectively chains multiple dispatch work

[PATCH 22/31] blk-throttle: set REQ_THROTTLED from throtl_charge_bio() and gate stats update with it

2013-05-01 Thread Tejun Heo
With proper hierarchy support, a bio can be dispatched multiple times until it reaches the top-level service_queue and we don't want to update dispatch stats at each step. They are local stats and will be kept local. If recursive stats are necessary, they should be implemented separately and

[PATCH 27/31] blk-throttle: make blk_throtl_bio() ready for hierarchy

2013-05-01 Thread Tejun Heo
Currently, blk_throtl_bio() issues the passed in bio directly if it's within limits of its associated tg (throtl_grp). This behavior becomes incorrect with hierarchy support as the bio should be accounted to and throttled by the ancestor throtl_grps too. This patch makes the direct issue path of

[PATCH 23/31] blk-throttle: separate out throtl_service_queue->pending_timer from throtl_data->dispatch_work

2013-05-01 Thread Tejun Heo
Currently, throtl_data->dispatch_work is a delayed_work item which handles both delayed dispatch and issuing bios. The two tasks will be separated to support proper hierarchy. To prepare for that, this patch separates out the timer into throtl_service_queue->pending_timer from

[PATCH 11/31] blk-throttle: rename throtl_rb_root to throtl_service_queue

2013-05-01 Thread Tejun Heo
throtl_rb_root will be expanded to cover more roles for hierarchy support. Rename it to throtl_service_queue and make its fields more descriptive. * rb-> pending_tree * left -> first_pending * count -> nr_pending * min_disptime -> first_pending_disptime This patch

[PATCH 17/31] blk-throttle: move bio_lists[] and friends to throtl_service_queue

2013-05-01 Thread Tejun Heo
throtl_service_queues will eventually form a tree which is anchored at throtl_data->service_queue and queue bios will climb the tree to the top service_queue to be executed. This patch moves bio_lists[] and nr_queued[] from throtl_grp to its service_queue to prepare for that. As currently only

Re: WARNING: at drivers/gpu/drm/drm_crtc.c:82 drm_warn_on_modeset_not_all_locked+0x8d/0xc0()

2013-05-01 Thread Daniel Vetter
On Thu, May 2, 2013 at 2:02 AM, Borislav Petkov wrote: > Hi, > > I'm seeing this when booting latest Linus tree + tip/master in kvm. > Config is attached. Looks like it cannot find root fs and panics and > calls the panic notifier which screams in drm_crtc.c because not all > modeset locks are

[PATCH 28/31] blk-throttle: make tg_dispatch_one_bio() ready for hierarchy

2013-05-01 Thread Tejun Heo
tg_dispatch_one_bio() currently assumes that the parent_sq is the top level one and the bio being dispatched is ready to be issued; however, this assumption will be wrong with proper hierarchy support. This patch makes the following changes to make tg_dispatch_on_bio() ready for hiearchy. *

[PATCH 30/31] blk-throttle: implement throtl_grp->has_rules[]

2013-05-01 Thread Tejun Heo
blk_throtl_bio() has a quick exit path for throtl_grps without limits configured. It looks at the bps and iops limits and if both are not configured, the bio is issued immediately. While this is correct in the current flat hierarchy as each throtl_grp behaves completely independently, it would

[PATCH 31/31] blk-throttle: implement proper hierarchy support

2013-05-01 Thread Tejun Heo
With the recent updates, blk-throttle is finally ready for proper hierarchy support. Dispatching now honors service_queue->parent_sq and propagates correctly. The only thing missing is setting ->parent_sq correctly so that throtl_grp hierarchy matches the cgroup hierarchy. This patch updates

[PATCH 26/31] blk-throttle: make blk_throtl_drain() ready for hierarchy

2013-05-01 Thread Tejun Heo
The current blk_throtl_drain() assumes that all active throtl_grps are queued on throtl_data->service_queue, which won't be true once hierarchy support is implemented. This patch makes blk_throtl_drain() perform post-order walk of the blkg hierarchy draining each associated throtl_grp, which

[PATCH 29/31] blk-throttle: make throtl_pending_timer_fn() ready for hierarchy

2013-05-01 Thread Tejun Heo
throtl_pending_timer_fn() currently assumes that the parent_sq is the top level one and the bio's dispatched are ready to be issued; however, this assumption will be wrong with proper hierarchy support. This patch makes the following changes to make throtl_pending_timer_fn() ready for hiearchy. *

[PATCH 25/31] blk-throttle: dispatch from throtl_pending_timer_fn()

2013-05-01 Thread Tejun Heo
Currently, blk_throtl_dispatch_work_fn() is responsible for both dispatching bio's from throtl_grp's according to their limits and then issuing the dispatched bios. This patch moves the dispatch part to throtl_pending_timer_fn() so that the work item is kicked iff there are bio's to issue. This

[PATCH 14/31] blk-throttle: pass around throtl_service_queue instead of throtl_data

2013-05-01 Thread Tejun Heo
throtl_service_queue will be used as the basic block to implement hierarchy support. Pass around throtl_service_queue *sq instead of throtl_data *td in the following functions which will be used across multiple levels of hierarchy. * [__]throtl_enqueue/dequeue_tg() * throtl_add_bio_tg() *

  1   2   3   4   5   6   7   8   9   >