CN102455979B - Data protection method for damaged memory cell - Google Patents

Data protection method for damaged memory cell Download PDF

Info

Publication number
CN102455979B
CN102455979B CN201010522334.7A CN201010522334A CN102455979B CN 102455979 B CN102455979 B CN 102455979B CN 201010522334 A CN201010522334 A CN 201010522334A CN 102455979 B CN102455979 B CN 102455979B
Authority
CN
China
Prior art keywords
page
memory
backup
processing module
interruption processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201010522334.7A
Other languages
Chinese (zh)
Other versions
CN102455979A (en
Inventor
卢盈志
王郁蕙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui love love Electromechanical Technology Co., Ltd.
Original Assignee
Inventec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to CN201010522334.7A priority Critical patent/CN102455979B/en
Publication of CN102455979A publication Critical patent/CN102455979A/en
Application granted granted Critical
Publication of CN102455979B publication Critical patent/CN102455979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a data protection method for a damaged memory cell, comprising the following steps of: firstly, executing a startup program, and reserving in a memory some initial backup memory to be provided as a backup page for an interrupt processing module; then executing an operating system, detecting and correcting correctable errors appearing on each page by a memory controller, and accumulating the number of times; when the accumulated number of times is greater than a threshold value, judging that the page is a damaged page, and acquiring the backup page from the initial backup memory or dynamically acquiring the backup memory from the operating system to acquire the backup page, thereby backing up the data in the damaged page, and recording the mapping address of the damaged page to the backup page in a page mapping table in the memory controller; and when the operating system accesses the damaged page, the memory controller changes to the access backup page according to the page mapping table. The data protection method disclosed by the invention can realize data protection for a damaged memory cell under the conditions that the operating system is not modified and a spare memory module or a mirror memory is not reserved in advance.

Description

The data protecting method of impaired storage unit
Technical field
The invention relates to a kind of data protecting method, and relate to especially a kind of data protecting method of impaired storage unit.
Background technology
Along with the prosperity of electronics technology, the interchange of various information relies upon various Storage Medias invariably, and storer is wherein fast because of its operation rate, is to become Storage Media indispensable in computer.But, because transinformation increases day by day, also day by day promote for the requirement of transfer rate, cause system dealer to improve gradually for the requirement of memory span and speed.
But in improving memory span, the density of storage unit in storer (Memory Cell) also increases relatively, and along with integrated circuit is in the increase of semiconductor memory component upper density, the size of each storage unit just must reduce.Therefore, storage unit obtains less ruler, obtains it originally electric capacity in the situation that again at needs, the complexity that not only technique becomes, and under the requirement of system high-speed access, storage unit occurs that wrong probability also can increase.
The situation that storer makes a mistake can be divided into and can correct mistakes (Correctable Error, CE) and can not correct mistakes (Uncorrectable Error, UE).(Correctable Error can correct mistakes, CE) be generally identical element mistake (Single Bit Error, SBE) or the bit number making a mistake and seat electronic installation can extent of amendment in multidigit unit wrong (Multi-Bit Error, MBE).Wherein, can correct mistakes and still can flexibly revise by error-detecting and correction (Error Detection and Correction, EDC) method.For this kind of mistake, known technology is by the mode that configures (Spare) for subsequent use memory module in storer, using the use as data backup in the time that storer occurs to correct mistakes.But this shelf storage can take a large amount of storage space and cause the waste of storer, and data backup to the action of shelf storage also can be spent reasonable time, result declines the usefulness of entire system.
On the other hand, for correcting mistakes, known technology is to make memory-aided half as repeating (Mirror) storer, using the use as data correction in the time that storer occurs to correct mistakes.But this shelf storage can take the storage space of system half, result causes the waste of storer, and the usefulness of entire system is declined.
Summary of the invention
The invention provides a kind of data protecting method of impaired storage unit, by dynamically obtaining the backup page from operating system, to back up the data in impaired storage unit, can protect the data of impaired storage unit.
The present invention proposes a kind of data protecting method of impaired storage unit; be applicable to comprise the electronic installation of storer; this storer comprises Memory Controller and memory element; memory element is made up of multiple storage unit; and these storage unit are divided into multiple pages, each page comprises a part for said memory cells separately.The method is first to carry out boot program, and in this storer, retain some initial back-up storeies to offer interruption processing module use, interruption processing module is used this initial back-up storer to be used as the incipient backup page, and this initial back-up storer comprises at least one backup page and the multiple for the page.Then, executive operating system, and in the time of operating system read memory, see through Memory Controller and detect correcting mistakes that in each page of correction, storage unit occurs.Then, there is separately the number of times that can correct mistakes in the above-mentioned page of accumulative total, and with a threshold value comparison, and in the time having the number of times correcting mistakes of the page to be greater than threshold value, judge that this page is as the impaired page, and obtain the backup page by backup of memory, this backup of memory is initial back-up storer or the dynamic backup of memory (in the time that the page of initial backup of memory runs low) of obtaining from operating system, with by the data backup in this impaired page to backing up the page, and the mapping address of this impaired page and the backup page is recorded in to the page-map table in Memory Controller.Whereby, in the time of the impaired page of operating system access (access), by Memory Controller according to the mapping address in page-map table, change the data of the access backup page into.
In one embodiment of this invention, the step of above-mentioned execution boot program is more included in the district of system documentation of storer and retains a memory segments, using the use of the application module swap date of the interruption processing module as electronic installation and operating system.
In one embodiment of this invention, the step of above-mentioned execution boot program more comprises startup interruption processing module, and the system break function of activation while occurring when correcting mistakes.
In one embodiment of this invention, the step of above-mentioned executive operating system more comprises in the time that the page of initial backup of memory runs low, dynamically obtains backup of memory to operating system.Moreover the step of above-mentioned executive operating system more comprises that operating system obtains the memory segments of retained storer and the substrate address of initial back-up storer and size from BIOS, therefore operating system will can not be used this little storeies.
In one embodiment of this invention, the above-mentioned Memory Controller that sees through detects and revises storage unit occurs in each page the step correcting mistakes and be included in Memory Controller and detect and be adapted to can correct mistakes time, to occur that the page address that can correct mistakes is recorded in working storage, and send system break, to carry out interruption processing module.
In one embodiment of this invention, each page of above-mentioned accumulative total occurs that the step of the number of times that can correct mistakes comprises the page that the appearance of recording in the working storage by interruption processing module read memory controller can correct mistakes, and the number of times that can correct mistakes appears in this page of accumulative total.
In one embodiment of this invention, the above-mentioned step that dynamically obtains backup of memory from operating system comprises by interruption processing module and writes the memory segments that a page request retains in district of system documentation, follow the data by the memory segments of application module inspection system information data area, the page request of being sent to inspect interruption processing module, then obtain backup of memory to operating system, use to offer interruption processing module, interruption processing module is used as the backup page with this backup of memory and is used.
In one embodiment of this invention, the data of the above-mentioned memory segments by application module inspection system information data area, comprise the data that is used the memory segments of inquiry (Polling) method inspection system information data area by application module, the page request of being sent to inspect interruption processing module to inspect the step of the page request that interruption processing module sent.
In one embodiment of this invention, above-mentionedly obtain backup of memory by application module to operating system, comprise by application module the substrate address of backup of memory and size are recorded in to the memory segments retaining in district of system documentation to offer the step that interruption processing module uses, use to offer interruption processing module.
In one embodiment of this invention, above-mentionedly obtain backup of memory by application module, comprise by interruption processing module and inquire about a page use list to offer the step that interruption processing module uses, be used as backing up the page to obtain a vacant page from backup of memory, and the use state of this backup page is updated in use, and the behaviour in service of the impaired page is updated to impaired.
In one embodiment of this invention, above-mentioned by interruption processing module query page use table using from backup of memory, obtain the vacant page as backup the page step in, if find when interruption processing module query page use table, backup of memory is without the vacant page, system break function when forbidden energy occurs when correcting mistakes.
In one embodiment of this invention, above-mentioned by interruption processing module query page use table using from backup of memory, obtain the vacant page as backup the page step in, if find that the vacant page of backup of memory is few when interruption processing module query page use table, can be more dynamically obtain a storage space using as backup of memory from operating system.
In one embodiment of this invention, above-mentioned by interruption processing module query page use table using from backup of memory, obtain the vacant page as backup the page step in, if find when interruption processing module query page use table, backup of memory is without the vacant page, transmit a steering order (IPMI OEM command) to baseboard management controller, to be sent warning message by baseboard management controller.
In one embodiment of this invention, above-mentioned electronic installation comprises by traditional Basic Input or Output System (BIOS) (Legacy Basic Input/Output System, Legacy BIOS) or expand firmware interface Basic Input or Output System (BIOS) (Extensible Firmware Interface BIOS, EFI BIOS) and start shooting.
In one embodiment of this invention, above-mentioned correcting mistakes comprises identical element mistake, or the bit number making a mistake and seat electronic installation can extent of amendment in multidigit unit mistake.
Based on above-mentioned; the data protecting method of impaired storage unit of the present invention is to use the storage address of chipset to remap (remapping) method; the address of the impaired page is forwarded to the address of the normal page; therefore can and not retain in advance under the situation of (spare) memory module for subsequent use or deduplication storage in retouching operation system not, reach the information protection of impaired storage unit.
Brief description of the drawings
For above-mentioned purpose of the present invention, feature and advantage can be become apparent, below in conjunction with accompanying drawing, the specific embodiment of the present invention is elaborated, wherein:
Fig. 1 is the system architecture schematic diagram of the electronic installation that illustrates according to one embodiment of the invention.
Fig. 2 is the process flow diagram of the data protecting method of the impaired storage unit that illustrates according to one embodiment of the invention.
Fig. 3 is the process flow diagram of the data protecting method of the impaired storage unit that illustrates according to one embodiment of the invention.
Fig. 4 is the example of dynamically obtaining the backup page from operating system illustrating according to one embodiment of the invention.
Fig. 5 is the method flow diagram of dynamically obtaining the backup page from operating system illustrating according to one embodiment of the invention.
Fig. 6 is the example of the memory segments of reservation in the district of system documentation 160 illustrating according to one embodiment of the invention.
Fig. 7 (a) and Fig. 7 (b) are the examples of the renewal page use list that illustrates according to one embodiment of the invention.
Main element symbol description:
100: electronic installation
110: processor
120: storer
130: interruption processing module
140: Memory Controller
141: mistake is interrupted working storage
142: mistake page working storage
143: page size working storage
144: source page working storage
145: object page working storage
146: backup working storage
147: page-map table
150: storage unit
160: district of system documentation
161: request size
162: solicited status
163: respond size
164: respond substrate address
170: application module
180: operating system
710,720: page use list
S202~S212: the step of the data protecting method of the impaired storage unit of one embodiment of the invention
S302~S326: the step of the data protecting method of the impaired storage unit of one embodiment of the invention
S502~S510: the method step of dynamically obtaining the backup page from operating system of one embodiment of the invention
Embodiment
Because operating system can be seen the behaviour in service of whole storer, therefore for Hoisting System usefulness, being preferably the mode that storer is divided into the page manages, and there is to correct mistakes (Correctable Error in storage unit in each page, CE) number of times exceedes when a certain amount of, only this page is removed from storer.Whereby, except preventing to correct mistakes outside (Uncorrectable Error, UE), also can retain more storer and use to operating system, and then increase the usefulness of entire system.The present invention is the data protecting method of a kind of impaired storage unit of developing out according to above-mentioned concept, below for embodiment, its detailed embodiment is described.
Fig. 1 is the system architecture schematic diagram of the electronic installation that illustrates according to one embodiment of the invention.Please refer to Fig. 1,100 of the present embodiment comprises processor 110, storer 120 and interruption processing module 130, and the memory element 150 that storer 120 comprises Memory Controller 140 and is made up of multiple storage unit.Wherein, processor 110 is for example CPU (central processing unit) (Central Processing Unit, CPU), and memory element 150 is for example dynamic RAM (Dynamic Random Access Memory, DRAM) or the storer of other kinds, do not limit at this.In addition, interruption processing module 130 is for example system management interrupt handling procedure (System Management Interrupt handler, SMI handler), and in order to the received system management interrupt of service processor 110 (System Management Interrupt, SMI).
In detail, in the time of element triggering system management interrupt in electronic installation 100, can transmitting system management interrupt message to processor 110, and processor 110 is in the time receiving this signal, enter System Management Mode (System Management Mode, SMM), and by Basic Input or Output System (BIOS) (Basic InputOutput System, BIOS) executive system management interrupt handling procedure under this pattern, with service system management interrupt.
Fig. 2 is the process flow diagram of the data protecting method of the impaired storage unit that illustrates according to one embodiment of the invention.Please refer to Fig. 2, the method for the present embodiment is applicable to the electronic installation 100 of Fig. 1, with the detailed step of each element explanation the method in the electronic installation 100 of next collocation Fig. 1.
First, when after the electric power starting of electronic installation 100, carry out boot program by processor 110, and (this size will be the multiple of page size in storer 120, to retain an initial back-up storer, if for example page size is 8KB, this initial back-up storer can be 1MB) use for the backup page, operating system can not be used this initial back-up storer (step S202), and this backup of memory comprises at least one backup page.Wherein, processor 110 is for example to carry out traditional Basic Input or Output System (BIOS) (Legacy BasicInput/Output System, Legacy BIOS) or expansion firmware interface Basic Input or Output System (BIOS) (Extensible Firmware Interface BIOS, EFI BIOS) to start shooting, the practice that retains initial back-up storer is to use the E820h function of ACPI INT 15h to call out in the time of Legacy BIOS, and in the time of EFI BIOS, is to use EFI interface GetMemoryMap ().
After boot program completes, processor 110 is then carried out the operating system of electronic installation 100, and in the time of operating system read memory 120, detect and revise correct mistakes (the step S204) that in each page, storage unit occurs by Memory Controller 140.Above-mentioned correcting mistakes comprises identical element mistake, or the bit number making a mistake and seat electronic installation can extent of amendment in multidigit unit mistake, do not limit at this.
In detail, processor 110 for example can be first activation mistake interrupt working storage 141, the system break function that can correct mistakes while occurring with activation.And be adapted to can correct mistakes time when Memory Controller 140 detects, can in wrong page working storage 142, record and occur the page address that this can correct mistakes, and send system break, to carry out interruption processing module 130.And interruption processing module 130 page that to be also the appearance of recording in read error page working storage 142 can correct mistakes, and learn which page occurs to correct mistakes.
Then, there is the number of times that can correct mistakes by each pages of interruption processing module 130 accumulative total, and with a threshold value comparison, and judge whether the number of times being added up exceedes this threshold value (step S206).Threshold value is herein for example a preset value, or the numerical value of being set voluntarily by user.In detail, in the time that electronic installation 100 is started shooting, for example, can on the start-up picture of BIOS, show a configuration interface, set numerical value for user.
In the time that interruption processing module 130 judgements have the number of times correcting mistakes of the page to be greater than threshold value, be judged to be the impaired page by this page, and obtain a backup page by backup of memory, with by the data backup in the impaired page to backing up the page, need know that backup of memory is for initial back-up storer or dynamically by obtaining it (step S208) in operating system.
After data backup, interruption processing module 130 is recorded in the page-map table 147 (step S210) in Memory Controller 140 by the mapping address of the above-mentioned impaired page and the backup page.Wherein, interruption processing module 130 is for example to adopt storage address to remap (remapping) method, the address of the impaired page is mapped to the address of the backup page, and in the blank field of page-map table 147, insert respectively the address of the described impaired page and the backup page.
Whereby; in the time that next operating system is wanted the impaired page of access; Memory Controller 140 can be according to the mapping address in page-map table, changes the data (step S212) of the access backup page into, and reaches effect of the data of the impaired storage unit of protection.
Remap (remapping) method by above-mentioned storage address, operating system access be original address of the impaired page, but via the remapping of Memory Controller 140, final access to be the mapping address of the backup page.Therefore, in the present embodiment, the program of operating system is without change.
It should be noted that, in another embodiment, carrying out in the process of boot program at the processor 110 of electronic installation 100, also be included in the district of system documentation of storer 120 and retain a memory segments, using the use with the application module swap date of operating system as above-mentioned interruption processing module 130.Describe in detail for an embodiment again with next.
Fig. 3 is the process flow diagram of the data protecting method of the impaired storage unit that illustrates according to one embodiment of the invention.Please refer to Fig. 3, the method for the present embodiment is applicable to the electronic installation 100 of Fig. 1, with the detailed step of each element explanation the method in the electronic installation 100 of next collocation Fig. 1.
First,, when after the electric power starting of electronic installation 100, carry out boot program (step S302) by processor 110.In the time carrying out boot program, processor 110 is for example in the district of system documentation of storer 120, to retain a memory segments, the use (step S304) using the interruption processing module 120 as electronic installation 100 with the application module swap date of operating system.Wherein, processor 110 is for example that reserved address is the memory segments of 1 kilobyte (KB) between total volume between 9FC00h to 9FFFFh.
It should be noted that, above-mentioned processor 110 is for example to carry out Legacy BIOS to start shooting, and the memory segments that processor 110 retains is for example the information data area (Extended BIOS Data Area, EBDA) that is positioned at expansion Basic Input or Output System (BIOS).In another embodiment, processor 110 is for example to carry out to extend firmware interface BIOS (EFI BIOS) to start shooting, and uses this expansion firmware interface reserve storage section.The practice of the memory segments retaining is to use the E820h function of ACPI INT15h to call out in the time of Legacy BIOS, and in the time of EFI BIOS, is to use EFI BIOS interface GetMemoryMap ().Both,, only for illustrating, do not limit at this above.
Then, processor 110 ties up to and in storer 120, retains initial back-up storer and offer interruption processing module 130 and be used as the backup page and use (step S306).What need further illustrate is, interruption processing module 130 is used this initial back-up storer to be used as the backup page and uses, in the time that the page of initial backup of memory runs low, interruption processing module 130 obtains appropriate backup of memory (for example 1MB) by application module 170 capable of dynamics by operating system 180, in the time also being run low by the page of the obtained backup of memory of operating system, can be again from backup of memory that operating system is got, the rest may be inferred.Wherein, backup of memory comprises at least one backup page, and the address of these backup of memory blocks can be continuous or discontinuous memory block.This means, the capacity of backup of memory is the multiple of single page capacity, and for example, if page capacity is eight kilobyte (8KB), the capacity of backup of memory is the multiple (for example 1MB) of eight kilobyte.
Then, processor 110 can start interruption processing module (step S308).This interruption processing module is for example system management interrupt handling procedure, and can be in order to disposal system interrupt event.In addition the system break function (step S310) of processor 110 when also activation occurs when correcting mistakes.This means, in the time that Memory Controller 140 detects that being adapted to correct mistakes occurs, can triggering system interrupt and send system management interrupt message to processor 110, and by processor startup interruption processing module 130.Wherein, processor 110 is for example by the mistake of Memory Controller 140 is interrupted to working storage 141 activations, and the system break function that startup can correct mistakes while appearance.
It should be noted that, execute in the process of boot program at processor 110, also can be according to user's operation, carry out setting program (setup utility) or other Software tools of BIOS, revise the threshold value (for example: 5 times) of the number of times that can correct mistakes for user, or revise the page size (for example: 8KB) that Memory Controller uses, or initial back-up memory size (for example: the storer of 128 8KB page sizes, it is 1MB) and each backup of memory size of wanting to operating system is (for example: the storer of 128 8KB page sizes, it is 1MB).
When processor 110 executes after boot program, then be executive operating system (step S312), now operating system can be known the substrate address and size of the above-mentioned memory segments being retained in storer 120 by processor 110 and backup of memory by the interface of BIOS, therefore operating system will can not be used this little memory blocks.
In the time of operating system read memory 120, processor 110 is detected and is revised correct mistakes (the step S314) that in each page, storage unit occurs by Memory Controller 140.In detail, be adapted to can correct mistakes time when Memory Controller 140 detects, can in wrong page working storage 142, record and occur the page address that this can correct mistakes, and send system break, to carry out interruption processing module 130.And interruption processing module 130 is also the page that can correct mistakes by reading the appearance of recording in this wrong page working storage 142, and learn which page occurs to correct mistakes.
Then, there is the number of times that can correct mistakes by each pages of interruption processing module 130 accumulative total, and with a threshold value comparison, and judge whether the number of times being added up exceedes this threshold value (step S316).
In the time that interruption processing module 130 judgements have the number of times correcting mistakes of the page to be greater than threshold value, be judged to be the impaired page by this page, and by backup of memory obtain backup the page (step S318), with by the data backup in the impaired page to backing up the page.In detail, interruption processing module 130 is used initial back-up storer to be used as the backup page, but in the time that its backup page runs low, must dynamically obtain backup of memory from operating system, in detail, interruption processing module 130 is for example the memory segments retaining in the district of system documentation of storer 120 by above-mentioned processor 110, with the application module swap date in operating system, to obtain backup of memory.
If find when interruption processing module 130 query page use table, the vacant page of backup of memory runs low, again can be by the memory segments in the district of system documentation of storer 120, with the application module swap date in operating system, dynamically to obtain a storage space using as backup of memory from operating system.
For instance, Fig. 4 is the example of dynamically obtaining the backup page from operating system illustrating according to one embodiment of the invention.Fig. 5 is the method flow diagram of dynamically obtaining the backup page from operating system illustrating according to one embodiment of the invention.Referring to Fig. 4 and Fig. 5, the present embodiment is by transmission data between interruption processing module 130, district of system documentation 160, application module 170 and operating system 180, to obtain backup of memory from operating system 180.
In detail, the present embodiment is in the above-mentioned memory segments being retained in the district of system documentation 160 at storer 120 by processor 110, to write page request (step S502) by interruption processing module 130.
Then, inspected the data of the memory segments in this district of system documentation 160 by application module 170, the page request (step S504) of being sent to inspect interruption processing module 130.Wherein, application module 170 is for example to carry out the data of the memory segments of inspection system information data area 160 by inquiry (Polling) method, and inspects interruption processing module 130 and whether asking backup of memory.
In the time that application module 170 is inspected page request, it is call operation system 180, to obtain backup of memory (step S506), and the substrate address of obtained backup of memory and size are recorded in the memory segments in district of system documentation 160 (step S508).Finally, interruption processing module 130 is by the memory segments in this district of system documentation 160 of access, and obtains backup of memory (step S510).
Fig. 6 is the example of the memory segments of reservation in the district of system documentation 160 illustrating according to one embodiment of the invention.Wherein, district of system documentation 160 comprises request size 161, solicited status 162, the response size 163 that Fig. 6 illustrates and responds four fields such as substrate address 164.Wherein, interruption processing module 130 be for example request write in size 161 the size of backup of memory of wish request, and write 1 to trigger the request of this backup of memory at solicited status 162.Application module 170 is being obtained backup of memory from operating system 180, be recorded in respectively and respond size 163 and respond in substrate address 164 by the substrate address of obtained backup of memory and size record, and after record, write 0 at solicited status 162 and asked with representative.Whereby, interruption processing module 130 is responded size 163 and is responded substrate address 164 by reading this, obtains substrate address and the size of the backup of memory of asking.
Get back to the step S318 of Fig. 3, when interruption processing module 130 obtains after backup of memory, also further inquire about a page use list, be used as backing up the page to obtain a vacant page from backup of memory, and the use state of this backup page is updated in use, and the use state of the impaired page is updated to impaired (step S320).Wherein, described page use list is to be for example stored in the random access memory (RAM) of System Management Mode (SystemManagement Mode, SMM), does not limit at this.
For instance, Fig. 7 (a) and Fig. 7 (b) are the examples of the renewal page use list that illustrates according to one embodiment of the invention.Please refer to Fig. 7 (a) and Fig. 7 (b), the page use list 710 and 720 of the present embodiment comprises that page address and the page use two fields of state, page use list 710 be record the impaired page and backup the page virgin state, page use list 720 record the impaired page and backup the page renewal after state.In the present embodiment, 00 representing pages is normal condition; 01 representing pages is state in using; 10 representing pages are impaired state; 11 is reserved state.From Fig. 7 (a) and Fig. 7 (b), it is that the state of representing pages x is impaired state by state-transition in using that page x uses numeral in state field to change 10 into by 01 at the page, page y the page use numeral in state field by 00 change into 01 the state of representing pages y change use into by normal condition in state.
It should be noted that, if find when interruption processing module 130 query page use table, backup of memory is without the vacant page, and cannot obtain storage space from operating system again, i.e. representative cannot utilize backup of memory to back up the data of the impaired page, system break function forbidden energy when now interruption processing module 130 for example can occur correcting mistakes, or transfer control instruction (IPMI OEM command) is to baseboard management controller (Baseboard Management Controller, BMC), to be sent warning message by baseboard management controller, and apprizing system keeper carries out replacing or other appropriate action of memory component 150.
Upgrading after page use list, interruption processing module 130 by the data backup in the impaired page to backing up the page (step S322).Wherein, interruption processing module 130 is for example by the page size working storage 143 in the size write store controller 140 of the page, by source page working storage 144, object page working storage 145 in the address difference write store controller 140 of the impaired page and the backup page, and activation (being made as 1) backup working storage 146, and control store controller 140 by the data backup in the impaired page to backing up the page.And whether reply (being made as 0) by the state of inspecting backup working storage 146, can learn whether data backup completes.
After data backup, interruption processing module 130 is recorded in the page-map table 147 (step S324) in Memory Controller 140 by the mapping address of the above-mentioned impaired page and the backup page.Wherein, interruption processing module 130 is for example to adopt storage address to remap (remapping) method, the address of the impaired page is mapped to the address of the backup page, and in the blank field of page-map table 147, insert respectively the address of the described impaired page and the backup page.
Whereby; in the time that next operating system is wanted the impaired page of access; Memory Controller 140 can be according to the mapping address in page-map table, changes the data (step S326) of the access backup page into, and reaches effect of the data of the impaired storage unit of protection.
In sum, the data protecting method of impaired storage unit of the present invention is by storer being divided into multiple pages, and the number of times that storage unit occurs to correct mistakes in each page exceedes when a certain amount of, only this page is removed from storer.The mode that adopts this asymptotic expression to remove the page occurs except preventing to correct mistakes, and because use dynamical fashion, in the time that running low, the page of backup of memory just wants a backup of memory block to operating system, therefore be to want memory block in gradual mode to operating system, therefore also can provide more storer to use to operating system, therefore can increase the usefulness of entire system.
Although the present invention discloses as above with preferred embodiment; so it is not in order to limit the present invention, any those skilled in the art, without departing from the spirit and scope of the present invention; when doing a little amendment and perfect, therefore protection scope of the present invention is worked as with being as the criterion that claims were defined.

Claims (7)

1. the data protecting method of an impaired storage unit; be applicable to comprise an electronic installation of a storer; this storer comprises a Memory Controller and a memory element; this memory element is made up of multiple storage unit; and described multiple storage unit is divided into multiple pages; the described page comprises a part for described multiple storage unit separately, and the method comprises the following steps:
Carry out a boot program, and in this storer, retain an initial back-up storer to offer an interruption processing module use, this initial back-up storer comprises at least one backup page;
Carry out an operating system, and in the time that this operating system reads this storer, detect and can correcting mistakes of revising in each described page that storage unit occurs by this Memory Controller;
Accumulative total the described page there is separately the number of times that this can correct mistakes, and with a threshold value comparison;
In the time that the number of times correcting mistakes of one of described page is greater than this threshold value, judge that this page is as an impaired page, and obtain by this initial back-up storer or a backup of memory of dynamically obtaining from this operating system this at least one backup page one of them, to back up data in this impaired page to this backup page;
The page mapping table of the one mapping address of recording this impaired page and this backup page in this Memory Controller; And
In the time of this this impaired page of operating system access, according to this mapping address in page-map table, change the data of this backup page of access by this Memory Controller into;
The step of wherein carrying out this boot program more comprises:
In a district of system documentation of this storer, retain a memory segments, using the use of an application module swap date of the interruption processing module as this electronic installation and this operating system;
The step of wherein carrying out this operating system more comprises:
Obtain this memory segments of this retained storer and a substrate address of this initial back-up storer and size by this operating system;
This wherein appearance by storage unit in this Memory Controller detection and the each described page of correction can correct mistakes, and the each described page of accumulative total occurs that the step of this number of times that can correct mistakes comprises:
When this Memory Controller detects when being adapted to this and can correcting mistakes, record occurs that this this page that can correct mistakes is in a working storage, and sends a system break, to carry out this interruption processing module;
Read this this page that can correct mistakes of appearance recording in this working storage of this Memory Controller by this interruption processing module; And
There is the number of times that this can correct mistakes in this page of accumulative total.
2. the data protecting method of impaired storage unit as claimed in claim 1, is characterized in that, the step that dynamically obtains this backup of memory from this operating system comprises:
Write by this interruption processing module this memory segments that a page request retains in this district of system documentation;
Inspected the data of this memory segments in this district of system documentation by this application module, this page request of being sent to inspect this interruption processing module; And
Obtain this backup of memory by this application module to this operating system, use to offer this interruption processing module.
3. the data protecting method of impaired storage unit as claimed in claim 2, is characterized in that, is inspected the data of this memory segments in this district of system documentation by this application module, comprises with the step of inspecting this page request that this interruption processing module sent:
Use a method for inquiring or an interrupt method to inspect the data of this memory segments in this district of system documentation by this application module, this page request of being sent to inspect this interruption processing module.
4. the data protecting method of impaired storage unit as claimed in claim 2, is characterized in that, obtains this backup of memory by this application module to this operating system, comprises with the step that offers this interruption processing module use:
Record a substrate address of this backup of memory and this memory segments that a size retains in this district of system documentation by this application module, use to offer this interruption processing module.
5. the data protecting method of impaired storage unit as claimed in claim 2, is characterized in that, obtains this backup of memory by this application module, comprises with the step that offers this interruption processing module use:
Inquire about a page use list by this interruption processing module, to obtain a vacant page as this backup page from this backup of memory, and a use state that upgrades this backup page is in using, and this use state that upgrades this impaired page is impaired.
6. the data protecting method of impaired storage unit as claimed in claim 5, is characterized in that, inquires about this page use list by this interruption processing module, more comprises as the step of this backup page to obtain this vacant page from this backup of memory:
When the quantity of the vacant page of this backup of memory is less than a preset value if find when this interruption processing module is inquired about this page use list, dynamically obtain a storage space using as this backup of memory from this operating system.
7. the data protecting method of impaired storage unit as claimed in claim 1; it is characterized in that; this electronic installation comprises by a traditional type Basic Input or Output System (BIOS) (Legacy Basic Input/Output System; Legacy BIOS) or one expansion firmware interface Basic Input or Output System (BIOS) (Extensible Firmware Interface BIOS, EFI BIOS) start shooting.
CN201010522334.7A 2010-10-18 2010-10-18 Data protection method for damaged memory cell Active CN102455979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010522334.7A CN102455979B (en) 2010-10-18 2010-10-18 Data protection method for damaged memory cell

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010522334.7A CN102455979B (en) 2010-10-18 2010-10-18 Data protection method for damaged memory cell

Publications (2)

Publication Number Publication Date
CN102455979A CN102455979A (en) 2012-05-16
CN102455979B true CN102455979B (en) 2014-08-20

Family

ID=46039184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010522334.7A Active CN102455979B (en) 2010-10-18 2010-10-18 Data protection method for damaged memory cell

Country Status (1)

Country Link
CN (1) CN102455979B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107026812A (en) * 2015-06-25 2017-08-08 中兴通讯股份有限公司 A kind of page processing method and multimedia terminal
CN109408160B (en) * 2017-08-14 2021-08-31 志合讯息有限公司 Method for self-defining starting-up picture
CN108447520B (en) * 2018-05-03 2023-10-13 长鑫存储技术有限公司 Memory circuit device and memory detection method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0172745B1 (en) * 1995-12-29 1999-03-30 김주용 Flash memory device
CN100536027C (en) * 2006-07-07 2009-09-02 乐金电子(昆山)电脑有限公司 NAND flash memory reading method
CN101425334B (en) * 2007-10-30 2012-02-15 北京同方微电子有限公司 Method for implementing NOR FLASH bad block management and control circuit thereof
CN101499317B (en) * 2008-02-03 2011-12-21 力晶半导体股份有限公司 Memory device and data reading method
CN101751981B (en) * 2008-12-12 2014-04-30 苏州亮智科技有限公司 Method for protecting the safety of storing data in flash memory storing device

Also Published As

Publication number Publication date
CN102455979A (en) 2012-05-16

Similar Documents

Publication Publication Date Title
CN101840362B (en) Method and device for achieving copy-on-write snapshot
EP3161639B1 (en) Techniques for handling errors in persistent memory
US20110202728A1 (en) Methods and apparatus for managing cache persistence in a storage system using multiple virtual machines
US8566561B2 (en) Method to separate and persist static and dynamic portions of a control application
US20150186161A1 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
TW201222254A (en) Method for protecting data in damaged memory cells by dynamically switching memory mode
CN110780811B (en) Data protection method, device and storage medium
CN111858531B (en) Log storage method and system based on multi-core hard disk and related components
WO2021129056A1 (en) High-capacity emmc mirror image manufacturing method and apparatus
CN102959548A (en) Data storage method, search method and device
US20190227918A1 (en) Method for allocating memory resources, chip and non-transitory readable medium
CN102455979B (en) Data protection method for damaged memory cell
CN104516792A (en) Data backup method and device
US10157005B2 (en) Utilization of non-volatile random access memory for information storage in response to error conditions
US10042712B2 (en) Numerical controller
CN111130856A (en) Server configuration method, system, equipment and computer readable storage medium
CN113704177B (en) Storage method, system and related components of server firmware upgrade file
CN102479119A (en) Method for dynamically switching memory mode for protecting damaged memory cell data
CN101000570A (en) Opening configurated storage standby processing method and system on computer platform
CN111708783A (en) Data storage and data recovery method and device and electronic equipment
CN112162699A (en) Data reading and writing method, device and equipment and computer readable storage medium
CN102467422A (en) Data protecting method of damaged memory cell
CN106933558B (en) Power supply control method and device
CN111124459A (en) Method and device for updating service logic of FPGA cloud server
CN111488124A (en) Data updating method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191028

Address after: No. 592, Xingwang Road, high tech Zone, Bengbu City, Anhui Province

Patentee after: Anhui love love Electromechanical Technology Co., Ltd.

Address before: Taipei City, Taiwan Chinese Shilin District Hougang Street No. 66

Patentee before: Yingda Co., Ltd.