Re: [PATCH] kernel: module: strncpy issue, using strlcpy instead of strncpy

2013-04-10 Thread Chen Gang
On 2013年04月09日 17:36, Chen Gang wrote: On 2013年04月09日 09:52, Chen Gang wrote: it looks like a bug. for me, I prefer to give length check for it. but I am sorry, now, I can not be sure whether it is really a bug. It really is. We don't export any symbols 128 characters, but if we did

Re: [PATCH 3/3] efi: Distinguish between remaining space and actually used space

2013-04-10 Thread Lingzhu Xiang
On 04/10/2013 10:41 AM, Matthew Garrett wrote: + if (!storage_size || size remaining_size || + ((active_size + size + VAR_METADATA_SIZE storage_size / 2) +(remaining_size - size - VAR_METADATA_SIZE storage_size / 2))) This could overflow. (u64)32768 -

Re: [PATCH 1/3] mm, vmscan: count accidental reclaimed pages failed to put into lru

2013-04-10 Thread Minchan Kim
On Wed, Apr 10, 2013 at 02:48:22PM +0900, Joonsoo Kim wrote: Hello, Minchan. On Tue, Apr 09, 2013 at 02:55:14PM +0900, Minchan Kim wrote: Hello Joonsoo, On Tue, Apr 09, 2013 at 10:21:16AM +0900, Joonsoo Kim wrote: In shrink_(in)active_list(), we can fail to put into lru, and these

[PATCH] sched: Remove redundant code from can_migrate_task()

2013-04-10 Thread Zhang Hang
There is no opportunity to return 1 if tsk_cache_hot is true and the expression (env-sd-nr_balance_failed env-sd-cache_nice_tries) is false. Meanwhile, it's unnecessary to judge whether tsk_cache_hot is true or false after being filtered by previous judgment. Signed-off-by: Zhang Hang

[patch] mm, hotplug: avoid compiling memory hotremove functions when disabled

2013-04-10 Thread David Rientjes
__remove_pages() is only necessary for CONFIG_MEMORY_HOTREMOVE. PowerPC pseries will return -EOPNOTSUPP if unsupported. Adding an #ifdef causes several other functions it depends on to also become unnecessary, which saves in .text when disabled (it's disabled in most defconfigs besides powerpc,

Re: [PATCHv3] driver: serial: prevent UART console idle on suspend while using no_console_suspend

2013-04-10 Thread Sourav Poddar
Hi, On Wednesday 10 April 2013 12:37 AM, Kevin Hilman wrote: Sourav Poddarsourav.pod...@ti.com writes: Hi Kevin, On Friday 05 April 2013 11:10 PM, Kevin Hilman wrote: Sourav Poddarsourav.pod...@ti.com writes: With dt boot, uart wakeup after suspend is non functional while using

Re: [patch v3 6/8] sched: consider runnable load average in move_tasks

2013-04-10 Thread Michael Wang
On 04/09/2013 03:08 PM, Vincent Guittot wrote: On 2 April 2013 05:23, Alex Shi alex@intel.com wrote: Except using runnable load average in background, move_tasks is also the key functions in load balance. We need consider the runnable load average in it in order to the apple to apple load

RE: [PATCH v3 3/3] ARM: davinci: da850: add EHRPWM ECAP DT node

2013-04-10 Thread Philip, Avinash
On Wed, Apr 10, 2013 at 11:25:19, Nori, Sekhar wrote: On 4/10/2013 11:00 AM, Philip, Avinash wrote: On Tue, Apr 09, 2013 at 17:05:25, Nori, Sekhar wrote: On 4/9/2013 2:12 PM, Philip, Avinash wrote: On Mon, Apr 08, 2013 at 18:39:57, Nori, Sekhar wrote: On 4/8/2013 2:39 PM, Philip,

Re: [PATCH v2 1/3] resource: Add __adjust_resource() for internal use

2013-04-10 Thread David Rientjes
On Mon, 8 Apr 2013, Toshi Kani wrote: Added __adjust_resource(), which is called by adjust_resource() internally after the resource_lock is held. There is no interface change to adjust_resource(). This change allows other functions to call __adjust_resource() internally while the

Re: linux-next: Tree for Apr 9 [cpufreq: NULL pointer deref]

2013-04-10 Thread Sedat Dilek
On Wed, Apr 10, 2013 at 7:53 AM, Sedat Dilek sedat.di...@gmail.com wrote: On Wed, Apr 10, 2013 at 7:41 AM, Sedat Dilek sedat.di...@gmail.com wrote: On Tue, Apr 9, 2013 at 6:51 PM, Viresh Kumar viresh.ku...@linaro.org wrote: On 9 April 2013 21:38, Sedat Dilek sedat.di...@gmail.com wrote: With

Re: [PATCH v2 2/3] resource: Add release_mem_region_adjustable()

2013-04-10 Thread David Rientjes
On Mon, 8 Apr 2013, Toshi Kani wrote: Added release_mem_region_adjustable(), which releases a requested region from a currently busy memory resource. This interface adjusts the matched memory resource accordingly even if the requested region does not match exactly but still fits into.

RE: [PATCHv3] driver: serial: prevent UART console idle on suspend while using no_console_suspend

