Re: [RFC PATCH v1 02/31] ARC: irqflags

2012-12-31 Thread Vineet Gupta
On Tuesday 13 November 2012 01:20 AM, Thomas Gleixner wrote: > On Wed, 7 Nov 2012, Vineet Gupta wrote: >> + ** >> + * Inline ASM macros to read/write AUX Regs >> + * Essentially invocation of lr/sr insns from "C" >> + */ >>

Re: [PATCH v7 1/2] KSM: numa awareness sysfs knob

2012-12-31 Thread Simon Jeons
On Fri, 2012-12-28 at 02:32 +0100, Petr Holasek wrote: > Introduces new sysfs boolean knob /sys/kernel/mm/ksm/merge_across_nodes > which control merging pages across different numa nodes. > When it is set to zero only pages from the same node are merged, > otherwise pages from all nodes can be

Re: mm: lockup on mmap_sem

2012-12-31 Thread Hillf Danton
On Tue, Jan 1, 2013 at 1:55 AM, Sasha Levin wrote: > Hi all, > > While fuzzing with trinity inside a KVM tools guest, running latest -next > kernel, > I've stumbled on the following hang: > > [ 7204.030178] INFO: task khugepaged:3257 blocked for more than 120 seconds. > [ 7204.031043] "echo 0 >

[PATCH 2] Re: New Defect(s) reported by Coverity Scan

2012-12-31 Thread Nigel Cunningham
From 68e866b8eac534405ae16b79b7ffd9de05c11c67 Mon Sep 17 00:00:00 2001 From: Nigel Cunningham Date: Tue, 1 Jan 2013 13:50:22 +1100 Subject: [PATCH] Fix uninitialised variable in rbd_dev_probe_update_spec. The local variable ret can be used uninitialised in the error path if the kstrdup at line

[PATCH 3] Re: New Defect(s) reported by Coverity Scan

2012-12-31 Thread Nigel Cunningham
From b4a7ab768df17e1cda7d0ae8744e986215a644c3 Mon Sep 17 00:00:00 2001 From: Nigel Cunningham Date: Tue, 1 Jan 2013 13:53:51 +1100 Subject: [PATCH] Remove unused variable in rbd_dev_probe_update_spec. As an aside to the previous patch, remove the unused local variable reply_buf in that

[PATCH] Re: New Defect(s) reported by Coverity Scan

2012-12-31 Thread Nigel Cunningham
From b41864867464bfe0e2d114528bc9b39e2d9f546e Mon Sep 17 00:00:00 2001 From: Nigel Cunningham Date: Tue, 1 Jan 2013 13:03:50 +1100 Subject: [PATCH] Fix rbd use after free. This patch addresses Coverity #753114. The use of ceph_opts in rbd_add is currently confusing - there are three possible

Re: [RESEND PATCH] drm/nouveau: fix init with agpgart-uninorth

2012-12-31 Thread Marcin Slusarz
On Mon, Dec 31, 2012 at 03:34:59AM +0200, Aaro Koskinen wrote: > Check that the AGP aperture can be mapped. This follows a similar change > done for Radeon (commit 365048ff, drm/radeon: AGP memory is only I/O if > the aperture can be mapped by the CPU.). > > The patch fixes the following error

[ANNOUNCE] Git v1.8.1

2012-12-31 Thread Junio C Hamano
The latest feature release Git v1.8.1 is now available at the usual places. The release tarballs are found at: http://code.google.com/p/git-core/downloads/list and their SHA-1 checksums are: ac8dced9c3232c0ec6a88d04600a4d0eaf2ba4e3 git-1.8.1.tar.gz a256fc56c89dc3c8d58b81a2c02dc89299f1f29b

New Defect(s) reported by Coverity Scan

2012-12-31 Thread Scan Subscription
Hi, Please find the latest report on new defect(s) that have been introduced to the Linux Kernel found with Coverity SCAN. Defect(s) Reported-by: Coverity Scan: ___ ** CID 753114: Use after free (USE_AFTER_FREE)

Re: [PATCH] poll: prevent missed events if _qproc is NULL

2012-12-31 Thread Eric Wong
Eric Wong wrote: > This patch seems to fix my issue with ppoll() being stuck on my > SMP machine: http://article.gmane.org/gmane.linux.file-systems/70414 OK, it doesn't fix my issue, but it seems to make it harder-to-hit... > The change to sock_poll_wait() in > commit

RE: [PATCH 7/8] zswap: add to mm/

2012-12-31 Thread Dan Magenheimer
> From: Seth Jennings [mailto:sjenn...@linux.vnet.ibm.com] > Subject: [PATCH 7/8] zswap: add to mm/ > > zswap is a thin compression backend for frontswap. It receives > pages from frontswap and attempts to store them in a compressed > memory pool, resulting in an effective partial memory reclaim

[PATCH v3] input: vt8500: Add power button keypad driver

2012-12-31 Thread Tony Prisk
This patch adds support for the Power Button keypad found on Wondermedia netbooks/tablets. A keymap property is exposed to allowing defining the key event to be generated when the power button is pressed. Signed-off-by: Tony Prisk --- CC: linux-kernel@vger.kernel.org CC:

Re: [PATCH] prctl: fix validation of an address

