[PATCH v10 0/2] x86: vmclear vmcss on all cpus when doing kdump if necessary

2012-12-05 Thread Zhang Yanfei
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 images contained in the host vmcore. To prevent the corruption, we should

Re: [PATCH] xen/blkback: do not leak mode property

2012-12-05 Thread Jan Beulich
On 04.12.12 at 19:21, Olaf Hering o...@aepfle.de wrote: On Tue, Dec 04, Jan Beulich wrote: This looks necessary but insufficient - there's nothing really preventing backend_changed() from being called more than once for a given device (is simply the handler of xenbus watch). Hence I think

Re: [PATCH] memory: of_memory.c: remove unnecessary initialization

2012-12-05 Thread Li, Zhen-Hua
And if you use -O2 as gcc option, you may find it does nothing. They are using the same assemble language. On Wed, Dec 5, 2012 at 3:26 PM, Li, Zhen-Hua lizhenhua@gmail.com wrote: Infact, your patch does remove an orl operation, but add a new move operation. You can test such two

[PATCH v10 1/2] x86/kexec: VMCLEAR VMCSs loaded on all cpus if necessary

2012-12-05 Thread Zhang Yanfei
This patch provides a way to VMCLEAR VMCSs related to guests on all cpus before executing the VMXOFF when doing kdump. This is used to ensure the VMCSs in the vmcore updated and non-corrupted. Signed-off-by: Zhang Yanfei zhangyan...@cn.fujitsu.com --- arch/x86/include/asm/kexec.h |2 ++

Re: [PATCH v10 2/2] KVM-INTEL: provide the vmclear function and a bitmap to support VMCLEAR in kdump

2012-12-05 Thread Zhang Yanfei
The vmclear function will be assigned to the callback function pointer when loading kvm-intel module. And the bitmap indicates whether we should do VMCLEAR operation in kdump. The bits in the bitmap are set/unset according to different conditions. Signed-off-by: Zhang Yanfei

Re: [PATCH] staging: rtl8712: avoid a useless call to memset().

2012-12-05 Thread walter harms
Hi Cyril, you patch is correct ..but being an advocate of defensive programming i would say the original version especially since the number of bytes is small. re, wh Am 05.12.2012 02:22, schrieb Cyril Roelandt: In r8711_wx_get_wap(), make sure we do not call memcpy() on a memory area that

Re: [RFC v2 6/8] gpu: drm: tegra: Remove redundant host1x

2012-12-05 Thread Thierry Reding
On Mon, Nov 26, 2012 at 03:19:12PM +0200, Terje Bergstrom wrote: From: Arto Merilainen amerilai...@nvidia.com This patch removes the redundant host1x driver from tegradrm and makes necessary bindings to the separate host driver. This modification introduces a regression: Because there is

[PATCH -next 0/2] tty: Correct tty buffer flush.

2012-12-05 Thread Ilya Zykov
The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of NULL pointer dereference. Main idea of the patch, this is never free last (struct tty_buffer) in the active buffer. Only flush the data for

[PATCH -next 1/2] tty: Correct tty buffer flush.

2012-12-05 Thread Ilya Zykov
Revert: tty: hold lock across tty buffer finding and buffer filling Signed-off-by: Ilya Zykov i...@ilyx.ru --- drivers/tty/tty_buffer.c | 94 +++--- 1 files changed, 22 insertions(+), 72 deletions(-) diff --git a/drivers/tty/tty_buffer.c

[PATCH -next 2/2] tty: Correct tty buffer flush.

2012-12-05 Thread Ilya Zykov
tty: Correct tty buffer flush. Signed-off-by: Ilya Zykov i...@ilyx.ru --- drivers/tty/tty_buffer.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c index 7602df8..8ad 100644 --- a/drivers/tty/tty_buffer.c

Re: [PATCH v5 5/8] fat: restructure export_operations

2012-12-05 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: Let me think, if ‘subtree’ checking is enabled then we should check the length condition over here also? Please share if there are any other comments also. I'm not sure what did you mean. Where is subtree check you are talking? This is

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-05 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: This became much better than before. However, we have to consolidate the code with fat_search_long() finally. E.g. this version is having the issue already fixed. If there is corruption in fat cluster-chain, it lead to infinite loop.

[PATCH v2] drivers/uio/uio_pdrv_genirq.c: Fix memory freeing issues

2012-12-05 Thread Vitalii Demianets
1. uioinfo was kfreed based on the presence of pdev-dev.of_node, which was obviously wrong and unrelated to the fact if uioinfo was allocated statically or dynamically. This patch introduces new flag which clearly shows if uioinfo was allocated dynamically and kfrees uioinfo based on that flag; 2.

Re: [PATCH v4] backlight: corgi_lcd: Use gpio_set_value_cansleep() to avoid WARN_ON

