Re: Peeking in to the serial buffer

From: Forrest Kenney (forrest_dot_kenney_at_hp_dot.com)
Date: 01/05/04


Date: Mon, 05 Jan 2004 19:20:11 GMT


JF Mezei wrote:

> Forrest Kenney, OpenVMS terminal driver historian and sometime maintainer wrote:
> > have talked about IO$M_TIMED
> > to time the I/O. What is poorly understood is that the timeout is not
> > time from when the read was
> > started but it a time from last character received.
>
> Mr Kenney, if you were a female, I'd send you big kisses for the timeout
> functionality of the terminal driver interface. This is one of the smartest
> features allowing really clean programming on VMS.
>

Wish I could take credit for that but it predates my working on the driver.

>
> Do you know offhand why this was not implemented in the TCPIP QIO interface ?
> (even if the timeout logic would have been slightly different due to the
> packet nature of TCP).
>

   No clue why they did what they did or did not do.

>
> Also, in the terminal driver, If I have DMA enabled on the terminal port, does
> each character received still generate an interrupt so that the driver can
> update its timeout ? Is there a difference in performance if you enable a
> timer or not ?

There is a low cost for this when a character is being processed by the driver
it adds the current value of exe$gl_abstim to the timeout and saves it away, The
system once a second ticker takes care of handeling the timeout work.



Relevant Pages

  • Re: [PATCH] watchdog: Add driver for Altera Watchdog Timer
    ... To compile this driver as a loadable module, ... I've been writing a driver for a watchdog that also cannot be stopped ... timeout that the watchdog uses so it knows how often to kick it. ... use the software timeout heartbeat then in the future you could emulate ...
    (Linux-Kernel)
  • Re: SDIO: IO-Ready Bit
    ... > I'm working on SDIO multi function device. ... Each of the sub devices has it's own driver. ... > timeout = jiffies + HZ ... > the other sub devices will fail in their probe functions while calling ...
    (Linux-Kernel)
  • Re: ahcich timeouts, only with ahci, not with ataahci
    ... When timeout detected, driver resets ... After receiving error, CAM ... Timeout is a worst possible case for any device, ... completely correct test from driver perspective. ...
    (freebsd-stable)
  • [BUG 2.6.21-rc3-git9] SATA NCQ failure with Samsum HD401LJ
    ... timeout while trying to write to my SATA hard disk. ... sata_nv driver for the on-board SATA controller. ... # ACPI Support ... # PCI Hotplug Support ...
    (Linux-Kernel)
  • Re: [RFD] Automatic suspend
    ...   to have more than one wakelock held at any time. ... The timeout used when a driver returns -EBUSY is arbitrary, ... IMO every code path doing something that makes automatic suspend ...
    (Linux-Kernel)