Re: About dma_sync_single_for_{cpu,device}

2012-07-31 Thread Clemens Ladisch
Karl Beldan wrote: > To tx a chunk of data from the SoC => network device, we : > - prepare a buffer with a leading header embedding a pattern, > - trigger the xfer and wait for an irq > // The device updates the pattern and then triggers an irq > - upon irq we check the pattern for the xfer comple

Re: drm/nouveau: crash regression in 3.5

2012-07-31 Thread Ortwin Glück
Yes, as far as I can tell. I didn't do anything different this time. The date on the kernel file looks ok. Just did a fresh make && make install again, and got the same behaviour. When is that number after the hash sign upped? Marcin Slusarz wrote: >Are you sure you boot the correct kernel? I

Re: [PATCH 1/5] user_hooks: New user hooks subsystem

2012-07-31 Thread Ingo Molnar
* Frederic Weisbecker wrote: > On Mon, Jul 30, 2012 at 05:08:12PM +0200, Peter Zijlstra wrote: > > On Fri, 2012-07-27 at 17:40 +0200, Frederic Weisbecker wrote: > > > +++ b/kernel/user_hooks.c > > > @@ -0,0 +1,56 @@ > > > +#include > > > +#include > > > +#include > > > +#include > > > + > >

Re: [PATCH can-next v3 1/2] can: add tx/rx LED trigger support

2012-07-31 Thread Marc Kleine-Budde
On 07/31/2012 08:57 AM, Fabio Baltieri wrote: > Hi Marc, > > On Mon, Jul 30, 2012 at 11:17:53PM +0200, Marc Kleine-Budde wrote: >> On 07/30/2012 09:20 PM, Fabio Baltieri wrote: >>> This patch implements the functions to add two LED triggers, named >>> -tx and -rx, to a canbus device driver. >>> >>

[GIT PULL] s390 patches for the 3.6 merge window #2

2012-07-31 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the second batch of s390 patches for the 3.6 merge window. Included is enablement for two common code changes, killable page faults and sorted exception

Re: [PATCH RESEND v3] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-07-31 Thread S, Venkatraman
On Tue, Jul 31, 2012 at 7:30 AM, Kyungsik Lee wrote: > It is expected that Extended CSD register(the size of this register > is larger than CID/CSD) will be referenced more frequently as more > fields have been added to Extended CSD and it seems that it is not > a good option to double the memory

Re: [PATCH V2] dma: tegra: enable/disable dma clock

2012-07-31 Thread Laxman Dewangan
On Tuesday 31 July 2012 12:18 PM, Vinod Koul wrote: On Fri, 2012-07-27 at 13:42 +0530, Laxman Dewangan wrote: Hi Vinod, Is there any thing remaining from my side here? Nope, I will take care of it Thanks for taking care. Is it possible to make it for K3.6? Nope 3.6 is released, too late f

Re: [PATCH 0/7] HID: picoLCD updates

2012-07-31 Thread David Herrmann
Hi Bruno On Mon, Jul 30, 2012 at 9:36 PM, Bruno Prémont wrote: > Hi, > > This series updates picoLCD driver: > - split the driver functions into separate files which get included > depending on Kconfig selection > (implementation for CIR using RC_CORE will follow later) > - drop private frame

Re: [PATCH] fixed a macro coding style issue

2012-07-31 Thread Dmitry Torokhov
On Tue, Jul 24, 2012 at 11:36:24PM -0700, Dmitry Torokhov wrote: > On Wed, Jul 25, 2012 at 07:15:12AM +0100, Al Viro wrote: > > On Tue, Jul 24, 2012 at 10:37:55PM -0700, Dmitry Torokhov wrote: > > > On Wed, Jul 25, 2012 at 01:20:56PM +0800, Baodong Chen wrote: > > > > Fixed a coding style issue in

Re: About dma_sync_single_for_{cpu,device}

2012-07-31 Thread Karl Beldan
On 7/31/12, Clemens Ladisch wrote: > Karl Beldan wrote: >> To tx a chunk of data from the SoC => network device, we : >> - prepare a buffer with a leading header embedding a pattern, >> - trigger the xfer and wait for an irq >> // The device updates the pattern and then triggers an irq >> - upon i

[git pull] Please pull powerpc.git merge branch

2012-07-31 Thread Benjamin Herrenschmidt
Hi Linus ! Kumar sent me a handful of Freescale related fixes and I added another regression fix to the pile. Cheers, Ben. PS. I -will- eventually learn about that signed tag business :-) The following changes since commit 1fad1e9a747687a7399bf58e87974f9b1bbcae06: Merge tag 'nfs-for-3.6-1' o

Re: About dma_sync_single_for_{cpu,device}

2012-07-31 Thread Clemens Ladisch
Karl Beldan wrote: > On 7/31/12, Clemens Ladisch wrote: >> Karl Beldan wrote: >>> To tx a chunk of data from the SoC => network device, we : >>> - prepare a buffer with a leading header embedding a pattern, >>> - trigger the xfer and wait for an irq >>> // The device updates the pattern and then t

Re: [PATCH 3/4] mm/hotplug: free zone->pageset when a zone becomes empty

2012-07-31 Thread Wen Congyang
At 07/05/2012 05:45 PM, Jiang Liu Wrote: > When a zone becomes empty after memory offlining, free zone->pageset. > Otherwise it will cause memory leak when adding memory to the empty > zone again because build_all_zonelists() will allocate zone->pageset > for an empty zone. > > Signed-off-by: Jian

