Re: 3CXFE575CT-JP with NEWCARD doesn't work

2001-11-26 Thread Warner Losh

In message <[EMAIL PROTECTED]> Yoichi NAKAYAMA writes:
: I think this trouble can be easily solved if we can controll
: PCCBB_START_IO as we can controll PCCBB_START_MEM by last change:

Yes.  That would be true.  I didn't do it with that commit.  I'll go
ahead and do it for I/O.  It may change because pccbb uses a different
I/O address range for 16-bit vs 32-bit.

Warner

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: 3CXFE575CT-JP with NEWCARD doesn't work

2001-11-26 Thread Yoichi NAKAYAMA

> At Wed, 5 Sep 2001 11:47:30 -0400,
> Jonathan Chen wrote:
> > On Mon, Sep 03, 2001 at 08:26:16PM +0900, Yoichi NAKAYAMA wrote:
> > > I just cvsup'ed and buildkernel with NEWCARD.
> > > Then my note book doesn't recognize MAC address of the card(3CXFE575CT-JP)
> > > following are concerning log for new kernel and old kernel(cvsup'ed 2-3 weeks 
>ago)
> > 
> > This looks like it could have been caused by my moving the default io 
> > range around.  The IO port assigned to your card could be in conflict with 
> > something else.  Try the following patch, which reverts to the old range.
> > 
> > It would be really nice if the pci bus code could just do these assignments 
> > automagically...
> > 
> > Index: pccbb.c
> > ===
> > RCS file: /export/ncvs/src/sys/dev/pccbb/pccbb.c,v
> > retrieving revision 1.24
> > diff -u -r1.24 pccbb.c
> > --- pccbb.c 2001/08/27 11:23:05 1.24
> > +++ pccbb.c 2001/09/05 15:44:45
> > @@ -1243,8 +1243,8 @@
> > start = end = tmp;
> > break;
> > case SYS_RES_IOPORT:
> > -   if (start <= 0x1000)
> > -   start = 0x1000;
> > +   if (start <= 0x3000)
> > +   start = 0x3000;
> > if (end < start)
> > end = start;
> > break;

I think this trouble can be easily solved if we can controll
PCCBB_START_IO as we can controll PCCBB_START_MEM by last change:

; revision 1.31
; date: 2001/11/26 07:17:09;  author: imp;  state: Exp;  lines: +16 -5
; Make the start memory address that we use configurable via a boot
; loader parameter.  This allows us to more easily boot on big memory
; configuration machines.  hw.pccbb.start_mem.  Reflect this in a sysctl
; so we can read it from userland.

Is it my misunderstanding?
-- 
Yoichi Nakayama

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: 3CXFE575CT-JP with NEWCARD doesn't work

2001-11-16 Thread Yoichi NAKAYAMA

Hi,
I build kernel with NEWCARD from source cvsup'ed today.
Following patch is still needed for my machine & card.
Without this, the card appear as

/boot/kernel/kernel: xl0: Ethernet address: 00:00:00:00:00:00

and the card does not work.

Best regards,
--
Yoichi NAKAYAMA

