Re: [PATCH] perf, tools: Stop perf stat -p when profiled process exits v3

2012-09-13 Thread Andi Kleen
The is_alive function can be used by perf-top, perf-stat and perf-record to know that its target has died so it can stop monitoring. Sorry that's to complicated and overengineered for me. My simple patch works for me at least. It's not solving world hunger, but it wasn't intended to do that.

Re: [PATCH] gmux: Fix backlight set function

2012-09-13 Thread Matthew Garrett
Sorry, I am literally catching up on these right now. -- Matthew Garrett | mj...@srcf.ucam.org -- 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 Please

Re: [PATCH] gmux: Fix backlight set function

2012-09-13 Thread David Woodhouse
On Thu, 2012-09-13 at 21:02 +0100, Grant Likely wrote: In commit 7e30ed6b, gmux: Add generic write32 function, the new gmux_write32() function didn't include the io offset when writing registers. This means that backlight update writes never go to the right place. This patch fixes it.

Re: [PATCH] power: battery: Generic battery driver using IIO

2012-09-13 Thread Jonathan Cameron
On 09/13/2012 05:16 PM, anish kumar wrote: From: anish kumar anish198519851...@gmail.com In this version: Addressed concerns raised by lars: a. made the adc_bat per device. b. get the IIO channel using hardcoded channel names. Couple of bits related to this inline.. c. Minor issues related

Re: [PATCH -mm] enable CONFIG_COMPACTION by default

2012-09-13 Thread Rafael Aquini
On Thu, Sep 13, 2012 at 04:21:04PM -0400, Rik van Riel wrote: Now that lumpy reclaim has been removed, compaction is the only way left to free up contiguous memory areas. It is time to just enable CONFIG_COMPACTION by default. Signed-off-by: Rik van Riel r...@redhat.com diff --git

[RFC] cgroup TODOs

2012-09-13 Thread Tejun Heo
Hello, guys. Here's the write-up I promised last week about what I think are the problems in cgroup and what the current plans are. First of all, it's a mess. Shame on me. Shame on you. Shame on all of us for allowing this mess. Let's all tremble in shame for solid ten seconds before

[PATCH 0/3 v3] perf: precise mode and exclude_guest

2012-09-13 Thread David Ahern
Hopefully this wraps up the precise mode-exclude_guest dependency. I'm sure someone will let me know if I screwed up the attribution in the second patch. David Ahern (2): perf tool: precise mode requires exclude_guest perf tool: give user better message if precise is not supported Peter

[PATCH 1/3] perf tool: precise mode requires exclude_guest

2012-09-13 Thread David Ahern
Summary of events per Peter: Intel PEBS in VT-x context uses the DS address as a guest linear address, even though its programmed by the host as a host linear address. This either results in guest memory corruption and or the hardware faulting and 'crashing' the virtual machine.

[PATCH 3/3 v2] perf tool: give user better message if precise is not supported

