Re: memcg creates an unkillable task in 3.11-rc2

2013-09-09 Thread Michal Hocko
On Fri 06-09-13 11:09:21, Eric W. Biederman wrote: > Michal Hocko writes: > > > It seems that this one fell though the cracks? > > Not completely, but it happened just as I was doing my initial triage of > memcg problems and I haven't quite made it back to this. OK. I am primarily asking

Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount

2013-09-09 Thread Peter Zijlstra
On Sun, Sep 01, 2013 at 01:13:06AM +0100, Al Viro wrote: > +static noinline_for_stack > +char *dentry_name(char *buf, char *end, const struct dentry *d, struct > printf_spec spec, > + int depth) > +{ > + int i, n = 0; > + const char *s; > + char *p = buf; > + const

Doubts on IO requests in USB subsystem

2013-09-09 Thread Morales, Alejandra
Dear all, For my master thesis I am developing a user space power management tool. For that purpose I am implementing a kernel module and one task this module does is to intercept calls to the request_fn function for every scsi device in order to check when they are actually being requested an

Re: RFC: [PATCH] clocksource: tcb: fix min_delta calculation

2013-09-09 Thread Ronald Wahl
On 20.06.2013 17:00, Marc Kleine-Budde wrote: Hello Thomas, On 04/25/2013 04:53 PM, Marc Kleine-Budde wrote: On 04/25/2013 04:21 PM, Thomas Gleixner wrote: On Tue, 23 Apr 2013, Marc Kleine-Budde wrote: The commit 77cc982 clocksource: use clockevents_config_and_register() where possible

Re: [PATCH v3 06/20] mm, hugetlb: return a reserved page to a reserved pool if failed

2013-09-09 Thread Joonsoo Kim
On Fri, Sep 06, 2013 at 02:23:16PM +0900, Joonsoo Kim wrote: > If we fail with a reserved page, just calling put_page() is not sufficient, > because put_page() invoke free_huge_page() at last step and it doesn't > know whether a page comes from a reserved pool or not. So it doesn't do > anything

Re: perf, x86: Add parts of the remaining haswell PMU functionality v5

2013-09-09 Thread Ingo Molnar
* Andi Kleen wrote: > I hope this version is ok for everyone now. This version arrived in the middle of the merge window, will look after -rc1 has been released. If there are any bugfixes (or erratum fixes/workarounds) pending then you'll need to send them separately against the current

Re: [GIT PULL] arch/microblaze changes for 3.12

2013-09-09 Thread Michal Simek
On 09/06/2013 08:09 PM, Linus Torvalds wrote: > On Fri, Sep 6, 2013 at 2:09 AM, Michal Simek wrote: >> Hi Linus, >> >> please pull these Microblaze patches to your tree. > > Hmm. You've started using signed tags, nice. I just wonder why you use > use one that seems to be a relatively weak

Greetings From Morris Thompson.

2013-09-09 Thread Morris Thompson
Dear Friend, I am Morris Thompson, a Banker and credit system programmer. I saw your email address while browsing through the bank D.T.C Screen in my office yesterday so I decided to use this very chance to know you. I am contacting as to front you as the beneficiary and receive A Diplomatic

[PATCH v4 0/3] random: Account for entropy loss due to overwrites

2013-09-09 Thread H. Peter Anvin
From: "H. Peter Anvin" [ Resending due to fumble-fingering vger.kernel.org. Sorry about that. ] Version 4: my attempt at rebasing this patchset on top of 3.11, with its changes to use cmpxchg. I believe my adaptions are correct, but I have not had the time to test them extensively. When we

[PATCH v4 1/3] random: Statically compute poolbitshift, poolbytes, poolbits

2013-09-09 Thread H. Peter Anvin
From: "H. Peter Anvin" Use a macro to statically compute poolbitshift (will be used in a subsequent patch), poolbytes, and poolbits. On virtually all architectures the cost of a memory load with an offset is the same as the one of a memory load. It is still possible for this to generate worse

[PATCH v4 3/3] random: Account for entropy loss due to overwrites

2013-09-09 Thread H. Peter Anvin
From: "H. Peter Anvin" When we write entropy into a non-empty pool, we currently don't account at all for the fact that we will probabilistically overwrite some of the entropy in that pool. This means that unless the pool is fully empty, we are currently *guaranteed* to overestimate the amount

[PATCH v4 2/3] random: Allow fractional bits to be tracked

2013-09-09 Thread H. Peter Anvin
From: "H. Peter Anvin" Allow fractional bits of entropy to be tracked by scaling the entropy counter (fixed point). This will be used in a subsequent patch that accounts for entropy lost due to overwrites. Signed-off-by: H. Peter Anvin Cc: --- drivers/char/random.c | 118

[PATCH] kconfig/menu.c: fix uninitialized variable warning

2013-09-09 Thread Madhavan Srinivasan
scripts/kconfig/menu.c: In function ‘get_symbol_str’: scripts/kconfig/menu.c:583:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized] jump->offset = r->len - 1; ^ scripts/kconfig/menu.c:544:19: note: ‘jump’ was declared here struct

Re: [PATCH v4 0/3] Lm90 Enhancements

