[PATCH 15/31] perf, core: Add a concept of a weightened sample

2012-10-02 Thread Andi Kleen
From: Andi Kleen For some events it's useful to weight sample with a hardware provided number. This expresses how expensive the action the sample represent was. This allows the profiler to scale the samples to be more informative to the programmer. There is already the period which is used

[PATCH 06/31] perf, kvm: Support the intx/intx_cp modifiers in KVM arch perfmon emulation

2012-10-02 Thread Andi Kleen
From: Andi Kleen This is not arch perfmon, but older CPUs will just ignore it. This makes it possible to do at least some TSX measurements from a KVM guest Cc: a...@redhat.com Signed-off-by: Andi Kleen --- arch/x86/kvm/pmu.c | 13 ++--- 1 files changed, 10 insertions(+), 3

perf PMU support for Haswell v2

2012-10-02 Thread Andi Kleen
This adds perf PMU support for the upcoming Haswell core. The patchkit is fairly large, mainly due to various enhancement for TSX. TSX tuning relies heavily on the PMU, so I tried hard to make all facilities easily available. In addition it also has some other enhancements. This includes

[PATCH 11/31] perf, tools: Add abort,notx,intx branch filter options to perf report -j

2012-10-02 Thread Andi Kleen
From: Andi Kleen Make perf report -j aware of the new intx,notx,abort branch qualifiers. Signed-off-by: Andi Kleen --- tools/perf/builtin-record.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index

[PATCH 05/31] perf, x86: Report PEBS event in a raw format

2012-10-02 Thread Andi Kleen
From: Andi Kleen Add support for reporting PEBS records in a raw format that can be then parsed by perf script. We exposed most of the Haswell PEBS fields in a generic way in this patchkit: - Aborted cycles is in weight - Memory latency is in weight - DataLA is in address - EventingRIP is used

[PATCH 16/31] perf, x86: Support weight samples for PEBS

2012-10-02 Thread Andi Kleen
From: Andi Kleen When a weighted sample is requested, first try to report the TSX abort cost on Haswell. If that is not available report the memory latency. This allows profiling both by abort cost and by memory latencies. Memory latencies requires enabling a different PEBS mode (LL). When both

[PATCH 28/31] tools, perf: Add a precise event qualifier

2012-10-02 Thread Andi Kleen
From: Andi Kleen Add a precise qualifier, like cpu/event=0x3c,precise=1/ This is needed so that the kernel can request enabling PEBS for TSX events. The parser bails out on any sysfs parse errors, so this is needed in any case to handle any event on the TSX perf kernel. Signed-off-by: Andi

[PATCH 21/31] perf, x86: Add Haswell specific transaction flag reporting

2012-10-02 Thread Andi Kleen
From: Andi Kleen In the PEBS handler report the transaction flags using the new generic transaction flags facility. Most of them come from the "tsx_tuning" field in PEBSv2, but the abort code is derived from the RAX register reported in the PEBS record. Signed-off-by: Andi Kleen ---

[PATCH 09/31] perf, x86: Disable LBR recording for unknown LBR_FMT

2012-10-02 Thread Andi Kleen
From: Andi Kleen When the LBR format is unknown disable LBR recording. This prevents crashes when the LBR address is misdecoded and mis-sign extended. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event_intel_lbr.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff

[PATCH 10/31] perf, x86: Support LBR filtering by INTX/NOTX/ABORT

2012-10-02 Thread Andi Kleen
From: Andi Kleen Add LBR filtering for branch in transaction, branch not in transaction or transaction abort. This is exposed as new sample types. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event_intel_lbr.c | 31 +-- include/linux/perf_event.h

[PATCH 14/31] perf, x86: Avoid checkpointed counters causing excessive TSX aborts

2012-10-02 Thread Andi Kleen
From: Andi Kleen With checkpointed counters there can be a situation where the counter is overflowing, aborts the transaction, is set back to a non overflowing checkpoint, causes interupt. The interrupt doesn't see the overflow because it has been checkpointed. This is then a spurious PMI,

[PATCH 04/31] perf, x86: Support the TSX intx/intx_cp qualifiers

2012-10-02 Thread Andi Kleen
From: Andi Kleen Implement the TSX transaction and checkpointed transaction qualifiers for Haswell. This allows e.g. to profile the number of cycles in transactions. The checkpointed qualifier requires forcing the event to counter 2, implement this with a custom constraint for Haswell. Also

[PATCH 26/31] perf, tools: Support events with - in the name

2012-10-02 Thread Andi Kleen
From: Andi Kleen - looks nicer than _, so allow - in the event names. Used for various of the arch perfmon and Haswell events. Signed-off-by: Andi Kleen --- tools/perf/util/parse-events.l |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/perf/util/parse-events.l

[PATCH 17/31] perf, tools: Add support for weight

2012-10-02 Thread Andi Kleen
From: Andi Kleen perf record has a new option -W that enables weightened sampling. Add sorting support in top/report for the average weight per sample and the total weight sum. This allows to both compare relative cost per event and the total cost over the measurement period. Add the necessary

[PATCH 22/31] perf, tools: Add support for record transaction flags

2012-10-02 Thread Andi Kleen
From: Andi Kleen Add the glue in the user tools to record transaction flags with --transaction (-T was already taken) and dump them. Followon patches will use them. Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-record.txt |5 - tools/perf/builtin-record.c |

