home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / hp / 10251 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.8 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!sgigate!odin!news.csd.sgi.com!rock.csd.sgi.com!mitch
  2. From: mitch@rock.csd.sgi.com (Tom Mitchell)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: HPUX Device Driver
  5. Message-ID: <1992Sep5.045139.8066@news.csd.sgi.com>
  6. Date: 5 Sep 92 04:51:39 GMT
  7. References: <1992Sep01.202444.3973@Schultz.ON.CA>
  8. Sender: news@news.csd.sgi.com (Net News)
  9. Distribution: na
  10. Organization: Silicon Graphics, Inc.  Mountain View, CA
  11. Lines: 36
  12.  
  13. In <1992Sep01.202444.3973@Schultz.ON.CA> peter@Schultz.ON.CA (Peter Roeser) writes:
  14.  
  15. >I am writing a kernal level device driver that interfaces to some
  16. >hardware that does not support interrupts for the HP9000 series 700
  17. >EISA bus.  It is necessary that a watchdog timer on the hardware be
  18. >kicked at least once every second
  19.  
  20. >We currently have the timer reset every one-half second, so that 
  21. >seems like a long time for the driver to be scheduled to run.
  22.  
  23. >4.  Any other ideas?
  24.  
  25. Two -- wild ones.
  26.  
  27. The one-half second reset is most likely syncronous with the
  28. one second timer.  Can it be that these tend to interact in
  29. a way that you do not expect.  Sort of like counting fence
  30. posts one foot apart on a 20 foot fence.
  31.  
  32. Try kicking the timer three or four times in a second.  I am
  33. not sure how the timer your are setting is implemented.
  34. Your two times per second also sounds like a sampling
  35. problem.  Should interupts be disabled at the wrong time a
  36. periodic system clock would pass you by.  Half a second
  37. later and the 1 second timer is passed at the same time your
  38. 1/2 second counter comes by again.
  39.  
  40. If the clocks had no relation to each other one might guess
  41. that there are almost always two ticks within a single
  42. second.  If they are not there is only one -- if it is
  43. possible to miss it -- you will.
  44.  
  45.  
  46. --
  47.  
  48.   Tom Mitchell   --  mitch@sgi.com  or mitch@relay.csd.sgi.com
  49.