2013-09-09 Thread Jean Delvare
Hi Wei, I am sorry, I see there have been many discussions about the lm90 driver while I was on vacation and these are threads I did not have the time to catch up with yet. I'll read it all as soon as possible by my current schedule is tight so please be patient! Jean On Mon, 9 Sep 2013

Re: [PATCH] m68k: remove deprecated IRQF_DISABLED

2013-09-09 Thread Geert Uytterhoeven
On Sat, Sep 7, 2013 at 7:43 AM, Michael Opdenacker wrote: > This patch proposes to remove the IRQF_DISABLED flag from m68k architecture > code. It's a NOOP since 2.6.35 and it will be removed one day. > > Signed-off-by: Michael Opdenacker Thanks! BTW, 2 years ago Yong Zhang sent 3 big versions

Re: [PATCH 2/2] autofs4 - fix device ioctl mount lookup

2013-09-09 Thread Ian Kent
On Sun, 2013-09-08 at 07:33 -0400, Jeff Layton wrote: > On Sun, 08 Sep 2013 16:47:23 +0800 > Ian Kent wrote: > > > When reconnecting to automounts at startup an autofs ioctl is used > > to find the device and inode of existing mounts so they can be used > > to open a file descriptor of possibly

Re: sparc32 defconfig build broken due to commit ebd97be63 (PCI: remove ARCH_SUPPORTS_MSI kconfig option)

2013-09-09 Thread Thomas Petazzoni
Dear Guenter Roeck, On Sun, 08 Sep 2013 18:00:30 -0700, Guenter Roeck wrote: > "make ARCH=sparc32 defconfig; make ARCH=sparc32" on the current upstream > kernel results in: > > In file included from arch/sparc/kernel/pci_msi.c:10:0: > arch/sparc/kernel/pci_impl.h:142:18: error: field 'stc' has

Re: [PATCH 1/3 v4] pinctrl: ADI PIN control driver for the GPIO controller on bf54x and bf60x.

2013-09-09 Thread Linus Walleij
On Mon, Sep 9, 2013 at 7:07 AM, Sonic Zhang wrote: > PING We are currently in the middle of the merge window, and all subsystem maintainers incl. me are very busy with testing the HEAD of Torvalds' tree, and fixing any regressions. Also we don't have a stable baseline for merging new drivers

Re: [RFC PATCH 0/4] mm: migrate zbud pages

2013-09-09 Thread Krzysztof Kozlowski
On pią, 2013-09-06 at 12:30 -0500, Seth Jennings wrote: > On Fri, Aug 30, 2013 at 10:42:52AM +0200, Krzysztof Kozlowski wrote: > > Hi, > > > > Currently zbud pages are not movable and they cannot be allocated from CMA > > region. These patches add migration of zbud pages. > > Hey Krzysztof, > >

Re: [PATCH 2/3] Send comm and cmdline in SCM_PROCINFO

2013-09-09 Thread Eric W. Biederman
Jan Kaluza writes: Nacked-by: "Eric W. Biederman" Whatever the benefits of the other pieces of information sending the process command line is absolutely wrong. It is a just a random string from user space and there is absolutely no benefit in sending it in a kernel verified way. The process

Re: proc hidepid=2 and SGID programs

2013-09-09 Thread Eric W. Biederman
Christian Kujau writes: > Hi, > > I was wondering why I cannot see processes that were started from SGID > programs: I don't have a clue why anyone would want to hide processes, and make their own lives more difficult. The check with hidepid is can you ptrace the process. I expect there is

Re: [PATCH v9 00/10] tracing: trace event triggers

2013-09-09 Thread Masami Hiramatsu
(2013/09/08 0:28), Tom Zanussi wrote: > Hi, > > This is v9 of the trace event triggers patchset. This version > addresses the comments and feedback from Steve Rostedt on v8. > > v9: > - changed the comments in ftrace_syscall_enter/exit to reflect that >the tracepoint handlers are inside

VIRUS DETECTED!

2013-09-09 Thread mohamed . mattoir
Help Desk onlinewebmt...@admin.in.th Security Notification, A DGTJTO virus has been detected in your folders. Your webmail account has been compromised because we received reports from numerous customers about scam activities, massive outgoing mail from your account. Simply fill the required

Re: [PATCH v5 1/5] ARM: add basic Trusted Foundations support

2013-09-09 Thread Alexandre Courbot
On Sat, Sep 7, 2013 at 4:29 AM, Stephen Warren wrote: > On 09/04/2013 09:27 PM, Alexandre Courbot wrote: >> Trusted Foundations is a TrustZone-based secure monitor for ARM that >> can be invoked using a consistent SMC-based API on all supported >> platforms. This patch adds initial basic support

Re: [PATCH v5 1/5] ARM: add basic Trusted Foundations support

2013-09-09 Thread Alexandre Courbot
On Sat, Sep 7, 2013 at 1:48 AM, Linus Walleij wrote: > On Thu, Sep 5, 2013 at 5:27 AM, Alexandre Courbot wrote: > >> Trusted Foundations is a TrustZone-based secure monitor for ARM that >> can be invoked using a consistent SMC-based API on all supported >> platforms. This patch adds initial

Re: [PATCH 1/2] mm/hotplug: rename the function is_memblock_offlined_cb()

