[PATCH 0/4] staging: comedi: update the adl_pci6208 driver

2012-08-09 Thread H Hartley Sweeten
Update the comedi adl_pci6208 pci driver. H Hartley Sweeten (4): staging: comedi: adl_pci6208: use attach_pci callback staging: comedi: adl_pci6208: add support for the PCI-6216 card staging: comedi: adl_pci6208: split the digital i/o subdevice staging: comedi: adl_pci6208: use the 'board_

[PATCH 2/4] staging: comedi: adl_pci6208: add support for the PCI-6216 card

2012-08-09 Thread H Hartley Sweeten
Add the boardinfo and pci device table information for the PCI-6216 card. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci6208.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/driver

Re: [PATCH 15/19] sched: Implement home-node awareness

2012-08-09 Thread Andrea Arcangeli
On Tue, Jul 31, 2012 at 09:12:19PM +0200, Peter Zijlstra wrote: > @@ -2699,6 +2705,29 @@ select_task_rq_fair(struct task_struct * > } > > rcu_read_lock(); > + if (sched_feat_numa(NUMA_BIAS) && node != -1) { > + int node_cpu; > + > + node_cpu = cpumask_any_a

[PATCH 3/4] staging: comedi: adl_pci6208: split the digital i/o subdevice

2012-08-09 Thread H Hartley Sweeten
The PCI-6208/6216 cards have 4 digital inputs and 4 digital outputs. These are currently being handled by an 8 channel COMEDI_SUBD_DIO subdevice in this driver. This causes the 4 digital outputs to appear as channels 0 thru 3 and the 4 digital inputs to appear as channels 4 thru 7. Userspace can on

[PATCH 1/4] staging: comedi: adl_pci6208: use attach_pci callback

2012-08-09 Thread H Hartley Sweeten
Convert this PCI driver to use the comedi PCI auto config attach mechanism by adding an attach_pci callback function. Since the driver does not require any external configuration options, disable the legacy attach by making the attach callback simply return -ENOSYS. This removes the need to walk th

[PATCH 4/4] staging: comedi: adl_pci6208: use the 'board_name' for the resource name

2012-08-09 Thread H Hartley Sweeten
Use the 'dev->board_name' instead of the 'dev->driver->driver_name' as the resource name used when requesing the pci regions in comedi_pci_enable(). The board_name has a closer affinity to the card. Also, remove the dev_err() message when comedi_pci_enable() fails. It's just noise and doesn't actu

Re: [PATCH] ipv4: tcp: security_sk_alloc() needed for unicast_sock

2012-08-09 Thread Casey Schaufler
On 8/9/2012 2:29 PM, Eric Dumazet wrote: > On Thu, 2012-08-09 at 16:06 -0400, Eric Paris wrote: >> NAK. >> >> I personally think commit be9f4a44e7d41cee should be reverted until it >> is fixed. Let me explain what all I believe it broke and how. >> > Suggesting to revert this commit while we have

Re: [PATCH 18/19] sched, numa: Per task memory placement for big processes

2012-08-09 Thread Andrea Arcangeli
On Tue, Jul 31, 2012 at 09:12:22PM +0200, Peter Zijlstra wrote: > Implement a per-task memory placement scheme for 'big' tasks (as per > the last patch). It relies on a regular PROT_NONE 'migration' fault to > scan the memory space of the procress and uses a two stage migration > scheme to reduce t

Re: [PATCH 1/5] x86: Only direct map addresses that are marked as E820_RAM

2012-08-09 Thread Yinghai Lu
On Thu, Aug 9, 2012 at 2:23 PM, Jacob Shin wrote: > Currently direct mappings are created for [ 0 to max_low_pfn< and [ 4GB to max_pfn< backed by actual DRAM. This is fine for holes under 4GB which are covered > by fixed and variable range MTRRs to be UC. However, we run into trouble > on higher m

Re: [PATCH] ipv4: tcp: security_sk_alloc() needed for unicast_sock

2012-08-09 Thread Eric Dumazet
On Thu, 2012-08-09 at 14:53 -0700, Casey Schaufler wrote: > On 8/9/2012 2:29 PM, Eric Dumazet wrote: > > smack_sk_alloc_security() uses smk_of_current() : What can be the > > meaning of smk_of_current() in the context of 'kernel' sockets... > > Yes, and all of it's callers - to date - have had an

[PATCH 01/16] perf symbol: correct comment wrt kallsyms loading

2012-08-09 Thread Cody P Schafer
In kallsyms_parse() when calling process_symbol() (a callback argument to kallsyms_parse()), we pass start as both start & end (ie: start=start, end=start). In map__process_kallsym_symbol(), the length is calculated as 'end - start + 1', making the length 1, not 0. Essentially, start & end define

[PATCH 05/16] perf symbol: don't try to synthesize plt without dynstr.

2012-08-09 Thread Cody P Schafer
If .dynsym exists but .dynstr is empty (NO_BITS or size==0), a segfault occurs. Avoid this by checking that .dynstr is not empty. Signed-off-by: Cody P Schafer --- tools/perf/util/symbol.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c

[PATCH 10/16] perf symbol: track symtab_type of vmlinux

2012-08-09 Thread Cody P Schafer
Previously, symtab_type would have been left at 0, or KALLSYMS, which is not quite accurate. Introduce DSO_SYMTAB_TYPE__VMLINUX[_GUEST]. Signed-off-by: Cody P Schafer --- tools/perf/util/symbol.c | 9 + tools/perf/util/symbol.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/too

[PATCH 15/16] perf symbol: convert dso__load_syms to take 2 symsrc's

2012-08-09 Thread Cody P Schafer
To properly handle platforms with an opd section, both a runtime image (which contains the opd section but possibly lacks symbols) and a symbol image (which probably lacks an opd section but has symbols). The next patch ("perf symbol: use both runtime and debug images") adjusts the callsite in dso

[PATCH 04/16] perf utils: remove unused function map__objdump_2ip

2012-08-09 Thread Cody P Schafer
map__objdump_2ip was introduced in: ee11b90b12 perf top: Fix annotate for userspace And it's last user removed in: 36532461a0 perf top: Ditch private annotation code, share perf annotate's Remove it. Signed-off-by: Cody P Schafer --- tools/perf/util/map.c | 8 tools/perf/util/map.h |

[PATCH 11/16] perf symbol: introduce symsrc structure.

2012-08-09 Thread Cody P Schafer
Factors opening of certain sections & tracking certain elf info into an external structure. The goal here is to keep multiple elfs (and their looked up sections/indexes) around during the symbol generation process (in dso__load()). We need this to properly resolve symbols on PPC due to the use of

[PATCH 07/16] perf symbol: symplify out_fixup in kernel syms loading

2012-08-09 Thread Cody P Schafer
The only site that jumps to out_fixup has (kallsyms_filename == NULL). And all paths that reach 'if (err > 0)' without 'goto out_fixup' have kallsyms_filename != NULL. So skip over both the check & dso__set_long_name(), and remove the check. Signed-off-by: Cody P Schafer --- tools/perf/util/sym

[PATCH 0/16] perf: various symbol resolution fixes, including .opd section use.

2012-08-09 Thread Cody P Schafer
1-4,6,7 are small cleanups. 5 fixes a potential segfault. 8 fixes a use after free for dso->long_name 9 avoids a segfault in elfutils when a truncated elf is loaded. 10 properly tracks that a dso had symbols loaded from a vmlinux image 11-16 fix handling of the '.opd' section in the presence o

[PATCH 08/16] perf symbol: only set vmlinux longname & mark loaded if really loaded

2012-08-09 Thread Cody P Schafer
dso__load_vmlinux() uses the filename passed to it to directly set the dso long_name, which resulted in a use after free due to dso__load_vmlinux_path() treating 0 symbols as a load failure and subsequently freeing the contents of dso->long_name. Change dso__load_vmlinux() so that finding 0 symbol

[PATCH 14/16] perf symbol: factor want_symtab out of dso__load_sym()

2012-08-09 Thread Cody P Schafer
Only one callsite of dso__load_sym() uses the want_symtab functionality, so place the logic at the callsite instead of within dso__load_sym(). This sets us up for removal of want_symtab completely once we keep multiple elf handles (within symsrc's) around. Setup for the later patch "perf symbol:

[PATCH 06/16] perf symbol: remove unneeded call to dso__set_long_name()

2012-08-09 Thread Cody P Schafer
dso__set_long_name() is already called by dso__load_vmlinux(), avoid calling it a second time unnecessarily. Signed-off-by: Cody P Schafer --- tools/perf/util/symbol.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index

[PATCH 03/16] perf symbol: only un-prelink non-zero symbols

2012-08-09 Thread Cody P Schafer
Prelink only adjusts the addresses of non-zero symbols. Do the same when we reverse the adjustments. Signed-off-by: Cody P Schafer --- tools/perf/util/symbol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index b2f7597..2

[PATCH 09/16] perf symbol: avoid segfault in elf_strptr

2012-08-09 Thread Cody P Schafer
If we call elf_section_by_name() with a truncated elf image (ie: the file header indicates that the section headers are placed past the end of the file), elf_strptr() causes a segfault within libelf. Avoid this by checking that we can access the section string table properly. Should really be fix

[PATCH 16/16] perf symbol: use both runtime and debug images

2012-08-09 Thread Cody P Schafer
We keep both a 'runtime' elf image as well as a 'debug' elf image around and generate symbols by looking at both of these. This eliminates the need for the want_symtab/goto restart mechanism combined with iterating over and reopening the elf images a second time. Also give dso__synthsize_plt_symb

[PATCH 12/16] perf symbol: set symtab_type in dso__load_sym

2012-08-09 Thread Cody P Schafer
In certain cases, dso__load requires dso->symbol_type to be set prior to calling it. With the introduction of symsrc*, the symtab_type is now stored in a symsrc which is then passed to dso__load_sym(). Change dso__load_sym() to use the symtab_type from them symsrc (setting dso->symtab_type as well

[PATCH 13/16] perf symbol: switch dso__synthesize_plt_symbols() to use symsrc

2012-08-09 Thread Cody P Schafer
Previously dso__synthesize_plt_symbols() was reopening the elf file to obtain dynsyms from it. Rather than reopen the file, use the already opened reference within the symsrc to access it. Setup for the later patch "perf symbol: use both runtime and debug images" Signed-off-by: Cody P Schafer --

Re: [RFC][PATCH] tracepoints: Move the work out of line from hotpath sections

2012-08-09 Thread Steven Rostedt
On Thu, 2012-08-09 at 16:50 -0400, Mathieu Desnoyers wrote: > I guess the very first thing to do would be to benchmark this patch > thoroughly to see if it brings significant performance improvements to > the "tracing built-in, not enabled" case. If it does bring a significant > improvement, then

[PATCH 02/16] perf symbol: remove unused 'end' arg in kallsyms parse cb

2012-08-09 Thread Cody P Schafer
kallsyms__parse() takes a callback that is called on every discovered symbol. As /proc/kallsyms does not supply symbol sizes, the callback was simply called with end=start, faking the symbol size to 1. All of the callbacks (there are 2) used in calls to kallsyms__parse() are _only_ used as callbac

Re: [PATCH] ipv4: tcp: security_sk_alloc() needed for unicast_sock

2012-08-09 Thread Casey Schaufler
On 8/9/2012 3:05 PM, Eric Dumazet wrote: > On Thu, 2012-08-09 at 14:53 -0700, Casey Schaufler wrote: >> On 8/9/2012 2:29 PM, Eric Dumazet wrote: >>> smack_sk_alloc_security() uses smk_of_current() : What can be the >>> meaning of smk_of_current() in the context of 'kernel' sockets... >> Yes, and al

[PATCH 1/1] sched: unthrottle rt runqueues in __disable_runtime()

2012-08-09 Thread Peter Boonstoppel
migrate_tasks() uses _pick_next_task_rt() to get tasks from the real-time runqueues to be migrated. When rt_rq is throttled _pick_next_task_rt() won't return anything, in which case migrate_tasks() can't move all threads over and gets stuck in an infinite loop. Instead unthrottle rt runqueues befo

Re: [PATCH] x86, pci: Fix all early PCI scans to check the vendor ID first

2012-08-09 Thread Betty Dall
Hi Andi, On Wed, 2012-08-08 at 15:17 -0700, Andi Kleen wrote: > From: Andi Kleen > > According to the Intel PCI experts it's not safe to check any > other field than vendor ID for 0x when doing PCI scans > to see if the device exists. > > Several of the early PCI scans violated this. I cha

Re: [RFC PATCH 0/5] Improve hugepage allocation success rates under load V3

2012-08-09 Thread Jim Schutt
On 08/09/2012 02:46 PM, Mel Gorman wrote: On Thu, Aug 09, 2012 at 12:16:35PM -0600, Jim Schutt wrote: On 08/09/2012 07:49 AM, Mel Gorman wrote: Changelog since V2 o Capture !MIGRATE_MOVABLE pages where possible o Document the treatment of MIGRATE_MOVABLE pages while capturing o Expand changelog

[PATCH 1/2] pinctrl/nomadik: add STn8815 ASIC support

2012-08-09 Thread Linus Walleij
This adds support for the STN8815 ASIC for the Nomadik pin controller. Signed-off-by: Linus Walleij --- drivers/pinctrl/Kconfig | 4 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-nomadik-stn8815.c | 357 ++ drivers/pi

[PATCH 2/2] ARM: nomadik: configure Nomadik for pin control

2012-08-09 Thread Linus Walleij
This converts the Nomadik to using pin control using the driver for the STN8815 ASIC. Signed-off-by: Linus Walleij --- arch/arm/Kconfig | 1 + arch/arm/mach-nomadik/board-nhk8815.c | 36 +++ arch/arm/mach-nomadik/cpu-8815.c | 13

[PATCH V2 0/3] tpm: Add new vTPM device driver for PPC64

2012-08-09 Thread Ashley Lai
Change log V2: - Removed unnecessary tpm_bios_log_setup and tpm_bios_log_teardown functions in tpm_eventlog.h (patch 3/3). - Added more descriptions on vTPM (patch 1/3). These patches add support for IBM vTPM for PPC64. This new device driver works on firmware that supports vTPM (firmware releas

Re: thermal patches in linux-next

2012-08-09 Thread Stephen Rothwell
Hi Rui, On Thu, 09 Aug 2012 14:45:46 +0800 Zhang Rui wrote: > > On 二, 2012-08-07 at 10:53 +0800, Zhang Rui wrote: > > Hi, all, > > > > I just created a git tree for catching all thermal changes. > > http://git.kernel.org/?p=linux/kernel/git/rzhang/linux.git;a=summary > > and I also created the n

[PATCH V2 1/3] drivers/char/tpm: Add new device driver to support IBM vTPM

2012-08-09 Thread Ashley Lai
This patch adds a new device driver to support IBM virtual TPM (vTPM) for PPC64. IBM vTPM is supported through the adjunct partition with firmware release 740 or higher. With vTPM support, each lpar is able to have its own vTPM without the physical TPM hardware. This driver provides TPM function

[PATCH V2 3/3] drivers/char/tpm: Add securityfs support for event log

2012-08-09 Thread Ashley Lai
This patch retrieves the event log data from the device tree during file open. The event log data will then displayed through securityfs. Signed-off-by: Ashley Lai --- drivers/char/tpm/Makefile |8 - drivers/char/tpm/tpm.h| 12 -- drivers/char/tpm/tpm_eventlog.c

[PATCH V2 2/3] PPC64: Add support for instantiating SML from Open Firmware

2012-08-09 Thread Ashley Lai
This patch instantiate Stored Measurement Log (SML) and put the log address and size in the device tree. Signed-off-by: Ashley Lai --- arch/powerpc/kernel/prom_init.c | 64 +++ 1 files changed, 64 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kern

Re: [RFC][PATCH] tracepoints: Move the work out of line from hotpath sections

2012-08-09 Thread H. Peter Anvin
On 08/09/2012 03:25 PM, Steven Rostedt wrote: >> >> It might be better to improve gcc to move really cold branches out of >> line (really, really far away), and use the compiler to do this, rather >> than to use an extra indirection that adds bloat and complexity to the >> kernel. > > I think modi

Re: [PATCH] tun: don't zeroize sock->file on detach

2012-08-09 Thread David Miller
From: Stanislav Kinsbursky Date: Thu, 09 Aug 2012 16:50:40 +0400 > This is a fix for bug, introduced in 3.4 kernel by commit > 1ab5ecb90cb6a3df1476e052f76a6e8f6511cb3d, which, among other things, replaced > simple sock_put() by sk_release_kernel(). Below is sequence, which leads to > oops for non

Re: [PATCH net-next] time: jiffies_delta_to_clock_t() helper to the rescue

2012-08-09 Thread David Miller
From: Eric Dumazet Date: Thu, 09 Aug 2012 09:13:53 +0200 > From: Eric Dumazet > > Various /proc/net files sometimes report crazy timer values, expressed > in clock_t units. > > This happens when an expired timer delta (expires - jiffies) is passed > to jiffies_to_clock_t(). > > This function

Re: [PATCH 2/6] mm: vmscan: Scale number of pages reclaimed by reclaim/compaction based on failures

2012-08-09 Thread Minchan Kim
On Thu, Aug 09, 2012 at 10:20:35AM +0100, Mel Gorman wrote: > On Thu, Aug 09, 2012 at 05:27:15PM +0900, Minchan Kim wrote: > > > > > + * pages reclaimed based on the number of consecutive allocation > > > > > + * failures > > > > > + */ > > > > > + zone = lruvec_zone(lruvec); > >

[PATCH] [trivial] infiniband: Fix typo in infiniband driver

2012-08-09 Thread Masanari Iida
Correct spelling typo in infiniband/hw and infiniband/ulp Signed-off-by: Masanari Iida --- drivers/infiniband/hw/amso1100/c2_rnic.c | 2 +- drivers/infiniband/hw/cxgb3/iwch_cm.c| 2 +- drivers/infiniband/hw/qib/qib_sd7220.c | 2 +- drivers/infiniband/ulp/srpt/ib_srpt.c| 2 +- 4 files c

Re: [PATCH 3/5] mm: compaction: Capture a suitable high-order page immediately when it is made available

2012-08-09 Thread Minchan Kim
On Thu, Aug 09, 2012 at 02:49:23PM +0100, Mel Gorman wrote: > While compaction is migrating pages to free up large contiguous blocks for > allocation it races with other allocation requests that may steal these > blocks or break them up. This patch alters direct compaction to capture a > suitable f

Re: [PATCH] ipv4: tcp: security_sk_alloc() needed for unicast_sock

2012-08-09 Thread David Miller
From: Eric Dumazet Date: Thu, 09 Aug 2012 23:29:03 +0200 > diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c > index 76dde25..ec410e0 100644 > --- a/net/ipv4/ip_output.c > +++ b/net/ipv4/ip_output.c > @@ -1536,6 +1536,7 @@ void ip_send_unicast_reply(struct net *net, struct > sk_buff *skb,

Re: [PATCH] x86, pci: Fix all early PCI scans to check the vendor ID first

2012-08-09 Thread Andi Kleen
Thanks Betty. All fixed. I'll post a v2. -Andi -- a...@linux.intel.com -- Speaking for myself only. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] alarmtimer: implement minimum alarm interval for allowing suspend

2012-08-09 Thread Arve Hjønnevåg
On Thu, Aug 9, 2012 at 2:27 PM, John Stultz wrote: > On 08/09/2012 12:37 AM, Todd Poynor wrote: >> >> alarmtimer suspend return -EBUSY if the next alarm will fire in less >> than 2 seconds. This allows one RTC seconds tick to occur subsequent >> to this check before the alarm wakeup time is set,

[PATCH] x86, pci: Fix all early PCI scans to check the vendor ID first v2

2012-08-09 Thread Andi Kleen
From: Andi Kleen According to the Intel PCI experts it's not safe to check any other field than vendor ID for 0x when doing PCI scans to see if the device exists. Several of the early PCI scans violated this. I changed them all to always check the vendor ID first. v2: Change some continues

Re: [PATCH net-next,1/1] hyperv: Add comments for the extended buffer after RNDIS message

2012-08-09 Thread David Miller
From: Haiyang Zhang Date: Thu, 9 Aug 2012 11:04:18 -0700 > Reported-by: Olaf Hering > Signed-off-by: Haiyang Zhang Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://v

RE: [PATCH] [trivial] infiniband: Fix typo in infiniband driver

2012-08-09 Thread Hefty, Sean
> diff --git a/drivers/infiniband/hw/amso1100/c2_rnic.c > b/drivers/infiniband/hw/amso1100/c2_rnic.c > index 8c81992..b80867e 100644 > --- a/drivers/infiniband/hw/amso1100/c2_rnic.c > +++ b/drivers/infiniband/hw/amso1100/c2_rnic.c > @@ -439,7 +439,7 @@ static int c2_rnic_close(struct c2_dev *c2dev)

Re: [RFC][PATCH] tracepoints: Move the work out of line from hotpath sections

2012-08-09 Thread David Daney
On 08/09/2012 04:16 PM, H. Peter Anvin wrote: On 08/09/2012 03:25 PM, Steven Rostedt wrote: It might be better to improve gcc to move really cold branches out of line (really, really far away), and use the compiler to do this, rather than to use an extra indirection that adds bloat and complexi

[PATCH] ipv4: tcp: unicast_sock should not land outside of TCP stack

2012-08-09 Thread Eric Dumazet
From: Eric Dumazet commit be9f4a44e7d41cee (ipv4: tcp: remove per net tcp_sock) added a selinux regression, reported and bisected by John Stultz selinux_ip_postroute_compat() expect to find a valid sk->sk_security pointer, but this field is NULL for unicast_sock It turns out that unicast_sock a

Re: "Inconsistent kallsyms data" error

2012-08-09 Thread Jan Engelhardt
On Saturday 2012-07-07 23:40, Michal Marek wrote: >index cd9c6c6..4629038 100644 >--- a/scripts/link-vmlinux.sh >+++ b/scripts/link-vmlinux.sh >@@ -210,8 +210,8 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then > mksysmap ${kallsyms_vmlinux} .tmp_System.map > > if ! cmp -s System.map .tmp_Syste

[PATCH/v2] [trivial] infiniband: Fix typo in infiniband driver

2012-08-09 Thread Masanari Iida
Correct spelling typo in infiniband/hw and infiniband/ulp Signed-off-by: Masanari Iida --- drivers/infiniband/hw/amso1100/c2_rnic.c | 2 +- drivers/infiniband/hw/cxgb3/iwch_cm.c| 2 +- drivers/infiniband/hw/qib/qib_sd7220.c | 2 +- drivers/infiniband/ulp/srpt/ib_srpt.c| 2 +- 4 files c

Re: [PATCH] [trivial] infiniband: Fix typo in infiniband driver

2012-08-09 Thread Masanari Iida
Thanks for the review. I just posted version 2. Masanari On Fri, Aug 10, 2012 at 8:51 AM, Hefty, Sean wrote: >> diff --git a/drivers/infiniband/hw/amso1100/c2_rnic.c >> b/drivers/infiniband/hw/amso1100/c2_rnic.c >> index 8c81992..b80867e 100644 >> --- a/drivers/infiniband/hw/amso1100/c2_rnic.c >

Re: BUG: RDMA/ocrdma calls invalid vlan_dev_real_dev()

2012-08-09 Thread Fengguang Wu
On Thu, Aug 09, 2012 at 04:54:37PM -0700, Roland Dreier wrote: > thanks for the report. I assume the system doesn't actually have ocrdma hw? Yeah, it's a test boot inside KVM. Thanks, Fengguang > - R. > On Aug 9, 2012 3:00 AM, "Fengguang Wu" wrote: > > > Hi Parav, > > > > commit fe2caefcdf ("

RE: [PATCH] net: add new QCA alx ethernet driver

2012-08-09 Thread Huang, Xiong
> The alterations to the description of atl1c ought to be broken out as a > separate patch, though. > Yes, we will separate it. thanks ! -Xiong

[Fwd: [PATCH] x86/smp: Fix cpuN startup panic]

2012-08-09 Thread Yanmin Zhang
Peter, What's your opinion about the patch? We hit it when enabling Medfield Android mobile. This patch would put AP to a loop. Another method to fix it is just to enlarge the wait time, for example, from 2HZ to 10HZ. Yanmin Forwarded Message > From: Chen, LinX Z > To: linu

[PATCH] debugfs: make __create_file static

2012-08-09 Thread Chris Wright
It's only used locally, no need to pollute global namespace. Signed-off-by: Chris Wright --- fs/debugfs/inode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 4733eab..2c9fafb 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugf

Re: [PATCH] Smack: remove task_wait() hook.

2012-08-09 Thread Casey Schaufler
On 12/20/2011 11:20 PM, Jarkko Sakkinen wrote: > Allow SIGCHLD to be passed to child process without > explicit policy. This will help to keep the access > control policy simple and easily maintainable with > complex applications that require use of multiple > security contexts. It will also help t

Re: [PATCH 02/19] mm/mpol: Remove NUMA_INTERLEAVE_HIT

2012-08-09 Thread Andi Kleen
Andrea Arcangeli writes: > Hi, > > On Tue, Jul 31, 2012 at 09:12:06PM +0200, Peter Zijlstra wrote: >> Since the NUMA_INTERLEAVE_HIT statistic is useless on its own; it wants >> to be compared to either a total of interleave allocations or to a miss >> count, remove it. >> >> Fixing it would be p

Re: [dm-devel] [PATCH v2 1/2] dm: verity support data device offset (Linux 3.4.7)

2012-08-09 Thread Wesley Miaw
On Aug 8, 2012, at 7:04 PM, Alasdair G Kergon wrote: > > However, first you need to address the second part of Mikulas's email, > namely to make the case for these changes rather than making no kernel > changes and instead stacking the verity target over a linear target. > > To put this another w

[PATCH] wm831x-dcdc: fix coccinelle warnings of missing IRQF_ONESHOT

2012-08-09 Thread Feng Tang
From: Fengguang Wu /c/kernel-tests/src/linux/drivers/regulator/wm831x-dcdc.c:829:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT /c/kernel-tests/src/linux/drivers/regulator/wm831x-dcdc.c:695:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQ

Re: [PATCH v2] SubmittingPatches: clarify SOB tag usage when evolving submissions

2012-08-09 Thread Joe Perches
On Thu, 2012-08-09 at 14:48 -0700, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > Initial large code submissions typically are not accepted > on their first patch submission. The developers are > typically given feedback and at times some developers may > even submit changes to the orig

Re: Re: [PATCH] PM QoS: Add a metric : Bus Throughput.

2012-08-09 Thread 함명주
> + Myungjoo Ham, > > It used at devfreq. Mr. Ham can you explain it in detail? > > Thank you, > Kyungmin Park > , > On 8/9/12, Rafael J. Wysocki wrote: > > On Wednesday, August 08, 2012, Jonghwa Lee wrote: > >> Bus throughput metric is added to PM QoS in order to control the > >> frequency of m

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

2012-08-09 Thread Konrad Rzeszutek Wilk
On Wed, Aug 08, 2012 at 10:35:37AM -0700, Nitin Gupta wrote: > On 08/07/2012 11:12 PM, Minchan Kim wrote: > > This patchset promotes zram/zsmalloc from staging. > > Both are very clean and zram is used by many embedded product > > for a long time. > > > > [1-3] are patches not merged into linux-ne

Re: [patch] mmap: feed back correct prev vma when finding vma

2012-08-09 Thread Hugh Dickins
On Thu, 9 Aug 2012, Hillf Danton wrote: > After walking rb tree, if vma is determined, prev vma has to be determined > based on vma; and rb_prev should be considered only if no vma determined. Why? Because you think more code is better code? I disagree. If you have seen a bug here, please tell

[PATCH 1/6] regulator: core: Add checking n_voltages if using list_voltage() to read voltage regulators

2012-08-09 Thread Axel Lin
Use list_voltage() to read single voltage regulators should be only applied to single voltage regulators, thus add checking n_voltages for this case. Signed-off-by: Axel Lin --- drivers/regulator/core.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/co

[PATCH 2/6] regulator: ab3100: Remove get_voltage implementation for regulator_ops_fixed

2012-08-09 Thread Axel Lin
This is not required after commit f7df20ec "regulator: core: Use list_voltage() to read single voltage regulators" Signed-off-by: Axel Lin --- drivers/regulator/ab3100.c |6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/regulator/ab3100.c b/drivers/regulator/ab3100.c index c151

[PATCH 3/6] regulator: ab8500: Remove get_voltage implementation for ab8500_regulator_fixed_ops

2012-08-09 Thread Axel Lin
This is not required after commit f7df20ec "regulator: core: Use list_voltage() to read single voltage regulators" Signed-off-by: Axel Lin --- drivers/regulator/ab8500.c |6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index 8807

[PATCH 4/6] regulator: isl6271a: Remove get_voltage implementation for isl_fixed_ops

2012-08-09 Thread Axel Lin
This is not required after commit f7df20ec "regulator: core: Use list_voltage() to read single voltage regulators" Signed-off-by: Axel Lin --- drivers/regulator/isl6271a-regulator.c |6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/regulator/isl6271a-regulator.c b/drivers/regu

[PATCH 5/6] regulator: twl: Remove get_voltage implementation for single voltage regulators

2012-08-09 Thread Axel Lin
This is not required after commit f7df20ec "regulator: core: Use list_voltage() to read single voltage regulators" Signed-off-by: Axel Lin --- drivers/regulator/twl-regulator.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulato

[PATCH 6/6] regulator: mc13xxx: Remove get_voltage implementation for single voltage regulators

2012-08-09 Thread Axel Lin
This is not required after commit f7df20ec "regulator: core: Use list_voltage() to read single voltage regulators" Signed-off-by: Axel Lin --- drivers/regulator/mc13783-regulator.c |1 - drivers/regulator/mc13892-regulator.c |1 - drivers/regulator/mc13xxx-regulator-core.c |

Re: yama_ptrace_access_check(): possible recursive locking detected

2012-08-09 Thread Kees Cook
Hi, So, after taking a closer look at this, I cannot understand how it's possible. Yama's task_lock call is against "current", not "child", which is what ptrace_may_access() is locking. And the same code makes sure that current != child. Yama would never get called if current == child. How did yo

Re: thermal patches in linux-next

2012-08-09 Thread Zhang Rui
Hi, Stephen, On 五, 2012-08-10 at 09:08 +1000, Stephen Rothwell wrote: > Hi Rui, > > On Thu, 09 Aug 2012 14:45:46 +0800 Zhang Rui wrote: > > > > On 二, 2012-08-07 at 10:53 +0800, Zhang Rui wrote: > > > Hi, all, > > > > > > I just created a git tree for catching all thermal changes. > > > http://g

Re: [PATCH] efikamx: reintroduce Genesi Efika MX Smarttop via device tree

2012-08-09 Thread Shawn Guo
On Thu, Aug 09, 2012 at 09:29:39AM -0500, Matt Sealey wrote: > The reason the new kernel depends on the new U-Boot is we're trying to > do all pinmux configuration in U-Boot (and we do in-house, and it > works). No pinctrl stuff in the kernel or device tree is required at > this point. The Old Kern

Re: [RFC][PATCH] tracepoints: Move the work out of line from hotpath sections

2012-08-09 Thread Steven Rostedt
On Thu, 2012-08-09 at 16:54 -0700, David Daney wrote: > On 08/09/2012 04:16 PM, H. Peter Anvin wrote: > > On 08/09/2012 03:25 PM, Steven Rostedt wrote: > >>> > >>> It might be better to improve gcc to move really cold branches out of > >>> line (really, really far away), and use the compiler to do

Re: [dm-devel] [PATCH v5 12/12] block: Only clone bio vecs that are in use

2012-08-09 Thread Muthu Kumar
Kent, >> -- >> You are changing the meaning of __bio_clone() here. In old code, the >> number of io_vecs, bi_idx, bi_vcnt are preserved. But in this modified >> code, you are mapping bio_src's bi_iovec[bi_idx] to bio_dests >> bi_iovec[0] and also restricting the number of allocated io_vecs of >> t

Re: [PATCH] extcon: fixing typos

2012-08-09 Thread 함명주
> Signed-off-by: Peter Meerwald The three "typo" patches: Signed-off-by: MyungJoo Ham I will apply the patches as soon as the branch is cleared up (will be using http://git.infradead.org/users/kmpark/linux-samsung/shortlog/refs/heads/extcon-for-next until I get a decent repository somewhere)

Re: yama_ptrace_access_check(): possible recursive locking detected

2012-08-09 Thread Fengguang Wu
On Thu, Aug 09, 2012 at 06:39:34PM -0700, Kees Cook wrote: > Hi, > > So, after taking a closer look at this, I cannot understand how it's > possible. Yama's task_lock call is against "current", not "child", > which is what ptrace_may_access() is locking. And the same code makes > sure that current

[PATCH] Yama: higher restrictions should block PTRACE_TRACEME

2012-08-09 Thread Kees Cook
The higher ptrace restriction levels should be blocking even PTRACE_TRACEME requests. The comments in the LSM documentation are misleading about when the checks happen (the parent does not go through security_ptrace_access_check() on a PTRACE_TRACEME call). Signed-off-by: Kees Cook Cc: sta...@vge

Re: [RFC][PATCH] tracepoints: Move the work out of line from hotpath sections

2012-08-09 Thread Mathieu Desnoyers
* Steven Rostedt (rost...@goodmis.org) wrote: > On Thu, 2012-08-09 at 16:54 -0700, David Daney wrote: > > On 08/09/2012 04:16 PM, H. Peter Anvin wrote: > > > On 08/09/2012 03:25 PM, Steven Rostedt wrote: > > >>> > > >>> It might be better to improve gcc to move really cold branches out of > > >>> l

[PATCH] ACPI: power: Use KERN_DEBUG when no power resources are found

2012-08-09 Thread Aaron Lu
commit a606dac368eed5696fb38e16b1394f1d049c09e9 adds support to link devices which have _PRx, if a device does not have _PRx, a warning message will be printed. This commit is for ZPODD on Intel's platform, on AMD's platform, there is no _PRx to support ZPODD, we use _PSx. So instead of printing

[PATCH] Extcon: renamed files to comply with the standard naming.

2012-08-09 Thread MyungJoo Ham
Replaced '_' with '-' in the extcon file names, which has been bogging me since new drivers have been using the standard naming. Signed-off-by: MyungJoo Ham --- drivers/extcon/Makefile |4 +- drivers/extcon/extcon-class.c | 832 + drivers/extcon

[PATCH] leds: wm8350: Convert to devm_regulator_get()

2012-08-09 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/leds/leds-wm8350.c | 29 +++-- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/drivers/leds/leds-wm8350.c b/drivers/leds/leds-wm8350.c index 918d4ba..f5d9ac3 100644 --- a/drivers/leds/leds-wm8350.c +++ b/drivers/leds/led

linux-next: Tree for Aug 10

2012-08-09 Thread Stephen Rothwell
Hi all, Changes since 20120809: New trees: xtensa and thermal The tty tree still has its build failures for which I have disabled 2 staging drivers and applied a patch. It lost its conflicts. I have still reverted 3 commits from the signal tree at the request of the arm maintainer. The akpm

Re: [PATCH v5 02/12] KVM: hide KVM_MEMSLOT_INVALID from userspace

2012-08-09 Thread Xiao Guangrong
On 08/10/2012 02:48 AM, Marcelo Tosatti wrote: >> +#define KVM_MEMSLOT_INVALID (1UL << 31) >> + >> /* >> * If we support unaligned MMIO, at most one fragment will be split into >> two: >> */ > > Please document which range is for userspace visible flags, which range > is reserved. Mention t

Re: [PATCH] leds: wm8350: Convert to devm_regulator_get()

2012-08-09 Thread Bryan Wu
Thanks, it's a good change. I've applied it to my for-next branch. -Bryan On Fri, Aug 10, 2012 at 10:08 AM, Axel Lin wrote: > Signed-off-by: Axel Lin > --- > drivers/leds/leds-wm8350.c | 29 +++-- > 1 file changed, 7 insertions(+), 22 deletions(-) > > diff --git a/dri

Re: [ 055/109] tg3: Fix Read DMA workaround for 5719 A0.

2012-08-09 Thread Ben Hutchings
On Tue, 2012-08-07 at 15:35 -0700, Greg Kroah-Hartman wrote: > From: Greg KH > > 3.4-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Michael Chan > > commit 10ce95d6ef36c65df7dcd3b8fcf86913f8b298bd upstream. > > The workaround was mis-

Re: thermal patches in linux-next

2012-08-09 Thread Stephen Rothwell
Hi Rui, On Fri, 10 Aug 2012 09:41:06 +0800 Zhang Rui wrote: > > > > And could you please drop these commits > > > ef25a0fe0087963c1611c1c8903886fbea053f76 > > > 09ec52fca274ba88d68df3198de92abdaaff417b > > > ab6d2f029358c917508bf88bbd6a9193a8e39fc8 > > > 66447fa993cbce56b4076f169a56f62350f6c7b8 >

Re: [dm-devel] [PATCH v5 12/12] block: Only clone bio vecs that are in use

2012-08-09 Thread Muthu Kumar
Tejun, On Thu, Aug 9, 2012 at 12:01 AM, Tejun Heo wrote: > Hello, > > On Wed, Aug 08, 2012 at 04:47:46PM -0700, Muthu Kumar wrote: >> You are changing the meaning of __bio_clone() here. In old code, the >> number of io_vecs, bi_idx, bi_vcnt are preserved. But in this modified >> code, you are map

[PATCH resend] Extcon: renamed files to comply with the standard naming.

2012-08-09 Thread MyungJoo Ham
Replaced '_' with '-' in the extcon file names, which has been bogging since new drivers have been using the standard naming. Signed-off-by: MyungJoo Ham --- drivers/extcon/Makefile |4 ++-- drivers/extcon/{extcon_class.c => extcon-class.c} |0 drivers/extcon/{e

Re: [BUGFIX -v3 3/4] PCI/PM: Fix config reg access for D3cold and bridge suspending

2012-08-09 Thread Huang Ying
On Wed, 2012-08-08 at 09:07 +0800, Huang Ying wrote: > This patch fixes the following bug: > > http://marc.info/?l=linux-pci&m=134338059022620&w=2 > > Where lspci does not work properly if a device and the corresponding > parent bridge (such as PCIe port) is suspended. This is because the > devi

Re: thermal patches in linux-next

2012-08-09 Thread Zhang Rui
On 五, 2012-08-10 at 12:23 +1000, Stephen Rothwell wrote: > Hi Rui, > > On Fri, 10 Aug 2012 09:41:06 +0800 Zhang Rui wrote: > > > > > > And could you please drop these commits > > > > ef25a0fe0087963c1611c1c8903886fbea053f76 > > > > 09ec52fca274ba88d68df3198de92abdaaff417b > > > > ab6d2f029358c917

Re: [PATCH 02/16] perf symbol: remove unused 'end' arg in kallsyms parse cb

2012-08-09 Thread Namhyung Kim
Hi, Cody On Thu, 9 Aug 2012 15:18:27 -0700, Cody P. Schafer wrote: > kallsyms__parse() takes a callback that is called on every discovered > symbol. As /proc/kallsyms does not supply symbol sizes, the callback was > simply called with end=start, faking the symbol size to 1. > > All of the callbac

[PATCH] dlm: remove redundant variable assignments

2012-08-09 Thread Ying Xue
From: Xue Ying Once the tcp_create_listen_sock() is returned successfully, we will invoke add_sock() immediately. In add_sock(), the 'con' variable is assigned to 'sk_user_data', meanwhile, the 'sock' is also set to 'con->sock'. So it's unnecessary to do the same thing in tcp_create_listen_sock()

Re: [PATCH] SubmittingPatches: clarify SOB tag usage when evolving submissions

2012-08-09 Thread Ryan Mallon
On 10/08/12 06:51, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > Initial large code submissions typically are not accepted > on their first patch submission. The developers are > typically given feedback and at times some developers may > even submit changes to the original authors for

compile a kernel for kgdb with less "optimized out"

2012-08-09 Thread gaoqiang
I think those who use kgdb must hate this sentence "optimized out". I have tried many times to build a kernel with less optimization but failed. today,I found a trick method ,just get rid of the -O2 and -Os on the top level of the kernel source and add -O2 for the arch/x86 directory,it w

Re: [PATCH 6/6] cpupower tools: Fix warning and a bug with the cpu package count

2012-08-09 Thread Palmer Cox
On Thu, Aug 09, 2012 at 12:07:36PM +0200, Thomas Renninger wrote: > On Tuesday 07 August 2012 04:24:48 Palmer Cox wrote: > > The pkgs member of cpupower_topology is being used as the number of > > cpu packages. As the comment in get_cpu_topology notes, the package ids > > are not guaranteed to be c

<    1   2   3   4   5   6   7   >