Re: [PATCH v3 0/3] Platform support for EHRPWM & ECAP devices in DAVINCI.

2013-04-03 Thread Sekhar Nori
On 4/4/2013 10:09 AM, Philip, Avinash wrote: > On Tue, Apr 02, 2013 at 14:05:09, Nori, Sekhar wrote: >> On 3/25/2013 1:19 PM, Philip Avinash wrote: >>> Add platform support for EHRPWM and ECAP by providing clock nodes and >>> device tree nodes. >>> This series depends on [1] and [2] and is

Re: [PATCH] intel-iommu: Synchronize gcmd value with global command register

2013-04-03 Thread Takao Indoh
(2013/04/03 17:24), David Woodhouse wrote: > On Wed, 2013-04-03 at 16:11 +0900, Takao Indoh wrote: >> (2013/04/02 23:05), Joerg Roedel wrote: >>> On Mon, Apr 01, 2013 at 02:45:18PM +0900, Takao Indoh wrote: enable_IR intel_enable_irq_remapping

Re: [PATCH V3 2/5] spi: s3c64xx: added support for polling mode

2013-04-03 Thread Girish KS
On Wed, Apr 3, 2013 at 5:19 PM, Mark Brown wrote: > On Wed, Apr 03, 2013 at 05:00:04PM +0530, Girish KS wrote: >> On Mon, Apr 1, 2013 at 6:42 PM, Mark Brown > >> >> - if (!sdd->pdev->dev.of_node) { >> >> + if (!sdd->pdev->dev.of_node && !is_polling(sdd)) { >> >> res =

linux-next: manual merge of the signal tree with the vfs tree

2013-04-03 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the signal tree got a conflict in fs/compat.c between commit 1fd193fd030a ("switch compat readv/writev variants to COMPAT_SYSCALL_DEFINE") from the vfs tree and commit 76b021d053ed ("convert vmsplice to COMPAT_SYSCALL_DEFINE") from the signal tree. I fixed it

linux-next: manual merge of the signal tree with the vfs tree

2013-04-03 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the signal tree got conflicts in fs/read_write.c and fs/read_write.h between commit 1fd193fd030a ("switch compat readv/writev variants to COMPAT_SYSCALL_DEFINE") from the vfs tree and commit 19f4fc3aee18 ("convert sendfile{,64} to COMPAT_SYSCALL_DEFINE") from

Re: [PATCH] Kbuild: Avoid DTB rebuilds if source files are untouched

2013-04-03 Thread Vineet Gupta
On 04/03/2013 09:48 PM, Stephen Warren wrote: > On 04/03/2013 01:14 AM, Vineet Gupta wrote: >> forgot to CC linux-arch >> >> On 04/03/2013 12:42 PM, Vineet Gupta wrote: >>> Currently, for every ARC kernel build I see the following: >>> >>> --->8- >>> DTB

Re: [PATCH v4 2/2] watchdog: fix w83627hf_wdt clear timeout expired

2013-04-03 Thread Guenter Roeck
On Wed, Apr 03, 2013 at 09:39:44PM -0700, Tony Chung wrote: > > Observed that the Watchdog Timer Status bit can be set when the driver is > loaded. Reset it during initialization. The time-out value must be set to 0 > explicitly in this case to prevent an immediate reset. > > Depending on the

Re: [PATCH] To add NULL pointer check

2013-04-03 Thread P J P
+-- On Thu, 4 Apr 2013, Jaegeuk Kim wrote --+ | Why should we take unnecessary locks and an f2fs_submit_bio call? Yep, we should not. I wasn't sure if these are unnecessary when a_ops->writepage = NULL. Thank you. -- Prasad J Pandit / Red Hat Security Response Team DB7A 84C5 D3F9 7CD1 B5EB

Re: [PATCHv3 0/6] fb: vt8500: patches for 3.10

2013-04-03 Thread Tony Prisk
On 03/04/13 07:20, Tony Prisk wrote: V3 Changes: Tidied up patch 1 as requested by Jean-Christophe - Makes the patch much simpler. V2 Changes: Split the SoC and board portions of the binding into their respective files. Removed the forced non-interlaced code from wm8505fb.c and vt8500lcdfb.c

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-03 Thread Simon Jeons
Hi H.Peter, On 04/04/2013 09:32 AM, H. Peter Anvin wrote: On 04/03/2013 06:17 PM, Simon Jeons wrote: e820 also contain mmio, correct? No. How to check which address is used by mmio? /proc/iomem, correct? So cpu should not access address beyond e820 map(RAM+MMIO). No. -hpa

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-04-03 Thread Rajendra Nayak
Hi Tony, On Thursday 04 April 2013 05:12 AM, Tony Lindgren wrote: > Hi, > [].. >> @@ -1663,6 +1664,40 @@ static struct omap_clk omap44xx_clks[] = { >> CLK(NULL, "cpufreq_ck", _mpu_ck, CK_443X), >> }; >> >> +static struct clk *scrm_clks[] = { >> +_ck, >> +_ck, >> +

Re: linux-next: manual merge of the imx-mxs tree with the pm tree

2013-04-03 Thread Viresh Kumar
On 4 April 2013 10:48, Stephen Rothwell wrote: > Today's linux-next merge of the imx-mxs tree got a conflict in > arch/arm/mach-imx/cpufreq.c between commits b43a7ffbf33b ("cpufreq: > Notify all policy->cpus in cpufreq_notify_transition()") and eb2f50ff93f0 > ("cpufreq: drivers: Remove

[GIT PULL] arm: vt8500: Add support for pinctrl/gpio module

2013-04-03 Thread Tony Prisk
The following changes since commit 8bb9660418e05bb1845ac1a2428444d78e322cc7: Linux 3.9-rc4 (2013-03-23 16:52:44 -0700) are available in the git repository at: git://server.prisktech.co.nz/git/linuxwmt.git tags/vt8500/pinctrl for you to fetch changes up to

linux-next: manual merge of the imx-mxs tree with the pm tree

2013-04-03 Thread Stephen Rothwell
Hi Shawn, Today's linux-next merge of the imx-mxs tree got a conflict in arch/arm/mach-imx/cpufreq.c between commits b43a7ffbf33b ("cpufreq: Notify all policy->cpus in cpufreq_notify_transition()") and eb2f50ff93f0 ("cpufreq: drivers: Remove unnecessary assignments of policy-> members") from the

Re: [PATCH v3 00/11] usb: dwc3/xhci/phy: Enable runtime power management

2013-04-03 Thread Vivek Gautam
Hi Sarah, On Wed, Apr 3, 2013 at 10:57 PM, Sarah Sharp wrote: > Question: Do you still need this patch for 3.10? Felipe's 'next' is closed for 3.10, so this series won't be making it to 3.10 now, as a whole. :-( > > http://marc.info/?l=linux-usb=136057666911621=2 > > Does this patchset build

Re: [PATCHv5 0/7] arm: vt8500: Add support for pinctrl/gpio module

2013-04-03 Thread Stephen Warren
Tony Prisk wrote: ... >Can you just confirm you want: > >pinctrl: bcm2835: make use of of_property_read_u32_index() > >to be included in the pull with this series. I'll get it sent out once >you let me know. That sounds fine, thanks. -- Sent from my Android phone with K-9 Mail. Please excuse

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-04-03 Thread Simon Jeons
Ping! On 03/21/2013 07:36 AM, Simon Jeons wrote: > Hi Naoya, > On 03/21/2013 05:53 AM, Naoya Horiguchi wrote: >> On Wed, Mar 20, 2013 at 07:57:32AM +0800, Simon Jeons wrote: >>> Hi Naoya, >>> On 02/22/2013 03:41 AM, Naoya Horiguchi wrote: When we have a page fault for the address which is

Re: [PATCH 0/3] Sync Android pstore updates

2013-04-03 Thread Anton Vorontsov
On Mon, Apr 01, 2013 at 12:16:57PM -0700, Kees Cook wrote: > On Sun, Mar 31, 2013 at 8:22 PM, Anton Vorontsov wrote: > > Hi all, > > > > Here are a few updates from the Android dev tree. Thanks to Arve Hjønnevåg > > for the code, and John Stultz for actually preparing commits for > > submission.

Re: [PATCH v3 linux-next] cpufreq: ondemand: Calculate gradient of CPU load to early increase frequency

2013-04-03 Thread Viresh Kumar
Hi Stratos, On 4 April 2013 05:00, Stratos Karafotis wrote: > I tried to do some measurements simulating a CPU load with a loop that simply > counts > an integer. The first test simulates a CPU load that lasts 2 x sampling_rate > = ~ 2us. > The second ~4us and the third ~6us. >

linux-next: manual merge of the staging tree with the vfs tree

2013-04-03 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got conflicts in drivers/staging/ccg/f_fs.c and drivers/staging/ccg/rndis.c between commits 465bced2e3ed ("ccg: don't bother with fops->owner") and 4dfac87dca02 ("procfs: new helper - PDE_DATA(inode)") from the vfs tree and commit 515e6dd20b3f

RE: [PATCH v3 0/3] Platform support for EHRPWM & ECAP devices in DAVINCI.

2013-04-03 Thread Philip, Avinash
On Tue, Apr 02, 2013 at 14:05:09, Nori, Sekhar wrote: > On 3/25/2013 1:19 PM, Philip Avinash wrote: > > Add platform support for EHRPWM and ECAP by providing clock nodes and > > device tree nodes. > > This series depends on [1] and [2] and is available for testing at [3]. > > Tested for back light

linux-next: manual merge of the staging tree with the vfs tree

2013-04-03 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in drivers/staging/dgrp/dgrp_specproc.c between commit 464b4fd02caa ("dgrp procfs fixes, part 2") and various other commits from the vfs tree and commit 433121c6ef51 ("staging: dgrp: cleanup sparse warnings") from the staging

[PATCH v4 2/2] watchdog: fix w83627hf_wdt clear timeout expired

2013-04-03 Thread Tony Chung
Observed that the Watchdog Timer Status bit can be set when the driver is loaded. Reset it during initialization. The time-out value must be set to 0 explicitly in this case to prevent an immediate reset. Depending on the motherboard and with watchdog disabled in the BIOS, this reset problem

[PATCH v3 1/2] watchdog: improve w83627hf_wdt to timeout in minute

2013-04-03 Thread Tony Chung
Watchdog should support timeout in minutes. For example, crash dump will usually require 5+ minutes. This patch increase the timeout from 255 seconds to (255*60) seconds and should be good for older LTS releases. This patch need to be rewritten again when this driver migrate to new watchdog

linux-next: manual merge of the staging tree with the vfs tree

2013-04-03 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got conflicts in drivers/staging/dgrp/dgrp_dpa_ops.c, drivers/staging/dgrp/dgrp_mon_ops.c, drivers/staging/dgrp/dgrp_net_ops.c and drivers/staging/dgrp/dgrp_ports_ops.c between commit 33633903f16f ("dgrp procfs fixes, part 5: per-node files")

Re: [PATCHv5 0/7] arm: vt8500: Add support for pinctrl/gpio module

2013-04-03 Thread Tony Prisk
On 04/04/13 10:23, Stephen Warren wrote: On 04/03/2013 07:40 AM, Linus Walleij wrote: On Wed, Apr 3, 2013 at 8:24 AM, Tony Prisk wrote: v5 changes: Changed as requested by Rob Herring: Added of_find_property_value_of_size() to drivers/of/base.c to remove some code that was being duplicated.

Re: [PATCH 1/5] pinctrl: abx500: Staticize some symbols

2013-04-03 Thread Sachin Kamat
Hi Linus, On 19 March 2013 13:58, Patrice CHOTARD wrote: > On 03/19/2013 07:31 AM, Sachin Kamat wrote: > >> These symbols are used only in this file. Without this patch >> we get the following warnings: >> drivers/pinctrl/pinctrl-abx500.c:520:5: warning: >> symbol 'abx500_gpio_request' was not

linux-next: manual merge of the usb-gadget tree with the usb tree

2013-04-03 Thread Stephen Rothwell
Hi Felipe, Today's linux-next merge of the usb-gadget tree got a conflict in drivers/usb/host/ehci-tegra.c between commit 369a9a9d2af7 ("usb: host: ehci-tegra: Fix oops in error cleanup") from the usb tree and commit 4261b8f3538c ("usb: host: ehci-tegra: fix PHY error handling") from the

Re: [PATCH v7 2/2] mm: replace hardcoded 3% with admin_reserve_pages knob

2013-04-03 Thread Simon Jeons
Hi Andrew, On 03/25/2013 09:42 PM, Andrew Shewmaker wrote: Add an admin_reserve_kbytes knob to allow admins to change the hardcoded memory reserve to something other than 3%, which may be multiple gigabytes on large memory systems. Only about 8MB is necessary to enable recovery in the default

Re: [PATCH v1 0/9] uretprobes: Return uprobes implementation

2013-04-03 Thread Ananth N Mavinakayanahalli
On Wed, Apr 03, 2013 at 07:45:52PM +0200, Oleg Nesterov wrote: > On 04/03, Anton Arapov wrote: ... > Looks fine to me. I am going to add this to > git://git.kernel.org/pub/scm/linux/kernel/git/oleg/misc uprobes/core > > Ananth. "4/9 uretprobes/ppc" looks "obviously correct", but could you >

Re: [PATCH v1 4/9] uretprobes/ppc: Hijack return address

2013-04-03 Thread Ananth N Mavinakayanahalli
On Wed, Apr 03, 2013 at 06:00:34PM +0200, Anton Arapov wrote: > Hijack the return address and replace it with a trampoline address. > PowerPC implementation. > > Signed-off-by: Anton Arapov Acked-by: Ananth N Mavinakayanahalli > --- > arch/powerpc/include/asm/uprobes.h | 1 + >

[PATCH 3/2] scm: Stop passing struct cred

2013-04-03 Thread Eric W. Biederman
Now that uids and gids are completely encapsulated in kuid_t and kgid_t we no longer need to pass struct cred which allowed us to test both the uid and the user namespace for equality. Passing struct cred potentially allows us to pass the entire group list as BSD does but I don't believe the

Re: NULL pointer at kset_find_obj

2013-04-03 Thread Rusty Russell
David Howells writes: > Btw, one thing I've noticed is that sysfs appears to be able to execute code > in the module by way of parameter alterations before the module is completely > set up. It's preceeded by the module parameter parsing, which can do the same thing, so I don't think it's an

Re: [PATCH] Add non-zero module sections to sysfs

2013-04-03 Thread Rusty Russell
Sebastian Wankerl writes: > Add non-zero module sections to sysfs on architectures unequal to PARISC. > KGDB needs all module sections for proper module debugging. Therefore, commit > 35dead4235e2b67da7275b4122fed37099c2f462 is revoked except for PARISC > architecture. #ifdef CONFIG_PARISC in

Re: linux-next: build warning after merge of the wireless-next tree

2013-04-03 Thread Larry Finger
On 04/03/2013 09:36 PM, Stephen Rothwell wrote: Hi Larry, On Wed, 03 Apr 2013 20:17:01 -0500 Larry Finger wrote: On 04/03/2013 08:04 PM, Stephen Rothwell wrote: On Thu, 4 Apr 2013 12:00:43 +1100 Stephen Rothwell wrote: After merging the wireless-next tree, today's linux-next build

Re: [PATCH] THP: Use explicit memory barrier

2013-04-03 Thread Simon Jeons
Hi Minchan, On 04/01/2013 07:45 AM, Minchan Kim wrote: __do_huge_pmd_anonymous_page depends on page_add_new_anon_rmap's spinlock for making sure that clear_huge_page write become visible after set set_pmd_at() write. 1. There are no pte modify, why take page_table_lock here? 2. What's the

Re: linux-next: build warning after merge of the wireless-next tree

2013-04-03 Thread Stephen Rothwell
Hi Larry, On Wed, 03 Apr 2013 20:17:01 -0500 Larry Finger wrote: > > On 04/03/2013 08:04 PM, Stephen Rothwell wrote: > > > > On Thu, 4 Apr 2013 12:00:43 +1100 Stephen Rothwell > > wrote: > >> > >> After merging the wireless-next tree, today's linux-next build (x86_64 > >> allmodconfig)

Re: [ 105/124] af_unix: dont send SCM_CREDENTIAL when dest socket is NULL

2013-04-03 Thread Eric W. Biederman
Andy Lutomirski writes: > On Wed, Apr 3, 2013 at 5:47 PM, Eric W. Biederman > wrote: >> >> No. The patch is still bogus. >> >> If the problem is that we are not coallescing messages in stream_recvmsg >> we need a different fix. >> >> Probably something like: >> >> if

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-03 Thread Simon Jeons
On 04/04/2013 10:14 AM, H. Peter Anvin wrote: Because git didn't exist before then? Oh, I see, thanks! :-) Simon Jeons wrote: On 04/04/2013 09:32 AM, H. Peter Anvin wrote: On 04/03/2013 06:17 PM, Simon Jeons wrote: e820 also contain mmio, correct? No. So cpu should not access

linux-next: manual merge of the block tree with the vfs tree

2013-04-03 Thread Stephen Rothwell
Hi Jens, Today's linux-next merge of the block tree got a conflict in drivers/block/drbd/drbd_proc.c between commit 4dfac87dca02 ("procfs: new helper - PDE_DATA(inode)") from the vfs tree and commit 193d01532a73 ("drbd: add module_put() on error path in drbd_proc_open()") from the block tree. I

[PATCH 2/2] af_unix: If we don't care about credentials coallesce all messages

2013-04-03 Thread Eric W. Biederman
It was reported that the following LSB test case failed https://lsbbugs.linuxfoundation.org/attachment.cgi?id=2144 because we were not coallescing unix stream messages when the application was expecting us to. The problem was that the first send was before the socket was accepted and thus

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-03 Thread H. Peter Anvin
Because git didn't exist before then? Simon Jeons wrote: >On 04/04/2013 09:32 AM, H. Peter Anvin wrote: >> On 04/03/2013 06:17 PM, Simon Jeons wrote: >>> e820 also contain mmio, correct? >> No. >> >>> So cpu should not access address beyond >>> e820 map(RAM+MMIO). >> No. >> >> -hpa >> >> >

[PATCH 1/2] Revert "af_unix: dont send SCM_CREDENTIAL when dest socket is NULL"

2013-04-03 Thread Eric W. Biederman
This reverts commit 14134f6584212d585b310ce95428014b653dfaf6. The problem that the above patch was meant to address is that af_unix messages are not being coallesced because we are sending unnecesarry credentials. Not sending credentials in maybe_add_creds totally breaks unconnected unix domain

Re: GPS driver for Linux - kernel or user-space driver?

2013-04-03 Thread Greg KH
On Wed, Apr 03, 2013 at 06:44:51PM -0700, Marcel Holtmann wrote: > Hi Greg, > > I've been approached by a developer at Sony who wants to publish an > open source driver for a Sony GPS receiver module. > >>> > >>> What does the device look like? USB device? UART? Something else? >

[patch v7 02/21] sched: set initial value of runnable avg for new forked task

2013-04-03 Thread Alex Shi
We need initialize the se.avg.{decay_count, load_avg_contrib} for a new forked task. Otherwise random values of above variables cause mess when do new task enqueue: enqueue_task_fair enqueue_entity enqueue_entity_load_avg and make forking balancing imbalance since

[patch v7 08/21] sched: scale_rt_power rename and meaning change

2013-04-03 Thread Alex Shi
The scale_rt_power() used to represent the left CPU utilization after reduce rt utilization. so named it as scale_rt_power has a bit inappropriate. Since we need to use the rt utilization in some incoming patches, we just change return value of this function to rt utilization, and rename it as

[PATCH 5/7] workqueue, use default pwq when fail to allocate node pwd

2013-04-03 Thread Lai Jiangshan
When we fail to allocate the node pwq, we can use the default pwq for the node. Thus we can avoid failure after allocated default pwq, and remove some code for failure path. Signed-off-by: Lai Jiangshan --- kernel/workqueue.c | 28 +++- 1 files changed, 7

[PATCH 6/7] workqueue: node-awared allocation for unbound pool

2013-04-03 Thread Lai Jiangshan
calculate the node of the pool earlier, and allocate the pool from the node. Signed-off-by: Lai Jiangshan --- kernel/workqueue.c | 29 +++-- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 737646d..3f33077

[PATCH 1/7] workqueue: add __WQ_FREEZING and remove POOL_FREEZING

2013-04-03 Thread Lai Jiangshan
freezing is nothing related to pools, but POOL_FREEZING adds a connection, and causes freeze_workqueues_begin() and thaw_workqueues() complicated. Since freezing is workqueue instance attribute, so we introduce __WQ_FREEZING to wq->flags instead and remove POOL_FREEZING. Signed-off-by: Lai

[PATCH 7/7] workqueue: avoid false negative WARN_ON()

2013-04-03 Thread Lai Jiangshan
it is very common wq->dfl_pwq->refcnt > 1. [7.939873] WARNING: at kernel/workqueue.c:4201 destroy_workqueue+0x6a/0x13e() [7.943601] Hardware name: 4286C12 [7.947250] Modules linked in: sdhci_pci sdhci mmc_core usb_storage i915 drm_kms_helper drm i2c_algo_bit i2c_core video [

[PATCH 4/7] workqueue: simplify workqueue_cpu_up_callback(CPU_ONLINE)

2013-04-03 Thread Lai Jiangshan
If we have 4096 CPUs, workqueue_cpu_up_callback() will travel too much CPUs, to avoid it, we use for_each_cpu_worker_pool() for the cpu pools and use for_each_unbound_pool() for unbound pools. After it, for_each_pool() becomes unused, but we keep it for future possible usage. Signed-off-by: Lai

[PATCH 2/7] workqueue: set __WQ_FREEZING only when freezable

2013-04-03 Thread Lai Jiangshan
simplify pwq_adjust_max_active(). make freeze_workqueues_begin() and thaw_workqueues() fast skip non-freezable wq. Signed-off-by: Lai Jiangshan --- kernel/workqueue.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c

[PATCH 3/7] workqueue: rename rebind_workers() to associate_cpu_pool()

2013-04-03 Thread Lai Jiangshan
merge the code of clearing POOL_DISASSOCIATED to rebind_workers(), and rename rebind_workers() to associate_cpu_pool(). It merges high related code together and simplify workqueue_cpu_up_callback(). Signed-off-by: Lai Jiangshan --- kernel/workqueue.c | 21 ++--- 1 files

[patch v7 09/21] sched: get rq potential maximum utilization

2013-04-03 Thread Alex Shi
Since the rt task priority is higher than fair tasks, cfs_rq utilization is just the left of rt utilization. When there are some cfs tasks in queue, the potential utilization may be yielded, so mulitiplying cfs task number to get max potential utilization of cfs. Then the rq utilization is sum of

[patch v7 06/21] sched: add new sg/sd_lb_stats fields for incoming fork/exec/wake balancing

2013-04-03 Thread Alex Shi
For power aware balancing, we care the sched domain/group's utilization. So add: sd_lb_stats.sd_util and sg_lb_stats.group_util. And want to know which group is busiest but still has capability to handle more tasks, so add: sd_lb_stats.group_leader Signed-off-by: Alex Shi ---

[patch v7 11/21] sched: add sched_burst_threshold_ns as wakeup burst indicator

2013-04-03 Thread Alex Shi
rq->avg_idle is 'to used to accommodate bursty loads in a dirt simple dirt cheap manner' -- Mike Galbraith. With this cheap and smart bursty indicator, we can find the wake up burst, and just use nr_running as instant utilization only. The 'sysctl_sched_burst_threshold' used for wakeup burst,

[patch v7 14/21] sched: add power/performance balance allow flag

2013-04-03 Thread Alex Shi
If a sched domain is idle enough for regular power balance, LBF_POWER_BAL will be set, LBF_PERF_BAL 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

[patch v7 12/21] sched: using avg_idle to detect bursty wakeup

2013-04-03 Thread Alex Shi
Sleeping task has no utiliation, when they were bursty waked up, the zero utilization make scheduler out of balance, like aim7 benchmark. rq->avg_idle is 'to used to accommodate bursty loads in a dirt simple dirt cheap manner' -- Mike Galbraith. With this cheap and smart bursty indicator, we can

[patch v7 20/21] sched: don't do power balance on share cpu power domain

2013-04-03 Thread Alex Shi
Packing tasks among such domain can't save power, just performance losing. So no power balance on them. Signed-off-by: Alex Shi --- kernel/sched/fair.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 047a1b3..3a0284b

[patch v7 21/21] sched: make sure select_tas_rq_fair get a cpu

2013-04-03 Thread Alex Shi
From: Preeti U Murthy Problem: select_task_rq_fair() returns a target CPU/ waking CPU if no balancing is required. However with the current power aware scheduling in this path, an invalid CPU might be returned. If get_cpu_for_power_policy() fails to find a new_cpu for the forked task, then

[patch v7 18/21] sched: power aware load balance

2013-04-03 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 v7 17/21] sched: add new members of sd_lb_stats

2013-04-03 Thread Alex Shi
Added 4 new members in sb_lb_stats, that will be used in incomming power aware balance. group_min; //least utliszation group in domain min_load_per_task; //load_per_task in group_min leader_util;// sum utilizations of group_leader min_util; // sum utilizations of group_min

[patch v7 13/21] sched: packing transitory tasks in wakeup power balancing

2013-04-03 Thread Alex Shi
If the waked 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. If there is no cpu eligible to handle it, will use a idlest cpu in leader group.

[patch v7 19/21] sched: lazy power balance

2013-04-03 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 v7 15/21] sched: pull all tasks from source group

2013-04-03 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 v7 16/21] sched: no balance for prefer_sibling in power scheduling

2013-04-03 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 v7 10/21] sched: add power aware scheduling in fork/exec/wake

2013-04-03 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 v7 07/21] sched: move sg/sd_lb_stats struct ahead

2013-04-03 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 | 99 +++-- 1 file changed, 50 insertions(+), 49 deletions(-) diff --git

[patch v7 04/21] sched: add sysfs interface for sched_balance_policy selection

2013-04-03 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 $cat /sys/devices/system/cpu/sched_balance_policy/current_sched_balance_policy powersaving This means the using sched balance policy

[patch v7 05/21] sched: log the cpu utilization at rq

2013-04-03 Thread Alex Shi
The cpu's utilization is to measure how busy is the cpu. util = cpu_rq(cpu)->avg.runnable_avg_sum * SCHED_POEWR_SCALE / cpu_rq(cpu)->avg.runnable_avg_period; Since the util is no more than 1, we scale its value with 1024, same as SCHED_POWER_SCALE and set the FULL_UTIL as

[patch v7 01/21] Revert "sched: Introduce temporary FAIR_GROUP_SCHED dependency for load-tracking"

2013-04-03 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 | 7 +-- kernel/sched/core.c | 7 +-- kernel/sched/fair.c | 13 ++--- kernel/sched/sched.h | 9 + 4 files

[patch v7 03/21] sched: add sched balance policies in kernel

2013-04-03 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 a powersaving scheduler policy. It will use runnable load util in scheduler balancing. The

[patch v7 0/21] sched: power aware scheduling

2013-04-03 Thread Alex Shi
Many many thanks for Namhyung, PJT, Vicent and Preeti's comments and suggestion! This version included the following changes: a, remove the patch 3th to recover the runnable load avg recording on rt b, check avg_idle for each cpu wakeup burst not only the waking CPU. c, fix select_task_rq_fair

Re: mkfs.f2fs gets stuck with "blk_update_request: bio idx 0 >= vcnt 0" on 3.8

2013-04-03 Thread Max Filippov
Hi, On Tue, Apr 2, 2013 at 7:41 PM, Max Filippov wrote: > I'm trying to create f2fs filesystem on SD card on pandaboard using > f2fs-tools v1.0.0. > It works fine on Linus' v3.6, but fails on both v3.8 and stable v3.8.5: > > # mkfs.f2fs /dev/mmcblk0p3 > Info: sector size = 512 > Info: total

[v3.9][regression] a simple ' time vmstat 1 11 ' can takes up 25s+!

2013-04-03 Thread feng xiangjun
Hi guys, I wonder if anyone see this problem. When running 3.9-rc3+, the system is very sluggish. For example, on an almost idle system, ~$ time vmstat 1 11 procs ---memory-- ---swap-- -io -system-- cpu r b swpd free buff cache si sobibo in

[PATCH] f2fs: introduce a new global lock scheme

