Re: Does floppies work with 384MByte RAM ?

2000-11-16 Thread Frank Nobis

On Wed, Nov 15, 2000 at 10:38:29PM -0500, Louis A. Mamakos wrote:
 
 I've got a Dell dual-Pentium-III XEON system at work that I was running
 -current on.  Some time ago (didn't notice when exactly, sigh) when
 building new kernels, I started getting 
 
 isa_dmainit(foo, bar) failed
 
For me it is a ASUS P2B-DS with 512M RAM.

I see the same isa_dmainit failed with full ram utilized. With MAXMEM
set to MAXMEM="(464*1024)" it is working under current. With 480M it
is failing.

I looked through the sources and found that contigousmalloc can't find
a page of physical ram under the 16M margin. But I am not vm wizzard
enough, to understand what the difference is with MAXMEM set to some
lower value than the real amount of memory.

Regards,
Frank
-- 
~/.signature not found: wellknown error 42


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



Re: Strange dma_init error on current with awe64 and floppy

2000-11-10 Thread Frank Nobis


On Wed, Nov 08, 2000 at 01:43:12AM +0100, Frank Nobis wrote:
 Hi,
 
 please have a look at the following dmesg output.
 
 I'm sure I must have overseen something trivial, but currently I can't
 figure out what it is.
 
I it not the size of the kernel itself. It depends on how many RAM I
give to the system.

the next dmesg output is the same kernel but with MAXMEM set to
448*1024

Now the isa_dmainit goes through. The problem seems to be somewhere in
the vm. isa_dmainit calls contigmalloc, which scans for a 4k page in
the lower 16M memory range, but can't find any.

The break is somewhere between 448 and 480 M. The physical memory
is 512M.

Copyright (c) 1992-2000 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 #2: Thu Nov  9 23:57:52 CET 2000
[EMAIL PROTECTED]:/usr/src/sys/compile/G5SMP
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (551.25-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x673  Stepping = 3

Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real memory  = 469762048 (458752K bytes)
avail memory = 453451776 (442824K bytes9
[...]
sbc0: Creative SB AWE64 at port 0x220-0x22f,0x330-0x331,0x388-0x38b
irq 5 drq 1,5 on isa0
pcm0: SB16 DSP 4.16 on sbc0
[...]
fdc0: NEC 72065B or clone at port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on
isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5" drive on fdc0 drive 0

 
 Copyright (c) 1992-2000 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 #0: Wed Nov  8 00:10:53 CET 2000
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/G5SMP
 Timecounter "i8254"  frequency 1193182 Hz
 CPU: Pentium III/Pentium III Xeon/Celeron (551.25-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
   
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
 real memory  = 536858624 (524276K bytes)
 avail memory = 518561792 (506408K bytes)
 [...]
 sbc0: Creative SB AWE64 at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 
on isa0
 pcm0: SB16 DSP 4.16 on sbc0
 isa_dmainit(1, 4096) failed
 isa_dmainit(5, 4096) failed
 pcm0: chn_init() for (record:0) failed
 pcm0: chn_init() for (play:0) failed
 fdc0: NEC 72065B or clone at port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on isa0
 isa_dmainit(2, 1024) failed
 fdc0: FIFO enabled, 8 bytes threshold
 fd0: 1440-KB 3.5" drive on fdc0 drive 0

Frank

-- 
~/.signature not found: wellknown error 42


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



Re: Strange dma_init error on current with awe64 and floppy

2000-11-08 Thread Frank Nobis

On Wed, Nov 08, 2000 at 03:11:46AM +0100, [EMAIL PROTECTED] wrote:
 
  I'm sure I must have overseen something trivial, but currently I can't
  figure out what it is.
 
 The lower 16 MB memory has been used for
 
   kernel text, data, bss
   arrays allocated by vm_page_startup()
   memory allocated via malloc() with M_ZERO

I don't think that is the problem. I tried an older PRENGSMP kernel
nearly the same config like the actual one. Same means a bit larger,
more devices.

Know I build a GENERIC kernel striped down to the devices I thibk I
need in kernel. Other devices like the bktr and the pcm are loaded as
module.

The config file is here http://www.radio-do.de/~fn/G5SMP
The dmesg is http://www.radio-do.de/~fn/dmesg.txt

Here the out from top right after boot into single user mode and after
going multi user.

In sum the used mem is 11460K. There should be space for the dma
buffer needed for sound card and fdc.

Is there other memory in use that top doesn't show ? Because the
physical memory is 512M.

last pid:41;  load averages:  0.05,  0.03,  0.01  up 0+00:02:0909:31:41
2 processes:   1 running, 1 sleeping

Mem: 704K Active, 1776K Inact, 7716K Wired, 1264K Buf, 490M Free
Swap: 


  PID USERNAME PRI NICE  SIZERES STATE  C   TIME   WCPUCPU COMMAND
   41 root  46   0  1900K  1076K CPU1   0   0:00  0.00%  0.00% top
6 root  10   0   716K   368K wait   0   0:00  0.00%  0.00% sh

last pid:   425;  load averages:  0.48,  0.12,  0.04  up 0+00:02:3509:32:07
66 processes:  5 running, 44 sleeping, 17 waiting

Mem: 43M Active, 9580K Inact, 14M Wired, 80K Cache, 12M Buf, 434M Free
Swap: 550M Total, 550M Free


  PID USERNAME PRI NICE  SIZERES STATE  C   TIME   WCPUCPU COMMAND
   10 root -22   0 0K 0K RUN1   1:35 49.81% 49.71% idle: cpu1
   11 root -22   0 0K 0K RUN0   1:35 49.37% 49.27% idle: cpu0
  337 nobody84  16 14636K 13824K CPU1   0   0:13 90.23% 45.46% setiathome
  334 nobody83  16 15148K 14336K RUN0   0:13 89.94% 45.31% setiathome
  358 root  10   0  1128K  1012K wait   0   0:00  2.86%  1.37% bash
  210 root   2   0  2116K  1392K select 1   0:00  0.41%  0.24% sshd
  425 root  49   0  1944K  1152K CPU0   0   0:00  0.00%  0.00% top

some ideas how to track this further ?

Regards,
Frank
-- 
~/.signature not found: wellknown error 42


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



Strange dma_init error on current with awe64 and floppy

2000-11-07 Thread Frank Nobis

Hi,

please have a look at the following dmesg output.

I'm sure I must have overseen something trivial, but currently I can't
figure out what it is.


Copyright (c) 1992-2000 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 #0: Wed Nov  8 00:10:53 CET 2000
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/G5SMP
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (551.25-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
  
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real memory  = 536858624 (524276K bytes)
avail memory = 518561792 (506408K bytes)
Preloaded elf kernel "kernel" at 0xc03fb000.
Preloaded elf module "vn.ko" at 0xc03fb09c.
Preloaded elf module "linux.ko" at 0xc03fb138.
Preloaded elf module "bktr.ko" at 0xc03fb1d8.
Preloaded elf module "bktr_mem.ko" at 0xc03fb274.
Preloaded elf module "snd_pcm.ko" at 0xc03fb314.
Preloaded elf module "snd_sbc.ko" at 0xc03fb3b4.
Preloaded elf module "snd_sb16.ko" at 0xc03fb454.
sbc0: Creative SB AWE64 at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on 
isa0
pcm0: SB16 DSP 4.16 on sbc0
isa_dmainit(1, 4096) failed
isa_dmainit(5, 4096) failed
pcm0: chn_init() for (record:0) failed
pcm0: chn_init() for (play:0) failed
fdc0: NEC 72065B or clone at port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on isa0
isa_dmainit(2, 1024) failed
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5" drive on fdc0 drive 0

Regards,
Frank
-- 
~/.signature not found: wellknown error 42


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



if_rl.c broken ? Realtek 8139 not longer recognised.

2000-11-01 Thread Frank Nobis

Hi,

I have a realtek ethernet card. The normal dmesg is this:

rl0: RealTek 8139 10/100BaseTX port 0xb400-0xb4ff mem 0xd900-0xd9ff irq 10 
at device 11.0 on pci0
rl0: Ethernet address: 00:e0:7d:7d:cd:35
miibus0: MII bus on rl0
rlphy0: RealTek internal media interface on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

With the change to 8bit wide eeprom reads instead of the 6bit wide reads, the message
is now:

rl0: RealTek 8139 10/100BaseTX port 0xb400-0xb4ff mem 0xd900-0xd9ff irq 10 
at device 11.0 on pci0
rl0: Ethernet address: 00:e0:7d:7d:cd:35
rl0: unknown device ID: 4a7

I changed if_rl.c to confirm that it really is the 6/8 bit change:

=== trinity(17)/usr/src/sys/pci # cvs diff if_rl.c 
Index: if_rl.c
===
RCS file: /export5/full.src/src/sys/pci/if_rl.c,v
retrieving revision 1.49
diff -c -r1.49 if_rl.c
*** if_rl.c 2000/10/30 07:54:38 1.49
--- if_rl.c 2000/11/01 19:39:02
***
*** 896,903 
--- 896,905 
rl_reset(sc);
sc-rl_eecmd_read = RL_EECMD_READ_6BIT;
rl_read_eeprom(sc, (caddr_t)rl_did, 0, 1, 0);
+ #ifdef notyet
if (rl_did != 8129)
sc-rl_eecmd_read = RL_EECMD_READ_8BIT;
+ #endif
  

This is not meant as a patch, just a trick for me to confirm it was the 6/8 bit change.

The change occured from 1.48 to 1.49 of if_rl.c

Regards,
Frank

-- 
~/.signature not found: wellknown error 42


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



Re: Dangerously looking glitch (4.0-STABLE)

2000-04-05 Thread Frank Nobis

On Wed, Apr 05, 2000 at 07:13:29AM -0500, Jon Hamilton wrote:
 
 up clean.  I think you have a hardware problem somewhere :(

That is very likely a hardwre problem. I have a nfs server under 3.4-S
here running, It was easy to crash the system with much I/O over nfs
on a 100M Ethernet connection. (I did a dump and the machine paniced)

The same over a slower 10M ethernet, but it took longer to crash.

Now I replaced a very old adaptec 1542cf with a 2940U. I did the same
stress test, but got no more panics. Even a load of 80% interrupts
didn't kill the machine.

Maybe you have a similar problem.

-- 
~/.signature not found: wellknown error 42


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



Re: Additional option to ls -l for large files

2000-01-11 Thread Frank Nobis

On Wed, Jan 12, 2000 at 11:04:56AM +1300, Joerg Micheel wrote:
 [ls whith sizes in k,M]
 
 Would such a patch find the blessing of the team and the maintainer
 of ls ?

You could try gnuls -h 

-fn-

-- 
~/.signature not found: wellknown error 42


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



Re: Vibra 16 doesn't recognised anymore

1999-12-12 Thread Frank Nobis

On Sat, Dec 11, 1999 at 11:31:39AM +0200, Maxim Sobolev wrote:
 Some time ago my soundcard (Vibra 16C), which worked just fine
 previously, stopped being recognised/attached. Following is relevant
 pieces of dmesg and pnpinfo: 
 
 [...]
 isa_probe_children: probing PnP devices
 unknown0: Creative ViBRA16C PnP at port
 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0
 unknown1: Game at port 0x200-0x207 on isa0
 

Looks like the same problem I had here. Try this path:


*** sbc.c.orig  Mon Dec  6 19:26:31 1999
--- sbc.c   Thu Dec  9 11:37:22 1999
***
*** 107,113 
  
/* Check pnp ids */
error = ISA_PNP_PROBE(device_get_parent(dev), dev, sbc_ids);
!   if (error)
return error;
else
return -100;
--- 107,113 
  
/* Check pnp ids */
error = ISA_PNP_PROBE(device_get_parent(dev), dev, sbc_ids);
!   if (error = 0)
return error;
else
return -100;



Regards,
Frank
-- 
~/.signature not found: wellknown error 42


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



Re: AWE64 problems

1999-12-09 Thread Frank Nobis

On Thu, Dec 09, 1999 at 12:25:33PM +0900, Seigo Tanimura wrote:
 [snipped some part]
On Tue, 7 Dec 1999 23:00:02 +0100 (MET),
  Thomas Schuerger [EMAIL PROTECTED] said:

 --- sbc.c.orig  Mon Dec  6 19:26:31 1999
 +++ sbc.c   Tue Dec  7 22:15:25 1999
 @@ -110,7 +110,7 @@
 if (error)
 return error;
 else
 -   return -100;
 +   return -1;
 }
 
 static int
 
 On Wed, 8 Dec 1999 08:54:15 -0500,
   "Charles Anderson" [EMAIL PROTECTED] said:
 
 Charles So then what is -1 and why does it work when -100 doesn't? (I tried it)
 
 
 sys/kern/subr_bus.c:device_probe_child() receives the value returned
 by DEVICE_PROBE(child dev). If the value is zero, no further probes
 occur. The device then gets attached in sys/kern/subr_bus.c:
 device_probe_and_attach().
 
Ahh, now it makes sense to me.

In case of an unknown device, error = ISA_PNP_PROBE(...) set error to
a value larger than 0. In case of a successfull match error is set to
0.

IMHO the correct probe should be:

sbc_probe(device_t dev)
{
int error;

/* Check pnp ids */
error = ISA_PNP_PROBE(device_get_parent(dev), dev, sbc_ids);
if (error = 0)
return error;
else
return -100;
} 

Is it possible that error gets a value below 0 ? In that case the
probe should arrange for this case.

Any comments ?

Frank
-- 
~/.signature not found: wellknown error 42


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



Re: AWE64 problems

1999-12-07 Thread Frank Nobis

On Tue, Dec 07, 1999 at 06:43:55PM +0100, Thomas Schuerger wrote:
 Hi!
 
 I am still having problems getting my AWE64 soundcard to
 work with the newpcm driver (the "old" pcm driver worked
 fine).
 
 Any ideas what I am doing wrong? Are there more people
 having problems with their AWE64?
 
 Any help is appreciated!

I had the same problem with my AWE64. An older kernel
@(#)FreeBSD 4.0-CURRENT #1: Sun Nov 28 18:54:55 CET 1999 
was working correct with "device pcm" and "device sbc"

I dived into the source and put some printf's. I noticed that the
sbc_attach never got called. This is my patch. Now it is working again,
but I don't have a clue if I did it the right way.


--- sbc.c.orig  Mon Dec  6 19:26:31 1999
+++ sbc.c   Tue Dec  7 22:15:25 1999
@@ -110,7 +110,7 @@
if (error)
return error;
else
-   return -100;
+   return -1;
 }
 
 static int

Frank

-- 
~/.signature not found: wellknown error 42


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



Break of today current and patch

1999-07-07 Thread Frank Nobis

Hello,

todays current breaks in build of libgcc

=== gnu/lib/libgcc
c++ -O2 -mpentium -fpcc-struct-return -ffast-math -fno-strength-reduce -malign-jumps=4 
-malign-loops=4 -malign-functions=4 
-I/usr/src/gnu/lib/libgcc/../../../contrib/egcs/gcc/cp/inc -nostdinc++ -c 
/usr/src/gnu/lib/libgcc/../../../contrib/egcs/gcc/cp/exception.cc -o exception.o
/usr/src/gnu/lib/libgcc/../../../contrib/egcs/gcc/cp/exception.cc:33: eh-common.h: No 
such file or directory



*** gnu/lib/libgcc/Makefile.origWed Jul  7 22:07:37 1999
--- gnu/lib/libgcc/Makefile Wed Jul  7 22:07:48 1999
***
*** 59,65 
  CFLAGS+=  -I${GCCDIR}/config -I${GCCDIR} -I.
  CFLAGS+=  -fexceptions
  CFLAGS+=  -DIN_GCC
! CXXFLAGS+=-I${GCCDIR}/cp/inc
  CXXFLAGS+=-nostdinc++
  
  COMMONHDRS=   config.h tconfig.h tm.h
--- 59,65 
  CFLAGS+=  -I${GCCDIR}/config -I${GCCDIR} -I.
  CFLAGS+=  -fexceptions
  CFLAGS+=  -DIN_GCC
! CXXFLAGS+=-I${GCCDIR}/cp/inc -I${GCCDIR}
  CXXFLAGS+=-nostdinc++
  
  COMMONHDRS=   config.h tconfig.h tm.h

-- 
 Frank NobisEmail: PGP AVAILABLE
 Landgrafenstr. 130 dg3dcn   http://www.radio-do.de/~fn/
 44139 Dortmund Powered by SMP FreeBSD



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