2012-09-13 Thread David Ahern
Platforms (e.g., VM's) without support for precise mode get a confusing error message. e.g., $ perf record -e cycles:p -a -- sleep 1 Error: sys_perf_event_open() syscall returned with 95 (Operation not supported). /bin/dmesg may provide additional information. No hardware sampling

Re: [PATCH] memory cgroup: update root memory cgroup when node is onlined

2012-09-13 Thread Johannes Weiner
Hi, On Thu, Sep 13, 2012 at 03:14:28PM +0800, Wen Congyang wrote: root_mem_cgroup-info.nodeinfo is initialized when the system boots. But NODE_DATA(nid) is null if the node is not onlined, so root_mem_cgroup-info.nodeinfo[nid]-zoneinfo[zone].lruvec.zone contains an invalid pointer. If we use

[PATCH 2/3] perf: require exclude_guest to use PEBS - kernel side enforcement

2012-09-13 Thread David Ahern
From: Peter Zijlstra pet...@infradead.org Per Peter: Intel PEBS in VT-x context uses the DS address as a guest linear address, even though its programmed by the host as a host linear address. This either results in guest memory corruption and or the hardware faulting and 'crashing' the

Re: [PATCH] of: specify initrd location using 64-bit

2012-09-13 Thread Rob Herring
On 09/13/2012 01:47 AM, Sebastian Andrzej Siewior wrote: On 09/13/2012 12:08 AM, Rob Herring wrote: Geert is right here. If it is a physical address, it should be phys_addr_t. While generally true, for the DT specific code I think it should be a fixed u64. The size of the address is defined

Re: [PATCH] perf: add /proc/perf_events file for dump perf events info

2012-09-13 Thread David Ahern
On 7/5/12 7:02 AM, Jovi Zhang wrote: From 91fbcca37a2c9979083f4b9a6fa9c1875fc2886f Mon Sep 17 00:00:00 2001 From: Jovi Zhang bookj...@gmail.com Date: Fri, 6 Jul 2012 00:05:40 +0800 Subject: [PATCH] perf: add /proc/perf_events file for dump perf events info This new /proc/perf_events file is

Re: [PATCH 9/9] drivers/isdn/gigaset/common.c: Remove useless kfree

2012-09-13 Thread David Miller
From: Tilman Schmidt til...@imap.cc Date: Thu, 13 Sep 2012 11:52:27 +0200 Am 12.09.2012 17:06, schrieb Peter Senna Tschudin: From: Peter Senna Tschudin peter.se...@gmail.com Remove useless kfree() and clean up code related to the removal. The semantic patch that finds this problem is as

Re: [PATCH net-next] drivers/net: Enable IOMMU pass through for be2net

2012-09-13 Thread David Miller
From: Craig Hada craig.h...@hp.com Date: Thu, 13 Sep 2012 10:06:43 -0700 On 9/13/2012 9:27 AM, Hada, Craig M wrote: This patch sets the coherent DMA mask to 64-bit after the be2net driver has been acknowledged that the system is 64-bit DMA capable. The coherent DMA mask is examined by the

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

2012-09-13 Thread Rafael J. Wysocki
On Thursday, September 13, 2012, Borislav Petkov wrote: On Wed, Aug 29, 2012 at 10:01:36AM +0800, Aaron Lu wrote: On Fri, Aug 24, 2012 at 03:36:21PM -0700, Joe Perches wrote: On Thu, 2012-08-23 at 15:26 +0200, Borislav Petkov wrote: On Fri, Aug 10, 2012 at 10:05:53AM +0800, Aaron Lu

Re: [PATCH v3 10/10] thp: implement refcounting for huge zero page

2012-09-13 Thread Andrea Arcangeli
Hi Kirill, On Thu, Sep 13, 2012 at 08:37:58PM +0300, Kirill A. Shutemov wrote: On Thu, Sep 13, 2012 at 07:16:13PM +0200, Andrea Arcangeli wrote: Hi Kirill, On Wed, Sep 12, 2012 at 01:07:53PM +0300, Kirill A. Shutemov wrote: - hpage = alloc_pages(GFP_TRANSHUGE | __GFP_ZERO,

Re: [alex....@intel.com: Re: [PATCH] UV: fix incorrect tlb flush all issue]

2012-09-13 Thread Cliff Wickman
On Thu, Sep 13, 2012 at 05:53:10PM +0200, Ingo Molnar wrote: Ack? Thanks, Ingo Ack. But with the adjustment below. The 'end' argument was not declared long. I tested the patch on a UV. It has the effect of either clearing 1 or all TLBs in a cpu. I added some debugging to test for

Re: [PATCH 3/3] mm: Introduce HAVE_ARCH_TRANSPARENT_HUGEPAGE

2012-09-13 Thread Will Deacon
Hi Andrew, On Thu, Sep 13, 2012 at 08:05:14PM +0100, Andrew Morton wrote: On Tue, 11 Sep 2012 17:47:16 +0100 Will Deacon will.dea...@arm.com wrote: diff --git a/mm/Kconfig b/mm/Kconfig index d5c8019..3322342 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -318,7 +318,7 @@ config

Re: [PATCH 3/3] mm: Introduce HAVE_ARCH_TRANSPARENT_HUGEPAGE

2012-09-13 Thread Stephen Rothwell
Hi Andrew, On Thu, 13 Sep 2012 12:05:14 -0700 Andrew Morton a...@linux-foundation.org wrote: diff -puN arch/x86/Kconfig~mm-introduce-have_arch_transparent_hugepage arch/x86/Kconfig --- a/arch/x86/Kconfig~mm-introduce-have_arch_transparent_hugepage +++ a/arch/x86/Kconfig @@ -83,7 +83,6 @@

[PATCH] tcp: restore rcv_wscale in a repair mode

2012-09-13 Thread Andrew Vagin
rcv_wscale is a symetric parameter with snd_wscale. Both this parameters are set on a connection handshake. Without this value a remote window size can not be interpreted correctly, because a value from a packet should be shifted on rcv_wscale. And one more thing is that wscale_ok should be set

[PATCH] pcmcia: synclink_cs: fix potential tty NULL dereference

2012-09-13 Thread Alexey Khoroshilov
tty_port_tty_get() can return NULL after port hangup that may happen anytime. The patch adds checks that tty_port_tty_get() returns nonNULL around places where tty is actually used. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov

Re: [RFC][PATCH] Improving directed yield scalability for PLE handler

2012-09-13 Thread Andrew Theurer
On Thu, 2012-09-13 at 17:18 +0530, Raghavendra K T wrote: * Andrew Theurer haban...@linux.vnet.ibm.com [2012-09-11 13:27:41]: On Tue, 2012-09-11 at 11:38 +0530, Raghavendra K T wrote: On 09/11/2012 01:42 AM, Andrew Theurer wrote: On Mon, 2012-09-10 at 19:12 +0200, Peter Zijlstra wrote:

Re: Linux hfsplus corrupts chflags bits?

2012-09-13 Thread Matthew Garrett
There was a similar problem with the userflags field - we were writing random data. It wouldn't surprise me if this is another case where a field is just not being initiaised. -- Matthew Garrett | mj...@srcf.ucam.org -- To unsubscribe from this list: send the line unsubscribe linux-kernel in

Re: rtl8192se: ping router gives mdev of 25387.102???

2012-09-13 Thread Larry Finger
On 09/13/2012 05:18 AM, Norbert Preining wrote: Hi everyone, (please cc) see $subject ... No warning, nothing in the logs, but pinging my router I get things like: --- 192.168.0.1 ping statistics --- 376 packets transmitted, 315 received, +33 errors, 16% packet loss, time 405164ms rtt

Re: [PATCH 3/3] mm: Introduce HAVE_ARCH_TRANSPARENT_HUGEPAGE

2012-09-13 Thread Andrew Morton
On Fri, 14 Sep 2012 07:27:32 +1000 Stephen Rothwell s...@canb.auug.org.au wrote: Hi Andrew, On Thu, 13 Sep 2012 12:05:14 -0700 Andrew Morton a...@linux-foundation.org wrote: diff -puN arch/x86/Kconfig~mm-introduce-have_arch_transparent_hugepage arch/x86/Kconfig ---

[PATCH] xfrm_user: return error pointer instead of NULL

2012-09-13 Thread Mathias Krause
When dump_one_state() returns an error, e.g. because of a too small buffer to dump the whole xfrm state, xfrm_state_netlink() returns NULL instead of an error pointer. But its callers expect an error pointer and therefore continue to operate on a NULL skbuff. This could lead to a privilege

Re: AMD Bulldozer FX-8150 Powers off during kernel build

2012-09-13 Thread Sid Boyce
# uname -r 3.6.0-rc5-u1-smp+ I built a new 3.6-rc5 kernel (3.6.0-rc5-u2) using 3.6.0-rc5-u1 with 8 cores and power off didn't ocur. slipstream:/usr/src/linux-3.6.0-rc5-u1 # grep POWER .config # CONFIG_ACPI_PROCFS_POWER is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set

Re: [PATCH 1/2] HID: hid-sensor-hub: Clear HID_CLAIMED_INPUT bit earlier

2012-09-13 Thread Axel Lin
2012/9/14 Pandruvada, Srinivas srinivas.pandruv...@intel.com: Hi Axel, We don't need this anymore as when connect_mask is 0, the hid_connect will not be called. So we don't need hdev-claimed = HID_CLAIMED_INPUT anymore. Okay. I'm going to resend the patch for this serial. Axel -- To

PATCH fs/proc: unregister_sysctl_table hanging

2012-09-13 Thread Francesco Ruggeri
unregister_sysctl_table hangs if all references to its ctl_table_header structure are not dropped. This happens sometimes because of a leak in proc_sys_lookup(). proc_sys_lookup() gets a reference to the table via lookup_entry(), but it does not release it when a subsequent call to

Re: Block IO controller hierarchy suppport (Was: Re: [PATCH RFC cgroup/for-3.7] cgroup: mark subsystems with broken hierarchy support and whine if cgroups are nested for them)

2012-09-13 Thread Tejun Heo
Hey, Vivek. (cc'ing Rakesh and Chad who work on iosched in google). On Thu, Sep 13, 2012 at 10:53:41AM -0400, Vivek Goyal wrote: Biggest problem with blkcg CFQ implementation is idling on cgroup. If we don't idle on cgroup, then we don't get the service differentiaton for most of the

[PATCH 0/4] perf tools: runtime fixes for Android

2012-09-13 Thread Irina Tirdea
This is a set of patches with runtime fixes for Android. Any comments and suggestions are wellcome. Thanks, Irina Irina Tirdea (4): perf tools: remove sscanf extension %as perf stat: add compile-time option to disable --big-num perf archive: remove -f from the rm command perf archive:

[PATCH 1/4] perf tools: remove sscanf extension %as

2012-09-13 Thread Irina Tirdea
From: Irina Tirdea irina.tir...@intel.com perf uses sscanf extension %as to read and allocate a string in the same step. This is a non-standard extension only present in new versions of glibc. Replacing the use of sscanf and %as with strtok_r calls in order to parse a given string into its

[GIT] Pull request for x86 platform driver tree

2012-09-13 Thread Matthew Garrett
Hi Linus, A few small updates for 3.6 - a trivial regression fix and a couple of conformance updates for the gmux driver, plus some tiny fixes for asus-wmi, eeepc-laptop and thinkpad_acpi. The following changes since commit 5b716ac728bcc01b1f2a7ed6e437196602237c27: Merge branch 'for-next'

[PATCH 2/4] perf stat: add compile-time option to disable --big-num

2012-09-13 Thread Irina Tirdea
From: Irina Tirdea irina.tir...@intel.com In printf's format, ' is used to group the output with thousands' grouping characters for decimal conversion. Bionic does not support ' for printf. Add a compile-time option (NO_BIG_NUM) to disable the --big-num option from perf stat. Signed-off-by:

[PATCH 3/4] perf archive: remove -f from the rm command

2012-09-13 Thread Irina Tirdea
From: Irina Tirdea irina.tir...@intel.com In Android, rm does not support the -f parameter. Remove -f from rm and make sure rm does not fail even if the files to be removed are not found. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- tools/perf/perf-archive.sh |4 ++-- 1 file

[PATCH 4/4] perf archive: make f the last parameter for tar

2012-09-13 Thread Irina Tirdea
From: Irina Tirdea irina.tir...@intel.com On some systems, tar needs to specify the name of the archive immediately after the -f parameter. Change the order of the parameters so tar can run properly. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- tools/perf/perf-archive.sh |2 +- 1

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

2012-09-13 Thread Borislav Petkov
On Thu, Sep 13, 2012 at 11:17:32PM +0200, Rafael J. Wysocki wrote: I'll take it. There are two more ACPI PM patches that would be good to have in v3.6 IMO. Ok, cool. Can you pls adjust the stable tag to include 3.4 too? Thanks. -- Regards/Gruss, Boris. Advanced Micro Devices GmbH

Re: [PATCH] pinctrl: document semantics vs GPIO

2012-09-13 Thread Domenico Andreoli
On Thu, Sep 13, 2012 at 10:11:29AM -0600, Stephen Warren wrote: On 09/13/2012 01:01 AM, Linus Walleij wrote: From: Linus Walleij linus.wall...@linaro.org The semantics of the interactions between GPIO and pinctrl may be unclear, e.g. which one do you request first? This amends the

Re: [PATCH] powerpc/smp: Do not disable IPI interrupts during suspend

2012-09-13 Thread Benjamin Herrenschmidt
On Thu, 2012-09-13 at 13:16 -0500, Kumar Gala wrote: Yes, we disabled all non-boot CPUs on suspend by calling disable_nonboot_cpus(). The disable_nonboot_cpus() needs IPIs to work. But prior to calling disable_nonboot_cpus(), the IPIs are disabled in dpm_suspend_noirq(). Sure, no biggie

Re: [PATCH] mm: cma: Discard clean pages during contiguous allocation instead of migration

2012-09-13 Thread Andrew Morton
On Thu, 13 Sep 2012 21:17:19 +0200 Geert Uytterhoeven ge...@linux-m68k.org wrote: On Tue, Sep 11, 2012 at 2:41 AM, Minchan Kim minc...@kernel.org wrote: --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -674,8 +674,10 @@ static enum page_references page_check_references(struct page *page,

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

2012-09-13 Thread Rafael J. Wysocki
On Friday, September 14, 2012, Borislav Petkov wrote: On Thu, Sep 13, 2012 at 11:17:32PM +0200, Rafael J. Wysocki wrote: I'll take it. There are two more ACPI PM patches that would be good to have in v3.6 IMO. Ok, cool. Can you pls adjust the stable tag to include 3.4 too? I'll just use

Re: Really needs pulling

2012-09-13 Thread Cruz Julian Bishop
Don't forget to drop support for Wifi and enforce Coaxial cable connections! On Thu, 2012-09-13 at 15:46 -0400, Rich Lawlman wrote: Linux needs to drop USB support, as it's old, troublesome, useless and superseded by wireless technologies. We need to drive people's attention away from such

Re: [PATCH -mm] coredump: add support for %d=__get_dumpable() in core name

2012-09-13 Thread Andrew Morton
On Thu, 13 Sep 2012 19:28:17 +0200 Oleg Nesterov o...@redhat.com wrote: https://bugzilla.redhat.com/show_bug.cgi?id=787135 Needs a RH bugzilla account, so no Reported-by: for you! Some coredump handlers want to create a core file in a way compatible with standard behavior. Standard behavior

Re: AMD Bulldozer FX-8150 Powers off during kernel build

2012-09-13 Thread Borislav Petkov
On Thu, Sep 13, 2012 at 10:58:49PM +0100, Sid Boyce wrote: If needed I can go back to the earlier 3.6.0-rc5 kernel and config to recreate the power off situation. With the kernel that powered off, MCE was not set and CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y Yes, as I suggested earlier, enable

Re: rtl8192se: ping router gives mdev of 25387.102???

2012-09-13 Thread Norbert Preining
Hi Larry, thanks for the answer, here some more information as requested AP infos:distance: 3m NEC Aterm WR8600N ATERM-B45459 firmware 1.0.11 Network card is built in into a Lenovo Thinkpad Edge # lspci -nnv -s 03:00.0 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd.

Question on /proc/cpuinfo

2012-09-13 Thread JA Magallón
Hi... Probably it is a stupid question, but... I wan to count the number of processors, cores and threads on a linux system. I do it by reading /proc/cpuinfo. The problem is that the meaning of 'cpu cores' and 'siblings' seems to have changed over time. Nowadays, it looks like this: Dual P4

Re: [PATCH RT 0/2] [ANNOUNCE] 3.0.42-rt64-rc1 stable review

2012-09-13 Thread Frank Rowand
On 09/13/12 11:52, Steven Rostedt wrote: Dear RT Folks, This is the RT stable review cycle of patch 3.0.42-rt64-rc1. Tested on: - ARM mpcore - ARM panda For configurations: - SMP CONFIG_PREEMPT_NONE - UP CONFIG_PREEMPT_NONE - SMP CONFIG_PREEMPT_RT_FULL - UP

[PATCH 3/3] Add a codec driver for SI476X MFD

2012-09-13 Thread Andrey Smirnov
This commit add a sound codec driver for Silicon Laboratories 476x series of AM/FM radio chips. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- sound/soc/codecs/Kconfig |4 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/si476x.c | 346

Re: BUG at mm/huge_memory.c:1428!

2012-09-13 Thread Michel Lespinasse
On Thu, Sep 13, 2012 at 11:14 AM, Jiri Slaby jsl...@suse.cz wrote: Hi, I've just get the following BUG with today's -next. It happens every time I try to update packages. kernel BUG at mm/huge_memory.c:1428! That is very likely my bug. Do you have the message that should be printed right

[PATCH 2/3] Add a V4L2 driver for SI476X MFD

2012-09-13 Thread Andrey Smirnov
This commit adds a driver that exposes all the radio related functionality of the Si476x series of chips via the V4L2 subsystem. Signed-off-by: Andrey Smirnov andrey.smir...@convergeddevices.net --- drivers/media/radio/Kconfig| 17 + drivers/media/radio/radio-si476x.c | 1307

[PATCH 0/3] A driver for Si476x series of chips

2012-09-13 Thread Andrey Smirnov
This patchset contains a driver for a Silicon Laboratories 476x series of radio tuners. The driver itself is implemented as an MFD devices comprised of three parts: 1. Core device that provides all the other devices with basic functionality and locking scheme. 2. Radio device that translates

Re: [PATCH v4 0/8] Avoid cache trashing on clearing huge/gigantic page

2012-09-13 Thread Andrew Morton
On Mon, 20 Aug 2012 16:52:29 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: Clearing a 2MB huge page will typically blow away several levels of CPU caches. To avoid this only cache clear the 4K area around the fault address and use a cache avoiding clears for the rest of the

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

2012-09-13 Thread Stephen Rothwell
Hi Andrew, On Thu, 13 Sep 2012 18:31:06 +1000 Stephen Rothwell s...@canb.auug.org.au wrote: Here is the chunk of the series file I have: idr-rename-max_level-to-max_idr_level.patch idr-rename-max_level-to-max_idr_level-fix.patch idr-rename-max_level-to-max_idr_level-fix-fix-2.patch

Re: [PATCH -mm] enable CONFIG_COMPACTION by default

2012-09-13 Thread Johannes Weiner
On Thu, Sep 13, 2012 at 04:21:04PM -0400, Rik van Riel wrote: Now that lumpy reclaim has been removed, compaction is the only way left to free up contiguous memory areas. It is time to just enable CONFIG_COMPACTION by default. Signed-off-by: Rik van Riel r...@redhat.com Acked-by:

Question on /proc/cpuinfo

2012-09-13 Thread JA Magallón
Hi... Probably it is a stupid question, but... I wan to count the number of processors, cores and threads on a linux system. I do it by reading /proc/cpuinfo. The problem is that the meaning of 'cpu cores' and 'siblings' seems to have changed over time. Nowadays, it looks like this: Dual P4

Re: [PATCH 0/5] ARM: tegra: move all APB DMA client to dmaengine based driver

2012-09-13 Thread Stephen Warren
On 08/16/2012 08:13 AM, Laxman Dewangan wrote: This patch series enable the dmaengine based Tegra APB DMA driver and remove the support code for the legacy dma driver from different APB DMA clients. Patch 1 enable the dmaengine based dma drie and disable the legacy dma driver in

Re: [PATCH 4/5] spi: tegra: remove support of legacy DMA driver based access

2012-09-13 Thread Stephen Warren
On 08/16/2012 08:13 AM, Laxman Dewangan wrote: Remove the support code which uses the legacy APB DMA driver for accessing the SPI FIFO. The driver will use the dmaengine based APB DMA driver for accessing reqding/writing to SPI FIFO. Signed-off-by: Laxman Dewangan ldewan...@nvidia.com

Re: [PATCH 5/5] ASoC: tegra: remove support of legacy DMA driver based access

2012-09-13 Thread Stephen Warren
On 08/16/2012 08:13 AM, Laxman Dewangan wrote: Remove the support code which uses the legacy APB DMA driver for accessing the I2S FIFO. The driver will use the dmaengine based APB DMA driver for accessing reqding/writing to I2S FIFO. Signed-off-by: Laxman Dewangan ldewan...@nvidia.com

[RFC][PATCH 00/16] Asymmetric / Public-key cryptography key type

2012-09-13 Thread David Howells
Hi Herbert, Rusty, I've redone my crypto keys patches to be more specific, implementing an asymmetric key type for containing the stuff required for public-key cryptography and anything else one might want an asymmetric key for. This facility can be used for module signing, firmware signing and

[PATCH 02/16] MPILIB: Provide count_leading/trailing_zeros() based on arch functions

2012-09-13 Thread David Howells
Provide count_leading/trailing_zeros() macros based on extant arch bit scanning functions rather than reimplementing from scratch in MPILIB. Whilst we're at it, turn count_foo_zeros(n, x) into n = count_foo_zeros(x). Also move the definition to asm-generic as other people may be interested in

[PATCH 03/16] KEYS: Document asymmetric key type

2012-09-13 Thread David Howells
In-source documentation for the asymmetric key type. This will be located in: Documentation/crypto/asymmetric-keys.txt Signed-off-by: David Howells dhowe...@redhat.com --- Documentation/crypto/asymmetric-keys.txt | 312 ++ 1 file changed, 312 insertions(+)

[PATCH 01/16] KEYS: Add payload preparsing opportunity prior to key instantiate or update

2012-09-13 Thread David Howells
Give the key type the opportunity to preparse the payload prior to the instantiation and update routines being called. This is done with the provision of two new key type operations: int (*preparse)(struct key_preparsed_payload *prep); void (*free_preparse)(struct

[PATCH 05/16] KEYS: Asymmetric key pluggable data parsers

2012-09-13 Thread David Howells
The instantiation data passed to the asymmetric key type are expected to be formatted in some way, and there are several possible standard ways to format the data. The two obvious standards are OpenPGP keys and X.509 certificates. The latter is especially useful when dealing with UEFI, and the

[PATCH 06/16] KEYS: Asymmetric public-key algorithm crypto key subtype

2012-09-13 Thread David Howells
Add a subtype for supporting asymmetric public-key encryption algorithms such as DSA (FIPS-186) and RSA (PKCS#1 / RFC1337). Signed-off-by: David Howells dhowe...@redhat.com --- crypto/asymmetric_keys/Kconfig |8 +++ crypto/asymmetric_keys/Makefile |2 +

[PATCH 08/16] MPILIB: Reinstate mpi_cmp[_ui]() and export for RSA signature verification

2012-09-13 Thread David Howells
Reinstate and export mpi_cmp() and mpi_cmp_ui() from the MPI library for use by RSA signature verification as per RFC3447 section 5.2.2 step 1. Signed-off-by: David Howells dhowe...@redhat.com --- lib/mpi/Makefile |1 + lib/mpi/mpi-cmp.c | 70

[PATCH 09/16] RSA: Implement signature verification algorithm [PKCS#1 / RFC3447]

2012-09-13 Thread David Howells
Implement RSA public key cryptography [PKCS#1 / RFC3447]. At this time, only the signature verification algorithm is supported. This uses the asymmetric public key subtype to hold its key data. Signed-off-by: David Howells dhowe...@redhat.com --- crypto/asymmetric_keys/Kconfig |7 +

[PATCH 10/16] RSA: Fix signature verification for shorter signatures

2012-09-13 Thread David Howells
gpg can produce a signature file where length of signature is less than the modulus size because the amount of space an MPI takes up is kept as low as possible by discarding leading zeros. This regularly happens for several modules during the build. Fix it by relaxing check in RSA verification

[PATCH 13/16] X.509: Add simple ASN.1 grammar compiler

2012-09-13 Thread David Howells
Add a simple ASN.1 grammar compiler. This produces a bytecode output that can be fed to a decoder to inform the decoder how to interpret the ASN.1 stream it is trying to parse. Action functions can be specified in the grammar by interpolating: ({ foo }) after a type, for example:

[PATCH 15/16] MPILIB: Provide a function to read raw data into an MPI

2012-09-13 Thread David Howells
Provide a function to read raw data of a predetermined size into an MPI rather than expecting the size to be encoded within the data. The data is assumed to represent an unsigned integer, and the resulting MPI will be positive. The function looks like this: MPI mpi_read_raw_data(const

[PATCH 16/16] X.509: Add a crypto key parser for binary (DER) X.509 certificates

2012-09-13 Thread David Howells
Add a crypto key parser for binary (DER) encoded X.509 certificates. The certificate is parsed and, if possible, the signature is verified. An X.509 key can be added like this: # keyctl padd crypto bar @s /tmp/x509.cert 15768135 and displayed like this: # cat

[PATCH 11/16] X.509: Implement simple static OID registry

2012-09-13 Thread David Howells
Implement a simple static OID registry that allows the mapping of an encoded OID to an enum value for ease of use. The OID registry index enum appears in the: linux/oid_registry.h header file. A script generates the registry from lines in the header file that look like:

[PATCH 14/16] X.509: Add an ASN.1 decoder

2012-09-13 Thread David Howells
Add an ASN.1 BER/DER/CER decoder. This uses the bytecode from the ASN.1 compiler in the previous patch to inform it as to what to expect to find in the encoded byte stream. The output from the compiler also tells it what functions to call on what tags, thus allowing the caller to retrieve

[PATCH 12/16] X.509: Add utility functions to render OIDs as strings

2012-09-13 Thread David Howells
Add a pair of utility functions to render OIDs as strings. The first takes an encoded OID and turns it into a a.b.c.d form string: int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize); The second takes an OID enum index and calls the

[PATCH 07/16] KEYS: Provide signature verification with an asymmetric key

2012-09-13 Thread David Howells
Provide signature verification using an asymmetric-type key to indicate the public key to be used. The API is a single function that can be found in crypto/public_key.h: int verify_signature(const struct key *key, const struct public_key_signature *sig) The

[PATCH 04/16] KEYS: Implement asymmetric key type

2012-09-13 Thread David Howells
Create a key type that can be used to represent an asymmetric key type for use in appropriate cryptographic operations, such as encryption, decryption, signature generation and signature verification. The key type is asymmetric and can provide access to a variety of cryptographic algorithms.

Re: [PATCH] power: battery: Generic battery driver using IIO

2012-09-13 Thread Anton Vorontsov
On Thu, Sep 13, 2012 at 09:46:32PM +0530, anish kumar wrote: From: anish kumar anish198519851...@gmail.com In this version: Addressed concerns raised by lars: a. made the adc_bat per device. b. get the IIO channel using hardcoded channel names. c. Minor issues related to gpio_is_valid and

Re: [PATCH -mm] enable CONFIG_COMPACTION by default

2012-09-13 Thread Minchan Kim
Hi Rik, On Thu, Sep 13, 2012 at 04:21:04PM -0400, Rik van Riel wrote: Now that lumpy reclaim has been removed, compaction is the only way left to free up contiguous memory areas. It is time to just enable CONFIG_COMPACTION by default. Signed-off-by: Rik van Riel r...@redhat.com I tried

Re: [PATCH] edac/85xx: fix error handle of mpc85xx_mc_err_probe

2012-09-13 Thread Kim Phillips
On Thu, 13 Sep 2012 18:55:29 +0800 Shaohui Xie shaohui@freescale.com wrote: Error handle in case of DDR ECC off is wrong, sysfs entries have not been created, so edac_mc_free which frees a mci instance should not be called. Also, free mci's memory in this case. Signed-off-by: Shaohui

Re: [PATCH] mm: cma: Discard clean pages during contiguous allocation instead of migration

2012-09-13 Thread Minchan Kim
On Thu, Sep 13, 2012 at 03:19:22PM -0700, Andrew Morton wrote: On Thu, 13 Sep 2012 21:17:19 +0200 Geert Uytterhoeven ge...@linux-m68k.org wrote: On Tue, Sep 11, 2012 at 2:41 AM, Minchan Kim minc...@kernel.org wrote: --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -674,8 +674,10 @@ static

[RFC] add enable to the kconfig language

2012-09-13 Thread Stephen Rothwell
Hi all, I have noticed that we use the following paradigm quite a bit theses days: config something select HAVE_config1 config config1 depends on HAVE_config1 or similar I was wondering if it would make sense to replace this with: config something enable config1

Re: [alex....@intel.com: Re: [PATCH] UV: fix incorrect tlb flush all issue]

2012-09-13 Thread Alex Shi
On 09/14/2012 05:20 AM, Cliff Wickman wrote: On Thu, Sep 13, 2012 at 05:53:10PM +0200, Ingo Molnar wrote: Ack? Thanks, Ingo Ack. But with the adjustment below. The 'end' argument was not declared long. I tested the patch on a UV. It has the effect of either clearing 1 or all

Re: [PATCH 07/24] Staging: ipack/devices/ipoctal: Store isr masks in ipoctal_channel

2012-09-13 Thread Joe Perches
On Thu, 2012-09-13 at 22:17 +0300, Dan Carpenter wrote: If it weren't in staging-next then, yeah, it probably would have been better to resend those two patches. You could send them by themselves without resending any of the others. But once they hit staging-next, it's too late. No

Re: [PATCH] ACPI: Enable SCI_EMULATE to manually simulate physical hotplug testing.

2012-09-13 Thread Toshi Kani
+ + /* + * Check for internal object and make sure there is a handler + * registered for this object + */ + obj_desc = acpi_ns_get_attached_object(node); + if (obj_desc) { + if (obj_desc-common_notify.notify_list[0]) { Is the

RE: [PATCH v5] iio: adc: add new lp8788 adc driver

2012-09-13 Thread Kim, Milo
Hi, One issue and a couple of nitpicks inline. I really appreciate it. Please see my questions below. + switch (mask) { + case IIO_CHAN_INFO_RAW: + ret = lp8788_get_adc_result(adc, id, val) ? -EIO : IIO_VAL_INT; + break; + case IIO_CHAN_INFO_SCALE: +

RE: [PATCH v5] iio: adc: add new lp8788 adc driver

2012-09-13 Thread Kim, Milo
Couple of nitpicks in line to add to Lars-Peter's ones. I really appreciate it. +#define LP8788_CHAN(_id, _type) { \ + .type = _type, \ + .indexed = 1, \ +

RE: [PATCH 2/2] iio: inkern: add error case in iio_channel_get()

2012-09-13 Thread Kim, Milo
On 10/09/12 09:02, Kim, Milo wrote: The datasheet name is defined in the IIO driver. On the other hand, the adc_channel_label is configured in the platform machine side. If the datasheet name is not matched with any adc_channel_label, the iio_channel_get() should be returned

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

2012-09-13 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 ZPODD capable platforms, on other platforms, it has no problem if there is no power resource for this

Re: [RFC v2] memory-hotplug: remove MIGRATE_ISOLATE from free_area-free_list

2012-09-13 Thread Minchan Kim
Hi Bart, On Thu, Sep 13, 2012 at 04:21:42PM +0200, Bartlomiej Zolnierkiewicz wrote: On Thursday 06 September 2012 18:34:35 Bartlomiej Zolnierkiewicz wrote: Hi, On Thursday 06 September 2012 04:53:38 Minchan Kim wrote: Normally, MIGRATE_ISOLATE type is used for memory-hotplug. But

linux-next: manual merge of the net-next tree with the net tree

2012-09-13 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in net/netfilter/xt_LOG.c between commit 0626af313957 (netfilter: take care of timewait sockets) from the net tree and commit 8c6e2a941ae7 (userns: Convert xt_LOG to print socket kuids and kgids as uids and gids) from the

linux-next: manual merge of the net-next tree with the net tree

2012-09-13 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in net/netfilter/nfnetlink_log.c between commit 0626af313957 (netfilter: take care of timewait sockets) from the tree and commit 9eea9515cb5f (userns: nfnetlink_log: Report socket uids in the log sockets user namespace) from

[PATCH RESEND] iio: inkern: allocate zeroed memory

2012-09-13 Thread Kim, Milo
Use kzalloc() rather than kmalloc() for initializing the iio_channel structure. This patch enables the iio_dev and iio_chan_spec are set to NULL. This may prevent the page fault problem because the pointer of iio_chan_spec is initialized as NULL. The iio_chan_spec is updated only in case

RE: [PATCH 1/2] iio: inkern: clear allocated memory

2012-09-13 Thread Kim, Milo
Please state why. I'm sure I can track it down, but it ought to be in the commit comment. The patch was resent with more detailed description. Title : [PATCH RESEND] iio: inkern: allocate zeroed memory Thanks for your comment. Best Regards, Milo -- To unsubscribe from this list: send the

Re: [PATCH] memory cgroup: update root memory cgroup when node is onlined

2012-09-13 Thread Hugh Dickins
On Thu, 13 Sep 2012, Johannes Weiner wrote: On Thu, Sep 13, 2012 at 03:14:28PM +0800, Wen Congyang wrote: root_mem_cgroup-info.nodeinfo is initialized when the system boots. But NODE_DATA(nid) is null if the node is not onlined, so

Re: [PATCH] memory cgroup: update root memory cgroup when node is onlined

2012-09-13 Thread Wen Congyang
At 09/14/2012 04:59 AM, Johannes Weiner Wrote: Hi, On Thu, Sep 13, 2012 at 03:14:28PM +0800, Wen Congyang wrote: root_mem_cgroup-info.nodeinfo is initialized when the system boots. But NODE_DATA(nid) is null if the node is not onlined, so

Re: [PATCH] memory cgroup: update root memory cgroup when node is onlined

2012-09-13 Thread Wen Congyang
At 09/14/2012 09:36 AM, Hugh Dickins Wrote: On Thu, 13 Sep 2012, Johannes Weiner wrote: On Thu, Sep 13, 2012 at 03:14:28PM +0800, Wen Congyang wrote: root_mem_cgroup-info.nodeinfo is initialized when the system boots. But NODE_DATA(nid) is null if the node is not onlined, so

Re: [RFC] add enable to the kconfig language

2012-09-13 Thread Steven Rostedt
On Fri, 2012-09-14 at 10:14 +1000, Stephen Rothwell wrote: Hi all, I have noticed that we use the following paradigm quite a bit theses days: config something select HAVE_config1 config config1 depends on HAVE_config1 or similar I was wondering if it would make sense

Re: [PATCH 1/4] perf tools: remove sscanf extension %as

2012-09-13 Thread Namhyung Kim
Hi Irina, (Adding Masami to Cc) On Fri, 14 Sep 2012 01:07:40 +0300, Irina Tirdea wrote: From: Irina Tirdea irina.tir...@intel.com perf uses sscanf extension %as to read and allocate a string in the same step. This is a non-standard extension only present in new versions of glibc.

Question on irq autoprobe

2012-09-13 Thread Ming Lei
Hi, I see the below comments on probe_irq_off: * BUGS: When used in a module (which arguably shouldn't happen) * nothing prevents two IRQ probe callers from overlapping. The * results of this are non-optimal. */ But from the code of probe_irq_on and probe_irq_off, the

Re: Implement devicetree support for AB8500 Btemp

2012-09-13 Thread Anton Vorontsov
(Thanks for Cc'ing me.) On Thu, Sep 13, 2012 at 02:37:38PM +, Arnd Bergmann wrote: [...] If this is true, I don't understand what makes the 'supplied-to' properties you list in the device tree binding board specific. Are they not always done the same way? If so, you could just leave

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