[net-next RFC 7/8] macvtap: add TUNSETQUEUE ioctl

2013-05-22 Thread Jason Wang
detached. Only the queue with NULL set to this pointer can be used to forward packets. Signed-off-by: Jason Wang --- drivers/net/macvtap.c | 147 +++ include/linux/if_macvlan.h |7 ++ 2 files changed, 126 insertions(+), 28 deletions(-) diff --git a

[net-next RFC 8/8] macvtap: enable multiqueue flag

2013-05-22 Thread Jason Wang
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 06b10a5..6a4af74 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -31,10 +31,6

Re: [f2fs-dev] [PATCH 3/4] f2fs: return proper error from start_gc_thread

2013-05-23 Thread Jason Hrycay
{ > kfree(gc_th); gc_th is free'd here, save off PTR_ERR result to avoid use-after-free? > sbi->gc_thread = NULL; > - return -ENOMEM; > + return PTR_ERR(gc_th->f2fs_gc_task); > } > return 0; > } >

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-23 Thread Jason Cooper
Sebastian, On Wed, May 22, 2013 at 02:16:07PM -0600, Jason Gunthorpe wrote: > On Wed, May 22, 2013 at 10:04:02PM +0200, Sebastian Hesselbarth wrote: > > > Ethernet controllers found on Kirkwood SoCs not only suffer from loosing > > MAC address register contents on clock ga

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-23 Thread Jason Gunthorpe
On Thu, May 23, 2013 at 12:01:11PM -0400, Jason Cooper wrote: > > > + /* Kirkwood resets some registers on gated clocks. Especially > > > + * CLK125_BYPASS_EN must be cleared but is not available on > > > + * all other SoCs/System Controllers using this dri

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-23 Thread Jason Cooper
On Thu, May 23, 2013 at 11:11:12AM -0600, Jason Gunthorpe wrote: > On Thu, May 23, 2013 at 12:01:11PM -0400, Jason Cooper wrote: > > > > + /* Kirkwood resets some registers on gated clocks. Especially > > > > +* CLK125_BYPASS_EN must be clea

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-23 Thread Jason Gunthorpe
On Thu, May 23, 2013 at 01:23:39PM -0400, Jason Cooper wrote: > Shouldn't it rather be > > compatible = "marvell,kirkwood-eth", "marvell,orion-eth"; Not sure about orion-eth? > I'm inclined to go with of_machine_is_compatible() since the only

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-23 Thread Jason Cooper
On Thu, May 23, 2013 at 11:53:57AM -0600, Jason Gunthorpe wrote: > On Thu, May 23, 2013 at 01:23:39PM -0400, Jason Cooper wrote: > > > Shouldn't it rather be > > > > compatible = "marvell,kirkwood-eth", "marvell,orion-eth"; > > No

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-23 Thread Jason Gunthorpe
On Thu, May 23, 2013 at 02:40:28PM -0400, Jason Cooper wrote: > > But there is a larger problem here then just this one bit. > > > > The PSC1 register must be set properly for the board layout, and today > > we rely on the bootloader to set it. In fact, even with Se

Re: [net-next RFC 4/8] macvlan: reduce the max number of taps to 8

2013-05-23 Thread Jason Wang
On 05/23/2013 02:37 PM, Michael S. Tsirkin wrote: > On Thu, May 23, 2013 at 11:12:29AM +0800, Jason Wang wrote: >> To be same with tap. >> >> Signed-off-by: Jason Wang > Well for tap the very specific reason was that > there's an array of big queue structures, >

Re: [net-next RFC 5/8] macvtap: eliminate linear search

2013-05-23 Thread Jason Wang
On 05/23/2013 07:41 PM, Michael S. Tsirkin wrote: > On Thu, May 23, 2013 at 11:12:30AM +0800, Jason Wang wrote: >> Linear search were used in both get_slot() and macvtap_get_queue(), this is >> because: >> >> - macvtap didn't reshuffle the array of taps when c

Re: [net-next RFC 6/8] macvtap: allow TUNSETIFF to create multiqueue device

2013-05-23 Thread Jason Wang
On 05/23/2013 07:45 PM, Michael S. Tsirkin wrote: > On Thu, May 23, 2013 at 11:12:31AM +0800, Jason Wang wrote: >> 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 AP

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

2013-05-23 Thread Jason Wang
On 05/23/2013 07:52 PM, Michael S. Tsirkin wrote: > On Thu, May 23, 2013 at 11:12:32AM +0800, Jason Wang wrote: >> 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 >> tunt

Re: [net-next RFC 3/8] macvtap: introduce macvtap_get_vlan()

2013-05-23 Thread Jason Wang
On 05/23/2013 11:11 PM, Sergei Shtylyov wrote: > Hello. > > On 23-05-2013 7:12, Jason Wang wrote: > >> Factor out the device holding logic to a macvtap_get_vlan(), this >> will be also >> used by multiqueue API. > >> Signed-off-by: Jason Wang &

Re: [net-next RFC 2/8] macvtap: return -EBADFD when TUNGETIFF fails

2013-05-23 Thread Jason Wang
On 05/23/2013 07:54 PM, Michael S. Tsirkin wrote: > On Thu, May 23, 2013 at 11:12:27AM +0800, Jason Wang wrote: >> Tuntap return -EBADFD when TUNGETIFF fails, we should return the same value. >> >> Signed-off-by: Jason Wang > Can you add some more comments on why thi

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-24 Thread Jason Cooper
On Thu, May 23, 2013 at 01:01:40PM -0600, Jason Gunthorpe wrote: > On Thu, May 23, 2013 at 02:40:28PM -0400, Jason Cooper wrote: > > > > But there is a larger problem here then just this one bit. > > > > > > The PSC1 register must be set properly for the board l

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-24 Thread Jason Cooper
On Fri, May 24, 2013 at 12:40:26AM +0200, Sebastian Hesselbarth wrote: > On 05/23/2013 08:40 PM, Jason Cooper wrote: > >On Thu, May 23, 2013 at 11:53:57AM -0600, Jason Gunthorpe wrote: > >>On Thu, May 23, 2013 at 01:23:39PM -0400, Jason Cooper wrote: > >

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-24 Thread Jason Cooper
On Fri, May 24, 2013 at 01:03:25PM +0200, Linus Walleij wrote: > On Fri, May 24, 2013 at 12:40 AM, Sebastian Hesselbarth > wrote: > > On 05/23/2013 08:40 PM, Jason Cooper wrote: > > >> I think marvell,psc1_reset =<>; gives us the most flexibility in > >

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-24 Thread Jason Cooper
me as 6281, is expect > PSC1 is the same. Do you have a board set up for testing you could try Sebastian's forthcoming series on (with "marvell,kirkwood-eth")? thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a me

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-24 Thread Jason Gunthorpe
On Fri, May 24, 2013 at 12:46:36PM -0400, Jason Cooper wrote: > > Why are you not keen on this? It seems like normal device driver > > practice, that is what the data field of of_device_id is typically > > used for.. > > I'm not keen on it because we don't ha

Re: [PATCH 00/10] clk: mvebu: restructure SoC clock drivers

2013-05-28 Thread Jason Cooper
ARM: kirkwood: move DT boards to SoC-centric clock init > ARM: mvebu: move DT boards to SoC-centric clock init > clk: mvebu: desintegrate obsolete file Obviously, the diffstat changed slightly here. I'm posting the revised version as replies to patches 1, 5 and 6. Please let me know

Re: [PATCH 01/10] clk: mvebu: introduce per-clock-gate flags

2013-05-28 Thread Jason Cooper
ction SoC specific > tweaks. > > Signed-off-by: Sebastian Hesselbarth > --- > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Russell King > Cc: Gregory Clement > Cc: Thomas Petazzoni > Cc: Mike Turquette > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-kern

Re: [PATCH 05/10] clk: mvebu: add Armada 370 SoC-centric clock init

2013-05-28 Thread Jason Cooper
> Signed-off-by: Sebastian Hesselbarth > --- > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Russell King > Cc: Gregory Clement > Cc: Thomas Petazzoni > Cc: Mike Turquette > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > --- > dri

Re: [PATCH 06/10] clk: mvebu: add Armada XP SoC-centric clock init

2013-05-28 Thread Jason Cooper
; Signed-off-by: Sebastian Hesselbarth > --- > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Russell King > Cc: Gregory Clement > Cc: Thomas Petazzoni > Cc: Mike Turquette > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > --- > drive

Re: [PATCH 00/10] clk: mvebu: restructure SoC clock drivers

2013-05-28 Thread Jason Cooper
On Tue, May 28, 2013 at 05:53:43PM +0200, Thomas Petazzoni wrote: > On Tue, 28 May 2013 11:40:47 -0400, Jason Cooper wrote: > > I'm posting the revised version as replies to patches 1, 5 and 6. Please > > let me know if I messed it up. I'd like to send the PR for these

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-28 Thread Jason Cooper
Jason, Sorry, I meant to get back to this earlier and it slipped off of my plate. :( On Fri, May 24, 2013 at 11:33:06AM -0600, Jason Gunthorpe wrote: > On Fri, May 24, 2013 at 12:46:36PM -0400, Jason Cooper wrote: > > > > Why are you not keen on this? It seems like norma

Re: [PATCH 00/10] clk: mvebu: restructure SoC clock drivers

2013-05-28 Thread Jason Cooper
On Tue, May 28, 2013 at 10:01:19PM +0200, Sebastian Hesselbarth wrote: > On 05/28/2013 06:54 PM, Jason Cooper wrote: > >>On Tue, 28 May 2013 11:40:47 -0400, Jason Cooper wrote: > >>>I'm posting the revised version as replies to patches 1, 5 and 6. Please > >&g

[PATCH] tuntap: forbid changing mq flag for persistent device

2013-05-28 Thread Jason Wang
using of queues). Reported-by: Sriram Narasimhan Cc: Michael S. Tsirkin Signed-off-by: Jason Wang --- drivers/net/tun.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index f042b03..89776c5 100644 --- a/drivers/net/tun.c +++ b

Re: [net-next 1/5] macvtap: set transport header before passing skb to lower device

2013-03-26 Thread Jason Wang
On 03/26/2013 11:06 PM, Eric Dumazet wrote: > On Tue, 2013-03-26 at 14:19 +0800, Jason Wang wrote: >> Set the transport header for 1) some drivers (e.g ixgbe) needs l4 header 2) >> precise packet length estimation (introduced in 1def9238) needs l4 header to >> compute header

[PATCH net-next 1/3] net: core: let skb_partial_csum_set() set transport header

2013-03-27 Thread Jason Wang
For untrusted packets with partial checksum, we need to set the transport header for precise packet length estimation. We can just let skb_pratial_csum_set() to do this to avoid extra call to skb_flow_dissect() and simplify the caller. Cc: Eric Dumazet Signed-off-by: Jason Wang --- net/core

[PATCH net-next 2/3] net: core: introduce skb_probe_transport_header()

2013-03-27 Thread Jason Wang
. Cc: Eric Dumazet Signed-off-by: Jason Wang --- include/linux/skbuff.h | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 4974121..fa88b96 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h

[PATCH net-next 3/3] net: switch to use skb_probe_transport_header()

2013-03-27 Thread Jason Wang
Switch to use the new help skb_probe_transport_header() to do the l4 header probing for untrusted sources. For packets with partial csum, the header should already been set by skb_partial_csum_set(). Cc: Eric Dumazet Signed-off-by: Jason Wang --- drivers/net/macvtap.c |9

Re: [PATCH 6/6] ARM: dts: Add pcie controller node for Samsung EXYNOS5440 SoC

2013-03-27 Thread Jason Gunthorpe
s no problem about interrupts. I see, you have exynos_pcie_map_irq in code. interrupt-map replaces that functionality in a standard way, and is more capable for edge cases. > However, I will consider an interrupt-map. You can copy the interrupt-map style from the Marvell driver, which seems like i

Re: [PATCH v3] pinctrl: mvebu: prevent walking off the end of group array

2013-03-28 Thread Jason Cooper
tell me. > >> > >> If it's non-critical enough to live on for -next then tell me. > > > > I don't think it's critical. It'll probably never trigger in practice. > > Thanks, moving it to for-next then... Thanks, Linus. thx, Jason. -- To unsubsc

Re: [PATCH] ARM: Kirkwood: fix unused mvsdio gpio pins

2013-03-28 Thread Jason Cooper
by initializing unused gpio functions in the > platform_data with an invalid (-1) value. > > Signed-off-by: Sebastian Hesselbarth > Reported-by: Soeren Moch > --- > Cc: Soeren Moch > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Russell King > Cc: linux-arm-ker...@lists

Re: [PATCH] ARM: dove: fix Dove cpu type from V7 to PJ4

2013-03-28 Thread Jason Cooper
--- > Cc: Russell King > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > --- > arch/arm/Kconfig |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Hmmm, I'm getting (with dove_defconfig): arc

Re: [PATCH] ARM: dove: fix Dove cpu type from V7 to PJ4

2013-03-28 Thread Jason Cooper
people the > choice as it used to be. > Russell, Are you going to take these two patches? I don't want to assume and have them potentially get lost. thx, Jason. > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 67874b8..ef6733a 100644 > --- a/arch/arm/Kconfi

Re: [PATCH] ARM: kirkwood: make use of DT mvsdio on guruplug board

2013-03-30 Thread Jason Cooper
reaking nand by configuring mpp0 > to gpio, while used also by nand (nand_io2 on mpp0). > > Signed-off-by: Sebastian Hesselbarth > Tested-by: Soeren Moch > --- > Cc: Soeren Moch > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Russell King > Cc: Willy Tarreau > Cc:

Re: [PATCH] ARM: kirkwood: add MACH_GURUPLUG_DT to defconfig

2013-03-30 Thread Jason Cooper
On Sat, Mar 23, 2013 at 01:58:22PM +0100, Sebastian Hesselbarth wrote: > This patch just adds the missing MACH_GURUPLUG_DT to kirkwood_defconfig. > > Signed-off-by: Sebastian Hesselbarth > Reported-by: Soeren Moch > --- > Cc: Soeren Moch > Cc: Jason Cooper > Cc: An

[PATCH] vhost_net: remove tx polling state

2013-03-06 Thread Jason Wang
simpler. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 60 drivers/vhost/vhost.c |3 ++ 2 files changed, 13 insertions(+), 50 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 959b1cd..d1a03dd 100644 --- a

Re: [PATCH v2] ARM: dove: drop "select COMMON_CLK_DOVE"

2013-03-08 Thread Jason Cooper
> arch/arm/Kconfig | 1 - > 1 file changed, 1 deletion(-) 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: memory leak and other oddness in pinctrl-mvebu.c

2013-03-09 Thread Jason Cooper
on already there */ > @@ -487,7 +488,11 @@ static int _add_function(struct mvebu_pinctrl_function > *funcs, const char *name) > return -EEXIST; > } > funcs++; > + nr_funcs--; > } > + if (!nr_func

Re: memory leak and other oddness in pinctrl-mvebu.c

2013-03-09 Thread Jason Cooper
Added LinusW, Gregory and Ezequiel to the email. Guys, can you give this a Tested-by before I apply (or Ack for LinusW)? thx, Jason. On Sat, Mar 09, 2013 at 11:39:31PM +, David Woodhouse wrote: > On Sat, 2013-03-09 at 17:53 -0500, Jason Cooper wrote: > > > + i

Re: [PATCH] vhost_net: remove tx polling state

2013-03-11 Thread Jason Wang
On 03/11/2013 12:50 AM, Michael S. Tsirkin wrote: > On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote: >> After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle >> polling >> errors when setting backend), we in fact track the polling state thr

