Re: new execve/kernel_thread design

2012-11-16 Thread Michal Simek
2012/11/15 Al Viro : > On Thu, Nov 15, 2012 at 05:41:16PM +0100, Michal Simek wrote: >> Here is the branch based on rc5 (information below) >> and here is giweb. >> http://developer.petalogix.com/git/gitweb.cgi?p=linux-2.6-microblaze.git;a=shortlog;h=refs/heads/viro/arch-microblaze-rc5 >> >> I have

Re: [PATCH v8 1/3] Runtime Interpreted Power Sequences

2012-11-16 Thread Srinivas KANDAGATLA
Hi Alex, I am looking forward for this feature to be mainlined, but I have comment on the way the types are tied up to power seq infrastructure. I know your use case are limited to using type "delay", "pwm" and "gpio" and "regulator", However there are instances where the devices can be powered up

Re: [PATCH v2 1/3] gpio / ACPI: add ACPI support

2012-11-16 Thread Mika Westerberg
On Fri, Nov 16, 2012 at 08:54:48AM +0200, Mika Westerberg wrote: > On Fri, Nov 16, 2012 at 02:34:22AM +0100, Rafael J. Wysocki wrote: > > On Thursday, November 15, 2012 01:03:15 PM Mika Westerberg wrote: > > > From: Mathias Nyman > > > > > > Add support for translating ACPI GPIO pin numbers to Li

MDaemon Notification -- Attachment Removed

2012-11-16 Thread Postmaster
--- MDaemon has detected restricted attachments within an email message --- >From : linux-kernel@vger.kernel.org To: yi...@yilin.com Subject : Returned mai

Re: [patch,v3 00/10] make I/O path allocations more numa-friendly

2012-11-16 Thread Bart Van Assche
On 11/09/12 20:17, Jeff Moyer wrote: This patch set makes memory allocations for data structures used in the I/O path more numa friendly by allocating them from the same numa node as the storage device. I've only converted a handful of drivers at this point. My testing showed that, for workload

Re: [PATCH 13/14] misc: tsl2550: Remove redundant check on unsigned variable

2012-11-16 Thread Arnd Bergmann
On Friday 16 November 2012, Tushar Behera wrote: > No need to check whether unsigned variable is less than 0. > > CC: Arnd Bergmann > Signed-off-by: Tushar Behera Acked-by: Arnd Bergmann -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majo

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

2012-11-16 Thread Yoshihiro YUNOMAE
Hi Marcelo, Thank you for commenting on my patch set. (2012/11/16 12:19), Marcelo Tosatti wrote: On Wed, Nov 14, 2012 at 10:36:21AM +0900, Yoshihiro YUNOMAE wrote: [...] In this summary, I suggest the patch which TSC offset for each guest can be output on the host. The guest TSC can change

Re: [PATCH v2 1/3] gpio / ACPI: add ACPI support

2012-11-16 Thread Mika Westerberg
On Fri, Nov 16, 2012 at 10:05:49AM +0200, Mika Westerberg wrote: > > One more thing, sometimes we want to assign the handle like in the case of > SPI controller driver we set the master->dev.acpi_handle. In that case we > can't use DEVICE_ACPI_HANDLE() as is. Should we just do something like: > >

Re: [PATCH] dt: platform: Extract device name from device tree blob

2012-11-16 Thread lee.jo...@linaro.org
On Thu, 15 Nov 2012, Per Förlin wrote: > On 11/15/2012 04:52 PM, Grant Likely wrote: > > On Mon, 12 Nov 2012 23:54:40 +0100, Per Förlin > > wrote: > >> On 11/12/2012 04:20 PM, Grant Likely wrote: > >>> On Mon, Nov 12, 2012 at 2:59 PM, Per Forlin > >>> wrote: > Add support to extract devi

Re: [PATCH] ARM: add get_user() support for 8 byte types

2012-11-16 Thread Arnd Bergmann
On Thursday 15 November 2012, Rob Clark wrote: > > From: Rob Clark > > A new atomic modeset/pageflip ioctl being developed in DRM requires > get_user() to work for 64bit types (in addition to just put_user()). > > v1: original > v2: pass correct size to check_uaccess, and better handling of nar

[PATCH v2] PCI-AER: Do not report successful error recovery for devices with AER-unaware drivers

2012-11-16 Thread Pandarathil, Vijaymohan R
When an error is detected on a PCIe device which does not have an AER-aware driver, prevent AER infrastructure from reporting successful error recovery. This is because the report_error_detected() function that gets called in the first phase of recovery process allows forward progress even when th

Re: [PATCH] usb: dwc3: core: move dwc3_cache_hwparams before dwc3_alloc_event_buffers

2012-11-16 Thread Felipe Balbi
Hi, On Fri, Nov 16, 2012 at 12:07:54PM +0530, Kishon Vijay Abraham I wrote: > commit 392142 moved event buffer allocation out of dwc3_core_init() but > event buffer allocation uses the cached copy of hwparams to determine > the number of event buffers and the caching is done in dwc3_core_init. > S

Re: [PATCH 0/9 v4] use efficient this_cpu_* helper

