JP2010237991A - Buffer degeneration system, device, and method - Google Patents

Buffer degeneration system, device, and method Download PDF

Info

Publication number
JP2010237991A
JP2010237991A JP2009085799A JP2009085799A JP2010237991A JP 2010237991 A JP2010237991 A JP 2010237991A JP 2009085799 A JP2009085799 A JP 2009085799A JP 2009085799 A JP2009085799 A JP 2009085799A JP 2010237991 A JP2010237991 A JP 2010237991A
Authority
JP
Japan
Prior art keywords
buffer
degeneration
capacity
area
failure
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.)
Granted
Application number
JP2009085799A
Other languages
Japanese (ja)
Other versions
JP5278117B2 (en
Inventor
Hiroteru Yamakawa
裕照 山川
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2009085799A priority Critical patent/JP5278117B2/en
Publication of JP2010237991A publication Critical patent/JP2010237991A/en
Application granted granted Critical
Publication of JP5278117B2 publication Critical patent/JP5278117B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent discontinuity of operation when a buffer failure occurs between units connected through a PCI express interface. <P>SOLUTION: A buffer degeneration system is provided with: a buffer degeneration means for, when a failure region of a buffer is detected, degenerating a buffer by disabling the detected failure region of the buffer; a capacity calculation means for calculating an available capacity in the degenerated buffer; and a payload size setting and updating means for updating set maximum value of the payload size based on the capacity calculated by the capacity calculation means. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、バッファ故障時にバッファ縮退を行い動作継続を可能にするバッファ縮退方式、バッファ縮退装置及びバッファ縮退方法に関する。   The present invention relates to a buffer degeneration method, a buffer degeneration apparatus, and a buffer degeneration method that enable operation to be continued by performing buffer degeneration when a buffer fails.

バッファ故障時において、故障を検出し、検出した故障部分を切り離した小さなバッファ容量で動作継続を可能とするバッファ縮退装置がある。例えば、特許文献1には、命令バッファ空検知回路を用いてバッファに空きがあることを確認してから、縮退したバッファへの書き込みを行うバッファ縮退装置が記載されている。   There is a buffer degeneration device that detects a failure and can continue operation with a small buffer capacity from which the detected failure portion is separated when a buffer failure occurs. For example, Patent Literature 1 describes a buffer degeneration device that uses an instruction buffer empty detection circuit to confirm that a buffer is empty and then writes to the degenerated buffer.

特開平03−166626号公報Japanese Patent Laid-Open No. 03-166626

しかし、特許文献1に記載された装置では、あるバスやインタフェースを介して、データの送受信が行われるシステムにおいて、データ送信側は、バッファの縮退状況を直接認識することができない。そのため、送信されたデータが、縮退したバッファに対して、データオーバランを起こす可能性があり、このような装置を採用することができない。   However, in the apparatus described in Patent Document 1, in a system in which data is transmitted / received via a certain bus or interface, the data transmission side cannot directly recognize the degeneration status of the buffer. Therefore, the transmitted data may cause a data overrun with respect to the degenerated buffer, and such a device cannot be employed.

そこで、本発明は、PCI expressインタフェースで接続されたユニット間において、バッファ故障時にバッファ縮退を行い、データオーバーランを起こすことなく動作継続を可能にすることができるバッファ縮退方式、バッファ縮退装置及びバッファ縮退方法を提供することを目的とする。   Therefore, the present invention provides a buffer degeneration method, a buffer degeneration apparatus, and a buffer that can perform buffer degeneration when a buffer failure occurs between units connected by a PCI express interface and can continue operation without causing data overrun. The purpose is to provide a degeneration method.

本発明によるバッファ縮退方式は、バッファの故障領域を検出すると、検出したバッファの故障領域を使用不可と設定してバッファを縮退するバッファ縮退手段と、縮退されたバッファにおける縮退後の使用可能な容量を算出する容量算出手段と、容量算出手段が算出した容量に基づいて、ペイロードサイズの最大値の設定を更新するペイロードサイズ設定更新手段とを備えたことを特徴とする。   In the buffer degeneration method according to the present invention, when a buffer failure area is detected, a buffer degeneration means for degenerating the buffer by setting the detected failure area of the buffer as unusable, and a usable capacity after degeneration in the degenerated buffer And a payload size setting updating unit for updating the setting of the maximum value of the payload size based on the capacity calculated by the capacity calculating unit.

本発明によるバッファ縮退装置は、バッファの故障領域を検出すると、検出したバッファの故障領域を使用不可に設定してバッファを縮退するバッファ縮退手段と、情報処理装置に、バッファ縮退手段によって縮退されたバッファにおける縮退後の使用可能な容量を算出させる容量算出手段と、容量算出手段が算出した容量に基づいて、情報処理装置に、ペイロードサイズの最大値の設定を更新させるペイロードサイズ設定更新手段とを備えたことを特徴とする。   When the buffer degeneration apparatus according to the present invention detects a buffer failure area, the buffer degeneration means sets the detected buffer failure area to be unusable and degenerates the buffer, and the information processing apparatus is degenerated by the buffer degeneration means. Capacity calculating means for calculating usable capacity after degeneration in the buffer, and payload size setting updating means for causing the information processing apparatus to update the setting of the maximum value of the payload size based on the capacity calculated by the capacity calculating means. It is characterized by having.

本発明によるバッファ縮退方法は、バッファの故障領域を検出すると、検出したバッファの故障領域を使用不可に設定してバッファを縮退するバッファ縮退ステップと、縮退されたバッファにおける縮退後の使用可能な容量を算出する容量算出ステップと、算出した容量に基づいて、ペイロードサイズの最大値の設定を更新するペイロードサイズ設定更新ステップとを含むことを特徴とする。   According to the buffer degeneration method of the present invention, when a failure area of a buffer is detected, a buffer degeneration step for degrading the buffer by setting the detected failure area of the buffer to be unusable, and a usable capacity after degeneration in the degenerated buffer And a payload size setting update step for updating the setting of the maximum value of the payload size based on the calculated capacity.

本発明は、PCI expressインタフェースで接続されるユニットにおいて、バッファの故障検出回路、故障フラグ及びこれらに連携して動作するライト制御部とリード制御部とを含み、バッファに故障が発生した場合でも、バッファを縮退して動作継続を可能にすることを特徴としている。   The present invention includes a buffer failure detection circuit, a failure flag, and a write control unit and a read control unit operating in conjunction with these in a unit connected by a PCI express interface, and even when a failure occurs in the buffer, It is characterized in that the buffer can be degenerated and the operation can be continued.

本発明によれば、PCI expressインタフェースで接続されたユニット間において、バッファ故障時にバッファ縮退を行い、データオーバーランを起こすことなく動作継続を可能にすることができる。   According to the present invention, between units connected by a PCI express interface, buffer degeneration can be performed when a buffer failure occurs, and operation can be continued without causing data overrun.

本発明によるバッファ縮退方式を適用したPCI expressアドインカードの構成例を示すブロック図である。It is a block diagram which shows the structural example of the PCI express add-in card to which the buffer degeneration method by this invention is applied. バッファ縮退装置の機能構成例を示す機能ブロック図である。It is a functional block diagram which shows the function structural example of a buffer degeneration apparatus. バッファ縮退装置が実行する処理例を示す流れ図である。It is a flowchart which shows the process example which a buffer degeneration apparatus performs. バッファ縮退装置の最小の機能構成例を示す機能ブロック図である。It is a functional block diagram which shows the minimum functional structural example of a buffer degeneration apparatus.

以下、本発明の実施形態について図面を参照して説明する。図1は、本発明によるバッファ縮退方式を適用したPCI expressアドインカードの構成例を示すブロック図である。図1に示すように、本実施形態では、バッファ縮退方式をPCI expressアドインカード1に適用した例について説明する。   Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration example of a PCI express add-in card to which a buffer degeneration method according to the present invention is applied. As shown in FIG. 1, in this embodiment, an example in which the buffer degeneration method is applied to a PCI express add-in card 1 will be described.

図1に示すように、PCI expressアドインカード1は、PCI expressインタフェース制御部2、ライト制御部3、リード制御部4、受信バッファ5、故障フラグ6及び故障検出回路7を含む。PCI expressアドインカード1は、例えば、プログラムに従って動作するパーソナルコンピュータ等の情報処理装置に搭載される。なお、本実施形態において、バッファ縮退装置は、例えば、PCI expressアドインカード1と、PCI expressアドインカード1を搭載する情報処理装置とによって実現される。   As shown in FIG. 1, the PCI express add-in card 1 includes a PCI express interface control unit 2, a write control unit 3, a read control unit 4, a reception buffer 5, a failure flag 6, and a failure detection circuit 7. The PCI express add-in card 1 is mounted on an information processing apparatus such as a personal computer that operates according to a program, for example. In the present embodiment, the buffer degeneration device is realized by, for example, the PCI express add-in card 1 and an information processing device equipped with the PCI express add-in card 1.

PCI expressインタフェース制御部2は、PCI expressを用いて、PCI expressインタフェースを介したデータの送受信や割り込み通知の制御を行う機能を備えている。   The PCI express interface control unit 2 has a function of performing data transmission / reception and interrupt notification control via the PCI express interface using the PCI express.

ライト制御部3は、PCI expressインタフェース制御部2が受信した受信データを、受信バッファ5に書き込む機能を備えている。ライト制御部3は、受信データを受信バッファ5の故障フラグ6がセットされていないアドレス領域から順に書き込む機能を備えている。   The write control unit 3 has a function of writing the reception data received by the PCI express interface control unit 2 in the reception buffer 5. The write control unit 3 has a function of sequentially writing received data from an address area where the failure flag 6 of the reception buffer 5 is not set.

リード制御部4は、受信バッファ5から受信データを読み出す機能を備えている。リード制御部4は、受信バッファ5の故障フラグ6がセットされていないアドレス領域から順に、受信データの読み出しを行う機能を備えている。   The read control unit 4 has a function of reading received data from the reception buffer 5. The read control unit 4 has a function of reading received data in order from an address area where the failure flag 6 of the reception buffer 5 is not set.

受信バッファ5は、PCI expressインタフェース制御部2が受信した受信データを格納する。受信バッファ5が格納するデータは、ライト制御部3及びリード制御部4によってライト及びリード処理が実行される。   The reception buffer 5 stores reception data received by the PCI express interface control unit 2. Data stored in the reception buffer 5 is written and read by the write control unit 3 and the read control unit 4.

故障フラグ6は、受信バッファ5の所定のメモリ容量単位に対応して設定される。故障フラグ6がセットされた状態は、受信バッファ5において、故障フラグ6に対応するアドレス領域に故障が発生したことを示す。また、故障フラグ6がリセットされた状態は、受信バッファ5において、故障フラグ6に対応するアドレス領域が正常であり、使用可能であることを示す。   The failure flag 6 is set corresponding to a predetermined memory capacity unit of the reception buffer 5. The state in which the failure flag 6 is set indicates that a failure has occurred in the address region corresponding to the failure flag 6 in the reception buffer 5. The state in which the failure flag 6 is reset indicates that the address area corresponding to the failure flag 6 is normal in the reception buffer 5 and can be used.

故障検出回路7は、受信バッファ5から読み出されたデータに対して、エラーチェック(例えば、パリティチェックなど)を行い、受信バッファ5の故障を検出する機能を備えている。故障検出回路7は、例えば、エラーチェックによってエラーを検出したデータが格納されていた受信バッファ5のアドレス領域を、故障があるとして検出する。故障検出回路7は、受信バッファ5の故障を検出すると、故障を検出したアドレス領域に対応する故障フラグ6をセットし、さらに、PCI expressインタフェース制御部2に割り込み通知を行う機能を備えている。   The failure detection circuit 7 has a function of performing an error check (for example, parity check) on the data read from the reception buffer 5 and detecting a failure of the reception buffer 5. The failure detection circuit 7 detects, for example, that there is a failure in the address area of the reception buffer 5 in which the data in which the error was detected by the error check was stored. When the failure detection circuit 7 detects a failure in the reception buffer 5, the failure detection circuit 7 sets a failure flag 6 corresponding to the address area where the failure is detected, and further has an interrupt notification to the PCI express interface control unit 2.

次に、本発明によるバッファ縮退装置の機能構成について説明する。図2は、バッファ縮退装置の機能構成例を示す機能ブロック図である。   Next, the functional configuration of the buffer degeneration apparatus according to the present invention will be described. FIG. 2 is a functional block diagram illustrating a functional configuration example of the buffer degeneration apparatus.

図2に示すように、バッファ縮退装置は、故障領域検出手段11、バッファ縮退手段12、容量算出手段13、ペイロードサイズ設定更新手段14、再送信手段15、データ書き込み手段16及びデータ読み込み手段17を含む。   As shown in FIG. 2, the buffer degeneration device includes a failure area detection unit 11, a buffer degeneration unit 12, a capacity calculation unit 13, a payload size setting update unit 14, a retransmission unit 15, a data writing unit 16, and a data reading unit 17. Including.

故障領域検出手段11は、具体的には、故障検出回路7によって実現される。故障領域検出手段11は、受信バッファ5の故障を検出する機能を備えている。故障領域検出手段11は、例えば、受信バッファ5から読み出されたデータのエラーチェックを行い、エラーを検出したデータが格納されていた受信バッファ5のアドレス領域を故障があるとして検出する。   The failure area detection means 11 is specifically realized by the failure detection circuit 7. The failure area detection means 11 has a function of detecting a failure of the reception buffer 5. For example, the failure area detection unit 11 performs an error check on the data read from the reception buffer 5 and detects the address area of the reception buffer 5 in which the data in which the error was detected is stored as being defective.

バッファ縮退手段12は、具体的には、故障検出回路7によって実現される。バッファ縮退手段12は、検出されたバッファの故障領域を使用不可に設定してバッファを縮退する機能を備えている。バッファ縮退手段12は、例えば、受信バッファ5の故障領域に故障状態であることを示す故障フラグ6を設定することで故障領域を使用不可とする。   The buffer degeneration means 12 is specifically realized by the failure detection circuit 7. The buffer degeneration means 12 has a function of degenerating the buffer by setting the detected failure area of the buffer to be unusable. The buffer degeneration means 12 makes the failure area unusable, for example, by setting a failure flag 6 indicating a failure state in the failure area of the reception buffer 5.

容量算出手段13は、具体的には、情報処理装置が搭載するデバイスドライバによって実現される。容量算出手段13は、バッファ縮退手段によって縮退された受信バッファ5における縮退後の使用可能な容量を算出する機能を備えている。容量算出手段は、例えば、受信バッファ5のうち故障フラグ6が設定されていない領域を特定して受信バッファ5における使用可能な容量を算出する。   Specifically, the capacity calculation unit 13 is realized by a device driver installed in the information processing apparatus. The capacity calculation means 13 has a function of calculating the usable capacity after degeneration in the reception buffer 5 degenerated by the buffer degeneration means. For example, the capacity calculation means specifies an area in the reception buffer 5 where the failure flag 6 is not set, and calculates the usable capacity in the reception buffer 5.

ペイロードサイズ設定更新手段14は、具体的には、情報処理装置が搭載するデバイスドライバによって実現される。ペイロードサイズ設定更新手段14は、容量算出手段13が算出した容量に基づいて、ペイロードサイズの最大値の設定を更新する機能を備えている。ペイロードサイズ設定更新手段14は、例えば、PCI expressアドインカード1の上位に接続されているRoot Complexのコンフィグレーション レジスタ Device Control registerのMax_Payload_Sizeをwpを再設定することで、ペイロードサイズの最大値の設定を更新する。   Specifically, the payload size setting updating unit 14 is realized by a device driver installed in the information processing apparatus. The payload size setting updating unit 14 has a function of updating the setting of the maximum value of the payload size based on the capacity calculated by the capacity calculating unit 13. The payload size setting updating unit 14 sets the maximum value of the payload size, for example, by resetting Max_Payload_Size of the configuration register Device Control register of the root complex connected to the higher level of the PCI express add-in card 1 to wp. Update.

再送信手段15は、具体的には、情報処理装置が搭載するデバイスドライバによって実現される。再送信手段15は、受信バッファ5から故障が検出された場合に、ペイロードサイズ設定更新手段14が設定したペイロードサイズの最大値に基づいて、受信バッファ5の故障領域に格納されていたデータを再送信する機能を備えている。   Specifically, the retransmission unit 15 is realized by a device driver installed in the information processing apparatus. The retransmission means 15 resends the data stored in the failure area of the reception buffer 5 based on the maximum value of the payload size set by the payload size setting update means 14 when a failure is detected from the reception buffer 5. It has a function to send.

なお、本実施形態では、デバイスドライバが処理を実行するという表現や、デバイスドライバによって実現される手段が処理を実行する等の表現を用いる場合があるが、具体的には、バッファ縮退装置を実現する情報処理装置のCPUが、デバイスドライバに従って処理を実行することである。   In this embodiment, the expression that the device driver executes processing and the expression that means realized by the device driver execute processing may be used. Specifically, the buffer degeneration device is realized. The CPU of the information processing apparatus that performs the processing executes according to the device driver.

データ書き込み手段16は、具体的には、ライト制御部3によって実現される。データ書き込み手段16は、受信バッファ5にデータを書き込む機能を備えている。データ書き込み手段16は、受信バッファ5のうち故障フラグ6が設定されていない領域にデータを書き込む機能を備えている。   Specifically, the data writing unit 16 is realized by the write control unit 3. The data writing unit 16 has a function of writing data to the reception buffer 5. The data writing means 16 has a function of writing data to an area of the reception buffer 5 where the failure flag 6 is not set.

データ読み込み手段17は、具体的には、リード制御部4によって実現される。データ読み込み手段17は、受信バッファ5からにデータを読み出す機能を備えている。データ読み込み手段17は、受信バッファ5のうち故障フラグ6が設定されていない領域からデータを読み込む機能を備えている。   Specifically, the data reading unit 17 is realized by the read control unit 4. The data reading means 17 has a function of reading data from the reception buffer 5. The data reading means 17 has a function of reading data from an area where the failure flag 6 is not set in the reception buffer 5.

次に、バッファ縮退装置が実行する動作について説明する。図3は、バッファ縮退装置が実行する処理例を示す流れ図である。   Next, an operation performed by the buffer degeneration apparatus will be described. FIG. 3 is a flowchart showing an example of processing executed by the buffer degeneration apparatus.

PCI expressインタフェース制御部2が、PCI expressインタフェースを介して、データを受信すると、データ書き込み手段16は、受信データを受信バッファ5に書き込む。また、データ読み込み手段17が受信バッファ5からデータを読み出すと、故障領域検出手段11は、データ読み込み手段17が読み出したデータのエラーチェックを行い、受信バッファ5の故障を検出する処理を行う。そして、故障を検出すると、バッファ縮退手段12は、読み出されたデータを格納していたアドレス領域に対応する故障フラグ6をセットする。さらに、バッファ縮退手段12は、PCI expressインタフェース制御部2に割り込み通知を行う(ステップS21)。そして、PCI expressインタフェース制御部2は、デバイスドライバに割り込み通知を行い、デバイスドライバが割り込み通知を受信すると、以下の割り込み処理が実行される。   When the PCI express interface control unit 2 receives data via the PCI express interface, the data writing unit 16 writes the received data into the reception buffer 5. When the data reading unit 17 reads data from the reception buffer 5, the failure area detection unit 11 performs an error check on the data read by the data reading unit 17 and performs a process of detecting a failure of the reception buffer 5. When a failure is detected, the buffer degeneration means 12 sets a failure flag 6 corresponding to the address area in which the read data is stored. Further, the buffer degeneration means 12 sends an interrupt notification to the PCI express interface control unit 2 (step S21). The PCI express interface control unit 2 notifies the device driver of an interrupt. When the device driver receives the interrupt notification, the following interrupt processing is executed.

ステップS21において、PCI expressインタフェース制御部2から割り込み通知を受信すると、デバイスドライバは、割り込みの要因が受信バッファ5の故障であるか否かを判定する(ステップS22)。   In step S21, upon receiving an interrupt notification from the PCI express interface control unit 2, the device driver determines whether or not the cause of the interrupt is a failure of the reception buffer 5 (step S22).

ステップS22において、割り込みの要因が受信バッファ5の故障でないと判定した場合には、デバイスドライバは、その割り込み要因に対応する処理を行う。一方、ステップS22において、割り込み要因が受信バッファ5の故障であると判定した場合には、容量算出手段13は、受信バッファ5において、故障フラグ6のセットされていない容量(つまり使用可能な受信バッファ5の容量)を計算(算出)する(ステップS23)。   If it is determined in step S22 that the interrupt factor is not a failure of the reception buffer 5, the device driver performs processing corresponding to the interrupt factor. On the other hand, when it is determined in step S22 that the interrupt factor is a failure of the reception buffer 5, the capacity calculation unit 13 determines that the capacity of the reception buffer 5 in which the failure flag 6 is not set (that is, a usable reception buffer). (Capacity of 5) is calculated (calculated) (step S23).

次いで、ペイロードサイズ設定更新手段14は、計算(算出)した受信バッファ5の容量に基づいて、PCI expressアドインカード1及びPCI expressインタフェースを介して、PCI expressアドインカード1の上位に接続されているRoot Complexのコンフィグレーション レジスタ Device Control registerのMax_Payload_Sizeをwpを再設定する(ステップS24)。ここで、Max_Payload_Sizeとは、パケット通信において、転送可能なペイロードの最大値を意味し、ペイロードサイズ設定更新手段14は、具体的には、故障発生による受信バッファ領域の減少に応じて、転送可能なペイロードの最大値を小さくするように設定する。すなわち、ペイロードサイズ設定更新手段14は、ペイロードサイズの最大値の設定を更新することによって、パケットの最大データサイズを制限する。   Next, the payload size setting update unit 14 is connected to the higher level of the PCI express add-in card 1 via the PCI express add-in card 1 and the PCI express interface based on the calculated capacity of the reception buffer 5. The configuration register Device Control register Max_Payload_Size of the Complex is reset to wp (step S24). Here, Max_Payload_Size means the maximum value of the payload that can be transferred in packet communication. Specifically, the payload size setting update unit 14 can transfer the packet according to the decrease in the reception buffer area due to the occurrence of a failure. Set to reduce the maximum value of the payload. That is, the payload size setting updating unit 14 limits the maximum data size of the packet by updating the setting of the maximum value of the payload size.

ステップS24において、Max_Payload_Size(ペイロードサイズの最大値)の設定を更新すると、再送信手段15は、ステップS21においてエラーが検出されたデータの再送信処理を行う(ステップS25)。   In step S24, when the setting of Max_Payload_Size (maximum value of payload size) is updated, the retransmission unit 15 performs a retransmission process for the data in which the error is detected in step S21 (step S25).

ステップS25において、再送信処理が行われると、PCI expressインタフェース制御部2は、再送信されたデータを受信する。この時、データ書き込み手段16は、故障フラグ6をチェックし、故障フラグ6がセットされている場合には、そのアドレス領域の受信バッファ5が故障しているため、次のアドレス領域の受信バッファ5に書き込みアドレスを設定する。そして、データ書き込み手段16は、設定したアドレス順にデータの書き込みを行う。同様に、データ読み込み手段17は、受信バッファ5からデータの読み出しを行う際に、故障フラグ6がセットされている場合には、そのアドレス領域の受信バッファ5は故障しているため、次のアドレス領域の受信バッファ5に読み出しアドレスを設定する。そして、データ読み込み手段17は、設定したアドレス順に、データの読み出しを行う。   When retransmission processing is performed in step S25, the PCI express interface control unit 2 receives the retransmitted data. At this time, the data writing means 16 checks the failure flag 6, and if the failure flag 6 is set, the reception buffer 5 in the address area is out of order. Set the write address in. The data writing means 16 writes data in the order of the set addresses. Similarly, when the data reading means 17 reads the data from the reception buffer 5 and the failure flag 6 is set, the reception buffer 5 in the address area has failed, so that the next address A read address is set in the area reception buffer 5. Then, the data reading unit 17 reads data in the set address order.

以上のように、本実施形態によれば、PCI expressのバッファ制御において、バッファに故障を検出した場合にはバッファを縮退させ、またバッファ縮退に合わせてDevice Control registerのMax_Payload_Size(ペイロードサイズの最大値)の再設定を行う。そのため、縮退したバッファの容量を越えるデータの送受信を制限することができ、バッファ縮退によるデータオーバーランを起こすことなく動作継続を可能にすることができる。   As described above, according to the present embodiment, in PCI express buffer control, when a failure is detected in the buffer, the buffer is degenerated, and Device Control register Max_Payload_Size (maximum value of payload size) in accordance with the buffer degeneration. ) Is reset. Therefore, transmission / reception of data exceeding the capacity of the degenerated buffer can be restricted, and operation can be continued without causing data overrun due to buffer degeneration.

