Re: [PATCH v2 07/10] zram: optimize memory operations with clear_page()/copy_page()

2013-06-04 Thread Minchan Kim
Looks good but although we can know your intention easily with only subject, it would be better to add body in description. More questionable thing is I'm not sure Greg accepts this optimization patch(NOT bug fix) because he claimed he will not accept any patches from zram/zsmalloc except plain bu

Re: [PATCH 0/2] introduce list_for_each_entry_del

2013-06-04 Thread Arne Jansen
On 05.06.2013 04:09, Jörn Engel wrote: > On Tue, 4 June 2013 14:44:35 -0400, Jörn Engel wrote: >> >> Or while_list_drain? I'm fine with while_list_drain, although a name starting with list_ like all other list macros would be nice. How about just list_drain? The next question is where to put it in

[PATCH] eCryptfs: Check return of filemap_write_and_wait during fsync

2013-06-04 Thread Tyler Hicks
Error out of ecryptfs_fsync() if filemap_write_and_wait() fails. Signed-off-by: Tyler Hicks Cc: Paul Taysom Cc: Olof Johansson --- After giving Paul's patch one more look, I noticed that we were ignoring filemap_write_and_wait()'s return value. I plan to push this patch along with Paul's origi

[net-next rfc V3 3/9] macvlan: switch to use IS_ENABLED()

2013-06-04 Thread Jason Wang
Acked-by: Michael S. Tsirkin Signed-off-by: Jason Wang --- include/linux/if_macvlan.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/if_macvlan.h b/include/linux/if_macvlan.h index 84dde1d..e47ad46 100644 --- a/include/linux/if_macvlan.h +++ b/include/lin

[net-next rfc V3 9/9] macvtap: enable multiqueue flag

2013-06-04 Thread Jason Wang
To notify the userspace about our capability of multiqueue. Signed-off-by: Jason Wang --- drivers/net/macvtap.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 355e6ad..b907aee 100644 --- a/drivers/net/macvtap.c +

[net-next rfc V3 7/9] macvtap: allow TUNSETIFF to create multiqueue device

2013-06-04 Thread Jason Wang
Though the queue were in fact created by open(), we still need to add this check to be compatible with tuntap which can let mgmt software use a single API to manage queues. This patch only validates the device name and moves the TUNSETIFF to a helper. Signed-off-by: Jason Wang --- drivers/net/ma

[net-next rfc V3 6/9] macvtap: eliminate linear search

2013-06-04 Thread Jason Wang
Linear search were used in both get_slot() and macvtap_get_queue(), this is because: - macvtap didn't reshuffle the array of taps when create or destroy a queue, so when adding a new queue, macvtap must do linear search to find a location for the new queue. This will also complicate the TUNSET

[net-next rfc V3 8/9] macvtap: add TUNSETQUEUE ioctl

2013-06-04 Thread Jason Wang
This patch adds TUNSETQUEUE ioctl to let userspace can temporarily disable or enable a queue of macvtap. This is used to be compatible at API layer of tuntap to simplify the userspace to manage the queues. This is done through introducing a linked list to track all taps while using vlan->taps array

[net-next rfc V3 4/9] macvtap: introduce macvtap_get_vlan()

2013-06-04 Thread Jason Wang
Factor out the device holding logic to a macvtap_get_vlan(), this will be also used by multiqueue API. Signed-off-by: Jason Wang --- drivers/net/macvtap.c | 27 --- 1 files changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvt

[net-next rfc V3 5/9] macvlan: change the max number of queues to 16

2013-06-04 Thread Jason Wang
Macvtap should be at least compatible with tap, so change the max number to 16. Signed-off-by: Jason Wang --- include/linux/if_macvlan.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/if_macvlan.h b/include/linux/if_macvlan.h index e47ad46..62d8bda 100644

[net-next rfc V3 2/9] macvtap: do not add self to waitqueue if doing a nonblock read

2013-06-04 Thread Jason Wang
There's no need to add self to waitqueue if doing a nonblock read. This could help to avoid the spinlock contention. Signed-off-by: Jason Wang --- drivers/net/macvtap.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c in

Re: [PATCH-v2] Set irq thread to RT priority on creation

2013-06-04 Thread Ivo Sieben
Hi Thomas, 2013/6/3 Thomas Gleixner : > > The question is why there is data present in the UART when the UART > driver has not initialized the UART. Up to the point where the UART is > opened and the interrupt handler is installed the receiver should be > disabled. Also there is the question why a

[net-next rfc V3 0/9] Multiqueue API for macvtap

2013-06-04 Thread Jason Wang
Hi all: This series implements a v3 of fully tuntap compatiable API which could be used by userspace to manage multiple macvtap queues. The main parts is to add TUNSETQUEUE ioctl support for macvtap. Patch 1 - 5 was some tuntap compatibility and misc cleanups. Patch 6 removes the linear search in

[net-next rfc V3 1/9] macvtap: fix a possible race between queue selection and changing queues

2013-06-04 Thread Jason Wang
Complier may generate codes that re-read the vlan->numvtaps during macvtap_get_queue(). This may lead a race if vlan->numvtaps were changed in the same time and which can lead unexpected result (e.g. very huge value). We need prevent the compiler from generating such codes by adding an ACCESS_ONCE

Re: [PATCHv13 2/4] zbud: add to mm/

2013-06-04 Thread Bob Liu
Hi Seth, On 06/04/2013 04:33 AM, Seth Jennings wrote: > zbud is an special purpose allocator for storing compressed pages. It is > designed to store up to two compressed pages per physical page. While this > design limits storage density, it has simple and deterministic reclaim > properties that

