[PATCH 2/2] zram: handle mem suffixes in disk size zram_sysfs parameter (resend)

2012-10-30 Thread Sergey Senozhatsky
Use memparse() to allow mem suffixes in disksize sysfs number. Examples: echo 256K > /sys/block/zram0/disksize echo 512M > /sys/block/zram0/disksize echo 1G > /sys/block/zram0/disksize Signed-off-by: Sergey Senozhatsky Reviewed-by: Nitin Gupta --- drivers/staging/zram/zram_sysfs

Re: [PATCH v8 11/32] vfs: make do_unlinkat retry on ESTALE errors

2012-10-30 Thread Jeff Layton
On Tue, 30 Oct 2012 15:28:09 -0400 "J. Bruce Fields" wrote: > On Tue, Oct 30, 2012 at 12:33:55PM -0400, Jeff Layton wrote: > > On Tue, 30 Oct 2012 12:14:29 -0400 > > "J. Bruce Fields" wrote: > > > > > On Sat, Oct 27, 2012 at 08:33:18AM -0400, Jeff Layton wrote: > > > > Signed-off-by: Jeff Layto

Re: [PATCH v2 2/3] pppoatm: fix race condition with destroying of vcc

2012-10-30 Thread Krzysztof Mazur
On Tue, Oct 30, 2012 at 08:07:25PM +0100, Krzysztof Mazur wrote: > On Tue, Oct 30, 2012 at 09:37:48AM +, David Woodhouse wrote: > > > > Should we be locking it earlier, so that the atm_may_send() call is also > > covered by the lock? > > Yes, but only to protect against concurent vcc_sendmsg(

[PATCH] Add device tree file for the armadeus apf27 (v2)

2012-10-30 Thread Philippe Reynes
v2: avoid enable again the watchdog Signed-off-by: Philippe Reynes Signed-off-by: Eric Jarrige --- arch/arm/boot/dts/imx27-apf27.dts | 92 + 1 files changed, 92 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boot/dts/imx27-apf27.dts diff --git

Re: [PATCH RFT RESEND linux-next] mips: dma-mapping: support debug_dma_mapping_error

2012-10-30 Thread Shuah Khan
On Fri, 2012-10-26 at 15:31 -0700, David Daney wrote: > On 10/26/2012 02:51 PM, Shuah Khan wrote: > > On 10/26/2012 09:01 AM, Shuah Khan wrote: > > Add support for debug_dma_mapping_error() call to avoid warning from > > debug_dma_unmap() interface when it checks for mapping error che

Re: [Pv-drivers] [PATCH 00/12] VMCI for Linux upstreaming

2012-10-30 Thread Greg KH
On Tue, Oct 30, 2012 at 12:43:54PM -0700, Dmitry Torokhov wrote: > On Tue, Oct 30, 2012 at 09:27:23AM -0700, Greg KH wrote: > > On Tue, Oct 30, 2012 at 09:18:07AM -0700, Dmitry Torokhov wrote: > > > > > I think that even if we had a special directory for vmci having > > > > > network > > > > > dri

[PATCH v4 0/7] efi_pstore: multiple event logging support

2012-10-30 Thread Seiji Aguchi
Changelog v3 -> v4 - Rebase to 3.7-rc3 - Add ctime to an argument of efi_pstore_erase to build successfully in case where CONFIG_PTORE=n is specified. (Patch 4/7) - Add count to an argument of efi_pstore_erase and efi_pstore_write to build successfully in case where CONFIG_PTOR

[PATCH v4 1/7] efi_pstore: Check remaining space with QueryVariableInfo() before writing data

2012-10-30 Thread Seiji Aguchi
[Issue] As discussed in a thread below, Running out of space in EFI isn't a well-tested scenario. And we wouldn't expect all firmware to handle it gracefully. http://marc.info/?l=linux-kernel&m=134305325801789&w=2 On the other hand, current efi_pstore doesn't check a remaining space of storage

[PATCH v4 2/7] efi_pstore: Add a logic erasing entries to an erase callback

2012-10-30 Thread Seiji Aguchi
[Issue] Currently, efi_pstore driver simply overwrites existing panic messages in NVRAM. So, in the following scenario, we will lose 1st panic messages. 1. kernel panics. 2. efi_pstore is kicked and writes panic messages to NVRAM. 3. system reboots. 4. kernel panics again before a user check

[PATCH v4 3/7] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-30 Thread Seiji Aguchi
[Issue] Currently, efi_pstore driver simply overwrites existing panic messages in NVRAM. So, in the following scenario, we will lose 1st panic messages. 1. kernel panics. 2. efi_pstore is kicked and writes panic messages to NVRAM. 3. system reboots. 4. kernel panics again before a user checks th

[PATCH v4 4/7] efi_pstore: Add ctime to argument of erase callback

2012-10-30 Thread Seiji Aguchi
[Issue] Currently, a variable name, which is used to identify each log entry, consists of type, id and ctime. But an erase callback does not use ctime. If efi_pstore supported just one log, type and id were enough. However, in case of supporting multiple logs, it doesn't work because it can't d

[PATCH v4 5/7] efi_pstore: Add a sequence counter to a variable name

2012-10-30 Thread Seiji Aguchi
[Issue] Currently, a variable name, which identifies each entry, consists of type, id and ctime. But if multiple events happens in a short time, a second/third event may fail to log because efi_pstore can't distinguish each event with current variable name. [Solution] A reasonable way to iden

[PATCH v4 6/7] efi_pstore: Add a format check for an existing variable name at reading time

2012-10-30 Thread Seiji Aguchi
[Issue] a format of variable name has been updated to type, id, count and ctime to support holding multiple logs. Format of current variable name dump-type0-1-2-12345678 type:0 id:1 count:2 ctime:12345678 On the other hand, if an old variable name before being updated remains, users

[PATCH v4 7/7] efi_pstore: Add a format check for an existing variable name at erasing time

2012-10-30 Thread Seiji Aguchi
[Issue] a format of variable name has been updated to type, id, count and ctime to support holding multiple logs. Format of current variable name dump-type0-1-2-12345678 type:0 id:1 count:2 ctime:12345678 On the other hand, if an old variable name before being updated remains, users

[PATCH] New Nokia RX-51 power supply battery driver

2012-10-30 Thread Pali Rohár
Hello, I'm sending new power_supply driver which export battery design capacity, battery temperature and voltage on Nokia N900. All these properties are read from battery pins throw twl madc channels. I'm working on full BME replacement for Nokia N900. BME is Nokia proprietary buggy userspace sof

Re: [PATCH] i2c: pinctrl-ify i2c-omap.c

2012-10-30 Thread Sebastien Guiriec
Hi Pantelis, Can you look at the early thread? https://patchwork.kernel.org/patch/1601331/ I send a similar patch earlier with defer probe usage. Best regards, Sebastien On 10/31/2012 04:55 PM, Pantelis Antoniou wrote: Enable pinctrl for i2c-omap. Signed-off-by: Pantelis Antoniou --- dr

[patch 00/10] make I/O path allocations more numa-friendly

2012-10-30 Thread Jeff Moyer
Hi, This patch set makes memory allocations for data structures used in the I/O path more numa friendly by allocating them from the same numa node as the storage device. I've only converted a handfull of drivers at this point. My testing showed that, for workloads where the I/O processes were no

[patch 09/10] lpfc: use scsi_host_alloc_node

2012-10-30 Thread Jeff Moyer
Signed-off-by: Jeff Moyer --- drivers/scsi/lpfc/lpfc_init.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 7dc4218..65956d3 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lp

[patch 05/10] vfs: pass data to alloc_inode super operation

2012-10-30 Thread Jeff Moyer
This patch passes a data pointer along to the alloc_inode super_operations function. The value will initially be used by bdev_alloc_inode to allocate the bdev_inode on the same numa node as the device to which it is tied. Signed-off-by: Jeff Moyer --- fs/afs/super.c |5 +++-- fs/blo

[patch 00/10] *** SUBJECT HERE ***

2012-10-30 Thread Jeff Moyer
*** BLURB HERE *** Jeff Moyer (10): scsi: make __scsi_alloc_queue numa-aware scsi: make scsi_alloc_sdev numa-aware scsi: allocate scsi_cmnd-s from the device's local numa node sd: use alloc_disk_node vfs: pass data to alloc_inode super operation ata: use scsi_host_alloc_node megaraid

[patch 01/10] scsi: make __scsi_alloc_queue numa-aware

2012-10-30 Thread Jeff Moyer
Pass the numa node id set in the Scsi_Host on to blk_init_queue_node in order to keep all allocations local to the numa node the device is closest to. Signed-off-by: Jeff Moyer --- drivers/scsi/scsi_lib.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/scsi

[patch 04/10] sd: use alloc_disk_node

2012-10-30 Thread Jeff Moyer
Signed-off-by: Jeff Moyer --- drivers/scsi/sd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 12f6fdf..8deb915 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -2714,7 +2714,7 @@ static int sd_probe(struct device *d

[patch 03/10] scsi: allocate scsi_cmnd-s from the device's local numa node

2012-10-30 Thread Jeff Moyer
Signed-off-by: Jeff Moyer --- drivers/scsi/scsi.c | 17 +++-- 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 2936b44..4db6973 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -173,16 +173,20 @@ static DEF

Re: [RFC 2/7] capebus: Add beaglebone board support

2012-10-30 Thread Pantelis Antoniou
On Oct 30, 2012, at 9:39 PM, Tony Lindgren wrote: > * Pantelis Antoniou [121030 12:00]: >> + >> +priv->lcdc_oh = omap_hwmod_lookup("lcdc"); >> +if (priv->lcdc_oh == NULL) { >> +dev_err(&pdev->dev, "Failed to lookup omap_hwmod lcdc\n"); >> +return -ENODEV; >> +}

[patch 07/10] megaraid_sas: use scsi_host_alloc_node

2012-10-30 Thread Jeff Moyer
Signed-off-by: Jeff Moyer --- drivers/scsi/megaraid/megaraid_sas_base.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index d2c5366..707a6cd 100644 --- a/drivers/scsi/megaraid/me

[patch 08/10] mpt2sas: use scsi_host_alloc_node

2012-10-30 Thread Jeff Moyer
Signed-off-by: Jeff Moyer --- drivers/scsi/mpt2sas/mpt2sas_scsih.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index af4e6c4..a4d6b36 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++

[patch 02/10] scsi: make scsi_alloc_sdev numa-aware

2012-10-30 Thread Jeff Moyer
Use the numa node id set in the Scsi_Host to allocate the sdev structure on the device-local numa node. Signed-off-by: Jeff Moyer --- drivers/scsi/scsi_scan.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 3e5

Re: [PATCH] i2c: pinctrl-ify i2c-omap.c

2012-10-30 Thread Pantelis Antoniou
On Oct 30, 2012, at 10:14 PM, Sebastien Guiriec wrote: > Hi Pantelis, > > Can you look at the early thread? > https://patchwork.kernel.org/patch/1601331/ > > I send a similar patch earlier with defer probe usage. > > Best regards, > > Sebastien I see. Well let me drop the patch then. One

[patch 10/10] cciss: use blk_init_queue_node

2012-10-30 Thread Jeff Moyer
Signed-off-by: Jeff Moyer --- drivers/block/cciss.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index b0f553b..5fe5546 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -1930,7 +1930,8 @@ static void cci

[patch 00/10] make I/O path allocations more numa-friendly

2012-10-30 Thread Jeff Moyer
Hi, This patch set makes memory allocations for data structures used in the I/O path more numa friendly by allocating from the same numa node on which the device resides. I've only converted a handfull of drivers at this point. My testing showed that, for workloads where the I/O processes were n

[patch 06/10] ata: use scsi_host_alloc_node

2012-10-30 Thread Jeff Moyer
Signed-off-by: Jeff Moyer --- drivers/ata/libata-scsi.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index e3bda07..9d5dd09 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -3586,7 +3586,

Re: [PATCH v2 1/3] pppoatm: don't send frames to destroyed vcc

2012-10-30 Thread Krzysztof Mazur
On Tue, Oct 30, 2012 at 09:35:00AM +, David Woodhouse wrote: > On Mon, 2012-10-22 at 19:14 +0200, Krzysztof Mazur wrote: > > Now pppoatm_send(), like vcc_sendmsg(), checks for vcc flags that > > indicate that vcc is not ready. > > I note that vcc_sendmsg() also checks for sock->state == SS_CON

[PATCH] scripts/coccinelle/misc/semicolon.cocci: Add unnecessary semicolon test

2012-10-30 Thread Peter Senna Tschudin
This semantic patch looks for semicolons that can be removed without changing the semantics of the code. The confidence is moderate because there are some false positives on cases like: drivers/mmc/host/cb710-mmc.c:589 break; case MMC_POWER_UP: default: -

[PATCH] x86, add hypervisor name to dump_stack() [v4]

2012-10-30 Thread Prarit Bhargava
Debugging crash, panics, stack trace WARN_ONs, etc., from both virtual and bare-metal boots can get difficult very quickly. While there are ways to decipher the output and determine if the output is from a virtual guest, the in-kernel hypervisors now have a single registration point and set x86_hy

Re: [PATCH v2 1/2] kmem_cache: include allocators code directly into slab_common

2012-10-30 Thread Andi Kleen
On Tue, Oct 30, 2012 at 03:31:51PM +, Christoph Lameter wrote: > On Fri, 26 Oct 2012, JoonSoo Kim wrote: > > > 2012/10/25 Christoph Lameter : > > > On Wed, 24 Oct 2012, Pekka Enberg wrote: > > > > > >> So I hate this patch with a passion. We don't have any fastpaths in > > >> mm/slab_common.c

Re: [PATCH] ARM: OMAP2+: AM33XX: clock data: fix mcasp entries

2012-10-30 Thread Joel A Fernandes
Hi Gururaja, On Mon, Oct 29, 2012 at 10:45 AM, Hebbar, Gururaja wrote: > Matt, > > On Wed, Oct 10, 2012 at 20:00:49, Porter, Matt wrote: >> 6ea74cb ARM: OMAP2+: hwmod: get rid of all omap_clk_get_by_name usage >> exposes a bug in the AM33XX clock data for mcasp. After moving to >> clk_get() usage

[BUG] perf tools: does not process data mmaps correctly

2012-10-30 Thread Stephane Eranian
Arnaldo, A long time ago, I brought up the issue of perf failing to resolve data symbols despite having the MAP__VARIABLE map type. Now that I have posted the PEBS-LL patch series, there is a test case to debug this. I looked again at it today. Start from ip__resolve_data() in my patchset. IT is

Re: [PATCH V3 0/4] ARM: tegra: Enable SLINK controller driver

2012-10-30 Thread Stephen Warren
On 10/30/2012 01:05 AM, Laxman Dewangan wrote: > This series modify the dts file to add the slink addresses, > make AUXDATA in board dt files, enable slink4 for tegra30-cardhu and > enable slink controller defconfig. This series only instantiates the SPI controller, and not any SPI devices. I tri

Re: [REGRESSION] i915: failure to interoperate with HP ZR30w using an X230

2012-10-30 Thread Theodore Ts'o
On Tue, Oct 30, 2012 at 01:57:27PM +0200, Jani Nikula wrote: > > [1] drm-intel-next-queued branch at > > git://people.freedesktop.org/~danvet/drm-intel > > Hmm, actually not. Either drm-intel-fixes branch, or Linus' master. Confirmed, the drm-intel-fixes branch from Daniel's tree (3.7.0-rc2-0003

Re: [PATCH] Fix crypto api init for 3.6.4-rt10

2012-10-30 Thread Uwe Kleine-König
Hello, On Tue, Oct 30, 2012 at 06:57:37PM +0100, Thomas Gleixner wrote: > On Tue, 30 Oct 2012, Milan Broz wrote: > > > Fix crypto api for 3.6.4-rt10 (broken only in realtime patchset) > > > > In peterz-srcu-crypto-chain.patch the blocking notifier is changed > > to srcu notifier and added initia

Re: [REGRESSION] 3.7-rc2 kernel BUG at kernel/power/snapshot.c:517!

2012-10-30 Thread Maciej Rutecki
On niedziela, 28 października 2012 o 22:45:26 Rafael J. Wysocki wrote: > On Sunday, October 28, 2012 10:12:49 PM Maciej Rutecki wrote: > > On niedziela, 21 października 2012 o 17:12:28 Maciej Rutecki wrote: > > > Error: kernel BUG at kernel/power/snapshot.c:517! > > > > > > Last known good: 3.6.1

Re: [PATCH] arm: dt: tegra: fix length of pad control and mux registers

2012-10-30 Thread Stephen Warren
On 10/30/2012 04:07 AM, Pritesh Raithatha wrote: >... (a commit description wouuld have been nice; I'll add one) Applied to Tegra's for-3.7/fixes-for-rc4 branch. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More m

Re: Hang in XFS reclaim on 3.7.0-rc3

2012-10-30 Thread Torsten Kaiser
On Mon, Oct 29, 2012 at 11:26 PM, Dave Chinner wrote: > On Mon, Oct 29, 2012 at 09:03:15PM +0100, Torsten Kaiser wrote: >> After experiencing a hang of all IO yesterday ( >> http://marc.info/?l=linux-kernel&m=135142236520624&w=2 ), I turned on >> LOCKDEP after upgrading to -rc3. >> >> I then tried

Re: [PATCH firmware] rtl_nic: update firmware for RTL8168G

2012-10-30 Thread Ben Hutchings
On Tue, 2012-10-23 at 15:02 +0800, Hayes Wang wrote: > File: rtl_nic/rtl8168g-1.fw > Version: 0.0.3 > > Signed-off-by: Hayes Wang > --- > WHENCE| 2 +- > rtl_nic/rtl8168g-1.fw | Bin 4272 -> 4304 bytes > 2 files changed, 1 insertion(+), 1 deletion(-) [...] Applied, thanks. Be

Re: Hang in XFS reclaim on 3.7.0-rc3

2012-10-30 Thread Christoph Hellwig
On Tue, Oct 30, 2012 at 09:37:06PM +0100, Torsten Kaiser wrote: > On Mon, Oct 29, 2012 at 11:26 PM, Dave Chinner wrote: For some reason I only managed to get the two mails from Torsten into my xfs list folder, but the one from Dave is missing. I did see Dave's mail in my linux-mm folder, though.

Re: [PATCH v2] Persistent grant maps for xen blk drivers

2012-10-30 Thread Konrad Rzeszutek Wilk
On Tue, Oct 30, 2012 at 07:33:16PM +0100, Roger Pau Monné wrote: > On 30/10/12 18:01, Konrad Rzeszutek Wilk wrote: > > On Wed, Oct 24, 2012 at 06:58:45PM +0200, Roger Pau Monne wrote: > >> This patch implements persistent grants for the xen-blk{front,back} > >> mechanism. The effect of this change

Re: [patch 05/10] vfs: pass data to alloc_inode super operation

2012-10-30 Thread Al Viro
On Tue, Oct 30, 2012 at 04:14:39PM -0400, Jeff Moyer wrote: > This patch passes a data pointer along to the alloc_inode > super_operations function. The value will initially be used by > bdev_alloc_inode to allocate the bdev_inode on the same numa > node as the device to which it is tied. Yecchhh

Re: urandom is too slow

2012-10-30 Thread Pádraig Brady
On 10/30/2012 06:54 PM, Theodore Ts'o wrote: On Tue, Oct 30, 2012 at 04:55:22PM +0200, Lasse Kärkkäinen wrote: Apparently there has been little or no development on urandom even though the device is in widespread use for disk shredding and such use. The device emits data at rather slow rate of 1

Re: [PATCH 1/2] ARM: OMAP2+: move mailbox.h out of plat-omap headers

2012-10-30 Thread Greg Kroah-Hartman
On Tue, Oct 30, 2012 at 09:24:42AM -0700, Tony Lindgren wrote: > * Omar Ramirez Luna [121030 05:20]: > > Tony, > > > > On 29 October 2012 12:52, Tony Lindgren wrote: > > >> --- /dev/null > > >> +++ b/include/linux/platform_data/omap_mailbox.h > > >> @@ -0,0 +1,105 @@ > > > > > > This file should

[PATCH 2/6] clk, highbank: remove non-bypass reset mode

2012-10-30 Thread Mark Langsdorf
The highbank clock will glitch if the clock rate is reset without relocking the PLL. Remove the option to attempt reseting without relocking. Signed-off-by: Mark Langsdorf Signed-off-by: Rob Herring --- drivers/clk/clk-highbank.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff -

Re: [PATCH 1/2] mm: refactor reinsert of swap_info in sys_swapoff

2012-10-30 Thread Andrew Morton
On Sat, 27 Oct 2012 19:20:46 -0200 Cesar Eduardo Barros wrote: > The block within sys_swapoff which re-inserts the swap_info into the > swap_list in case of failure of try_to_unuse() reads a few values outside > the swap_lock. While this is safe at that point, it is subtle code. > > Simplify the

[PATCH 1/6] arm: use devicetree to get smp_twd clock

2012-10-30 Thread Mark Langsdorf
From: Rob Herring Signed-off-by: Rob Herring Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org --- arch/arm/kernel/smp_twd.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c index b22d700.

Re: [PATCH] x86, add hypervisor name to dump_stack() [v4]

2012-10-30 Thread Borislav Petkov
On Tue, Oct 30, 2012 at 04:26:33PM -0400, Prarit Bhargava wrote: > Debugging crash, panics, stack trace WARN_ONs, etc., from both virtual and > bare-metal boots can get difficult very quickly. While there are ways to > decipher the output and determine if the output is from a virtual guest, > the

[PATCH 6/6] cpufreq, highbank: add support for highbank cpufreq

2012-10-30 Thread Mark Langsdorf
Highbank processors depend on the external ECME to perform voltage management based on a requested frequency. Communication between the highbank and ECME cores happens over the pl320 IPC channel. Signed-off-by: Mark Langsdorf Cc: cpuf...@vger.kernel.org Cc: Rafael J. Wysocki --- .../bindings/c

[PATCH 0/6] cpufreq: add support for Calxeda ECX-1000 (highbank)

2012-10-30 Thread Mark Langsdorf
This patch series adds cpufreq support for the Calxeda ECX-1000 (highbank) SoCs. The driver is based on the cpufreq-cpu0 driver. Because of the unique way that highbank uses the EnergyCore Management Engine to manage voltages, it was not possible to use the cpufreq-cpu0 driver. --Mark Langsdorf C

[PATCH 5/6] power: export opp cpufreq functions

2012-10-30 Thread Mark Langsdorf
Signed-off-by: Mark Langsdorf Cc: linux...@vger.kernel.org --- drivers/base/power/opp.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c index d946864..37dc5f4 100644 --- a/drivers/base/power/opp.c +++ b/drivers/base/power/opp.c @@ -23,6

[PATCH 4/6] arm highbank: add support for pl320 IPC

2012-10-30 Thread Mark Langsdorf
From: Rob Herring The pl320 IPC allows for interprocessor communication between the highbank A9 and the EnergyCore Management Engine. The pl320 implements a straightforward mailbox protocol. Signed-off-by: Mark Langsdorf Signed-off-by: Rob Herring --- arch/arm/include/asm/pl320-ipc.h

[PATCH 3/6] cpufreq: tolerate inexact values when collecting stats

2012-10-30 Thread Mark Langsdorf
Allow frequency values to vary by +/-5000 Hz when collecting stats. Signed-off-by: Mark Langsdorf Cc: cpuf...@vger.kernel.org Cc: Rafael J. Wysocki --- drivers/cpufreq/cpufreq_stats.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq_stats.c b/

Re: [PATCH 1/2] zram: factor-out zram_decompress_page() function

2012-10-30 Thread Sergey Senozhatsky
On (10/29/12 10:14), Nitin Gupta wrote: > == > zram: Fix use-after-free in partial I/O case > > When the compressed size of a page exceeds a threshold, the page is > stored as-is i.e. in uncompressed form. In the partial I/O i.e. > non-PAGE_SIZE'ed I/O case, however, the uncompressed memory wa

fs/proc/base.c: text md5sums; tgid vs tid; and INF vs ONE?

2012-10-30 Thread Arvid Brodin
Hi, Below is a patch that adds a file /proc/PID/text_md5sum which when read returns the md5 checksum of a process' text segment. (This would be used e.g. to make sure a process' code hasn't been tampered with.) However, I have a few questions: * What's the difference between the tgid_base_stuf

Re: [PATCH 16/23] pefile: Parse a PE binary to find a key and a signature contained therein

2012-10-30 Thread Kees Cook
On Tue, Oct 30, 2012 at 12:21 PM, David Howells wrote: > Parse a PE binary to find a key and a signature contained therein. Later > patches will check the signature and add the key if the signature checks out. > > Signed-off-by: David Howells > --- > > crypto/asymmetric_keys/Kconfig |

Re: [PATCH 2/2] ACPI, ia64: export acpi_[un]register_gsi()

2012-10-30 Thread Konrad Rzeszutek Wilk
On Mon, Oct 29, 2012 at 11:26:32AM +0200, Mika Westerberg wrote: > These functions might be called from modules as well so make sure they are > exported. > > Signed-off-by: Mika Westerberg > --- > arch/ia64/kernel/acpi.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/ia64/kerne

Re: [PATCH 1/2] ACPI, x86: export acpi_[un]register_gsi()

2012-10-30 Thread Konrad Rzeszutek Wilk
On Mon, Oct 29, 2012 at 11:26:31AM +0200, Mika Westerberg wrote: > From: Andy Shevchenko > > These functions might be called from modules as well so make sure they are > exported. In addition we implement empty version of acpi_unregister_gsi() and > remove the one from pci_irq.c. > > Signed-off-

Re: [PATCH 17/23] pefile: Strip the wrapper off of the cert data block

2012-10-30 Thread Kees Cook
On Tue, Oct 30, 2012 at 12:21 PM, David Howells wrote: > The certificate data block in a PE binary has a wrapper around the PKCS#7 > signature we actually want to get at. Strip this off and check that we've got > something that appears to be a PKCS#7 signature. > > Signed-off-by: David Howells >

[PULL] IBM vTPM driver update

2012-10-30 Thread Kent Yoder
Hi James, Please pull as an update for 3.7. Thanks, Kent The following changes since commit 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64: Linux 3.7-rc3 (2012-10-28 12:24:48 -0700) are available in the git repository at: git://github.com/shpedoikal/linux.git tpmdd-v3.7-rc3 for you to fetch c

Re: [patch 05/10] vfs: pass data to alloc_inode super operation

2012-10-30 Thread Al Viro
On Tue, Oct 30, 2012 at 08:51:42PM +, Al Viro wrote: > On Tue, Oct 30, 2012 at 04:14:39PM -0400, Jeff Moyer wrote: > > This patch passes a data pointer along to the alloc_inode > > super_operations function. The value will initially be used by > > bdev_alloc_inode to allocate the bdev_inode on

[PATCH V2 0/3] Removing the use of VLAIS from USB Gadget and netfilter

2012-10-30 Thread Behan Webster
This is a V2 version of the patch set I previously sent out. Since the use of a new valign.h file spans both the USB and netfilter subsystems, I should have sent out all 3 patches to both trees at once. Assuming all is well, hopefully both subsystems can cooperate to get these patches in without ca

[PATCH V2 3/3] Remove VLAIS usage from netfilter

2012-10-30 Thread Behan Webster
From: Jan-Simon Möller The use of variable length arrays in structs (VLAIS) in the Linux Kernel code precludes the use of compilers which don't implement VLAIS (for instance the Clang compiler). This patch instead calculates offsets into the kmalloc-ed memory buffer using macros from valign.h. P

[PATCH V2 2/3] Remove VLAIS usage from gadget code

2012-10-30 Thread Behan Webster
The use of variable length arrays in structs (VLAIS) in the Linux Kernel code precludes the use of compilers which don't implement VLAIS (for instance the Clang compiler). This patch instead calculates offsets into the kmalloc-ed memory buffer using macros from valign.h. Signed-off-by: Behan Webst

[PATCH V2 1/3] Helper macros used for replacing the use of VLAIS

2012-10-30 Thread Behan Webster
The use of variable length arrays in structs (VLAIS) in the Linux Kernel code precludes the use of compilers which don't implement VLAIS (for instance the Clang compiler). This new header file contains macros which can be used to calculate the size and offset of variables in an allocated buffer of

Re: fs/proc/base.c: text md5sums; tgid vs tid; and INF vs ONE?

2012-10-30 Thread Al Viro
On Tue, Oct 30, 2012 at 09:02:33PM +, Arvid Brodin wrote: > +config PROC_TEXT_MD5SUM > + bool "/proc//text_md5sum support" > + depends on PROC_FS > + select CRYPTO > + select CRYPTO_MD5 > + help > + Read /proc//text_md5sum to get the kernel to perform an MD5 > +

Re: fs/proc/base.c: text md5sums; tgid vs tid; and INF vs ONE?

2012-10-30 Thread Cyrill Gorcunov
On Tue, Oct 30, 2012 at 09:02:33PM +, Arvid Brodin wrote: > Hi, > > Below is a patch that adds a file /proc/PID/text_md5sum which when read > returns the md5 > checksum of a process' text segment. (This would be used e.g. to make sure a > process' > code hasn't been tampered with.) > > Howe

Re: [3.6.2] oops @ opteron server: mgag200 Fatal error during GPU init

2012-10-30 Thread David Airlie
> On Friday 19 of October 2012 07:37:55 Don Morris wrote: > > [drm:mga_vram_init] ERROR can't reserve VRAM > > Hi again, small update. > > i've figured out that loading uvesafb before mgag200 is causing this > vram-reserve-error. I think we need to kick uvesafb off like we kick efi and vesafb.

Re: NULL pointer dereference at fat_detach

2012-10-30 Thread Paul Bolle
On Tue, 2012-10-30 at 14:44 +0100, Stanislaw Gruszka wrote: > From time to time Fedora users reports crash at fat_detach. > It happens randomly and seldom. Seems to be related with > unmount operation. > > Early reports are from 3.0 and problem still randomly occurs > on recent kernels. > > Callt

Re: [PATCH 2/5] mm, highmem: remove useless pool_lock

2012-10-30 Thread Andrew Morton
On Mon, 29 Oct 2012 04:12:53 +0900 Joonsoo Kim wrote: > The pool_lock protects the page_address_pool from concurrent access. > But, access to the page_address_pool is already protected by kmap_lock. > So remove it. Well, there's a set_page_address() call in mm/page_alloc.c which doesn't have loc

Re: urandom is too slow

2012-10-30 Thread Alan Cox
> If you just want to wipe a disk, you shouldn't be using /dev/urandom for that > purpose. If you want to wipe a disk issue a security erase command via hdparm. There is no guarantee that simply writing crap all over it will re-use the same sectors of physical media, and for a flash drive it cause

Re: [PATCH v8 01/16] hashtable: introduce a small and naive hashtable

2012-10-30 Thread Tejun Heo
Hello, Just some nitpicks. On Tue, Oct 30, 2012 at 02:45:57PM -0400, Sasha Levin wrote: > +/* Use hash_32 when possible to allow for fast 32bit hashing in 64bit > kernels. */ > +#define hash_min(val, bits) > \ > +({

[PATCH] arm/dts: Add basic support for gta04 (Openmoko next generation) board.

2012-10-30 Thread Marek Belisko
Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dts | 65 + 1 file changed, 65 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-gta04.dts diff --git a/arch/arm/boot/dts/omap3-gta04.dts b/arch/arm/boot/dts/omap3-gta04.dts new file mod

Re: [PATCH 20/23] pefile: Digest the PE binary and compare to the PKCS#7 data

2012-10-30 Thread Kees Cook
On Tue, Oct 30, 2012 at 12:22 PM, David Howells wrote: > Digest the signed parts of the PE binary, canonicalising the section table > before we need it, and then compare the the resulting digest to the one in the > PKCS#7 signed content. > > Signed-off-by: David Howells > --- > > crypto/asymmetr

[PATCH 1/2] leds/tca6507: Add support for devicetree.

2012-10-30 Thread Marek Belisko
Support added only for leds (not for gpio's). Signed-off-by: Marek Belisko --- drivers/leds/leds-tca6507.c | 73 +-- 1 file changed, 70 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-tca6507.c b/drivers/leds/leds-tca6507.c index dabcf7a..4

[PATCH 2/2] Add documentation for tca6507 devicetree bindings.

2012-10-30 Thread Marek Belisko
Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/leds/tca6507.txt | 33 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/tca6507.txt diff --git a/Documentation/devicetree/bindings/leds/tca6507.txt b/Documentatio

XFS status update for September 2012

2012-10-30 Thread Christoph Hellwig
September saw the release of Linux 3.6 which included a slightly smaller than usual XFS update: 51 files changed, 2607 insertions(+), 2455 deletions(-) The bulk of the changes in Linux 3.6 is made up by native support for discontinuous buffers, with various minor bug fixes and cleanups making up

Re: [PATCHv2] Input: omap4-keypad: Add pinctrl support

2012-10-30 Thread Linus Walleij
On Tue, Oct 30, 2012 at 7:37 PM, Mark Brown wrote: > More seriously the amount of time we seem to have been spending recently > on changes which end up requiring us to go through essentially every > driver and add code to them (often several times) doesn't seem like > we're doing a good job here.

Re: [PATCH v4 8/9] bug.h: Add BUILD_BUG_ON_MSG & _BUILD_BUG_INTERNAL

2012-10-30 Thread Borislav Petkov
On Tue, Oct 30, 2012 at 06:17:47PM +0100, Borislav Petkov wrote: > can BUILD_BUG_ON and BUILD_BUG_ON_MSG both use __BUILD_BUG_INTERNAL? > > In the BUILD_BUG_ON msg will be "BUILD_BUG_ON failed" and line empty. > Can that even work? Yes it can, I should simply look at patch 9/9 first :-). -- Rega

Re: [PATCH 1/4] module: add syscall to load module from fd

2012-10-30 Thread Kees Cook
On Mon, Oct 22, 2012 at 12:39 AM, Rusty Russell wrote: > "Michael Kerrisk (man-pages)" writes: >>> FIX: add flags arg to sys_finit_module() >>> >>> Thanks to Michael Kerrisk for keeping us honest. >> >> w00t! Thanks, Rusty ;-). >> >> Acked-by: Michael Kerrisk > > Here's the version I ended up wi

[GIT PULL] Fix a cmci discovery problem

2012-10-30 Thread Luck, Tony
The following changes since commit 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64: Linux 3.7-rc3 (2012-10-28 12:24:48 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git tags/please-pull-tangchen for you to fetch changes up to 85b97637bb40a9f4

[PATCH 08/25] perf tests: Add attr record count test

2012-10-30 Thread Jiri Olsa
Adding test to validate perf_event_attr data for command: 'record -c 123' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-record-count | 8 1 file

[PATCH 09/25] perf tests: Add attr record graph test

2012-10-30 Thread Jiri Olsa
Adding tests to validate perf_event_attr data for commands: 'record -g --' 'record -g fp 'record -g dwarf Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/te

[PATCH 16/25] perf tests: Add attr record branch any test

2012-10-30 Thread Jiri Olsa
From: "jo...@redhat.com" Adding test to validate perf_event_attr data for command: 'record -b' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-record-bra

[PATCH 19/25] perf tests: Add attr stat no-inherit test

2012-10-30 Thread Jiri Olsa
Adding test to validate perf_event_attr data for command: 'stat -i' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-stat-no-inherit | 7 +++ 1 file cha

[PATCH 21/25] perf tests: Add attr stat event syntax group test

2012-10-30 Thread Jiri Olsa
Adding test to validate perf_event_attr data for command: 'stat -e {cycles,instructions}' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-stat-group1 | 17

[PATCH 00/25] perf test: Add perf_event_attr tests

2012-10-30 Thread Jiri Olsa
hi, this code tests the link between perf stat/record command line options and final perf_event_attr struct values. Also it tests the group fd linkage. Plus moving test related objects under 'test' directory. Attached patches: 01/25 perf tools: Remove BINDIR define from exec_cmd.o 02/25 perf

[PATCH 24/25] perf tests: Add attr tests under builtin test command

2012-10-30 Thread Jiri Olsa
The test attr suite is run only if it's run under perf source directory, or tests are found in installed path. Otherwise tests are omitted (notification is displayed) and finished as successful. Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul

[PATCH 25/25] perf tests: Add documentation for attr tests

2012-10-30 Thread Jiri Olsa
Adding documentation for attr tests. Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/README | 64 1 file changed, 64

[PATCH 23/25] perf tests: Add attr stat default test

2012-10-30 Thread Jiri Olsa
From: "jo...@redhat.com" Adding test to validate perf_event_attr data for commands: 'stat -d' 'stat -dd' 'stat -ddd' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/

[PATCH 13/25] perf tests: Add attr record data test

2012-10-30 Thread Jiri Olsa
From: "jo...@redhat.com" Adding test to validate perf_event_attr data for command: 'record -d' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-record-dat

[PATCH 12/25] perf tests: Add attr record no-inherit test

2012-10-30 Thread Jiri Olsa
Adding test to validate perf_event_attr data for command: 'record -i' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-record-no-inherit | 7 +++ 1 file

[PATCH 18/25] perf tests: Add attr stat basic test

2012-10-30 Thread Jiri Olsa
Adding test to validate perf_event_attr data for command: 'stat -e cycles' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/base-stat | 40

[PATCH 22/25] perf tests: Add attr stat default test

2012-10-30 Thread Jiri Olsa
From: "jo...@redhat.com" Adding test to validate perf_event_attr data for command: 'stat' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-stat-default |

[PATCH 20/25] perf tests: Add attr stat group test

2012-10-30 Thread Jiri Olsa
Adding test to validate perf_event_attr data for command: 'stat --group -e cycles,instructions' Signed-off-by: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker --- tools/perf/tests/attr/test-stat-group

<    1   2   3   4   5   6   7   8   9   >