linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* solution to printk() blocking interrupts?
@ 2008-09-21 20:53 Jon Smirl
  2008-09-21 21:43 ` Jon Smirl
  0 siblings, 1 reply; 16+ messages in thread
From: Jon Smirl @ 2008-09-21 20:53 UTC (permalink / raw)
  To: linuxppc-dev

Does anyone have a solution to the problem of printk() to a serial
console blocking interrupts for too long? I'm losing interrupts I need
because my hardware is getting overrun.

-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-21 20:53 solution to printk() blocking interrupts? Jon Smirl
@ 2008-09-21 21:43 ` Jon Smirl
  2008-09-21 22:21   ` Sergei Shtylyov
  2008-09-22 11:21   ` Sergei Shtylyov
  0 siblings, 2 replies; 16+ messages in thread
From: Jon Smirl @ 2008-09-21 21:43 UTC (permalink / raw)
  To: linuxppc-dev

On Sun, Sep 21, 2008 at 4:53 PM, Jon Smirl <jonsmirl@gmail.com> wrote:
> Does anyone have a solution to the problem of printk() to a serial
> console blocking interrupts for too long? I'm losing interrupts I need
> because my hardware is getting overrun.

netconsole is not an option on mpc5200....

Kernel command line: console=ttyPSC0,115200 rw debug root=/dev/nfs
ip=dhcp nfsroot=192.168.1.4:/home/OSELAS.BSP-Phytec-phyCORE-MPC5200B-tiny-6/root,v3,tcp
netconsole=6666@192.168.1.11/eth0,514@192.168.1.4/00:19:d1:e4:0f:8d
netconsole: local port 6666
netconsole: local IP 192.168.1.11
netconsole: interface eth0
netconsole: remote port 514
netconsole: remote IP 192.168.1.4
netconsole: remote ethernet address 00:19:d1:e4:0f:8d
netconsole: eth0 doesn't support polling, aborting.
netconsole: cleaning up

-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-21 21:43 ` Jon Smirl
@ 2008-09-21 22:21   ` Sergei Shtylyov
  2008-09-21 23:34     ` Jon Smirl
  2008-09-22 11:21   ` Sergei Shtylyov
  1 sibling, 1 reply; 16+ messages in thread
From: Sergei Shtylyov @ 2008-09-21 22:21 UTC (permalink / raw)
  To: Jon Smirl; +Cc: linuxppc-dev

Hello.

Jon Smirl wrote:
> On Sun, Sep 21, 2008 at 4:53 PM, Jon Smirl <jonsmirl@gmail.com> wrote:
>   
>> Does anyone have a solution to the problem of printk() to a serial
>> console blocking interrupts for too long? I'm losing interrupts I need
>> because my hardware is getting overrun.
>>     
>
> netconsole is not an option on mpc5200....
>
> Kernel command line: console=ttyPSC0,115200 rw debug root=/dev/nfs
> ip=dhcp nfsroot=192.168.1.4:/home/OSELAS.BSP-Phytec-phyCORE-MPC5200B-tiny-6/root,v3,tcp
> netconsole=6666@192.168.1.11/eth0,514@192.168.1.4/00:19:d1:e4:0f:8d
> netconsole: local port 6666
> netconsole: local IP 192.168.1.11
> netconsole: interface eth0
> netconsole: remote port 514
> netconsole: remote IP 192.168.1.4
> netconsole: remote ethernet address 00:19:d1:e4:0f:8d
> netconsole: eth0 doesn't support polling, aborting.
> netconsole: cleaning up
>   

   Implementing the poll_controller() method in the network driver is 
usually staightforward.

WBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-21 22:21   ` Sergei Shtylyov
@ 2008-09-21 23:34     ` Jon Smirl
  2008-09-22  5:17       ` Benjamin Herrenschmidt
  2008-09-22 10:03       ` Sergei Shtylyov
  0 siblings, 2 replies; 16+ messages in thread
From: Jon Smirl @ 2008-09-21 23:34 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linuxppc-dev