2012-12-31 Thread Serge E. Hallyn
Quoting Cyrill Gorcunov (gorcu...@openvz.org): > > The kernel makes the decision on what is valid via security_mmap_addr(). > > Assuming there are no security fears of an untrusted application > > tricking some priviledged application to set up these maps the answer is > > just calling

Re: [PATCH v2] input: vt8500: Add power button keypad driver

2012-12-31 Thread Tony Prisk
On Mon, 2012-12-31 at 12:37 -0800, Dmitry Torokhov wrote: > Hi Tony, > > On Mon, Dec 31, 2012 at 03:04:59PM +1300, Tony Prisk wrote: > > This patch adds support for the Power Button keypad found on > > Wondermedia netbooks/tablets. > > > > Signed-off-by: Tony Prisk > > --- > > v2: > > Remove

[PATCH] Access control in Xen privcmd_ioctl_mmap

2012-12-31 Thread Tamas Lengyel
In the privcmd Linux driver two checks in the functions privcmd_ioctl_mmap and privcmd_ioctl_mmap_batch are not needed as they are trying to enforce hypervisor-level access control. They should be removed as they break secondary control domains when performing dom0 disaggregation. Xen itself

Re: [PATCH v2] input: vt8500: Add power button keypad driver

2012-12-31 Thread Dmitry Torokhov
Hi Tony, On Mon, Dec 31, 2012 at 03:04:59PM +1300, Tony Prisk wrote: > This patch adds support for the Power Button keypad found on > Wondermedia netbooks/tablets. > > Signed-off-by: Tony Prisk > --- > v2: > Remove devicetree binding for keycode > Add dependency on OF in Kconfig > Move static

Re: [PATCH v6 05/12] iommu/exynos: support for device tree

2012-12-31 Thread Sylwester Nawrocki
On 12/26/2012 02:53 AM, Cho KyongHo wrote: > This commit adds device tree support for System MMU. > > Signed-off-by: KyongHo Cho Cc: devicetree-disc...@lists.ozlabs.org Please note any patches adding new device tree bindings should be sent to this mailing list. I have few comments, please see

Re: [RFC] ktap: Another dynamic tracing tool for Linux

2012-12-31 Thread Frank Ch. Eigler
bookjovi wrote: > [...] This mail is RFC for discuss on a new dynamic tracing tool, I > name it ktap. (only experimental project now) Welcome to the problem domain! > [...] > what ktap differentiates with Systemtap is: > [...] > 2). ktap have good portability, because it compile source file

[PATCH] uio: sercos3: use devm_kzalloc

2012-12-31 Thread Devendra Naga
use devm_kzalloc and no need of free's at error path and unload Signed-off-by: Devendra Naga --- Please apply this after changeid: 1fb4ec94e7e955a1e26bf81f2634e5be2fa5f1d5 [PATCH] uio: uio_sercos3: use module_pci_driver macro sorry for sending as patch should be patch 2/2.

PATCH: Error Checking for pagemap.h.

2012-12-31 Thread Christopher Sacchi
This patch is for the pagemap.h. This checks to see if the page_size_int is 2, if not, set the value to 2, and return 1. The code is under the double-dashed lines. It is for Kernel Version 3.8-rc1. This is a rewrite. -- Signed-off-by: Christopher P. Sacchi chris.sac...@gmail.com --- pagemap.h

PATCH: Error checking page_size to see if userspace page_size_int = 2.

2012-12-31 Thread Christopher Sacchi
This patch is for the pagemap.h. This checks to see if the page_size_int is 2, if not, set the value to 2, and return 1. The code is under the double-dashed lines. -- Signed-off-by: Christopher P. Sacchi chris.sac...@gmail.com --- pagemap.h 2012-12-21 20:19:00.0 -0500 +++ pagemap.h

[PATCH] uio: uio_sercos3: use module_pci_driver macro

2012-12-31 Thread Devendra Naga
use module_pci_driver macro and simplify the module init and exit code Signed-off-by: Devendra Naga --- drivers/uio/uio_sercos3.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/uio/uio_sercos3.c b/drivers/uio/uio_sercos3.c index 81a10a5..5419832

RE: [PATCH v6 00/12] iommu/exynos: Fixes and Enhancements of System MMU driver with DT

2012-12-31 Thread Kukjin Kim
Cho KyongHo wrote: > > notice: v6 patch-set is rebased on next/iommu-exynos branch of > linux-samsung.git. This patch-set does not include 2 patches (05 and 06 > patches in v5 patch-se) because they alread exist already in the branch. > > The current exynos-iommu(System MMU) driver does not

[PATCH 1/7] uprobes: Move alloc_page() from xol_add_vma() to xol_alloc_area()

2012-12-31 Thread Oleg Nesterov
Move alloc_page() from xol_add_vma() to xol_alloc_area() to cleanup the code. This separates the memory allocations and consolidates the -EALREADY cleanups and the error handling. Signed-off-by: Oleg Nesterov --- kernel/events/uprobes.c | 32 +--- 1 files changed,

[PATCH 7/7] uprobes: Kill the bogus IS_ERR_VALUE(xol_vaddr) check

2012-12-31 Thread Oleg Nesterov
utask->xol_vaddr is either zero or valid, remove the bogus IS_ERR_VALUE() check in xol_free_insn_slot(). Signed-off-by: Oleg Nesterov --- kernel/events/uprobes.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index

