Fwd: puc(4) and single I/O port cards.

2010-11-28 Thread Jonathan Chen
ears that the section that's preventing it from being recognised is in puc.c:puc_bfe_probe(). In particular:    /* We don't attach to single-port serial cards. */    if (cfg->ports == PUC_PORT_1S || cfg->ports == PUC_PORT_1P)        return (EDOOFUS); Why is the check there? Is there so

mlock & COW

2008-03-09 Thread Jonathan Chen
I've been battling with a bug related to mlock and COW pages. Since I'm basically clueless when it comes to the VM subsystem, I was hoping someone with more clue can look at my fix and let me know if I'm doing the right thing here. The problem: User programs will crash (SEGV/BUS) if COW pages

Re: bktr(4) risk?

2006-10-09 Thread Jonathan Chen
On Mon, Oct 09, 2006 at 04:26:50PM -0700, John-Mark Gurney wrote: > Jonathan Chen wrote this message on Mon, Oct 09, 2006 at 17:37 -0400: > > The only reason I can think of to use this ioctl would be if you wanted the > > image you're capturing to be directly dumped into

bktr(4) risk?

2006-10-09 Thread Jonathan Chen
While trying to resurrect meteor(4), I've been looking over the bktr driver. It seems that the bktr driver implements the METEORSVIDEO ioctl, which appears to allow userland programs to specify a physical memory address to which the bktr hardware should dump it's output. At first glance, this

running code on all CPUs

2006-10-04 Thread Jonathan Chen
Hello, I'm currently writing kernel code to use MCA (machine check architecture) in order to detect things like ECC errors. As part of this, I need to run code on all CPUs periodically to check some status registers. Where is the best place to do this? It doesn't seem that I can use regular

bge on 64-bit pci: corrupt packets

2004-07-01 Thread Jonathan Chen
Hi all, I've been experiencing a problem with using bge on 64-bit pci slots. After looking at this for the whole day, I still have no idea what the problem is. Perhaps one of you can help... The setup: SuperMicro P4SCT+ motherboard (E7210 Canterwood ES) 3Com 3c996-SX (Broadcom

Re: anoncvs down?

2001-10-26 Thread Jonathan Chen
On Fri, Oct 26, 2001 at 09:15:28AM +0200, Peter Wullinger wrote: > Have I just missed, that anoncvs.FreeBSD.org was shut down? > > This would be a problem for me since I do not have access to > a FreeBSD machine with good internet connection and I didn't > get cvsup (i.e. M3) to compile on the m

Re: proposed change to pci_pci.c

2001-09-06 Thread Jonathan Chen
On Wed, Sep 05, 2001 at 06:37:28PM -0700, Mike Smith wrote: > > I'd be OK with this being done as a hack for now. I think the bridge > code needs to be a bit kinder about allowing "stupid" things to be done > if they're set up by the BIOS. > > > I'd like to propose committing the following chan

Re: Junior Kernel Hacker task: improve vnode->v_tag

2001-09-05 Thread Jonathan Chen
While on the subject of VFS locking... Accessing devfs through a nullfs redirection causes a panic() due to locking issues. I haven't had time to look at this in detail yet, if somebody wants to jump up and fix the problem, feel free... -Jon To Unsubscribe: send mail to [EMAIL PROTECTED] wit

Re: kern/24854: NEWCARD support for aironet driver an(4)

2001-08-19 Thread Jonathan Chen
[summary of past events for the benefit of gnats] - original PR filed for Cisco aironet not working under newcard - My LMC342 works just fine, and I though this might be a bug in newcard (as opposed to the an driver as suggested in the pr), suggested Sam to try the updated newcard (http

Re: pthreads and poll()

2001-08-14 Thread Jonathan Chen
On Mon, Aug 13, 2001 at 01:18:52PM -0400, Daniel M. Eischen wrote: > We don't provide locking for fd's any longer (I thought this was only in > -current, but your results seem to indicate otherwise). If we did, only > one thread would wake up. The mistake in your sample seems to be that > you're

pthreads and poll()

2001-08-13 Thread Jonathan Chen
Yesterday marked my first attempt at mixing poll() with pthreads. Needless to say, things did not work out the way I wanted them to. So, I began the task of finding out the behaviors of various OSes to see if my code would run fine on them. For your reference and amusement, my results and tes

Re: forwarding broadcast

2001-08-09 Thread Jonathan Chen
On Thu, Aug 09, 2001 at 12:57:47PM -0400, Bill Vermillion wrote: > On Thu, Aug 09, 2001 at 12:30:56PM -0400, Jonathan Chen thus sprach: > > On Thu, Aug 09, 2001 at 12:23:52PM -0400, Bill Vermillion wrote: > > > On Thu, Aug 09, 2001 at 11:36:38AM -0400, Jonathan Chen thus sprach:

Re: forwarding broadcast

2001-08-09 Thread Jonathan Chen
On Thu, Aug 09, 2001 at 12:23:52PM -0400, Bill Vermillion wrote: > On Thu, Aug 09, 2001 at 11:36:38AM -0400, Jonathan Chen thus sprach: > > > On FreeBSD -CURRENT and -STABLE, packets to broadcast addresses > > are not forwarded. For instance, if I have a FreeBSD router wit

Re: forwarding broadcast

2001-08-09 Thread Jonathan Chen
On Thu, Aug 09, 2001 at 09:20:55AM -0700, Matthew Jacob wrote: > > I haven't consulted the RFCs either, but, ahem, I thought this was a major > point of netmasks and routers and why multicast was invented- to keep > broadcasts from clogging the world. It would be nice if all applications support

forwarding broadcast

2001-08-09 Thread Jonathan Chen
On FreeBSD -CURRENT and -STABLE, packets to broadcast addresses are not forwarded. For instance, if I have a FreeBSD router with interfaces 192.168.1.1 and 192.168.2.1, and I send packets from 192.168.1.2 to 192.168.2.255, the packets are dropped to the floor. IMO, this is wrong... but I hav

mtree exit code [pr:28424]

2001-08-03 Thread Jonathan Chen
Been trying to close some PR's, but I'm not so sure about this one. According to the man page, mtree is supposed to return an exit code of 2 when "the file hierarchy did not match the specification". However, mtree does not return an exit code of 2 when a file/directory is missing. OpenBSD e

Re: NFS local mount

2001-07-21 Thread Jonathan Chen
On Thu, Jul 19, 2001 at 02:38:07PM -0400, Michael Sinz wrote: > I had been meaning to ask if there was a reason why NFS mounts happened > before NFS servers were started but life kept getting in the way :-) If /usr was nfs mounted on a machine, then /usr needs to be mounted before nfsd was loade

NEWCARD updates

2001-07-16 Thread Jonathan Chen
For a while now I've been playing with NEWCARD, and I ended up making a lot of changes. I would appreciate any comments on them. Since there are a number of large changes, I'm not going to commit right away. You can find the diffs at http://people.freebsd.org/~jon/newcard.diff (.gz version als

Resource reservation idea

2001-06-04 Thread Jonathan Chen
ed as a resource too? -- (o_ 1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2 _o) \\\_\ Jonathan Chen [EMAIL PROTECTED] /_/// <) No electrons were harmed during pro

Re: Solution: Sendmail 8.11.3 on FreeBSD 4.2

2001-03-13 Thread Jonathan Chen
/var/mail/user was empty. > Mail stopped. > > chmod u+s /usr/libexec/mail.local That's not the right fix. Incidentally, the right place to ask this is [EMAIL PROTECTED]; and this question has been answered quite a few times by me. Check out the archives. -- Jo

PCI secondary bus

2000-10-14 Thread Jonathan Chen
, how do I get the numbers? Would it be alright if I assign an arbitrary number as long as there is no conflict? Any help would be appreciated. Thanks. -- (o_ 1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2 _o) \\\_\ Jonathan Chen [EMAIL

csa sound card not generating interrupt?

2000-09-19 Thread Jonathan Chen
-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2 _o) \\\_\ Jonathan Chen [EMAIL PROTECTED] /_/// <) No electrons were harmed during production of this message (> ~ To Unsubs

VM86 interrupt calls from userland

2000-09-17 Thread Jonathan Chen
ng the ioctl by adding something like FBIO_SETMODE_ONLY where syscons would only switch the mode and not bother setting up the renderer or emulator? Thanks for any pointers... -- (o_ 1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2 _o) \\\_\Jonathan Chen [EMAI

Re: What is missing in CardBus support?

2000-08-01 Thread Jonathan Chen
CBE2, as well as a small change to allow the TP600E sound card to work with all these. Note that there is a small problem with suspending with a busy network - you should unplug the ethernet cord before suspending. Also, there is no support for insert/removal. -- (o_ 1-2-1-2-1-2-1-2

realigning mbufs?

2000-03-30 Thread Jonathan Chen
someone at Xircom was smoking crack when they designed this card? -- (o_ 1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2 _o) \\\_\Jonathan Chen [EMAIL PROTECTED] /_/// <) WARNING:This email co