2012-11-16 Thread Shan Wei
Hi Tejun Heo: Tejun Heo said, at 2012/11/15 22:53: > On Thu, Nov 15, 2012 at 02:19:38PM +, Christoph Lameter wrote: >> Tejon: Could you pick up this patchset? > > Sure, but, Shan, when posting patchset, please make the patches > replies to the head message; otherwise, it's pretty difficult to

Re: [PATCH v8 1/3] Runtime Interpreted Power Sequences

2012-11-16 Thread Alex Courbot
Hi Srinivas, On Friday 16 November 2012 15:58:29 Srinivas KANDAGATLA wrote: > Hi Alex, > I am looking forward for this feature to be mainlined, *cough* Ack *cough* :) > but I have > comment on the way the types are tied up to power seq infrastructure. > I know your use case are limited to using

[PATCH v6] staging: ste_rmi4: Convert to Type-B support

2012-11-16 Thread Alexandra Chin
Convert to MT-B because Synaptics touch devices are capable of tracking identifiable fingers. Signed-off-by: Alexandra Chin --- This patch was tested on Pandaboard. Changes from v6: - Incorporated Henrik's review comments *remove irrelevant changes within the patch Changes fro

Re: [PATCH v3 6/9] rcu: use __this_cpu_read helper instead of per_cpu_ptr(p, raw_smp_processor_id())

2012-11-16 Thread Shan Wei
Shan Wei said, at 2012/11/13 9:52: > From: Shan Wei > > Signed-off-by: Shan Wei > Acked-by: Christoph Lameter Paul, would you like to pick it up to your tree? > --- > no changes vs v3,v2. > --- > kernel/rcutree.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a

Re: [PATCH v4 7/9] trace: use this_cpu_ptr per-cpu helper

2012-11-16 Thread Shan Wei
Shan Wei said, at 2012/11/13 9:53: > From: Shan Wei > > typeof(&buffer) is a pointer to array of 1024 char, or char (*)[1024]. > But, typeof(&buffer[0]) is a pointer to char which match the return type of > get_trace_buf(). > As well-known, the value of &buffer is equal to &buffer[0]. > so retur

Re: [PATCH v4 4/9] net: openvswitch: use this_cpu_ptr per-cpu helper

2012-11-16 Thread Shan Wei
Shan Wei said, at 2012/11/13 9:52: > From: Shan Wei > > just use more faster this_cpu_ptr instead of per_cpu_ptr(p, > smp_processor_id()); > > > Signed-off-by: Shan Wei > Reviewed-by: Christoph Lameter Jesse Gross, would you like to pick it up to your tree? > --- > no changes vs v3,v2. >

[PATCH] backlight: lcd: return ENXIO when ops functions cannot be called

2012-11-16 Thread Jingoo Han
Previously, when ops functions cannot be called, lcd_show_contrast() and lcd_store_contrast() returned 0, instead of ENXIO. Thus, in this case, a local variable 'rc' for return value should be initialized as ENXIO, after kstrtoul() is called. Signed-off-by: Jingoo Han Cc: Richard Purdie --- dr

Re: [PATCH RESEND 3/4] pinctrl: at91: Prevent NULL dereference if of_match_device returns NULL

2012-11-16 Thread Nicolas Ferre
On 11/15/2012 11:00 AM, Jean-Christophe PLAGNIOL-VILLARD : > On 12:58 Thu 15 Nov , Axel Lin wrote: >> of_match_device() may return NULL. > this is not possible on at91 > > and I do a oups here as if we have a NULL pointer which means the driver is > wrong Well, okay, but it does not prevent f

Re: [PATCH v4 1/9] net: core: use this_cpu_ptr per-cpu helper

2012-11-16 Thread Shan Wei
Shan Wei said, at 2012/11/13 9:51: > From: Shan Wei > > flush_tasklet is a struct, not a pointer in percpu var. > so use this_cpu_ptr to get the member pointer. > > Signed-off-by: Shan Wei > Reviewed-by: Christoph Lameter David Miller, would you like to pick it up to your net-next tree? > -

Re: [PATCH v4 2/9] net: rds: use this_cpu_* per-cpu helper

2012-11-16 Thread Shan Wei
Shan Wei said, at 2012/11/13 9:52: > From: Shan Wei > > > Signed-off-by: Shan Wei > Reviewed-by: Christoph Lameter David Miller, would you like to pick it up to your net-next tree? > --- > v4: > 1. add missing __percpu annotations. > 2. [read|write]ing fields of struct rds_ib_cache_head >

Re: [PATCH v8 0/3] Runtime Interpreted Power Sequences

2012-11-16 Thread Thierry Reding
On Fri, Nov 16, 2012 at 03:38:20PM +0900, Alexandre Courbot wrote: > Hopefully the final series before the feature gets merged. Anton Vorontsov > kindly accepted to take it into his tree, so this series is mostly a call for > acks, tests and reviews notices before the merge window for 3.8 opens. If

Re: [PATCH 1/3, v5] AMD64 EDAC: Add muli-domain support

2012-11-16 Thread Daniel J Blueman
On 12/11/2012 21:24, Borislav Petkov wrote: On Mon, Nov 05, 2012 at 02:05:24PM +0800, Daniel J Blueman wrote: Fix the handling of memory controller detection to index the array of detected Northbridges, allowing memory controllers over multiple PCI domains in federated systems eg using Numascale