[PATCH 6/7] uprobes: Do not allocate current->utask unnecessary

2012-12-31 Thread Oleg Nesterov
handle_swbp() does get_utask() before can_skip_sstep() for no reason, we do not need ->utask if can_skip_sstep() succeeds. Move get_utask() to pre_ssout() who actually starts to use it. Move the initialization of utask->active_uprobe/state as well. This way the whole initialization is

[PATCH 4/7] uprobes: Do not play with utask in xol_get_insn_slot()

2012-12-31 Thread Oleg Nesterov
pre_ssout()->xol_get_insn_slot() path is confusing and buggy. This patch cleanups the code, the next one fixes the bug. Change xol_get_insn_slot() to only allocate the slot and do nothing more, move the initialization of utask->xol_vaddr/vaddr into pre_ssout(). Signed-off-by: Oleg Nesterov ---

[PATCH 5/7] uprobes: Fix utask->xol_vaddr leak in pre_ssout()

2012-12-31 Thread Oleg Nesterov
pre_ssout() should do xol_free_insn_slot() if arch_uprobe_pre_xol() fails, otherwise nobody will free the allocated slot. Signed-off-by: Oleg Nesterov --- kernel/events/uprobes.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/kernel/events/uprobes.c

[PATCH 3/7] uprobes: Turn add_utask() into get_utask()

2012-12-31 Thread Oleg Nesterov
Rename add_utask() into get_utask() and change it to allocate on demand to simplify the caller. Like get_xol_area() it will have more users. Signed-off-by: Oleg Nesterov --- kernel/events/uprobes.c | 27 +-- 1 files changed, 9 insertions(+), 18 deletions(-) diff --git

[PATCH 0/7] uprobes: alloc utask/xol_area cleanups and minor fix

2012-12-31 Thread Oleg Nesterov
Hello. This series fixes the minor bug and cleanups the usage of add_utask() and xol_alloc_area(). Plus it cleanups the initializaion of ->utask in handle_swbp() paths. Anton, this conflicts with your uretprobe patches, but I think we should do this to avoid the code duplication. IOW, I consider

[PATCH 2/7] uprobes: Fold xol_alloc_area() into get_xol_area()

2012-12-31 Thread Oleg Nesterov
Currently only xol_get_insn_slot() does get_xol_area() + xol_alloc_area(), but this will have more users and we do not want to copy-and-paste this code. This patch simply moves xol_alloc_area() into get_xol_area() to simplify the current and future code. Signed-off-by: Oleg Nesterov ---

Re: [PATCH 1/2] ARM: dts: prevent *.dtb from always being rebuilt

2012-12-31 Thread Rob Herring
On 12/31/2012 10:39 AM, Stephen Warren wrote: > On 12/29/2012 10:32 PM, Olof Johansson wrote: >> On Fri, Dec 28, 2012 at 05:42:46PM -0700, Stephen Warren wrote: >>> From: Stephen Warren >>> >>> if_changed (used by the *.dts->*.dtc rule) rebuilds files if they aren't >>> contained in $(targets).

Re: [PATCH 1/2] ARM: dts: prevent *.dtb from always being rebuilt

2012-12-31 Thread Stephen Warren
On 12/29/2012 10:32 PM, Olof Johansson wrote: > On Fri, Dec 28, 2012 at 05:42:46PM -0700, Stephen Warren wrote: >> From: Stephen Warren >> >> if_changed (used by the *.dts->*.dtc rule) rebuilds files if they aren't >> contained in $(targets). (make V=2 indicates this). Add $(dtb-y) to >>

Re: [PATCH v2 2/3] mm: Update file times when inodes are written after mmaped writes

2012-12-31 Thread Jan Kara
On Sat 22-12-12 00:43:30, Andy Lutomirski wrote: > On Sat, Dec 22, 2012 at 12:29 AM, Christoph Hellwig > wrote: > > NAK, we went through great trouble to get rid of the nasty layering > > violation where the VM called file_update_time directly just a short > > while ago, reintroducing that is a

Re: [PATCH] prctl: fix validation of an address

2012-12-31 Thread Cyrill Gorcunov
On Mon, Dec 31, 2012 at 10:20:47AM -0500, Eric Paris wrote: > > Is there anything which prevents an unpriv application from changing > mm.mm_start_code and mm.mm_end_code in the image, thus taking advantage > of the privileged restore code to bypass the mmap_min_addr > restrictions? Well, you

Re: [PATCH] prctl: fix validation of an address

2012-12-31 Thread Eric Paris
On Mon, 2012-12-31 at 19:13 +0400, Cyrill Gorcunov wrote: > On Mon, Dec 31, 2012 at 09:27:14AM -0500, Eric Paris wrote: > > On Mon, 2012-12-31 at 14:14 +0400, Andrew Vagin wrote: > > > On Sun, Dec 30, 2012 at 05:03:07PM -0500, Eric Paris wrote: > > > > On Sat, 2012-12-29 at 15:00 +0400, Andrey

Re: [PATCH 10/14] atm: Removed redundant check on unsigned variable

2012-12-31 Thread chas williams - CONTRACTOR
Acked-by: chas williams - CONTRACTOR On Fri, 28 Dec 2012 10:46:36 +0530 Tushar Behera wrote: > Ping. > > On 11/16/2012 12:20 PM, Tushar Behera wrote: > > No need to check whether unsigned variable is less than 0. > > > > CC: Chas Williams > > CC: linux-atm-gene...@lists.sourceforge.net > >

