SCSI device emulation using SCSI host controller

2002-08-13 Thread Semen A. Ustimenko
Hi! I beg you all pardon for a question not related directly to FreeBSD, but if the answer is ``yes'', then I believe FreeBSD will be in deal. The question is: "Can I emulate a SCSI device (tape, if that matters) using usual SCSI host controller and specific software, or I will definitely need s

NULLFS-related possible deadlock + fix proposal

2002-05-10 Thread Semen A. Ustimenko
Hi! Preface: Same directory is null-mounted to "/mnt" and "/mnt2". The directory contain "dir/foofile". Two processes concurently lookup "/mnt/dir/foofile" and "/mnt2/dir/foofile". Action: P1: in lookup(): in VOP_LOOKUP(dvp (== "/mnt/dir"), "foofile"): in null_lookup(): in

Re: MIIBUS_MEDIAINIT method

2002-04-21 Thread Semen A. Ustimenko
Pretty clear now... Thanks! See below... On Sun, 21 Apr 2002, Bill Paul wrote: > > then the method will be called twice, and some NIC drivers (tx, xl, dc, > > maybe more) will not behave well. > > They work fine if the author of the MAC driver was smart enough to check > for this in his mediain

MIIBUS_MEDIAINIT method

2002-04-21 Thread Semen A. Ustimenko
Hi! I was just thinking about the purpose of this method... What is it? It used to be used by NIC drivers to add something like AUI beside MII provided media, correct? But it looks like every PHY's driver thinks it must call MEDIAINIT in its attach() routine. So, if there would be two PHY on MI

Re: panic: vm_page_free: freeing free page

2002-04-03 Thread Semen A. Ustimenko
On Thu, 4 Apr 2002, Semen A. Ustimenko wrote: > crashump and any details are available, ask for them. > Sorry for not mentioning this first time, I though of the usual ``This particular panic will have a delayed effect, so the trace probably isn't the problem'' answer fro

panic: vm_page_free: freeing free page

2002-04-03 Thread Semen A. Ustimenko
Hi! Here is what we have got once with 4.4-RELEASE: vm_page_free: pindex(747), busy(0), PG_BUSY(1), hold(0) panic: vm_page_free: freeing free page crashump and any details are available, ask for them. Bye! To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in t

RE: tx driver

2001-12-21 Thread Semen A. Ustimenko
Hi! Sorry, for late intervention... Your dmesg shows that this is SMC9432TX_1 card, and I've never hold such one in heands :( Though I saw the SMC9432FTX, and it use the same PHY. So: 1) ``pciconf -l'' and ``ifconfig tx0'' output, please 2) Could you upgrade to 4.4 or later? There were few cha

vnode locking state for bread()

2001-10-29 Thread Semen A. Ustimenko
Hi! Forgive me if i overlooked documentation and sources, but i can't find any references on subject. Could somebody shed light if i need to lock vnode or not to call bread()? Thanks! To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: VM Corruption - stumped, anyone have any ideas?

2001-09-29 Thread Semen A. Ustimenko
Hi! On Mon, 24 Sep 2001, Matt Dillon wrote: > A number of people have been seeing these on STABLE: > > panic: vm_page_remove(): page not found in hash > There was rummors that lowering "maxusers" from 512 to 128 worksaround this problem on a machine with 3Gb of memory... Bye! To

NFS read cache and fcntl locking

2001-09-06 Thread Semen A. Ustimenko
Hi! I wonder how can userlevel process turn NFS-client's read cache off: Turn off attribute caching? Use fcntl lock triggering to invalidate the cache? Other way? Bye! P.S: The ac(reg|dir)(min|max) options of mount_nfs are not taking effect right now due to 4 missing lines in mount_nfs.c. I fi

page fault unmounting FFS from NFS-located special

2001-09-02 Thread Semen A. Ustimenko
Hi! Here is sequence leading to page fault: 1. Make special file on NFS 2. Mount FFS from this file 3. Read or write special file (for attributes to change) 4. Unmount this special 5. Enjoy ``Fatal trap 12: ...'' Like this: su-2.04# mount 192.168.5.1:/home/diskless_root on / (nfs, noatime) mfs

Re: Fiber NIC support in FreeBSD (specifically the SMC 9432)

2001-08-13 Thread Semen A. Ustimenko
Hi! The support for fiber optic was added to -current on 2001/02/07 and MFCed on 2001/06/08 (will be in 4.4 release). So, get new enough system, and go... Bye! On Sun, 12 Aug 2001, D Brearley wrote: > I was wondering if there had been any talk of including fiber media > support for the tx dr

Re: Kernel stack size

2001-08-07 Thread Semen A. Ustimenko
Hi! Thanks for light speed response! On Tue, 7 Aug 2001, Julian Elischer wrote: > the kernel stack is a VERY LIMITED resource > basically you have about 4 or 5 Kbytes per process. Oops... And there is no hope to enlarge it? > if you overflow it you write over your signal information.. > That's

Kernel stack size

2001-08-07 Thread Semen A. Ustimenko
Hi! I'm developing some code running in kernel that use a lot of stack. And it seems i run into stack overflow. This results in some proc structure related parts overwrite (particulary p->p_stats->p_timer[ITIMER_PROF]) and unexpected signals. (Otherwise, it usually page faults inside swi_net_next

PCI bus code & SMC9432 behaviour

2001-02-03 Thread Semen A. Ustimenko
Hi! I got into a following problem with subj: During boot process, the card can be in power down mode. This can be cause MEMEN and PORTEN bits not set up correctly (set to 0) during boot. This bits not set will cause no resources for this device, thus later a bus_alloc_resource() call will fail.