2013-04-10 Thread Bedia, Vaibhav
Hi Sourav, Kevin, On Wed, Apr 10, 2013 at 11:37:28, Poddar, Sourav wrote: Hi, On Wednesday 10 April 2013 12:37 AM, Kevin Hilman wrote: Sourav Poddarsourav.pod...@ti.com writes: Hi Kevin, On Friday 05 April 2013 11:10 PM, Kevin Hilman wrote: Sourav Poddarsourav.pod...@ti.com writes:

Re: [PATCH v2 03/10] mm/page_alloc: insert memory barriers to allow async update of pcp batch and high

2013-04-10 Thread Gilad Ben-Yossef
On Wed, Apr 10, 2013 at 2:28 AM, Cody P Schafer c...@linux.vnet.ibm.com wrote: In pageset_set_batch() and setup_pagelist_highmark(), ensure that batch is always set to a safe value (1) prior to updating high, and ensure that high is fully updated before setting the real value of batch.

Re: [PATCH v2 03/10] mm/page_alloc: insert memory barriers to allow async update of pcp batch and high

2013-04-10 Thread Gilad Ben-Yossef
On Wed, Apr 10, 2013 at 9:19 AM, Gilad Ben-Yossef gi...@benyossef.com wrote: On Wed, Apr 10, 2013 at 2:28 AM, Cody P Schafer c...@linux.vnet.ibm.com wrote: In pageset_set_batch() and setup_pagelist_highmark(), ensure that batch is always set to a safe value (1) prior to updating high, and

Re: [PATCH] kernel: trace: ftrace: strncpy, using strlcpy instead of strncpy

2013-04-10 Thread Chen Gang F T
On 2013年04月09日 23:00, Steven Rostedt wrote: I'll queue this up for my 3.10 queue. I'm going to merge this patch with the previous patch you sent that updates trace.c Thanks, -- Steve thanks too. -- Chen Gang Flying Transformer -- To unsubscribe from this list: send the line

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

2013-04-10 Thread Pekka Enberg
On Mon, Apr 8, 2013 at 3:32 PM, Steven Rostedt rost...@goodmis.org wrote: Index: linux/mm/slub.c === --- linux.orig/mm/slub.c2013-03-28 12:14:26.958358688 -0500 +++ linux/mm/slub.c 2013-04-01 10:23:24.677584499 -0500 @@

Re: [PATCHv2] rdma: add a new IB_ACCESS_GIFT flag

2013-04-10 Thread Michael S. Tsirkin
On Wed, Apr 10, 2013 at 12:32:31AM -0400, Michael R. Hines wrote: On 04/09/2013 11:24 PM, Michael S. Tsirkin wrote: Which mechanism do you refer to? You patches still seem to pin each page in guest memory at some point, which will break all COW. In particular any pagemap tricks to detect

Re: [PATCH 1/2] hfs: add error checking for hfs_find_init()

2013-04-10 Thread Vyacheslav Dubeyko
On Tue, 2013-04-09 at 22:14 +0400, Alexey Khoroshilov wrote: hfs_find_init() may fail with ENOMEM, but there are places, where the returned value is not checked. The consequences can be very unpleasant, e.g. kfree uninitialized pointer and inappropriate mutex unlocking. The patch adds

Re: [PATCH 2/2] hfsplus: add error propagation to __hfsplus_ext_write_extent()

2013-04-10 Thread Vyacheslav Dubeyko
On Tue, 2013-04-09 at 22:14 +0400, Alexey Khoroshilov wrote: __hfsplus_ext_write_extent() suppresses errors coming from hfs_brec_find(). The patch implements error code propagation. Looks good for me. Reviewed-by: Vyacheslav Dubeyko sl...@dubeyko.com Tnanks, Vyacheslav Dubeyko.

[PATCH RFT 1/2] regulator: ab8500: Fix set voltage for AB8540_LDO_AUX3

2013-04-10 Thread Axel Lin
When setting voltage for AB8540_LDO_AUX3, current code only updates one of info-voltage_reg and info-expand_register registers which is wrong. To ensure we set to correct voltage, it always needs to clear or set expand_register.voltage_mask bit of expand_register. Signed-off-by: Axel Lin

Re: linux-next: manual merge of the mfd tree with the v4l-dvb tree

2013-04-10 Thread Samuel Ortiz
Hi Stephen, On Wed, Apr 10, 2013 at 01:48:13PM +1000, Stephen Rothwell wrote: Hi Samuel, Today's linux-next merge of the mfd tree got a conflict in drivers/mfd/Kconfig between commit 3f8ec5df11aa ([media] mfd: Add header files and Kbuild plumbing for SI476x MFD core) from the v4l-dvb tree

[PATCH RFT 2/2] regulator: ab8500: Optimize ab8540_aux3_regulator_get_voltage_sel

2013-04-10 Thread Axel Lin
We can save a register read operation in some case if read expand_register first. If info-expand_register.voltage_mask bit is set, no need to read voltage_reg. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/ab8500.c | 42 ++ 1 file

Re: [PATCH 01/10] mm: vmscan: Limit the number of pages kswapd reclaims at each priority

2013-04-10 Thread Kamezawa Hiroyuki
(2013/04/09 20:06), Mel Gorman wrote: The number of pages kswapd can reclaim is bound by the number of pages it scans which is related to the size of the zone and the scanning priority. In many cases the priority remains low because it's reset every SWAP_CLUSTER_MAX reclaimed pages but in the

[PATCH] pinctrl: pinctrl-single: add missing double quote

