JP2013117930A - Computer and method for controlling computer - Google Patents
Computer and method for controlling computer Download PDFInfo
- Publication number
- JP2013117930A JP2013117930A JP2011266217A JP2011266217A JP2013117930A JP 2013117930 A JP2013117930 A JP 2013117930A JP 2011266217 A JP2011266217 A JP 2011266217A JP 2011266217 A JP2011266217 A JP 2011266217A JP 2013117930 A JP2013117930 A JP 2013117930A
- Authority
- JP
- Japan
- Prior art keywords
- pci device
- computer
- pci
- hot plug
- storage area
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は、計算機に搭載されるPCIデバイスの増設に関し、特に、計算機を稼働させた状態でPCIデバイスを増設する方法に関する。 The present invention relates to expansion of a PCI device mounted on a computer, and more particularly to a method of adding a PCI device while the computer is operating.
近年、計算機におけるI/Oデバイスの拡張技術として、高速伝送のインターフェース規格であるPCI Expressを用いる計算機が主流となっている。PCI Expressでは、従来のPCI規格と異なるシリアル信号伝送やPoint−To−Pointの接続を実現している(例えば、非特許文献1)。PCI Expressによる通信は、ボード間の通信やケーブルによる短距離の筐体間の通信が可能である。なお、以下では、PCI Expressに準拠したI/OデバイスをPCIデバイスとし、I/OカードをPCIカードとし、I/OモジュールをPCIモジュールとする。 2. Description of the Related Art In recent years, computers using PCI Express, which is an interface standard for high-speed transmission, have become mainstream as an I / O device expansion technique in computers. PCI Express realizes serial signal transmission and Point-To-Point connection different from the conventional PCI standard (for example, Non-Patent Document 1). Communication by PCI Express enables communication between boards and communication between short-distance housings using cables. In the following, an I / O device compliant with PCI Express is a PCI device, an I / O card is a PCI card, and an I / O module is a PCI module.
計算機にPCIデバイスを増設する場合において、PCIデバイスの増設方法は、計算機が停止時のPCIデバイス増設方法と、計算機を稼働させたままのPCIデバイス増設方法の二通りがある。計算機の停止時のPCIデバイス増設方法では、稼働している計算機を停止させ、PCIデバイス増設後に計算機を稼働させる必要がある。 When adding a PCI device to a computer, there are two methods for adding a PCI device: a PCI device adding method when the computer is stopped, and a PCI device adding method while the computer is operating. In the PCI device expansion method when the computer is stopped, it is necessary to stop the operating computer and operate the computer after adding the PCI device.
計算機の稼働中にPCIデバイスを増設する方法では、PCI Hot Plugを用いた方法がある(例えば、非特許文献2、非特許文献3)。PCI Hot Plugを用いることで、計算機のOperation System(以下、OS)が稼働している状態でPCIデバイスを増設し、増設したPCIデバイスをOSに認識させることが可能であり、計算機を停止することなく増設したPCIデバイスの利用を実現している。 As a method of adding a PCI device while the computer is operating, there is a method using PCI Hot Plug (for example, Non-Patent Document 2 and Non-Patent Document 3). By using PCI Hot Plug, it is possible to add a PCI device while the computer's operation system (OS) is running, and to make the OS recognize the added PCI device and stop the computer. The use of expanded PCI devices is realized.
常時稼働を求められる業務システムに使用する計算機の場合、計算機の停止時にPCIデバイスを増設する方法では、計算機を停止してから、PCIデバイスの増設作業中は、計算機を起動できないため、業務システムを長期間稼働できない、という問題があった。 In the case of a computer used for a business system that requires constant operation, the method of adding a PCI device when the computer is stopped can not start the computer while the PCI device is added after the computer is stopped. There was a problem that it could not be operated for a long time.
一方、前記従来例に示したPCI Hot Plugを利用して、計算機の稼働中にPCIデバイスを増設する方法では、ユーザ、もしくは保守員が稼働中の計算機にPCIデバイスを増設すると、OSは増設されたPCIデバイスを認識してしまう。増設したPCIデバイスの初期不良などでPCI Expressのリンクが不安定であった場合、増設したPCIデバイスで間歇的なリンクの切断などの障害が発生する。OSは前記障害を認識すると、稼働中の計算機を停止、もしくは再起動し、予期しない業務システムの停止を引き起こす可能性があった。 On the other hand, in the method of adding a PCI device while a computer is operating using the PCI Hot Plug shown in the conventional example, when a user or a maintenance staff adds a PCI device to an operating computer, the OS is increased. The PCI device is recognized. When the PCI Express link is unstable due to an initial failure of the added PCI device, a failure such as intermittent link disconnection occurs in the added PCI device. When the OS recognizes the failure, the operating computer may be stopped or restarted, causing an unexpected stop of the business system.
そこで本発明は、上記問題点に鑑みてなされたもので、PCIデバイスを増設する時期と、増設したPCIデバイスをOSに認識させる時期を制御可能な計算機を提供することを目的とする。 Therefore, the present invention has been made in view of the above problems, and an object of the present invention is to provide a computer capable of controlling when to add a PCI device and when to make an OS recognize the added PCI device.
本発明は、プロセッサとメモリとPCIデバイスを接続するポートを備えて、前記PCIデバイスのホットプラグを制御するシステム制御部を備えた計算機であって、前記システム制御部は、前記ホットプラグのモードを設定するホットプラグモード記憶領域と、前記PCIデバイスが前記ポートに追加されたことを検出するデバイス検出部と、を備え、前記システム制御部は、前記デバイス検出部が前記PCIデバイスの追加を検出したときに前記ホットプラグモード記憶領域の値が所定値であれば、前記PCIデバイスへ一時的に通電した後に、通電を遮断する。 The present invention is a computer that includes a port that connects a processor, a memory, and a PCI device, and includes a system control unit that controls hot plugging of the PCI device, wherein the system control unit sets the mode of the hot plug. A hot plug mode storage area to be set; and a device detection unit that detects that the PCI device is added to the port. The system control unit detects that the device detection unit has added the PCI device. If the value of the hot plug mode storage area is a predetermined value, the PCI device is temporarily energized and then energized.
したがって、本発明は、PCIデバイスの増設作業を計算機が稼動した状態で実施できるため、計算機の停止期間を短縮することができる。増設したPCIデバイスに対して一時的に通電して電源が入るか否かをチェックする。その後、PCIデバイスの通電を遮断する。このため、計算機のOSには追加したPCIデバイスを通知しない。従って、OSは増設したPCIデバイスを認識せず、増設したPCIデバイスで間歇的な障害が発生することがないため、計算機の停止、もしくは再起動による予期しない業務システムの停止を回避することができる。そして、PCIデバイスを増設する時期と、増設したPCIデバイスをOSに認識させる時期を制御することが可能になる。 Therefore, according to the present invention, the PCI device expansion work can be performed in a state where the computer is operating, so that the computer stop period can be shortened. It is checked whether the power is turned on by temporarily energizing the added PCI device. Thereafter, the PCI device is turned off. For this reason, the added PCI device is not notified to the OS of the computer. Therefore, the OS does not recognize the added PCI device, and an intermittent failure does not occur in the added PCI device, so that it is possible to avoid an unexpected stop of the business system due to a computer stop or restart. . Then, it is possible to control when to add a PCI device and when to make the OS recognize the added PCI device.
以下、本発明の一実施形態を添付図面に基づいて説明する。 Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings.
図1は、本発明の実施形態を示し、計算機を収容した計算機管理装置1001の一例を示すブロック図である。
FIG. 1 is a block diagram illustrating an example of a
計算機管理装置1001はService Processor(以下、SVP)1003と計算機1004を備えている。SVP1003は計算機1004の電源状態や電圧、温度を監視して、計算機1004を制御する機能を有する。SVP1003には、入出力装置を含むユーザコンソール1002が接続され、計算機1004への情報の入力と出力を行うことができる。
The
ユーザ、もしくは保守員がユーザコンソール1002を操作して計算機1004の電源をOnにすると、SVP1003がBMC(Baseboard Management Controller)1005を経由してUEFI(Unified Extensible Firmware Interface)1008へ計算機1004の電源Onを通知する。UEFI1008は、不揮発性の記憶装置(フラッシュメモリやROM等)に格納されておりCPU1010によって実行される。
When a user or a maintenance staff operates the
計算機1004は演算処理装置であるCPU(Central Processing Unit)1010を備え、CPU1010は計算機1004の外部、もしくは内部に備える記憶装置1012のデータをメモリ1013に読み出して演算処理を実行し、演算処理結果を記憶装置1012に格納する。CPU1010にはI/O Hub1014が接続され、I/O Hub1014はPCI Expressに準拠したPort1017、1018を備える。また、I/O Hub1014は、各Port1017、1018に対してLink Status Register1015、1016をそれぞれ備える。
The
I/O Hub1014のPort1017、1018にはそれぞれPCIデバイス(#01)1019と、(#02)1020と、PCIデバイス(#01)1019、(#02)1020への通電を制御するAttentionボタン1023、1024が接続される。
また、PCIデバイス(#01)1019とPCIデバイス(#02)1020は、それぞれPCI Config Register1021、1022を備える。I/O Hub1014が備えるLink Status Register1015、1016は、Port1017、1018に対応するPCIデバイス(#01)1019、(#02)1020の電源状態や、各Port1017、1018とPCIデバイス(#01)1019、(#02)1020間のリンク速度とリンク幅の状態を記録する。PCIデバイス(#01)1019、(#02)1020が備えるPCI Config Register1021、1022は、各PCIデバイス(#01)1019、#02 1020の固有情報であるベンダIDやデバイスIDの値を記憶している。
Further, the PCI device (# 01) 1019 and the PCI device (# 02) 1020 include
BMC1005は図示しない制御部と記憶部を含み、計算機1004の障害情報をSVP1003へ転送する機能や、計算機1004の構成情報を管理する機能を有する。さらに、BMC1005はHot Plugモード記憶領域1006とPCIデバイス管理表1007の二つの記憶領域を前記記憶部に備えている。
The
BMC1005によって管理される計算機1004のHot Plugのモードは、計算機1004の稼働中にPCIデバイスを脱着するHot Swapモードと、計算機1004の稼働中にPCIデバイスを追加して動作を制御するHot Insertモードの2つを含む。
The Hot Plug mode of the
このため、BMC1005のHot Plugモード記憶領域1006は、図2に示すように、Hot SwapモードとHot Insertモードの二つのモードを記録する領域を備え、Hot Plugモード記憶領域1006の設定値(10061)により前記二つのモード(10062)を切り替えることができる。
Therefore, the Hot Plug
例えば、BMC1005が設定値0をHot Plugモード記憶領域1006に書き込んだ場合は、計算機1004のHot Plugモードは、Hot Swapモードに設定される。一方、BMC1005が設定値1をHot Plugモード記憶領域1006に書き込んだ場合は、計算機1004のHot Plugモードは、Hot Insertモードとなる。なお、BMC1005のHot Plugモード記憶領域1006は、Port毎(PCIデバイス毎)に設定するようにしてもよい。
For example, when the
BMC1005が管理するPCIデバイス管理表1007は、図3に示すように各PCIデバイス(#01)1019、(#02)1020に対して「有効」または「無効」の設定を記録する。PCIデバイス管理表1007は、PCIデバイスの識別子を格納する管理対象PCIデバイス10071と、PCIデバイスの「有効」または「無効」を設定するPCIデバイス設定10072からひとつのエントリが構成される。
The PCI device management table 1007 managed by the
例えば、図示のように、PCIデバイス(#01)1018を有効に設定し、PCIデバイス(#02)1020を無効に設定することができる。ユーザ、もしくは保守員がユーザコンソール1002を操作して計算機1004を電源Onにすると、UEFI1008が実行されてBMC1005へPCIデバイス(#01)1019、PCIデバイス(#02)1020の設定情報(10072)が有効または無効の何れであるかを問い合わせる。
For example, as shown in the figure, the PCI device (# 01) 1018 can be set to be valid, and the PCI device (# 02) 1020 can be set to be invalid. When the user or maintenance personnel operates the
BMC1005はPCIデバイス管理表1007を参照し、UEFI1008へPCIデバイス(#01)1019は有効の設定で、PCIデバイス(#02)1020は無効の設定であることを通知する。
The
UEFI1008はPCIデバイス(#01)1019の電源をOnにして、PCIデバイス(#01)1019のリンクが確立しているか否かと、UEFI1008のPCIリンク期待値表1009に予め設定されたリンク速度とリンク幅であるか否かをチェックする。このチェックは、後述するようにUEFI1008がI/O Hub1014からPort1017のリンク速度とリンク幅を読み込んで、PCIリンク期待値表1009と比較すればよい。
The
PCIデバイス(#01)1019とI/O Hub1014のリンクが確立し、UEFI1008のPCIリンク期待値表1009に設定されたリンク速度とリンク幅である場合は、PCIデバイス(#01)1019の初期化を完了する。
When the link between the PCI device (# 01) 1019 and the I /
UEFI1008がPCIデバイス(#01)1019の電源をOnにした後、リンクが確立していない、もしくはリンク速度、リンク幅が、UEFI1008の設定値でなければ、UEFI1008がPCIデバイス(#01)1019をリカバリ処理する。リカバリ処理としては、UEFI1008はリンク速度、もしくはリンク幅がPCIリンク期待値表1009の設定値と異なるPCIデバイス(#01)1019に接続されるPort1017のリセット、またはリンク速度、もしくはリンク幅がPCIリンク期待値表1009の値と異なるPCIデバイス(#01)1019の電源をOff(通電遮断)、On(通電)を行う。
After the
PCIデバイス(#01)1019のリカバリ処理後、再度PCIデバイス(#01)1019のリンクが確立しているか否かと、PCIリンク期待値表1009に設定されたリンク速度とリンク幅であるか否かをUEFI1008がチェックする。
After the recovery process of the PCI device (# 01) 1019, whether or not the link of the PCI device (# 01) 1019 is established again, and whether or not the link speed and the link width are set in the PCI link expected value table 1009.
一方、PCIデバイス管理表1007において、PCIデバイス(#02)1020は無効の設定であるため、電源はOffのままPCIデバイス(#02)1020の初期化を完了する。 On the other hand, in the PCI device management table 1007, since the PCI device (# 02) 1020 is disabled, the initialization of the PCI device (# 02) 1020 is completed with the power off.
PCIデバイス(#01)1019の電源をOnにし、PCIデバイス(#02)1020の電源はOffとなるため、電源を投入した計算機1004で起動するOS1011は、PCIデバイス(#01)1019を認識し、PCIデバイス(#02)1020を認識しない状態となる。
Since the power supply of the PCI device (# 01) 1019 is turned on and the power supply of the PCI device (# 02) 1020 is turned off, the
UEFI1008は計算機1004を制御するシステムファームウェア(またはBIOS)としての機能を有し、UEFI1008がBMC1005を経由して計算機1004の電源Onを検出すると、UEFI1008が計算機1004の初期化を開始する。なお、システムファームウェアは計算機1004のハードウェアとOS1011との間でI/Oを制御するシステム制御部またはシステム制御機能である。CPU1010は、各機能部のプログラムに従って動作することによって、所定の機能を実現する機能部として動作する。例えば、CPU1010は、UEFI1008に従って動作することでシステム制御部として機能する。他のプログラムについても同様である。さらに、CPU1010は、各プログラムが実行する複数の処理のそれぞれを実現する機能部としても動作する。計算機及び計算機システムは、これらの機能部を含む装置及びシステムである。
The
UEFI1008は、各PCIデバイス(#01)1019、(#02)1020の初期化時において、電源がOnとなっている各PCIデバイス(#01)1019、(#02)1020が備えるPCI Config Register1021、1022からベンダIDとデバイスIDを読み込み、図4に示すPCIリンク期待値表1009を参照し、各PCIデバイス(#01)1019、(#02)1020に設定されたリンク速度とリンク幅を読み取る。
The
図4において、PCIリンク期待値表1009は、ベンダIDとデバイスIDを格納するベンダID/デバイスID10091と、リンク速度の期待値を格納するPCIリンク速度の期待値10092と、リンク幅(レーン数)を格納するPCIリンク幅の期待値10093とからひとつのエントリが構成される。
In FIG. 4, a PCI link expected value table 1009 includes a vendor ID /
例えば、PCIデバイス(#01)1019のPCI Config Register1021のベンダIDがaaaa、デバイスIDがbbbbである場合は、UEFI1008がPCIデバイス(#01)1019に設定されたリンク速度は、図4で示すように2.5Gigabits/second、リンク幅はx4Laneとなる。
For example, when the
また、PCIデバイス(#02)1020のPCI Config Register1022のベンダIDがgggg、デバイスIDがhhhhである場合は、UEFI1008がPCIデバイス(#02)1020に設定されたリンク速度は5.0Gigabits/second、リンク幅はx8Laneとなる。
Further, when the vendor ID of the
UEFI1008は各PCIデバイス(#01)1019、(#02)1020に接続されるPort1017、1018に対応するLink Status Register1021、1022を参照し、実際に各PCIデバイス(#01)1019、(#02)1020がリンクしているリンク速度とリンク幅を読み取り、実際に各PCIデバイス(#01)1019、(#02)1020がリンクしているリンク速度とリンク幅が、各PCIデバイス(#01)1019、(#02)1020に設定されたリンク速度とリンク幅と一致しているか否かを判定する。
The
BMC1005のHot Plugモード記憶領域1006とPCIデバイス管理表1007は、PCIデバイスのHot Plugの動作モードやPCIデバイスの有効または無効などの状態を管理するデバイス管理部として機能する。また、UEFI1008のPCIリンク期待値表1009は、PCIデバイスの性能(リンク速度、リンク幅)を管理する性能管理部として機能する。なお、これらのデバイス管理部と性能管理部は、UEFI1008またはBMC1005の何れか一方に保持される構成であっても良い。
The Hot Plug
<処理の概要>
図5、図6、図7は、本発明に係るHot Insertモードを利用してPCIデバイスを計算機1004の稼働中に増設する処理の概要を示すタイムチャートである。図5のS101から図6のS114までは、計算機1004の稼働中におけるHot InsertモードによるPCIデバイスの増設処理のタイムチャートを示し、図5のS101から図6のS114に該当する詳細な処理のフローチャートについては、図8、図9、図10、図11に示す。
<Outline of processing>
5, 6, and 7 are time charts showing an outline of processing for adding a PCI device while the
図6のOSシャットダウン(S115)以降のS116から図7のS128までは、計算機1004の停止後におけるHot Insertモードにより、増設したPCIデバイスをOSが認識するまでのタイムチャートを示し、S116から図7のS128に該当する詳細な処理のフローチャートについては、図12、図13、図14、図15に示す。
Steps S116 after the OS shutdown (S115) in FIG. 6 to S128 in FIG. 7 are time charts until the OS recognizes the added PCI device in the Hot Insert mode after the
以下の説明では、計算機1004の稼働中にPort1017へPCIデバイス(#01)1019を増設する例を示し、単にPCIデバイスと表記する。
In the following description, an example in which a PCI device (# 01) 1019 is added to the
まず、SVP1003は、ユーザコンソール1002から計算機1004のHot Plugの動作モードをHot Insertモードに設定する入力を受け付けると、BMC1005にHot Insertモードに設定されたことを通知する(S101)。BMC1005は、Hot Plugモード記憶領域1006に「1」を設定する(S102)。
First, when receiving an input from the
次に、図5の時刻T1〜T2の間で、保守員等が計算機1004のPort1017にPCIデバイスを増設する(S103)。
Next, between times T1 and T2 in FIG. 5, a maintenance person or the like adds a PCI device to the
UEFI1008は、所定の周期などでPort1017を監視しており、時刻T2以降でPCIデバイスの増設を検出する(S104、デバイス検出部)。そして、保守員等が計算機1004のPort1017に対応するAttentionボタン1023を押したことをUEFI1008が検出すると(S105)、PCIデバイスの電源をOnにする(S106)。通電を開始したPCIデバイスは、初期化を行ってI/O Hub1014のPort1017に接続(リンクアップ)する(S107)。
The
UEFI1008は、PCIデバイスがリンクアップするとI/O Hub1014のPort1017のLink Status Register1015を読み込んで、増設したPCIデバイスとPort1017のリンクが確立していることを判定する(S108)。次に、UEFI1008は、BMC1005にHot Plugモードを問い合わせる(S109)。BMC1005はHot Plugモード記憶領域1006の値を読み込んで、UEFI1008に通知する(S110)。この場合、Hot Plugモード記憶領域1006は「1」であるので、BMC1005は、Hot InsertモードであることをUEFI1008に通知する。
When the PCI device is linked up, the
図6において、UEFI1008は、Hot Insertモードの通知を受信すると、増設されたPCIデバイスを無効にする通知をBMC1005に送信する(S111)。BMC1005は、増設されたPCIデバイスの識別子と無効の情報を受け付けて、PCIデバイス管理表1007に新たなエントリを追加して、識別子と無効の情報を格納する。この場合、図面3に示したPCIデバイス管理表1007の第1のエントリのPCIデバイス設定10072は図示とは異なる「無効」に設定される。
In FIG. 6, when the
次に、UEFI1008は、無効に設定されたPCIデバイスの電源をOffにする(S113)。これにより、増設されたPCIデバイスは初期化とリンクアップを確認する一時的な通電状態の後に、通電の遮断によって停止する(S114)。なお、計算機1004では、UEFI1008がPort1017、1018毎にPCIデバイスへの電力供給を制御することができる。
Next, the
以上のように、Hot Insertモードで増設されたPCIデバイスは、UEFI1008がリンクアップを検出した後に電源を遮断するため、計算機1004で稼働中のOS1011に検出されることがない。そして、BMC1005は、増設されたPCIデバイスをPCIデバイス管理表1007に加えて無効の状態を保持する。
As described above, since the PCI device added in the Hot Insert mode shuts down the power after the
この後、時刻T3以降で、ユーザが計算機1004のOS1011をシャットダウンする(S115)。そして、OS1011及びCPU1010がシャットダウンした時刻T4以降に、SVP1003は、ユーザコンソール1002から無効となっているPCIデバイスを有効に変更する指令を受け付ける。SVP1003はBMC1005に無効となっているPCIデバイスを有効に変更するように通知する(S116)。BMC1005は、PCIデバイス管理表1007のPCIデバイス設定10072が無効のエントリを有効に変更する。なお、CPU1010が停止している状態で、BMC1005は電源の供給を受けて所定の機能を提供している。
Thereafter, after time T3, the user shuts down the
PCIデバイス管理表1007が更新されると、時刻T5以降でSVP1003はユーザコンソール1002から計算機1004の電源On(起動)を受け付ける(S118)。SVP1003は、BMC1005とUEFI1008に計算機1004の電源Onを通知し、計算機1004を起動させる(S119)。UEFI1008は、所定の初期化処理を開始する(S120)。
When the PCI device management table 1007 is updated, the
UEFI1008は、初期化が完了するとBMC1005へPCIデバイスの設定を問い合わせる(S121)。BMC1005は、PCIデバイス管理表1007を参照して、PCIデバイス設定10072が有効のPCIデバイス10071をUEFI1008へ通知する(S122)。この例では、増設されたPCIデバイスが有効であることがUEFI1008に通知される。
When the initialization is completed, the
UEFI1008は、有効の通知を受け付けたPCIデバイスの電源をOnにする(S123)。通電が開始されたPCIデバイスでは上記ステップS107と同様に初期化とリンクアップが行われる(S124)。UEFI1008は、リンクアップが完了すると、I/O Hub1014のPort1017のLink Status Register1015を参照してリンク速度とリンク幅が、PCIリンク期待値表1009の設定となっていることを判定する(S125)。リンク速度とリンク幅が、PCIリンク期待値表1009の設定を満たしていれば、UEFI1008は計算機1004の初期化を完了して、OS1011を起動させる(S126)。
The
UEFI1008はPCIデバイス管理表1007で有効となっているPCIデバイスをOS1011に通知し、OS1011は、通知されたPCIデバイスを認識し(S127)、所定のドライバを読み込んで起動する(S128)。
The
このように、本発明のHot Insertモードでは、稼働中の計算機1004に増設したPCIデバイスをOS1011に認識させることを禁止する。このため、前記従来例のように、増設されたPCIデバイスに初期不良などが存在する場合であっても、OS1011が不安定になることを防いで、業務の継続を保証できる。本発明のHot Insertモードでは、増設されたPCIデバイスに通電してリンクアップを確認した後に電源を遮断するので、新たなPCIデバイスの通電、リンクアップといった基本的な機能が正常であるか否かを判定しながら、OS1011が新たなPCIデバイスを認識するのを防ぐことができる。
As described above, in the Hot Insert mode of the present invention, the
<処理の詳細>
次に、計算機1004及びSVP1003で行われるHot Insertモードの処理の詳細について、図8〜図15のフローチャートに基づいて説明する。
<Details of processing>
Next, details of Hot Insert mode processing performed by the
まず、図8〜図10は、図5のステップS101〜S114に対応するHot Insertモードで行われる処理の詳細を示す。また、図11は、Hot Swapモードで行われるPCIデバイスの増設処理の一例を示すフローチャートである。 First, FIGS. 8 to 10 show details of processing performed in the Hot Insert mode corresponding to steps S101 to S114 of FIG. FIG. 11 is a flowchart illustrating an example of PCI device addition processing performed in the Hot Swap mode.
まず、ステップS101では、ユーザ、もしくは保守員がユーザコンソール1002を用いて計算機のHot Plugの動作モードをHot Insertモードに設定すると、計算機管理装置1001内のSVP1003は計算機1004のHot Insert設定を受け付ける(図5のS101)。
First, in step S101, when the user or maintenance personnel sets the hot plug operation mode of the computer to the hot insert mode using the
SVP1003は計算機1004のHot Insertモードの設定を受け付けると、BMC1005へHot Insertモードが有効になったことを通知する(S202)。
When the
ステップS203では、BMC1005はSVP1003からHot Insertが有効になった通知を受けると、Hot Plugモード記憶領域1006に設定値「1」を書き込み、Hot Insertモードを記録する(図5のS102)。
In step S203, when the
ステップS204で、ユーザ、もしくは保守員が計算機1004にPCIデバイスを増設すると、UEFI1008はPCIデバイスが計算機1004に搭載されたことを検出する(図5のS104)。
In step S204, when a user or maintenance personnel adds a PCI device to the
ユーザ、もしくは保守員が、増設したPCIデバイスに接続されるPort1017に対応するAttentionボタン1023を押下すると、Port1017のI/O Hub1014はAttentionボタン1023の押下を検出し、AttentionメッセージをUEFI1008へ通知する。ステップS205では、UEFI1008がAttentionメッセージを受け付けて、PCIデバイスを接続したPort1017に対応するAttentionボタン1023の押下を検出する(図5のS105)。
When the user or maintenance personnel presses the
ステップS206でUEFI1008は、増設したPCIデバイスの電源をOnにする(図5のS106)。
In step S206, the
図9のステップS207では、増設したPCIデバイスが初期化、リンクアップし、増設したPCIデバイスと増設したPCIデバイスに対応するPort1017間のリンクが確立する(図5のS107)。
In step S207 of FIG. 9, the added PCI device is initialized and linked up, and the link between the added PCI device and the
ステップS208でUEFI1008は、増設したPCIデバイスのリンクの確立を確認するため、増設したPCIデバイスに接続されたPort1017に対応するI/O Hub1014のLink Status Register1015を参照し、増設したPCIデバイスのリンクが確立していることをチェックする(図5の108、S208)。
In step S208, the
ステップS209において、UEFI1008は、増設したPCIデバイスのリンクが確立しているか否かを判定する。リンクが確立していない場合は、ステップS210に進んで、UEFI1008がリンクチェック対象のPCIデバイスをリカバリ処理する。ステップS210では、リカバリ処理として、UEFI1008はリンクチェック対象のPCIデバイスに接続されるPort1017のリセット、またはリンクチェック対象のPCIデバイスの電源をOffにしてからOnに切り替える。その後、ステップS208の処理を繰り返す。
In step S209, the
一方、リンクが確立している場合は、ステップS211に進んで、UEFI1008がBMC1005へHot Plug動作モードの設定を問い合わせる。BMC1005はHot Plugモード記憶領域1006を参照し、UEFI1008へHot Insertモードであることを通知する(図5のS109)。
On the other hand, if the link has been established, the process proceeds to step S211, and the
ステップS212では、Hot Plug動作モードがHot Insertモードであるか否かをUEFI1008が判定する。Hot Insertモードであれば、図10ステップS213へ進み、Hot Swapモードであれば図11のステップS216へ進む。
In step S212, the
Hot Plugの動作モードがHot Insertモードである場合は、図10のステップS213で、増設したPCIデバイスが無効であることをUEFI1008がBMC1005に通知する(図5のS111)。
When the operation mode of the Hot Plug is the Hot Insert mode, the
BMC1005は、ステップS214で、PCIデバイス管理表1007に増設したPCIデバイスのエントリを追加し、増設したPCIデバイスの設定10072を無効として記録する(図5のS112)。
In step S214, the
ステップS215ではUEFI1008が、増設したPCIデバイスの電源をOffにする(図5のS114)。
In step S215, the
図10のHot Insertモードでは、BMC1005がPCIデバイス管理表1007に増設したPCIデバイスの設定を無効として記録する。そして、UEFI1008は、増設したPCIデバイスの電源をOffにして、OS1011へPCIデバイスの追加を通知しないため、OS1011は増設したPCIデバイスを認識しない。従って、前記従来例のように、増設したPCIデバイスの初期不良などにより間歇的な障害が発生することがないため、計算機1004の停止、もしくは再起動による予期しない業務システムの停止を回避することができる。また、PCIデバイスの増設時に計算機1004を停止する必要がないため、前記従来例の計算機を停止させるPCIデバイス増設方法よりも計算機の停止期間を短縮することができる。
In the Hot Insert mode of FIG. 10, the setting of the PCI device added by the
次に、図9のステップS212でHot Plugの動作モードがHot Swapの場合は、図11の処理が計算機1004で行われる。 Next, when the operation mode of the Hot Plug is Hot Swap in step S212 of FIG. 9, the processing of FIG.
まず、ステップS216で、UEFI1008は、増設されたPCIデバイスのPCI Config Register1015を参照してベンダIDとデバイスIDを取得する。ステップS217で、UEFI1008は、増設されたPCIデバイスのリンク速度とリンク幅がPCIリンク期待値表1009の値を満たすか否かを判定する。この判定は、UEFI1008がベンダIDとデバイスIDでPCIリンク期待値表1009を検索し、リンク速度の期待値10092とリンク幅の期待値10093を取得する。そして、UEFI1008はI/O Hub1014のLink Status Register1015からリンク速度とリンク幅を取得して、PCIリンク期待値表1009の値を満たすか否かを判定する。増設されたPCIデバイスのリンク速度とリンク幅が、PCIリンク期待値表1009の値を満たしていない場合には、ステップS218へ進んで、UEFI1008は、Port1017のリセットやPCIデバイスの電源のON/OFF等によるリカバリを実施して、ステップS216に戻る。
First, in step S216, the
増設されたPCIデバイスのリンク速度とリンク幅が、PCIリンク期待値表1009の値を満たす場合は、ステップS219へ進む。ステップS219ではUEFI1008が、OS1011にPCIデバイスの追加を通知する。
If the link speed and link width of the added PCI device satisfy the values in the PCI link expected value table 1009, the process proceeds to step S219. In step S219, the
ステップS220では、OS1011が増設されたPCIデバイスを認識し、所定のドライバを読み込んでPCIデバイスを機能させる。
In step S220, the
このように、Hot Plugの動作モードがHot Swapの場合、増設されたPCIデバイスは前記従来例のHot Addと同様に計算機1004で認識される。
As described above, when the operation mode of the Hot Plug is Hot Swap, the added PCI device is recognized by the
図12〜図15はHot Insertモードにおいて、計算機の稼働中にPCIデバイスを増設した後に、計算機1004のOS1011が増設したPCIデバイスを認識するまでの詳細なフローチャートを示す。
12 to 15 are detailed flowcharts until the
まず、図12のステップS301では、ユーザが任意の時期に計算機1004のOS1011をシャットダウンし、ユーザ等がユーザコンソール1002を用いて図6のS112で無効設定となっている増設されたPCIデバイスを有効に設定する。図12のステップS301で、SVP1003は、PCIデバイスの有効設定を受け付ける(図6のS116)。SVP1003は、増設されたPCIデバイスの識別子と有効の設定をBMC1005に通知する。
First, in step S301 in FIG. 12, the user shuts down the
ステップS302では、BMC1005が有効に設定されたPCIデバイスに対して、PCIデバイス管理表1007のエントリを無効から有効に変更する(図6のS117)。
In step S302, the PCI device management table 1007 entry is changed from invalid to valid for the PCI device in which the
ステップS303では、ユーザがユーザコンソール1002を用いて計算機1004の電源Onを入力すると、SVP1003が計算機1004の電源Onを受け付ける(図6のS118)。ステップS304では、SVP1003がUEFI1008へBMC1005を経由して計算機1004の電源Onを通知する(図6のS119)。ステップS305では、UEFI1008が計算機1004の電源OnをBMC1005から受け付ける。そして、UEFI1008が計算機1004の初期化を開始する(図6のS120)。
In step S303, when the user inputs the power On of the
図13のステップS306では、計算機1004のPCIデバイスの初期化時において、UEFI1008がBMC1005へPCIデバイスの有効または無効の設定情報を問い合わせる(図7のS121)。BMC1005は、PCIデバイス管理表1007を参照して、識別子10071とPCIデバイス設定10072をUEFI1008へ通知する。
In step S306 of FIG. 13, when the PCI device of the
そして、ステップS307では、現在操作対象のPCIデバイスが有効であるか否かを判定する。有効であればステップS308ヘ進み、無効であれば図15のステップS315に進む。ステップS315で、PCIデバイスが無効設定である場合は、UEFI1008が無効設定のPCIデバイスの電源をOffのままにし、無効設定のPCIデバイスの初期化を完了する。なお、操作対象のPCIデバイスは、#01から順次実施するものとする。
In step S307, it is determined whether the currently operated PCI device is valid. If valid, the process proceeds to step S308, and if invalid, the process proceeds to step S315 in FIG. If the PCI device is in an invalid setting in step S315, the
S307において、PCIデバイスが有効設定である場合は、ステップS308でUEFI1008がPCIデバイスの電源をOnにする(図7のS123)。次に、ステップS309では、UEFI1008がPCIデバイスの電源をOnにすると、給電されたPCIデバイスが初期化、リンクアップし、給電されたPCIデバイスと給電されたPCIデバイスが接続されたPort間のリンクが確立する(図7のS124)。
If the PCI device is valid in S307, the
次に、図14のステップS310では、UEFI1008が給電されたPCIデバイスのリンクが確立しているかを確認するため、給電されたPCIデバイスに接続されるPortに対応するI/O Hub1014のLink Status Register(10158、1016)を参照し、UEFI1008が給電されたPCIデバイスのリンクが確立されたことをチェックする(図7のS125)。
Next, in step S310 of FIG. 14, in order to confirm whether the link of the PCI device to which the
ステップS311において、UEFI1008は現在操作対象のPCIデバイスがPortとの間のリンクを確立したか否かを判定する。PCIデバイスのリンクが確立していない場合は、ステップS312でUEFI1008がチェック対象のPCIデバイスをリカバリ処理する。リカバリ処理として、UEFI1008はリンクチェック対象のPCIデバイスに接続されるPortのリセット、またはリンクチェック対象のPCIデバイスの電源Off、Onを行う(図7のS312)。
In step S311, the
S311において、給電されたPCIデバイスのリンクが確立している場合は、ステップS313でUEFI1008が給電されたPCIデバイスのPCI Config Register1015、1016のベンダIDとデバイスIDを読み、UEFI1008がPCIリンク期待値表1009を参照し、給電されたPCIデバイスのリンク速度とリンク幅の設定値を読み取る。
If the link of the powered PCI device is established in S311, the vendor ID and device ID of the PCI Config Registers 1015 and 1016 of the PCI device to which the
ステップS314では、UEFI1008は給電されたPCIデバイスに接続されるPort1017、1018に対応するI/O Hub1014のLink Status Register1015、1016を参照し、実際に給電されたPCIデバイスがリンクしているリンク速度とリンク幅を読み取り、実際にPCIデバイスがリンクしているリンク速度とリンク幅が、PCIリンク期待値表1009の値を満たしているか否かを判定する。なお、実際のリンク速度とリンク幅が、PCIリンク期待値表1009の設定値以上であれば、PCIリンク期待値表1009の値を満たすとする。
In step S314, the
ステップS314において、給電されたPCIデバイスのリンク速度、もしくはリンク幅がUEFI1008のPCIリンク期待値表1009の設定値を満たさない場合は、ステップS312でUEFI1008がチェック対象のPCIデバイスをリカバリ処理する。リカバリ処理として、UEFI1008はリンクチェック対象のPCIデバイスに接続されるPortのリセット、またはリンクチェック対象のPCIデバイスの電源Off、Onを行う。
In step S314, if the link speed or link width of the supplied PCI device does not satisfy the setting value of the PCI link expected value table 1009 of the
ステップS314において、給電されたPCIデバイスのリンク速度とリンク幅がUEFI1008のPCIリンク期待値表1009の値を満たす場合は、図15のステップS315に進んで当該PCIデバイスの初期化を完了し、UEFI1008は未初期化のPCIデバイスがあるか否かを判定する。
If the link speed and link width of the powered PCI device satisfy the values in the PCI link expected value table 1009 of the
ステップS315において、未初期化のPCIデバイスがある場合は、図13のステップS306に戻って、UEFI1008がBMC1005へ未初期化のPCIデバイスの有効/無効の設定情報を問い合わせる(S306)。
If there is an uninitialized PCI device in step S315, the process returns to step S306 in FIG. 13, and the
図15のステップS315において、未初期化のPCIデバイスがない場合は、UステップS316に進んで、UEFI1008が計算機1004の初期化を完了する(図7のS126)。
In step S315 in FIG. 15, if there is no uninitialized PCI device, the process proceeds to U step S316, and the
計算機1004の初期化完了後は、ステップS317でUEFI1008がOS1011をブートして、PCIデバイス管理表1007で有効となっているPCIデバイスをOS1011に通知し、OS1011はこの通知に応じてリンクアップしているPCIデバイスを全て認識する(図7のS127)。
After the initialization of the
ステップS318ではOS1011がリンクアップしているPCIデバイスを全て認識した後、OS1011の起動が完了する(図7のS128)。
In step S318, after the
以上の処理により、図12のステップS302において、BMC1005がPCIデバイス管理表1007のエントリを無効から有効に変更してPCIデバイス管理表1007を更新し、UEFI1008が計算機1004の電源Onを受け付けて計算機1004の初期化を行う。この初期化の期間で、UEFI1008がPCIデバイス管理表1007のエントリを無効から有効に変更したPCIデバイスの電源をOnにする。そして、UEFI1008は有効に変更されたPCIデバイスをOS1011に通知する。従って、計算機1004のOS1011は、PCIデバイス管理表1007のエントリで有効設定となっているPCIデバイスを認識できる。
With the above processing, in step S302 of FIG. 12, the
以上の処理によって、Hot Insertモードを利用して計算機1004の稼働中にPCIデバイスを増設しておき、ユーザまたは保守員の都合の良いときにPCIデバイス管理表1007のPCIデバイス設定10072を無効から有効に変更することで、OS1011に増設したPCIデバイスを認識させることができる。そして、Hot InsertモードでPCIデバイスを増設すると、UEFI1008は当該PCIデバイスを無効に設定してBMC1005のPCIデバイス管理表1007を更新し、PCIデバイスの電源を遮断することで、OS1011が当該デバイスを認識するのを禁止する。したがって、増設したPCIデバイスに初期不良が存在したとしても、計算機1004で稼働しているOS1011は不安定になることはなく、業務を安定して継続できるのである。
With the above processing, the PCI device setting 10072 in the PCI device management table 1007 is set from invalid to valid at the convenience of the user or maintenance staff by adding a PCI device while the
また、Hot Insertモードで計算機1004の稼働中にPCIデバイスを増設する際には、一時的にPCIデバイスに通電してリンクアップを確認できる。これにより、ユーザや保守員は増設したPCIデバイスに重大な不良がないことを確認できる。
Further, when adding a PCI device while the
なお、上記実施形態では、図9のステップS209,S210のループ処理を制限しない例を示したが、リカバリの回数が所定値を超えると、UEFI1008がPCIデバイスの電源をOffにしてSVP1003を介してユーザコンソール1002へリンクアップできない旨の通知を行うようにしても良い。
In the above embodiment, an example is shown in which the loop processing of steps S209 and S210 in FIG. 9 is not limited. However, when the number of times of recovery exceeds a predetermined value, the
次に、図16〜図18は従来例と同様のHot Plugの動作モードであるHot Swapモードで、計算機に搭載しているPCIデバイスに障害が発生した場合における、計算機1004の稼働中PCIデバイスを交換する処理のフローチャートを示す。
Next, FIG. 16 to FIG. 18 show the hot swap mode which is the hot plug operation mode similar to the conventional example, and the PCI device in operation of the
計算機1004の稼働中において、Hot Swapモードを利用したPCIデバイスの交換/増設によりPCIデバイスの電源をOnにする場合は、計算機1004へPCIデバイスを増設した後に、Attentionボタン1023、1024を押下する。Attentionボタン1023、1024の押下を契機にAttentionボタンに接続されるPort1017、1018がAttentionメッセージをUEFI1008へ通知する。UEFI1008は通知を受け付けてAttentionボタンの押下を検出し、増設したPCIデバイスの電源をOnにする。
When the power of the PCI device is turned on by exchanging / adding a PCI device using the Hot Swap mode while the
なお、PCIデバイスの電源は各Port毎に制御される。例えば、図1、図3に示すように、Port1017に接続されるPCIデバイス(#01)1019が有効設定である場合において、PCIデバイス(#01)1019を計算機1004に増設し、Attentionボタン1023を押下すると、PCIデバイス(#01)1019の電源をOnにできる。
The power supply of the PCI device is controlled for each port. For example, as shown in FIGS. 1 and 3, when the PCI device (# 01) 1019 connected to the
以下、図16〜図18を参照して説明する。 Hereinafter, a description will be given with reference to FIGS.
まず、ユーザ、もしくは保守員がユーザコンソール1002を操作して計算機のHot Plugの動作モードをHot Swapモードに設定する。
First, the user or maintenance personnel operates the
図16のステップS401では、計算機管理装置1001内のSVP1003がHot Swapモードの設定をユーザコンソール1002から受け付ける。
In step S401 of FIG. 16, the
SVP1003がHot Swapモードの設定を受けて、BMC1005へHot Insertモードが無効であることを通知する(S402)。
The
BMC1005はSVP1003からHot Insertモード無効の通知を受けて、Hot Plugモード記憶領域に設定値0を書き込み、Hot Swapモードを記録する(S403)。
The
ユーザ、もしくは保守員が計算機1004のOS1011を操作し、障害が発生したPCIデバイスの取り外しを実行すると、OS1011は障害が発生したPCIデバイスの取り外し契機を検出する(S404)。なお、PCIデバイスの障害の検知は、周知又は公知の技術を利用すればよい。
When the user or maintenance personnel operates the
OS1011は障害が発生したPCIデバイスの取り外しの契機を検出後、OS1011がUEFI1008へ障害が発生したPCIデバイスの取り外し(Hot Remove)を通知する(S405)。
The
UEFI1008は障害が発生したPCIデバイスの取り外し契機を受けて、障害が発生したPCIデバイスへの電源をOffにする(S406)。
In response to the removal timing of the PCI device in which the failure has occurred, the
ユーザ、もしくは保守員が、障害が発生したPCIデバイスを取り外すと、UEFI1008は障害が発生したPCIデバイスの抜去を検出する(図17のS407)。
When the user or maintenance staff removes the PCI device in which the failure has occurred, the
ユーザ、もしくは保守員は障害が発生したPCIデバイスとは別のPCIデバイスに交換して、新たなPCIデバイスをPort1017、1018に接続すると、UEFI1008がPCIデバイスの搭載を検出する(S408)。
When the user or maintenance personnel replaces the PCI device different from the PCI device in which the failure has occurred and connects the new PCI device to the
ユーザ、もしくは保守員が搭載したPCIデバイスに接続されるPort1017、1018に対応するAttentionボタン1023、1024を押下すると、Attentionボタン1023、1024に接続されたPort1017、1018がAttentionボタンの押下を検出する。Port1017、1018がUEFI1008へAttentionメッセージを通知し、UEFI1008がAttentionボタンの押下を検出する(S409)。
When the user or a maintenance person presses the
UEFI1008がAttentionボタン押下を検出すると、UEFI1008は、搭載したPCIデバイスの電源をOnにする(S410)。搭載したPCIデバイスの電源をOnにした後、PCIデバイスは初期化、リンクアップする(S411)。
When the
UEFI1008は、搭載したPCIデバイスのリンクの確立をチェックするため、搭載したPCIデバイスに接続されるPort1017、1018に対応するI/O Hub1014のLink Status Register1015、1016を参照し、搭載したPCIデバイスのリンクが確立しているか否かを判定する(S412)。
The
ステップS413において、搭載したPCIデバイスのリンクが確立していない場合は、ステップS414でUEFI1008がリンクチェック対象のPCIデバイスをリカバリ処理する。リカバリ処理として、UEFI1008はリンクチェック対象のPCIデバイスに接続されるPortのリセット、またはリンクチェック対象のPCIデバイスの電源のOff、Onを行う。
If the link of the mounted PCI device is not established in step S413, the
ステップS413において、搭載したPCIデバイスのリンクが確立している場合は、UEFI1008が搭載したPCIデバイスのPCI Config Register1021、1022のベンダIDとデバイスIDを読み込む。また、UEFI1008は、PCIリンク期待値表1009を参照し、搭載したPCIデバイスのリンク速度とリンク幅の設定値を読み込む(S415)。
In step S413, if the link of the mounted PCI device is established, the vendor ID and device ID of the
UEFI1008は、搭載したPCIデバイスに対応するI/O Hub1014のLink Status Register1015、1016を参照し、搭載したPCIデバイスが実際にリンクしているリンク速度とリンク幅を読み込む。UEFI1008は搭載したPCIデバイスが実際にリンクしているリンク速度とリンク幅が、搭載したPCIデバイスに対してPCIリンク期待値表1009で設定されたリンク速度とリンク幅を満たしているか否かを判定する(S416)。
The
ステップS416において、搭載したPCIデバイスのリンク速度、もしくはリンク幅がUEFI1008の設定値を満たしていない場合は、UEFI1008がリンクチェック対象のPCIデバイスをリカバリ処理する。リカバリ処理として、UEFI1008はリンクチェック対象のPCIデバイスに接続されるPortのリセット、またはリンクチェック対象のPCIデバイスの電源のOff、Onを行う(S414)。
If the link speed or link width of the mounted PCI device does not satisfy the setting value of the
ステップS416において、PCIデバイスのリンク速度とリンク幅が設定値を満たしている場合は、UEFI1008がOS1011へPCIデバイスの追加を通知する(S417)。
If the link speed and link width of the PCI device satisfy the set values in step S416, the
ステップS417において、UEFI1008がOS1011へ搭載したPCIデバイスの追加を通知すると、OS1011が搭載したPCIデバイスを認識し、搭載したPCIデバイスが使用可能となる(S418)。
In step S417, when the
ステップS418により、交換/増設したPCIデバイスをOS1011が認識し、交換/増設したPCIデバイスを使用することができる。
In step S418, the
以上のように、Hot Swapモードでは、障害の発生したPCIデバイスの電源をOffにしてからPortから取り外し、新たなPCIデバイスをPortに接続した後に電源をOnにする。UEFI1008は、取り外し時と新たなPCIデバイスの接続時にそれぞれOS1011へ通知を行うことで、OS1011は交換するPCIデバイスを円滑に認識することができる。
As described above, in the Hot Swap mode, the power supply of the faulty PCI device is turned off and then removed from the port. After the new PCI device is connected to the port, the power supply is turned on. The
本発明の計算機1004では、Hot Plugのモードとして、Hot InsertモードとHot Swapモードの2つを備えることにより、至急OS1011に認識させる必要のないPCIデバイスの増設をHot Insertモードで実施し、障害などで至急OS1011に認識させる必要のあるPCIデバイスの交換をHot Swapモードで実施することが可能となる。
In the
そして、Hot Insertモードでは、PCIデバイスを増設した後、所望のタイミングでOS1011に増設したPCIデバイスを認識させることができる。これにより、Hot Insertモードでは、増設したPCIデバイスを無効化してOS1011への通知を禁止するため、計算機1004が提供する業務に影響を与えることなく新たなPCIデバイスを追加し、所望の時期にOS1011に認識させることが可能となる。例えば、保守員が昼間にHot InsertモードでPCIデバイスを計算機1004に増設しておき、夜間にユーザが業務を停止してから増設したPCIデバイスをOS1011に認識させることができる。
In the Hot Insert mode, after the PCI device is added, the PCI device added to the
なお、上記実施形態では、Hot Insertモードで増設したPCIデバイスを、計算機1004のOS1011を再起動させた後に認識させる例を示したが、OS1011を再起動することなく、SVP1003から増設したPCIデバイスを有効に設定することで、OS1011を稼働させたまま、所望のタイミングで増設したPCIデバイスを認識させても良い。
In the above embodiment, the PCI device added in the hot insert mode is recognized after the
また、上記実施形態では、SVP1003がBMC1005と通信する例を示したが、SVP1003に代わって外部の計算機がBMC1005と通信し、Hot Plugのモードと、PCIデバイスの有効または無効を設定するようにしても良い。
In the above embodiment, the
また、上記実施形態では、UEFI1008がHot Plugの機能を提供する例を示したが、計算機1004のハードウェアを制御するBIOS等のシステム制御部またはシステム制御機能がHot Plugの機能を提供する場合も本発明を適用することができる。なお、システム制御部は、計算機1004のハードウェアとOS1011との間でI/Oを制御する機能部であればよい。また、システム制御部には、BMC1005を含めるようにしても良い。
In the above-described embodiment, an example in which the
また、上記実施形態では、BMC1005がHot PlugのモードとPCIデバイスの有効または無効を管理する例を示したが、上記システム制御部または外部の計算機がHot PlugのモードとPCIデバイスの有効または無効を管理するデバイス管理部を備えていても良い。
In the above embodiment, an example in which the
また、上記実施形態では、UEFI1008がPCIデバイスのリンク速度とリンク幅の設定値または基準値を保持する例を示したが、上記システム制御部またはシステム制御機能が保持しても良い。
In the above embodiment, the
1003 SVP
1004 計算機
1005 BMC
1008 UEFI
1010 CPU
1011 OS
1013 メモリ
1014 I/O Hub
1017、1018 Port
1019、1020 PCIデバイス
1003 SVP
1004
1008 UEFI
1010 CPU
1011 OS
1013 Memory 1014 I / O Hub
1017, 1018 Port
1019, 1020 PCI devices
Claims (12)
前記システム制御部は、
前記ホットプラグのモードを設定するホットプラグモード記憶領域と、
前記PCIデバイスが前記ポートに追加されたことを検出するデバイス検出部と、を備え、
前記システム制御部は、前記デバイス検出部が前記PCIデバイスの追加を検出したときに前記ホットプラグモード記憶領域の値が所定値であれば、前記PCIデバイスへ一時的に通電した後に、通電を遮断することを特徴とする計算機。 A computer comprising a port for connecting a processor, a memory and a PCI device, and a system control unit for controlling hot plugging of the PCI device,
The system controller is
A hot-plug mode storage area for setting the hot-plug mode;
A device detection unit for detecting that the PCI device has been added to the port;
If the value of the hot plug mode storage area is a predetermined value when the device detection unit detects the addition of the PCI device, the system control unit cuts off the power supply after temporarily supplying power to the PCI device. A computer characterized by
前記計算機は、前記PCIデバイスが有効または無効の何れであるかを設定するデバイス管理部をさらに有し、
前記システム制御部は、
前記デバイス検出部が前記PCIデバイスの追加を検出したときに前記ホットプラグモード記憶領域の値が所定値であれば、前記デバイス管理部に当該PCIデバイスを無効に設定することを特徴とする計算機。 The computer according to claim 1,
The computer further includes a device management unit for setting whether the PCI device is valid or invalid,
The system controller is
If the value of the hot plug mode storage area is a predetermined value when the device detection unit detects the addition of the PCI device, the computer is set to be invalid in the device management unit.
前記システム制御部は、
入力された値を受け付けて、前記ホットプラグモード記憶領域に格納することを特徴とする計算機。 The computer according to claim 1,
The system controller is
A computer which receives an input value and stores it in the hot plug mode storage area.
前記プロセッサは、OSを実行し、
前記システム制御部は、
前記デバイス検出部が前記PCIデバイスの追加を検出したときに前記ホットプラグモード記憶領域の値が所定値であれば、前記OSに対して前記PCIデバイスの追加の通知を禁止することを特徴とする計算機。 The computer according to claim 1,
The processor executes an OS;
The system controller is
If the value of the hot plug mode storage area is a predetermined value when the device detection unit detects the addition of the PCI device, the PCI device addition notification is prohibited to the OS. calculator.
前記プロセッサは、OSを実行し、
前記システム制御部は、
入力された値を受け付けて、前記デバイス管理部で無効に設定されたPCIデバイスを有効に更新したときには、前記追加されたPCIデバイスに通電し、前記OSに当該PCIデバイスを通知することを特徴とする計算機。 The computer according to claim 2,
The processor executes an OS;
The system controller is
When an input value is received and a PCI device set to invalid by the device management unit is updated to be valid, the added PCI device is energized and the OS is notified of the PCI device. Calculator to do.
前記システム制御部は、
前記ホットプラグモード記憶領域の値が所定値であれば、前記追加したPCIデバイスへ一時的に通電した後に、通電を遮断する第1のホットプラグモードに設定し、前記ホットプラグモード記憶領域の値が所定値以外であれば、前記PCIデバイスの追加と取り外しを行う第2のホットプラグモードに設定することを特徴とする計算機。 The computer according to claim 1,
The system controller is
If the value of the hot plug mode storage area is a predetermined value, after the added PCI device is temporarily energized, it is set to the first hot plug mode in which the energization is cut off, and the value of the hot plug mode storage area is set. If is not a predetermined value, the computer is set to a second hot plug mode in which the PCI device is added and removed.
前記システム制御部が、前記ホットプラグのモードをホットプラグモード記憶領域に設定する第1のステップと、
前記システム制御部が、前記PCIデバイスが前記ポートに追加されたことを検出する第2のステップと、
前記システム制御部は、前記PCIデバイスの追加を検出したときに前記ホットプラグモード記憶領域の値が所定値であれば、前記PCIデバイスへ一時的に通電した後に、通電を遮断する第3のステップと、
を含むことを特徴とする計算機の制御方法。 A computer having a port for connecting a processor, a memory, and a PCI device, and a system control unit, wherein the system control unit controls hot plugging of the PCI device,
A first step in which the system control unit sets a mode of the hot plug in a hot plug mode storage area;
A second step in which the system controller detects that the PCI device has been added to the port;
If the value of the hot plug mode storage area is a predetermined value when the addition of the PCI device is detected, the system control unit temporarily energizes the PCI device and then shuts off energization. When,
A computer control method comprising the steps of:
前記計算機は、前記PCIデバイスの有効または無効の何れかを設定するデバイス管理部をさらに有し、
前記第3のステップは、
前記PCIデバイスの追加を検出したときに前記ホットプラグモード記憶領域の値が所定値であれば、前記デバイス管理部に当該PCIデバイスを無効に設定することを特徴とする計算機の制御方法。 The computer control method according to claim 7, comprising:
The computer further includes a device management unit that sets either valid or invalid of the PCI device,
The third step includes
If the value of the hot plug mode storage area is a predetermined value when the addition of the PCI device is detected, the computer management method is set to invalidate the PCI device in the device management unit.
前記第1のステップは、
前記システム制御部は、入力された値を受け付けて、前記ホットプラグモード記憶領域に格納することを特徴とする計算機の制御方法。 The computer control method according to claim 7, comprising:
The first step includes
The system control unit accepts an input value and stores it in the hot plug mode storage area.
前記プロセッサは、OSを実行し、
前記第3のステップは、
システム制御部は、前記PCIデバイスの追加を検出したときに前記ホットプラグモード記憶領域の値が所定値であれば、前記OSに対して前記PCIデバイスの追加の通知を禁止することを特徴とする計算機の制御方法。 The computer control method according to claim 7, comprising:
The processor executes an OS;
The third step includes
If the value of the hot plug mode storage area is a predetermined value when the addition of the PCI device is detected, the system control unit prohibits the OS from being notified of the addition of the PCI device. Computer control method.
前記プロセッサは、OSを実行し、
前記システム制御部が、入力された値を受け付けて、前記デバイス管理部で無効に設定されたPCIデバイスを有効に更新する第4のステップをさらに含み、
前記第3のステップは、
前記追加されたPCIデバイスが前記デバイス管理部で有効に設定されたときには、当該PCIデバイスに通電し、前記OSに当該PCIデバイスを通知することを特徴とする計算機の制御方法。 The computer control method according to claim 8, comprising:
The processor executes an OS;
The system control unit further includes a fourth step of accepting the input value and effectively updating the PCI device set to invalid by the device management unit,
The third step includes
When the added PCI device is set to be valid by the device management unit, the PCI device is energized and the OS is notified of the PCI device.
前記システム制御部は、前記ホットプラグモード記憶領域の値が所定値であれば、前記追加したPCIデバイスへ一時的に通電した後に、通電を遮断する第1のホットプラグモードに設定し、前記ホットプラグモード記憶領域の値が所定値以外であれば、前記PCIデバイスの追加と取り外しを行う第2のホットプラグモードに設定する第5のステップをさらに含むことを特徴とする計算機の制御方法。 The computer control method according to claim 7, comprising:
If the value of the hot plug mode storage area is a predetermined value, the system control unit sets the first hot plug mode to cut off the power supply after temporarily supplying power to the added PCI device, and If the value of the plug mode storage area is other than a predetermined value, the computer control method further includes a fifth step of setting the second hot plug mode for adding and removing the PCI device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011266217A JP2013117930A (en) | 2011-12-05 | 2011-12-05 | Computer and method for controlling computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011266217A JP2013117930A (en) | 2011-12-05 | 2011-12-05 | Computer and method for controlling computer |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013117930A true JP2013117930A (en) | 2013-06-13 |
Family
ID=48712430
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011266217A Pending JP2013117930A (en) | 2011-12-05 | 2011-12-05 | Computer and method for controlling computer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013117930A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104272326A (en) * | 2013-12-03 | 2015-01-07 | 华为终端有限公司 | Card burning preventing detecting device, terminal equipment, and card burning detecting and processing method |
JP2015064648A (en) * | 2013-09-24 | 2015-04-09 | 株式会社日立製作所 | Computer system, computer system control method, and connection module |
JP2019175424A (en) * | 2018-03-29 | 2019-10-10 | 廣達電腦股▲ふん▼有限公司Quanta Computer Inc. | Method and system for checking error of cable |
JP2021018731A (en) * | 2019-07-23 | 2021-02-15 | 株式会社Pfu | Computer device and rebooting method |
JP7435035B2 (en) | 2020-03-03 | 2024-02-21 | 日本電気株式会社 | PCIe devices, failure recovery methods, programs |
-
2011
- 2011-12-05 JP JP2011266217A patent/JP2013117930A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015064648A (en) * | 2013-09-24 | 2015-04-09 | 株式会社日立製作所 | Computer system, computer system control method, and connection module |
CN104272326A (en) * | 2013-12-03 | 2015-01-07 | 华为终端有限公司 | Card burning preventing detecting device, terminal equipment, and card burning detecting and processing method |
WO2015081497A1 (en) * | 2013-12-03 | 2015-06-11 | 华为终端有限公司 | Burning prevention card detecting device, terminal device and burning prevention card detecting and processing method |
CN104272326B (en) * | 2013-12-03 | 2017-01-25 | 华为终端有限公司 | Card burning preventing detecting device, terminal equipment, and card burning detecting and processing method |
JP2019175424A (en) * | 2018-03-29 | 2019-10-10 | 廣達電腦股▲ふん▼有限公司Quanta Computer Inc. | Method and system for checking error of cable |
JP2021018731A (en) * | 2019-07-23 | 2021-02-15 | 株式会社Pfu | Computer device and rebooting method |
JP7324637B2 (en) | 2019-07-23 | 2023-08-10 | 株式会社Pfu | Computer device and restart method |
JP7435035B2 (en) | 2020-03-03 | 2024-02-21 | 日本電気株式会社 | PCIe devices, failure recovery methods, programs |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8127128B2 (en) | Synchronization of swappable module in modular system | |
US9015458B2 (en) | Computer system and method for updating basic input/output system by switching between local mode and bypass mode through baseboard management controller | |
US7444502B2 (en) | Method for changing booting configuration and computer system capable of booting OS | |
US10241868B2 (en) | Server control method and server control device | |
US9910664B2 (en) | System and method of online firmware update for baseboard management controller (BMC) devices | |
TWI724415B (en) | A multi-node storage system and method for updating firmware thereof | |
JP2013117930A (en) | Computer and method for controlling computer | |
US20120185634A1 (en) | Computer system and method for inheriting hba identifier of pci card | |
US20130080752A1 (en) | Method and apparatus for implementing compatiblity of different processors | |
US10430082B2 (en) | Server management method and server for backup of a baseband management controller | |
JP2018116648A (en) | Information processor, control method thereof and program | |
JP2013041390A (en) | Information processor, startup method, and program | |
JP2009251786A (en) | Data processing method, storage apparatus, and storage system | |
JP5314731B2 (en) | Method and computer system for synchronizing basic input / output program between data processing devices | |
JP6575715B1 (en) | Information processing system and relay device | |
TWI547873B (en) | Control module of server node and firmware updating method for the control module | |
JP7007019B2 (en) | Server management device, server management method, server management program, and version check program | |
CN101727333A (en) | Method for updating firmware in microprocessor and firmware updating system | |
JP6669979B1 (en) | Information processing system and relay device | |
JP2018194877A (en) | Information processing apparatus and setting program | |
TW201514720A (en) | A server system | |
JP2017041110A (en) | Multiple computer system, management unit and management program | |
CN113867835B (en) | Device and method for dynamic loading of DSP | |
JP2019074876A (en) | Backup method, backup system, and backup device | |
JP5360311B2 (en) | Disk array device |