At Wed, 5 Sep 2001 11:47:30 -0400,
Jonathan Chen wrote:
> On Mon, Sep 03, 2001 at 08:26:16PM +0900, Yoichi NAKAYAMA wrote:
> > I just cvsup'ed and buildkernel with NEWCARD.
> > Then my note book doesn't recognize MAC address of the card(3CXFE575CT-JP)
> > following are concerning log for new kernel and old kernel(cvsup'ed 2-3 weeks ago)
> 
> This looks like it could have been caused by my moving the default io 
> range around.  The IO port assigned to your card could be in conflict with 
> something else.  Try the following patch, which reverts to the old range.
> 
> It would be really nice if the pci bus code could just do these assignments 
> automagically...
> 
> Index: pccbb.c
> ===
> RCS file: /export/ncvs/src/sys/dev/pccbb/pccbb.c,v
> retrieving revision 1.24
> diff -u -r1.24 pccbb.c
> --- pccbb.c   2001/08/27 11:23:05 1.24
> +++ pccbb.c   2001/09/05 15:44:45
> @@ -1243,8 +1243,8 @@
>   start = end = tmp;
>   break;
>   case SYS_RES_IOPORT:
> - if (start <= 0x1000)
> - start = 0x1000;
> + if (start <= 0x3000)
> + start = 0x3000;
>   if (end < start)
>   end = start;
>   break;

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: 3CXFE575CT-JP with NEWCARD doesn't work

2001-09-15 Thread yoichi

My card(3CXFE575CT-JP) works well with your patch in the following.
Thanks.
--
Yoichi Nakayama
[EMAIL PROTECTED]

> On Wed, 5 Sep 2001 11:47:30 -0400, Jonathan Chen wrote:

>> On Mon, Sep 03, 2001 at 08:26:16PM +0900, Yoichi NAKAYAMA wrote:
>> I just cvsup'ed and buildkernel with NEWCARD.
>> Then my note book doesn't recognize MAC address of the card(3CXFE575CT-JP)
>> following are concerning log for new kernel and old kernel(cvsup'ed 2-3 weeks ago)

> This looks like it could have been caused by my moving the default io 
> range around.  The IO port assigned to your card could be in conflict with 
> something else.  Try the following patch, which reverts to the old range.

> It would be really nice if the pci bus code could just do these assignments 
> automagically...

> Index: pccbb.c
> ===
> RCS file: /export/ncvs/src/sys/dev/pccbb/pccbb.c,v
> retrieving revision 1.24
> diff -u -r1.24 pccbb.c
> --- pccbb.c   2001/08/27 11:23:05 1.24
> +++ pccbb.c   2001/09/05 15:44:45
> @@ -1243,8 +1243,8 @@
>   start = end = tmp;
>   break;
>   case SYS_RES_IOPORT:
> - if (start <= 0x1000)
> - start = 0x1000;
> + if (start <= 0x3000)
> + start = 0x3000;
>   if (end < start)
>   end = start;
>   break;

> -Jon

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: 3CXFE575CT-JP with NEWCARD doesn't work

2001-09-06 Thread Mark Santcroos


On Wed, Sep 05, 2001 at 11:51:07AM -0400, Jonathan Chen wrote:
> A complete dmesg from a verbose boot with both the successful and failed 
> attempts would be a good start.  It would also be useful to know what card 
> you're using.

The card is a Lucent wavelan. I haven't tried this with another card
though, let me know if that might me usefull.

Find attached the two dmesgs. They are both build after a cvsup.
For one of the two kernels I have replaced src/sys/pccard/ with the one
from August 20.

I have also included my kernel config.

Mark

-- 
Mark Santcroos  RIPE Network Coordination Centre
http://www.ripe.net/home/mark/  New Projects Group/TTM


machine i386
cpu I686_CPU
ident   MYNEW
maxusers32
options INET#InterNETworking
options FFS #Berkeley Fast Filesystem
options SOFTUPDATES #Enable FFS soft updates support
options MD_ROOT #MD is a potential root device
options PROCFS  #Process filesystem
options COMPAT_43   #Compatible with BSD 4.3 [KEEP THIS!]
options UCONSOLE#Allow users to grab the console
options KTRACE  #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B#Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
device  isa
device  pci
device  fdc
device  ata
device  atadisk # ATA disk drives
device  atapicd # ATAPI CDROM drives
options ATA_STATIC_ID   #Static device numbering
device  atkbdc  1
device  atkbd
device  psm
device  vga
device  sc  1
device  npx
device  apm
device  pmtimer
device  card
device  pcic
device  sio
device  wi
device  random  # Entropy device
device  loop# Network loopback
device  ether   # Ethernet support
device  tun # Packet tunnel.
device  pty # Pseudo-ttys (telnet etc)
device  md  # Memory "disks"
device  bpf # Berkeley packet filter
device  uhci
device  usb # USB Bus (required)
device  ugen# Generic
options PSEUDOFS
options COMPAT_LINUX
options LINPROCFS
options DDB
options INCLUDE_CONFIG_FILE
options IPFIREWALL
options IPDIVERT


Copyright (c) 1992-2001 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.0-CURRENT #10: Thu Sep  6 09:41:15 CEST 2001
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/LAPTOP
Calibrating clock(s) ... TSC clock: 299933216 Hz, i8254 clock: 1193150 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254"  frequency 1193182 Hz
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
CPU: Pentium II/Pentium II Xeon/Celeron (299.94-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x66a  Stepping = 10
  
Features=0x183f9ff
real memory  = 134086656 (130944K bytes)
Physical memory chunk(s):
0x1000 - 0x0009efff, 647168 bytes (158 pages)
0x0032c000 - 0x07fd7fff, 130727936 bytes (31916 pages)
avail memory = 127447040 (124460K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00f0220
bios32: Entry = 0xfc465 (c00fc465)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xf+0xedcd
pnpbios: Found PnP BIOS data at 0xc00f8ed0
pnpbios: Entry = f:9344  Rev = 1.0
pnpbios: Event flag at 510
pnpbios: OEM ID 1934f351
Other BIOS signatures found:
Preloaded elf kernel "kernel" at 0xc0306000.
null: 
random: 
mem: 
Pentium Pro MTRR support enabled
pci_open(1):mode 1 addr port (0x0cf8) is 0x
pci_open(1a):   mode1res=0x8000 (0x8000)
pci_cfgcheck:   device 0 [class=06] [hdr=00] is there (id=71948086)
Using $PIR table, 7 entries at 0xc00f0190
apm0:  on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0:  on motherboard
npx0: INT 16 interface
pcib0:  at pcibus 0 on motherboard
pci0: physical bus=0
found-> vendor=0x8086, dev=0x7194, revid=0x01
bus=0, slot=0, func=0
class=06-00-00, hdrtype=0x00, mfdev=0
map[10]: type 1, range 32, base ff40, size 22, enabled
map[14]: type 1, range 32, base ff3e, size 17, enabled
map[18]: type 1, range 32, base fec0, size 22, enabled
found-> vendor=0x1023, dev=0x9525, revid=0x49
bus=0, slot=4,

Re: 3CXFE575CT-JP with NEWCARD doesn't work

2001-09-05 Thread Jonathan Chen

On Tue, Sep 04, 2001 at 11:25:25AM +0200, Mark Santcroos wrote:
> Hi Warner,
> 
> On Mon, Sep 03, 2001 at 10:24:31AM -0600, Warner Losh wrote:
> > Looks like the mass commit broke stuff :-(
> 
> I have a ToPIC100 chipset in my Toshiba Portege 3110CT.
> 
> Last 'week' the updates broke my pcmcia support partially.
> Booting with a card inserted, inserted during boot or inserted after
> booting works fine just as before.
> But if I remove my card, I can't get it to work again without rebooting. The
> code doesnt seem to notice that I remove it, let alone re-insert it again.
> 
> I read the printf saying the the support for this card may be broken, so
> it won't surprise you probably.
> 
> Note that I tested src/sys/pccard/ from August 20 this morning and
> that worked fine.
> 
> Please let me know if I can be of any help debugging/coding this.

A complete dmesg from a verbose boot with both the successful and failed 
attempts would be a good start.  It would also be useful to know what card 
you're using.

-Jon

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: 3CXFE575CT-JP with NEWCARD doesn't work

2001-09-05 Thread Jonathan Chen

On Mon, Sep 03, 2001 at 08:26:16PM +0900, Yoichi NAKAYAMA wrote:
> I just cvsup'ed and buildkernel with NEWCARD.
> Then my note book doesn't recognize MAC address of the card(3CXFE575CT-JP)
> following are concerning log for new kernel and old kernel(cvsup'ed 2-3 weeks ago)

This looks like it could have been caused by my moving the default io 
range around.  The IO port assigned to your card could be in conflict with 
something else.  Try the following patch, which reverts to the old range.

It would be really nice if the pci bus code could just do these assignments 
automagically...

Index: pccbb.c
===
RCS file: /export/ncvs/src/sys/dev/pccbb/pccbb.c,v
retrieving revision 1.24
diff -u -r1.24 pccbb.c
--- pccbb.c 2001/08/27 11:23:05 1.24
+++ pccbb.c 2001/09/05 15:44:45
@@ -1243,8 +1243,8 @@
start = end = tmp;
break;
case SYS_RES_IOPORT:
-   if (start <= 0x1000)
-   start = 0x1000;
+   if (start <= 0x3000)
+   start = 0x3000;
if (end < start)
end = start;
break;

-Jon

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: 3CXFE575CT-JP with NEWCARD doesn't work

2001-09-04 Thread Mark Santcroos

Hi Warner,

On Mon, Sep 03, 2001 at 10:24:31AM -0600, Warner Losh wrote:
> Looks like the mass commit broke stuff :-(

I have a ToPIC100 chipset in my Toshiba Portege 3110CT.

Last 'week' the updates broke my pcmcia support partially.
Booting with a card inserted, inserted during boot or inserted after
booting works fine just as before.
But if I remove my card, I can't get it to work again without rebooting. The
code doesnt seem to notice that I remove it, let alone re-insert it again.

I read the printf saying the the support for this card may be broken, so
it won't surprise you probably.

Note that I tested src/sys/pccard/ from August 20 this morning and
that worked fine.

Please let me know if I can be of any help debugging/coding this.

Mark

-- 
Mark Santcroos  RIPE Network Coordination Centre
http://www.ripe.net/home/mark/  New Projects Group/TTM

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: 3CXFE575CT-JP with NEWCARD doesn't work

2001-09-03 Thread Warner Losh

In message <[EMAIL PROTECTED]> Yoichi NAKAYAMA writes:
: I just cvsup'ed and buildkernel with NEWCARD.
: Then my note book doesn't recognize MAC address of the card(3CXFE575CT-JP)
: following are concerning log for new kernel and old kernel(cvsup'ed 2-3 weeks ago)


Looks like the mass commit broke stuff :-(

Warner

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



3CXFE575CT-JP with NEWCARD doesn't work

2001-09-03 Thread Yoichi NAKAYAMA

I just cvsup'ed and buildkernel with NEWCARD.
Then my note book doesn't recognize MAC address of the card(3CXFE575CT-JP)
following are concerning log for new kernel and old kernel(cvsup'ed 2-3 weeks ago)

Sep  3 20:08:43 yoichi-c1 /boot/kernel/kernel: pccbb0: card inserted: 
event=0x, state=3a20
Sep  3 20:08:43 yoichi-c1 /boot/kernel/kernel: pccbb0: pccbb_power: CARD_VCC_0V and 
CARD_VPP_0V [44]
Sep  3 20:08:43 yoichi-c1 /boot/kernel/kernel: pccbb0: pccbb_power: CARD_VCC_3V and 
CARD_VPP_VCC [11]
Sep  3 20:08:43 yoichi-c1 /boot/kernel/kernel: found->  vendor=0x10b7, dev=0x5257, 
revid=0x10
Sep  3 20:08:43 yoichi-c1 /boot/kernel/kernel: class=02-00-00, hdrtype=0x00, mfdev=0
Sep  3 20:08:43 yoichi-c1 /boot/kernel/kernel: cmdreg=0x, statreg=0x0210, 
cachelnsz=8 (dwords)
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: lattimer=0xa8 (5040 ns), mingnt=0x0a 
(2500 ns), maxlat=0x05 (1250 ns)
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: intpin=a, irq=128
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: TUPLE: LINKTARGET [3]: 43 49 53
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: Manufacturer ID: 01015752
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: TUPLE: CONFIG_CB [6]: 03 01 00 00 00 00
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: TUPLE: CFTABLE_ENTRY_CB [13]: 41 9a 01 
b5 1e 01 b5 1e 02 30 ff ff 01
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: cardbus0: Opening BAR: type=IO, bar=10, 
len=0040
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: Product version: 5.0
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: Product name: 3Com Corporation | 
3CCFE575CT | LAN Cardbus Card | 004 | 
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: Functions: Network Adaptor, Memory
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: CIS reading done
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: cardbus0: Resource not specified in 
CIS: id=14, size=80
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: cardbus0: Resource not specified in 
CIS: id=18, size=80
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: cardbus0: Non-prefetchable memory at 
4400-44ff
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: cardbus0: Non-prefetchable memory 
rid=18 at 4400-447f (80)
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: cardbus0: Non-prefetchable memory 
rid=14 at 4480-44ff (80)
Sep  3 20:08:44 yoichi-c1 /boot/kernel/kernel: cardbus0: IO port at 1040-107f
Sep  3 20:08:45 yoichi-c1 /boot/kernel/kernel: cardbus0: IO port rid=10 at 1040-107f
Sep  3 20:08:45 yoichi-c1 /boot/kernel/kernel: xl0: <3Com 3c575C Fast Etherlink XL> 
port 0x1040-0x107f mem 0x4400-0x447f,0x4480-0x44ff irq 9 at device 0.0 
on cardbus0
Sep  3 20:08:45 yoichi-c1 /boot/kernel/kernel: xl0: Ethernet address: 00:00:00:00:00:00
Sep  3 20:08:45 yoichi-c1 /boot/kernel/kernel: xl0: WARNING: no media options bits set 
in the media options register!!
Sep  3 20:08:45 yoichi-c1 /boot/kernel/kernel: xl0: this could be a manufacturing 
defect in your adapter or system
Sep  3 20:08:45 yoichi-c1 /boot/kernel/kernel: xl0: attempting to guess media type; 
you should probably consult your vendor
Sep  3 20:08:45 yoichi-c1 /boot/kernel/kernel: xl0: unknown device ID: 0 -- defaulting 
to 10baseT
Sep  3 20:08:45 yoichi-c1 /boot/kernel/kernel: xl0: selecting 10baseT transceiver, 
half duplex


---
Sep  3 20:11:27 yoichi-c1 /boot/kernel.old/kernel: pccbb0: card inserted: 
event=0x, state=3a20
Sep  3 20:11:27 yoichi-c1 /boot/kernel.old/kernel: pccbb0: pccbb_power: CARD_VCC_0V 
and CARD_VPP_0V [44]
Sep  3 20:11:27 yoichi-c1 /boot/kernel.old/kernel: pccbb0: pccbb_power: CARD_VCC_3V 
and CARD_VPP_VCC [11]
Sep  3 20:11:27 yoichi-c1 /boot/kernel.old/kernel: TUPLE: LINKTARGET [3]: 43 49 53
Sep  3 20:11:27 yoichi-c1 /boot/kernel.old/kernel: Manufacturer ID: 01015752
Sep  3 20:11:27 yoichi-c1 /boot/kernel.old/kernel: TUPLE: CONFIG_CB [6]: 03 01 00 00 
00 00
Sep  3 20:11:27 yoichi-c1 /boot/kernel.old/kernel: TUPLE: CFTABLE_ENTRY_CB [13]: 41 9a 
01 b5 1e 01 b5 1e 02 30 ff ff 01
Sep  3 20:11:28 yoichi-c1 /boot/kernel.old/kernel: cardbus0: Opening BAR: type=IO, 
bar=10, len=0040
Sep  3 20:11:28 yoichi-c1 /boot/kernel.old/kernel: Product version: 5.0
Sep  3 20:11:28 yoichi-c1 /boot/kernel.old/kernel: Product name: 3Com Corporation | 
3CCFE575CT | LAN Cardbus Card | 004 | 
Sep  3 20:11:28 yoichi-c1 /boot/kernel.old/kernel: Functions: Network Adaptor, Memory
Sep  3 20:11:28 yoichi-c1 /boot/kernel.old/kernel: CIS reading done
Sep  3 20:11:28 yoichi-c1 /boot/kernel.old/kernel: xl0: <3Com 3c575C Fast Etherlink 
XL> port 0x3000-0x307f mem 
0x4402-0x4403,0x44001080-0x440010ff,0x44001000-0x4400107f irq 9 at device 0.0 
on cardbus0
Sep  3 20:11:28 yoichi-c1 /boot/kernel.old/kernel: xl0: chip is in D6 power mode -- 
setting to D0
Sep  3 20:11:28 yoichi-c1 /boot/kernel.old/kernel: xl0: Ethernet address: 
00:00:86:62:77:4a

To Unsubscribe: send mail to [EMAIL PROTECTED