Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Sep 2004 01:45:45 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        freebsd-current@freebsd.org
Subject:   Re: ICH6 (Intel 915 support) + fxp and ICH6 patches
Message-ID:  <6.1.2.0.0.20040917235915.0533eba8@64.7.153.2>
In-Reply-To: <6.1.2.0.0.20040917210537.04649508@64.7.153.2>
References:  <6.1.2.0.0.20040917210537.04649508@64.7.153.2>

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

A little more digging, and it seems to be an fxp based on the 82562EZ
In if_fxp.c, I added


%diff -u if_fxp.c /tmp/if_fxp.c
--- if_fxp.c    Wed Aug 11 17:41:25 2004
+++ /tmp/if_fxp.c       Sat Sep 18 01:35:22 2004
@@ -170,6 +170,7 @@
      { 0x103E,  -1,     "Intel 82801DB (ICH4) Pro/100 VM Ethernet" },
      { 0x1050,  -1,     "Intel 82801BA (D865) Pro/100 VE Ethernet" },
      { 0x1051,  -1,     "Intel 82562ET (ICH5/ICH5R) Pro/100 VE Ethernet" },
+    { 0x1064,  -1,     "Intel 82562EZ (ICH6)" },
      { 0x1059,  -1,     "Intel 82551QM Pro/100 M Mobile Connection" },
      { 0x1209,  -1,     "Intel 82559ER Embedded 10/100 Ethernet" },
      { 0x1229,  0x01,   "Intel 82557 Pro/100 Ethernet" },
%

I didnt know how to update the inphy info, but it seems close enough to at 
least get it working.

fxp0: <Intel 82562EZ  (ICH6)> port 0xd200-0xd23f mem 0xd00a0000-0xd00a0fff 
irq 12 at device 8.0 on pci1
fxp0: Ethernet address: 00:01:80:57:29:a9
miibus0: <MII bus> on fxp0
inphy0: <i82562ET 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto


And it *seems* to work.  A quick ftp test in either direction shows ~ 11.1MB/s


To get the SATA controller listed, I applied the following patch

915# diff -u ata-chipset.c orig/ata-chipset.c
--- ata-chipset.c       Sat Sep 18 01:18:50 2004
+++ orig/ata-chipset.c  Sat Sep 18 00:56:17 2004
@@ -830,8 +830,6 @@
       { ATA_I82801EB,   0, 0, 0x00, ATA_UDMA5, "Intel ICH5" },
       { ATA_I82801EB_S1,0, 0, 0x00, ATA_SA150, "Intel ICH5" },
       { ATA_I82801EB_R1,0, 0, 0x00, ATA_SA150, "Intel ICH5" },
-     { ATA_I82801FB,   0, 0, 0x00, ATA_SA150, "Intel ICH6" },
-     { ATA_I82801FB_S1,0, 0, 0x00, ATA_SA150, "Intel ICH6" },
       { ATA_I6300ESB,   0, 0, 0x00, ATA_UDMA5, "Intel 6300ESB" },
       { ATA_I6300ESB_S1,0, 0, 0x00, ATA_SA150, "Intel 6300ESB" },
       { ATA_I6300ESB_R1,0, 0, 0x00, ATA_SA150, "Intel 6300ESB" },
915# diff -u orig/ata-chipset.c ata-chipset.c
--- orig/ata-chipset.c  Sat Sep 18 00:56:17 2004
+++ ata-chipset.c       Sat Sep 18 01:18:50 2004
@@ -830,6 +830,8 @@
       { ATA_I82801EB,   0, 0, 0x00, ATA_UDMA5, "Intel ICH5" },
       { ATA_I82801EB_S1,0, 0, 0x00, ATA_SA150, "Intel ICH5" },
       { ATA_I82801EB_R1,0, 0, 0x00, ATA_SA150, "Intel ICH5" },
+     { ATA_I82801FB,   0, 0, 0x00, ATA_SA150, "Intel ICH6" },
+     { ATA_I82801FB_S1,0, 0, 0x00, ATA_SA150, "Intel ICH6" },
       { ATA_I6300ESB,   0, 0, 0x00, ATA_UDMA5, "Intel 6300ESB" },
       { ATA_I6300ESB_S1,0, 0, 0x00, ATA_SA150, "Intel 6300ESB" },
       { ATA_I6300ESB_R1,0, 0, 0x00, ATA_SA150, "Intel 6300ESB" },
915#

915# diff -u orig/ata-pci.h  ata-pci.h
--- orig/ata-pci.h      Sat Sep 18 00:56:17 2004
+++ ata-pci.h   Sat Sep 18 01:18:25 2004
@@ -117,6 +117,8 @@
  #define ATA_I82801DB           0x24cb8086
  #define ATA_I82801DB_1         0x24ca8086
  #define ATA_I82801EB           0x24db8086
+#define ATA_I82801FB           0x26528086
+#define ATA_I82801FB_S1                0x26518086
  #define ATA_I82801EB_S1                0x24d18086
  #define ATA_I82801EB_R1                0x24df8086
  #define ATA_I6300ESB           0x25a28086
915#

The value for ATA_I82801FB is taken from the patch posted to 
freebsd-stable. I imagine it will work, but its not tested by me.

atapci0@pci0:31:2:      class=0x01018a card=0x26518086 chip=0x26518086 
rev=0x03 hdr=0x00
     vendor   = 'Intel Corporation'
     device   = '82801FB/FW ICH6/ICH6W SATA Controller'
     class    = mass storage
     subclass = ATA


Speed seems decent enough

915# atacontrol cap 1 0
ATA channel 1, Master, device ad2:

Protocol              Serial ATA v1.0
device model          ST3120026AS
serial number         3JT1BSB2
firmware revision     3.18
cylinders             16383
heads                 16
sectors/track         63
lba supported         234441648 sectors
lba48 supported       234441648 sectors
dma supported
overlap not supported

Feature                      Support  Enable    Value   Vendor
write cache                    yes      yes
read ahead                     yes      yes
SATA NCQ                       no        -      0/0x00
SMART                          yes      yes
microcode download             yes      yes
security                       yes      no
power management               yes      yes
advanced power management      no       no      65278/0xFEFE
automatic acoustic management  no       no      0/0x00  254/0xFE
915#


Starting up bonnie, I see

               -------Sequential Output-------- ---Sequential Input-- 
--Random--
               -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- 
--Seeks---
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
           500 53287 42.5 51596 14.9 20420  5.9 46129 44.5 54101  8.6 
217.5  0.7
915#


Anyone know what
acpi0: <AOpen AWRDACPI> on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)

means ?

Full boot verbose and acpidump are at http://www.tancsa.com/915.txt in case 
there is interest

         ---Mike


At 09:09 PM 17/09/2004, Mike Tancsa wrote:

>Has anyone tried this board yet ?  I just booted beta 3 with it and it 
>boots but with a few complaints and it doesnt see the onboard NIC.
>
>none3@pci1:8:0: class=0x020000 card=0x04d6a0a0 chip=0x10648086 rev=0x03 
>hdr=0x00
>     vendor   = 'Intel Corporation'
>     class    = network
>     subclass = ethernet
>
>Anyone know what kind of Intel NIC it is ?
>
>
>
>915# dmesg
>Copyright (c) 1992-2004 The FreeBSD Project.
>Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>         The Regents of the University of California. All rights reserved.
>FreeBSD 5.3-BETA3 #0: Sat Sep  4 12:07:48 UTC 2004
>     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
>WARNING: WITNESS option enabled, expect reduced performance.
>Timecounter "i8254" frequency 1193182 Hz quality 0
>CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (2999.67-MHz 686-class CPU)
>   Origin = "GenuineIntel"  Id = 0xf34  Stepping = 4
> 
>Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
>real memory  = 259981312 (247 MB)
>avail memory = 244756480 (233 MB)
>ACPI APIC Table: <AOpen  AWRDACPI>
>ioapic0 <Version 2.0> irqs 0-23 on motherboard
>npx0: [FAST]
>npx0: <math processor> on motherboard
>npx0: INT 16 interface
>acpi0: <AOpen AWRDACPI> on motherboard
>acpi_bus_number: can't get _ADR
>acpi_bus_number: can't get _ADR
>acpi_bus_number: can't get _ADR
>acpi_bus_number: can't get _ADR
>acpi0: Power Button (fixed)
>Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
>acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
>cpu0: <ACPI CPU> on acpi0
>acpi_tz0: <Thermal Zone> on acpi0
>acpi_button0: <Power Button> on acpi0
>pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
>pci0: <ACPI PCI bus> on pcib0
>pci0: <display, VGA> at device 2.0 (no driver attached)
>pci0: <multimedia> at device 27.0 (no driver attached)
>pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
>pci1: <ACPI PCI bus> on pcib1
>em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port 
>0xd000-0xd03f mem 0xd0020000-0xd003ffff,0xd0000000-0xd001ffff irq 16 at 
>device 0.0 on pci1
>em0: Ethernet address: 00:0e:0c:5d:f7:c6
>em0:  Speed:N/A  Duplex:N/A
>em1: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port 
>0xd100-0xd13f mem 0xd0060000-0xd007ffff,0xd0040000-0xd005ffff irq 21 at 
>device 1.0 on pci1
>em1: Ethernet address: 00:0e:0c:5d:f7:c0
>em1:  Speed:N/A  Duplex:N/A
>pci1: <network, ethernet> at device 8.0 (no driver attached)
>isab0: <PCI-ISA bridge> at device 31.0 on pci0
>isa0: <ISA bus> on isab0
>atapci0: <GENERIC ATA controller> port 
>0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.2 on pci0
>ata0: channel #0 on atapci0
>ata1: channel #1 on atapci0
>pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
>fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
>sio0 port 0x3f8-0x3ff irq 4 on acpi0
>sio0: type 16550A
>sio1 port 0x2f8-0x2ff irq 3 on acpi0
>sio1: type 16550A
>ppc0 port 0x778-0x77b,0x378-0x37f irq 7 on acpi0
>ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
>ppbus0: <Parallel port bus> on ppc0
>lpt0: <Printer> on ppbus0
>lpt0: Interrupt-driven port
>ppi0: <Parallel I/O> on ppbus0
>plip0: <PLIP network interface> on ppbus0
>orm0: <ISA Option ROMs> at iomem 
>0xcd000-0xcdfff,0xcc000-0xccfff,0xc0000-0xca7ff on isa0
>pmtimer0 on isa0
>atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
>atkbd0: <AT Keyboard> irq 1 on atkbdc0
>kbd0 at atkbd0
>atkbd0: [GIANT-LOCKED]
>sc0: <System console> at flags 0x100 on isa0
>sc0: VGA <16 virtual consoles, flags=0x300>
>vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
>Timecounter "TSC" frequency 2999674103 Hz quality 800
>Timecounters tick every 10.000 msec
>ad2: 114473MB <ST3120026AS/3.18> [232581/16/63] at ata1-master SATA150
>Mounting root from ufs:/dev/ad2s1a
>em0: Link is up 100 Mbps Full Duplex
>
>
>
>
>
>--------------------------------------------------------------------
>Mike Tancsa,                                      tel +1 519 651 3400
>Sentex Communications,                            mike@sentex.net
>Providing Internet since 1994                    www.sentex.net
>Cambridge, Ontario Canada                         www.sentex.net/mike
>
>_______________________________________________
>freebsd-current@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-current
>To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"



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