[PATCH 1/3] drivers/misc: Add realtek card reader core driver

2012-07-31 Thread wei_wang
From: Wei WANG Realtek card reader core driver is the bus driver for Realtek driver-based card reader, which supplies adapter layer to be used by lower-level pci/usb card reader and upper-level sdmmc/memstick host driver. Signed-off-by: Wei WANG --- Documentation/misc-devices/realtek_cr.txt |

[PATCH 3/3] drivers/mmc/host: Add realtek sdmmc interface driver

2012-07-31 Thread wei_wang
From: Wei WANG Realtek SD/MMC card interface driver is used to access SD/MMC card, with the help of Realtek card reader adapter driver. Signed-off-by: Wei WANG --- drivers/mmc/host/Kconfig |7 + drivers/mmc/host/Makefile |2 + drivers/mmc/host/rtsx_sdmmc.c | 350 +

Re: [PATCH] [media] davinci: vpfe: Add documentation

2012-07-31 Thread Manju
Hi Laurent, On Friday 27 July 2012 04:19 PM, Laurent Pinchart wrote: Hi Manjunath, On Friday 27 July 2012 05:49:24 Hadli, Manjunath wrote: On Thu, Jul 26, 2012 at 05:55:31, Laurent Pinchart wrote: On Tuesday 17 July 2012 10:43:54 Hadli, Manjunath wrote: On Sun, Jul 15, 2012 at 18:16:25, Laur

Re: [PATCH] SUNRPC: return negative value in case rpcbind client creation error

2012-07-31 Thread Stanislav Kinsbursky
31.07.2012 03:12, Myklebust, Trond пишет: On Fri, 2012-07-20 at 15:57 +0400, Stanislav Kinsbursky wrote: Without this patch kernel will panic on LockD start, because lockd_up() checks lockd_up_net() result for negative value. >From my pow it's better to return negative value from rpcbind routine

Re: [PATCH 0/6] menuconfig: jump to search results

2012-07-31 Thread Borislav Petkov
On Mon, Jul 30, 2012 at 04:22:12PM -0400, Benjamin Poirier wrote: > It's against linux-next, which already contains some patches for > menuconfig. Ok, applying against the linux-next from today succeeds. And they seem to work, I can search for CONFIG_* stuff and then go straight to the results. A

Re: [PATCH 0/7] HID: picoLCD updates

2012-07-31 Thread Bruno Prémont
Hi David, On Tue, 31 Jul 2012 09:26:07 David Herrmann wrote: > This is not directly related to this patchset, but did you fix the > locking issue with hid-core? It is still on my todo-list but I haven't > gotten around fixing it, yet. However, I plan on fixing it this > summer, but if picolcd does

[PATCH RFC] tick: Emphasize tck_broadcast_on_off could only be called for host cpu

2012-07-31 Thread Feng Tang
With current tick_do_broadcast_on_off() and tick_broadcast_on_off(), it only cares host cpu, and doesn't really support to make the on/off for another target CPU as it seems to be. So remove the unneeded online check and add a WARN to notify user who doesn't know this new usage model. Next step sh

[GIT PULL] PWM subsystem for 3.6

2012-07-31 Thread Thierry Reding
Hi Linus, The following changes since commit cfaf025112d3856637ff34a767ef785ef5cf2ca9: Linux 3.5-rc2 (2012-06-08 18:40:09 -0700) are available in the git repository at: git://gitorious.org/linux-pwm/linux-pwm.git tags/for-3.6 for you to fetch changes up to 19891b20e7c275feb92d669f4b1879861

[PATCH v2 1/1] ARM: dove: DT support for sdhci-dove

2012-07-31 Thread Sebastian Hesselbarth
This patch adds device tree support and binding documentiation for sdhci-dove. v2: extended documentation and removed second interrupt as it is marked 'reserved' in dove datasheet. Signed-off-by: Sebastian Hesselbarth Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: Chris Ball Cc: A

Re: [PATCH 0/5] ubi: Fix bad PEBs reserve caclulation

2012-07-31 Thread Shmulik Ladkani
Hi Artem, On Mon, 30 Jul 2012 16:56:50 +0300 Artem Bityutskiy wrote: > Hi Shmulik, I've separated out the defconfig changes and pushed patches > 1,2, and 3 to the UBI tree (the master branch). Patches 4 and 5 are > already merged upstream. I did a couple of minor modifications in > commentaries a

Re: [GIT PULL] PWM subsystem for v3.6

2012-07-31 Thread Thierry Reding
On Thu, Jul 26, 2012 at 02:11:58PM -0700, Linus Torvalds wrote: > On Thu, Jul 26, 2012 at 12:16 AM, Thierry Reding > wrote: > > > > The new PWM subsystem aims at collecting all implementations of the > > legacy PWM API and to eventually replace it completely. The subsystem > > has been in developm

Re: [PATCH] tmscsim: spin_unlock_irq in interrupt handler fix