次に、本発明によるバッファ縮退装置の最小構成について説明する。図4は、バッファ縮退装置の最小の機能構成例を示す機能ブロック図である。図4に示すように、バッファ縮退装置は、最小の構成要素として、バッファ縮退手段12と、容量算出手段13と、ペイロードサイズ設定手段14とを含む。   Next, the minimum configuration of the buffer degeneration apparatus according to the present invention will be described. FIG. 4 is a functional block diagram illustrating a minimum functional configuration example of the buffer degeneration device. As shown in FIG. 4, the buffer degeneration device includes a buffer degeneration unit 12, a capacity calculation unit 13, and a payload size setting unit 14 as the minimum components.

図4に示す最小構成のバッファ縮退装置では、バッファ縮退手段12は、バッファの故障領域を検出すると、検出したバッファの故障領域を使用不可と設定してバッファを縮退する。そして、容量算出手段13は、縮退されたバッファにおける縮退後の使用可能な容量を算出する。そして、ペイロードサイズ設定更新手段14は、容量算出手段13が算出した容量に基づいて、ペイロードサイズの最大値の設定を更新する。   In the buffer degeneration apparatus having the minimum configuration shown in FIG. 4, when the buffer degeneration means 12 detects a failure area of the buffer, the buffer degeneration means 12 sets the detected failure area of the buffer as unusable and degenerates the buffer. Then, the capacity calculation unit 13 calculates the usable capacity after degeneration in the degenerated buffer. Then, the payload size setting updating unit 14 updates the setting of the maximum value of the payload size based on the capacity calculated by the capacity calculating unit 13.

