[PATCH v2] btrfs: use kmalloc for lzo de/compress buffer

2013-02-17 Thread Kyungsik Lee
The size of de/compress buffer is small enough to use kmalloc. Allocating it with kmalloc rather than vmalloc is preferred. This patch depends on my previous patch, “btrfs: fix decompress buffer size”. v2: Using vmalloc for "workspace->mem" due to the size limit. Signed-off-by: Kyungsik Lee

Re: [patch v5 0/15] power aware scheduling

2013-02-17 Thread Alex Shi
On 02/18/2013 01:07 PM, Alex Shi wrote: > Since the simplification of fork/exec/wake balancing has much arguments, > I removed that part in the patch set. > > This patch set implement/consummate the rough power aware scheduling > proposal: https://lkml.org/lkml/2012/8/13/139. Just review the

Re: BUG at net/sunrpc/svc_xprt.c:921 (another one)

2013-02-17 Thread Paweł Sikora
On Sunday 17 of February 2013 10:54:20 J. Bruce Fields wrote: > On Fri, Feb 15, 2013 at 08:33:14PM +0100, Paweł Sikora wrote: > > On Tuesday 12 of February 2013 15:52:17 J. Bruce Fields wrote: > > > On Sun, Jan 20, 2013 at 05:51:12PM -0500, Mark Lord wrote: > > > > Got it again, this time on a

Re: [PATCH v4 3/6] mfd: Add ChromeOS EC I2C driver

2013-02-17 Thread Felipe Balbi
Hi, On Sat, Feb 16, 2013 at 06:46:53AM -0800, Simon Glass wrote: > Hi, > > On Sat, Feb 16, 2013 at 1:06 AM, Felipe Balbi wrote: > > On Fri, Feb 15, 2013 at 08:16:09PM -0800, Simon Glass wrote: > >> This uses an I2C bus to talk to the ChromeOS EC. The protocol > >> is defined by the EC and is

Re: [v3.8 Regression] watchdog: sp5100_tco: Add SB8x0 chipset support

2013-02-17 Thread Joseph Salisbury
I've requested a digital image or screen capture of the panic. Is there any additional debug information you thing would be helpful? Thanks, Joe On Sun, Feb 17, 2013 at 10:13 PM, Joseph Salisbury wrote: > On 02/17/2013 04:44 AM, Tanaka Takahisa wrote: >> >> Hi Joseph, >> >> 2013/2/15 Joseph

[PATCH v3 3/4] regulator: core: use regulator_ena_pin member

2013-02-17 Thread Kim, Milo
The regulator_dev has regulator_enable_gpio structure. 'ena_gpio' and 'ena_gpio_invert' were moved to in regulator_enable_gpio. regulator_dev ---> regulator_enable_gpio .ena_gpio .gpio .ena_gpio_invert .ena_gpio_invert Pointer, 'ena_pin' is used for checking

[PATCH v3 2/4] regulator: core: manage enable GPIO list

2013-02-17 Thread Kim, Milo
To support shared enable GPIO pin, replace GPIO code with new static functions Reference count: 'enable_count' Balance the reference count of each GPIO and actual pin control. The count is incremented with enabling GPIO. On the other hand, it is decremented on disabling GPIO. Actual

[PATCH v3 4/4] regulator: lp8788-ldo: use ena_pin of regulator-core for external control

2013-02-17 Thread Kim, Milo
Regulator core driver provides enable GPIO control for enabling/disabling a regulator. Now, enable GPIO is shared among regulators. Use this internal working, so unnecessary code are removed. GPIO enable pin configurations are added in digital LDO and analog LDO drivers. Signed-off-by:

[PATCH v3 1/4] regulator: core: support shared enable GPIO concept

2013-02-17 Thread Kim, Milo
A Regulator can be enabled by external GPIO pin. This is configurable in the regulator_config. At this moment, the GPIO can be owned by only one regulator device. In some devices, multiple regulators are enabled by shared one GPIO pin. This patch extends this limitation, enabling shared

[PATCH v3 0/4] regulator: core: support shared enable GPIO

2013-02-17 Thread Kim, Milo
A Regulator can be enabled by external GPIO pin which is configurable in the regulator_config. At this moment, the GPIO can be owned by only one regulator device. In some devices like LP8788 LDOs, multiple regulators are enabled by shared one GPIO pin. This patch-set enables shared enable GPIO

Re: linux-next: manual merge of the tip tree with the kbuild tree

2013-02-17 Thread H. Peter Anvin
That is the right fix indeed. Stephen Rothwell wrote: >Hi all, > >Today's linux-next merge of the tip tree got a conflict in >kernel/timeconst.pl between commit 70730bca1331 ("kernel: Replace >timeconst.pl with a bc script") from the kbuild tree and commit >63a3f603413f ("timeconst.pl:

[RFC 2/8] ARM: twd: register clock event for 1 core SMP

2013-02-17 Thread Afzal Mohammed
Register percpu local timer for scheduler tick in the case of one core SMP configuration. In other cases - secondary cpu's as well as boot cpu's having more than one core, this is being registered as per existing boot flow, with a difference that they happens after delay calibration. Registering

