Re: [PATCH v7 1/8] Talitos: Support for async_tx XOR offload

2012-09-01 Thread Dan Williams
On Thu, Aug 30, 2012 at 7:23 AM, Geanta Neag Horia Ioan-B05471 wrote: > > Besides these: > 1. As Dan Williams mentioned, you should explain why you are using > both spin_lock_bh and spin_lock_irqsave on the same lock. It looks like talitos_process_pending() can be called from hardirq context via

Re: [PATCH tip/core/rcu 11/23] rcu: Adjust debugfs tracing for kthread-based quiescent-state forcing

2012-09-01 Thread Josh Triplett
On Thu, Aug 30, 2012 at 11:18:26AM -0700, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > Moving quiescent-state forcing into a kthread dispenses with the need > for the ->n_rp_need_fqs field, so this commit removes it. > > Signed-off-by: Paul E. McKenney Reviewed-by: Josh Triplett >

[PATCH 4/4] timerfd: Add support for deferrable timers

2012-09-01 Thread Anton Vorontsov
This patch implements a userland-side API for generic deferrable timers, per linux/timer.h: * A deferrable timer will work normally when the system is busy, but * will not cause a CPU to come out of idle just to service it; instead, * the timer will be serviced when the CPU eventually wakes up

[PATCH 3/4] timerfd: Factor out timer-type unspecific timerfd_expire()

2012-09-01 Thread Anton Vorontsov
There is nothing hrtimer-specific inside the timerfd_tmrproc(), except the function prototype. We're about to add other timer types, so factor out generic timerfd_expire() helper from timerfd_tmrproc(). Signed-off-by: Anton Vorontsov --- fs/timerfd.c | 8 ++-- 1 file changed, 6 insertions(+)

[PATCH 2/4] timerfd: Move repeated logic into timefd_rearm()

2012-09-01 Thread Anton Vorontsov
This patch introduces timerfd_rearm(), this small helper is used to forward and restart the hrtimer. This small refactoring would be also useful if/when we'll add other backend for timerfd (like deferrable timers), so we won't need to duplicate the code more. Signed-off-by: Anton Vorontsov ---

[PATCH 1/4] kernel/time: Add new helpers to convert ktime to/from jiffies

2012-09-01 Thread Anton Vorontsov
Two new functions: jiffies_to_ktime() and ktime_to_jiffies(), we'll use them for timerfd deferred timers handling. We fully reuse the logic from timespec implementations, so the functions are pretty straightforward. The only tricky part is in headers: we have to include jiffies.h after we defined

[PATCH/RFC 0/4] Deferrable timers support for timerfd API

2012-09-01 Thread Anton Vorontsov
Hi all, This patch set implements a userland-side API for generic deferrable timers, per linux/timer.h: * A deferrable timer will work normally when the system is busy, but * will not cause a CPU to come out of idle just to service it; instead, * the timer will be serviced when the CPU eventua

Re: [QUESTION] about NFS sub system between Public Kernel and Red Hat Kernel.

2012-09-01 Thread gchen
于 2012年08月31日 22:02, Jeff Layton 写道: > On Fri, 31 Aug 2012 13:40:16 +0800 > gchen wrote: > >> Hi linux-...@vger.kernel.org >> >> I have 1 question, and also 2 conclusions which need confirm. >> >> >> 1) Question: >> >> Jeff Layton said in Red Hat Bugzilla (bug 848706): >> "Have configuration where

Re: [PATCH tip/core/rcu 10/23] rcu: Allow RCU quiescent-state forcing to be preempted

2012-09-01 Thread Josh Triplett
On Thu, Aug 30, 2012 at 11:18:25AM -0700, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > RCU quiescent-state forcing is currently carried out without preemption > points, which can result in excessive latency spikes on large systems > (many hundreds or thousands of CPUs). This patch ther

[GIT] Networking

2012-09-01 Thread David Miller
1) NLA_PUT* --> nla_put_* conversion got one case wrong in nfnetlink_log, fix from Patrick McHardy. 2) Missed error return check in ipw2100 driver, from Julia Lawall. 3) PMTU updates in ipv4 were setting the expiry time incorrectly, fix from Eric Dumazet. 4) SFC driver erroneously reverse

[PATCH 2/2] gpio: wm8350: Convert to use devm_kzalloc API

2012-09-01 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/gpio/gpio-wm8350.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/gpio/gpio-wm8350.c b/drivers/gpio/gpio-wm8350.c index a06af51..fb42938 100644 --- a/drivers/gpio/gpio-wm8350.c +++ b/drivers/gpio/gpio-wm8350.c

[PATCH 1/2] gpio: wm831x: Convert to use devm_kzalloc API

2012-09-01 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/gpio/gpio-wm831x.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/gpio/gpio-wm831x.c b/drivers/gpio/gpio-wm831x.c index e56a216..b6eda35 100644 --- a/drivers/gpio/gpio-wm831x.c +++ b/drivers/gpio/gpio-wm831x.c

Dm-cache in the Cloud (Call for beta testing, Free Linux cloud VM available)

