IP Library Granted Patent US 7,487,392
Granted Patent B2
US 7,487,392 · App. 11/388,640 · Granted Feb 3, 2009

Data storage device, and method for rewriting data in nonvolatile memory

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,487,392
App. No.
11/388,640
Granted
Feb 3, 2009
Kind
B2
Abstract

Data in a nonvolatile memory included in a data storage device is rewritten with higher security. According to one embodiment of the present invention, if an error is included in data stored in a nonvolatile semiconductor memory, the HDD rewrites correct data to the nonvolatile semiconductor memory. In particular, during the execution sequence of a write command, the HDD executes rewrite processing of control data stored in the nonvolatile semiconductor memory. More specifically, data is rewritten during a specified period of time that falls within a period of time starting from a start notification of write-data transfer processing that is sent from the HDD to the host, until a command completion notification. Since there is a very small possibility that the power of the host may be interrupted during this specified period of time, it is possible to securely rewrite data.

Claims (39)

1. A data storage device that writes, to a medium, write data transferred from a host, said data storage device comprising:

a nonvolatile memory configured to store data, said nonvolatile memory being electrically rewritable; and

a controller configured to perform control operation according to data stored in the nonvolatile memory;

wherein said controller executes rewrite processing of data stored in the nonvolatile memory during a specified period of time that falls within a period of time starting from a write-data transfer processing start notification sent to a host until a command completion notification sent to the host.

2. A data storage device according to claim 1 , wherein:

when data is read out from the nonvolatile memory and is loaded into a volatile memory, said controller executes error-correction processing and registers information about an error location thereof, and then performs rewrite processing of data corresponding to the registered error location on the nonvolatile memory.

3. A data storage device according to claim 1 , wherein:

after initialization processing performed when power is turned ON, said controller executes rewrite processing of data stored in the nonvolatile memory in an execution sequence of a first write command.

4. A data storage device according to claim 1 , wherein:

after completion of the rewrite processing, said controller returns the command completion notification to the host.

5. A data storage device according to claim 4 , wherein:

if a write cache of the data storage device is in an ON state, when all write data of the rewrite processing has been stored in a buffer, the rewrite processing is completed; and

if the write cache of the data storage device is in an OFF state, when all write data of the rewrite processing has been written to the medium, the rewrite processing is completed.

6. A data storage device according to claim 1 , wherein:

said controller starts the rewrite processing of the control data in response to the write-data transfer processing start notification.

7. A nonvolatile-memory rewriting method for a data storage device that writes, to a medium, write data transferred from a host, said method comprising:

reading out data from a nonvolatile memory that is electrically rewritable, and loading the data into a volatile memory, and then registering error information about the loaded data; and

during a specified period of time that falls within a period of time starting from a write-data transfer processing start notification sent to a host until a command completion notification sent to the host, executing rewrite processing of the data stored in the nonvolatile memory with reference to the error information.

8. A nonvolatile-memory rewriting method for a data storage device, according to claim 7 , wherein:

when the data is loaded into the volatile memory, data correction processing is executed, and error-address information is registered.

9. A nonvolatile-memory rewriting method for a data storage device, according to claim 7 , wherein:

if said rewrite processing is not completed in the timing when the command completion notification is ready to be transmitted to the host, the command completion notification is transmitted to the host after the completion of the rewrite processing.

10. A nonvolatile-memory rewriting method for a data storage device, according to claim 9 , wherein:

if a write cache of the data storage device is in an ON state, when all write data of the rewrite processing has been stored in a buffer, the rewrite processing is completed; and

if the write cache of the data storage device is in an OFF state, when all write data of the rewrite processing has been written to the medium, the rewrite processing is completed.

11. A nonvolatile-memory rewriting method, used in a data storage device, according to claim 7 , wherein:

after initialization processing performed when power is turned ON, said rewrite processing is executed in an execution sequence of a first write command.

12. A magnetic disk drive comprising:

a magnetic disk to which write data transferred from a host is written;

a nonvolatile semiconductor memory configured to store control data, said nonvolatile semiconductor memory being electrically rewritable; and

a controller configured to perform control operation according to control data stored in the nonvolatile semiconductor memory;

wherein:

when data is read out from the nonvolatile memory and the data is loaded into a volatile memory, said controller executes error-correction processing, and registers information about an error location thereof; and

after initialization processing performed when power is turned ON, in an execution sequence of a first write command, said controller performs rewrite processing of data corresponding to the registered error location on the nonvolatile memory during a specified period of time that falls within a period of time starting from a write-data transfer processing start notification sent to a host until a command completion notification sent to the host.

13. A magnetic disk drive according to claim 12 , wherein:

after completion of the write command processing, said controller judges whether or not the rewrite processing to the nonvolatile memory has been completed, and after the rewrite processing is completed, said controller transmits the command completion notification to the host.

14. A magnetic disk drive according to claim 13 , wherein:

if a write cache of the data storage device is in an ON state, when all write data of the rewrite processing has been stored in a buffer, the rewrite processing is completed; and

if the write cache of the data storage device is in an OFF state, when all write data of the rewrite processing has been written to the magnetic disk, the rewrite processing is completed.

Assignments (12)
SECURITY AGREEMENT (SUPPLEMENTAL) Recorded Nov 14, 2024
From: WESTERN DIGITAL TECHNOLOGIES, INC.
To: JPMORGAN CHASE BANK, N.A., AS COLLATERAL AGENT
Reel/Frame 069411/0208 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 11, 2024
From: SANDISK TECHNOLOGIES, INC.
To: WESTERN DIGITAL TECHNOLOGIES, INC.
Reel/Frame 069168/0273 →
PATENT COLLATERAL AGREEMENT Recorded Aug 23, 2024
From: SANDISK TECHNOLOGIES, INC.
To: JPMORGAN CHASE BANK, N.A., AS THE AGENT
Reel/Frame 068762/0494 →
CHANGE OF NAME Recorded Jun 27, 2024
From: SANDISK TECHNOLOGIES, INC.
To: SANDISK TECHNOLOGIES, INC.
Reel/Frame 067982/0032 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 29, 2024
From: WESTERN DIGITAL TECHNOLOGIES, INC.
To: SANDISK TECHNOLOGIES, INC.
Reel/Frame 067567/0682 →
PATENT COLLATERAL AGREEMENT - DDTL LOAN AGREEMENT Recorded Aug 21, 2023
From: WESTERN DIGITAL TECHNOLOGIES, INC.
To: JPMORGAN CHASE BANK, N.A.
Reel/Frame 067045/0156 →
PATENT COLLATERAL AGREEMENT - A&R LOAN AGREEMENT Recorded Aug 21, 2023
From: WESTERN DIGITAL TECHNOLOGIES, INC.
To: JPMORGAN CHASE BANK, N.A.
Reel/Frame 064715/0001 →
RELEASE OF SECURITY INTEREST AT REEL 052915 FRAME 0566 Recorded Feb 8, 2022
From: JPMORGAN CHASE BANK, N.A.
To: WESTERN DIGITAL TECHNOLOGIES, INC.
Reel/Frame 059127/0001 →
SECURITY INTEREST Recorded Feb 6, 2020
From: WESTERN DIGITAL TECHNOLOGIES, INC.
To: JPMORGAN CHASE BANK, N.A., AS AGENT
Reel/Frame 052915/0566 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 6, 2016
From: HGST NETHERLANDS B.V.
To: WESTERN DIGITAL TECHNOLOGIES, INC.
Reel/Frame 040821/0550 →
CHANGE OF NAME Recorded Oct 25, 2012
From: HITACHI GLOBAL STORAGE TECHNOLOGIES NETHERLANDS B.V.
To: HGST NETHERLANDS B.V.
Reel/Frame 029341/0777 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 28, 2006
From: KAWA, TADAHISA; KANAMARU, ATSUSHI; KOWA, TSUGUAKI
To: HITACHI GLOBAL STORAGE TECHNOLOGIES NETHERLANDS B.V.
Reel/Frame 017544/0347 →