Re: [PATCH] vhost_net: remove tx polling state

2013-03-11 Thread Jason Wang
On 03/11/2013 03:09 PM, Jason Wang wrote: > On 03/11/2013 12:50 AM, Michael S. Tsirkin wrote: >> On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote: >>> After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle >>> polling >>> errors whe

Re: [PATCH] vhost_net: remove tx polling state

2013-03-11 Thread Jason Wang
On 03/11/2013 04:29 PM, Michael S. Tsirkin wrote: > On Mon, Mar 11, 2013 at 03:09:10PM +0800, Jason Wang wrote: >> On 03/11/2013 12:50 AM, Michael S. Tsirkin wrote: >>> On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote: >>>> After commit 2b8b328b61c799957a456

Re: [PATCH] kirkwood: fix coccicheck warnings

2013-03-11 Thread Jason Cooper
> 3 files changed, 9 insertions(+), 13 deletions(-) Acked-by: Jason Cooper 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 07/13] tracing/kdb: remove redundant checking

2013-03-11 Thread Jason Wessel
On 03/11/2013 09:09 AM, Steven Rostedt wrote: > This is Jason's code. > > Jason, please give an Ack or Nack. > > Thanks, > > -- Steve > > > On Mon, 2013-03-11 at 15:13 +0800, zhangwei(Jovi) wrote: >> trace_empty is checking in while-loop, so the previous c

