Re: linux-next: build failure after merge of the spi tree

2013-07-28 Thread Stephen Rothwell
Hi Mark, On Mon, 29 Jul 2013 06:00:11 +0100 Mark Brown wrote: > > On Mon, Jul 29, 2013 at 01:42:23PM +1000, Stephen Rothwell wrote: > > > drivers/spi/spi-pxa2xx-pxadma.c: In function 'wait_dma_channel_stop': > > drivers/spi/spi-pxa2xx-pxadma.c:136:2: error: implicit declaration of > > function

Re: 3.10.1: echo repair > sync_action causes hang on RAID-1 (2 x SSD)

2013-07-28 Thread NeilBrown
On Fri, 26 Jul 2013 05:56:51 -0400 "Justin Piszcz" wrote: > > > -Original Message- > From: NeilBrown [mailto:ne...@suse.de] > Sent: Thursday, July 25, 2013 8:36 PM > To: Justin Piszcz > Cc: linux-kernel@vger.kernel.org; linux-r...@vger.kernel.org > Subject: Re: 3.10.1: echo repair >

Re: [PATCH] regulator: pfuze100: Fix module alias prefix

2013-07-28 Thread Mark Brown
On Mon, Jul 29, 2013 at 12:19:29PM +0800, Axel Lin wrote: > i2c drivers use "i2c:" prefix for module alias. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH 1/2] regulator: pfuze100: REGULATOR_PFUZE100 needs to select REGMAP_I2C

2013-07-28 Thread Mark Brown
On Mon, Jul 29, 2013 at 12:08:01PM +0800, Axel Lin wrote: > This fixes below build errors: Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH V2] gpio: palmas: Fix misreported GPIO out value

2013-07-28 Thread Laxman Dewangan
On Saturday 27 July 2013 02:09 AM, Andrew Chew wrote: It seems that the value read back from the PALMAS_GPIO_DATA_IN register isn't valid if the GPIO direction is out. When that's the case, we can read back the PALMAS_GPIO_DATA_OUT register to get the proper output value. Looks good to me.

Re: [PATCH jiffies] Avoid undefined behavior from signed overflow

2013-07-28 Thread caf
Quoting "Paul E. McKenney" : According to the C standard 3.4.3p3, overflow of a signed integer results in undefined behavior. This commit therefore changes the definitions of time_after() and time_after_eq() to avoid this undefined behavior. The trick is that the subtraction is done using

[PATCH 08/18] mm, hugetlb: do hugepage_subpool_get_pages() when avoid_reserve

2013-07-28 Thread Joonsoo Kim
When we try to get a huge page with avoid_reserve, we don't consume a reserved page. So it is treated like as non-reserve case. Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 1426c03..749629e 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1149,12 +1149,13 @@ static

[PATCH v3 2/9] mm, hugetlb: trivial commenting fix

2013-07-28 Thread Joonsoo Kim
The name of the mutex written in comment is wrong. Fix it. Acked-by: Michal Hocko Acked-by: Hillf Danton Reviewed-by: Aneesh Kumar K.V Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index fc4988c..51564a8 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -135,9 +135,9 @@

[PATCH 07/18] mm, hugetlb: pass has_reserve to dequeue_huge_page_vma()

2013-07-28 Thread Joonsoo Kim
We don't have to call vma_has_reserve() each time we need information. Passing has_reserve unburden this effort. Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index ff46a2c..1426c03 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -572,7 +572,8 @@ static struct page

[PATCH 09/18] mm, hugetlb: unify has_reserve and avoid_reserve to use_reserve

2013-07-28 Thread Joonsoo Kim
Currently, we have two variable to represent whether we can use reserved page or not, has_reserve and avoid_reserve, respectively. These have same meaning, so we can unify them to use_reserve. This makes no functinoal difference, is just for clean-up. Signed-off-by: Joonsoo Kim diff --git

[PATCH 03/18] mm, hugetlb: unify region structure handling

2013-07-28 Thread Joonsoo Kim
Currently, to track a reserved and allocated region, we use two different ways for MAP_SHARED and MAP_PRIVATE. For MAP_SHARED, we use address_mapping's private_list and, for MAP_PRIVATE, we use a resv_map. Now, we are preparing to change a coarse grained lock which protect a region structure to

[PATCH 06/18] mm, hugetlb: remove vma_need_reservation()

2013-07-28 Thread Joonsoo Kim
vma_need_reservation() can be substituted by vma_has_reserves() with minor change. These function do almost same thing, so unifying them is better to maintain. Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index bf2ee11..ff46a2c 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c

[PATCH 10/18] mm, hugetlb: call vma_has_reserve() before entering alloc_huge_page()