2013-04-10 Thread Prabhakar lad
From: Lad, Prabhakar prabhakar.cse...@gmail.com add a missing double quote for compatible property for pmx_wkup. Signed-off-by: Lad, Prabhakar prabhakar.cse...@gmail.com Cc: Grant Likely grant.lik...@secretlab.ca Cc: Rob Herring rob.herr...@calxeda.com Cc: Rob Landley r...@landley.net Cc: Tony

Re: [patch v3 6/8] sched: consider runnable load average in move_tasks

2013-04-10 Thread Vincent Guittot
On 10 April 2013 08:07, Michael Wang wang...@linux.vnet.ibm.com wrote: On 04/09/2013 03:08 PM, Vincent Guittot wrote: On 2 April 2013 05:23, Alex Shi alex@intel.com wrote: Except using runnable load average in background, move_tasks is also the key functions in load balance. We need

Re: [RFC PATCH 0/2] cpufreq: Introduce LAB cpufreq governor.

2013-04-10 Thread Vincent Guittot
On 9 April 2013 20:52, Vincent Guittot vincent.guit...@linaro.org wrote: On Tuesday, 9 April 2013, Lukasz Majewski l.majew...@samsung.com wrote: Hi Viresh and Vincent, On 9 April 2013 16:07, Lukasz Majewski l.majew...@samsung.com wrote: On Mon, Apr 1, 2013 at 1:54 PM, Jonghwa Lee Our

RE: [PATCH] RFC: mmc: dw_mmc: Always go to STATE_DATA_BUSY from STATE_DATA_ERROR

2013-04-10 Thread Seungwon Jeon
On Tuesday, April 09, 2013, Doug Anderson wrote: Seungwon, On Mon, Apr 8, 2013 at 5:17 AM, Seungwon Jeon tgih@samsung.com wrote: I guess Doug are debugging it with wifi, right? Yes, we're debugging it on the Samsung ARM Chromebook on a part that has an SDIO WiFi module by Marvell.

Re: [PATCH 2/7] sched: Update rq clock on nohz CPU before setting fair group shares

2013-04-10 Thread Peter Zijlstra
On Tue, 2013-04-09 at 15:21 +0200, Frederic Weisbecker wrote: Also please check those two patches in my series, it's a draft for an rq clock debug framework. For now it's just a brainless stale clock check but that's a start: *

Re: [PATCH] thermal: step_wise: set throttle target within thermal instance limits

2013-04-10 Thread Zhang Rui
On Tue, 2013-04-09 at 14:59 -0700, Andrew Bresticker wrote: When selecting a target cooling state in get_target_state(), make sure that the state is at least as high as the minimum when the temperature is rising and at least as low as the maximum when the temperature is falling. This is

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

2013-04-10 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got conflicts in drivers/pinctrl/pinctrl-samsung.c and drivers/pinctrl/pinctrl-samsung.h between commit 61dd72613177 (pinctrl: Add pinctrl-s3c64xx driver) from the pinctrl tree and commit f67faf487fc1 (pinctrl: exynos: add exynos5250 SoC

Re: [PATCH] [PATCH] Gaurantee spinlocks implicit barrier for !PREEMPT_COUNT

2013-04-10 Thread Peter Zijlstra
On Tue, 2013-04-09 at 07:32 -0700, Linus Torvalds wrote: Something like the attached (still untested, although it seems to at least compile) patch. Comments? Yes, makes me feel far more comfortable than this asm volatile business (which as you noted has holes in it). -- To unsubscribe from

[PATCH 1/2] pps-gpio: convert to devm_* helpers

2013-04-10 Thread Jan Luebbe
Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/pps/clients/pps-gpio.c | 31 --- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clients/pps-gpio.c index 2bf0c1b..221858d 100644 ---

[PATCH 2/2] pps-gpio: convert to module_platform_driver

2013-04-10 Thread Jan Luebbe
This removes some boilerplate code (no functional changes). Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/pps/clients/pps-gpio.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clients/pps-gpio.c

Re: [PATCH] sched: Fix 32bit race in sched_clock_remote()

2013-04-10 Thread Peter Zijlstra
On Tue, 2013-04-09 at 22:55 +0800, Yong Zhang wrote: + this_clock = scd_clock_read(my_scd); + remote_clock = scd_clock_read(scd); ^^ it doesn't match the declaration: scd_read_clock(). Yeah, I'm a moron and forgot to compile

Re: [PATCH 02/10] mm: vmscan: Obey proportional scanning requirements for kswapd

2013-04-10 Thread Kamezawa Hiroyuki
(2013/04/09 20:06), Mel Gorman wrote: Simplistically, the anon and file LRU lists are scanned proportionally depending on the value of vm.swappiness although there are other factors taken into account by get_scan_count(). The patch mm: vmscan: Limit the number of pages kswapd reclaims limits

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

2013-04-10 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in arch/arm/mach-s3c24xx/Kconfig between commit 785f40040874 (cpufreq: s3c24xx: move cpufreq driver to drivers/cpufreq) from the pm tree and commits fb278af74b28 (ARM: S3C24XX: Removed unneeded dependency on CPU_S3C2410) and

[PATCH 0/8] Nvram-to-pstore

2013-04-10 Thread Aruna Balakrishnaiah
Currently the kernel provides the contents of p-series NVRAM only as a simple stream of bytes via /dev/nvram, which must be interpreted in user space by the nvram command in the powerpc-utils package. This patch set exploits the pstore subsystem to expose each partition in NVRAM as a separate

[PATCH 1/8] Remove syslog prefix in uncompressed oops text

2013-04-10 Thread Aruna Balakrishnaiah
Removal of syslog prefix in the uncompressed oops text will help in capturing more oops data. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com Reviewed-by: Jim Keniston jkeni...@us.ibm.com --- arch/powerpc/platforms/pseries/nvram.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH 2/8] Add version and timestamp to oops header