On Sun, Sep 21, 2008 at 6:21 PM, Sergei Shtylyov
<sshtylyov@ru.mvista.com> wrote:
>  Implementing the poll_controller() method in the network driver is usually
> staightforward.

Good tip, the simple implementation worked.

What controls this? "carrier detect appears untrustworthy, waiting 4 seconds"
Get that fixed and this patch could be useful,

root@phyCORE-MPC5200B-tiny:~ dmesg | grep netconsole
Kernel command line: console=ttyPSC0,115200 rw debug root=/dev/nfs
ip=dhcp nfsroot=192.168.1.4:/home/OSELAS.BSP-Phytec-phyCORE-MPC5200B-tiny-6/root,v3,tcp
netconsole=6666@192.168.1.11/eth0,514@192.168.1.4/00:19:d1:e4:0f:8d
netconsole: local port 6666
netconsole: local IP 192.168.1.11
netconsole: interface eth0
netconsole: remote port 514
netconsole: remote IP 192.168.1.4
netconsole: remote ethernet address 00:19:d1:e4:0f:8d
netconsole: device eth0 not up yet, forcing it
netconsole: carrier detect appears untrustworthy, waiting 4 seconds
netconsole: network logging started
root@phyCORE-MPC5200B-tiny:~



diff --git a/drivers/net/fec_mpc52xx.c b/drivers/net/fec_mpc52xx.c
index 4e4f683..72541b5 100644
--- a/drivers/net/fec_mpc52xx.c
+++ b/drivers/net/fec_mpc52xx.c
@@ -401,6 +401,16 @@ static int mpc52xx_fec_hard_start_xmit(struct
sk_buff *skb, struct net_device *d
        return 0;
 }

+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void mpc52xx_fec_poll_controller(struct net_device *dev)
+{
+        disable_irq(dev->irq);
+        mpc52xx_fec_tx_interrupt(dev->irq, dev);
+        enable_irq(dev->irq);
+}
+#endif
+
+
 /* This handles BestComm transmit task interrupts
  */
 static irqreturn_t mpc52xx_fec_tx_interrupt(int irq, void *dev_id)
@@ -926,6 +936,9 @@ mpc52xx_fec_probe(struct of_device *op, const
struct of_device_id *match)
        ndev->tx_timeout        = mpc52xx_fec_tx_timeout;
        ndev->watchdog_timeo    = FEC_WATCHDOG_TIMEOUT;
        ndev->base_addr         = mem.start;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+       ndev->poll_controller = mpc52xx_fec_poll_controller;
+#endif

        priv->t_irq = priv->r_irq = ndev->irq = NO_IRQ; /* IRQ are
free for now */




-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-21 23:34     ` Jon Smirl
@ 2008-09-22  5:17       ` Benjamin Herrenschmidt
  2008-09-22 11:04         ` Sergei Shtylyov
  2008-09-22 10:03       ` Sergei Shtylyov
  1 sibling, 1 reply; 16+ messages in thread
From: Benjamin Herrenschmidt @ 2008-09-22  5:17 UTC (permalink / raw)
  To: Jon Smirl; +Cc: linuxppc-dev

On Sun, 2008-09-21 at 19:34 -0400, Jon Smirl wrote:
> On Sun, Sep 21, 2008 at 6:21 PM, Sergei Shtylyov
> <sshtylyov@ru.mvista.com> wrote:
> >  Implementing the poll_controller() method in the network driver is usually
> > staightforward.
> 
> Good tip, the simple implementation worked.
> 
> What controls this? "carrier detect appears untrustworthy, waiting 4 seconds"
> Get that fixed and this patch could be useful,

Does the driver properly uses netif_carrier_on/off to signal the
system when the link is up/down ?

Cheers,
Ben.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-21 23:34     ` Jon Smirl
  2008-09-22  5:17       ` Benjamin Herrenschmidt
@ 2008-09-22 10:03       ` Sergei Shtylyov
  2008-09-22 11:01         ` Sergei Shtylyov
  1 sibling, 1 reply; 16+ messages in thread
From: Sergei Shtylyov @ 2008-09-22 10:03 UTC (permalink / raw)
  To: Jon Smirl; +Cc: linuxppc-dev