[PATCH 12/31] perf, tools: Support sorting by intx, abort branch flags

2012-10-02 Thread Andi Kleen
From: Andi Kleen Extend the perf branch sorting code to support sorting by intx or abort qualifiers. Also print out those qualifiers. Signed-off-by: Andi Kleen --- tools/perf/builtin-report.c |3 +- tools/perf/builtin-top.c|4 ++- tools/perf/perf.h |4 ++-

[PATCH 23/31] perf, tools: Point --sort documentation to --help

2012-10-02 Thread Andi Kleen
From: Andi Kleen The --sort documentation for top and report was hopelessly out-of-date Instead of having two more places that would need to be updated, just point to --help. Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-report.txt |2 +-

[PATCH 31/31] perf, x86: Add a Haswell precise instructions event

2012-10-02 Thread Andi Kleen
From: Andi Kleen Add a instructions-p event alias that uses the PDIR randomized instruction retirement event. This is useful to avoid some systematic sampling shadow problems. Normally PEBS sampling has a systematic shadow. With PDIR enabled the hardware adds some randomization that

[PATCH 24/31] perf, tools: Add browser support for transaction flags

2012-10-02 Thread Andi Kleen
From: Andi Kleen Add histogram support for the transaction flags. Each flags instance becomes a separate histogram. Support sorting and displaying the flags in report and top. The patch is fairly large, but it's really mostly just plumbing to pass the flags around. Signed-off-by: Andi Kleen

[PATCH 27/31] perf, x86: Report the arch perfmon events in sysfs

2012-10-02 Thread Andi Kleen
From: Andi Kleen Report all the supported arch perfmon events as event aliases in /sys/devices/cpu/... This is needed to use the TSX intx,intx_cp attributes with symbolic events, at least for these basic events. Currently cpu/instructions/ doesn't work because instructions is also a generic

Re: linux-next: Tree for Oct 2 (ipoib_netlink.c)

2012-10-02 Thread Michael Neuling
> on x86_64: > > drivers/built-in.o: In function `ipoib_changelink': > ipoib_netlink.c:(.text+0x6a5fc9): undefined reference to `ipoib_set_mode' > ipoib_netlink.c:(.text+0x6a5fe3): undefined reference to `ipoib_set_mode' Happens on powerpc too with ppc64e_defconfig compiling modules. Reverting

[PATCH 19/31] perf, x86: Support for printing PMU state on spurious PMIs v2

2012-10-02 Thread Andi Kleen
From: Andi Kleen I had some problems with spurious PMIs, so print the PMU state on a spurious one. This will not interact well with other NMI users. Disabled by default, has to be explicitely enabled through sysfs. Optional, but useful for debugging. v2: Move to /sys/devices/cpu Signed-off-by:

[PATCH 25/31] perf, tools: Move parse_events error printing to parse_events_options

2012-10-02 Thread Andi Kleen
From: Andi Kleen The callers of parse_events usually have their own error handling. Move the fprintf for a bad event to parse_events_options, which is the only one who should need it. Signed-off-by: Andi Kleen --- tools/perf/util/parse-events.c | 10 +++--- 1 files changed, 7

[PATCH 29/31] perf, x86: Add Haswell TSX event aliases

2012-10-02 Thread Andi Kleen
From: Andi Kleen Add infrastructure to generate event aliases in /sys/devices/cpu/events/ And use this to set up user friendly aliases for the common TSX events. TSX tuning relies heavily on the PMU, so it's important to be user friendly. This replaces the generic transaction events in an

[PATCH 18/31] perf, tools: Handle XBEGIN like a jump

2012-10-02 Thread Andi Kleen
From: Andi Kleen So that the browser still shows the abort label Signed-off-by: Andi Kleen --- tools/perf/util/annotate.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index f0a9103..a34a1ae 100644 ---

[PATCH 20/31] perf, core: Add generic transaction flags

2012-10-02 Thread Andi Kleen
From: Andi Kleen Add a generic qualifier for transaction events, as a new sample type that returns a flag word. This is particularly useful for qualifying aborts: to distinguish aborts which happen due to asynchronous events (like conflicts caused by another CPU) versus instructions that lead to

[PATCH 30/31] perf, tools: Add perf stat --transaction

2012-10-02 Thread Andi Kleen
From: Andi Kleen Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the intx and intx_checkpoint qualifiers. Transaction Starts and Elision Starts, to compute the average transaction length.

[PATCH 03/31] perf, x86: Basic Haswell PEBS support

2012-10-02 Thread Andi Kleen
From: Andi Kleen Add basic PEBS support for Haswell. The constraints are similar to SandyBridge with a few new events. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event.h |2 ++ arch/x86/kernel/cpu/perf_event_intel.c|2 +-

[PATCH 01/31] perf, x86: Add PEBSv2 record support

2012-10-02 Thread Andi Kleen
From: Andi Kleen Add support for the v2 PEBS format. It has a superset of the v1 PEBS fields, but has a longer record so we need to adjust the code paths. The main advantage is the new "EventingRip" support which directly gives the instruction, not off-by-one instruction. So with precise == 2

Re: Lockdep complains about commit 1331e7a1bb ("rcu: Remove _rcu_barrier() dependency on __stop_machine()")

