Re: [PATCH] MAINTAINERS: mv643xx_eth: take over maintainership from Lennart

2013-10-04 Thread Jason Cooper
arth > Acked-by: Lennert Buytenhek > --- > TBH, I have no clue about netdev internals, yet. But if David and Jason > Cooper promise to have one eye each on the first Acks, I am willing to > take over maintainership. If David is ok with it, Acked-by: Jason Cooper thx, Jaso

Re: [PATCH 2/2 v2] epoll: Do not take global 'epmutex' for simple topologies

2013-10-04 Thread Jason Baron
On 10/03/2013 05:50 PM, Andrew Morton wrote: > On Tue, 1 Oct 2013 17:08:14 + (GMT) Jason Baron > wrote: > >> When calling EPOLL_CTL_ADD for an epoll file descriptor that is attached >> directly to a wakeup source, we do not need to take the global 'epmutex&

Re: TPM.ko module rename (was tpm: Pull everything related to /dev/tpmX into tpm-dev.c)

2013-10-04 Thread Jason Gunthorpe
good? I'll respin the patches and test modular rebuilds. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [RFC PATCH v2] fpga: Introduce new fpga subsystem

2013-10-04 Thread Jason Gunthorpe
he sysfs call backs are uncallable, so you have a free'd dangling pointer in mgr->dev, and an object lifetime issue. > > What happens when userspace is holding one of the sysfs files open and > > you unload the module? Looks like bad things? > > I didn't test this bu

Re: [tpmdd-devel] [PATCH 09/13] tpm: Pull everything related to sysfs into tpm-sysfs.c

2013-10-04 Thread Jason Gunthorpe
those not following the > entire thread, myself included. Two questions: Is userspace interested in using the TPM Locality feature, and if so is there any thoughts on what the interface should be? Is the kernel interested in using the TPM Locality feature? What for? Jason -- To unsubscribe

Re: [RFC PATCH v2 0/1] FPGA subsystem core

2013-10-04 Thread Jason Gunthorpe
RAM FPGAs, not FLASH based stuff, or whatever complex device required a byte code interpreter (never heard of that before). Jason -- 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://v

Re: [RFC PATCH v2 0/1] FPGA subsystem core

2013-10-04 Thread Jason Gunthorpe
g over the configuration bus, I don't think it makes much sense to try and combine those two things into a single subsystem. The majority use of JAM/STAPL output is for manufacturing automation. In system, In field programming of SRAM FPGAs via JTAG is uncommon. Jason -- To unsubscribe fro

Re: [RFC PATCH v2 0/1] FPGA subsystem core

2013-10-05 Thread Jason Gunthorpe
programming SRAM FPGAs, not FLASH ... Fortunately these PROMs are on their way out, modern FPGAs can be directly connected to normal NOR FLASH and you can program the NOR via drivers/mtd :) Regards, Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

TPM patches for 2.13

2013-10-06 Thread Jason Gunthorpe
I've prepared this branch: https://github.com/jgunthorpe/linux/commits/for-tpm dd783708a8c6fd713c784be68fcbcb7000c43c49 Jason Gunthorpe (11): tpm: ibmvtpm: Use %zd formatting for size_t format arguments tpm atmel: Call request_region with the correct base tpm: Store devna

[PATCH 1/2] tpm: Rename tpm.c to tpm-interface.c

2013-10-06 Thread Jason Gunthorpe
items into tpm-sysfs.c, tpm-dev.c and tpm-class.c. All that will be left is tpm command processing and interfacing code. Signed-off-by: Jason Gunthorpe --- drivers/char/tpm/Makefile | 2 ++ drivers/char/tpm/{tpm.c => tpm-interface.c} | 0 2 files changed, 2 insertions(+) rename

[PATCH 2/2] tpm: Merge the tpm-bios module with tpm.o

2013-10-06 Thread Jason Gunthorpe
them. Further, tpm-bios does nothing on its own, it has no module_init function. Thus we remove the exports and merge the modules to simplify things. The Makefile conditions are changed slightly to match the code, tpm_ppi is always required if CONFIG_ACPI is set. Signed-off-by: Jason Gunthorpe

Re: [PATCH 1/2] tpm: Rename tpm.c to tpm-interface.c

2013-10-06 Thread Jason Gunthorpe
On Sun, Oct 06, 2013 at 12:53:22PM -0700, Joe Perches wrote: > On Sun, 2013-10-06 at 13:38 -0600, Jason Gunthorpe wrote: > > This is preparation for making the tpm module multi-file. kbuild does > > not like having a .c file with the same name as a module. We wish to > > kee

managing out-of-tree deps for arm-soc in a single window was: Re: [GIT PULL] clockevents/clocksource: Add Marvell Orion SoC timer

