[net V2] act_mirred: do not drop packets when fails to mirror it

2012-08-15 Thread Jason Wang
We drop packet unconditionally when we fail to mirror it. This is not intended in some cases. Consdier for kvm guest, we may mirror the traffic of the bridge to a tap device used by a VM. When kernel fails to mirror the packet in conditions such as when qemu crashes or stop polling the tap, it's ha

[PATCH 2/2] devfreq: exynos4: Support initialization of freq_table and max_state of devfreq's profile.

2012-08-15 Thread Jonghwa Lee
This patch initializes freq_table and max_state of devfreq's profile. They will be used for creating transition table. Signed-off-by: Jonghwa Lee --- drivers/devfreq/exynos4_bus.c | 30 +- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/drivers/devfr

[PATCH 1/2] devfreq: Add sysfs node for representing frequency transition information.

2012-08-15 Thread Jonghwa Lee
This patch adds sysfs node which can be used to get information of frequency transition. It represents transition table which contains total number of transition of each freqeuncy state and time spent. It is inspired CPUFREQ's status driver. Signed-off-by: Jonghwa Lee --- drivers/devfreq/devfre

[PATCH 0/2] devfreq: Add sysfs node for representing frequency transition information.

2012-08-15 Thread Jonghwa Lee
This patchset adds sysfs node to devfreq's frame work to measure trasition of frequency on runtime. It will be created under '/sys/class/devfreq//' as the name of 'trans_state'. It contains transition table which represents total number of transition of each frerquency state to others and also t

Re: O_DIRECT to md raid 6 is slow

2012-08-15 Thread Roman Mamedov
On Wed, 15 Aug 2012 18:50:44 -0500 Stan Hoeppner wrote: > TTBOMK there are two, and only two, COW filesystems in existence: ZFS and > BTRFS. There is also NILFS2: http://www.nilfs.org/en/ And in general, any https://en.wikipedia.org/wiki/Log-structured_file_system is COW by design, but afaik o

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

2012-08-15 Thread NeilBrown
On Thu, 16 Aug 2012 05:24:33 +0100 Ben Hutchings wrote: > 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

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

2012-08-15 Thread preeti
Hi everyone, >From what I have understood so far,I try to summarise pin pointed differences between the performance and power policies as found relevant to the scheduler-load balancing mechanism.Any thoughts? *Performance policy*: Q1.Who triggers load_balance? Load balance is triggered when a c

Re: [PATCH v3] mm: Restructure kmem_cache_create() to move debug cache integrity checks into a new function

2012-08-15 Thread Pekka Enberg
On Thu, Aug 16, 2012 at 2:53 AM, Andrew Morton wrote: > On Sun, 12 Aug 2012 10:40:18 -0600 > Shuah Khan wrote: > >> kmem_cache_create() does cache integrity checks when CONFIG_DEBUG_VM >> is defined. These checks interspersed with the regular code path has >> lead to compile time warnings when co

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

2012-08-15 Thread Arnd Bergmann
On Thursday 16 August 2012, Stephen Rothwell wrote: > From: Stephen Rothwell > Date: Thu, 16 Aug 2012 15:11:22 +1000 > Subject: [PATCH] regulator: using kfree() requires including slab.h > > Fixes this build error: > > drivers/regulator/twl-regulator.c: In function 'twlreg_probe': > drivers/regu

Re: [PATCH] act_mirred: do not drop packets when fails to mirror it

2012-08-15 Thread Jason Wang
On 08/15/2012 11:10 PM, Jamal Hadi Salim wrote: On Wed, 2012-08-15 at 21:42 +0800, Jason Wang wrote: I met it actually through the following steps: - start a kvm guest with tap and make it to be an interface of the bridge - mirror the ingress traffic of the bridge to the tap - terminate the qe

Re: [PATCH 2/2] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-08-15 Thread Zhang Rui
On 四, 2012-08-16 at 14:23 +0800, Hongbo Zhang wrote: > Add more people into list. > > > On 10 August 2012 19:20, hongbo.zhang wrote: > From: "hongbo.zhang" > > This diver is based on the thermal management framework in > thermal_sys.c. > A thermal zone d

Re: [GIT PULL] Update LZO compression