2012-10-02 Thread Jiri Kosina
On Tue, 2 Oct 2012, Paul E. McKenney wrote: > Indeed. Slab seems to be doing an rcu_barrier() in a CPU hotplug > notifier, which doesn't sit so well with rcu_barrier() trying to exclude > CPU hotplug events. I could go back to the old approach, but it is > significantly more complex. I

Re: Lockdep complains about commit 1331e7a1bb ("rcu: Remove _rcu_barrier() dependency on __stop_machine()")

2012-10-02 Thread Paul E. McKenney
On Tue, Oct 02, 2012 at 11:58:36PM +0200, Jiri Kosina wrote: > On Tue, 2 Oct 2012, Jiri Kosina wrote: > > > > > > 1331e7a1bbe1f11b19c4327ba0853bee2a606543 is the first bad commit > > > > > commit 1331e7a1bbe1f11b19c4327ba0853bee2a606543 > > > > > Author: Paul E. McKenney > > > > > Date: Thu

Re: Problem with mmc DMA on panda board in 3.6

2012-10-02 Thread Tim Bird
On 10/02/2012 03:28 PM, Robert Nelson wrote: > On Tue, Oct 2, 2012 at 5:24 PM, Tim Bird wrote: >> This is an early report - I'm just checking if anyone else has seen this. >> >> With Linux version v3.6, my PandaBoard (OMAP-based) no longer boots. The >> system appears to fail to initialize the

[GIT PULL] Power management updates for 3.7-rc1

2012-10-02 Thread Rafael J. Wysocki
Hi Linus, Please pull from the git repository at git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-for-3.7-rc1 to receive power management updates for v3.7-rc1 with top-most commit b9142167a2bb979b58b98ffcd928a311b55cbd9f Merge branch 'pm-qos' on top of commit

Re: [PATCH 7/8] mm: thp: Use more portable PMD clearing sequenece in zap_huge_pmd().

2012-10-02 Thread Andrea Arcangeli
On Tue, Oct 02, 2012 at 06:27:41PM -0400, David Miller wrote: > > Invalidation sequences are handled in various ways on various > architectures. > > One way, which sparc64 uses, is to let the set_*_at() functions > accumulate pending flushes into a per-cpu array. Then the > flush_tlb_range() et

Re: [PATCH 0/8] THP support for Sparc64

2012-10-02 Thread Andrew Morton
On Tue, 02 Oct 2012 18:26:01 -0400 (EDT) David Miller wrote: > Here is a set of patches that add THP support for sparc64. > > A few of them are relatively minor portability issues I ran into. > Like the MIPS guys I hit the update_mmu_cache() typing issue so I have > a patch for that here. > >

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Andrea Arcangeli
Hi Andrew, On Tue, Oct 02, 2012 at 03:31:48PM -0700, Andrew Morton wrote: > From reading the code, it appears that we initially allocate a huge > page and point the pmd at that. If/when there is a write fault against > that page we then populate the mm with ptes which point at the normal > 4k

Re: [PATCH 4/7] aoe: make dynamic block minor numbers the default

2012-10-02 Thread Ed Cashin
On Oct 2, 2012, at 5:17 PM, Andrew Morton wrote: ... >> The static arrangement is still available with aoe_dyndevs=0, and >> the aoe-stat tool from the userland aoetools package, the user >> space counterpart to the aoe driver, recognizes the case where >> there is a mismatch between the minor

Re: [PATCH 6/8] mm: Make transparent huge code not depend upon the details of pgtable_t

2012-10-02 Thread Andrea Arcangeli
Hi Dave, On Tue, Oct 02, 2012 at 06:27:18PM -0400, David Miller wrote: > > The code currently assumes that pgtable_t is a struct page pointer. > > Fix this by pushing pgtable management behind arch helper functions. This should be fixed in -mm already, it's from the s390x support. -- To

Re: Netperf UDP_STREAM regression due to not sending IPIs in ttwu_queue()

2012-10-02 Thread Rick Jones
On 10/02/2012 01:45 AM, Mel Gorman wrote: SIZE=64 taskset -c 0 netserver taskset -c 1 netperf -t UDP_STREAM -i 50,6 -I 99,1 -l 20 -H 127.0.0.1 -- -P 15895 -s 32768 -S 32768 -m $SIZE -M $SIZE Just FYI, unless you are running a hacked version of netperf, the "50" in "-i 50,6" will be silently

Re: udev breakages - was: Re: Need of an ".async_probe()" type of callback at driver's core - Was: Re: [PATCH] [media] drxk: change it to use request_firmware_nowait()

2012-10-02 Thread Linus Torvalds
On Tue, Oct 2, 2012 at 3:23 PM, Greg KH wrote: > > which went into udev release 187 which I think corresponds to the place > when people started having problems, right Mauro? According to what I've seen, people started complaining in 182, not 187. See for example

Re: [PATCH] hardening: add PROT_FINAL prot flag to mmap/mprotect

