[PATCHv2] pwm_backlight: pass correct brightness to callback

2012-07-08 Thread Alexandre Courbot
pwm_backlight_update_status calls the notify() and notify_after() callbacks before and after applying the new PWM settings. However, if brightness levels are used, the brightness value will be changed from the index into the levels array to the PWM duty cycle length before being passed to

Re: [net-next RFC V5 0/5] Multiqueue virtio-net

2012-07-08 Thread Jason Wang
On 07/08/2012 04:19 PM, Ronen Hod wrote: On 07/05/2012 01:29 PM, Jason Wang wrote: Hello All: This series is an update version of multiqueue virtio-net driver based on Krishna Kumar's work to let virtio-net use multiple rx/tx queues to do the packets reception and transmission. Please

Re: [PATCH 6/7] memcg: add per cgroup writeback pages accounting

2012-07-08 Thread Fengguang Wu
On Mon, Jul 09, 2012 at 01:22:54PM +0800, Sha Zhengju wrote: > On 07/09/2012 12:18 PM, Kamezawa Hiroyuki wrote: > >(2012/07/09 13:14), Fengguang Wu wrote: > >>On Mon, Jul 09, 2012 at 11:36:11AM +0800, Sha Zhengju wrote: > >>>On 07/08/2012 10:53 PM, Fengguang Wu wrote: > >@@ -2245,7 +2252,10 @@

Re: [PATCH 6/7] memcg: add per cgroup writeback pages accounting

2012-07-08 Thread Fengguang Wu
> >>>Where is the MEM_CGROUP_STAT_FILE_WRITEBACK increased? > >>> > >>It's in account_page_writeback(). > >> > >> void account_page_writeback(struct page *page) > >> { > >>+ mem_cgroup_inc_page_stat(page, MEM_CGROUP_STAT_FILE_WRITEBACK); > >>inc_zone_page_state(page, NR_WRITEBACK); > >> }

Re: [PATCH] pwm_backlight: pass correct brightness to callback

2012-07-08 Thread Alex Courbot
On 07/09/2012 02:10 PM, Thierry Reding wrote: I had to actually read this patch a number of times and then realized I was completely missing the context. Looking at the whole function makes it more obvious what you mean. However I think it'd be much clearer if we just passed the value of

Re: [PATCH 6/7] memcg: add per cgroup writeback pages accounting

2012-07-08 Thread Sha Zhengju
On 07/09/2012 12:18 PM, Kamezawa Hiroyuki wrote: (2012/07/09 13:14), Fengguang Wu wrote: On Mon, Jul 09, 2012 at 11:36:11AM +0800, Sha Zhengju wrote: On 07/08/2012 10:53 PM, Fengguang Wu wrote: @@ -2245,7 +2252,10 @@ int test_set_page_writeback(struct page *page) { struct

RE: [PATCH] pwm-backlight: add regulator and GPIO support

2012-07-08 Thread Jingoo Han
> -Original Message- > From: linux-fbdev-ow...@vger.kernel.org > [mailto:linux-fbdev-ow...@vger.kernel.org] On Behalf Of Stephen > Warren > Sent: Friday, July 06, 2012 1:04 AM > To: Alex Courbot > Cc: Thierry Reding; Sascha Hauer; Mark Brown; linux-te...@vger.kernel.org; >

Re: linux-next: boot failure in next-20120705 and 20120706

2012-07-08 Thread Benjamin Herrenschmidt
On Mon, 2012-07-09 at 14:49 +1000, Stephen Rothwell wrote: > Hi all, > > Boot testing next-20120705 and 20120706 one of my PowerPC machines get this > BUG: > > (this one just after the console login prompt appeared.) I'll have a look tomorrow. Make sure you keep the .config & machine at hand

Re: [PATCH 6/7] memcg: add per cgroup writeback pages accounting

2012-07-08 Thread Sha Zhengju
On 07/09/2012 12:14 PM, Fengguang Wu wrote: On Mon, Jul 09, 2012 at 11:36:11AM +0800, Sha Zhengju wrote: On 07/08/2012 10:53 PM, Fengguang Wu wrote: @@ -2245,7 +2252,10 @@ int test_set_page_writeback(struct page *page) { struct address_space *mapping = page_mapping(page); int

RE: [PATCH] pwm_backlight: pass correct brightness to callback

2012-07-08 Thread Jingoo Han
On Monday, July 09, 2012 1:22 PM, Alexandre Courbot wrote: > pwm_backlight_update_status calls two callbacks before and after > applying the new PWM settings. However, the brightness scale is > completely changed in between if brightness levels are used. This patch > ensures that both callbacks

Re: [PATCH] mm/memcg: return -EBUSY when oom-kill-disable modified and memcg use_hierarchy, has children

2012-07-08 Thread Wanpeng Li
On Mon, Jul 09, 2012 at 01:43:23PM +0900, Kamezawa Hiroyuki wrote: >(2012/07/05 19:55), Wanpeng Li wrote: >> From: Wanpeng Li >> >> When oom-kill-disable modified by the user and current memcg use_hierarchy, >> the change can occur, provided the current memcg has no children. If it >> has

Re: [PATCH] pwm_backlight: pass correct brightness to callback

2012-07-08 Thread Thierry Reding
On Mon, Jul 09, 2012 at 01:21:40PM +0900, Alexandre Courbot wrote: > pwm_backlight_update_status calls two callbacks before and after > applying the new PWM settings. However, the brightness scale is > completely changed in between if brightness levels are used. This patch > ensures that both

linux-next: boot failure in next-20120705 and 20120706

2012-07-08 Thread Stephen Rothwell
Hi all, Boot testing next-20120705 and 20120706 one of my PowerPC machines get this BUG: (this one just after the console login prompt appeared.) kernel BUG at arch/powerpc/kernel/irq.c:188! Oops: Exception in kernel mode, sig: 5 [#1] SMP NR_CPUS=32 NUMA pSeries Modules linked in: binfmt_misc

Re: [PATCH] mm/memcg: complete documentation for tcp memcg files

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/06 18:15), Wanpeng Li wrote: > From: Wanpeng Li > > Signed-off-by: Wanpeng Li Acked-by: KAMEZAWA Hiroyuki -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH] mm/memcg: mem_cgroup_relize_xxx_limit can guarantee memcg->res.limit <= memcg->memsw.limit

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/06 12:21), Wanpeng Li wrote: > From: Wanpeng Li > > Signed-off-by: Wanpeng Li Acked-by: KAMEZAWA Hiroyuki Could you merge all 'commentary fixes' into a patch ? > --- > mm/memcontrol.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH] mm/memcg: return -EBUSY when oom-kill-disable modified and memcg use_hierarchy, has children

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 19:55), Wanpeng Li wrote: > From: Wanpeng Li > > When oom-kill-disable modified by the user and current memcg use_hierarchy, > the change can occur, provided the current memcg has no children. If it > has children, return -EBUSY is enough. > > Signed-off-by: Wanpeng Li I'm sorry

