[patch v4] x86, UV: integer wrap bug in uv_hub_ipi_value()

2012-12-02 Thread Dan Carpenter
This is a static checker fix. The problem is that we store the bits from "uv_apicid_hibits" into "apicid" (the high 16 bits) but then we shift it 16 bit to the left. "apicid" is an int so it wraps and we lose them. I have also simplified uv_wakeup_secondary() a little based on a suggestion from

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-02 Thread Minchan Kim
On Sun, Dec 02, 2012 at 11:20:42PM -0800, Nitin Gupta wrote: > > > On Nov 30, 2012, at 5:54 AM, Minchan Kim wrote: > > > On Thu, Nov 29, 2012 at 10:54:48PM -0800, Nitin Gupta wrote: > >> Changelog v2 vs v1: > >> - None > >> > >> Adds zs_get_object_size(handle) which provides the size of > >>

Re: [PATCH] uio.c: Fix warning: 'ret' might be used uninitialized

2012-12-02 Thread Hans J. Koch
On Sat, Dec 01, 2012 at 09:58:32AM +, Cong Ding wrote: > If it is really necessary to save the 4 lines of codes, I would suggest to do > in the following style. But you are more senior than me, so I may be wrong in > this aspect. "Seniority" (whatever you mean by that) has got nothing to

Re: [PATCH v3 0/4] Cypress PS/2 Trackpad driver

2012-12-02 Thread Henrik Rydberg
Hi Kamal, > Patch #2 (main driver), as recommended by Henrik Rydberg[2]: > - use input_mt_assign_slots; drop cypress_cal_finger_id. > - enable 2-finger-only SEMI_MT; drop cypress_simulate_fingers. > - various code clean-ups. > > Henrik, does patch #2 appear to properly use assign_slots

Re: [PATCH v3 2/4] input: Cypress PS/2 Trackpad psmouse driver

2012-12-02 Thread Henrik Rydberg
Hi Kamal, > From: Cypress Semiconductor Corporation > > Input/mouse driver for Cypress PS/2 Trackpad. > > Original code contributed by Cypress Semiconductor Corporation, > modified by Kamal Mostafa and Kyle Fazzari. > > BugLink: http://launchpad.net/bugs/978807 > > Signed-off-by: Kamal

Re: [PATCH v2 0/1] Input: xpad - Implement wireless controller LED setting and fix connect time LED setting

2012-12-02 Thread Dmitry Torokhov
On Fri, Nov 30, 2012 at 08:13:29PM -0800, Chris Moeller wrote: > On Fri, 30 Nov 2012 14:30:23 -0800 > Dmitry Torokhov wrote: > > > Hi Chris, > > > > On Friday, November 30, 2012 01:54:06 PM Chris Moeller wrote: > > > I've submitted versions of this with prior patch sets, and this part > > > was

[PATCH] stable: uio: Fix warning: 'ret' might be used uninitialized

2012-12-02 Thread Hans J. Koch
In two cases, the return value variable "ret" can be undefined. Signed-off-by: Hans J. Koch Reported-by: Vitalii Demianets --- drivers/uio/uio.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index 5110f36..0c80df2 100644 ---

Re: [PATCH v3 0/4] Cypress PS/2 Trackpad driver

2012-12-02 Thread Dmitry Torokhov
Hi Kamal, On Thu, Nov 29, 2012 at 01:57:57PM -0800, Kamal Mostafa wrote: > This driver, submitted on behalf of Cypress Semiconductor Corporation and > additional contributors, provides support for the Cypress PS/2 Trackpad. > > This [PATCH v3] version differs from my previous submitted

[PATCH] merge_config.sh: Add option to specify output dir

2012-12-02 Thread Zhangfei Gao
Provide a -O option to specify dir to put generated .config Then merge_config.sh does not need to be copied to target dir, for easy re-usage in other script Signed-off-by: Zhangfei Gao Tested-by: Jon Medhurst (Tixy) --- scripts/kconfig/merge_config.sh | 20 1 file

Re: [RFC PATCH] staging, android, ashmem: invalidate pin/unpin ioctl for private map