2013-07-08 Thread Jason Cooper
On Mon, Jul 08, 2013 at 10:45:47AM +0200, Thomas Gleixner wrote: > On Sun, 7 Jul 2013, Jason Cooper wrote: > > On Sun, Jul 07, 2013 at 05:30:31PM +0200, Thomas Gleixner wrote: > > I don't mind delaying half of a series so the drivers/ portion can land > > in mainline, an

Re: [PATCH 0/2] virtio_net: fix race in RX VQ processing

2013-07-08 Thread Jason Wang
On 07/08/2013 05:05 PM, Michael S. Tsirkin wrote: > Jason Wang reported a race in RX VQ processing: > virtqueue_enable_cb is called outside napi lock, > violating virtio serialization rules. > The race has been there from day 1, but it got especially nasty in 3.0 &

Re: [PATCH 1/2] virtio: support unlocked queue poll

2013-07-08 Thread Jason Wang
t be able to get rid of a > barrier here. Deferring this optimization until we do some > benchmarking. > > Signed-off-by: Michael S. Tsirkin > --- Tested-by: Jason Wang Acked-by: Jason Wang > drivers/virtio/virtio_ring.c | 56 > ++--

Re: [PATCH 2/2] virtio_net: fix race in RX VQ processing

2013-07-08 Thread Jason Wang
n particular, used event can move backwards, > causing us to lose interrupts. > In a debug build, this can trigger panic within START_USE. > > Jason Wang reports that he can trigger the races artificially, > by adding udelay() in virtqueue_enable_cb() after virtio_mb(). > > Howev

[PATCH net 2/2] macvtap: correctly linearize skb when zerocopy is used

2013-07-09 Thread Jason Wang
. Tsirkin Signed-off-by: Jason Wang --- This patch is needed for stable. --- drivers/net/macvtap.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index f2c4a3b..b213020 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net

[PATCH net 1/2] tuntap: correctly linearize skb when zerocopy is used

2013-07-09 Thread Jason Wang
: Jason Wang --- This patch is needed for stable. --- drivers/net/tun.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 7eab5fc..01d5a86 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -1109,7 +1109,8 @@ static

Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'

2013-07-09 Thread Jason Cooper
ible with the old and the new names, and the binding docs updated to reflect the legacy name and the preferred name. thx, Jason. > diff --git a/Documentation/devicetree/bindings/arm/mrvl/intc.txt > b/Documentation/devicetree/bindings/arm/mrvl/intc.txt > index 8b53273..ad27548 100644 >

Re: [PATCH net 2/2] macvtap: correctly linearize skb when zerocopy is used

2013-07-09 Thread Jason Wang
On 07/09/2013 06:35 PM, Michael S. Tsirkin wrote: > On Tue, Jul 09, 2013 at 06:10:51PM +0800, Jason Wang wrote: >> Userspace may produce vectors greater than MAX_SKB_FRAGS. When we try to >> linearize parts of the skb to let the rest of iov to be fit in >> the frags, we ne

[PATCH v2 net 1/2] tuntap: correctly linearize skb when zerocopy is used

2013-07-09 Thread Jason Wang
: Jason Wang --- - This patch is needed for stable. - Changes from v1: introduce a local variable to track linear size --- drivers/net/tun.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 9c61f87..c3cb60b 100644 --- a

[PATCH v2 net 2/2] macvtap: correctly linearize skb when zerocopy is used

2013-07-09 Thread Jason Wang
. Tsirkin Signed-off-by: Jason Wang --- - This patch is needed for stable. - Changes from v1: introduce a local variable to track linear size. --- drivers/net/macvtap.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c

Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'

2013-07-10 Thread Jason Cooper
Neil, On Wed, Jul 10, 2013 at 12:25:17AM -0700, Neil Zhang wrote: > Jason, > > > -Original Message- > > From: Jason Cooper [mailto:ja...@lakedaemon.net] > > Sent: 2013年7月9日 20:49 > > To: Neil Zhang > > Cc: grant.lik...@linaro.org; haojian.zhu...@gmai

Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'

2013-07-10 Thread Jason Cooper
On Wed, Jul 10, 2013 at 04:19:46PM +0800, Haojian Zhuang wrote: > On Tue, Jul 9, 2013 at 8:49 PM, Jason Cooper wrote: > > Neil, > > > > On Tue, Jul 09, 2013 at 02:42:44PM +0800, Neil Zhang wrote: > >> The documented vendor prefix for Marvell is 'marvell&#x

Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'

2013-07-10 Thread Jason Cooper
On Wed, Jul 10, 2013 at 03:50:10PM -0500, Matt Sealey wrote: > On Tue, Jul 9, 2013 at 7:49 AM, Jason Cooper wrote: > > Neil, > > > > I agree with the need to change, however, this has been in the binding > > documentation since v3.5. I wish we had caught this when w

Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'

