DEVICE TABLE IN SYSTEM MEMORY
First Claim
Patent Images
1. A method for implementing a device table in system memory to which a peripheral component interface (PCI) adapter is coupled via a host bridge, the method comprising:
- accessing the device table in the system memory by the host bridge;
managing a device table entry (DTE) cache in the host bridge for coherency for DTE configuration changes; and
maintaining a usage count and an in-use count in the host bridge for each cached DTE, wherein;
the maintaining of the usage count comprises including one or more usage counters in the host bridge for association with a given PCI function and a corresponding DTE to be incremented by the host bridge as direct memory access (DMA) read or write requests are processed,the maintaining of the in-use count comprises including an in-use count in a DTE to be incremented and decremented when address translation (AT) fetches are issued and returned, respectively, the method further comprising;
updating a DTE in the device table in the system memory and flushing a corresponding DTE of the DTE cache in the host bridge for a PCI instruction and synchronizing the PCI instruction with the flushing of the DTE;
updating error state bits in the device table in the system memory and the DTE cache; and
load response handling comprising blocking by the host bridge of all load responses based on a DTE being in an error state, blocking by the processor of all load responses based on a DTE being in an error state and receiving an indication to check by the host bridge, checking by the host bridge of the error state in the DTE cache based on the DTE for a load response being cached and clearing an error state in the DTE
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments relate to an implementation of a device table in system memory to which a peripheral component interface (PCI) adapter is coupled via a host bridge. An aspect includes an access of the device table in the system memory by a switch coupled to the host bridge, management of a device table entry (DTE) cache in the host bridge for coherency for DTE configuration changes and maintenance of a usage count and an in-use count in the host bridge for each cached DTE.
14 Citations
1 Claim
-
1. A method for implementing a device table in system memory to which a peripheral component interface (PCI) adapter is coupled via a host bridge, the method comprising:
-
accessing the device table in the system memory by the host bridge; managing a device table entry (DTE) cache in the host bridge for coherency for DTE configuration changes; and maintaining a usage count and an in-use count in the host bridge for each cached DTE, wherein; the maintaining of the usage count comprises including one or more usage counters in the host bridge for association with a given PCI function and a corresponding DTE to be incremented by the host bridge as direct memory access (DMA) read or write requests are processed, the maintaining of the in-use count comprises including an in-use count in a DTE to be incremented and decremented when address translation (AT) fetches are issued and returned, respectively, the method further comprising; updating a DTE in the device table in the system memory and flushing a corresponding DTE of the DTE cache in the host bridge for a PCI instruction and synchronizing the PCI instruction with the flushing of the DTE; updating error state bits in the device table in the system memory and the DTE cache; and load response handling comprising blocking by the host bridge of all load responses based on a DTE being in an error state, blocking by the processor of all load responses based on a DTE being in an error state and receiving an indication to check by the host bridge, checking by the host bridge of the error state in the DTE cache based on the DTE for a load response being cached and clearing an error state in the DTE
-
Specification