Re: Machine wedges solid after one serial-port source-lineaddition...

From: Barry Bouwsma (freebsd-misuser_at_remove-NOSPAM-to-reply.NOSPAM.dyndns.dk)
Date: 09/24/03

  • Next message: Barry Bouwsma: "Re: Any workarounds for Verisign .com/.net highjacking?"
    Date: Wed, 24 Sep 2003 18:34:11 +0200 (CEST)
    To: FreeBSD List of Hackers <hackers@freebsd.org>
    
    

    [Drop hostname part of IPv6-only address above to obtain IPv4-capable e-mail,
     or just drop me from the recipients and I'll catch up from the archives]

    Terry Lambert writes:

    > I remember wakeup() being bad. Taking any time to do anything
    > at all more than just queueing data and going away is probably
    > bad.

    Then that's probably why it worked fine for some hours, then failed
    miserably. Thanks!

    > If it were my project, I'd mirror the values out to a status
    > structure that's only written at interrupt, and read and reset
    > at software interrupt, and then use the soft interrupt handler
    > to raise the signals/send the wakeup/whatever and then resets
    > the flags bits to zero via a call down that synchronizes like

    Maybe I'll turn back to this, when I'm older and wiser. But also, serial
    ports are a scarcity for me, so I'm wondering what else I can use to get
    precise timing information, to free up the serial port for something else.

    I wrote earlier (from an invalid address that probably most list readers
    rejected as spam) that I had a problem accessing the parallel port nACK
    as /dev/pps for the precise timing already present in the kernel source,
    and simultaneously as /dev/ppi for coarse timing via polling from which
    I'd determine the time that the PPS signal refers to.

    I tried adding printf()s to various parallel-port kernel code to see if
    there might be an interrupt I could jump onto for each transition of
    the nACK status line, but I suspect my lack of success with both swings
    of the signal has to do with not doing it right.

    So I'll ask a basic question here, forgive my ignorance: Can the lines
    of the parallel port be used to generate interrupts that I can use, in
    the same way that I've been able to use the four serial port status
    lines, or is this right out?

    And another question, I see three unused joystick connectors on the three
    sound cards in my machine, that are less likely to be used than the so-far-
    unused parallel port.

    Would it be possible to get interrupts from the sound card's joystick
    connector, when interfaced with suitable hardware to the radio clock
    output, that I would also theoretically be able to use? Or is this also
    something I'd need to poll the status of the switch(es), so only coarse
    precision would be possible?

    Please excuse my basic ignorance of fundamental PC hardware principles,
    and I'll welcome pointers to sources of more knowledge.

    Thanks,
    Barry Bouwsma

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Barry Bouwsma: "Re: Any workarounds for Verisign .com/.net highjacking?"

    Relevant Pages

    • Re: how to have offset < 1ms
      ... When I compare kernel timestamps and timestamps from gpsd, ... the parallel port lines and run that into the serial port interrupt line ... interrupt service routing, and print the difference. ... It would be interesting to see if the parallel port latencies are ...
      (comp.protocols.time.ntp)
    • Re: "spurious 8259A interrupt: IRQ7."
      ... On machines with printers on the parallel port I never see ... IRQ7 is the lowest priority interrupt, ...
      (Debian-User)
    • Re: Thread Sheduling in Windows CE or Kernel Timer
      ... I agree with Paul on this, without interrupts you are going to face a real ... interrupt if your CPU has one that you can use. ... Actually Parallel port is interfaced with Dual Port RAM from which i ... missing the data from Parallel Port when doing some gui operations. ...
      (microsoft.public.windowsce.app.development)
    • Re: Which version of Linux works best?
      ... There is support for an ioctl that says "wake me up when a modem signal changes". ... gpsd uses that to provide PPS support. ... I believe but am not sure, that that uses an interrupt. ... I know the parallel port takes something ...
      (comp.protocols.time.ntp)
    • Connecting an Interrupt Service Routine to a Parallel Port
      ... the heading "Connecting an Interrupt Service Routine to a Parallel Port" ... interrupt request. ...
      (microsoft.public.win32.programmer.kernel)