# US 2004/0024920 A1 · Serial bus host controller diagnosis

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0024920 A1
- Document ID: US20040024920A1
- Status: Published application
- Kind: A1
- Application number: 10/283,612
- Filed: 2002-10-30
- Published: 2004-02-05
- Earliest claimed: 2002-07-31
- Assignees: Advanced Micro Devices, Inc.
- Inventors: Dale E. Gulick; Siegfried Key Hesse
- Web page: https://patentgrep.com/patent/US20040024920A1

## CPC

- G06F 11/26: Functional testing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A diagnosis mechanism for host controllers such as USB (Universal Serial Bus) host controllers is provided. The host controller has a register set that comprises at least one host controller capability register storing data indicative of operational capabilities of the host controller, and at least one host controller operational register storing data for controlling the operation of the host controller. The at least one host controller capability register stores data that is indicative of available diagnostic modes that the host controller can enter. The at least one host controller operational register stores diagnosis data for controlling the operation of the USB host controller in diagnostic modes. This diagnosis mechanism may improve the reliability of the host controller operation.

## Claims

### Claim 1

A USB (Universal Serial Bus) host controller for handling the data traffic between at least one USB device and a computer system, the USB host controller having a register set comprising:
at least one host controller capability register storing data indicative of operational capabilities of the USB host controller; and
at least one host controller operational register storing data for controlling the operation of the USB host controller,
wherein said at least one host controller capability register stores data indicative of available diagnostic modes that the USB host controller can enter, and
wherein said at least one host controller operational register stores diagnosis data for controlling the operation of the USB host controller in diagnostic modes.

### Claim 2 (depends on 1)

The USB host controller of claim 1, wherein said at least one host controller capability register stores a single step mode flag indicating that one of said available diagnostic modes is a single step mode in which the USB host controller is forced to process a single transaction at a time.

### Claim 3 (depends on 2)

The USB host controller of claim 2, wherein:
the USB host controller is adapted to process a first list of transactions periodically and a second list of transactions asynchronously, and
the USB host controller is forced to process transactions of only the asynchronous list in the single step mode when the single step mode flag is set.

### Claim 4 (depends on 2)

The USB host controller of claim 2, wherein said at least one host controller operational register stores an enable flag indicating whether the USB host controller is presently operating in the single step mode.

### Claim 5 (depends on 4)

The USB host controller of claim 4, wherein said enable flag is software rewritable if said single step mode flag is set, and is read-only if said single step mode flag is not set.

### Claim 6 (depends on 4)

The USB host controller of claim 4, wherein said at least one host controller operational register further stores an activity flag indicating whether the USB host controller is presently processing a transaction when operating in the single step mode, wherein no other transaction can be started if both the enable flag and the activity flag are set.

### Claim 7 (depends on 2)

The USB host controller of claim 2, wherein said USB host controller is adapted to enter said single step mode in a software debug mode of said USB host controller.

### Claim 8 (depends on 2)

The USB host controller of claim 2, wherein said USB host controller is adapted to enter said single step mode in a predefined compatibility mode of said USB host controller.

### Claim 9 (depends on 2)

The USB host controller of claim 2, wherein said USB host controller is adapted to apply a handshake mechanism to step from one transaction to the next one in said single step mode.

### Claim 10 (depends on 1)

The USB host controller of claim 1, wherein said at least one host controller operational register is arranged to store diagnosis data for controlling the operation of the USB host controller in one of the available diagnostic modes indicated by the data stored in said at least one host controller capability register.

### Claim 11 (depends on 1)

The USB host controller of claim 1, wherein said at least one host controller operational register is arranged to store diagnosis data for controlling the operation of the USB host controller in diagnostic modes that are available at any time without having corresponding data stored in said at least one host controller capability register.

### Claim 12 (depends on 1)

The USB host controller of claim 1, wherein said at least one host controller operational register stores an error force mode flag indicating that one of said available diagnostic modes is an error force mode in which the USB host controller is forced to deliberately corrupt the CRC (Cyclic Redundancy Check) value of every outgoing data packet.

### Claim 13 (depends on 1)