[RFC 6/8] ARM: OMAP2+: am43: basic dt support

2013-02-17 Thread Afzal Mohammed
Describe minimal DT boot machine details for AM43 based SoC's. AM43 family of SoC's are ARM Cortex-A9 based with one core in SMP configuration. Low level debug could be achieved by selecting DEBUG_AM33XXUART1. To boot AM43 SoC, this change is sufficient w.r.t Kernel (considering the fact that

[RFC 7/8] ARM: dts: am4372: initial support

2013-02-17 Thread Afzal Mohammed
DT source (minimal) for AM4372 SoC. Those represented here are the minimal DT nodes necessary to get kernel booting. Signed-off-by: Afzal Mohammed --- arch/arm/boot/dts/am4372.dtsi | 55 +++ 1 file changed, 55 insertions(+) create mode 100644

[RFC 3/8] ARM: twd: clock rate from DT (if no DT clk tree)

2013-02-17 Thread Afzal Mohammed
Add an optional property to find clock-frequency from DT. This helps as a fallback mechanism in case there is no representation of clock tree in DT. Signed-off-by: Afzal Mohammed --- Documentation/devicetree/bindings/arm/twd.txt | 7 ++- arch/arm/kernel/smp_twd.c | 8

[RFC 8/8] ARM: dts: am43-pre-silicon support

2013-02-17 Thread Afzal Mohammed
AM43 SoC is in pre-silicon stage, meanwhile it has been modelled in a pre-silicon platform. To validate and boot Linux in pre-silicon platform that emulates an AM43 SoC, add DT build support. As bootloader is not used, bootargs is passed through DT. Note: This would be replaced by an original

[RFC 5/8] ARM: OMAP2+: am43: Kconfig

2013-02-17 Thread Afzal Mohammed
Add Kconfig option for AM43 family of SoC's, these are ARM Cortex A9 based (SMP configuration with 1 core). Signed-off-by: Afzal Mohammed --- arch/arm/mach-omap2/Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig

[RFC 4/8] ARM: am33xx: ll debug config help

2013-02-17 Thread Afzal Mohammed
Selecting DEBUG_AM33XXUART1 routes low level debug messages to first UART instance of AM335x based SoC's. This selection is valid for upcoming AM43 based SoC's too. Make this information available upon configuring. Signed-off-by: Afzal Mohammed --- arch/arm/Kconfig.debug | 3 +++ 1 file

[RFC 1/8] ARM: localtimer: return percpu clkevt on register

2013-02-17 Thread Afzal Mohammed
Return percpu clock event on local timer register. It is the boot cpu that calls this and it can use the returned percpu clock event to register a clock event in the case of SMP configuration with one core. This helps to have a booting Kernel even if no other timer is registered for clock tick.

[RFC 0/8] ARM: AM43 (OMAP2+) boot support

2013-02-17 Thread Afzal Mohammed
Hi, This series adds minimal support to boot Linux on platforms having AM43 based SoC's. This is being sent as an RFC to seek opinion about modification in twd to register percpu local timer clock event for scheduler tick in the case of one core SMP. AM43 SoC's are based on ARM Cortex-A9. It is

[PATCH v2] mm: break circular include from linux/mmzone.h

2013-02-17 Thread liguang
linux/mmzone.h included linux/memory_hotplug.h, and linux/memory_hotplug.h also included linux/mmzone.h, so there's a bad cirlular. these are quite mechanical changes by a simple script, I've tested for ARCH x86,arm,mips, may someone help to test more. Signed-off-by: liguang --- many thanks to

RE: Getting rid of freezer for suspend [was Re: [fuse-devel] [PATCH] fuse: make fuse daemon frozen along with kernel threads]

2013-02-17 Thread Li, Fei
> -Original Message- > From: Rafael J. Wysocki [mailto:r...@sisk.pl] > Sent: Friday, February 15, 2013 1:38 AM > To: Miklos Szeredi > Cc: Pavel Machek; Goswin von Brederlow; Li, Fei; Brown, Len; > mi...@redhat.com; pet...@infradead.org; Wang, Biao; > linux...@vger.kernel.org;

Re: kswapd craziness round 2

2013-02-17 Thread Daniel J Blueman
On Monday, 18 February 2013 06:10:02 UTC+8, Jiri Slaby wrote: > Hi, > > You still feel the sour taste of the "kswapd craziness in v3.7" thread, > right? Welcome to the hell, part two :{. > > I believe this started happening after update from > 3.8.0-rc4-next-20130125 to 3.8.0-rc7-next-20130211.

Re: [PATCH v2] net: fix functions and variables related to netns_ipvs->sysctl_sync_qlen_max

2013-02-17 Thread Zhang Yanfei
于 2013年02月16日 05:39, Julian Anastasov 写道: > > Hello, > > On Thu, 14 Feb 2013, Andrew Morton wrote: > >> On Thu, 7 Feb 2013 10:40:26 +0200 (EET) >> Julian Anastasov wrote: >> Another question about the sysctl_sync_qlen_max: This variable is assigned as:

Re: [PATCH] iommu: making IOMMU sysfs nodes API public

2013-02-17 Thread Alexey Kardashevskiy
On 13/02/13 04:15, Alex Williamson wrote: On Wed, 2013-02-13 at 01:42 +1100, Alexey Kardashevskiy wrote: On 12/02/13 16:07, Alex Williamson wrote: On Tue, 2013-02-12 at 15:06 +1100, Alexey Kardashevskiy wrote: Having this patch in a tree, adding new nodes in sysfs for IOMMU groups is going to

Re: [patch 1/2] mm: fincore()

2013-02-17 Thread Rusty Russell
Andrew Morton writes: > The syscall should handle the common usages very well. But it > shouldn't handle uncommon usages very badly! If the user is actually dealing with the contents of the file, following the established mincore is preferred, since it's in the noise anyway. Which comes back

[PATCH] cgroup: fail if monitored file and event_control are in different cgroup

2013-02-17 Thread Li Zefan
If we pass fd of memory.usage_in_bytes of cgroup A to cgroup.event_control of cgroup B, then we won't get memory usage notification from A but B! What's worse, if A and B are in different mount hierarchy, we'll end up accessing NULL pointer! Disallow this kind of invalid usage. Signed-off-by:

[PATCH v2] cgroup: fix cgroup_rmdir() vs close(eventfd) race

2013-02-17 Thread Li Zefan
commit 205a872bd6f9a9a09ef035ef1e90185a8245cc58 ("cgroup: fix lockdep warning for event_control") solved a deadlock by introducing a new bug. Move cgrp->event_list to a temporary list doesn't mean you can traverse this list locklessly, because at the same time cgroup_event_wake() can be called

Re: [RFC 1/3] power_supply: Define Binding for supplied-nodes

2013-02-17 Thread Rajanikanth HV
On Sunday 17 February 2013 04:08 AM, Anton Vorontsov wrote: [...] > > "supplied nodes" sounds confusing (doesn't reflect direction), IMO. I'd > rather call it power-supply,supplied-to = <_battery>; > > But... I'm recalling there was a similar discussion not that long ago, and > Arnd came up

linux-next: build warning after merge of the net-next tree

2013-02-17 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (powerpc ppc44x_defconfig) produced this warning: net/ipv6/xfrm6_mode_tunnel.c: In function 'xfrm6_mode_tunnel_input': net/ipv6/xfrm6_mode_tunnel.c:72:2: warning: suggest parentheses around assignment used as truth value

Re: [PATCH 8/9] [HACK] ARM: imx: work around v7_cpu_resume link error

2013-02-17 Thread Shawn Guo
On Sat, Feb 16, 2013 at 12:14:49AM -0500, Nicolas Pitre wrote: > On Fri, 15 Feb 2013, Russell King - ARM Linux wrote: > > > On Thu, Feb 14, 2013 at 11:47:50PM +0100, Arnd Bergmann wrote: > > > Patch c08e20d24 "arm: Add v7_invalidate_l1 to cache-v7.S" > > > moves the v7_invalidate_l1 symbol out of

Re: [RFC PATCH v3 0/3] sched: simplify the select_task_rq_fair()

2013-02-17 Thread Michael Wang
On 01/29/2013 05:08 PM, Michael Wang wrote: > v3 change log: > Fix small logical issues (Thanks to Mike Galbraith). > Change the way of handling WAKE. > > This patch set is trying to simplify the select_task_rq_fair() with > schedule balance map. > > After get rid of the complex code

linux-next: manual merge of the akpm tree with the kbuild tree

2013-02-17 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in kernel/timeconst.pl between commit 70730bca1331 ("kernel: Replace timeconst.pl with a bc script") from the kbuild tree and commit "timeconst.pl: remove deprecated defined(@array)" from the akpm tree. I just dropped the akpm

Re: prctl(PR_SET_MM)

2013-02-17 Thread Randy Dunlap
On 02/17/13 17:39, Amnon Shiloh wrote: > Hello, > > The code in "kernel/sys.c" provides the "prctl(PR_SET_MM)" function, > which is the only way a process can set or modify the following 11 > per-process fields: > > start_code, end_code, start_data, end_data, start_brk, brk, >

[PATCH] staging: android: ashmem: get_name,set_name not to hold ashmem_mutex

2013-02-17 Thread Shankar Brahadeeswaran
Hi, I'm working on Android Linux Kernel (version 3.4) and seeing a "deadlock" in the ashmem driver, while handling mmap request. I seek your support to fix the same. The locks that involved in the dead lock are 1) mm->mmap_sem 2) ashmem_mutex The following is the sequence of events that leads to

RE: [PATCH v4 2/8] watchdog/at91sam9_wdt: Remove at91wdt_private and add at91wdt_drvdata struct

2013-02-17 Thread Yang, Wenyou
Hi Wim > I rather have this after the conversion of the watchdog to the new framework. > Thanks a lot. OK , I will do it later. Best Regards, Wenyou Yang -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Please don't send update emails to me

2013-02-17 Thread cstsai
Please don't send update emails to me Whenever I need I can check from website Thanks & Regards Chun-Shian Tsai - Original Message - From: "Kumar, Anil" To: ; ; Cc: Sent: Monday, February 18, 2013 11:42 AM Subject: RE: [PATCH V2] watchdog: davinci_wdt: update to devm_* API

linux-next: manual merge of the userns tree with the nfsd tree

2013-02-17 Thread Stephen Rothwell
Hi Eric, Today's linux-next merge of the userns tree got a conflict in net/sunrpc/svcauth_unix.c between commit 2d4383383b0b ("SUNRPC: rework cache upcall logic") from the nfsd tree and commit 7eaf040b720b ("sunrpc: Use kuid_t and kgid_t where appropriate") from the userns tree. I fixed it up

RE: [PATCH v4 3/8] watchdog/at91sam9_wdt: Convert to use the watchdog framework

2013-02-17 Thread Yang, Wenyou
Hi Wim, > This code not only converts the watchdog to the new framework, > but it also adds the is_enable related code changes which should > be a seperate patch. > > So I took your original patch and changed it to the below at91sam9_wdt > watchdog conversion patch. Note: this is also without

[PATCH 2/2 RESEND] video: exynos_dp: move disable_irq() to exynos_dp_suspend()

2013-02-17 Thread Jingoo Han
From: Ajay Kumar disable_irq() should be moved to exynos_dp_suspend(), because enable_irq() is called at exynos_dp_resume(). Signed-off-by: Ajay Kumar Signed-off-by: Jingoo Han --- drivers/video/exynos/exynos_dp_core.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 1/2 RESEND] video: exynos_dp: add missing of_node_put()

2013-02-17 Thread Jingoo Han
of_find_node_by_name() returns a node pointer with refcount incremented, use of_node_put() on it when done. of_find_node_by_name() will call of_node_put() against the node pass to from parameter, thus we also need to call of_node_get(from) before calling of_find_node_by_name(). Signed-off-by:

[PATCH 5/5 RESEND] video: s3c-fb: Fix typo in definition of VIDCON1_VSTATUS_FRONTPORCH value

2013-02-17 Thread Jingoo Han
From: Tomasz Figa The correct value for VIDCON1_VSTATUS_FRONTPORCH is 3, not 0. Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park Signed-off-by: Jingoo Han --- include/video/samsung_fimd.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [PATCH v3 1/1] tools/power x86_energy_perf_policy: fix cpuid for i686

2013-02-17 Thread Mike Frysinger
On Thursday 14 February 2013 14:35:58 Benson Leung wrote: > + asm volatile ("mov %%ebx, %%edi;" /* save ebx (for PIC) */ > + "cpuid;" > + "mov %%ebx, %%esi;" /* pass to caller */ > + "mov %%edi, %%ebx;" /* restore ebx */ > +

[PATCH 4/5 RESEND] video: s3c-fb: add the bit definitions for CSC EQ709 and EQ601

2013-02-17 Thread Jingoo Han
This patch adds the bit definitions for CSC EQ709 and EQ601. These definitons are used to control the CSC parameter such as equation 709 and equation 601. Signed-off-by: Jingoo Han --- include/video/samsung_fimd.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH 4/4] regulator: palmas: Change the DT node property names to follow the convention

2013-02-17 Thread J Keerthy
DT node properties should not have "_". Replacing them by "-". Signed-off-by: J Keerthy --- drivers/regulator/palmas-regulator.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c index

[PATCH 3/5 RESEND] video: s3c-fb: remove unnecessary brackets

2013-02-17 Thread Jingoo Han
This patch removes unnecessary brackets and the duplicated VIDTCON2 definition. Also, header comment is modified, because EXYNOS series is supported and is not available. Signed-off-by: Jingoo Han --- include/video/samsung_fimd.h | 199 - 1 files

[PATCH 3/4] regulator: palmas: Removing duplicated code

2013-02-17 Thread J Keerthy
Removing duplicate assignment in the existing code. Signed-off-by: J Keerthy --- drivers/regulator/palmas-regulator.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c index c9e912f..22c6ae2

[PATCH 2/4] mfd: palmas: Change the DT node property names to follow the convention

2013-02-17 Thread J Keerthy
DT node properties should not have "_". Replacing them by "-". Signed-off-by: J Keerthy --- drivers/mfd/palmas.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c index 6ffd7a2..d8467cf 100644 --- a/drivers/mfd/palmas.c +++

[PATCH 2/5 RESEND] video: s3c-fb: remove duplicated S3C_FB_MAX_WIN

2013-02-17 Thread Jingoo Han
S3C_FB_MAX_WIN is already defined in 'plat-samsung/include/plat/fb.h'. So, this definition in 'include/video/samsung_fimd.h' should be removed to avoid the duplication. Signed-off-by: Jingoo Han --- include/video/samsung_fimd.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff

[PATCH 1/5 RESEND] video: s3c-fb: use ARCH_ dependancy

2013-02-17 Thread Jingoo Han
This patch uses ARCH_ dependancy when using s3c-fb. S3C_DEV_FB, S5P_DEV_FIMD0 cannot be enabled on EXYNOS5. So, ARCH_ should be used as dependancy for s3c-fb. Signed-off-by: Jingoo Han --- drivers/video/Kconfig |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git

[PATCH 1/4] documentation: add palmas dts definition

2013-02-17 Thread J Keerthy
From: Graeme Gregory Add the DTS definition for the palmas device including the MFD children. Signed-off-by: Graeme Gregory [j-keer...@ti.com: changed the DT node property names to follow the convention] Signed-off-by: J Keerthy --- Documentation/devicetree/bindings/mfd/palmas.txt | 67

[PATCH 0/4] mfd: Palmas: Correct the DT Node properties naming convention and add documentation.

2013-02-17 Thread J Keerthy
The series corrects the DT node properties naming convention and adds Documentation for the Palmas PMIC. Graeme Gregory (1): documentation: add palmas dts definition J Keerthy (3): mfd: palmas: Change the DT node property names to follow the convention regulator: palmas: Removing

[patch v5 01/15] sched: set initial value for runnable avg of sched entities.

2013-02-17 Thread Alex Shi
We need initialize the se.avg.{decay_count, load_avg_contrib} to zero after a new task forked. Otherwise random values of above variables cause mess when do new task enqueue: enqueue_task_fair enqueue_entity enqueue_entity_load_avg Signed-off-by: Alex Shi ---

[patch v5 06/15] sched: log the cpu utilization at rq

2013-02-17 Thread Alex Shi
The cpu's utilization is to measure how busy is the cpu. util = cpu_rq(cpu)->avg.runnable_avg_sum / cpu_rq(cpu)->avg.runnable_avg_period; Since the util is no more than 1, we use its percentage value in later caculations. And set the the FULL_UTIL as 100%. In later power

[patch v5 05/15] sched: add sysfs interface for sched_balance_policy selection

2013-02-17 Thread Alex Shi
This patch add the power aware scheduler knob into sysfs: $cat /sys/devices/system/cpu/sched_balance_policy/available_sched_balance_policy performance powersaving balance $cat /sys/devices/system/cpu/sched_balance_policy/current_sched_balance_policy powersaving This means the using sched balance

Re: [PATCH v2 0/4] nfsd: make is works in a container

2013-02-17 Thread Stanislav Kinsbursky
15.02.2013 20:20, J. Bruce Fields пишет: On Fri, Feb 01, 2013 at 03:56:05PM +0300, Stanislav Kinsbursky wrote: This patch set finally enables NFSd in container. I've tested it in container with it's own root, and also pid, net and mount namespaces. Thanks, these look fine to me; applying.

[patch v5 04/15] sched: add sched balance policies in kernel

2013-02-17 Thread Alex Shi
Current scheduler behavior is just consider for larger performance of system. So it try to spread tasks on more cpu sockets and cpu cores To adding the consideration of power awareness, the patchset adds 2 kinds of scheduler policy: powersaving and balance. They will use runnable load util in

[patch v5 07/15] sched: add new sg/sd_lb_stats fields for incoming fork/exec/wake balancing

2013-02-17 Thread Alex Shi
For power aware balancing, we care the sched domain/group's utilizations more than their load weight. So add: sd_lb_stats.sd_utils and sg_lb_stats.group_utils. We want to know the sd capacity, so add: sd_lb_stats.sd_capacity. And want to know which group is busiest but still has free time to

[patch v5 08/15] sched: move sg/sd_lb_stats struct ahead

2013-02-17 Thread Alex Shi
Power aware fork/exec/wake balancing needs both of structs in incoming patches. So move ahead before it. Signed-off-by: Alex Shi --- kernel/sched/fair.c | 101 ++-- 1 file changed, 51 insertions(+), 50 deletions(-) diff --git

[patch v5 09/15] sched: add power aware scheduling in fork/exec/wake

2013-02-17 Thread Alex Shi
This patch add power aware scheduling in fork/exec/wake. It try to select cpu from the busiest while still has utilization group. That's will save power since it leaves more groups idle in system. The trade off is adding a power aware statistics collection in group seeking. But since the

[patch v5 03/15] Revert "sched: Introduce temporary FAIR_GROUP_SCHED dependency for load-tracking"

2013-02-17 Thread Alex Shi
Remove CONFIG_FAIR_GROUP_SCHED that covers the runnable info, then we can use runnable load variables. Signed-off-by: Alex Shi --- include/linux/sched.h | 8 +--- kernel/sched/core.c | 7 +-- kernel/sched/fair.c | 13 ++--- kernel/sched/sched.h | 9 + 4 files

[patch v5 12/15] sched: pull all tasks from source group

2013-02-17 Thread Alex Shi
In power balance, we hope some sched groups are fully empty to save CPU power of them. So, we want to move any tasks from them. Signed-off-by: Alex Shi --- kernel/sched/fair.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c

[patch v5 14/15] sched: power aware load balance

2013-02-17 Thread Alex Shi
This patch enabled the power aware consideration in load balance. As mentioned in the power aware scheduler proposal, Power aware scheduling has 2 assumptions: 1, race to idle is helpful for power saving 2, less active sched_groups will reduce power consumption The first assumption make

[patch v5 15/15] sched: lazy power balance

2013-02-17 Thread Alex Shi
When active task number in sched domain waves around the power friendly scheduling creteria, scheduling will thresh between the power friendly balance and performance balance, bring unnecessary task migration. The typical benchmark is 'make -j x'. To remove such issue, introduce a u64

[patch v5 13/15] sched: no balance for prefer_sibling in power scheduling

2013-02-17 Thread Alex Shi
In power aware scheduling, we don't want to balance 'prefer_sibling' groups just because local group has capacity. If the local group has no tasks at the time, that is the power balance hope so. Signed-off-by: Alex Shi --- kernel/sched/fair.c | 6 +- 1 file changed, 5 insertions(+), 1

[patch v5 11/15] sched: add power/performance balance allow flag

2013-02-17 Thread Alex Shi
If a sched domain is idle enough for regular power balance, power_lb will be set, perf_lb will be clean. If a sched domain is busy, their value will be set oppositely. If the domain is suitable for power balance, but balance should not be down by this cpu(this cpu is already idle or full), both

[patch v5 02/15] sched: set initial load avg of new forked task

2013-02-17 Thread Alex Shi
New task has no runnable sum at its first runnable time, so its runnable load is zero. That makes burst forking balancing just select few idle cpus to assign tasks if we engage runnable load in balancing. Set initial load avg of new forked task as its load weight to resolve this issue.

[patch v5 10/15] sched: packing transitory tasks in wake/exec power balancing

2013-02-17 Thread Alex Shi
If the waked/execed task is transitory enough, it will has a chance to be packed into a cpu which is busy but still has time to care it. For powersaving policy, only the history util < 25% task has chance to be packed, and for balance policy, only histroy util < 12.5% has chance. If there is no

[patch v5 0/15] power aware scheduling

2013-02-17 Thread Alex Shi
Since the simplification of fork/exec/wake balancing has much arguments, I removed that part in the patch set. This patch set implement/consummate the rough power aware scheduling proposal: https://lkml.org/lkml/2012/8/13/139. It defines 2 new power aware policy 'balance' and 'powersaving', then

Re: [PATCH v3 1/1] tools/power x86_energy_perf_policy: fix cpuid for i686

2013-02-17 Thread Len Brown
Hi Benson, checkpatch.pl doesn't love this syntax: ERROR: spaces required around that ':' (ctx:ExV) #113: FILE: tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c:142: + :"+a" (_eax), "=S" (_ebx), "=c" (_ecx), "=d" (_edx) ^ ERROR: spaces

Re: Stupid user with user-space questions, matrix LED driving with user space code only.

2013-02-17 Thread Jonathan Andrews
On Sun, 2013-02-17 at 18:05 -0800, Greg KH wrote: > On Sun, Feb 17, 2013 at 02:37:24PM +, Jonathan Andrews wrote: > > From a user perspective it seems a bit crap to have to change the kernel > > if you have a workload that preemption is harmful to. > > In the case of something like the

linux-next: manual merge of the arm-soc tree with the input tree

2013-02-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/input/keyboard/tegra-kbc.c between commit 9eee07d39fa6 ("Input: tegra-kbc - require CONFIG_OF, remove platform data") from the input tree and commit 61fd290d213e ("ARM: tegra: migrate to new clock code") from the

cpuidle sizes (Re: [PATCH 14/16] intel_idle: remove use and definition of MWAIT_MAX_NUM_CSTATES)

2013-02-17 Thread Len Brown
On 02/12/2013 05:43 PM, Daniel Lezcano wrote: > On 02/12/2013 12:46 AM, Len Brown wrote: >> On 02/11/2013 03:53 AM, Daniel Lezcano wrote: >>> On 02/09/2013 02:08 AM, Len Brown wrote: >> The reason to change is that intel_idle will soon be able to export more than the 8 "major" states

Re: [PATCH v2] net: fix functions and variables related to netns_ipvs->sysctl_sync_qlen_max

2013-02-17 Thread Simon Horman
On Fri, Feb 15, 2013 at 11:39:34PM +0200, Julian Anastasov wrote: > > Hello, > > On Thu, 14 Feb 2013, Andrew Morton wrote: > > > On Thu, 7 Feb 2013 10:40:26 +0200 (EET) > > Julian Anastasov wrote: > > > > > > Another question about the sysctl_sync_qlen_max: > > > > This variable is

Re: linux-next: manual merge of the usb tree with the driver-core tree

2013-02-17 Thread Greg KH
On Mon, Feb 18, 2013 at 03:32:42PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the usb tree got a conflict in > drivers/usb/host/ehci-vt8500.c between commit 148e11349b0c ("usb: Convert > to devm_ioremap_resource()") from the driver-core tree and commit >

i915 black screen introduced by ACPI changes

2013-02-17 Thread Chris Li
My Lenovo Y580 laptop with FC18 start to get black screen after the kernel upgrade to 3.7.xxx The black screen happens about the time kernel switch to using VT console. At the point of black screen, no response of cap locks key led no network connection. The machine seems dead. The CPU is i7 and

linux-next: manual merge of the usb tree with the driver-core tree

2013-02-17 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in drivers/usb/host/ehci-vt8500.c between commit 148e11349b0c ("usb: Convert to devm_ioremap_resource()") from the driver-core tree and commit d57ada0c37ec ("USB: EHCI: make ehci-vt8500 a separate driver") from the usb tree. I

Re: [RFC][PATCH] kvm: fix a race when closing irq eventfd

2013-02-17 Thread Li Zefan
On 2013/2/18 12:09, Li Zefan wrote: > On 2013/2/18 12:02, Alex Williamson wrote: >> On Mon, 2013-02-18 at 11:13 +0800, Li Zefan wrote: >>> While trying to fix a race when closing cgroup eventfd, I took a look >>> at how kvm deals with this problem, and I found it doesn't. >>> >>> I may be wrong,

Re: [RFC][PATCH] kvm: fix a race when closing irq eventfd

2013-02-17 Thread Alex Williamson
On Mon, 2013-02-18 at 12:09 +0800, Li Zefan wrote: > On 2013/2/18 12:02, Alex Williamson wrote: > > On Mon, 2013-02-18 at 11:13 +0800, Li Zefan wrote: > >> While trying to fix a race when closing cgroup eventfd, I took a look > >> at how kvm deals with this problem, and I found it doesn't. > >> >

Re: [RFC][PATCH] kvm: fix a race when closing irq eventfd

2013-02-17 Thread Li Zefan
On 2013/2/18 12:02, Alex Williamson wrote: > On Mon, 2013-02-18 at 11:13 +0800, Li Zefan wrote: >> While trying to fix a race when closing cgroup eventfd, I took a look >> at how kvm deals with this problem, and I found it doesn't. >> >> I may be wrong, as I don't know kvm code, so correct me if

Re: [RFC][PATCH] kvm: fix a race when closing irq eventfd

2013-02-17 Thread Alex Williamson
On Mon, 2013-02-18 at 11:13 +0800, Li Zefan wrote: > While trying to fix a race when closing cgroup eventfd, I took a look > at how kvm deals with this problem, and I found it doesn't. > > I may be wrong, as I don't know kvm code, so correct me if I'm. > > /* >* Race-free decouple

Re: [PATCH v2] ata: Fix DVD not dectected at some Haswell platforms

2013-02-17 Thread Youquan Song
> > As to my understanding Sergei did not suggest citing the whole commit message. > I also find the numerous references to Sandy Bridge confusing as this is a fix > for Lynx Point chipset. > > How about rephrasing the commit message in a way similar to the following one? > --8<- > We've

[PATCH v3] ata: Fix DVD not dectected at some Haswell platforms

2013-02-17 Thread Youquan Song
There is a quirk patch 5e5a4f5d5a08c9c504fe956391ac3dae2c66556d "ata_piix: make DVD Drive recognisable on systems with Intel Sandybridge chipsets(v2)" fixing the 4 ports IDE controller 32bit PIO mode. We've hit a problem with DVD not recognized on Haswell Desktop platform which includes Lynx

Re: [RFC] sched: The removal of idle_balance()

2013-02-17 Thread Mike Galbraith
On Sun, 2013-02-17 at 16:54 -0500, Steven Rostedt wrote: > On Sun, 2013-02-17 at 08:14 +0100, Mike Galbraith wrote: > > > (And puts a dent in x264 ultrafast) > What about my last patch? The one that avoids idle_balance() if the > previous task was in a task_uninterruptible state. That one gave

RE: [PATCH V2] watchdog: davinci_wdt: update to devm_* API

2013-02-17 Thread Kumar, Anil
Hi, On Fri, Feb 08, 2013 at 13:09:30, Kumar, Anil wrote: > Update the code to use devm_* API so that driver > core will manage resources. > > Signed-off-by: Kumar, Anil > --- > This patch applies on top of v3.8-rc6. > > Tested on da850 EVM. > > Changes for V2: > - Use return -EADDRNOTAVAIL

linux-next: manual merge of the tip tree with the kbuild tree

2013-02-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in kernel/timeconst.pl between commit 70730bca1331 ("kernel: Replace timeconst.pl with a bc script") from the kbuild tree and commit 63a3f603413f ("timeconst.pl: Eliminate Perl warning") from the tip tree. I just droppped the tip

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

2013-02-17 Thread Ben Hutchings
On Wed, 2013-02-06 at 23:18 +0800, Hayes Wang wrote: > File: rtl_nic/rtl8168g-2.fw > Version: 0.0.1 > > This firmware supports new fw setting mothod for linux kernel. > > Add MAC OCP settings for: > -phy reset > -PXE in ALDPS > -pwron sequence > -OBFF > > Signed-off-by: Hayes Wang > --- >

[RFT][PATCH] regulator: ab8500: Remove get_voltage_sel for fixed voltage

2013-02-17 Thread Axel Lin
Current code sets get_voltage_sel to ab8500_regulator_get_voltage_sel, however both ab8500_regulator_mode_ops and ab8500_regulator_ops do not have voltage_bank, voltage_reg and voltage_mask settings. So it looks wrong to use ab8500_regulator_get_voltage_sel as get_voltage_sel callback in these

Re: usb_wwan_write() called while device still being resumed

2013-02-17 Thread Alex Courbot
On 02/15/2013 08:05 PM, Bjørn Mork wrote: Maybe something like the completely untested: diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c index 3148b10..38e19ba 100644 --- a/drivers/base/power/runtime.c +++ b/drivers/base/power/runtime.c @@ -512,6 +512,9 @@ static int

Re: [PATCH v9 4/4] sd: change to auto suspend mode

2013-02-17 Thread Aaron Lu
On Wed, Feb 06, 2013 at 10:51:19AM -0500, Alan Stern wrote: > On Wed, 6 Feb 2013, Aaron Lu wrote: > > > > The "if (err == -EAGAIN)" test and the call to pm_schedule_suspend seem > > > to have been dropped since v8 of this series. It looks like they ought > > > to be moved into

Re: [PATCH] Bluetooth: btmrvl_sdio: look for sd8688 firmware in alternate place

2013-02-17 Thread Ben Hutchings
On Sun, 2013-01-27 at 12:21 +0100, Lubomir Rintel wrote: > On Mon, 2013-01-21 at 01:12 +, Ben Hutchings wrote: > > On Fri, 2013-01-18 at 08:33 +0100, Lubomir Rintel wrote: > > > On Tue, 2013-01-08 at 22:35 -0800, Marcel Holtmann wrote: > > > > Hi Lubomir, > > > > > > > > > > > >

[RFC][PATCH] kvm: fix a race when closing irq eventfd

2013-02-17 Thread Li Zefan
While trying to fix a race when closing cgroup eventfd, I took a look at how kvm deals with this problem, and I found it doesn't. I may be wrong, as I don't know kvm code, so correct me if I'm. /* * Race-free decouple logic (ordering is critical) */ static void

Re: [v3.8 Regression] watchdog: sp5100_tco: Add SB8x0 chipset support

2013-02-17 Thread Joseph Salisbury
On 02/17/2013 04:44 AM, Tanaka Takahisa wrote: Hi Joseph, 2013/2/15 Joseph Salisbury : On 02/15/2013 02:32 AM, Wim Van Sebroeck wrote: Hi Joseph, A bug was opened against the Ubuntu kernel[0]. It was found that reverting the following commit resolved this bug: commit

[RFT][PATCH 2/2] regulator: ab8500: Use regulator_list_voltage_linear for fixed voltage

2013-02-17 Thread Axel Lin
Both ab8500_regulator_mode_ops and ab8500_regulator_ops do not have volt_table setting, thus we can not use regulator_list_voltage_table for them. However, they have min_uV setting with n_voltages = 1, so use regulator_list_voltage_linear instead. Signed-off-by: Axel Lin ---

[RFT][PATCH 1/2] regulator: ab8500: Fix build error

2013-02-17 Thread Axel Lin
This build error is introduced by commit 6a9fe8319 "regulator: ab8500: Added get_optimum_mode on regulators with idle mode". CC drivers/regulator/ab8500.o drivers/regulator/ab8500.c:500:23: error: 'ab8500_regulator_fixed_ops' undeclared here (not in a function)

Re: BUG in find_pid_ns

2013-02-17 Thread Sasha Levin
On 02/17/2013 07:17 PM, ebied...@xmission.com wrote: > The bad pointer value is 0xfff0. Hmm. > > If you have the failure location correct it looks like a corrupted hash > entry was found while following the hash chain. > > It looks like the memory has been set to -16 -EBUSY? Weird.

Re: [PATCH] HID: ntrig: use input_configured() callback to set the name

2013-02-17 Thread Rafi Rubin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Looks good, and I can confirm it works fine. Signed-off-by: Rafi Rubin On 02/08/13 09:51, Benjamin Tissoires wrote: > The use of input_configured() allows the ntrig driver to actually > change the name of the input and its bitmask before it is

Re: Stupid user with user-space questions, matrix LED driving with user space code only.

2013-02-17 Thread Greg KH
On Sun, Feb 17, 2013 at 02:37:24PM +, Jonathan Andrews wrote: > From a user perspective it seems a bit crap to have to change the kernel > if you have a workload that preemption is harmful to. > In the case of something like the Raspberry Pi changing the kernel if > the distribution has not

Re: [PATCH] backlight: lm3630: remove ret = -EIO of lm3630_backlight_register()

2013-02-17 Thread gshark
2013년 02월 04일 09:14, Jingoo Han 쓴 글: There is no need to return -EIO, because backlight_device_register() already returns correct error values. Signed-off-by: Jingoo Han --- drivers/video/backlight/lm3630_bl.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

prctl(PR_SET_MM)

2013-02-17 Thread Amnon Shiloh
Hello, The code in "kernel/sys.c" provides the "prctl(PR_SET_MM)" function, which is the only way a process can set or modify the following 11 per-process fields: start_code, end_code, start_data, end_data, start_brk, brk, start_stack, arg_start, arg_end, env_start, env_end.

  1   2   3   4   5   6   7   >