Re: [PATCH 4/4][update] hwmon / exynos4_tmu: Use struct dev_pm_ops for power management

2012-07-08 Thread Guenter Roeck
On Sun, Jul 08, 2012 at 10:46:12PM +0200, Rafael J. Wysocki wrote: > On Sunday, July 08, 2012, Guenter Roeck wrote: > > On Sun, Jul 08, 2012 at 09:48:15PM +0200, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > Hi Rafael, > > > > > Make the Exynos4 TMU driver define its PM

Re: [PATCH] mm/memcg: replace inexistence move_lock_page_cgroup() by move_lock_mem_cgroup() in comment

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 15:28), Wanpeng Li wrote: > From: Wanpeng Li > > Signed-off-by: Wanpeng Li Acked-by: KAMEZAWA Hiroyuki > --- > mm/memcontrol.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index 3d318f6..63e36e7 100644 >

Re: [PATCH 0/6] staging: vt6655: Cleanup in usage of macros

2012-07-08 Thread Joe Perches
On Sun, 2012-07-08 at 23:51 -0300, Marcos Paulo de Souza wrote: > Hi kernel guys! > > This patchset aims to clean all unused and commented macros. > > For this challenge, forgotten-macros tool helped us. Perhaps there may be false positives in your code. Many times, macros like the below are

Re: [PATCH 6/7] memcg: add per cgroup writeback pages accounting

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/09 13:14), Fengguang Wu wrote: On Mon, Jul 09, 2012 at 11:36:11AM +0800, Sha Zhengju wrote: On 07/08/2012 10:53 PM, Fengguang Wu wrote: @@ -2245,7 +2252,10 @@ int test_set_page_writeback(struct page *page) { struct address_space *mapping = page_mapping(page); int

[PATCH] pwm_backlight: pass correct brightness to callback

2012-07-08 Thread Alexandre Courbot
pwm_backlight_update_status calls two callbacks before and after applying the new PWM settings. However, the brightness scale is completely changed in between if brightness levels are used. This patch ensures that both callbacks are passed brightness values of the same meaning. Signed-off-by:

Re: [PATCH 6/7] memcg: add per cgroup writeback pages accounting

2012-07-08 Thread Fengguang Wu
On Mon, Jul 09, 2012 at 11:36:11AM +0800, Sha Zhengju wrote: > On 07/08/2012 10:53 PM, Fengguang Wu wrote: > >>@@ -2245,7 +2252,10 @@ int test_set_page_writeback(struct page *page) > >> { > >>struct address_space *mapping = page_mapping(page); > >>int ret; > >>+ bool locked; > >>+

RE: Fwd: Hid over I2C and ACPI interaction

2012-07-08 Thread Moore, Robert
These are already defined in acpica - in the file acrestyp.h ACPI_RESOURCE_FIXED_DMA FixedDma; ACPI_RESOURCE_GPIO Gpio; ACPI_RESOURCE_I2C_SERIALBUS I2cSerialBus; ACPI_RESOURCE_SPI_SERIALBUS SpiSerialBus;

RE: [PATCH V3 5/6] Avoid duplicate probe for of platform devices

2012-07-08 Thread Li Yang-R58472
> > I don't understand, why is this just showing up now? What changed to > > cause this? Couldn't that be the real problem here? > > > > The issue is showing up because we now probe devices twice. > Previously, we just probe devices once. But now we changed the way of pci > init which makes pci

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

2012-07-08 Thread Stephen Rothwell
Hi Samuel, After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) failed like this: ERROR: "arizona_dai_ops" [sound/soc/codecs/snd-soc-wm5102.ko] undefined! ERROR: "wm5102_aod" [drivers/mfd/arizona-irq.ko] undefined! ERROR: "wm5102_irq" [drivers/mfd/arizona-irq.ko] undefined!

RE: USB: option: Add MEDIATEK product ids

2012-07-08 Thread 张高森
Dear Shtylyov, Sorry, I send this patch use web mail(in my mail line not wrapped), I will use git client to send mail again. Thank you very much. BR, Gaosen -Original Message- From: Sergei Shtylyov [mailto:sshtyl...@mvista.com] Sent: 2012年7月7日 1:28 To: Gaosen

Re: [patch 11/11] mm: memcg: only check anon swapin page charges for swap cache

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 9:45), Johannes Weiner wrote: > shmem knows for sure that the page is in swap cache when attempting to > charge a page, because the cache charge entry function has a check for > it. Only anon pages may be removed from swap cache already when > trying to charge their swapin. > >