Hello.

Jon Smirl wrote:

>>  Implementing the poll_controller() method in the network driver is usually
>> staightforward.
>>     
>
> Good tip, the simple implementation worked.
>
> What controls this? "carrier detect appears untrustworthy, waiting 4 seconds"
>   

   IIRC, it happens if netpoll code sees the carrier OK right ast the 
first time it checks it. Look for this message in net/core/netpoll.c...

> Get that fixed and this patch could be useful,
>   

    How that hinders using netconsole?

> root@phyCORE-MPC5200B-tiny:~ dmesg | grep netconsole
> Kernel command line: console=ttyPSC0,115200 rw debug root=/dev/nfs
> ip=dhcp nfsroot=192.168.1.4:/home/OSELAS.BSP-Phytec-phyCORE-MPC5200B-tiny-6/root,v3,tcp
> netconsole=6666@192.168.1.11/eth0,514@192.168.1.4/00:19:d1:e4:0f:8d
> netconsole: local port 6666
> netconsole: local IP 192.168.1.11
> netconsole: interface eth0
> netconsole: remote port 514
> netconsole: remote IP 192.168.1.4
> netconsole: remote ethernet address 00:19:d1:e4:0f:8d
> netconsole: device eth0 not up yet, forcing it
> netconsole: carrier detect appears untrustworthy, waiting 4 seconds
> netconsole: network logging started
> root@phyCORE-MPC5200B-tiny:~
>
>
>
> diff --git a/drivers/net/fec_mpc52xx.c b/drivers/net/fec_mpc52xx.c
> index 4e4f683..72541b5 100644
> --- a/drivers/net/fec_mpc52xx.c
> +++ b/drivers/net/fec_mpc52xx.c
> @@ -401,6 +401,16 @@ static int mpc52xx_fec_hard_start_xmit(struct
> sk_buff *skb, struct net_device *d
>         return 0;
>  }
>
> +#ifdef CONFIG_NET_POLL_CONTROLLER
> +static void mpc52xx_fec_poll_controller(struct net_device *dev)
> +{
> +        disable_irq(dev->irq);
> +        mpc52xx_fec_tx_interrupt(dev->irq, dev);
>   

   The interrupt nu,ber seems wrong, although the handler doesn't care 
anyway...

> +        enable_irq(dev->irq);
> +}
> +#endif
>   

   Hey, how about the Rx interrupt? And I'm seeing 
mcp52xx_fec_interrupt() on separate IRQ too -- looks like for for this 
driver this is not as straightforward as it usually is.
You need to call all the handlers -- netconsole is not the only user of 
the netpoll API, so not only Tx should be handled.

WBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-22 10:03       ` Sergei Shtylyov
@ 2008-09-22 11:01         ` Sergei Shtylyov
  0 siblings, 0 replies; 16+ messages in thread
From: Sergei Shtylyov @ 2008-09-22 11:01 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linuxppc-dev

Hello, I wrote:

>> diff --git a/drivers/net/fec_mpc52xx.c b/drivers/net/fec_mpc52xx.c
>> index 4e4f683..72541b5 100644
>> --- a/drivers/net/fec_mpc52xx.c
>> +++ b/drivers/net/fec_mpc52xx.c
>> @@ -401,6 +401,16 @@ static int mpc52xx_fec_hard_start_xmit(struct
>> sk_buff *skb, struct net_device *d
>>         return 0;
>>  }
>>
>> +#ifdef CONFIG_NET_POLL_CONTROLLER
>> +static void mpc52xx_fec_poll_controller(struct net_device *dev)
>> +{
>> +        disable_irq(dev->irq);
>> +        mpc52xx_fec_tx_interrupt(dev->irq, dev);
>>   
>
>   The interrupt nu,ber seems wrong, although the handler doesn't care 
> anyway...
>
>> +        enable_irq(dev->irq);

   Ah, you're also dis/enabling the wrong IRQ -- it should be 
priv->t_irq. No, this patch won't do.

WBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-22  5:17       ` Benjamin Herrenschmidt
@ 2008-09-22 11:04         ` Sergei Shtylyov
  2008-09-22 11:11           ` Sergei Shtylyov
  0 siblings, 1 reply; 16+ messages in thread
From: Sergei Shtylyov @ 2008-09-22 11:04 UTC (permalink / raw)
  To: benh; +Cc: linuxppc-dev

Hello.

Benjamin Herrenschmidt wrote:

>>>  Implementing the poll_controller() method in the network driver is usually
>>> staightforward.
>>>       
>> Good tip, the simple implementation worked.
>>
>> What controls this? "carrier detect appears untrustworthy, waiting 4 seconds"
>> Get that fixed and this patch could be useful,
>>     
>
> Does the driver properly uses netif_carrier_on/off to signal the
> system when the link is up/down ?
>   

   Looks like the answer is "no"...

WBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-22 11:04         ` Sergei Shtylyov
@ 2008-09-22 11:11           ` Sergei Shtylyov
  2008-09-22 14:39             ` Sergei Shtylyov
  2008-09-22 21:27             ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 16+ messages in thread
From: Sergei Shtylyov @ 2008-09-22 11:11 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: shemminger, linuxppc-dev

Hello, I wrote:

>>> What controls this? "carrier detect appears untrustworthy, waiting 4 
>>> seconds"
>>> Get that fixed and this patch could be useful,
>>>     
>>
>> Does the driver properly uses netif_carrier_on/off to signal the
>> system when the link is up/down ?
>>   
>  Implementing the poll_controller() method in the network driver is 
> usually
>
>   Looks like the answer is "no"...

   Hm... it uses phylib, so probably it does that. That message and a 4 
s pause appears if the carrier is seen in <10 ms after opening the 
device. Maybe this threshold needs to be changed?

WBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-21 21:43 ` Jon Smirl
  2008-09-21 22:21   ` Sergei Shtylyov
@ 2008-09-22 11:21   ` Sergei Shtylyov
  2008-09-22 13:45     ` Jon Smirl
  1 sibling, 1 reply; 16+ messages in thread
From: Sergei Shtylyov @ 2008-09-22 11:21 UTC (permalink / raw)
  To: Jon Smirl; +Cc: linuxppc-dev

Hello.

Jon Smirl wrote:

>> Does anyone have a solution to the problem of printk() to a serial
>> console blocking interrupts for too long? I'm losing interrupts I need
>> because my hardware is getting overrun.
>>     

   It's a strange piece of hardware that loses interrupts on getting 
overrun. :-)

WBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-22 11:21   ` Sergei Shtylyov
@ 2008-09-22 13:45     ` Jon Smirl
  2008-09-23  5:46       ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 16+ messages in thread
From: Jon Smirl @ 2008-09-22 13:45 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linuxppc-dev

On Mon, Sep 22, 2008 at 7:21 AM, Sergei Shtylyov
<sshtylyov@ru.mvista.com> wrote:
> Hello.
>
> Jon Smirl wrote:
>
>>> Does anyone have a solution to the problem of printk() to a serial
>>> console blocking interrupts for too long? I'm losing interrupts I need
>>> because my hardware is getting overrun.
>>>
>
>  It's a strange piece of hardware that loses interrupts on getting overrun.
> :-)

The 4 second pause slows down the debug/test cycle a lot. I'm using a
net booted monolithic kernel on the hardware and using the reset
button every time I make a change.

When you boot there are two classes of output, printk() output and
users space generated output. Right now I'm getting the printk()
output. Is there some way to see the user space output so that I can
tell if a user space server failed to start?

I changed poll to this code, but I don't know how network drivers
work. I can make changes and test them if you tell me what needs to be
fixed.


#ifdef CONFIG_NET_POLL_CONTROLLER
static void mpc52xx_fec_poll_controller(struct net_device *dev)
{
	struct mpc52xx_fec_priv *priv = netdev_priv(dev);

	disable_irq(priv->t_irq);
	mpc52xx_fec_tx_interrupt(priv->t_irq, dev);
	enable_irq(priv->t_irq);
	disable_irq(priv->r_irq);
	mpc52xx_fec_rx_interrupt(priv->r_irq, dev);
	enable_irq(priv->r_irq);
}
#endif