2012-07-31 Thread Guennadi Liakhovetski
Wow, been ages since the last patch to this driver has hit my mail:-) On Sat, 21 Jul 2012, Denis Efremov wrote: > The replacement of spin_lock_irq/spin_unlock_irq pair in interrupt > handler by spin_lock_irqsave/spin_lock_irqrestore pair. > > Found by Linux Driver Verification project (linuxtest

Re: About dma_sync_single_for_{cpu,device}

2012-07-31 Thread Karl Beldan
On Tue, Jul 31, 2012 at 09:34:01AM +0200, Clemens Ladisch wrote: > Karl Beldan wrote: > > On 7/31/12, Clemens Ladisch wrote: > >> Karl Beldan wrote: > >>> To tx a chunk of data from the SoC => network device, we : > >>> - prepare a buffer with a leading header embedding a pattern, > >>> - trigger

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Alex Courbot
Hi Simon, On 07/30/2012 08:00 PM, Simon Glass wrote: For the delay, I think milliseconds is reasonable. I suppose there is no reasonable need for microseconds? I don't see any need for microseconds myself - anybody sees use for finer-grained delays? Btw, I noticed I was using mdelay instead

Re: [PATCH RESEND v3] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-07-31 Thread kyungsik.lee
On 2012-07-31 오후 4:19, S, Venkatraman wrote: On Tue, Jul 31, 2012 at 7:30 AM, Kyungsik Lee wrote: It is expected that Extended CSD register(the size of this register is larger than CID/CSD) will be referenced more frequently as more fields have been added to Extended CSD and it seems that it is

Re: [PATCH v4 0/7] ZPODD patches

2012-07-31 Thread James Bottomley
On Tue, 2012-07-31 at 10:40 +0800, Aaron Lu wrote: > Hi James, > > Any chance of these patches get merged into 3.6? Not 3.6 given that the series was only finalised a week into the merge window. Generally because of the merge frenzy, linux-next doesn't work very well during this period so there'

Re: [PATCH V3 3/3] virtio-blk: Add bio-based IO path for virtio-blk

2012-07-31 Thread Asias He
On 07/30/2012 09:43 PM, Christoph Hellwig wrote: On Mon, Jul 30, 2012 at 12:43:12PM +0800, Asias He wrote: I think we can add REQ_FLUSH & REQ_FUA support to bio path and that deserves another patch. Adding it is a requirement for merging the code. OK. Will add that. -- Asias -- To unsubscr

Re: [Announce] Checkpoint-restore tool v0.1

2012-07-31 Thread Pavel Emelyanov
On 07/30/2012 02:42 PM, richard -rw- weinberger wrote: > On Mon, Jul 23, 2012 at 10:53 AM, Pavel Emelyanov wrote: >> This project is an attempt to implement the checkpoint-restore functionality >> for processes and containers without driving too much code into the kernel >> tree, >> but putting t

Re: [Announce] Checkpoint-restore tool v0.1

2012-07-31 Thread richard -rw- weinberger
On Tue, Jul 31, 2012 at 10:53 AM, Pavel Emelyanov wrote: > On 07/30/2012 02:42 PM, richard -rw- weinberger wrote: >> On Mon, Jul 23, 2012 at 10:53 AM, Pavel Emelyanov >> wrote: >>> This project is an attempt to implement the checkpoint-restore functionality >>> for processes and containers witho

Re: [vfs:fsfreeze] umount BUG: sleeping function called from invalid context

2012-07-31 Thread Al Viro
On Tue, Jul 31, 2012 at 04:38:39PM +0800, Fengguang Wu wrote: > Hi Jan, > > Here is another warning for the fs freeze series. > > tree: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fsfreeze > head: 7aff72a61f45337d83ab2b7fb16d7b542db16ad8 > commit: bc875c078f72993e6c44925cdedef5

Re: [Announce] Checkpoint-restore tool v0.1

2012-07-31 Thread Cyrill Gorcunov
On Tue, Jul 31, 2012 at 10:57:58AM +0200, richard -rw- weinberger wrote: > > > >> crtools seem to use ptrace() to execute parasite system calls. > >> AFAIK this will only work if the target process is currently not > >> ptraced() by another process. > >> > > > > Yup, exactly. > > Dammit, I hoped w

Re: [Announce] Checkpoint-restore tool v0.1

2012-07-31 Thread Pavel Emelyanov
On 07/31/2012 12:57 PM, richard -rw- weinberger wrote: > On Tue, Jul 31, 2012 at 10:53 AM, Pavel Emelyanov wrote: >> On 07/30/2012 02:42 PM, richard -rw- weinberger wrote: >>> On Mon, Jul 23, 2012 at 10:53 AM, Pavel Emelyanov >>> wrote: This project is an attempt to implement the checkpoint

Re: About dma_sync_single_for_{cpu,device}

2012-07-31 Thread Russell King - ARM Linux
On Tue, Jul 31, 2012 at 08:45:57AM +0200, Karl Beldan wrote: > I was expecting the following to work: > addr = dma_map_single(dev, buffer, size, DMA_TO_DEVICE); > dma_sync_single_for_device(dev, buffer, pattern_size, DMA_FROM_DEVICE); > dev_send(buffer); > // wait for irq (d

Re: [vfs:fsfreeze] umount BUG: sleeping function called from invalid context

2012-07-31 Thread Fengguang Wu
On Tue, Jul 31, 2012 at 09:58:15AM +0100, Al Viro wrote: > On Tue, Jul 31, 2012 at 04:38:39PM +0800, Fengguang Wu wrote: > > Hi Jan, > > > > Here is another warning for the fs freeze series. > > > > tree: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fsfreeze > > head: 7aff72a61f

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Thierry Reding
On Tue, Jul 31, 2012 at 05:37:07PM +0900, Alex Courbot wrote: > Hi Simon, > > On 07/30/2012 08:00 PM, Simon Glass wrote: > >For the delay, I think milliseconds is reasonable. I suppose there is > >no reasonable need for microseconds? > > I don't see any need for microseconds myself - anybody sees

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Thierry Reding
On Mon, Jul 30, 2012 at 04:47:06PM +0100, Mark Brown wrote: > On Mon, Jul 30, 2012 at 10:44:29AM -0500, Rob Herring wrote: > > On 07/27/2012 07:05 AM, Alexandre Courbot wrote: > > > > + power-on-sequence { > > > + regulator@0 { > > > + id = "power";

Re: [PATCH v2] ACPI processor: Fix a typo error in commit 99b725084

2012-07-31 Thread Rafael J. Wysocki
On Tuesday, July 31, 2012, Feng Tang wrote: > In commit 99b725084 "ACPI processor hotplug: Delay acpi_processor_start() > call for hotplugged cores", acpi_processor_hotplug(pr) was wrongly replaced > by acpi_processor_cst_has_changed() inside the acpi_cpu_soft_notify(). This > patch will restore it

[PATCH 1/3] drivers/media/radio/radio-timb.c: use devm_ functions

2012-07-31 Thread Julia Lawall
From: Julia Lawall The various devm_ functions allocate memory that is released when a driver detaches. This patch uses these functions for data that is allocated in the probe function of a platform device and is only freed in the remove function. Signed-off-by: Julia Lawall --- drivers/medi

[PATCH 3/3] drivers/media/radio/radio-wl1273.c: use devm_ functions

2012-07-31 Thread Julia Lawall
From: Julia Lawall The various devm_ functions allocate memory that is released when a driver detaches. This patch uses these functions for data that is allocated in the probe function of a platform device and is only freed in the remove function. In two cases, the original memory allocation fu

[PATCH 2/3] drivers/media/radio/radio-si4713.c: use devm_ functions

2012-07-31 Thread Julia Lawall
From: Julia Lawall The various devm_ functions allocate memory that is released when a driver detaches. This patch uses these functions for data that is allocated in the probe function of a platform device and is only freed in the remove function. Signed-off-by: Julia Lawall --- drivers/medi

Re: [Announce] Checkpoint-restore tool v0.1

2012-07-31 Thread richard -rw- weinberger
On Tue, Jul 31, 2012 at 11:07 AM, Pavel Emelyanov wrote: > Sorry :( However, if you can help with patches on that issue that would be > highly appreciated :) > Yeah, but I fear it's not that easy. We'd have to change crtools to work without ptrace(). -- Thanks, //richard -- To unsubscribe from

Re: [vfs:fsfreeze] umount BUG: sleeping function called from invalid context

2012-07-31 Thread Fengguang Wu
On Tue, Jul 31, 2012 at 05:13:26PM +0800, Fengguang Wu wrote: > On Tue, Jul 31, 2012 at 09:58:15AM +0100, Al Viro wrote: > > On Tue, Jul 31, 2012 at 04:38:39PM +0800, Fengguang Wu wrote: > > > Hi Jan, > > > > > > Here is another warning for the fs freeze series. > > > > > > tree: git://git.kern

Re: [PATCH] floppy: remove duplicated flag FD_RAW_NEED_DISK

2012-07-31 Thread Jiri Kosina
On Sat, 28 Jul 2012, Fengguang Wu wrote: > Fix coccinelle warning (without behavior change): > > drivers/block/floppy.c:2518:32-48: duplicated argument to & or | > > Signed-off-by: Fengguang Wu > --- > > diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c > index 553f43a..0fcbe14 1006

Re: [vfs:for-next] mnt_want_write: possible circular locking dependency detected

2012-07-31 Thread Al Viro
On Tue, Jul 31, 2012 at 04:29:43PM +0800, Fengguang Wu wrote: > Hi Jan, > > I caught the following warning at this commit. Note that the head > commit actually boots OK, so it may either be not 100% reproduciable, > or get fixed somewhere in your patchset. In the next commit, actually. I'm still

Re: [PATCH can-next v3 1/2] can: add tx/rx LED trigger support

2012-07-31 Thread Wolfgang Grandegger
Hi Fabio, On 07/30/2012 09:20 PM, Fabio Baltieri wrote: > This patch implements the functions to add two LED triggers, named > -tx and -rx, to a canbus device driver. > > Triggers are called from specific handlers by each CAN device driver and > can be disabled altogether with a Kconfig option. >

Re: [GIT] floppy

2012-07-31 Thread Jiri Kosina
On Wed, 18 Jul 2012, Jiri Kosina wrote: > please pull from > > git://git.kernel.org/pub/scm/linux/kernel/git/jikos/floppy.git upstream > > to receive the patch below that should go into 3.6. Thanks. > > Andi Kleen (1): > floppy: Run floppy initialization asynchronous > > drivers/block

Re: [GIT] floppy

2012-07-31 Thread Jens Axboe
On 07/31/2012 11:46 AM, Jiri Kosina wrote: > On Wed, 18 Jul 2012, Jiri Kosina wrote: > >> please pull from >> >> git://git.kernel.org/pub/scm/linux/kernel/git/jikos/floppy.git upstream >> >> to receive the patch below that should go into 3.6. Thanks. >> >> Andi Kleen (1): >> floppy: Run fl

Re: x86/mm: Limit 2/4M size calculation to x86_32

2012-07-31 Thread Stefan Bader
On 25.07.2012 15:40, Avi Kivity wrote: > On 07/25/2012 04:24 PM, Stefan Bader wrote: ... ifdef CONFIG_X86_32 /* * Don't use a large page for the first 2/4MB of memory * because there are often fixed size MTRRs in there * and overlappi

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Alex Courbot
On 07/30/2012 08:33 PM, Thierry Reding wrote: +You will need an instance of power_seq_resources to keep track of the resources +that are already allocated. On success, the function returns a devm allocated +resolved sequence that is ready to be passed to power_seq_run(). In case of +failure, and

What is the use of RLIMIT_NICE ?

2012-07-31 Thread Jeroen Ooms
I am using prlimit in Ubuntu to do some resource restrictions in my sandbox which has been very helpful. However, I am not quite sure what to do with RLIMIT_NICE. The docs say: RLIMIT_NICE: Specifies a ceiling to which the process's nice value can be raised using setpriority(2) or nice(2). Howeve

Re: [GIT PULL] LED CPU trigger driver and ARM LED code consolidation

2012-07-31 Thread Bryan Wu
On Fri, Jun 8, 2012 at 4:20 PM, Olof Johansson wrote: > Hi, > > On Wed, Jun 6, 2012 at 11:12 PM, Bryan Wu wrote: >> Hi Arnd and Olof, >> >> Is there any chance to pull this LED code into ARM SoC tree? >> >> Thanks, >> -Bryan >> >> On Mon, Jun 4, 2012 at 3:25 PM, Bryan Wu wrote: >>> Hi Arnd and O

Re: [Announce] Checkpoint-restore tool v0.1

2012-07-31 Thread Pavel Emelyanov
On 07/31/2012 01:29 PM, richard -rw- weinberger wrote: > On Tue, Jul 31, 2012 at 11:07 AM, Pavel Emelyanov wrote: >> Sorry :( However, if you can help with patches on that issue that would be >> highly appreciated :) >> > > Yeah, but I fear it's not that easy. > We'd have to change crtools to wor

Re: [PATCH 0/2][RFC] Better handling of insane CMOS values

2012-07-31 Thread James Courtier-Dutton
On 31 July 2012 07:35, John Stultz wrote: > So CAI Qian noticed recent boot trouble on a machine that had its CMOS > clock configured for the year 8200. > See: http://lkml.org/lkml/2012/7/29/188 > > While running with a crazy CMOS clock isn't advised, and a simple > "don't do that" might be reason

Re: x86/mm: Limit 2/4M size calculation to x86_32

2012-07-31 Thread Avi Kivity
On 07/31/2012 12:48 PM, Stefan Bader wrote: > On 25.07.2012 15:40, Avi Kivity wrote: >> On 07/25/2012 04:24 PM, Stefan Bader wrote: > ... > ifdef CONFIG_X86_32 > /* > * Don't use a large page for the first 2/4MB of memory > * because there are often fix

Re: [Announce] Checkpoint-restore tool v0.1

2012-07-31 Thread richard -rw- weinberger
On Tue, Jul 31, 2012 at 11:54 AM, Pavel Emelyanov wrote: >> Yeah, but I fear it's not that easy. >> We'd have to change crtools to work without ptrace(). > > Well, this is hard. Using ptrace saved us from having many special-purpose > APIs for dumping various stuff (there will be an article about

[PATCH] drivers/iio/adc/at91_adc.c: use devm_ functions

2012-07-31 Thread Julia Lawall
From: Julia Lawall The various devm_ functions allocate memory that is released when a driver detaches. This patch uses these functions for data that is allocated in the probe function of a platform device and is only freed in the remove function. The call to platform_get_resource(pdev, IORESOU

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Alex Courbot
On 07/31/2012 06:13 PM, Thierry Reding wrote: I don't see any need for microseconds myself - anybody sees use for finer-grained delays? Btw, I noticed I was using mdelay instead of msleep - caught and fixed that. You might want to take a look at Documentation/timers/timers-howto.txt. msleep()

Re: [PATCH can-next v3 1/2] can: add tx/rx LED trigger support

2012-07-31 Thread Marc Kleine-Budde
On 07/31/2012 10:46 AM, Wolfgang Grandegger wrote: > Hi Fabio, > > On 07/30/2012 09:20 PM, Fabio Baltieri wrote: >> This patch implements the functions to add two LED triggers, named >> -tx and -rx, to a canbus device driver. >> >> Triggers are called from specific handlers by each CAN device driv

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Alex Courbot
On 07/31/2012 07:26 AM, Stephen Warren wrote: On 07/30/2012 09:44 AM, Rob Herring wrote: On 07/27/2012 07:05 AM, Alexandre Courbot wrote: Some device drivers (panel backlights especially) need to follow precise sequences for powering on and off, involving gpios, regulators, PWMs with a precise

Re: [Announce] Checkpoint-restore tool v0.1

2012-07-31 Thread Cyrill Gorcunov
On Tue, Jul 31, 2012 at 12:08:22PM +0200, richard -rw- weinberger wrote: > On Tue, Jul 31, 2012 at 11:54 AM, Pavel Emelyanov wrote: > >> Yeah, but I fear it's not that easy. > >> We'd have to change crtools to work without ptrace(). > > > > Well, this is hard. Using ptrace saved us from having man

Re: [GIT PULL] LED CPU trigger driver and ARM LED code consolidation

2012-07-31 Thread Russell King - ARM Linux
On Tue, Jul 31, 2012 at 05:53:41PM +0800, Bryan Wu wrote: > On Fri, Jun 8, 2012 at 4:20 PM, Olof Johansson wrote: > > Hi, > > > > On Wed, Jun 6, 2012 at 11:12 PM, Bryan Wu wrote: > >> Hi Arnd and Olof, > >> > >> Is there any chance to pull this LED code into ARM SoC tree? > >> > >> Thanks, > >> -

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Thierry Reding
On Tue, Jul 31, 2012 at 06:51:03PM +0900, Alex Courbot wrote: > On 07/30/2012 08:33 PM, Thierry Reding wrote: > >>+You will need an instance of power_seq_resources to keep track of the > >>resources > >>+that are already allocated. On success, the function returns a devm > >>allocated > >>+resolv

Re: [Announce] Checkpoint-restore tool v0.1

2012-07-31 Thread richard -rw- weinberger
On Tue, Jul 31, 2012 at 12:16 PM, Cyrill Gorcunov wrote: > On Tue, Jul 31, 2012 at 12:08:22PM +0200, richard -rw- weinberger wrote: >> On Tue, Jul 31, 2012 at 11:54 AM, Pavel Emelyanov >> wrote: >> >> Yeah, but I fear it's not that easy. >> >> We'd have to change crtools to work without ptrace()

Re: [Announce] Checkpoint-restore tool v0.1

2012-07-31 Thread Cyrill Gorcunov
On Tue, Jul 31, 2012 at 12:21:58PM +0200, richard -rw- weinberger wrote: > On Tue, Jul 31, 2012 at 12:16 PM, Cyrill Gorcunov wrote: > > On Tue, Jul 31, 2012 at 12:08:22PM +0200, richard -rw- weinberger wrote: > >> On Tue, Jul 31, 2012 at 11:54 AM, Pavel Emelyanov > >> wrote: > >> >> Yeah, but I

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Alex Courbot
On 07/31/2012 07:45 AM, Stephen Warren wrote: +- Delay to wait before performing the action, +- Delay to wait after performing the action. I don't see a need to have a delay both before and after an action; except at the start of the sequence, step n's post-delay is at the same point in the seq

Re: [PATCH 1/1] xfs: check for possible overflow in xfs_ioc_trim

2012-07-31 Thread Tomas Racek
> > + > > + if (range.start > ULLONG_MAX - BBSIZE) > > + return -XFS_ERROR(EINVAL); > > + > > There's no point checking for overflow on the range start - what we > need to check is whether it is larger than the size of the > filesystem. We do that after the conversion of range.start to

Re: linux-next: manual merge of the akpm tree with the nfs tree

2012-07-31 Thread Mel Gorman
On Tue, Jul 31, 2012 at 02:24:41PM +1000, Stephen Rothwell wrote: > Hi Andrew, > > Today's linux-next merge of the akpm tree got a conflict in > net/sunrpc/xprtsock.c between commit 5cf02d09b50b ("nfs: skip commit in > releasepage if we're freeing memory for fs-related reasons") from the nfs > tre

[PATCH v3 00/10] mm: vma->vm_flags diet

2012-07-31 Thread Konstantin Khlebnikov
This patchset kills some VM_* flags in vma->vm_flags, as result there appears five free bits. Changes since v2 [ https://lkml.org/lkml/2012/4/7/67 ] * killing VM_EXECUTABLE combined back into single patch * new (the biggest one) patch which kills VM_RESERVED --- Konstantin Khlebnikov (8):

[PATCH v3 01/10] x86, pat: remove the dependency on 'vm_pgoff' in track/untrack pfn vma routines

2012-07-31 Thread Konstantin Khlebnikov
From: Suresh Siddha 'pfn' argument for track_pfn_vma_new() can be used for reserving the attribute for the pfn range. No need to depend on 'vm_pgoff' Similarly, untrack_pfn_vma() can depend on the 'pfn' argument if it is non-zero or can use follow_phys() to get the starting value of the pfn rang

[PATCH v3 02/10] x86, pat: separate the pfn attribute tracking for remap_pfn_range and vm_insert_pfn

2012-07-31 Thread Konstantin Khlebnikov
From: Suresh Siddha With PAT enabled, vm_insert_pfn() looks up the existing pfn memory attribute and uses it. Expectation is that the driver reserves the memory attributes for the pfn before calling vm_insert_pfn(). remap_pfn_range() (when called for the whole vma) will setup a new attribute (ba

[PATCH v3 03/10] mm, x86, pat: rework linear pfn-mmap tracking

2012-07-31 Thread Konstantin Khlebnikov
This patch replaces generic vma-flag VM_PFN_AT_MMAP with x86-only VM_PAT. We can toss mapping address from remap_pfn_range() into track_pfn_vma_new(), and collect all PAT-related logic together in arch/x86/. This patch also restores orignal frustration-free is_cow_mapping() check in remap_pfn_ran

[PATCH v3 04/10] mm: introduce arch-specific vma flag VM_ARCH_1

2012-07-31 Thread Konstantin Khlebnikov
This patch combines several arch-specific vma flags into one. before patch: 0x0200 0x0100 0x2000 0x4000 x86 VM_NOHUGEPAGE VM_HUGEPAGE - VM_PAT powerpc - - VM_SAO - parisc VM_GROWSUP -

[PATCH v3 05/10] mm: kill vma flag VM_INSERTPAGE

2012-07-31 Thread Konstantin Khlebnikov
This patch merges VM_INSERTPAGE into VM_MIXEDMAP. VM_MIXEDMAP VMA can mix pure-pfn ptes, special ptes and normal ptes. Now copy_page_range() always copies VM_MIXEDMAP VMA on fork like VM_PFNMAP. If driver populates whole VMA at mmap() it probably not expects page-faults. This patch removes specia

[PATCH v3 06/10] mm: kill vma flag VM_CAN_NONLINEAR

2012-07-31 Thread Konstantin Khlebnikov
This patch moves actual ptes filling for non-linear file mappings into special vma operation: ->remap_pages(). File system must implement this method to get non-linear mappings support, if it uses filemap_fault() then generic_file_remap_pages() can be used. Now device drivers can implement this m

RE: [PATCH 13/17] Tools: hv: Implement the KVP verb - KVP_OP_SET_IP_INFO

2012-07-31 Thread KY Srinivasan
> -Original Message- > From: Ben Hutchings [mailto:b...@decadent.org.uk] > Sent: Monday, July 30, 2012 3:19 PM > To: KY Srinivasan > Cc: Olaf Hering; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; a...@canonical.com; net...@vger.kernel.org > Subj

[PATCH v3 07/10] mm: use mm->exe_file instead of first VM_EXECUTABLE vma->vm_file

2012-07-31 Thread Konstantin Khlebnikov
Some security modules and oprofile still uses VM_EXECUTABLE for retrieving task's executable file, after this patch they will use mm->exe_file directly. mm->exe_file protected with mm->mmap_sem, so locking stays the same. Signed-off-by: Konstantin Khlebnikov Acked-by: Chris Metcalf#arch/tile

[PATCH v3 09/10] mm: prepare VM_DONTDUMP for using in drivers

2012-07-31 Thread Konstantin Khlebnikov
This patch renames VM_NODUMP into VM_DONTDUMP: this name matches to other negative flags: VM_DONTEXPAND, VM_DONTCOPY. Currently this flag used only for sys_madvise next patch will use it for replacing outdated flag VM_RESERVED. Also this patch forbids madvise(MADV_DODUMP) for special kernel mappin

[PATCH v3 10/10] mm: kill vma flag VM_RESERVED and mm->reserved_vm counter

2012-07-31 Thread Konstantin Khlebnikov
A long time ago, in v2.4, VM_RESERVED kept swapout process off VMA, currently it lost original meaning but still has some effects: | effect | alternative flags -++- 1| account as reserved_vm | VM_IO 2| skip in cor

[PATCH v3 08/10] mm: kill vma flag VM_EXECUTABLE and mm->num_exe_file_vmas

2012-07-31 Thread Konstantin Khlebnikov
Currently the kernel sets mm->exe_file during sys_execve() and then tracks number of vmas with VM_EXECUTABLE flag in mm->num_exe_file_vmas, as soon as this counter drops to zero kernel resets mm->exe_file to NULL. Plus it resets mm->exe_file at last mmput() when mm->mm_users drops to zero. VMA wit

Re: [PATCH] misc/pch_phub: Enable UART clock setting by module parameter

2012-07-31 Thread Tomoya MORINAGA
On Wed, Jul 25, 2012 at 10:31 PM, Arnd Bergmann wrote: > What I think should work better here would be to use the clk API, > so that the phub driver registers a 'struct clk' using > (I assume) clk_register_divider_table(). > The UART driver would then call clk_get() to find that clk for > the uart

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

2012-07-31 Thread Michel Lespinasse
On Mon, Jul 30, 2012 at 9:40 PM, Stephen Rothwell wrote: > Hi Andrew, > > After merging the akpm tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > net/ceph/osd_client.c: In function 'ceph_osdc_alloc_request': > net/ceph/osd_client.c:216:2: error: implicit declaration of

[PATCH v2] UDF: Add support for O_DIRECT

2012-07-31 Thread Ian Abbott
Add support for the O_DIRECT flag. There are two cases to deal with: 1. Small files stored in the ICB (inode control block?): just return 0 from the new udf_adinicb_direct_IO() handler to fall back to buffered I/O. For direct writes, there is a "gotcha" to deal with when generic_file_direct_writ

[PATCH RESEND v3 00/10] mm: vma->vm_flags diet

2012-07-31 Thread Konstantin Khlebnikov
RESEND: Sorry, I forgot to add some important people into CC. This patchset kills some VM_* flags in vma->vm_flags, as result there appears five free bits. Changes since v2 [ https://lkml.org/lkml/2012/4/7/67 ] * killing VM_EXECUTABLE combined back into single patch * new (the biggest one) patch

[PATCH v3 01/10] x86, pat: remove the dependency on 'vm_pgoff' in track/untrack pfn vma routines

2012-07-31 Thread Konstantin Khlebnikov
From: Suresh Siddha 'pfn' argument for track_pfn_vma_new() can be used for reserving the attribute for the pfn range. No need to depend on 'vm_pgoff' Similarly, untrack_pfn_vma() can depend on the 'pfn' argument if it is non-zero or can use follow_phys() to get the starting value of the pfn rang

[PATCH v3 02/10] x86, pat: separate the pfn attribute tracking for remap_pfn_range and vm_insert_pfn

2012-07-31 Thread Konstantin Khlebnikov
From: Suresh Siddha With PAT enabled, vm_insert_pfn() looks up the existing pfn memory attribute and uses it. Expectation is that the driver reserves the memory attributes for the pfn before calling vm_insert_pfn(). remap_pfn_range() (when called for the whole vma) will setup a new attribute (ba

[PATCH v3 04/10] mm: introduce arch-specific vma flag VM_ARCH_1

2012-07-31 Thread Konstantin Khlebnikov
This patch combines several arch-specific vma flags into one. before patch: 0x0200 0x0100 0x2000 0x4000 x86 VM_NOHUGEPAGE VM_HUGEPAGE - VM_PAT powerpc - - VM_SAO - parisc VM_GROWSUP -

[PATCH v3 06/10] mm: kill vma flag VM_CAN_NONLINEAR

2012-07-31 Thread Konstantin Khlebnikov
This patch moves actual ptes filling for non-linear file mappings into special vma operation: ->remap_pages(). File system must implement this method to get non-linear mappings support, if it uses filemap_fault() then generic_file_remap_pages() can be used. Now device drivers can implement this m

[PATCH v3 07/10] mm: use mm->exe_file instead of first VM_EXECUTABLE vma->vm_file

2012-07-31 Thread Konstantin Khlebnikov
Some security modules and oprofile still uses VM_EXECUTABLE for retrieving task's executable file, after this patch they will use mm->exe_file directly. mm->exe_file protected with mm->mmap_sem, so locking stays the same. Signed-off-by: Konstantin Khlebnikov Acked-by: Chris Metcalf#arch/tile

[PATCH v3 08/10] mm: kill vma flag VM_EXECUTABLE and mm->num_exe_file_vmas

2012-07-31 Thread Konstantin Khlebnikov
Currently the kernel sets mm->exe_file during sys_execve() and then tracks number of vmas with VM_EXECUTABLE flag in mm->num_exe_file_vmas, as soon as this counter drops to zero kernel resets mm->exe_file to NULL. Plus it resets mm->exe_file at last mmput() when mm->mm_users drops to zero. VMA wit

[PATCH v3 10/10] mm: kill vma flag VM_RESERVED and mm->reserved_vm counter

2012-07-31 Thread Konstantin Khlebnikov
A long time ago, in v2.4, VM_RESERVED kept swapout process off VMA, currently it lost original meaning but still has some effects: | effect | alternative flags -++- 1| account as reserved_vm | VM_IO 2| skip in cor

[PATCH v3 09/10] mm: prepare VM_DONTDUMP for using in drivers

2012-07-31 Thread Konstantin Khlebnikov
This patch renames VM_NODUMP into VM_DONTDUMP: this name matches to other negative flags: VM_DONTEXPAND, VM_DONTCOPY. Currently this flag used only for sys_madvise next patch will use it for replacing outdated flag VM_RESERVED. Also this patch forbids madvise(MADV_DODUMP) for special kernel mappin

[PATCH v3 05/10] mm: kill vma flag VM_INSERTPAGE

2012-07-31 Thread Konstantin Khlebnikov
This patch merges VM_INSERTPAGE into VM_MIXEDMAP. VM_MIXEDMAP VMA can mix pure-pfn ptes, special ptes and normal ptes. Now copy_page_range() always copies VM_MIXEDMAP VMA on fork like VM_PFNMAP. If driver populates whole VMA at mmap() it probably not expects page-faults. This patch removes specia

[PATCH v3 03/10] mm, x86, pat: rework linear pfn-mmap tracking

2012-07-31 Thread Konstantin Khlebnikov
This patch replaces generic vma-flag VM_PFN_AT_MMAP with x86-only VM_PAT. We can toss mapping address from remap_pfn_range() into track_pfn_vma_new(), and collect all PAT-related logic together in arch/x86/. This patch also restores orignal frustration-free is_cow_mapping() check in remap_pfn_ran

Re: [PATCH 2/2] xhci: EHCI/XHCI ports switching on Intense-PC.

2012-07-31 Thread Denis Turischev
Hi Sarah, Attached dmidecode output of Intense-PC. Denis Turischev On 07/31/2012 01:34 AM, Sarah Sharp wrote: > Hi Denis, > > Can you send me the output of `sudo dmidecode`? I'd like to see if I > can make a more general patch apply to the Intense-PC. > > Sarah Sharp > # dmidecode 2.11 SMBI

Re: [PATCH V2] dma: tegra: enable/disable dma clock

2012-07-31 Thread Vinod Koul
On Fri, 2012-07-20 at 13:31 +0530, Laxman Dewangan wrote: > Enable the DMA clock when allocating channel and > disable clock when freeing channels. > > Signed-off-by: Laxman Dewangan Thanks Applied to for-3.7 -- ~Vinod -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Thierry Reding
On Tue, Jul 31, 2012 at 07:11:41PM +0900, Alex Courbot wrote: > On 07/31/2012 06:13 PM, Thierry Reding wrote: > >>I don't see any need for microseconds myself - anybody sees use for > >>finer-grained delays? > >> > >>Btw, I noticed I was using mdelay instead of msleep - caught and fixed that. > > >

Re: [PATCH 1/5] user_hooks: New user hooks subsystem

2012-07-31 Thread Frederic Weisbecker
On Tue, Jul 31, 2012 at 09:06:40AM +0200, Ingo Molnar wrote: > > * Frederic Weisbecker wrote: > > > On Mon, Jul 30, 2012 at 05:08:12PM +0200, Peter Zijlstra wrote: > > > On Fri, 2012-07-27 at 17:40 +0200, Frederic Weisbecker wrote: > > > > +++ b/kernel/user_hooks.c > > > > @@ -0,0 +1,56 @@ > > >

  1   2   3   4   5   6   7   >