2013-07-28 Thread Joonsoo Kim
To implement a graceful failure handling, we need to know whether allocation request is for reserved pool or not, on higher level. In this patch, we just move up vma_has_reseve() to caller function in order to know it. There is no functional change. Following patches implement a grace failure

[PATCH 11/18] mm, hugetlb: move down outside_reserve check

2013-07-28 Thread Joonsoo Kim
Just move down outsider_reserve check. This makes code more readable. There is no functional change. Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 5f31ca5..94173e0 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2530,20 +2530,6 @@ retry_avoidcopy:

[PATCH 12/18] mm, hugetlb: remove a check for return value of alloc_huge_page()

2013-07-28 Thread Joonsoo Kim
Now, alloc_huge_page() only return -ENOSPEC if failed. So, we don't worry about other return value. Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 94173e0..35ccdad 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2562,7 +2562,6 @@ retry_avoidcopy: new_page =

[PATCH 13/18] mm, hugetlb: grab a page_table_lock after page_cache_release

2013-07-28 Thread Joonsoo Kim
We don't need to grab a page_table_lock when we try to release a page. So, defer to grab a page_table_lock. Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 35ccdad..255bd9e 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2630,10 +2630,11 @@ retry_avoidcopy: }

[PATCH 15/18] mm, hugetlb: move up anon_vma_prepare()

2013-07-28 Thread Joonsoo Kim
If we fail with a allocated hugepage, it is hard to recover properly. One such example is reserve count. We don't have any method to recover reserve count. Although, I will introduce a function to recover reserve count in following patch, it is better not to allocate a hugepage as much as

[PATCH 17/18] mm, hugetlb: retry if we fail to allocate a hugepage with use_reserve

2013-07-28 Thread Joonsoo Kim
If parallel fault occur, we can fail to allocate a hugepage, because many threads dequeue a hugepage to handle a fault of same address. This makes reserved pool shortage just for a little while and this cause faulting thread who is ensured to have enough reserved hugepages to get a SIGBUS signal.

[PATCH 14/18] mm, hugetlb: clean-up error handling in hugetlb_cow()

2013-07-28 Thread Joonsoo Kim
Current code include 'Caller expects lock to be held' in every error path. We can clean-up it as we do error handling in one place. Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 255bd9e..683fd38 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2516,6 +2516,7 @@

[PATCH 01/18] mm, hugetlb: protect reserved pages when softofflining requests the pages

2013-07-28 Thread Joonsoo Kim
alloc_huge_page_node() use dequeue_huge_page_node() without any validation check, so it can steal reserved page unconditionally. To fix it, check the number of free_huge_page in alloc_huge_page_node(). Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 6782b41..d971233

[PATCH 16/18] mm, hugetlb: return a reserved page to a reserved pool if failed

2013-07-28 Thread Joonsoo Kim
If we fail with a reserved page, just calling put_page() is not sufficient, because put_page() invoke free_huge_page() at last step and it doesn't know whether a page comes from a reserved pool or not. So it doesn't do anything related to reserved count. This makes reserve count lower than how we

[PATCH 18/18] mm, hugetlb: remove a hugetlb_instantiation_mutex

2013-07-28 Thread Joonsoo Kim
Now, we have prepared to have an infrastructure in order to remove a this awkward mutex which serialize all faulting tasks, so remove it. Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 909075b..4fab047 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2533,9 +2533,7 @@

[PATCH 02/18] mm, hugetlb: change variable name reservations to resv

2013-07-28 Thread Joonsoo Kim
'reservations' is so long name as a variable and we use 'resv_map' to represent 'struct resv_map' in other place. To reduce confusion and unreadability, change it. Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index d971233..12b6581 100644 --- a/mm/hugetlb.c +++

[PATCH v3 3/9] mm, hugetlb: clean-up alloc_huge_page()

2013-07-28 Thread Joonsoo Kim
This patch unifies successful allocation paths to make the code more readable. There are no functional changes. Acked-by: Michal Hocko Reviewed-by: Wanpeng Li Reviewed-by: Aneesh Kumar K.V Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 51564a8..31d78c5 100644 ---

[PATCH v3 5/9] mm, hugetlb: remove redundant list_empty check in gather_surplus_pages()

2013-07-28 Thread Joonsoo Kim
If list is empty, list_for_each_entry_safe() doesn't do anything. So, this check is redundant. Remove it. Acked-by: Michal Hocko Reviewed-by: Wanpeng Li Reviewed-by: Aneesh Kumar K.V Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 87d7637..2e52afea 100644 ---

[PATCH 00/18] mm, hugetlb: remove a hugetlb_instantiation_mutex

2013-07-28 Thread Joonsoo Kim
Without a hugetlb_instantiation_mutex, if parallel fault occur, we can fail to allocate a hugepage, because many threads dequeue a hugepage to handle a fault of same address. This makes reserved pool shortage just for a little while and this cause faulting thread who is ensured to have enough