従って、図4に示す最小構成のバッファ縮退装置によれば、バッファに故障を検出した場合にはバッファを縮退させ、またバッファ縮退に合わせてペイロードサイズの最大値を再設定する。そのため、縮退したバッファの容量を越えるデータの送受信を制限することができ、バッファ縮退によるデータオーバーランを起こすことなく動作継続を可能にすることができる。   Therefore, according to the buffer degeneration apparatus of the minimum configuration shown in FIG. 4, when a failure is detected in the buffer, the buffer is degenerated, and the maximum value of the payload size is reset according to the buffer degeneration. Therefore, transmission / reception of data exceeding the capacity of the degenerated buffer can be restricted, and operation can be continued without causing data overrun due to buffer degeneration.

なお、本実施形態では、以下の(1)〜(5)に示すようなバッファ縮退方式の特徴的構成が示されている。   In the present embodiment, the characteristic configuration of the buffer degeneration method as shown in the following (1) to (5) is shown.

(1)バッファの故障領域を検出すると(例えば、故障領域検出手段11によって実現される)、検出したバッファの故障領域を使用不可と設定してバッファを縮退するバッファ縮退手段(例えば、バッファ縮退手段12によって実現される)と、バッファ縮退手段によって縮退されたバッファにおける縮退後の使用可能な容量を算出する容量算出手段(例えば、容量算出手段13によって実現される)と、容量算出手段が算出した容量に基づいて、ペイロードサイズの最大値の設定を更新するペイロードサイズ設定更新手段(例えば、ペイロードサイズ設定更新手段14によって実現される)とを備えたことを特徴とする。   (1) When a buffer failure area is detected (for example, realized by the failure area detection means 11), a buffer degeneration means (for example, buffer degeneration means) that sets the detected buffer failure area as unusable and degenerates the buffer. 12), a capacity calculation means for calculating a usable capacity after degeneration in the buffer degenerated by the buffer degeneration means (for example, realized by the capacity calculation means 13), and a capacity calculation means It is characterized by comprising payload size setting updating means (for example, realized by the payload size setting updating means 14) for updating the setting of the maximum value of the payload size based on the capacity.

