Re: [PATCH v5 00/12] KVM: introduce readonly memslot

2012-08-15 Thread Xiao Guangrong
On 08/14/2012 11:25 PM, Marcelo Tosatti wrote: > On Tue, Aug 14, 2012 at 10:58:07AM +0800, Xiao Guangrong wrote: >> On 08/14/2012 01:39 AM, Marcelo Tosatti wrote: >>> On Sat, Aug 11, 2012 at 11:36:20AM +0800, Xiao Guangrong wrote: On 08/11/2012 02:14 AM, Marcelo Tosatti wrote: > On Tue,

Re: [patch net-next v2 01/15] net: introduce upper device lists

2012-08-15 Thread Jiri Pirko
Thu, Aug 16, 2012 at 12:15:49AM CEST, da...@davemloft.net wrote: >From: Jiri Pirko >Date: Wed, 15 Aug 2012 09:46:12 +0200 > >> You are probably right. I'm not sure how to handle this correctly >> though. Adding some hard limit number might not be correct. > >I would just use a hard limit of

RE: [PATCH] rtc: tps65910: Add RTC driver for TPS65910 PMIC RTC

2012-08-15 Thread Venu Byravarasu
Hi Andrew, Already an updated patch v3 (http://lkml.org/lkml/2012/8/8/221 ) was pushed to fix these issues. Plz review and merged that. Thanks, Venu > -Original Message- > From: Andrew Morton [mailto:a...@linux-foundation.org] > Sent: Wednesday, August 15, 2012 5:22 AM > To: Venu

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Matthew Garrett
On Thu, Aug 16, 2012 at 01:39:36PM +0800, Alex Shi wrote: > On 08/16/2012 01:31 PM, Matthew Garrett wrote: > > will tend to split them across packages? > > > No, there is still has balance idea in this rough proposal. If a domain > is not overload, it is better to left old tasks unchanged. I

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Alex Shi
On 08/16/2012 01:31 PM, Matthew Garrett wrote: > On Thu, Aug 16, 2012 at 01:03:32PM +0800, Alex Shi wrote: >> On 08/16/2012 12:19 AM, Matthew Garrett wrote: >>> Are there workloads in which "power" might provide more performance than >>> "performance"? If so, don't use these terms. >> >> Power

linux-next: Tree for Aug 16

2012-08-15 Thread Stephen Rothwell
Hi all, Changes since 20120814: The infiniband tree gained a build failure so I used the version from next-20120814. The regulator tree gained a build failure for which I applied a patch. The l2-mtd tree lost its conflict. The hid tree gained a build failure for which I applied a patch. The

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

2012-08-15 Thread Jonathan Cameron
"Kim, Milo" wrote: >> > + switch (mask) { >> > + case IIO_CHAN_INFO_RAW: >> > + *val = result; >> > + return IIO_VAL_INT; >> > + case IIO_CHAN_INFO_SCALE: >> > + *val = adc_const[id] * ((result * 1000 + 500) / 1000); >> >> This looks wrong. The

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Matthew Garrett
On Thu, Aug 16, 2012 at 01:03:32PM +0800, Alex Shi wrote: > On 08/16/2012 12:19 AM, Matthew Garrett wrote: > > Are there workloads in which "power" might provide more performance than > > "performance"? If so, don't use these terms. > > Power scheme should no chance has better performance in

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Alex Shi
On 08/15/2012 10:55 PM, Peter Zijlstra wrote: > On Wed, 2012-08-15 at 20:24 +0600, Rakib Mullick wrote: >> How do you plan to test this power saving scheme? Using powertop? Or, >> is there any other tools? > > We should start out simple enough that we can validate it by looking at > task

linux-next: build failure after merge of the final tree (hid tree related)

2012-08-15 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/hid/hid-picolcd_fb.c: In function 'picolcd_fb_destroy': drivers/hid/hid-picolcd_fb.c:350:2: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]

[PATCH v4] mmc: card: Skip secure option for MoviNAND.

2012-08-15 Thread IAN CHEN
For several MoviNAND, there are some known issue with secure option. For these specific MoviNAND device, we skip secure option. You could refer this discussion in XDA developers. http://forum.xda-developers.com/showthread.php?t=1644364

linux-next: build failure after merge of the final tree (regulator tree related)

2012-08-15 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/regulator/twl-regulator.c: In function 'twlreg_probe': drivers/regulator/twl-regulator.c:1229:3: error: implicit declaration of function 'kfree'

Re: [PATCH] add support bluetooth usb 0489:e046 Foxconn / Hon Hai

2012-08-15 Thread Gustavo Padovan
Hi, * koko Aborigines <7aborigin...@gmail.com> [2012-08-16 10:12:44 +0700]: > Hi, Gustavo > > i have error with your patch > > CC [M] drivers/bluetooth/btusb.o > drivers/bluetooth/btusb.c:113:2: error: implicit declaration of function > ‘USB_VENDOR_AND_INTERFACE_INFO’

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Alex Shi
On 08/16/2012 12:19 AM, Matthew Garrett wrote: > On Mon, Aug 13, 2012 at 08:21:00PM +0800, Alex Shi wrote: > >> power aware scheduling), this proposal will adopt the >> sched_balance_policy concept and use 2 kind of policy: performance, power. > > Are there workloads in which "power" might