The USB host controller of claim 1, wherein said at least one host controller operational register stores an error assume mode flag indicating that one of said available diagnostic modes is an error assume mode in which the USB host controller is forced to treat every incoming data packet as having a corrupt CRC (Cyclic Redundancy Check) value.

### Claim 14 (depends on 1)

The USB host controller of claim 1, wherein said at least one host controller operational register stores an error ignore mode flag indicating that one of said available diagnostic modes is an error ignore mode in which the USB host controller is forced to treat every incoming data packet as having a correct CRC (Cyclic Redundancy Check) value.

### Claim 15 (depends on 1)

The USB host controller of claim 1, wherein said at least one host controller operational register stores end-of-microframe dead time diagnosis data indicating the time at the end of the previous microframe not used for USB transactions.

### Claim 16 (depends on 15)

The USB host controller of claim 15, wherein the USB host controller is adapted to use said end-of-microframe dead time diagnosis data to control the number of asynchronously scheduled descriptors that are prefetched based on their estimated time to complete.

### Claim 17 (depends on 1)

The USB host controller of claim 1, wherein said at least one host controller operational register stores time accounting diagnosis data indicating an estimated completion time of all asynchronously scheduled transfers of the previous microframe that are stored in a queue but not executed.

### Claim 18 (depends on 1)

The USB host controller of claim 1, wherein said at least one host controller operational register stores maximum time diagnosis data indicating a maximum value for an estimated completion time of asynchronously scheduled transfers of the previous microframe.

### Claim 19 (depends on 1)

The USB host controller of claim 1, wherein said at least one host controller operational register stores minimum time diagnosis data indicating a minimum value for an estimated completion time of asynchronously scheduled transfers of the previous microframe.

### Claim 20 (depends on 1)

The USB host controller of claim 1, wherein said at least one host controller operational register stores time accounting diagnosis data indicating an estimated completion time of all enqueued transfers of the current microframe.

### Claim 21 (depends on 1)

The USB host controller of claim 1, wherein said at least one host controller operational register stores threshold diagnosis data indicating an estimated completion time threshold value used to control the number of asynchronously scheduled descriptors that are prefetched based on their estimated time to complete.

### Claim 22 (depends on 1)

The USB host controller of claim 1, further comprising:
a descriptor storage unit adapted to store fetched descriptors,
wherein said at least one host controller operational register stores flush diagnosis data instructing the USB host controller to flush the stored descriptors.

### Claim 23 (depends on 1)

The USB host controller of claim 1, further comprising:
a descriptor storage unit adapted to store fetched descriptors,
wherein said at least one host controller operational register stores diagnosis data indicating operational parameters of said descriptor storage unit.

### Claim 24 (depends on 1)

The USB host controller of claim 1, further comprising:
a descriptor cache adapted to store prefetched descriptors,
wherein said at least one host controller operational register stores flush diagnosis data instructing the USB host controller to flush the stored descriptors.

### Claim 25 (depends on 1)

The USB host controller of claim 1, further comprising:
a descriptor cache adapted to store prefetched descriptors,
wherein said at least one host controller operational register stores diagnosis data indicating the number of currently cached descriptors.

### Claim 26 (depends on 1)

The USB host controller of claim 1, further comprising:
a transmit and receive engine adapted to transmit read requests and receive responses thereto, said transmit and receive engine comprising at least one FIFO (First In First Out) buffer,
wherein said at least one host controller operational register stores flush diagnosis data instructing the USB host controller to flush said at least one FIFO buffer.

### Claim 27 (depends on 1)

The USB host controller of claim 1, further comprising:
a transmit and receive engine adapted to transmit read requests and receive responses thereto, said transmit and receive engine comprising at least one FIFO (First In First Out) buffer,
wherein said at least one host controller operational register stores diagnosis data indicating the current number of bytes in said at least one FIFO buffer.

### Claim 28 (depends on 1)

The USB host controller of claim 1, further comprising:
at least one debug register storing debug control data for controlling the USB host controller in a debug mode.

### Claim 29 (depends on 1)

The USB host controller of claim 1, further comprising:
a clock monitoring unit connected to monitor the clock used for handling the data traffic to and from said at least one USB device.

### Claim 30 (depends on 29)