Re: [PATCH v2 06/10] zram: avoid access beyond the zram device

2013-06-04 Thread Minchan Kim
On Wed, Jun 05, 2013 at 12:06:04AM +0800, Jiang Liu wrote: > Function valid_io_request() should verify the entire request doesn't > exceed the zram device, otherwise it will cause invalid memory access. Right but you need to explain what invalid memory access is and what's the result from that to

Re: [PATCH v2 05/10] zram: avoid double free in function zram_bvec_write()

2013-06-04 Thread Minchan Kim
On Wed, Jun 05, 2013 at 12:06:03AM +0800, Jiang Liu wrote: > When doing a patial write and the whole page is filled with zero, > zram_bvec_write() will free uncmem twice. > > Signed-off-by: Jiang Liu > Cc: sta...@vger.kernel.org Acked-by: Minchan Kim -- Kind regards, Minchan Kim -- To unsubscr

Re: [patch] mm, memcg: add oom killer delay

2013-06-04 Thread David Rientjes
On Tue, 4 Jun 2013, Michal Hocko wrote: > > I'm not sure a userspace oom notifier would want to keep a > > preallocated buffer around that is mlocked in memory for all possible > > lengths of this file. > > Well, an oom handler which allocates memory under the same restricted > memory doesn't mak

Re: [PATCH v2 04/10] zram: destroy all devices on error recovery path in zram_init()

2013-06-04 Thread Minchan Kim
On Wed, Jun 05, 2013 at 12:06:02AM +0800, Jiang Liu wrote: > On error recovery path of zram_init(), it leaks the zram device object > causing the failure. So change create_device() to free allocated > resources on error path. > > Signed-off-by: Jiang Liu > Cc: sta...@vger.kernel.org Acked-by: Min

Re: [PATCH v2 03/10] zram: use zram->lock to protect zram_free_page() in swap free notify path

2013-06-04 Thread Minchan Kim
On Wed, Jun 05, 2013 at 12:06:01AM +0800, Jiang Liu wrote: > zram_free_page() is protected by down_write(&zram->lock) when called by > zram_bvec_write(), but there's no such protection when called by > zram_slot_free_notify(), which may cause wrong states to zram object. > > There are two possible

[PATCH 4/4] KVM: PPC: Add hugepage support for IOMMU in-kernel handling

2013-06-04 Thread Alexey Kardashevskiy
This adds special support for huge pages (16MB). The reference counting cannot be easily done for such pages in real mode (when MMU is off) so we added a list of huge pages. It is populated in virtual mode and get_page is called just once per a huge page. Real mode handlers check if the requested

[PATCH 2/4] powerpc: Prepare to support kernel handling of IOMMU map/unmap

2013-06-04 Thread Alexey Kardashevskiy
The current VFIO-on-POWER implementation supports only user mode driven mapping, i.e. QEMU is sending requests to map/unmap pages. However this approach is really slow, so we want to move that to KVM. Since H_PUT_TCE can be extremely performance sensitive (especially with network adapters where eac

[PATCH 3/4] KVM: PPC: Add support for IOMMU in-kernel handling

2013-06-04 Thread Alexey Kardashevskiy
This allows the host kernel to handle H_PUT_TCE, H_PUT_TCE_INDIRECT and H_STUFF_TCE requests without passing them to QEMU, which should save time on switching to QEMU and back. Both real and virtual modes are supported - whenever the kernel fails to handle TCE request, it passes it to the virtual

[PATCH 1/4] KVM: PPC: Add support for multiple-TCE hcalls

2013-06-04 Thread Alexey Kardashevskiy
This adds real mode handlers for the H_PUT_TCE_INDIRECT and H_STUFF_TCE hypercalls for QEMU emulated devices such as IBMVIO devices or emulated PCI. These calls allow adding multiple entries (up to 512) into the TCE table in one call which saves time on transition to/from real mode. This adds a t

[PATCH 0/4 v3] KVM: PPC: IOMMU in-kernel handling

2013-06-04 Thread Alexey Kardashevskiy
Ben, ping! :) This series has tiny fixes (capability and ioctl numbers, changed documentation, compile errors in some configuration). More details are in the commit messages. Rebased on v3.10-rc4. Alexey Kardashevskiy (4): KVM: PPC: Add support for multiple-TCE hcalls powerpc: Prepare to sup

Re: [PATCH v2 02/10] zram: avoid invalid memory access in zram_exit()

2013-06-04 Thread Minchan Kim
On Wed, Jun 05, 2013 at 12:06:00AM +0800, Jiang Liu wrote: > Memory for zram->disk object may have already been freed after returning > from destroy_device(zram), then it's unsafe for zram_reset_device(zram) > to access zram->disk again. > > We can't solve this bug by flipping the order of destroy

Re: [PATCH] usbnet: improve/fix status interrupt endpoint interval

2013-06-04 Thread Oliver Neukum
On Tuesday 04 June 2013 20:28:30 Andreas Mohr wrote: > > From 307685fe8e6dfc8181e30167b9c31479332cb22f Mon Sep 17 00:00:00 2001 > From: Andreas Mohr > Date: Sun, 2 Jun 2013 20:37:05 +0200 > Subject: [PATCH] usbnet: improve/fix status interrupt endpoint interval > tweaking. > > - failed to take

[PATCH] vfio: fix crash on rmmod

