netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Francois Romieu <romieu@fr.zoreil.com>
To: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: netdev@vger.kernel.org, tbm@cyrius.com
Subject: Re: [PATCH,RFC] Re: r8169 driver problem with RTL8110SB chip (on iop3xx ARM board)
Date: Sun, 20 Aug 2006 23:35:58 +0200	[thread overview]
Message-ID: <20060820213558.GA13188@electric-eye.fr.zoreil.com> (raw)
In-Reply-To: <20060818212852.GA5379@xi.wantstofly.org>

Lennert Buytenhek <buytenh@wantstofly.org> :
[...]
> The hack patch below makes it work.  There's two issues here:
> 
> 1. Writing zero to the upper part of the TxDescStartAddr register (via
>    the MMIO region) somehow also clears the lower part, and writing the
>    upper and lower halves the other way round fixes it.  The RxDescAddr
>    register doesn't seem to suffer from this problem.
> 
>    The Realtek r1000 driver writes the two halves in the same order as
>    r8169, but it doesn't happen there, which is a bit of a mystery to
>    me.
> 
> 2. SYSErr asserts pretty soon after upping eth0, and the PCI status
>    register reports a parity error when this happens.  In this case,
>    the restart logic seems to make things worse, and in fact, when
>    commenting it out, things work a lot better.
> 
> Have you ever seen these issues before?  Any suggestions on how to
> cleanly fix these issues?

1 - unknown so far. Realtek's driver actually use IO, not MM. I do not see
    why it would make a difference as long as posteed writes are correctly
    taken care of.

2 - I have already experienced SYSErr storms on startup. If memory serves me
    right, they were "cured" simply by disabling a bit in the irq mask
    (not sure if it was SYSErr, RxOverflow or RxFIFOOver though).

Can you try against -rc4:
1) the serie at http://www.fr.zoreil.com/linux/kernel/2.6.x/2.6.18-rc4/r8169
   There is a minor difference in the init of Realtek's driver for the 8110sb
   (patch 011). It could hurt different chipset but it should do no harm to
   the 8110sb.
2) same as 1) + your hunk below:
@@ -484,7 +488,7 @@ static int rtl8169_poll(struct net_devic
 #endif
 
 static const u16 rtl8169_intr_mask =
-	SYSErr | LinkChg | RxOverflow | RxFIFOOver | TxErr | TxOK | RxErr | RxOK;
+	LinkChg | RxOverflow | RxFIFOOver | TxErr | TxOK | RxErr | RxOK;
 static const u16 rtl8169_napi_event =
 	RxOK | RxOverflow | RxFIFOOver | TxOK | TxErr;
 static const unsigned int rtl8169_rx_config =
3) same as 2) + your TxDesc change.

If it does not break anything else, I'll push your magic. I'd rather avoid
completely disabling rtl8169_pcierr_interrupt() though.

-- 
Ueimor

  reply	other threads:[~2006-08-20 21:39 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-28 10:11 r8169 driver problem with RTL8110SB chip (on iop3xx ARM board) Lennert Buytenhek
2006-07-28 10:49 ` Francois Romieu
2006-07-28 11:15   ` Lennert Buytenhek
2006-07-28 11:52     ` Martin Michlmayr
2006-07-28 19:49       ` Francois Romieu
2006-07-28 20:34         ` Martin Michlmayr
     [not found]           ` <20060802180244.GA32235@deprecation.cyrius.com>
2006-08-02 22:16             ` Francois Romieu
     [not found]               ` <20060802222623.GA27185@xi.wantstofly.org>
     [not found]                 ` <20060803081023.GA7502@electric-eye.fr.zoreil.com>
2006-08-03 10:31                   ` Martin Michlmayr
2006-08-03 13:53               ` Martin Michlmayr
     [not found]                 ` <20060803142309.GA17166@deprecation.cyrius.com>
     [not found]                   ` <20060803150556.GA9433@electric-eye.fr.zoreil.com>
2006-08-03 15:48                     ` Martin Michlmayr
2006-08-03 16:21                     ` Martin Michlmayr
2006-07-28 12:28     ` Jamal Hadi Salim
2006-08-18 21:28 ` [PATCH,RFC] " Lennert Buytenhek
2006-08-20 21:35   ` Francois Romieu [this message]
2006-09-04 22:07     ` Lennert Buytenhek
2006-09-08 20:23       ` Francois Romieu
2006-09-08 21:37         ` Lennert Buytenhek
2006-09-04 22:27     ` Lennert Buytenhek
2006-09-08 20:38       ` Francois Romieu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060820213558.GA13188@electric-eye.fr.zoreil.com \
    --to=romieu@fr.zoreil.com \
    --cc=buytenh@wantstofly.org \
    --cc=netdev@vger.kernel.org \
    --cc=tbm@cyrius.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).