The USB host controller of claim 29, wherein said clock monitoring unit is arranged to monitor a USB device reference clock.

### Claim 31 (depends on 29)

The USB host controller of claim 29, wherein said clock monitoring unit is arranged to monitor a PLL (Phase Locked Loop) output clock.

### Claim 32 (depends on 29)

The USB host controller of claim 29, wherein said clock monitoring unit is arranged to monitor a PLL (Phase Locked Loop) lock signal.

### Claim 33

A host controller for controlling the data traffic to and from at least one peripheral device connected to a computer system over a serial bus, the host controller having a register set comprising:
at least one host controller capability register storing data indicative of operational capabilities of the host controller; and
at least one host controller operational register storing data for controlling the operation of the host controller,
wherein said at least one host controller capability register stores data indicative of available diagnostic modes that the host controller can enter, and
wherein said at least one host controller operational register stores diagnosis data for controlling the operation of the host controller in diagnostic modes.

### Claim 34

A method of operating a USB (Universal Serial Bus) host controller for handling the data traffic between at least one USB device and a computer system, the USB host controller having a register set, the method comprising:
storing data indicative of operational capabilities of the USB host controller in at least one host controller capability register; and
storing data for controlling the operation of the USB host controller in at least one host controller operational register,
wherein said data indicative of operational capabilities comprises data indicative of available diagnostic modes that the USB host controller can enter, and
wherein said data for controlling the operation of the USB host controller comprises diagnosis data for controlling the operation of the USB host controller in diagnostic modes.

### Claim 35 (depends on 34)

The method of claim 34, wherein said data indicative of operational capabilities comprises a single step mode flag indicating that one of said available diagnostic modes is a single step mode in which the USB host controller is forced to process a single transaction at a time.

### Claim 36 (depends on 35)

The method of claim 35, further comprising:
processing a first list of transactions periodically and a second list of transactions asynchronously, and
forcing the USB host controller to process transactions of only the asynchronous list in the single step mode when the single step mode flag is set.

### Claim 37 (depends on 35)

The method of claim 35, wherein said data for controlling the operation of the USB host controller comprises an enable flag indicating whether the USB host controller is presently operating in the single step mode.

### Claim 38 (depends on 37)

The method of claim 37, wherein said enable flag is software rewritable if said single step mode flag is set, and is read-only if said single step mode flag is not set.

### Claim 39 (depends on 37)

The method of claim 37, wherein said data for controlling the operation of the USB host controller further comprises an activity flag indicating whether the USB host controller is presently processing a transaction when operating in the single step mode, wherein no other transaction can be started if both the enable flag and the activity flag are set.

### Claim 40 (depends on 35)

The method of claim 35, further comprising:
entering said single step mode in a software debug mode of said USB host controller.

### Claim 41 (depends on 35)

The method of claim 35, further comprising:
entering said single step mode in a predefined compatibility mode of said USB host controller.

### Claim 42 (depends on 35)

The method of claim 35, further comprising:
applying a handshake mechanism to step from one transaction to the next one in said single step mode.

### Claim 43 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises diagnosis data for controlling the operation of the USB host controller in one of the available diagnostic modes indicated by the data stored in said at least one host controller capability register.

### Claim 44 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises diagnosis data for controlling the operation of the USB host controller in diagnostic modes that are available at any time without having corresponding data stored in said at least one host controller capability register.

### Claim 45 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises an error force mode flag indicating that one of said available diagnostic modes is an error force mode in which the USB host controller is forced to deliberately corrupt the CRC (Cyclic Redundancy Check) value of every outgoing data packet.

### Claim 46 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises an error assume mode flag indicating that one of said available diagnostic modes is an error assume mode in which the USB host controller is forced to treat every incoming data packet as having a corrupt CRC (Cyclic Redundancy Check) value.

### Claim 47 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises an error ignore mode flag indicating that one of said available diagnostic modes is an error ignore mode in which the USB host controller is forced to treat every incoming data packet as having a correct CRC (Cyclic Redundancy Check) value.

### Claim 48 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises end-of-microframe dead time diagnosis data indicating the time at the end of the previous microframe not used for USB transactions.