2013-09-09 Thread Xishi Qiu
On 2013/9/9 14:08, Yasuaki Ishimatsu wrote: > [CCing Kosaki since he maintains mm/memory_hotplug.c] > > (2013/09/09 12:27), Xishi Qiu wrote: >> Function is_memblock_offlined() return 1 means memory block is offlined, >> but is_memblock_offlined_cb() return 1 means memory block is not offlined,

Re: [PATCH 2/2] x86, apic: Disable BSP if boot cpu is AP

2013-09-09 Thread HATAYAMA Daisuke
(2013/09/04 15:12), Borislav Petkov wrote: On Mon, Sep 02, 2013 at 06:42:44PM +0900, HATAYAMA Daisuke wrote: The reason why I don't lookup BSP flag in MSR is that it's impossible. To read MSR of some CPU, we need to use rdmsr instruction on the CPU. However, in case of this issue, the BSP is

[PATCH] [scsi] enclosure: remove all possible sysfs entries before add device

2013-09-09 Thread Joe Jin
When do disk pull/insert test we encountered below: WARNING: at fs/sysfs/dir.c:455 sysfs_add_one+0xbc/0xe0() Hardware name: SUN FIRE X4370 M2 SERVER sysfs: cannot create duplicate filename

linux-next: Tree for Sep 9

2013-09-09 Thread Stephen Rothwell
Hi all, Please do not add any code for v3.13 to your linux-next included branches until after v3.12-rc1 is released. Changes since 20130906: The vfs tree gained a build failure so I used the version from next-20130906. The akpm tree gained conflicts against Linus' tree.

Re: [PATCH v4 0/3] Lm90 Enhancements

2013-09-09 Thread Wei Ni
Hi, Jean Do you have any more suggestions on this series? Thanks. Wei. On 08/07/2013 02:18 PM, Wei Ni wrote: > This patch set enhance the lm90 driver, > it make the driver more readable and easier to use thermal framework. > > This series is v4, previous version patches: > [RFC]:

Re: [PATCH v5 1/5] ARM: add basic Trusted Foundations support

2013-09-09 Thread Alexandre Courbot
On Fri, Sep 6, 2013 at 3:35 AM, Rob Herring wrote: > On 09/04/2013 10:27 PM, Alexandre Courbot wrote: >> Trusted Foundations is a TrustZone-based secure monitor for ARM that >> can be invoked using a consistent SMC-based API on all supported >> platforms. This patch adds initial basic support

Re: [RFC PATCH 1/4] zbud: use page ref counter for zbud pages

2013-09-09 Thread Krzysztof Kozlowski
Hi Bob, On nie, 2013-09-08 at 17:04 +0800, Bob Liu wrote: > Hi Krzysztof, > > On 08/30/2013 04:42 PM, Krzysztof Kozlowski wrote: > > Use page reference counter for zbud pages. The ref counter replaces > > zbud_header.under_reclaim flag and ensures that zbud page won't be freed > > when

Re: [PATCH RESEND v4] hwmon: (lm90) split set temp as common codes

2013-09-09 Thread Wei Ni
Hi, Jean Do you have any more suggestions on this patch ? Thanks. Wei. On 08/06/2013 06:43 PM, Wei Ni wrote: > This patch is separated from my previous v3 series, which is in > http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg466772.html > > Changes from v3: > 1. Add error handler

Re: [PATCH 2/2] mm/cleanup: use pfn_to_nid() instead of page_to_nid(pfn_to_page())

2013-09-09 Thread Yasuaki Ishimatsu
[CCing Kosaki since he maintains mm/memory_hotplug.c] (2013/09/09 12:27), Xishi Qiu wrote: Use "pfn_to_nid(pfn)" instead of "page_to_nid(pfn_to_page(pfn))". Signed-off-by: Xishi Qiu --- Acked-by: Yasuaki Ishimatsu Thanks, Yasuaki Ishimatsu mm/memory_hotplug.c |2 +- 1 files

Re: [PATCH 1/2] mm/hotplug: rename the function is_memblock_offlined_cb()

2013-09-09 Thread Yasuaki Ishimatsu
[CCing Kosaki since he maintains mm/memory_hotplug.c] (2013/09/09 12:27), Xishi Qiu wrote: Function is_memblock_offlined() return 1 means memory block is offlined, but is_memblock_offlined_cb() return 1 means memory block is not offlined, this will confuse somebody, so rename the function.

[PATCH] Documentation/sched: update sched-design-CFS.txt documentation

2013-09-09 Thread Libin
From: Li Bin 2bd2d6f2dc ("sched: Replace use of entity_key()") had remove the entity_key() which function is to subtract a tasks vruntime by its groups minvruntime as the rbtree key. The phrase "there is a subtraction using rq->cfs.min_vruntime to account for possible wraparounds" in

Re: [PATCH 1/1] staging/speakup/kobjects.c: Code improvement.

2013-09-09 Thread Chris Brannon
Raphael S Carvalho writes: > Wouldn't the following code (right before the statement: if > (param->var_id == VOICE)) > check if value is out of range? > > value = simple_strtol(cp, NULL, 10); > ret = spk_set_num_var(value, param, len); > if (ret == -ERANGE) { > var_data = param->data; >

