TWI684872B - System management bus device management system and method thereof - Google Patents

System management bus device management system and method thereof Download PDF

Info

Publication number
TWI684872B
TWI684872B TW107146032A TW107146032A TWI684872B TW I684872 B TWI684872 B TW I684872B TW 107146032 A TW107146032 A TW 107146032A TW 107146032 A TW107146032 A TW 107146032A TW I684872 B TWI684872 B TW I684872B
Authority
TW
Taiwan
Prior art keywords
smb
devices
register
device management
function module
Prior art date
Application number
TW107146032A
Other languages
Chinese (zh)
Other versions
TW202024941A (en
Inventor
于成德
陳建霖
蔡廸侖
Original Assignee
技嘉科技股份有限公司
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 技嘉科技股份有限公司 filed Critical 技嘉科技股份有限公司
Priority to TW107146032A priority Critical patent/TWI684872B/en
Application granted granted Critical
Publication of TWI684872B publication Critical patent/TWI684872B/en
Publication of TW202024941A publication Critical patent/TW202024941A/en

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A system management bus (SMB) device management system and method thereof are provided. The SMB device management system includes: multiple SMB devices and a SMB utility module coupled to the SMB devices. The SMB utility module obtains an external file, the external file including addressing information of the SMB devices. The SMB utility module establishes a hierarchical structure corresponding to the SMB devices through the external file such that each of the SMB devices has a unique address trace.

Description

系統管理匯流排裝置管理系統及其方法System management bus device management system and method

本發明是有關於一種系統管理匯流排裝置管理系統及其方法,且特別是有關於一種能有效定址系統管理匯流排(System Management Bus,SMB)裝置的系統管理匯流排裝置管理系統及其方法。The present invention relates to a system management bus device management system and method thereof, and in particular to a system management bus device management system and method capable of effectively addressing a system management bus (SMB) device.

由於SMB交換器的誕生,讓使用者無法一次性地看到所有SMB裝置。若將SMB交換器的通道全部打開,可能會遇到SMB裝置的位址重複或SMB裝置過載等問題而導致SMB主機的讀寫功能異常。每個SMB裝置的暫存器所連動的裝置工作狀態及實質上的物理意義是由各個製造商自行定義,並沒有一個統一的規範。因此,使用者需要仔細確認SMB裝置的規範後才能得知此SMB裝置的使用方法。此外,當韌體對SMB裝置進行讀寫時,由於缺乏一個通用的管理方式而不易控管。因此,如何有效定址SMB裝置並賦予SMB裝置暫存器對應的物理意義是本領域技術人員應致力的目標。Due to the birth of SMB switch, users cannot see all SMB devices at once. If you open all the channels of the SMB switch, you may encounter problems such as duplicate address of the SMB device or overload of the SMB device, resulting in abnormal read and write functions of the SMB host. The working status and the physical meaning of the device linked to the temporary memory of each SMB device are defined by each manufacturer, and there is no unified specification. Therefore, the user needs to carefully confirm the specifications of the SMB device to know how to use the SMB device. In addition, when the firmware reads and writes the SMB device, it is not easy to control due to the lack of a general management method. Therefore, how to effectively address the SMB device and give the corresponding physical meaning to the SMB device register is the goal that those skilled in the art should devote to.

本發明提供一種系統管理匯流排裝置管理系統及其方法,能有效定址SMB裝置並賦予SMB裝置暫存器對應的物理意義The present invention provides a system management bus device management system and method thereof, which can effectively address SMB devices and give the SMB device temporary registers corresponding physical meanings

本發明提出一種SMB裝置管理系統,包括:多個SMB裝置;以及SMB功能模組,耦接到SMB裝置。SMB功能模組獲得外部檔案,外部檔案包括SMB裝置的定址資訊。SMB功能模組透過外部檔案來建立對應SMB裝置的階層式結構,使得每個SMB裝置具有唯一位址軌跡。The present invention provides an SMB device management system, including: multiple SMB devices; and an SMB function module, coupled to the SMB device. The SMB function module obtains external files, which include addressing information of the SMB device. The SMB function module creates a hierarchical structure corresponding to SMB devices through external files, so that each SMB device has a unique address track.

在本發明的一實施例中,上述SMB功能模組透過階層式結構掃描SMB裝置,並顯示掃描到的SMB裝置。In an embodiment of the invention, the SMB function module scans the SMB device through a hierarchical structure, and displays the scanned SMB device.

在本發明的一實施例中,上述階層式結構為樹狀結構。In an embodiment of the invention, the hierarchical structure is a tree structure.

在本發明的一實施例中,上述外部檔案包括每個SMB裝置的多個暫存器數值所對應的物理意義資訊。In an embodiment of the invention, the external file includes physical meaning information corresponding to a plurality of register values of each SMB device.

在本發明的一實施例中,上述SMB裝置管理系統更包括耦接到SMB功能模組及SMB裝置的統一可延伸韌體介面(Unified Extensible Firmware Interface,UEFI)韌體模組。SMB功能模組根據SMB裝置的暫存器配置及唯一位址軌跡產生編碼檔案。UEFI韌體模組解碼編碼檔案並透過唯一位址軌跡辨識SMB裝置,再將暫存器配置中的暫存器資料寫入對應的SMB裝置。In an embodiment of the invention, the SMB device management system further includes a Unified Extensible Firmware Interface (UEFI) firmware module coupled to the SMB function module and the SMB device. The SMB function module generates an encoded file based on the SMB device's temporary memory configuration and unique address track. The UEFI firmware module decodes the encoded file and identifies the SMB device through the unique address track, and then writes the register data in the register configuration to the corresponding SMB device.

在本發明的一實施例中,上述暫存器配置包括配置空間的暫存器數值,且SMB功能模組接收暫存器變更指令,以變更其中一個暫存器數值。In an embodiment of the present invention, the register configuration includes register values in the configuration space, and the SMB function module receives a register change command to change one of the register values.

本發明提出一種SMB裝置管理方法,包括:藉由SMB功能模組獲得外部檔案,外部檔案包括SMB裝置的定址資訊;以及藉由SMB功能模組透過外部檔案來建立對應SMB裝置的階層式結構,使得每個SMB裝置具有唯一位址軌跡。The present invention provides an SMB device management method, including: obtaining an external file through an SMB function module, the external file includes addressing information of the SMB device; and creating a hierarchical structure corresponding to the SMB device through the external file through the SMB function module, Each SMB device has a unique address track.

在本發明的一實施例中,上述SMB功能模組透過階層式結構掃描SMB裝置,並顯示掃描到的SMB裝置。In an embodiment of the invention, the SMB function module scans the SMB device through a hierarchical structure, and displays the scanned SMB device.

在本發明的一實施例中,上述階層式結構為樹狀結構。In an embodiment of the invention, the hierarchical structure is a tree structure.

在本發明的一實施例中,上述外部檔案包括每個SMB裝置的多個暫存器數值所對應的物理意義資訊。In an embodiment of the invention, the external file includes physical meaning information corresponding to a plurality of register values of each SMB device.

在本發明的一實施例中,上述SMB裝置管理方法更包括:藉由SMB功能模組根據SMB裝置的暫存器配置及唯一位址軌跡產生編碼檔案;以及藉由UEFI韌體模組解碼編碼檔案並透過唯一位址軌跡辨識SMB裝置,再將暫存器配置中的暫存器資料寫入對應的SMB裝置。In an embodiment of the present invention, the above SMB device management method further includes: generating an encoding file according to the SMB device's register configuration and unique address track by the SMB function module; and decoding the encoding by the UEFI firmware module File and identify the SMB device through the unique address track, and then write the register data in the register configuration to the corresponding SMB device.

在本發明的一實施例中,上述暫存器配置包括配置空間的暫存器數值,且SMB功能模組接收暫存器變更指令,以變更其中一個暫存器數值。In an embodiment of the present invention, the register configuration includes register values in the configuration space, and the SMB function module receives a register change command to change one of the register values.

基於上述,本發明的系統管理匯流排裝置管理系統及其方法可透過外部檔案來建立SMB裝置的階層式結構使得每個SMB裝置具有唯一位址軌跡,讓使用者可看到每個SMB裝置及其連接關係。此外,SMB功能模組可根據SMB裝置的暫存器配置及唯一位址軌跡產生編碼檔案,再經由UEFI韌體模組解碼編碼檔案並透過唯一位址軌跡辨識SMB裝置,再將暫存器配置中的暫存器資料寫入對應的SMB裝置。如此一來,使用者可藉由修改SMB裝置的暫存器數值快速地賦予SMB裝置暫存器的物理意義。Based on the above, the system management bus device management system and method of the present invention can establish a hierarchical structure of SMB devices through external files so that each SMB device has a unique address track, allowing users to see each SMB device and Its connection. In addition, the SMB function module can generate a code file according to the SMB device's register configuration and unique address track, then decode the code file through the UEFI firmware module and identify the SMB device through the unique address track, and then configure the register The scratchpad data in is written to the corresponding SMB device. In this way, the user can quickly give the physical meaning of the SMB device register by modifying the register value of the SMB device.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more obvious and understandable, the embodiments are specifically described below in conjunction with the accompanying drawings for detailed description as follows.

圖1為根據本發明一實施例的SMB管理系統的方塊圖。圖2為根據本發明一實施例建立SMB裝置階層式結構之前及之後的比較圖。FIG. 1 is a block diagram of an SMB management system according to an embodiment of the invention. 2 is a comparison diagram before and after establishing a hierarchical structure of an SMB device according to an embodiment of the invention.

請參照圖1,本發明一實施例的SMB管理系統100包括實體伺服器110、SMB功能模組130及UEFI韌體模組160。實體伺服器110包括第一SMB裝置111、第二SMB裝置112及第三SMB裝置113。在此,SMB裝置的數量僅為舉例說明。實體伺服器110可包括更少或更多的SMB裝置。第一SMB裝置111、第二SMB裝置112及第三SMB裝置113在SMB裝置的階層式結構建立之前屬於未知的(unknown)SMB裝置。未知的SMB裝置代表了SMB裝置的位址、偏移值(offset)及暫存器意義並沒有統一的規範,因此實體伺服器110無法對多個未知的SMB裝置進行位址及暫存器等屬性的統一管理。SMB功能模組130可以韌體或是硬體電路來實作。Referring to FIG. 1, an SMB management system 100 according to an embodiment of the present invention includes a physical server 110, an SMB function module 130, and a UEFI firmware module 160. The physical server 110 includes a first SMB device 111, a second SMB device 112, and a third SMB device 113. Here, the number of SMB devices is just an example. The physical server 110 may include fewer or more SMB devices. The first SMB device 111, the second SMB device 112, and the third SMB device 113 belong to an unknown SMB device before the hierarchical structure of the SMB device is established. The unknown SMB device represents the address, offset, and register meaning of the SMB device. There is no unified specification, so the physical server 110 cannot address and register multiple unknown SMB devices. Unified management of attributes. The SMB function module 130 can be implemented by firmware or hardware circuits.

透過SMB現有功能及外部檔案120,可在SMB功能模組130建立一個虛擬伺服器140。虛擬伺服器140包括了SMB裝置識別符(ID)一141、SMB裝置識別符二142及SMB裝置識別符三143分別對應到第一SMB裝置111、第二SMB裝置112及第三SMB裝置113。外部檔案120包括了SMB裝置的定址資訊,因此SMB功能模組130可透過該外部檔案120來建立對應SMB裝置的階層式結構,使得每個SMB裝置具有唯一(unique)位址軌跡。Through SMB existing functions and external files 120, a virtual server 140 can be created in the SMB function module 130. The virtual server 140 includes an SMB device identifier (ID) one 141, an SMB device identifier two 142, and an SMB device identifier three 143 corresponding to the first SMB device 111, the second SMB device 112, and the third SMB device 113, respectively. The external file 120 includes the addressing information of the SMB device. Therefore, the SMB function module 130 can establish a hierarchical structure corresponding to the SMB device through the external file 120 so that each SMB device has a unique address track.

以圖2為例,在建立SMB裝置階層式結構之前,SMB主機210透過硬體電路230耦接到其他SMB裝置220。由於缺乏統一的管理規範,SMB裝置220會被SMB主機210認定為上述定義的「未知SMB裝置」。然而,在透過外部檔案120建立SMB裝置250的階層式結構之後,SMB主機240與SMB裝置250可形成一階層式結構(例如,一樹狀結構)。如此一來,SMB裝置250可具有統一定義的識別符。Taking FIG. 2 as an example, before establishing the hierarchical structure of the SMB device, the SMB host 210 is coupled to other SMB devices 220 through the hardware circuit 230. Due to the lack of a unified management specification, the SMB device 220 will be recognized by the SMB host 210 as the "unknown SMB device" defined above. However, after the hierarchical structure of the SMB device 250 is established through the external file 120, the SMB host 240 and the SMB device 250 may form a hierarchical structure (eg, a tree structure). In this way, the SMB device 250 may have a uniformly defined identifier.

[SMB裝置階層式結構建立方法][SMB device hierarchical structure creation method]

在一實施例中,使用者需要依照SMB裝置規格(Spec)及SMB功能建立一個外部檔案,並在UEFI提供的殼層環境下執行程式來自動載入外部檔案。在載入外部檔案後,SMB裝置的階層式結構會根據外部檔案中SMB裝置的定址資訊而建立。最後,SMB功能模組130可透過階層式結構掃描SMB裝置,並顯示掃描到的SMB裝置。In one embodiment, the user needs to create an external file according to the SMB device specification (Spec) and the SMB function, and execute the program in the shell environment provided by UEFI to automatically load the external file. After loading the external file, the hierarchical structure of the SMB device will be created based on the addressing information of the SMB device in the external file. Finally, the SMB function module 130 can scan the SMB device through the hierarchical structure and display the scanned SMB device.

圖3為根據本發明一實施例的SMB裝置的階層式結構的範例。FIG. 3 is an example of a hierarchical structure of an SMB device according to an embodiment of the invention.

請參照圖3,在SMB裝置階層式結構中,顯示了掃瞄到的SMB裝置的位址310、位置320、位址軌跡(trace)330、類型340及裝置識別符350。每個SMB裝置會對應到一個唯一的位址310(或位址區段),且每個SMB裝置會具有唯一位址軌跡330。每個裝置的唯一位址軌跡330會形成SMB裝置階層式結構。Referring to FIG. 3, in the hierarchical structure of the SMB device, the scanned address 310, location 320, address trace 330, type 340, and device identifier 350 of the SMB device are displayed. Each SMB device will correspond to a unique address 310 (or address segment), and each SMB device will have a unique address track 330. The unique address track 330 of each device forms a hierarchical structure of SMB devices.

[賦予SMB裝置暫存器對應的名稱及物理意義][The corresponding name and physical meaning given to the SMB device register]

在一實施例中,使用者需要依照SMB裝置規格及SMB功能建立一個外部檔案,並在UEFI提供的殼層環境下執行程式來自動載入外部檔案。外部檔案除了包括SMB裝置的定址資訊,還包括每個SMB裝置的暫存器數值所對應的名稱及物理意義資訊。SMB功能模組130可根據外部檔案建立每個SMB裝置的暫存器數值對應的名稱及物理意義資訊,並以圖形化使用者介面結合配置空間呈現給使用者。In one embodiment, the user needs to create an external file according to the SMB device specification and SMB function, and execute the program in the shell environment provided by UEFI to automatically load the external file. In addition to the addressing information of the SMB device, the external file also includes the name and physical meaning information corresponding to the register value of each SMB device. The SMB function module 130 can create a name and physical meaning information corresponding to the register value of each SMB device according to an external file, and present it to the user with a graphical user interface combined with a configuration space.

圖4為根據本發明一實施例以配置空間排版暫存器的範例。4 is an example of configuring a spatial layout register according to an embodiment of the invention.

請參照圖4,具有位址0xB0的SMB裝置的配置空間400可包含偏移值為0到255的暫存器,共有256個暫存器。舉例來說,暫存器410可對應到文字內容為「CH0-CHA_1_VOD」的名稱420,其中VOD代表了電壓降(Voltage Drop)的物理意義資訊。當暫存器410的值為「01」時,代表了0.8V電壓降的物理意義。隨著SMB裝置規格定義不同,暫存器410的值從「01」改變為其他值時,也可對應到不同電壓降數值的物理意義。值得注意的是,圖4下方的「Smbus Address:0xB0」代表了圖4中的配置空間400是圖3中具有0xb0的位址310的SMB裝置的配置空間。雖然圖4中暫存器的值是以一個位元組為顯示單位,但在另一實施例中,暫存器的值也可以一個字組(word)為顯示單位,其中一個字組等於兩個位元組。Referring to FIG. 4, the configuration space 400 of the SMB device with the address 0xB0 may include registers with offset values of 0 to 255, and there are 256 registers in total. For example, the register 410 can correspond to the name 420 whose text content is "CH0-CHA_1_VOD", where VOD represents the physical meaning information of Voltage Drop. When the value of the register 410 is "01", it represents the physical meaning of a voltage drop of 0.8V. With the different definitions of SMB device specifications, when the value of the register 410 is changed from "01" to other values, it can also correspond to the physical meaning of different voltage drop values. It is worth noting that “Smbus Address: 0xB0” at the bottom of FIG. 4 represents that the configuration space 400 in FIG. 4 is the configuration space of the SMB device with the address 310 of 0xb0 in FIG. 3. Although the value of the register in FIG. 4 is a byte as a display unit, in another embodiment, the value of the register may also be a word as a display unit, where one word is equal to two Bytes.

[回授讀寫SMB裝置暫存器數值][Feedback read and write SMB device register value]

當使用者要對SMB裝置的暫存器數值進行修改時(即,SMB功能模組130接收暫存器變更指令以變更其中一個暫存器數值),使用者可透過例如圖4的使用者介面修改暫存器數值,並根據SMB裝置「0xB0」的暫存器配置及唯一位址軌跡產生編碼檔案(例如,圖5中的BIN檔)。UEFI韌體會解碼編碼檔案並透過唯一位址軌跡來辨識出SMB裝置「0xB0」,再將暫存器配置中的暫存器資料寫入SMB裝置「0xB0」。值得注意的是,一個或多個BIN檔可同時由SMB功能模組130進行編譯。在下次開機時,儲存在BIN檔中的數值可被寫回對應的SMB裝置暫存器。When the user wants to modify the register value of the SMB device (that is, the SMB function module 130 receives the register change command to change one of the register values), the user can use the user interface of FIG. 4, for example Modify the register value, and generate an encoded file (for example, the BIN file in Figure 5) according to the register configuration of the SMB device "0xB0" and the unique address track. The UEFI firmware decodes the encoded file and recognizes the SMB device "0xB0" through the unique address track, and then writes the register data in the register configuration to the SMB device "0xB0". It is worth noting that one or more BIN files can be compiled by the SMB function module 130 at the same time. At the next boot, the value stored in the BIN file can be written back to the corresponding SMB device register.

請再參考圖1,在使用者修改暫存器數值之後,SMB功能模組130可產生對應的編碼檔案150。UEFI韌體模組160的檔案解碼模組161會解碼上述編碼檔案150以產生SMB裝置的位址、唯一位址軌跡及暫存器配置,再由SMB模組162將暫存器配置寫入SMB裝置。Please refer to FIG. 1 again, after the user modifies the value of the register, the SMB function module 130 can generate the corresponding code file 150. The file decoding module 161 of the UEFI firmware module 160 decodes the encoded file 150 to generate the address, unique address track and register configuration of the SMB device, and then the SMB module 162 writes the register configuration to the SMB Device.

圖6為根據本發明一實施例的編碼檔案基本架構與UEFI韌體模組關係的示意圖。6 is a schematic diagram of the relationship between the basic structure of the encoded file and the UEFI firmware module according to an embodiment of the invention.

請參照圖6,對應各個SMB裝置的編碼檔案650的內容可包括標頭部分610及配置部分620。標頭部分610包括SMB裝置的位址及位址軌跡,且位址軌跡可包括交換器、節點及裝置等SMB裝置分類資訊。配置部分620可包括SMB裝置的配置空間中的暫存器及其數值等資料。編碼檔案650可被儲存在對應UEFI韌體模組640的唯讀記憶體(Read Only Memory,ROM)630中。在下次開機時,UEFI韌體模組640會解碼編碼檔案650並將解碼後的數值寫回對應的SMB裝置暫存器。Referring to FIG. 6, the content of the encoding file 650 corresponding to each SMB device may include a header part 610 and a configuration part 620. The header portion 610 includes the address and address track of the SMB device, and the address track may include SMB device classification information such as switches, nodes, and devices. The configuration part 620 may include data such as registers and their values in the configuration space of the SMB device. The encoded file 650 may be stored in a Read Only Memory (ROM) 630 corresponding to the UEFI firmware module 640. At the next boot, the UEFI firmware module 640 will decode the encoded file 650 and write the decoded value back to the corresponding SMB device register.

圖7為根據本發明一實施例的SMB管理系統的系統架構圖。7 is a system architecture diagram of an SMB management system according to an embodiment of the present invention.

本發明一實施例的SMB管理系統的系統架構700包括硬體710及UEFI韌體模組740。UEFI殼層743可提供環境執行程式來自動載入外部檔案,並建立SMB裝置階層式結構及賦予SMB裝置暫存器相應的名稱及物理意義。當使用者修改暫存器數值並產生對應的編碼檔案750時,編碼檔案750會由檔案解碼模組742進行解碼再由SMB模組741將解碼後的暫存器資料寫入硬體710。解碼後的暫存器資料會被傳送到SMB裝置主機733,並透過SMB裝置的唯一位址軌跡傳送到從屬SMB裝置722(即,SMB裝置主機733以外的其他SMB裝置)。此外,硬體710還可包括主機板721、處理器731及記憶體732等必要元件。The system architecture 700 of the SMB management system according to an embodiment of the present invention includes a hardware 710 and a UEFI firmware module 740. The UEFI shell 743 can provide an environment execution program to automatically load external files, and create a hierarchical structure of SMB devices and give the corresponding names and physical meanings to the SMB device registers. When the user modifies the value of the register and generates the corresponding encoded file 750, the encoded file 750 is decoded by the file decoding module 742 and the decoded register data is written into the hardware 710 by the SMB module 741. The decoded register data is sent to the SMB device host 733, and sent to the slave SMB device 722 (ie, other SMB devices other than the SMB device host 733) through the unique address track of the SMB device. In addition, the hardware 710 may further include necessary components such as a motherboard 721, a processor 731, and a memory 732.

圖8為根據本發明一實施例的SMB裝置管理方法的流程圖。8 is a flowchart of an SMB device management method according to an embodiment of the invention.

請參照圖8,在步驟S801中,獲得外部檔案,外部檔案包括SMB裝置的定址資訊。Referring to FIG. 8, in step S801, an external file is obtained, and the external file includes addressing information of the SMB device.

在步驟S802中,透過外部檔案來建立對應SMB裝置的階層式結構,使得每個SMB裝置具有唯一位址軌跡。In step S802, a hierarchical structure corresponding to the SMB device is established through an external file, so that each SMB device has a unique address track.

在步驟S803中,根據SMB裝置的暫存器配置及唯一位址軌跡產生編碼檔案。In step S803, an encoded file is generated according to the register configuration of the SMB device and the unique address track.

在步驟S804中,解碼編碼檔案並透過唯一位址軌跡辨識SMB裝置,再將暫存器配置中的暫存器資料寫入對應的SMB裝置。In step S804, the encoded file is decoded and the SMB device is identified through the unique address track, and then the scratchpad data in the scratchpad configuration is written to the corresponding SMB device.

綜上所述,本發明的系統管理匯流排裝置管理系統及其方法可透過外部檔案來建立SMB裝置的階層式結構使得每個SMB裝置具有唯一位址軌跡,讓使用者可看到每個SMB裝置及其連接關係。此外,SMB功能模組可根據SMB裝置的暫存器配置及唯一位址軌跡產生編碼檔案,再經由UEFI韌體模組解碼編碼檔案並透過唯一位址軌跡辨識SMB裝置,再將暫存器配置中的暫存器資料寫入對應的SMB裝置。如此一來,使用者可藉由修改SMB裝置的暫存器數值快速地賦予SMB裝置暫存器的物理意義。In summary, the system management bus device management system and method of the present invention can create a hierarchical structure of SMB devices through external files so that each SMB device has a unique address track, allowing users to see each SMB Device and its connection. In addition, the SMB function module can generate a code file according to the SMB device's register configuration and unique address track, then decode the code file through the UEFI firmware module and identify the SMB device through the unique address track, and then configure the register The scratchpad data in is written to the corresponding SMB device. In this way, the user can quickly give the physical meaning of the SMB device register by modifying the register value of the SMB device.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed as above with examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention shall be subject to the scope defined in the appended patent application.

100‧‧‧SMB管理系統100‧‧‧SMB management system

110‧‧‧實體伺服器110‧‧‧Physical server

111‧‧‧第一SMB裝置111‧‧‧The first SMB device

112‧‧‧第二SMB裝置112‧‧‧Second SMB device

113‧‧‧第三SMB裝置113‧‧‧ Third SMB device

120‧‧‧外部檔案120‧‧‧External files

130‧‧‧SMB功能模組130‧‧‧SMB function module

140‧‧‧虛擬伺服器140‧‧‧Virtual Server

141‧‧‧SMB裝置識別符一141‧‧‧SMB device identifier one

142‧‧‧SMB裝置識別符二142‧‧‧SMB device identifier two

143‧‧‧SMB裝置識別符三143‧‧‧SMB device identifier three

150‧‧‧編碼檔案150‧‧‧ Encoding file

160‧‧‧UEFI韌體模組160‧‧‧UEFI firmware module

161‧‧‧檔案解碼模組161‧‧‧File decoding module

162‧‧‧SMB模組162‧‧‧SMB module

210‧‧‧SMB主機210‧‧‧SMB host

220‧‧‧SMB裝置220‧‧‧SMB device

230‧‧‧硬體電路230‧‧‧ hardware circuit

240‧‧‧SMB主機240‧‧‧SMB host

250‧‧‧SMB裝置250‧‧‧SMB device

310‧‧‧位址310‧‧‧Address

320‧‧‧位置320‧‧‧Location

330‧‧‧位址軌跡330‧‧‧ Address track

340‧‧‧類型340‧‧‧Type

350‧‧‧裝置識別符350‧‧‧ device identifier

400‧‧‧配置空間400‧‧‧Configuration space

410‧‧‧暫存器410‧‧‧register

420‧‧‧名稱420‧‧‧Name

610‧‧‧標頭部分610‧‧‧ header part

620‧‧‧配置部分620‧‧‧Configuration

630‧‧‧唯讀記憶體630‧‧‧Read-only memory

640‧‧‧UEFI韌體模組640‧‧‧UEFI firmware module

650‧‧‧編碼檔案650‧‧‧ encoding file

700‧‧‧系統架構700‧‧‧System architecture

710‧‧‧硬體710‧‧‧Hardware

721‧‧‧主機板721‧‧‧Motherboard

722‧‧‧從屬SMB裝置722‧‧‧Slave SMB device

731‧‧‧處理器731‧‧‧ processor

732‧‧‧記憶體732‧‧‧Memory

733‧‧‧SMB裝置主機733‧‧‧SMB device host

740‧‧‧UEFI韌體模組740‧‧‧UEFI firmware module

741‧‧‧SMB模組741‧‧‧SMB module

742‧‧‧檔案解碼模組742‧‧‧File decoding module

743‧‧‧UEFI殼層743‧‧‧UEFI shell

750‧‧‧編碼檔案750‧‧‧ encoding file

S801~S804‧‧‧SMB裝置管理方法的步驟S801~S804‧‧‧‧SMB device management method steps

圖1為根據本發明一實施例的SMB管理系統的方塊圖。 圖2為根據本發明一實施例建立SMB裝置階層式結構之前及之後的比較圖。 圖3為根據本發明一實施例的SMB裝置的階層式結構的範例。 圖4為根據本發明一實施例以配置空間排版暫存器的範例。 圖5為根據本發明一實施例讀取及儲存SMB裝置暫存器數值的範例。 圖6為根據本發明一實施例的編碼檔案基本架構與UEFI韌體模組關係的示意圖。 圖7為根據本發明一實施例的SMB管理系統的系統架構圖。 圖8為根據本發明一實施例的SMB裝置管理方法的流程圖。FIG. 1 is a block diagram of an SMB management system according to an embodiment of the invention. 2 is a comparison diagram before and after establishing a hierarchical structure of an SMB device according to an embodiment of the invention. FIG. 3 is an example of a hierarchical structure of an SMB device according to an embodiment of the invention. 4 is an example of configuring a spatial layout register according to an embodiment of the invention. FIG. 5 is an example of reading and storing SMB device register values according to an embodiment of the invention. 6 is a schematic diagram of the relationship between the basic structure of the encoded file and the UEFI firmware module according to an embodiment of the invention. 7 is a system architecture diagram of an SMB management system according to an embodiment of the present invention. 8 is a flowchart of an SMB device management method according to an embodiment of the invention.

210‧‧‧SMB主機 210‧‧‧SMB host

220‧‧‧SMB裝置 220‧‧‧SMB device

230‧‧‧硬體電路 230‧‧‧ hardware circuit

240‧‧‧SMB主機 240‧‧‧SMB host

250‧‧‧SMB裝置 250‧‧‧SMB device

Claims (12)

一種系統管理匯流排(System Management Bus,SMB)裝置管理系統,包括:多個SMB裝置;以及一SMB功能模組,耦接到該些SMB裝置,其中該SMB功能模組獲得一外部檔案,該外部檔案包括該些SMB裝置的定址資訊,該SMB功能模組透過該外部檔案來建立對應該些SMB裝置的一階層式結構,使得每個該些SMB裝置具有一唯一(unique)位址軌跡,其中一個該些SMB裝置在該階層式結構中位於另一個該些SMB裝置的上層。 A system management bus (System Management Bus, SMB) device management system includes: multiple SMB devices; and an SMB function module, coupled to the SMB devices, wherein the SMB function module obtains an external file, the The external file includes addressing information of the SMB devices. The SMB function module uses the external file to create a hierarchical structure corresponding to the SMB devices, so that each of the SMB devices has a unique address track. One of the SMB devices is located above the other SMB devices in the hierarchical structure. 如申請專利範圍第1項所述的SMB裝置管理系統,其中該SMB功能模組透過該階層式結構掃描該些SMB裝置,並顯示掃描到的該些SMB裝置。 The SMB device management system as described in item 1 of the patent application scope, wherein the SMB function module scans the SMB devices through the hierarchical structure and displays the scanned SMB devices. 如申請專利範圍第1項所述的SMB裝置管理系統,其中該階層式結構為一樹狀結構。 The SMB device management system as described in item 1 of the patent application scope, wherein the hierarchical structure is a tree structure. 如申請專利範圍第1項所述的SMB裝置管理系統,其中該外部檔案包括每個該些SMB裝置的多個暫存器數值所對應的物理意義資訊。 The SMB device management system as described in item 1 of the patent application scope, wherein the external file includes physical meaning information corresponding to a plurality of register values of each of the SMB devices. 如申請專利範圍第4項所述的SMB裝置管理系統,更包括耦接到該SMB功能模組及該些SMB裝置的一統一可延伸韌體介面(Unified Extensible Firmware Interface,UEFI)韌體模組,其中該 SMB功能模組根據該些SMB裝置的一暫存器配置及該唯一位址軌跡產生一編碼檔案,該UEFI韌體模組解碼該編碼檔案並透過該唯一位址軌跡辨識該些SMB裝置,再將該暫存器配置中的暫存器資料寫入對應的該些SMB裝置。 The SMB device management system as described in item 4 of the patent application scope further includes a Unified Extensible Firmware Interface (UEFI) firmware module coupled to the SMB functional module and the SMB devices , Where the The SMB function module generates an encoded file according to a register configuration of the SMB devices and the unique address track, the UEFI firmware module decodes the encoded file and identifies the SMB devices through the unique address track, and Write the scratchpad data in the scratchpad configuration to the corresponding SMB devices. 如申請專利範圍第5項所述的SMB裝置管理系統,其中該暫存器配置包括一配置空間的該些暫存器數值,且該SMB功能模組接收一暫存器變更指令,以變更其中一個該些暫存器數值。 The SMB device management system as described in item 5 of the patent scope, wherein the register configuration includes the register values of a configuration space, and the SMB function module receives a register change command to change the register One of these register values. 一種SMB裝置管理方法,包括:藉由一SMB功能模組獲得一外部檔案,該外部檔案包括多個SMB裝置的定址資訊;以及藉由該SMB功能模組透過該外部檔案來建立對應該些SMB裝置的一階層式結構,使得每個該些SMB裝置具有一唯一位址軌跡,其中一個該些SMB裝置在該階層式結構中位於另一個該些SMB裝置的上層。 An SMB device management method includes: obtaining an external file through an SMB function module, the external file including addressing information of a plurality of SMB devices; and creating corresponding SMB through the external file through the SMB function module The hierarchical structure of the device enables each of the SMB devices to have a unique address track, and one of the SMB devices is located above the other of the SMB devices in the hierarchical structure. 如申請專利範圍第7項所述的SMB裝置管理方法,其中該SMB功能模組透過該階層式結構掃描該些SMB裝置,並顯示掃描到的該些SMB裝置。 The SMB device management method as described in item 7 of the patent application scope, wherein the SMB function module scans the SMB devices through the hierarchical structure and displays the scanned SMB devices. 如申請專利範圍第7項所述的SMB裝置管理方法,其中該階層式結構為一樹狀結構。 The SMB device management method as described in item 7 of the patent application scope, wherein the hierarchical structure is a tree structure. 如申請專利範圍第7項所述的SMB裝置管理方法,其中該外部檔案包括每個該些SMB裝置的多個暫存器數值所對應的物理意義資訊。 The SMB device management method as described in item 7 of the patent application scope, wherein the external file includes physical meaning information corresponding to a plurality of register values of each of the SMB devices. 如申請專利範圍第10項所述的SMB裝置管理方法,更包括:藉由該SMB功能模組根據該些SMB裝置的一暫存器配置及該唯一位址軌跡產生一編碼檔案,藉由一UEFI韌體模組解碼該編碼檔案並透過該唯一位址軌跡辨識該些SMB裝置,再將該暫存器配置中的暫存器資料寫入對應的該些SMB裝置。 The SMB device management method as described in item 10 of the patent application scope further includes: generating an encoded file by the SMB function module according to a register configuration of the SMB devices and the unique address track, by a The UEFI firmware module decodes the encoded file and identifies the SMB devices through the unique address track, and then writes the register data in the register configuration to the corresponding SMB devices. 如申請專利範圍第11項所述的SMB裝置管理方法,其中該暫存器配置包括一配置空間的該些暫存器數值,且該SMB功能模組接收一暫存器變更指令,以變更其中一個該些暫存器數值。 The SMB device management method as described in item 11 of the patent application scope, wherein the register configuration includes the register values of a configuration space, and the SMB function module receives a register change command to change the register One of these register values.
TW107146032A 2018-12-20 2018-12-20 System management bus device management system and method thereof TWI684872B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107146032A TWI684872B (en) 2018-12-20 2018-12-20 System management bus device management system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107146032A TWI684872B (en) 2018-12-20 2018-12-20 System management bus device management system and method thereof

Publications (2)

Publication Number Publication Date
TWI684872B true TWI684872B (en) 2020-02-11
TW202024941A TW202024941A (en) 2020-07-01

Family

ID=70413531

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107146032A TWI684872B (en) 2018-12-20 2018-12-20 System management bus device management system and method thereof

Country Status (1)

Country Link
TW (1) TWI684872B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200702990A (en) * 2005-07-01 2007-01-16 Zetera Corp Topology independent storage arrays and methods
US7827333B1 (en) * 2008-02-04 2010-11-02 Nvidia Corporation System and method for determining a bus address on an add-in card
CN203502345U (en) * 2013-09-24 2014-03-26 中国农业大学 Real-time population chlorophyll monitoring system
US20160321480A1 (en) * 2005-12-09 2016-11-03 Tego, Inc. Methods and systems for rf communications in blood-extraction procedures

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200702990A (en) * 2005-07-01 2007-01-16 Zetera Corp Topology independent storage arrays and methods
US20160321480A1 (en) * 2005-12-09 2016-11-03 Tego, Inc. Methods and systems for rf communications in blood-extraction procedures
US7827333B1 (en) * 2008-02-04 2010-11-02 Nvidia Corporation System and method for determining a bus address on an add-in card
CN203502345U (en) * 2013-09-24 2014-03-26 中国农业大学 Real-time population chlorophyll monitoring system

Also Published As

Publication number Publication date
TW202024941A (en) 2020-07-01

Similar Documents

Publication Publication Date Title
JP4768990B2 (en) Method and apparatus for configurable address mapping and protection architecture and hardware for on-chip systems
TWI480802B (en) Platform system, universal extension firmware interface Basic input and output system Support for hardware configuration changes, recording media and computer program products
US20210004242A1 (en) Method and system for remote selection of boot device
US7822964B2 (en) Booting apparatus for booting a computer and method therefor and computer with a booting apparatus
TWI329837B (en) Information handling system and computer system having one or more central processing units operative with main memory and method of updating a bios
US20100011197A1 (en) Enhanced uefi framework layer
US7895376B2 (en) Hardware configuration information system, method, and computer program product
US20070079094A1 (en) System and method for enabling/disabling write-protection of a basic input output system
WO2020206879A1 (en) Method and device for automatically adapting link width of pcie port, electronic apparatus and storage medium
CN114816528A (en) Method, device, electronic equipment and medium for accessing register
US7752429B2 (en) Computer system and boot code accessing method thereof
US9189351B2 (en) Method of obtaining instruction for triggering function
CN109426511B (en) Soft core updating method and system
JP2004021990A (en) Firmware selector of computer including processor
US7958345B2 (en) Method for adjusting setup default value of BIOS and main board thereof
TWI601072B (en) A New Way to Create Unified Extensible Firmware Interfaces
TWI684872B (en) System management bus device management system and method thereof
US9817837B2 (en) Method and system for file storage and access
US10628285B1 (en) Dynamic configuration of availability of debugging messages
US20060080636A1 (en) Method of building intelligent platform management interface firmware architecture
US20190087376A1 (en) Hot-plugged pcie device configuration system
US10866922B1 (en) Firmware debug trace capture using serial peripheral interface
CN111352877B (en) System management bus device management system and method thereof
CN109558181B (en) Method for enabling non-IE browser to be compatible with OCX control, computer storage medium and equipment
US7953900B2 (en) System and method for discovering I/O bus capabilities on a computer system via ACPI