Re: [PATCH] prctl: fix validation of an address

2012-12-31 Thread Cyrill Gorcunov
On Mon, Dec 31, 2012 at 09:27:14AM -0500, Eric Paris wrote: > On Mon, 2012-12-31 at 14:14 +0400, Andrew Vagin wrote: > > On Sun, Dec 30, 2012 at 05:03:07PM -0500, Eric Paris wrote: > > > On Sat, 2012-12-29 at 15:00 +0400, Andrey Vagin wrote: > > > > The address should be bigger than

Re: [PATCH] cpuidle - fix lock contention in the idle path

2012-12-31 Thread Russ Anderson
On Sat, Dec 29, 2012 at 11:03:03AM +0100, Daniel Lezcano wrote: > > Hi Russ, > > Is it possible you try this patch on your 2048 cpus ? Yes, I will try it later today. Thanks > Thanks > > -- Daniel > > On 12/26/2012 11:01 AM, Daniel Lezcano wrote: > > The commit

Regression: Bacula jobs fail with kernel 3.8-rc1

2012-12-31 Thread Tilman Schmidt
With kernel 3.8-rc1, my nightly Bacula backup job reproducibly aborts 20 minutes into spooling with a "broken pipe" error on the network socket connecting the file and storage daemons: 31-Dec 00:45 xenon-sd JobId 859: Spooling data ... 31-Dec 01:04 xenon-fd JobId 859: Error: bsock.c:429 Write

Re: [PATCH] printk: Fix incorrect length from print_time() when seconds > 99999

2012-12-31 Thread Sylvain Munaut
Hi, >> Sylvan Munaut did something similar >> https://lkml.org/lkml/2012/12/5/168 > > Missed that and duplicated the debugging :( > Sorry Sylvain. I should have followed up on the patch sooner, but I basically finished testing it fixed all the issues and posted it just before leaving for

Re: [PATCH] prctl: fix validation of an address

2012-12-31 Thread Eric Paris
On Mon, 2012-12-31 at 14:14 +0400, Andrew Vagin wrote: > On Sun, Dec 30, 2012 at 05:03:07PM -0500, Eric Paris wrote: > > On Sat, 2012-12-29 at 15:00 +0400, Andrey Vagin wrote: > > > The address should be bigger than dac_mmap_min_addr, because > > > a process with CAP_RAWIO can map a vma bellow

pm-suspend not waking up properly

2012-12-31 Thread Björn Christoph
Hey, I used uswusp till now and it worked for my old HW configuration. Now I updated to a new I'm running Ubuntu 12.04 with a self-compiled Linux 3.7.0 kernel (uname -a): Linux linux 3.7.0-custom #2 SMP Sat Dec 22 15:07:12 CET 2012 x86_64 x86_64 x86_64 GNU/Linux Mainboard is (dmesg | grep

[PATCH] poll: prevent missed events if _qproc is NULL

2012-12-31 Thread Eric Wong
This patch seems to fix my issue with ppoll() being stuck on my SMP machine: http://article.gmane.org/gmane.linux.file-systems/70414 The change to sock_poll_wait() in commit 626cf236608505d376e4799adb4f7eb00a8594af (poll: add poll_requested_events() and poll_does_not_wait() functions) seems to

Re: [RESEND PATCH] leds: leds-gpio: set devm_gpio_request_one() flags correctly

2012-12-31 Thread Javier Martinez Canillas
On 12/21/2012 06:06 PM, Ezequiel Garcia wrote: > On Fri, Dec 21, 2012 at 12:07 PM, Javier Martinez Canillas > wrote: >> commit a99d76f leds: leds-gpio: use gpio_request_one >> >> changed the leds-gpio driver to use gpio_request_one() instead >> of gpio_request() + gpio_direction_output() >> >>

Re: [PATCH] writeback: fix writeback cache thrashing

2012-12-31 Thread Jan Kara
On Sun 30-12-12 14:59:50, Namjae Jeon wrote: > From: Namjae Jeon > > Consider Process A: huge I/O on sda > doing heavy write operation - dirty memory becomes more > than dirty_background_ratio > on HDD - flusher thread flush-8:0 > > Consider Process B: small I/O on sdb >

what's the return-value of regulator_get?

2012-12-31 Thread Piotr Sawuk
I repeat my question: the driver for lsm303dlh in the 3.5 kernel calls regulator_get(>dev, "vdd"); from that it got the return-value fdfb triggering IS_ERR(). but I cannot find any errorcode for -0x205. does anyone know the meaning of this error-code? P -- To unsubscribe from this list: send

[PATCH 01/10] mfd: twl-core: Clean up module id lookup and definitions

2012-12-31 Thread Peter Ujfalusi
Use enums for all module definitions: twl_module_ids for common functionality among twl4030/twl6030 twl4030_module_ids for twl4030 specific ids twl6030_module_ids for twl6030 specific ids In this way the list can be managed easier when new functionality going to be implemented. Signed-off-by:

[PATCH 06/10] mfd: twl-core: Do not create dummy pdata when booted with DT

2012-12-31 Thread Peter Ujfalusi
When booted with DT we can manage without the dummy pdata. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl-core.c | 31 +++ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index 86cca9e..547fed5 100644

