[PATCH] PowerNV/PCI: Fix NULL PCI controller

2013-04-16 Thread Mike Qiu
In pnv_pci_read_config() or pnv_pci_write_config(), we never check if the PCI controller is valid before converting that into platform dependent one, this is very dangerous. To avoid this potential risks, the patch check PCI controller first before use it. Signed-off-by: Mike Qiu --- arch/powe

Re: [Bug fix PATCH v3] Reusing a resource structure allocated by bootmem

2013-04-16 Thread David Rientjes
On Wed, 17 Apr 2013, Yasuaki Ishimatsu wrote: > > How much memory are we talking about? > > Hmm. I don't know correctly. > > Here is kernel message of my system. The message is shown by mem_init(). > Do you have an estimate on the amount of struct resource memory that will be leaked if entire

Re: Linux 3.8.8

2013-04-16 Thread Greg KH
diff --git a/Makefile b/Makefile index 85204da..7684f95 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 8 -SUBLEVEL = 7 +SUBLEVEL = 8 EXTRAVERSION = NAME = Displaced Humerus Anterior diff --git a/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts b/arch/arm/boot/dts/

Linux 3.8.8

2013-04-16 Thread Greg KH
I'm announcing the release of the 3.8.8 kernel. All users of the 3.8 kernel series must upgrade. The updated 3.8.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.8.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 3.4.41

2013-04-16 Thread Greg KH
diff --git a/Makefile b/Makefile index 3efde3d..90c3a6f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 40 +SUBLEVEL = 41 EXTRAVERSION = NAME = Saber-toothed Squirrel diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h in

Re: [PATCH 1/3] fsfreeze: wait in killable state in __sb_start_write

2013-04-16 Thread Marco Stornelli
Resend due to mail client problem. Marco 2013/4/17 Marco Stornelli > > Hi, > > > 2013/4/15 Jan Kara >> >> On Sat 13-04-13 12:35:54, Marco Stornelli wrote: >> > Added a new enum to decide if we want to sleep in uninterruptible or >> > killable state or we want simply to return immediately. >>

Linux 3.4.41

2013-04-16 Thread Greg KH
I'm announcing the release of the 3.4.41 kernel. All users of the 3.4 kernel series must upgrade. The updated 3.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.4.y and can be browsed at the normal kernel.org git web browser:

Re: regulator: tps80031: question about LDO2 TRACK_MODE_ENABLE of TPS80031 or TPS80032-ES1.0

2013-04-16 Thread Laxman Dewangan
On Wednesday 17 April 2013 08:54 AM, Axel Lin wrote: hi Laxman, Currently we have below code in tps80031_ldo_set_voltage_sel(): /* Check for valid setting for TPS80031 or TPS80032-ES1.0 */ if ((ri->rinfo->desc.id == TPS80031_REGULATOR_LDO2) && (ri->dev

Re: [PATCH] No need to call irq_domain_legacy_revmap() for twice

2013-04-16 Thread Mike
在 2012-12-11二的 08:30 +,Grant Likely写道: > On Tue, 27 Nov 2012 09:41:46 +0800, Mike wrote: > > 在 2012-11-26一的 20:17 +,Grant Likely写道: > > > On Mon, 24 Sep 2012 17:37:55 +0800, Mike Qiu > > > wrote: > > > > Function irq_create_mapping() calls irq_find_mapping(). The later > > > > function h

Re: Linux 3.0.74

2013-04-16 Thread Greg KH
diff --git a/Makefile b/Makefile index f82a70f..71e8efa 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 73 +SUBLEVEL = 74 EXTRAVERSION = NAME = Sneaky Weasel diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index ebbc4

Linux 3.0.74

2013-04-16 Thread Greg KH
I'm announcing the release of the 3.0.74 kernel. All users of the 3.0 kernel series must upgrade. The updated 3.0.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.y and can be browsed at the normal kernel.org git web browser:

Re: [Bug fix PATCH v3] Reusing a resource structure allocated by bootmem

2013-04-16 Thread Yasuaki Ishimatsu
Hi David, 2013/04/17 13:47, David Rientjes wrote: On Wed, 17 Apr 2013, Yasuaki Ishimatsu wrote: Why not simply do what generic sparsemem support does by testing PageSlab(virt_to_head_page(res)) and calling kfree() if true and freeing back to bootmem if false? This should be like a five line p

Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-16 Thread Simon Jeons
Hi Naoya, On 04/11/2013 11:23 PM, Naoya Horiguchi wrote: > On Thu, Apr 11, 2013 at 03:49:16PM +0200, Andi Kleen wrote: >>> As a result, if the dirty cache includes user data, the data is lost, >>> and data corruption occurs if an application uses old data. >> The application cannot use old data, th

Re: [PATCH v2] regulator: ab8500: Fix set voltage for AB8540_LDO_AUX3

2013-04-16 Thread Bengt Jönsson
On 04/16/2013 04:46 PM, Axel Lin wrote: 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_

Re: linux-next: manual merge of the gen-gpio tree with the usb tree

2013-04-16 Thread Felipe Balbi
Hi, On Wed, Apr 17, 2013 at 03:47:15PM +1000, Stephen Rothwell wrote: > Hi Alexandre, > > Today's linux-next merge of the gen-gpio tree got a conflict in > drivers/usb/otg/Kconfig between commit a0e631235a04 ("usb: phy: move all > PHY drivers to drivers/usb/phy/") from the usb tree and commit > 7

linux-next: manual merge of the renesas tree with the gen-gpio tree

2013-04-16 Thread Stephen Rothwell
Hi Simon, Today's linux-next merge of the renesas tree got a conflict in drivers/pinctrl/sh-pfc/Kconfig between commit 76ec9d18b897 ("Convert selectors of GENERIC_GPIO to GPIOLIB") from the gen-gpio tree and commit 809e5fce84f4 ("sh-pfc: Remove dependency on GPIOLIB") from the renesas tree. I fix

Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-16 Thread Simon Jeons
Hi Mitsuhiro, On 04/12/2013 09:43 PM, Mitsuhiro Tanino wrote: (2013/04/11 22:00), Ric Mason wrote: Hi Mitsuhiro, On 04/11/2013 08:51 PM, Mitsuhiro Tanino wrote: (2013/04/11 12:53), Simon Jeons wrote: One question against mce instead of the patchset. ;-) When check memory is bad? Before memory

linux-next: manual merge of the gen-gpio tree with the usb tree

2013-04-16 Thread Stephen Rothwell
Hi Alexandre, Today's linux-next merge of the gen-gpio tree got a conflict in drivers/usb/otg/Kconfig between commit a0e631235a04 ("usb: phy: move all PHY drivers to drivers/usb/phy/") from the usb tree and commit 76ec9d18b897 ("Convert selectors of GENERIC_GPIO to GPIOLIB") from the gen-gpio tree

[PATCH] usb: storage: Add usb_stor_dbg, reduce object size

2013-04-16 Thread Joe Perches
Reduce the size of the objects by consolidating the duplicated USB_STORAGE into a single function. Add function usb_stor_dbg to emit debugging messages. Always validate the format and arguments. Reduce the number of uses of CONFIG_USB_STORAGE_DEBUG. Reduces size of objects ~7KB when CONFIG_USB_ST

[GIT] Networking

2013-04-16 Thread David Miller
1) Fix erroneous netfilter drop of SIP packets generated by some Cisco phones, from Patrick McHardy. 2) Fix netfilter IPSET refcounting in list_set_add(), from Jozsef Kadlecsik. 3) Fix TCP syncookies route lookup key, we don't use the same values we would use for the usual SYN receive p