2012-09-01 Thread Ming Zhao
Dm-cache is a generic device mapper cache target developed by Dr. Ming Zhao and his VISA research lab at Florida International University. In collaboration with CloudVPS, a leading European cloud provider, dm-cache is now deployed in the clouds. Free Linux VMs will be offered to users who are inte

Re: [PATCH tip/core/rcu 08/23] rcu: Segregate rcu_state fields to improve cache locality

2012-09-01 Thread Josh Triplett
On Thu, Aug 30, 2012 at 11:18:23AM -0700, Paul E. McKenney wrote: > From: Dimitri Sivanich > > The fields in the rcu_state structure that are protected by the > root rcu_node structure's ->lock can share a cache line with the > fields protected by ->onofflock. This can result in excessive > memo

Re: [PATCH v3 0/2] 6lowpan fixes

2012-09-01 Thread David Miller
From: Alan Ott Date: Sat, 1 Sep 2012 11:57:05 -0400 > v3 of this patch changes skb_copy() to skb_clone() in patch #1 at the > recommendation of Eric Dumazet > > Alan Ott (2): > 6lowpan: Make a copy of skb's delivered to 6lowpan > 6lowpan: handle NETDEV_UNREGISTER event All applied to net-n

Re: [PATCH v4] linux/kernel.h: Fix DIV_ROUND_CLOSEST to support negative dividends

2012-09-01 Thread Guenter Roeck
On Sat, Sep 01, 2012 at 07:02:54PM +0200, Jean Delvare wrote: > Hi Andrew, Guenter, > > On Fri, 31 Aug 2012 12:38:12 -0700, Andrew Morton wrote: > > On Fri, 31 Aug 2012 08:02:19 -0700 > > Guenter Roeck wrote: > > > > > DIV_ROUND_CLOSEST returns a bad result for negative dividends: > > > DIV_RO

Re: [PATCH tip/core/rcu 07/23] rcu: Provide OOM handler to motivate lazy RCU callbacks

2012-09-01 Thread Josh Triplett
On Thu, Aug 30, 2012 at 11:18:22AM -0700, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > In kernels built with CONFIG_RCU_FAST_NO_HZ=y, CPUs can accumulate a > large number of lazy callbacks, which as the name implies will be slow > to be invoked. This can be a problem on small-memory sy

Re: [PATCH tip/core/rcu 06/23] rcu: Break up rcu_gp_kthread() into subfunctions

2012-09-01 Thread Josh Triplett
On Thu, Aug 30, 2012 at 11:18:21AM -0700, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > Then rcu_gp_kthread() function is too large and furthermore needs to > have the force_quiescent_state() code pulled in. This commit therefore > breaks up rcu_gp_kthread() into rcu_gp_init() and rcu_g

Re: [PATCH tip/core/rcu 05/23] rcu: Prevent offline CPUs from executing RCU core code

2012-09-01 Thread Josh Triplett
On Thu, Aug 30, 2012 at 11:18:20AM -0700, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > Earlier versions of RCU invoked the RCU core from the CPU_DYING notifier > in order to note a quiescent state for the outgoing CPU. Because the > CPU is marked "offline" during the execution of the C

Re: [PATCH tip/core/rcu 04/23] rcu: Allow RCU grace-period cleanup to be preempted

2012-09-01 Thread Josh Triplett
On Thu, Aug 30, 2012 at 11:18:19AM -0700, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > RCU grace-period cleanup is currently carried out with interrupts > disabled, which can result in excessive latency spikes on large systems > (many hundreds or thousands of CPUs). This patch therefor

Re: [PATCH tip/core/rcu 03/23] rcu: Move RCU grace-period cleanup into kthread

2012-09-01 Thread Josh Triplett
On Thu, Aug 30, 2012 at 11:18:18AM -0700, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > As a first step towards allowing grace-period cleanup to be preemptible, > this commit moves the RCU grace-period cleanup into the same kthread > that is now used to initialize grace periods. This is

Re: [PATCH tip/core/rcu 02/23] rcu: Allow RCU grace-period initialization to be preempted

2012-09-01 Thread Josh Triplett
On Thu, Aug 30, 2012 at 11:18:17AM -0700, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > RCU grace-period initialization is currently carried out with interrupts > disabled, which can result in 200-microsecond latency spikes on systems > on which RCU has been configured for 4096 CPUs. Th

Re: [PATCH tip/core/rcu 01/23] rcu: Move RCU grace-period initialization into a kthread

2012-09-01 Thread Josh Triplett
On Thu, Aug 30, 2012 at 11:18:16AM -0700, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > As the first step towards allowing grace-period initialization to be > preemptible, this commit moves the RCU grace-period initialization > into its own kthread. This is needed to keep large-system s

Re: [PATCH] staging/rts_pstor: remove braces {} in sd.c

2012-09-01 Thread Joe Perches
On Sat, 2012-09-01 at 20:35 +0530, devendra.aaru wrote: > Hello, > This is a very big patch. It will be difficult for reviewers to review. Hello, this is a carelessly large reply quoting all 100K of the original patch for your three sentences. Don't do that. Thanks -- To unsubscribe from this

