Barbara
2008-Dec-31 05:34 UTC
Lock enabling onboard lan (Attansic L1 GbE) on 7.1-PRERELEASE
Hello, one of my motherboards has an onboard Attansic network interface, I think an AR8121. # pciconf -lcv none0@pci0:4:0:0: class=0x020000 card=0x82261043 chip=0x10481969 rev=0xb0 hdr=0x00 vendor = 'Attansic (Now owned by Atheros)' device = 'L1 Gigabit Ethernet 10/100/1000Base-T Ethernet Controller' class = network subclass = ethernet cap 01[40] = powerspec 2 supports D0 D3 current D0 cap 05[48] = MSI supports 1 message, 64 bit cap 10[58] = PCI-Express 1 endpoint cap 03[6c] = VPD Today I decided to give it a try. But if I try loading the if_age module, the system prints the following lines and then it freezes. age0: <Attansic Technology Corp, L1 Gigabit Ethernet> mem 0xfbdc0000-0xfbdfffff irq 36 at device 0.0 on pci4 age0: PCI device revision : 0x00b0 age0: Chip id/revision : 0x9006 age0: 1280 Tx FIFO, 2364 Rx FIFO age0: MSIX count : 0 age0: MSI count : 1 age0: Using 1 MSI messages. age0: Read request size : 512 bytes. age0: TLP payload size : 128 bytes.
SDH Admin
2008-Dec-31 22:54 UTC
Lock enabling onboard lan (Attansic L1 GbE) on 7.1-PRERELEASE
> Today I decided to give it a try. > But if I try loading the if_age module, the > system prints the following lines and then it freezes.Could you please print the full dmesg / uname (build date) output? Thanks. --- Kevin K. Systems Administrator www.linux-vps-servers.com
Barbara
2009-Jan-01 06:31 UTC
Lock enabling onboard lan (Attansic L1 GbE) on 7.1-PRERELEASE
>> Today I decided to give it a try. >> But if I try loading the if_age module,the>> system prints the following lines and then it freezes. > > > >Could youplease print the full dmesg / uname (build date) output?> > >Thanks. > > >--->Kevin K. >Systems Administrator >www.linux-vps-servers.com >Sure! /usr/src has been synced right before starting the buildworld. # uname -a FreeBSD satanasso.local.net 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Wed Dec 31 03:55: 33 CET 2008 root@satanasso.local.net:/usr/obj/usr/src/sys/SATANASSO i386 If I load age adding it in my kernconf or with the loader, the system freezes so the relevant part on dmesg should be the following two lines: pci4: <ACPI PCI bus> on pcib5 pci4: <network, ethernet> at device 0.0 (no driver attached) Here comes the full dmesg output. Unfortunately the web client of my mail provider, does something stupid with the text, so I know it could be confused. If asked I can send it via email as attachment. # dmesg Copyright (c) 1992- 2009 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 7.1-PRERELEASE #0: Wed Dec 31 03:55:33 CET 2008 root@satanasso. local.net:/usr/obj/usr/src/sys/SATANASSO Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ (2499.74-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x60fb1 Stepping = 1 Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA, CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=0x2001<SSE3,CX16> AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!> AMD Features2=0x11f<LAHF,CMP,SVM,ExtAPIC,CR8,Prefetch> Cores per package: 2 real memory = 2147155968 (2047 MB) avail memory = 2087157760 (1990 MB) ACPI APIC Table: <A_M_I_ OEMAPIC > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 <Version 0.3> irqs 0-23 on motherboard ioapic1 <Version 0.3> irqs 24-47 on motherboard kbd1 at kbdmux0 acpi0: <A_M_I_ OEMRSDT> on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0 pci1: <ACPI PCI bus> on pcib1 pcib2: <ACPI PCI-PCI bridge> irq 27 at device 2.0 on pci0 pci2: <ACPI PCI bus> on pcib2 vgapci0: <VGA-compatible display> port 0xdc00-0xdc7f mem 0xfa000000- 0xfaffffff,0xd0000000-0xdfffffff,0xf8000000-0xf9ffffff irq 24 at device 0.0 on pci2 nvidia0: <GeForce 8500 GT> on vgapci0 vgapci0: child nvidia0 requested pci_enable_busmaster vgapci0: child nvidia0 requested pci_enable_io nvidia0: [GIANT-LOCKED] nvidia0: [ITHREAD] pcib3: <ACPI PCI-PCI bridge> irq 31 at device 3.0 on pci0 pci6: <ACPI PCI bus> on pcib3 pcib4: <ACPI PCI-PCI bridge> irq 35 at device 3.1 on pci0 pci5: <ACPI PCI bus> on pcib4 pcib5: <ACPI PCI-PCI bridge> irq 39 at device 3.2 on pci0 pci4: <ACPI PCI bus> on pcib5 pci4: <network, ethernet> at device 0.0 (no driver attached) pcib6: <ACPI PCI-PCI bridge> irq 43 at device 3.3 on pci0 pci3: <ACPI PCI bus> on pcib6 atapci0: <VIA 8237A SATA150 controller> port 0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807, 0xc480-0xc483,0xc400-0xc40f,0xc000-0xc0ff irq 21 at device 15.0 on pci0 atapci0: [ITHREAD] ata2: <ATA channel 0> on atapci0 ata2: [ITHREAD] ata3: <ATA channel 1> on atapci0 ata3: [ITHREAD] atapci1: <VIA 8237A UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0 ata0: <ATA channel 0> on atapci1 ata0: [ITHREAD] ata1: <ATA channel 1> on atapci1 ata1: [ITHREAD] uhci0: <VIA 83C572 USB controller> port 0xb480-0xb49f irq 20 at device 16.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: <VIA 83C572 USB controller> on uhci0 usb0: USB revision 1.0 uhub0: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: <VIA 83C572 USB controller> port 0xb800-0xb81f irq 22 at device 16.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: <VIA 83C572 USB controller> on uhci1 usb1: USB revision 1.0 uhub1: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: <VIA 83C572 USB controller> port 0xb880-0xb89f irq 21 at device 16.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: <VIA 83C572 USB controller> on uhci2 usb2: USB revision 1.0 uhub2: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2 uhub2: 2 ports with 2 removable, self powered uhci3: <VIA 83C572 USB controller> port 0xbc00-0xbc1f irq 23 at device 16.3 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb3: <VIA 83C572 USB controller> on uhci3 usb3: USB revision 1.0 uhub3: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3 uhub3: 2 ports with 2 removable, self powered ehci0: <VIA VT6202 USB 2.0 controller> mem 0xf7fffc00-0xf7fffcff irq 21 at device 16.4 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: <VIA VT6202 USB 2.0 controller> on ehci0 usb4: USB revision 2.0 uhub4: <VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4 uhub4: 8 ports with 8 removable, self powered isab0: <PCI-ISA bridge> at device 17.0 on pci0 isa0: <ISA bus> on isab0 pcib7: <ACPI PCI-PCI bridge> at device 19.0 on pci0 pci128: <ACPI PCI bus> on pcib7 pcm0: <VIA VT8251/8237A High Definition Audio Controller> mem 0xfbffc000-0xfbffffff irq 17 at device 1.0 on pci128 pcm0: [ITHREAD] pcib8: <ACPI PCI-PCI bridge> at device 19.1 on pci0 pci7: <ACPI PCI bus> on pcib8 rl0: <RealTek 8139 10/100BaseTX> port 0xe800-0xe8ff mem 0xfbeffc00-0xfbeffcff irq 19 at device 9.0 on pci7 miibus0: <MII bus> on rl0 rlphy0: <RealTek internal media interface> PHY 0 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:08:a1:27: 1f:bb rl0: [ITHREAD] acpi_button0: <Sleep Button> on acpi0 acpi_button1: <Power Button> on acpi0 fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse Explorer, device ID 4 cpu0: <ACPI CPU> on acpi0 acpi_throttle0: <ACPI CPU Throttling> on cpu0 powernow0: <PowerNow! K8> on cpu0 cpu1: <ACPI CPU> on acpi0 powernow1: <PowerNow! K8> on cpu1 pmtimer0 on isa0 orm0: <ISA Option ROM> at iomem 0xcd000-0xcdfff pnpid ORM0000 on isa0 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 ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: <Parallel port bus> on ppc0 ppbus0: [ITHREAD] plip0: <PLIP network interface> on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled Timecounters tick every 1.000 msec ad0: 152627MB <MAXTOR STM3160212A 3.AAJ> at ata0-master UDMA100 ad1: 117246MB <Maxtor 6Y120L0 YAR41BW0> at ata0-slave UDMA133 acd0: DVDR <PIONEER DVD-RW DVR- 109/1.58> at ata1-master UDMA66 ad4: 238475MB <WDC WD2500KS-00MJB0 02.01C03> at ata2-master SATA150 pcm0: <HDA Codec: Realtek ALC660> pcm0: <HDA Driver Revision: 20080420_0052> SMP: AP CPU #1 Launched! GEOM_LABEL: Label for provider ad0s3 is ext2fs//boot. GEOM_LABEL: Label for provider ad0s6 is ext2fs//. Trying to mount root from ufs:/dev/ad4s3a Thank you and happy new year.
Barbara
2009-Jan-01 06:46 UTC
Lock enabling onboard lan (Attansic L1 GbE) on 7.1-PRERELEASE
>>> Today I decided to give it a try. >>> But if I try loading the if_agemodule,>the >>> system prints the following lines and then it freezes. >> >>>> >>Could you >please print the full dmesg / uname (build date) output? >> >>>>Thanks. >> >> >>--- > >>Kevin K. >>Systems Administrator >>www.linux-vps-servers.com>> >Maybe this is better: http://pastebin.ca/1297510
Pyun YongHyeon
2009-Jan-05 07:48 UTC
Lock enabling onboard lan (Attansic L1 GbE) on 7.1-PRERELEASE
On Wed, Dec 31, 2008 at 06:34:08AM +0100, Barbara wrote: > Hello, > one of my motherboards has an onboard Attansic network interface, I > think an AR8121. > > # pciconf -lcv > none0@pci0:4:0:0: class=0x020000 > card=0x82261043 chip=0x10481969 rev=0xb0 hdr=0x00 > vendor = 'Attansic > (Now owned by Atheros)' > device = 'L1 Gigabit Ethernet 10/100/1000Base-T > Ethernet Controller' > class = network > subclass = ethernet > cap > 01[40] = powerspec 2 supports D0 D3 current D0 > cap 05[48] = MSI supports > 1 message, 64 bit > cap 10[58] = PCI-Express 1 endpoint > cap 03[6c] = VPD > > > Today I decided to give it a try. > But if I try loading the if_age module, the > system prints the following lines and then it freezes. > > age0: <Attansic > Technology Corp, L1 Gigabit Ethernet> mem 0xfbdc0000-0xfbdfffff irq 36 at > device 0.0 on pci4 > age0: PCI device revision : 0x00b0 > age0: Chip id/revision : > 0x9006 > age0: 1280 Tx FIFO, 2364 Rx FIFO > age0: MSIX count : 0 > age0: MSI count : > 1 > age0: Using 1 MSI messages. > age0: Read request size : 512 bytes. > age0: TLP > payload size : 128 bytes. > I guess it could be related with VPD access code in age(4) or automatic power-down feature of hardware. Unfortunately I have no longer access to L1 hardware so it looks hard to write a patch for the issue. Would you try following instructions? - Shutdown your box. - Completely remove power cord from your system and wait 5 to 10 min.(Just turning system off is not enough.) - Make sure to plug UTP cable to your controller before system boot. - Plug power cord and let system boot. - Enter BIOS menu and search onboard PCIe LAN configuration in the menu. If "LAN Option ROM" was enabled, disable the option. - Some motherboard might have set another option for "Check Atheros LAN cable". If it was set, disable it. If you also have an option for "Asus Express Gate" try disabling it. - Save changes and reboot. Does that make any difference? -- Regards, Pyun YongHyeon
Barbara
2009-Jan-05 10:37 UTC
Lock enabling onboard lan (Attansic L1 GbE) on 7.1-PRERELEASE
>On Wed, Dec 31, 2008 at 06:34:08AM +0100, Barbara wrote: > > Hello, > > oneof my motherboards has an onboard Attansic network interface, I> > think anAR8121.> > > > # pciconf -lcv > > none0@pci0:4:0:0: class=0x020000 > >card=0x82261043 chip=0x10481969 rev=0xb0 hdr=0x00> > vendor ='Attansic> > (Now owned by Atheros)' > > device = 'L1 GigabitEthernet 10/100/1000Base-T> > Ethernet Controller' > > class =network> > subclass = ethernet > > cap > > 01[40] = powerspec 2supports D0 D3 current D0> > cap 05[48] = MSI supports > > 1 message, 64bit> > cap 10[58] = PCI-Express 1 endpoint > > cap 03[6c] = VPD > > > > > > Today I decided to give it a try. > > But if I try loading the if_agemodule, the> > system prints the following lines and then it freezes. > > > > age0: <Attansic > > Technology Corp, L1 Gigabit Ethernet> mem 0xfbdc0000-0xfbdfffff irq 36 at> > device 0.0 on pci4 > > age0: PCI device revision :0x00b0> > age0: Chip id/revision : > > 0x9006 > > age0: 1280 Tx FIFO, 2364 RxFIFO> > age0: MSIX count : 0 > > age0: MSI count : > > 1 > > age0: Using 1MSI messages.> > age0: Read request size : 512 bytes. > > age0: TLP > >payload size : 128 bytes.> > > >I guess it could be related with VPD accesscode in age(4) or>automatic power-down feature of hardware. Unfortunately Ihave no>longer access to L1 hardware so it looks hard to write a patch for>the issue. Would you try following instructions? > - Shutdown your box. > -Completely remove power cord from your system and wait 5 to 10> min.(Justturning system off is not enough.)> - Make sure to plug UTP cable to yourcontroller before system> boot. > - Plug power cord and let system boot. > -Enter BIOS menu and search onboard PCIe LAN configuration in the> menu. If"LAN Option ROM" was enabled, disable the option.> - Some motherboard mighthave set another option for "Check> Atheros LAN cable". If it was set,disable it. If you also have> an option for "Asus Express Gate" trydisabling it.> - Save changes and reboot. > >Does that make any difference? >>-- >Regards, >Pyun YongHyeonI've tried all the thing you've suggested with the same result. I've disabled "LAN Option ROM", but it seems that I don't have the other options you mentioned. I've downloaded and burned the 7.1-RELEASE dvd and tried to boot from it, but it hangs at the same point. Finally I've tried booting a CURRENT snapshot cd (8.0-CURRENT-200812) and I was able to properly configure the device in sysinstall. Any idea about the problem? I've installed from 7.0 and I have another NIC, but being now age in GENERIC, I hope it will not cause troubles to other people installing for the first time. Anyway thank you for now, and ask me if there is something that I can do to fix the problem like more tests, patches, etc. Best regards Barbara
Barbara
2009-Jan-10 03:07 UTC
Lock enabling onboard lan (Attansic L1 GbE) on 7.1-PRERELEASE
>On Mon, Jan 05, 2009 at 11:36:54AM +0100, Barbara wrote: > >[...] > > > I'vetried all the thing you've suggested with> > the same result. > > I'vedisabled "LAN Option ROM", but it seems that I don't have> > the otheroptions you mentioned.> > I've downloaded and burned the 7.1-RELEASE dvd > >and tried to boot from it, but it hangs at the same point.> > Finally I'vetried> > booting a CURRENT snapshot cd (8.0-CURRENT-200812) and I was able toproperly> > configure the device in sysinstall. > > Any idea about theproblem?> >No, there is no source code differences between CURRENT and 7.1-RELEASE.> > > I've installed > > from 7.0 and I have another NIC, but beingnow age in GENERIC, I hope it will> > not cause troubles to other peopleinstalling for the first time.> > Anyway thank > > you for now, and ask me ifthere is something that I can do to fix the problem> > like more tests,patches, etc.> > > >Would try the following WIP version? >http://people.freebsd.org/~yongari/age/if_age.c>http://people.freebsd.org/~yongari/age/if_agereg.h>I have no longer access to L1 hardware so I don'tknow whether it>helps or not. > >-- >Regards, >Pyun YongHyeonWell, it works! As I've said, it's not a real problem for me, but I'm so sorry about not having tested before so it could be merged before 7.1-RELEASE, but I had it disabled and nearly forgot about that. Please, feel free to ask whenever you want if you want me doing tests on that NIC. Thanks Barbara