[PATCH 04/18] mm, hugetlb: region manipulation functions take resv_map rather list_head

2013-07-28 Thread Joonsoo Kim
To change a protection method for region tracking to find grained one, we pass the resv_map, instead of list_head, to region manipulation functions. This doesn't introduce any functional change, and it is just for preparing a next step. Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c

[PATCH v3 0/9] mm, hugetlb: clean-up and possible bug fix

2013-07-28 Thread Joonsoo Kim
First 5 patches are almost trivial clean-up patches. The others are for fixing three bugs. Perhaps, these problems are minor, because this codes are used for a long time, and there is no bug reporting for these problems. These patches are based on v3.10.0 and passed the libhugetlbfs test suite.

[PATCH v3 4/9] mm, hugetlb: fix and clean-up node iteration code to alloc or free

2013-07-28 Thread Joonsoo Kim
Current node iteration code have a minor problem which do one more node rotation if we can't succeed to allocate. For example, if we start to allocate at node 0, we stop to iterate at node 0. Then we start to allocate at node 1 for next allocation. I introduce new macros

[PATCH 05/18] mm, hugetlb: protect region tracking via newly introduced resv_map lock

2013-07-28 Thread Joonsoo Kim
There is a race condition if we map a same file on different processes. Region tracking is protected by mmap_sem and hugetlb_instantiation_mutex. When we do mmap, we don't grab a hugetlb_instantiation_mutex, but, grab a mmap_sem. This doesn't prevent other process to modify region structure, so it

[PATCH v3 7/9] mm, hugetlb: add VM_NORESERVE check in vma_has_reserves()

2013-07-28 Thread Joonsoo Kim
If we map the region with MAP_NORESERVE and MAP_SHARED, we can skip to check reserve counting and eventually we cannot be ensured to allocate a huge page in fault time. With following example code, you can easily find this situation. Assume 2MB, nr_hugepages = 100 fd =

[PATCH v3 6/9] mm, hugetlb: do not use a page in page cache for cow optimization

2013-07-28 Thread Joonsoo Kim
Currently, we use a page with mapped count 1 in page cache for cow optimization. If we find this condition, we don't allocate a new page and copy contents. Instead, we map this page directly. This may introduce a problem that writting to private mapping overwrite hugetlb file directly. You can

[PATCH 3/3] ethernet: Convert mac address uses of 6 to ETH_ALEN

2013-07-28 Thread Joe Perches
Use the normal #define to help grep find mac addresses and ensure that addresses are aligned. Move one address in pasemi_mac.h for alignment. Signed-off-by: Joe Perches --- drivers/net/ethernet/8390/ax88796.c| 4 ++-- drivers/net/ethernet/amd/pcnet32.c | 6

[PATCH 0/3] networking: Use ETH_ALEN where appropriate

2013-07-28 Thread Joe Perches
Convert the uses mac addresses to ETH_ALEN so it's easier to find and verify where mac addresses need to be __aligned(2) Joe Perches (3): uapi: Convert some uses of 6 to ETH_ALEN include: Convert ethernet mac address declarations to use ETH_ALEN ethernet: Convert mac address uses of 6 to

[PATCH 1/3] uapi: Convert some uses of 6 to ETH_ALEN

2013-07-28 Thread Joe Perches
Use the #define where appropriate. Add #include where appropriate too. Signed-off-by: Joe Perches --- include/uapi/linux/dn.h | 3 ++- include/uapi/linux/if_bridge.h| 3 ++- include/uapi/linux/netfilter_bridge/ebt_802_3.h | 5 +++--

[PATCH 2/3] include: Convert ethernet mac address declarations to use ETH_ALEN

2013-07-28 Thread Joe Perches
It's convenient to have ethernet mac addresses use ETH_ALEN to be able to grep for them a bit easier and also to ensure that the addresses are __aligned(2). Add #include as necessary. Signed-off-by: Joe Perches --- include/acpi/actbl2.h | 4 ++- include/linux/dm9000.h | 4

[PATCH v3 9/9] mm, hugetlb: decrement reserve count if VM_NORESERVE alloc page cache

2013-07-28 Thread Joonsoo Kim
If a vma with VM_NORESERVE allocate a new page for page cache, we should check whether this area is reserved or not. If this address is already reserved by other process(in case of chg == 0), we should decrement reserve count, because this allocated page will go into page cache and currently,

[PATCH v3 8/9] mm, hugetlb: remove decrement_hugepage_resv_vma()

2013-07-28 Thread Joonsoo Kim
Now, Checking condition of decrement_hugepage_resv_vma() and vma_has_reserves() is same, so we can clean-up this function with vma_has_reserves(). Additionally, decrement_hugepage_resv_vma() has only one call site, so we can remove function and embed it into dequeue_huge_page_vma() directly. This

