9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Kernel Panic <cinap_lenrek@gmx.de>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] 9pcf debugging
Date: Wed,  6 Feb 2008 12:54:16 +0100	[thread overview]
Message-ID: <47A99FE8.9040702@gmx.de> (raw)
In-Reply-To: <45219fb00802041211n69d88b50hb07838a0270c27fc@mail.gmail.com>

Lluís Batlle wrote:

>Thank you all...
>In fact I managed to get the ethernet driver working at the first code
>change I tried today!
>This means that by now I won't try to debug the kernel, but I really
>like to have known of these kernel debugging techniques.
>
>Btw, I had problems with the Rhine ethernet driver. I got much help
>from #plan9... the driver wanted to align some structures to the cache
>line size. The driver read the cls from the pci configuration space,
>and my card had that register *bad* (0x04 instead of 0x08, for the x86
>architecture I use).
>As the driver allocates several Ds structures with a big malloc, and
>dividing the allocated area to (p+=cls) parts, each for each Ds
>structure, the driver required that cls >= sizeof Ds. That wasn't met
>in my system, and the driver decided not to load.
>I simply set manually the alignement to 32 bytes (0x08 dwords,
>according to pci cls terminology), and it worked well for several
>minutes, until I had to turn off the system.
>
>Yesterday I tried aligning to 64 bytes, which I thought should work,
>but it only worked for some tens of packets, and then the card
>'hanged'. I cannot describe that hang better than the simple user
>experience of no network packet receiving any answer, since some pings
>worked and I could mount sources.
>  
>
My VIA C7 based machine has the same problem:

0.18.0:	net  02.00.00 1106/3065  10 0:0000f001 256 1:fdffe000 256
	VIA Technology VT6102 Rhine II PCI Fast Ethernet Controller

so i could help you testing that thing :-)


cinap


      reply	other threads:[~2008-02-06 11:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-04 16:18 Lluís Batlle
2008-02-04 16:43 ` ron minnich
2008-02-04 21:24   ` Martin Harriss
2008-02-04 19:45 ` erik quanstrom
2008-02-04 20:11   ` Lluís Batlle
2008-02-06 11:54     ` Kernel Panic [this message]

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=47A99FE8.9040702@gmx.de \
    --to=cinap_lenrek@gmx.de \
    --cc=9fans@cse.psu.edu \
    /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).