2012-10-02 Thread Andrew Morton
On Tue, 2 Oct 2012 15:10:56 -0700 Kees Cook wrote: > >> Has there been any more progress on this patch over-all? > > > > No progress. > > Al, Andrew, anyone? Thoughts on this? > (First email is https://lkml.org/lkml/2012/8/14/448) Wasn't cc'ed, missed it. The patch looks straightforward

Re: [PATCH 0/3] Volatile Ranges (v7) & Lots of words

2012-10-02 Thread John Stultz
On 10/02/2012 12:39 AM, NeilBrown wrote: On Fri, 28 Sep 2012 23:16:30 -0400 John Stultz wrote: After Kernel Summit and Plumbers, I wanted to consider all the various side-discussions and try to summarize my current thoughts here along with sending out my current implementation for review.

Re: udev breakages - was: Re: Need of an ".async_probe()" type of callback at driver's core - Was: Re: [PATCH] [media] drxk: change it to use request_firmware_nowait()

2012-10-02 Thread Linus Torvalds
On Tue, Oct 2, 2012 at 2:03 PM, Ivan Kalvachev wrote: > > I'm not kernel developer and probably my opinion would be a little > naive, but here it is. > > Please, make the kernel load firmware from the filesystem on its own. We probably should do that, not just for firmware, but for modules too.

Re: [RFC, PATCH] Extensible AIO interface

2012-10-02 Thread Martin K. Petersen
> "Kent" == Kent Overstreet writes: >> Hmm, careful here. I think that in DIF/DIX the checksums are >> per-sector, not per IO, right? That'd mean that the PAGE_SIZE attr >> limit in this patch would be magically creating different max IO size >> limits on different architectures. That

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-02 Thread Andrew Morton
On Tue, 2 Oct 2012 18:19:22 +0300 "Kirill A. Shutemov" wrote: > During testing I noticed big (up to 2.5 times) memory consumption overhead > on some workloads (e.g. ft.A from NPB) if THP is enabled. > > The main reason for that big difference is lacking zero page in THP case. > We have to

Re: [REGRESSION] nfsd crashing with 3.6.0-rc7 on PowerPC

2012-10-02 Thread Alexander Graf
On 03.10.2012, at 00:17, Nishanth Aravamudan wrote: > On 02.10.2012 [23:47:39 +0200], Alexander Graf wrote: >> >> On 02.10.2012, at 23:43, Nishanth Aravamudan wrote: >> >>> Hi Ben, >>> >>> On 02.10.2012 [10:58:29 +1000], Benjamin Herrenschmidt wrote: On Mon, 2012-10-01 at 16:03 +0200,

Re: [dm-devel] [PATCH v3 01/26] block: Fix a buffer overrun in bio_integrity_split()

2012-10-02 Thread Martin K. Petersen
> "Kent" == Kent Overstreet writes: >> > + *bp->bip1.bip_vec = bip->bip_vec[0]; >> > + *bp->bip2.bip_vec = bip->bip_vec[0]; >> >> I think this is horrible. Yep. >> Why not introduce bvec pointer in bip (like bio), to cover the case >> when bvec are not inline. Kent> That's... exactly

Re: Problem with mmc DMA on panda board in 3.6

2012-10-02 Thread Robert Nelson
On Tue, Oct 2, 2012 at 5:24 PM, Tim Bird wrote: > This is an early report - I'm just checking if anyone else has seen this. > > With Linux version v3.6, my PandaBoard (OMAP-based) no longer boots. The > system appears to fail to initialize the mmc controller. > > The kernel log message of

[PATCH 8/8] sparc64: Support transparent huge pages.

2012-10-02 Thread David Miller
This is relatively easy since PMD's now cover exactly 4MB of memory. Our PMD entries are 32-bits each, so we use a special encoding. The lowest bit, PMD_ISHUGE, determines the interpreation. This is possible because sparc64's page tables are purely software entities so we can use whatever

[PATCH 7/8] mm: thp: Use more portable PMD clearing sequenece in zap_huge_pmd().

2012-10-02 Thread David Miller
Invalidation sequences are handled in various ways on various architectures. One way, which sparc64 uses, is to let the set_*_at() functions accumulate pending flushes into a per-cpu array. Then the flush_tlb_range() et al. calls process the pending TLB flushes. In this regime, the

[PATCH 6/8] mm: Make transparent huge code not depend upon the details of pgtable_t

2012-10-02 Thread David Miller
The code currently assumes that pgtable_t is a struct page pointer. Fix this by pushing pgtable management behind arch helper functions. Signed-off-by: David S. Miller --- arch/x86/include/asm/pgalloc.h | 26 ++ mm/huge_memory.c | 22

[PATCH 5/8] mm: Add and use update_mmu_cache_pmd() in transparent huge page code.

2012-10-02 Thread David Miller
The transparent huge page code passes a PMD in as the third argument of update_mmu_cache(), which expects a PTE pointer. This never got noticed because X86 implements update_mmu_cache() as a macro and thus we don't get any type checking, and X86 is the only architecture which supports

[PATCH 4/8] sparc64: Document PGD and PMD layout.

2012-10-02 Thread David Miller
We're going to be messing around with the PMD interpretation and layout for the sake of transparent huge pages, so we better clearly document what we're starting with. Signed-off-by: David S. Miller --- arch/sparc/include/asm/pgtable_64.h | 16 arch/sparc/include/asm/tsb.h

[PATCH 3/8] sparc64: Eliminate PTE table memory wastage.

2012-10-02 Thread David Miller
We've split up the PTE tables so that they take up half a page instead of a full page. This is in order to facilitate transparent huge page support, which works much better if our PMDs cover 4MB instead of 8MB. What we do is have a one-behind cache for PTE table allocations in the mm struct.

[PATCH 2/8] sparc64: Halve the size of PTE tables.

2012-10-02 Thread David Miller
The reason we want to do this is to facilitate transparent huge page support. Right now PMD's cover 8MB of address space, and our huge page size is 4MB. The current transparent hugepage support is not able to handle HPAGE_SIZE != PMD_SIZE. So make PTE tables be sized to half of a page instead

[PATCH 1/8] sparc64: Only support 4MB huge pages.

2012-10-02 Thread David Miller
Narrowing the scope of huge page support will make the transparent hugepage changes much simpler. In the end what we really want to do is have the kernel support multiple huge page sizes and use whatever is appropriate as the context dictactes. Signed-off-by: David S. Miller ---

[PATCH 0/8] THP support for Sparc64

2012-10-02 Thread David Miller
Here is a set of patches that add THP support for sparc64. A few of them are relatively minor portability issues I ran into. Like the MIPS guys I hit the update_mmu_cache() typing issue so I have a patch for that here. It is very likely that I need the ACCESSED bit handling fix the ARM folks

Re: udev breakages - was: Re: Need of an ".async_probe()" type of callback at driver's core - Was: Re: [PATCH] [media] drxk: change it to use request_firmware_nowait()

2012-10-02 Thread Greg KH
On Tue, Oct 02, 2012 at 03:12:39PM -0700, Greg KH wrote: > On Tue, Oct 02, 2012 at 09:33:03AM -0700, Linus Torvalds wrote: > > I don't know where the problem started in udev, but the report I saw > > was that udev175 was fine, and udev182 was broken, and would deadlock > > if module_init() did a

Re: [PATCH v2 scsi] Short the path length of scsi_cmd_to_driver()

2012-10-02 Thread Martin K. Petersen
> "Li" == Li Zhong writes: Li> As suggested by James: this patch tries to short the path length of Li> scsi_cmd_to_driver(). As only REQ_TYPE_BLOCK_PC commands can be Li> submitted without a driver, so we could avoid the related NULL Li> checking, as long as we make sure we don't use it for

Problem with mmc DMA on panda board in 3.6

2012-10-02 Thread Tim Bird
This is an early report - I'm just checking if anyone else has seen this. With Linux version v3.6, my PandaBoard (OMAP-based) no longer boots. The system appears to fail to initialize the mmc controller. The kernel log message of interest appears to be this: [1.690002] omap_hsmmc

Re: [REGRESSION] nfsd crashing with 3.6.0-rc7 on PowerPC

2012-10-02 Thread Nishanth Aravamudan
On 02.10.2012 [23:47:39 +0200], Alexander Graf wrote: > > On 02.10.2012, at 23:43, Nishanth Aravamudan wrote: > > > Hi Ben, > > > > On 02.10.2012 [10:58:29 +1000], Benjamin Herrenschmidt wrote: > >> On Mon, 2012-10-01 at 16:03 +0200, Alexander Graf wrote: > >>> Phew. Here we go :). It looks to