[PATCH v3 1/9] mm, hugetlb: move up the code which check availability of free huge page

2013-07-28 Thread Joonsoo Kim
In this time we are holding a hugetlb_lock, so hstate values can't be changed. If we don't have any usable free huge page in this time, we don't need to proceede the processing. So move this code up. Acked-by: Michal Hocko Reviewed-by: Wanpeng Li Reviewed-by: Aneesh Kumar K.V Signed-off-by:

Re: [RFC PATCH 4/5] cpuidle/ppc: CPU goes tickless if there are no arch-specific constraints

2013-07-28 Thread Vaidyanathan Srinivasan
* Preeti U Murthy [2013-07-27 13:20:37]: > Hi Ben, > > On 07/27/2013 12:00 PM, Benjamin Herrenschmidt wrote: > > On Fri, 2013-07-26 at 08:09 +0530, Preeti U Murthy wrote: > >> *The lapic of a broadcast CPU is active always*. Say CPUX, wants the > >> broadcast CPU to wake it up at timeX. Since

Re: [PATCH] x86, apic: Enable x2APIC physical when cpu < 256 native

2013-07-28 Thread Youquan Song
> Yes. It would be great, if Youquan can point out where is the intel doc > about the change. > > Also if the patch can move on, hypervisor_x2apic_available() related > declaration and define > could be dropped. Hi Yinghai, Sorry I do not know the document change but I also do not find the

Re: [PATCH v2 1/3] net/usb/r815x: replace USB buffer from stack to DMA-able

2013-07-28 Thread Oliver Neukum
On Sat, 2013-07-27 at 20:21 -0700, David Miller wrote: > From: Hayes Wang > Date: Thu, 25 Jul 2013 15:59:02 +0800 > > > Some USB buffers use stack which may not be DMA-able. > > Use the buffers from kmalloc to replace those one. > > > > Signed-off-by: Hayes Wang > > I don't think it's

Re: [RFC PATCH 4/5] cpuidle/ppc: CPU goes tickless if there are no arch-specific constraints

2013-07-28 Thread Vaidyanathan Srinivasan
* Benjamin Herrenschmidt [2013-07-27 16:30:05]: > On Fri, 2013-07-26 at 08:09 +0530, Preeti U Murthy wrote: > > *The lapic of a broadcast CPU is active always*. Say CPUX, wants the > > broadcast CPU to wake it up at timeX. Since we cannot program the lapic > > of a remote CPU, CPUX will need to

Re: [PATCH] x86, apic: Enable x2APIC physical when cpu < 256 native

2013-07-28 Thread Youquan Song
> > Thanks Ingo! > > The machines will be affected: CPU support x2APIC and CPU number < 256, > > chipset does not support VT-d2 or VT-d is disabled in BIOS. > > I mean, can you guess what rough percentage of new systems > shipping (or significant number of older systems already > shipped) will

linux-next: manual merge of the char-misc tree with Linus' tree

2013-07-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the char-misc tree got a conflict in drivers/misc/mei/init.c between commit 99f22c4ef24c ("mei: don't have to clean the state on power up") from Linus' tree and commit b950ac1dabfc ("mei: don't get stuck in select during reset") from the char-misc tree.

Re: [PATCH] regulator:pfuze100: add MODULE_LICENSE() in pfuze100 driver

2013-07-28 Thread Mark Brown
On Mon, Jul 29, 2013 at 11:40:11AM +0800, Robin Gong wrote: > Fix building error on x86_64 and i386: > WARNING: modpost: missing MODULE_LICENSE() in > drivers/regulator/pfuze100-regulator.o Applied, thanks. signature.asc Description: Digital signature

Re: linux-next: build failure after merge of the spi tree