[GIT PULL] KGDB/KDB/dbgp fixes for 3.6-rc1

2012-08-03 Thread Jason Wessel
fixes/cleanup against the usual kernel churn and at least we are removing more lines than we add. :-) Thanks, Jason. The following changes since commit 28a33cbc24e4256c143dce96c7d93bf423229f92: Linux 3.5 (2012-07-21 13:58:29 -0700) are available in the git repository at: git

Re: [PATCH v4 03/10] pinctrl: mvebu: kirkwood pinctrl driver

2012-09-16 Thread Jason Cooper
The DT should describe the hardware as accurately as possible. We can't always assume Linux will be the only thing the DT is handed off to. > If i wanted to mass convert all existing kirkwood DT boards over to > use pinctrl, im stuck at the very first step. I've no idea what chip > t

Re: [PATCH v7 0/11] KGDB/KDB FIQ (NMI) debugger

2012-09-17 Thread Jason Wessel
break anything? I have not made my way through the entire series yet, so I am not sure if you need the kdb header changes or not, but so far it looks like the tty pieces are separate. If you add your ack Greg, I'll take the whole series and merge it into kgdb-next, or after I finish the

Re: [PATCH 01/11] kernel/debug: Mask KGDB NMI upon entry

2012-09-19 Thread Jason Wessel
; if (kgdb_reenter_check(ks)) > - return 0; /* Ouch, double exception ! */ > + goto out; /* Ouch, double exception ! */ > if (kgdb_info[ks->cpu].enter_kgdb != 0) > - return 0; > + goto out; > > - return kgdb_cpu_enter