[git pull] more drm fixes

2012-08-15 Thread Dave Airlie
Just some intel and nouveau ones this time, intel has more edp panel fixes for macbooks and nouveau has a suspend/resume regression fix in there. Dave. The following changes since commit 7bac6b46607f2f44075cb45dd5b0b4d2e7c80695: Merge branch 'drm-fixes-3.6' of

Re: [PATCH v3 2/2] powerpc: Uprobes port to powerpc

2012-08-15 Thread Ananth N Mavinakayanahalli
On Thu, Aug 16, 2012 at 07:41:53AM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2012-08-15 at 18:59 +0200, Oleg Nesterov wrote: > > On 07/26, Ananth N Mavinakayanahalli wrote: > > > > > > From: Ananth N Mavinakayanahalli > > > > > > This is the port of uprobes to powerpc. Usage is similar to

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Alex Shi
On 08/15/2012 10:24 PM, Rakib Mullick wrote: > On 8/13/12, Alex Shi wrote: >> Since there is no power saving consideration in scheduler CFS, I has a >> very rough idea for enabling a new power saving schema in CFS. >> >> It bases on the following assumption: >> 1, If there are many task crowd in

Re: [PATCH 00/14] net: info leaks and other bugs

2012-08-15 Thread David Miller
From: Mathias Krause Date: Wed, 15 Aug 2012 23:31:43 +0200 > this series fixes quite a bunch of info leaks under net/. There is also > one NULL pointer deref fix ("dccp: check ccid before..") that could be > abused for privilege escalation. > > The info leak fixes might be material for stable,

Re: + lib-vsprintf-optimize-division-by-10000.patch added to -mm tree