2013-07-28 Thread Mark Brown
On Mon, Jul 29, 2013 at 01:42:23PM +1000, Stephen Rothwell wrote: > drivers/spi/spi-pxa2xx-pxadma.c: In function 'wait_dma_channel_stop': > drivers/spi/spi-pxa2xx-pxadma.c:136:2: error: implicit declaration of > function 'DCSR' [-Werror=implicit-function-declaration] > while (!(DCSR(channel) &

[PATCH -next] staging: xillybus: remove duplicated include from xillybus_core.c

2013-07-28 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- drivers/staging/xillybus/xillybus_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index dd0a71c..4b216d4 100644 ---

Re: Linux 3.11-rc3

2013-07-28 Thread Linus Torvalds
On Sun, Jul 28, 2013 at 9:42 PM, Linus Torvalds wrote: > > Full shortlog since rc2 appended. It's big enough that I debated doing > just a merge-window style "mergelog" overview, but hey, maybe people > enjoy this kind of detail? Just for comparison, here's the "mergelog" that just talks about

Re: [PATCH] regulator: pfuze100: Fix module alias prefix

2013-07-28 Thread Robin Gong
Thanks Axel for the quick founding. The patch set is ok for me. On Mon, Jul 29, 2013 at 12:19:29PM +0800, Axel Lin wrote: > i2c drivers use "i2c:" prefix for module alias. > > Signed-off-by: Axel Lin > --- > drivers/regulator/pfuze100-regulator.c | 2 +- > 1 file changed, 1 insertion(+), 1

Linux 3.11-rc3

2013-07-28 Thread Linus Torvalds
Another week, another -rc. And please just forget about me telling you people to get back to work last week. You got. -rc3 has about 50% more commits than -rc2 did. Part of it is that a few people missed rc2, but part of it is that people just sent me more. Please stop. It's summer. It's nice

[PATCH 2/2] pinctrl: st: Staticize local symbols

2013-07-28 Thread Sachin Kamat
Symbols used only in this file are made static. Signed-off-by: Sachin Kamat --- drivers/pinctrl/pinctrl-st.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index 6246d7a..2a10a31 100644 ---

[PATCH 1/2] pinctrl: st: Convert to use devm_ioremap_resource

2013-07-28 Thread Sachin Kamat
devm_request_and_ioremap is deprecated. Use devm_ioremap_resource instead. Signed-off-by: Sachin Kamat --- drivers/pinctrl/pinctrl-st.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index

[PATCH -next] staging: gdm724x: remove duplicated include from gdm_lte.c

2013-07-28 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- drivers/staging/gdm724x/gdm_lte.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c index 68ebc7d..7165d3a 100644 ---

[PATCH -next] staging: comedi: dt9812: remove duplicated include from dt9812.c

2013-07-28 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- drivers/staging/comedi/drivers/dt9812.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/dt9812.c b/drivers/staging/comedi/drivers/dt9812.c index ffb7572..b865367 100644 ---

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

2013-07-28 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- arch/x86/platform/ce4100/ce4100.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/platform/ce4100/ce4100.c b/arch/x86/platform/ce4100/ce4100.c index 8244f5e..d62e74d 100644 ---

[PATCH] regulator: pfuze100: Fix module alias prefix

2013-07-28 Thread Axel Lin
i2c drivers use "i2c:" prefix for module alias. Signed-off-by: Axel Lin --- drivers/regulator/pfuze100-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index cd136ff..e9e8ae3 100644

Re: Linux 3.4.55

2013-07-28 Thread Greg KH
diff --git a/Makefile b/Makefile index 6ca3657..c6f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 54 +SUBLEVEL = 55 EXTRAVERSION = NAME = Saber-toothed Squirrel diff --git a/arch/sparc/kernel/asm-offsets.c b/arch/sparc/kernel/asm-offsets.c

[PATCH 1/2] regulator: pfuze100: REGULATOR_PFUZE100 needs to select REGMAP_I2C

2013-07-28 Thread Axel Lin
This fixes below build errors: CC [M] drivers/regulator/pfuze100-regulator.o drivers/regulator/pfuze100-regulator.c:342:21: error: variable 'pfuze_regmap_config' has initializer but incomplete type drivers/regulator/pfuze100-regulator.c:343:2: error: unknown field 'reg_bits' specified in

Linux 3.4.55

2013-07-28 Thread Greg KH
I'm announcing the release of the 3.4.55 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:

[PATCH 2/2] regulator: pfuze100: Use i2c_[set|get]_clientdata

2013-07-28 Thread Axel Lin
Since this is a i2c driver, use i2c_[set|get]_clientdata instead of dev_[set|get]_drvdata. Signed-off-by: Axel Lin --- drivers/regulator/pfuze100-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/pfuze100-regulator.c

Linux 3.10.4

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

Linux 3.0.88

2013-07-28 Thread Greg KH
I'm announcing the release of the 3.0.88 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: Linux 3.0.88

2013-07-28 Thread Greg KH
diff --git a/Makefile b/Makefile index 03aa17e..2b40b0a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 87 +SUBLEVEL = 88 EXTRAVERSION = NAME = Sneaky Weasel diff --git a/arch/sparc/kernel/asm-offsets.c b/arch/sparc/kernel/asm-offsets.c index

[PATCH] generic-ipi: Fix misleading smp_call_function_any() description

2013-07-28 Thread Xie XiuQi
After commit:8969a5ede0f9e17da4b943712429aef2c9bcd82b "generic-ipi: remove kmalloc()", wait = 0 can be guaranteed. Signed-off-by: Xie XiuQi Cc: Sheng Yang Cc: Peter Zijlstra Cc: Jens Axboe Cc: Rusty Russell --- kernel/smp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/smp.c

Re: [PATCH 2/2] cpuset: correct the disoder comment of two functions

2013-07-28 Thread Li Zefan
On 2013/7/27 11:56, Zhao Hongjiang wrote: > correct the disoder comment between cpuset_css_offline() and > cpuset_css_free() functions. > > Signed-off-by: Zhao Hongjiang Acked-by: Li Zefan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 1/2] cpuset: get rid of the useless forward declaration of cpuset

2013-07-28 Thread Li Zefan
On 2013/7/27 11:56, Zhao Hongjiang wrote: > get rid of the useless forward declaration of the struct cpuset cause the > below define it. > > Signed-off-by: Zhao Hongjiang Acked-by: Li Zefan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

linux-next: build failure after merge of the spi tree

2013-07-28 Thread Stephen Rothwell
Hi Mark, After merging the spi tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/spi/spi-pxa2xx-pxadma.c: In function 'wait_dma_channel_stop': drivers/spi/spi-pxa2xx-pxadma.c:136:2: error: implicit declaration of function 'DCSR'

[PATCH 2/2] cifs: file: initialize oparms.reconnect before using it

2013-07-28 Thread Steve French
Andi, Your patch looks reasonable. Would you repost the patch to linux-cifs mailing list (and add any additional reviewers or testers if you would like if you got feedback)? On Mon, Jul 22, 2013 at 09:24:00PM +0200, Andi Shyti wrote: In the cifs_reopen_file function, if the following

[PATCH] regulator:pfuze100: add MODULE_LICENSE() in pfuze100 driver

2013-07-28 Thread Robin Gong
Fix building error on x86_64 and i386: WARNING: modpost: missing MODULE_LICENSE() in drivers/regulator/pfuze100-regulator.o Signed-off-by: Robin Gong --- drivers/regulator/pfuze100-regulator.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

Re: [PATCH RFC nohz_full 7/7] nohz_full: Force RCU's grace-period kthreads onto timekeeping CPU

2013-07-28 Thread Lai Jiangshan
On 07/27/2013 07:19 AM, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > Because RCU's quiescent-state-forcing mechanism is used to drive the > full-system-idle state machine, and because this mechanism is executed > by RCU's grace-period kthreads, this commit forces these kthreads to >

Re: [PATCH RFC nohz_full 1/7] nohz_full: Add Kconfig parameter for scalable detection of all-idle state

2013-07-28 Thread Lai Jiangshan
On 07/27/2013 07:19 AM, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > At least one CPU must keep the scheduling-clock tick running for > timekeeping purposes whenever there is a non-idle CPU. However, with > the new nohz_full adaptive-idle machinery, it is difficult to distinguish >

Re: [PATCH] xfs: introduce object readahead to log recovery

2013-07-28 Thread Zhi Yong Wu
On Mon, Jul 29, 2013 at 10:45 AM, Dave Chinner wrote: > On Mon, Jul 29, 2013 at 09:38:11AM +0800, Zhi Yong Wu wrote: >> By the way, how do you try the workload which has nothing but dirty >> dquote objects? > > Create quota limits for non-existent users. That will allocate the > dquots and dirty

Re: [PATCH 2/3] ACPI / PM: Make messages in acpi_device_set_power() print device names

2013-07-28 Thread Joe Perches
On Mon, 2013-07-29 at 11:06 +0800, Lan Tianyu wrote: > 2013/7/27 Rafael J. Wysocki : > > From: Rafael J. Wysocki [] > > drivers/acpi/device_pm.c | 22 ++ [] > > @@ -166,20 +166,20 @@ int acpi_device_set_power(struct acpi_de [] > > if (device->parent && (state <

Re: [PATCH 2/3] ACPI / PM: Make messages in acpi_device_set_power() print device names

2013-07-28 Thread Lan Tianyu
2013/7/27 Rafael J. Wysocki : > From: Rafael J. Wysocki > > Modify acpi_device_set_power() so that diagnostic messages printed by > it to the kernel log always contain the name of the device concerned > to make it possible to identify the device that triggered the message > if need be. > > Also

linux-next: manual merge of the drm tree with Linus' tree

2013-07-28 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in drivers/gpu/drm/qxl/qxl_release.c between commit 8002db6336dd ("qxl: convert qxl driver to proper use for reservations") from Linus' tree and commit 72525b3f333d ("drm/ttm: convert to unified vma offset manager") from the drm

[PATCH] libceph: fix deadlock in ceph_build_auth()

2013-07-28 Thread Alexey Khoroshilov
ceph_build_auth() locks ac->mutex and then calls ceph_auth_build_hello() that locks the same mutex, i.e. bring itself to deadlock. The patch moves actual code from ceph_auth_build_hello() to ceph_build_hello_auth_request() that should be called with ac->mutex held and makes ceph_build_auth()

Re: [PATCH jiffies] Avoid undefined behavior from signed overflow

2013-07-28 Thread Paul E. McKenney
On Sun, Jul 28, 2013 at 11:46:59AM -0700, Eric Dumazet wrote: > On Sat, 2013-07-27 at 15:58 -0700, Paul E. McKenney wrote: > > According to the C standard 3.4.3p3, overflow of a signed integer results > > in undefined behavior. This commit therefore changes the definitions > > of time_after() and

Re: [PATCH] xfs: introduce object readahead to log recovery

2013-07-28 Thread Dave Chinner
On Mon, Jul 29, 2013 at 09:38:11AM +0800, Zhi Yong Wu wrote: > By the way, how do you try the workload which has nothing but dirty > dquote objects? Create quota limits for non-existent users. That will allocate the dquots and dirty them. Or if you already have a few hundred thousand dquots,

[PATCH 3/9] syslog_ns: add init syslog_ns for global syslog

2013-07-28 Thread Rui Xiang
Add init_syslog_ns to manage host log buffer, and initilize its fileds as the global variables. Printk by default in kernel will continue to be targeted at init_syslog_ns. So the buf of init ns is just the same as the original global buf. Signed-off-by: Rui Xiang --- include/linux/syslog.h

[PATCH 2/9] syslog_ns: add syslog_ns into user_namespace

2013-07-28 Thread Rui Xiang
Add a syslog_ns pointer to user_namespace, and make syslog_ns per user_namespace, not global. Since syslog_ns is assigned to user_ns, we can have full capabilities in new user_ns to create a new syslog_ns. Signed-off-by: Rui Xiang --- include/linux/syslog.h | 5 +

[PATCH 6/9] syslog_ns: use init syslog_ns for console action

2013-07-28 Thread Rui Xiang
While flags SYSLOG_ACTION_CONSOLE_ON/OFF/LEVEL of console actin are used in syslog syscall, the related hanlding should be targeted at host by init_syslog_ns. Signed-off-by: Rui Xiang --- kernel/printk.c | 5 + 1 file changed, 5 insertions(+) diff --git a/kernel/printk.c b/kernel/printk.c

[PATCH 7/9] syslog_ns: implement function for creating syslog ns

2013-07-28 Thread Rui Xiang
Add create_syslog_ns function to create a new ns. We must create a user_ns before create a new syslog ns. And then tie the new syslog_ns to current user_ns instead of original syslog_ns which comes from parent user_ns. Add a new syslog flag SYSLOG_ACTION_NEW_NS to implement a new command(11) of

[PATCH 9/9] netfilter: use ns_printk in iptable context

2013-07-28 Thread Rui Xiang
To containerise iptables log, use ns_printk to report individual logs to container as getting syslog_ns from skb->dev->nd_net->user_ns. Signed-off-by: Rui Xiang --- include/net/netfilter/xt_log.h | 6 +- net/netfilter/xt_LOG.c | 4 ++-- 2 files changed, 7 insertions(+), 3

[PATCH 5/9] syslog_ns: make permisiion check per user namespace

2013-07-28 Thread Rui Xiang
Use ns_capable to check capability in user ns, instead of capable function. The user ns is the owner of current syslog ns. Signed-off-by: Rui Xiang --- kernel/printk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/printk.c b/kernel/printk.c index

[PATCH 1/9] syslog_ns: add syslog_namespace and put/get_syslog_ns

2013-07-28 Thread Rui Xiang
Add a struct syslog_namespace which contains the necessary members for hanlding syslog and realize get_syslog_ns and put_syslog_ns API. Signed-off-by: Rui Xiang --- include/linux/syslog.h | 68 ++ kernel/printk.c| 7 -- 2 files

[PATCH 0/9] Add namespace support for syslog v2

2013-07-28 Thread Rui Xiang
This patchset introduces a system log namespace. It is the 2nd version. The link of the 1st version is http://lwn.net/Articles/525728/. In that version, syslog_ namespace was added into nsproxy and created through a new clone flag CLONE_SYSLOG when cloning a process. There were some discussion

[PATCH 4/9] syslog_ns: make syslog handling per namespace

2013-07-28 Thread Rui Xiang
This patch makes syslog buf and other fields per namespace. Here use ns->log_buf(log_buf_len, logbuf_lock, log_first_seq, logbuf_lock, and so on) fields instead of global ones to handle syslog. Syslog interfaces such as /dev/kmsg, /proc/kmsg, and syslog syscall are all containerized for

[PATCH 8/9] syslog_ns: implement ns_printk for specific syslog_ns

2013-07-28 Thread Rui Xiang
Add a new interface named ns_printk, and assign an patamater ns. Log which belong to a container can be printed by ns_printk. Signed-off-by: Rui Xiang --- include/linux/printk.h | 4 kernel/printk.c| 53 ++ 2 files changed, 53

[PATCH] smp: kill unnecessary variable - csd_flags

2013-07-28 Thread Xie XiuQi
We used csd_flags formerly because we allocated csd_data by kmalloc when "wait == 0". When fail to allocation, we will fall back to on-stack allocation. "csd_data" might be invalid after generic_exec_single return. But now we use per cpu data for single cpu ipi calls, and csd_data can't fall back

Re: [PATCH 2/3] ACPI / PM: Make messages in acpi_device_set_power() print device names

2013-07-28 Thread Aaron Lu
On 07/27/2013 09:11 PM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Modify acpi_device_set_power() so that diagnostic messages printed by > it to the kernel log always contain the name of the device concerned > to make it possible to identify the device that triggered the message > if

RE: [PATCH v3 1/3] acpi: Call acpi_os_prepare_sleep hook in reduced hardware sleep path

2013-07-28 Thread Zheng, Lv
We can find the maintainer's reply that the patch set will be merged. So let me just do a top-based reply here. The examples I showed in the previous emails are just examples that could be used to demonstrate the difficulties on the future ACPICA development that brought by the hooks. Since all

[PATCH v3 2/2] tracing: Shrink the size of struct ftrace_event_field

2013-07-28 Thread Li Zefan
Use bit fields, and the size of struct ftrace_event_field can be shrunk from 48 bytes to 40 bytes on 64bit kernel. slab_name active_obj nr_obj size obj_per_slab - ftrace_event_field 1105 1105 48 85 (before) ftrace_event_field 1224 1224

Re: [PATCH v2 2/2] tracing: Shrink the size of struct ftrace_event_field

2013-07-28 Thread Li Zefan
>>> static int __trace_define_field(struct list_head *head, const char *type, >>> const char *name, int offset, int size, >>> int is_signed, int filter_type) >>> @@ -120,13 +123,16 @@ static int __trace_define_field(struct list_head >>>

Re: [PATCH 14/21] x86, acpi, numa: Reserve hotpluggable memory at early time.

2013-07-28 Thread Tang Chen
On 07/26/2013 06:26 PM, Tejun Heo wrote: On Fri, Jul 26, 2013 at 11:45:36AM +0800, Tang Chen wrote: I just don't want to any new variables to store the hotpluggable regions. But without a new shared variable, it seems difficult to achieve the goal you said below. Why can't it be done with the

Re: [PATCH 4/5] Intel MIC Card Driver Changes for Virtio Devices.

2013-07-28 Thread Rusty Russell
Sudeep Dutt writes: > From: Ashutosh Dixit > > This patch introduces the card "Virtio over PCIe" interface for > Intel MIC. It allows virtio drivers on the card to communicate with their > user space backends on the host via a device page. Ring 3 apps on the host > can add, remove and configure

[PATCH RESEND] f2fs: move bio_private allocation out of f2fs_bio_alloc()

2013-07-28 Thread Gu Zheng
bio->bi_private is not always needed. As in the reading data path, end_read_io does not need bio_private for further using, so moving bio_private allocation out of f2fs_bio_alloc(). Alloc it in the submit_write_page(), and ignore it in the f2fs_readpage(). Signed-off-by: Gu Zheng ---

Re: [PATCH v1] backlight-lm3630-apply chip revision

2013-07-28 Thread Jingoo Han
On Friday, July 26, 2013 6:02 PM, Daniel Jeong wrote: > Subject: [PATCH v1] backlight-lm3630-apply chip revision Please don't use this subject, as I mentioned. Also, this patch version is v2. Thus, when you send the next version of this patch, you should use the subject as below: [PATCH v3]

RE: [PATCH 06/13] ACPI/IPMI: Add reference counting for ACPI operation region handlers

2013-07-28 Thread Zheng, Lv
> On Friday, July 26, 2013 10:49 PM Rafael J. Wysocki wrote: > > On Friday, July 26, 2013 01:54:00 AM Zheng, Lv wrote: > > > On Friday, July 26, 2013 5:29 AM Rafael J. Wysocki wrote: > > > On Tuesday, July 23, 2013 04:09:43 PM Lv Zheng wrote: > > > > This patch adds reference couting for ACPI

[PATCH RESEND] fs/bio-integrity: fix a potential mem leak

2013-07-28 Thread Gu Zheng
Free the bio_integrity_pool in the fail path of biovec_create_pool in function bioset_integrity_create(). Signed-off-by: Gu Zheng --- fs/bio-integrity.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/bio-integrity.c b/fs/bio-integrity.c index

  1   2   3   4   >