2013-04-10 Thread Aruna Balakrishnaiah
Introduce version and timestamp information in the oops header. oops_log_info (oops header) holds version (to distinguish between old and new format oops header), length of the oops text (compressed or uncompressed) and timestamp. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com

[PATCH 3/8] Introduce generic read function to read nvram-partitions

2013-04-10 Thread Aruna Balakrishnaiah
Introduce generic read function to read nvram partitions other than rtas. nvram_read_error_log will be retained which is used to read rtas partition from rtasd. nvram_read_partition is the generic read function to read from any nvram partition. Signed-off-by: Aruna Balakrishnaiah

[PATCH 4/8] Read/Write oops nvram partition via pstore

2013-04-10 Thread Aruna Balakrishnaiah
This patch exploits pstore infrastructure in power systems. IBM's system p machines provide persistent storage for LPARs through NVRAM. NVRAM's lnx,oops-log partition is used to log oops messages. In case pstore registration fails it will fall back to kmsg_dump mechanism. This patch will

[PATCH 6/8] Distinguish between a os-partition and non-os partition

2013-04-10 Thread Aruna Balakrishnaiah
Introduce os_partition member in nvram_os_partition structure to identify if the partition is an os partition or not. This will be useful to handle non-os partitions of-config and common in subsequent patches. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com Reviewed-by: Jim Keniston

[PATCH 7/8] Read of-config partition via pstore

2013-04-10 Thread Aruna Balakrishnaiah
This patch exploits pstore infrastructure to read the details from NVRAM's of-config partition. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com Reviewed-by: Jim Keniston jkeni...@us.ibm.com --- arch/powerpc/platforms/pseries/nvram.c | 58 ++--

[PATCH 8/8] Read common partition via pstore

2013-04-10 Thread Aruna Balakrishnaiah
This patch exploits pstore infrastructure to read the details from NVRAM's common partition. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com Reviewed-by: Jim Keniston jkeni...@us.ibm.com --- arch/powerpc/platforms/pseries/nvram.c | 17 - fs/pstore/inode.c