Re: [RFC] Introduce to batch variants of accept() and epoll_ctl() syscall

2012-07-08 Thread Li Yu
于 2012年07月06日 17:38, Li Yu 写道: 于 2012年06月15日 16:51, Eric Dumazet 写道: On Fri, 2012-06-15 at 13:37 +0800, Li Yu wrote: Of course, I think that implementing them should not be a hard work :) Em. I really do not know whether it is necessary to introduce to a new syscall here. An alternative

Re: [PATCH 6/7] memcg: add per cgroup writeback pages accounting

2012-07-08 Thread Sha Zhengju
On 07/08/2012 10:53 PM, Fengguang Wu wrote: @@ -2245,7 +2252,10 @@ int test_set_page_writeback(struct page *page) { struct address_space *mapping = page_mapping(page); int ret; + bool locked; + unsigned long flags; + mem_cgroup_begin_update_page_stat(page,,);

Re: Fwd: Hid over I2C and ACPI interaction

2012-07-08 Thread Lan Tianyu
On 2012年07月06日 13:52, Mika Westerberg wrote: On Thu, Jul 05, 2012 at 03:01:57PM +0800, Zhang Rui wrote: +Note that although these are ACPI devices, we prefer to use PnP drivers for them, +this is because: +1. all the non-ACPI-predefined Devices are exported as PnP devices as well +2. PnP bus is

Re: [PATCH net-next 04/15] security: Add Linux Security Modules hook for AF_BUS sockets

2012-07-08 Thread James Morris
On Fri, 29 Jun 2012, Vincent Sanders wrote: > From: Javier Martinez Canillas > > AF_BUS implements a security hook bus_connect() to be used by LSM to > enforce connectivity security policies. Nack. Changes to LSM should be cc'd the LSM list and Paul Moore. - James -- James Morris -- To

Re: [patch 10/11] mm: memcg: only check swap cache pages for repeated charging

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 9:45), Johannes Weiner wrote: > Only anon and shmem pages in the swap cache are attempted to be > charged multiple times, from every swap pte fault or from > shmem_unuse(). No other pages require checking PageCgroupUsed(). > > Charging pages in the swap cache is also serialized by

[RESEND][PATCH RFT 2/2] regulator: twl: Convert twl6030ldo_ops to [get|set]_voltage_sel

2012-07-08 Thread Axel Lin
Signed-off-by: Axel Lin --- Sorry, I CCed wrong guys. So here is the resend. Axel drivers/regulator/twl-regulator.c | 24 +++- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index

[PATCH RFT 2/2] regulator: twl: Convert twl6030ldo_ops to [get|set]_voltage_sel

2012-07-08 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/twl-regulator.c | 24 +++- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index bb51dec..de99b78 100644 ---

[PATCH RFT 1/2] regulator: twl: Fix the formula to calculate vsel and voltage for twl6030ldo

2012-07-08 Thread Axel Lin
In twl6030ldo_set_voltage, current code use below formula to calculate vsel: vsel = (min_uV/1000 - 1000)/100 + 1; This is worng because when min_uV is 100 uV, vsel is 1. It should be 0 in this case. Fix it by change the equation to: (This equation is common for linear mapping)

Re: [net-next RFC V5 0/5] Multiqueue virtio-net

2012-07-08 Thread Jason Wang
On 07/07/2012 12:23 AM, Rick Jones wrote: On 07/06/2012 12:42 AM, Jason Wang wrote: I'm not expert of tcp, but looks like the changes are reasonable: - we can do full-sized TSO check in tcp_tso_should_defer() only for westwood, according to tcp westwood - run tcp_tso_should_defer for tso_segs =

[PATCH firmware 3/4] rtl_nic: add new firmware for RTL8106E

2012-07-08 Thread Hayes Wang
File: rtl_nic/rtl8106e-1.fw Version: 0.0.1 Signed-off-by: Hayes Wang --- WHENCE|3 +++ rtl_nic/rtl8106e-1.fw | Bin 0 -> 1856 bytes 2 files changed, 3 insertions(+) create mode 100644 rtl_nic/rtl8106e-1.fw diff --git a/WHENCE b/WHENCE index c7a3e98..8f2b610 100644 ---

[PATCH firmware 4/4] rtl_nic: add new firmware for RTL8168G

2012-07-08 Thread Hayes Wang
File: rtl_nic/rtl8168g-1.fw Version: 0.0.1 Signed-off-by: Hayes Wang --- WHENCE|3 +++ rtl_nic/rtl8168g-1.fw | Bin 0 -> 4272 bytes 2 files changed, 3 insertions(+) create mode 100644 rtl_nic/rtl8168g-1.fw diff --git a/WHENCE b/WHENCE index 8f2b610..1fb7951 100644 ---

[PATCH firmware 2/4] rtl_nic: update firmware for RTL8411