[PATCH] gpio: adp5588: Use module_i2c_driver

2012-09-01 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/gpio/gpio-adp5588.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/gpio/gpio-adp5588.c b/drivers/gpio/gpio-adp5588.c index ae5d7f1..eeedad4 100644 --- a/drivers/gpio/gpio-adp5588.c +++ b/drivers/gpio/gpio-adp5588.c

[PATCH] gpio: Use DEFINE_PCI_DEVICE_TABLE macro

2012-09-01 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/gpio/gpio-bt8xx.c |2 +- drivers/gpio/gpio-sodaville.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-bt8xx.c b/drivers/gpio/gpio-bt8xx.c index 92d555d..7d9d7cb 100644 --- a/drivers/gpio/gpio-bt8xx.c +++ b/dr

Re: 3.5.2: moving files from xfs/disk -> nfs: radix_tree_lookup_slot+0xe/0x10

2012-09-01 Thread Christoph Hellwig
I'd suspect it's something with the actual radix tree code, Ccing linux-mm in case they know more. On Mon, Aug 27, 2012 at 11:00:10AM -0400, Justin Piszcz wrote: > Hi, > > Moving ~276GB of files (mainly large backups) and everything has > seemed to lockup on the client moving data to the server,

[eBeam PATCH 2/2] input: misc: New USB eBeam input driver.

2012-09-01 Thread Yann Cantin
Signed-off-by: Yann Cantin --- drivers/input/misc/Kconfig | 22 ++ drivers/input/misc/Makefile |1 + drivers/input/misc/ebeam.c | 750 +++ 3 files changed, 773 insertions(+) create mode 100644 drivers/input/misc/ebeam.c diff --git a/drivers/inpu

[eBeam PATCH 0/2] new USB eBeam input driver

2012-09-01 Thread Yann Cantin
Hi, New USB input driver for eBeam devices. Currently supported (tested) : - Luidia eBeam classic projection and edge projection models - Nec "interactive solution" NP01Wi1 & NP01Wi2 for video-projectors. There's others devices (includind re-branded ones) in the wild that should be supported out

[eBeam PATCH 1/2] hid: Blacklist eBeam devices

2012-09-01 Thread Yann Cantin
Signed-off-by: Yann Cantin --- drivers/hid/hid-core.c |3 +++ drivers/hid/hid-ids.h |3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 8bf8a64..b4b0baf 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1907,6 +

Linux 3.6-rc4

2012-09-01 Thread Linus Torvalds
The kernel summit is over, and most people have either returned or are returning from San Diego. Probably as a result of lots of maintainers having been away, it's been pretty quiet - despite it being ten days (rather than the usual week) since -rc3. The statistics look a bit unusual, too, likely

[PATCH] staging: bcm: fix error handling in bcm_init()