2013-07-10 Thread Jason Cooper
On Wed, Jul 10, 2013 at 10:08:50PM +0800, Haojian Zhuang wrote: > On Wed, Jul 10, 2013 at 8:24 PM, Jason Cooper wrote: > > On Wed, Jul 10, 2013 at 04:19:46PM +0800, Haojian Zhuang wrote: > >> On Tue, Jul 9, 2013 at 8:49 PM, Jason Cooper wrote: > >> > Neil, > &g

Re: [RFC] [PATCH 0/2] x86: make jump labels use int3-based breakpoint instead of stop_machine()

2013-07-10 Thread Jason Baron
wanted to improve with jump labels. Perhaps, ftrace should be considered at this point to make sure the interface is suitable for both callers? Also, I wonder if its worth batching up updates. For example, right now we simply update each call-site one at a time even if its associated with the same

Re: [RFC] [PATCH 1/2 v2] x86: introduce int3-based instruction patching

2013-07-11 Thread Jason Baron
used to do the changes. Thus, it would cause a deadlock if a > breakpoint were to spin till the changes were finished. > > -- Steve > > I'm not sure this works for jump labels either. Some tracepoints (which use jump_labels) have interrupts disabled across them. Thus, they will

Re: [PATCH] MAINTAINERS: dynamic debug: Jason's not there...

2013-07-11 Thread Jason Baron
Thanks Joe - feel free to add: Acked-by: Jason Baron On 07/10/2013 06:36 PM, Joe Perches wrote: > He must be too, umm, busy to update his own bouncing > email address too. > > Signed-off-by: Joe Perches > --- > > poke - prod... > > MAINTAINERS | 2 +- > 1 f

Re: ALSA: Conexant CX20585 (thinkpad t510) speaker powersave regression

2013-07-11 Thread Jason Schindler
ere, if I've missed a crucial step, please let me know. Thanks! -Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'

2013-07-12 Thread Jason Cooper
} * I can't find where Arnd's suggestion was, so this hack is completely my own. Keep in mind, the above hack is just a suggestion, it makes my skin crawl just looking at it... I'm open to other ideas. Or, not doing it at all. thx, Jason. -- To unsubscribe from this

Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'

2013-07-12 Thread Jason Cooper
On Fri, Jul 12, 2013 at 10:05:45AM -0600, Daniel Drake wrote: > On Fri, Jul 12, 2013 at 9:57 AM, Jason Cooper wrote: > > This also means we should do a patch for stable v3.5+ appending the > > "mrvl,..." string to the drivers that had it removed improperly, as >

Commit breaks strace: ARM: entry: allow ARM-private syscalls to be restarted

2013-09-17 Thread Jason Gunthorpe
e. Hopefully you can cook up a fix :) Regards, Jason commit 377747c40657eb35ad98a56439606d96a928425a Author: Will Deacon Date: Mon May 13 19:16:34 2013 +0100 ARM: entry: allow ARM-private syscalls to be restarted System calls will only be restarted after signal handling if they (a) r

Re: linux-next stats (Was: Linux 3.12-rc1)

2013-09-18 Thread Jason Cooper
Sebastian Hesselbarth > > Top ten commiters: > > 22 Jason Cooper :( That's my mistake. I should've been tracking my pull requests to arm-soc more closely. We've already tweaked the process to prevent this in the future. thx, Jason. -- To unsubscribe from this l

Re: [PATCH] arm: mvebu: use the main timer as clock source from DT

2013-09-18 Thread Jason Cooper
; arch/arm/mach-mvebu/Kconfig | 1 + > 1 file changed, 1 insertion(+) Applied to mvebu/fixes thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] arm: mvebu: use the main timer as clock source from DT

2013-09-18 Thread Jason Cooper
elect CPU_PJ4B > > + select CLKSRC_OF > > I disagree. This should go to drivers/clocksource/Kconfig, because it's > the clocksource driver that uses CLOCKSOURCE_OF_DECLARE. See what is > already done in drivers/clocksource/Kconfig for other drivers. Ack. I missed

Re: [PATCH] arm: mvebu: use the main timer as clock source from DT

2013-09-18 Thread Jason Cooper
t > Acked-by: Ezequiel Garcia > --- > drivers/clocksource/Kconfig | 1 + > 1 file changed, 1 insertion(+) Acked-by: Jason Cooper Daniel, John, Thomas, Can you queue this up for v3.12-rc2? It fixes a boot breakage. thx, Jason. > > diff --git a/drivers/clocksource/Kconfig b/d

Re: [RFC] eventpoll: Move a kmem_cache_alloc and kmem_cache_free

2013-09-18 Thread Jason Baron
I don't know of many tests. I did find the > one posted by Jason Baron at https://lkml.org/lkml/2011/2/25/297. > > Any thoughts? > Hi, Intersting - I think its also possible to completely drop taking the 'epmutex' for EPOLL_CTL_DEL by using rcu, and restricting it on

