Re: Problems with fxp0 on T30 with 5.1-RELEASE

2003-07-18 Thread Darryl Okahata
"Kevin Oberman" <[EMAIL PROTECTED]> wrote:

> Great to hear that it's working.
> 
> Now I just wonder why you had to do this. My T30 has standard IRQs
> (most everything shares 11) and I have not seen this. My fxp0 works
> fine with CURRENT and has worked for quite some time, maybe since
> pre-5.0-Release. I typically update the system about once a week.

 Has the OP used ``hw.pci.allow_unsupported_io_range="1"''?  I had
to use this with my A31 to prevent nasty fxp-related crashes in
5.1-RELEASE.

-- 
Darryl Okahata
[EMAIL PROTECTED]

DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Agilent Technologies, or
of the little green men that have been following him all day.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems with fxp0 on T30 with 5.1-RELEASE

2003-07-18 Thread Kevin Oberman
> From: "stark" <[EMAIL PROTECTED]>
> Date: Fri, 18 Jul 2003 17:46:51 -0400 (EDT)
> 
> > ps2 is the IBM utility to adjust BIOS parameters. While these can also
> > be adjusted under Windows, many are never written to CMOS and are lost
> > on re-boot. (Windows re-loads them from the registry.) ps2 will change
> > the values in CMOS memory.
> 
> I couldn't get ps2 to tell me anything interesting, but I entered the
> BIOS and put 5,7,9,10,11 for the first 5 PCI IRQ ids and left the last
> three on auto and ta-da!  everything seems to be working.
> 
> I'm using the GENERIC 5.1-RELEASE kernel so it's using cbb already
> (someone had asked that) and I can't see that anything else is failing
> (I don't have wi-fi and I had already disabled serial, IR, and parallel,
> so USB is the only thing left :) 
> 
> Woo-Hoo!  This is the first time I've had 5.x working completely on
> my laptop.  I'm very very appreciative.  Thanks everyone!
> 
> (Now we should probably find out WHY we have to set the IRQ assignments
> manually, but seeing as it works I'm not in a rush to find out.  Feel
> free to suggest code changes and I'll be a guinea pig though :)

Great to hear that it's working.

Now I just wonder why you had to do this. My T30 has standard IRQs
(most everything shares 11) and I have not seen this. My fxp0 works
fine with CURRENT and has worked for quite some time, maybe since
pre-5.0-Release. I typically update the system about once a week.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems with fxp0 on T30 with 5.1-RELEASE

2003-07-18 Thread stark
> ps2 is the IBM utility to adjust BIOS parameters. While these can also
> be adjusted under Windows, many are never written to CMOS and are lost
> on re-boot. (Windows re-loads them from the registry.) ps2 will change
> the values in CMOS memory.

I couldn't get ps2 to tell me anything interesting, but I entered the
BIOS and put 5,7,9,10,11 for the first 5 PCI IRQ ids and left the last
three on auto and ta-da!  everything seems to be working.

I'm using the GENERIC 5.1-RELEASE kernel so it's using cbb already
(someone had asked that) and I can't see that anything else is failing
(I don't have wi-fi and I had already disabled serial, IR, and parallel,
so USB is the only thing left :) 

Woo-Hoo!  This is the first time I've had 5.x working completely on
my laptop.  I'm very very appreciative.  Thanks everyone!

(Now we should probably find out WHY we have to set the IRQ assignments
manually, but seeing as it works I'm not in a rush to find out.  Feel
free to suggest code changes and I'll be a guinea pig though :)

Dana Lacoste
Ottawa, Canada
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems with fxp0 on T30 with 5.1-RELEASE

2003-07-18 Thread Kevin Oberman
> From: "stark" <[EMAIL PROTECTED]>
> Date: Fri, 18 Jul 2003 09:45:08 -0400 (EDT)
> 
> > On Thu, Jul 17, 2003 at 09:58:00AM -0600, M. Warner Losh wrote:
>  
> > kevin oberman suggested the use of the ps2 utility for thinkpads. i
> > did not have the chance to try it out myself.
> 
> I also didn't have the time to look at it the last day and a half, but
> I have time this weekend so I'll definitely investigate.
> 
> The part that I'm confused about is "what's the 'ps2' utility?"
> 
> There's no mention of it in /usr/ports and the only things I can
> find with google are a DOS program by that name.  Is that what
> you're referring to?
> 
> If so, where do I get it?

It is available as a floppy image at the IBM download page. The
Windows that came on the system will also have it. You need to either
boot Windows or the DOS disk from IBM.

ps2 is the IBM utility to adjust BIOS parameters. While these can also
be adjusted under Windows, many are never written to CMOS and are lost
on re-boot. (Windows re-loads them from the registry.) ps2 will change
the values in CMOS memory.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems with fxp0 on T30 with 5.1-RELEASE

2003-07-18 Thread stark
> On Thu, Jul 17, 2003 at 09:58:00AM -0600, M. Warner Losh wrote:
 
> kevin oberman suggested the use of the ps2 utility for thinkpads. i
> did not have the chance to try it out myself.

I also didn't have the time to look at it the last day and a half, but
I have time this weekend so I'll definitely investigate.

The part that I'm confused about is "what's the 'ps2' utility?"

There's no mention of it in /usr/ports and the only things I can find
with google are a DOS program by that name.  Is that what you're referring to?

If so, where do I get it?
 
> the only odd thing is that 5.0 did not have this bug, while 5.1 has
> it. if it needs fixing is up to you, i am now happy with the current
> solution. but then, the default bios settings are so stupid that it may
> not be feasable to do anything about it.

This is the part that confuses me as well, but from 5.0 to 5.1 the fxp
driver was completely re-written to use a different API so tracking
down the specific problem is going to suck :(

I also have XP on the laptop (for work stuff, honest! :) and it's working
fine as well, so it's definitely a bug in 5.1.

I'll also try getting -CURRENT /usr/src off another system and recompiling
from scratch to see if that fixes the issue (not having net sucks! :)

Dana Lacoste
Ottawa, Canada

PS: Someone had said that although they might be able to find the bug they'd
need the affected hardware.  Well, if you're between Toronto and Quebec
City I could arrange a field trip for the weekend, but I'm not shipping
my laptop to Europe :)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems with fxp0 on T30 with 5.1-RELEASE

2003-07-18 Thread Tobias Roth
On Thu, Jul 17, 2003 at 09:58:00AM -0600, M. Warner Losh wrote:
> In message: <[EMAIL PROTECTED]>
> Tobias Roth <[EMAIL PROTECTED]> writes: this is caused by
> : an irq conflict. the bug was introduced some time between 5.0 and
> : 5.1.  i have no idea how to solve this, maybe someone else can help
> : here. maybe the ibm ps2 tool offers some help.
> 
> details?

kevin oberman suggested the use of the ps2 utility for thinkpads. i
did not have the chance to try it out myself.

> : another workaround is to free an irq. for me, disabling the pcmcia
> : stuff in the kernel config helped. others reported that disabling
> : the serial port helped for them.
> 
> interesting.

shortly after i discovered this problem, my TP started to have immense
problems with the summer heat and started crashing during buildworlds.
that's why i didn't look into the irq problem any further at this time.

now, i just got my TP back from ibm, and while they did not really fix
the heat problem (i will send it back to them next week), i got around
to do some irq tests.

irqs 0,1,8,12,13,14,15 are set and no subject of manual change.
irq 2, i have no idea about.
irq 3 and 4 are the infrared device and the serial port.
irq 7 is the parallel port
irq 6 can be freed by disabling legacy floppy support in the bios.
however it does not seem be taken by a different device when freed.

this leaves us with irqs 5,9,10,11 to distribute in the pci section
of the bios. after some playing around, i set INT[A-H] PCI IRQ to
5,9,10,11,11,9,10,11. I do not know whether the order matters, but
the distribution does. like this, every irq is assigned to two devices:

5->uhic0 and cbb0, 9->cbb1 and pcm0, 10->uhic2 and wi0, 11->uhic1 and fxp0.

the only drawback i encountered with these settings was a short hang
during boot when probing uhic2. it did not hang there before i started
switching around irqs, but i do not know what is wrong here.

other than that, everything works now.

> : this has to be fixed before 5.2, imho. it renders a default install
> : on thinkpads useless. note that this does NOT happen on all thinkpad
> : systems, i didn't figure out what makes up the difference.
> 
> sounds like a bug that needs to be fixed, but the details are so vague
> as to make that impossible.  chances are very good that someone with a
> clue (like me) will need a machine that fails to fix it.

the only odd thing is that 5.0 did not have this bug, while 5.1 has
it. if it needs fixing is up to you, i am now happy with the current
solution. but then, the default bios settings are so stupid that it may
not be feasable to do anything about it.

hope that helps, t.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems with fxp0 on T30 with 5.1-RELEASE

2003-07-17 Thread Nate Lawson
Please post your full dmesg output.  You should be using "device pccbb"
not pcmcia in 5.x.  I've got patches that make cardbus probe/attach with
acpi without the start_memory hack on my T23.  Those should be going in
soon.  My fxp(4) on my laptop is working fine.

-Nate
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems with fxp0 on T30 with 5.1-RELEASE

2003-07-17 Thread Kevin Oberman
> From: "stark" <[EMAIL PROTECTED]>
> Date: Wed, 16 Jul 2003 21:26:49 -0400 (EDT)
> Sender: [EMAIL PROTECTED]
> 
> http://www.freebsdforums.org/forums/showthread.php?s=&threadid=10676
> 
> This has more info confirming that it's not just me :)
> 
> Anyways, I'm willing to try anything: I'm installing 5.1 from CD
> (BSD Mall!  YAY!) and am VERY VERY VERY happy that acpi (appears to be)
> is working perfectly!  (I had to retrograde to 4.x because it was
> so broken with 5.0 and this is my first return to 5.x land since then :)
> 
> The problem :
> "fxp0: device timeout"
> appears continuously (about every 15 seconds) while interface is UP
> 
> details :
> - IBM T30 laptop, Windows says it's an Intel Pro/100 VE
> - 5.1-RELEASE (can't cvsup, network doesn't work :)
> - only happens when device is UP (ifconfig down causes the error to go away)
> - mii appears to work correctly : ifconfig shows the link status correctly
>   instantly (10/100/none, full/half duplex) and it updates when i remove
>   the cable. Also, the mac address shows up correctly.
> 
> I don't have anything added to the laptop, no cardbus devices, no usb
> devices, so i'm not sure what's causing the problem, but like I said,
> I'm willing to try anything out if you have any suggestions :)

This is really odd. I run 5.1 (actually CURRENT) on a T30 and have not
seen this for some time. You may need to go to CURRENT.

It may be an issue with some interaction. I will attach my
configuration files and dmesg for my T30.

Are you running ACPI or APM? I am running APM.

The only IRQ assignments shown in ps2 are:
Serial   4
PCI  11
IDE2 15

Of course, other IRQs are in use, but they are not configurable. (psm,
IDE1, keyboard, clock, ...). The fxp0 uses the shared PCI IRQ.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634

Copyright (c) 1992-2003 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.1-CURRENT #7: Sun Jul 13 08:32:16 PDT 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/IBM-T30-D
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0506000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc050626c.
Preloaded elf module "/boot/kernel/apm.ko" at 0xc05062bc.
Timecounter "i8254"  frequency 1193182 Hz
CPU: Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz (1798.48-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
  
Features=0x3febf9ff
real memory  = 536281088 (511 MB)
avail memory = 515309568 (491 MB)
Pentium Pro MTRR support enabled
npx0:  on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 14 entries at 0xc00fdeb0
apm0:  on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
pcib0:  at pcibus 0 on motherboard
pci0:  on pcib0
pci_cfgintr: 0:29 INTA BIOS irq 11
pci_cfgintr: 0:29 INTB BIOS irq 11
pci_cfgintr: 0:29 INTC BIOS irq 11
pci_cfgintr: 0:31 INTB BIOS irq 11
pci_cfgintr: 0:31 INTB BIOS irq 11
pci_cfgintr: 0:31 INTB BIOS irq 11
agp0:  mem 0xe000-0xe3ff at device 0.0 on pci0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pci_cfgintr: 1:0 INTA BIOS irq 11
pci1:  at device 0.0 (no driver attached)
uhci0:  port 0x1800-0x181f irq 11 at 
device 29.0 on pci0
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1: NEC Corporation USB2.0 Hub Controller, class 9/0, rev 2.00/1.00, addr 2
uhub1: 4 ports with 4 removable, self powered
uhci1:  port 0x1820-0x183f irq 11 at 
device 29.1 on pci0
usb1:  on uhci1
usb1: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci2:  port 0x1840-0x185f irq 11 at 
device 29.2 on pci0
usb2:  on uhci2
usb2: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
pcib2:  at device 30.0 on pci0
pci2:  on pcib2
pci_cfgintr: 2:0 INTA BIOS irq 11
pci_cfgintr: 2:0 INTB BIOS irq 11
pci_cfgintr: 2:2 INTA BIOS irq 11
pci_cfgintr: 2:8 INTA BIOS irq 11
cbb0:  mem 0x5000-0x5fff irq 11 at device 0.0 on 
pci2
start (5000) < sc->membase (d020)
start (5000) < sc->pmembase (f000)
cardbus0:  on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb1:  mem 0x5100-0x51000fff irq 11 at device 0.1 on 
pci2
start (5100) < sc->membase (d020)
start (5100) < sc->pmembase (f000)
cardbus1:  on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pci2:  at device 2.0 (no driver attached)
fxp0:  port 0x8000-0x803f mem 
0xd020-0xd0200fff irq 11 at device 8.0 on pci2
fxp0: Ethernet address 00:09:6b:50:36:29
miibus0:  on fxp0
inphy0:  on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0:  at device 31.0 on pci0
isa0:  on isab0

Re: Problems with fxp0 on T30 with 5.1-RELEASE

2003-07-17 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]>
Tobias Roth <[EMAIL PROTECTED]> writes: this is caused by
: an irq conflict. the bug was introduced some time between 5.0 and
: 5.1.  i have no idea how to solve this, maybe someone else can help
: here. maybe the ibm ps2 tool offers some help.

details?

: another workaround is to free an irq. for me, disabling the pcmcia
: stuff in the kernel config helped. others reported that disabling
: the serial port helped for them.

interesting.

: this has to be fixed before 5.2, imho. it renders a default install
: on thinkpads useless. note that this does NOT happen on all thinkpad
: systems, i didn't figure out what makes up the difference.

sounds like a bug that needs to be fixed, but the details are so vague
as to make that impossible.  chances are very good that someone with a
clue (like me) will need a machine that fails to fix it.

Warner
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems with fxp0 on T30 with 5.1-RELEASE

2003-07-17 Thread Tobias Roth
> The problem :
> "fxp0: device timeout"
> appears continuously (about every 15 seconds) while interface is UP

this is caused by an irq conflict. the bug was introduced some time between 5.0 and 
5.1.
i have no idea how to solve this, maybe someone else can help here. maybe the ibm ps2 
tool
offers some help.

it also happens on non-thinkpad systems, as previously discussed (on -mobile or 
-current, i forgot).
 so the ps2 approach, if it works, will just be a workaround.

another workaround is to free an irq. for me, disabling the pcmcia stuff in the kernel
config helped. others reported that disabling the serial port helped for them.

this has to be fixed before 5.2, imho. it renders a default install on thinkpads 
useless. note
that this does NOT happen on all thinkpad systems, i didn't figure out what makes up 
the difference.

hope that helps, t.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Problems with fxp0 on T30 with 5.1-RELEASE

2003-07-16 Thread stark
http://www.freebsdforums.org/forums/showthread.php?s=&threadid=10676

This has more info confirming that it's not just me :)

Anyways, I'm willing to try anything: I'm installing 5.1 from CD
(BSD Mall!  YAY!) and am VERY VERY VERY happy that acpi (appears to be)
is working perfectly!  (I had to retrograde to 4.x because it was
so broken with 5.0 and this is my first return to 5.x land since then :)

The problem :
"fxp0: device timeout"
appears continuously (about every 15 seconds) while interface is UP

details :
- IBM T30 laptop, Windows says it's an Intel Pro/100 VE
- 5.1-RELEASE (can't cvsup, network doesn't work :)
- only happens when device is UP (ifconfig down causes the error to go away)
- mii appears to work correctly : ifconfig shows the link status correctly
  instantly (10/100/none, full/half duplex) and it updates when i remove
  the cable. Also, the mac address shows up correctly.

I don't have anything added to the laptop, no cardbus devices, no usb
devices, so i'm not sure what's causing the problem, but like I said,
I'm willing to try anything out if you have any suggestions :)

Dana Lacoste
Ottawa, Canada
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"