2012-12-05 Thread Russell King - ARM Linux
On Wed, Dec 05, 2012 at 09:59:07AM +0900, Jingoo Han wrote: - if (gpio_is_valid(lcd-gpio_backlight_cont)) - gpio_set_value(lcd-gpio_backlight_cont, cont); + if (gpio_is_valid(lcd-gpio_backlight_cont)) { + if (gpio_cansleep(lcd-gpio_backlight_cont)) +

Re: [PATCH -next 2/2] tty: Correct tty buffer flush.

2012-12-05 Thread Jiri Slaby
On 12/05/2012 09:48 AM, Ilya Zykov wrote: tty: Correct tty buffer flush. NAK just because of the insufficient commit log. That line does not belong here. Instead, please add here proper description as you have already done before. IOW what is in 0/2 should be here so that we know the reasons.

RE: [PATCH v2] net/macb: Use non-coherent memory for rx buffers

2012-12-05 Thread David Laight
If I understand well, you mean that the call to: dma_sync_single_range_for_device(bp-pdev-dev, phys, pg_offset, frag_len, DMA_FROM_DEVICE); in the rx path after having copied the data to skb is not needed? That is also the conclusion that I

Re: [PATCH RFC] misc/at24: distinguish between eeprom and fram chips

2012-12-05 Thread Lars Poeschel
I see there where to much nos to get anything in, but thank you for your comments and explanations. I wanted to use a fm24c04 i2c fram chip with linux. I grepped the source and found nothing. I later found that my chip can be handled by at24 eeprom driver. It creates a sysfs file called

Re: [PATCH 07/14] HID: i2c-hid: fix return paths

2012-12-05 Thread Jean Delvare
On Tue, 4 Dec 2012 16:27:48 +0100, Benjamin Tissoires wrote: Forwards appropriate return values. As noone use the error returned by i2c_hid_get_input, let's make it returning void. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com --- drivers/hid/i2c-hid/i2c-hid.c | 24

[PATCH] gpio: twl4030: Correct status reporting when the GPIO is used as output

2012-12-05 Thread Peter Ujfalusi
When the GPIO is configured as output we need to read the GPIODATAOUT* register to get correct information. When the GPIO is output the GPIODATAIN* registers report 0 all the time (no feedback from output path). Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/gpio/gpio-twl4030.c

Re: [PATCH 2/3] MODSIGN: Avoid using .incbin in C source

2012-12-05 Thread Michal Marek
On Wed, Dec 05, 2012 at 08:39:11AM +0100, Takashi Iwai wrote: At Wed, 05 Dec 2012 10:28:48 +1030, Rusty Russell wrote: David Howells dhowe...@redhat.com writes: Michal Marek mma...@suse.cz wrote: Using the asm .incbin statement in C sources breaks any gcc wrapper which

Re: [PATCH 08/14] HID: i2c-hid: fix error messages

2012-12-05 Thread Jean Delvare
On Tue, 4 Dec 2012 16:27:49 +0100, Benjamin Tissoires wrote: Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com --- drivers/hid/i2c-hid/i2c-hid.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/hid/i2c-hid/i2c-hid.c

Re: [PATCH 20/52] mm, numa: Implement migrate-on-fault lazy NUMA strategy for regular and THP pages

2012-12-05 Thread Mel Gorman
On Tue, Dec 04, 2012 at 04:55:13PM -0800, David Rientjes wrote: Commit mm, numa: Implement migrate-on-fault lazy NUMA strategy for regular and THP pages breaks the build because HPAGE_PMD_SHIFT and HPAGE_PMD_MASK defined to explode without CONFIG_TRANSPARENT_HUGEPAGE: mm/migrate.c: In

Re: [PATCH 01/14] HID: i2c-hid: change I2C name

2012-12-05 Thread Jiri Kosina
On Tue, 4 Dec 2012, Jean Delvare wrote: no I2C driver has i2c in its name. It makes more sense to call this i2c driver hid. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com --- drivers/hid/i2c-hid/i2c-hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 03/14] HID: i2c-hid: enhance Kconfig

2012-12-05 Thread Jiri Kosina
On Tue, 4 Dec 2012, Jean Delvare wrote: The comment part can never be displayed, so we can remove it. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com --- drivers/hid/i2c-hid/Kconfig | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git

Re: [PATCH 04/14] HID: i2c-hid: fix checkpatch.pl warning

2012-12-05 Thread Jiri Kosina
On Tue, 4 Dec 2012, Jean Delvare wrote: We should not initialize to 0 static declarations. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com --- drivers/hid/i2c-hid/i2c-hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 05/14] HID: i2c-hid: fix i2c_hid_dbg macro

2012-12-05 Thread Jiri Kosina
On Tue, 4 Dec 2012, Jean Delvare wrote: This avoids the problematic case: if (condition) i2c_hid_dbg(ihid, Blah blah %d\n, i); else do_something_very_important(); Which looks correct, however with the previous macro definition, this expands to the unexpected: if

Re: [PATCH 09/14] HID: i2c-hid: i2c_hid_get_report may fail

2012-12-05 Thread Jean Delvare
On Tue, 4 Dec 2012 16:27:50 +0100, Benjamin Tissoires wrote: If i2c_hid_get_report fails, exit i2c_hid_init_report. The printk log is already called by i2c_hid_get_report, so no need to add some more printks. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com ---

