System for controlling an automatic read operation of read cache control circuit in a disk drive controller utilizing a start counter, a working counter, and a sector counter
AssigneeAdaptec, Inc.
InventorJohn S. Packer
Life of this patent
Estimating the term…
Abstract
A host interface uses a state machine to control multiple sector transfers between a host computer and a physical storage medium, so that the idle time between sector transfers is minimized and not a function of the local microprocessor. A write sector counter is provided to keep track of the largest segment in a buffer memory so that demands for the local microprocessor is minimized. In addition, start counters pointing at the next sector in the buffer memory are provided to shorten response time in a read cache. BUSY and IRQ timers are provided to accommodate various implementations of BIOS's which may inadvertently clear a host interrupt to lead to a failure condition.
Claims6
A read cache control circuit in a disk controller, said disk controller accessing data stored in a physical storage device using one or more addresses in a READ command, said read cache control circuit comprising:
- a buffer for receiving data transferred from said physical storage device;
- a sector counter initially holding a count representing the number of sectors to transfer from said buffer to a host computer;
- a start counter and a working counter each holding an address, said start counter provided for holding an address representing an address of a sector cached in said buffer, said working counter provided for holding an address of a next sector to be transferred to said host computer in response to said READ command;
- a comparator circuit receiving the addresses stored in said start counter and said working counter to provide a control signal indicating that the addresses in said start counter and said working counter are equal;
- and
- a circuit for updating said sector counter as each sector is transferred from said buffer to said host computer, and for causing an update in each of said start counter and said working counter each individually to a next address after the complete transfer of the data associated with each of said sectors to said host computer, until said count in said sector counter represents that all specified sectors are transferred to said host computer, whereupon only said start counter is updated when a sector is read from said physical storage device and cached in said buffer.
A method for providing a read cache control circuit in a disk controller, said disk controller accessing data stored in a physical storage device using one or more addresses in a READ command, said method comprising the steps of:
- transferring data from said physical storage device to a buffer;
- initially holding in a sector counter a count representing the number of sectors to transfer from said buffer to a host computer;
- holding an address in each of a start counter and a working counter, said start counter provided for holding an address representing an address of a sector cached in said buffer, said working counter provided for holding an address of a next sector to be transferred to said host computer in response to said READ command;
- comparing in a comparator circuit the addresses stored in said start counter and said working counter to provide a control signal indicating that the addresses in said start counter and said working counter are equal;
- and
- updating said sector counter as each sector is transferred from said buffer to said host computer, and causing an update in each of said start counter and said working counter individually to a next address after the complete transfer of the data associated with each of said sectors to said host computer, until said count in said sector counter represents that all specified sectors are transferred to said host computer, whereupon only said start counter is updated when a sector is read from said physical storage device and cached in said buffer.
Dependencies are inferred from the claim text.