2013-04-03 Thread Jaegeuk Kim
In the previous version, f2fs uses global locks according to the usage types, such as directory operations, block allocation, block write, and so on. Reference the following lock types in f2fs.h. enum lock_type { RENAME, /* for renaming operations */ DENTRY_OPS, /* for

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-03 Thread Simon Jeons
On 04/04/2013 09:32 AM, H. Peter Anvin wrote: On 04/03/2013 06:17 PM, Simon Jeons wrote: e820 also contain mmio, correct? No. So cpu should not access address beyond e820 map(RAM+MMIO). No. -hpa One offline question, why can't check git log before 2005? -- To unsubscribe from

Re: GPS driver for Linux - kernel or user-space driver?

2013-04-03 Thread Marcel Holtmann
Hi Greg, I've been approached by a developer at Sony who wants to publish an open source driver for a Sony GPS receiver module. >>> >>> What does the device look like? USB device? UART? Something else? >>> I've looked in the kernel source, and only see one standalone GPS

Re: kernel/workqueue.c:4434:61: sparse: expression using sizeof bool

2013-04-03 Thread Fengguang Wu
CC Christopher and LKML. On Wed, Apr 03, 2013 at 02:57:18PM -0700, Tejun Heo wrote: > Hello, Fengguang. Hi Tejun! > On Sat, Mar 30, 2013 at 08:29:47PM +0800, kbuild test robot wrote: > > tree: git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git > > review-better-dbg > > head:

[PATCH v2] clk: add LP8788 clock driver

2013-04-03 Thread Kim, Milo
LP8788 PMU consists of regulator, battery charger, RTC, ADC, backlight driver and current sinks. Here is additional driver, clock. * Clock source LP8788 clock is generated by two clock source. One is internal oscillator. The other is attached external crystal oscillator. LP8788 provides automatic

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-03 Thread H. Peter Anvin
On 04/03/2013 06:17 PM, Simon Jeons wrote: > > e820 also contain mmio, correct? No. > So cpu should not access address beyond > e820 map(RAM+MMIO). No. -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: GPS driver for Linux - kernel or user-space driver?

2013-04-03 Thread Greg KH
On Wed, Apr 03, 2013 at 06:12:42PM -0700, Marcel Holtmann wrote: > Hi Greg, > > >> I've been approached by a developer at Sony who wants to publish an > >> open source driver for a Sony GPS receiver module. > > > > What does the device look like? USB device? UART? Something else? > > > >>

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-03 Thread Simon Jeons
Hi H.Peter, On 04/04/2013 09:13 AM, H. Peter Anvin wrote: On 04/03/2013 06:11 PM, Simon Jeons wrote: Why we consider boot_cpu_data.x86_phys_bits instead of e820 map here? Because x86_phys_bits is what controls how much address space the processor has. e820 tells us how much *RAM* the machine

[PATCH -next] audit: remove duplicated include from audit.c

2013-04-03 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- kernel/audit.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/audit.c b/kernel/audit.c index 488f85f..9377913 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -58,7 +58,6 @@ #ifdef CONFIG_SECURITY

Re: linux-next: build warning after merge of the wireless-next tree

2013-04-03 Thread Larry Finger
On 04/03/2013 08:04 PM, Stephen Rothwell wrote: Hi John, On Thu, 4 Apr 2013 12:00:43 +1100 Stephen Rothwell wrote: After merging the wireless-next tree, today's linux-next build (x86_64 allmodconfig) produced this warning: x86_64-linux-gcc: warning: drivers/net/wireless/rtlwifi: linker

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-03 Thread H. Peter Anvin
On 04/03/2013 06:11 PM, Simon Jeons wrote: > > Why we consider boot_cpu_data.x86_phys_bits instead of e820 map here? > Because x86_phys_bits is what controls how much address space the processor has. e820 tells us how much *RAM* the machine has, or specifically, how much RAM the machine had on

Re: GPS driver for Linux - kernel or user-space driver?

2013-04-03 Thread Marcel Holtmann
Hi Greg, >> I've been approached by a developer at Sony who wants to publish an >> open source driver for a Sony GPS receiver module. > > What does the device look like? USB device? UART? Something else? > >> I've looked in the kernel source, and only see one standalone GPS >> driver, for

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-03 Thread Simon Jeons
Hi H.Peter, On 04/03/2013 02:48 AM, H. Peter Anvin wrote: On 04/02/2013 05:28 AM, Frantisek Hrbata wrote: diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index d8e8eef..39607c6 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h @@ -242,6 +242,10 @@ static

Re: GPS driver for Linux - kernel or user-space driver?

2013-04-03 Thread Greg KH
On Wed, Apr 03, 2013 at 05:52:03PM -0700, Tim Bird wrote: > I've been approached by a developer at Sony who wants to publish an > open source driver for a Sony GPS receiver module. What does the device look like? USB device? UART? Something else? > I've looked in the kernel source, and only

Re: linux-next: build warning after merge of the wireless-next tree

2013-04-03 Thread Stephen Rothwell
Hi John, On Thu, 4 Apr 2013 12:00:43 +1100 Stephen Rothwell wrote: > > After merging the wireless-next tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > x86_64-linux-gcc: warning: drivers/net/wireless/rtlwifi: linker input file > unused because linking not done

Re: [ 105/124] af_unix: dont send SCM_CREDENTIAL when dest socket is NULL

2013-04-03 Thread Eric W. Biederman
Eric Dumazet writes: > On Wed, 2013-04-03 at 17:19 -0700, Eric Dumazet wrote: > >> Well, yes, this commit fixes a real bug : We were coalescing two >> messages into a single one, even if the senders were different. > > By the way, the 'LSB' test program can be found here : > >

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

2013-04-03 Thread Stephen Rothwell
Hi John, After merging the wireless-next tree, today's linux-next build (x86_64 allmodconfig) produced this warning: x86_64-linux-gcc: warning: drivers/net/wireless/rtlwifi: linker input file unused because linking not done x86_64-linux-gcc: warning: drivers/net/wireless/rtlwifi: linker input

Re: [RT LATENCY] 249 microsecond latency caused by slub's unfreeze_partials() code.

2013-04-03 Thread Joonsoo Kim
Hello, Christoph. On Tue, Apr 02, 2013 at 07:25:20PM +, Christoph Lameter wrote: > On Tue, 2 Apr 2013, Joonsoo Kim wrote: > > > We need one more fix for correctness. > > When available is assigned by put_cpu_partial, it doesn't count cpu slab's > > objects. > > Please reference my old

Re: [patch v6 0/21] sched: power aware scheduling

2013-04-03 Thread Alex Shi
On 03/30/2013 10:34 PM, Alex Shi wrote: > This patch set implement/consummate the rough power aware scheduling > proposal: https://lkml.org/lkml/2012/8/13/139. BTW, this task packing feature causes more cpu freq boost because part cores idle. And since cpu freq boost is more power efficient. that

Re: [PATCH v3] of/pci: Provide support for parsing PCI DT ranges property

2013-04-03 Thread Jingoo Han
On Wednesday, March 27, 2013 10:04 PM, Thierry Reding wrote: > > On Tue, Mar 26, 2013 at 04:20:23PM +, Andrew Murray wrote: > > This patch factors out common implementation patterns to reduce overall > > kernel > > code and provide a means for host bridge drivers to directly obtain struct >

Re: [PATCH 10/10] perf sort: Consolidate sort_entry__setup_elide()

2013-04-03 Thread Namhyung Kim
On Wed, 3 Apr 2013 14:09:44 -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Apr 03, 2013 at 09:26:19PM +0900, Namhyung Kim escreveu: >> From: Namhyung Kim >> >> The same code was duplicate to places, factor them out to common >> sort__setup_elide(). > > Looks ok, applying after fixing up fuzzes

Re: [PATCH 3/4] x86, kdump: Retore crashkernel= to allocate low

2013-04-03 Thread Yinghai Lu
On Wed, Apr 3, 2013 at 2:00 PM, Vivek Goyal wrote: > On Wed, Apr 03, 2013 at 01:38:56PM -0700, Yinghai Lu wrote: >> On Wed, Apr 3, 2013 at 10:47 AM, Vivek Goyal wrote: >> > So what I am saying that all our code is written assuming there is one >> > single reserved range. Now if we need to

Re: [PATCH 09/10] perf hist browser: Use sort__has_sym

2013-04-03 Thread Namhyung Kim
On Wed, 3 Apr 2013 14:07:54 -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Apr 03, 2013 at 09:26:18PM +0900, Namhyung Kim escreveu: >> From: Namhyung Kim >> >> The TUI hist browser had a similar variable has_symbols for the same >> purpose. Let's get rid of the duplication. > > I'm ok with

Re: [PATCH 2/5] sched: factor out code to should_we_balance()

2013-04-03 Thread Joonsoo Kim
Hello, Peter. On Tue, Apr 02, 2013 at 12:29:42PM +0200, Peter Zijlstra wrote: > On Tue, 2013-04-02 at 12:00 +0200, Peter Zijlstra wrote: > > On Tue, 2013-04-02 at 18:50 +0900, Joonsoo Kim wrote: > > > > > > It seems that there is some misunderstanding about this patch. > > > In this patch, we

Re: [ 105/124] af_unix: dont send SCM_CREDENTIAL when dest socket is NULL

2013-04-03 Thread Andy Lutomirski
On Wed, Apr 3, 2013 at 5:47 PM, Eric W. Biederman wrote: > Eric Dumazet writes: > >> On Wed, 2013-04-03 at 17:05 -0700, Eric W. Biederman wrote: >>> Sven Joachim writes: >>> >>> > On 2013-04-03 00:11 +0200, Greg Kroah-Hartman wrote: >>> > >>> >> 3.8-stable review patch. If anyone has any

  1   2   3   4   5   6   7   8   9   10   >