US-12619494-B2 - Storage device and operating method thereof
Abstract
A storage device includes a memory device and a memory controller. The memory device includes a first region including a memory block storing n bit(s) per memory cell, where n is a natural number of 1 or more, and a second region including a memory block storing m bits per memory cell, where m is a natural number greater than n. The memory controller sets an operation mode of a background media scan to one of a normal mode in which a temperature of the memory device is within a set range and an abnormal mode in which the temperature of the memory device is out of the set range, and perform the background media scan on at least one of the first region and the second region based on operation condition information of the background media scan, which respectively correspond to normal mode and abnormal mode.
Inventors
- Jang Hun YUN
Assignees
- SK Hynix Inc.
Dates
- Publication Date
- 20260505
- Application Date
- 20240117
- Priority Date
- 20230705
Claims (14)
- 1 . A storage device comprising: a memory device including a first region including a memory block storing n bit(s) per memory cell and a second region including a memory block storing m bits per memory cell, where n is a natural number of 1 or more and m is a natural number greater than n; and a memory controller configured to set an operation mode of a background media scan to one of a first mode in which a temperature of the memory device is within a set range and a second mode in which the temperature of the memory device is out of the set range, and perform the background media scan on at least one of the first region and the second region, based on operation condition information of the background media scan corresponding to one of the first mode and the second mode, wherein, in the second mode, the memory controller is configured to perform the background media scan on the first region and to suspend the background media scan on the second region.
- 2 . The storage device of claim 1 , wherein the memory controller is configured to: read a selected page among a plurality of pages included in one memory block during a background period in which the memory device is in an idle state; and copy data stored in the one memory block to another memory block when an error bit number included in data read from the selected page exceeds an error threshold value.
- 3 . The storage device of claim 2 , wherein the selected page includes one of a first page, a middle page, a last page, a random page, and a predetermined weak page among the plurality of pages.
- 4 . The storage device of claim 1 , wherein, in the second mode, the memory controller is configured to perform the background media scan on the first region and the second region, based on an error threshold value higher than an error threshold value in the first mode.
- 5 . A memory controller comprising: a volatile memory configured to store operation condition information of a background media scan, which correspond to one of a first mode in which a temperature of a memory device is within a set range and a second mode in which the temperature of the memory device is out of the set range; and a processor configured to generate temperature information representing whether an operation mode of the background media scan is the first mode in which the temperature of the memory device is within the set range, set the operation mode of the background media scan to one of the first mode and the second mode, based on the temperature information, and perform the background media scan on at least one of a first region and a second region, which are included in the memory device, based on the operation condition information, wherein the first region includes a memory block storing n bit(s) per memory cell, where n is a natural number of 1 or more, and the second region includes a memory block storing m bits per memory cell, where m is a natural number greater than n, and wherein, in the second mode, the processor is configured to perform the background media scan on the first region and to suspend the background media scan on the second region.
- 6 . The memory controller of claim 5 , wherein the processor is configured to: read a selected page among a plurality of pages included in one memory block during a background period in which the memory device is in an idle state; and copy data stored in the one memory block to another memory block when an error bit number included in data read from the selected page exceeds an error threshold value.
- 7 . The memory controller of claim 6 , wherein the selected page includes one of a first page, a middle page, a last page, a random page, and a predetermined weak page among the plurality of pages.
- 8 . The memory controller of claim 5 , wherein the volatile memory is configured to store the operation condition information in which: in the first mode, the background media scan on the first region and the second region is allowed; and in the second mode, the background media scan on the first region is allowed and the background media scan on the second region is inhibited.
- 9 . The memory controller of claim 5 , wherein the volatile memory is configured to store the operation condition information in which: in the first mode, an error threshold value as a trigger condition of the background media scan on each of the first region and the second region is set to a default value; and in the second mode, the error threshold value of each of the first region and the second region is set higher than the default value.
- 10 . The memory controller of claim 5 , wherein, in the second mode, the processor is configured to perform the background media scan on the first region and the second region, based on an error threshold value higher than an error threshold value in the first mode.
- 11 . A method of operating a memory controller, the method comprising: generating temperature information representing whether an operation mode of a background media scan is a first mode in which a temperature of a memory device is within a set range, or a second mode in which the temperature of the memory device is out of the set range; setting the operation mode of the background media scan to one of the first mode and the second mode, based on the temperature information; and performing the background media scan on at least one of a first region and a second region, which are included in the memory device, based on operation condition information of the background media scan, which correspond to one of the first mode and the second mode, wherein the first region includes a memory block storing n bit(s) per memory cell, where n is a natural number of 1 or more, and the second region includes a memory block storing m bit(s) per memory cell, where n is a natural number greater than n, and wherein performing of the background media scan comprises, in the second mode, performing the background media scan on the first region and suspending the background media scan on the second region.
- 12 . The method of claim 11 , further comprising: reading a selected page among a plurality of pages included in one memory block during a background period in which the memory device is in an idle state; and copying data stored in the one memory block to another memory block when an error bit number included in data read from the selected page exceeds an error threshold value.
- 13 . The method of claim 11 , wherein the selected page includes one of a first page, a middle page, a last page, a random page, and a predetermined weak page among the plurality of pages.
- 14 . The method of claim 11 , further comprising: performing, in the second mode, the background media scan on the first region and the second region, based on an error threshold value higher than an error threshold value in the first mode.
Description
CROSS-REFERENCE TO RELATED APPLICATION The present application claims priority under 35 U.S.C. § 119 (a) to Korean patent application number 10-2023-0087126 filed on Jul. 5, 2023, the entire disclosure of which is incorporated by reference herein. BACKGROUND 1. Field of Invention Embodiments of the present disclosure generally relate to an electronic device, and more particularly, to a storage device and an operating method thereof. 2. Description of Related Art A storage device is a device which stores data according to a request from a host device such as a computer or a smart phone. The storage device may include a memory device for storing data and a memory controller for controlling the memory device. The memory device may be a volatile memory device or a nonvolatile memory device. The memory controller may perform a background operation on the memory device to improve the reliability of the memory device and/or to increase the lifetime of the memory device. For example, the memory controller may perform a background media scan on memory blocks included in the memory device during a background period in which the memory device is in an idle state. The background media scan may be an operation of copying data stored in one memory block to another memory block when an error bit number of data read from a page included in the memory block exceeds an error threshold value. The memory controller may reduce error occurrence according to retention occurring when a memory block is not used during a certain period, through the background media scan. SUMMARY Embodiments of the present disclosure provide a storage device capable of controlling (i.e., restraining) a background media scan in an abnormal mode in which the temperature of a memory device is out of a set range, and an operating method of the storage device. In accordance with one aspect of the present disclosure, there is provided a storage device including: a memory device including a first region including a memory block storing n bit(s) per memory cell, where n is a natural number of 1 or more, and a second region including a memory block storing m bits per memory cell, where m is a natural number greater than m, and a memory controller configured to set an operation mode of a background media scan to one of a normal mode in which a temperature of the memory device is within a set range and an abnormal mode in which the temperature of the memory device is out of the set range according to whether the operation mode of the background media scan is the normal mode or the abnormal mode, and perform the background media scan on at least one of the first region and the second region, which are included in the memory device, based on operation condition information of the background media scan, which respectively correspond to the normal mode and the abnormal mode. In accordance with another aspect of the present disclosure, there is provided a memory controller including: a volatile memory configured to store operation condition information of a background media scan, which respectively correspond to a normal mode in which a temperature of a memory device is within a set range and an abnormal mode in which the temperature of the memory device is out of the set range; and a processor configured to generate temperature information representing whether an operation mode of the background media scan is the normal mode in which the temperature of the memory device is within the set range, set the operation mode of the background media scan to one of the normal mode and the abnormal mode based on the temperature information, and perform the background media scan on at least one of a first region and a second region which are included in the memory device, based on the operation condition information, wherein the first region includes a memory block storing n bit(s) per memory cell, where n is a natural number of 1 or more, and the second region includes a memory block storing m bits per memory cell, where m is a natural number greater than n. In accordance with still another aspect of the present disclosure, there is provided a method of operating a memory controller, the method including: generating temperature information representing whether an operation mode of a background media scan is a normal mode in which a temperature of a memory device is within a set range or an abnormal mode in which the temperature of the memory device is out of the set range; setting the operation mode of the background media scan to one of the normal mode and the abnormal mode, based on the temperature information; and performing the background media scan on at least one of a first region and a second region which are included in the memory device, based on operation condition information of the background media scan, which respectively correspond to the normal mode and the abnormal mode, wherein the first region includes a memory block storing n bit(s) per memory cell, where n