(2)バッファ縮退方式において、バッファ縮退手段は、検出したバッファの故障領域に故障状態であることを示すフラグ(例えば、故障フラグ6によって実現される)を設定し、容量算出手段は、バッファのうちバッファ縮退手段によってフラグが設定されていない領域を特定してバッファにおける使用可能な容量を算出するように構成されていてもよい。   (2) In the buffer degeneration method, the buffer degeneration means sets a flag (for example, realized by the failure flag 6) indicating a failure state in the detected failure area of the buffer, and the capacity calculation means Of these, an area where no flag is set may be specified by the buffer degeneration means, and the usable capacity in the buffer may be calculated.

(3)バッファ縮退方式は、バッファのうちフラグが設定されていない領域にデータを書き込むデータ書き込み手段(例えば、データ書き込み手段16によって実現される)を備えるように構成されていてもよい。   (3) The buffer degeneration method may be configured to include a data writing unit (for example, realized by the data writing unit 16) that writes data to an area of the buffer where a flag is not set.

(4)バッファ縮退方式は、バッファのうちフラグが設定されていない領域からデータを読み出すデータ読み出し手段(例えば、データ読み込み手段17によって実現される)を備えるように構成されていてもよい。   (4) The buffer degeneration method may be configured to include data reading means (for example, realized by the data reading means 17) for reading data from an area of the buffer where no flag is set.

(5)バッファ縮退方式は、ペイロードサイズ設定更新手段が設定したペイロードサイズの最大値に基づいて、検出されたバッファの故障領域に格納されていたデータを再送信する再送信手段(例えば、再送信手段15によって実現される)を備えるように構成されていてもよい。   (5) The buffer degeneration method is a retransmission unit (for example, retransmission) that retransmits the data stored in the detected failure area of the buffer based on the maximum value of the payload size set by the payload size setting update unit. (Implemented by means 15).

本発明は、PCI expressインタフェースを介して接続されるユニットの信頼性を高める用途に適用可能である。   The present invention can be applied to an application for improving the reliability of a unit connected via a PCI express interface.

1 PCI expressアドインカード
2 PCI expressインタフェース制御部
3 ライト制御部
4 リード制御部
5 受信バッファ
6 故障フラグ
7 故障検出回路
11 故障領域検出手段
12 バッファ縮退手段
13 容量算出手段
14 ペイロードサイズ設定手段
15 再送信手段
16 データ書き込み手段
17 データ読み出し手段
DESCRIPTION OF SYMBOLS 1 PCI express add-in card 2 PCI express interface control part 3 Write control part 4 Read control part 5 Reception buffer 6 Failure flag 7 Failure detection circuit 11 Failure area detection means 12 Buffer degeneration means 13 Capacity calculation means 14 Payload size setting means 15 Retransmission Means 16 Data writing means 17 Data reading means

Claims (9)

バッファの故障領域を検出すると、検出した前記バッファの故障領域を使用不可に設定して前記バッファを縮退するバッファ縮退手段と、
前記バッファ縮退手段によって縮退された前記バッファにおける縮退後の使用可能な容量を算出する容量算出手段と、
前記容量算出手段が算出した容量に基づいて、ペイロードサイズの最大値の設定を更新するペイロードサイズ設定更新手段とを備えた
ことを特徴とするバッファ縮退方式。
When detecting a buffer failure area, a buffer degeneration means for degenerating the buffer by setting the detected failure area of the buffer to be unusable,
Capacity calculation means for calculating usable capacity after degeneration in the buffer degenerated by the buffer degeneration means;
A buffer degeneration method comprising: a payload size setting updating unit that updates a setting of a maximum value of the payload size based on the capacity calculated by the capacity calculating unit.
バッファ縮退手段は、検出したバッファの故障領域に故障状態であることを示すフラグを設定し、
容量算出手段は、前記バッファのうち前記バッファ縮退手段によって前記フラグが設定されていない領域を特定して前記バッファにおける使用可能な容量を算出する
請求項1記載のバッファ縮退方式。
The buffer degeneration means sets a flag indicating a failure state in the detected failure area of the buffer,
The buffer degeneration method according to claim 1, wherein the capacity calculation unit specifies an area of the buffer in which the flag is not set by the buffer degeneration unit and calculates a usable capacity in the buffer.
バッファのうちフラグが設定されていない領域にデータを書き込むデータ書き込み手段を含む
請求項2記載のバッファ縮退方式。
The buffer degeneration method according to claim 2, further comprising data writing means for writing data to an area of the buffer in which no flag is set.
バッファのうちフラグが設定されていない領域からデータを読み出すデータ読み出し手段を含む
請求項2又は請求項3記載のバッファ縮退方式。
4. The buffer degeneration method according to claim 2, further comprising data reading means for reading data from an area of the buffer in which no flag is set.
ペイロードサイズ設定更新手段が設定したペイロードサイズの最大値に基づいて、検出したバッファの故障領域に格納されていたデータを再送信する再送信手段を備えた
請求項1から請求項4のうちのいずれか1項に記載のバッファ縮退方式。
The retransmit means for retransmitting the data stored in the detected failure area of the buffer based on the maximum value of the payload size set by the payload size setting update means. Or the buffer degeneration method according to claim 1.
バッファの故障領域を検出すると、検出した前記バッファの故障領域を使用不可に設定して前記バッファを縮退するバッファ縮退手段と、
情報処理装置に、前記バッファ縮退手段によって縮退された前記バッファにおける縮退後の使用可能な容量を算出させる容量算出手段と、
前記容量算出手段が算出した容量に基づいて、情報処理装置に、ペイロードサイズの最大値の設定を更新させるペイロードサイズ設定更新手段とを備えた
ことを特徴とするバッファ縮退装置。
When detecting a buffer failure area, a buffer degeneration means for degenerating the buffer by setting the detected failure area of the buffer to be unusable,
Capacity calculation means for causing the information processing device to calculate usable capacity after degeneration in the buffer degenerated by the buffer degeneration means;
A buffer degeneration device, comprising: a payload size setting updating unit that causes the information processing device to update the setting of the maximum value of the payload size based on the capacity calculated by the capacity calculating unit.
バッファ縮退手段は、情報処理装置に、検出したバッファの故障領域に故障状態であることを示すフラグを設定させ、
容量算出手段は、情報処理装置に、前記バッファのうち前記バッファ縮退手段によって前記フラグが設定されていない領域を特定して前記バッファにおける使用可能な容量を算出させる
請求項6記載のバッファ縮退装置。
The buffer degeneration means causes the information processing apparatus to set a flag indicating a failure state in the detected failure area of the buffer,
7. The buffer degeneration apparatus according to claim 6, wherein the capacity calculation means causes the information processing apparatus to calculate an available capacity in the buffer by specifying an area of the buffer in which the flag is not set by the buffer degeneration means.
バッファの故障領域を検出すると、検出した前記バッファの故障領域を使用不可に設定して前記バッファを縮退するバッファ縮退ステップと、
縮退された前記バッファにおける縮退後の使用可能な容量を算出する容量算出ステップと、
算出した容量に基づいて、ペイロードサイズの最大値の設定を更新するペイロードサイズ設定更新ステップとを含む
含むことを特徴とするバッファ縮退方法。
A buffer degeneration step of detecting a buffer failure area and degenerating the buffer by setting the detected failure area of the buffer to be unusable;
A capacity calculating step for calculating a usable capacity after degeneration in the degenerated buffer;
And a payload size setting update step for updating the setting of the maximum value of the payload size based on the calculated capacity.
バッファ縮退ステップで、検出したバッファの故障領域に故障状態であることを示すフラグを設定し、
容量算出ステップで、前記バッファのうち前記フラグが設定されていない領域を特定して前記バッファにおける使用可能な容量を算出する
請求項8記載のバッファ縮退方法。
In the buffer degeneration step, set a flag indicating a failure state in the detected buffer failure area,
The buffer degeneration method according to claim 8, wherein in the capacity calculation step, an area in which the flag is not set in the buffer is specified to calculate a usable capacity in the buffer.
JP2009085799A 2009-03-31 2009-03-31 Buffer degeneration method, apparatus and method Expired - Fee Related JP5278117B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009085799A JP5278117B2 (en) 2009-03-31 2009-03-31 Buffer degeneration method, apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009085799A JP5278117B2 (en) 2009-03-31 2009-03-31 Buffer degeneration method, apparatus and method

Publications (2)

Publication Number Publication Date
JP2010237991A true JP2010237991A (en) 2010-10-21
JP5278117B2 JP5278117B2 (en) 2013-09-04

Family

ID=43092244

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009085799A Expired - Fee Related JP5278117B2 (en) 2009-03-31 2009-03-31 Buffer degeneration method, apparatus and method

Country Status (1)

Country Link
JP (1) JP5278117B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013012106A (en) * 2011-06-30 2013-01-17 Hitachi Ltd Control system and memory control method for control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02166544A (en) * 1988-12-20 1990-06-27 Fujitsu Ltd Memory address conversion system
JP2000148704A (en) * 1998-11-05 2000-05-30 Nec Corp Memory fault processing method of cluster computer and cluster computer
JP2002297532A (en) * 2001-03-29 2002-10-11 Sanyo Electric Co Ltd Communication method, communication apparatus, computer program and recording medium
JP2008044126A (en) * 2006-08-11 2008-02-28 Fuji Xerox Co Ltd Image forming apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02166544A (en) * 1988-12-20 1990-06-27 Fujitsu Ltd Memory address conversion system
JP2000148704A (en) * 1998-11-05 2000-05-30 Nec Corp Memory fault processing method of cluster computer and cluster computer
JP2002297532A (en) * 2001-03-29 2002-10-11 Sanyo Electric Co Ltd Communication method, communication apparatus, computer program and recording medium
JP2008044126A (en) * 2006-08-11 2008-02-28 Fuji Xerox Co Ltd Image forming apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013012106A (en) * 2011-06-30 2013-01-17 Hitachi Ltd Control system and memory control method for control system