2012-08-15 Thread George Spelvin
Thanks for picking this up. (I'm kind of amazed you found it!) I was hoping for an ack from Denys Vlasenko, but he hasn't made any appearances in a while. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

[PATCH] regulator: max8907: Fix n_voltages for MAX8907B SD1

2012-08-15 Thread Axel Lin
For linear voltage mapping, the n_voltages is (max - min) / step + 1 Signed-off-by: Axel Lin --- drivers/regulator/max8907-regulator.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/max8907-regulator.c b/drivers/regulator/max8907-regulator.c index

Re: [PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-15 Thread Mike Galbraith
On Wed, 2012-08-15 at 08:10 -0700, Josh Triplett wrote: > On Wed, Aug 15, 2012 at 09:12:20AM +0200, Mike Galbraith wrote: > > On Tue, 2012-08-14 at 13:50 -0700, Trevor Brandt wrote: > > > diff --git a/init/Kconfig b/init/Kconfig > > > index 3f42cd6..768dc76 100644 > > > --- a/init/Kconfig > > >

[PATCH] sched: Remove AFFINE_WAKEUPS feature flag

2012-08-15 Thread Namhyung Kim
From: Namhyung Kim Commit beac4c7e4a1c ("sched: Remove AFFINE_WAKEUPS feature") removed use of the flag but left the definition. Get rid of it. Cc: Mike Galbraith Signed-off-by: Namhyung Kim --- kernel/sched/features.h | 8 1 file changed, 8 deletions(-) diff --git

Re: [v2.6.34-stable 035/165] md: Fix handling for devices from 2TB to 4TB in 0.90 metadata.

2012-08-15 Thread Ben Hutchings
On Thu, 2012-08-16 at 06:46 +1000, NeilBrown wrote: > On Wed, 15 Aug 2012 15:46:19 -0400 Paul Gortmaker > wrote: > > > From: NeilBrown > > > >--- > > This is a commit scheduled for the next v2.6.34 longterm release. > > > >

powerpc/perf: hw breakpoints return ENOSPC

2012-08-15 Thread Michael Neuling
Hi, I've been trying to get hardware breakpoints with perf to work on POWER7 but I'm getting the following: % perf record -e mem:0x1000 true Error: sys_perf_event_open() syscall returned with 28 (No space left on device). /bin/dmesg may provide additional information. Fatal: No

Re: [PATCH v3] mmc: card: Skip secure option for MoviNAND.

2012-08-15 Thread Jaehoon Chung
On 08/16/2012 01:09 PM, IAN CHEN wrote: > MMC_QUIRK_SEC_ERASE_TRIM_BROKEN seems quite clear but I might not use "SEC" > due to it could be Samsung Electronics Corporation. I didn't think so. MMC developers didn't think that SEC means Samsung Electronics Corporation. Already we used the flags with

[ANNOUNCE} 3.5-ck1, BFS scheduler v0.24 for linux-3.5

2012-08-15 Thread Con Kolivas
These are patches designed to improve system responsiveness and interactivity with specific emphasis on the desktop, but suitable to any commodity hardware workload. Apply to 3.5.x: http://ck.kolivas.org/patches/3.0/3.5/3.5-ck1/patch-3.5-ck1.bz2 or

RE: [PATCH v3] mmc: card: Skip secure option for MoviNAND.

2012-08-15 Thread IAN CHEN
MMC_QUIRK_SEC_ERASE_TRIM_BROKEN seems quite clear but I might not use "SEC" due to it could be Samsung Electronics Corporation. So, how about MMC_QUIRK_SECDISCARD_BROKEN which was used in mmc_blk_issue_secdiscard_rq() naming, the function we skip. Or, MMC_QUIRK_SECERASE_SECTRIM_BROKEN? Regards,

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

2012-08-15 Thread Roland Dreier
On Wed, Aug 15, 2012 at 6:44 PM, Stephen Rothwell wrote: > After merging the infiniband tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > drivers/net/ethernet/mellanox/mlx4/mr.c: In function 'mlx4_buddy_init': > drivers/net/ethernet/mellanox/mlx4/mr.c:134:4: error:

[PATCH] SGI XPC fails to load when cpu 0 is out of IRQ resources. -v2

2012-08-15 Thread Robin Holt
On many of our larger systems, CPU 0 has had all of its IRQ resources consumed before XPC loads. Worst cases on machines with multiple 10 GigE cards and multiple IB cards have depleted the entire first socket of IRQs. This patch makes selecting the node upon which IRQs are allocated (as well as

linux-next: manual merge of the kvm tree with the s390 tree

2012-08-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in arch/s390/include/asm/processor.h between commit 3c011c612acb ("s390/bpf,jit: BPF Just In Time compiler for s390") from the s390 tree and commit 9b7fb990e080 ("s390, /dis: Instruction decoding interface") from the kvm tree. Just

Re: [PATCH V2] MIPS: Fix poweroff failure when HOTPLUG_CPU configured.

2012-08-15 Thread Huacai Chen
On Tue, Aug 14, 2012 at 7:48 PM, Ralf Baechle wrote: > On Mon, Aug 13, 2012 at 08:52:24PM +0800, Huacai Chen wrote: > >> When poweroff machine, kernel_power_off() call disable_nonboot_cpus(). >> And if we have HOTPLUG_CPU configured, disable_nonboot_cpus() is not an >> empty function but attempt

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-15 Thread Greg Thelen
On Wed, Aug 15 2012, Glauber Costa wrote: > On 08/15/2012 09:12 PM, Greg Thelen wrote: >> On Wed, Aug 15 2012, Glauber Costa wrote: >> >>> On 08/15/2012 08:38 PM, Greg Thelen wrote: On Wed, Aug 15 2012, Glauber Costa wrote: > On 08/14/2012 10:58 PM, Greg Thelen wrote: >> On

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Alex Shi
On 08/15/2012 10:43 PM, Peter Zijlstra wrote: > On Wed, 2012-08-15 at 15:15 +0200, Borislav Petkov wrote: >> On Wed, Aug 15, 2012 at 01:05:38PM +0200, Peter Zijlstra wrote: >>> On Mon, 2012-08-13 at 20:21 +0800, Alex Shi wrote: Since there is no power saving consideration in scheduler CFS, I

Re: [PATCH V5 13/18] drm: Define SAREA_MAX for Loongson (PageSize = 16KB).

2012-08-15 Thread Huacai Chen
On Thu, Aug 16, 2012 at 9:58 AM, Matt Turner wrote: > On Sat, Aug 11, 2012 at 2:32 AM, Huacai Chen wrote: >> Signed-off-by: Huacai Chen >> Signed-off-by: Hongliang Tao >> Signed-off-by: Hua Yan >> Cc: dri-de...@lists.freedesktop.org >> --- >> include/drm/drm_sarea.h |2 ++ >> 1 files

Re: [PATCH V5 09/18] MIPS: Loongson: Add swiotlb to support big memory (>4GB).

2012-08-15 Thread Huacai Chen
On Thu, Aug 16, 2012 at 4:24 AM, Ralf Baechle wrote: > On Mon, Aug 13, 2012 at 01:54:47PM -0400, Konrad Rzeszutek Wilk wrote: > >> > +static void *loongson_dma_alloc_coherent(struct device *dev, size_t size, >> > + dma_addr_t *dma_handle, gfp_t gfp, struct >> >

Repeated fork() causes SLAB to grow without bound

2012-08-15 Thread Daniel Forrest
I'm hoping someone has seen this before... I've been trying to track down a performance problem with Linux 3.0.4. The symptom is system-mode load increasing over time while user-mode load remains constant while running a data ingest/processing program. Looking at /proc/meminfo I noticed

linux-next: build failure after merge of the tip tree

2012-08-15 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: drivers/infiniband/hw/ehca/ehca_irq.c: In function 'find_next_online_cpu': drivers/infiniband/hw/ehca/ehca_irq.c:672:2: error: expected ';' before 'spin_unlock_irqrestore' Caused by commit

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Alex Shi
On 08/15/2012 09:15 PM, Borislav Petkov wrote: > On Wed, Aug 15, 2012 at 01:05:38PM +0200, Peter Zijlstra wrote: >> On Mon, 2012-08-13 at 20:21 +0800, Alex Shi wrote: >>> Since there is no power saving consideration in scheduler CFS, I has a >>> very rough idea for enabling a new power saving

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Alex Shi
Appreciate for your so detailed review and comments! On 08/15/2012 07:05 PM, Peter Zijlstra wrote: > On Mon, 2012-08-13 at 20:21 +0800, Alex Shi wrote: >> Since there is no power saving consideration in scheduler CFS, I has a >> very rough idea for enabling a new power saving schema in CFS. >

[PATCH V3 5/5] arm: mmp: make all SOCs use common clock by default

2012-08-15 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- arch/arm/mach-mmp/Kconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index 7fddd01..d697d07 100644 --- a/arch/arm/mach-mmp/Kconfig +++ b/arch/arm/mach-mmp/Kconfig @@

[PATCH V3 4/5] clk: mmp: add clock definition for mmp2

2012-08-15 Thread Chao Xie
From: Chao Xie Initialize the clocks for mmp2 Signed-off-by: Chao Xie --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-mmp2.c | 544 2 files changed, 545 insertions(+), 0 deletions(-) create mode 100644 drivers/clk/mmp/clk-mmp2.c

[PATCH V3 3/5] clk: mmp: add clock definition for pxa910

2012-08-15 Thread Chao Xie
From: Chao Xie Initialize the clocks for pxa910 Signed-off-by: Chao Xie --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-pxa910.c | 380 ++ 2 files changed, 381 insertions(+), 0 deletions(-) create mode 100644

[PATCH V3 2/5] clk: mmp: add clock definition for pxa168

2012-08-15 Thread Chao Xie
From: Chao Xie Initialize the clocks for pxa168 Signed-off-by: Chao Xie --- drivers/clk/mmp/Makefile |2 + drivers/clk/mmp/clk-pxa168.c | 414 ++ 2 files changed, 416 insertions(+), 0 deletions(-) create mode 100644

[PATCH V3 1/5] clk: mmp: add mmp specific clocks

2012-08-15 Thread Chao Xie
From: Chao Xie add mmp specific clocks including apbc cloks, apmu clocks, and pll2, fraction clocks Signed-off-by: Chao Xie --- drivers/clk/Makefile |3 + drivers/clk/mmp/Makefile |5 ++ drivers/clk/mmp/clk-apbc.c | 152 +++

[PATCH V3 0/5] clk: mmp: add clock framework for mmp

2012-08-15 Thread Chao Xie
From: Chao Xie v1->v2: replace __raw_xxx with xxx_relax use ioremap to remap the registers. Finaly it will use device tree to get the physical address. do not use macro to register clocks, and directly call the functions. v2->v3: pxa910 will have APB extension clock, so some peripharals will

Re: [RFC PATCH 0/5] net: socket bind to file descriptor introduced

2012-08-15 Thread Eric W. Biederman
Stanislav Kinsbursky writes: > This patch set introduces new socket operation and new system call: > sys_fbind(), which allows to bind socket to opened file. > File to bind to can be created by sys_mknod(S_IFSOCK) and opened by > open(O_PATH). > > This system call is especially required for UNIX

Re: NULL pointer dereference in ext4_ext_remove_space on 3.5.1

2012-08-15 Thread Theodore Ts'o
On Wed, Aug 15, 2012 at 09:33:29PM +0300, Marti Raudsepp wrote: > I was moving and deleting some files between two of my ext4 partitions > when it suddenly crashed and dropped me into an kernel oops screen > (below). I'm using ext4 on kernel 3.5.1 (Arch Linux). > BUG: unable to handle kernel

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

2012-08-15 Thread Ren, Cloud
From: Stephen Hemminger [mailto:shemmin...@vyatta.com] Sent: Wednesday, August 15, 2012 11:02 PM >> + strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - >1); >> ... >> + strcpy(netdev->name, "eth%d"); >> + retval = register_netdev(netdev); >> >>> >>

[PATCH] sched: Add time unit suffix to sched sysctl knobs

2012-08-15 Thread Namhyung Kim
From: Namhyung Kim Unlike others, sched_migration_cost, sched_time_avg and sched_shares_window doesn't have time unit as suffix. Add them. Signed-off-by: Namhyung Kim --- kernel/sysctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/sysctl.c

[PATCH] MAINTAINERS: update address for Dan Williams

2012-08-15 Thread Dan Williams
Moved to d...@fb.com Cc: Dave Jiang Cc: Vinod Koul Signed-off-by: Dan Williams --- MAINTAINERS | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 94b823f..a728dc0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[PATCH V2 3/5] clk: mmp: add clock definition for pxa910

2012-08-15 Thread Chao Xie
From: Chao Xie Initialize the clocks for pxa910 Signed-off-by: Chao Xie --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-pxa910.c | 361 ++ 2 files changed, 362 insertions(+), 0 deletions(-) create mode 100644

[PATCH V2 4/5] clk: mmp: add clock definition for mmp2

2012-08-15 Thread Chao Xie
From: Chao Xie Initialize the clocks for mmp2 Signed-off-by: Chao Xie --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-mmp2.c | 544 2 files changed, 545 insertions(+), 0 deletions(-) create mode 100644 drivers/clk/mmp/clk-mmp2.c

[PATCH V2 2/5] clk: mmp: add clock definition for pxa168

2012-08-15 Thread Chao Xie
From: Chao Xie Initialize the clocks for pxa168 Signed-off-by: Chao Xie --- drivers/clk/mmp/Makefile |2 + drivers/clk/mmp/clk-pxa168.c | 414 ++ 2 files changed, 416 insertions(+), 0 deletions(-) create mode 100644

[PATCH V2 5/5] arm: mmp: make all SOCs use common clock by default

2012-08-15 Thread Chao Xie
From: Chao Xie Signed-off-by: Chao Xie --- arch/arm/mach-mmp/Kconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index 7fddd01..d697d07 100644 --- a/arch/arm/mach-mmp/Kconfig +++ b/arch/arm/mach-mmp/Kconfig @@

[PATCH V2 1/5] clk: mmp: add mmp specific clocks

2012-08-15 Thread Chao Xie
From: Chao Xie add mmp specific clocks including apbc cloks, apmu clocks, and pll2, fraction clocks Signed-off-by: Chao Xie --- drivers/clk/Makefile |3 + drivers/clk/mmp/Makefile |5 ++ drivers/clk/mmp/clk-apbc.c | 152 +++

[PATCH V2 0/5] clk: mmp: add clock framework for mmp

2012-08-15 Thread Chao Xie
From: Chao Xie v1->v2: replace __raw_xxx with xxx_relax use ioremap to remap the registers. Finaly it will use device tree to get the physical address. do not use macro to register clocks, and directly call the functions. Chao Xie (5): clk: mmp: add mmp specific clocks clk: mmp: add clock

Re: [PATCH V5 13/18] drm: Define SAREA_MAX for Loongson (PageSize = 16KB).

2012-08-15 Thread Matt Turner
On Sat, Aug 11, 2012 at 2:32 AM, Huacai Chen wrote: > Signed-off-by: Huacai Chen > Signed-off-by: Hongliang Tao > Signed-off-by: Hua Yan > Cc: dri-de...@lists.freedesktop.org > --- > include/drm/drm_sarea.h |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git

linux-next: build failure after merge of the infiniband tree

2012-08-15 Thread Stephen Rothwell
Hi all, After merging the infiniband tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: drivers/net/ethernet/mellanox/mlx4/mr.c: In function 'mlx4_buddy_init': drivers/net/ethernet/mellanox/mlx4/mr.c:134:4: error: implicit declaration of function 'vzalloc'

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

2012-08-15 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 06/25] MPILIB: Reinstate mpi_cmp[_ui]() and export for RSA signature verification

2012-08-15 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 --- lib/mpi/Makefile |1 + lib/mpi/mpi-cmp.c | 70 + 2 files

[PATCH 09/25] PGPLIB: PGP definitions (RFC 4880)

2012-08-15 Thread David Howells
Provide some useful PGP definitions from RFC 4880. These describe details of public key crypto as used by crypto keys for things like signature verification. Signed-off-by: David Howells --- include/linux/pgp.h | 206 +++ 1 file changed, 206

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

2012-08-15 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 25/25] MODSIGN: Fix documentation of signed-nokey behavior when not enforcing.

2012-08-15 Thread David Howells
jwboyer's previous commit changes the behavior of module signing when there's a valid signature but we don't know the public key and are in permissive mode. This updates the documentation to match. Signed-off-by: Peter Jones Acked-by: Josh Boyer Signed-off-by: David Howells ---

[PATCH 24/25] MODSIGN: Allow modules to be signed with an unknown key unless enforcing

2012-08-15 Thread David Howells
Currently we fail the loading of modules that are signed with a public key that is not in the modsign keyring even if we are not in enforcing mode. This is somewhat at odds with the fact that we allow a completely unsigned module to load in such a case. We should allow modules signed with an

[PATCH 23/25] MODSIGN: Panic the kernel if FIPS is enabled upon module signing failure

2012-08-15 Thread David Howells
If module signing fails when the kernel is running with FIPS enabled then the kernel should panic lest the crypto layer be compromised. Possibly a panic shouldn't happen on cases like ENOMEM. Reported-by: Stephan Mueller Signed-off-by: David Howells --- kernel/module-verify.c |5 + 1

[PATCH 22/25] MODSIGN: Automatically generate module signing keys if missing

2012-08-15 Thread David Howells
Automatically generate keys for module signing if they're absent so that allyesconfig doesn't break. The builder should consider generating their own keyrings, however, so that the keys are appropriately named and any extra keys required get imported. Also change the names of the keyring files

[PATCH 21/25] MODSIGN: Module signature verification

2012-08-15 Thread David Howells
Apply signature checking to modules on module load, checking the signature against the ring of public keys compiled into the kernel (if enabled by CONFIG_MODULE_SIG). There are several reasons why these patches are useful, amongst which are: (1) to prevent accidentally corrupted modules from

[PATCH 20/25] MODSIGN: Provide module signing public keys to the kernel

2012-08-15 Thread David Howells
Include a PGP keyring containing the public keys required to perform module verification in the kernel image during build and create a special keyring during boot which is then populated with keys of crypto type holding the public keys found in the PGP keyring. These can be seen by root:

[PATCH 19/25] MODSIGN: Sign modules during the build process

2012-08-15 Thread David Howells
If CONFIG_MODULE_SIG is set, then this patch will cause the module to get a signature installed. The following steps will occur: (1) The module will be linked to foo.ko.unsigned instead of foo.ko (2) The module will be stripped using both "strip -x -g" and "eu-strip" to ensure minimal

[PATCH 18/25] MODSIGN: Provide Documentation and Kconfig options

2012-08-15 Thread David Howells
Provide documentation and kernel configuration options for module signing. The documentation can be found in: Documentation/module-signing.txt The following configuration options are added: (1) CONFIG_MODULE_SIG Enable module signing. This will both cause the build process to

[PATCH 17/25] MODSIGN: Provide gitignore and make clean rules for extra files

2012-08-15 Thread David Howells
Provide gitignore and make clean rules for extra files to hide and clean up the extra files produced by module signing stuff once it is added. Also add a clean up rule for the module content extractor program used to extract the data to be signed. Signed-off-by: David Howells --- .gitignore |

[PATCH 16/25] KEYS: Provide a function to load keys from a PGP keyring blob

2012-08-15 Thread David Howells
Provide a function to load keys from a PGP keyring blob for use in initialising the module signing key keyring: int load_PGP_keys(const u8 *pgpdata, size_t pgpdatalen, struct key *keyring, const char *descprefix); The keys are labelled with descprefix plus a

[PATCH 15/25] KEYS: Provide PGP key description autogeneration

2012-08-15 Thread David Howells
Provide a facility to autogenerate the name of PGP keys from the contents of the payload. If add_key() is given a blank description, a description is constructed from the last user ID packet in the payload data plus the last 8 hex digits of the key ID. For instance: keyctl padd crypto

[PATCH 14/25] KEYS: PGP format signature parser

2012-08-15 Thread David Howells
Implement a signature parser that will attempt to parse a signature blob as a PGP packet format message. If it can, it will find an appropriate crypto key and set the public-key algorithm according to the data in the signature. Signed-off-by: David Howells --- security/keys/crypto/Makefile

[PATCH 13/25] KEYS: PGP-based public key signature verification

2012-08-15 Thread David Howells
Provide handlers for PGP-based public-key algorithm signature verification. This does most of the work involved in signature verification as most of it is public-key algorithm agnostic. The public-key verification algorithm itself is just the last little bit and is supplied the complete hash data

[PATCH 12/25] KEYS: PGP data parser

2012-08-15 Thread David Howells
Implement a PGP data parser for the crypto key type to use when instantiating a key. This parser attempts to parse the instantiation data as a PGP packet sequence (RFC 4880) and if it parses okay, attempts to extract a public-key algorithm key or subkey from it. If it finds such a key, it will

[PATCH 11/25] PGPLIB: Signature parser

2012-08-15 Thread David Howells
Provide some PGP signature parsing helpers: (1) A function to parse V4 signature subpackets and pass the desired ones to a processor function: int pgp_parse_sig_subpkts(const u8 *data, size_t datalen, struct pgp_parse_sig_context *ctx); (2) A

[PATCH 10/25] PGPLIB: Basic packet parser

2012-08-15 Thread David Howells
Provide a simple parser that extracts the packets from a PGP packet blob and passes the desirous ones to the given processor function: struct pgp_parse_context { u64 types_of_interest; int (*process_packet)(struct pgp_parse_context *context,

Re: [PATCH RESEND] remove the queue unlock in scsi_requset_fn

2012-08-15 Thread Chanho Min
> functions will occur in line. I also don't see why the sdev reference > couldn't drop to zero here. scsi_request_fn is called under the lock of request_queue->queue_lock. If we drop the sdev reference to zero here, scsi_device_dev_release_usercontext is invoked and make request_queue to NULL.

[PATCH 08/25] KEYS: RSA: Fix signature verification for shorter signatures

2012-08-15 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 07/25] KEYS: RSA: Implement signature verification algorithm [PKCS#1 / RFC3447]

2012-08-15 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 --- security/keys/crypto/Kconfig |7 +

[PATCH 05/25] KEYS: Asymmetric public-key algorithm crypto key subtype

2012-08-15 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 --- security/keys/crypto/Kconfig | 10 +++ security/keys/crypto/Makefile |3 + security/keys/crypto/public_key.c | 82

[PATCH 04/25] KEYS: Add signature verification facility

2012-08-15 Thread David Howells
Add a facility whereby a key subtype may be asked to verify a signature against the data it is purported to have signed. This adds four routines: (1) struct crypto_key_verify_context * verify_sig_begin(struct key *keyring, const void *sig, size_t siglen); This sets up a verification

[PATCH 03/25] KEYS: Create a key type that can be used for general cryptographic operations

2012-08-15 Thread David Howells
Create a key type that can be used for general cryptographic operations, such as encryption, decryption, signature generation and signature verification. The key type is "crypto" and can provide access to a variety of cryptographic algorithms. Signed-off-by: David Howells ---

[PATCH 00/25] Crypto keys and module signing

2012-08-15 Thread David Howells
Hi Rusty, I've posted new versions of my module signing patches to my GIT trees. The patches with (approximately) your preferred way of attaching the signature can be found here and I've followed this message with them:

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Arjan van de Ven
On 8/15/2012 6:14 PM, Rik van Riel wrote: > > The idea Matthew and I have is simply planning for a shorter > sleep period (discarding the outliers to the high end in the > function once known as detect_repeating_patterns), and going > to a deeper C state if we have significantly overslept. > >

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Arjan van de Ven
On 8/15/2012 6:14 PM, Rik van Riel wrote: > On 08/15/2012 10:43 AM, Arjan van de Ven wrote: > >> The easy cop-out is provide the sysadmin a slider. >> The slightly less easy one is to (and we're taking this approach >> in the new P state code we're working on) say "in the default >> setting,

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Rik van Riel
On 08/15/2012 10:43 AM, Arjan van de Ven wrote: The easy cop-out is provide the sysadmin a slider. The slightly less easy one is to (and we're taking this approach in the new P state code we're working on) say "in the default setting, we're going to sacrifice up to 5% performance from peak to

Re: O_DIRECT to md raid 6 is slow

2012-08-15 Thread Andy Lutomirski
On Wed, Aug 15, 2012 at 4:50 PM, Stan Hoeppner wrote: > On 8/15/2012 5:10 PM, Andy Lutomirski wrote: >> On Wed, Aug 15, 2012 at 3:00 PM, Stan Hoeppner >> wrote: >>> On 8/15/2012 12:57 PM, Andy Lutomirski wrote: On Wed, Aug 15, 2012 at 4:50 AM, John Robinson wrote: > On 15/08/2012

RE: [PATCH] x86_dump_trace: avoiding endless " " is printed

2012-08-15 Thread Liu, Chuansheng
> The endless " " is as below: > ... > [ 82.215244,0] > [ 82.215399,0] > [ 82.215554,0] > [ 82.215710,0] > [ 82.215865,0] > [ 82.216022,0] > [ 82.216178,0] > [ 82.216333,0] > [ 82.216488,0] > [ 82.216643,0] > [ 82.216798,0] > [ 82.216953,0] > ... >

Re: [NEW DRIVER V3 7/8] DA9058 HWMON driver

2012-08-15 Thread Guenter Roeck
On Wed, Aug 15, 2012 at 04:05:24PM +0100, Anthony Olech wrote: > This is the HWMON component driver of the Dialog DA9058 PMIC. > This driver is just one component of the whole DA9058 PMIC driver. > It depends on the CORE and ADC component drivers of the DA9058 MFD. > If so, please state as

Re: [PATCH V5 13/18] drm: Define SAREA_MAX for Loongson (PageSize = 16KB).

2012-08-15 Thread Huacai Chen
On Thu, Aug 16, 2012 at 5:31 AM, Ralf Baechle wrote: > On Sat, Aug 11, 2012 at 05:32:18PM +0800, Huacai Chen wrote: > >> Subject: [PATCH V5 13/18] drm: Define SAREA_MAX for Loongson (PageSize = >> 16KB). > > But your code doesn't define it just for Loongsson as the log message claims > but

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

2012-08-15 Thread Kim, Milo
> > + switch (mask) { > > + case IIO_CHAN_INFO_RAW: > > + *val = result; > > + return IIO_VAL_INT; > > + case IIO_CHAN_INFO_SCALE: > > + *val = adc_const[id] * ((result * 1000 + 500) / 1000); > > This looks wrong. The IIO_CHAN_INFO_SCALE attribute is the factor

[PATCH 7/7] staging: comedi: contec_pci_dio: cleanup contec_do_insn_bits

2012-08-15 Thread H Hartley Sweeten
Create local variables for the mask and bits values passed in the data pointer to make this function a bit clearer. Return the state of the output bits (s->state) in data[1] since this is what comedilib is expecting. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-hartman ---

[PATCH 6/7] staging: comedi: contec_pci_dio: use attach_pci callback

2012-08-15 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 simply return -ENOSYS. This removes the need to walk to pci bus

[PATCH 5/7] staging: comedi: contec_pci_dio: remove unneeded boardinfo code

2012-08-15 Thread H Hartley Sweeten
The boardinfo code is not needed by this driver. Only one board type is supported. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-hartman --- drivers/staging/comedi/drivers/contec_pci_dio.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git

[PATCH 4/7] staging: comedi: contec_pci_dio: define register map for board

2012-08-15 Thread H Hartley Sweeten
Only one board type is supported by this driver. Instead of passing the register offsets for the digital in/out ports in the boardinfo, define the register map and use that to access the ports. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-hartman ---

[PATCH 3/7] staging: comedi: contec_pci_dio: remove unused fields in the boardinfo

2012-08-15 Thread H Hartley Sweeten
The model, in_ports, out_ports, and out_boffs information in the boardinfo is not used by the driver. Remove them. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-hartman --- drivers/staging/comedi/drivers/contec_pci_dio.c | 6 +- 1 file changed, 1 insertion(+), 5

[PATCH 2/7] staging: comedi: contec_pci_dio: remove function trace messages

2012-08-15 Thread H Hartley Sweeten
The dev_dbg function trace messages in the contec_do_insn_bits and contec_di_insn_bits functions are just noise. Remove them. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-hartman --- drivers/staging/comedi/drivers/contec_pci_dio.c | 9 + 1 file changed, 1

[PATCH 1/7] staging: comedi: contec_pci_dio: remove thisboard macro

2012-08-15 Thread H Hartley Sweeten
This macro relies on a local variable of a specific name. Remove the macro and use the comedi_board() helper to get the thisboard pointer. Move the 'dev->board_name = thisboard->name;' in contec_attach(). The contec_find_pci_dev() function modifies the dev->board_ptr. Signed-off-by: H Hartley

  1   2   3   4   5   6   7   8   9   10   >