Re: panic: zone: entry in free

1999-07-14 Thread Luoqi Chen
I've been getting this panic when I've installed new kernels the last couple of times. The panic is occuring when I have freshly booted the system with a new kernel and logged on for the first time. It appears to occur at the point at which I start fetchmail in my profile, FWIW. Get rid

Re: Panic with NFSv3 on a CURRENT/SMP system

1999-08-21 Thread Luoqi Chen
I'm generating a core dump. Please note that as tara is my test machine, I use "INVARIANT" "INVARIANT_SUPPORT". Should I remove them ? It seems that from my reading of the code, the panic would not had happened without INVARIANT. It is these options that caused the panic, you either

Re: make -j 4 buildworld race problem

1999-08-31 Thread Luoqi Chen
Bruce Evans wrote: "make buildworld" completes without a problem. "make -j 4 buildworld" gives: libncurses now has lots of internal utilities. Apparently the dependencies for them are incomplete. The utilities are are also built at the wrong time and break cross compiling. See

Re: Problems with the latest changes to ifconfig (I guess) - Bad guess...

1999-08-31 Thread Luoqi Chen
Ian Whalley [EMAIL PROTECTED] wrote: My card is identified as 3Com 3c905B-TX Fast Etherlink XL. FWIW, I'm running a kernel about 30 hours old with a 3Com 3c905-TX Fast Etherlink XL and I'm not seeing this problem. At a quick quess, something in the miibus support broke the 3C905B

new ncurses lib changed tgetstr() API

