CN101814007B - Hard disk access method and system supporting highest hard disk transmission rate - Google Patents

Hard disk access method and system supporting highest hard disk transmission rate Download PDF

Info

Publication number
CN101814007B
CN101814007B CN2009100078467A CN200910007846A CN101814007B CN 101814007 B CN101814007 B CN 101814007B CN 2009100078467 A CN2009100078467 A CN 2009100078467A CN 200910007846 A CN200910007846 A CN 200910007846A CN 101814007 B CN101814007 B CN 101814007B
Authority
CN
China
Prior art keywords
hard disk
maximum transmission
transmission rate
controller
transfer rate
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
CN2009100078467A
Other languages
Chinese (zh)
Other versions
CN101814007A (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.)
Via Technologies Inc
Original Assignee
Via Technologies Inc
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 Via Technologies Inc filed Critical Via Technologies Inc
Priority to CN2009100078467A priority Critical patent/CN101814007B/en
Publication of CN101814007A publication Critical patent/CN101814007A/en
Application granted granted Critical
Publication of CN101814007B publication Critical patent/CN101814007B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a hard disk access method and a hard disk access system supporting a highest hard disk transmission rate, which are suitable for accessing data of a hard disk by using a controller. Both the controller and the hard disk support a plurality of transmission rates. The hard disk access method comprises the following steps: obtaining the highest hard disk transmission rate which can be supported by the hard disk, wherein when the controller is reading the data in the hard disk, the transmission rate of the hard disk is not lower than the highest hard disk transmission rate, and maintaining the transmission rate of the hard disk at the highest transmission rate to read the data of the hard disk; and when the controller is to write the data into the hard disk, lowering the transmission rate to a transmission rate which is lower than the highest hard disk transmission rate and maintaining the transmission rate of the hard disk at the highest hard disk transmission rate to write the data into the hard disk. Therefore, the access of the highest hard disk transmission rate can be maintained.

Description

Support the hard disk access method and the system of hard disk maximum transmission rate
Technical field
The invention relates to a kind of hard disk access method and system, and particularly relevant for a kind of hard disk access method and system that supports the hard disk maximum transmission rate.
Background technology
Along with the progress of electronics technology, and mobile phone, personal digital assistant (Personal Digital Assistant, PDA), mobile computer etc. does not take up space and portable mobile device is also weeded out the old and bring forth the new.These mobile devices obtain numerous users' favor gradually by the function of its compact volume and diversification, suddenly become one of the most popular in the market commodity.The processor of collocation high speed and the Storage Media of high power capacity; The function that these mobile devices can be gathered each item fashion; Except general photograph, conversation, function of surfing the Net; High-order functions such as multimedia, recreation, navigation also can be incorporated on the mobile device now, therefore the user can be provided more convenient and diversified function.
For this type mobile device, the supply of its electric power is a very important ring.In order to let system when getting into idle state, can reduce the power that is consumed, generally can get into a relatively CPU enhancing electric source modes (CPU Enhanced Power Mode) of power saving.Under this pattern; (Phase Locked Loop PLL) will be closed, and sends interruption (Interrupt) or direct memory access (Direct Memory Access up to hard disk to be positioned at the phase-locked loop of controller; During requiring DMA); Controller just can send power management event, and (Power Management Event, information PME) is to wake CPU up.Yet; After CPU is waken up, might make the phase deviation of transmission signals between controller and the hard disk because of the defective on the hardware designs; Cause the frequency signal of controller can't correctly be synchronized with the frequency signal of hard disk, and produce the problem of harddisk access mistake.The transmission speed that just can only reduce hard disk this moment is to exchange the stable of system for.
For instance; Integrate at present and drive electronics (Integrated Drive Electronics; IDE) standard specification of hard disk can be supported 7 high speed direct memory accesss (Ultra Direct Memory Access, the transfer rate (as shown in table 1 below) that UDMA) pattern, each pattern are all corresponding specific.Wherein, transfer rate is raise by pattern 0 to pattern 6 gradually, and with the transfer rate 133MB/s of pattern 6 for the highest.
Pattern Pattern 0 Pattern 1 Pattern 2 Mode 3 Pattern 4 Pattern 5 Pattern 6
Transfer rate 16.7 MB/s 25.0 MB/s 33.3 MB/s 44.4 MB/s 66.7 MB/s 100 MB/s 133 MB/s
Table 1
Synoptic diagram for existing hard disk access method shown in Figure 1.Please with reference to Fig. 1; Suppose the 100MB/s of the present supported maximum transmission rate of hard disk that uses as pattern 5; After system gets into battery saving mode, if when desiring that waken system comes access hard disk once more, just might generator controller and hard disk between the phase deviation of transmission signals.Because controller and hard disk need operate on the environment of synchronous access,, read or write so that hard disk is carried out data so can exchange the stability of system this moment through the transfer rate that reduces hard disk and controller simultaneously for, for example drops to pattern 4 from pattern 5.Yet such practice (for example: the 133MB/s of transfer rate pattern 5) will sacrifice the supported maximum transmission rate of hard disk.That is to say that when the controller reading of data, hard disk can carry out with the mode of transfer rate pattern 5 originally, but is based on the consideration of phase deviation, thus can only carry out with the mode of transfer rate pattern 4, and cause the usefulness of entire system to descend.
Summary of the invention
For addressing the above problem, the present invention provides a kind of hard disk access method and system that supports the hard disk maximum transmission rate, utilizes software mode to bring up the asynchronous access environment, can keep the access of hard disk flank speed.The frequency signal of accommodation controller access hard disk can normally read and the access hard disk data under the situation that does not influence the hard disk maximum transmission rate.
The present invention proposes a kind of hard disk access method of supporting the hard disk maximum transmission rate; Be used for data by a controller access one hard disk; Wherein this controller and this hard disk are all supported a plurality of transfer rates, and this hard disk access method comprises the following steps: to obtain the highest maximum transmission rate that can support of this hard disk; And this controller to be being not less than the transfer rate of this maximum transmission rate, and the transfer rate of keeping this hard disk is in this maximum transmission rate, to read the data of this hard disk.
The step that obtains the highest this maximum transmission rate that can support of this hard disk comprises:
When a main frame is started shooting, send a recognition instruction and give this hard disk, to inquire the highest this maximum transmission rate that can support of this hard disk.
After the step that obtains the highest this maximum transmission rate that can support of this hard disk, also comprise:
Judge whether this maximum transmission rate equals a preset transfer rate; And if equal this preset transfer rate; Inserting the transfer rate lower than this preset transfer rate controls in the buffer in a pattern of this controller; And declare that one advances rank power interface source language sign indicating number, so that the highest this maximum transmission rate that can support of this hard disk is informed an operating system.
After inserting the transfer rate that preset transfer rate is low than this and declaring this step of advancing rank power interface source language sign indicating number, also comprise: this operating system gets into a powder source management mode; Receive the access signal that this hard disk sends by this controller; Send power management event to a PMU by this controller, to wake a processor up; And to reply this operating system be a normal manipulation mode.
This controller comprises with the step that the transfer rate that is not less than this maximum transmission rate reads the data of this hard disk: this controller is ignored numerical value in the pattern control buffer to the control of controller.
The transfer rate of keeping this hard disk comprises in the step of this maximum transmission rate with the data that read this hard disk: the highest this maximum transmission rate that can support of this hard disk is informed an operating system.
Reduce transfer rate to the transfer rate lower of this controller, and the transfer rate of keeping this hard disk is in this maximum transmission rate, to write data in this hard disk than this maximum transmission rate.
Reduce transfer rate to the transfer rate lower of this controller than this maximum transmission rate; And the transfer rate of keeping this hard disk is in this maximum transmission rate; Comprise in the step of this hard disk to write data: the transfer rate that reduces this controller is to the transfer rate than the low single order of this maximum transmission rate, and wherein this controller and this hard disk are supported multistage transfer rate.
The invention also discloses a kind of harddisk access system that supports the hard disk maximum transmission rate, comprising: a hard disk, support a plurality of transfer rates, comprise its highest maximum transmission rate that can support; An and controller; Support those transfer rates; Be connected to this hard disk through a transmission interface, in order to obtain the highest this maximum transmission rate that can support of this hard disk, wherein this controller is to be not less than the transfer rate of this maximum transmission rate; And the transfer rate of keeping this hard disk is in this maximum transmission rate, to read the data of this hard disk through this controller.
When a main frame is started shooting, send a recognition instruction through this controller and give this hard disk, to inquire the highest this maximum transmission rate that can support of this hard disk.
One pattern control buffer is disposed in the controller; Wherein this system judges whether this maximum transmission rate equals a preset transfer rate; And when this maximum transmission rate equals this preset transfer rate; Insert the transfer rate lower and control in buffer, and declare that one advances rank power interface source language sign indicating number, so that the highest this maximum transmission rate that can support of this hard disk is informed an operating system in this pattern than this preset transfer rate.
This controller comprises with the data that read this hard disk with the transfer rate that is not less than this maximum transmission rate: this controller is ignored numerical value in the pattern control buffer to the control of controller.
The transfer rate of keeping this hard disk comprises with the data that read this hard disk in this maximum transmission rate: the highest this maximum transmission rate that can support of this hard disk is informed an operating system.
This controller is with the transfer rate lower than this maximum transmission rate, and the transfer rate of keeping this hard disk is in this maximum transmission rate, to write data in this hard disk through this controller.
Transfer rate to the transfer rate lower than this maximum transmission rate that reduces this controller comprises: the transfer rate that reduces this controller is the transfer rate than the low single order of this maximum transmission rate, and wherein this controller and this hard disk are supported multistage transfer rate.
The transfer rate of keeping this hard disk comprises with the data that read this hard disk in this maximum transmission rate: the highest this maximum transmission rate that can support of this hard disk is informed an operating system.
Based on above-mentioned, the present invention supports hard disk access method and the system of hard disk maximum transmission rate improve the controller access hard disk by adaptability frequency supporting the hard disk maximum transmission rate, and can be normally from the hard disk reading of data.In addition, by adaptability the frequency of controller access hard disk is reduced to the transfer rate lower than hard disk, and can normally data be write hard disk.The asynchronous access environment can be brought up by above-mentioned software mode, and the access of hard disk maximum transmission rate can be kept.
Description of drawings
Fig. 1 is the synoptic diagram of existing hard disk access method;
Fig. 2 is the hard disk access method process flow diagram according to the support hard disk maximum transmission rate shown in one embodiment of the invention;
Fig. 3 is the hard disk access method process flow diagram according to the support hard disk maximum transmission rate shown in one embodiment of the invention;
Fig. 4 is the example according to the hard disk access method of the support hard disk maximum transmission rate shown in one embodiment of the invention;
Fig. 5 is the harddisk access system block diagrams according to the support hard disk maximum transmission rate shown in one embodiment of the invention.
Wherein, Reference numeral:
500: harddisk access system 510: main frame
512: processor 514: controller
516: pattern control buffer 520: hard disk
530: transmission interface
S202 ~ S206: each step of the hard disk access method of the support hard disk maximum transmission rate of one embodiment of the invention
S302 ~ S320: each step of the hard disk access method of the support hard disk maximum transmission rate of one embodiment of the invention
Embodiment
Generally speaking, controller (for example: hard disk controller) when access hard disk, all must be that the environment in synchronous access carries out, that is the frequency signal of the frequency signal of controller and hard disk is synchronous.Produce phase deviation for fear of signal, all be to solve with the mode that hard disk reduces transfer rate with controller in the past.The present invention utilizes the mode of software to bring up the environment of asynchronous access, solves the problem of above-mentioned phase deviation.So-called " environment of asynchronous access " is meant: when reading of data; Controller can be not less than the supported maximum transmission rate of hard disk transfer rate (for example: the maximum transmission rate in the hard disk standard specification or with the identical transfer rate of the supported maximum transmission rate of hard disk); Hard disk is read, and no longer be subject to the control of the numerical value that writes in " pattern control buffer " for the transfer rate of controller; When writing data, then be by the numerical value that writes in " pattern control buffer ", the frequency of controller access hard disk is reduced to than the hard disk low transfer rate of transfer rate originally.In view of the above, compared to mode in the past, not only hard disk can continue to keep supported maximum transmission rate originally, reads and writes to carry out data, also can avoid the situation of transmission signals generation phase deviation.In order to make content of the present invention more clear, below specially lift the example that embodiment can implement as the present invention really according to this.
Fig. 2 is the hard disk access method process flow diagram according to the support hard disk maximum transmission rate shown in one embodiment of the invention.Please with reference to Fig. 2, present embodiment is suitable for the data by the controller access hard disk, and this controller and hard disk for example are to support multistage transfer rate as shown in table 1.Wherein, said controller for example is to be arranged in chipset or the South Bridge chip group that the north and south bridge is integrated, and hard disk is configurable in main frame (for example: mobile devices such as mobile phone, personal digital assistant or mobile computer) or be connected in outside the main frame.The hard disk that is disposed in the main frame for example is to integrate to drive electronics (Integrated Drive Electronics; IDE) hard disk; And the external connected hand disk that the hard disk that is connected in the outside of main frame for example can be controlled by controller by the transmission interface conversion, present embodiment does not limit its scope.
At first, main frame is in when start, can reach earlier the highest transfer rate (step S202) that can support of hard disk.At length say; Main frame is at its basic input/output (Basic Input/Output System; BIOS) (Power-On Self Test in process POST), can pass through input/output end port (Input/Output Port to carry out the start selftest; IO port) sends recognition instruction (Identify Command) and give hard disk, (for example: the 133MB/s of transfer rate pattern 5) with the supported maximum transmission rate of inquiry hard disk.This supported maximum transmission rate will be declared into rank power interface source language (Advanced Configuration&Power Interface SourceLanguage by the basic input/output utilization; ASL) mode of sign indicating number is informed the maximum transmission rate that this hard disk of operating system can be supported.Particularly, operating system can be informed with reference to the numerical value that writes in " pattern control buffer " by system in the past, and then the transfer rate of control hard disk; Yet, in the present invention, be the result who informs the supported maximum transmission rate of operating system inquiry hard disk through basic input/output, and then the transfer rate of control hard disk.
Might take place under the situation of phase deviation at transmission signals between controller and hard disk; Controller is when reading hard disk; The present invention is according to the characteristic of the design architecture of controller own; Can ignore the control of the numerical value that writes in " pattern control buffer ", and, read to be not less than the transfer rate of the supported maximum transmission rate of hard disk for the transfer rate of controller.That is to say; Controller of the present invention can be with transfer rate the highest in the hard disk transfer rate standard (high speed direct memory access (Ultra Direct MemoryAccess for example; UDMA) the transfer rate 133MB/s of pattern 6); Or the transfer rate identical with the supported maximum transmission rate of hard disk (for example: the 133MB/s of transfer rate pattern 5), hard disk is carried out data read action.At this moment, hard disk still can continue to maintain the transfer rate that basic input/output is informed operating system for the setting of transfer rate, i.e. the maximum transmission rate (step S204) that can support of hard disk itself.
Say that at length on hardware designs, above-mentioned controller can be supported the various transfer rates of hard disk transfer rate standard.In addition, for controller of the present invention and hard disk, high-frequency device has can compatible low frequency device and can read the characteristic of low frequency device signal downwards.Therefore; When controller when reading hard disk; Based on above-mentioned characteristic, controller can with the maximum transmission rate in the hard disk transfer rate standard (for example: pattern 6) or the transfer rate identical with the supported maximum transmission rate of hard disk (for example: pattern 5) read; And for hard disk, its setting for transfer rate still can continue to maintain the transfer rate that basic input/output is informed operating system, and promptly the maximum transmission rate that can support of hard disk itself (for example: pattern 5).And, based on above-mentioned characteristic, do not have conflicting problem between controller and the hard disk.Therefore in the present invention, controller can read the hard disk than low transmission rate, and problem that can generation signals phase deviation, and can the transfer rate of hard disk be continued to maintain the maximum transmission rate that hard disk can be supported.
On the other hand; Controller is when writing hard disk; Can the transfer rate of controller itself be reduced to than the low transfer rate of the supported maximum transmission rate of hard disk; Simultaneously also hard disk is maintained the maximum transmission rate that hard disk itself can be supported for the setting of transfer rate, and then hard disk is carried out data write activity (step S206).At length say; Can read the data that write by controller in order to ensure hard disk; Present embodiment than the low single order of the supported maximum transmission rate of hard disk or lower transfer rate (for example: pattern 4) can be reduced to the transfer rate of controller; And can read equally the characteristic of low frequency device signal based on high-frequency device of the present invention, hard disk is when receiving the data that write by controller, also with regard to problem that can not generation signals phase deviation; And can the transfer rate of hard disk be continued maintain the transfer rate that basic input/output is informed operating system, promptly the maximum transmission rate that can support of hard disk itself (for example: pattern 5).
By above-mentioned hard disk access method, can avoid the asynchronous situation that causes the harddisk access mistake because of signal phase between controller and hard disk.Be that the nonsynchronous situation of above-mentioned signal phase usually occurs in that system gets into behind the battery saving mode once more the wake up process device and processor is desired under the situation of access hard disk what this need stress.To this situation, the present invention provides corresponding method with access hard disk data normally, specifies with the next embodiment that lifts again.
Fig. 3 is the hard disk access method process flow diagram according to the support hard disk maximum transmission rate that one embodiment of the invention illustrated.Please with reference to Fig. 3; The present embodiment taking into account system is carried out the situation that CPU strengthens electric source modes powder source management modes such as (CPU Enhanced Power Mode); Guaranteeing that hard disk keeps under the situation of maximum transmission rate, still can let controller (for example: access hard disk data normally hard disk controller).Wherein, said controller for example is to be arranged in chipset or the South Bridge chip group that the north and south bridge is integrated, and hard disk is configurable in main frame (for example: mobile devices such as mobile phone, personal digital assistant or mobile computer) or be connected in outside the main frame.The hard disk that is disposed in the main frame for example is to integrate to drive electronics (Integrated Drive Electronics; IDE) hard disk; And the external connected hand disk that the hard disk that is connected in the outside of main frame for example can be controlled by controller by the transmission interface conversion, present embodiment does not limit its scope.
At first, main frame is carried out in the process of start selftest at its basic input/output, sends recognition instruction to hard disk through input/output end port, to obtain the maximum transmission rate (step S302) that hard disk can be supported.
It should be noted that; Produce the signal phase skew during for fear of system's turnover powder source management mode; Present embodiment limits to the transfer rate that access errors might appear in system; When main frame is obtained the maximum transmission rate that hard disk can support, promptly can be relatively with this hard disk maximum transmission rate and preset transfer rate, and judge whether this hard disk maximum transmission rate equals preset transfer rate (step S304).Wherein, said preset transfer rate promptly is that the transfer rate of access errors might appear in system by dealer's test in advance.
If the supported maximum transmission rate of hard disk just equals preset transfer rate; Then can the transfer rate of controller be reduced to than low single order of preset transfer rate or lower transfer rate (step S306) by basic input/output (BIOS); And in the pairing pattern control of controller buffer, insert the corresponding numerical value of this transfer rate, make its compliance with system demand.And can continue to maintain supported maximum transmission rate in order to ensure hard disk; Basic input/output (BIOS) also can be directed against the supported maximum transmission rate of the hard disk of being obtained and declare that is advanced rank power interface source language sign indicating numbers (ASL), uses and informs that operating system hard disk still can support this maximum transmission rate (step S308).
If the supported maximum transmission rate of hard disk is not equal to preset transfer rate; Or inserted in the pattern control buffer than preset transfer rate and hanged down after single order or the lower corresponding numerical value of transfer rate; Just do not have the nonsynchronous problem of transmission speed; Promptly can get into powder source management mode (step S310), and wait for next incident to carry out next action when leaving unused above a Preset Time when operating system this moment.Wherein, operating system for example can (Phase Locked Loop PLL) closes, and uses to reach less electricity consumption with the phase-locked loop of controller when getting into powder source management mode.
Yet, getting in the process of powder source management mode in operating system, controller still can continue to detect and receive the access signal (step S312) that hard disk sends.This access signal for example is to interrupt (Interrupt) signal or direct memory access (Direct Memory Access, DMA) request.And when receiving access signal, controller promptly can send the PMU of power management event to main frame, uses the processor (step S314) of wake-up master, and the operating system answer is normal manipulation mode (step S316).
What deserves to be mentioned is; After processor is waken up; If the supported maximum transmission rate of hard disk equals preset transfer rate, and main frame is when desiring to read hard disk, can ignore the control for the transfer rate of controller of the numerical value that writes in " pattern control buffer "; And to be not less than the transfer rate of the supported maximum transmission rate of hard disk, read.That is to say; Controller of the present invention can be with the maximum transmission rate in the hard disk transfer rate standard (being the transfer rate 133MB/s of pattern 6); Or the transfer rate identical with the supported maximum transmission rate of hard disk (for example: the 133MB/s of transfer rate pattern 5), hard disk is carried out data read action.At this moment, hard disk still can continue to maintain the transfer rate that basic input/output is informed operating system for the setting of transfer rate, i.e. the maximum transmission rate (step S318) that can support of hard disk itself.
On the other hand; Controller is when writing hard disk; Can the transfer rate of controller itself be reduced to than low single order of the supported maximum transmission rate of hard disk or lower transfer rate; Simultaneously also hard disk is maintained the maximum transmission rate that hard disk itself can be supported for the setting of transfer rate, and then hard disk is carried out data write activity (step S320).
For instance, Fig. 4 is the example according to the hard disk access method of the support hard disk maximum transmission rate shown in one embodiment of the invention.Please with reference to Fig. 4, its supported maximum transmission rate of hard disk that the present embodiment hypothesis is used at present is the 100MB/s of pattern 5, and the transfer rate that access errors can take place in system also is the 100MB/s of pattern 5.In addition, the preset transfer rate of system's entering battery saving mode is the 66.7MB/s of pattern 4.Under these conditions; When main frame is obtained the highest transfer rate of supporting of hard disk (being pattern 5); Can check promptly whether it is the transfer rate that access errors possibly take place; And because the transfer rate of access errors just possibly take place the highest transfer rate of supporting of hard disk exactly; This moment, main frame can pass through basic input/output (BIOS) with in the pairing pattern of the pattern 4 value corresponding writing controllers control buffer, got into the condition of battery saving mode and avoided taking place the pattern of access errors with compliance with system, and the while declares that by basic input/output is advanced a rank power interface source language sign indicating number; To inform that operating system hard disk still can support mode 5, replace the mode of in the past controlling the transfer rate of hard disk by the numerical value in the pattern control buffer.In view of the above, can keep under the situation that the hard disk transfer rate is a pattern 5, let system normally get into battery saving mode (being pattern 4).
It should be noted that; After system gets into battery saving mode; If when desiring that the wake up process device reads hard disk once more; For avoiding contingent signal phase skew (if the supported maximum transmission rate of hard disk equals preset transfer rate); This moment is because the characteristic of the design architecture of controller of the present invention own, can ignore the control for the transfer rate of controller of the numerical value that writes in the pattern control buffer, thus controller can with transfer rate the highest in the hard disk transfer rate standard (for example: pattern 6) or the transfer rate identical with the supported maximum transmission rate of hard disk (for example: pattern 5) read.On the other hand, because basic input/output (BIOS) has informed that operating system hard disk still can support this supported maximum transmission rate, so the transfer rate of hard disk still continues the 100MB/s of the pattern that maintains 5.Then, by controller hard disk is carried out data and read action, like this then can keep under the situation of hard disk flank speed transmission, normally read the data in the hard disk and keep the stability of system.
On the other hand; After system gets into battery saving mode; If desire to wake up once more CPU; And when writing hard disk by controller, for avoiding contingent signal phase skew (if the supported maximum transmission rate of hard disk equals preset transfer rate), this moment the pattern control buffer that system can Read Controller numerical value.Owing to inserted than low single order of preset transfer rate or the lower corresponding numerical value of transfer rate in the pattern control buffer, so the transfer rate of corresponding controller can be reduced to the 66.7MB/s of pattern 4.Moreover, because basic input/output (BIOS) has informed that operating system hard disk still can support this supported maximum transmission rate, so the transfer rate of hard disk still continues the 100MB/s of the pattern that maintains 5.Then, hard disk is carried out the data write activity by controller, like this then can keep under the situation of hard disk flank speed transmission, normally data are write hard disk and keep the stability of system.
By above-mentioned hard disk access method; Even replying again, operating system is normal manipulation mode after getting into powder source management mode; Still can be by the transfer rate of accommodation controller; Thereby avoid the situation of signal generation phase deviation between controller and hard disk, and then increase the stability of system.
What deserves to be mentioned is; To above-mentioned hard disk access method; The present invention also provides corresponding system architecture; Hard disk controller) and the communication and coordination between hard disk (for example:, and accommodation is recorded in the transfer rate numerical value in the pattern control buffer, and the data that can come access hard disk by this transfer rate parameter by controller.Specify with the next embodiment that lifts again.
Fig. 5 is the harddisk access system block diagrams according to the support hard disk maximum transmission rate that one embodiment of the invention illustrated.Please with reference to Fig. 5, the harddisk access system 500 of present embodiment comprises main frame 510, hard disk 520 and transmission interface 530.Wherein, Main frame 510 for example is mobile devices such as mobile phone, personal digital assistant or mobile computer; Hard disk 520 for example is to integrate to drive electronic hard disc or external connected hand disk, and transmission interface 530 for example is to integrate to drive electrical interface or can make the transmission translation interface of external connected hand disk by 514 controls of the controller in the main frame 510.In one embodiment, hard disk 520 is configurable in main frame 510 with transmission interface 530, and present embodiment does not limit its scope.The detailed functions division of above-mentioned each assembly is following:
Main frame 510 for example is to support all transfer rates in the standard specification as shown in table 1, and hard disk 520 for example is the some that can support these transfer rates, and comprises maximum transmission rate of support.
Main frame 510 comprises processor 512 and controller 514, and controller 514 then comprises pattern control buffer 516.Wherein, controller 514 (for example is: hard disk controller), can be connected to hard disk 520 through transmission interface 530, and can obtain 520 maximum transmission rates that can support of hard disk.Say that at length main frame 510 is carried out in the process of start selftest at its basic input/output, send recognition instruction through input/output end port, and be sent to hard disk 520, with the maximum transmission rate of inquiry hard disk 520 through transmission interface 530.
After obtaining the hard disk maximum transmission rate; Main frame 510 will judge further whether this transfer rate is higher than preset transfer rate; And when this hard disk maximum transmission rate is higher than preset transfer rate; To preset the transfer rate value corresponding and insert in the pattern control buffer 516, and declare into rank power interface source language sign indicating number, use the operating system of this hard disk maximum transmission rate being informed main frame 510 by its basic input/output.
Produce phase deviation for fear of signal; Controller 514 is when reading hard disk 520 data; Can ignore and write numerical value in " pattern control buffer 516 " for the control of the transfer rate of controller 514; And to be not less than the transfer rate of the supported maximum transmission rate of hard disk, read.That is to say that controller 514 of the present invention can be with the maximum transmission rate in the hard disk transfer rate standard, or with the identical transfer rate of hard disk 520 supported maximum transmission rates, hard disk 520 is carried out data reads action.At this moment, hard disk 520 still can continue to maintain the transfer rate that basic input/output is informed operating system for the setting of transfer rate, i.e. hard disk 520 maximum transmission rates that can support own.
On the other hand; Controller 514 is when writing hard disk 520; Can controller 514 transfer rates own be reduced to than low single order of hard disk maximum transmission rate or lower transfer rate; Simultaneously also hard disk 520 is maintained the maximum transmission rates that hard disk 520 can be supported itself for the setting of transfer rate, and then will carry out the data write activity hard disk 520.
Above-mentioned harddisk access system architecture can be applied in the system of all mobile devices, and can under the situation of not sacrificing the hard disk read performance, come supporting signal that the situation of phase deviation possibly take place with the mode of software.Particularly; In the running of hard disk; The number of times that hard disk is read is obviously greater than the number of times that hard disk is write, and therefore, controller of the present invention does not receive the influence of the numerical value in the pattern control buffer; And make hard disk can continue to maintain the maximum transmission rate that it can be supported, and then hard disk is carried out data read action.In addition, this harddisk access system more can support CPU to strengthen powder source management mode signal Synchronization down such as electric source modes, and its detailed operation workflow can repeat no more at this with reference to the explanation among the previous embodiment.
In sum; The present invention supports hard disk access method and the system of the hard disk maximum transmission rate transfer rate by accommodation controller itself; Keep the maximum transmission rate of hard disk simultaneously; Even mobile device is replied down from battery saving mode, still can support the access action of hard disk maximum transmission rate, and keep the stability of system.In addition, the mode of utilizing software to bring up the asynchronous access environment not only can break through the restriction of hardware, also can significantly reduce hardware and change the cost that is consumed.
Though the present invention with embodiment openly as above; But it is not in order to limit the present invention; Any person of ordinary skill in the field; Do not breaking away from the spirit and scope of the present invention, when doing a little change and modification, so protection scope of the present invention is as the criterion when looking the accompanying Claim book person of defining.

Claims (16)

1. a hard disk access method of supporting the hard disk maximum transmission rate is used for the data by a controller access one hard disk, and wherein this controller and this hard disk are all supported a plurality of transfer rates, it is characterized in that, this hard disk access method comprises the following steps:
Obtain the highest maximum transmission rate that can support of this hard disk; And
This controller reads the data of this hard disk with the transfer rate that is not less than this maximum transmission rate, and the transfer rate of when reading the data of this hard disk, keeping this hard disk is in this maximum transmission rate.
2. the hard disk access method of support hard disk maximum transmission rate as claimed in claim 1 is characterized in that, the step that obtains the highest this maximum transmission rate that can support of this hard disk comprises:
When a main frame is started shooting, send a recognition instruction and give this hard disk, to inquire the highest this maximum transmission rate that can support of this hard disk.
3. the hard disk access method of support hard disk maximum transmission rate as claimed in claim 1 is characterized in that, after the step that obtains the highest this maximum transmission rate that can support of this hard disk, also comprises:
Judge whether this maximum transmission rate equals a preset transfer rate; And
If equal this preset transfer rate; Inserting the transfer rate lower than this preset transfer rate controls in the buffer in a pattern of this controller; And declare that one advances rank power interface source language sign indicating number, so that the highest this maximum transmission rate that can support of this hard disk is informed an operating system.
4. the hard disk access method of support hard disk maximum transmission rate as claimed in claim 3 is characterized in that, after inserting the transfer rate that preset transfer rate is low than this and declaring this step of advancing rank power interface source language sign indicating number, also comprises:
This operating system gets into a powder source management mode;
Receive the access signal that this hard disk sends by this controller;
Send power management event to a PMU by this controller, to wake a processor up; And
It is a normal manipulation mode that this operating system is replied.
5. the hard disk access method of support hard disk maximum transmission rate as claimed in claim 1; It is characterized in that this controller comprises with the step that the transfer rate that is not less than this maximum transmission rate reads the data of this hard disk: this controller is ignored numerical value in the pattern control buffer to the control of controller.
6. the hard disk access method of support hard disk maximum transmission rate as claimed in claim 1; It is characterized in that the transfer rate of keeping this hard disk comprises in the step of this maximum transmission rate with the data that read this hard disk: the highest this maximum transmission rate that can support of this hard disk is informed an operating system.
7. the hard disk access method of support hard disk maximum transmission rate as claimed in claim 1 is characterized in that, also comprises:
The transfer rate that reduces this controller to than the low transfer rate of this maximum transmission rate writing data in this hard disk, and the transfer rate of when writing data in this hard disk, keeping this hard disk is in this maximum transmission rate.
8. the hard disk access method of support hard disk maximum transmission rate as claimed in claim 7; It is characterized in that; Reduce transfer rate to the transfer rate lower of this controller than this maximum transmission rate; And the transfer rate of keeping this hard disk comprises in the step of this hard disk to write data in this maximum transmission rate:
The transfer rate that reduces this controller is to the transfer rate than the low single order of this maximum transmission rate, and wherein this controller and this hard disk are supported multistage transfer rate.
9. a harddisk access system that supports the hard disk maximum transmission rate is characterized in that, comprising:
One hard disk is supported a plurality of transfer rates, comprises its highest maximum transmission rate that can support; And
One controller is supported those transfer rates, is connected to this hard disk through a transmission interface, in order to obtain the highest this maximum transmission rate that can support of this hard disk, wherein
This controller reads the data of this hard disk with the transfer rate that is not less than this maximum transmission rate, and the transfer rate of when reading the data of this hard disk, keeping this hard disk is in this maximum transmission rate.
10. the harddisk access system of support hard disk maximum transmission rate as claimed in claim 9 is characterized in that, when a main frame is started shooting, sends a recognition instruction through this controller and gives this hard disk, to inquire the highest this maximum transmission rate that can support of this hard disk.
11. the harddisk access system of support hard disk maximum transmission rate as claimed in claim 9; It is characterized in that; Comprise that also pattern control buffer is disposed in the controller; Wherein this system judges whether this maximum transmission rate equals a preset transfer rate, and when this maximum transmission rate equals this preset transfer rate, inserts the transfer rate lower than this preset transfer rate to control in buffer in this pattern; And declare that one advances rank power interface source language sign indicating number, so that the highest this maximum transmission rate that can support of this hard disk is informed an operating system.
12. the harddisk access system of support hard disk maximum transmission rate as claimed in claim 9; It is characterized in that this controller comprises with the data that read this hard disk with the transfer rate that is not less than this maximum transmission rate: this controller is ignored numerical value in the pattern control buffer to the control of controller.
13. the harddisk access system of support hard disk maximum transmission rate as claimed in claim 9; It is characterized in that the transfer rate of keeping this hard disk comprises with the data that read this hard disk in this maximum transmission rate: the highest this maximum transmission rate that can support of this hard disk is informed an operating system.
14. the harddisk access system of support hard disk maximum transmission rate as claimed in claim 9; It is characterized in that; This controller writes data in this hard disk with the transfer rate lower than this maximum transmission rate, and the transfer rate of when writing data in this hard disk, keeping this hard disk is in this maximum transmission rate.
15. the harddisk access system of support hard disk maximum transmission rate as claimed in claim 14; It is characterized in that; Transfer rate to the transfer rate lower than this maximum transmission rate that reduces this controller comprises: the transfer rate that reduces this controller is the transfer rate than the low single order of this maximum transmission rate, and wherein this controller and this hard disk are supported multistage transfer rate.
16. the harddisk access system of support hard disk maximum transmission rate as claimed in claim 14; It is characterized in that; The transfer rate of keeping this hard disk comprises with the data that read this hard disk in this maximum transmission rate: the highest this maximum transmission rate that can support of this hard disk is informed an operating system.
CN2009100078467A 2009-02-19 2009-02-19 Hard disk access method and system supporting highest hard disk transmission rate Active CN101814007B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100078467A CN101814007B (en) 2009-02-19 2009-02-19 Hard disk access method and system supporting highest hard disk transmission rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100078467A CN101814007B (en) 2009-02-19 2009-02-19 Hard disk access method and system supporting highest hard disk transmission rate

Publications (2)

Publication Number Publication Date
CN101814007A CN101814007A (en) 2010-08-25
CN101814007B true CN101814007B (en) 2012-05-02

Family

ID=42621273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100078467A Active CN101814007B (en) 2009-02-19 2009-02-19 Hard disk access method and system supporting highest hard disk transmission rate

Country Status (1)

Country Link
CN (1) CN101814007B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779138B (en) * 2011-05-13 2016-04-13 上海振华重工(集团)股份有限公司 The hard disk access method of real time data
CN104636267B (en) * 2013-11-11 2018-01-12 群联电子股份有限公司 Memory control methods, memory storage apparatus and memorizer control circuit unit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6622252B1 (en) * 2000-04-12 2003-09-16 International Business Machines Corporation Data storage device having selectable performance modes for use in dual powered portable devices
JP2005107806A (en) * 2003-09-30 2005-04-21 Hitachi Computer Peripherals Co Ltd Data backup method and backup device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6622252B1 (en) * 2000-04-12 2003-09-16 International Business Machines Corporation Data storage device having selectable performance modes for use in dual powered portable devices
JP2005107806A (en) * 2003-09-30 2005-04-21 Hitachi Computer Peripherals Co Ltd Data backup method and backup device

Also Published As

Publication number Publication date
CN101814007A (en) 2010-08-25

Similar Documents

Publication Publication Date Title
US10078363B2 (en) Non main CPU/OS based operational environment
EP1356366B9 (en) Computer peripheral device that remains operable when central processor operations are suspended
EP4036689B1 (en) Power down mode for universal flash storage (ufs)
US7783905B2 (en) Method for reducing power consumption of a computer system in the working state
CN101416137B (en) Power-optimized frame synchronization for multiple USB controllers with non-uniform frame rates
US7406610B2 (en) Computing system with low power states and proxy for integration with legacy application software
US9116694B2 (en) Efficient low power exit sequence for peripheral devices
CN101351762A (en) Method and apparatus for a zero voltage processor sleep state
US9417686B2 (en) Method for controlling power on a computer system having a network device and a wakeup function
CN102385562A (en) Method for interaction between computer and data
CN101814007B (en) Hard disk access method and system supporting highest hard disk transmission rate
CN103105920A (en) Energy-saving system and energy-saving method
CN101908028B (en) Method and system for realizing input/output (IO) expansion through standard secure digital (SD) memory interface
TWI389104B (en) Method and system for accessing hard drive supporting maximum transmitting rate of hard drive
CN110633002A (en) Processing circuit and power management method thereof
CN219105413U (en) Finance portable main board and panel computer based on Feiteng treater
CN107590087A (en) The hard disk access method of a kind of electronic equipment and electronic equipment
US20050086408A1 (en) MS silicon card with bi-interface
CN116955256A (en) Shenwei double-display-card embedded system based on Chiplet architecture
CN117971325A (en) Awakening method and chip circuit
CN201111248Y (en) Embedded type multimedia self-help terminal equipment

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