Re: [PATCH] tmpfs: fix shared mempolicy leak

2012-12-05 Thread Mel Gorman
On Tue, Dec 04, 2012 at 11:24:30PM -0800, Hugh Dickins wrote: From: Mel Gorman mgor...@suse.de Commit 00442ad04a5e (mempolicy: fix a memory corruption by refcount imbalance in alloc_pages_vma()) changed get_vma_policy() to raise the refcount on a shmem shared mempolicy; whereas

[PATCH] xen/blkback: prevent leak of mode during multiple backend_changed calls

2012-12-05 Thread Olaf Hering
backend_changed might be called multiple times, which will leak be-mode. free the previous value before storing the current mode value. Signed-off-by: Olaf Hering o...@aepfle.de --- !! Not compile tested !! drivers/block/xen-blkback/xenbus.c | 12 +++- 1 file changed, 7 insertions(+),

Re: [PATCH 06/14] HID: i2c-hid: remove unused static declarations

2012-12-05 Thread Jiri Kosina
On Tue, 4 Dec 2012, Jean Delvare wrote: These definitions are not used here, but are defined by the specification. Keeping some of them for documentation purposes. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com --- drivers/hid/i2c-hid/i2c-hid.c | 25

Re: PTRACE_SYSCALL vsyscall (Was: arch_check_bp_in_kernelspace: fix the range check)

2012-12-05 Thread Jan Kratochvil
On Sun, 02 Dec 2012 20:30:58 +0100, Oleg Nesterov wrote: Yes, that is why I said this needs the new option. I do not mind new options although personally I do not find them meaningful for an already deprecated ABI compatibility-only issue. If the tracer does PTRACE_SYSCALL the tracee reports

Re: [PATCH 07/14] HID: i2c-hid: fix return paths

2012-12-05 Thread Jiri Kosina
On Tue, 4 Dec 2012, Benjamin Tissoires wrote: Forwards appropriate return values. As noone use the error returned by i2c_hid_get_input, let's make it returning void. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com Applied. --- drivers/hid/i2c-hid/i2c-hid.c | 24

Re: [PATCH] memory: of_memory.c: remove unnecessary initialization