Re: [PATCH v8 2/3] pwm_backlight: use power sequences

2012-11-16 Thread Thierry Reding
On Fri, Nov 16, 2012 at 03:38:22PM +0900, Alexandre Courbot wrote: > Make use of the power sequences specified in the device tree or platform > data to control how the backlight is powered on and off. > > Signed-off-by: Alexandre Courbot > Reviewed-by: Stephen Warren Anton, I would normally ta

Re: [PATCH 1/8] mtd: diskonchip: don't warn about ARM architecture

2012-11-16 Thread Artem Bityutskiy
On Tue, 2012-11-06 at 22:55 +0100, Arnd Bergmann wrote: > Enabling the diskonchip drivers on most architectures results > in a pointless warning "#warning Unknown architecture for > DiskOnChip. No default probe locations defined". The driver > can in fact handle the default location already through

[PATCH 5/9] x86: Merge early_reserve_initrd for 32bit and 64bit

2012-11-16 Thread Yinghai Lu
They are the same, could move them out from head32/64.c to setup.c. We are using memblock, and it could handle overlapping properly, so we don't need to reserve some at first, and just need to make sure we reserve them before we are using memblock to find free mem to use. Signed-off-by: Yinghai L

[PATCH 8/9] x86: ramdisk info print with high bits.

2012-11-16 Thread Yinghai Lu
ramdisk could be loaded high now for 64bit. So need to print more digits for them. Signed-off-by: Yinghai Lu Cc: Matt Fleming --- arch/x86/kernel/setup.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index c2eb

[PATCH 1/9] x86, boot: Move lldt/ltr out of 64bit only path

2012-11-16 Thread Yinghai Lu
commit 08da5a2ca x86_64: Early segment setup for VT add lldt/ltr to clean more segments. but those code are put in code64, and it is using gdt that is only loaded from code32 path. that breaks booting with 64bit bootloader that does not go that code32 path, because they have different gdt.

[PATCH 9/9] x86: remove 1024g limitation for kexec buffer on 64bit

2012-11-16 Thread Yinghai Lu
could find buffer above that, remove that obsolete limitation. use MAXMEM instead. Tested on sytem more than 1024g ram. Signed-off-by: Yinghai Lu Cc: "Eric W. Biederman" --- arch/x86/include/asm/kexec.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/incl

[PATCH 3/9] x86, 64bit: set extra ident page table for whole kernel range

2012-11-16 Thread Yinghai Lu
Current when kernel is loaded above 1G, only [_text, _text+2M] is set up with extra ident page table. That is not enough, some variables that could be used early are out of that range. (like gdt...) Just set map with [_text, _end] for all text/data/bss/brk... Signed-off-by: Yinghai Lu Cc: "Eric

[PATCH 7/9] x86, boot: add field to support load bzImage and ramdisk high

2012-11-16 Thread Yinghai Lu
ext_ramdisk_image/size will record high 32bits for ramdisk info. code64_start_offset will be set for bzImage that support 64bit. Signed-off-by: Yinghai Lu Cc: Rob Landley Cc: Matt Fleming --- Documentation/x86/boot.txt |4 arch/x86/boot/header.S | 11 ++- ar

[PATCH 4/9] x86, 64bit: add support for loading kernel above 512G

2012-11-16 Thread Yinghai Lu
Current kernel is not allowed to be loaded above 512g, it thinks that address is too big. We only need to add one extra one spare page for needed level3 to point another 512g range. Need to check _text range and set level4 pg to point to that spare level3 page, and set level3 to point to level2 p

[PATCH 6/9] x86: add get_ramdisk_image/size

2012-11-16 Thread Yinghai Lu
There several places to find ramdisk early for reserving and relocating. use functions to make code more readable and consistent. later will add ext_ramdisk_image/size with those functions to support loading ramdisk above 4g. Signed-off-by: Yinghai Lu --- arch/x86/kernel/setup.c | 29 +++

[PATCH 0/9] x86, boot, 64bit: Add support for loading ramdisk and bzImage high

2012-11-16 Thread Yinghai Lu
Now we have limit kdump reseved under 896M, because kexec has the limitation. and also bzImage need to stay under 4g. To make kexec/kdump could use range above 4g, we need to make bzImage and ramdisk could be loaded above 4g. During booting bzImage will be unpacked on same postion and stay high.

[PATCH 2/9] x86: Add macro for 64bit entry for bzImage

2012-11-16 Thread Yinghai Lu
will use it with bzImage header. Signed-off-by: Yinghai Lu Cc: Matt Fleming --- arch/x86/boot/compressed/head_64.S |2 +- arch/x86/include/asm/boot.h|2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compress

[PATCH] powerpc, perf: Change PMU flag values representation from decimal to hex

2012-11-16 Thread Anshuman Khandual
Signed-off-by: Anshuman Khandual --- arch/powerpc/include/asm/perf_event_server.h | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/include/asm/perf_event_server.h b/arch/powerpc/include/asm/perf_event_server.h index 9710be3..e3f10bb 100644 -

Re: [PATCH] jffs2: Make handling of erase_completion_lock consistent in jffs2_do_reserve_space()