Re: [PATCH] regulator: as3711: Use a static of_regulator_match table for of_regulator_match

2013-04-16 Thread Guennadi Liakhovetski
Hi Axel Thanks for the patch On Wed, 17 Apr 2013, Axel Lin wrote: > The same table can be used for multiple instance of pdev, so we don't need to > allocate memory for of_regulator_match table per pdev. > > Signed-off-by: Axel Lin > --- > drivers/regulator/as3711-regulator.c | 46 > +++

Re: [PATCH] module: add kset_obj_exists() and use it

2013-04-16 Thread Veaceslav Falico
On Wed, Apr 17, 2013 at 01:25:13PM +0930, Rusty Russell wrote: Veaceslav Falico writes: Tested for a day on two reproducers on the latest upstream kernel, with the recent kobject fix a49b7e82 ("kobject: fix kset_find_obj() race with concurrent last kobject_put()") - it fixes the issue, no regre

Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-16 Thread Simon Jeons
On 04/11/2013 09:49 PM, Andi Kleen wrote: As a result, if the dirty cache includes user data, the data is lost, and data corruption occurs if an application uses old data. Hi Andi, Could you give me the link of your mce testcase? The application cannot use old data, the kernel code kills it

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

2013-04-16 Thread Aruna Balakrishnaiah
On Tuesday 16 April 2013 11:50 AM, Aruna Balakrishnaiah wrote: Currently with this patchset, pstore is not supporting compression of oops-messages since it involves some changes in the pstore framework. big_oops_buf will hold the large part of oops data which will be compressed and put to o

Re: [PATCH 0/2] ptrace/x86: simplify ptrace_write_dr7()