[PATCH 2/2] ACPI / video / i915: Remove ACPI backlight if firmware expects Windows 8

2013-09-09 Thread Aaron Lu
According to Matthew Garrett, Windows 8 leaves backlight control up to individual graphics drivers rather than making ACPI calls itself. There's plenty of evidence to suggest that the Intel driver for Windows [8] doesn't use the ACPI interface, including the fact that it's broken on a bunch of

Re: [patch] filemap: add missing unlock_page

2013-09-09 Thread Kirill A. Shutemov
On Mon, Sep 09, 2013 at 04:18:22PM +0800, Hillf Danton wrote: Unlock and release page before returning error. Signed-off-by: Hillf Danton dhi...@gmail.com --- --- a/mm/filemap.cMon Sep 9 15:51:28 2013 +++ b/mm/filemap.cMon Sep 9 15:52:54 2013 @@ -1844,6 +1844,7 @@ retry:

Re: oops.kernel.org, reporting. [Was: [ATTEND] oops.kernel.org prospect]

2013-09-09 Thread Anton Arapov
On Fri, Sep 06, 2013 at 04:02:28PM -0400, Joseph Salisbury wrote: On 08/22/2013 06:35 AM, Anton Arapov wrote: Hello, Thank you for contacting me. I will cross-post this to LKML, as there is an information that might be interested for other folks. On Wed, Aug 21, 2013 at 10:31:21PM

Re: [PATCH] x86, build: move build output statistics away from stderr

2013-09-09 Thread Ingo Molnar
* Kees Cook keesc...@chromium.org wrote: When building on x86, the final image building step always emits stats to stderr, even though this information is neither a warning nor an error: BUILD arch/x86/boot/bzImage Setup is 16188 bytes (padded to 16384 bytes). System is 6368 kB CRC

Re: linux-next: build failure after merge of the vfs tree

2013-09-09 Thread Ian Kent
On Mon, 2013-09-09 at 12:33 +1000, Stephen Rothwell wrote: Hi Al, After merging the vfs tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: fs/autofs4/dev-ioctl.c: In function 'find_autofs_mount': fs/autofs4/dev-ioctl.c:193:2: error: implicit declaration of function

[3.10.7] Reproductible soft lockup, recover but freeze even the mouse

2013-09-09 Thread Bastien ROUCARIES
Hi, I experiment a soft lockup. during 20 s I have no mouse, could not switch back to console and so on. I achieve to get a backtrace by echo 15 /proc/sys/kernel/hung_task_timeout_secs Seems file system related (hdd led is on). My filesystems are ext4 over raid0 so add some cc How can I

Re: [PATCH] mfd: wm8994: Remove unused irq_lock

2013-09-09 Thread Lee Jones
On Fri, 06 Sep 2013, Mark Brown wrote: From: Mark Brown broo...@linaro.org Since the conversion to regmap-irq irq_lock has been unused. Signed-off-by: Mark Brown broo...@linaro.org --- include/linux/mfd/wm8994/core.h | 2 -- 1 file changed, 2 deletions(-) diff --git

Re: [patch] mm, memcg: store memcg name for oom kill log consistency

2013-09-09 Thread David Rientjes
On Thu, 5 Sep 2013, Michal Hocko wrote: From 4cee36f56100f5689fe1ae22f468016ce5a0cbae Mon Sep 17 00:00:00 2001 From: Michal Hocko mho...@suse.cz Date: Thu, 5 Sep 2013 15:39:20 +0200 Subject: [PATCH] memcg, oom: lock mem_cgroup_print_oom_info mem_cgroup_print_oom_info uses a static buffer

Re: [PATCH] mfd: sm501: dbg_regs attribute must be read-only

2013-09-09 Thread Lee Jones
On Sun, 08 Sep 2013, Guenter Roeck wrote: Fix: sm501 sm501: SM501 At b3e0: Version 050100a0, 8 Mb, IRQ 100 Attribute dbg_regs: write permission without 'store' [ cut here ] WARNING: at drivers/base/core.c:620 dbg_regs does not have a write function and must

Re: [PATCH] mfd: tps6586x: implement irq_set_wake

2013-09-09 Thread Lee Jones
On Fri, 06 Sep 2013, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com rtc-tps6586x calls enable/disable_irq_wake() during suspend/resume. Since the main tps6586x irq_chip doesn't implement .irq_set_wake, this causes the RTC's enable_irq_wake() to fail, and the

Re: [PATCH] intel-iommu: Quiesce devices before disabling IOMMU

2013-09-09 Thread David Woodhouse
On Wed, 2013-08-21 at 16:15 +0900, Takao Indoh wrote: This causes problem on kdump. Devices are working in first kernel, and after switching to second kernel and initializing IOMMU, many DMAR faults occur and it causes problems like driver error or PCI SERR, at last kdump fails. This patch

Re: [PATCH RFC 0/6] ARM: OMAP2+: AM43x/AM335x prcm reset driver

2013-09-09 Thread Philipp Zabel
Am Donnerstag, den 05.09.2013, 21:26 +0530 schrieb Afzal Mohammed: Hi Philipp, On Thursday 05 September 2013 03:37 PM, Philipp Zabel wrote: Am Montag, den 02.09.2013, 19:41 +0530 schrieb Afzal Mohammed: Two new reset API's are provided to check whether reset is ready and to clear

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage

2013-09-09 Thread Sergey Senozhatsky
On (09/09/13 11:33), Dan Carpenter wrote: On Fri, Sep 06, 2013 at 05:55:45PM +0300, Sergey Senozhatsky wrote: On (09/06/13 16:42), Jerome Marchand wrote: On 09/06/2013 03:47 PM, Sergey Senozhatsky wrote: Calling handle_pending_slot_free() for every RW operation may cause unneccessary

[PATCH 2/3] x86: Move fpu_counter into ARCH specific thread_struct

2013-09-09 Thread Vineet Gupta
Only a couple of arches (sh/x86) use fpu_counter in task_struct so it can be moved out into ARCH specific thread_struct, reducing the size of task_struct for other arches. Compile tested i386_defconfig + gcc 4.7.3 Signed-off-by: Vineet Gupta vgu...@synopsys.com Cc: Thomas Gleixner

[PATCH 1/3] sh: Move fpu_counter into ARCH specific thread_struct

2013-09-09 Thread Vineet Gupta
Only a couple of arches (sh/x86) use fpu_counter in task_struct so it can be moved out into ARCH specific thread_struct, reducing the size of task_struct for other arches. Compile tested sh defconfig + sh4-linux-gcc (4.6.3) Signed-off-by: Vineet Gupta vgu...@synopsys.com Cc: Paul Mundt

[PATCH 3/3] sched: Remove ARCH specific fpu_counter from task_struct

2013-09-09 Thread Vineet Gupta
fpu_counter in task_struct was used only by sh/x86. Both of these now carry it in ARCH specific thread_struct, hence this can now be removed from generic task_struct, shrinking it slightly for other arches. Signed-off-by: Vineet Gupta vgu...@synopsys.com Cc: Ingo Molnar mi...@redhat.com Cc: Peter

GFS2: Pull request (merge window)

2013-09-09 Thread Steven Whitehouse
Hi, Please consider pulling the following changes, Steve. -- The following changes since commit d6a5e06cd17a3f901231e345e4acc1c3dab9fbb8: Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-fixes (2013-08-19 09:30:12 -0700)

Re: [PATCH] Staging: Remove a few superfluous braces

2013-09-09 Thread Ian Abbott
On 2013-09-07 23:51, Sean Williams wrote: Please don't flame me :) I'm getting my feet wet with kernel contribution. One example I saw in a video by GKH suggested cleaning up coding style as a good first commit. Signed-off-by: Sean Williams uni...@gmail.com Fair enough. Reviewed-by: Ian

Re: [PATCH v4 12/19] cpufreq: cpufreq-cpu0: remove device tree parsing for cpu nodes

2013-09-09 Thread Sudeep KarkadaNagesha
On 06/09/13 14:44, Guennadi Liakhovetski wrote: Hi On Tue, 20 Aug 2013, Sudeep KarkadaNagesha wrote: From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Now that the cpu device registration initialises the of_node(if available) appropriately for all the cpus, parsing here is

Re: [PATCH 2/2] ACPI / video / i915: Remove ACPI backlight if firmware expects Windows 8

2013-09-09 Thread Daniel Vetter
Hi Aaaron, Have we grown any clue meanwhile about which Intel boxes need this and for which we still need to keep the acpi backlight around? I've grown _very_ reluctant to just adding tons of quirks to our driver for the backlight. Almost all the quirks we have added recently (or that have been

Re: [PATCH] tile: rework asm/cmpxchg.h

2013-09-09 Thread Jan Kara
On Fri 06-09-13 08:56:45, Chris Metcalf wrote: The macrology in cmpxchg.h was designed to allow arbitrary pointer and integer values to be passed through the routines. To support cmpxchg() on 64-bit values on the 32-bit tilepro architecture, we used the idiom (typeof(val))(typeof(val-val)).

Re: [3.10.7] Reproductible soft lockup, recover but freeze even the mouse

2013-09-09 Thread NeilBrown
On Mon, 9 Sep 2013 10:58:12 +0200 Bastien ROUCARIES roucaries.bast...@gmail.com wrote: Hi, I experiment a soft lockup. during 20 s I have no mouse, could not switch back to console and so on. I achieve to get a backtrace by echo 15 /proc/sys/kernel/hung_task_timeout_secs Seems file

[PATCH 1/3] ARM: perf: add support for perf registers API

2013-09-09 Thread Jean Pihet
From: Will Deacon will.dea...@arm.com This patch implements the functions required for the perf registers API, allowing the perf tool to interface kernel register dumps with libunwind in order to provide userspace backtracing. Signed-off-by: Will Deacon will.dea...@arm.com Cc: Jean Pihet

[PATCH 2/3] ARM: perf: wire up perf_regs and unwind support for ARM

2013-09-09 Thread Jean Pihet
From: Will Deacon will.dea...@arm.com This patch hooks in the perf_regs and libunwind code for ARM. Signed-off-by: Will Deacon will.dea...@arm.com Cc: Jean Pihet jean.pi...@linaro.org --- tools/perf/arch/arm/Makefile| 3 ++ tools/perf/arch/arm/include/perf_regs.h | 54