Re: [RFC PATCH] fpga: Introduce new fpga subsystem

2013-09-18 Thread Jason Cooper
+ Jason Gunthorpe On Wed, Sep 18, 2013 at 05:56:39PM +0200, Michal Simek wrote: > This new subsystem should unify all fpga drivers which > do the same things. Load configuration data to fpga > or another programmable logic through common interface. > It doesn't matter if it is

Re: [PATCH 00/26] ARM: provide common arch init for DT clocks

2013-09-18 Thread Jason Cooper
2 - > 41 files changed, 182 insertions(+), 449 deletions(-) > delete mode 100644 arch/arm/mach-vt8500/common.h > delete mode 100644 include/linux/clk/sunxi.h > delete mode 100644 include/linux/platform_data/clk-nomadik.h How would you like to handle this series? thx, Jason. --

Re: [RFC PATCH] fpga: Introduce new fpga subsystem

2013-09-18 Thread Jason Gunthorpe
On Wed, Sep 18, 2013 at 03:15:17PM -0400, Jason Cooper wrote: > + Jason Gunthorpe Thanks, looks interesting, we could possibly use this interface if it met our needs.. > On Wed, Sep 18, 2013 at 05:56:39PM +0200, Michal Simek wrote: > > This new subsystem should unify all fpga d

Re: /sys rules Re: [RFC PATCH] fpga: Introduce new fpga subsystem

2013-09-19 Thread Jason Cooper
ably should be > > added to sysfs-rules.txt as well, but the odds that anyone ever reads > > the documentation is so low I doubt it's even worth it. > > > > Also, all sysfs files have to be documented in Documentation/ABI/ which > > this patch does not d

Re: [RFC PATCH] fpga: Introduce new fpga subsystem

2013-09-19 Thread Jason Gunthorpe
require request_firmware. If you want to make it automatic then a program invoked via udev is the way to go. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 1/1] Fix address of second XOR engine in Kirkwood SoC DT

2013-09-19 Thread Jason Cooper
> Signed-off-by: Quentin Armitage > > --- > arch/arm/boot/dts/kirkwood.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to mvebu/fixes with Sebastian's Reviewed-by. thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel&q

Re: [RFC][PATCH v4 3/3] sched: Periodically decay max cost of idle balance