2012-12-05 Thread Cong Ding
On Wed, Dec 05, 2012 at 03:26:36PM +0800, Li, Zhen-Hua wrote: Infact, your patch does remove an orl operation, but add a new move operation. You can test such two functions: int func1(int rm1, int rm2){ int i = 0; i |= rm1; i |= rm2; } and int func(int rm1,

Re: [RFC v2 6/8] gpu: drm: tegra: Remove redundant host1x

2012-12-05 Thread Terje Bergström
On 05.12.2012 10:33, Thierry Reding wrote: I've been thinking about this some more and came to the conclusion that since we will already have a tight coupling between host1x and tegra-drm we may just as well keep the client registration code in host1x. The way I imagine this to work would be

Re: [PATCH 2/3] MODSIGN: Avoid using .incbin in C source

2012-12-05 Thread Takashi Iwai
At Wed, 5 Dec 2012 10:50:57 +0100, Michal Marek wrote: On Wed, Dec 05, 2012 at 08:39:11AM +0100, Takashi Iwai wrote: At Wed, 05 Dec 2012 10:28:48 +1030, Rusty Russell wrote: David Howells dhowe...@redhat.com writes: Michal Marek mma...@suse.cz wrote: Using the asm

Re: [PATCH 09/14] HID: i2c-hid: i2c_hid_get_report may fail

2012-12-05 Thread Benjamin Tissoires
On Wed, Dec 5, 2012 at 10:59 AM, Jean Delvare kh...@linux-fr.org wrote: On Tue, 4 Dec 2012 16:27:50 +0100, Benjamin Tissoires wrote: If i2c_hid_get_report fails, exit i2c_hid_init_report. The printk log is already called by i2c_hid_get_report, so no need to add some more printks.

Re: [PATCH 08/14] HID: i2c-hid: fix error messages

2012-12-05 Thread Jiri Kosina
On Wed, 5 Dec 2012, Jean Delvare wrote: Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com --- drivers/hid/i2c-hid/i2c-hid.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c

Re: [PATCH 10/14] HID: i2c-hid: reorder allocation/free of buffers

2012-12-05 Thread Jean Delvare
On Tue, 4 Dec 2012 16:27:51 +0100, Benjamin Tissoires wrote: Simplifies i2c_hid_alloc_buffers tests, and makes this function responsible of the assignment of ihid-bufsize. The condition for the reallocation in i2c_hid_start is then simpler. Signed-off-by: Benjamin Tissoires

Re: [PATCH 02/14] HID: i2c-hid: fix memory corruption due to missing hid declaration

2012-12-05 Thread Benjamin Tissoires
On Tue, Dec 4, 2012 at 10:42 PM, Jean Delvare kh...@linux-fr.org wrote: On Tue, 4 Dec 2012 16:27:43 +0100, Benjamin Tissoires wrote: HID descriptors contains 4 bytes of reserved field. The previous implementation was overriding the next fields in struct i2c_hid. Signed-off-by: Benjamin

Re: [PATCH 10/14] HID: i2c-hid: reorder allocation/free of buffers

2012-12-05 Thread Benjamin Tissoires
On Wed, Dec 5, 2012 at 11:10 AM, Jean Delvare kh...@linux-fr.org wrote: On Tue, 4 Dec 2012 16:27:51 +0100, Benjamin Tissoires wrote: Simplifies i2c_hid_alloc_buffers tests, and makes this function responsible of the assignment of ihid-bufsize. The condition for the reallocation in

Re: [PATCH 02/14] HID: i2c-hid: fix memory corruption due to missing hid declaration

2012-12-05 Thread Jiri Kosina
On Wed, 5 Dec 2012, Benjamin Tissoires wrote: On Tue, 4 Dec 2012 16:27:43 +0100, Benjamin Tissoires wrote: HID descriptors contains 4 bytes of reserved field. The previous implementation was overriding the next fields in struct i2c_hid. Signed-off-by: Benjamin Tissoires

Re: [PATCH 11/14] HID: i2c-hid: remove unneeded test in i2c_hid_remove

2012-12-05 Thread Jean Delvare
On Tue, 4 Dec 2012 16:27:52 +0100, Benjamin Tissoires wrote: ihid can not be null, so there are no reasons to test it. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com --- drivers/hid/i2c-hid/i2c-hid.c | 3 --- 1 file changed, 3 deletions(-) diff --git

Re: [PATCH v3 1/2] writeback: add dirty_background_centisecs per bdi variable

2012-12-05 Thread Namjae Jeon
2012/12/5, Wanpeng Li liw...@linux.vnet.ibm.com: Hi Namjae, How about set bdi-dirty_background_bytes according to bdi_thresh? I found an issue during background flush process when review codes, if over background flush threshold, wb_check_background_flush will kick a work to current per-bdi

Re: [PATCH] xen/blkback: prevent leak of mode during multiple backend_changed calls

2012-12-05 Thread Jan Beulich
On 05.12.12 at 11:01, Olaf Hering o...@aepfle.de wrote: backend_changed might be called multiple times, which will leak be-mode. free the previous value before storing the current mode value. As said before - this is one possible route to take. But did you consider at all the alternative of

[PATCH 1/1] pinctrl: samsung: Fix a typo in pinctrl-samsung.h

2012-12-05 Thread Sachin Kamat
struct samsung_pin_bank does not have a member called reg_offset. It should be pctl_offset instead. Signed-off-by: Sachin Kamat sachin.ka...@linaro.org --- drivers/pinctrl/pinctrl-samsung.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [PATCH 13/14] HID: i2c-hid: also call i2c_hid_free_buffers in i2c_hid_remove

2012-12-05 Thread Jiri Kosina
On Tue, 4 Dec 2012, Benjamin Tissoires wrote: In the case where the hid driver in charge of handling the hid part of the device (hid-generic for instance) fails at probe, neither i2c_hid_start nor i2c_hid_stop are called. Thus, the buffers allocated in i2c_hid_probe are never freed.

Wrong length / buffer overlow by the syslog syscall

2012-12-05 Thread Sylvain Munaut
Hi, I was debugging a segfault in the 'dmesg' utility that I finally traced to the syslog syscall overflowing the buffer. I'm under a 3.6.8 kernel and it has commit e3756477aec028427fec767957c0d4b6cfb87208 present which apparently fixed a similar issue, but I still have some occurence. strace

Re: [PATCH 09/14] HID: i2c-hid: i2c_hid_get_report may fail

2012-12-05 Thread Jiri Kosina
On Tue, 4 Dec 2012, Benjamin Tissoires wrote: If i2c_hid_get_report fails, exit i2c_hid_init_report. The printk log is already called by i2c_hid_get_report, so no need to add some more printks. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com ---

Re: [PATCH 12/14] HID: i2c-hid: remove extra .irq field in struct i2c_hid

2012-12-05 Thread Jean Delvare
On Tue, 4 Dec 2012 16:27:53 +0100, Benjamin Tissoires wrote: There is no point in keeping the irq in i2c_hid as it's already there in client. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com --- drivers/hid/i2c-hid/i2c-hid.c | 17 ++--- 1 file changed, 6

Re: [PATCH 11/14] HID: i2c-hid: remove unneeded test in i2c_hid_remove

2012-12-05 Thread Jiri Kosina
On Wed, 5 Dec 2012, Jean Delvare wrote: ihid can not be null, so there are no reasons to test it. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@gmail.com --- drivers/hid/i2c-hid/i2c-hid.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/hid/i2c-hid/i2c-hid.c

Re: [PATCH 2/3] MODSIGN: Avoid using .incbin in C source

2012-12-05 Thread David Howells
Takashi Iwai ti...@suse.de wrote: +#ifndef SYMBOL_PREFIX This comes via the command line? David -- 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

Re: [PATCH 2/3] MODSIGN: Avoid using .incbin in C source

2012-12-05 Thread James Hogan
On 05/12/12 09:50, Michal Marek wrote: How about the revised patch below? [...] diff --git a/kernel/modsign_certificate.S b/kernel/modsign_certificate.S new file mode 100644 index 000..695d4e3 --- /dev/null +++ b/kernel/modsign_certificate.S @@ -0,0 +1,18 @@ +#ifndef SYMBOL_PREFIX

Re: [PATCH 13/14] HID: i2c-hid: also call i2c_hid_free_buffers in i2c_hid_remove

2012-12-05 Thread Jean Delvare
On Tue, 4 Dec 2012 16:27:54 +0100, Benjamin Tissoires wrote: In the case where the hid driver in charge of handling the hid part of the device (hid-generic for instance) fails at probe, neither i2c_hid_start nor i2c_hid_stop are called. Thus, the buffers allocated in i2c_hid_probe are never

Re: [PATCH 3.7-rc8] lib/Makefile: Fix oid_registry build dependency

2012-12-05 Thread David Howells
Tim Gardner tim.gard...@canonical.com wrote: It is $(obj)/oid_registry.o that is dependent on $(obj)/oid_registry_data.c. The object file cannot be built until $(obj)/oid_registry_data.c has been generated. A periodic and hard to reproduce parallel build failure is due to this incorrect

Re: [PATCH 14/14] HID: i2c-hid: fix i2c_hid_get_raw_report count mismatches

2012-12-05 Thread Benjamin Tissoires
Hi, sorry, but when I re-read it, it seems that I missed a +2 in the call of i2c_hid_get_report. So Jean, Jiri, please ignore this one. I'm really sorry if you already started reviewing it. I'll send a v2 with the missing patches early this afternoon. Cheers, Benjamin On Tue, Dec 4, 2012 at

[PATCH net-next v2 0/3] Multiqueue support in virtio-net

2012-12-05 Thread Jason Wang
Hi all: This series is an update version of multiqueue virtio-net driver based on Krishna Kumar's work to let virtio-net use multiple rx/tx queues to do the packets reception and transmission. Please review and comments. A protype implementation of qemu-kvm support could by found in

[PATCH net-next v2 1/3] virtio-net: separate fields of sending/receiving queue from virtnet_info

2012-12-05 Thread Jason Wang
To support multiqueue transmitq/receiveq, the first step is to separate queue related structure from virtnet_info. This patch introduce send_queue and receive_queue structure and use the pointer to them as the parameter in functions handling sending/receiving. Signed-off-by: Krishna Kumar

[PATCH net-next v2 3/3] virtio-net: support changing the number of queue pairs through ethtool

2012-12-05 Thread Jason Wang
This patch implements the ethtool_{set|get}_channels method of virtio-net to allow user to change the number of queues when the device is running on demand. Signed-off-by: Jason Wang jasow...@redhat.com --- drivers/net/virtio_net.c | 43 +++ 1 files

[PATCH net-next v2 2/3] virtio_net: multiqueue support

2012-12-05 Thread Jason Wang
This patch adds the multiqueue (VIRTIO_NET_F_RFS) support to virtio_net driver. VIRTIO_NET_F_RFS capable device could allow the driver to do packet transmission and reception through multiple queue pairs and does the packet steering to get better performance. By default, one one queue pair is

Re: [PATCH, 3.7-rc7, RESEND] fs: revert commit bbdd6808 to fallocate UAPI

2012-12-05 Thread Martin Steigerwald
Am Montag, 26. November 2012 schrieb Dave Chinner: On Sun, Nov 25, 2012 at 09:55:20PM -0500, Theodore Ts'o wrote: On Mon, Nov 26, 2012 at 11:28:14AM +1100, Dave Chinner wrote: fs: revert commit bbdd6808 to fallocate UAPI From: Dave Chinner dchin...@redhat.com Commit bbdd6808

Re: [v2 PATCH 2/8] watchdog/at91sam9_wdt: Convert to use the watchdog framework

2012-12-05 Thread Florian Fainelli
Hello Wenyou, On Wednesday 05 December 2012 09:34:21 Wenyou Yang wrote: According to the kernel document: convert_drivers_to_kernel_api.txt, remove the file_operations struct, miscdevice, and obsolete includes Since the at91sam watchdog inherent characteristics, add the watchdog operations:

Re: [PATCH 2/3] MODSIGN: Avoid using .incbin in C source

2012-12-05 Thread Michal Marek
Dne 5.12.2012 11:30, David Howells napsal(a): Takashi Iwai ti...@suse.de wrote: +#ifndef SYMBOL_PREFIX This comes via the command line? Yes, see scripts/Makefile.lib: ifdef CONFIG_SYMBOL_PREFIX _sym_flags = -DSYMBOL_PREFIX=$(patsubst %,%,$(CONFIG_SYMBOL_PREFIX)) _cpp_flags +=

Re: [PATCH 1/2] megaraid: fix BUG_ON() from incorrect use of delayed work

2012-12-05 Thread Daniel Vacek
On Tue, Dec 4, 2012 at 4:54 PM, Tejun Heo t...@kernel.org wrote: @@ -5190,7 +5188,7 @@ static void megasas_aen_polling(struct work_struct *work) { struct megasas_aen_event *ev = - container_of(work, struct megasas_aen_event, hotplug_work); +

[PATCH] ACPI / PM: Fix header of acpi_dev_pm_detach() in acpi.h

2012-12-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki rafael.j.wyso...@intel.com The header of acpi_dev_pm_detach() in include/linux/acpi.h has an incorrect return type, which should be void. Fix that. Signed-off-by: Rafael J. Wysocki rafael.j.wyso...@intel.com --- include/linux/acpi.h |2 +- 1 file changed, 1

Re: possible regression in kernel 3.6 and 3.7-rc: system hangs during nightly tape backup

2012-12-05 Thread Tilman Schmidt
Problem still exists in kernel 3.7-rc7. During the second backup run after I booted kernel 3.7.0-rc7, once again all disk activity suddenly ceased, dmesg started to report tasks hung for more than 120 seconds, and everything happening after that was forgotten after a reboot. Can I do anything to

Re: [PATCH 2/3] MODSIGN: Avoid using .incbin in C source

2012-12-05 Thread Michal Marek
Dne 5.12.2012 11:30, James Hogan napsal(a): However I think it's unfortunate having to stringify from C as it's pretty much always required to be in string form when used from a C file, usually in an asm block. Any objection to defining SYMBOL_PREFIX with the quotes around it for _c_flags

Re: [PATCHv2 1/1] dm-integrity: integrity protection device-mapper target

2012-12-05 Thread Kasatkin, Dmitry
Hello, Any comments? - Dmitry On Mon, Nov 26, 2012 at 4:39 PM, Dmitry Kasatkin dmitry.kasat...@intel.com wrote: Device-mapper integrity target provides transparent cryptographic integrity protection of the underlying read-write block device using hash-based message authentication codes

[PATCH resend 0/7] DMA: DMA unmap fixes for v3.8

2012-12-05 Thread Bartlomiej Zolnierkiewicz
Hi, This is a minimal set of patches from a larger DMA unmap rework (http://lkml.org/lkml/2012/11/5/111). There are no changes from the previous posting (except added Acked-by and Reviewed-by tags). Vinod, could you please apply them to v3.8? Thanks! patches #1-3 add missing DMA unmap on

[PATCH resend 1/7] async_tx: add missing DMA unmap to async_memcpy()

2012-12-05 Thread Bartlomiej Zolnierkiewicz
Do DMA unmap on -device_prep_dma_memcpy failure. Acked-by: Dan Williams d...@fb.com Reviewed-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- crypto/async_tx/async_memcpy.c | 6 ++

[PATCH resend 2/7] ioat: add missing DMA unmap to ioat_dma_self_test()

2012-12-05 Thread Bartlomiej Zolnierkiewicz
Make ioat_dma_self_test() do DMA unmapping itself and fix handling of failure cases. Acked-by: Dan Williams d...@fb.com Reviewed-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com ---

[PATCH resend 4/7] carma-fpga: pass correct flags to -device_prep_dma_memcpy()

2012-12-05 Thread Bartlomiej Zolnierkiewicz
DMA unmapping is handled by a driver so tell fsldma.c driver (which is the DMA engine driver used by carma-fpga) to skip unmapping destination and source buffers. Acked-by: Ira W. Snyder i...@ovro.caltech.edu Acked-by: Dan Williams d...@fb.com Reviewed-by: Tomasz Figa t.f...@samsung.com

[PATCH resend 6/7] async_tx: fix build for async_memset

2012-12-05 Thread Bartlomiej Zolnierkiewicz
Add missing linux/module.h include. Acked-by: Dan Williams d...@fb.com Reviewed-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- crypto/async_tx/async_memset.c | 1 + 1 file changed, 1

[PATCH resend 7/7] async_tx: add missing DMA unmap to async_memset()

2012-12-05 Thread Bartlomiej Zolnierkiewicz
Do DMA unmap on -device_prep_dma_memset failure. Acked-by: Dan Williams d...@fb.com Reviewed-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- crypto/async_tx/async_memset.c | 3 +++ 1

[PATCH resend 5/7] ioat3: add missing DMA unmap to ioat_xor_val_self_test()

2012-12-05 Thread Bartlomiej Zolnierkiewicz
Make ioat_xor_val_self_test() do DMA unmapping itself and fix handling of failure cases. Acked-by: Dan Williams d...@fb.com Reviewed-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com ---

[PATCH resend 3/7] mtd: fsmc_nand: add missing DMA unmap to dma_xfer()

2012-12-05 Thread Bartlomiej Zolnierkiewicz
Make dma_xfer() do DMA unmapping itself and fix handling of failure cases. Cc: David Woodhouse dw...@infradead.org Cc: Vipin Kumar vipin.ku...@st.com Acked-by: Dan Williams d...@fb.com Reviewed-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com

Re: [RFC v2 6/8] gpu: drm: tegra: Remove redundant host1x

2012-12-05 Thread Thierry Reding
On Wed, Dec 05, 2012 at 12:10:50PM +0200, Terje Bergström wrote: On 05.12.2012 10:33, Thierry Reding wrote: I've been thinking about this some more and came to the conclusion that since we will already have a tight coupling between host1x and tegra-drm we may just as well keep the client

Re: [PATCH 1/2] megaraid: fix BUG_ON() from incorrect use of delayed work

2012-12-05 Thread Daniel Vacek
On Wed, Dec 5, 2012 at 12:02 PM, Daniel Vacek neel...@gmail.com wrote: On Tue, Dec 4, 2012 at 4:54 PM, Tejun Heo t...@kernel.org wrote: @@ -5190,7 +5188,7 @@ static void megasas_aen_polling(struct work_struct *work) { struct megasas_aen_event *ev = -

Re: [PATCH 2/3] MODSIGN: Avoid using .incbin in C source

2012-12-05 Thread James Hogan
On 05/12/12 11:05, Michal Marek wrote: Dne 5.12.2012 11:30, James Hogan napsal(a): However I think it's unfortunate having to stringify from C as it's pretty much always required to be in string form when used from a C file, usually in an asm block. Any objection to defining SYMBOL_PREFIX

[PATCH resend] DMA: add cpu_relax() to busy-loop in dma_sync_wait()

2012-12-05 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Subject: [PATCH] DMA: add cpu_relax() to busy-loop in dma_sync_wait() Removal of the busy-loop from dma_sync_wait() is not a trivial task so just add cpu_relax() to the loop for now. Cc: Vinod Koul vinod.k...@intel.com Cc: Dan Williams

[PATCH resend] DMA: remove unused support for MEMSET operations

2012-12-05 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Subject: [PATCH] DMA: remove unused support for MEMSET operations There have never been any real users of MEMSET operations since they have been introduced in January 2007 (commit 7405f74badf46b5d023c5d2b670b4471525f6c91 dmaengine: refactor

[PATCH resend] async_tx: fix checking of dma_wait_for_async_tx() return value

2012-12-05 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Subject: [PATCH] async_tx: fix checking of dma_wait_for_async_tx() return value dma_wait_for_async_tx() can also return DMA_PAUSED (which should be considered as error). Cc: Vinod Koul vinod.k...@intel.com Cc: Dan Williams d...@fb.com Cc:

[PATCH resend 2/2] DMA: remove dma_async_memcpy_complete() macro

2012-12-05 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Subject: [PATCH 2/2] DMA: remove dma_async_memcpy_complete() macro Just use dma_async_is_tx_complete() directly. Cc: Vinod Koul vinod.k...@intel.com Cc: Dan Williams d...@fb.com Cc: Tomasz Figa t.f...@samsung.com Signed-off-by: Bartlomiej

[PATCH resend 1/2] DMA: remove dma_async_memcpy_issue_pending() macro

2012-12-05 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Subject: [PATCH 1/2] DMA: remove dma_async_memcpy_issue_pending() macro Just use dma_async_issue_pending() directly. Cc: Vinod Koul vinod.k...@intel.com Cc: Dan Williams d...@fb.com Cc: Tomasz Figa t.f...@samsung.com Signed-off-by:

Re: Wrong length / buffer overlow by the syslog syscall

2012-12-05 Thread Sylvain Munaut
Hi, It happens on several machines and this only seem to happen if there was a wrap around in the log buffer (it's a first observation on a limited number of sample so it might be a coincidence) I think the culprit is print_time and has nothing to do with wrap around, just the uptime. static

[PATCH] scatterlist: add a warning if sg_virt() is used on highmem pages

2012-12-05 Thread Sebastian Andrzej Siewior
sg_virt() on highmem pages won't work. This WARN_ON() should catch some that still try. Signed-off-by: Sebastian Andrzej Siewior bige...@linutronix.de --- include/linux/scatterlist.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/scatterlist.h

Re: [PATCH v3 3/4] sta2x11_vip: convert to videobuf2 and control framework

2012-12-05 Thread Mauro Carvalho Chehab
Hi Federico, Em 04-12-2012 23:12, Federico Vaga escreveu: On Tuesday 04 December 2012 14:15:15 Mauro Carvalho Chehab wrote: Em 24-09-2012 07:58, Federico Vaga escreveu: This patch re-write the driver and use the videobuf2 interface instead of the old videobuf. Moreover, it uses also the

Re: [RFC v2 6/8] gpu: drm: tegra: Remove redundant host1x

2012-12-05 Thread Terje Bergström
On 05.12.2012 13:13, Thierry Reding wrote: What I propose is to move the client registration code that is currently in drivers/gpu/drm/tegra/host1x.c to the host1x driver, which may or may not end up in drivers/gpu/host1x. Ok. host1x hardware access must be encapsulated in host1x driver

Re: [PATCH v5 5/8] fat: restructure export_operations

2012-12-05 Thread Namjae Jeon
2012/12/5, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: Let me think, if ‘subtree’ checking is enabled then we should check the length condition over here also? Please share if there are any other comments also. I'm not sure what did you mean. Where

[PATCH RFC v2] media: v4l2-ctrl: Add gain controls

2012-12-05 Thread Prabhakar Lad
From: Lad, Prabhakar prabhakar.cse...@gmail.com add support for per color component digital/analog gain controls and also their corresponding offset. Signed-off-by: Lad, Prabhakar prabhakar.cse...@gmail.com Cc: Sakari Ailus sakari.ai...@iki.fi Cc: Laurent Pinchart

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-05 Thread Namjae Jeon
2012/12/5, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: This became much better than before. However, we have to consolidate the code with fat_search_long() finally. E.g. this version is having the issue already fixed. If there is corruption in fat

Re: [RFC v2 6/8] gpu: drm: tegra: Remove redundant host1x

2012-12-05 Thread Lucas Stach
Am Mittwoch, den 05.12.2012, 13:47 +0200 schrieb Terje Bergström: [...] The problem that this solves is that the DRM driver needs to be bound to a specific platform device. None of the DRM subdevices are suitable because they are only part of the whole DRM device. I think that host1x is

Re: [PATCH 019/270] jbd: Fix assertion failure in commit code due to lacking transaction credits

2012-12-05 Thread Jan Kara
On Mon 26-11-12 14:55:09, Herton Ronaldo Krzesinski wrote: 3.5.7u1 -stable review patch. If anyone has any objections, please let me know. Note that this fix causes another problem which is fixed by 25389bb207987b5774182f763b9fb65ff08761c8 upstream.

Re: [RFC v2 6/8] gpu: drm: tegra: Remove redundant host1x

2012-12-05 Thread Daniel Vetter
On Wed, Dec 5, 2012 at 12:47 PM, Terje Bergström tbergst...@nvidia.com wrote: You're right in that binding to a sub-device is not a nice way. DRM framework just needs a struct device to bind to. exynos seems to solve this by introducing a virtual device and bind to that. I'm not sure if this

Re: [PATCH v3 1/3] mtd: nand: omap2: Update nerrors using ecc.strength

2012-12-05 Thread Sekhar Nori
Hi Avinash, On 11/29/2012 5:16 PM, Philip, Avinash wrote: Update number of errors using nand ecc strength. Also add macro definitions BCH8_ERROR_MAX BCH4_ERROR_MAX Can you please describe why the original method of setting nerrors was incorrect? Was it causing any issues in any particular

Re: [RFC v2 6/8] gpu: drm: tegra: Remove redundant host1x

2012-12-05 Thread Thierry Reding
On Wed, Dec 05, 2012 at 01:47:38PM +0200, Terje Bergström wrote: On 05.12.2012 13:13, Thierry Reding wrote: [...] Oh well, at the time nobody from NVIDIA was involved so I wrote that code in preparation for proper host1x support that I thought I would have to add myself at some point. I'm

Re: [RFC v2 6/8] gpu: drm: tegra: Remove redundant host1x

2012-12-05 Thread Daniel Vetter
On Wed, Dec 5, 2012 at 1:03 PM, Daniel Vetter dan...@ffwll.ch wrote: On Wed, Dec 5, 2012 at 12:47 PM, Terje Bergström tbergst...@nvidia.com wrote: You're right in that binding to a sub-device is not a nice way. DRM framework just needs a struct device to bind to. exynos seems to solve this

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

2012-12-05 Thread Hanjun Guo
On 2012/12/5 7:23, Toshi Kani wrote: On Tue, 2012-12-04 at 17:16 +0800, Hanjun Guo wrote: On 2012/12/4 8:10, Toshi Kani wrote: On Mon, 2012-12-03 at 12:25 +0800, Hanjun Guo wrote: On 2012/11/30 6:27, Toshi Kani wrote: On Thu, 2012-11-29 at 12:48 +0800, Hanjun Guo wrote: On 2012/11/29 2:41,

Re: [PATCH v5 5/8] fat: restructure export_operations

2012-12-05 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: I can understand what is doing. I'm asking why there is difference. 1) generic_fh_to_dentry() allows (*_PARENT fh_len == 2). 2) fat_fh_to_dentry_nostale() doesn't allows (*_PARENT fh_len == 3). Why does logic has difference? When we consider the

Re: [PATCH 4/4] ext3: Warn if mounting rw on a disk requiring stable page writes

2012-12-05 Thread Jan Kara
On Mon 26-11-12 18:17:40, Darrick J. Wong wrote: On Thu, Nov 22, 2012 at 10:12:40AM +0100, Jan Kara wrote: On Wed 21-11-12 17:47:55, Darrick J. Wong wrote: On Thu, Nov 22, 2012 at 08:47:13AM +1100, NeilBrown wrote: On Wed, 21 Nov 2012 22:33:33 +0100 Jan Kara j...@suse.cz wrote:

Re: [PATCH RFC v2] media: v4l2-ctrl: Add gain controls

2012-12-05 Thread Hans Verkuil
(resend without HTML formatting) On Wed 5 December 2012 12:49:29 Prabhakar Lad wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com add support for per color component digital/analog gain controls and also their corresponding offset. Some obvious questions below... Signed-off-by: Lad,

  1   2   3   4   5   6   7   8   9   10   >