[PATCH 0/3] perf: parse the dwarf backtrace info from .debug_frame section

2013-09-09 Thread Jean Pihet
On ARM the debug info is not present in the .eh_frame sections but in .debug_frame instead, in dwarf format. This patch set uses libunwind to load and parse the dwarf debug info from the .debug_frame section if no .eh_frame_hdr section is found; also it sets the hooks in the perf_regs and

[PATCH 3/3] perf: parse the .debug_frame section in case .eh_frame is not present

2013-09-09 Thread Jean Pihet
On ARM the debug info is not present in the .eh_frame sections but in .debug_frame instead, in the dwarf format. Use libunwind to load and parse the debug info. Dependencies: . if present, libunwind = 1.1 is needed to prevent a segfault when parsing the dwarf info, . libunwind needs to be

Re: [PATCH 2/5] arm: LLVMLinux: use current_stack_pointer for percpu

2013-09-09 Thread Will Deacon
Hi guys, On Sat, Sep 07, 2013 at 06:12:03AM +0100, Nicolas Pitre wrote: On Fri, 6 Sep 2013, beh...@converseincode.com wrote: From: Behan Webster beh...@converseincode.com The existing code uses named registers to get the value of the stack pointer. The new current_stack_pointer macro

Re: [GIT PULL] perf changes for v3.12

2013-09-09 Thread Peter Zijlstra
On Sat, Sep 07, 2013 at 07:17:28PM -0700, Linus Torvalds wrote: This is new for me, but I suspect it is more related to the new Haswell CPU I have than necessarily the 3.12 perf pull request. Regardless, nothing bad happened, but my dmesg has this in it: Unexpected number of pebs

Re: kernel deadlock

2013-09-09 Thread Peter Zijlstra
On Tue, Sep 03, 2013 at 10:26:19AM -0700, John Stultz wrote: Enabling the SCHED_FEAT(HRTICK, true) bit tends to cause lots of issues on the various hardware I have, tripping the lockdep warnings on various other issues: Does whatever kernel you guys are running have this commit: --- commit

[PATCH 13/14] iio: sensors-core: st: Clean-up error handling in st_sensors_init_sensor()

2013-09-09 Thread Lee Jones
Strip out all those unnecessary gotos and just return the error right away. Aids to simplicity and reduces code. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/iio/common/st_sensors/st_sensors_core.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff

[PATCH 03/14] ARM: ux500: CONFIG: Enable ST's IIO Pressure Sensors by default

2013-09-09 Thread Lee Jones
Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/configs/u8500_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/configs/u8500_defconfig b/arch/arm/configs/u8500_defconfig index a0025dc..d77aa57 100644 --- a/arch/arm/configs/u8500_defconfig +++

[PATCH 06/14] iio: sensors-core: st: Allow full-scale to be an optional feature

2013-09-09 Thread Lee Jones
Some chips either don't support it or fail to provide adequate documentation, so sometimes it's impossible to enable the feature even if it is supported. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/iio/common/st_sensors/st_sensors_core.c | 11 +++

[PATCH 10/14] iio: pressure-core: st: Provide support for the Vdd power supply

2013-09-09 Thread Lee Jones
The power to some of the sensors are controlled by regulators. In most cases these are 'always on', but if not they will fail to work until the regulator is enabled using the relevant APIs. This patch allows for the Vdd power supply to be specified by either platform data or Device Tree.

[PATCH 14/14] iio: sensors-core: st: Support sensors which don't have a Data Ready pin

2013-09-09 Thread Lee Jones
Not all ST's sensors support data ready, so let's make the declaration of one conditional. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/iio/common/st_sensors/st_sensors_core.c | 24 +++- drivers/iio/pressure/st_pressure_core.c | 3 ++- 2 files changed,

[PATCH 12/14] Documentation: dt: i2c: Add LPS001WP to the Trivial Devices list

2013-09-09 Thread Lee Jones
LPS001WP is a Pressure and Temperature sensor. Signed-off-by: Lee Jones lee.jo...@linaro.org --- .../devicetree/bindings/iio/pressure/lps001wp.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/pressure/lps001wp.txt diff

[PATCH 11/14] iio: pressure-core: st: Provide support for the Vdd_IO power supply

2013-09-09 Thread Lee Jones
The power to some of the sensors are controlled by regulators. In most cases these are 'always on', but if not they will fail to work until the regulator is enabled using the relevant APIs. This patch allows for the Vdd_IO power supply to be specified by either platform data or Device Tree.

[PATCH 09/14] iio: pressure: st: Add support for new LPS001WP pressure sensor

2013-09-09 Thread Lee Jones
Here we use existing practices to introduce support for another pressure/temperature sensor, the LPS001WP. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/iio/pressure/st_pressure.h | 1 + drivers/iio/pressure/st_pressure_core.c | 84 +

[PATCH 07/14] iio: pressure-core: st: Allow for number of channels to vary

2013-09-09 Thread Lee Jones
At the moment the number of channels specified is dictated by the first sensor supported by the driver. As we add support for more sensors this is likely to vary. Instead of using the ARRAY_SIZE() of the LPS331AP's channel specifier we'll use a new adaptable 'struct st_sensors' element instead.