2013-09-03 Thread Jason Low
On Fri, 2013-08-30 at 12:29 +0200, Peter Zijlstra wrote: > rcu_read_lock(); > for_each_domain(cpu, sd) { > + /* > + * Decay the newidle max times here because this is a regular > + * visit to all the domains. Decay ~0.5% per second. > +

Re: [RFC][PATCH v4 3/3] sched: Periodically decay max cost of idle balance

2013-09-04 Thread Jason Low
On Fri, 2013-08-30 at 12:18 +0200, Peter Zijlstra wrote: > On Thu, Aug 29, 2013 at 01:05:36PM -0700, Jason Low wrote: > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > > index 58b0514..bba5a07 100644 > > --- a/kernel/sched/core.c > > +++ b/kernel/sched/co

Re: [PATCH V3 4/6] vhost_net: determine whether or not to use zerocopy at one time

2013-09-04 Thread Jason Wang
On 09/04/2013 07:59 PM, Michael S. Tsirkin wrote: > On Mon, Sep 02, 2013 at 04:40:59PM +0800, Jason Wang wrote: >> Currently, even if the packet length is smaller than VHOST_GOODCOPY_LEN, if >> upend_idx != done_idx we still set zcopy_used to true and rollback this >> choice

Re: [PATCH net-next 2/2] tuntap: orphan frags before trying to set tx timestamp

2013-09-05 Thread Jason Wang
On 09/04/2013 09:27 PM, Sergei Shtylyov wrote: > Hello. > > On 04-09-2013 8:33, Jason Wang wrote: > >> sock_tx_timestamp() will clear all zerocopy flags of skb which may >> lead the >> frags never to be orphaned. This will break guest to guest traffic >> when

[PATCH V2 net-next 2/2] tuntap: orphan frags before trying to set tx timestamp

2013-09-05 Thread Jason Wang
eda297729171fe16bf34fe5b0419dfb69060f623 (tun: Support software transmit time stamping). Cc: Richard Cochran Cc: Sergei Shtylyov Acked-by: Richard Cochran Signed-off-by: Jason Wang --- Changes from v1: - correct the comment location and style --- drivers/net/tun.c |8 +--- 1 files changed, 5 insertions(+), 3

[PATCH V2 net-next 1/2] tuntap: purge socket error queue on detach

2013-09-05 Thread Jason Wang
: Jason Wang --- drivers/net/tun.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 60a1e93..2dddb1b 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -409,6 +409,12 @@ static struct tun_struct *tun_enable_queue

Re: [PATCH 5/9] KGDB/KDB: add support for external NMI handler to call KGDB/KDB.

2013-09-05 Thread Jason Wessel
kgdb_cpu_enter(ks, regs, DCPU_WANT_MASTER); This is the one part of the patch I don't quite understand. Why does the kgdb_nmicallin() desire to be the master core? It was not obvious the circumstance as to why this is called. Is it some kind of watch dog where you really do want to en

Re: [PATCH 7/9] KGDB/KDB: add new system NMI entry code to KDB

2013-09-05 Thread Jason Wessel
eason = KDB_REASON_KEYBOARD; > > - if (in_nmi()) > + if (atomic_read(&kgdb_system_nmi)) > + reason = KDB_REASON_SYSTEM_NMI; This would get changed to if (ks->err == KDB_REASON_SYSNMI && ks->signo == SIGTRAP) Cheers, Jason. > + > +

Re: [RFC][PATCH v4 3/3] sched: Periodically decay max cost of idle balance

2013-09-09 Thread Jason Low
On Mon, 2013-09-09 at 13:44 +0200, Peter Zijlstra wrote: > On Tue, Sep 03, 2013 at 11:02:59PM -0700, Jason Low wrote: > > On Fri, 2013-08-30 at 12:29 +0200, Peter Zijlstra wrote: > > > rcu_read_lock(); > > > for_each_domain(cpu, sd) { > > > + /* >

Re: [RFC][PATCH v4 3/3] sched: Periodically decay max cost of idle balance

2013-09-09 Thread Jason Low
On Mon, 2013-09-09 at 13:49 +0200, Peter Zijlstra wrote: > On Wed, Sep 04, 2013 at 12:10:01AM -0700, Jason Low wrote: > > On Fri, 2013-08-30 at 12:18 +0200, Peter Zijlstra wrote: > > > On Thu, Aug 29, 2013 at 01:05:36PM -0700, Jason Low wrote: > > > > diff --git

RE: Panic at _blk_run_queue on 2.6.32

2013-09-10 Thread Rich, Jason
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Willy Tarreau > Sent: Wednesday, July 10, 2013 3:27 PM > To: Rich, Jason > Cc: linux-kernel@vger.kernel.org > Subject: Re: Panic at _blk_run_qu

RE: Panic at _blk_run_queue on 2.6.32

2013-09-10 Thread Rich, Jason
> -Original Message- > From: Rich, Jason > Sent: Tuesday, September 10, 2013 1:04 PM > To: 'Willy Tarreau' > Cc: linux-kernel@vger.kernel.org > Subject: RE: Panic at _blk_run_queue on 2.6.32 > > > -Original Message- > > From: linux-kernel

[PATCH net] tuntap: correctly handle error in tun_set_iff()

2013-09-11 Thread Jason Wang
solves the above issues. Reported-by: Wannes Rombouts Cc: Michael S. Tsirkin Signed-off-by: Jason Wang --- The patch were also needed for stable 3.8+. --- drivers/net/tun.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index

Re: [PATCH net] tuntap: correctly handle error in tun_set_iff()

2013-09-11 Thread Jason Wang
- Original Message - > On Wed, Sep 11, 2013 at 04:24:05PM +0800, Jason Wang wrote: > > Commit c8d68e6be1c3b242f1c598595830890b65cea64a (tuntap: multiqueue > > support) > > only call free_netdev() on err in tun_set_iff(). This causes several > > issues: > &

Re: [PATCH net] tuntap: correctly handle error in tun_set_iff()

2013-09-11 Thread Jason Wang
- Original Message - > On Wed, Sep 11, 2013 at 05:55:04AM -0400, Jason Wang wrote: > > > > > > - Original Message - > > > On Wed, Sep 11, 2013 at 04:24:05PM +0800, Jason Wang wrote: > > > > Commit c8d68e6be1c3b242f1c598595830890b65

[PATCH net V2] tuntap: correctly handle error in tun_set_iff()

2013-09-11 Thread Jason Wang
solves the above issues. Reported-by: Wannes Rombouts Cc: Michael S. Tsirkin Signed-off-by: Jason Wang --- - Changes from V1: shift 1 space for label err_free_netdev and keep commit log under 70 chars per line. - The patch were needed for stable kernel 3.8+. --- drivers/net/tun.c | 11

[PATCH v5 1/3] sched: Reduce overestimating rq->avg_idle

2013-09-13 Thread Jason Low
() first. Then, if avg_idle exceeds the max, we set it to the max. Signed-off-by: Jason Low Reviewed-by: Rik van Riel Reviewed-by: Srikar Dronamraju --- kernel/sched/core.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index

[PATCH v5 2/3] sched: Consider max cost of idle balance per sched domain

2013-09-13 Thread Jason Low
e CPU is not idle for longer than the cost to balance. Signed-off-by: Jason Low --- arch/metag/include/asm/topology.h |1 + include/linux/sched.h |1 + include/linux/topology.h |3 +++ kernel/sched/core.c |3 ++- kernel/sched/fair.c

[PATCH v5 0/3] sched: Limiting idle balance

2013-09-13 Thread Jason Low
| +23.1% | +5.1% | +0.0% shared | +3.0% | +4.5% | +1.4% ---- Jason Low (3): sched: Reduce overestimating rq->avg_idle sched: Consider max

[PATCH v5 3/3] sched: Periodically decay max cost of idle balance

2013-09-13 Thread Jason Low
v4->v5 - Increase the decay to 1% per second. - Peter rewrote much of the logic. This patch builds on patch 2 and periodically decays that max value to do idle balancing per sched domain by approximately 1% per second. Also decay the rq's max_idle_balance_cost value. Signed-off-by: J

Re: [PATCH] tun: don't look at current when non-blocking

2013-10-07 Thread Jason Wang
On 10/07/2013 02:25 AM, Michael S. Tsirkin wrote: > We play with a wait queue even if socket is > non blocking. This is an obvious waste. > Besides, it will prevent calling the non blocking > variant when current is not valid. > > Signed-off-by: Michael S. Tsirkin > ---

Re: [PATCH 2/8] MAINTAINERS: add ARM Marvell Berlin SoC

2013-10-08 Thread Jason Cooper
On Tue, Oct 08, 2013 at 02:24:27PM +0200, Sebastian Hesselbarth wrote: > This adds Marvell Berlin SoC to the list of maintainers. I am taking > maintainership for arch/arm/mach-berlin/. > > Signed-off-by: Sebastian Hesselbarth > --- > Cc: Jason Cooper > Cc: Thomas Petazzoni

Re: manual merge of the mvebu tree

2013-10-08 Thread Jason Cooper
witch to DT probed mbus address windows), and 51e40f5 > (ARM: dove: remove custom .init_time hook). > > I fixed them up (see below). Please verify that the resolution looks > correct. Looks good to me, thanks! thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe l

Re: [PATCH 2/2] ARM: Dove: Add the audio device to the Cubox DT

2013-10-08 Thread Jason Cooper
it indefinitely, and we'll see if we can work out the rest in fairly short order. Posting a new version of series would help kick off that conversation... ;-) thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...

Re: [PATCH v4] ARM: kirkwood: retain MAC address for DT ethernet

2013-10-08 Thread Jason Cooper
o > valid MAC address property. This patch copies MAC address register > contents set up by bootloaders early, notably before ethernet clocks > are gated. While at it, also reorder call sequence in _dt_init. > > Signed-off-by: Sebastian Hesselbarth > Reviewed-by: Jason Gunthor

Re: [PATCH 2/2] ARM: Dove: Add the audio device to the Cubox DT

2013-10-08 Thread Jason Cooper
On Tue, Oct 08, 2013 at 07:59:49PM +0200, Jean-Francois Moine wrote: > On Tue, 8 Oct 2013 12:11:45 -0400 > Jason Cooper wrote: > > > Jean-Francois, > > > > On Thu, Oct 03, 2013 at 06:17:16PM +0200, Jean-Francois Moine wrote: > > > It seems that my patch about

Re: [PATCH] tun: don't look at current when non-blocking

2013-10-08 Thread Jason Wang
On 10/09/2013 03:46 AM, David Miller wrote: > From: "Michael S. Tsirkin" > Date: Sun, 6 Oct 2013 21:25:12 +0300 > >> We play with a wait queue even if socket is >> non blocking. This is an obvious waste. >> Besides, it will prevent calling the non blocking >> variant when current is not valid. >>

Re: [PATCH v2] ARM: Dove: fix bad properties of the si5351 clkout2 used by Cubox audio

2013-10-09 Thread Jason Cooper
--- > 1 file changed, 2 insertions(+), 8 deletions(-) Applied to mvebu/dt with Sebastian's Ack. thx, Jason. -- 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://v

Re: linux-next: manual merge of the mvebu tree

2013-10-09 Thread Jason Cooper
51e40f5 (ARM: dove: > remove custom .init_time hook). > > I fixed them up (see below). Please verify that the resolution looks > good. Looks good to me, thanks for picking up the linux-next duties, it's a big help. thx, Jason. -- To unsubscribe from this list: send the line "uns

Re: linux-next: manual merge of the mvebu tree

2013-10-09 Thread Jason Cooper
th. Not a big deal, just thought I'd pass along the idea for the next time you're tweaking your scripts. thx, Jason. -- 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://vg

Re: [TrouSerS-tech] [tpmdd-devel] [PATCH 09/13] tpm: Pull everything related to sysfs into tpm-sysfs.c

2013-10-09 Thread Jason Gunthorpe
ove by having trousers create unix domain sockets for each of the privilege levels and using the usual security mechanisms to protect access to those sockets. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.

Re: [RFC PATCH v2 0/1] FPGA subsystem core

2013-10-09 Thread Jason Gunthorpe
the wrong FPGA could permanently destroy the system. This is why we have meta-data encoded with the bitstream. The user space loader does some sanity checks :) Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ke

Re: linux-next: manual merge of the mvebu tree

2013-10-10 Thread Jason Cooper
On Thu, Oct 10, 2013 at 12:57:03PM +0200, Thierry Reding wrote: > On Wed, Oct 09, 2013 at 10:37:27AM -0400, Jason Cooper wrote: > > Thierry, > > > > On Wed, Oct 09, 2013 at 04:14:27PM +0200, Thierry Reding wrote: > > > Today's linux-next merge of the mvebu tree

Re: [TrouSerS-tech] [tpmdd-devel] [PATCH 09/13] tpm: Pull everything related to sysfs into tpm-sysfs.c

2013-10-10 Thread Jason Gunthorpe
otect sealed > data (trusted keyrings) such that user-space could not even unseal It seems reasonable to have TPM data that will only live in the kernel to be only releasable by the kernel.. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body o

[PATCH v4 1/3] sched: Reduce overestimating rq->avg_idle

2013-08-29 Thread Jason Low
() first. Then, if avg_idle exceeds the max, we set it to the max. Signed-off-by: Jason Low Reviewed-by: Rik van Riel --- kernel/sched/core.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 05c39f0..93b18ef 100644 --- a

[PATCH v4 2/3] sched: Consider max cost of idle balance per sched domain

2013-08-29 Thread Jason Low
average. This further reduces the chance we attempt balancing when the CPU is not idle for longer than the cost to balance. I also limited the max cost of each domain to 5*sysctl_sched_migration_cost as a way to prevent the max from becoming too inflated. Signed-off-by: Jason Low --- ar

[PATCH v4 0/3] sched: Limiting idle balance

2013-08-29 Thread Jason Low
-1.2% shared | +9.0% | +13.0% | +6.5% ---- Jason Low (3): sched: Reduce overestimating rq->avg_idle sched: Consider max cost of idle balance p

[RFC][PATCH v4 3/3] sched: Periodically decay max cost of idle balance

2013-08-29 Thread Jason Low
e with max cost to do idle balancing + sched_migration_cost. While using the max cost helps reduce overestimating the average idle, the sched_migration_cost can help account for those additional costs of idle balancing. Signed-off-by: Jason Low --- arch/metag/include/asm/topology.h |

Re: [PATCH 6/6] vhost_net: remove the max pending check

2013-08-29 Thread Jason Wang
On 08/25/2013 07:53 PM, Michael S. Tsirkin wrote: > On Fri, Aug 23, 2013 at 04:55:49PM +0800, Jason Wang wrote: >> On 08/20/2013 10:48 AM, Jason Wang wrote: >>> On 08/16/2013 06:02 PM, Michael S. Tsirkin wrote: >>>>> On Fri, Aug 16, 2013 at 01:16:30PM +0800, Jas

[PATCH V2 6/6] vhost_net: correctly limit the max pending buffers

2013-08-29 Thread Jason Wang
into main loop. Tests shows about 5%-10% improvement on per cpu throughput for guest tx. But a 5% drop on per cpu transaction rate for a single session TCP_RR. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 15 --- 1 files changed, 4 insertions(+), 11 deletions(-) diff --

[PATCH V2 0/6] vhost code cleanup and minor enhancement

2013-08-29 Thread Jason Wang
!= done_idx to (upend_idx + 1) % UIO_MAXIOV == done_idx. - Switch to use put_user() in __vhost_add_used_n() if there's only one used - Keep the max pending check based on Michael's suggestion. Jason Wang (6): vhost_net: make vhost_zerocopy_signal_used() returns void vhos

[PATCH V2 1/6] vhost_net: make vhost_zerocopy_signal_used() returns void

2013-08-29 Thread Jason Wang
None of its caller use its return value, so let it return void. Signed-off-by: Jason Wang --- drivers/vhost/net.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 969a859..280ee66 100644 --- a/drivers/vhost/net.c +++ b

[PATCH V2 5/6] vhost_net: poll vhost queue after marking DMA is done

2013-08-29 Thread Jason Wang
We used to poll vhost queue before making DMA is done, this is racy if vhost thread were waked up before marking DMA is done which can result the signal to be missed. Fix this by always poll the vhost thread before DMA is done. Signed-off-by: Jason Wang --- drivers/vhost/net.c |9

[PATCH V2 4/6] vhost_net: determine whether or not to use zerocopy at one time

2013-08-29 Thread Jason Wang
Currently, even if the packet length is smaller than VHOST_GOODCOPY_LEN, if upend_idx != done_idx we still set zcopy_used to true and rollback this choice later. This could be avoided by determine zerocopy once by checking all conditions at one time before. Signed-off-by: Jason Wang --- drivers

[PATCH V2 2/6] vhost_net: use vhost_add_used_and_signal_n() in vhost_zerocopy_signal_used()

2013-08-29 Thread Jason Wang
much more less times of used index updating and memory barriers. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 280ee66..8a6dd0d 100644 --- a/drivers/vhost/net.c

[PATCH V2 3/6] vhost: switch to use vhost_add_used_n()

2013-08-29 Thread Jason Wang
Let vhost_add_used() to use vhost_add_used_n() to reduce the code duplication. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 54 ++-- 1 files changed, 12 insertions(+), 42 deletions(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost

Re: [PATCH V2 5/6] vhost_net: poll vhost queue after marking DMA is done

2013-09-01 Thread Jason Wang
On 08/31/2013 12:44 AM, Ben Hutchings wrote: > On Fri, 2013-08-30 at 12:29 +0800, Jason Wang wrote: >> We used to poll vhost queue before making DMA is done, this is racy if vhost >> thread were waked up before marking DMA is done which can result the signal >> to >> be

Re: [PATCH V2 4/6] vhost_net: determine whether or not to use zerocopy at one time

2013-09-01 Thread Jason Wang
On 08/31/2013 02:35 AM, Sergei Shtylyov wrote: > Hello. > > On 08/30/2013 08:29 AM, Jason Wang wrote: > >> Currently, even if the packet length is smaller than >> VHOST_GOODCOPY_LEN, if >> upend_idx != done_idx we still set zcopy_used to true and rollback >>

Re: [PATCH V2 2/6] vhost_net: use vhost_add_used_and_signal_n() in vhost_zerocopy_signal_used()

2013-09-01 Thread Jason Wang
On 09/02/2013 01:50 PM, Michael S. Tsirkin wrote: > On Fri, Aug 30, 2013 at 12:29:18PM +0800, Jason Wang wrote: >> > We tend to batch the used adding and signaling in vhost_zerocopy_callback() >> > which may result more than 100 used buffers to be updated in >> > v

Re: [PATCH V2 1/6] vhost_net: make vhost_zerocopy_signal_used() returns void

2013-09-01 Thread Jason Wang
On 09/02/2013 01:51 PM, Michael S. Tsirkin wrote: > tweak subj s/returns/return/ > > On Fri, Aug 30, 2013 at 12:29:17PM +0800, Jason Wang wrote: >> > None of its caller use its return value, so let it return void. >> > >> > Signed-off-by: Jason Wang &g

Re: [PATCH V2 6/6] vhost_net: correctly limit the max pending buffers

2013-09-01 Thread Jason Wang
On 09/02/2013 01:56 PM, Michael S. Tsirkin wrote: > On Fri, Aug 30, 2013 at 12:29:22PM +0800, Jason Wang wrote: >> As Michael point out, We used to limit the max pending DMAs to get better >> cache >> utilization. But it was not done correctly since it was one done when

Re: [PATCH V2 6/6] vhost_net: correctly limit the max pending buffers

2013-09-02 Thread Jason Wang
On 09/02/2013 02:30 PM, Jason Wang wrote: > On 09/02/2013 01:56 PM, Michael S. Tsirkin wrote: >> > On Fri, Aug 30, 2013 at 12:29:22PM +0800, Jason Wang wrote: >>> >> As Michael point out, We used to limit the max pending DMAs to get >>> >> better cac

[PATCH V3 3/6] vhost: switch to use vhost_add_used_n()

2013-09-02 Thread Jason Wang
Let vhost_add_used() to use vhost_add_used_n() to reduce the code duplication. To avoid the overhead brought by __copy_to_user(). We will use put_user() when one used need to be added. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 54 ++-- 1

[PATCH V3 2/6] vhost_net: use vhost_add_used_and_signal_n() in vhost_zerocopy_signal_used()

2013-09-02 Thread Jason Wang
much less times of used index updating and memory barriers. 2% performance improvement were seen on netperf TCP_RR test. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c

[PATCH V3 5/6] vhost_net: poll vhost queue after marking DMA is done

2013-09-02 Thread Jason Wang
We used to poll vhost queue before making DMA is done, this is racy if vhost thread were waked up before marking DMA is done which can result the signal to be missed. Fix this by always polling the vhost thread before DMA is done. Signed-off-by: Jason Wang --- - The patch is needed for stable

[PATCH V3 6/6] vhost_net: correctly limit the max pending buffers

2013-09-02 Thread Jason Wang
into main loop. Tests shows about 5%-10% improvement on per cpu throughput for guest tx. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 18 +++--- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 8e9dc55..831eb4f 1

<    1   2   3   4   5   6   7   8   9   10   >