Re: [PATCH] crypto: twofish - add x86_64/avx assembler implementation

2012-08-15 Thread Jussi Kivilinna
Quoting Johannes Goetzfried : This patch adds a x86_64/avx assembler implementation of the Twofish block cipher. The implementation processes eight blocks in parallel (two 4 block chunk AVX operations). The table-lookups are done in general-purpose registers. For small blocksizes the

Re: [PATCH v2] iio: adc: add new lp8788 adc driver

2012-08-15 Thread Lars-Peter Clausen
On 08/10/2012 09:06 AM, Kim, Milo wrote: > [...] > + switch (mask) { > + case IIO_CHAN_INFO_RAW: > + *val = result; > + return IIO_VAL_INT; > + case IIO_CHAN_INFO_SCALE: > + *val = adc_const[id] * ((result * 1000 + 500) / 1000); This looks wrong.

Re: [PATCH v7 1/4] mm: introduce compaction and migration for virtio ballooned pages

2012-08-15 Thread Mel Gorman
On Tue, Aug 14, 2012 at 05:00:49PM -0300, Rafael Aquini wrote: > On Tue, Aug 14, 2012 at 10:35:25PM +0300, Michael S. Tsirkin wrote: > > > > > +/* __isolate_lru_page() counterpart for a ballooned page */ > > > > > +bool isolate_balloon_page(struct page *page) > > > > > +{ > > > > > + if

Re: [PATCH] mtd: kill MTD_NAND_VERIFY_WRITE

2012-08-15 Thread Huang Shijie
于 2012年08月15日 15:06, Shmulik Ladkani 写道: Hi Huang, On Tue, 14 Aug 2012 22:38:45 -0400 Huang Shijie wrote: diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 588e989..0ca7257 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -22,15 +22,6 @@ menuconfig

RE: [PATCH 02/16] user_ns: use new hashtable implementation

2012-08-15 Thread David Laight
> Yes hash_32 seems reasonable for the uid hash. With those long hash > chains I wouldn't like to be on a machine with 10,000 processes with > each with a different uid, and a processes calling setuid in the fast > path. > > The uid hash that we are playing with is one that I sort of wish that

Re: [PATCH] drivers/iio/adc/at91_adc.c: use devm_ functions

2012-08-15 Thread Lars-Peter Clausen
On 08/14/2012 10:32 PM, Jonathan Cameron wrote: > Lars-Peter, > > Are you happy with this updated version? Can't immediately find any response > from you to it. > I think it is ok, you can add my Reviewed-by: Lars-Peter Clausen . One minor nitpick though. > Jonathan >> From: Julia Lawall >>

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-15 Thread Mel Gorman
On Tue, Aug 14, 2012 at 05:11:13PM -0300, Rafael Aquini wrote: > On Tue, Aug 14, 2012 at 10:51:39PM +0300, Michael S. Tsirkin wrote: > > What I think you should do is use rcu for access. > > And here sync rcu before freeing. > > Maybe an overkill but at least a documented synchronization > >

Re: [ 10/65] ARM: 7467/1: mutex: use generic xchg-based implementation for ARMv6+

2012-08-15 Thread Will Deacon
Hi Ben, On Wed, Aug 15, 2012 at 05:29:26AM +0100, Ben Hutchings wrote: > On Mon, 2012-08-13 at 15:13 -0700, Greg Kroah-Hartman wrote: > > From: Greg KH > > > > 3.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Will Deacon > >

Re: [PATCH v2 07/11] mm: Allocate kernel pages to the right memcg

2012-08-15 Thread Glauber Costa
On 08/14/2012 07:16 PM, Mel Gorman wrote: > On Thu, Aug 09, 2012 at 05:01:15PM +0400, Glauber Costa wrote: >> When a process tries to allocate a page with the __GFP_KMEMCG flag, the >> page allocator will call the corresponding memcg functions to validate >> the allocation. Tasks in the root memcg

Re: ext4fs error "ext4_mb_generate_buddy:741:group 16, 8160 clusters in bitmap, 4064 in gd" (with repro)

2012-08-15 Thread Lukáš Czerner
On Thu, 9 Aug 2012, Theodore Ts'o wrote: > Date: Thu, 9 Aug 2012 13:06:40 -0400 > From: Theodore Ts'o > To: Lukas Czerner > Cc: Paolo Bonzini , > "Linux Kernel mailinlinux-e...@vger.kernel.orgg List" > , linux-e...@vger.kernel.org > Subject: Re: ext4fs error >

Re: [PATCH] drivers/iio/adc/at91_adc.c: use devm_ functions

2012-08-15 Thread Julia Lawall
devm_request_and_ioremap will already print a error messages on it's own if something goes wrong. So strictly speaking this one is redundant, but I don't think it is necessary to do a resend just for this, maybe you can remove the extra dev_err when you apply the patch. Thanks for pointing that

[PATCH v4 1/1] HID:hid-multitouch: Add ELAN production request when resume.

2012-08-15 Thread Scott Liu
Add ELAN production request when resume. Some Elan legacy devices require SET_IDLE to be set on resume. It should be safe to send it to other devices too. Tested on 3M, Stantum, Cypress, Zytronic, eGalax, and Elan panels. Signed-off-by: Scott Liu Suggested-off-by: Benjamin Tissoires ---

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-15 Thread Glauber Costa
On 08/14/2012 10:58 PM, Greg Thelen wrote: > On Mon, Aug 13 2012, Glauber Costa wrote: > > + WARN_ON(mem_cgroup_is_root(memcg)); > + size = (1 << order) << PAGE_SHIFT; > + memcg_uncharge_kmem(memcg, size); > + mem_cgroup_put(memcg); >>> Why do we need ref-counting here ? kmem

Re: [PATCH v2 07/11] mm: Allocate kernel pages to the right memcg

2012-08-15 Thread Michal Hocko
On Thu 09-08-12 17:01:15, Glauber Costa wrote: [...] > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index b956cec..da341dc 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -2532,6 +2532,7 @@ __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int > order, > struct page *page =

[patch 0/8] procfs, fdinfo updated

2012-08-15 Thread Cyrill Gorcunov
Hi guys, here is an updated series. As being discussed with Al the fdinfo helper provided via file_operations. Also I've dropped CONFIG_CHECKPOINT_RESTORE wrap from inside of particular subsystems, thus this new feature will be available by default. I've tested the whole series but additional

[patch 6/8] fs, eventfd: Add procfs fdinfo helper

2012-08-15 Thread Cyrill Gorcunov
This allow us to print out raw counter value. The /proc/pid/fdinfo/fd output is | pos: 0 | flags: 04002 | eventfd-count: 5a Signed-off-by: Cyrill Gorcunov CC: Pavel Emelyanov CC: Al Viro CC: Alexey Dobriyan CC: Andrew Morton CC: James Bottomley --- fs/eventfd.c |

[patch 5/8] fs, notify: Add procfs fdinfo helper v3

2012-08-15 Thread Cyrill Gorcunov
This allow us to print out fsnotify details such as watchee inode, device, mask and file handle. For example for inotify objects the output is | pos: 0 | flags: 0200 | inotify wd:3 ino: 9e7e sdev: 800013 mask: 800afce ignored_mask:0 fhandle-bytes:

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-15 Thread Michael S. Tsirkin
On Wed, Aug 15, 2012 at 10:05:28AM +0100, Mel Gorman wrote: > On Tue, Aug 14, 2012 at 05:11:13PM -0300, Rafael Aquini wrote: > > On Tue, Aug 14, 2012 at 10:51:39PM +0300, Michael S. Tsirkin wrote: > > > What I think you should do is use rcu for access. > > > And here sync rcu before freeing. > > >

[patch 8/8] fdinfo: Show sigmask for signalfd fd v2

2012-08-15 Thread Cyrill Gorcunov
Signed-off-by: Pavel Emelyanov Signed-off-by: Cyrill Gorcunov --- fs/proc/array.c |2 +- fs/signalfd.c | 26 ++ include/linux/proc_fs.h |3 +++ 3 files changed, 30 insertions(+), 1 deletion(-) Index: linux-2.6.git/fs/proc/array.c

[patch 3/8] procfs: Add ability to plug in auxiliary fdinfo providers

2012-08-15 Thread Cyrill Gorcunov
This patch brings ability to print out auxiliary data associated with file in procfs interface /proc/pid/fdinfo/fd. In particular further patches make eventfd, evenpoll, signalfd and fsnotify to print additional information complete enough to restore these objects after checkpoint. To simplify

[patch 2/8] procfs: Convert /proc/pid/fdinfo/ handling routines to seq-file

2012-08-15 Thread Cyrill Gorcunov
This patch converts /proc/pid/fdinfo/ handling routines to seq-file which is needed to extend seq operations and plug in auxiliary fdinfo provides from subsystems like eventfd/eventpoll/fsnotify. Note the proc_fd_link no longer call for proc_fd_info, simply because proc_fd_info is converted to

[patch 7/8] fs, epoll: Add procfs fdinfo helper v2

2012-08-15 Thread Cyrill Gorcunov
This allow us to print out eventpoll target file descriptor, events and data, the /proc/pid/fdinfo/fd consists of | pos: 0 | flags: 02 | tfd:5 events: 1d data: This feature is CONFIG_CHECKPOINT_RESTORE only. Signed-off-by: Cyrill Gorcunov CC: Pavel

[patch 1/8] procfs: Move /proc/pid/fd[info] handling code to fd.[ch]

2012-08-15 Thread Cyrill Gorcunov
This patch prepares the ground for further extension of /proc/pid/fd[info] handling code by moving fdinfo handling code into fs/proc/fd.c. I think such move makes both fs/proc/base.c and fs/proc/fd.c easier to read. Signed-off-by: Cyrill Gorcunov Acked-by: Pavel Emelyanov CC: Al Viro CC:

Mmap on SSD (directly mapping the device vs. mapping a file)

2012-08-15 Thread Daniel Noack
Hi, folks! Like you can see on the subject I experimented a little with mmap in the last time. I've written a little B+tree library which uses mmap to store the tree to a file or the whole device (means it is also possible to map the raw device (i.e. /dev/sdb)). I used msync after every

[patch 4/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-15 Thread Cyrill Gorcunov
To provide fsnotify object inodes being watched without binding to alphabetical path we need to encode them with exportfs help. This patch adds a helper which operates with plain inodes directly. Signed-off-by: Cyrill Gorcunov Acked-by: Pavel Emelyanov CC: Al Viro CC: Alexey Dobriyan CC:

Re: [PATCH] crypto: twofish - add x86_64/avx assembler implementation

2012-08-15 Thread Borislav Petkov
On Wed, Aug 15, 2012 at 11:42:16AM +0300, Jussi Kivilinna wrote: > I started thinking about the performance on AMD Bulldozer. > vmovq/vmovd/vpextr*/vpinsr* between FPU and general purpose registers > on AMD CPU is alot slower (latencies from 8 to 12 cycles) than on > Intel sandy-bridge (where

[PATCH] kconfig: remove CONFIG_MTD_NAND_VERIFY_WRITE

2012-08-15 Thread Huang Shijie
Just as Artem suggested: "Both UBI and JFFS2 are able to read verify what they wrote already. There are also MTD tests which do this verification. So I think there is no reason to keep this in the NAND layer, let alone wasting RAM in the driver to support this feature." So kill

[PATCH] video:uvesafb: reduce the double check

2012-08-15 Thread Wang YanQing
uvesafb_open had checked the par->vbe_state_size, so we don't need to check it again in uvesafb_vbe_state_save, this patch just can reduce a few lines of code. Signed-off-by: Wang YanQing --- drivers/video/uvesafb.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/video/uvesafb.c

Re: [PATCH 7/8] kbuild: move W=... stuff to Kbuild.arch

2012-08-15 Thread Artem Bityutskiy
On Wed, 2012-06-06 at 17:35 +0200, Sam Ravnborg wrote: > On Wed, Jun 06, 2012 at 01:18:47PM +0300, Artem Bityutskiy wrote: > > On Sat, 2012-05-05 at 10:18 +0200, Sam Ravnborg wrote: > > > Prevent that we eveluate cc-option multiple times for the same > > > option by moving the definitions to

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Glauber Costa
>> We always account to both user and kernel resource_counters. This >> effectively means that an independent kernel limit is in place when the >> limit is set to a lower value than the user memory. A equal or higher >> value means that the user limit will always hit first, meaning that kmem >>

Re: [PATCH v4 1/1] HID:hid-multitouch: Add ELAN production request when resume.

2012-08-15 Thread Jiri Kosina
On Wed, 15 Aug 2012, Scott Liu wrote: > Add ELAN production request when resume. > > Some Elan legacy devices require SET_IDLE to be set on resume. > It should be safe to send it to other devices too. > Tested on 3M, Stantum, Cypress, Zytronic, eGalax, and Elan panels. > > > Signed-off-by:

Re: [PATCH 0/7] HID: picoLCD updates

2012-08-15 Thread Bruno Prémont
Hi Jiri, On Wed, 15 August 2012 Jiri Kosina wrote: > On Mon, 30 Jul 2012, Bruno Prémont wrote: > > Hi, > > > > This series updates picoLCD driver: > > - split the driver functions into separate files which get included > > depending on Kconfig selection > > (implementation for CIR using

[PATCH] act_mirred: do not drop packets when fails to mirror it

2012-08-15 Thread Jason Wang
We drop packet unconditionally when we fail to mirror it. This is not intended in some cases. Consdier for kvm guest, we may mirror the traffic of the bridge to a tap device used by a VM. When kernel fails to mirror the packet in conditions such as when qemu crashes or stop polling the tap, it's

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-15 Thread Glauber Costa
>> + * memcg_kmem_new_page: verify if a new kmem allocation is allowed. >> + * @gfp: the gfp allocation flags. >> + * @handle: a pointer to the memcg this was charged against. >> + * @order: allocation order. >> + * >> + * returns true if the memcg where the current task belongs can hold this >>

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-15 Thread Mel Gorman
On Wed, Aug 15, 2012 at 12:25:28PM +0300, Michael S. Tsirkin wrote: > On Wed, Aug 15, 2012 at 10:05:28AM +0100, Mel Gorman wrote: > > On Tue, Aug 14, 2012 at 05:11:13PM -0300, Rafael Aquini wrote: > > > On Tue, Aug 14, 2012 at 10:51:39PM +0300, Michael S. Tsirkin wrote: > > > > What I think you

Re: [Qemu-devel] [PATCH v8] kvm: notify host when the guest is panicked

2012-08-15 Thread Gleb Natapov
On Tue, Aug 14, 2012 at 02:35:34PM -0500, Anthony Liguori wrote: > > Do you consider allowing support for Windows as overengineering? > > I don't think there is a way to hook BSOD on Windows so attempting to > engineer something that works with Windows seems odd, no? > Yan says in other email

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-15 Thread Michael S. Tsirkin
On Wed, Aug 15, 2012 at 10:48:39AM +0100, Mel Gorman wrote: > On Wed, Aug 15, 2012 at 12:25:28PM +0300, Michael S. Tsirkin wrote: > > On Wed, Aug 15, 2012 at 10:05:28AM +0100, Mel Gorman wrote: > > > On Tue, Aug 14, 2012 at 05:11:13PM -0300, Rafael Aquini wrote: > > > > On Tue, Aug 14, 2012 at

RE: [NEW DRIVER V2 5/7] DA9058 GPIO driver

2012-08-15 Thread Opensource [Anthony Olech]
> -Original Message- > From: Linus Walleij [mailto:linus.wall...@linaro.org] > Sent: 13 August 2012 14:10 > To: Opensource [Anthony Olech] > Cc: Grant Likely; Linus Walleij; Mark Brown; LKML; David Dajun Chen; Samuel > Ortiz; Lee Jones > Subject: Re: [NEW DRIVER V2 5/7] DA9058 GPIO driver

Re: [PATCH 7/8] kbuild: move W=... stuff to Kbuild.arch

2012-08-15 Thread Sam Ravnborg
On Wed, Aug 15, 2012 at 12:41:23PM +0300, Artem Bityutskiy wrote: > On Wed, 2012-06-06 at 17:35 +0200, Sam Ravnborg wrote: > > On Wed, Jun 06, 2012 at 01:18:47PM +0300, Artem Bityutskiy wrote: > > > On Sat, 2012-05-05 at 10:18 +0200, Sam Ravnborg wrote: > > > > Prevent that we eveluate cc-option

[perf] make clean problematic bashism

2012-08-15 Thread Wouter M. Koolen
Dear perf maintainers, I attempted to compile perf 3.5.1 without worrying about installing dependencies first. The resulting error messages were quite helpful, and led me to install a bunch of development libraries and flex. Unfortunately, after installing flex the build still failed, even

Re: [perf] make clean problematic bashism

2012-08-15 Thread Peter Zijlstra
On Wed, 2012-08-15 at 11:52 +0200, Wouter M. Koolen wrote: > Dear perf maintainers, > > I attempted to compile perf 3.5.1 without worrying about installing > dependencies first. The resulting error messages were quite helpful, and > led me to install a bunch of development libraries and flex. >

Re: [PATCH] perf: Let O= makes handle relative paths

2012-08-15 Thread Borislav Petkov
On Mon, Aug 13, 2012 at 03:02:49PM -0300, Arnaldo Carvalho de Melo wrote: > [acme@sandy linux]$ rm -rf ../build/perf > [acme@sandy linux]$ make -j8 -C tools/perf/ LIBUNWIND_DIR=/opt/libunwind > O=/home/acme/git/build/perf install > /bin/sh: line 0: cd: /home/acme/git/build/perf: No such file or

Re: [PATCH 1/2] mtd: lpc32xx_slc: Adjust to pl08x DMA interface changes

2012-08-15 Thread Artem Bityutskiy
On Thu, 2012-07-12 at 14:22 +0200, Roland Stigge wrote: > This patch adjusts the LPC32xx SLC NAND driver to the new pl08x DMA interface, > fixing the compile error resulting from changed pl08x structures. > > Signed-off-by: Roland Stigge This patch breaks compilation: ERROR: "pl08x_filter_id"

Re: [perf] make clean problematic bashism

2012-08-15 Thread Wouter M. Koolen
On 08/15/2012 12:26 PM, Peter Zijlstra wrote: On Wed, 2012-08-15 at 11:52 +0200, Wouter M. Koolen wrote: Dear perf maintainers, I attempted to compile perf 3.5.1 without worrying about installing dependencies first. The resulting error messages were quite helpful, and led me to install a bunch

Re: [PATCH 0/4] promote zcache from staging

2012-08-15 Thread Konrad Rzeszutek Wilk
On Fri, Aug 10, 2012 at 01:14:01PM -0500, Seth Jennings wrote: > On 08/09/2012 03:20 PM, Dan Magenheimer wrote > > I also wonder if you have anything else unusual in your > > test setup, such as a fast swap disk (mine is a partition > > on the same rotating disk as source and target of the kernel

Re: [PATCH 0/7] zram/zsmalloc promotion

2012-08-15 Thread Konrad Rzeszutek Wilk
On Tue, Aug 14, 2012 at 12:39:25PM -0500, Seth Jennings wrote: > On 08/14/2012 12:36 AM, Nitin Gupta wrote: > > On 08/13/2012 07:35 PM, Greg Kroah-Hartman wrote: > >> On Wed, Aug 08, 2012 at 03:12:13PM +0900, Minchan Kim wrote: > >>> This patchset promotes zram/zsmalloc from staging. > >>> Both

Re: [PATCH v5 00/12] KVM: introduce readonly memslot

2012-08-15 Thread Avi Kivity
On 08/14/2012 06:51 PM, Marcelo Tosatti wrote: >> >> Userspace may want to modify the ROM (for example, when programming a >> flash device). It is also possible to map an hva range rw through one >> slot and ro through another. > > Right, can do that with multiple userspace maps to the same

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-15 Thread Glauber Costa
On 08/15/2012 01:42 PM, Glauber Costa wrote: >> Also, as I >> > have mentioned in the other email in this thread. Why should we reclaim >> > just because of kernel allocation when we are not reclaiming any of it >> > because shrink_slab is ignored in the memcg reclaim. > > Don't get too

Re: [PATCH 7/7] perf gtk/browser: Use hist_period_print functions

2012-08-15 Thread Pekka Enberg
On Mon, 6 Aug 2012, Namhyung Kim wrote: > Now we can support color using pango markup with this change. > > Cc: Pekka Enberg > Signed-off-by: Namhyung Kim Awesome! Acked-by: Pekka Enberg -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [net PATCH v3 1/3] net: netprio: fix files lock and remove useless d_path bits

2012-08-15 Thread Neil Horman
On Tue, Aug 14, 2012 at 03:34:24PM -0700, John Fastabend wrote: > Add lock to prevent a race with a file closing and also remove > useless and ugly sscanf code. The extra code was never needed > and the case it supposedly protected against is in fact handled > correctly by sock_from_file as

Re: [net PATCH v3 2/3] net: netprio: fd passed in SCM_RIGHTS datagram not set correctly

2012-08-15 Thread Neil Horman
On Tue, Aug 14, 2012 at 03:34:30PM -0700, John Fastabend wrote: > A socket fd passed in a SCM_RIGHTS datagram was not getting > updated with the new tasks cgrp prioidx. This leaves IO on > the socket tagged with the old tasks priority. > > To fix this add a check in the scm recvmsg path to update

Re: [net PATCH v3 3/3] net: netprio: fix cgrp create and write priomap race

2012-08-15 Thread Neil Horman
On Tue, Aug 14, 2012 at 03:34:35PM -0700, John Fastabend wrote: > A race exists where creating cgroups and also updating the priomap > may result in losing a priomap update. This is because priomap > writers are not protected by rtnl_lock. > > Move priority writer into rtnl_lock()/rtnl_unlock().

Re: [PATCH 0/2] Align MIPS swapper_pg_dir for faster code.

2012-08-15 Thread Ralf Baechle
On Tue, Aug 14, 2012 at 11:07:59AM -0700, David Daney wrote: > From: David Daney > > The MIPS swapper_pg_dir needs 64K alignment for faster TLB refills in > kernel mappings. There are two parts to the patch set: > > 1) Modify generic vmlinux.lds.h to allow architectures to place >

Re: [PATCHSET] timer: clean up initializers and implement irqsafe timers

2012-08-15 Thread Peter Zijlstra
On Tue, 2012-08-14 at 17:18 -0700, Tejun Heo wrote: > Let's see if we can agree on the latter point first. Do you agree > that it wouldn't be a good idea to implement relatively complex timer > subsystem inside workqueue? RB-trees are fairly trivial to use, but can we please get back to why

Re: [PATCH] crypto: twofish - add x86_64/avx assembler implementation

2012-08-15 Thread Jussi Kivilinna
Quoting Borislav Petkov : On Wed, Aug 15, 2012 at 11:42:16AM +0300, Jussi Kivilinna wrote: I started thinking about the performance on AMD Bulldozer. vmovq/vmovd/vpextr*/vpinsr* between FPU and general purpose registers on AMD CPU is alot slower (latencies from 8 to 12 cycles) than on Intel

[PATCH] scripts/decodecode: Fixup trapping instruction marker

2012-08-15 Thread Borislav Petkov
From: Borislav Petkov When dumping "Code: " sections from an oops, the trapping instruction %rip points to can be a string copy 2b:* f3 a5 rep movsl %ds:(%rsi),%es:(%rdi) and the line contain a bunch of ":". Current "cut" selects only the and the second field output looks

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Peter Zijlstra
On Mon, 2012-08-13 at 20:21 +0800, Alex Shi wrote: > Since there is no power saving consideration in scheduler CFS, I has a > very rough idea for enabling a new power saving schema in CFS. Adding Thomas, he always delights poking holes in power schemes. > It bases on the following assumption: >

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread James Bottomley
On Wed, 2012-08-15 at 13:33 +0400, Glauber Costa wrote: > > This can > > be quite confusing. I am still not sure whether we should mix the two > > things together. If somebody wants to limit the kernel memory he has to > > touch the other limit anyway. Do you have a strong reason to mix the > >

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-15 Thread Mel Gorman
On Wed, Aug 15, 2012 at 01:01:08PM +0300, Michael S. Tsirkin wrote: > On Wed, Aug 15, 2012 at 10:48:39AM +0100, Mel Gorman wrote: > > On Wed, Aug 15, 2012 at 12:25:28PM +0300, Michael S. Tsirkin wrote: > > > On Wed, Aug 15, 2012 at 10:05:28AM +0100, Mel Gorman wrote: > > > > On Tue, Aug 14, 2012

[PATCH-V2] arm/dts: AM33XX: Set the default status of module to "disabled" state

2012-08-15 Thread Vaibhav Hiremath
Ideally in common SoC dtsi file should set all modules to "disabled" state and it should get enabled in respective EVM/Board dts file as per usage. This patch sets default status of all modules to "disabled" state in am33xx.dtsi file. Currently there are no modules supported as part of Bone and

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-15 Thread Michael S. Tsirkin
On Wed, Aug 15, 2012 at 12:16:51PM +0100, Mel Gorman wrote: > On Wed, Aug 15, 2012 at 01:01:08PM +0300, Michael S. Tsirkin wrote: > > On Wed, Aug 15, 2012 at 10:48:39AM +0100, Mel Gorman wrote: > > > On Wed, Aug 15, 2012 at 12:25:28PM +0300, Michael S. Tsirkin wrote: > > > > On Wed, Aug 15, 2012

[tip:sched/core] tile: Remove SD_PREFER_LOCAL leftover

2012-08-15 Thread tip-bot for Alex Shi
Commit-ID: c7660994ed6b44d17dad0aac0d156da1e0a2f003 Gitweb: http://git.kernel.org/tip/c7660994ed6b44d17dad0aac0d156da1e0a2f003 Author: Alex Shi AuthorDate: Wed, 15 Aug 2012 08:14:36 +0800 Committer: Thomas Gleixner CommitDate: Wed, 15 Aug 2012 13:22:55 +0200 tile: Remove

Re: [Qemu-devel] [PATCH v8] kvm: notify host when the guest is panicked

2012-08-15 Thread Yan Vugenfirer
On Aug 14, 2012, at 10:35 PM, Anthony Liguori wrote: > Marcelo Tosatti writes: > >> On Tue, Aug 14, 2012 at 01:53:01PM -0500, Anthony Liguori wrote: >>> Marcelo Tosatti writes: >>> On Tue, Aug 14, 2012 at 05:55:54PM +0300, Yan Vugenfirer wrote: > > On Aug 14, 2012, at 1:42 PM,

Re: [PATCH 0/6][resend] mempolicy memory corruption fixlet

2012-08-15 Thread Josh Boyer
On Mon, Aug 6, 2012 at 3:32 PM, KOSAKI Motohiro wrote: > On 7/31/2012 8:33 AM, Josh Boyer wrote: >> On Mon, Jun 11, 2012 at 5:17 AM, wrote: >>> From: KOSAKI Motohiro >>> >>> Hi >>> >>> This is trivial fixes of mempolicy meory corruption issues. There >>> are independent patches each ather.

Re: [PATCH] time: Improve sanity checking of timekeeping inputs

2012-08-15 Thread Josh Boyer
On Wed, Aug 8, 2012 at 3:36 PM, John Stultz wrote: > Thomas, Ingo, > Here's a fix against tip/timers/urgent that addresses > timekeeping edge cases detected by both a bad BIOS and system > fuzzing w/ trinity. Thanks to Sasha Levin and CAI Qian for > finding and reporting these! > > Let me

Re: [PATCH 0/5] Call netif_carrier_off() after register_netdev()

2012-08-15 Thread Bjørn Mork
Ben Hutchings writes: > But if you do it beforehand then it doesn't have the intended effect. > (Supposed to be fixed by 22604c866889c4b2e12b73cbf1683bda1b72a313, which > had to be reverted: c276e098d3ee33059b4a1c747354226cec58487c.) > > So you have to do it after, but without dropping the RTNL

Re: [Qemu-devel] [PATCH v8] kvm: notify host when the guest is panicked

2012-08-15 Thread Yan Vugenfirer
On Aug 15, 2012, at 12:56 PM, Gleb Natapov wrote: > On Tue, Aug 14, 2012 at 02:35:34PM -0500, Anthony Liguori wrote: >>> Do you consider allowing support for Windows as overengineering? >> >> I don't think there is a way to hook BSOD on Windows so attempting to >> engineer something that works

Re: [GIT PULL] Update LZO compression

2012-08-15 Thread Markus F.X.J. Oberhumer
Hi Johannes, On 2012-08-14 14:39, Johannes Stezenbach wrote: > On Tue, Aug 14, 2012 at 01:44:02AM +0200, Markus F.X.J. Oberhumer wrote: >> On 2012-07-16 20:30, Markus F.X.J. Oberhumer wrote: >>> >>> As stated in the README this version is significantly faster (typically more >>> than 2 times

Re: O_DIRECT to md raid 6 is slow

2012-08-15 Thread John Robinson
On 15/08/2012 01:49, Andy Lutomirski wrote: If I do: # dd if=/dev/zero of=/dev/md0p1 bs=8M [...] It looks like md isn't recognizing that I'm writing whole stripes when I'm in O_DIRECT mode. I see your md device is partitioned. Is the partition itself stripe-aligned? Cheers, John. -- To

Re: [PATCH] mtd: kill MTD_NAND_VERIFY_WRITE

2012-08-15 Thread Marek Vasut
Dear Huang Shijie, > 于 2012年08月15日 15:06, Shmulik Ladkani 写道: > > Hi Huang, > > > > On Tue, 14 Aug 2012 22:38:45 -0400 Huang Shijie wrote: > >> diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig > >> index 588e989..0ca7257 100644 > >> --- a/drivers/mtd/nand/Kconfig > >> +++

Re: [PATCH 0/7] HID: picoLCD updates

2012-08-15 Thread Jiri Kosina
On Wed, 15 Aug 2012, Bruno Prémont wrote: > > > [ 6383.521833] > > > = > > > [ 6383.530020] BUG kmalloc-64 (Not tainted): Object already free > > > [ 6383.530020] > > >

Re: [PATCH] udf: fix retun value on error path in udf_load_logicalvol

2012-08-15 Thread Jan Kara
On Wed 15-08-12 00:38:08, Nikola Pajkovsky wrote: > In case we detect a problem and bail out, we fail to set "ret" to a > nonzero value, and udf_load_logicalvol will mistakenly report success. > > Signed-off-by: Nikola Pajkovsky Thanks. I've added the patch to my tree and will send it to Linus

Re: [PATCH v8 1/6] kvm: Allow filtering of acked irqs

2012-08-15 Thread Michael S. Tsirkin
On Fri, Aug 10, 2012 at 04:37:17PM -0600, Alex Williamson wrote: > Registering an kvm_irq_ack_notifier with kian.irq_source_id < 0 > retains existing behavior, filling in the actual irq_source_id results > in the callback only being called when the specified irq_source_id is > asserting the given

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-15 Thread Rafael Aquini
On Tue, Aug 14, 2012 at 10:31:09PM +0300, Michael S. Tsirkin wrote: > > > now CPU1 executes the next instruction: > > > > > > } > > > > > > which would normally return to function's caller, > > > but it has been overwritten by CPU2 so we get corruption. > > > > > > No? > > > > At the point

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Michal Hocko
On Wed 15-08-12 13:33:55, Glauber Costa wrote: [...] > > This can > > be quite confusing. I am still not sure whether we should mix the two > > things together. If somebody wants to limit the kernel memory he has to > > touch the other limit anyway. Do you have a strong reason to mix the > >

RE: [PATCH V2 02/18] Drivers: hv: Add KVP definitions for IP address injection

2012-08-15 Thread KY Srinivasan
> -Original Message- > From: devel-boun...@linuxdriverproject.org [mailto:devel- > boun...@linuxdriverproject.org] On Behalf Of KY Srinivasan > Sent: Monday, August 13, 2012 10:57 PM > To: Greg KH > Cc: o...@aepfle.de; linux-kernel@vger.kernel.org; > virtualizat...@lists.osdl.org; >

Re: [PATCH] act_mirred: do not drop packets when fails to mirror it

2012-08-15 Thread Jamal Hadi Salim
On Wed, 2012-08-15 at 17:37 +0800, Jason Wang wrote: > We drop packet unconditionally when we fail to mirror it. This is not intended > in some cases. Hi Jason, Did you actually notice the behavior you described or were you going by the XXX comment I had in the code? cheers, jamal -- To

Re: [PATCH 3/4] UBI: use the whole MTD device size to get bad_peb_limit

2012-08-15 Thread Artem Bityutskiy
On Wed, 2012-07-18 at 10:30 +0200, Richard Genoud wrote: > So the per1024 thing was really to stick to the device layout and to > be easier for users (IMHO) Convinced, thanks! -- Best Regards, Artem Bityutskiy signature.asc Description: This is a digitally signed message part

Re: [PATCH] crypto: twofish - add x86_64/avx assembler implementation

2012-08-15 Thread Borislav Petkov
Ok, here we go. Raw data below. On Wed, Aug 15, 2012 at 02:00:16PM +0300, Jussi Kivilinna wrote: > >And if you tell me exactly how to run the tests and on what kernel, > >I'll try to do so. Ok, the box is a single-socket Bulldozer: "AMD FX(tm)-8100 Eight-Core Processor stepping 02"; kernel is

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Glauber Costa
On 08/15/2012 04:39 PM, Michal Hocko wrote: > On Wed 15-08-12 13:33:55, Glauber Costa wrote: > [...] >>> This can >>> be quite confusing. I am still not sure whether we should mix the two >>> things together. If somebody wants to limit the kernel memory he has to >>> touch the other limit anyway.

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Michal Hocko
On Wed 15-08-12 12:12:23, James Bottomley wrote: > On Wed, 2012-08-15 at 13:33 +0400, Glauber Costa wrote: > > > This can > > > be quite confusing. I am still not sure whether we should mix the two > > > things together. If somebody wants to limit the kernel memory he has to > > > touch the other

Re: [PATCH v2 01/31] arm64: Assembly macros and definitions

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > This patch introduces several assembly macros and definitions used in > the .S files across arch/arm64/ like IRQ disabling/enabling, together > with asm-offsets.c. > > Signed-off-by: Will Deacon > Signed-off-by: Catalin Marinas Acked-by: Arnd

Re: [PATCH v8 2/6] kvm: Expose IRQ source IDs to userspace

2012-08-15 Thread Michael S. Tsirkin
On Fri, Aug 10, 2012 at 04:37:25PM -0600, Alex Williamson wrote: > Introduce KVM_IRQ_SOURCE_ID and KVM_CAP_NR_IRQ_SOURCE_ID to allow > user allocation of IRQ source IDs and querying both the capability > and the total count of IRQ source IDs. These will later be used > by interfaces for setting

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Michal Hocko
On Wed 15-08-12 16:53:40, Glauber Costa wrote: [...] > >>> This doesn't check for the hierachy so kmem_accounted might not be in > >>> sync with it's parents. mem_cgroup_create (below) needs to copy > >>> kmem_accounted down from the parent and the above needs to check if this > >>> is a similar

Re: [PATCH v2 03/31] arm64: Exception handling

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > +#ifdef CONFIG_AARCH32_EMULATION > +#define compat_thumb_mode(regs) \ > + (((regs)->pstate & COMPAT_PSR_T_BIT)) > +#else > +#define compat_thumb_mode(regs) (0) > +#endif The symbol we use on other platforms is CONFIG_COMPAT. I don't think

Re: [PATCH v2 15/31] arm64: SMP support

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > This patch adds SMP initialisation and spinlocks implementation for > AArch64. The spinlock support uses the new load-acquire/store-release > instructions to avoid explicit barriers. The architecture also specifies > that an event is

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Glauber Costa
On 08/15/2012 05:02 PM, Michal Hocko wrote: > On Wed 15-08-12 16:53:40, Glauber Costa wrote: > [...] > This doesn't check for the hierachy so kmem_accounted might not be in > sync with it's parents. mem_cgroup_create (below) needs to copy > kmem_accounted down from the parent and the

Re: yama_ptrace_access_check(): possible recursive locking detected

2012-08-15 Thread Oleg Nesterov
On 08/14, Kees Cook wrote: > > Okay, I've now managed to reproduce this locally. I added a bunch of > debugging, and I think I understand what's going on. This warning is, > actually, a false positive. Sure. I mean that yes, this warning doesn't mean we already hit deadlock. > get used

Re: [PATCH] perf: Let O= makes handle relative paths

2012-08-15 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 15, 2012 at 12:27:22PM +0200, Borislav Petkov escreveu: > On Mon, Aug 13, 2012 at 03:02:49PM -0300, Arnaldo Carvalho de Melo wrote: > > [acme@sandy linux]$ rm -rf ../build/perf > > [acme@sandy linux]$ make -j8 -C tools/perf/ LIBUNWIND_DIR=/opt/libunwind > > O=/home/acme/git/build/perf

Re: [PATCH v7 2/2] kvm: KVM_EOIFD, an eventfd for EOIs

2012-08-15 Thread Avi Kivity
On 08/15/2012 02:26 AM, Alex Williamson wrote: > > Yes, I understand. It's simple, it's also very specific to this > problem, and doesn't address generic ack notification. All of which > I've noted before and I continue to note that v8 offers simplifications > while retaining flexibility.

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-15 Thread Michal Hocko
On Wed 15-08-12 13:42:24, Glauber Costa wrote: [...] > >> + > >> + ret = 0; > >> + > >> + if (!memcg) > >> + return ret; > >> + > >> + _memcg = memcg; > >> + ret = __mem_cgroup_try_charge(NULL, gfp, delta / PAGE_SIZE, > >> + &_memcg, may_oom); > > > > This is really dangerous

Re: [perf] make clean problematic bashism

2012-08-15 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 15, 2012 at 12:26:48PM +0200, Peter Zijlstra escreveu: > On Wed, 2012-08-15 at 11:52 +0200, Wouter M. Koolen wrote: > > The reason for this was a bunch of generated empty flex files in util/ > > that were not removed by make clean. They are intended to be erased, > > since the

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Borislav Petkov
On Wed, Aug 15, 2012 at 01:05:38PM +0200, Peter Zijlstra wrote: > On Mon, 2012-08-13 at 20:21 +0800, Alex Shi wrote: > > Since there is no power saving consideration in scheduler CFS, I has a > > very rough idea for enabling a new power saving schema in CFS. > > Adding Thomas, he always delights

Re: [PATCH] perf: Let O= makes handle relative paths

2012-08-15 Thread Borislav Petkov
On Wed, Aug 15, 2012 at 10:06:34AM -0300, Arnaldo Carvalho de Melo wrote: > That was the case in the past, but IIRC PeterZ advocated not to and I > agreed. Maybe you guys need to explain yourselves :) I mean, the dir is not present so we're not overwriting anything. And since we say "O=..." on

Re: [PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > +The AArch64 exception model is made up of a number of exception levels > +(EL0 - EL3), with EL0 and EL1 having a secure and a non-secure > +counterpart. EL2 is the hypervisor level and exists only in non-secure > +mode. EL3 is the highest

Re: [PATCH v2 07/11] mm: Allocate kernel pages to the right memcg

2012-08-15 Thread Mel Gorman
On Wed, Aug 15, 2012 at 01:08:08PM +0400, Glauber Costa wrote: > On 08/14/2012 07:16 PM, Mel Gorman wrote: > > On Thu, Aug 09, 2012 at 05:01:15PM +0400, Glauber Costa wrote: > >> When a process tries to allocate a page with the __GFP_KMEMCG flag, the > >> page allocator will call the corresponding

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Michal Hocko
On Wed 15-08-12 17:04:31, Glauber Costa wrote: > On 08/15/2012 05:02 PM, Michal Hocko wrote: > > On Wed 15-08-12 16:53:40, Glauber Costa wrote: > > [...] > > This doesn't check for the hierachy so kmem_accounted might not be in > > sync with it's parents. mem_cgroup_create (below) needs

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread James Bottomley
On Wed, 2012-08-15 at 14:55 +0200, Michal Hocko wrote: > On Wed 15-08-12 12:12:23, James Bottomley wrote: > > On Wed, 2012-08-15 at 13:33 +0400, Glauber Costa wrote: > > > > This can > > > > be quite confusing. I am still not sure whether we should mix the two > > > > things together. If somebody

Re: [PATCH v2 04/31] arm64: MMU definitions

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > > +/* > + * TCR flags. > + */ > +#define TCR_TxSZ(x) (((64 - (x)) << 16) | ((64 - (x)) << 0)) > +#define TCR_IRGN_NC ((0 << 8) | (0 << 24)) > +#define TCR_IRGN_WBWA((1 << 8) | (1 << 24)) > +#define TCR_IRGN_WT

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Glauber Costa
On 08/15/2012 05:26 PM, Michal Hocko wrote: > On Wed 15-08-12 17:04:31, Glauber Costa wrote: >> On 08/15/2012 05:02 PM, Michal Hocko wrote: >>> On Wed 15-08-12 16:53:40, Glauber Costa wrote: >>> [...] >>> This doesn't check for the hierachy so kmem_accounted might not be in >>> sync with

<    4   5   6   7   8   9   10   11   12   13   >