2012-11-16 Thread Artem Bityutskiy
On Mon, 2012-11-05 at 22:40 +0400, Alexey Khoroshilov wrote: > Users of jffs2_do_reserve_space() expect they still held > erase_completion_lock after call to it. But there is a path > where jffs2_do_reserve_space() leaves erase_completion_lock unlocked. > The patch fixes it. > > Found by Linux Dri

RE: [RFC] staging: ste_rmi4: merge into the main kernel tree

2012-11-16 Thread Alexandra Chin
Hi Dmitry, > > > Please have Greg commit the patch that Henrik reviewed to staging and > > > then work with Christopher Heiny group on getting the full featured > > > driver into mainline. Thanks for your reminding, final patch has been re-sent to staging maintainer. > In this case you need to e

Re: [PATCH v8 1/3] Runtime Interpreted Power Sequences

2012-11-16 Thread Srinivas KANDAGATLA
On 16/11/12 08:31, Alex Courbot wrote: > Hi Srinivas, > > On Friday 16 November 2012 15:58:29 Srinivas KANDAGATLA wrote: >> Hi Alex, >> I am looking forward for this feature to be mainlined, > *cough* Ack *cough* :) :-) >> but I have >> comment on the way the types are tied up to power seq infrastr

[PATCH RESEND] power: generic-adc-battery: Fix checking return value of request_any_context_irq

2012-11-16 Thread Axel Lin
On failure, request_any_context_irq() returns a negative value. On success, it returns either IRQC_IS_HARDIRQ or IRQC_IS_NESTED. Signed-off-by: Axel Lin --- This was sent on https://lkml.org/lkml/2012/10/11/77 Nobody picks up this patch, so resend it. I think this patch is for 3.7. Regards, Axel

Re: [PATCH RFT 1/2] pinctrl: dove: Fix dove_audio1_ctrl_set when BIT(0|1|2|3) of config is clear

2012-11-16 Thread Axel Lin
2012/11/12 Sebastian Hesselbarth : > On 11/11/2012 02:44 PM, Axel Lin wrote: >> >> Current implementation in dove_audio1_ctrl_set() does not clear >> corresponding >> register bit if BIT(0|1|2|3) of config is clear. Fix it. >> >> Signed-off-by: Axel Lin > > > Axel, > > thanks for the hint on not cl

Re: [PATCH 08/14] xen: netback: Remove redundant check on unsigned variable

2012-11-16 Thread Ian Campbell
On Fri, 2012-11-16 at 06:50 +, Tushar Behera wrote: > No need to check whether unsigned variable is less than 0. > > CC: Ian Campbell > CC: xen-de...@lists.xensource.com > CC: net...@vger.kernel.org > Signed-off-by: Tushar Behera Acked-by: Ian Campbell Thanks. > --- > drivers/net/xen-ne

[PATCH RESEND] misc: apds9802als: Fix the logic checking timeout in als_wait_for_data_ready()

2012-11-16 Thread Axel Lin
In the case of timeout waiting for data ready, the retry variable is -1. This also fixes a bug: current code returns -ETIMEDOUT if latest retry success ( which means retry is 0 when exiting the while loop ). Signed-off-by: Axel Lin --- Resend to Greg's correct email address. drivers/misc/apds98

[PATCH]cputime: make bool type for steal ticks

2012-11-16 Thread liguang
Signed-off-by: liguang --- kernel/sched/cputime.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c index 81b763b..d2c24c1 100644 --- a/kernel/sched/cputime.c +++ b/kernel/sched/cputime.c @@ -282,7 +282,7 @@ static __always_i

Re: [PATCH 11/14] HID: hiddev: Remove redundant check on unsigned variable

2012-11-16 Thread Jiri Kosina
On Fri, 16 Nov 2012, Tushar Behera wrote: > No need to check whether unsigned variable is less than 0. > > CC: Jiri Kosina > CC: linux-...@vger.kernel.org > CC: linux-in...@vger.kernel.org > Signed-off-by: Tushar Behera > --- > drivers/hid/usbhid/hiddev.c |2 +- > 1 files changed, 1 insert

Re: [RFC v3 0/3] vmpressure_fd: Linux VM pressure notifications

2012-11-16 Thread Glauber Costa
On 11/16/2012 01:25 AM, David Rientjes wrote: > On Thu, 15 Nov 2012, Anton Vorontsov wrote: > >> Hehe, you're saying that we have to have cgroups=y. :) But some folks were >> deliberately asking us to make the cgroups optional. >> > > Enabling just CONFIG_CGROUPS (which is enabled by default) and

Re: [PATCH] tmpfs: fix shmem_getpage_gfp VM_BUG_ON

2012-11-16 Thread Jaegeuk Hanse
On 11/16/2012 03:56 AM, Hugh Dickins wrote: Offtopic... On Thu, 15 Nov 2012, Jaegeuk Hanse wrote: Another question. Why the function shmem_fallocate which you add to kernel need call shmem_getpage? Because shmem_getpage(_gfp) is where shmem's page lookup and allocation complexities are handled

Re: [PATCH] scsi: prevent stack buffer overflow in host_reset