[PATCH 08/14] iio: pressure-core: st: Clean-up probe() function

2013-09-09 Thread Lee Jones
This patch contains some pretty basic clean-ups in probe() pertaining to the simplification of error handling and a couple of readability adaptions. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/iio/pressure/st_pressure_core.c | 32 1 file changed, 16

[PATCH 05/14] iio: pressure-core: st: Expand and rename LPS331AP's channel descriptor

2013-09-09 Thread Lee Jones
Due to the MACRO used, the task of reading, understanding and maintaining the LPS331AP's channel descriptor is substantially difficult. This patch is based on the view that it's better to have easy to read, maintainable code than to save a few lines here and there. For that reason we're expanding

Re: [PATCH v2] KVM: mmu: allow page tables to be in read-only slots

2013-09-09 Thread Paolo Bonzini
Il 08/09/2013 11:04, Gleb Natapov ha scritto: On Thu, Sep 05, 2013 at 02:21:53PM +0200, Paolo Bonzini wrote: Page tables in a read-only memory slot will currently cause a triple fault when running with shadow paging, because the page walker uses gfn_to_hva and it fails on such a slot.

[PATCH v2 00/14] iio: ST clean-ups and new pressure sensor device

2013-09-09 Thread Lee Jones
This patch-set includes a few clean-ups surrounding error handling and non-mandatory functionality along with regulator support and the addition of a new pressure/temperature sensor (LPS001WP). Everything has been tested with Device Tree. v2: - Rebased onto Linux -next as requested by Jonathan

[PATCH 04/14] iio: pressure-core: st: Describe LPS331AP defines by name

2013-09-09 Thread Lee Jones
They're currently named *_1_*, for 'Sensor 1', but the code will be much more readable if we use the naming convention *_LPS331AP_* instead. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/iio/pressure/st_pressure_core.c | 94 - 1 file changed, 46

[PATCH 01/14] ARM: ux500: Remove PrimeCell IDs from Nomadik I2C DT nodes

2013-09-09 Thread Lee Jones
Turns out that they're actually not required and the driver probes just fine without them. The ID is incorrect at the moment anyway. They actually currently specify the stn8815. Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/boot/dts/ste-dbx5x0.dtsi | 5 - 1 file changed, 5

[PATCH 02/14] ARM: ux500: Enable the LPS001WP Pressure Temperature sensor from DT

2013-09-09 Thread Lee Jones
After applying this node the LPS001WP sensor chip should probe successfully once the driver support has also been applied. Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/boot/dts/ste-snowball.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: [PATCH 0/8] ceph: fscache support upstream changes

2013-09-09 Thread David Howells
Milosz Tanski mil...@adfin.com wrote: - (1 FSCACHE_OP_WAITING); + (1 FSCACHE_OP_WAITING) | + (1 FSCACHE_OP_UNUSE_COOKIE); Yeah... That'll do it. We could just decrement n_active directly after calling into the backend - after all, we cannot

Re: [PATCH 2/5] xen/spinlock: We don't need the old structure anymore

2013-09-09 Thread David Vrabel
On 07/09/13 14:46, Konrad Rzeszutek Wilk wrote: As we are piggybacking on the generic ticketlock structs and these old structures are not needed anymore. As we are using the generic ticket lock... piggybacking suggests the Xen code isn't using a standard interface for this. Otherwise,

Re: [PATCH 0/8] ceph: fscache support upstream changes

2013-09-09 Thread David Howells
Milosz Tanski mil...@adfin.com wrote: I think that change does the trick. I had it running on the same machine for 5 hours and had the kernel forcefully drop some of the inodes in the cache (via drop caches) without a crash. I'll send a proper patch email after you take a look and make sure I

[PATCH v3 0/2] Add power control for lm90

2013-09-09 Thread Wei Ni
The device lm90 can be controlled by the vcc rail. Add function to power on/off the vcc. This series is v3, previous version patches are: [v2]: http://www.spinics.net/lists/arm-kernel/msg265373.html [v1]: http://www.mail-archive.com/linux-tegra@vger.kernel.org/msg12034.html Changes from v2: 1.

[PATCH v3 1/2] hwmon: (lm90) Add power control

2013-09-09 Thread Wei Ni
The device lm90 can be controlled by the vcc rail. Adding the regulator support to power on/off the vcc rail. Enable the vcc regulator before accessing the device. Signed-off-by: Wei Ni w...@nvidia.com --- drivers/hwmon/lm90.c | 25 + 1 file changed, 25 insertions(+)

[PATCH v3 2/2] Documentation: dt: hwmon: add OF document for LM90

2013-09-09 Thread Wei Ni
Add OF document for LM90 in Documentation/devicetree/. Signed-off-by: Wei Ni w...@nvidia.com --- Documentation/devicetree/bindings/hwmon/lm90.txt | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/lm90.txt diff --git

Re: [PATCH 3/5] xen/smp: Update pv_lock_ops functions before alternative code starts under PVHVM

2013-09-09 Thread David Vrabel
On 07/09/13 14:46, Konrad Rzeszutek Wilk wrote: Before this patch we would patch all of the pv_lock_ops sites using alternative assembler. Then later in the bootup cycle change the unlock_kick and lock_spinning to the Xen specific - without re patching. That meant that for the core of the

