Method for arbitration and access to hardware request ring structures in a concurrent environment

    公开(公告)号:US11748174B2

    公开(公告)日:2023-09-05

    申请号:US16590490

    申请日:2019-10-02

    CPC classification number: G06F9/526 G06F9/5005 G06F13/1663 G06F13/28

    Abstract: Methods and apparatus for arbitration and access to hardware request ring structures in a concurrent environment. A request ring mechanism is provided including an arbiter, ring overflow guard, request ring, and request ring metadata, each of which is implemented in shared virtual memory (SVM) on a computing platform including a multi-core processor coupled to an offload device having one or more SVM-capable accelerators. Worker threads request to access the request ring to provide job descriptors to be processed by the accelerator(s). A lockless arbiter returns either an index of a slot in which to write a descriptor or information indicating the ring is full to each worker thread. The scheme enables worker threads to write descriptors to slots in the request ring corresponding to the returned indexes without contention from other worker threads. The ring overflow guard prevents valid descriptors from being overwritten before they are taken off the ring by the accelerator(s). The request ring metadata is used indicate a valid/invalid status of the ring entries.

Patent Agency Ranking