### Claim 49 (depends on 48)

The method of claim 48, further comprising:
using said end-of-microframe dead time diagnosis data to control the number of asynchronously scheduled descriptors that are prefetched based on their estimated time to complete.

### Claim 50 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises time accounting diagnosis data indicating an estimated completion time of all asynchronously scheduled transfers of the previous microframe that are stored in a queue but not executed.

### Claim 51 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises maximum time diagnosis data indicating a maximum value for an estimated completion time of asynchronously scheduled transfers of the previous microframe.

### Claim 52 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises minimum time diagnosis data indicating a minimum value for an estimated completion time of asynchronously scheduled transfers of the previous microframe.

### Claim 53 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises time accounting diagnosis data indicating an estimated completion time of all enqueued transfers of the current microframe.

### Claim 54 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises threshold diagnosis data indicating an estimated completion time threshold value used to control the number of asynchronously scheduled descriptors that are prefetched based on their estimated time to complete.

### Claim 55 (depends on 34)

The method of claim 34, further comprising:
storing fetched descriptors in a descriptor storage unit of the USB host controller,
wherein said data for controlling the operation of the USB host controller comprises flush diagnosis data instructing the USB host controller to flush the stored descriptors.

### Claim 56 (depends on 34)

The method of claim 34, further comprising:
storing fetched descriptors in a descriptor storage unit of the USB host controller,
wherein said data for controlling the operation of the USB host controller comprises diagnosis data indicating operational parameters of said descriptor storage unit.

### Claim 57 (depends on 34)

The method of claim 34, further comprising:
storing prefetched descriptors in a descriptor cache of the USB host controller,
wherein said data for controlling the operation of the USB host controller comprises flush diagnosis data instructing the USB host controller to flush the stored descriptors.

### Claim 58 (depends on 34)

The method of claim 34, further comprising:
storing prefetched descriptors in a descriptor cache of the USB host controller,
wherein said data for controlling the operation of the USB host controller comprises diagnosis data indicating the number of currently cached descriptors.

### Claim 59 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises flush diagnosis data instructing the USB host controller to flush at least one FIFO (First In First Out) buffer in a transmit and receive engine of the USB host controller.

### Claim 60 (depends on 34)

The method of claim 34, wherein said data for controlling the operation of the USB host controller comprises diagnosis data indicating the current number of bytes in at least one FIFO (First In First Out) buffer in a transmit and receive engine of the USB host controller.

### Claim 61 (depends on 34)

The method of claim 34, further comprising:
storing debug control data in at least one debug register for controlling the USB host controller in a debug mode.

### Claim 62 (depends on 34)

The method of claim 34, further comprising:
monitoring the clock used for handling the data traffic to and from said at least one USB device.

### Claim 63 (depends on 62)

The method of claim 62, wherein said monitored clock is a USB device reference clock.

### Claim 64 (depends on 62)

The method of claim 62, wherein said monitored clock is a PLL (Phase Locked Loop) output clock.

### Claim 65 (depends on 62)

The method of claim 62, further comprising:
monitoring a PLL (Phase Locked Loop) lock signal.

### Claim 66

A method of operating a host controller for controlling the data traffic to and from at least one peripheral device connected to a computer system over a serial bus, the host controller having a register set, the method comprising:
storing data indicative of operational capabilities of the host controller in at least one host controller capability register; and
storing data for controlling the operation of the host controller in at least one host controller operational register,
wherein said data indicative of operational capabilities comprises data indicative of available diagnostic modes that the host controller can enter, and
wherein said data for controlling the operation of the host controller comprises diagnosis data for controlling the operation of the host controller in diagnostic modes.

### Claim 67

A computer system comprising a host controller for controlling the data traffic to and from at least one peripheral device connected to the computer system over a serial bus, the host controller having a register set comprising:
at least one host controller capability register storing data indicative of operational capabilities of the host controller; and
at least one host controller operational register storing data for controlling the operation of the host controller,
wherein said at least one host controller capability register stores data indicative of available diagnostic modes that the host controller can enter, and
wherein said at least one host controller operational register stores diagnosis data for controlling the operation of the host controller in diagnostic modes.