1999-09-01 Thread Luoqi Chen
After the import of ncurses 5.0 (beta?), I noticed strange behavior of clear on my xterm. I tracked it down to an API change of tgetstr(), here is the new code: char *tgetstr(NCURSES_CONST char *id, char **area GCC_UNUSED) { int i; T((T_CALLED("tgetstr(%s,%p)"), id,

Re: Problems with the sound card.

1999-09-02 Thread Luoqi Chen
Could you send the output of dmesg. It could be that your BIOS has rearranged the irq settings and has put another card on that IRQ. Is the sound card PNP? If not, could you check that the card's IRQ is marked as legacy in the BIOS? Nick My sound card used to work, and with a backup

Re: Problems with the sound card.

1999-09-02 Thread Luoqi Chen
I too have problems with my on board CS4236 sound chip and it is of a very strange nature: in the new isa pnp code, function isa_assign_resources() mysteriously overwrites the isa_device structure and sets logical_id to 0, and as a result subsequent probe would not recognize it any more.

Re: Problems with the sound card.

1999-09-02 Thread Luoqi Chen
That's exactly what I have. This is just so weird. I am now reading the debug register chapter of intel's manual, it is virtually impossible to pinpoint the location by single-stepping through the code... The debug register trick worked, and the discovery was quite unexpected: because the

start xdm on a particular vty

1999-09-03 Thread Luoqi Chen
There have been discussions about the xdm entry /etc/ttys does not guarantee the X server being started on the particular vty. So I wrote a shell script to explicitly tell xdm to start X server on a specific vty. It's been working great. I'd like to share it with you, maybe we could include it in

Re: start xdm on a particular vty

1999-09-03 Thread Luoqi Chen
There have been discussions about the xdm entry /etc/ttys does not guarantee the X server being started on the particular vty. So I wrote a shell script to explicitly tell xdm to start X server on a specific vty. I *like* it. I think you should share it with the XFree86 folks, and I

Re: Testers please!

1999-09-21 Thread Luoqi Chen
If you have a PIIX4 based SMP system and run current, could you please try out this patch: http://phk.freebsd.dk/piix/ I'm very interested in hearing if there are any measurable difference apart from clock granularity being 3 times better. -- Poul-Henning Kamp

Re: Testers please!

1999-09-22 Thread Luoqi Chen
TSC is initialized to 0 at hardware reset, which should happen to all CPUs at the same time (invalid assumption?), in another words, all TSCs should be automatically synchronized. They are not. The PLL is local to each cpu and every single clock-stop/start event has then inching away from

Re: rtc?

1999-09-24 Thread Luoqi Chen
Kenneth Culver writes: I reinstalled -current today, and for some reason there is an extra device generating interrupts. When I do a systat -vm 1 I find that there is a device called rtc at irq8 generating 128 interrupts. What is it? I didn't configure it, and it wasn't there before. It

Re: CVSup segfaults identified/solved [PATCH]

1999-10-05 Thread Luoqi Chen
Hi, It seems that the trampoline code got too long and resulted in the coredumps people reported. The following patch solves that. it basicly works as follows: o Simplify the trampoline code so that it doesn't have to distinguish between an old- and new sigframe and also restoring

Re: CVSup segfaults identified/solved [PATCH]

1999-10-05 Thread Luoqi Chen
Luoqi Chen wrote: o restoring %gs is now handled in the proper sigreturn. Restoration of %gs should not be in the kernel because it comes from user application and maybe invalid, if you restore it inside the kernel it could be fatal to the whole system, and on the other hand just

aic driver camified

1999-10-18 Thread Luoqi Chen
After the recent signal related changes, the pre-cam kernel I saved a long time ago no longer works with (even statically compiled) user applications, which meant I had no way to access my files on an old disk hanging off an aic6360 card. So I decided to bite the bullet and camify the aic driver

Re: luoqi's aic driver problem

1999-10-19 Thread Luoqi Chen
i've tried new "camfied" aic driver today and failed. here is a brief report. my configuration: Chaintech 6BTM mainboard with Celeron 416A processor and 128 Mb of memory Adaptec AIC-6360 SCSI controller (port 0x340 irq 9), irq 9 is reserved for Legacy/ISA card in bios setup Pinnacle

Re: aic driver camified

1999-10-19 Thread Luoqi Chen
On Mon, 18 Oct 1999, Chris Dillon wrote: Should this apply cleanly to -stable? If so, I'll give it a shot when I get home. I'll answer my own question (which, oddly enough, still hasn't made it to the list after about two hours). I forgot about newbus. It doesn't work, of course,

Re: luoqi's aic driver problem

1999-10-20 Thread Luoqi Chen
cd0 at aic0 bus 0 target 0 lun 0 cd0: PINNACLE RCD-1000 2.35 Removable Worm SCSI-2 device cd0: 3.300MB/s transfers cd0: cd present [1 x 77747 byte records] ^ These numbers don't look right... but, unfortunately, scsi probe precedure seems to be relatively

Re: aic driver camified

1999-10-20 Thread Luoqi Chen
I also tried to experiment with the aic driver (and also failed, little similar to Ilya's problems) Could you download the new set of files and see if it helps? as devices. What puzzles me is why the probe at the aic0 wants to look at bus 0. Shouldn't that be bus 1? Or should I add a

Re: aic driver camified

1999-10-20 Thread Luoqi Chen
Luoqi Chen wrote: I've ported it to -stable, but I don't have a machine to test it, please if you could. The code is in http://www.freebsd.org/~luoqi/aic/stable, apply patch files.diff, copy aic_isa.c to i386/isa, the rest goes to dev/aic. I cannot compile a kernel. It reports

Re: aic driver camified

1999-10-21 Thread Luoqi Chen
Luoqi Chen wrote: I compiled a kernel for -stable, but was unable to boot from it. Does anyone know if there is any incompatibility between the -current boot loader and a -stable kernel? AFAIK, there is no difference between them (the loaders :). Try from boot2

Re: CMAP2 busy ?

1999-10-28 Thread Luoqi Chen
Hi. I've been experiencing problems with my machine crashing when in X, when idle overnight. Normally it panics with XF86_S3. Today however the machine returned something a little different, which I haven't seen before. I hope this helps someone. The machine worlds with no problems,

Re: boot problems with todays kernel

1999-01-02 Thread Luoqi Chen
Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor write, page not present instruction pointer = 0x8:0xc0680c04 stack pointer = 0x10:0xc03d3f08 frame pointer = 0x10:0x2a94 code segment= base

Re: Wine under -current. patches.. comments?

1999-11-14 Thread Luoqi Chen
The latest port of wine references PR 14652 for patches to make -current work. some of these ptches are however in areas I don't understand. In particular signals, register contexts, etc. This refers to validity of segment registers fs/gs in sigcontext. Under -stable both of them are unused

init runs with console as control terminal?

1999-11-17 Thread Luoqi Chen
Since sometime last month, rc5des failed to start from my rc.local. I did a little investigation and it turned out that rc5des was started but later terminated by a SIGHUP. During its brief lifetime, /dev/console was its control terminal. Does anyone know what was going on? -lq To Unsubscribe:

Re: init runs with console as control terminal?

1999-01-16 Thread Luoqi Chen
/etc/rc's shell is a controlling process with control terminal /etc/console, so /dev/console is supposed to be revoked when /etc/rc's shell exits. Control terminal is for job control, and we don't need job control during /etc/rc's execution, so why don't we change init not to acquire a

arplookup 127.0.0.1 failed: could not allocate llinfo

1999-01-16 Thread Luoqi Chen
With the latest current, whenever I start amd, I would see a lot of log messages repeating: arplookup 127.0.0.1 failed: could not allocate llinfo arpresolve: can't allocate llinfo for 127.0.0.1rt If I ifconfig my ether interface down, as expected, the messages would stop. It's

RE: arplookup 127.0.0.1 failed: could not allocate llinfo

1999-01-17 Thread Luoqi Chen
Well, I REALLY should search mailing lists before sending useless messages... There is PR conf/14913 which describes what is going wrong. Will somebody commit the fix? I was REALLY surprised that people are so ready to accept this as a configuration bug. By all means, it is NOT, it is

Re: init runs with console as control terminal?

1999-01-17 Thread Luoqi Chen
Bug the authors to fix it? daemon(3) is provided for a reason! Here's my version of a simple daemonizing program Neither TIOCNOTTY nor setpgid() is sufficient to detach from a terminal session in a POSIX environment; setsid() is required. daemon(3) does a nice job of encapsulating

RE: arplookup 127.0.0.1 failed: could not allocate llinfo

1999-01-17 Thread Luoqi Chen
There is no need to fix kernel if the same result could be achieved by simple rc.network file modification. Yes, solution proposed in conf/14913 is not complete and only works in network_interfaces="auto" case, but the modification to make it work in 100% cases is pretty trivial. I finally

RE: SIS 962 chipset, problems ...

2002-12-23 Thread Luoqi Chen
Hi, Dec 23 15:17:03 kernel: sis0: Ethernet address: ff:ff:ff:ff:ff:ff Dec 23 15:17:03 kernel: sis0: MII without any PHY! Dec 23 15:17:03 kernel: device_probe_and_attach: sis0 attach returned 6 Dec 23 15:17:03 kernel: sis0: SiS 900 10/100BaseTX port 0x2000-0x20ff mem

RE: SIS 962 chipset, problems ...

2003-01-03 Thread Luoqi Chen
Good year everybody Luigi, I converted your patch to CURRENT, there were only minor changes to do and it seems to work ! sis0: SiS 900 10/100BaseTX port 0x2000-0x20ff mem 0xec005000-0xec005fff irq 1$ at device 4.0 on pci0 sis0: Ethernet address: 00:00:e2:94:66:99 miibus0: MII bus on

Re: tunefs -p doesn't work for read-write mounts

2000-03-03 Thread Luoqi Chen
Hi folks, Shouldn't I be able to show the current tuneables for a given filesystem? # tunefs -p /usr tunefs: cannot work on read-write mounted file system This is on a recent CURRENT. Ciao, Sheldon. You were supposed to use a raw device for a mounted fs, but that no longer works

VMware detection code in boot loader

2000-06-09 Thread Luoqi Chen
Would anyone object if I add a ficl word to detect whether we're booting from a vmware virtual machine? I find it extremely useful when I'm running FreeBSD as a guest under NT. Because it is a dual cpu box, I can't use a single kernel to boot both directly or inside the virtual machine. With this

Re: VMware detection code in boot loader

2000-06-10 Thread Luoqi Chen
We have inb and outb. Can't vmware be written in Forth? If inl cannot be replaced with inb, I'd rather add inl than vmware. But we can't set registers to specific values before inb/outb, which also means our inb/outb are quite useless in making BIOS calls. IMHO, it would be better to add

Re: VMware detection code in boot loader

2000-06-10 Thread Luoqi Chen
As for setting registers ti specific values... huh? Why does this matter? Can you explain exactly what your code does and how? VMware intercepts the inb/outb instruction to port 0x5658 when the eax register is set to a magic value, otherwise it would be handled as any other ports. -lq To

Re: Weird 4.0-STABLE problem, might be related to 5.0 as well

2000-06-13 Thread Luoqi Chen
This is the third time this happened to a 4.0-STABLE host of ours. The problem starts with havnig a number of processes which are unable to be killed. So we want to reboot the box. All goes well, bufdaemon and syncer stop normally. Then it gets to syncing disks done. And there

Re: VMware detection code in boot loader

2000-06-13 Thread Luoqi Chen
Given the way VMware works, I'd have nothing against making it a FICL words, except... ...VMware is a port. For some reason, I dislike the idea of having support targetted at exclusively one specific port. Though we have features added specifically to deal with certain ports, they were all

Re: VMware detection code in boot loader

2000-06-13 Thread Luoqi Chen
a larger issue. It is not the loader's job to detect the underlying hardware configuration. Actually, in a broad fashion, it _is_. This is why the loader understands PCI and PnP, for example. Why do we want to do that? Are we going to offload device probe routines to the loader? I

Re: HEADSUP: bioops patch.

2000-06-16 Thread Luoqi Chen
Background: The bioops operation vector is a list of OO-like operations which can be performed on struct buf. They are used by the softupdates code to handle dependencies. Ideally struct buf should have had a real OO like operations vector like vnodes have it, and struct bioops is the

Re: HEADSUP: bioops patch.

2000-06-18 Thread Luoqi Chen
Background: Ideally struct buf should have had a real OO like operations vector like vnodes have it, and struct bioops is the first step towards that. struct buf will eventually become merely an iocmd structure, so why do we want to complicate things here? No, struct buf will

Re: VMware detection code in boot loader

2000-06-18 Thread Luoqi Chen
In [EMAIL PROTECTED], Luoqi Chen wrote: It is not the loader's job to detect the underlying hardware configuration. I disagree. I would like to tell which machine I am booting on to choose an appropriate kernel. Eventually (it may take a while) we should be able to boot any i386

RE: ATA MODE_SENSE_BIG timeout

2003-03-04 Thread Luoqi Chen
For those want to fix ATA code, I have another problem with CURRENT. I have a Tyan Tiger 230T which is based on VIA Apollo 133T, south bridge is VIA 686B. On second IDE, I have a Mitsubishi 52X cdrom as master, and a Sony 16X CD R/W as slave, when startup, kernel is always stuck at

page fault at write-only mmapped address

2000-07-26 Thread Luoqi Chen
Because there is no write-only hardware page protection on ia32, a write-only page fault is handled just like a read/write one. But the mi vm layer distinguishes between the write-only and the read/write protections, so if the fault takes place in a write-only region, the vm layer would think

Re: panic at shutdown

2000-08-01 Thread Luoqi Chen
#7 0xc017a726 in vput (vp=0xc8710840) at vnode_if.h:794 #8 0xc01aee87 in ffs_sync (mp=0xc0ade800, waitfor=2, cred=0xc0721700, p=0xc026d5e0) at ../../ufs/ffs/ffs_vfsops.c:955 Change the vput(vp) call at line 955 of ffs_vfsops.c back to two separate calls (see previous revision):

Re: mount(2) broken?

1999-12-06 Thread Luoqi Chen
I've seen this exact same thing before too. In fact it was two rather annoying things, one being a single solitary last buffer that wouldn't sync and thus left the whole fs marked dirty, and then fsck would check it, see it was fine, but mount wouldn't recognize that it was clean. 'Course

Re: mount(2) broken?

1999-12-07 Thread Luoqi Chen
I'd like to add something about the last buffer wouldn't sync. This occurs when a shutdown syscall is issued when the syncer process is asleep waiting for a buffer write to complete. The write will never complete, because the syncer won't be given a chance to run again, and the buffer will

Re: HEADSUP: wd driver will be retired!

1999-12-10 Thread Luoqi Chen
This discussion is not going anywhere. Why can't everyone calm down and find a comprise? Here's my proposal: 1. leave the the code and config option in the source tree for now 2. remove all traces of wd in documentation/GENERIC/LINT/MAKEDEV that is, anyone who wants to use the wd driver still

Re: __sigisempty() undefined if cc -g used.

2000-01-07 Thread Luoqi Chen
In an effort to chase down a libc_r bug, I compiled libc_r with CFLAGS=-g (and later CFLAGS=-g3), but ran into linker problems as a result. blitz:~ gcc poll.c -pthread /usr/lib/libc_r.so: undefined reference to `__sigisempty' Even the simplest of C programs will get this linker error if

Re: Dell 2400 and APIC problem

2000-02-01 Thread Luoqi Chen
I have tried doing this on -current but it doesnt make any difference. I have also removed every non-essential item out of the kernel. I am using boot -dv with "options DIAGNOSTIC" in the kernel and it doesnt tell me what the PnP probe is hanging on. Any other suggestions? I don't think

Re: repost of procfs crashes in -CURRENT (no html)..

2000-02-18 Thread Luoqi Chen
Kernel: === FreeBSD karma.afterthought.org 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Mon Feb 14 23:00:42 GMT 2000 [EMAIL PROTECTED]:/usr/src/sys/compile/KARMA i386 Background: 3 users. One with X running me, and two users running breakwidgets binary testing script, which

Re: indirection in bus space

2000-01-24 Thread Luoqi Chen
Do you have any comment anout the patch? If there isn't any big problem, I hope to commit it to current. Thank you. I wrote: Do you remember this topic? I have revised the indirection support patch. What I have changed are: - to make diff files more readable - introduce

Re: indirection in bus space

2000-01-24 Thread Luoqi Chen
Why have two files bus_at386.h and bus_pc98.h? I386_BUS_PIO_IND should be able to live with I386_BUS_PIO and I386_BUS_MEMIO happily together. Because they are different in the type of bus_space_tag_t from each other. It is the u_long in PC/AT and the structure in PC-98. For example,

Re: indirection in bus space

2000-01-24 Thread Luoqi Chen
I think it is difficult to implement such conversion because: - Not only bus space stuff also resource manager stuff need to perform such conversion. Why? Both bus_space_handle_t and bus_space_tag_t are supposed to be opaque types. Resource manager needs not know the implementation

Re: trap in ufs_lookup

1999-01-15 Thread Luoqi Chen
I'm pretty sure this is not softupdates related. It could either be bad RAM or a bad disk block, there is no way entryoffsetinblock could be 21209, the block size is only 8192. And you need over 2000 files to fill the directory to i_offset == 37593, assuming an average file name length of 10

Re: NFS problem found - pleaes try this patch.

1999-01-18 Thread Luoqi Chen
The check is correct and should be there, the B_CACHE bit was cleared because I made a mistake when setting the valid bit in the vm page. Index: vfs_bio.c === RCS file: /home/ncvs/src/sys/kern/vfs_bio.c,v retrieving revision 1.192

Re: src/secure breaks world

1999-01-21 Thread Luoqi Chen
On Thu, Jan 21, 1999 at 12:26:04PM -0800, Steve Kargl wrote: cd /usr/src/secure/lib/libcrypt; /usr/obj/usr/src/tmp/usr/bin/make -DNOINFO -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED cleandepend; /usr/obj/usr/src/tmp/usr/bin/make -DNOINFO -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED all;

Trouble executing from NFS with latest 4.0-current

1999-01-21 Thread Luoqi Chen
Execute anything from NFS would result in an Input/output error, but if I do a hexdump of the executable first, the execution would be successful. If I reverse the order, i.e., execute first then hexdump, execution would fail and hexdump would hang at pgtblk. No problem with FFS. -lq To

Re: Trouble executing from NFS with latest 4.0-current

1999-01-21 Thread Luoqi Chen
:Execute anything from NFS would result in an Input/output error, but if I do :a hexdump of the executable first, the execution would be successful. If I :reverse the order, i.e., execute first then hexdump, execution would fail and :hexdump would hang at pgtblk. No problem with FFS. :

Re: world broken

1999-01-22 Thread Luoqi Chen
having spent almost an hour trying to decode the complexities of the crypt making process I admit defeat.. can SOMEBODY please fix the build in -current and sent branson a nice pointy hat.. I think he committed and went on vacation (I haven't seen any commits that say they fixed this but

Re: world broken

1999-01-22 Thread Luoqi Chen
Luoqi Chen wrote: I spend half night yesterday to sort this mess out. If no one objects, I'll commit my fixes. (anyone volunteers to make the hat?) I know who gets the hat; please cool it on the fixes until the original committer has finished. I'm watching this one closely, and I need

Re: Problems in VM structure ?

1999-02-15 Thread Luoqi Chen
Hi. I saw that my 4-CURRENT box from 8 February dropped to ddb after my last make world. I rebuilt world today, and the same problem is occuring. These problems started occuring after Matt Dillon's changes to the VM system. What is worrying/troubling is that in single user mode, the

/etc/defaults/rc.conf

1999-02-16 Thread Luoqi Chen
Initially I though /etc/defaults/rc.conf stored the default settings and then we could override some of the settings in /etc/rc.conf, but after a close look at how they are used in /etc/rc*, I am confused: if [ -f /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf

Re: SMP and SO5.0

1999-02-16 Thread Luoqi Chen
Hi, I downloaded Star Office 5 and only THEN realised that the code for doing linux thread emulation is #ifndef SMP :) Still, after downloading 70 meg over a 56k modem and paying 19c/meg I was gonna try the sucker regardless.. And well, it works! The install hung at the end, after its

Re: VM patch.. SMP and SO5.0

1999-02-17 Thread Luoqi Chen
who's looked at this. Tor Egge, he has been very helpful during the development of the code. The pmap change was a result of discussions with him. It looks to me that this is serious stuff spliting the pmap out of the vmspace structure is a big change. caertainly a logical move but

Re: SMP and SO5.0

1999-02-17 Thread Luoqi Chen
I've gone through these patches and I can see that they are really needed for SMP where address spaces are shared. There are details I didn't get, such as where is the per-processor pde pointed, (i.e. where is the per processor KVM range) and is there a single page table for each processor

Re: Filesystem deadlock

1999-02-22 Thread Luoqi Chen
On Mon, 22 Feb 1999, Alexander N. Kabaev wrote: The following script reliably causes FreeBSD 4.0-CURRENT (and 3.1-STABLE as of today) to lookup. Shortly after this script is started, all disk activity stops and any attempt to create new process causes system to freese. While in

Re: Filesystem deadlock

1999-02-23 Thread Luoqi Chen
Luoqi Chen said: This seems to be the good old vnode deadlock during vm_fault() that has been reported a couple of times, and there's still no satisfactory solution to it: fgrep does something like this: (don't ask me why) addr = mmap(0, len, PROT_READ|PROT_WRITE

Re: Filesystem deadlock

1999-02-24 Thread Luoqi Chen
Luoqi Chen said: Do you still have that piece of code? Does it handle the case involves more than one process? For example, process 1 mmaps file B and reads file A into the mmapped region, while process 2 mmaps file A and reads file B, this could also result in a deadlock

Re: lockmgr panic with mmap()

1999-03-01 Thread Luoqi Chen
The question is whether there is a way to do the autogrow function if the map lock is already held. Allow lock recurse? -lq To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message

VM86 assembly code problem

1999-03-16 Thread Luoqi Chen
There're a couple places in swtch.s with code like, #ifdef VM86 btrl%esi, _private_tss je 3f ... To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message

VM86 assembly code problem

1999-03-16 Thread Luoqi Chen
There're a couple of places in swtch.s where code looks like this, #ifdef VM86 btrl%esi, _private_tss je 3f ... 3: #endif The conditional jump statement doesn't seem right, according to manual, btrl instruction modifies CF flag but not Z, so the jump should be

thread-safe libgcc

1999-04-10 Thread Luoqi Chen
For threaded applications to work correctly, we need a thread-safe version of libgcc. It is straight forward to build: define _PTHREADS in CFLAGS. We can have both versions just like libc and libc_r, and use the thread-safe version when linking threaded applications. If no one objects, I will add

Re: Panic from today's current

1999-04-12 Thread Luoqi Chen
The kernel-configfile and dmesg-output is available from: http://www.attic.ch/fuchur_kernel.html panic at: generic_bcopy+0x1arepe movsl (%esi), %es:(%edi) db trace generic_bcopy(c02cc380,c7bb9b1f,0,a,0) at generic_bcopy+0x1a sccnputc(cff,1,c7bb9b80,c016c066) at sccnputc+0x180

Re: some news about ftp hangs

1999-04-16 Thread Luoqi Chen
trying different configurations i have encountered the following 1. ftp in passive mode (pftp or ftp with -p options) DOES NOT hang; 2. ncftp3 from ports DOES NOT hang; 3. netscape communicator 4 DOES NOT hang. so it seems that the problem is in native FreeBSD's ftp or a library

Re: some news about ftp hangs

1999-04-16 Thread Luoqi Chen
Here's async log output from alias enabled ppp, while ftp was retransmitting the PORT command packet: Async: 7e 3d c0 00 00 9d 21 45 00 00 38 13 42 00 00 ff ^^ Async: 01 e3 a7 cf ca 49 aa d0 17 db 4e 03 03 a2 f8 00 ^^

Re: Consistent errors making buildworld

1999-04-16 Thread Luoqi Chen
Do you have an empty /usr/X11R6/include? The Makefile assumes you have the header files if the directory /usr/X11R6/include is present and tries to build the X version of doscmd. This assumption may not be true though. I'll change the Makefile to check for /usr/X11R6/include/X11/X.h instead. By

Re: kern/5038: FreeBSD can't read MS Joliet CDs.

1999-04-17 Thread Luoqi Chen
Hey! I've add UNICODE support to the Joliet patch. It contains few charsets now, but to add other charsets is very easy. Currently, iso8859-1 and euc-jp is included. Mixture of Joliet/RockRidge Extension is also available, however untested. Cool! I think NTFS and VFATFS could use this

Re: newbus and isa auto irq

1999-04-19 Thread Luoqi Chen
Hi, I ave found one more thing that seems to be broken. I have used the irq autodetect feature of the ed(4) for a long time, but it seems that the newbus compatability shim is not doing the right thing with it. My kernel config file have a line like this: device ed0 at isa? port 0x280

Re: newbus and isa auto irq

1999-04-19 Thread Luoqi Chen
This is not happening for the maddr stuff. I suspect this would do better: if (portsize 0) isa_set_portsize(dev, portsize); if (dvp-id_iobase = 0) isa_set_port(dev,

egcs bug caused ftp hang problem

1999-04-21 Thread Luoqi Chen
An egcs optimizer bug caused incorrect tcp checksum recalculation in libalias for the rewritten PORT command packet and the server subsequently discard the packet. The following piece of C code (from TcpChecksum() in alias_util.c) u_short *ptr; int sum, oddbyte; oddbyte

Re: solid NFS patch #6 avail for -current - need testers files)

1999-04-22 Thread Luoqi Chen
Steve Kargl wrote: That's a little foolish since we've still not found all the egcs optimizer bugs and whatnot; didn't you guys see the one Luigi found the other day for ftpd? Now *that* had to be some obscure debugging work! :-) Clearly, that goes to show Luigi must

Re: config NO_F00F_HACK

1999-04-26 Thread Luoqi Chen
On Sun, Apr 25, 1999, a.leidin...@wurzelausix.cs.uni-sb.de wrote: Hi, =20 # ident LINT LINT: $Id: LINT,v 1.589 1999/04/24 21:45:44 peter Exp $ =20 with: option NO_F00F_HACK =20 # config WORK WORK:15: unknown option NO_F0F_HACK

Re: config NO_F00F_HACK

1999-04-26 Thread Luoqi Chen
It works here fine, but I can't pretend that I understand it. :-) Will you commit it? Cheers, -Peter There's some problems with one I posted (e.g. can't deal with cases where a keyword is followed immediately by a number like irq1), I'll commit a better one. -lq To Unsubscribe: send

HEADS UP! to commit SMP vmspace sharing patches

1999-04-27 Thread Luoqi Chen
I'm about to commit the SMP vmspace sharing patch (the %fs approach). All kernel modules will need to be recompiled. Recompilation is not neccessary for user land applications including ps, libkvm and friends. In this %fs approach, per-processor private pages are no longer mapped at identical

Re: HEADS UP! to commit SMP vmspace sharing patches

1999-04-28 Thread Luoqi Chen
In message 199904272349.taa28...@lor.watermarkgroup.com, Luoqi Chen writes: I'm about to commit the SMP vmspace sharing patch (the %fs approach). All kernel modules will need to be recompiled. Recompilation is not neccessary for user land applications including ps, libkvm and friends

Re: SMP APM

1999-05-05 Thread Luoqi Chen
Hi, Has anyone tried having APM and SMP in the same kernel? It panic()'s mine :) Basically the machine panics a few seconds after I do 'apmconf -e'. apm seems to return normal values though. I've attached a sample output from APM, dmesg and my kernel config. I get a trap 12: page fault

Re: SMP APM

1999-05-05 Thread Luoqi Chen
Yeah, well, it didn't look likely to me either but.. :-/ Here is part of nm kernel.debug | sort ... c0208a30 T Xnmi c0208a3c T Xbpt c0208a50 T Xofl ... Did you actually boot from kernel.debug? If not, use the kernel you booted from, the symbols should still be there. I'll give it

Re: SMP APM

1999-05-05 Thread Luoqi Chen
Hi, Has anyone tried having APM and SMP in the same kernel? It panic()'s mine :) Basically the machine panics a few seconds after I do 'apmconf -e'. apm seems to return normal values though. I've attached a sample output from APM, dmesg and my kernel config. I get a trap 12: page fault

Re: panic ! panic ! panic !

1999-05-12 Thread Luoqi Chen
After make world this morning I received this panic : Fatal trap 12: page fault while in kernel mode fault virtual address = 0x14 fault code = supervisor read, page not present instruction pointer = 0x8:0xc0155ca4 stack pointer = 0x10:0xc6864d64 frame pointer = 0x10:0xc6864d78 code

Re: Today's kernel crashes on starting X

1999-05-13 Thread Luoqi Chen
This also fixes the panic that I got with mfs_mount: (with options MFS in the config file, 'cvsup'ed at May 13th 19:43 UTC) Fatal trap 12: page fault while inkernel mode fault virtual address = 0x9d19fd34 fault code= supervisor read, page not present instruction pointer =

Re: Panic with screen w/info (was Re: Today's kernel crashes on starting X)

1999-05-14 Thread Luoqi Chen
It seems that screen was trying to flush the master pty, before the slave tty was even open. We were lucky that this didn't crash our machines before the dev_t changes, it only caused the console to be flushed instead. But after the dev_t changes, it is fatal. Try this fix (band-aid only, better

Re: Panic with screen w/info (was Re: Today's kernel crashes on starting X)

1999-05-14 Thread Luoqi Chen
It seems that screen was trying to flush the master pty, before the slave tty was even open. We were lucky that this didn't crash our machines before the dev_t changes, it only caused the console to be flushed instead. But after the dev_t changes, it is fatal. Try this fix (band-aid only,

Re: Today's kernel crashes on starting X

1999-05-14 Thread Luoqi Chen
This was due to a kludge in mfs implementation. Try change NUMCDEV in kern_conf.c to 255. Are you saying that there is a bug in the mfs implementation and a fix will be commited soon? (and change NUMCDEV until then) Or are you saying, the mfs implementation is now considered correct

Re: screen panics -current

1999-05-15 Thread Luoqi Chen
Well, this is just a quick note to anyone more knowledgable than me. screen 3.7.6 panics a current kernel. -- [gjvc] We're not laughing at you; we're laughing with you. But I'm not laughing. I committed a fix yesterday afternoon, could you

Re: MFS still hosed

1999-05-17 Thread Luoqi Chen
With todays -current, mounting /tmp using swap /tmp mfs rw,nosuid,nodev,-s=32768 0 0 yields a Are you sure you have the latest -current? I committed a fix Friday night. -lq To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message

Re: panic: page fault (apparently caused by mount_mfs)

1999-05-17 Thread Luoqi Chen
Hi, I have been getting a panic lately with every -current kernel that I have built for the past week or so (-current cvsupped daily). Even the GENERIC kernel panics. It is occuring when the mount for a /tmp mfs filesystem is attempted. If I boot an old kernel from 5/11 or remove the

Re: FBSDBOOT.EXE

1999-05-19 Thread Luoqi Chen
Jonathan Lemon jle...@americantv.com says: : : Not true. VM86 is also required to support VESA. Also, it is used : for reliable memory detection (which is why I want to make it mandatory). : No more My Stinkpad only detected 64M, what do I do now??! questions. Actually, even with VM86,

Re: FBSDBOOT.EXE

1999-05-19 Thread Luoqi Chen
Not at all. If there's 640k chopped off the end of eg. 128M of physical memory, you'd have to use a 64M segment, a 32M segment, a 16M segment, an 8M segment, a 4M segment, a 2M segment, a 1M segment, a 256k segment and a 128k segment to map it accurately. That's 9 variable MTRRs, and

  1   2   >