TW202024941A - 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
TW202024941A
TW202024941A TW107146032A TW107146032A TW202024941A TW 202024941 A TW202024941 A TW 202024941A TW 107146032 A TW107146032 A TW 107146032A TW 107146032 A TW107146032 A TW 107146032A TW 202024941 A TW202024941 A TW 202024941A
Authority
TW
Taiwan
Prior art keywords
smb
devices
register
function module
device management
Prior art date
Application number
TW107146032A
Other languages
Chinese (zh)
Other versions
TWI684872B (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 a method thereof, and in particular to a system management bus device management system and a method thereof capable of effectively addressing System Management Bus (SMB) devices.

由於SMB交換器的誕生,讓使用者無法一次性地看到所有SMB裝置。若將SMB交換器的通道全部打開,可能會遇到SMB裝置的位址重複或SMB裝置過載等問題而導致SMB主機的讀寫功能異常。每個SMB裝置的暫存器所連動的裝置工作狀態及實質上的物理意義是由各個製造商自行定義,並沒有一個統一的規範。因此,使用者需要仔細確認SMB裝置的規範後才能得知此SMB裝置的使用方法。此外,當韌體對SMB裝置進行讀寫時,由於缺乏一個通用的管理方式而不易控管。因此,如何有效定址SMB裝置並賦予SMB裝置暫存器對應的物理意義是本領域技術人員應致力的目標。Due to the birth of the 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 the address duplication of the SMB device or the overload of the SMB device, which may cause the read and write function of the SMB host to be abnormal. The working status and the actual physical meaning of the device linked to the register 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 before knowing how to use the SMB device. In addition, when the firmware reads and writes to the SMB device, it is difficult 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 strive for.

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

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

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

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

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

在本發明的一實施例中,上述SMB裝置管理系統更包括耦接到SMB功能模組及SMB裝置的統一可延伸韌體介面(Unified Extensible Firmware Interface,UEFI)韌體模組。SMB功能模組根據SMB裝置的暫存器配置及唯一位址軌跡產生編碼檔案。UEFI韌體模組解碼編碼檔案並透過唯一位址軌跡辨識SMB裝置,再將暫存器配置中的暫存器資料寫入對應的SMB裝置。In an embodiment of the present invention, the above-mentioned 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 code files based on the register configuration and unique address track of the SMB device. 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 above-mentioned 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, which includes: obtaining external files through an SMB function module, the external files including addressing information of the SMB device; and establishing a hierarchical structure corresponding to the SMB device through the external files by the SMB function module, So that each SMB device has a unique address track.

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

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

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

在本發明的一實施例中,上述SMB裝置管理方法更包括:藉由SMB功能模組根據SMB裝置的暫存器配置及唯一位址軌跡產生編碼檔案;以及藉由UEFI韌體模組解碼編碼檔案並透過唯一位址軌跡辨識SMB裝置,再將暫存器配置中的暫存器資料寫入對應的SMB裝置。In an embodiment of the present invention, the above-mentioned SMB device management method further includes: generating an encoded file by the SMB function module according to the register configuration and unique address track of the SMB device; and decoding the encoding by the UEFI firmware module The file 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 above-mentioned 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 relationship. In addition, the SMB function module can generate an encoded file based on the register configuration and unique address track of the SMB device, decode the encoded file through the UEFI firmware module and identify the SMB device through the unique address track, and then configure the register Write the register data in the corresponding SMB device. In this way, the user can quickly give the SMB device register a physical meaning by modifying the value of the SMB device register.

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

圖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 SMB devices according to an embodiment of the present 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可以韌體或是硬體電路來實作。Please refer 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 only 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 are unknown SMB devices 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 a hardware circuit.

透過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 the existing functions of SMB and external files 120, a virtual server 140 can be created in the SMB function module 130. The virtual server 140 includes SMB device identifier (ID) one 141, SMB device identifier two 142, and 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 address information of the SMB device, so 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 SMB device hierarchical structure, 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 identified 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 (for example, a tree structure). In this way, the SMB device 250 can have a uniformly defined identifier.

[SMB裝置階層式結構建立方法][SMB device hierarchical structure establishment 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 is established based on the addressing information of the SMB device in the external file. Finally, the SMB function module 130 can scan SMB devices through a hierarchical structure and display the scanned SMB devices.

圖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裝置階層式結構。3, in the SMB device hierarchical structure, the address 310, location 320, address trace 330, type 340, and device identifier 350 of the scanned SMB device are displayed. Each SMB device corresponds to a unique address 310 (or address segment), and each SMB device has a unique address track 330. The unique address track 330 of each device forms a hierarchical structure of the SMB device.

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

在一實施例中,使用者需要依照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 address 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 the name and physical meaning information corresponding to the register value of each SMB device according to the external file, and present it to the user through a graphical user interface combined with a configuration space.

圖4為根據本發明一實施例以配置空間排版暫存器的範例。FIG. 4 is an example of configuring a spatial layout register according to an embodiment of the present 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 address 0xB0 may include registers with offset values of 0 to 255, and there are 256 registers in total. For example, the register 410 may correspond to the name 420 whose text content is "CH0-CHA_1_VOD", where VOD represents voltage drop (Voltage Drop) physical meaning information. 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 the “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 based on a byte as the display unit, in another embodiment, the value of the register may also be a word as the display unit, where one word is equal to two. Bytes.

[回授讀寫SMB裝置暫存器數值][Feedback to 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 a 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. UEFI firmware will decode the encoded file and identify the SMB device "0xB0" through the unique address track, and then write 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 startup, 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 register value, the SMB function module 130 can generate a corresponding code file 150. The file decoding module 161 of the UEFI firmware module 160 decodes the above-mentioned 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 into the SMB Device.

圖6為根據本發明一實施例的編碼檔案基本架構與UEFI韌體模組關係的示意圖。6 is a schematic diagram of the relationship between the basic structure of an 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裝置暫存器。Please refer to FIG. 6, the content of the encoded file 650 corresponding to each SMB device may include a header part 610 and a configuration part 620. The header part 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 can 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管理系統的系統架構圖。Fig. 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 executable program to automatically load external files, establish a hierarchical structure of the SMB device, and assign a corresponding name and physical meaning to the SMB device register. When the user modifies the value of the register and generates the corresponding coded file 750, the coded file 750 is decoded by the file decoding module 742, and the SMB module 741 writes the decoded register data into the hardware 710. The decoded register data will be 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 also include necessary components such as a motherboard 721, a processor 731, and a memory 732.

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

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

在步驟S802中,透過外部檔案來建立對應SMB裝置的階層式結構,使得每個SMB裝置具有唯一位址軌跡。In step S802, a hierarchical structure corresponding to the SMB device is established through the 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 register data in the register configuration is written into 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 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 Devices and their connections. In addition, the SMB function module can generate an encoded file based on the register configuration and unique address track of the SMB device, decode the encoded file through the UEFI firmware module and identify the SMB device through the unique address track, and then configure the register Write the register data in the corresponding SMB device. In this way, the user can quickly give the SMB device register a physical meaning by modifying the value of the SMB device register.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the relevant 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 those defined by the attached patent scope.

100:SMB管理系統110:實體伺服器111:第一SMB裝置112:第二SMB裝置113:第三SMB裝置120:外部檔案130:SMB功能模組140:虛擬伺服器141:SMB裝置識別符一142:SMB裝置識別符二143:SMB裝置識別符三150:編碼檔案160:UEFI韌體模組161:檔案解碼模組162:SMB模組210:SMB主機220:SMB裝置230:硬體電路240:SMB主機250:SMB裝置310:位址320:位置330:位址軌跡340:類型350:裝置識別符400:配置空間410:暫存器420:名稱610:標頭部分620:配置部分630:唯讀記憶體640:UEFI韌體模組650:編碼檔案700:系統架構710:硬體721:主機板722:從屬SMB裝置731:處理器732:記憶體733:SMB裝置主機740:UEFI韌體模組741:SMB模組742:檔案解碼模組743:UEFI殼層750:編碼檔案S801~S804:SMB裝置管理方法的步驟100: SMB management system 110: physical server 111: first SMB device 112: second SMB device 113: third SMB device 120: external file 130: SMB function module 140: virtual server 141: SMB device identifier 1 142: SMB device identifier two 143: SMB device identifier three 150: encoding file 160: UEFI firmware module 161: file decoding module 162: SMB module 210: SMB host 220: SMB device 230: hardware circuit 240 : SMB host 250: SMB device 310: address 320: location 330: address track 340: type 350: device identifier 400: configuration space 410: register 420: name 610: header part 620: configuration part 630: Read-only memory 640: UEFI firmware module 650: Encoding file 700: System architecture 710: Hardware 721: Motherboard 722: Slave SMB device 731: Processor 732: Memory 733: SMB device Host 740: UEFI firmware Module 741: SMB module 742: File decoding module 743: UEFI shell 750: Encoding files S801~S804: Steps of SMB device management method

圖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 SMB devices according to an embodiment of the present invention. FIG. 3 is an example of a hierarchical structure of an SMB device according to an embodiment of the invention. FIG. 4 is an example of configuring a spatial layout register according to an embodiment of the present invention. FIG. 5 is an example of reading and storing the register value of the SMB device according to an embodiment of the present invention. 6 is a schematic diagram of the relationship between the basic structure of an encoded file and the UEFI firmware module according to an embodiment of the invention. Fig. 7 is a system architecture diagram of an SMB management system according to an embodiment of the present invention. Fig. 8 is a flowchart of an SMB device management method according to an embodiment of the present 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)位址軌跡。A system management bus (SMB) device management system includes: a plurality of 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 address 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. 如申請專利範圍第1項所述的SMB裝置管理系統,其中該SMB功能模組透過該階層式結構掃描該些SMB裝置,並顯示掃描到的該些SMB裝置。In the SMB device management system described in the first item of the scope of patent application, the SMB function module scans the SMB devices through the hierarchical structure and displays the scanned SMB devices. 如申請專利範圍第1項所述的SMB裝置管理系統,其中該階層式結構為一樹狀結構。In the SMB device management system described in item 1 of the scope of patent application, the hierarchical structure is a tree structure. 如申請專利範圍第1項所述的SMB裝置管理系統,其中該外部檔案包括每個該些SMB裝置的多個暫存器數值所對應的物理意義資訊。According to the SMB device management system described in item 1 of the scope of patent application, the external file includes the physical meaning information corresponding to the multiple register values of each of the SMB devices. 如申請專利範圍第4項所述的SMB裝置管理系統,更包括耦接到該SMB功能模組及該些SMB裝置的一統一可延伸韌體介面(Unified Extensible Firmware Interface,UEFI)韌體模組,其中該SMB功能模組根據該些SMB裝置的一暫存器配置及該唯一位址軌跡產生一編碼檔案,該UEFI韌體模組解碼該編碼檔案並透過該唯一位址軌跡辨識該些SMB裝置,再將該暫存器配置中的暫存器資料寫入對應的該些SMB裝置。For example, the SMB device management system described in item 4 of the scope of patent application further includes a Unified Extensible Firmware Interface (UEFI) firmware module coupled to the SMB function module and the SMB devices , Wherein the SMB function module generates an encoded file according to a register configuration of the SMB devices and the unique address track, and the UEFI firmware module decodes the encoded file and identifies the SMBs through the unique address track And then write the register data in the register configuration into the corresponding SMB devices. 如申請專利範圍第5項所述的SMB裝置管理系統,其中該暫存器配置包括一配置空間的該些暫存器數值,且該SMB功能模組接收一暫存器變更指令,以變更其中一個該些暫存器數值。For the SMB device management system described in item 5 of the patent application, 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 value. One of these registers. 一種SMB裝置管理方法,包括: 藉由一SMB功能模組獲得一外部檔案,該外部檔案包括多個SMB裝置的定址資訊;以及 藉由該SMB功能模組透過該外部檔案來建立對應該些SMB裝置的一階層式結構,使得每個該些SMB裝置具有一唯一位址軌跡。An SMB device management method includes: obtaining an external file by an SMB function module, the external file including address information of a plurality of SMB devices; and establishing corresponding SMBs through the external file by the SMB function module The hierarchical structure of the device allows each of the SMB devices to have a unique address track. 如申請專利範圍第7項所述的SMB裝置管理方法,其中該SMB功能模組透過該階層式結構掃描該些SMB裝置,並顯示掃描到的該些SMB裝置。In the SMB device management method described in item 7 of the scope of patent application, the SMB function module scans the SMB devices through the hierarchical structure and displays the scanned SMB devices. 如申請專利範圍第7項所述的SMB裝置管理方法,其中該階層式結構為一樹狀結構。In the SMB device management method described in item 7 of the scope of patent application, the hierarchical structure is a tree structure. 如申請專利範圍第7項所述的SMB裝置管理方法,其中該外部檔案包括每個該些SMB裝置的多個暫存器數值所對應的物理意義資訊。According to the SMB device management method described in item 7 of the scope of patent application, 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裝置。For example, the SMB device management method described in item 10 of the scope of patent application 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, and 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 described in item 11 of the scope of patent application, 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 value One of these registers.
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 TWI684872B (en) 2020-02-11
TW202024941A true 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)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI322942B (en) * 2005-07-01 2010-04-01 Rateze Remote Mgmt L L C 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
TWI684872B (en) 2020-02-11

Similar Documents

Publication Publication Date Title
KR101343704B1 (en) Shared Nonvolatile Memory Architecture
US10002085B2 (en) Peripheral component interconnect (PCI) device and system including the PCI
US10929149B2 (en) Method and system for updating firmware
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
CN115562738B (en) Port configuration method, component and hard disk expansion device
JP2023528845A (en) Chip activation control method, chip, display panel and electronic device
US20180157475A1 (en) System and method for updating a uefi image in an information handling system
TWI823444B (en) Computing system and method performed by computing system
WO2020206879A1 (en) Method and device for automatically adapting link width of pcie port, electronic apparatus and storage medium
US7752429B2 (en) Computer system and boot code accessing method thereof
US20200264893A1 (en) System and method of initiating multiple adaptors in parallel
CN109426511B (en) Soft core updating method and system
TWI601072B (en) A New Way to Create Unified Extensible Firmware Interfaces
WO2024087607A1 (en) Flash memory management algorithm debugging method, system and device, and readable storage medium
TWI684872B (en) System management bus device management system and method thereof
US20090132800A1 (en) Method for adjusting setup default value of bios and main board thereof
CN111352877B (en) System management bus device management system and method thereof
US10372661B1 (en) Firmware debug trace capture using serial peripheral interface
US7953900B2 (en) System and method for discovering I/O bus capabilities on a computer system via ACPI
CN117312233B (en) Field programmable gate array chip, construction method thereof and accelerator equipment
CN113646745A (en) Disabling software persistence
ES2963352T3 (en) Maintaining compatibility for complex functions across multiple machine generations
TWI841891B (en) Embedded system and method for updating firmware
US12008253B2 (en) Embedded system and method for updating firmware
CN114579189B (en) Single-core and multi-core register data access method, processor and system