2012-11-16 Thread Rolf Eike Beer
Am Donnerstag 15 November 2012, 15:51:46 schrieb Sasha Levin: > store_host_reset() has tried to re-invent the wheel to compare sysfs > strings. Unfortunately it did so poorly and never bothered to check the > input from userspace before overwriting stack with it, so something simple > as: > > echo

Re: [PATCH RESEND 3/4] pinctrl: at91: Prevent NULL dereference if of_match_device returns NULL

2012-11-16 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:36 Fri 16 Nov , Nicolas Ferre wrote: > On 11/15/2012 11:00 AM, Jean-Christophe PLAGNIOL-VILLARD : > > On 12:58 Thu 15 Nov , Axel Lin wrote: > >> of_match_device() may return NULL. > > this is not possible on at91 > > > > and I do a oups here as if we have a NULL pointer which means t

Re: [PATCH v8 2/3] pwm_backlight: use power sequences

2012-11-16 Thread Anton Vorontsov
On Fri, Nov 16, 2012 at 09:49:58AM +0100, Thierry Reding wrote: > On Fri, Nov 16, 2012 at 03:38:22PM +0900, Alexandre Courbot wrote: > > Make use of the power sequences specified in the device tree or platform > > data to control how the backlight is powered on and off. > > > > Signed-off-by: Alex

Re: [PATCH v8 1/3] Runtime Interpreted Power Sequences

2012-11-16 Thread Alex Courbot
On 11/16/2012 04:26 PM, Anton Vorontsov wrote: +#include "power_seq_delay.c" +#include "power_seq_regulator.c" +#include "power_seq_pwm.c" +#include "power_seq_gpio.c" This is odd, although I remember you already explained why you have to include the .c files, instead of linking them separately

[PATCH V2 0/3] Add hardware I/O coherency support for Armada 370/XP

2012-11-16 Thread Gregory CLEMENT
The purpose of this patch set is to add hardware I/O Coherency support for Armada 370 and Armada XP. Theses SoCs come with an unit called coherency fabric. A beginning of the support for this unit have been introduced with the SMP patch set. This series extend this support: the coherency fabric uni

[PATCH V2 1/3] arm: dma mapping: Export dma ops functions

2012-11-16 Thread Gregory CLEMENT
Expose the DMA operations functions. Until now only the dma_ops structs in a whole or some dma operation were exposed. This patch exposes all the dma coherents and non-coherents operations. They can be reused when an architecture or driver need to create its own set of dma_operation. Signed-off-by

[PATCH V2 3/3] arm: mvebu: Add hardware I/O Coherency support

2012-11-16 Thread Gregory CLEMENT
Armada 370 and XP come with an unit called coherency fabric. This unit allows to use the Armada 370/XP as a nearly coherent architecture. The coherency mechanism uses snoop filters to ensure the coherency between caches, DRAM and devices. This mechanism needs a synchronization barrier which guarant

[PATCH V2 2/3] arm: plat-orion: Add coherency attribute when setup mbus target

2012-11-16 Thread Gregory CLEMENT
Recent SoC such as Armada 370/XP came with the possibility to deal with the I/O coherency by hardware. In this case the transaction attribute of the window must be flagged as "Shared transaction". Once this flag is set, then the transactions will be forced to be sent through the coherency block, in

Re: [PATCH v2] LDT - Linux Driver Template

2012-11-16 Thread Bjørn Mork
Greg KH writes: > Normally you just start with a > driver for a device like the one you need to write and modify it from > there. Yes. Even if the template driver is fixed up to be the most beautiful driver ever made, it will still always be made for non-existing hardware. This causes two maj

Re: [PATCH RESEND] power: generic-adc-battery: Fix checking return value of request_any_context_irq

2012-11-16 Thread Anton Vorontsov
On Fri, Nov 16, 2012 at 05:09:22PM +0800, Axel Lin wrote: > On failure, request_any_context_irq() returns a negative value. > On success, it returns either IRQC_IS_HARDIRQ or IRQC_IS_NESTED. > > Signed-off-by: Axel Lin > --- > This was sent on https://lkml.org/lkml/2012/10/11/77 > Nobody picks up

[PATCH v1 resend hot_track 00/16] vfs: hot data tracking

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu HI, guys, Any comments or ideas are appreciated, thanks. NOTE: The patchset can be obtained via my kernel dev git on github: git://github.com/wuzhy/kernel.git hot_tracking If you're interested, you can also review them via https://github.com/wuzhy/kernel/commits/hot_tra

[PATCH v1 hot_track 02/16] vfs: add init and cleanup functions

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Add initialization function to create some key data structures when hot tracking is enabled; Clean up them when hot tracking is disabled Signed-off-by: Zhi Yong Wu --- fs/hot_tracking.c| 115 ++ include/linux/fs.h

[PATCH v1 hot_track 03/16] vfs: add I/O frequency update function

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Add some util helpers to update access frequencies for one file or its range. Signed-off-by: Zhi Yong Wu --- fs/hot_tracking.c| 178 ++ fs/hot_tracking.h|5 + include/linux/hot_tracking.h |4 + 3 files

[PATCH v1 hot_track 05/16] vfs: add hooks to enable hot tracking

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Miscellaneous features that implement hot data tracking and generally make the hot data functions a bit more friendly. Signed-off-by: Zhi Yong Wu --- fs/direct-io.c |6 ++ mm/filemap.c|6 ++ mm/page-writeback.c | 12 mm/readahead.

[PATCH v1 hot_track 06/16] vfs: add temp calculation function

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- fs/hot_tracking.c | 74 + fs/hot_tracking.h | 21 +++ 2 files changed, 95 insertions(+), 0 deletions(-) diff --git a/fs/hot_tracking.c b/fs/hot_tracking.c index bd2c353..3cb14e2

[PATCH v1 hot_track 09/16] vfs: add one work queue

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Add a per-superblock workqueue and a delayed_work to run periodic work to update map info on each superblock. Signed-off-by: Zhi Yong Wu --- fs/hot_tracking.c| 81 ++ fs/hot_tracking.h|3 ++ include/linux

[PATCH v1 hot_track 10/16] vfs: add FS hot type support

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Introduce one way to enable that specific FS can inject its own hot tracking type. Signed-off-by: Zhi Yong Wu --- fs/hot_tracking.c| 43 +++-- fs/hot_tracking.h|1 - include/linux/fs.h |1 + inc

[PATCH v1 hot_track 12/16] vfs: add one ioctl interface

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu FS_IOC_GET_HEAT_INFO: return a struct containing the various metrics collected in hot_freq_data structs, and also return a calculated data temperature based on those metrics. Optionally, retrieve the temperature from the hot data hash list instead of recalculating it. Signed-

[PATCH v1 hot_track 15/16] btrfs: add hot tracking support

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Introduce one new mount option '-o hot_track', and add its parsing support. Its usage looks like: mount -o hot_track mount -o nouser,hot_track mount -o nouser,hot_track,loop mount -o hot_track,nouser Reviewed-by: David Sterba Signed-off-by: Zhi Yong Wu ---

[PATCH v1 hot_track 14/16] proc: add two hot_track proc files

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Add two proc files hot-kick-time and hot-update-delay under the dir /proc/sys/fs/ in order to turn TIME_TO_KICK and HEAT_UPDATE_DELAY into be tunable. Signed-off-by: Zhi Yong Wu --- fs/hot_tracking.c| 12 +--- fs/hot_tracking.h|9 --

[PATCH v1 hot_track 16/16] vfs: add documentation

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Add one doc for VFS hot tracking feature Signed-off-by: Zhi Yong Wu --- Documentation/filesystems/00-INDEX |2 + Documentation/filesystems/hot_tracking.txt | 263 2 files changed, 265 insertions(+), 0 deletions(-) create mode 10064

[PATCH v1 hot_track 13/16] vfs: add debugfs support

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Add a /sys/kernel/debug/hot_track// directory for each volume that contains two files. The first, `inode_stats', contains the heat information for inodes that have been brought into the hot data map structures. The second, `range_stats', contains similar information for subfil

[PATCH v1 hot_track 11/16] vfs: register one shrinker

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Register a shrinker to control the amount of memory that is used in tracking hot regions - if we are throwing inodes out of memory due to memory pressure, we most definitely are going to need to reduce the amount of memory the tracking code is using, even if it means losing us

[PATCH v1 hot_track 01/16] vfs: introduce some data structures

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu One root structure hot_info is defined, is hooked up in super_block, and will be used to hold radix tree root, hash list root and some other information, etc. Adds hot_inode_tree struct to keep track of frequently accessed files, and be keyed by {inode, offset}. Trees contai

[PATCH v1 hot_track 04/16] vfs: add two map arrays

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Adds two map arrays which contains a lot of list and is used to efficiently look up the data temperature of a file or its ranges. In each list of map arrays, the array node will keep track of temperature info. Signed-off-by: Zhi Yong Wu --- fs/hot_tracking.c|

[PATCH v1 hot_track 08/16] vfs: add aging function

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- fs/hot_tracking.c | 49 + fs/hot_tracking.h |6 ++ 2 files changed, 55 insertions(+), 0 deletions(-) diff --git a/fs/hot_tracking.c b/fs/hot_tracking.c index 446fbd4..304028d 100644 --- a

[PATCH 1/2] thp: fix update_mmu_cache_pmd() calls

2012-11-16 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" update_mmu_cache_pmd() takes pointer to pmd_t as third, not pmd_t. mm/huge_memory.c: In function 'do_huge_pmd_numa_page': mm/huge_memory.c:825:2: error: incompatible type for argument 3 of 'update_mmu_cache_pmd' In file included from include/linux/mm.h:44:0,

[PATCH 2/2] x86: convert update_mmu_cache() and update_mmu_cache_pmd() to functions

2012-11-16 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Converting macros to functions unhide type problems before changes will be integrated and trigger problems on other architectures. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/pgtable.h| 12 arch/x86/include/asm/pgtable_32.h | 7 --

[PATCH v1 hot_track 07/16] vfs: add map info update function

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- fs/hot_tracking.c | 67 + 1 files changed, 67 insertions(+), 0 deletions(-) diff --git a/fs/hot_tracking.c b/fs/hot_tracking.c index 3cb14e2..446fbd4 100644 --- a/fs/hot_tracking.c +++ b/fs/h