[PATCH 07/10] mfd: twl-core: Move 'inuse' check early at probe time

2012-12-31 Thread Peter Ujfalusi
We can fail earlier in case multiple instance of the twl-core is tried to be loaded. The twl-core by design only supports one instance. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl-core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH 08/10] mfd: twl-core: Collect global variables behind one private structure (global)

2012-12-31 Thread Peter Ujfalusi
Gather the global variables under a single structure and allocate it with devm_kzalloc(). It is easier to see them and if in the future we try to add support for multiple instance of twl in the system it is going to be much simpler. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl-core.c | 104

[PATCH 02/10] mfd: twl-core: No need to check for invalid subchip ID

2012-12-31 Thread Peter Ujfalusi
The module id table no longer can have invalid/unused entries. No need for checking the ID for validity. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl-core.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c

[PATCH 09/10] mfd: twl-core: Remove no longer valid comment regarding to write buffer size

2012-12-31 Thread Peter Ujfalusi
With the regmap conversion there is no longeer a need to allocate bigger buffer for writes Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl-core.c | 3 --- include/linux/i2c/twl.h | 3 --- 2 files changed, 6 deletions(-) diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index

[PATCH 10/10] mfd: twl-core: Move twl_i2c_read/write_u8 to header as inline function

2012-12-31 Thread Peter Ujfalusi
twl_i2c_read/write_u8 become as a simple wrapper over the twl_i2c_read/write. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl-core.c | 28 include/linux/i2c/twl.h | 17 +++-- 2 files changed, 11 insertions(+), 34 deletions(-) diff --git

[PATCH 04/10] mfd: twl-core: Allocate twl_modules dynamically

2012-12-31 Thread Peter Ujfalusi
At boot time we can allocate the twl_modules array dynamically based on the twl class we are using with devm_kzalloc() instead of the static twl_modules[] array. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl-core.c | 31 +-- 1 file changed, 21 insertions(+), 10

[PATCH 05/10] mfd: twl-core: Do not try to call legacy mfd add_children() when booted with DT

2012-12-31 Thread Peter Ujfalusi
There is really no point to retry to add children devices in case the of_platform_populate() fails. We do not have any information provided via pdata in this case anyways. Depending on the boot type (legacy or DT) only execute either one. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl-core.c

[PATCH 03/10] mfd: twl-core: Use the lookup table to find the correct subchip for the modules

2012-12-31 Thread Peter Ujfalusi
Instead of using SUB_CHIP_ID* or magic numbers use the twl_mapping table to look for the subchip ID. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl-core.c | 56 -- 1 file changed, 27 insertions(+), 29 deletions(-) diff --git

[PATCH 00/10] MFD: twl-core: Cleanup part 2 for 3.9

2012-12-31 Thread Peter Ujfalusi
Hello, Second part of the cleanup of twl-core which aims to make the code a bit more readable. It has been tested on: OMAP4 PandaBoard, OMAP4 Blaze, OMAP3 BeagleBoard, OMAP3 Zoom2. Regards, Peter --- Peter Ujfalusi (10): mfd: twl-core: Clean up module id lookup and definitions mfd: twl-core:

Re: Fwd: PROBLEM: Random kernel panic & system freeze when watching video

2012-12-31 Thread Borislav Petkov
On Mon, Dec 31, 2012 at 02:42:07AM +0800, Du Jiulun wrote: > CPU 2: Machine Check Exception: 4 Bank 2: b205 > TSC 6568f53a1cee > HARDWARE ERROR. This is *NOT* a software problem! > Please contact your hardware vendor > CPU 2 BANK 2 TSC 6568f53a1cee > TIME 1356717945 Sat Dec 29 02:05:45

Re: [PATCH] prctl: fix validation of an address

2012-12-31 Thread Andrew Vagin
On Sun, Dec 30, 2012 at 05:03:07PM -0500, Eric Paris wrote: > On Sat, 2012-12-29 at 15:00 +0400, Andrey Vagin wrote: > > The address should be bigger than dac_mmap_min_addr, because > > a process with CAP_RAWIO can map a vma bellow mmap_min_addr. > > NAK Currently prctl(PR_SET_MM_*, addr, )

Re: [PATCH] mfd, TWL4030: TWL4030 need select REGMAP_I2C

2012-12-31 Thread Peter Ujfalusi
On 12/24/2012 03:19 PM, Chuansheng Liu wrote: > This patch fix the below build error: > drivers/built-in.o: In function `twl_probe': > drivers/mfd/twl-core.c:1256: undefined reference to `devm_regmap_init_i2c' > make: *** [vmlinux] Error 1 Thanks Liu, I have missed this one. Acked-by: Peter

Re: Request-queue not getting process even after calling unplug

2012-12-31 Thread Vivek Satpute
Kindly let me know if I am posting query in wrong Forum. If yes, then could anyone point me to the appropriate forum ? Thanks in advance, Vivek Satpute On Sun, Dec 30, 2012 at 5:02 PM, Vivek Satpute wrote: > Hi All, > > I am working on RHEL5.8 (kernel-2.6.18-308) and facing weird behavior >

Re: [PATCH 2/2] uprobes: Change handle_swbp() to expose bp_vaddr to handler_chain()

2012-12-31 Thread Ananth N Mavinakayanahalli
On Sun, Dec 30, 2012 at 04:47:22PM +0100, Oleg Nesterov wrote: > Change handle_swbp() to set regs->ip = bp_vaddr in advance, this is > what consumer->handler() needs but uprobe_get_swbp_addr() is not > exported. > > This also simplifies the code and makes it more consistent across > the supported

[PATCH 2/2] hwmon: (vexpress) Fix build error seen if CONFIG_OF_DEVICE is not set

2012-12-31 Thread Guenter Roeck
Fix: vexpress.c: In function ‘vexpress_hwmon_name_show’: vexpress.c:34:2: error: implicit declaration of function ‘of_get_property’ [-Werror=implicit-function-declaration] vexpress.c:34:27: warning: initialization makes pointer from integer without a cast [enabled by default] vexpress.c: In

[PATCH 1/2] hwmon: (vexpress) Remove __devexit and __devexit_p

2012-12-31 Thread Guenter Roeck
Signed-off-by: Guenter Roeck --- drivers/hwmon/vexpress.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/vexpress.c b/drivers/hwmon/vexpress.c index 59fd126..86d7f6d 100644 --- a/drivers/hwmon/vexpress.c +++ b/drivers/hwmon/vexpress.c @@ -196,7 +196,7 @@

[PATCH 1/2] hwmon: (vexpress) Remove __devexit and __devexit_p

2012-12-31 Thread Guenter Roeck
Signed-off-by: Guenter Roeck li...@roeck-us.net --- drivers/hwmon/vexpress.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/vexpress.c b/drivers/hwmon/vexpress.c index 59fd126..86d7f6d 100644 --- a/drivers/hwmon/vexpress.c +++ b/drivers/hwmon/vexpress.c

[PATCH 2/2] hwmon: (vexpress) Fix build error seen if CONFIG_OF_DEVICE is not set

2012-12-31 Thread Guenter Roeck
Fix: vexpress.c: In function ‘vexpress_hwmon_name_show’: vexpress.c:34:2: error: implicit declaration of function ‘of_get_property’ [-Werror=implicit-function-declaration] vexpress.c:34:27: warning: initialization makes pointer from integer without a cast [enabled by default] vexpress.c: In

Re: [PATCH 2/2] uprobes: Change handle_swbp() to expose bp_vaddr to handler_chain()

2012-12-31 Thread Ananth N Mavinakayanahalli
On Sun, Dec 30, 2012 at 04:47:22PM +0100, Oleg Nesterov wrote: Change handle_swbp() to set regs-ip = bp_vaddr in advance, this is what consumer-handler() needs but uprobe_get_swbp_addr() is not exported. This also simplifies the code and makes it more consistent across the supported

Re: Request-queue not getting process even after calling unplug

2012-12-31 Thread Vivek Satpute
Kindly let me know if I am posting query in wrong Forum. If yes, then could anyone point me to the appropriate forum ? Thanks in advance, Vivek Satpute On Sun, Dec 30, 2012 at 5:02 PM, Vivek Satpute vivekonlin...@gmail.com wrote: Hi All, I am working on RHEL5.8 (kernel-2.6.18-308) and facing

Re: [PATCH] mfd, TWL4030: TWL4030 need select REGMAP_I2C

2012-12-31 Thread Peter Ujfalusi
On 12/24/2012 03:19 PM, Chuansheng Liu wrote: This patch fix the below build error: drivers/built-in.o: In function `twl_probe': drivers/mfd/twl-core.c:1256: undefined reference to `devm_regmap_init_i2c' make: *** [vmlinux] Error 1 Thanks Liu, I have missed this one. Acked-by: Peter Ujfalusi

Re: [PATCH] prctl: fix validation of an address

2012-12-31 Thread Andrew Vagin
On Sun, Dec 30, 2012 at 05:03:07PM -0500, Eric Paris wrote: On Sat, 2012-12-29 at 15:00 +0400, Andrey Vagin wrote: The address should be bigger than dac_mmap_min_addr, because a process with CAP_RAWIO can map a vma bellow mmap_min_addr. NAK Currently prctl(PR_SET_MM_*, addr, ) returns

Re: Fwd: PROBLEM: Random kernel panic system freeze when watching video

2012-12-31 Thread Borislav Petkov
On Mon, Dec 31, 2012 at 02:42:07AM +0800, Du Jiulun wrote: CPU 2: Machine Check Exception: 4 Bank 2: b205 TSC 6568f53a1cee HARDWARE ERROR. This is *NOT* a software problem! Please contact your hardware vendor CPU 2 BANK 2 TSC 6568f53a1cee TIME 1356717945 Sat Dec 29 02:05:45 2012

[PATCH 00/10] MFD: twl-core: Cleanup part 2 for 3.9

2012-12-31 Thread Peter Ujfalusi
Hello, Second part of the cleanup of twl-core which aims to make the code a bit more readable. It has been tested on: OMAP4 PandaBoard, OMAP4 Blaze, OMAP3 BeagleBoard, OMAP3 Zoom2. Regards, Peter --- Peter Ujfalusi (10): mfd: twl-core: Clean up module id lookup and definitions mfd: twl-core:

[PATCH 03/10] mfd: twl-core: Use the lookup table to find the correct subchip for the modules

2012-12-31 Thread Peter Ujfalusi
Instead of using SUB_CHIP_ID* or magic numbers use the twl_mapping table to look for the subchip ID. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 56 -- 1 file changed, 27 insertions(+), 29 deletions(-) diff

[PATCH 04/10] mfd: twl-core: Allocate twl_modules dynamically

2012-12-31 Thread Peter Ujfalusi
At boot time we can allocate the twl_modules array dynamically based on the twl class we are using with devm_kzalloc() instead of the static twl_modules[] array. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 31 +-- 1 file changed,

[PATCH 05/10] mfd: twl-core: Do not try to call legacy mfd add_children() when booted with DT

2012-12-31 Thread Peter Ujfalusi
There is really no point to retry to add children devices in case the of_platform_populate() fails. We do not have any information provided via pdata in this case anyways. Depending on the boot type (legacy or DT) only execute either one. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com ---

[PATCH 10/10] mfd: twl-core: Move twl_i2c_read/write_u8 to header as inline function

2012-12-31 Thread Peter Ujfalusi
twl_i2c_read/write_u8 become as a simple wrapper over the twl_i2c_read/write. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 28 include/linux/i2c/twl.h | 17 +++-- 2 files changed, 11 insertions(+), 34 deletions(-)

[PATCH 09/10] mfd: twl-core: Remove no longer valid comment regarding to write buffer size

2012-12-31 Thread Peter Ujfalusi
With the regmap conversion there is no longeer a need to allocate bigger buffer for writes Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 3 --- include/linux/i2c/twl.h | 3 --- 2 files changed, 6 deletions(-) diff --git a/drivers/mfd/twl-core.c

[PATCH 02/10] mfd: twl-core: No need to check for invalid subchip ID

2012-12-31 Thread Peter Ujfalusi
The module id table no longer can have invalid/unused entries. No need for checking the ID for validity. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/mfd/twl-core.c

[PATCH 08/10] mfd: twl-core: Collect global variables behind one private structure (global)

2012-12-31 Thread Peter Ujfalusi
Gather the global variables under a single structure and allocate it with devm_kzalloc(). It is easier to see them and if in the future we try to add support for multiple instance of twl in the system it is going to be much simpler. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com ---

[PATCH 07/10] mfd: twl-core: Move 'inuse' check early at probe time

2012-12-31 Thread Peter Ujfalusi
We can fail earlier in case multiple instance of the twl-core is tried to be loaded. The twl-core by design only supports one instance. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH 06/10] mfd: twl-core: Do not create dummy pdata when booted with DT

2012-12-31 Thread Peter Ujfalusi
When booted with DT we can manage without the dummy pdata. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl-core.c | 31 +++ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index

[PATCH 01/10] mfd: twl-core: Clean up module id lookup and definitions

2012-12-31 Thread Peter Ujfalusi
Use enums for all module definitions: twl_module_ids for common functionality among twl4030/twl6030 twl4030_module_ids for twl4030 specific ids twl6030_module_ids for twl6030 specific ids In this way the list can be managed easier when new functionality going to be implemented. Signed-off-by:

what's the return-value of regulator_get?

2012-12-31 Thread Piotr Sawuk
I repeat my question: the driver for lsm303dlh in the 3.5 kernel calls regulator_get(client-dev, vdd); from that it got the return-value fdfb triggering IS_ERR(). but I cannot find any errorcode for -0x205. does anyone know the meaning of this error-code? P -- To unsubscribe from this list:

Re: [PATCH] writeback: fix writeback cache thrashing

2012-12-31 Thread Jan Kara
On Sun 30-12-12 14:59:50, Namjae Jeon wrote: From: Namjae Jeon namjae.j...@samsung.com Consider Process A: huge I/O on sda doing heavy write operation - dirty memory becomes more than dirty_background_ratio on HDD - flusher thread flush-8:0 Consider Process B:

Re: [RESEND PATCH] leds: leds-gpio: set devm_gpio_request_one() flags correctly

2012-12-31 Thread Javier Martinez Canillas
On 12/21/2012 06:06 PM, Ezequiel Garcia wrote: On Fri, Dec 21, 2012 at 12:07 PM, Javier Martinez Canillas javier.marti...@collabora.co.uk wrote: commit a99d76f leds: leds-gpio: use gpio_request_one changed the leds-gpio driver to use gpio_request_one() instead of gpio_request() +

[PATCH] poll: prevent missed events if _qproc is NULL

2012-12-31 Thread Eric Wong
This patch seems to fix my issue with ppoll() being stuck on my SMP machine: http://article.gmane.org/gmane.linux.file-systems/70414 The change to sock_poll_wait() in commit 626cf236608505d376e4799adb4f7eb00a8594af (poll: add poll_requested_events() and poll_does_not_wait() functions) seems to

pm-suspend not waking up properly

2012-12-31 Thread Björn Christoph
Hey, I used uswusp till now and it worked for my old HW configuration. Now I updated to a new I'm running Ubuntu 12.04 with a self-compiled Linux 3.7.0 kernel (uname -a): Linux linux 3.7.0-custom #2 SMP Sat Dec 22 15:07:12 CET 2012 x86_64 x86_64 x86_64 GNU/Linux Mainboard is (dmesg | grep

Re: [PATCH] prctl: fix validation of an address

2012-12-31 Thread Eric Paris
On Mon, 2012-12-31 at 14:14 +0400, Andrew Vagin wrote: On Sun, Dec 30, 2012 at 05:03:07PM -0500, Eric Paris wrote: On Sat, 2012-12-29 at 15:00 +0400, Andrey Vagin wrote: The address should be bigger than dac_mmap_min_addr, because a process with CAP_RAWIO can map a vma bellow

Re: [PATCH] printk: Fix incorrect length from print_time() when seconds 99999

2012-12-31 Thread Sylvain Munaut
Hi, Sylvan Munaut did something similar https://lkml.org/lkml/2012/12/5/168 Missed that and duplicated the debugging :( Sorry Sylvain. I should have followed up on the patch sooner, but I basically finished testing it fixed all the issues and posted it just before leaving for vacation and I

Regression: Bacula jobs fail with kernel 3.8-rc1

2012-12-31 Thread Tilman Schmidt
With kernel 3.8-rc1, my nightly Bacula backup job reproducibly aborts 20 minutes into spooling with a broken pipe error on the network socket connecting the file and storage daemons: 31-Dec 00:45 xenon-sd JobId 859: Spooling data ... 31-Dec 01:04 xenon-fd JobId 859: Error: bsock.c:429 Write error

Re: [PATCH] cpuidle - fix lock contention in the idle path

2012-12-31 Thread Russ Anderson
On Sat, Dec 29, 2012 at 11:03:03AM +0100, Daniel Lezcano wrote: Hi Russ, Is it possible you try this patch on your 2048 cpus ? Yes, I will try it later today. Thanks Thanks -- Daniel On 12/26/2012 11:01 AM, Daniel Lezcano wrote: The commit

Re: [PATCH] prctl: fix validation of an address

2012-12-31 Thread Cyrill Gorcunov
On Mon, Dec 31, 2012 at 09:27:14AM -0500, Eric Paris wrote: On Mon, 2012-12-31 at 14:14 +0400, Andrew Vagin wrote: On Sun, Dec 30, 2012 at 05:03:07PM -0500, Eric Paris wrote: On Sat, 2012-12-29 at 15:00 +0400, Andrey Vagin wrote: The address should be bigger than dac_mmap_min_addr,

Re: [PATCH 10/14] atm: Removed redundant check on unsigned variable

2012-12-31 Thread chas williams - CONTRACTOR
Acked-by: chas williams - CONTRACTOR c...@cmf.nrl.navy.mil On Fri, 28 Dec 2012 10:46:36 +0530 Tushar Behera tushar.beh...@linaro.org wrote: Ping. On 11/16/2012 12:20 PM, Tushar Behera wrote: No need to check whether unsigned variable is less than 0. CC: Chas Williams

Re: [PATCH] prctl: fix validation of an address

2012-12-31 Thread Eric Paris
On Mon, 2012-12-31 at 19:13 +0400, Cyrill Gorcunov wrote: On Mon, Dec 31, 2012 at 09:27:14AM -0500, Eric Paris wrote: On Mon, 2012-12-31 at 14:14 +0400, Andrew Vagin wrote: On Sun, Dec 30, 2012 at 05:03:07PM -0500, Eric Paris wrote: On Sat, 2012-12-29 at 15:00 +0400, Andrey Vagin wrote:

Re: [PATCH] prctl: fix validation of an address

2012-12-31 Thread Cyrill Gorcunov
On Mon, Dec 31, 2012 at 10:20:47AM -0500, Eric Paris wrote: Is there anything which prevents an unpriv application from changing mm.mm_start_code and mm.mm_end_code in the image, thus taking advantage of the privileged restore code to bypass the mmap_min_addr restrictions? Well, you can

Re: [PATCH v2 2/3] mm: Update file times when inodes are written after mmaped writes

2012-12-31 Thread Jan Kara
On Sat 22-12-12 00:43:30, Andy Lutomirski wrote: On Sat, Dec 22, 2012 at 12:29 AM, Christoph Hellwig h...@infradead.org wrote: NAK, we went through great trouble to get rid of the nasty layering violation where the VM called file_update_time directly just a short while ago, reintroducing

Re: [PATCH 1/2] ARM: dts: prevent *.dtb from always being rebuilt

2012-12-31 Thread Stephen Warren
On 12/29/2012 10:32 PM, Olof Johansson wrote: On Fri, Dec 28, 2012 at 05:42:46PM -0700, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com if_changed (used by the *.dts-*.dtc rule) rebuilds files if they aren't contained in $(targets). (make V=2 indicates this). Add $(dtb-y) to

Re: [PATCH 1/2] ARM: dts: prevent *.dtb from always being rebuilt

2012-12-31 Thread Rob Herring
On 12/31/2012 10:39 AM, Stephen Warren wrote: On 12/29/2012 10:32 PM, Olof Johansson wrote: On Fri, Dec 28, 2012 at 05:42:46PM -0700, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com if_changed (used by the *.dts-*.dtc rule) rebuilds files if they aren't contained in $(targets).

[PATCH 0/7] uprobes: alloc utask/xol_area cleanups and minor fix

2012-12-31 Thread Oleg Nesterov
Hello. This series fixes the minor bug and cleanups the usage of add_utask() and xol_alloc_area(). Plus it cleanups the initializaion of -utask in handle_swbp() paths. Anton, this conflicts with your uretprobe patches, but I think we should do this to avoid the code duplication. IOW, I consider

  1   2   >