-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-22 11:11           ` Sergei Shtylyov
@ 2008-09-22 14:39             ` Sergei Shtylyov
  2008-09-22 14:45               ` Jon Smirl
  2008-09-22 21:27             ` Benjamin Herrenschmidt
  1 sibling, 1 reply; 16+ messages in thread
From: Sergei Shtylyov @ 2008-09-22 14:39 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: mpm, shemminger, linuxppc-dev

Hello, I wrote:

   Not sure if Stephen was the right person to CC, including Matt now...

>>>> What controls this? "carrier detect appears untrustworthy, waiting 4 
>>>> seconds"
>>>> Get that fixed and this patch could be useful,

>>> Does the driver properly uses netif_carrier_on/off to signal the
>>> system when the link is up/down ?

>>  Implementing the poll_controller() method in the network driver is 
>> usually

>>   Looks like the answer is "no"...

>   Hm... it uses phylib, so probably it does that. That message and a 4 s 
> pause appears if the carrier is seen in <10 ms after opening the device. 

    Oops, not 10 -- 100 ms (HZ / 10).

> Maybe this threshold needs to be changed?

    Seems like too much indeed.

WBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-22 14:39             ` Sergei Shtylyov
@ 2008-09-22 14:45               ` Jon Smirl
  2008-09-22 14:59                 ` Sergei Shtylyov
  0 siblings, 1 reply; 16+ messages in thread
From: Jon Smirl @ 2008-09-22 14:45 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: mpm, shemminger, linuxppc-dev

On Mon, Sep 22, 2008 at 10:39 AM, Sergei Shtylyov
<sshtylyov@ru.mvista.com> wrote:
> Hello, I wrote:
>
>  Not sure if Stephen was the right person to CC, including Matt now...
>
>>>>> What controls this? "carrier detect appears untrustworthy, waiting 4
>>>>> seconds"
>>>>> Get that fixed and this patch could be useful,
>
>>>> Does the driver properly uses netif_carrier_on/off to signal the
>>>> system when the link is up/down ?
>
>>>  Implementing the poll_controller() method in the network driver is
>>> usually
>
>>>  Looks like the answer is "no"...
>
>>  Hm... it uses phylib, so probably it does that. That message and a 4 s
>> pause appears if the carrier is seen in <10 ms after opening the device.
>
>   Oops, not 10 -- 100 ms (HZ / 10).
>
>> Maybe this threshold needs to be changed?
>
>   Seems like too much indeed.

The link is coming up, but it appears that netconsole has already
decided to wait 4s.

mpc52xx MII bus: probed
net eth0: Using PHY at MDIO address 0
netconsole: local port 6666
netconsole: local IP 192.168.1.11
netconsole: interface eth0
netconsole: remote port 514
netconsole: remote IP 192.168.1.4
netconsole: remote ethernet address 00:19:d1:e4:0f:8d
netconsole: device eth0 not up yet, forcing it
net eth0: attached phy 0 to driver Generic PHY
netconsole: carrier detect appears untrustworthy, waiting 4 seconds
PHY: f0003000:00 - Link is Up - 100/Full
console [netcon0] enabled
netconsole: network logging started



>
> WBR, Sergei
>



-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-22 14:45               ` Jon Smirl
@ 2008-09-22 14:59                 ` Sergei Shtylyov
  0 siblings, 0 replies; 16+ messages in thread
From: Sergei Shtylyov @ 2008-09-22 14:59 UTC (permalink / raw)
  To: Jon Smirl; +Cc: mpm, shemminger, linuxppc-dev

Jon Smirl wrote:

>> Not sure if Stephen was the right person to CC, including Matt now...

>>>>>>What controls this? "carrier detect appears untrustworthy, waiting 4
>>>>>>seconds"
>>>>>>Get that fixed and this patch could be useful,

>>>>>Does the driver properly uses netif_carrier_on/off to signal the
>>>>>system when the link is up/down ?

>>>> Implementing the poll_controller() method in the network driver is
>>>>usually

>>>> Looks like the answer is "no"...

>>> Hm... it uses phylib, so probably it does that. That message and a 4 s
>>>pause appears if the carrier is seen in <10 ms after opening the device.

>>  Oops, not 10 -- 100 ms (HZ / 10).

>>>Maybe this threshold needs to be changed?

>>  Seems like too much indeed.

> The link is coming up, but it appears that netconsole has already
> decided to wait 4s.
> mpc52xx MII bus: probed
> net eth0: Using PHY at MDIO address 0
> netconsole: local port 6666
> netconsole: local IP 192.168.1.11
> netconsole: interface eth0
> netconsole: remote port 514
> netconsole: remote IP 192.168.1.4
> netconsole: remote ethernet address 00:19:d1:e4:0f:8d
> netconsole: device eth0 not up yet, forcing it
> net eth0: attached phy 0 to driver Generic PHY
> netconsole: carrier detect appears untrustworthy, waiting 4 seconds

    Netpoll code decides to wait 4 secs after seeing that carrier is OK before 
100 ms passed...

> PHY: f0003000:00 - Link is Up - 100/Full

    ...but it's only reported to be OK later. So indeed, the carrier reported 
by the driver appears untrustworthy. ;-)

WBR, Sergei

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-22 11:11           ` Sergei Shtylyov
  2008-09-22 14:39             ` Sergei Shtylyov
@ 2008-09-22 21:27             ` Benjamin Herrenschmidt
  1 sibling, 0 replies; 16+ messages in thread
