public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Fwd: [SPARC64] INO problem Re: [Bug 10273] New: Sun GEM (PCI) - network device doesn't work
       [not found] <20080317143624.da313311.akpm@linux-foundation.org>
@ 2008-04-02 18:26 ` Jarek Poplawski
  2008-04-10 10:30   ` David Miller
  2008-04-25  7:26   ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Jarek Poplawski @ 2008-04-02 18:26 UTC (permalink / raw)
  To: David Miller; +Cc: seraph, Andrew Morton, netdev, bugme-daemon, linux-kernel


Nice work Jos! I forward it to the author and the lists.

Jarek P.

Andrew Morton wrote, On 03/17/2008 10:36 PM:

> On Mon, 17 Mar 2008 14:25:50 -0700 (PDT)
> bugme-daemon@bugzilla.kernel.org wrote:
> 
>> http://bugzilla.kernel.org/show_bug.cgi?id=10273
>>
>>            Summary: Sun GEM (PCI) - network device doesn't work

----- Forwarded message from bugme-daemon@bugzilla.kernel.org -----

> ------- Comment #24 from seraph@xs4all.nl  2008-04-02 07:24 -------
> I did bisection. The bad commit is:
> 
> 5a606b72a4309a656cd1a19ad137dc5557c4b8ea is first bad commit
> commit 5a606b72a4309a656cd1a19ad137dc5557c4b8ea
> Author: David S. Miller <davem@sunset.davemloft.net>
> Date:   Mon Jul 9 22:40:36 2007 -0700
> 
>     [SPARC64]: Do not ACK an INO if it is disabled or inprogress.
> 
> 
> -- 
> Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.

----- End forwarded message -----

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

* Re: [SPARC64] INO problem Re: [Bug 10273] New: Sun GEM (PCI) - network device doesn't work
  2008-04-02 18:26 ` Fwd: [SPARC64] INO problem Re: [Bug 10273] New: Sun GEM (PCI) - network device doesn't work Jarek Poplawski
@ 2008-04-10 10:30   ` David Miller
  2008-04-25  7:26   ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2008-04-10 10:30 UTC (permalink / raw)
  To: jarkao2; +Cc: seraph, akpm, netdev, bugme-daemon, linux-kernel

From: Jarek Poplawski <jarkao2@gmail.com>
Date: Wed, 2 Apr 2008 20:26:55 +0200

> Nice work Jos! I forward it to the author and the lists.

Thanks for tracking this down.

I'm very busy currently but I promise I'll try to resolve this
somehow.

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

* Re: [SPARC64] INO problem Re: [Bug 10273] New: Sun GEM (PCI) - network device doesn't work
  2008-04-02 18:26 ` Fwd: [SPARC64] INO problem Re: [Bug 10273] New: Sun GEM (PCI) - network device doesn't work Jarek Poplawski
  2008-04-10 10:30   ` David Miller
@ 2008-04-25  7:26   ` David Miller
  2008-04-25 19:59     ` Jos van der Ende
  1 sibling, 1 reply; 5+ messages in thread
From: David Miller @ 2008-04-25  7:26 UTC (permalink / raw)
  To: jarkao2; +Cc: seraph, akpm, netdev, bugme-daemon, linux-kernel

From: Jarek Poplawski <jarkao2@gmail.com>
Date: Wed, 2 Apr 2008 20:26:55 +0200

> Nice work Jos! I forward it to the author and the lists.

I haven't forgotten about this bug report, in fact I did some
investigation and thinking about it.

I think the case being triggered in the new code is IRQ_DISABLED.

If this is the problem, I suspect that what needs to happen is that
when we re-enable the interrupt we have to forcefully hit the clear
register to put it back into transmit state.  Otherwise it can
get stuck.

Please give this patch a try (this is against 2.6.23, which is the
version you reported the bug against, let me know if another version
is more convenient).

Thanks!

diff --git a/arch/sparc64/kernel/irq.c b/arch/sparc64/kernel/irq.c
index 2395609..98b68d2 100644
--- a/arch/sparc64/kernel/irq.c
+++ b/arch/sparc64/kernel/irq.c
@@ -313,6 +313,8 @@ static void sun4u_irq_enable(unsigned int virt_irq)
 			 IMAP_AID_SAFARI | IMAP_NID_SAFARI);
 		val |= tid | IMAP_VALID;
 		upa_writeq(val, imap);
+
+		upa_writeq(ICLR_IDLE, data->iclr);
 	}
 }
 

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

* Re: [SPARC64] INO problem Re: [Bug 10273] New: Sun GEM (PCI) - network device doesn't work
  2008-04-25  7:26   ` David Miller
@ 2008-04-25 19:59     ` Jos van der Ende
  2008-04-25 20:35       ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Jos van der Ende @ 2008-04-25 19:59 UTC (permalink / raw)
  To: David Miller; +Cc: jarkao2, akpm, netdev, bugme-daemon, linux-kernel

> Please give this patch a try (this is against 2.6.23, which is the
> version you reported the bug against, let me know if another version
> is more convenient).

I applied the patch against 2.6.24-gentoo-r4, the current kernel on this machine. It worked fine, with only an offset of 12 lines. Nothing unusual during compile either.

The first results are hopeful: I am no longer able to trigger this bug by loading sym53c8xx before sungem, nor by having them both loaded by udev. Nothing odd in dmesg and the machine is completely functional.


I don't have much time for testing today, but if desired I will gladly do some more testing tomorrow or Sunday.


-- 
Jos van der Ende <seraph@xs4all.nl>

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

* Re: [SPARC64] INO problem Re: [Bug 10273] New: Sun GEM (PCI) - network device doesn't work
  2008-04-25 19:59     ` Jos van der Ende
@ 2008-04-25 20:35       ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2008-04-25 20:35 UTC (permalink / raw)
  To: seraph; +Cc: jarkao2, akpm, netdev, bugme-daemon, linux-kernel

From: Jos van der Ende <seraph@xs4all.nl>
Date: Fri, 25 Apr 2008 21:59:05 +0200

> > Please give this patch a try (this is against 2.6.23, which is the
> > version you reported the bug against, let me know if another version
> > is more convenient).
> 
> I applied the patch against 2.6.24-gentoo-r4, the current kernel on this machine. It worked fine, with only an offset of 12 lines. Nothing unusual during compile either.
> 
> The first results are hopeful: I am no longer able to trigger this bug by loading sym53c8xx before sungem, nor by having them both loaded by udev. Nothing odd in dmesg and the machine is completely functional.
> 
> 
> I don't have much time for testing today, but if desired I will gladly do some more testing tomorrow or Sunday.

Thanks for testing the change, I'll do some of my own testing and push
the bug fix upstream.

Thanks again!

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

end of thread, other threads:[~2008-04-25 20:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20080317143624.da313311.akpm@linux-foundation.org>
2008-04-02 18:26 ` Fwd: [SPARC64] INO problem Re: [Bug 10273] New: Sun GEM (PCI) - network device doesn't work Jarek Poplawski
2008-04-10 10:30   ` David Miller
2008-04-25  7:26   ` David Miller
2008-04-25 19:59     ` Jos van der Ende
2008-04-25 20:35       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox