# US 2021/0342093 A1 · Memory controller and operating method thereof

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

- Number: US 2021/0342093 A1
- Document ID: US20210342093A1
- Status: Published application
- Kind: A1
- Application number: 17/037,876
- Filed: 2020-09-30
- Published: 2021-11-04
- Earliest claimed: 2020-04-29
- Assignees: SK hynix Inc.
- Applicants: SK hynix Inc.
- Inventors: RENGARAJA SUDARMANI
- Web page: https://patentgrep.com/patent/US20210342093A1

## CPC

- G06F 3/0658: {Controller construction arrangements}
- G06F 3/0617: {in relation to availability}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory controller for controlling a memory device includes a host interface and a background controller. The host interface communicates with a host through a link, determines whether quality of the link has been degraded by monitoring the quality of the link, and performs a link recovery operation on the link when it is determined that the quality of the link is degraded. The background controller controls the memory device to perform a background operation, while the link recovery operation is being performed.

## Claims

### Claim 1

A memory controller for controlling a memory device, the memory controller comprising:
a host interface configured to communicate with a host through a link, determine whether quality of the link has been degraded by monitoring the quality of the link, and perform a link recovery operation on the link when it is determined that the quality of the link is degraded; and
a background controller configured to control the memory device to perform a background operation, while the link recovery operation is being performed.

### Claim 2 (depends on 1)

The memory controller of claim 1, wherein the host interface includes:
a link monitoring component configured to monitor the quality of the link, and generate link quality information representing whether the quality of the link has been degraded based on a result of the monitoring; and
a link manager configured to perform the link recovery operation based on the link quality information, and generate link recovery time information on the link recovery operation.

### Claim 3 (depends on 1)

The memory controller of claim 1, wherein the background controller includes:
a background queue configured to store multiple background commands; and
a queue controller configured to determine an order in which the multiple background commands are provided to the memory device, based on the link recovery time information, and provide at least one background command to the memory device based on the determined order.

### Claim 4 (depends on 3)

The memory controller of claim 3, wherein the queue controller stores command processing time information on each of the multiple background commands, and determines a target background command to be preferentially provided to the memory device, among the multiple background commands, based on a result obtained by comparing the command processing time information with the link recovery time information.

### Claim 5 (depends on 4)

The memory controller of claim 4, wherein the queue controller determines the target background command such that a maximum number of background commands, among the multiple background commands, is processed, while the link recovery operation is being performed.

### Claim 6 (depends on 4)

The memory controller of claim 4, wherein the queue controller determines the target background command such that a background command of which command processing time is a reference time or less, among the multiple background commands, is preferentially processed, while the link recovery operation is being performed.

### Claim 7 (depends on 4)

The memory controller of claim 4, wherein the queue controller determines the target background command such that a background command of which command processing time is a reference time or more, among the multiple background commands, is preferentially processed, while the link recovery operation is being performed.

### Claim 8 (depends on 4)

The memory controller of claim 4, wherein the queue controller determines the target background command such that a background command of which command processing time is longest, among the multiple background commands, is preferentially processed, while the link recovery operation is being performed.

### Claim 9 (depends on 3)

The memory controller of claim 3, wherein the link manager generates link recovery initiation information representing a time at which the link recovery operation is initiated and link recovery finish information representing a time at which the link recovery operation is finished.

### Claim 10 (depends on 9)

The memory controller of claim 9, wherein the queue controller starts to provide at least one background command from the background queue to the memory device in response to the link recovery initiation information, and suspends providing any background command remaining in the background queue to the memory device in response to the link recovery finish information.

### Claim 11 (depends on 2)

The memory controller of claim 2, wherein the link recovery operation compensates for quality degradation of the link by equalizing, to a corresponding reference condition, at least one of a voltage condition, a current condition, and a temperature condition of the link.

### Claim 12 (depends on 1)

The memory controller of claim 1, wherein the background operation includes at least one of a read reclaim operation, a garbage collection operation, and a wear leveling operation.

### Claim 13

A method for operating a memory controller for controlling a memory device, the method comprising:
determining whether quality of a link for communication with a host has been degraded based on a result obtained by monitoring the quality of the link;
performing a link recovery operation on the link when it is determined that the quality of the link is degraded; and
controlling the memory device to perform a background operation, while the link recovery operation is being performed.

### Claim 14 (depends on 13)

The method of claim 13, further comprising generating link recovery time information on the link recovery operation.

### Claim 15 (depends on 14)

The method of claim 14,
wherein the memory controller includes a background queue configured to store multiple background commands, and
wherein the controlling of the memory device to perform the background operation includes:
determining an order in which the multiple background commands are provided to the memory device based on the link recovery time information; and
providing at least one background command to the memory device based on the determined order.

### Claim 16 (depends on 15)

The method of claim 15, wherein the determining of the order in which the multiple background commands are provided to the memory device includes:
comparing command processing time information on each of the at least one background command with the link recovery time information; and
determining a target background command to be preferentially provided to the memory device, among the multiple background commands, based on a result of the comparing.

### Claim 17 (depends on 15)

The method of claim 15, wherein the providing of the at least one background command to the memory device includes:
starting to provide at least one background command from the background queue to the memory device when the link recovery operation is initiated; and
suspending providing of any background command remaining in the background queue to the memory device when the link recovery operation is finished.

### Claim 18 (depends on 13)

The method of claim 13, wherein the performing of the link recovery operation includes equalizing, to a corresponding reference condition, at least one of a voltage condition, a current condition, and a temperature condition of the link.

### Claim 19 (depends on 18)

The method of claim 18, wherein the reference condition is determined according to a protocol applied to the link or is determined according to a request of the host.

### Claim 20 (depends on 13)

The method of claim 13, wherein the background operation includes at least one of a read reclaim operation, a garbage collection operation, and a wear leveling operation.
