Re: [PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-15 Thread Peter Zijlstra
On Tue, 2012-08-14 at 13:50 -0700, Trevor Brandt wrote: > Adds support for compiling out the real-time scheduler (SCHED_FIFO > and SCHED_RR) to save space. Changes sched_set_stop_task to use > SCHED_NORMAL rather than SCHED_FIFO, since the kernel only uses this > function as a fake scheduling

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

2012-08-15 Thread Glauber Costa
On 08/15/2012 06:47 PM, Christoph Lameter wrote: > On Wed, 15 Aug 2012, Michal Hocko wrote: > >>> That is not what the kernel does, in general. We assume that if he wants >>> that memory and we can serve it, we should. Also, not all kernel memory >>> is unreclaimable. We can shrink the slabs, for

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

2012-08-15 Thread Bruno Prémont
Hi Jiri, On Wed, 15 August 2012 Jiri Kosina wrote: > I see. Alan Stern has fixed a huge pile of things in this area in 3.6-rc1. > I have expected all of those to actually be on theoretical problems not > ever having happened in the wild, but it might be that you are actually > chasing on of

[NEW DRIVER V3 3/8] DA9058 ONKEY driver

2012-08-15 Thread Anthony Olech
This is the ONKEY component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE component driver of the DA9058 MFD. Signed-off-by: Anthony Olech Signed-off-by: David Dajun Chen --- drivers/input/misc/Kconfig| 10

[NEW DRIVER V3 2/8] DA9058 ADC driver

2012-08-15 Thread Anthony Olech
This is the ADC component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the DA9058 CORE component driver. The HWMON and BATTERY component drivers depend on this ADC component driver. This component driver recieves the actual

[NEW DRIVER V3 0/8] DA9058 PMIC - please comment on this new driver

2012-08-15 Thread Anthony Olech
This is submission attempt number 3 to have this driver included in the linux kernel source tree. This is the driver for the Dialog DA9058. The DA9058 is a low power Power Management Integrated Circuit with extra functionality. It is a Multi Function Device controlled only from an I2C bus whose

[NEW DRIVER V3 6/8] DA9058 GPIO driver

2012-08-15 Thread Anthony Olech
This is the GPIO component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE component driver of the DA9058 MFD. The meaning of the PMIC register 21 bits 1 and 5 has been documented in the driver source. Signed-off-by:

[NEW DRIVER V3 4/8] DA9058 POWER driver

2012-08-15 Thread Anthony Olech
This is the POWER component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE and ADC component drivers of the DA9058 MFD. Signed-off-by: Anthony Olech Signed-off-by: David Dajun Chen --- drivers/power/Kconfig|

[NEW DRIVER V3 5/8] DA9058 RTC driver

2012-08-15 Thread Anthony Olech
This is the RTC component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE component driver of the DA9058 MFD. Signed-off-by: Anthony Olech Signed-off-by: David Dajun Chen --- drivers/rtc/Kconfig | 10 +

[NEW DRIVER V3 7/8] DA9058 HWMON driver

2012-08-15 Thread Anthony Olech
This is the HWMON component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE and ADC component drivers of the DA9058 MFD. Signed-off-by: Anthony Olech Signed-off-by: David Dajun Chen --- Documentation/hwmon/da9058 |

[NEW DRIVER V3 8/8] DA9058 REGULATOR driver

2012-08-15 Thread Anthony Olech
This is the REGULATOR component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE component driver of the DA9058 MFD. Signed-off-by: Anthony Olech Signed-off-by: David Dajun Chen --- drivers/regulator/Kconfig

[RFC PATCH 1/1] trace: Move trace event enable from fs_initcall to early_initcall

2012-08-15 Thread Ezequiel Garcia
This patch splits trace event initialization in two stages: * ftrace enable * sysfs event entry creation This allows to capture trace events from an earlier point by using 'trace_event' kernel parameter and is important to trace boot-up allocations. Cc: Steven Rostedt Cc: Frederic Weisbecker

Linux 3.4.9

2012-08-15 Thread Greg KH
I'm announcing the release of the 3.4.9 kernel. All users of the 3.4 kernel series must upgrade. The updated 3.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.4.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH v2 26/31] arm64: Miscellaneous library functions

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > + > +/* > + * Use compiler builtins for simple inline operations. > + */ > +static inline unsigned long __ffs(unsigned long word) > +{ > + return __builtin_ffsl(word) - 1; > +} > + > +static inline int ffs(int x) > +{ > + return

[RFC PATCH 0/1] trace: Add early event trace support

2012-08-15 Thread Ezequiel Garcia
Hi Steven, This patch is my first attempt to address the "early tracing issue". Right now, trace events are registered on fs_initcall, which is very late if you want to capture boot-up events. This feature is in developers wish list as this old (2009) thread shows [1]. By splitting the

Linux 3.5.2

2012-08-15 Thread Greg KH
I'm announcing the release of the 3.5.2 kernel. All users of the 3.5 kernel series must upgrade. The updated 3.5.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.5.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH v5 8/8] Added /proc/net/sco via bt_procfs_init()

2012-08-15 Thread Jan Engelhardt
On Thursday 2012-07-26 06:24, Gustavo Padovan wrote: >Hi Masatake, > >* Masatake YAMATO [2012-07-26 01:30:12 +0900]: > >> Added /proc/net/sco via bt_procfs_init(). >> >> Signed-off-by: Masatake YAMATO >> --- >> net/bluetooth/sco.c |9 + >> 1 file changed, 9 insertions(+) > >All 8

Re: [PATCH 08/11] perf tool: precise mode requires exclude_guest

2012-08-15 Thread David Ahern
On 8/3/12 7:51 AM, Robert Richter wrote: On 26.07.12 10:08:29, Peter Zijlstra wrote: On Wed, 2012-07-25 at 23:16 -0600, David Ahern wrote: Peter's patch (see https://lkml.org/lkml/2012/7/9/298) changes kernel side to require the use of exclude_guest if the precise modifier is used, returning

Re: [PATCH 3/4] cputime: Consolidate vtime handling on context switch

2012-08-15 Thread Martin Schwidefsky
On Tue, 14 Aug 2012 16:16:49 +0200 Frederic Weisbecker wrote: > The archs that implement virtual cputime accounting all > flush the cputime of a task when it gets descheduled > and sometimes set up some ground initialization for the > next task to account its cputime. > > These archs all put

Re: [PATCH 4/4] s390: Remove leftover account_tick_vtime() header

2012-08-15 Thread Martin Schwidefsky
On Tue, 14 Aug 2012 16:16:50 +0200 Frederic Weisbecker wrote: > The function doesn't seem to exist anymore. > > Signed-off-by: Frederic Weisbecker > Cc: Tony Luck > Cc: Fenghua Yu > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Cc: Ingo

Re: [PATCH v2 27/31] arm64: Loadable modules

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > + > +void *module_alloc(unsigned long size) > +{ > + return __vmalloc_node_range(size, 1, MODULES_VADDR, MODULES_END, > + GFP_KERNEL, PAGE_KERNEL_EXEC, -1, > +

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

2012-08-15 Thread Dan Magenheimer
> > On a second thought, I think zsmalloc should stay in drivers/block/zram > > since zram is now the only user of zsmalloc since zcache and ramster are > > moving to another allocator. > > The removal of zsmalloc from zcache has not been agreed upon > yet. > > Dan _suggested_ removing zsmalloc

Q: On restoring terminal with hinted index

2012-08-15 Thread Cyrill Gorcunov
Hi Peter, that happened that in a sake of restoring ptys after checkpoint we need to create them with predefined indices, as they were at moment of dumping. So we have two options -- 1) Open terminals in sequence until needed index reached 2) Use some other way to say the kernel that some index

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

2012-08-15 Thread Greg Thelen
On Wed, Aug 15 2012, Christoph Lameter wrote: > On Wed, 15 Aug 2012, Michal Hocko wrote: > >> > That is not what the kernel does, in general. We assume that if he wants >> > that memory and we can serve it, we should. Also, not all kernel memory >> > is unreclaimable. We can shrink the slabs, for

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

2012-08-15 Thread Rik van Riel
On 08/14/2012 05:38 PM, Michael S. Tsirkin wrote: And even ignoring that, global pointer to a device is an ugly hack and ugly hacks tend to explode. And even ignoring estetics, and if we decide we are fine with a single balloon, it needs to fail gracefully not crash like it does now. Fair

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

2012-08-15 Thread Borislav Petkov
On Wed, Aug 15, 2012 at 05:22:03PM +0300, Jussi Kivilinna wrote: > Patch replaces 'movb' instructions with 'movzbl' to break false > register dependencies and interleaves instructions better for > out-of-order scheduling. > > Also move common round code to separate function to reduce object >

Re: [PATCH v2 27/31] arm64: Loadable modules

2012-08-15 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 04:23:21PM +0100, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > + > > +void *module_alloc(unsigned long size) > > +{ > > + return __vmalloc_node_range(size, 1, MODULES_VADDR, MODULES_END, > > +

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

2012-08-15 Thread Glauber Costa
On 08/15/2012 07:34 PM, Christoph Lameter wrote: > On Wed, 15 Aug 2012, Glauber Costa wrote: > >> On 08/15/2012 06:47 PM, Christoph Lameter wrote: >>> On Wed, 15 Aug 2012, Michal Hocko wrote: >>> > That is not what the kernel does, in general. We assume that if he wants > that memory and

[PATCH] slub: try to get cpu partial slab even if we get enough objects for cpu freelist

2012-08-15 Thread Joonsoo Kim
s->cpu_partial determine the maximum number of objects kept in the per cpu partial lists of a processor. Currently, it is used for not only per cpu partial list but also cpu freelist. Therefore get_partial_node() doesn't work properly according to our first intention. Fix it as forcibly assigning

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

2012-08-15 Thread Christoph Lameter
On Wed, 15 Aug 2012, Glauber Costa wrote: > On 08/15/2012 06:47 PM, Christoph Lameter wrote: > > On Wed, 15 Aug 2012, Michal Hocko wrote: > > > >>> That is not what the kernel does, in general. We assume that if he wants > >>> that memory and we can serve it, we should. Also, not all kernel

Re: [PATCH] slub: try to get cpu partial slab even if we get enough objects for cpu freelist

2012-08-15 Thread Christoph Lameter
On Thu, 16 Aug 2012, Joonsoo Kim wrote: > s->cpu_partial determine the maximum number of objects kept > in the per cpu partial lists of a processor. Currently, it is used for > not only per cpu partial list but also cpu freelist. Therefore > get_partial_node() doesn't work properly according to

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

2012-08-15 Thread Christoph Lameter
On Wed, 15 Aug 2012, Greg Thelen wrote: > > You can already shrink the reclaimable slabs (dentries / inodes) via > > calls to the subsystem specific shrinkers. Did Ying Han do anything to > > go beyond that? > > cc: Ying > > The Google shrinker patches enhance prune_dcache_sb() to limit dentry >

[PATCH 00/13] overlay filesystem: request for inclusion (v14)

2012-08-15 Thread Miklos Szeredi
Here's the latest version of the overlayfs series. Git tree is here: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs.v14 Please consider for 3.7. Thanks, Miklos --- Andy Whitcroft (3): overlayfs: add statfs support ovl: switch to __inode_permission()

[PATCH 02/13] vfs: export do_splice_direct() to modules

2012-08-15 Thread Miklos Szeredi
From: Miklos Szeredi Export do_splice_direct() to modules. Needed by overlay filesystem. Signed-off-by: Miklos Szeredi --- fs/splice.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/splice.c b/fs/splice.c index 41514dd..2695a60 100644 --- a/fs/splice.c +++

[PATCH 05/13] overlayfs: add statfs support

2012-08-15 Thread Miklos Szeredi
From: Andy Whitcroft Add support for statfs to the overlayfs filesystem. As the upper layer is the target of all write operations assume that the space in that filesystem is the space in the overlayfs. There will be some inaccuracy as overwriting a file will copy it up and consume space we

[PATCH 07/13] overlay: overlay filesystem documentation

2012-08-15 Thread Miklos Szeredi
From: Neil Brown Document the overlay filesystem. Signed-off-by: Miklos Szeredi --- Documentation/filesystems/overlayfs.txt | 199 +++ MAINTAINERS |7 + 2 files changed, 206 insertions(+), 0 deletions(-) create mode 100644

[PATCH 08/13] fs: limit filesystem stacking depth

2012-08-15 Thread Miklos Szeredi
From: Miklos Szeredi Add a simple read-only counter to super_block that indicates deep this is in the stack of filesystems. Previously ecryptfs was the only stackable filesystem and it explicitly disallowed multiple layers of itself. Overlayfs, however, can be stacked recursively and also may

[PATCH 09/13] overlayfs: fix possible leak in ovl_new_inode

2012-08-15 Thread Miklos Szeredi
From: Robin Dong After allocating a new inode, if the mode of inode is incorrect, we should release it by iput(). Signed-off-by: Robin Dong Signed-off-by: Miklos Szeredi --- fs/overlayfs/inode.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/overlayfs/inode.c

[PATCH 11/13] vfs: export __inode_permission() to modules

2012-08-15 Thread Miklos Szeredi
From: Miklos Szeredi We need to be able to check inode permissions (but not filesystem implied permissions) for stackable filesystems. Expose this interface for overlayfs. Signed-off-by: Miklos Szeredi --- fs/internal.h |5 - fs/namei.c |1 + include/linux/fs.h |

[PATCH 12/13] ovl: switch to __inode_permission()

2012-08-15 Thread Miklos Szeredi
From: Andy Whitcroft When checking permissions on an overlayfs inode we do not take into account either device cgroup restrictions nor security permissions. This allows a user to mount an overlayfs layer over a restricted device directory and by pass those permissions to open otherwise

[PATCH 13/13] overlayfs: copy up i_uid/i_gid from the underlying inode

2012-08-15 Thread Miklos Szeredi
From: Andy Whitcroft YAMA et al rely on on i_uid/i_gid to be populated in order to perform their checks. While these really cannot be guarenteed as the underlying filesystem may not even have the concept, they are expected to be filled when possible. To quote Al Viro: "Ideally, yes, we'd

[PATCH 10/13] overlayfs: create new inode in ovl_link

2012-08-15 Thread Miklos Szeredi
From: Robin Dong Imaging using ext4 as upperdir which has a file "hello" and lowdir is totally empty. 1. mount -t overlayfs overlayfs -o lowerdir=/lower,upperdir=/upper /overlay 2. cd /overlay 3. ln hello bye then the overlayfs code will call vfs_link to create a real ext4 dentry for "bye" and

[PATCH 06/13] overlayfs: implement show_options

2012-08-15 Thread Miklos Szeredi
From: Erez Zadok This is useful because of the stacking nature of overlayfs. Users like to find out (via /proc/mounts) which lower/upper directory were used at mount time. Signed-off-by: Erez Zadok Signed-off-by: Miklos Szeredi --- fs/overlayfs/super.c | 63

[PATCH 03/13] vfs: introduce clone_private_mount()

2012-08-15 Thread Miklos Szeredi
From: Miklos Szeredi Overlayfs needs a private clone of the mount, so create a function for this and export to modules. Signed-off-by: Miklos Szeredi --- fs/namespace.c| 18 ++ include/linux/mount.h |3 +++ 2 files changed, 21 insertions(+), 0 deletions(-) diff

[PATCH 01/13] vfs: add i_op->open()

2012-08-15 Thread Miklos Szeredi
From: Miklos Szeredi Add a new inode operation i_op->open(). This is for stacked filesystems that want to return a struct file from a different filesystem. Signed-off-by: Miklos Szeredi --- Documentation/filesystems/Locking |2 ++ Documentation/filesystems/vfs.txt |7 +++

Re: [PATCH v2 28/31] arm64: Generic timers support

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > +static void arch_timer_reg_write(int reg, u32 val) > +{ > + switch (reg) { > + case ARCH_TIMER_REG_CTRL: > + asm volatile("msr cntp_ctl_el0, %0" : : "r" (val)); > + break; > + case

Re: [PATCH v2 29/31] arm64: Miscellaneous header files

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > diff --git a/arch/arm64/include/asm/cmpxchg.h > b/arch/arm64/include/asm/cmpxchg.h > new file mode 100644 > index 000..dc50de7 > --- /dev/null > +++ b/arch/arm64/include/asm/cmpxchg.h > + default: > + __bad_cmpxchg(ptr,

Re: [PATCH v2 31/31] arm64: MAINTAINERS update

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > > This patch updates the MAINTAINERS file for the AArch64 Linux kernel > port. > > Signed-off-by: Catalin Marinas Acked-by: Arnd Bergmann -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v2 30/31] arm64: Build infrastructure

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > new file mode 100644 > index 000..1ce3d04 > --- /dev/null > +++ b/arch/arm64/Kconfig > @@ -0,0 +1,261 @@ > +config ARM64 > + def_bool y > + select OF > + select

Re: [PATCH v2 13/31] arm64: Device specific operations

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > > This patch adds several definitions for device communication, including > I/O accessors and ioremap(). The __raw_* accessors are implemented as > inline asm to avoid compiler generation of post-indexed accesses (less > efficient to emulate in

Re: [PATCH 1/3] PM / Runtime: Fix rpm_resume() return value for power.no_callbacks set

2012-08-15 Thread Alan Stern
On Tue, 14 Aug 2012, Rafael J. Wysocki wrote: > > For devices whose power.no_callbacks flag is set, rpm_resume() > should return 1 if the device's parent is already active, so that > the callers of pm_runtime_get() don't think that they have to wait > for the device to resume (asynchronously) in

Re: [PATCH v2 14/31] arm64: DMA mapping API

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > +static struct dma_map_ops arm64_swiotlb_dma_ops = { > + .alloc = arm64_swiotlb_alloc_coherent, > + .free = arm64_swiotlb_free_coherent, > + .map_page = arm64_swiotlb_map_page, > + .unmap_page = arm64_swiotlb_unmap_page, >

Re: Q: On restoring terminal with hinted index

2012-08-15 Thread H. Peter Anvin
On 08/15/2012 08:25 AM, Cyrill Gorcunov wrote: > Hi Peter, > > that happened that in a sake of restoring ptys after checkpoint > we need to create them with predefined indices, as they were at > moment of dumping. So we have two options -- 1) Open terminals > in sequence until needed index

Re: [PATCH v2 27/31] arm64: Loadable modules

2012-08-15 Thread Arnd Bergmann
On Wednesday 15 August 2012, Catalin Marinas wrote: > Primarily branch relocation, we have a limitation to 128MB branch range. > The alternative would be to always compile the modules with a large > memory model but we may lose some performance and could make the > relocation handling even harder.

Re: [PATCH 2/3] PM / Runtime: Clear power.deferred_resume on success in rpm_suspend()

2012-08-15 Thread Alan Stern
On Tue, 14 Aug 2012, Rafael J. Wysocki wrote: > > The power.deferred_resume can only be set if the runtime PM status > of device is RPM_SUSPENDING and it should be cleared after its > status has been changed, regardless of whether or not the runtime > suspend has been successful. However, it

Re: Q: On restoring terminal with hinted index

2012-08-15 Thread Cyrill Gorcunov
On Wed, Aug 15, 2012 at 09:16:10AM -0700, H. Peter Anvin wrote: > On 08/15/2012 08:25 AM, Cyrill Gorcunov wrote: > > Hi Peter, > > > > that happened that in a sake of restoring ptys after checkpoint > > we need to create them with predefined indices, as they were at > > moment of dumping. So we

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

2012-08-15 Thread Matthew Garrett
On Mon, Aug 13, 2012 at 08:21:00PM +0800, Alex Shi wrote: > power aware scheduling), this proposal will adopt the > sched_balance_policy concept and use 2 kind of policy: performance, power. Are there workloads in which "power" might provide more performance than "performance"? If so, don't use

Re: [PATCH] regulator: twl-regulator: fix up VINTANA1/VINTANA2

2012-08-15 Thread Mark Brown
On Wed, Aug 15, 2012 at 01:10:04AM +0300, Aaro Koskinen wrote: > It seems commit 2098e95ce9bb039ff2e7bf836df358d18a176139 (regulator: twl: > adapt twl-regulator driver to dt) accidentally deleted VINTANA1. Also > the same commit defines VINTANA2 twice with TWL4030_ADJUSTABLE_LDO and >

Re: [PATCH 3/3] PM / Runtime: Check device PM QoS setting before "no callbacks" check

2012-08-15 Thread Alan Stern
On Tue, 14 Aug 2012, Rafael J. Wysocki wrote: > > If __dev_pm_qos_read_value(dev) returns a negative value, > rpm_suspend() should return -EPERM for dev even if its > power.no_callbacks flag is set. For this to happen, the device's > power.no_callbacks flag has to be checked after the PM QoS

Re: [PATCH V3] regulator: add MAX8907 driver

2012-08-15 Thread Mark Brown
On Thu, Aug 09, 2012 at 02:24:34PM -0600, Stephen Warren wrote: > From: Gyungoh Yoo > > The MAX8907 is an I2C-based power-management IC containing voltage > regulators, a reset controller, a real-time clock, and a touch-screen > controller. Applied, thanks. -- To unsubscribe from this list:

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

2012-08-15 Thread Matthew Garrett
On Wed, Aug 15, 2012 at 01:05:38PM +0200, Peter Zijlstra wrote: > Yay, ideally we'd also provide a 3rd option: auto, which simply switches > between the two based on AC/BAT, UPS status and simple things like that. Please, really, don't do that. Pushing power policy decisions into multiple bits

[RFC PATCH 1/5] net: cleanup unix_bind() a little

2012-08-15 Thread Stanislav Kinsbursky
This will simplify further changes for unix_fbind(). --- net/unix/af_unix.c | 12 +--- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 641f2e4..bc90ddb 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -880,10 +880,8

[RFC PATCH 4/5] net: fbind() for unix sockets protocol operations introduced

2012-08-15 Thread Stanislav Kinsbursky
Path for unix_address is taken from passed file. File inode have to be socket. Since no sunaddr is present, addr->name is constructed at the place. It obviously means, then path name can be truncated is it's longer then UNIX_MAX_PATH. Signed-off-by: Stanislav Kinsbursky --- net/unix/af_unix.c |

[RFC PATCH 5/5] syscall: sys_fbind() introduced

2012-08-15 Thread Stanislav Kinsbursky
This syscall allows to bind socket to specified file descriptor. Descriptor can be gained by simple open with O_PATH flag. Socket node can be created by sys_mknod(). Signed-off-by: Stanislav Kinsbursky --- arch/x86/syscalls/syscall_32.tbl |1 + arch/x86/syscalls/syscall_64.tbl |1 +

[RFC PATCH 2/5] net: split unix_bind()

2012-08-15 Thread Stanislav Kinsbursky
This patch moves UNIX socket insert into separated function, because this code will be used for unix_fbind() too. Signed-off-by: Stanislav Kinsbursky --- net/unix/af_unix.c | 52 +--- 1 files changed, 29 insertions(+), 23 deletions(-) diff

[RFC PATCH 3/5] net: new protocol operation fbind() introduced

2012-08-15 Thread Stanislav Kinsbursky
This operation is used to bind socket to specified file. Signed-off-by: Stanislav Kinsbursky --- include/linux/net.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/net.h b/include/linux/net.h index e9ac2df..843cb75 100644 --- a/include/linux/net.h +++

[RFC PATCH 0/5] net: socket bind to file descriptor introduced

2012-08-15 Thread Stanislav Kinsbursky
This patch set introduces new socket operation and new system call: sys_fbind(), which allows to bind socket to opened file. File to bind to can be created by sys_mknod(S_IFSOCK) and opened by open(O_PATH). This system call is especially required for UNIX sockets, which has name lenght

[PATCH V4] mfd: add MAX8907 core driver

2012-08-15 Thread Stephen Warren
From: Gyungoh Yoo The MAX8907 is an I2C-based power-management IC containing voltage regulators, a reset controller, a real-time clock, and a touch-screen controller. The original driver was written by: * Gyungoh Yoo Various fixes and enhancements by: * Jin Park * Tom Cherry * Prashant

Re: [ 36/44] x86, microcode: Sanitize per-cpu microcode reloading interface

2012-08-15 Thread Henrique de Moraes Holschuh
On Wed, 15 Aug 2012, Greg Kroah-Hartman wrote: > On Tue, Aug 14, 2012 at 09:26:54PM -0300, Henrique de Moraes Holschuh wrote: > > I believe the patch bellow, which was required on 3.2, will also be > > necessary. > > Will it be necessary to apply this before this patch goes in the series, > or

Re: [RFC PATCH 5/5] syscall: sys_fbind() introduced

2012-08-15 Thread H. Peter Anvin
On 08/15/2012 09:22 AM, Stanislav Kinsbursky wrote: This syscall allows to bind socket to specified file descriptor. Descriptor can be gained by simple open with O_PATH flag. Socket node can be created by sys_mknod(). Signed-off-by: Stanislav Kinsbursky --- arch/x86/syscalls/syscall_32.tbl |

Re: [PATCH] xconfig: Display dependency values in debug_info

2012-08-15 Thread Salar Ali Mumtaz
On 12-08-10 08:39 PM, Randy Dunlap wrote: > On 08/09/2012 11:54 AM, Salar Ali Mumtaz wrote: > >> On 12-08-07 12:55 PM, Randy Dunlap wrote: >> >>> In Kconfig language, is "" the same as 'n' ? >>> If so, I'm OK with your proposal above. >>> >> >> >> So a colleague of mine tested this and came up

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

2012-08-15 Thread Matthew Garrett
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: > > It bases on the following assumption: > > 1, If there are many task crowd in system, just let few domain cpus > > running and let other cpus idle can not save power. Let all cpu

Re: [PATCH 1/5] perf ui: Introduce struct perf_helpline

2012-08-15 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 15, 2012 at 11:57:31PM +0900, Namhyung Kim escreveu: > Add struct perf_helpline in order to provide flexible implementation > of helpline APIs. And convert existing TUI implementation to use it. I advise not to use struct perf_helpline but struct ui_helpline, as it is just user

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

2012-08-15 Thread Geert Uytterhoeven
On Wed, Aug 15, 2012 at 3:30 PM, Arnd Bergmann wrote: >> +#define TCR_IPS_40BIT(2 << 32) By default, constants are int, i.e. 32-bit. So you must write 2ULL << 32 >> +#define TCR_ASID16 (1 << 36) 1ULL > As a matter of coding style, I would much prefer tables like

Re: [PATCH] slub: try to get cpu partial slab even if we get enough objects for cpu freelist

2012-08-15 Thread JoonSoo Kim
2012/8/16 Christoph Lameter : > On Thu, 16 Aug 2012, Joonsoo Kim wrote: > >> s->cpu_partial determine the maximum number of objects kept >> in the per cpu partial lists of a processor. Currently, it is used for >> not only per cpu partial list but also cpu freelist. Therefore >> get_partial_node()

Re: [PATCH 3/5] kmemleak: use rbtree instead of prio tree

2012-08-15 Thread Catalin Marinas
On 9 August 2012 09:31, Catalin Marinas wrote: > On Wed, Aug 08, 2012 at 06:07:39PM +0100, Michel Lespinasse wrote: >> kmemleak uses a tree where each node represents an allocated memory object >> in order to quickly find out what object a given address is part of. >> However, the objects don't

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

2012-08-15 Thread Greg Thelen
On Wed, Aug 15 2012, Glauber Costa wrote: > 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); >> +

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

2012-08-15 Thread Borislav Petkov
On Wed, Aug 15, 2012 at 11:59:35AM -0300, Arnaldo Carvalho de Melo wrote: > Of course! Those are the ultimate kernel killers! Haha, this is what I'm answering next time I'm asked about what I do for a living :-). How about this? -- From: Steven Rostedt Date: Mon, 13 Aug 2012 10:23:02 -0400

Re: [RFC PATCH 5/5] syscall: sys_fbind() introduced

2012-08-15 Thread Stanislav Kinsbursky
15.08.2012 20:30, H. Peter Anvin пишет: On 08/15/2012 09:22 AM, Stanislav Kinsbursky wrote: This syscall allows to bind socket to specified file descriptor. Descriptor can be gained by simple open with O_PATH flag. Socket node can be created by sys_mknod(). Signed-off-by: Stanislav Kinsbursky

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

2012-08-15 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 05:34:46PM +0100, Geert Uytterhoeven wrote: > On Wed, Aug 15, 2012 at 3:30 PM, Arnd Bergmann wrote: > >> +#define TCR_IPS_40BIT(2 << 32) > > By default, constants are int, i.e. 32-bit. So you must write > > 2ULL << 32 > > >> +#define TCR_ASID16

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

2012-08-15 Thread Alex Williamson
On Wed, 2012-08-15 at 15:27 +0300, Michael S. Tsirkin wrote: > 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

Re: [PATCH 0/4] i2c: tegra: required clock support for controller

2012-08-15 Thread Stephen Warren
On 08/08/2012 11:57 AM, Stephen Warren wrote: > On 08/08/2012 01:51 AM, Laxman Dewangan wrote: >> The Tegra's i2c controller required two clock sources for proper >> operation named as div-clk and fast-clk. >> >> Adding support to make sure that driver will get these clocks and >> enable before

Re: [PATCH 12/13] ovl: switch to __inode_permission()

2012-08-15 Thread Casey Schaufler
On 8/15/2012 8:48 AM, Miklos Szeredi wrote: > From: Andy Whitcroft > > When checking permissions on an overlayfs inode we do not take into > account either device cgroup restrictions nor security permissions. > This allows a user to mount an overlayfs layer over a restricted device > directory

Re: [PATCH v3 2/2] powerpc: Uprobes port to powerpc

2012-08-15 Thread Oleg Nesterov
On 07/26, Ananth N Mavinakayanahalli wrote: > > From: Ananth N Mavinakayanahalli > > This is the port of uprobes to powerpc. Usage is similar to x86. I am just curious why this series was ignored by powerpc maintainers... Of course I can not review this code, I know nothing about powerpc, but

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

2012-08-15 Thread Glauber Costa
On 08/15/2012 08:38 PM, Greg Thelen wrote: > On Wed, Aug 15 2012, Glauber Costa wrote: > >> 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; >>> +

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

2012-08-15 Thread Alex Williamson
On Wed, 2012-08-15 at 15:59 +0300, Michael S. Tsirkin wrote: > 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

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

2012-08-15 Thread Olof Johansson
On Wed, Aug 15, 2012 at 01:20:02PM +, Arnd Bergmann wrote: > 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

Re: [PATCH 12/13] ovl: switch to __inode_permission()

2012-08-15 Thread Andy Whitcroft
On Wed, Aug 15, 2012 at 09:59:51AM -0700, Casey Schaufler wrote: > On 8/15/2012 8:48 AM, Miklos Szeredi wrote: > > From: Andy Whitcroft > > > > When checking permissions on an overlayfs inode we do not take into > > account either device cgroup restrictions nor security permissions. > > This

[PATCH v3 0/6] ARM: dove: DT support for Marvell Dove

2012-08-15 Thread Sebastian Hesselbarth
This patch set adds DT support for Marvell Dove SoC and three boards equipped with this SoC. The work is based on device tree support for Marvell Orion based SoCs introduced in 3.6-rc1. The first three patches move mach-dove closer to Marvell Kirkwood's setup code by unifying the clock setup

[PATCH v3 2/6] ARM: dove: add clock gating control

2012-08-15 Thread Sebastian Hesselbarth
This patch adds clock gates from the clock gating control register available on dove. All clock gates are hooked up to tclk, except for gigabit ethernet controller (ge) which is a child of gephy to allow both enabled/disabled at the same time. Signed-off-by: Sebastian Hesselbarth --- Cc: Russell

Re: [PATCH v8 3/6] kvm: Add IRQ source ID option to KVM_IRQFD

2012-08-15 Thread Alex Williamson
On Wed, 2012-08-15 at 16:49 +0300, Michael S. Tsirkin wrote: > On Fri, Aug 10, 2012 at 04:37:33PM -0600, Alex Williamson wrote: > > This allows specifying an IRQ source ID to be used when injecting an > > interrupt. When not specified KVM_USERSPACE_IRQ_SOURCE_ID is used. > > > > Signed-off-by:

[PATCH v3 4/6] ARM: dove: add device tree based machine descriptor

2012-08-15 Thread Sebastian Hesselbarth
This adds a generic DT_MACHINE for mach-dove. As with other orion based SoCs there still is some glue code required to make all internal devices work, i.e. auxdata is provided to pass clocks to corresponding device drivers. Signed-off-by: Sebastian Hesselbarth --- Cc: Russell King Cc: Jason

[PATCH v3 6/6] ARM: dove: SolidRun CuBox DT

2012-08-15 Thread Sebastian Hesselbarth
This patch adds basic support for the SolidRun CuBox to DT based mach-dove. There are still some issues related to ongoing orion/mvebu development, e.g. gpio-led will not work as there is no DT pinctrl for dove yet and we don't have board specific setup code. Nevertheless, the DT description is

Re: [PATCH 1/1] [RFC] uartclk from serial_core exposed to sysfs

2012-08-15 Thread Tomas Hlavacek
Hello Marek, On Tue, Aug 14, 2012 at 2:50 PM, Marek Vasut wrote: > Dear Tomas Hlavacek, > >> +static ssize_t get_attr_uartclk(struct device *dev, >> + struct device_attribute *attr, char *buf) >> +{ >> + int ret; >> + >> + struct uart_state *state = (struct uart_state

[PATCH v3 5/6] ARM: dove: add device tree descriptors

2012-08-15 Thread Sebastian Hesselbarth
This patch adds device tree decriptors for dove SoC and currently supported boards. Signed-off-by: Sebastian Hesselbarth --- Cc: Russell King Cc: Jason Cooper Cc: Andrew Lunn Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: Rabeeh Khoury Cc: Ian Molton Cc: Maen

[PATCH v3 1/6] ARM: dove: unify clock setup

2012-08-15 Thread Sebastian Hesselbarth
This patch synchronizes the clock setup of dove with other orion-based platforms. In dove_find_tclk there was a note about DOVE_SAMPLE_HI/LO register to detect tclk. While it might be possible to set a different tclk frequency with reset strapping the Dove datasheets don't tell anything about

[PATCHv2 1/1] [RFC] uartclk from serial_core exposed to sysfs

2012-08-15 Thread Tomas Hlavacek
Added file /sys/devices/.../tty/ttySX/uartclk to allow read/modify uartclk value in struct uart_port in serial_core via sysfs. It simplifies initialization of no-name cards that have non-standard oscillator speed while having no distinguishing PCI IDs to allow autodetection. Signed-off-by: Tomas

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

2012-08-15 Thread Greg Thelen
On Wed, Aug 15 2012, Glauber Costa wrote: > On 08/15/2012 08:38 PM, Greg Thelen wrote: >> On Wed, Aug 15 2012, Glauber Costa wrote: >> >>> 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)); +

Re: [PATCH 00/13] overlay filesystem: request for inclusion (v14)

2012-08-15 Thread Sedat Dilek
On Wed, Aug 15, 2012 at 5:48 PM, Miklos Szeredi wrote: > Here's the latest version of the overlayfs series. > > Git tree is here: > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs.v14 > > Please consider for 3.7. > [ Stephen (linux-next) maintainer ] Wouldn't it be

Re: [PATCH 11/13] vfs: export __inode_permission() to modules

2012-08-15 Thread Sedat Dilek
On Wed, Aug 15, 2012 at 5:48 PM, Miklos Szeredi wrote: > From: Miklos Szeredi > > We need to be able to check inode permissions (but not filesystem implied > permissions) for stackable filesystems. Expose this interface for overlayfs. > This patch can go through Al's vfs tree? It's an addendum

<    6   7   8   9   10   11   12   13   14   15   >