Re: [PATCH 02/11] kdb: Implement disable_nmi command

2012-09-19 Thread Jason Wessel
On 09/13/2012 10:03 AM, Anton Vorontsov wrote: > This command disables NMI-entry. If NMI source has been previously shared > with a serial console ("debug port"), this effectively releases the port > from KDB exclusive use, and makes the console available for normal use. > > Of course, NMI can be

Re: [PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-19 Thread Jason Wessel
;, __func__, ret); > + goto err_drv_reg; > + } > + > + ret = kdb_register("nmi_console", kgdb_nmi_enable_console, "[off]", > + "switch to Linux NMI console", 0); > + if (ret) { > + pr_err(&qu

Re: [PATCH v7 0/11] KGDB/KDB FIQ (NMI) debugger

2012-09-19 Thread Jason Wessel
merging this due to any tty patches, >>> and if so, I'll be glad to take them through my tree. >> Guys, thanks for taking a look into this! >> >> The patch that adds nmi console driver (i.e. tty/serial/kgdb_nmi.c) >> depends on the first KDB patches in these

Re: [PATCH v8 0/11] KGDB/KDB FIQ (NMI) debugger

2012-09-20 Thread Jason Wessel
der running right now (it will be done in about 1 hour), and so far it picked up one new warning. drivers/tty/serial/kgdb_nmi.c: In function 'kgdb_nmi_poll_one_knock': drivers/tty/serial/kgdb_nmi.c:161: warning: field width should have type 'int', but argument 4 has type &#

Re: [PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-20 Thread Jason Wessel
On 09/19/2012 06:41 PM, Anton Vorontsov wrote: > This special driver makes it possible to temporary use NMI debugger port > as a normal console by issuing 'nmi_console' command (assuming that the > port is attached to KGDB). > The kgdb regression compiler also does checkpatch, so the "check patc

[PATCH 3/4] kgdb,x86: fix warning about unused variable

2012-08-12 Thread Jason Wessel
the warning go away. Reported-by: Thiago Rafael Becker Signed-off-by: Jason Wessel --- arch/x86/kernel/kgdb.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c index 3f61904..836f832 100644 --- a/arch/x86/kernel/kgdb.c +++ b/arch/x86/ker

[PATCH 1/4] mips,kgdb: fix recursive page fault with CONFIG_KPROBES

2012-08-12 Thread Jason Wessel
igned-off-by: Jason Wessel --- arch/mips/kernel/kgdb.c |9 + 1 file changed, 9 insertions(+) diff --git a/arch/mips/kernel/kgdb.c b/arch/mips/kernel/kgdb.c index f4546e9..23817a6 100644 --- a/arch/mips/kernel/kgdb.c +++ b/arch/mips/kernel/kgdb.c @@ -283,6 +283,15 @@ static int kgdb_mips_n

[PATCH 4/4] kgdboc: Accept either kbd or kdb to activate the vga + keyboard kdb shell

2012-08-12 Thread Jason Wessel
kbd was the original abbreviation for keyboard). With this change kgdboc will now accept either to mean the same thing: kgdboc=kbd kgdboc=kdb Signed-off-by: Jason Wessel --- drivers/tty/serial/kgdboc.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/t

[PATCH 2/4] pmac_zilog,kdb: Fix console poll hook to return instead of loop

2012-08-12 Thread Jason Wessel
: Greg Kroah-Hartman Signed-off-by: Jason Wessel --- drivers/tty/serial/pmac_zilog.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/pmac_zilog.c b/drivers/tty/serial/pmac_zilog.c index 654755a..333c8d0 100644 --- a/drivers/tty/serial/pmac_z

[PATCH 0/3] kgdb: fixes and ARCH=arm support

2008-02-20 Thread Jason Wessel
series. Jason. The following changes since commit 4ce04a959ef2ba9338217966013b832ff0ff9003: Jason Wessel (1): kgdb-light-v10: x86 HW breakpoints are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git for_ingo Jason Wessel (3

[PATCH 1/3] kgdb: fix optional arch functions and probe_kernel_*

2008-02-20 Thread Jason Wessel
not allow access to the kernel memory space. As an example, it is required to allow the full kernel address space is when you the kernel debugger to inspect a system call. Signed-off-by: Jason Wessel <[EMAIL PROTECTED]> --- kernel/kgdb.c | 11 +++ mm/maccess.c |6 ++ 2

[PATCH 2/3] kgdb: kgdboc pl011 I/O module

2008-02-20 Thread Jason Wessel
Implement the serial polling hooks for the pl011 uart for use with kgdboc. This patch was specifically tested on the ARM Versatile AB reference platform. Signed-off-by: Jason Wessel <[EMAIL PROTECTED]> Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]> Signed-off-by: Thomas Glei

[PATCH 3/3] kgdb: support for ARCH=arm

2008-02-20 Thread Jason Wessel
to setup the traps earlier allow for early debugging with a uart based KGDB I/O driver. The do_undefinstr() routine also needed to allow the lookup of kernel address space in order for the debugger to plant undefined instructions in kernel memory space and receive the correct notification. Signed-of

Re: [PATCH 0/3] kgdb: fixes and ARCH=arm support

2008-02-21 Thread Jason Wessel
ortant for helping to validate future archs that have kgdb support added, as well as a place to add other edge test cases if there are future defects fixed in kgdb for which you can create a test case. Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

Re: [PATCH 2/2] ARM: kirkwood: DT descriptor for Seagate FreeAgent Dockstar

2012-08-14 Thread Jason Cooper
ly. > > Signed-off-by: Sebastian Hesselbarth > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Russell King > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > --- ... > diff --git a/arch/arm/mach-kirkwood/Makefile.boot > b/arch/arm/mach-ki

Re: [PATCH v2 1/2] ARM: kirkwood: DT board setup for Seagate FreeAgent Dockstar

2012-08-14 Thread Jason Cooper
On Tue, Aug 14, 2012 at 10:43:41PM +0200, Sebastian Hesselbarth wrote: > This add a DT compatible board specific setup for the Seagate > FreeAgent Dockstar. > > Signed-off-by: Sebastian Hesselbarth > --- > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Russell K

[PATCH] act_mirred: do not drop packets when fails to mirror it

2012-08-15 Thread Jason Wang
p the redirected packets. Signed-off-by: Jason Wang --- net/sched/act_mirred.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c index fe81cc1..3682951 100644 --- a/net/sched/act_mirred.c +++ b/net/sched/act_mir

Re: [PATCH] act_mirred: do not drop packets when fails to mirror it

2012-08-15 Thread Jason Wang
On 08/15/2012 08:35 PM, Jamal Hadi Salim wrote: On Wed, 2012-08-15 at 17:37 +0800, Jason Wang wrote: We drop packet unconditionally when we fail to mirror it. This is not intended in some cases. Hi Jason, Did you actually notice the behavior you described or were you going by the XXX comment I

Re: [PATCH] act_mirred: do not drop packets when fails to mirror it

2012-08-15 Thread Jason Wang
On 08/15/2012 11:10 PM, Jamal Hadi Salim wrote: On Wed, 2012-08-15 at 21:42 +0800, Jason Wang wrote: I met it actually through the following steps: - start a kvm guest with tap and make it to be an interface of the bridge - mirror the ingress traffic of the bridge to the tap - terminate the

[net V2] act_mirred: do not drop packets when fails to mirror it

2012-08-15 Thread Jason Wang
p the redirected packets. Signed-off-by: Jason Wang --- Changes from v1: - Check with TCA_EGRESS_MIRROR instead of TC_ACT_STOLEN per Jamal's comment net/sched/act_mirred.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/net/sched/act_mirred.c b

Re: [PATCH v2 1/2] ARM: kirkwood: DT board setup for Seagate FreeAgent Dockstar

2012-08-16 Thread Jason Cooper
On Tue, Aug 14, 2012 at 07:22:56PM -0400, Jason Cooper wrote: > On Tue, Aug 14, 2012 at 10:43:41PM +0200, Sebastian Hesselbarth wrote: > > This add a DT compatible board specific setup for the Seagate > > FreeAgent Dockstar. > > > > Signed-off-by: Sebastian Hesselb

Re: [PATCH v2 1/2] ARM: kirkwood: DT board setup for Seagate FreeAgent Dockstar

2012-08-16 Thread Jason Cooper
On Thu, Aug 16, 2012 at 03:45:00PM +0200, Sebastian Hesselbarth wrote: > On 8/16/12, Jason Cooper wrote: > > Unless I hear otherwise from you in the next day or so, I'm going to > > collapse the fix into your patch and push it that way. > > please feel free to

Re: [PATCH 1/3] KGDB: Major refactoring

2008-02-05 Thread Jason Wessel
gned-off-by: Jan Kiszka <[EMAIL PROTECTED]> > Jan, I pulled in all your changes and made some minor white space fixes. I started the 2.6.25 branch with all Ingo's changes, your changes and several additional patches I received. http://git.kernel.org/?p=linux/kernel/git/jwessel

Re: [Kgdb-bugreport] [PATCH] beautification of debugger_active usage

2008-02-06 Thread Jason Wessel
|8 > kernel/sched.c |7 +-- > 4 files changed, 14 insertions(+), 14 deletions(-) > > committed to: http://git.kernel.org/?p=linux/kernel/git/jwessel/linux-2.6-kgdb.git;a=shortlog;h=kgdb_2.6.25 Jason. -- To unsubscribe from this list: send the lin

Re: [PATCH 1/3] KGDB: Major refactoring

2008-02-06 Thread Jason Wessel
proxy spliter automatically sends the break (or in the current case the sysrq g) > This would make kgdboc way more practical without having to resort to a > protocol splitting proxy, etc. > > Ingo > Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[patch 4/4] make pr_debug() dynamic - update docs

2008-02-07 Thread Jason Baron
-add documentation about pr_debug kernel-parameters.txt Signed-off-by: Jason Baron <[EMAIL PROTECTED]> --- Documentation/kernel-parameters.txt |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/Documentation/kernel-parameters.txt b/Documentation/

[patch 3/4] make pr_debug() dynamic - sysctl support

2008-02-07 Thread Jason Baron
-add /proc/sys/debug/pr_debug, to toggle pr_debug() on/off Signed-off-by: Jason Baron <[EMAIL PROTECTED]> --- kernel/sysctl.c | 41 + 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 7

[patch 0/4] make pr_debug() dynamic

2008-02-07 Thread Jason Baron
hi, make the pr_debug() function dependent upon the new immediate infrastruture. Thus, b/c of the low runtime impact, we can dynamically enable/disable pr_debug withoug recompiling. Patch allows 'pr_debug=0/1' on the command line or via /proc/sys/debug/pr_debug. thanks, -Ja

[patch 1/4] make pr_debug() dynamic

2008-02-07 Thread Jason Baron
-make pr_debug() dynamic so it can be switched on/off. The off state is implemented on top of the immediate infrastructure, so as to promote more dynamic printing and debugging. depends on CONFIG_HAVE_IMMEDIATE and CONFIG_PRINTK Signed-off-by: Jason Baron <[EMAIL PROTECTED]> --- i

[patch 2/4] make pr_debug() dynamic

2008-02-07 Thread Jason Baron
-make pptp_msg_name dependent on CONFIG_PR_DEBUG_DYNAMIC Signed-off-by: Jason Baron <[EMAIL PROTECTED]> --- net/netfilter/nf_conntrack_pptp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/netfilter/nf_conntrack_pptp.c b/net/netfilter/nf_conntrack_pptp.c

Re: [patch 0/4] make pr_debug() dynamic

2008-02-08 Thread Jason Baron
On Thu, Feb 07, 2008 at 02:42:14PM -0800, Joe Perches wrote: > On Thu, 2008-02-07 at 16:03 -0500, Jason Baron wrote: > > make the pr_debug() function dependent upon the new immediate infrastruture. > > What's wrong with klogd -c 8 or equivalent? > > Setting the logl

Re: [patch 4/4] make pr_debug() dynamic - update docs

2008-02-08 Thread Jason Baron
at the command line, it is turned on early in the boot process. I orginally implemented it as pr_debug=, but I believe just the string is simpler. thanks, -Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTE

Re: [patch 3/4] make pr_debug() dynamic - sysctl support

2008-02-08 Thread Jason Baron
On Thu, Feb 07, 2008 at 04:10:52PM -0800, Stephen Hemminger wrote: > Jason Baron <[EMAIL PROTECTED]> wrote: > > > > > -add /proc/sys/debug/pr_debug, to toggle pr_debug() on/off > > > > Signed-off-by: Jason Baron <[EMAIL PROTECTED]>

Re: [RFC][PATCH] KGDB: remove kgdb-own fault handling

2008-02-08 Thread Jason Wessel
safe > memory copy", then the right way to do that is basically to do > > pagefault_disable(); > leftover = __copy_from_user_inatomic(dst, src, count); > pagefault_enable(); > > if (leftover) > handle_the_fact_that_the_copy_didnt_comp

[git pull] kgdb core and rs232 I/O drivers

2008-02-08 Thread Jason Wessel
/O driver interface. All the kgdb hooks are initialized dynamically only when a kgdb I/O module is configured. When not configured kgdb will not exist in any kernel execution path. Further comments are certainly welcome. Thanks, Jason. git://git.kernel.org/pub/scm/linux/kernel/git/jwessel

[PATCH 3/8] kgdb, modules: Always allow module sect info for KGDB

2008-02-09 Thread jason . wessel
From: Jason Wessel <[EMAIL PROTECTED]> With more information in the kernel, gdb can be modified in such a way as to automatically read the kernel module section information and allow for easy kernel module debugging. In gdb the solib-search-path must contain the location of any module

[PATCH 5/8] kgdb, x86: Add arch specfic kgdb support

2008-02-09 Thread jason . wessel
From: Jason Wessel <[EMAIL PROTECTED]> On the i386 arch, in order to support early debugginer with kgdb when used with kgdb via rs232 some traps must be initialized sooner rather than later, but it is safe to always do this. The arch i386 now calls parse_early_param() to explicitly l

[PATCH 2/8] pid, kgdb: add pid_max prototype

2008-02-09 Thread jason . wessel
From: Ingo Molnar <[EMAIL PROTECTED]> add pid_max prototype - now used by sysctl and kgdb as well. Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]> Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]> Signed-off-by: Jason Wessel <[EMAIL PROTECTED]> --- include/linux/pid.h