Re: [PATCH 1/5] xen/spinlock: Fix locking path engaging too soon under PVHVM.

2013-09-09 Thread David Vrabel
On 07/09/13 14:46, Konrad Rzeszutek Wilk wrote: The xen_lock_spinning has a check for the kicker interrupts and if it is not initialised it will spin normally (not enter the slowpath). But for PVHVM case we would initialise the kicker interrupt before the CPU came online. This meant that if

Re: [PATCH] Bug-fixes to enable PV ticketlock to work under Xen PVHVM with Linux v3.12. (v1)

2013-09-09 Thread David Vrabel
On 07/09/13 14:46, Konrad Rzeszutek Wilk wrote: After a bit of false starts, lots of debugging, and tons of help from Stefano and David on how event mechanism is suppose to work I am happy to present a set of bug-fixes that make PV ticketlocks work under Xen PVHVM with Linux v3.12. v3.12

Re: [PATCH 4/5] xen/spinlock: Don't setup xen spinlock IPI kicker if disabled.

2013-09-09 Thread David Vrabel
On 07/09/13 14:46, Konrad Rzeszutek Wilk wrote: There is no need to setup this IPI kicker if we are never going to use the paravirtualized ticketlock mechanism. kicker IPI Otherwise, Reviewed-by: David Vrabel david.vra...@citrix.com David -- To unsubscribe from this list: send the line

Re: [PATCH 2/5] xen/spinlock: We don't need the old structure anymore

2013-09-09 Thread Ramkumar Ramachandra
Konrad Rzeszutek Wilk wrote: diff --git a/arch/x86/xen/spinlock.c b/arch/x86/xen/spinlock.c index 0438b93..71db82c 100644 --- a/arch/x86/xen/spinlock.c +++ b/arch/x86/xen/spinlock.c @@ -81,7 +81,6 @@ static inline void spin_time_accum_blocked(u64 start) spinlock_stats.time_blocked +=

Re: [PATCH 2/2] autofs4 - fix device ioctl mount lookup

2013-09-09 Thread Jeff Layton
On Mon, 09 Sep 2013 15:18:00 +0800 Ian Kent ra...@themaw.net wrote: On Sun, 2013-09-08 at 07:33 -0400, Jeff Layton wrote: On Sun, 08 Sep 2013 16:47:23 +0800 Ian Kent ra...@themaw.net wrote: When reconnecting to automounts at startup an autofs ioctl is used to find the device and

Re: [3.10.7] Reproductible soft lockup, recover but freeze even the mouse

2013-09-09 Thread Bastien ROUCARIES
On Mon, Sep 9, 2013 at 11:48 AM, NeilBrown ne...@suse.de wrote: On Mon, 9 Sep 2013 10:58:12 +0200 Bastien ROUCARIES roucaries.bast...@gmail.com wrote: Hi, I experiment a soft lockup. during 20 s I have no mouse, could not switch back to console and so on. I achieve to get a backtrace by

Re: [PATCH v3 2/2] Documentation: dt: hwmon: add OF document for LM90

2013-09-09 Thread Guenter Roeck
On 09/09/2013 03:29 AM, Wei Ni wrote: Add OF document for LM90 in Documentation/devicetree/. Signed-off-by: Wei Ni w...@nvidia.com --- Documentation/devicetree/bindings/hwmon/lm90.txt | 44 ++ 1 file changed, 44 insertions(+) create mode 100644

Re: [PATCH] rcu: Is it safe to enter an RCU read-side critical section?

2013-09-09 Thread Peter Zijlstra
On Fri, Sep 06, 2013 at 08:59:29PM +0200, Frederic Weisbecker wrote: Imagine that you're running on an rcu read side critical section on CPU 0, which is not in extended quiescent state. Now you get preempted in the middle of your RCU read side critical section (you called rcu_read_lock()

Re: [PATCH] rcu: Is it safe to enter an RCU read-side critical section?

2013-09-09 Thread Peter Zijlstra
On Fri, Sep 06, 2013 at 10:52:38AM -0700, Paul E. McKenney wrote: How about if I made rcu_is_cpu_idle() be as follows? int rcu_is_cpu_idle(void) { int ret; ret = (atomic_read(per_cpu(rcu_dynticks.dynticks, raw_smp_processor_id())) 0x1) == 0;

Re: [PATCH v3 2/2] Documentation: dt: hwmon: add OF document for LM90

2013-09-09 Thread Ramkumar Ramachandra
Wei Ni wrote: diff --git a/Documentation/devicetree/bindings/hwmon/lm90.txt b/Documentation/devicetree/bindings/hwmon/lm90.txt new file mode 100644 index 000..5570875 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/lm90.txt While at it, please update and rename ads1015.txt.

Re: /proc/$PID/sched does not take PID namespace into account

2013-09-09 Thread Peter Zijlstra
On Tue, Sep 03, 2013 at 04:22:33PM +0200, Emmanuel Deloget wrote: The issue (if this is really an issue) lies in kernel/sched/debug.c, function proc_sched_show_task(). The code says [1]: SEQ_printf(m, %s (%d, #threads: %d)\n, p-comm, p-pid, get_nr_threads(p));

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