2013-04-16 Thread Jan Kratochvil
On Tue, 16 Apr 2013 15:25:45 +0200, Oleg Nesterov wrote: > On 04/16, Frederic Weisbecker wrote: > > On Sun, Apr 14, 2013 at 09:12:05PM +0200, Oleg Nesterov wrote: > > Looking at the bug report, it seems they only reproduced with a homemade > > test. No real app has reported that issue? > > iirc (J

RE: [PATCH v2] of/base: release the node correctly in of_parse_phandle_with_args()

2013-04-16 Thread Tang Yuantian-B29983
> -Original Message- > From: Timur Tabi [mailto:ti...@tabi.org] > Sent: 2013年4月17日 11:31 > To: Tang Yuantian-B29983 > Cc: Grant Likely; devicetree-discuss; linuxppc-...@lists.ozlabs.org; lkml; > Rob Herring > Subject: Re: [PATCH v2] of/base: release the node correctly in > of_parse_phandl

Re: [Bug fix PATCH v3] Reusing a resource structure allocated by bootmem

2013-04-16 Thread David Rientjes
On Wed, 17 Apr 2013, Yasuaki Ishimatsu wrote: > > Why not simply do what generic sparsemem support does by testing > > PageSlab(virt_to_head_page(res)) and calling kfree() if true and freeing > > back to bootmem if false? This should be like a five line patch. > > Is your explanation about free_

Re: [PATCH 097/102] efivars: explicitly calculate length of VariableName

2013-04-16 Thread Lingzhu Xiang
On 04/16/2013 06:33 PM, Luis Henriques wrote: 68d929862e29a8b52a7f2f2f86a0600423b093cd efi: be more paranoid about available space when creating variables This prevents a bricking issue for some Samsung devices but causes regression on many other machines. https://bugzilla.kernel.org/show_b

[PATCH v3 1/5] mutex: Make more scalable by doing less atomic operations

2013-04-16 Thread Waiman Long
In the __mutex_lock_common() function, an initial entry into the lock slow path will cause two atomic_xchg instructions to be issued. Together with the atomic decrement in the fast path, a total of three atomic read-modify-write instructions will be issued in rapid succession. This can cause a lot

[PATCH v3 optional 3/5] mutex: back out architecture specific check for negative mutex count

2013-04-16 Thread Waiman Long
If it is confirmed that all the supported architectures can allow a negative mutex count without incorrect behavior, we can then back out the architecture specific change and allow the mutex count to go to any negative number. That should further reduce contention for non-x86 architecture. If this

[PATCH v3 0/5] mutex: Improve mutex performance by doing less atomic-ops & better spinning

2013-04-16 Thread Waiman Long
v2->v3 - Add patch 4 to remove new typedefs introduced in patch 2. - Add patch 5 to remove SCHED_FEAT_OWNER_SPIN and move the mutex spinning code to mutex.c. v1->v2 - Remove the 2 mutex spinner patches and replaced it by another one to improve the mutex spinning process. - Remove chan

[PATCH v3 4/5] mutex: Remove new typedefs introduced in patch 2

2013-04-16 Thread Waiman Long
In response to the review comment from Davidlohr, this patch will remove the new typedefs introduced by patch 2. It also removes an unnecessary barrier() call. Signed-off-by: Waiman Long --- kernel/mutex.c | 25 +++-- 1 files changed, 11 insertions(+), 14 deletions(-) diff

[PATCH v3 2/5] mutex: Queue mutex spinners with MCS lock to reduce cacheline contention

2013-04-16 Thread Waiman Long
The current mutex spinning code (with MUTEX_SPIN_ON_OWNER option turned on) allow multiple tasks to spin on a single mutex concurrently. A potential problem with the current approach is that when the mutex becomes available, all the spinning tasks will try to acquire the mutex more or less simultan

[PATCH v3 5/5] mutex: Move mutex spinning code from sched/core.c back to mutex.c

2013-04-16 Thread Waiman Long
As mentioned by Ingo, the SCHED_FEAT_OWNER_SPIN scheduler feature bit was really just an early hack to make with/without mutex-spinning testable. So it is no longer necessary. This patch removes the SCHED_FEAT_OWNER_SPIN feature bit and move the mutex spinning code from kernel/sched/core.c back to

[PATCH] scsi_dh: remove unused declaration dm_pg_init_complete()

2013-04-16 Thread Ren Mingxin
This patch removes dm_pg_init_complete()'s declaration as it is not needed anymore since 2651f5d7d3bc5120a439e498f131e4d731f99b3e. Signed-off-by: Ren Mingxin --- drivers/md/dm-mpath.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/md/dm-mpath.h b/drivers/md/dm

Re: [PATCH] kernel: auditfilter: resource management, need process tree when audit_add_watch failed in audit_add_rule

2013-04-16 Thread Chen Gang
also please help checking this patch, when you have time. thanks. On 2013年04月12日 16:56, Chen Gang wrote: > > need call audit_put_tree, if tree is valid. > just like another area have done in function audit_add_rule. > > Signed-off-by: Chen Gang > --- > kernel/auditfilter.c |6 +++

[PATCH v2] kernel: auditfilter: resource management, tree and watch will memory leak when failure occurs

2013-04-16 Thread Chen Gang
in function audit_data_to_entry: when failure occurs, need check and free tree and watch. or memory leak. test: plan: test command: "auditctl -a exit,always -w /etc -F auid=-1" (on fedora17, need modify auditctl to let "-w /etc" has effect) running:

Re: [Bug fix PATCH v3] Reusing a resource structure allocated by bootmem

2013-04-16 Thread Yasuaki Ishimatsu
Hi David, 2013/04/17 9:36, David Rientjes wrote: On Wed, 17 Apr 2013, Yasuaki Ishimatsu wrote: When hot removing memory presented at boot time, following messages are shown: [ 296.867031] [ cut here ] [ 296.922273] kernel BUG at mm/slub.c:3409! [ 296.970229] invalid

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

2013-04-16 Thread Vineet Gupta
On 04/16/2013 09:32 PM, James Hogan wrote: > > Also, I think you probably now want *.dtb.S added to clean-files, > otherwise they won't get removed by make clean. Good catch ! Thx, -Vineet -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to major

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

2013-04-16 Thread Vineet Gupta
Hi James, On 04/16/2013 09:23 PM, James Hogan wrote: > On 12/04/13 22:52, Stephen Warren wrote: >> +.SECONDARY: $(obj)/$(builtindtb-y).dtb.S > Note, this may not work if you're using CONFIG_ARC_BUILTIN_DTB_NAME, > since it'll have quotes around it, so you may instead need: > .SECONDARY: $(obj)/$(p

Re: [PATCH] module: add kset_obj_exists() and use it

2013-04-16 Thread Rusty Russell
Veaceslav Falico writes: > Tested for a day on two reproducers on the latest upstream kernel, with the > recent kobject fix a49b7e82 ("kobject: fix kset_find_obj() race with > concurrent last kobject_put()") - it fixes the issue, no regressions met. Thanks, I've included the fix in my modules-nex

[PATCH v2] kernel: audit_tree: resource management: need put_tree and goto Err when failure occures

2013-04-16 Thread Chen Gang
since "normally audit_add_tree_rule() will free it on failure", need free it completely, when failure occures. need additional put_tree before return, since get_tree was called. always need goto error processing area for list_del_init. Signed-off-by: Chen Gang --- kernel/audit_tree

Re: [PATCH V2 2/5] powerpc, perf: Add basic assembly code to read BHRB entries on POWER8

2013-04-16 Thread Anshuman Khandual
On 04/16/2013 10:53 PM, Segher Boessenkool wrote: >> +/* r3 = n (where n = [0-1023]) >> + * The maximum number of BHRB entries supported with PPC_MFBHRBE >> instruction >> + * is 1024. We have limited number of table entries here as POWER8 >> implements >> + * 32 BHRB entries. >> + */ >> + >> +/*

[PATCH v2 05/10] perf util: Parse header_page to get proper long size

2013-04-16 Thread Namhyung Kim
From: Namhyung Kim The header_page file describes the format of the ring buffer page which is used by ftrace (not perf). And size of "commit" field (I guess it's older name was 'size') represents the real size of long type used for kernel. So update the pevent's long size. Signed-off-by: Namhy

[PATCH] perf tools: Revert regression in configuration of Python support

2013-04-16 Thread Michael Witten
On Tue, 16 Apr 2013 20:41:59 -, Michael Witten wrote: > On Tue, 16 Apr 2013 13:32:08 -0700, David Ahern wrote: > >> On 4/16/13 10:08 AM, Michael Witten wrote: >>> You should probably disable python support more directly: >>> >>>make NO_LIBPYTHON=1 >> >> sure, but I should not have to do a

Re: [PATCH v2] of/base: release the node correctly in of_parse_phandle_with_args()

2013-04-16 Thread Timur Tabi
Tang Yuantian-B29983 wrote: >On Tue, Apr 9, 2013 at 10:36 PM, wrote: > > > >+ /* Found it! return success */ > >I'm pretty sure this comment is in the wrong place. It is not perfect, but acceptable. Like I said, I'm pretty sure it's in the wrong place. -- Timur Tabi

regulator: tps80031: question about LDO2 TRACK_MODE_ENABLE of TPS80031 or TPS80032-ES1.0

2013-04-16 Thread Axel Lin
hi Laxman, Currently we have below code in tps80031_ldo_set_voltage_sel(): /* Check for valid setting for TPS80031 or TPS80032-ES1.0 */ if ((ri->rinfo->desc.id == TPS80031_REGULATOR_LDO2) && (ri->device_flags & TRACK_MODE_ENABLE)) { unsigned

Device driver memory 'mmap()' function helper cleanup

2013-04-16 Thread Linus Torvalds
Guys, I just pushed out a new helper function intended for cleaning up various device driver mmap functions, because they are rather messy, and at least part of the problem was the bad impedance between what a driver author would want to have, and the VM interfaces to map a memory range into user s

Re: [PATCH] vfs: fix audit_inode call in O_CREAT case of do_last

2013-04-16 Thread Richard Guy Briggs
On Fri, Apr 12, 2013 at 03:16:32PM -0400, Jeff Layton wrote: > Jiri reported a regression in auditing of open(..., O_CREAT) syscalls. > In older kernels, creating a file with open(..., O_CREAT) created > audit_name records that looked like this: > > type=PATH msg=audit(1360255720.628:64): item=1 n

Re: [PATCH] mm: mmu_notifier: re-fix freed page still mapped in secondary MMU

2013-04-16 Thread Xiao Guangrong
On 04/17/2013 02:08 AM, Robin Holt wrote: > On Tue, Apr 16, 2013 at 09:07:20PM +0800, Xiao Guangrong wrote: >> On 04/16/2013 07:43 PM, Robin Holt wrote: >>> Argh. Taking a step back helped clear my head. >>> >>> For the -stable releases, I agree we should just go with your >>> revert-plus-hlist_de

RE: [PATCH v2] of/base: release the node correctly in of_parse_phandle_with_args()

2013-04-16 Thread Tang Yuantian-B29983
> -Original Message- > From: Timur Tabi [mailto:ti...@tabi.org] > Sent: 2013年4月16日 19:37 > To: Tang Yuantian-B29983 > Cc: Grant Likely; devicetree-discuss; linuxppc-...@lists.ozlabs.org; lkml; > Rob Herring > Subject: Re: [PATCH v2] of/base: release the node correctly in > of_parse_phandle_

Re: [PATCH] kernel: auditfilter: looping issue, memory leak if has 2 or more AUDIT_FILTERKEYs

2013-04-16 Thread Chen Gang
On 2013年04月16日 18:38, Chen Gang wrote: > On 2013年04月16日 18:25, Chen Gang wrote: >> On 2013年04月12日 17:42, Chen Gang wrote: >>> On 2013年04月11日 12:10, Chen Gang wrote: On 2013年04月11日 05:19, Eric Paris wrote: > - Original Message - > >>> b. has an new issue for AUDIT_DIR: >>>

[PATCH] regulator: as3711: Use a static of_regulator_match table for of_regulator_match

2013-04-16 Thread Axel Lin
The same table can be used for multiple instance of pdev, so we don't need to allocate memory for of_regulator_match table per pdev. Signed-off-by: Axel Lin --- drivers/regulator/as3711-regulator.c | 46 ++ 1 file changed, 19 insertions(+), 27 deletions(-) diff

RE: RE: [PATCH v3] clk: add PowerPC corenet clock driver support

2013-04-16 Thread Tang Yuantian-B29983
OK, thanks. Thanks, Yuantian > -Original Message- > From: Mike Turquette [mailto:mturque...@linaro.org] > Sent: 2013年4月17日 6:27 > To: Tang Yuantian-B29983; Tang Yuantian-B29983 > Cc: linus.wall...@linaro.org; viresh.ku...@linaro.org; > shawn@linaro.org; ulf.hans...@linaro.org; linux-

Re: [PATCH] pm2301-charger: Fix suspend/resume

2013-04-16 Thread Anton Vorontsov
On Sat, Apr 13, 2013 at 01:20:07PM +0200, Lars-Peter Clausen wrote: > The pm2301-charger driver implements runtime pm and at the same time uses the > legacy pm callbacks for suspend and resume. This does not work since the I2C > core wont look at the legacy pm callbacks if a driver has the 'pm' fie

Re: [PATCH] power: kmemdup instead of kzalloc + memcpy

2013-04-16 Thread Anton Vorontsov
On Wed, Mar 27, 2013 at 11:48:21PM +0200, Andrei Epure wrote: > Patch found using coccinelle. > > Signed-off-by: Andrei Epure > --- Applied, thanks! > drivers/power/charger-manager.c |3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/power/charger-manager.c

Re: [PATCH V2 3/3] power: power_supply_core: Add support for supplied_from

2013-04-16 Thread Anton Vorontsov
On Mon, Apr 01, 2013 at 05:45:55PM -0400, Rhyland Klein wrote: > Adding support for supplied_from char * array. This is meant to store the > list of suppliers for a given supply, i.e. chargers for a battery. This > list can be populated through devicetree readily as well as passed > directly from t

Re: [PATCH V2 2/3] power: power_supply: Add core support for supplied_from

2013-04-16 Thread Anton Vorontsov
On Tue, Apr 02, 2013 at 03:31:30PM -0600, Stephen Warren wrote: > On 04/01/2013 03:45 PM, Rhyland Klein wrote: > > This patch adds support for supplies to register a list of char *'s > > which represent the list of supplies which supply them. This is the > > opposite as the supplied_to list. > > T

[patch resend] mm, memcg: give exiting processes access to memory reserves

2013-04-16 Thread David Rientjes
A memcg may livelock when oom if the process that grabs the hierarchy's oom lock is never the first process with PF_EXITING set in the memcg's task iteration. The oom killer, both global and memcg, will defer if it finds an eligible process that is in the process of exiting and it is not being ptr

Re: [PATCH 25/28] proc: Supply an accessor to get the process ID associated with some proc files [RFC]

2013-04-16 Thread Li Zefan
On 2013/4/17 2:27, David Howells wrote: > Supply an accessor to get the process ID associated with some proc files and > directories (get_proc_pid()). > > Signed-off-by: David Howells > cc: Tejun Heo > cc: Li Zefan > cc: contain...@lists.linux-foundation.org > cc: cgro...@vger.kernel.org Acked

Re: [PATCH] power: rx51_battery: Fix reporting temperature

2013-04-16 Thread Anton Vorontsov
On Thu, Mar 28, 2013 at 05:42:23PM +0100, Pali Rohár wrote: > This patch fixing units (1/10 °C) in which is temperature reported. > > Signed-off-by: Pali Rohár > --- Applied, thanks! > drivers/power/rx51_battery.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a

Re: [PATCH v8 5/5] hwmon: add ST-Ericsson ABX500 hwmon driver

2013-04-16 Thread Anton Vorontsov
On Wed, Apr 03, 2013 at 09:31:55AM -0700, Guenter Roeck wrote: > On Wed, Apr 03, 2013 at 08:18:12PM +0800, Hongbo Zhang wrote: > > Each of ST-Ericsson X500 chip set series consists of both ABX500 and DBX500 > > chips. This is ABX500 hwmon driver, where the abx500.c is a common layer for > > all ABX

Re: + posix_timers-remove-dead-task-timer-expiry-caching.patch added to -mm tree

2013-04-16 Thread Frederic Weisbecker
2013/4/9 : > > The patch titled > Subject: posix_timers: Remove dead task timer expiry caching > has been added to the -mm tree. Its filename is > posix_timers-remove-dead-task-timer-expiry-caching.patch > > Before you just go and hit "reply", please: >a) Consider who else should be

Re: [PATCH] ARM: dts: omap3-beagle-xm: Add USB Host support for Rev Ax/Bx

2013-04-16 Thread Robert Nelson
On Tue, Apr 16, 2013 at 7:52 PM, Tony Lindgren wrote: > * Roger Quadros [130415 05:44]: >> On 04/15/2013 03:35 PM, Roger Quadros wrote: >> > Provide RESET and Power regulators for the USB PHY, >> > the USB Host port mode and the PHY device. >> > >> > Also provide pin multiplexer information for U

Re: cgroup: status-quo and userland efforts

2013-04-16 Thread Li Zefan
On 2013/4/17 1:10, Tejun Heo wrote: > Hello, Li. > > On Tue, Apr 16, 2013 at 07:17:17PM +0800, Li Zefan wrote: > ... >>> hot-unplug). It currently transfers all its tasks to the nearest >>> ancestor with executing resources, which is an irreversible process >>> which would affect all other co-mou

[PATCH 0/2] posix_timers: A few expiry caching fixes

2013-04-16 Thread Frederic Weisbecker
Hi Andrew, This v2 only updates the changelogs to describe more explicitly the user visible effects as you suggested. I dropped the 3rd patch for now because it needs more thinking. Thanks. Frederic Weisbecker (2): posix-timers: correctly get dying task time sample in posix_cpu_timer_sch

[PATCH 1/2] posix-timers: correctly get dying task time sample in posix_cpu_timer_schedule()

2013-04-16 Thread Frederic Weisbecker
In order to re-arm a timer after it fired, we take a sample of the current process or thread cputime. If the task is dying though, we don't arm anything but we cache the remaining timer expiration delta for further reads. Something similar is performed in posix_cpu_timer_get() but here we forget

[PATCH 2/2] posix_timers: Fix racy timer delta caching on task exit

2013-04-16 Thread Frederic Weisbecker
When a task exits, we perform a caching of the remaining cputime delta before expiring of its timers. This is done from the following places: * When the task is reaped. We iterate through its list of posix cpu timers and store the remaining timer delta to the timer struct instead of the absol

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

2013-04-16 Thread Alex Shi
On 04/16/2013 06:24 PM, Borislav Petkov wrote: > On Tue, Apr 16, 2013 at 08:22:19AM +0800, Alex Shi wrote: >> testing has a little variation, but the power data is quite accurate. >> I may change to packing tasks per cpu capacity than current cpu >> weight. that should has better power efficient va

Re: [PATCH v2 0/6] mm/hugetlb: gigantic hugetlb page pools shrink supporting

2013-04-16 Thread Michal Hocko
On Wed 17-04-13 08:36:28, Wanpeng Li wrote: > Changelog: > * add comments from Andi which indicate shrink gigantic hugetlb page pools > make >sense to patchset description. > > order >= MAX_ORDER pages are only allocated at boot stage using the > bootmem allocator with the "hugepages=xxx" o

[PATCH RESEND 8/8] rtc: rtc-twl: convert twl4030rtc_driver to dev_pm_ops

2013-04-16 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- drivers/rtc/rtc-twl.c | 16 ++-- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/rtc/rtc-twl.c b/drive

[PATCH RESEND 7/8] rtc: rtc-stmp3xxx: convert stmp3xxx_rtcdrv to dev_pm_ops

2013-04-16 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- drivers/rtc/rtc-stmp3xxx.c | 17 - 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/rtc/rtc-stmp3xxx

[PATCH RESEND 6/8] rtc: rtc-spear: convert spear_rtc_driver to dev_pm_ops

2013-04-16 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- drivers/rtc/rtc-spear.c | 18 -- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/rtc/rtc-spear.c b

[PATCH RESEND 5/8] rtc: rtc-puv3: convert puv3_rtc_driver to dev_pm_ops

2013-04-16 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- drivers/rtc/rtc-puv3.c | 27 --- 1 files changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/rtc/rtc-

[PATCH RESEND 4/8] rtc: rtc-omap: convert omap_rtc_driver to dev_pm_ops

2013-04-16 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- drivers/rtc/rtc-omap.c | 24 ++-- 1 files changed, 10 insertions(+), 14 deletions(-) diff --git a/drivers/rtc/rtc-oma

[PATCH RESEND 3/8] rtc: rtc-coh901331: convert coh901331_driver to dev_pm_ops

2013-04-16 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- drivers/rtc/rtc-coh901331.c | 24 +++- 1 files changed, 11 insertions(+), 13 deletions(-) diff --git a/drivers/rtc/rt

[PATCH RESEND 2/8] rtc: rtc-bfin: convert bfin_rtc_driver to dev_pm_ops

2013-04-16 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- drivers/rtc/rtc-bfin.c | 18 ++ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/rtc/rtc-bfin.c b/d

[PATCH RESEND 1/8] rtc: rtc-at91sam9: convert at91_rtc_driver to dev_pm_ops

2013-04-16 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- drivers/rtc/rtc-at91sam9.c | 23 ++- 1 files changed, 10 insertions(+), 13 deletions(-) diff --git a/drivers/rtc/rtc-

[PATCH RESEND 3/3] backlight: vgg2432a4: convert vgg2432a4_driver to dev_pm_ops

2013-04-16 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Also, use of pm_message_t is deprecated. Thus, it is removed. Signed-off-by: Jingoo Han --- drivers/video/backlight/ili9320.c | 24 +--- drivers/v

[PATCH RESEND 2/3] backlight: tosa: convert tosa to dev_pm_ops

2013-04-16 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- drivers/video/backlight/tosa_bl.c | 18 -- drivers/video/backlight/tosa_lcd.c | 18 -- 2 files changed,

[PATCH RESEND 1/3] backlight: omap1: convert omapbl to dev_pm_ops

2013-04-16 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- drivers/video/backlight/omap1_bl.c | 22 ++ 1 files changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/v

Re: [PATCH 21/28] dgrp: Clean up the use of procfs [RFC]

2013-04-16 Thread Greg KH
On Tue, Apr 16, 2013 at 07:27:13PM +0100, David Howells wrote: > Clean up the use of procfs by the dgrp driver: > > (1) Use remove_proc_subtree() for the mass slaughter of a subdir full of proc > files rather than doing it manually. > > (2) When creating files, only call ID_TO_CHAR() once

Re: [PATCH 14/28] proc: Supply an accessor for getting the data from a PDE's parent [RFC]

2013-04-16 Thread Greg KH
On Tue, Apr 16, 2013 at 07:26:46PM +0100, David Howells wrote: > Supply an accessor function for getting the private data from the parent > proc_dir_entry struct of the proc_dir_entry struct associated with an inode. > > ReiserFS, for instance, stores the super_block pointer in the proc directory

Re: [PATCH 12/28] rtl8192u: Don't need to save device proc dir PDE [RFC]

2013-04-16 Thread Greg KH
On Tue, Apr 16, 2013 at 07:26:39PM +0100, David Howells wrote: > Don't need to save the PDE of a directory created under /proc/net/rtl8192/ as > we can use proc subtree deletion to get rid of it and all its children. > > Signed-off-by: David Howells > cc: Jerry Chuang > cc: Mauro Carvalho Chehab

Re: [PATCH 11/28] rtl8187se: Use a dir under /proc/net/r8180/ [RFC]

2013-04-16 Thread Greg KH
On Tue, Apr 16, 2013 at 07:26:35PM +0100, David Howells wrote: > Create a dir under /proc/net/r8180/ named for the device and create that > device's files under there. This means that there won't be a problem for > multiple devices in the system (if such is possible) and it means we don't > need t

Re: [PATCH 10/28] proc: Add proc_mkdir_data() [RFC]

2013-04-16 Thread Greg KH
On Tue, Apr 16, 2013 at 07:26:30PM +0100, David Howells wrote: > Add proc_mkdir_data() to allow procfs directories to be created that are > annotated at the time of creation with private data rather than doing this > post-creation. This means no access is then required to the proc_dir_entry > stru

Re: [PATCH 09/28] proc: Move some bits from linux/proc_fs.h to linux/{of.h, signal.h, tty.h} [RFC]

2013-04-16 Thread Greg Kroah-Hartman
On Tue, Apr 16, 2013 at 07:26:26PM +0100, David Howells wrote: > Move some bits from linux/proc_fs.h to linux/of.h, signal.h and tty.h. > > Also move proc_tty_init() and proc_device_tree_init() to fs/proc/internal.h as > they're internal to procfs. > > Signed-off-by: David Howells > cc: devicetr

Re: [PATCH 01/28] Include missing linux/slab.h inclusions [RFC]

2013-04-16 Thread Greg KH
On Tue, Apr 16, 2013 at 07:25:54PM +0100, David Howells wrote: > Include missing linux/slab.h inclusions where the source file is currently > expecting to get kmalloc() and co. through linux/proc_fs.h. > > Signed-off-by: David Howells > cc: linux-s...@vger.kernel.org > cc: sparcli...@vger.kernel.

Re: [PATCH] ARM: dts: omap3-beagle-xm: Add USB Host support for Rev Ax/Bx

2013-04-16 Thread Tony Lindgren
* Roger Quadros [130415 05:44]: > On 04/15/2013 03:35 PM, Roger Quadros wrote: > > Provide RESET and Power regulators for the USB PHY, > > the USB Host port mode and the PHY device. > > > > Also provide pin multiplexer information for USB host > > pins. > > > > This will not work for Rev Cx boar

Re: [PATCH 19/26] sh: Don't use create_proc_read_entry() [RFC]

2013-04-16 Thread Simon Horman
On Wed, Apr 17, 2013 at 03:42:03AM +0900, Paul Mundt wrote: > On Tue, Apr 16, 2013 at 07:28:42AM +0100, Al Viro wrote: > > On Tue, Apr 16, 2013 at 03:11:13PM +0900, Simon Horman wrote: > > > On Thu, Apr 11, 2013 at 02:30:09PM +0100, David Howells wrote: > > > > Don't use create_proc_read_entry() as

Re: [PATCH] x86: Add a Kconfig shortcut for a kvm-bootable kernel

2013-04-16 Thread Sasha Levin
On 04/16/2013 12:18 PM, Borislav Petkov wrote: > On Sun, Apr 14, 2013 at 01:03:20PM +0200, Borislav Petkov wrote: >> On Sun, Apr 14, 2013 at 12:31:12PM +0300, Pekka Enberg wrote: >>> I obviously support having something like this in mainline. I wonder >>> though if we could just call this "default

[PATCH v2 0/6] mm/hugetlb: gigantic hugetlb page pools shrink supporting

2013-04-16 Thread Wanpeng Li
Changelog: * add comments from Andi which indicate shrink gigantic hugetlb page pools make sense to patchset description. order >= MAX_ORDER pages are only allocated at boot stage using the bootmem allocator with the "hugepages=xxx" option. These pages are never free after boot by default

[PATCH v2 5/6] mm/hugetlb: remove redundant hugetlb_prefault

2013-04-16 Thread Wanpeng Li
hugetlb_prefault is not used by any users. This patch remove redundant hugetlb_prefault. Signed-off-by: Wanpeng Li --- include/linux/hugetlb.h |2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index b7e4106..813b265 100644 --- a/include/li

[PATCH v2 4/6] mm/hugetlb: use already exist huge_page_order() instead of h->order

2013-04-16 Thread Wanpeng Li
Use already exist interface huge_page_order() instead of h->order to get huge page order. Signed-off-by: Wanpeng Li --- mm/hugetlb.c | 36 +++- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 328f140..0cae950 10

[PATCH v2 2/6] mm/hugetlb: update_and_free_page gigantic pages awareness

2013-04-16 Thread Wanpeng Li
order >= MAX_ORDER pages can't be freed to buddy system directly, this patch destroy the gigantic hugetlb page to normal order-0 pages and free them one by one. Signed-off-by: Wanpeng Li --- mm/hugetlb.c| 39 +-- mm/internal.h |1 + mm/page_alloc.c

[PATCH v2 6/6] mm/hugetlb: use already exist interface huge_page_shift

2013-04-16 Thread Wanpeng Li
Use already exist interface huge_page_shift instead of h->order + PAGE_SHIFT. Signed-off-by: Wanpeng Li --- mm/hugetlb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 0cae950..750ed8a 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -320,

[PATCH v2 3/6] mm/hugetlb: enable gigantic hugetlb page pools shrinking

2013-04-16 Thread Wanpeng Li
Enable gigantic hugetlb page pools shrinking. Signed-off-by: Wanpeng Li --- mm/hugetlb.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index eeaf6f2..328f140 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1416,7 +1416,8 @@ static unsi

[PATCH v2 1/6] mm/hugetlb: introduce new sysctl knob which control gigantic page pools shrinking

2013-04-16 Thread Wanpeng Li
This patch introduces new sysctl knob to support gigantic hugetlb page pools shrinking. The default value is 0 since gigantic page pools aren't permitted shrinked by default, administrator can echo 1 to knob to enable gigantic page pools shrinking after they confirm they won't use them any more. S

Re: [Bug fix PATCH v3] Reusing a resource structure allocated by bootmem

2013-04-16 Thread David Rientjes
On Wed, 17 Apr 2013, Yasuaki Ishimatsu wrote: > When hot removing memory presented at boot time, following messages are shown: > > [ 296.867031] [ cut here ] > [ 296.922273] kernel BUG at mm/slub.c:3409! > [ 296.970229] invalid opcode: [#1] SMP > [ 297.019453] Mod

Re: [PATCH v2 0/6] Chainsaw efivars.c

2013-04-16 Thread Tom Gundersen
Hi Matt, On Tue, Apr 16, 2013 at 11:41 PM, Matt Fleming wrote: > This patch series introduces the new efivar_entry API, and splits out the > major > parts of efivars.c into new files. In particular, having the efivarfs code > under fs/ allows building an efivarfs.ko module, which means mount(8)

  1   2   3   4   5   6   >