[PATCH 6/8] kgdb, sysrq_bugfix

2008-02-09 Thread jason . wessel
From: Jason Wessel <[EMAIL PROTECTED]> It is possible that when SysRq-G is triggered via the keyboard that we will miss the "up" event and once KGDB lets the kernel go another SysRq will be required to clear this, without this change. Signed-off-by: Tom Rini <[EMAIL PROTEC

[PATCH 4/8] kgdb: COPTIMIZE flag

2008-02-09 Thread jason . wessel
From: Jason Wessel <[EMAIL PROTECTED]> This patch adds in the ability to unoptimize a single kernel module to make source stepping more linear and not optimize out variables that the developer might like to inspect. It used with adding COPTIMIZE=-O0 to the build line when doing something

[PATCH 8/8] kgdb: kgdboc 8250 I/O module

2008-02-09 Thread jason . wessel
From: Jason Wessel <[EMAIL PROTECTED]> Add a SERIAL_POLL API to the serial core for use with kgdboc (KGDB over the console), the gdb serial adapter which can multiplex with a console port. The kgdboc module can be extended later to support all sorts of different console types provided that

[PATCH][7/8] kgdb: exclusive use kgdb8250 uart I/O driver

2008-02-09 Thread jason . wessel
From: Jason Wessel <[EMAIL PROTECTED]> This patch some small hooks into the normal serial core so that a uart can be unregistered to be exclusively used for KGDB. These changes allow for registering and unregistering a port with a struct uart_port. From that point on KGDB does raw acces

[PATCH 0/8] kgdb 2.6.25 version

2008-02-09 Thread jason . wessel
are certainly welcome. Thanks, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH][7/8] kgdb: exclusive use kgdb8250 uart I/O driver

