All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Fajar A. Nugraha" <fajar@telkom.co.id>
To: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: adding device driver kernel module for xen/linux
Date: Tue, 17 Jan 2006 20:07:56 +0700	[thread overview]
Message-ID: <43CCEC2C.1080001@telkom.co.id> (raw)
In-Reply-To: <A95E2296287EAD4EB592B5DEEFCE0E9D40A224@liverpoolst.ad.cl.cam.ac.uk>

Ian Pratt wrote:

>>I wanted to add a kernel module (bcm5700, device driver for 
>>Broadcom network adapter) to linux 2.6, xen-3.0.0. Is it 
>>possible to use the kernel module (source) as-is, without 
>>modifications, or do I need to edit the module source code to 
>>be Xen-specific?
>>    
>>
>
>The code should not need to be modified.
> 
>  
>
>>I noticed that the files tg3.c and tg3.h on linux-2.6.12-xen 
>>is the same as the one on pristine-linux-2.6.12, so 
>>presumably, no change is needed. 
>>However, using bcm5700 module on linux-2.6.12-xen kernel 
>>doesn't work, while using bcm5700 on native linux (on the 
>>same machine) works.
>>    
>>
>
>The tg3 driver certainly works for me. When you say native, do you mean
>2.6.12 native? 
>
My native linux uses redhat's official kernel (2.6.9).

>Perhaps you have a very new version of the chip that
>needs a more recent driver?
>
>  
>
It is possible. I used xen-2.0.7 on hardware with revision number 2, and 
it works. However, broadcom hardware with revision number 10 (bought 
mid-2005) doesn't work with xen-2.0.7 nor xen-3.0.0. Or to be more 
specific :

-   using bcm5700 (broadcom's official driver, until 1-16-2006) : 
doesn't work, even when xend is not running
-   using tg3 (from Xen's stock 2.6.12 kernel and broadcom's current 
official driver) : works without xend, but doesn't work if I use xend in 
the default bridge configuration.

>Perhaps more likely, you may have an interrupt routeing issue. Does the
>NIC appear to be using the same interrupt number in both the native and
>xen cases?
>
>  
>
No, they're using different interrupt numbers.

On native Linux, they use interrupts 209 and 217 (I have two network cards).
On Xen (with both tg3 and bcm5700 driver), they use interrupts 77 and 78.

Should the different interrupt numbers make a difference?

Regards,

Fajar

  reply	other threads:[~2006-01-17 13:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-17 12:10 adding device driver kernel module for xen/linux Ian Pratt
2006-01-17 13:07 ` Fajar A. Nugraha [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-01-17  5:54 Fajar A. Nugraha
2006-01-17 16:01 ` Jon Mason

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=43CCEC2C.1080001@telkom.co.id \
    --to=fajar@telkom.co.id \
    --cc=m+Ian.Pratt@cl.cam.ac.uk \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.