2012-08-15 Thread Markus F.X.J. Oberhumer
On 2012-08-15 16:45, Johannes Stezenbach wrote: > On Wed, Aug 15, 2012 at 02:02:43PM +0200, Markus F.X.J. Oberhumer wrote: >> On 2012-08-14 14:39, Johannes Stezenbach wrote: >>> On Tue, Aug 14, 2012 at 01:44:02AM +0200, Markus F.X.J. Oberhumer wrote: On 2012-07-16 20:30, Markus F.X.J. Oberhume

Re: [PATCH 04/13] overlay filesystem

2012-08-15 Thread Eric W. Biederman
Miklos Szeredi writes: Minor nits below. > diff --git a/fs/overlayfs/dir.c b/fs/overlayfs/dir.c > new file mode 100644 > index 000..6b50823 > --- /dev/null > +++ b/fs/overlayfs/dir.c > @@ -0,0 +1,598 @@ > +/* > + * > + * Copyright (C) 2011 Novell Inc. > + * > + * This program is free softwar

Re: [patch 4/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-15 Thread Cyrill Gorcunov
On Wed, Aug 15, 2012 at 06:06:23PM -0400, J. Bruce Fields wrote: > On Thu, Aug 16, 2012 at 01:02:37AM +0400, Cyrill Gorcunov wrote: > > On Wed, Aug 15, 2012 at 04:45:46PM -0400, J. Bruce Fields wrote: > > > On Wed, Aug 15, 2012 at 01:21:20PM +0400, Cyrill Gorcunov wrote: > > > > To provide fsnotify

[PATCH v4 2/3] pwm_backlight: use power sequences

2012-08-15 Thread Alexandre Courbot
Make use of the power sequences specified in the device tree or platform data to control how the backlight is powered on and off. Signed-off-by: Alexandre Courbot --- .../bindings/video/backlight/pwm-backlight.txt | 62 ++- drivers/video/backlight/Kconfig| 1 + dri

[PATCH v4 3/3] tegra: add pwm backlight device tree nodes

2012-08-15 Thread Alexandre Courbot
Signed-off-by: Alexandre Courbot --- arch/arm/boot/dts/tegra20-ventana.dts | 58 +++ arch/arm/boot/dts/tegra20.dtsi| 2 +- 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20-ventana.dts b/arch/arm/boot/dts/tegra20-ven

[PATCH v4 1/3] Runtime Interpreted Power Sequences

2012-08-15 Thread Alexandre Courbot
Some device drivers (panel backlights especially) need to follow precise sequences for powering on and off, involving gpios, regulators, PWMs with a precise powering order and delays to respect between each steps. These sequences are board-specific, and do not belong to a particular driver - theref

[PATCH v4 0/3] Runtime Interpreted Power Sequences

2012-08-15 Thread Alexandre Courbot
Overdue revision of this new feature, some changes required additional thought and rework. The most important change is in the way power sequences are expressed in the device tree. In order to avoid having to specify #address-cells, #size-cells and reg properties, the @ notation in the step names

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, Au

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 someth

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 Byrav

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 shou

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 sc

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 t

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 IIO_CHAN_INFO_SCALE

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 desi

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 placeme

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] driv

[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 https://plus.google.com/111398485184813224730/posts/21pTYfTsCk

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' [-Werror=implicit-function-declaration]

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’ [-Werror=implicit-functi

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 provi

[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 git://people.freedesktop.org/~a

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 x86

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, t

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 majordomo

[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 bd3

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 a/kernel/sched/fe

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. > > > > http://git.kernel.org/?p=l

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 http://ck.kolivas.org/patches/3.0/3.5/3.5-ck1/pat

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, Ia

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: i

[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 c

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 t

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 Mon,

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 chan

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 >> > dma_attrs

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 SUnreclai

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 8

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 sche

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 diff

[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 drivers/clk/mmp/clk-pxa910.c

[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 drivers/clk/mmp/clk-pxa168.c

[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 +++ drivers/clk/

[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 hav

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 NULL

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 b/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 @@ -827,2

[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 drivers/clk/mmp/clk-pxa910.c

[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 diff

[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 drivers/clk/mmp/clk-pxa168.c

[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 +++ drivers/clk/

[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 de

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 a/include/

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' [-Werror=implic

[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 key_preparsed_pa

[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 ch

[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 ins

[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 usi

[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 --- Documentation

[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 unkno

[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 to

[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 cau

[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: [root@an

[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 siz

[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 si

[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 numb

[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 se

[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 func

[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. Wh

[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 co

[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 + security/keys/crypto/M

[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 +++

  1   2   3   4   5   6   7   8   >