Re: [dm-devel] [PATCH v3 02/26] block: Convert integrity to bvec_alloc_bs()

2012-10-02 Thread Kent Overstreet
On Tue, Oct 02, 2012 at 06:05:53PM -0400, Vivek Goyal wrote: > On Tue, Oct 02, 2012 at 01:52:50PM -0700, Kent Overstreet wrote: > > On Tue, Oct 02, 2012 at 11:12:02AM -0400, Vivek Goyal wrote: > > > On Mon, Sep 24, 2012 at 03:34:42PM -0700, Kent Overstreet wrote: > > > > This adds a pointer to the

Re: Lockdep complains about commit 1331e7a1bb ("rcu: Remove _rcu_barrier() dependency on __stop_machine()")

2012-10-02 Thread Jiri Kosina
On Wed, 3 Oct 2012, Srivatsa S. Bhat wrote: > I don't see how this circular locking dependency can occur.. If you are using > SLUB, > kmem_cache_destroy() releases slab_mutex before it calls rcu_barrier(). If > you are > using SLAB, kmem_cache_destroy() wraps its whole operation inside >

[PATCH] iommu: tegra: remove include of

2012-10-02 Thread Stephen Warren
From: Stephen Warren Nothing from this file is used, and the file will hopefully be deleted soon. Signed-off-by: Stephen Warren --- Joerg, if this patch can get into 3.7 (it's late, I know) then that would be great. If not, may I please request an ack so I can take the change through the Tegra

Re: udev breakages - was: Re: Need of an ".async_probe()" type of callback at driver's core - Was: Re: [PATCH] [media] drxk: change it to use request_firmware_nowait()

2012-10-02 Thread Greg KH
On Tue, Oct 02, 2012 at 09:33:03AM -0700, Linus Torvalds wrote: > I don't know where the problem started in udev, but the report I saw > was that udev175 was fine, and udev182 was broken, and would deadlock > if module_init() did a request_firmware(). That kind of nested > behavior is absolutely

Re: [PATCH] hardening: add PROT_FINAL prot flag to mmap/mprotect

2012-10-02 Thread Kees Cook
On Tue, Oct 2, 2012 at 2:41 PM, Ard Biesheuvel wrote: > 2012/10/2 Kees Cook : >>> If desired, additional restrictions can be imposed by using the >>> security framework, e.g,, disallow non-final r-x mappings. >> >> Interesting; what kind of interface did you have in mind? > > The 'interface' we

[PATCH v3 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-02 Thread Vivien Didelot
From: Guillaume Roguez The ADS7830 device is almost the same as the ADS7828, except that it does 8-bit sampling, instead of 12-bit. This patch extends the ads7828 driver to support this chip. Signed-off-by: Guillaume Roguez Signed-off-by: Vivien Didelot --- Documentation/hwmon/ads7828 | 12

[PATCH v3 1/2] hwmon: (ads7828) driver cleanup

2012-10-02 Thread Vivien Didelot
* Remove module parameters, add a ads7828_platform_data; * Move driver declaration to avoid adding function prototypes; * Remove unused macros; * Coding Style fixes. Signed-off-by: Vivien Didelot --- Documentation/hwmon/ads7828 | 31 +++-- drivers/hwmon/ads7828.c | 216

Re: [dm-devel] [PATCH v3 01/26] block: Fix a buffer overrun in bio_integrity_split()

2012-10-02 Thread Kent Overstreet
On Tue, Oct 02, 2012 at 05:58:45PM -0400, Vivek Goyal wrote: > On Tue, Oct 02, 2012 at 02:01:43PM -0700, Kent Overstreet wrote: > > I'm honestly not sure what your complaint about my bugfix patch was - > > it's small and complete, it does fix the bug. I don't follow why you > > think we need to

Re: [dm-devel] [PATCH v3 02/26] block: Convert integrity to bvec_alloc_bs()

2012-10-02 Thread Vivek Goyal
On Tue, Oct 02, 2012 at 01:52:50PM -0700, Kent Overstreet wrote: > On Tue, Oct 02, 2012 at 11:12:02AM -0400, Vivek Goyal wrote: > > On Mon, Sep 24, 2012 at 03:34:42PM -0700, Kent Overstreet wrote: > > > This adds a pointer to the bvec array to struct bio_integrity_payload, > > > instead of the

kernel BUG at fs/buffer.c:3205

2012-10-02 Thread Jochen Katz
Hi, there is currently a thread "kernel BUG at fs/buffer.c:3205 (stable 3.5.3)" on this list. I have reached the same BUG_ON(), but in an older kernel and with a different environment, so maybe the following information is helpfull. - Kernel is from openSUSE 12.2:

Re: [dm-devel] [PATCH v3 02/26] block: Convert integrity to bvec_alloc_bs()

2012-10-02 Thread Vivek Goyal
On Tue, Oct 02, 2012 at 02:00:06PM -0700, Kent Overstreet wrote: > On Tue, Oct 02, 2012 at 11:37:37AM -0400, Vivek Goyal wrote: > > On Mon, Sep 24, 2012 at 03:34:42PM -0700, Kent Overstreet wrote: > > > > [..] > > > /** > > > * bio_integrity_alloc - Allocate integrity payload and attach it to

Re: [PATCH v2] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-02 Thread Andrew Morton
On Tue, 2 Oct 2012 17:59:11 +0100 Will Deacon wrote: > On x86 memory accesses to pages without the ACCESSED flag set result in the > ACCESSED flag being set automatically. With the ARM architecture a page access > fault is raised instead (and it will continue to be raised until the ACCESSED >

Re: [dm-devel] [PATCH v3 01/26] block: Fix a buffer overrun in bio_integrity_split()

2012-10-02 Thread Vivek Goyal
On Tue, Oct 02, 2012 at 02:01:43PM -0700, Kent Overstreet wrote: > On Tue, Oct 02, 2012 at 04:32:53PM -0400, Vivek Goyal wrote: > > On Tue, Oct 02, 2012 at 01:26:43PM -0700, Kent Overstreet wrote: > > > On Tue, Oct 02, 2012 at 10:08:47AM -0400, Vivek Goyal wrote: > > > > On Mon, Oct 01, 2012 at

Re: Lockdep complains about commit 1331e7a1bb ("rcu: Remove _rcu_barrier() dependency on __stop_machine()")

2012-10-02 Thread Jiri Kosina
On Tue, 2 Oct 2012, Jiri Kosina wrote: > > > > 1331e7a1bbe1f11b19c4327ba0853bee2a606543 is the first bad commit > > > > commit 1331e7a1bbe1f11b19c4327ba0853bee2a606543 > > > > Author: Paul E. McKenney > > > > Date: Thu Aug 2 17:43:50 2012 -0700 > > > > > > > > rcu: Remove _rcu_barrier()

RE: [LKML] Re: Build regressions/improvements in v3.6

2012-10-02 Thread Marc Gauthier
Geert Uytterhoeven wrote: > xtensa-allmodconfig (hmm, this is not a new one, it felt through the > cracks in -rc7 because of log line interleaving). > > Ugh, arch/xtensa/include/asm/regs.h defines way to generic symbols, > like "MISC" (which causes the above breakage), and even a few > 2-letter

Re: [PATCH] Fix devmem_is_allowed for below 1MB accesses for an efi machine

2012-10-02 Thread H. Peter Anvin
On 10/02/2012 02:32 PM, T Makphaibulchoke wrote: > Changing devmem_is_allowed so that on an EFI machine, access to physical > address below 1 MB is allowed only to physical pages that are valid in > the EFI memory map. This prevents the possibility of an MCE due to > accessing an invalid physical

Re: Lockdep complains about commit 1331e7a1bb ("rcu: Remove _rcu_barrier() dependency on __stop_machine()")

2012-10-02 Thread Jiri Kosina
On Tue, 2 Oct 2012, Jiri Kosina wrote: > > > 1331e7a1bbe1f11b19c4327ba0853bee2a606543 is the first bad commit > > > commit 1331e7a1bbe1f11b19c4327ba0853bee2a606543 > > > Author: Paul E. McKenney > > > Date: Thu Aug 2 17:43:50 2012 -0700 > > > > > > rcu: Remove _rcu_barrier() dependency on

Re: [REGRESSION] nfsd crashing with 3.6.0-rc7 on PowerPC

2012-10-02 Thread Alexander Graf
On 02.10.2012, at 23:43, Nishanth Aravamudan wrote: > Hi Ben, > > On 02.10.2012 [10:58:29 +1000], Benjamin Herrenschmidt wrote: >> On Mon, 2012-10-01 at 16:03 +0200, Alexander Graf wrote: >>> Phew. Here we go :). It looks to be more of a PPC specific problem >>> than it appeared as at first: >>

Re: [PATCH] perf tool: Fix build for NO_DWARF=1 case

2012-10-02 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 02, 2012 at 03:10:49PM +0200, Jiri Olsa escreveu: > On Tue, Oct 02, 2012 at 07:39:23AM -0400, Ben Guthro wrote: > > Actually - I hadn't noticed these warnings before. > > After installing libdw-dev - the perf build completed successfully. > > Perhaps this should be fatal, rather than

Re: [REGRESSION] nfsd crashing with 3.6.0-rc7 on PowerPC

2012-10-02 Thread Nishanth Aravamudan
Hi Ben, On 02.10.2012 [10:58:29 +1000], Benjamin Herrenschmidt wrote: > On Mon, 2012-10-01 at 16:03 +0200, Alexander Graf wrote: > > Phew. Here we go :). It looks to be more of a PPC specific problem > > than it appeared as at first: > > Ok, so I suspect the problem is the pushing down of the

Re: [PATCH 0/2] memory-hotplug : notification of memoty block's state

2012-10-02 Thread Andrew Morton
On Tue, 2 Oct 2012 17:25:06 +0900 Yasuaki Ishimatsu wrote: > remove_memory() offlines memory. And it is called by following two cases: > > 1. echo offline >/sys/devices/system/memory/memoryXX/state > 2. hot remove a memory device > > In the 1st case, the memory block's state is changed and the

Re: [RFC, PATCH] Extensible AIO interface

2012-10-02 Thread Kent Overstreet
On Tue, Oct 02, 2012 at 10:43:23AM -0700, Zach Brown wrote: > > The generic code wouldn't know about any user pointers inside > > attributes, so it'd have to be downstream consumers. Hopefully there > > won't be many attributes with user pointers in them (I don't expect > > there to be), so we

Re: [PATCH] hardening: add PROT_FINAL prot flag to mmap/mprotect

2012-10-02 Thread Ard Biesheuvel
2012/10/2 Kees Cook : >> If desired, additional restrictions can be imposed by using the >> security framework, e.g,, disallow non-final r-x mappings. > > Interesting; what kind of interface did you have in mind? > The 'interface' we use is a LSM .ko which registers handlers for mmap() and

Re: [PATCH] make CONFIG_EXPERIMENTAL invisible and default

2012-10-02 Thread Serge E. Hallyn
Quoting Kees Cook (keesc...@chromium.org): > This config item has not carried much meaning for a while now and is > almost always enabled by default. As agreed during the Linux kernel > summit, Didn't this suggestion first come up around 2007 or so? :) > it should be removed. As a first step,

Re: kernel NULL pointer dereference at rb_erase+0x1a3/0x370

2012-10-02 Thread Shuah Khan
On Tue, 2012-10-02 at 13:27 -0700, Hugh Dickins wrote: > On Tue, 2 Oct 2012, Shuah Khan wrote: > > I started seeing the following null pointer dereference on > > a linux-next sept 21 git and still seeing it on linux-next > > Sep 27th git. > > > > Can be reproduced easily. I have been able to

[PATCH] Fix devmem_is_allowed for below 1MB accesses for an efi machine

2012-10-02 Thread T Makphaibulchoke
Changing devmem_is_allowed so that on an EFI machine, access to physical address below 1 MB is allowed only to physical pages that are valid in the EFI memory map. This prevents the possibility of an MCE due to accessing an invalid physical address. Signed-off-by: T Makphaibulchoke ---

Re: Build regressions/improvements in v3.6

2012-10-02 Thread Anca Emanuel
On Tue, Oct 2, 2012 at 9:32 PM, Geert Uytterhoeven wrote: > Below is the list of build error/warning regressions/improvements in > v3.6[1] compared to v3.5[2]. > > To make this mail fit in the lkml limit, I deleted > - 6008 lines about __mcount_loc on sparc64 > > Summarized: > - build errors:

Re: Lockdep complains about commit 1331e7a1bb ("rcu: Remove _rcu_barrier() dependency on __stop_machine()")

2012-10-02 Thread Jiri Kosina
On Tue, 2 Oct 2012, Paul E. McKenney wrote: > > 1331e7a1bbe1f11b19c4327ba0853bee2a606543 is the first bad commit > > commit 1331e7a1bbe1f11b19c4327ba0853bee2a606543 > > Author: Paul E. McKenney > > Date: Thu Aug 2 17:43:50 2012 -0700 > > > > rcu: Remove _rcu_barrier() dependency on

[PATCH 0/2] PCI-Express Non-Transparent Bridge Support

2012-10-02 Thread Jon Mason
I am submitting version 4 of the PCI-Express Non-Transparent Bridge patches for inclusion in 3.7. All outstanding issues from the RFC process have been addressed. version 1 http://thread.gmane.org/gmane.linux.kernel.pci/16443 Version 2 incorporates numerous clean-ups

[PATCH 2/2] net: Add support for NTB virtual ethernet device

2012-10-02 Thread Jon Mason
A virtual ethernet device that uses the NTB transport API to send/receive data. Signed-off-by: Jon Mason --- drivers/net/Kconfig |4 + drivers/net/Makefile |1 + drivers/net/ntb_netdev.c | 407 ++ 3 files changed, 412 insertions(+)

Re: [PATCH v2 8/9] ARM: OMAP: iommu: add device tree support

2012-10-02 Thread Matt Porter
On Wed, Sep 12, 2012 at 02:45:51PM -0500, Omar Ramirez Luna wrote: > Adapt driver to use DT if provided. Hi Omar, I'm interested in making use of the assert/deassert APIs you exposed in this series on AM335x for the pruss hwmod which has one hardreset line. I have the same situation where I need

Re: linux-next: Tree for Oct 2 (vxlan.c)

2012-10-02 Thread Stephen Hemminger
On Tue, 02 Oct 2012 14:36:27 -0400 (EDT) David Miller wrote: > From: Randy Dunlap > Date: Tue, 02 Oct 2012 11:31:51 -0700 > > > on x86_64: > > > > drivers/net/vxlan.c: In function 'vxlan_xmit': > > drivers/net/vxlan.c:725:2: error: implicit declaration of function > > 'ip_select_ident' > >

Re: kernel NULL pointer dereference at rb_erase+0x1a3/0x370

2012-10-02 Thread Shuah Khan
On Tue, 2012-10-02 at 17:10 -0400, Theodore Ts'o wrote: > The patch series in question has already been dropped, since there > were some other problems found and we decided it wasn't ready for this > merge window. > > If you look at the latest linux-next branch, you'll see that those > patches

Re: Build SPARC DES algorithms on SPARC only.

2012-10-02 Thread David Miller
From: Dave Jones Date: Tue, 2 Oct 2012 17:13:20 -0400 > Asking for this option on x86 seems a bit pointless. > > Signed-off-by: Dave Jones Acked-by: David S. Miller Sorry, an oversight. Thanks Dave. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH 4/7] aoe: make dynamic block minor numbers the default

2012-10-02 Thread Andrew Morton
On Mon, 1 Oct 2012 19:05:15 -0700 Ed Cashin wrote: > Because udev use is so widespread, making the old static mapping > the default is too conservative, given the severe limitations it > places on usable AoE addresses. Storage virtualization and > larger shelves have made the old limitations

Re: [PATCH 2/7] aoe: retain static block device numbers for backwards compatibility

2012-10-02 Thread Andrew Morton
On Mon, 1 Oct 2012 19:01:15 -0700 Ed Cashin wrote: > The old mapping between AoE target shelf and slot addresses and > the block device minor number is retained as a > backwards-compatible feature, with a new "aoe_dyndevs" module > parameter available for enabling dynamic block device minor >

Re: [patch 11/16] sched: replace update_shares weight distribution with per-entity computation

2012-10-02 Thread Paul Turner
On Mon, Sep 24, 2012 at 1:39 PM, Benjamin Segall wrote: > blocked_load_avg ~= \sum_child > child.runnable_avg_sum/child.runnable_avg_period * child.weight > > The thought was: So if all the children have hit zero runnable_avg_sum > (or in the case of a child task, will when they wake up), then >

Build SPARC DES algorithms on SPARC only.

2012-10-02 Thread Dave Jones
Asking for this option on x86 seems a bit pointless. Signed-off-by: Dave Jones diff --git a/crypto/Kconfig b/crypto/Kconfig index 94f232f..957cc56 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -796,6 +796,7 @@ config CRYPTO_DES config CRYPTO_DES_SPARC64 tristate "DES and Triple

Re: [PATCH 1/7] aoe: support more AoE addresses with dynamic block device minor numbers

2012-10-02 Thread Andrew Morton
On Mon, 1 Oct 2012 18:59:12 -0700 Ed Cashin wrote: > The ATA over Ethernet protocol uses a major (shelf) and > minor (slot) address to identify a particular storage target. > These changes remove an artificial limitation the aoe driver > imposes on the use of AoE addresses. For example, without

<    1   2   3   4   5   6   7   8   9   10   >