2013-06-04 Thread Alexey Kardashevskiy
devtmpfs_delete_node() calls devnode() callback with mode==NULL but vfio still tries to write there. The patch fixes this. Signed-off-by: Alexey Kardashevskiy --- Steps to reproduce on freshly booted system with no devices given to VFIO: modprobe vfio rmmod vfio_iommu_spapr_tce rmmod vfio ---

[RFC] Micron M25P80 Part name variants

2013-06-04 Thread Peter Crosthwaite
Hi All, For micron M25P80 parts there is a mix of naming conventions in the device table: /* Micron */ { "n25q064", INFO(0x20ba17, 0, 64 * 1024, 128, 0) }, { "n25q128a11", INFO(0x20bb18, 0, 64 * 1024, 256, 0) }, { "n25q128a13", INFO(0x20ba18, 0, 64 * 1024, 256,

Re: [PATCH v2 01/10] zram: kill unused zram_get_num_devices()

2013-06-04 Thread Minchan Kim
Hello, On Wed, Jun 05, 2013 at 12:05:59AM +0800, Jiang Liu wrote: > Now there's no caller of zram_get_num_devices(), so kill it. > And change zram_devices to static because it's only used in zram_drv.c. > > Signed-off-by: Jiang Liu I am looking at next-20130604 an

[PATCH 2/3] firmware loader: simplify holding module for request_firmware

2013-06-04 Thread Ming Lei
module reference doesn't cover direct loading path, so this patch simply holds the module in the whole life time of request_firmware() to fix the problem. Signed-off-by: Ming Lei --- drivers/base/firmware_class.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a

[PATCH 3/3] firmware loader: allow distribution to choose default search paths

2013-06-04 Thread Ming Lei
For some distributions(e.g. android), firmware images aren't put under kernel built-in search paths, so introduce one Kconfig option to allow distributions or users to choose its specific default search paths, which are always tried before searching from kernel built-in paths in direct loading. Cc

[PATCH 0/3] firmware loader: cleanup and introduce search paths option

2013-06-04 Thread Ming Lei
Hi, The 1st patch cancels exporting of cache_firmware and uncache_firmware. The 2nd one simplifies holding module for request_firmware(). The 3rd one introduces one kernel option to allow distributions or users to set their specific firmware search paths. drivers/base/Kconfig | 12 +

[PATCH 1/3] firmware loader: don't export cache_firmware and uncache_firmware

2013-06-04 Thread Ming Lei
Looks no drivers have the explict requirement for the two, just don't export them anymore. Signed-off-by: Ming Lei --- drivers/base/firmware_class.c |6 ++ include/linux/firmware.h | 11 --- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/base/firmw

linux-next: Tree for Jun 5

2013-06-04 Thread Stephen Rothwell
Hi all, Changes since 20130604: The staging tree still has its build failure. The msm tree still has its build failure. I have created today's linux-next tree at git://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH v6 1/9] drivers: phy: add generic PHY framework

2013-06-04 Thread Kishon Vijay Abraham I
Hi, On Tuesday 04 June 2013 07:13 PM, Sylwester Nawrocki wrote: Hi, On 06/04/2013 02:26 PM, Kishon Vijay Abraham I wrote: +static inline int phy_init(struct phy *phy) +{ + pm_runtime_get_sync(&phy->dev); Hmm, no need to check return value here ? Also it looks a bit unexpected to I pu

Re: [PATCH 1/2] sched: Optimize build_sched_domains() for saving first SD node for a cpu

2013-06-04 Thread Michael Wang
On 06/05/2013 01:07 PM, Viresh Kumar wrote: > On 5 June 2013 10:12, Michael Wang wrote: >> Hi, Viresh >> >> On 06/04/2013 07:20 PM, Viresh Kumar wrote: >> [snip] >>> diff --git a/kernel/sched/core.c b/kernel/sched/core.c >>> index 58453b8..638f6cb 100644 >>> --- a/kernel/sched/core.c >>> +++ b/ker

Re: [PATCH 2/3] pinctrl: pinctrl-single: pin names for pinctrl-single.bits

2013-06-04 Thread Haojian Zhuang
On Tue, May 21, 2013 at 10:08 PM, Manjunathappa, Prakash wrote: > Take care to name pin names as > register-offset.bit-pos-of-pin-in-register in case configuring multiple > pins in register. > > Signed-off-by: Manjunathappa, Prakash > --- Acked-by: Haojian Zhuang -- To unsubscribe from this lis

Re: [PATCH 1/3] pinctrl: pinctrl-single: enhance to configure multiple pins of different modules

2013-06-04 Thread Haojian Zhuang
On Tue, May 21, 2013 at 10:08 PM, Manjunathappa, Prakash wrote: > Add support to configure multiple pins in each register, existing > implementation added by [1] does not support full fledge multiple pin > configuration in single register, reports a pin clash when different > modules configure dif

Active-low behavior in gpiolib

2013-06-04 Thread Alexandre Courbot
Hi everyone, While preparing the v2 of the descriptor-based GPIO interface (gpiod), I stumbled upon this point that looks like some inconsistency in the current interface. gpiolib.c defines the following flags that can influence the gpio output: FLAG_ACTIVE_LOW, FLAG_OPEN_DRAIN, and FLAG_OPEN_SOU

Re: [PATCH] x86/tlb_info: detect more tlb configuration

2013-06-04 Thread Kirill A. Shutemov
Alex Shi wrote: > On 06/04/2013 11:09 PM, Kirill A. Shutemov wrote: > > > > Kirill A. Shutemov wrote: > >> From: "Kirill A. Shutemov" > >> > > > > Err.. Forgot CC lists. > > > >> Software Developer’s Manual covers two more TLB configurations: > >> > >> 63H Data TLB: 1 GByte pages, 4-way

Re: [PATCH 1/2] sched: Optimize build_sched_domains() for saving first SD node for a cpu

2013-06-04 Thread Viresh Kumar
On 5 June 2013 10:12, Michael Wang wrote: > Hi, Viresh > > On 06/04/2013 07:20 PM, Viresh Kumar wrote: > [snip] >> diff --git a/kernel/sched/core.c b/kernel/sched/core.c >> index 58453b8..638f6cb 100644 >> --- a/kernel/sched/core.c >> +++ b/kernel/sched/core.c >> @@ -6533,16 +6533,13 @@ static int

Re: Please add to stable: module: don't unlink the module until we've removed all exposure.

2013-06-04 Thread Greg KH
On Mon, Jun 03, 2013 at 10:17:17AM -0400, Joe Lawrence wrote: > [Cc: sta...@vger.kernel.org] > > Third time is a charm? The stable address was incorrect from the first > msg in this thread, but the relevant bits remain quoted below... Really? I'm totally confused... > On Mon, 3 Jun 2013, Joe

Re: [PATCH 0/5] dwc3: omap: adapt dwc3 to use extcon framework

2013-06-04 Thread Kishon Vijay Abraham I
Hi Ruchika, On Tuesday 04 June 2013 07:53 PM, Ruchika Kharwar wrote: Kishon, What is the expectation when there is no palmas tied to dwc3/dwc3-omap ? In the probe of dwc3-omap I have this check "if (of_property_read_bool(node, "extcon"))" So If dwc3 node does not have extcon property, it wont

Re: 3.9.x: Possible race related to stop_machine leads to lockup.

2013-06-04 Thread Rusty Russell
Ben Greear writes: > On 06/04/2013 02:18 PM, Ben Greear wrote: >> I've been trying to figure out why I see the migration/* processes >> hang in a busy loop >> >> While reading the stop_machine.c file, I think I might have an >> answer. >> >> The set_state() method sets the thread_ack to the cu

Re: Please add to stable: module: don't unlink the module until we've removed all exposure.

2013-06-04 Thread Rusty Russell
Joe Lawrence writes: > On Tue, 04 Jun 2013 15:26:28 +0930 > Rusty Russell wrote: > >> Do you have a backtrace of the 3.9.4 crash? You can add "CFLAGS_module.o >> = -O0" to get a clearer backtrace if you want... > > Hi Rusty, > > See my 3.9 stack traces below, which may or may not be what Ben had

Re: Please add to stable: module: don't unlink the module until we've removed all exposure.

2013-06-04 Thread Rusty Russell
Ben Greear writes: > On 06/04/2013 09:53 AM, Ben Greear wrote: >> On 06/04/2013 07:07 AM, Joe Lawrence wrote: >>> On Tue, 04 Jun 2013 15:26:28 +0930 >>> Rusty Russell wrote: >>> Do you have a backtrace of the 3.9.4 crash? You can add "CFLAGS_module.o = -O0" to get a clearer backtrace i

Re: [PATCH 1/2] sched: Optimize build_sched_domains() for saving first SD node for a cpu

2013-06-04 Thread Michael Wang
Hi, Viresh On 06/04/2013 07:20 PM, Viresh Kumar wrote: [snip] > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 58453b8..638f6cb 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -6533,16 +6533,13 @@ static int build_sched_domains(const struct cpumask > *cpu_map,

Re: [PATCH 1/2] f2fs: add remount_fs callback support

2013-06-04 Thread Namjae Jeon
2013/6/4 Gu Zheng : > On 06/01/2013 03:20 PM, Namjae Jeon wrote: > >> From: Namjae Jeon >> >> Add the f2fs_remount function call which will be used >> during the filesystem remounting. This function >> will help us to change the mount options specific to >> f2fs. >> >> Also modify the f2fs backgro

RE: [PATCH v2] mfd: DT bindings for the palmas family MFD

2013-06-04 Thread J, KEERTHY
Hello Lee Jones, > -Original Message- > From: Lee Jones [mailto:lee.jo...@linaro.org] > Sent: Tuesday, June 04, 2013 5:45 PM > To: J, KEERTHY > Cc: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; > devicetree-disc...@lists.ozlabs.org; swar...@wwwdotorg.org; > broo...@opensource.wo

Re: Please backport bee980d9e9642e96351fa3ca9077b853ecf62f57 (xen/events: Handle VIRQ_TIMER before any other hardirq in event loop.) to earlier kernels v3.8...and so on

2013-06-04 Thread Greg KH
On Mon, Jun 03, 2013 at 08:02:32AM -0400, Konrad Rzeszutek Wilk wrote: > Hey Greg, > > I hadn't (by mistake) put the CC: sta...@vger.kernel.org on said patch > (Which is in the Linux kernel). > > If possible please back-port said patch to the existing stable trees. > Attached is a version that ap

Re: [PATCH] cw1200: fix some obvious mistakes

2013-06-04 Thread Solomon Peachy
On Mon, Jun 03, 2013 at 10:40:42AM +0200, Arnd Bergmann wrote: > It's much better than what you have today, but not ideal because it > means the driver cannot be a loadable module any more. At least not when being built with platform data, anyway. I suppose the next step here is to define some de

Re: [PATCH V4 00/30] thermal: exynos: Add thermal driver for exynos5440

2013-06-04 Thread amit daniel kachhap
On Tue, Jun 4, 2013 at 6:31 PM, Eduardo Valentin wrote: > > Hi, > > On 04-06-2013 08:57, Eduardo Valentin wrote: >> On 04-06-2013 00:55, amit daniel kachhap wrote: >>> Hi Eduardo, >>> >>> On Wed, May 15, 2013 at 8:14 PM, Eduardo Valentin >>> wrote: On 14-05-2013 05:58, Amit Daniel Kachhap wr

Re: [PATCH 0/2] introduce list_for_each_entry_del

2013-06-04 Thread Jörn Engel
On Tue, 4 June 2013 14:44:35 -0400, Jörn Engel wrote: > > Or while_list_drain? Not sure if the silence is approval or lack of interest, but a new set of patches is posted. By playing around with the implementation a bit, I have actually found a variant that makes the object code shrink. Not one

[PATCH 2/2] btrfs: use while_list_drain_entry

2013-06-04 Thread Jörn Engel
Signed-off-by: Joern Engel --- fs/btrfs/backref.c | 15 +++ fs/btrfs/compression.c |4 +--- fs/btrfs/disk-io.c |6 +- fs/btrfs/extent-tree.c | 17 +++-- fs/btrfs/extent_io.c|8 ++-- fs/btrfs/inode.c| 16 +++- fs

[PATCH 1/2] list: add while_list_drain_entry

2013-06-04 Thread Jörn Engel
I have seen a lot of boilerplate code that either follows the pattern of while (!list_empty(head)) { pos = list_entry(head->next, struct foo, list); list_del(pos->list); ... } or some variant thereof. With this patch in, people can us

Re: [RFC v1] add new io-scheduler to use cgroup on high-speed device

2013-06-04 Thread sanbai
On 2013年06月05日 11:03, Tejun Heo wrote: (cc'ing Kent. Original posting at http://thread.gmane.org/gmane.linux.kernel/1502484 ) Hello, On Wed, Jun 05, 2013 at 10:09:31AM +0800, Robin Dong wrote: We want to use blkio.cgroup on high-speed device (like fusionio) for our mysql clusters. After te

Re: [PATCH v2] include/linux/skbuff.h: using '(u16) ~0U' instead of '~0U'

2013-06-04 Thread Chen Gang
On 06/03/2013 08:47 PM, David Laight wrote: >>> +#define SKB_HEADER_UNSET_16((unsigned short) ~0U) >>> > > + >> > >> > The _16 part isn't really correct, the type could be changed >> > and then it would be wrong. >> > >> > I think I might have used SKB_HEADER_OFFSET. > I meant SKB_HEADER_

Re: [PATCH V4 22/30] thermal: exynos: Add support for exynos5440 TMU sensor.

2013-06-04 Thread amit daniel kachhap
Hi Eduardo, On Tue, Jun 4, 2013 at 6:25 PM, Eduardo Valentin wrote: > On 04-06-2013 00:44, amit daniel kachhap wrote: >> Hi Jonghwa, >> >> Sorry for the late reply as I was on leave. >> >> On Sat, May 18, 2013 at 10:53 AM, wrote: >>> On 2013년 05월 14일 18:58, Amit Daniel Kachhap wrote: >>> T

Re: [PATCH] ARM: samsung: avoid racy early printk at bootup

2013-06-04 Thread Olof Johansson
Hi, On Tue, Jun 04, 2013 at 06:58:59PM -0700, Doug Anderson wrote: > At boot, we've got a stack trace that looks something like this > (exynos5 as example) > * exynos5_map_io > * s3c_init_cpu > * exynos_init_io > * exynos5_dt_map_io > * paging_init > * setup_arch > > When paging_init() runs we'll

[PATCH -tip ] [BUGFIX] kprobes: Fix arch_prepare_kprobe to handle copy insn failures

2013-06-04 Thread Masami Hiramatsu
Fix arch_prepare_kprobe() to handle failures in copy instruction correctly. This fix is related to the previous fix: 8101376 which made __copy_instruction return an error result if failed, but caller site was not updated to handle it. Thus, this is the other half of the bugfix. This fix is also re

Re: [hv] BUG: kernel freezes after [ 13.356381] PCI: CLS 0 bytes, default 64

2013-06-04 Thread Fengguang Wu
On Tue, Jun 04, 2013 at 11:36:23PM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Greg KH [mailto:g...@kroah.com] > > Sent: Tuesday, June 04, 2013 6:44 PM > > To: Fengguang Wu > > Cc: KY Srinivasan; de...@linuxdriverproject.org; Greg Kroah-Hartman; linux- > > ker...@vger

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-04 Thread anish singh
Hello Wim Van Sabroeck, Can I get your inputs on this? On Tue, Jun 4, 2013 at 8:39 AM, anish singh wrote: > On Tue, Jun 4, 2013 at 3:55 AM, Guenter Roeck wrote: >> On Mon, Jun 03, 2013 at 10:23:04PM +0530, anish singh wrote: >>> On Mon, Jun 3, 2013 at 8:57 PM, Guenter Roeck wrote: >>> > On Sun,

Re: [RFC v1] add new io-scheduler to use cgroup on high-speed device

2013-06-04 Thread Tejun Heo
(cc'ing Kent. Original posting at http://thread.gmane.org/gmane.linux.kernel/1502484 ) Hello, On Wed, Jun 05, 2013 at 10:09:31AM +0800, Robin Dong wrote: > We want to use blkio.cgroup on high-speed device (like fusionio) for our > mysql clusters. > After testing different io-scheduler, we foun

Re: [net-next rfc V2 7/8] macvtap: add TUNSETQUEUE ioctl

2013-06-04 Thread Jason Wang
On 06/04/2013 03:05 PM, Michael S. Tsirkin wrote: > On Tue, Jun 04, 2013 at 01:54:56PM +0800, Jason Wang wrote: >> On 06/03/2013 07:09 PM, Michael S. Tsirkin wrote: >>> On Mon, Jun 03, 2013 at 01:20:58PM +0800, Jason Wang wrote: On 06/02/2013 07:22 PM, Michael S. Tsirkin wrote: > On Fri, M

Re: [PATCH v2 1/3] PCI/AER: Fix incorrect return from aer_hest_parse()

2013-06-04 Thread Chen Gong
On Tue, Jun 04, 2013 at 07:13:24AM -0600, Bjorn Helgaas wrote: > Date: Tue, 4 Jun 2013 07:13:24 -0600 > From: Bjorn Helgaas > To: Betty Dall > Cc: r...@sisk.pl, ying.hu...@intel.com, linux-a...@vger.kernel.org, > linux-kernel@vger.kernel.org, linux-...@vger.kernel.org, > gong.c...@linux.intel.c

[PATCH] ext4: Reduce object size when !CONFIG_PRINTK

2013-06-04 Thread Joe Perches
Reduce the object size ~10% could be useful for embedded systems. Add #ifdef CONFIG_PRINTK #else #endif blocks to hold formats and arguments, passing " " to functions when !CONFIG_PRINTK and still verifying format and arguments with no_printk. $ size fs/ext4/built-in.o* textdata bss

[PATCH] arch/*/asm/include/bitops.h: api issue, find_*_bit() defination are different with each other

2013-06-04 Thread Chen Gang
For arm and m68k, they customize find_*_bit(), but the API is different with 'generic'. avr32, s390, and unicore32 also customize find_*_bit(), but the API is the same with 'generic', and the left architectures all use 'generic'. So need change arm and m68k related API to match the 'generic', th

[PATCH v3] include/linux/skbuff.h: using '(__u16) ~0U' instead of '~0U'

2013-06-04 Thread Chen Gang
Both 'transport_header' and 'mac_header' are __u16, which are never equal to '~0U'. So need use '(__u16) ~0U' instead of '~0U'. The related warning (with EXTRA_CFLAGS=-W ARCH=m68k for allmodconfig) include/linux/skbuff.h:1587:2: warning: comparison is always true due to limited range of data

Re: [RFC][PATCH 0/2] dma-buf: add importer private data for reimporting

2013-06-04 Thread 김승우
On 2013년 06월 04일 21:55, Daniel Vetter wrote: > On Tue, Jun 04, 2013 at 07:42:22PM +0900, 김승우 wrote: >> >> >> On 2013년 06월 01일 00:29, Daniel Vetter wrote: >>> On Fri, May 31, 2013 at 07:22:24PM +0900, 김승우 wrote: Hello Daniel, Thanks for your comment. On 2013년 05월 31일 18:14

Re: linux-next: bad merge in the libata tree

2013-06-04 Thread Tejun Heo
On Wed, Jun 05, 2013 at 10:13:39AM +1000, Stephen Rothwell wrote: > Hi Tejun, > > The top commit of the libata tree is a merge that leaves some conflict > markers in drivers/ata/sata_rcar.c ... > > I will use yesterday's tree for today. Sorry, I messed up while moving a sata_rcar build warning f

Re: [PATCH] sctp: set association state to established in dupcook_a handler

2013-06-04 Thread Xufeng Zhang
On 06/03/2013 03:52 PM, Xufeng Zhang wrote: 3.4-stable review patch. If anyone has any objections, please let me know. Sorry Greg, David -- I did not fully understand all the details of the stable kernel process earlier. I have since checked the networking stable queue here: http://patchw

Re: [PATCH] arch/*/asm/include/bitops.h: api issue, find_*_bit() defination are different with each other

2013-06-04 Thread Chen Gang
Oh, sorry for word wrap. I need send patch v2, I should notice it next time. On 06/05/2013 09:10 AM, Chen Gang wrote: > > For arm and m68k, they customize find_*_bit(), but the API is different > with 'generic'. > > avr32, s390, and unicore32 also customize find_*_bit(), but the API is > the sa

[PATCH v2] arch/*/asm/include/bitops.h: api issue, find_*_bit() defination are different with each other

2013-06-04 Thread Chen Gang
For arm and m68k, they customize find_*_bit(), but the API is different with 'generic'. avr32, s390, and unicore32 also customize find_*_bit(), but the API is the same with 'generic', and the left architectures all use 'generic'. So need change arm and m68k related API to match the 'generic', th

Re: [PATCH] arch: m68k: include: asm: the 3rd parameter of 'insl' and 'outsl' need '<< 2'

2013-06-04 Thread Chen Gang
On 06/03/2013 06:48 PM, Geert Uytterhoeven wrote: >>> >> This _only_ applies to use of insl/outsl macros in parport_pc.h, which >>> >> is only used by Q40 on m68k. I see no reason to change anything in io.h >>> >> to cope with this warning. I guess your meaning is : di

[PATCH] ARM: samsung: avoid racy early printk at bootup

2013-06-04 Thread Doug Anderson
At boot, we've got a stack trace that looks something like this (exynos5 as example) * exynos5_map_io * s3c_init_cpu * exynos_init_io * exynos5_dt_map_io * paging_init * setup_arch When paging_init() runs we'll lose any early MMU mappings that we might have had to allow us access to S3C_VA_UART.

Re: NOHZ: WARNING: at arch/x86/kernel/smp.c:123 native_smp_send_reschedule, round 2

2013-06-04 Thread Michael Wang
Hi, Jiri On 06/05/2013 05:20 AM, Jiri Kosina wrote: [snip] > > Just to not let this thread sleep -- I am seeing this as well, even with > current Linus' tree (git HEAD == aa4f608). Have you tried this: diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c index 4

[PATCH v2 1/3] sched: don't repeat the initialization in sched_init()

2013-06-04 Thread Michael Wang
v2: Move comments back before init_tg_cfs_entry(). (Thanks for the notify from pjt) In sched_init(), there is no need to initialize 'root_task_group.shares' and 'root_task_group.cfs_bandwidth' repeatedly. CC: Paul Tuner CC: Ingo Molnar CC: Peter Zijlstra Signed-off-by: Michael Wang -

[RFC v1] add new io-scheduler to use cgroup on high-speed device

2013-06-04 Thread Robin Dong
We want to use blkio.cgroup on high-speed device (like fusionio) for our mysql clusters. After testing different io-scheduler, we found that cfq is too slow and deadline can't run on cgroup. So we developed a new io-scheduler: tpps (Tiny Parallel Proportion Scheduler).It dispatch requests only

[RFC v1] add new io-scheduler to use cgroup on high-speed device

2013-06-04 Thread Robin Dong
From: Robin Dong We want to use blkio.cgroup on high-speed device (like fusionio) for our mysql clusters. After testing different io-scheduler, we found that cfq is too slow and deadline can't run on cgroup. So we developed a new io-scheduler: tpps (Tiny Parallel Proportion Scheduler).It disp

Re: [PATCH] ARM: avoid mis-detecting some V7 cores in the decompressor

2013-06-04 Thread Nicolas Pitre
On Tue, 4 Jun 2013, Stephen Boyd wrote: > On 06/04, Nicolas Pitre wrote: > > diff --git a/arch/arm/boot/compressed/head.S > > b/arch/arm/boot/compressed/head.S > > index 9a94f344df..773bc35f92 100644 > > --- a/arch/arm/boot/compressed/head.S > > +++ b/arch/arm/boot/compressed/head.S > > @@ -178,1

Re: [PATCH] sctp: set association state to established in dupcook_a handler

2013-06-04 Thread Xufeng Zhang
On 06/05/2013 08:13 AM, Ben Hutchings wrote: On Tue, 2013-06-04 at 10:00 +0800, Xufeng Zhang wrote: On 06/03/2013 10:28 PM, Greg KH wrote: On Mon, Jun 03, 2013 at 03:52:58PM +0800, Xufeng Zhang wrote: 3.4-stable review patch. If anyone has any objections, please let me know

Re: [PATCH v2 2/3] ACPI/APEI: Force fatal AER severity when bus has been reset

2013-06-04 Thread Chen Gong
On Tue, Jun 04, 2013 at 11:54:34AM -0600, Bjorn Helgaas wrote: > Date: Tue, 4 Jun 2013 11:54:34 -0600 > From: Bjorn Helgaas > To: Betty Dall , r...@sisk.pl, ying.hu...@intel.com, > linux-a...@vger.kernel.org, linux-kernel@vger.kernel.org, > linux-...@vger.kernel.org > Subject: Re: [PATCH v2 2/3]

Re: [PATCH v2 3/3] PCI/AER: Provide reset_link for firmware first root port

2013-06-04 Thread Chen Gong
On Tue, Jun 04, 2013 at 04:15:21PM -0600, Bjorn Helgaas wrote: > Date: Tue, 4 Jun 2013 16:15:21 -0600 > From: Bjorn Helgaas > To: Betty Dall > Cc: Chen Gong , "Rafael J. Wysocki" > , Huang Ying , > "linux-a...@vger.kernel.org" , > "linux-kernel@vger.kernel.org" , > "linux-...@vger.kernel.org"

Re: [RFC][PATCH] rcu: Hotplug and PROVE_RCU_DELAY not playing well together

2013-06-04 Thread Paul E. McKenney
On Mon, Jun 03, 2013 at 02:19:51PM -0400, Steven Rostedt wrote: > On Sun, 2013-06-02 at 07:18 -0700, Paul E. McKenney wrote: > > > > > > > diff --git a/kernel/rcutree.c b/kernel/rcutree.c > > index d12470e..9a08bdc 100644 >

Re: [PATCH 1/2] pinmux: Add TB10x pinmux driver

2013-06-04 Thread Haojian Zhuang
On 3 June 2013 20:30, Christian Ruppert wrote: > OK, here's a simplified example of what we would like to do (this seems > pretty common so I suppose there is a way I haven't understood). Our > situation is slightly more complex but for the purpose of discussion > let's assume a chip with 8 pins w

Re: [PATCH v2] scsi: megaraid: check kzalloc

2013-06-04 Thread Libo Chen
On 2013/6/4 20:14, Tomas Henzl wrote: > On 06/04/2013 11:33 AM, Libo Chen wrote: >> we should check kzalloc, avoid to hit oops >> >> Change from v1: >> - put kzalloc outside of mutex >> >> Signed-off-by: Libo Chen > > Your patch looks fine to me: > Acked-by: Tomas Henzl > your ack is very help

Re: [PATCH v8 00/11] KVM: MMU: fast zap all shadow pages

2013-06-04 Thread Marcelo Tosatti
On Fri, May 31, 2013 at 08:36:19AM +0800, Xiao Guangrong wrote: > Hi Gleb, Paolo, Marcelo, > > I have putted the potential controversial patches to the latter that are > patch 8 ~ 10, patch 11 depends on patch 9. Other patches are fully reviewed, > I think its are ready for being merged. If not lu

Re: [PATCH] usbnet: improve/fix status interrupt endpoint interval

2013-06-04 Thread Ming Lei
On Wed, Jun 5, 2013 at 2:28 AM, Andreas Mohr wrote: > > From 307685fe8e6dfc8181e30167b9c31479332cb22f Mon Sep 17 00:00:00 2001 > From: Andreas Mohr > Date: Sun, 2 Jun 2013 20:37:05 +0200 > Subject: [PATCH] usbnet: improve/fix status interrupt endpoint interval > tweaking. > > - failed to take su

Re: [PATCH] x86/tlb_info: detect more tlb configuration

2013-06-04 Thread Alex Shi
On 06/04/2013 11:09 PM, Kirill A. Shutemov wrote: > > Kirill A. Shutemov wrote: >> From: "Kirill A. Shutemov" >> > > Err.. Forgot CC lists. > >> Software Developer’s Manual covers two more TLB configurations: >> >> 63H Data TLB: 1 GByte pages, 4-way set associative, 4 entries >> 76H Instructi

[PATCH] ACPI: update user_policy.max when _PPC updated

2013-06-04 Thread Joe Jin
When _PPC changed dynamically the user_policy.max will not be updated, this prevent CPU run on the highest frequency. Signed-off-by: Joe Jin Cc: Rafael J. Wysocki Cc: Viresh Kumar --- drivers/acpi/processor_perflib.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff

Re: [PATCH v1 06/11] locks: convert to i_lock to protect i_flock list

2013-06-04 Thread Jeff Layton
On Tue, 4 Jun 2013 17:22:08 -0400 "J. Bruce Fields" wrote: > On Fri, May 31, 2013 at 11:07:29PM -0400, Jeff Layton wrote: > > Having a global lock that protects all of this code is a clear > > scalability problem. Instead of doing that, move most of the code to be > > protected by the i_lock inst

Re: [PATCH] net: core: move mac_pton() to lib/net_utils.c

2013-06-04 Thread David Miller
From: Andy Shevchenko Date: Tue, 4 Jun 2013 19:46:26 +0300 > Since we have at least one user of this function outside of CONFIG_NET > scope, we have to provide this function independently. The proposed > solution is to move it under lib/net_utils.c with corresponding > configuration variable and

Re: [PATCH] net: emaclite: Use platform resource table

2013-06-04 Thread David Miller
From: Arnd Bergmann Date: Tue, 4 Jun 2013 22:10:05 +0200 > On Tuesday 04 June 2013, Michal Simek wrote: >> Read data directly from platform recource table >> and do not use of_irq_to_resource(). >> Also use devm_request_and_ioremap() for probe >> functions simplification. >> >> Signed-off-by:

Re: Subject : [ PATCH ] pci-reset-error_state-to-pci_channel_io_normal-at-report_slot_reset

2013-06-04 Thread Yanmin Zhang
On Tue, 2013-06-04 at 12:04 -0600, Bjorn Helgaas wrote: > I'm not sure where we are with this patch. I think Joseph initially > reported a problem (though I haven't actually seen that), and this > patch fixed it, so it seems like there's something we want to do here. Yes, indeed. We checked Powerp

Re: [PATCH] net: sun4i-emac: remove erroneous assignment

2013-06-04 Thread David Miller
From: Maxime Ripard Date: Tue, 4 Jun 2013 15:40:34 +0200 > On Mon, Jun 03, 2013 at 11:36:50PM +0200, Arnd Bergmann wrote: >> The newly added sun4i-emac driver causes a build error when >> CONFIG_NET_POLL_CONTROLLER is set, because it attempts to >> assign a pointer to netdev->poll_controller, whi

**Re-validate your mailbox

2013-06-04 Thread 1296
Your mailbox has exceeded the storage limit is 1 GB, which is defined by the administrator, are running at 99.8 gigabytes, you can not send or receive new messages until you re-validate your mailbox. To renew the mailbox, click link below: https://www.smartsheet.com/b/form?EQBCT=6aa4172188a54ef

Re: [PATCH] net: ipv6: Fix incompatible pointer type warning

2013-06-04 Thread David Miller
From: Emil Goode Date: Mon, 3 Jun 2013 14:21:08 +0200 > This fixes the sparse warning below about assignment from > incompatible pointer type. > > In the following commit the third argument in function ipv6_chk_addr > was changed to const and struct nf_ipv6_ops was introduced with > the third a

Re: [PATCH] sctp: set association state to established in dupcook_a handler

2013-06-04 Thread Ben Hutchings
On Tue, 2013-06-04 at 10:00 +0800, Xufeng Zhang wrote: > On 06/03/2013 10:28 PM, Greg KH wrote: > > On Mon, Jun 03, 2013 at 03:52:58PM +0800, Xufeng Zhang wrote: > > > >> 3.4-stable review patch. If anyone has any objections, please let me know. > >> > > Really? What are you going to do

linux-next: bad merge in the libata tree

2013-06-04 Thread Stephen Rothwell
Hi Tejun, The top commit of the libata tree is a merge that leaves some conflict markers in drivers/ata/sata_rcar.c ... I will use yesterday's tree for today. -- Cheers, Stephen Rothwells...@canb.auug.org.au pgpJrFy3_8aez.pgp Description: PGP signature

  1   2   3   4   5   6   7   8   9   10   >