2012-07-08 Thread Hayes Wang
File: rtl_nic/rtl8411-1.fw Version: 0.0.3 Signed-off-by: Hayes Wang --- WHENCE |2 +- rtl_nic/rtl8411-1.fw | Bin 1840 -> 2112 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/WHENCE b/WHENCE index 676ebb1..c7a3e98 100644 --- a/WHENCE +++ b/WHENCE @@ -1808,7

[PATCH firmware 1/4] rtl_nic: update firmware for RTL8168F

2012-07-08 Thread Hayes Wang
File: rtl_nic/rtl8168f-1.fw Version: 0.0.5 Signed-off-by: Hayes Wang --- WHENCE|2 +- rtl_nic/rtl8168f-1.fw | Bin 3136 -> 3424 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/WHENCE b/WHENCE index 13cbcab..676ebb1 100644 --- a/WHENCE +++ b/WHENCE @@

Re: [patch 09/11] mm: memcg: split swapin charge function into private and public part

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 9:45), Johannes Weiner wrote: > When shmem is charged upon swapin, it does not need to check twice > whether the memory controller is enabled. > > Also, shmem pages do not have to be checked for everything that > regular anon pages have to be checked for, so let shmem use the >

Re: [patch 08/11] mm: memcg: remove needless !mm fixup to init_mm when charging

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 9:45), Johannes Weiner wrote: > It does not matter to __mem_cgroup_try_charge() if the passed mm is > NULL or init_mm, it will charge the root memcg in either case. > > Signed-off-by: Johannes Weiner Acked-by: KAMEZAWA Hiroyuki -- To unsubscribe from this list: send the line

Re: [patch 07/11] mm: memcg: remove unneeded shmem charge type

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 9:44), Johannes Weiner wrote: > shmem page charges have not needed a separate charge type to tell them > from regular file pages since 08e552c 'memcg: synchronized LRU'. > > Signed-off-by: Johannes Weiner Acked-by: KAMEZAWA Hiroyuki -- To unsubscribe from this list: send the line

[PATCH 6/6] staging: vt6655: hostap.c: Remove all unused macros