2008-02-09 Thread Jason Wessel
gt; - * console if we have one. >> + * console (real or kgdb) if we have one. >> */ >> -if (!uart_console(port)) >> +if (!uart_console(port) && !uart_kgdb(port)) >> uart_change_pm(state, 3); &

Re: [PATCH][7/8] kgdb: exclusive use kgdb8250 uart I/O driver

2008-02-09 Thread Jason Wessel
code. I folded your patch into patch #7 and refreshed the git archive. Thanks, Jason. > --- linux-2.6-kgdb.orig/drivers/serial/Kconfig > +++ linux-2.6-kgdb/drivers/serial/Kconfig > @@ -121,7 +121,7 @@ config SERIAL_8250_CS > > config SERIAL_8250_NR_UARTS > int "Max

Re: [PATCH 0/3] dyndbg: dev_dbg bugfix + 2 trivials

2012-07-20 Thread Jason Baron
these cases? > > 3- trivial var name change in lib/dynamic_debug.c > > > Please drop or apply 2,3 as you prefer. 2,3 are nice, but as you suggest I think we want to separate them from patch 1, which is a bugfix for 3.5. Thanks, -Jason -- To unsubscribe from this list: send th

Re: [net-next RFC V5 5/5] virtio_net: support negotiating the number of queues through ctrl vq

2012-07-22 Thread Jason Wang
On 07/20/2012 08:33 PM, Michael S. Tsirkin wrote: On Thu, Jul 05, 2012 at 06:29:54PM +0800, Jason Wang wrote: This patch let the virtio_net driver can negotiate the number of queues it wishes to use through control virtqueue and export an ethtool interface to let use tweak it. As current

Re: [net-next RFC V5 4/5] virtio_net: multiqueue support

2012-07-22 Thread Jason Wang
On 07/20/2012 09:40 PM, Michael S. Tsirkin wrote: On Thu, Jul 05, 2012 at 06:29:53PM +0800, Jason Wang wrote: This patch converts virtio_net to a multi queue device. After negotiated VIRTIO_NET_F_MULTIQUEUE feature, the virtio device has many tx/rx queue pairs, and driver could read the number

<    4   5   6   7   8   9   10   11   12   13   >