linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Francois Romieu <romieu@fr.zoreil.com>
To: Pascal CHAPPERON <pascal.chapperon@wanadoo.fr>
Cc: Andrew Hutchings <info@a-wing.co.uk>,
	linux-kernel@vger.kernel.org, vinay kumar <b4uvin@yahoo.co.in>,
	jgarzik@pobox.com
Subject: Re: sis190
Date: Tue, 14 Jun 2005 22:04:45 +0200	[thread overview]
Message-ID: <20050614200445.GA28134@electric-eye.fr.zoreil.com> (raw)
In-Reply-To: <26107136.1118758462265.JavaMail.www@wwinf1518>

Pascal CHAPPERON <pascal.chapperon@wanadoo.fr> :
[20050613-2.6.12-rc-sis190-test.patch]
> I tried it : 
> - false mode detection
> - as you expected, ping -s 157 was OK, ping -s 158 failed.
> 
> Nice, it begins to work!

Yes.

Notice how the supposedly Rx DMA address ends in your log:
sk_buff[0]->tail = ffff810006a3e012
                                  ^
I have tweaked the rx copybreak path to perform a shift from two bytes
before this address and surprisingly enough we get exactly the two
missing bytes. The normal path has not been modified and it is taken
as soon as there is at least 200 bytes of data, i.e. your 186 icmp
payload: it fails as it misses two bytes. Two possible explanations:
1 - I can not find where the two bytes are lost and it is actually a bug
    in the driver. So far, you have been quite good at detecting my mistakes.
    You know what you have to do :o)
2 - the asic can only DMA to a 4 bytes aligned address.

(actually the asic could also always DMA 2 bytes before the expected address,
whatever the adress, but I'd be happily surprized).

If 2) applies, the driver will need an extra copy to align the IP headers
(or someone will find some secret documentation which explains how to
remove two bytes and fix the issue).

The patch of the day uses a 4 bytes aligned Rx buffer address (at least for
the usual MTU) and copies the Rx data. Can you reproduce the usual testing
and tell if it makes a difference ?

Patch available at:
http://www.fr.zoreil.com/people/francois/misc/20050614-2.6.12-rc-sis190-test.patch

--
Ueimor

  reply	other threads:[~2005-06-14 20:06 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-14 14:14 sis190 Pascal CHAPPERON
2005-06-14 20:04 ` Francois Romieu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-07-10 13:23 sis190 Pascal CHAPPERON
2005-07-09 13:25 sis190 Pascal CHAPPERON
2005-07-09 20:57 ` sis190 Francois Romieu
2005-07-06 15:58 sis190 Pascal CHAPPERON
2005-07-06 21:29 ` sis190 Francois Romieu
2005-07-02 10:52 sis190 Pascal CHAPPERON
2005-07-02 11:33 ` sis190 Francois Romieu
2005-07-04 23:30 ` sis190 Francois Romieu
2005-06-26 12:39 sis190 Pascal CHAPPERON
2005-06-30 23:37 ` sis190 Francois Romieu
2005-06-19 10:17 sis190 Pascal CHAPPERON
2005-06-21 23:02 ` sis190 Francois Romieu
2005-06-17 11:14 sis190 Pascal CHAPPERON
2005-06-17 18:22 ` sis190 Francois Romieu
2005-06-15 15:22 sis190 Pascal CHAPPERON
2005-06-16 22:34 ` sis190 Francois Romieu
2005-06-13  8:19 sis190 Pascal CHAPPERON
2005-06-13 21:39 ` sis190 Francois Romieu
2005-06-11  9:39 sis190 Pascal CHAPPERON
2005-06-11 10:56 ` sis190 Francois Romieu
2005-06-07 22:37 sis5513.c patch Andrew Hutchings
2005-06-07 22:57 ` Francois Romieu
2005-06-07 23:20   ` Andrew Hutchings
2005-06-08 22:51     ` sis190 (was: Re: sis5513.c patch) Francois Romieu
2005-06-09  4:54       ` sis190 Andrew Hutchings
2005-06-09 12:02       ` sis190 Andrew Hutchings
2005-06-09 21:18         ` sis190 Francois Romieu
2005-06-10 13:55           ` sis190 Andrew Hutchings
2005-06-10 23:41             ` sis190 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=20050614200445.GA28134@electric-eye.fr.zoreil.com \
    --to=romieu@fr.zoreil.com \
    --cc=b4uvin@yahoo.co.in \
    --cc=info@a-wing.co.uk \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pascal.chapperon@wanadoo.fr \
    /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).