[PATCH] drm/nouveau: fix init with agpgart-uninorth

2012-11-16 Thread Aaro Koskinen
Check that the AGP aperture can be mapped. This follows a similar change done for Radeon (commit 365048ff, drm/radeon: AGP memory is only I/O if the aperture can be mapped by the CPU.). The patch fixes the following error seen on G5 iMac: nouveau E[ DRM] failed to create kernel channe

Re: [PATCH v2 1/3] gpio / ACPI: add ACPI support

2012-11-16 Thread Rafael J. Wysocki
On Friday, November 16, 2012 10:12:46 AM Mika Westerberg wrote: > On Fri, Nov 16, 2012 at 10:05:49AM +0200, Mika Westerberg wrote: > > > > One more thing, sometimes we want to assign the handle like in the case of > > SPI controller driver we set the master->dev.acpi_handle. In that case we > > ca

Re: [PATCH] KVM: MMU: lazily drop large spte

2012-11-16 Thread Marcelo Tosatti
On Fri, Nov 16, 2012 at 12:46:16PM +0800, Xiao Guangrong wrote: > On 11/16/2012 11:56 AM, Marcelo Tosatti wrote: > > On Fri, Nov 16, 2012 at 11:39:12AM +0800, Xiao Guangrong wrote: > >> On 11/16/2012 11:02 AM, Marcelo Tosatti wrote: > >>> On Thu, Nov 15, 2012 at 07:17:15AM +0800, Xiao Guangrong wro

Re: [PATCH v2 1/3] gpio / ACPI: add ACPI support

2012-11-16 Thread Rafael J. Wysocki
On Thursday, November 15, 2012 01:03:15 PM Mika Westerberg wrote: > From: Mathias Nyman > > Add support for translating ACPI GPIO pin numbers to Linux GPIO API pins. > Needs a gpio controller driver with the acpi handler hook set. > > Drivers can use acpi_get_gpio() to translate ACPI5 GpioIO and

Re: [PATCH v2 2/3] spi / ACPI: add ACPI enumeration support

2012-11-16 Thread Rafael J. Wysocki
On Thursday, November 15, 2012 01:03:16 PM Mika Westerberg wrote: > ACPI 5 introduced SPISerialBus resource that allows us to enumerate and > configure the SPI slave devices behind the SPI controller. This patch adds > support for this to the SPI core. > > In addition we bind ACPI nodes to SPI dev

Re: [PATCH v2 3/3] i2c / ACPI: add ACPI enumeration support

2012-11-16 Thread Rafael J. Wysocki
On Thursday, November 15, 2012 01:03:17 PM Mika Westerberg wrote: > ACPI 5 introduced I2cSerialBus resource that makes it possible to enumerate > and configure the I2C slave devices behind the I2C controller. This patch > adds helper functions to support I2C slave enumeration. > > An ACPI enabled

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

2012-11-16 Thread Marcelo Tosatti
On Fri, Nov 16, 2012 at 05:09:40PM +0900, Yoshihiro YUNOMAE wrote: > Hi Marcelo, > > Thank you for commenting on my patch set. > > (2012/11/16 12:19), Marcelo Tosatti wrote: > >On Wed, Nov 14, 2012 at 10:36:21AM +0900, Yoshihiro YUNOMAE wrote: > [...] > >>In this summary, I suggest the patch whic

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-16 Thread Rafael J. Wysocki
On Friday, November 16, 2012 09:27:05 AM Huang Ying wrote: > On Fri, 2012-11-16 at 02:29 +0100, Rafael J. Wysocki wrote: > > On Friday, November 16, 2012 08:54:56 AM Huang Ying wrote: > > > On Fri, 2012-11-16 at 01:55 +0100, Rafael J. Wysocki wrote: > > > > On Friday, November 16, 2012 01:44:00 AM

Re: [PATCH] Correct description of SwapFree in Documentation/filesystems/proc.txt

2012-11-16 Thread Michal Hocko
On Fri 16-11-12 08:01:42, Michael Kerrisk wrote: > After migrating most of the information in > Documentation/filesystems/proc.txt to the proc(5) man page, > Jim Paris pointed out to me that the description of SwapFree > in the man page seemed wrong. I think Jim is right, > but am given pause by f

Re: linux-next: manual merge of the pm tree with the pci tree

2012-11-16 Thread Rafael J. Wysocki
On Tuesday, November 06, 2012 09:52:40 AM Bjorn Helgaas wrote: > On Mon, Nov 5, 2012 at 7:48 PM, Stephen Rothwell > wrote: > > Hi Rafael, > > > > Today's linux-next merge of the pm tree got a conflict in > > arch/x86/pci/acpi.c between commit 3f385fa9edce ("x86/PCI: Ignore _SEG on > > HP xw9300")

Re: [PATCH 2/3] fat: fix time updates for create and delete

2012-11-16 Thread Namjae Jeon
2012/11/15, OGAWA Hirofumi : > Namjae Jeon writes: > >> 1)If we consider the code for FAT and MSDOS to be same with respect to >> timing updates - there there is difference in code as mentioned below: >> a) For:vfat_rmdir() >> inode->i_mtime = inode->i_atime = CURRENT_TIME_SEC; >>For:msdo

