Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jul 2000 16:41:21 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-alpha@FreeBSD.ORG
Subject:   Re: fxp0 hangs on a PC164 using STABLE 
Message-ID:  <200007192341.QAA27822@mass.osd.bsdi.com>
In-Reply-To: Your message of "Mon, 17 Jul 2000 22:37:19 EDT." <14707.48450.371071.494543@grasshopper.cs.duke.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> I think I have a fix.  It feels like overkill, but if the programming
> interface of the chip does not allow for something better why not just
> turn off DMA while we update cb_command?

The gotcha with this is of course that you have no idea what "turning off 
DMA" actually entails.  If the chip is in the middle of a DMA operation, 
what happens then?  Do you lose the entire DMA?  Does it keep going?  How 
often does the chip test the flag, etc...

> Can a PCI expert comment on its safety?  Mike?

I think the approach you've taken with using atomic updates is definitely 
the right one.

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007192341.QAA27822>