From: Benjamin Herrenschmidt @ 2008-09-22 21:27 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linuxppc-dev, shemminger

On Mon, 2008-09-22 at 15:11 +0400, Sergei Shtylyov wrote:
> Hello, I wrote:
> 
> >>> What controls this? "carrier detect appears untrustworthy, waiting 4 
> >>> seconds"
> >>> Get that fixed and this patch could be useful,
> >>>     
> >>
> >> Does the driver properly uses netif_carrier_on/off to signal the
> >> system when the link is up/down ?
> >>   
> >  Implementing the poll_controller() method in the network driver is 
> > usually
> >
> >   Looks like the answer is "no"...
> 
>    Hm... it uses phylib, so probably it does that. That message and a 4 
> s pause appears if the carrier is seen in <10 ms after opening the 
> device. Maybe this threshold needs to be changed?

This sounds fishy, some devices can setup the carrier before open...

Ben.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: solution to printk() blocking interrupts?
  2008-09-22 13:45     ` Jon Smirl
@ 2008-09-23  5:46       ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 16+ messages in thread
From: Benjamin Herrenschmidt @ 2008-09-23  5:46 UTC (permalink / raw)
  To: Jon Smirl; +Cc: linuxppc-dev


> >  It's a strange piece of hardware that loses interrupts on getting overrun.
> > :-)
> 
> The 4 second pause slows down the debug/test cycle a lot. I'm using a
> net booted monolithic kernel on the hardware and using the reset
> button every time I make a change.

I'm not going to have much feelings for you here... I've debugged the
kernel on setups that need 30mn to reboot :-)

Ben.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-09-23  5:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-21 20:53 solution to printk() blocking interrupts? Jon Smirl
2008-09-21 21:43 ` Jon Smirl
2008-09-21 22:21   ` Sergei Shtylyov
2008-09-21 23:34     ` Jon Smirl
2008-09-22  5:17       ` Benjamin Herrenschmidt
2008-09-22 11:04         ` Sergei Shtylyov
2008-09-22 11:11           ` Sergei Shtylyov
2008-09-22 14:39             ` Sergei Shtylyov
2008-09-22 14:45               ` Jon Smirl
2008-09-22 14:59                 ` Sergei Shtylyov
2008-09-22 21:27             ` Benjamin Herrenschmidt
2008-09-22 10:03       ` Sergei Shtylyov
2008-09-22 11:01         ` Sergei Shtylyov
2008-09-22 11:21   ` Sergei Shtylyov
2008-09-22 13:45     ` Jon Smirl
2008-09-23  5:46       ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).