Re: [PATCH v4 0/2] x86: clear vmcss on all cpus when doing kdump if necessary

2012-11-16 Thread zhangyanfei
Hello Marcelo, Any thoughts? 于 2012年11月14日 17:29, zhangyanfei 写道: > Currently, kdump just makes all the logical processors leave VMX operation by > executing VMXOFF instruction, so any VMCSs active on the logical processors > may > be corrupted. But, sometimes, we need the VMCSs to debug guest

Re: [RFC v2 PATCH 2/2] sched: Use Per-Entity-Load-Tracking metric for load balancing

2012-11-16 Thread Preeti U Murthy
Hi Vincent, Thank you for your review. On 11/15/2012 11:43 PM, Vincent Guittot wrote: > Hi Preeti, > > On 15 November 2012 17:54, Preeti U Murthy wrote: >> Currently the load balancer weighs a task based upon its priority,and this >> weight consequently gets added up to the weight of the run que

Re: [PATCH] Correct description of SwapFree in Documentation/filesystems/proc.txt

2012-11-16 Thread Kamezawa Hiroyuki
(2012/11/16 16:01), Michael Kerrisk wrote: After migrating most of the information in Documentation/filesystems/proc.txt to the proc(5) man page, Jim Paris pointed out to me that the description of SwapFree in the man page seemed wrong. I think Jim is right, but am given pause by fact that that t

[PATCH] x86: bump PREALLOC_DMA_DEBUG_ENTRIES

2012-11-16 Thread Maarten Lankhorst
I ran out of free entries when I had CONFIG_DMA_API_DEBUG enabled. Some other archs seem to default to 65536, so increase this limit for x86 too. Signed-off-by: Maarten Lankhorst diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c index de2b7ad..f5597c5 100644 --- a/arch/x86/k

Re: [PATCH v2] LDT - Linux Driver Template

2012-11-16 Thread Constantine Shulyupin
On Fri, Nov 16, 2012 at 11:46 AM, Bjørn Mork wrote: > Greg KH writes: > >> Normally you just start with a >> driver for a device like the one you need to write and modify it from >> there. > > Yes. > > Even if the template driver is fixed up to be the most beautiful driver > ever made, it will s

[PATCH v6 1/4] genalloc: add a global pool list, allow to find pools by phys address

2012-11-16 Thread Philipp Zabel
This patch keeps all created pools in a global list and adds two functions that allow to retrieve the gen_pool pointer from a known physical address and from a device tree node. Signed-off-by: Philipp Zabel Reviewed-by: Shawn Guo --- include/linux/genalloc.h | 14 ++ lib/genalloc.c

[PATCH v6 0/4] Add generic driver for on-chip SRAM

2012-11-16 Thread Philipp Zabel
These patches add support to configure on-chip SRAM via device-tree node or platform data and to obtain the resulting genalloc pool from the physical address or a phandle pointing at the device tree node. This allows drivers to allocate SRAM with the genalloc API without hard-coding the genalloc po

[PATCH v6 2/4] misc: Generic on-chip SRAM allocation driver

2012-11-16 Thread Philipp Zabel
This driver requests and remaps a memory region as configured in the device tree. It serves memory from this region via the genalloc API. It optionally enables the SRAM clock. Other drivers can retrieve the genalloc pool from a phandle pointing to this drivers' device node in the device tree. Sig

RE: [PATCH RESEND 0/7] MFD: ti_am335x_tscadc: DT support and TSC features addition

2012-11-16 Thread Patil, Rachna
Hi, This is just a gentle reminder of the patch set I had posted earlier viz. "[PATCH RESEND 0/7] MFD: ti_am335x_tscadc: DT support and TSC features addition" Can this patch set be pulled in if there are no review comments. This patch set does not break anything existing, it just adds new features

[PATCH v6 3/4] media: coda: use genalloc API

2012-11-16 Thread Philipp Zabel
This patch depends on "genalloc: add a global pool list, allow to find pools by phys address", which provides the of_get_named_gen_pool function. Signed-off-by: Philipp Zabel --- drivers/media/platform/Kconfig |3 +-- drivers/media/platform/coda.c | 47

Re: [PATCH 1/5] ARM: AT91SAM9G45: fix crypto peripherals irq issue due to sparse irq support.

2012-11-16 Thread Nicolas Ferre
On 11/07/2012 04:27 PM, Jean-Christophe PLAGNIOL-VILLARD : > On 17:31 Tue 06 Nov , Nicolas Royer wrote: >> Spare irq support introduced by commit "8fe82a5 ARM: at91: sparse irq >> support" >> involves to add the NR_IRQS_LEGACY offset to irq number. >> >> Signed-off-by: Nicolas Royer >> Acked-

[PATCH v6 4/4] ARM: dts: add sram for imx53 and imx6q

2012-11-16 Thread Philipp Zabel
Signed-off-by: Philipp Zabel Reviewed-by: Shawn Guo --- arch/arm/boot/dts/imx53.dtsi |5 + arch/arm/boot/dts/imx6q.dtsi |6 ++ 2 files changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi index 76ebb1a..7677218 100644 --- a/arch/arm/

  1   2   3   4   5   6   7   8   >