2012-09-01 Thread Alexey Khoroshilov
bcm_init() does not have proper error handling of usb_register(). The patch implements one. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/bcm/InterfaceInit.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(

[PATCH] staging: zcache: fix spelling of comment

2012-09-01 Thread Marcus Karlsson
Fix spelling in tmem.c: Transcedent -> Transcendent Signed-off-by: Marcus Karlsson --- drivers/staging/zcache/tmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/zcache/tmem.c b/drivers/staging/zcache/tmem.c index eaa9021..56c8e60 100644 --- a/drivers/stagi

Re: Get the min and max frequency of a processor

2012-09-01 Thread Marcos Souza
2012/8/31 Borislav Petkov : > On Fri, Aug 31, 2012 at 06:52:46AM -0300, Marcos Souza wrote: >> Nothing is wrong with access /sys, but I thought there was another >> way, like an API or something else. > > Ah, there's no API, AFAICT. > > Also, tools/power/cpupower/ uses sysfs too - you could reuse t

[PATCH] ppdev: ppdev_init: do not return zero in case of failure

2012-09-01 Thread Alexey Khoroshilov
Error handling of parport_register_driver() in ppdev_init() is broken because it deallocates all resources but still returns zero. Currently parport_register_driver() always succeeds. Nevertheless it is worth to fix the issue. Found by Linux Driver Verification project (linuxtesting.org). Signed

Re: linux page table

2012-09-01 Thread Xin Tong
On Sat, Sep 1, 2012 at 1:01 PM, Shentino wrote: > On Sat, Sep 1, 2012 at 12:30 PM, Xin Tong wrote: >> When a process is created in Linux, corresponding page table is >> implemented. In the current x86 linux, the page table is a multi-level >> page table and CR3 points to the first level of the pa

Re: [PATCH 19/21] ntfs: drop vmtruncate

2012-09-01 Thread Anton Altaparmakov
Hi, Looks good though if you call ntfs_truncate() rather than ntfs_truncate_vfs() you can use it to return an error code in the case that ntfs_truncate() fails. That could be done as a separate patch of course. You can add my Reviewed-by: or Signed-off-by: to this patch. Best regards,

Re: linux page table

2012-09-01 Thread Shentino
On Sat, Sep 1, 2012 at 12:30 PM, Xin Tong wrote: > When a process is created in Linux, corresponding page table is > implemented. In the current x86 linux, the page table is a multi-level > page table and CR3 points to the first level of the page table. I > have 2 questions. > > 1. is the value i

Re: western digital caviar black. EXT4-fs error

2012-09-01 Thread Azat Khuzhin
I'v also post question here http://serverfault.com/questions/423565/western-digital-caviar-black-ext4-fs-error On Sat, Sep 1, 2012 at 11:48 PM, Azat Khuzhin wrote: > Recently I update my HDD on desktop machine, and bought WD Caviar Black. > But after I format & copy information to it (using dd),

[PATCH] virtio: console: fix error handling in init() function

2012-09-01 Thread Alexey Khoroshilov
If register_virtio_driver() fails, virtio-ports class is not destroyed. The patch adds error handling of register_virtio_driver(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/char/virtio_console.c | 12 +++- 1 file chang

western digital caviar black. EXT4-fs error

2012-09-01 Thread Azat Khuzhin
Recently I update my HDD on desktop machine, and bought WD Caviar Black. But after I format & copy information to it (using dd), and fix partitions size: I have next errors in kern.log: Aug 28 01:49:03 home-spb kernel: [183245.030897] EXT4-fs error (device sdc2): ext4_mb_generate_buddy:739: group

[PATCH v3 08/20] Input: MT - Handle frame synchronization in core

2012-09-01 Thread Henrik Rydberg
Most MT drivers perform the same actions on frame synchronization. Some actions, like dropping unseen contacts, are also unnecessarily complex. Collect common frame synchronization tasks in a new function, input_mt_sync_frame(). Depending on the flags set, it drops unseen contacts and performs poin

[PATCH v3 06/20] Input: evdev - Add the events() callback

2012-09-01 Thread Henrik Rydberg
By sending a full frame of events at the same time, the irqsoff latency at heavy load is brought down from 200 us to 100 us. Signed-off-by: Henrik Rydberg --- drivers/input/evdev.c | 68 +++ 1 file changed, 47 insertions(+), 21 deletions(-) diff -

[PATCH v3 05/20] Input: Send events one packet at a time

2012-09-01 Thread Henrik Rydberg
On heavy event loads, such as a multitouch driver, the irqsoff latency can be as high as 250 us. By accumulating a frame worth of data before passing it on, the latency can be dramatically reduced. As a side effect, the special EV_SYN handling can be removed, since the frame is now atomic. This

[PATCH v3 09/20] Input: MT - Add in-kernel tracking

2012-09-01 Thread Henrik Rydberg
With the INPUT_MT_TRACK flag set, the function input_mt_assign_slots() can be used to match a new set of contacts against the currently used slots. The algorithm used is based on Lagrange relaxation, and performs very well in practice; slower than mtdev for a few corner cases, but faster in most co

[PATCH v3 10/20] Input: MT - Get slot by key

2012-09-01 Thread Henrik Rydberg
Some devices use an internal key for tracking which cannot be directly mapped to slots. This patch provides a key-to-slot mapping, which can be used by drivers of such devices. Signed-off-by: Henrik Rydberg --- drivers/input/input-mt.c | 32 include/linux/input/m

[PATCH v3 14/20] Input: bcm5974 - Drop the logical dimensions

2012-09-01 Thread Henrik Rydberg
The logical scale was previously used to produce special width values to userspace, and its only present use is to put "pressure" hysteresis on a common scale. However, bcm5974 trackpads are very accurate and work well without hysteresis. This patch simplifies the driver and device data by removin

[PATCH v3 16/20] HID: Only dump input if someone is listening

2012-09-01 Thread Henrik Rydberg
Going through the motions of printing the debug message information takes a long time; using the keyboard can lead to a 160 us irqsoff latency. This patch skips hid_dump_input() when there are no open handles, which brings latency down to 100 us. Signed-off-by: Henrik Rydberg --- drivers/hid/hid

[PATCH v3 01/20] Input: Break out MT data

2012-09-01 Thread Henrik Rydberg
Move all MT-related things to a separate place. This saves some bytes for non-mt input devices, and prepares for new MT features. Signed-off-by: Henrik Rydberg --- drivers/input/evdev.c| 10 ++ drivers/input/input-mt.c | 47 +++ drivers/inp

[PATCH v3 02/20] Input: Improve the events-per-packet estimate

2012-09-01 Thread Henrik Rydberg
The events-per-packet estimate has so far been used by MT devices only. This patch adjusts the packet buffer size to also accomodate the KEY and MSC events. Keyboards normally send one or two keys at a time. MT devices normally send a number of button keys along with the MT information. The buffe

[PATCH v3 v3 00/20] Input and HID updates for 3.7

2012-09-01 Thread Henrik Rydberg
Hi Dmitry, Jiri, Here is the third version of the patchset for 3.7. I think we are getting close. Changes in short: Patch 2: Folded the size estimate removal into this patch, since the other estimates are still needed for MT-A devices. Patch 5: Reworked to handle SYN_MT events the 'old' way. Pat

[PATCH v3 04/20] Input: Move autorepeat to the event-passing phase

2012-09-01 Thread Henrik Rydberg
Preparing to split event filtering and event passing, move the autorepeat function to the point where the event is actually passed. Signed-off-by: Henrik Rydberg --- drivers/input/input.c | 46 +- 1 file changed, 25 insertions(+), 21 deletions(-) diff

[PATCH v3 19/20] HID: hid-multitouch: Remove the redundant touch state

2012-09-01 Thread Henrik Rydberg
With the input_mt_sync_frame() function in place, there is no longer any need to keep the full touch state in the driver. This patch removes the slot state and replaces the lookup code with the input-mt equivalent. Cc: Benjamin Tissoires Signed-off-by: Henrik Rydberg --- drivers/hid/hid-multito

[PATCH 20/20] HID: hid-multitouch: Add missing contact count detection

2012-09-01 Thread Henrik Rydberg
Some devices report the number of contacts via the CONTACTCOUNT usage, rather than using the CONTACTMAX feature. Without this patch, such devices will be capped to ten fingers, the default maximum. Fixes a long-standing regression on 3M and similar panels. Cc: Benjamin Tissoires Signed-off-by: He

[PATCH v3 17/20] HID: Add an input configured notification callback

2012-09-01 Thread Henrik Rydberg
A hid device may create several input devices, and a driver may need to prepare or finalize the configuration per input device. Currently, there is no sane way for a driver to know when a device has been configured. This patch adds a callback providing that information. Signed-off-by: Henrik Rydbe

[PATCH v3 17/20] HID: Add an input configured notification callback

2012-09-01 Thread Henrik Rydberg
With the input_configured() callback in place, the setup and frame synchronization can be simplified. The input device initialization is moved to mt_input_configured(), to make sure the full HID report has been seen. Cc: Benjamin Tissoires Signed-off-by: Henrik Rydberg --- drivers/hid/hid-multi

[PATCH v3 15/20] Input: bcm5974 - Convert to MT-B

2012-09-01 Thread Henrik Rydberg
Use of the in-kernel tracking code to convert the driver to MT-B. With ten fingers on the pad, the in-kernel tracking adds approximately 25 us to the maximum irqsoff latency. Under normal workloads, however, the tracking has no measurable effect. Signed-off-by: Henrik Rydberg --- drivers/input/

[PATCH v3 13/20] Input: bcm5974 - Drop pressure and width emulation

2012-09-01 Thread Henrik Rydberg
The ABS_PRESSURE and ABS_WIDTH have special scales, and were initially added solely for thumb and palm recognition in the synaptics driver. This never really get used, however, and userspace quickly moved to MT solutions instead. This patch drops the unused events. Signed-off-by: Henrik Rydberg -

[PATCH v3 12/20] Input: bcm5974 - Preparatory renames

2012-09-01 Thread Henrik Rydberg
Rename touch properties to match established nomenclature, and define the maximum number of fingers. Signed-off-by: Henrik Rydberg --- drivers/input/mouse/bcm5974.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/input/mouse/bcm5974.c b/dri

[PATCH v3 11/20] Input: bcm5974 - only setup button urb for TYPE1 devices

2012-09-01 Thread Henrik Rydberg
The early generations with this trackpad used the separate mouse interface to produce button events. With the introduction of the button pads, this information was moved to the trackpad interface, leaving the mouse interface unused. The driver is still setting up both interfaces, which has not caus

[PATCH v3 07/20] Input: MT - Add flags to input_mt_init_slots()

2012-09-01 Thread Henrik Rydberg
Preparing to move more repeated code into the mt core, add a flags argument to the input_mt_slots_init() function. Signed-off-by: Henrik Rydberg --- drivers/hid/hid-magicmouse.c | 2 +- drivers/hid/hid-multitouch.c | 2 +- drivers/input/input-mt.c | 4 +++-

[PATCH v3 03/20] Input: Make sure we follow all EV_KEY events

2012-09-01 Thread Henrik Rydberg
For some EV_KEY types, sending a larger-than-one value causes the input state to oscillate. This patch makes sure this cannot happen, clearing up the autorepeat bypass logic in the process. Signed-off-by: Henrik Rydberg --- drivers/input/input.c | 20 +--- 1 file changed, 13 inse

linux page table

2012-09-01 Thread Xin Tong
When a process is created in Linux, corresponding page table is implemented. In the current x86 linux, the page table is a multi-level page table and CR3 points to the first level of the page table. I have 2 questions. 1. is the value in CR3 virtual address or physical address ? 2. can the addres

Re: [PATCH v2] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-09-01 Thread Colin Cross
On Fri, Aug 31, 2012 at 2:52 PM, Mathieu Poirier wrote: > On 12-08-30 05:01 PM, Dmitry Torokhov wrote: >> Hi Matthieu, >> >> On Thu, Aug 30, 2012 at 04:30:54PM -0600, mathieu.poir...@linaro.org wrote: >>> From: "Mathieu J. Poirier" >>> >>> This patch adds keyreset functionality to the sysrq drive

[PATCH 07/10 V4] workqueue: move idle_rebind pointer to gcwq

2012-09-01 Thread Lai Jiangshan
And this pointer helps other workers know the progress of idle-rebinding. when gcwq->idle_rebind is not NULL, it means the idle-rebinding is still in progress. and idle_worker_rebind() is split. Signed-off-by: Lai Jiangshan --- kernel/workqueue.c | 67 ++---

[PATCH 10/10 V4] workqueue: merge the role of rebind_hold to idle_done

2012-09-01 Thread Lai Jiangshan
Currently is single pass, we can wait on idle_done instead wait on rebind_hold. So we can remove rebind_hold and make the code simpler. Signed-off-by: Lai Jiangshan --- kernel/workqueue.c | 35 +++ 1 files changed, 11 insertions(+), 24 deletions(-) diff --git a

[PATCH 06/10 V4] workqueue: simple clear WORKER_REBIND

2012-09-01 Thread Lai Jiangshan
WORKER_REBIND is not used for other purpose, idle_worker_rebind() can directly clear it. Signed-off-by: Lai Jiangshan --- kernel/workqueue.c | 13 ++--- 1 files changed, 2 insertions(+), 11 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 55864d1..9466d91 100644

[PATCH 09/10] workqueue: single pass rebind_workers

2012-09-01 Thread Lai Jiangshan
busy_worker_rebind_fn() can't return until all idle workers are rebound, the code of busy_worker_rebind_fn() ensure this. So we can change the order of the code of rebind_workers(), and make it is a single pass to do the rebind_workers(). It makes the code much clean and better readability(still

[PATCH 04/10 V4] workqueue: add manage_workers_slowpath()

2012-09-01 Thread Lai Jiangshan
If hotplug code grabbed the manager_mutex and worker_thread try to create a worker, the manage_worker() will return false and worker_thread go to process work items. Now, on the CPU, all workers are processing work items, no idle_worker left/ready for managing. It breaks the concept of workqueue an

[PATCH 02/10 V4] workqueue: fix deadlock in rebind_workers()

2012-09-01 Thread Lai Jiangshan
Current idle_worker_rebind() has a bug. idle_worker_rebind() path HOTPLUG path online rebind_workers() wait_event(gcwq->rebind_hold) woken up but no scheduled

[PATCH 05/10 V4] workqueue: move rebind_hold to idle_rebind

2012-09-01 Thread Lai Jiangshan
By the help of @idle_rebind.ref_done, the life time of idle_rebind is expanded enough and it can include the whole reference-time of @rebind_hold, so we can move @rebind_hold from gcwq to idle_rebind. Also we change it to completion instead. we need to ease the pain of WORKER_REBIND. Signed-off-

[PATCH 03/10 V4] workqueue: add POOL_MANAGING_WORKERS

2012-09-01 Thread Lai Jiangshan
When hotplug happens, the plug code will also grab the manager_mutex, it will break too_many_workers()'s assumption, and make too_many_workers() ugly(kick the timer wrongly, no found bug). To avoid assumption-coruption, we add the original POOL_MANAGING_WORKERS back. Signed-off-by: Lai Jiangshan

[PATCH 08/10 V4] workqueue: explicit way to wait for idles workers to finish

2012-09-01 Thread Lai Jiangshan
busy_worker_rebind_fn() can't return until all idle workers are rebound. This order is ensured by rebind_workers() currently. We use synchronize_all_idles_rebound() to wait for all idle workers to be rebound. this is an explicit way and it will ease the pain of the rebind_workers(). The sleeping

[PATCH 01/10 V4] workqueue: ensure the wq_worker_sleeping() see the right flags

2012-09-01 Thread Lai Jiangshan
The compiler may compile this code into TWO write/modify instructions. worker->flags &= ~WORKER_UNBOUND; worker->flags |= WORKER_REBIND; so the other CPU may see the temporary of worker->flags which has not WORKER_UNBOUND nor WORKER_REBIND, it will wrongly do local

[PATCH 00/10 V4] workqueue: fix and cleanup hotplug/rebind_workers()

2012-09-01 Thread Lai Jiangshan
Patch 1~4 fix possible bugs. Patch 1 fix possible double-write bug Patch 2,5,6 makes the waiting logic more clear Patch 3,4 fix bugs from manage VS hotplug Patch 7,8,9,10 explicit logic to wait in busy-work-rebind and make rebind_workers() single pass. Change from V3. A ne

Re: [PATCH 44/74] lto: Mark functions used by the vsyscall init code visible

2012-09-01 Thread Andi Kleen
On Sat, Sep 01, 2012 at 07:16:45PM +0200, Andi Kleen wrote: > > I think that there should be a comment why the symbol needs to be > > visible (just copy the reasoning from the changelog). Otherwise someone > > might attempt to do a cleanup a few years later, noticing that there is > > no assembler

Re: [PATCH 44/74] lto: Mark functions used by the vsyscall init code visible

2012-09-01 Thread Andi Kleen
> I think that there should be a comment why the symbol needs to be > visible (just copy the reasoning from the changelog). Otherwise someone > might attempt to do a cleanup a few years later, noticing that there is > no assembler code calling get_random_int(). Ok. On hindsight maybe it's better t

Re: [PATCH v4] linux/kernel.h: Fix DIV_ROUND_CLOSEST to support negative dividends

2012-09-01 Thread Jean Delvare
Hi Andrew, Guenter, On Fri, 31 Aug 2012 12:38:12 -0700, Andrew Morton wrote: > On Fri, 31 Aug 2012 08:02:19 -0700 > Guenter Roeck wrote: > > > DIV_ROUND_CLOSEST returns a bad result for negative dividends: > > DIV_ROUND_CLOSEST(-2, 2) = 0 > > > > Most of the time this does not matter. Howev

[PATCH]Documentation: Chinese translation of Documentation/video4linux/v4l2-framework.txt

2012-09-01 Thread Ninja Tekkaman
This is a Chinese translated version of Documentation/video4linux/v4l2-framework.txt Signed-off-by: Fu Wei --- Documentation/zh_CN/video4linux/v4l2-framework.txt | 983 1 file changed, 983 insertions(+) create mode 100644 Documentation/zh_CN/video4linux/v4l2-framework.txt

[PATCH 2/4] drivers/tty/serial/sirfsoc_uart.c: drop frees of devm_ alloc'd data

2012-09-01 Thread Julia Lawall
From: Julia Lawall devm free functions should not have to be explicitly used. A semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ @@ ( * devm_kfree(...); | * devm_free_irq(...); | * devm_iounmap(...); | * devm_release_region(...); | * devm_release_mem_re

[PATCH 3/4] drivers/mtd/maps/autcpu12-nvram.c: drop frees of devm_ alloc'd data

2012-09-01 Thread Julia Lawall
From: Julia Lawall devm free functions should not have to be explicitly used. A semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ @@ ( * devm_kfree(...); | * devm_free_irq(...); | * devm_iounmap(...); | * devm_release_region(...); | * devm_release_mem_re

[PATCH 4/4] drivers/mtd/nand/mpc5121_nfc.c: some devm_ cleanups

2012-09-01 Thread Julia Lawall
From: Julia Lawall devm free functions should not have to be explicitly used. The only thing left that is useful in the function mpc5121_nfc_free is the call to clk_disable, which is moved to the call sites. This function also incorrectly called iounmap on devm_ioremap allocated data. Use devm

[PATCH 1/4] drivers/spi/spi-sh-hspi.c: drop frees of devm_ alloc'd data

2012-09-01 Thread Julia Lawall
From: Julia Lawall devm free functions should not have to be explicitly used. A semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ @@ ( * devm_kfree(...); | * devm_free_irq(...); | * devm_iounmap(...); | * devm_release_region(...); | * devm_release_mem_re

[PATCH 0/4] drop frees of devm_ alloc'd data

2012-09-01 Thread Julia Lawall
Drop frees of devm_ alloc'd data. -- 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 http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v3 2/2] 6lowpan: handle NETDEV_UNREGISTER event

2012-09-01 Thread Alan Ott
Before, it was impossible to remove a wpan device which had lowpan attached to it. Signed-off-by: Alan Ott --- net/ieee802154/6lowpan.c | 44 +--- 1 files changed, 37 insertions(+), 7 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6

[PATCH v3 1/2] 6lowpan: Make a copy of skb's delivered to 6lowpan

2012-09-01 Thread Alan Ott
Since lowpan_process_data() modifies the skb (by calling skb_pull()), we need our own copy so that it doesn't affect the data received by other protcols (in this case, af_ieee802154). Signed-off-by: Alan Ott --- net/ieee802154/6lowpan.c |9 - 1 files changed, 8 insertions(+), 1 delet

[PATCH v3 0/2] 6lowpan fixes

2012-09-01 Thread Alan Ott
v3 of this patch changes skb_copy() to skb_clone() in patch #1 at the recommendation of Eric Dumazet Alan Ott (2): 6lowpan: Make a copy of skb's delivered to 6lowpan 6lowpan: handle NETDEV_UNREGISTER event net/ieee802154/6lowpan.c | 53 +++--- 1 file

Re: [PATCH 44/74] lto: Mark functions used by the vsyscall init code visible

2012-09-01 Thread Michal Marek
Dne 19.8.2012 04:56, Andi Kleen napsal(a): > From: Andi Kleen > > The vsyscall code is compiled without LTO. This also includes > its init function. The function which are called by it have > to be visible, otherwise they could be optimized away > > Signed-off-by: Andi Kleen > --- > drivers/ch

Re: [PATCH 20/74] x86, lto: Change dotraplinkage into __visible on 32bit

2012-09-01 Thread Michal Marek
Dne 19.8.2012 04:56, Andi Kleen napsal(a): > From: Andi Kleen > > Mark 32bit dotraplinkage functions as __visible for LTO. > 64bit already is using asmlinkage which includes it. You can make it __visible on both 32bit and 64bit, the result is the same. Michal -- To unsubscribe from this list: s

IO stalls on one disk stall entire system

2012-09-01 Thread Dan Merillat
I have a known-broken WD15EADS, which has the hilariously terrible 1000ms IO response time. Yes, that's the right number of zeros. I'm using it as a convenient way to hunt down a general feeling of unresponsiveness under disk load In this case, the failing drive is mounted to /backup, and I'm co

Re: [PATCH V2] block/throttle: Add IO throttled information in blkio.throttle.

2012-09-01 Thread Tao Ma
Hi Tejun, On 09/01/2012 09:05 AM, Tejun Heo wrote: > On Fri, Aug 31, 2012 at 01:15:09PM +0800, Tao Ma wrote: >> From: Tao Ma >> >> Currently, if the IO is throttled by io-throttle, the SA has no idea of > > What's SA? system admin. > >> the situation and can't report it to the real application u

Re: [PATCH v3 3/3] spi: spi-davinci: convert to DMA engine API

2012-09-01 Thread Matt Porter
On Sat, Sep 01, 2012 at 06:32:29AM +0530, Vinod Koul wrote: > On Fri, 2012-08-31 at 22:32 +0530, Vinod Koul wrote: > > On Fri, 2012-08-31 at 22:01 +0530, Sekhar Nori wrote: > > > >> Yes, this was the problem. Since the SPI driver now depends on > > > >> CONFIG_TI_EDMA for basic operation may be sel

WARNING: at block/genhd.c:1570 disk_clear_events+0xbf/0xd0()

2012-09-01 Thread Roberto Corrado
Sep 1 14:14:53 kernel: [ 6.382864] [ cut here ] Sep 1 14:14:53 kernel: [ 6.383018] WARNING: at block/genhd.c:1570 disk_clear_events+0xbf/0xd0() Sep 1 14:14:53 kernel: [ 6.383018] Hardware name: CLE266-8235 Sep 1 14:14:53 kernel: [ 6.383018] Modules linked in: fuse a

Re: [PATCH 0/4 V2] Use get_online_cpus to avoid races involving CPU hotplug

2012-09-01 Thread Rusty Russell
Silas Boyd-Wickizer writes: > Hello, > > This is the second version of the patches to fix races described in: > > https://groups.google.com/forum/?fromgroups#!topic/linux.kernel/iSUDr94Qehc > > The changes in this version are: > > * fix commit log typo; > * prevent a race in via_cputemp_exi

Re: Linux 3.5.3 - i915 error

2012-09-01 Thread Daniel Vetter
On Fri, Aug 31, 2012 at 09:34:17AM +0200, Paul Rolland wrote: > Hello, > > I've just found this error in my logs. It occured once so far, but I never > got it before with 3.5.0, so I'm reporting it. > > [drm] capturing error event; look for more information > in /debug/dri/0/i915_error_state > i

Re: [PATCH v6 1/3] spi/pl022: Add chip select handling via GPIO

2012-09-01 Thread shiraz hashim
Hi Roland, On Wed, Aug 22, 2012 at 7:19 PM, Roland Stigge wrote: > @@ -2016,6 +2030,8 @@ pl022_probe(struct amba_device *adev, co > pl022->master_info = platform_info; > pl022->adev = adev; > pl022->vendor = id->data; > + /* Point chipselects to allocated memory beyo

Re: [PATCH] gpio: tps65912: Convert to use devm_kzalloc API

2012-09-01 Thread Linus Walleij
On Sat, Sep 1, 2012 at 11:44 AM, Axel Lin wrote: > Signed-off-by: Axel Lin Applied. Thanks, Linus Walleij -- 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 http://vger.kernel.org/majordomo-in

Re: [PATCH] gpio: da9052: Convert to use devm_kzalloc API

2012-09-01 Thread Linus Walleij
On Sat, Sep 1, 2012 at 11:34 AM, Axel Lin wrote: > Signed-off-by: Axel Lin Applied. Thanks, Linus Walleij -- 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 http://vger.kernel.org/majordomo-in

Re: [PATCH] gpio: rdc321x: Prevent removal of modules exporting active GPIOs

2012-09-01 Thread Linus Walleij
On Sat, Sep 1, 2012 at 8:11 AM, Axel Lin wrote: > This driver can be built as a module, set the missing owner field of > struct gpio_chip to prevent removal of modules exporting active GPIOs. > > Signed-off-by: Axel Lin Applied. Thanks, Linus Walleij -- To unsubscribe from this list: send the

[PATCH] gpio: tps65912: Convert to use devm_kzalloc API

2012-09-01 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/gpio/gpio-tps65912.c | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/drivers/gpio/gpio-tps65912.c b/drivers/gpio/gpio-tps65912.c index 79e66c0..99106d1 100644 --- a/drivers/gpio/gpio-tps65912.c +++ b/drivers/gpio/gpio-tp

  1   2   >