Also Published As

Publication number Publication date
JP5278117B2 (en) 2013-09-04

Similar Documents

Publication Publication Date Title
US8407478B2 (en) Control message signature for device control
KR101099471B1 (en) PCI.Express COMMUNICATION SYSTEM AND COMMUNICATION METHOD THEREOF
US9106417B2 (en) Communication apparatus for transmission protocol processing and reception protocol processing
JP2007300619A (en) Method, apparatus, and program for maintaining integrity of data in case of switching between different data protection method
US20130173986A1 (en) Memory controller, data storage device, and memory controlling method
US10153887B2 (en) Patch download with improved acknowledge mechanism
CN103270497A (en) Method and system of live error recovery
JP2015517267A (en) Bus system subscriber station and method for transmitting messages between bus system subscribers
JP2014032516A (en) Storage device, controller, and data protection method
JP4451837B2 (en) Data transfer apparatus and data transfer method
CN102436430B (en) Memory device, host controller and memory system
US7925931B1 (en) System and method of handling erroneous data in computer systems
JP4723265B2 (en) Error detection / correction device control method, error detection / correction device, information processing system, error detection / correction device control program, data processing device
JP5966243B2 (en) Storage device and storage device control method
JP5278117B2 (en) Buffer degeneration method, apparatus and method
JP4589768B2 (en) Information processing device
JP2006309292A (en) Server device, server system, and method of switching system in server system
JP2008225835A (en) Memory access control method and circuit, and information processor
JP5182417B2 (en) Transmission data error checking device and method
JP4239482B2 (en) Data transfer system, LSI and data transfer method
JP2018077679A (en) Control device, transmitting device, and control method
JP2008148181A (en) Communication apparatus and communication control method
JP2007156914A (en) Electronic device and control program transfer method
JP2005277552A (en) Bus retry control system and data communication unit
JP4702104B2 (en) COMMUNICATION DEVICE, COMMUNICATION PROCESSING METHOD, AND COMMUNICATION PROCESSING PROGRAM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120113

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130108

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130311

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130423

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130506

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5278117

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees