ICH9 support for Motherboard: Foxconn G33M?

2007-10-09 Thread Abdullah Ibn Hamad Al-Marri
Hello,

This is just a fresh csup buildworld, buildkernel with GENERIC

Motherboard: Foxconn G33M

ata controllers not found so it runs generic @ udma33 slowest possible


here is the  dmesg

server1# cat /var/run/dmesg.boot
Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-STABLE #0: Wed Oct 10 02:08:23 UTC 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 Duo CPU E6750  @ 2.66GHz (2666.06-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x6fb  Stepping = 11
  
Features=0xbfebfbffFPU,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
  Features2=0xe3fdSSE3,RSVD2,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
  AMD Features=0x2010NX,LM
  AMD Features2=0x1LAHF
  Cores per package: 2
real memory  = 2137718784 (2038 MB)
avail memory = 2086768640 (1990 MB)
ACPI APIC Table: 052507 APIC1114
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0 Version 2.0 irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: 052507 RSDT1114 on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
cpu0: ACPI CPU on acpi0
cpu1: ACPI CPU 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)
pcib1: ACPI PCI-PCI bridge at device 30.0 on pci0
pci1: ACPI PCI bus on pcib1
re0: RealTek 8169SC/8110SC Single-chip Gigabit Ethernet port
0xe800-0xe8ff mem 0xfebffc00-0xfebffcff irq 22 at device 2.0 on pci1
miibus0: MII bus on re0
rgephy0: RTL8169S/8110S media interface on miibus0
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
re0: Ethernet address: 00:01:6c:18:b9:70
re0: [FAST]
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: GENERIC ATA controller port
0xd880-0xd887,0xd800-0xd803,0xd480-0xd487,0xd400-0xd403,0xd080-0xd08f,0xd000-0xd00f
irq 19 at device 31.2 on pci0
ata2: ATA channel 0 on atapci0
ata3: ATA channel 1 on atapci0
pci0: serial bus, SMBus at device 31.3 (no driver attached)
atapci1: GENERIC ATA controller port
0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f,0xc000-0xc00f
irq 19 at device 31.5 on pci0
ata4: ATA channel 0 on atapci1
ata5: ATA channel 1 on atapci1
acpi_button0: Power Button on acpi0
sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
atkbdc0: Keyboard controller (i8042) port 0x60,0x64 irq 1 on acpi0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
pmtimer0 on isa0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
ppc0: parallel port not found.
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
Timecounters tick every 1.000 msec
ad4: 238475MB WDC WD2500KS-00MJB0 02.01C03 at ata2-master UDMA33
ad6: 238475MB WDC WD2500KS-00MJB0 02.01C03 at ata3-master UDMA33
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/ad4s1a


server1# pciconf -lv
[EMAIL PROTECTED]:0:0:class=0x06 card=0x0ce3105b chip=0x29c08086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
class  = bridge
subclass   = HOST-PCI
[EMAIL PROTECTED]:2:0: class=0x03 card=0x0ce3105b chip=0x29c28086 rev=0x02 
hdr=0x00
vendor = 'Intel Corporation'
class  = display
subclass   = VGA
[EMAIL PROTECTED]:30:0:class=0x060401 card=0x0ce3105b chip=0x244e8086
rev=0x92 hdr=0x01
vendor = 'Intel Corporation'
device = '82801BA/CA/DB/DBL/EB/ER/FB (ICH2/3/4/4/5/5/6),
6300ESB Hub Interface to PCI Bridge'
class  = bridge
subclass   = PCI-PCI
[EMAIL PROTECTED]:31:0:class=0x060100 card=0x0ce3105b chip=0x29188086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
class  = bridge
subclass   = PCI-ISA
[EMAIL PROTECTED]:31:2:  class=0x01018f card=0x0ce3105b chip=0x29218086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
class  = mass storage
subclass   = ATA
[EMAIL PROTECTED]:31:3:class=0x0c0500 card=0x0ce3105b chip=0x29308086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
class  = serial bus
subclass   = SMBus
[EMAIL PROTECTED]:31:5:  class=0x010185 card=0x0ce3105b chip=0x29268086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
class  = mass 

Re: ICH9 support for Motherboard: Foxconn G33M?

2007-10-09 Thread LI Xin
Abdullah Ibn Hamad Al-Marri wrote:
 Hello,
 
 This is just a fresh csup buildworld, buildkernel with GENERIC
 
 Motherboard: Foxconn G33M
 
 ata controllers not found so it runs generic @ udma33 slowest possible

I think the chipset is not yet supported by -HEAD now.  Would you please
try the attached patch to see if it works?

Cheers,
-- 
Xin LI [EMAIL PROTECTED]  http://www.delphij.net/
FreeBSD - The Power to Serve!
Index: ata-chipset.c
===
RCS file: /home/ncvs/src/sys/dev/ata/ata-chipset.c,v
retrieving revision 1.201
diff -u -p -r1.201 ata-chipset.c
--- ata-chipset.c   4 Oct 2007 19:17:15 -   1.201
+++ ata-chipset.c   9 Oct 2007 18:40:28 -
@@ -1713,6 +1713,7 @@ ata_intel_ident(device_t dev)
  { ATA_I82801HBM_S2, 0, AHCI, 0x00, ATA_SA300, ICH8M },
  { ATA_I82801IB_S1,  0, AHCI, 0x00, ATA_SA300, ICH9 },
  { ATA_I82801IB_S2,  0, AHCI, 0x00, ATA_SA300, ICH9 },
+ { ATA_I82801IB_AH2, 0, AHCI, 0x00, ATA_SA300, ICH9 },
  { ATA_I82801IB_AH4, 0, AHCI, 0x00, ATA_SA300, ICH9 },
  { ATA_I82801IB_AH6, 0, AHCI, 0x00, ATA_SA300, ICH9 },
  { ATA_I31244,   0,0, 0x00, ATA_SA150, 31244 },
Index: ata-pci.h
===
RCS file: /home/ncvs/src/sys/dev/ata/ata-pci.h,v
retrieving revision 1.80
diff -u -p -r1.80 ata-pci.h
--- ata-pci.h   4 Oct 2007 19:17:16 -   1.80
+++ ata-pci.h   9 Oct 2007 18:39:51 -
@@ -169,6 +169,7 @@ struct ata_connect_task {
 #define ATA_I82801HBM_S10x28298086
 #define ATA_I82801HBM_S20x282a8086
 #define ATA_I82801IB_S1 0x29208086
+#define ATA_I82801IB_AH20x29218086
 #define ATA_I82801IB_AH60x29228086
 #define ATA_I82801IB_AH40x29238086
 #define ATA_I82801IB_S2 0x29268086


signature.asc
Description: OpenPGP digital signature


Re: ICH9 support for Motherboard: Foxconn G33M?

2007-10-09 Thread Abdullah Ibn Hamad Al-Marri
On 10/9/07, LI Xin [EMAIL PROTECTED] wrote:
 Abdullah Ibn Hamad Al-Marri wrote:
  Hello,
 
  This is just a fresh csup buildworld, buildkernel with GENERIC
 
  Motherboard: Foxconn G33M
 
  ata controllers not found so it runs generic @ udma33 slowest possible

 I think the chipset is not yet supported by -HEAD now.  Would you please
 try the attached patch to see if it works?

 Cheers,
 --
 Xin LI [EMAIL PROTECTED]http://www.delphij.net/
 FreeBSD - The Power to Serve!

 Index: ata-chipset.c
 ===
 RCS file: /home/ncvs/src/sys/dev/ata/ata-chipset.c,v
 retrieving revision 1.201
 diff -u -p -r1.201 ata-chipset.c
 --- ata-chipset.c   4 Oct 2007 19:17:15 -   1.201
 +++ ata-chipset.c   9 Oct 2007 18:40:28 -
 @@ -1713,6 +1713,7 @@ ata_intel_ident(device_t dev)
   { ATA_I82801HBM_S2, 0, AHCI, 0x00, ATA_SA300, ICH8M },
   { ATA_I82801IB_S1,  0, AHCI, 0x00, ATA_SA300, ICH9 },
   { ATA_I82801IB_S2,  0, AHCI, 0x00, ATA_SA300, ICH9 },
 + { ATA_I82801IB_AH2, 0, AHCI, 0x00, ATA_SA300, ICH9 },
   { ATA_I82801IB_AH4, 0, AHCI, 0x00, ATA_SA300, ICH9 },
   { ATA_I82801IB_AH6, 0, AHCI, 0x00, ATA_SA300, ICH9 },
   { ATA_I31244,   0,0, 0x00, ATA_SA150, 31244 },
 Index: ata-pci.h
 ===
 RCS file: /home/ncvs/src/sys/dev/ata/ata-pci.h,v
 retrieving revision 1.80
 diff -u -p -r1.80 ata-pci.h
 --- ata-pci.h   4 Oct 2007 19:17:16 -   1.80
 +++ ata-pci.h   9 Oct 2007 18:39:51 -
 @@ -169,6 +169,7 @@ struct ata_connect_task {
  #define ATA_I82801HBM_S10x28298086
  #define ATA_I82801HBM_S20x282a8086
  #define ATA_I82801IB_S1 0x29208086
 +#define ATA_I82801IB_AH20x29218086
  #define ATA_I82801IB_AH60x29228086
  #define ATA_I82801IB_AH40x29238086
  #define ATA_I82801IB_S2 0x29268086

Thank you Li,

It works, and thank you for the RELENG_6 patch too.

I'm attaching it just in case someone needs it.


-- 
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/


patch-i82801ib-6.diff
Description: Binary data
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: ICH9 support for Motherboard: Foxconn G33M?

2007-10-09 Thread LI Xin
Abdullah Ibn Hamad Al-Marri wrote:
 Thank you Li,
 
 It works, and thank you for the RELENG_6 patch too.

Thanks.  I have just committed the -CURRENT patch against -HEAD and it
should appear in RELENG_7 (7.0-BETA).

Cheers,
-- 
Xin LI [EMAIL PROTECTED]  http://www.delphij.net/
FreeBSD - The Power to Serve!



signature.asc
Description: OpenPGP digital signature