Re: Loopback device hung [was Re: xfs deadlock on 3.9-rc5 running xfstests case #78]

2013-04-10 Thread Jens Axboe
On Tue, Apr 09 2013, Dave Chinner wrote: On Tue, Apr 09, 2013 at 09:01:39AM +0200, Jens Axboe wrote: On Tue, Apr 09 2013, Dave Chinner wrote: On Thu, Apr 04, 2013 at 04:30:54PM -0400, Phillip Susi wrote: I have not tested it yet, but I am pretty sure it won't work. It looks like

[PATCH 5/8] Read rtas partition via pstore

2013-04-10 Thread Aruna Balakrishnaiah
This patch exploits pstore infrastructure to read the details from NVRAM's rtas partition. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com Reviewed-by: Jim Keniston jkeni...@us.ibm.com --- arch/powerpc/platforms/pseries/nvram.c | 33 +---

Re: [PATCH v4] sched: fix wrong rq's runnable_avg update with rt tasks

2013-04-10 Thread Peter Zijlstra
On Tue, 2013-04-09 at 11:06 +0200, Vincent Guittot wrote: +void idle_enter(struct rq *this_rq) +{ + update_rq_runnable_avg(this_rq, 1); +} +void idle_exit(struct rq *this_rq) +{ + update_rq_runnable_avg(this_rq, 0); +} These seem like fairly unfortunate names to

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

2013-04-10 Thread Joonsoo Kim
On Wed, Apr 10, 2013 at 09:31:10AM +0300, Pekka Enberg wrote: On Mon, Apr 8, 2013 at 3:32 PM, Steven Rostedt rost...@goodmis.org wrote: Index: linux/mm/slub.c === --- linux.orig/mm/slub.c2013-03-28 12:14:26.958358688

[PATCH v5 2/3] of/pci: Provide support for parsing PCI DT ranges property

2013-04-10 Thread Andrew Murray
This patch factors out common implementation patterns to reduce overall kernel code and provide a means for host bridge drivers to directly obtain struct resources from the DT's ranges property without relying on architecture specific DT handling. This will make it easier to write archiecture

[PATCH v5 3/3] of/pci: mips: convert to common of_pci_range_parser

2013-04-10 Thread Andrew Murray
This patch converts the pci_load_of_ranges function to use the new common of_pci_range_parser. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com --- arch/mips/pci/pci.c | 50 -- 1 files changed, 16

[PATCH v5 0/3] of/pci: Provide common support for PCI DT parsing

2013-04-10 Thread Andrew Murray
This patchset factors out duplicated code associated with parsing PCI DT ranges properties across the architectures and introduces a ranges parser. This parser of_pci_range_parser can be used directly by ARM host bridge drivers enabling them to obtain ranges from device trees. Compared to the v4

[PATCH v5 1/3] of/pci: Unify pci_process_bridge_OF_ranges from Microblaze and PowerPC

2013-04-10 Thread Andrew Murray
The pci_process_bridge_OF_ranges function, used to parse the ranges property of a PCI host device, is found in both Microblaze and PowerPC architectures. These implementations are nearly identical. This patch moves this common code to a common place. Signed-off-by: Andrew Murray

Re: [PATCHSET] perf, cgroup: implement hierarchy support for perf_event controller

2013-04-10 Thread Peter Zijlstra
On Mon, 2013-04-08 at 19:23 -0700, Tejun Heo wrote: perf_event cgroup controller is one of the remaining few with broken hierarchy support. It turns out it's pretty easy to implement - the only thing necessary is making perf_cgroup_match() return %true also when the cgroup of the current task

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

2013-04-10 Thread Stephen Rothwell
Hi Shawn, Today's linux-next merge of the imx-mxs tree got a conflict in arch/arm/mach-imx/clk-imx6q.c between commit e8094b2c1712 (ARM i.MX6: Fix ldb_di clock selection) from the arm-soc tree and commit 8034cf45ac38 (ARM i.MX6q: Add audio/video PLL post dividers for i.MX6q rev 1.1) from the

Re: [PATCH v2 2/3] mutex: add support for reservation style locks, v2

2013-04-10 Thread Peter Zijlstra
On Tue, 2013-04-09 at 18:42 -0400, Steven Rostedt wrote: What about setting an age as soon as it starts the process of grabbing one of these locks? And it keeps the age until it successfully grabs and releases all the locks again. It wont reset if it had to drop the locks and start over.

Early microcode signing in secure boot environment - Was: x86, microcode: Use common get_ramdisk_image()

2013-04-10 Thread Thomas Renninger
Hello, On Wednesday, April 10, 2013 01:34:33 PM Tang Chen wrote: On 04/05/2013 07:46 AM, Yinghai Lu wrote: Use common get_ramdisk_image() to get ramdisk start phys address. We need this to get correct ramdisk adress for 64bit bzImage that initrd can be loaded above 4G by

Re: [RFC PATCH] kbuild: Build linux-tools package with 'make deb-pkg'

2013-04-10 Thread Sedat Dilek
[ CCing some involved maintainers and MLs ] Hi Joerg, what is the status of your proposal patch? Is this [1] the last version you posted? What's with the integration into linux-kbuild? Background of my asking is that I need to build cpufreq-info shipped with the kernel-sources in tools-dir to

Re: [PATCH 03/10] mm: vmscan: Flatten kswapd priority loop

2013-04-10 Thread Kamezawa Hiroyuki
(2013/04/09 20:06), Mel Gorman wrote: kswapd stops raising the scanning priority when at least SWAP_CLUSTER_MAX pages have been reclaimed or the pgdat is considered balanced. It then rechecks if it needs to restart at DEF_PRIORITY and whether high-order reclaim needs to be reset. This is not

Re: [PATCH] gpio / ACPI: Handle ACPI events in accordance with the spec

2013-04-10 Thread Mika Westerberg
On Tue, Apr 09, 2013 at 03:57:25PM +0200, Rafael J. Wysocki wrote: +void acpi_gpiochip_free_interrupts(struct gpio_chip *chip) +{ + acpi_handle handle; + acpi_status status; + struct list_head *evt_pins; + struct acpi_gpio_evt_pin *evt_pin, *ep; + + if (!chip-dev ||

Re: [PATCH] kbuild: generate generic headers before recursing into scripts

2013-04-10 Thread Michal Marek
On 9.4.2013 19:57, Andreas Schwab wrote: The headers are now needed inside scripts/mod since 6543bec (mod/file2alias: make modalias generation safe for cross compiling). Signed-off-by: Andreas Schwab sch...@linux-m68k.org --- Prabhakar Lad prabhakar.cse...@gmail.com writes: Whats the

Re: [RFC PATCH] kbuild: Build linux-tools package with 'make deb-pkg'

2013-04-10 Thread Joerg Roedel
Hi Sedat, On Wed, Apr 10, 2013 at 09:41:55AM +0200, Sedat Dilek wrote: [ CCing some involved maintainers and MLs ] Hi Joerg, what is the status of your proposal patch? Is this [1] the last version you posted? Yes, this looks like the latest version. As far as I remember I didn't get

Re: [PATCH v4] sched: fix wrong rq's runnable_avg update with rt tasks

2013-04-10 Thread Vincent Guittot
On 10 April 2013 09:26, Peter Zijlstra pet...@infradead.org wrote: On Tue, 2013-04-09 at 11:06 +0200, Vincent Guittot wrote: +void idle_enter(struct rq *this_rq) +{ + update_rq_runnable_avg(this_rq, 1); +} +void idle_exit(struct rq *this_rq) +{ +

[PATCH v4] ARM: davinci: da850: add EHRPWM ECAP DT node

2013-04-10 Thread Philip Avinash
Add da850 EHRPWM ECAP DT node along with pin-mux details for EHRPWM1. Also adds OF_DEV_AUXDATA for EHRPWM ECAP driver to use EHRPWM ECAP clock. Signed-off-by: Philip Avinash avinashphi...@ti.com --- Changes since v3: - add pin mux info for EHRPWM1. Changes since v1: - Reusing

Re: mm: BUG in do_huge_pmd_wp_page

2013-04-10 Thread Minchan Kim
On Fri, Mar 29, 2013 at 09:04:16AM -0400, Sasha Levin wrote: Hi all, While fuzzing with trinity inside a KVM tools guest running latest -next kernel, I've stumbled on the following. It seems that the code in do_huge_pmd_wp_page() was recently modified in thp: do_huge_pmd_wp_page():

linux-next: manual merge of the clk tree with the trivial tree

2013-04-10 Thread Stephen Rothwell
Hi Mike, Today's linux-next merge of the clk tree got a conflict in drivers/clk/mvebu/clk-core.c between commit 07f42258893d (treewide: Fix typos in printk) from the trivial tree and commit 4cb24e68a5af (clk: mvebu: Fix valid value range checking for cpu_freq_select) from the clk tree. I fixed

Re: [PATCH 04/10] mm: vmscan: Decide whether to compact the pgdat based on reclaim progress

2013-04-10 Thread Kamezawa Hiroyuki
(2013/04/09 20:06), Mel Gorman wrote: In the past, kswapd makes a decision on whether to compact memory after the pgdat was considered balanced. This more or less worked but it is late to make such a decision and does not fit well now that kswapd makes a decision whether to exit the zone

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

2013-04-10 Thread Mike Turquette
Quoting Nishanth Menon (2013-04-09 13:49:00) On 10:43-20130409, Tony Lindgren wrote: * Tony Lindgren t...@atomide.com [130409 09:54]: * Roger Quadros rog...@ti.com [130409 03:00]: On 04/05/2013 06:58 PM, Tony Lindgren wrote: Can't you just use the clock name there to get it?

Re: [PATCH v3 3/3] hugetlbfs: add swap entry check in follow_hugetlb_page()

2013-04-10 Thread Michal Hocko
On Tue 09-04-13 18:00:34, Naoya Horiguchi wrote: [...] I rewrite the comment here, how about this? - if (absent || + /* + * We need call hugetlb_fault for both hugepages under migration + * (in which case hugetlb_fault waits for the

Re: [PATCH] OMAPDSS: nec-nl8048 panel: Use dev_pm_ops

2013-04-10 Thread Tomi Valkeinen
On 2013-04-07 12:14, Lars-Peter Clausen wrote: Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks. Signed-off-by: Lars-Peter Clausen l...@metafoo.de --- .../video/omap2/displays/panel-nec-nl8048hl11-01b.c | 20 1 file changed, 16 insertions(+),

Re: [PATCH] gpio / ACPI: Handle ACPI events in accordance with the spec

2013-04-10 Thread Mathias Nyman
On 04/10/2013 10:53 AM, Mika Westerberg wrote: On Tue, Apr 09, 2013 at 03:57:25PM +0200, Rafael J. Wysocki wrote: +void acpi_gpiochip_free_interrupts(struct gpio_chip *chip) +{ + acpi_handle handle; + acpi_status status; + struct list_head *evt_pins; + struct

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

2013-04-10 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: include/linux/genalloc.h:109:3: warning: 'struct device' declared inside parameter list [enabled by default] include/linux/genalloc.h:109:3: warning: its scope is only this

Re: [PATCH v2 2/2] mmc: mxs-mmc: add non-removable property

2013-04-10 Thread Hector Palacios
On Tue 09 Apr 2013 06:34:10 PM CEST, Marc Kleine-Budde wrote: On 04/09/2013 05:21 PM, Hector Palacios wrote: On 04/09/2013 05:14 PM, Hector Palacios wrote: @@ -95,7 +97,8 @@ static int mxs_mmc_get_cd(struct mmc_host *mmc) struct mxs_mmc_host *host = mmc_priv(mmc); struct

Re: [PATCH v2 2/3] mutex: add support for reservation style locks, v2

2013-04-10 Thread Daniel Vetter
On Wed, Apr 10, 2013 at 12:27 AM, Steven Rostedt rost...@goodmis.org wrote: On Thu, Apr 04, 2013 at 06:38:36PM +0200, Peter Zijlstra wrote: On Thu, 2013-04-04 at 15:31 +0200, Daniel Vetter wrote: Hm, I guess your aim with the TASK_DEADLOCK wakeup is to bound the wait times of older task.

Re: [PATCH] kthread: Prevent unpark race which puts threads on the wrong cpu

2013-04-10 Thread Thomas Gleixner
On Tue, 9 Apr 2013, Dave Hansen wrote: On 04/09/2013 12:30 PM, Thomas Gleixner wrote: On Tue, 9 Apr 2013, Thomas Gleixner wrote: Thought more about it and found, that the stupid binding only works when the task is really descheduled. So there is a small window left, which could lead to

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

2013-04-10 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (powerpc ppc44x_defconfig) produced these warnings: ipc/util.c: In function 'ipc_init': ipc/util.c:105:2: warning: statement with no effect [-Wunused-value] mm/slub.c: In function 'kmem_cache_init': mm/slub.c:3600:2: warning:

Re: [RFC PATCH] kbuild: avoid some unnecessary rebuild

2013-04-10 Thread Michal Marek
On 17.3.2013 23:08, Christopher Li wrote: On Sun, Mar 17, 2013 at 2:58 PM, Sam Ravnborg s...@ravnborg.org wrote: We got no patch - just some git help stuff. Seems you mistyped somthing.. Oops, sorry about that. I reattach the patch here. Can you send a patch that only fixes scripts/mod?

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

2013-04-10 Thread Kukjin Kim
Stephen Rothwell wrote: Hi all, Hi, Today's linux-next merge of the arm-soc tree got a conflict in arch/arm/mach-s3c24xx/Kconfig between commit 785f40040874 (cpufreq: s3c24xx: move cpufreq driver to drivers/cpufreq) from the pm tree and As I know, Rafael will drop it in his tree.

Re: [PATCH v2 1/7] staging: android: binder: clean-up uint32_t types

2013-04-10 Thread Serban Constantinescu
On 10/04/13 01:11, Arve Hjønnevåg wrote: On Tue, Apr 9, 2013 at 3:00 AM, Serban Constantinescu serban.constantine...@arm.com wrote: uint32_t types are used inconsistently throughout the driver. This patch replaces uint32_t types with unsigned int ones. I don't like this change. You fix the

Re: [RFC PATCH 0/2] cpufreq: Introduce LAB cpufreq governor.

2013-04-10 Thread Lukasz Majewski
Hi Vincent, On Tuesday, 9 April 2013, Lukasz Majewski l.majew...@samsung.com wrote: Hi Viresh and Vincent, On 9 April 2013 16:07, Lukasz Majewski l.majew...@samsung.com wrote: On Mon, Apr 1, 2013 at 1:54 PM, Jonghwa Lee Our approach is a bit different than cpufreq_ondemand

[PATCH] checkpatch: Only warn for empty lines before closing braces by themselves

2013-04-10 Thread Matthijs Kooijman
This check was intended to catch extra newlines at the end of a function definition, but it would trigger on any closing brace, including those of inline functions and macro definitions, triggering false positives. Now, only closing braces on a line by themselves trigger this check. Tested with:

[PATCH] checkpatch: Don't suggest clean scripts when all related errors are suppressed

2013-04-10 Thread Matthijs Kooijman
Before, the message whitespace errors detected, you may wish to use scripts/cleanpatch or scripts/cleanfile was emitted when two specific errors were detected, even when they were suppressed with --ignore or --test-only. Now, the message is only emitted if any of the related errors were actually

Re: [PATCH] sched: wake-affine throttle

2013-04-10 Thread Peter Zijlstra
On Wed, 2013-04-10 at 11:30 +0800, Michael Wang wrote: | 15 GB | 32 | 35918 | | 37632 | +4.77% | 47923 | +33.42% | 52241 | +45.45% So I don't get this... is wake_affine() once every milisecond _that_ expensive? Seeing we get a 45%!! improvement out of once every 100ms that would mean

Re: linux-next: Tree for Apr 8

2013-04-10 Thread Geert Uytterhoeven
make: /opt/cross/gcc-4.6-nolibc/bin/alpha-linux-gcc: Command not found Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm

Re: [PATCH] RFC: mmc: dw_mmc: Always go to STATE_DATA_BUSY from STATE_DATA_ERROR

2013-04-10 Thread Jaehoon Chung
On 04/10/2013 04:02 PM, Seungwon Jeon wrote: On Tuesday, April 09, 2013, Doug Anderson wrote: Seungwon, On Mon, Apr 8, 2013 at 5:17 AM, Seungwon Jeon tgih@samsung.com wrote: I guess Doug are debugging it with wifi, right? Yes, we're debugging it on the Samsung ARM Chromebook on a part

Re: linux-next: Tree for Apr 8

2013-04-10 Thread Stephen Rothwell
Hi Geert, On Wed, 10 Apr 2013 10:51:54 +0200 Geert Uytterhoeven ge...@linux-m68k.org wrote: make: /opt/cross/gcc-4.6-nolibc/bin/alpha-linux-gcc: Command not found Fixed. Sorry about that. -- Cheers, Stephen Rothwells...@canb.auug.org.au pgpgJhF43W2eW.pgp Description:

Re: [PATCH RFC] ARM: dts: mxs: leave card detect out of common mmc pins config

2013-04-10 Thread Hector Palacios
On 04/09/2013 12:51 PM, Marek Vasut wrote: Hi Hector, Dear Marek Vasut, On 04/09/2013 10:15 AM, Marek Vasut wrote: Dear Hector Palacios, Dear Marek Vasut, On 04/08/2013 06:28 PM, Marek Vasut wrote: Dear Shawn Guo, On Mon, Apr 08, 2013 at 03:58:05PM +0200, Hector Palacios wrote: On

Re: [PATCH] merge_config.sh: Avoid creating unnessary source softlinks

2013-04-10 Thread Michal Marek
On Fri, Apr 05, 2013 at 08:26:56AM -0700, Darren Hart wrote: On 04/04/2013 12:02 PM, John Stultz wrote: Viresh noticed when using merge_config.sh that a source softlink was being created even when he didn't specify the -O option. The problem arises due to the previous commit

[PATCH 1/2] x86,efi: Check max_size only if it is non-zero.

2013-04-10 Thread Richard Weinberger
Some EFI implementations return always a MaximumVariableSize of 0, check against max_size only if it is non-zero. My Intel DQ67SW desktop board has such an implementation. Signed-off-by: Richard Weinberger rich...@nod.at --- arch/x86/platform/efi/efi.c | 7 ++- 1 file changed, 6

[PATCH v3] checkpatch: check block comments outside of net

2013-04-10 Thread Matthijs Kooijman
There was some code checking block comments in net/ and drivers/net/, but nothing for regular comments. The end of a block comment is the same as inside net, so that check can just be generalized. The start of block comment must not have any comment after the leading /*, which requires a new

[PATCH 2/2] x86,efi: Implement no_storage_paranoia parameter

2013-04-10 Thread Richard Weinberger
Using this parameter one can disable the storage_size/2 check if he is really sure that the UEFI does sane gc and fulfills the spec. This parameter is useful if a devices uses more than 50% of the storage by default. The Intel DQSW67 desktop board is such an sucker for exmaple. Signed-off-by:

Re: regulator: ab8500-ext: Strange set_mode behavior when info-cfg-hwreq is set

2013-04-10 Thread Bengt Jönsson
On 04/09/2013 05:01 PM, Axel Lin wrote: Hi, I see below code comments in enable() function: /* * To satisfy both HW high power request and SW request, the regulator * must be on in high power. */ if (info-cfg info-cfg-hwreq)

Re: [BUG] Fatal exception in interrupt - nf_nat_cleanup_conntrack during IPv6 tests

2013-04-10 Thread Florian Westphal
CAI Qian caiq...@redhat.com wrote: [ CC'd nf-devel ] Just hit this very often during IPv6 tests in both the latest stable and mainline kernel. [ 3597.206166] Modules linked in: [..] nf_nat_ipv4(F-) [..] [ 3597.804861] RIP: 0010:[a03227f2] [a03227f2]

Re: [PATCH] of: remove the unnecessary of_node_put for of_parse_phandle_with_args()

2013-04-10 Thread Stephen Rothwell
Hi, On Tue, 9 Apr 2013 14:56:09 +0800 yuantian.t...@freescale.com wrote: From: Tang Yuantian yuantian.t...@freescale.com As the function itself says it is caller's responsibility to call the of_node_put(). So, remove it on success to keep the reference count correct. Signed-off-by:

[PATCH v4] checkpatch: check block comments outside of net

2013-04-10 Thread Matthijs Kooijman
There was some code checking block comments in net/ and drivers/net/, but nothing for regular comments. The end of a block comment is the same as inside net, so that check can just be generalized. The start of block comment must not have any comment after the leading /*, which requires a new

RE: [PATCH] of: remove the unnecessary of_node_put for of_parse_phandle_with_args()

2013-04-10 Thread Tang Yuantian-B29983
-Original Message- From: Stephen Rothwell [mailto:s...@canb.auug.org.au] Sent: 2013年4月10日 17:03 To: Tang Yuantian-B29983 Cc: grant.lik...@secretlab.ca; devicetree-disc...@lists.ozlabs.org; linuxppc-...@lists.ozlabs.org; linux-kernel@vger.kernel.org; rob.herr...@calxeda.com

Re: [PATCH] driver core: add uid and gid to devtmpfs

2013-04-10 Thread Ming Lei
On Sun, Apr 7, 2013 at 12:56 AM, Greg KH gre...@linuxfoundation.org wrote: @@ -201,14 +206,14 @@ static int handle_create(const char *nod if (IS_ERR(dentry)) return PTR_ERR(dentry); - err = vfs_mknod(path.dentry-d_inode, - dentry, mode,

[PATCH] MIPS: Makefile: workaround printk recursion bug

2013-04-10 Thread Wladislav Wiebe
From: Wladislav Wiebe wladislav...@gmail.com Function tracing is broken due to removal of selecting FRAME_POINTER with FUNCTION_TRACER as result of commit: b732d439cb43336cd6d7e804ecb2c81193ef63b0 Latest commit ad8c396936e328f5344e1881afde9e28d5f2045f MIPS: Unbreak function tracer for 64-bit

Re: [RFC PATCH 0/2] cpufreq: Introduce LAB cpufreq governor.

2013-04-10 Thread Vincent Guittot
On 10 April 2013 10:44, Lukasz Majewski l.majew...@samsung.com wrote: Hi Vincent, On Tuesday, 9 April 2013, Lukasz Majewski l.majew...@samsung.com wrote: Hi Viresh and Vincent, On 9 April 2013 16:07, Lukasz Majewski l.majew...@samsung.com wrote: On Mon, Apr 1, 2013 at 1:54 PM,

Re: [PATCH] gpio / ACPI: Handle ACPI events in accordance with the spec

2013-04-10 Thread Mika Westerberg
On Wed, Apr 10, 2013 at 11:17:57AM +0300, Mathias Nyman wrote: On 04/10/2013 10:53 AM, Mika Westerberg wrote: On Tue, Apr 09, 2013 at 03:57:25PM +0200, Rafael J. Wysocki wrote: +void acpi_gpiochip_free_interrupts(struct gpio_chip *chip) +{ + acpi_handle handle; + acpi_status status; +

Re: [PATCH v2 2/2] mmc: mxs-mmc: add non-removable property

2013-04-10 Thread Marc Kleine-Budde
On 04/10/2013 10:19 AM, Hector Palacios wrote: On Tue 09 Apr 2013 06:34:10 PM CEST, Marc Kleine-Budde wrote: On 04/09/2013 05:21 PM, Hector Palacios wrote: On 04/09/2013 05:14 PM, Hector Palacios wrote: @@ -95,7 +97,8 @@ static int mxs_mmc_get_cd(struct mmc_host *mmc) struct

  1   2   3   4   5   6   7   8   9   10   >