# US 2017/0293578 A1 · QoS-CLASS BASED SERVICING OF REQUESTS FOR A SHARED RESOURCE

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

- Number: US 2017/0293578 A1
- Document ID: US20170293578A1
- Status: Published application
- Kind: A1
- Application number: 15/274,665
- Filed: 2016-09-23
- Published: 2017-10-12
- Earliest claimed: 2016-04-08
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Derek HOWER; Harold Wade CAIN, III; Carl Alan WALDSPURGER
- Web page: https://patentgrep.com/patent/US20170293578A1

## CPC

- G06F 13/1626: {by reordering requests}
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 12/0811: with multilevel cache hierarchies
- G06F 13/1663: {Access to shared memory}
- G06F 13/16: for access to memory bus (G06F13/28 takes precedence)
- G06F 2212/1024: Latency reduction
- G06F 2212/283: Plural cache memories
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods are directed to managing access to a shared memory. A request received at a memory controller, for access to the shared memory from a client of one or more clients configured to access the shared memory, is placed in at least one queue in the memory controller. A series of one or more timeout values is assigned to the request, based, at least in part on a priority associated with the client which generated the request. The priority may be fixed or based on a Quality-of-Service (QoS) class of the client. A timer is incremented while the request remains in the first queue. As the timer traverses each one of the one or more timeout values in the series, a criticality level of the request is incremented. A request with a higher criticality level may be prioritized for servicing over a request with a lower criticality level.

## Claims

### Claim 1

A method of managing access to a shared memory, the method comprising:
receiving, at a memory controller, a first request to access the shared memory from a first client of one or more clients configured to access the shared memory;
placing the first request in at least a first queue in the memory controller;
assigning a series of one or more timeout values to the first request, based, at least in part on a priority associated with the first client;
incrementing a timer while the first request remains in the first queue; and
as the timer traverses each one of the one or more timeout values in the series, incrementing a criticality level of the first request.

### Claim 2 (depends on 1)

The method of claim 1, comprising prioritizing, for granting access to the shared memory, the first request over a second request in the first queue, if the first request has a higher criticality level than the second request.

### Claim 3 (depends on 1)

The method of claim 1, wherein a later timeout value in the series is smaller than an earlier timeout value, and wherein the criticality level of the first request increases at a faster rate as the timer traverses more timeout values.

### Claim 4 (depends on 1)

The method of claim 1, wherein a later timeout value in the series is larger than an earlier timeout value, and wherein the criticality level of the first request increases at a slower rate as the timer traverses more timeout values.

### Claim 5 (depends on 1)

The method of claim 1, wherein the priority associated with the first client is a pre-specified fixed priority.

### Claim 6 (depends on 1)

The method of claim 1, wherein the priority associated with the first client is a dynamically modifiable priority.

### Claim 7 (depends on 6)

The method of claim 6, wherein the dynamically modifiable priority is based, at least in part on a Quality-of-Service (QoS) class associated with the first client.

### Claim 8 (depends on 7)

The method of claim 7 wherein one or more other clients belong to the same QoS class as the first client.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first client is a processor or a cache.

### Claim 10 (depends on 1)

The method of claim 1, wherein the series of one or more timeout values are further based on an occupancy of the first queue.

### Claim 11 (depends on 10)

The method of claim 10, wherein the occupancy of the first queue comprises a number of requests from a same Quality-of-Service (QoS) class as the first request.

### Claim 12 (depends on 1)

The method of claim 1, wherein the first queue is at a frontend of the memory controller interfacing the one or more clients.

### Claim 13 (depends on 1)

The method of claim 1, wherein the first queue is at a backend of the memory controller interfacing the shared memory.

### Claim 14 (depends on 13)

The method of claim 13, further comprising prioritizing requests in the first queue based on one or more states of the shared memory.

### Claim 15 (depends on 14)

The method of claim 14, wherein the one or more states comprise row hits, wherein requests of the first queue directed to a row of the shared memory with an open row buffer are prioritized for servicing.

### Claim 16 (depends on 15)

The method of claim 15, comprising limiting the number of consecutive row hits which are prioritized to a pre-specified number.

### Claim 17 (depends on 14)

The method of claim 14, wherein the one or more states comprise precharged banks, wherein requests of the first queue directed to a precharged bank of the shared memory are prioritized for servicing.

### Claim 18

An apparatus comprising:
a memory controller configured to receive a first request to access a shared memory from a first client of one or more clients configured to access the shared memory, wherein the memory controller comprises:
at least a first queue configured to hold the first request; and
logic configured to:
assign a series of one or more timeout values to the first request, based, at least in part on a priority associated with the first client;
increment a timer while the first request remains in the first queue; and
as the timer traverses each one of the one or more timeout values in the series, increment a criticality level of the first request.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the memory controller is configured to prioritize, for access to the shared memory, the first request over a second request in the first queue, if the first request has a higher criticality level than the second request.

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein a later timeout value in the series is smaller than an earlier timeout value, and wherein the criticality level of the first request increases at a faster rate as the timer traverses more timeout values.

### Claim 21 (depends on 18)

The apparatus of claim 18, wherein a later timeout value in the series is larger than an earlier timeout value, and wherein the criticality level of the first request increases at a slower rate as the timer traverses more timeout values.

### Claim 22 (depends on 18)

The apparatus of claim 18, wherein the priority associated with the first client is a pre-specified fixed priority or a dynamically modifiable priority, based, at least in part on a Quality-of-Service (QoS) class associated with the first client.

### Claim 23 (depends on 18)

The apparatus of claim 18, wherein the first client is a processor or a cache.

### Claim 24 (depends on 18)

The apparatus of claim 18, wherein the series of one or more timeout values are further based on an occupancy of the first queue.

### Claim 25 (depends on 18)

The apparatus of claim 18, wherein the first queue is at a backend of the memory controller configured the shared memory, wherein the memory controller is further configured to prioritize requests in the first queue based on one or more states of the shared memory.

### Claim 26 (depends on 25)

The apparatus of claim 25, wherein the one or more states comprise row hits, wherein requests of the first queue directed to a row of the shared memory with an open row buffer are prioritized for servicing.

### Claim 27 (depends on 25)

The apparatus of claim 25, wherein the one or more states comprise precharged banks, wherein requests of the first queue directed to a precharged bank of the shared memory are prioritized for servicing.

### Claim 28 (depends on 18)

The apparatus of claim 18, integrated into a device selected from the group consisting of a set top box, a server, a music player, a video player, an entertainment unit, a navigation device, a personal digital assistant (PDA), a fixed location data unit, a computer, a laptop, a tablet, a communications device, and a mobile phone.

### Claim 29

An apparatus comprising:
means for queuing a first request to access a shared memory received from a first client of one or more clients configured to access the shared memory;
means for assigning a series of one or more timeout values to the first request, based, at least in part on a priority associated with the first client;
means for incrementing a time value while the first request remains in the first queue; and
means for incrementing a criticality level of the first request as the time value traverses each one of the one or more timeout values in the series.

### Claim 30

A non-transitory computer readable storage medium comprising code, which, when executed by a processor, causes the processor to perform operations for managing access to a shared memory, the non-transitory computer readable storage medium comprising:
code for receiving, at a memory controller, a first request to access the shared memory from a first client of one or more clients configured to access the shared memory;
code for placing the first request in at least a first queue in the memory controller;
code for assigning a series of one or more timeout values to the first request, based, at least in part on a priority associated with the first client;
code for incrementing a timer while the first request remains in the first queue; and
code for incrementing a criticality level of the first request as the timer traverses each one of the one or more timeout values in the series.