2012-07-08 Thread Marcos Paulo de Souza
All these macros were reported by forgotten-macros tool (https://github.com/marcosps/forgotten_macros). Signed-off-by: Marcos Paulo de Souza --- drivers/staging/vt6655/hostap.c |6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/vt6655/hostap.c

[PATCH 5/6] staging: vt6655: Remove all commented macros

2012-07-08 Thread Marcos Paulo de Souza
These macros were reported by forgotten-macros tool (https://github.com/marcosps/forgotten_macros). Signed-off-by: Marcos Paulo de Souza --- drivers/staging/vt6655/80211hdr.h|2 -- drivers/staging/vt6655/baseband.c|2 -- drivers/staging/vt6655/bssdb.c |1 -

[PATCH 4/6] staging: vt6655: baseband.h: Remove all unused macros

2012-07-08 Thread Marcos Paulo de Souza
These macros were reported by forgotten-macros tool (https://github.com/marcosps/forgotten_macros). Signed-off-by: Marcos Paulo de Souza --- drivers/staging/vt6655/baseband.h | 30 -- 1 file changed, 30 deletions(-) diff --git a/drivers/staging/vt6655/baseband.h

[PATCH 3/6] staging: vt6655: rf.c: Remove all unused macros

2012-07-08 Thread Marcos Paulo de Souza
These macros were reported by forgotte-macros tool (https://github.com/marcosps/forgotten_macros). Signed-off-by: Marcos Paulo de Souza --- drivers/staging/vt6655/rf.c | 36 1 file changed, 36 deletions(-) diff --git a/drivers/staging/vt6655/rf.c

[PATCH 2/6] staging: vt6655: mac.h: Remove all commented macros

2012-07-08 Thread Marcos Paulo de Souza
These macros were reported by forgotten-macros tool (https://github.com/marcosps/forgotten_macros). Signed-off-by: Marcos Paulo de Souza --- drivers/staging/vt6655/mac.h | 24 1 file changed, 24 deletions(-) diff --git a/drivers/staging/vt6655/mac.h

[PATCH 1/6] staging: vt6655: Remove all "if 0" blocks from driver

2012-07-08 Thread Marcos Paulo de Souza
This commit removes code that will never be executed by vt6655 driver. Was the forgotten-macros tool(https://github.com/marcosps/forgotten_macros) who reported these blocks for us. Signed-off-by: Marcos Paulo de Souza --- drivers/staging/vt6655/device_main.c | 33 --

[PATCH 0/6] staging: vt6655: Cleanup in usage of macros

2012-07-08 Thread Marcos Paulo de Souza
Hi kernel guys! This patchset aims to clean all unused and commented macros. For this challenge, forgotten-macros tool helped us. As I don't have any vt665x hardware, I will be grateful if anyone can test these changes! This patchset was based in staging-next tree. I hope you enjoy :)

Re: [patch 06/11] mm: memcg: move swapin charge functions above callsites

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 9:44), Johannes Weiner wrote: > Charging cache pages may require swapin in the shmem case. Save the > forward declaration and just move the swapin functions above the cache > charging functions. > > Signed-off-by: Johannes Weiner Acked-by: KAMEZAWA Hiroyuki -- To unsubscribe

Re: [patch 05/11] mm: memcg: only check for PageSwapCache when uncharging anon

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 9:44), Johannes Weiner wrote: > Only anon pages that are uncharged at the time of the last page table > mapping vanishing may be in swapcache. > > When shmem pages, file pages, swap-freed anon pages, or just migrated > pages are uncharged, they are known for sure to be not in

Re: [patch 04/11] mm: memcg: push down PageSwapCache check into uncharge entry functions

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 9:44), Johannes Weiner wrote: > Not all uncharge paths need to check if the page is swapcache, some of > them can know for sure. > > Push down the check into all callsites of uncharge_common() so that > the patch that removes some of them is more obvious. > > Signed-off-by: Johannes

Re: [PATCH SLAB 1/2 v3] duplicate the cache name in SLUB's saved_alias list, SLAB, and SLOB

2012-07-08 Thread Li Zhong
On Fri, 2012-07-06 at 08:56 -0500, Christoph Lameter wrote: > I thought I posted this a couple of days ago. Would this not fix things > without having to change all the allocators? I was pointed by Glauber to the slab common code patches. I need some more time to read the patches. Now I think the

[PATCH] mm: Warn about costly page allocation

2012-07-08 Thread Minchan Kim
Since lumpy reclaim was introduced at 2.6.23, it helped higher order allocation. Recently, we removed it at 3.4 and we didn't enable compaction forcingly[1]. The reason makes sense that compaction.o + migration.o isn't trivial for system doesn't use higher order allocation. But the problem is that

RE: [PATCH V3 5/6] Avoid duplicate probe for of platform devices

2012-07-08 Thread Jia Hongtao-B38951
> -Original Message- > From: Greg KH [mailto:g...@kroah.com] > Sent: Saturday, July 07, 2012 12:17 AM > To: Jia Hongtao-B38951 > Cc: Rob Herring; devicetree-disc...@lists.ozlabs.org; linux- > ker...@vger.kernel.org; Li Yang-R58472 > Subject: Re: [PATCH V3 5/6] Avoid duplicate probe for of

Re: [patch 03/11] mm: shmem: do not try to uncharge known swapcache pages

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 9:44), Johannes Weiner wrote: > Once charged, swapcache pages can only be uncharged after they are > removed from swapcache again. > > Do not try to uncharge pages that are known to be in the swapcache, to > allow future patches to remove checks for that in the uncharge code. > >

Re: [patch 02/11] mm: swapfile: clean up unuse_pte race handling

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 9:44), Johannes Weiner wrote: > The conditional mem_cgroup_cancel_charge_swapin() is a leftover from > when the function would continue to reestablish the page even after > mem_cgroup_try_charge_swapin() failed. After 85d9fc8 "memcg: fix > refcnt handling at swapoff", the condition is

Re: [PATCH 1/2] acpi : cpu hot-remove returns error number when cpu_down() fails

2012-07-08 Thread Yasuaki Ishimatsu
Hi Srivatsa, Thank you for your reviewing. 2012/07/06 18:51, Srivatsa S. Bhat wrote: > On 07/06/2012 08:46 AM, Yasuaki Ishimatsu wrote: >> Even if cpu_down() fails, acpi_processor_remove() continues to remove the >> cpu. > > Ouch! > >> But in this case, it should return error number since

Re: [patch 01/11] mm: memcg: fix compaction/migration failing due to memcg limits

2012-07-08 Thread Kamezawa Hiroyuki
(2012/07/05 9:44), Johannes Weiner wrote: > Compaction (and page migration in general) can currently be hindered > through pages being owned by memory cgroups that are at their limits > and unreclaimable. > > The reason is that the replacement page is being charged against the > limit while the

[PATCH 2/2] genirq: export dummy_irq_chip

2012-07-08 Thread Kuninori Morimoto
Export dummy_irq_chip to modules to allow them to do things such as irq_set_chip_and_handler(virq, _irq_chip, handle_level_irq); This fixes ERROR: "dummy_irq_chip" [drivers/gpio/gpio-pcf857x.ko] undefined! when

[PATCH 1/2] genirq: export irq_set_chip_and_handler_name()

2012-07-08 Thread Kuninori Morimoto
Export irq_set_chip_and_handler_name() to modules to allow them to do things such as irq_set_chip_and_handler(virq, _irq_chip, handle_level_irq); This fixes ERROR: "irq_set_chip_and_handler_name" \

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

2012-07-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the infiniband tree got a conflict in drivers/infiniband/hw/ocrdma/ocrdma_main.c between commit 6ab6827ee999 ("RDMA/ocrdma: Fixed GID table for vlan and events") from Linus' tree and commit 898648347205 ("IB: Use IS_ENABLED(CONFIG_IPV6)") from the infiniband

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

2012-07-08 Thread Kuninori Morimoto
Hi Linus Walleij, Stephen, and Thomas > >> > After merging the gpio-lw tree, today's linux-next build (x86_64 > >> > allmodconfig) failed like this: > >> > > >> > ERROR: "irq_set_chip_and_handler_name" [drivers/gpio/gpio-pcf857x.ko] > >> > undefined! > >> > ERROR: "dummy_irq_chip"

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-08 Thread Jon Masters
On 07/08/2012 06:24 PM, Dennis Gilmore wrote: > I know that the architecture really is new but thats not really clear > by adding AArch32 into the mix to represent 32 bit arm as ARM has done > or by calling it armv8. There is enough way to confuse them already why > confuse things more by adding

[PATCH 5/5] staging: vt6656: Remove unsed macros

2012-07-08 Thread Marcos Paulo de Souza
These macros were reported by forgotten-macros tool (https://github.com/marcosps/forgotten_macros). Signed-off-by: Marcos Paulo de Souza --- drivers/staging/vt6656/card.c|1 - drivers/staging/vt6656/channel.c |2 -- drivers/staging/vt6656/rxtx.c|2 -- 3 files changed, 5

[PATCH 4/5] staging: vt6656: Remove all commented macros

2012-07-08 Thread Marcos Paulo de Souza
These macros were reported by forgotten-macros tool (https://github.com/marcosps/forgotten_macros). Signed-off-by: Marcos Paulo de Souza --- drivers/staging/vt6656/80211hdr.h |2 -- drivers/staging/vt6656/bssdb.h|2 -- drivers/staging/vt6656/card.h |1 -

[PATCH 3/5] staging: vt6656: hostap.c: Remove commented code

2012-07-08 Thread Marcos Paulo de Souza
Signed-off-by: Marcos Paulo de Souza --- drivers/staging/vt6656/hostap.c | 43 --- 1 file changed, 43 deletions(-) diff --git a/drivers/staging/vt6656/hostap.c b/drivers/staging/vt6656/hostap.c index f578095..682002a 100644 ---

[PATCH 2/5] staging: vt6656: hostap.c: Remove unused macros and some useless comments

2012-07-08 Thread Marcos Paulo de Souza
The unused macros were reporteds by forgotten-macros tool(https://github.com/marcosps/forgotten_macros). Signed-off-by: Marcos Paulo de Souza --- drivers/staging/vt6656/hostap.c | 20 1 file changed, 20 deletions(-) diff --git a/drivers/staging/vt6656/hostap.c

[PATCH 1/5] staging: vt6656: desc.h: Remove commented macros and useless comments

2012-07-08 Thread Marcos Paulo de Souza
The commented macros are reported by forgotten-macros tool(https://github.com/marcosps/forgotten_macros). Signed-off-by: Marcos Paulo de Souza --- drivers/staging/vt6656/desc.h | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/staging/vt6656/desc.h

[PATCH 0/5] staging: vt6656: Cleanup in usage of macros

2012-07-08 Thread Marcos Paulo de Souza
Hi kernel guys! This patchset aims to clean all the macros from vt6656 driver. With the forgotten-macros tool(https://github.com/marcosps/forgotten_macros), we can find all unused macros, commented macros and a little more. :) As I don't have the hardware, I will be grateful if anyone

Re: perf lock record fails

2012-07-08 Thread David Ahern
On 7/6/12 7:06 PM, Namhyung Kim wrote: Hi, David On Fri, 06 Jul 2012 11:27:39 -0600, David Ahern wrote: What config options need to be enabled for 'perf lock record' to work? I tried a number of custom builds and stock Fedora kernels. I always get: $ perf lock record -- sleep 1 invalid or

Re: WARNING: __GFP_FS allocations with IRQs disabled (kmemcheck_alloc_shadow)

2012-07-08 Thread Fengguang Wu
On Sun, Jul 08, 2012 at 04:01:44PM -0700, David Rientjes wrote: > On Mon, 9 Jul 2012, JoonSoo Kim wrote: > > > diff --git a/mm/slub.c b/mm/slub.c > > index 8c691fa..5d41cad 100644 > > --- a/mm/slub.c > > +++ b/mm/slub.c > > @@ -1324,8 +1324,14 @@ static struct page *allocate_slab(struct > >

linux-next: build failure after merge of the v4l-dvb tree

2012-07-08 Thread Stephen Rothwell
Hi Mauro, After merging the v4l-dvb tree, today's linux-next build (x86_64 allmodconfig) failed like this: usr/include/linux/v4l2-subdev.h:28: included file 'linux/v4l2-common.h' is not exported usr/include/linux/videodev2.h:63: included file 'linux/v4l2-common.h' is not exported Introduced

Re: [PATCH powerpc 2/2] kfree the cache name of pgtable cache if SLUB is used

2012-07-08 Thread Li Zhong
On Fri, 2012-07-06 at 14:13 +0400, Glauber Costa wrote: > On 07/05/2012 01:29 PM, Li Zhong wrote: > > On Thu, 2012-07-05 at 12:23 +0400, Glauber Costa wrote: > >> On 07/05/2012 05:41 AM, Li Zhong wrote: > >>> On Wed, 2012-07-04 at 16:40 +0400, Glauber Costa wrote: > On 07/04/2012 01:00 PM, Li

Re: [PATCH 6/7] memcg: add per cgroup writeback pages accounting

2012-07-08 Thread Fengguang Wu
On Mon, Jul 09, 2012 at 01:01:00AM +0200, Johannes Weiner wrote: > On Sun, Jul 08, 2012 at 10:44:59PM +0800, Fengguang Wu wrote: > > On Tue, Jul 03, 2012 at 03:31:26PM +0900, KAMEZAWA Hiroyuki wrote: > > > (2012/06/28 20:05), Sha Zhengju wrote: > > > > From: Sha Zhengju > > > > > > > > Similar

Re: [PATCH] Fix a dead loop in async_synchronize_full()

2012-07-08 Thread Li Zhong
On Fri, 2012-07-06 at 17:12 +0800, Cong Wang wrote: > On Mon, Jul 2, 2012 at 2:04 PM, Li Zhong wrote: > > void async_synchronize_full(void) > > { > > - do { > > - async_synchronize_cookie(next_cookie); > > - } while (!list_empty(_running) || > >

Re: [PATCH] Fix a dead loop in async_synchronize_full()

2012-07-08 Thread Li Zhong
On Thu, 2012-07-05 at 20:51 -0700, Christian Kujau wrote: > On Mon, 2 Jul 2012 at 14:04, Li Zhong wrote: > > This patch tries to fix a dead loop in async_synchronize_full(), which > > could be seen when preemption is disabled on a single cpu machine. > > This helps in my case[0], will this

Re: [Question] sched/rt_mutex: re-enqueue_task on rt_mutex_setprio()

2012-07-08 Thread Namhyung Kim
On Sat, 07 Jul 2012 21:29:19 -0400, Steven Rostedt wrote: > On Sat, 2012-07-07 at 14:44 +0900, Namhyung Kim wrote: >> Hi, >> >> I have a question on the code below: >> >> void rt_mutex_setprio(struct task_struct *p, int prio) >> { >> ... >> if (on_rq) >>

Re: RFD: virtio balloon API use (was Re: [PATCH 5 of 5] virtio: expose added descriptors immediately)

2012-07-08 Thread Rusty Russell
On Wed, 4 Jul 2012 13:55:33 +0300, "Michael S. Tsirkin" wrote: > On Tue, Jul 03, 2012 at 10:17:46AM +0930, Rusty Russell wrote: > > On Mon, 2 Jul 2012 13:08:19 -0300, Rafael Aquini wrote: > > > As 'locking in balloon', may I assume the approach I took for the > > > compaction case > > > is OK

Re: [PATCH: 1/1] ACPI: make evaluation of thermal trip points before temperature or vice versa dependant on new "temp_b4_trip" module parameter to support older AMD x86_64s

2012-07-08 Thread Rusty Russell
On Sun, 8 Jul 2012 19:50:54 +0100, Jason Vas Dias wrote: > This patch adds a new acpi.thermal.temp_b4_trip = 1 settting, which > causes the temperature > to be set before evaluation of thermal trip points (the old default) ; > this mode should > be selected automatically by DMI match if the

Re: [PATCH] virtio-blk: allow toggling host cache between writeback and writethrough

2012-07-08 Thread Rusty Russell
On Thu, 05 Jul 2012 09:02:23 +0200, Sasha Levin wrote: > On Thu, 2012-07-05 at 08:47 +0200, Paolo Bonzini wrote: > > Il 04/07/2012 23:11, Sasha Levin ha scritto: > > > There are two things going on here: > > > 1. Rename VIRTIO_BLK_F_FLUSH to VIRTIO_BLK_F_WCE > > > 2. Add a new

Re: [PATCH] virtio-blk: add back VIRTIO_BLK_F_FLUSH

2012-07-08 Thread Rusty Russell
On Thu, 5 Jul 2012 12:08:22 +0200, Paolo Bonzini wrote: > The old name is part of the userspace API, add it back for compatibility. > > Reported-by: Sasha Levin > Signed-off-by: Paolo Bonzini > --- > include/linux/virtio_blk.h |3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) >

Re: [PATCH] MAINTAINERS: add kvm list for virtio components

2012-07-08 Thread Rusty Russell
On Thu, 5 Jul 2012 15:22:25 +0300, "Michael S. Tsirkin" wrote: > On Thu, Jul 05, 2012 at 12:07:07PM +0200, Paolo Bonzini wrote: > > The KVM list is followed by more people than the generic > > virtualizat...@lists.linux-foundation.org mailing list, and is > > already "de facto" the place where

Re: Fwd: Hid over I2C and ACPI interaction

2012-07-08 Thread Zhang Rui
On 四, 2012-07-05 at 10:44 +0200, Benjamin Tissoires wrote: > Hi, > > Many thanks for these information. It seems like I was on the right > track, but I didn't saw the hidden part of the iceberg. yep. > I've already written the i2c slave part (and the acpi handling to get > the HID register by

[PATCH] [SCSI] suppress a warning in mpt2sas

2012-07-08 Thread Stephen Rothwell
Suppress this warning: drivers/scsi/mpt2sas/mpt2sas_scsih.c: In function '_scsih_sas_broadcast_primitive_event': drivers/scsi/mpt2sas/mpt2sas_scsih.c:5811:40: warning: unused variable 'event_data' [-Wunused-variable] Signed-off-by: Stephen Rothwell --- drivers/scsi/mpt2sas/mpt2sas_debug.h |

Re: [PATCH v2] cgroup: fix panic in netprio_cgroup

2012-07-08 Thread Gao feng
于 2012年07月09日 03:50, Eric Dumazet 写道: > On Thu, 2012-07-05 at 17:28 +0800, Gao feng wrote: >> we set max_prioidx to the first zero bit index of prioidx_map in >> function get_prioidx. >> >> So when we delete the low index netprio cgroup and adding a new >> netprio cgroup again,the max_prioidx will

linux-next: comment on pm tree commit

2012-07-08 Thread Stephen Rothwell
Hi Rafael, I noticed commit b8eec56cd8e5 ("PM / cpuidle: System resume hang fix with cpuidle") in the pm tree needs some work (I noticed it because it was changed in a rebase ...). diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index a6b3f2e..b90ccb2 100644 ---

[RFC] SCSI: drivers: Remove unnecessary assignment of scsi_done in driver queuecommand

2012-07-08 Thread Muthu Kumar
[ CCing signed-off, acked-by of original patch - let me know if anyone else needs to be added ] Jeff, James, In the following commit: -- commit f281233d3eba15fb225d21ae2e228fd4553d824a Author: Jeff Garzik Date: Tue Nov 16 02:10:29 2010 -0500 SCSI host lock push-down -

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-08 Thread Jon Masters
On 07/08/2012 04:31 PM, Jan Engelhardt wrote: > > On Sunday 2012-07-08 09:54, Jon Masters wrote: >> >> FWIW I actually really like the aarch64 name (but you know that already >> :) ). I think it clearly spells out that this is not just a 64-bit >> extension to the existing 32-bit ARM

Re: /sys and access(2): Correctly implemented?

2012-07-08 Thread Ryan Mallon
On 06/07/12 16:27, Ulrich Windl wrote: > Hi! > > Recently I found a problem with the command (kernel 3.0.34-0.7-default from > SLES 11 SP2, run as root): > test -r "$file" && cat "$file" > emitting "Permission denied" > > Investigating, I found that "test" actually uses "access()" to check for

Re: [PATCH V3] rtlwifi: rtl8192ce: rtl8192se: rtl8192de: Update to rtl_92ce_92se_92de_linux_mac80211_0004.0816.2011 driver

2012-07-08 Thread Ben Hutchings
On Sun, 2012-07-08 at 15:16 -0500, Larry Finger wrote: > Realtek driver rtl_92ce_92se_92de_linux_mac80211_0004.0816.2011 introduced new > versions of the firmware for rtl8192se, and rtl8192de. It also adds new > firmware for new cuts of the RTL8192CE chips. > > Signed-off-by: Larry Finger > ---

[PATCH linux-firmware 2/2] WHENCE: Move version strings from Info to Version fields

2012-07-08 Thread Ben Hutchings
Signed-off-by: Ben Hutchings --- WHENCE | 77 +++- 1 file changed, 42 insertions(+), 35 deletions(-) diff --git a/WHENCE b/WHENCE index 6a3665a..8e0aff3 100644 --- a/WHENCE +++ b/WHENCE @@ -93,6 +93,7 @@ Licence: Allegedly GPLv2+,

[PATCH linux-firmware 1/2] WHENCE: Move informational text from File to Info fields

2012-07-08 Thread Ben Hutchings
Signed-off-by: Ben Hutchings --- WHENCE | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/WHENCE b/WHENCE index fb6030c..6a3665a 100644 --- a/WHENCE +++ b/WHENCE @@ -413,12 +413,18 @@ Found in hex form in kernel source. Driver: qla2xxx - QLogic

Re: [PATCH 1/3] staging: vt6656: iwctl: fix up spacing around operators

2012-07-08 Thread Jesper Juhl
On Sun, 8 Jul 2012, Joe Perches wrote: > On Mon, 2012-07-09 at 00:58 +0200, Jesper Juhl wrote: > > A few cases were missed in my previous cleanup, this takes care of the > > last cases of missing space (or too much space (as in a newline)) > > around operators ('=', '==', ',', '<'). > > Trivia:

[PATCH linux-firmware 0/2] Clean up some metadata in WHENCE

2012-07-08 Thread Ben Hutchings
I've committed the following changes. Ben. Ben Hutchings (2): WHENCE: Move informational text from File to Info fields WHENCE: Move version strings from Info to Version fields WHENCE | 104 +--- 1 file changed, 60 insertions(+),

Re: [PATCH 3/3] staging: vt6656: iwctl: remove a few remaining redundant newlines

2012-07-08 Thread Jesper Juhl
On Sun, 8 Jul 2012, Joe Perches wrote: > On Mon, 2012-07-09 at 00:59 +0200, Jesper Juhl wrote: > > I missed a few redundant newlines the first time. > [] > > diff --git a/drivers/staging/vt6656/iwctl.c b/drivers/staging/vt6656/iwctl.c > [] > > @@ -964,7 +964,6 @@ int iwctl_giwrts(struct

Re: [PATCH 3/3] staging: vt6656: iwctl: remove a few remaining redundant newlines

2012-07-08 Thread Joe Perches
On Mon, 2012-07-09 at 00:59 +0200, Jesper Juhl wrote: > I missed a few redundant newlines the first time. [] > diff --git a/drivers/staging/vt6656/iwctl.c b/drivers/staging/vt6656/iwctl.c [] > @@ -964,7 +964,6 @@ int iwctl_giwrts(struct net_device *dev, struct > iw_request_info *info, >

Re: [PATCH 1/3] staging: vt6656: iwctl: fix up spacing around operators

2012-07-08 Thread Joe Perches
On Mon, 2012-07-09 at 00:58 +0200, Jesper Juhl wrote: > A few cases were missed in my previous cleanup, this takes care of the > last cases of missing space (or too much space (as in a newline)) > around operators ('=', '==', ',', '<'). Trivia: > diff --git a/drivers/staging/vt6656/iwctl.c

Re: WARNING: __GFP_FS allocations with IRQs disabled (kmemcheck_alloc_shadow)

2012-07-08 Thread David Rientjes
On Mon, 9 Jul 2012, JoonSoo Kim wrote: > diff --git a/mm/slub.c b/mm/slub.c > index 8c691fa..5d41cad 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -1324,8 +1324,14 @@ static struct page *allocate_slab(struct > kmem_cache *s, gfp_t flags, int node) > && !(s->flags & (SLAB_NOTRACK

  1   2   3   4   5   6   >