2012-12-02 Thread Dan Carpenter
On Mon, Dec 03, 2012 at 09:09:59AM +0900, JoonSoo Kim wrote: > Hello, Dan. > > 2012/12/2 Dan Carpenter : > > On Sat, Dec 01, 2012 at 02:45:57AM +0900, Joonsoo Kim wrote: > >> @@ -614,21 +616,35 @@ static int ashmem_pin_unpin(struct ashmem_area > >> *asma, unsigned long cmd, > >> pgstart =

Re: [PATCH 1/1] regulator: new driver for LP8755

2012-12-02 Thread Mark Brown
On Mon, Dec 03, 2012 at 04:24:43PM +0900, GShark Jeong wrote: > 2012/12/3 Mark Brown > > On Mon, Dec 03, 2012 at 01:44:24PM +0900, Daniel Jeong wrote: > > > + if (ret < 0) > > > + goto out_i2c_error; > > > + dev_info(pchip->dev, "lp8755 : chip ID is 0x%x\n", regval); > >

Re: [RFT PATCH v2 4/5] mm: provide more accurate estimation of pages occupied by memmap

2012-12-02 Thread Chris Clayton
On 12/02/12 19:55, Chris Clayton wrote: On 11/29/12 10:52, Chris Clayton wrote: On 11/28/12 23:52, Andrew Morton wrote: On Wed, 21 Nov 2012 23:09:46 +0800 Jiang Liu wrote: Subject: Re: [RFT PATCH v2 4/5] mm: provide more accurate estimation of pages occupied by memmap How are people

Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-12-02 Thread Nitin Gupta
On Nov 30, 2012, at 5:54 AM, Minchan Kim wrote: > On Thu, Nov 29, 2012 at 10:54:48PM -0800, Nitin Gupta wrote: >> Changelog v2 vs v1: >> - None >> >> Adds zs_get_object_size(handle) which provides the size of >> the given object. This is useful since the user (zram etc.) >> now do not have to

Re: [net-next RFC] pktgen: don't wait for the device who doesn't free skb immediately after sent

2012-12-02 Thread Jason Wang
On Tuesday, November 27, 2012 08:49:19 AM Stephen Hemminger wrote: > On Tue, 27 Nov 2012 14:45:13 +0800 > > Jason Wang wrote: > > On 11/27/2012 01:37 AM, Stephen Hemminger wrote: > > > On Mon, 26 Nov 2012 15:56:52 +0800 > > > > > > Jason Wang wrote: > > >> Some deivces do not free the old tx

Re: [3.5/6.x][e1000e] - Regression - Unable to receive packets if MTU == 1500

2012-12-02 Thread Shawn Starr
On Thursday, November 01, 2012 02:01:05 PM Shawn Starr wrote: > Hello network driver folks, To follow up, this is fixed now in 3.6.7-5.fc18.x86_64 [38936.525226] e1000e :00:19.0: eth0: changing MTU from 9000 to 1500 [38936.539510] e1000e :00:19.0: Interrupt Throttle Rate turned on

Re: [PATCH 1/1] regulator: new driver for LP8755

2012-12-02 Thread Mark Brown
On Mon, Dec 03, 2012 at 01:44:24PM +0900, Daniel Jeong wrote: > + regval &= ~(0x01 << id); > + > + /* mode fast means forced pwm mode. > +mode normal means not forced pwm mode, according to > +current load it could be one of modes, PWM/PFM/LPPFM. */ > + return regval ?

[PATCH] Doc: Update the naming of profiling based on sysfs

2012-12-02 Thread Hyeonjun Lim
We setup and run 'profiling' feature under Linux system. The readprofile(1) command uses the /proc/profile information to display ascii data on standard output. sort -nr | head -5 /proc/profile correctly. The ./kernel/ksysfs.c defines 'profiling' w/o 'profile' like "KERNEL_ATTR_RW(profiling)". We

RE: [PATCH v3 2/4] input: Cypress PS/2 Trackpad psmouse driver

2012-12-02 Thread Dudley Du
Hi Henrik, Okay, agree. Thanks. Best Wishes, Dudley Du d...@cypress.com -Original Message- From: Henrik Rydberg [mailto:rydb...@euromail.se] Sent: Monday, December 03, 2012 2:31 PM To: Dudley Du Cc: Kamal Mostafa; linux-in...@vger.kernel.org; linux-kernel@vger.kernel.org; Dmitry

Re: [PATCH v3 2/4] input: Cypress PS/2 Trackpad psmouse driver

2012-12-02 Thread Henrik Rydberg
Hi Dudley, > Another question is that new interface input_mt_assign_slots() is introduced > since 3.7-rc7 or later, > So we could not support the kernel releases that earlier than 3.7-rc7 with > this driver. The patch is a submission to mainline, so of course it should be in sync with

Re: Partialy mapped page stays in page cache after unmap

2012-12-02 Thread Vineet Gupta
On Tuesday 30 October 2012 11:54 PM, chru...@suse.cz wrote: > Hi! > I'm currently revisiting mmap related tests in LTP (Linux Test Project) > and I've came to the tests testing that writes to the partially > mapped page (at the end of mapping) are carried out correctly. > > These tests fails

Re: [PATCH 1/1] regulator: new driver for LP8755

2012-12-02 Thread Wanlong Gao
<...> > + > +static int __devinit lp8755_regulator_init(struct lp8755_chip *pchip) CONFIG_HOTPLUG is going away; it's already defined to always be 'Y'. So, please don't use __devinit anymore. refer to : http://marc.info/?l=linux-i2c=135341812915168=2 > +{ > + int ret, icnt, buck_num; > +

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-12-02 Thread Terje Bergström
On 02.12.2012 22:55, Thierry Reding wrote: > FWIW I'm convinced that you're genuinely trying to make this work and > nobody welcomes this more than me. However it is only natural if you > dump such a large body of code on the community that people will > disagree with some of the design decisions.

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

2012-12-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/dma/mv_xor.c between commit d51e88b99533 ("dma: Convert dev_printk (KERN_ to dev_(") from the slave-dma tree, commits a7d6e3ec28bb ("dma: remove use of __devexit_p") and 463a1f8b3cee ("dma: remove use of __devinit")

Re: [PATCH 0/1] regulator: new driver for LP8755

2012-12-02 Thread Mark Brown
On Mon, Dec 03, 2012 at 01:44:23PM +0900, Daniel Jeong wrote: > From: Daniel Jeong > > This driver is a general version for lp8755 regulator driver of TI. > > LP8755 : > The LP8755 is a high performance power management unit.It contains > six step-down DC-DC converters which can be filexibly

Re: [net-next rfc v7 3/3] virtio-net: change the number of queues through ethtool

2012-12-02 Thread Jason Wang
On Sunday, December 02, 2012 06:09:06 PM Michael S. Tsirkin wrote: > On Tue, Nov 27, 2012 at 06:16:00PM +0800, Jason Wang wrote: > > This patch implement the {set|get}_channels method of ethool to allow user > > to change the number of queues dymaically when the device is running. > > This would

Re: [net-next rfc v7 2/3] virtio_net: multiqueue support

2012-12-02 Thread Jason Wang
On Monday, December 03, 2012 12:34:08 PM Rusty Russell wrote: > Jason Wang writes: > > +static const struct ethtool_ops virtnet_ethtool_ops; > > + > > +/* > > + * Converting between virtqueue no. and kernel tx/rx queue no. > > + * 0:rx0 1:tx0 2:cvq 3:rx1 4:tx1 ... 2N+1:rxN 2N+2:txN > > + */ > >

RE: [PATCH v3 2/4] input: Cypress PS/2 Trackpad psmouse driver

2012-12-02 Thread Dudley Du
Hi Kamal, Another question is that new interface input_mt_assign_slots() is introduced since 3.7-rc7 or later, So we could not support the kernel releases that earlier than 3.7-rc7 with this driver. So my idea is that in order to keep compatible with earlier kernel release, Let's use our old

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

2012-12-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in arch/arm/mach-vexpress/v2m.c between commit 465aac6d496a ("Fix build when CONFIG_W1_MASTER_GPIO=m b exporting "allnodes"") from the devicetree tree and commit 0891642cf117 ("ARM: vexpress: Start using new Versatile Express

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

2012-12-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/media/platform/omap/omap_vout.c between commit 950e2fb420d5 ("[media] omap_vout: use omapdss's version instead of cpu_is_*") from the omap_dss2 tree and commit 45c3eb7d3a07 ("ARM: OMAP: Move plat-omap/dma-omap.h to

Re: [net-next rfc v7 2/3] virtio_net: multiqueue support

2012-12-02 Thread Jason Wang
On Sunday, December 02, 2012 06:06:31 PM Michael S. Tsirkin wrote: > On Tue, Nov 27, 2012 at 06:15:59PM +0800, Jason Wang wrote: > > This addes multiqueue support to virtio_net driver. In multiple queue > > modes, the driver expects the number of queue paris is equal to the > > number of vcpus. To

[PATCH v2 2/4] mfd: 88pm80x: move to regmap irq base implementation

2012-12-02 Thread Qing Xu
From: Qing Xu get irq_base for mfd sub-device Signed-off-by: Qiao Zhou Signed-off-by: Qing Xu --- drivers/mfd/88pm800.c |2 +- drivers/mfd/88pm805.c |1 + include/linux/mfd/88pm80x.h |1 + 3 files changed, 3 insertions(+), 1 deletions(-) diff --git

[PATCH 4/4] rtc: 88pm80x: update irq base

2012-12-02 Thread Qing Xu
From: Qing Xu irq base is stored in 88pm80x's drv data, we need to add irq base to get the correct irq num Signed-off-by: Qiao Zhou Signed-off-by: Qing Xu --- drivers/rtc/rtc-88pm80x.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-88pm80x.c

Re: [PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device

2012-12-02 Thread Chao Xie
On Mon, Dec 3, 2012 at 1:35 PM, Haojian Zhuang wrote: > On Mon, Dec 3, 2012 at 10:53 AM, Chao Xie wrote: >> On Mon, Dec 3, 2012 at 9:39 AM, Chao Xie wrote: >>> On Fri, Nov 30, 2012 at 3:04 PM, Haojian Zhuang >>> wrote: On Thu, Nov 29, 2012 at 6:25 PM, Russell King - ARM Linux wrote:

[PATCH 3/4] onkey: 88pm80x: update irq base

2012-12-02 Thread Qing Xu
From: Qing Xu irq base is stored in 88pm80x's drv data, we need to add irq base to get the correct irq num Signed-off-by: Qiao Zhou Signed-off-by: Qing Xu --- drivers/input/misc/88pm80x_onkey.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH 2/4] mfd: 88pm80x: move to regmap irq base implementation

2012-12-02 Thread Qing Xu
From: Qing Xu get irq_base for mfd sub-device Signed-off-by: Qiao Zhou Signed-off-by: Qing Xu --- drivers/mfd/88pm800.c |2 +- drivers/mfd/88pm805.c |1 + include/linux/mfd/88pm80x.h |1 + 3 files changed, 3 insertions(+), 1 deletions(-) diff --git

[PATCH 1/4] mfd: 88pm80x: fix regmap not init before used

2012-12-02 Thread Qing Xu
From: Qing Xu 1.put the pm800_page_init before 800_init, otherwise power and gpadc regmap handle are not inited before being used. 2.remove regmap exit, as it will be called in driver release 3.add lost "return 0" in probe() 4.update driver's name Signed-off-by: Qiao Zhou Signed-off-by: Qing

Re: [patch] Re: [RFC GIT PULL] scheduler fix for autogroups

2012-12-02 Thread Ingo Molnar
* Mike Galbraith wrote: > > Willing to write a changelog with the pointer to the actual > > oops that happens due to this issue? > > I don't have a link, so reproduced/captured it. With > systemd-sysvinit (bleh) installed, it's trivial to reproduce: > > Add echo 0 >

Re: [PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device

2012-12-02 Thread Haojian Zhuang
On Mon, Dec 3, 2012 at 10:53 AM, Chao Xie wrote: > On Mon, Dec 3, 2012 at 9:39 AM, Chao Xie wrote: >> On Fri, Nov 30, 2012 at 3:04 PM, Haojian Zhuang >> wrote: >>> On Thu, Nov 29, 2012 at 6:25 PM, Russell King - ARM Linux >>> wrote: On Wed, Nov 28, 2012 at 09:21:07PM -0500, Chao Xie

Re: [PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device

2012-12-02 Thread Haojian Zhuang
On Mon, Dec 3, 2012 at 9:39 AM, Chao Xie wrote: > On Fri, Nov 30, 2012 at 3:04 PM, Haojian Zhuang > wrote: >> On Thu, Nov 29, 2012 at 6:25 PM, Russell King - ARM Linux >> wrote: >>> On Wed, Nov 28, 2012 at 09:21:07PM -0500, Chao Xie wrote: The original sa1100_rtc_open/sa1100_rtc_release

RE: [PATCH] EXTCON: Get and set cable properties

2012-12-02 Thread anish kumar
On Mon, 2012-12-03 at 01:53 +, Tc, Jenny wrote: > > We discussed about this patch and then suggest some method to resolve this > > issue by Myungjoo Ham. Why don't you write additional feature or your > > opinion based on following patch by Myungjoo Ham? > > - > >

Re: [GIT PULL rcu/next] RCU commits for 3.8

2012-12-02 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, > > The major features of this series are: > > 1.A first version of no-callbacks CPUs. This version prohibits > offlining CPU 0, but only when enabled via CONFIG_RCU_NOCB_CPU=y. > Relaxing this constraint is in progress, but not yet

[patch] Re: [RFC GIT PULL] scheduler fix for autogroups

2012-12-02 Thread Mike Galbraith
On Sun, 2012-12-02 at 11:36 -0800, Linus Torvalds wrote: > On Sun, Dec 2, 2012 at 11:27 AM, Ingo Molnar wrote: > > > > * Mike Galbraith wrote: > > > >> On Sat, 2012-12-01 at 22:44 +0100, Ingo Molnar wrote: > >> > >> > Should we use some other file for that - or no file at all and > >> > just

Re: [PATCH 00/52] RFC: Unified NUMA balancing tree, v1

2012-12-02 Thread Ingo Molnar
The unified NUMA Git tree can be found in the -tip numa/base branch: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git numa/base The PROT_NONE -v18 numa/core tree can be found in tip:master: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master Thanks, Ingo --

Re: [PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device

2012-12-02 Thread devendra.aaru
CCing Andrew as he is the maintainer of the rtc subsystem On Wed, Nov 28, 2012 at 9:21 PM, Chao Xie wrote: > The original sa1100_rtc_open/sa1100_rtc_release will be called > when the /dev/rtc0 is opened or closed. > In fact, these two functions will enable/disable the clock, and >

Re: [PATCH v4]menuconfig: Add Save button

2012-12-02 Thread Wang YanQing
Hi Yann, All, On Sun, Dec 02, 2012 at 06:52:50PM +0100, Yann E. MORIN wrote: > To make the behavior consistent, may I suggest that you push the > concept even a bit further: > - add a "Load" *and* a "Save" buttons > - get rid of the top-level "Load an Alternate Configuration File" >

Re: [RFC] Capabilities still can't be inherited by normal programs

2012-12-02 Thread Andy Lutomirski
On Sun, Dec 2, 2012 at 6:20 PM, Andrew G. Morgan wrote: > On Sun, Dec 2, 2012 at 3:04 PM, Andy Lutomirski wrote: >> On Sun, Dec 2, 2012 at 2:26 PM, Andrew G. Morgan wrote: >>> On Sun, Dec 2, 2012 at 10:35 AM, Andy Lutomirski >>> wrote: On Sun, Dec 2, 2012 at 9:21 AM, Andrew G. Morgan

Re: [PATCH] lxdialog:inputbox: Fix can't change selected button with Left/Right when input box selected

2012-12-02 Thread Wang YanQing
On Sun, Dec 02, 2012 at 06:32:43PM +0100, Yann E. MORIN wrote: > Wang, All, > > On Sunday 02 December 2012 Wang YanQing wrote: > > inputbox code don't support use Left/Right to change input > > position in the input box, so it use continue to skip them > > when input key is Left/Right, but use

[PATCH 1/1] regulator: new driver for LP8755

2012-12-02 Thread Daniel Jeong
From: Daniel Jeong This driver is a general version for lp8755 regulator driver of TI. LP8755 : The LP8755 is a high performance power management unit.It contains six step-down DC-DC converters which can be filexibly bundled together in multiphase converters as required by application.

[PATCH 0/1] regulator: new driver for LP8755

2012-12-02 Thread Daniel Jeong
From: Daniel Jeong This driver is a general version for lp8755 regulator driver of TI. LP8755 : The LP8755 is a high performance power management unit.It contains six step-down DC-DC converters which can be filexibly bundled together in multiphase converters as required by application.

Re: [RFC PATCH v3 0/3] acpi: Introduce prepare_remove device operation

2012-12-02 Thread Hanjun Guo
On 2012/11/30 6:27, Toshi Kani wrote: > On Thu, 2012-11-29 at 12:48 +0800, Hanjun Guo wrote: >> On 2012/11/29 2:41, Toshi Kani wrote: >>> On Wed, 2012-11-28 at 19:05 +0800, Hanjun Guo wrote: On 2012/11/24 1:50, Vasilis Liaskovitis wrote: > As discussed in

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

2012-12-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in tools/perf/Makefile between commit d2709c7ce4c5 ("perf: Make perf build for x86 with UAPI disintegration applied") from Linus' tree and commit 945aea220bb8 ("perf tests: Move test objects into 'tests' directory") from the tip

Re: [RFC][PATCH 2/2] modsig: differentiate between ephemeral and persistent key names

2012-12-02 Thread Mimi Zohar
On Mon, 2012-12-03 at 11:56 +1030, Rusty Russell wrote: > Mimi Zohar writes: > > Using the same name for ephemeral and "persistent" keys results > > in deleting the "persistent" key. This patch renames the normal > > kbuild asymmetric key pair name to "default_signing_key" and the > > ephemeral

[PATCH net-next] tuntap: attach queue 0 before registering netdevice

2012-12-02 Thread Jason Wang
We attach queue 0 after registering netdevice currently. This leads to call netif_set_real_num_{tx|rx}_queues() after registering the netdevice. Since we allow tun/tap has a maximum of 1024 queues, this may lead a huge number of uevents to be injected to userspace since we create 2048 kobjects and

RE: [PATCH v3 2/4] input: Cypress PS/2 Trackpad psmouse driver

2012-12-02 Thread Dudley Du
Hi Kamal, I'm the writer of this driver. Thanks for help upstream this driver. I noticed that you marked out the reconnect function for it never work at all. But in my test, it seems work fine. I do the test steps as below: 1. load this driver with Cypress trackpad. Cursor moving on system; 2.

Re: [PATCH 1/2] thp: fix anononymous page accounting in fallback path for COW of HZP

2012-12-02 Thread Bob Liu
On Fri, Nov 30, 2012 at 11:03 PM, Kirill A. Shutemov wrote: > From: "Kirill A. Shutemov" > > Don't forget to account newly allocated page in fallback path for > copy-on-write of huge zero page. > What about fallback path in do_huge_pmd_wp_page_fallback()? I think we should also account newly

Re: [PATCH 5/6] rtl8712: remove useless calls to memset().

2012-12-02 Thread Larry Finger
On 12/01/2012 08:40 PM, Cyril Roelandt wrote: These calls are followed by calls to memcpy() on the same memory area, so they can be safely removed. Signed-off-by: Cyril Roelandt --- drivers/staging/rtl8712/mlme_linux.c|2 -- drivers/staging/rtl8712/rtl871x_cmd.c |1 -

Re: [BUG REPORT] [mm-hotplug, aio] aio ring_pages can't be offlined

2012-12-02 Thread Lin Feng
On 11/30/2012 06:47 PM, Andrew Morton wrote: > On Fri, 30 Nov 2012 18:29:30 +0800 Lin Feng wrote: > >>> add a new library function which callers can use before (or after?) >>> calling get_user_pages[_fast](). >> Sorry, I'm not quite understand what "library function" function means.. >> Does

[PATCH] cpuidle: coupled: fix the potensial race condition and deadlock

2012-12-02 Thread Joseph Lo
Considering the chance that two CPU come into cpuidle_enter_state_coupled at very close time. The 1st CPU increases the waiting count and the 2nd CPU do the same thing right away. The 2nd CPU found the 1st CPU already in waiting then prepare to poke it. Before the 2nd CPU to poke 1st CPU, the 1st

[PATCH 2/2] vfio powerpc: implemented IOMMU driver for VFIO

2012-12-02 Thread Alexey Kardashevskiy
VFIO implements platform independent stuff such as a PCI driver, BAR access (via read/write on a file descriptor or direct mapping when possible) and IRQ signaling. The platform dependent part includes IOMMU initialization and handling. This patch implements an IOMMU driver for VFIO which does

[PATCH 0/2] vfio on power: yet another try

2012-12-02 Thread Alexey Kardashevskiy
The set includes 2 patches. The first one adds necessary support for VFIO IOMMU support, the second one adds a SPAPR TCE IOMMU driver to VFIO. At the moment we have decided to get rid of DMA64 window properties because we need more API than just 2 properties (such as dynamic window allocation)

[PATCH 1/2] vfio powerpc: enabled on powernv platform

2012-12-02 Thread Alexey Kardashevskiy
This patch initializes IOMMU groups based on the IOMMU configuration discovered during the PCI scan on POWERNV (POWER non virtualized) platform. The IOMMU groups are to be used later by VFIO driver (PCI pass through). It also implements an API for mapping/unmapping pages for guest PCI drivers and

Re: [PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device

2012-12-02 Thread Chao Xie
On Mon, Dec 3, 2012 at 9:39 AM, Chao Xie wrote: > On Fri, Nov 30, 2012 at 3:04 PM, Haojian Zhuang > wrote: >> On Thu, Nov 29, 2012 at 6:25 PM, Russell King - ARM Linux >> wrote: >>> On Wed, Nov 28, 2012 at 09:21:07PM -0500, Chao Xie wrote: The original sa1100_rtc_open/sa1100_rtc_release

Re: [BUG REPORT] [mm-hotplug, aio] aio ring_pages can't be offlined

2012-12-02 Thread Lin Feng
On 11/30/2012 07:00 PM, Mel Gorman wrote: >> >> Well, that's a fairly low-level implementation detail. A more typical >> approach would be to add a new get_user_pages_non_movable() or such. >> That would probably have the same signature as get_user_pages(), with >> one additional argument.

Re: [PATCH] ARM: dt: tegra: cardhu: Add drm components

2012-12-02 Thread Mark Zhang
On 12/01/2012 03:28 AM, Stephen Warren wrote: > On 11/29/2012 10:44 PM, Mark Zhang wrote: >> This patch adds the RGB & HDMI nodes in Tegra 30 cardhu's dts. >> This makes the LVDS & HDMI working. > > This still doesn't add any of the backlight/panel GPIO programming, > which I believe is required

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

2012-12-02 Thread Rusty Russell
Stanislaw Gruszka writes: > On Mon, Nov 26, 2012 at 03:10:46PM +1100, Stephen Rothwell wrote: >> After merging the modules tree, today's linux-next build (x86_64 >> allmodconfig) failed like this: >> >> drivers/net/wireless/iwlwifi/iwl-drv.c:1196:1: error: invalid suffix >> "n_disabletype__8"

Re: [net-next rfc v7 2/3] virtio_net: multiqueue support

2012-12-02 Thread Rusty Russell
Jason Wang writes: > +static const struct ethtool_ops virtnet_ethtool_ops; > + > +/* > + * Converting between virtqueue no. and kernel tx/rx queue no. > + * 0:rx0 1:tx0 2:cvq 3:rx1 4:tx1 ... 2N+1:rxN 2N+2:txN > + */ > +static int vq2txq(struct virtqueue *vq) > +{ > + int index =

Re: [RFC][PATCH 2/2] modsig: differentiate between ephemeral and persistent key names

2012-12-02 Thread Rusty Russell
Mimi Zohar writes: > Using the same name for ephemeral and "persistent" keys results > in deleting the "persistent" key. This patch renames the normal > kbuild asymmetric key pair name to "default_signing_key" and the > ephemeral key pair name to "ephemeral_signing_key". I like the idea: I was

Re: [ 11/83] module: fix out-by-one error in kallsyms

2012-12-02 Thread Rusty Russell
satoru takeuchi writes: > Hi, Hi! >> --- a/kernel/module.c >> +++ b/kernel/module.c >> @@ -2273,12 +2273,17 @@ static void layout_symtab(struct module >> src = (void *)info->hdr + symsect->sh_offset; >> nsrc = symsect->sh_size / sizeof(*src); >> >> + /* strtab always

Re: [net-next rfc v7 1/3] virtio-net: separate fields of sending/receiving queue from virtnet_info

2012-12-02 Thread Rusty Russell
Jason Wang writes: > To support multiqueue transmitq/receiveq, the first step is to separate queue > related structure from virtnet_info. This patch introduce send_queue and > receive_queue structure and use the pointer to them as the parameter in > functions handling sending/receiving. OK,

Re: [PATCH 0/2] modsign: fix missing symbol prefix

2012-12-02 Thread Rusty Russell
James Hogan writes: > These patches fix linker errors on blackfin and metag when module > signing is enabled. This is due to the use of symbol prefixes on these > architectures, and the asm in modsign_pubkey.c not prefixing one. Sorry, I was away last week. I've applied these to my fixes

Re: [RFC][PATCH 1/2] modsig: add support to sign kernel modules using ephemeral keys

2012-12-02 Thread Rusty Russell
Mimi Zohar writes: > From: Dmitry Kasatkin > > Signed modules are only as secure as the private key used to sign > them. This patch limits access to the private key by limiting the > private key's existence to 'modules_install'(ie. this is meant for > local developers, not distros.) > > This

Re: [PATCH] module: Remove a extra null character at the top of module->strtab.

2012-12-02 Thread Rusty Russell
sat writes: > From: Satoru Takeuchi > > There is a extra null character('\0') at the top of module->strtab for > each module. Commit 59ef28b introduced this bug and this patch fixes it. Hi Satoru! Unfortunately I took a week off last week, and when I read my mail I read your previous

Re: [PATCH 2/4] rtc: pxa: fix rtc caculation issue

2012-12-02 Thread Chao Xie
On Fri, Nov 30, 2012 at 4:04 AM, Robert Jarzmik wrote: > Chao Xie writes: > > Hi Chao Xie, > > First of all, could you please send patches from rtc-pxa to me also, as I'm > maintaining that driver ? > > Second point, the original design of the driver relies on the special case of > writing

Re: [PATCH 2/2] thp: avoid race on multiple parallel page faults to the same page

2012-12-02 Thread Bob Liu
On Fri, Nov 30, 2012 at 11:03 PM, Kirill A. Shutemov wrote: > From: "Kirill A. Shutemov" > > pmd value is stable only with mm->page_table_lock taken. After taking > the lock we need to check that nobody modified the pmd before change it. > > Signed-off-by: Kirill A. Shutemov Reviewed-by: Bob

Re: [RFC] Capabilities still can't be inherited by normal programs

2012-12-02 Thread Andrew G. Morgan
On Sun, Dec 2, 2012 at 3:04 PM, Andy Lutomirski wrote: > On Sun, Dec 2, 2012 at 2:26 PM, Andrew G. Morgan wrote: >> On Sun, Dec 2, 2012 at 10:35 AM, Andy Lutomirski wrote: >>> On Sun, Dec 2, 2012 at 9:21 AM, Andrew G. Morgan wrote: There is a fairly well written paper ;-) explaining how

[PATCH] ext4: remove some unused code lines

2012-12-02 Thread zwu . kernel
From: Zhi Yong Wu In ext4_ext_in_cache(), some codes are redundant, this patch will remove them. Reviewed-by: Zheng Liu Signed-off-by: Zhi Yong Wu --- fs/ext4/extents.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index

Re: [Patch v4 08/12] memory-hotplug: remove memmap of sparse-vmemmap

2012-12-02 Thread Jianguo Wu
Hi Congyang, This is the new version. Thanks, Jianguo Wu. Signed-off-by: Jianguo Wu Signed-off-by: Jiang Liu --- include/linux/mm.h |1 + mm/sparse-vmemmap.c | 231 +++ mm/sparse.c |3 +- 3 files changed, 234 insertions(+), 1

Re: [PATCH] synclink fix ldisc buffer argument

2012-12-02 Thread Chen Gang
于 2012年12月03日 04:05, Paul Fulghum 写道: > OK, I’ll do that. > pardon (I am just learning) does 65535 mean HDLC_MAX_FRAME_SIZE ? why do we need info->max_frame_size >= 4096 ? in drivers/tty/synclink_gt.c: 3550 if (info->max_frame_size < 4096) 3551 info->max_frame_size =

Re: [PATCH] ext4: remove some unused code lines

2012-12-02 Thread Zhi Yong Wu
On Sun, Dec 2, 2012 at 8:27 PM, Zheng Liu wrote: > On Thu, Nov 29, 2012 at 06:00:00PM +0800, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu > > Please write a commit log to describe this patch, even though it is > quite simple and straightfoward Good suggestion, thanks. > > Otherwise, it looks

Re: 3.7-rc7: BUG: MAX_STACK_TRACE_ENTRIES too low!

2012-12-02 Thread Li Zhong
On Sat, 2012-12-01 at 12:32 -0800, Christian Kujau wrote: > On Wed, 28 Nov 2012 at 16:41, Li Zhong wrote: > > On Tue, 2012-11-27 at 19:22 -0800, Christian Kujau wrote: > > > On Tue, 27 Nov 2012 at 19:06, Christian Kujau wrote: > > > > the same thing[0] happened again in 3.7-rc7, after ~20h uptime:

RE: [PATCH] EXTCON: Get and set cable properties

2012-12-02 Thread Tc, Jenny
> > Could you please review this. This is a follow up patch for "PATCH] > > extcon : callback function to read cable property" > > While I see nothing wrong with the patch itself, I beg you to send some users > for the new calls. Don't be obsessed with the extcon internals too much, > think more

Re: [RFC PATCH v3] Add rcu user eqs exception hooks for async page fault

2012-12-02 Thread Li Zhong
On Fri, 2012-11-30 at 12:26 +0200, Gleb Natapov wrote: > On Fri, Nov 30, 2012 at 05:18:41PM +0800, Li Zhong wrote: > > This patch adds user eqs exception hooks for async page fault page not > > present code path, to exit the user eqs and re-enter it as necessary. > > > > Async page fault is

Re: [BUG REPORT] [mm-hotplug, aio] aio ring_pages can't be offlined

2012-12-02 Thread Lin Feng
hi Domenico, Sorry for my late reply and thanks for your attention, see below :) On 11/30/2012 11:24 PM, Domenico Andreoli wrote: > On Thu, Nov 29, 2012 at 02:54:58PM +0800, Lin Feng wrote: >> Hi all, > > Hi Lin, > >> We encounter a "Resource temporarily unavailable" fail while trying >> to

RE: [PATCH v3 4/4] input: Cypress PS/2 Trackpad simulated multitouch

2012-12-02 Thread Dudley Du
> Instead of SEMI_MT, present a full mt interface with simulated contact > positions for >=3 fingers. Enables e.g. multi-finger tap and drag. > > Signed-off-by: Kamal Mostafa > --- > drivers/input/mouse/cypress_ps2.c | 16 > drivers/input/mouse/cypress_ps2.h | 14

Re: [PATCH 12/18] perf ui/hist: Add support for event group view

2012-12-02 Thread Namhyung Kim
Hi Jiri, On Fri, Nov 30, 2012 at 10:29 PM, Jiri Olsa wrote: > On Thu, Nov 29, 2012 at 03:38:40PM +0900, Namhyung Kim wrote: > > SNIP > >> +#define __HPP_COLOR_PERCENT_FN(_type, _field) >> \ >> +static int hpp__color_##_type(struct perf_hpp *hpp, struct

RE: [PATCH] EXTCON: Get and set cable properties

2012-12-02 Thread Tc, Jenny
> We discussed about this patch and then suggest some method to resolve this > issue by Myungjoo Ham. Why don't you write additional feature or your > opinion based on following patch by Myungjoo Ham? > - > http://git.kernel.org/?p=linux/kernel/git/mzx/extcon.git;a=commitdiff;h=73 >

Re: [PATCH 12/18] perf ui/hist: Add support for event group view

2012-12-02 Thread Namhyung Kim
On Fri, 30 Nov 2012 10:52:15 -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Nov 30, 2012 at 02:29:43PM +0100, Jiri Olsa escreveu: >> On Thu, Nov 29, 2012 at 03:38:40PM +0900, Namhyung Kim wrote: >> > +#define __HPP_COLOR_PERCENT_FN(_type, _field) >> > \ >> >

[PATCH RESEND] cgroup: remove subsystem files when remounting cgroup

2012-12-02 Thread Gao feng
cgroup_clear_directroy is called by cgroup_d_remove_dir and cgroup_remount. when we call cgroup_remount to remount the cgroup,the subsystem may be unlinked from cgroupfs_root->subsys_list in rebind_subsystem,this subsystem's files will not be removed in cgroup_clear_directroy. And the system will

Re: [PATCH 07/18] perf hists: Exchange order of comparing items when collapsing hists

2012-12-02 Thread Namhyung Kim
On Thu, 29 Nov 2012 15:52:57 -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Nov 29, 2012 at 03:38:35PM +0900, Namhyung Kim escreveu: >> From: Namhyung Kim >> >> When comparing entries for collapsing put the given entry first, and >> then the iterated entry. This is for the sake of consistency

Re: [PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device

2012-12-02 Thread Chao Xie
On Fri, Nov 30, 2012 at 3:04 PM, Haojian Zhuang wrote: > On Thu, Nov 29, 2012 at 6:25 PM, Russell King - ARM Linux > wrote: >> On Wed, Nov 28, 2012 at 09:21:07PM -0500, Chao Xie wrote: >>> The original sa1100_rtc_open/sa1100_rtc_release will be called >>> when the /dev/rtc0 is opened or closed.

Re: [PATCH 1/6] bna: remove useless calls to memset().

2012-12-02 Thread David Miller
From: Cyril Roelandt Date: Sun, 2 Dec 2012 03:40:17 +0100 > These calls are followed by calls to memcpy() on the same memory area, so they > can safely be removed. > > Signed-off-by: Cyril Roelandt Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH] EXTCON: Get and set cable properties

2012-12-02 Thread Anton Vorontsov
On Sun, Dec 02, 2012 at 06:53:17AM +, Tc, Jenny wrote: > Could you please review this. This is a follow up patch for "PATCH] > extcon : callback function to read cable property" While I see nothing wrong with the patch itself, I beg you to send some users for the new calls. Don't be obsessed

Re: [PATCH 04/18] perf header: Add HEADER_GROUP_DESC feature

2012-12-02 Thread Namhyung Kim
On Thu, 29 Nov 2012 15:43:04 -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Nov 29, 2012 at 03:38:32PM +0900, Namhyung Kim escreveu: >> From: Namhyung Kim >> >> Save group relationship information so that it can be restored when >> perf report is running. >> [snip] >> +static int

Re: [PATCH] EXTCON: Get and set cable properties

2012-12-02 Thread Chanwoo Choi
We discussed about this patch and then suggest some method to resolve this issue by Myungjoo Ham. Why don't you write additional feature or your opinion based on following patch by Myungjoo Ham? -

Re: [PATCH 03/18] perf tools: Keep group information

2012-12-02 Thread Namhyung Kim
Hi Arnaldo, On Thu, 29 Nov 2012 16:09:22 -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Nov 30, 2012 at 12:09:11AM +0900, Namhyung Kim escreveu: >> 2012-11-29 (목), 16:02 +0100, Jiri Olsa: >> > > You mean adding 'evsel->nr_members > 1' to this function? For some >> > > reason, I'd like to treat

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

2012-12-02 Thread Stephen Rothwell
Hi Nicholas, Today's linux-next merge of the target-updates tree got a conflict in drivers/target/target_core_transport.c between commit 3ea160b3e8f0 ("target: Fix handling of aborted commands") from Linus' tree and commit 019c4ca62148 ("target: kill dev->dev_task_attr_type") from the

Re: Re: Re: Re: Re: Re: Re: Re: [RFC PATCH 0/2] kvm/vmx: Output TSC offset

2012-12-02 Thread Yoshihiro YUNOMAE
Hi Marcelo, That is, you can't feed distinct instances of guest kernel trace. I'm not clear for "distinct instances". Is this about SMP or multiple guests? Would you explain about this? Distinct boot instances. If the guest reboots TSC can be written to. OK, I understood. I'll resend a

Re: [PATCH 2/2] cgroup: remove subsystem files when remounting cgroup

2012-12-02 Thread Gao feng
Hello Tejun on 2012/12/01 03:27, Tejun Heo wrote: > Hello, Gao. > > On Sat, Dec 01, 2012 at 12:21:29AM +0800, Gao feng wrote: >> cgroup_clear_directroy is called by cgroup_d_remove_dir >> and cgroup_remount. >> >> when we call cgroup_remount to remount the cgroup,the subsystem >> may be unlinked

[GIT] Networking

2012-12-02 Thread David Miller
1) 8139cp leaks memory in error paths, from Francois Romieu. 2) do_tcp_sendpages() cannot handle order > 0 pages, but they can certainly arrive there now, fix from Eric Dumazet. 3) Race condition and sysfs fixes in bonding from Nikolay Aleksandrov. 4) Remain-on-Channel fix in mac80211 from

Re: [GIT] Networking

2012-12-02 Thread David Miller
From: Linus Torvalds Date: Sun, 2 Dec 2012 16:13:30 -0800 > David, Willy pointed me to the recent splice crash fix > (do_tcp_sendpages and non-0-order pages). It's apparently easily > user-triggerable.. Should I take the patch directly, or do you have a > tree to pull. Don't want to make a

  1   2   3   4   5   6   >