Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 May 1999 01:31:27 -0700
From:      David Greenman <dg@root.com>
To:        Eric Lemiere <elemiere@matra-ms2i.fr>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: Intel EtherExpress Pro 10/100TX on PCI troubleshooting on FreeBSD3.1 
Message-ID:  <199905260831.BAA01628@implode.root.com>
In-Reply-To: Your message of "Wed, 26 May 1999 10:26:50 %2B0200." <374BB049.BFC4E4F3@matra-ms2i.fr> 

index | next in thread | previous in thread | raw e-mail

>Hello FreeBSD team!
>
>I've had troubles installing my "Intel EtherExpress Pro 10/100TX" PCI
>Ethernet adapter on the FreeBSD 3.1 release I bought recently.
>I'm all the more surprised of this as that adapter used to work
>perfectly with FreeBSD 2.2.8
>
>Remarks:
>1) The adapter is correctly detected as an "Intel EtherExpress Pro
>10/100TX" at boot sequence.
>2) The installation process hangs up while trying to turn the adapter
>UP.
>3) The command "ifconfig fxp0 inet 10.0.0.5" makes the system hang up
>too.
>
>
>I fancy that the driver is not available for this adapter, but this
>surprises me as it
>was within FreeBSD 2.2.8 . I see the "Intel EtherExpress Pro/100B
>Ethernet adapter"
>driver among the PCI drivers available, is it not correct?
>
>Would you please give me your advice, available patch or driver that
>would suit?

   There was a bug that prevented the DMA from working on systems where the
PCI BIOS didn't correctly configure it before booting FreeBSD.
   Solutions: You can either install 3.2 (where it has been fixed) or use
the patch that I've attached for 3.1.

-DG

David Greenman
Co-founder/Principal Architect, The FreeBSD Project - http://www.freebsd.org
Creator of high-performance Internet servers - http://www.terasolutions.com

Index: if_fxp.c
===================================================================
RCS file: /home/ncvs/src/sys/pci/if_fxp.c,v
retrieving revision 1.59.2.2
retrieving revision 1.59.2.3
diff -c -r1.59.2.2 -r1.59.2.3
*** if_fxp.c	1999/03/18 18:47:29	1.59.2.2
--- if_fxp.c	1999/03/30 04:51:43	1.59.2.3
***************
*** 27,33 ****
   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   *
!  *	$Id: if_fxp.c,v 1.59.2.2 1999/03/18 18:47:29 luigi Exp $
   */
  
  /*
--- 27,33 ----
   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   *
!  *	$Id: if_fxp.c,v 1.59.2.3 1999/03/30 04:51:43 wes Exp $
   */
  
  /*
***************
*** 98,103 ****
--- 98,104 ----
  #include <machine/clock.h>	/* for DELAY */
  
  #include <pci/pcivar.h>
+ #include <pci/pcireg.h>		/* for PCIM_CMD_xxx */
  #include <pci/if_fxpreg.h>
  #include <pci/if_fxpvar.h>
  
***************
*** 529,534 ****
--- 530,536 ----
  	vm_offset_t pbase;
  	struct ifnet *ifp;
  	int s;
+ 	u_long val;
  
  	sc = malloc(sizeof(struct fxp_softc), M_DEVBUF, M_NOWAIT);
  	if (sc == NULL)
***************
*** 537,542 ****
--- 539,551 ----
  	callout_handle_init(&sc->stat_ch);
  
  	s = splimp();
+ 
+ 	/*
+ 	 * Enable bus mastering.
+ 	 */
+ 	val = pci_conf_read(config_id, PCI_COMMAND_STATUS_REG);
+ 	val |= (PCIM_CMD_MEMEN|PCIM_CMD_BUSMASTEREN);
+ 	pci_conf_write(config_id, PCI_COMMAND_STATUS_REG, val);
  
  	/*
  	 * Map control/status registers.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905260831.BAA01628>