AMD server upgrading method and device, electronic equipment and storage medium

By traversing and marking block address information during the AMD server upgrade process, the problem of firmware volume layout changes caused by SEV data authentication was resolved, ensuring the stability and effectiveness of the server upgrade.

CN117555728BActive Publication Date: 2026-11-24INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311422296.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2026-11-24
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

During the AMD server upgrade process, changes in firmware volume layout due to the SEV data authentication method caused recovery issues during the upgrade.

Method used

By traversing the block structure of the AMD server, obtaining and matching block address information, and marking it according to the pre-set basic address information, we can ensure that the structure and data types of the FV layout do not change before and after the upgrade, thus avoiding the impact of the FV layout on the structure refresh during server upgrades.

Benefits of technology

This ensured stability during the AMD server upgrade process, prevented server upgrade failures caused by data type changes, and guaranteed the upgrade results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117555728B_ABST
    Figure CN117555728B_ABST
Patent Text Reader

Abstract

This application provides an AMD server upgrade method, apparatus, electronic device, and readable storage medium. The method includes: traversing the block structure of the AMD server to obtain multiple block address information; matching the multiple block address information with multiple pre-set basic address information to obtain block address matching results; when the block address matching result shows that the block address information matches the basic address information, marking the block address information with a type according to the basic address information to obtain data type marking information corresponding to the block address information; and upgrading the AMD server based on the block address information and the data type marking information to obtain the AMD server upgrade result. Because the data type marking is referenced during server upgrade, it ensures that the structure and data types of the FV layout do not change before and after the upgrade, avoiding recovery issues during AMD server upgrades and guaranteeing the upgrade effect of the AMD server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an AMD server upgrade method, apparatus, electronic device, and storage medium. Background Technology

[0002] In traditional virtualization, multiple virtual machines share the resources of the same physical server. While this sharing method can save on the configuration requirements of the physical server, storing the data of multiple virtual machines on a single physical server poses serious security risks. When the physical memory of the physical server is accessed, problems such as data leakage and malicious tampering can easily occur.

[0003] To address the aforementioned issues, existing technologies enhance the security of virtualization environments by employing Secure Encrypted Virtualization (SEV) technology on top of the Platform Security Processor (PSP), providing a higher level of security. Each virtual machine sharing the same physical server has a unique encryption key used to encrypt and decrypt its memory contents. However, this method of adding SEV data authentication to the AMD platform leads to discrepancies in location information before and after AMD server version upgrades, potentially causing malfunctions during the AMD server upgrade process. Summary of the Invention

[0004] This application provides an AMD server upgrade method, apparatus, electronic device, and readable storage medium. By referring to these marking results during server upgrades, it ensures that the structure and data type of the FV layout remain unchanged before and after the upgrade, thus solving the problem of discrepancies in positional information before and after AMD server version upgrades and the occurrence of failures during AMD server upgrades in the prior art.

[0005] Firstly, this application provides a method for upgrading an AMD server, the method comprising:

[0006] Traverse the block structure of the AMD server to obtain multiple block address information;

[0007] Multiple block address information is matched based on multiple pre-set basic address information to obtain block address matching results;

[0008] When the block address matching result is that the block address information is consistent with the basic address information, the block address information is type-marked according to the basic address information to obtain the data type marking information corresponding to the block address information;

[0009] The AMD server is upgraded based on block address information and data type tagging information to obtain the AMD server upgrade result.

[0010] Optionally, the AMD server upgrade method provided in this application also includes:

[0011] Perform initialization actions on the basic input / output system chip and determine the calibration address and first end address of the Flash chip;

[0012] The chip is set to search for calibration basic address information based on the calibration address and the first end address.

[0013] Optionally, the AMD server upgrade method provided in this application also includes:

[0014] Obtain the second block address and the second end address of the platform security processor in non-volatile random access memory;

[0015] The platform security processor sets the basic address information in the non-volatile random access memory based on the second block address and the second end address.

[0016] Optionally, the AMD server upgrade method provided in this application also includes:

[0017] Set the repair block address and repair block end address in the platform security processor;

[0018] The basic address information of the platform security processor repair block is determined based on the repair block address and the repair block end address.

[0019] Optionally, the AMD server upgrade method provided in this application also includes:

[0020] Set the data block address and data block end address in the platform security processor;

[0021] The basic address information of the platform security processor data block is determined based on the data block address and the data block end address.

[0022] Optionally, the AMD server upgrade method provided in this application also includes:

[0023] When the block address matching result is that the block address information is consistent with the chip calibration basic address information, the block address information is marked with the chip calibration data type to obtain the chip calibration type marking information corresponding to the block address information;

[0024] When the block address matching result is that the block address information is consistent with the basic address information of the platform security processor in the non-volatile random access memory, the data type of the platform security processor in the non-volatile random access memory is marked on the block address information to obtain the type marking information of the platform security processor in the non-volatile random access memory.

[0025] When the block address matching result is that the block address information is consistent with the basic address information of the chip platform security processor repair block, the block address information is marked with the data type of the platform security processor repair block to obtain the platform security processor repair block marking information corresponding to the block address information;

[0026] When the block address matching result is that the block address information is consistent with the basic address information of the chip platform security processor data block, the block address information is marked with the data type of the platform security processor data block to obtain the platform security processor data block marking information corresponding to the block address information.

[0027] Optionally, the AMD server upgrade method provided in this application also includes:

[0028] Obtain the chip information verification code of the AMD server;

[0029] The chip information verification code is compared with the preset value to obtain the chip verification result;

[0030] When the chip verification result shows that the chip information check code is the same as the preset value, the corresponding basic address information is determined according to the preset value.

[0031] Secondly, this application also provides an AMD server upgrade device, comprising:

[0032] The block address acquisition module is used to traverse the block structure of the AMD server and obtain multiple block address information;

[0033] The address matching module is used to match multiple block address information based on multiple pre-set basic address information to obtain block address matching results;

[0034] The type marking module is used to mark the type of the block address information according to the basic address information when the block address matching result is that the block address information is consistent with the basic address information, so as to obtain the data type marking information corresponding to the block address information.

[0035] The server upgrade module is used to upgrade AMD servers based on block address information and data type tagging information, and obtain the AMD server upgrade results.

[0036] Thirdly, this application also provides an electronic device including a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the AMD server upgrade method as described in the first aspect.

[0037] Fourthly, embodiments of this application provide a non-volatile readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the AMD server upgrade method as described in the first aspect.

[0038] The technical solution provided in this application obtains block address information and matches it with a pre-set basic address. The corresponding block address information is marked, and these marking results are referenced during server upgrades. This ensures that the structure and data types of the FV layout do not change before and after the upgrade, avoiding the scenario where the FV layout is affected by the structure refresh and the data types change during server upgrades. This avoids recovery problems during AMD server upgrades and ensures the upgrade effect of AMD servers.

[0039] The above description is merely an overview of the technical solution provided in this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, specific embodiments of this application are described below. Attached Figure Description

[0040] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0041] Figure 1 This is one of the schematic diagrams of the AMD server upgrade method provided in the embodiments of this application;

[0042] Figure 2 This is the second schematic diagram of the AMD server upgrade method provided in the embodiments of this application;

[0043] Figure 3 This is the third schematic diagram of the AMD server upgrade method provided in the embodiments of this application;

[0044] Figure 4 This is the fourth schematic diagram of the AMD server upgrade method provided in the embodiments of this application;

[0045] Figure 5This is the fifth schematic diagram of the AMD server upgrade method provided in the embodiments of this application;

[0046] Figure 6 This is the sixth schematic diagram of the AMD server upgrade method provided in the embodiments of this application;

[0047] Figure 7 This is the seventh schematic diagram of the AMD server upgrade method provided in the embodiments of this application;

[0048] Figure 8 This application provides an example of an AMD server upgrade process;

[0049] Figure 9 This is a schematic diagram of the AMD server upgrade device provided in an embodiment of this application;

[0050] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0051] Exemplary embodiments of the present application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the scope of the present application to those skilled in the art.

[0052] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0053] Firmware (FW) architecture, as a modular framework, is an important component of Basic Input Output System (BIOS) code, such as AMI BIOS code. It consists of multiple different modules, each responsible for handling specific functions or tasks, and realizing the management and execution of firmware functions.

[0054] The Core Root Service is the core of the firmware architecture, providing functions and services such as memory management, exception handling, clock management, and system initialization. The Core Root Service module is the entry point for the firmware architecture and is used to load other modules. The Driver Execution Environment (DXE) is another important module in the firmware architecture, capable of loading and executing various drivers. The drivers that the DXE can load and execute can be hardware device drivers, operating system boot loaders, or other Extensible Firmware Interface (EFI) applications. For example, ROM code for specific devices such as Option ROMs, and ROM code for expansion cards such as graphics cards and network cards, are loaded and executed by the DXE to initialize and boot these specific devices. The Pre-Extensible Firmware Interface Initialization Foundation (PEI Foundation) module initializes basic system components, such as the processor and memory controller, before the DXE operates, and provides services and functions to support the loading and execution of the DXE and other modules. The System Management Mode Core (SMM Core) is a special operating mode that facilitates the system to perform tasks independent of the operating system. The SMM Core module manages and executes SMM code and provides system management-related services and functions. The Security and Authentication module provides authentication services, mechanisms for protecting BIOS settings and firmware, and mechanisms for verifying the boot process and code integrity.

[0055] The Platform Security Processor (PSP) on the Advanced Micro Devices (AMD) platform is a hardware-level security subsystem that includes a secure execution environment (SEX) capable of performing actions such as secure boot, firmware verification, and driver verification. It effectively prevents the insertion of malware or unauthorized code, ensuring the security of the processor and system. The PSP also protects user data and provides cryptographic acceleration and random number generation capabilities.

[0056] In traditional virtualization, multiple virtual machines share the resources of the same physical server. While this sharing method can save on the configuration requirements of the physical server, storing the data of multiple virtual machines on a single physical server poses serious security risks. When the physical memory of the physical server is accessed, problems such as data leakage and malicious tampering can easily occur.

[0057] To address the aforementioned issues, existing technologies, building upon PSP, further enhance the security of virtualization environments through Secure Encrypted Virtualization (SEV) technology, providing a higher level of security. Each virtual machine sharing the same physical server has a unique encryption key used to encrypt and decrypt its memory contents. Even when the host physical memory is accessed, the confidentiality of data within the virtual machine remains intact. SEV provides hardware-level memory isolation, ensuring data isolation between different virtual machines, preventing data leakage and malicious tampering. Furthermore, SEV offers flexibility, allowing for the configuration of different security policies for each virtual machine. Administrators can set different encryption levels and access control rules according to actual needs to meet various security requirements. Using PSP and SEV technologies, AMD processor platforms offer a higher level of hardware security protection, particularly suitable for virtualization scenarios in cloud computing environments. They help protect the confidentiality and integrity of user data, preventing unauthorized access and malicious operations. Simultaneously, PSP and SEV also provide good flexibility and scalability to adapt to application scenarios with different security requirements.

[0058] However, this method of adding SEV data authentication to the AMD platform leads to differences in location information confirmation before and after the AMD server version upgrade, resulting in changes to the firmware volume (FV) layout, which in turn causes recovery problems and server upgrade failures during the AMD server upgrade process.

[0059] Specifically, the AMD code contains important components such as the Firmware Volume BaseBlock (FV_BB) and the Firmware Volume Main Block (FV_Main), which play a crucial role in the FV.

[0060] The FV_BB, located at the beginning of each firmware volume (FV), contains basic information and metadata about that volume. The FV_BB includes the firmware volume header, the firmware block map, and authentication information. The FV header describes the attributes and characteristics of the entire FV, including the size, version number, and authentication information. The FV block map records the location and size of each FV block within the firmware volume. Through the FV block map, the system can locate and access specific FV blocks. The authentication information contains information related to firmware volume authentication, used to ensure the integrity and security of the firmware. This information can be digital signatures, hash values, or other authentication data, which are not limited in this application. The FV_BB provides basic metadata and layout information for the firmware volume, enabling the system to identify and manage the firmware volume. It provides a structured way for loading and executing firmware resources, ensuring the reliability and consistency of the firmware.

[0061] FV_Main is the main data block portion of the firmware volume, containing the actual firmware code, data, and resources. FV_Main includes FV Blocks, Firmware Images, and Option ROMs. FV_Main consists of multiple FVB Blocks, each containing a certain amount of firmware data. A Firmware Image is a collection of firmware code and data for a specific function or task, such as an operating system bootloader, drivers, or BIOS setup tools. EFI is an open standard firmware interface that provides more powerful and flexible functionality; FV_Main contains EFI-related information and components. Option ROMs reside in FV_Main and are loaded and executed during the boot process. FV_Main is responsible for storing and managing the actual firmware data in the firmware volume, including code, data, and resources for various functions. It provides the core execution environment for the firmware.

[0062] The PSP data structure includes Security Keys, Encrypted Boot Data, Secure Configuration Data, Authentication and Authorization Data, and Security Event Logs. Security Keys are used to encrypt and decrypt sensitive data, verify firmware integrity, and establish secure communication channels. These keys are hardware-level protected, ensuring that only authorized entities can access and use them. Encrypted Boot Data includes the bootloader and operating system boot code, encrypted to prevent malicious tampering or unauthorized access. Secure Configuration Data stores the platform's security settings and policies, including various control parameters and rules, to ensure the system's security and reliability during operation. Authentication and Authorization Data verifies user identity, manages access permissions, and enforces security policies, ensuring that only authorized users or entities can access system resources and functions. Security Event Logs include information on critical events, security violations, and potential attacks, aiding in security auditing and troubleshooting.

[0063] Changes to the SEV in the PSP data, such as during data expansion, can cause misalignment in the firmware layout, affecting the entire server and leading to recovery issues during server upgrades.

[0064] The technical solution provided in this application addresses the firmware layout misalignment caused by SEV data expansion in the PSP, which leads to recovery issues during server upgrades. By defining basic Flash address information, the solution locates the address information of chip calibration information, the block address of the PSP in the NVRAM portion of the Flash chip's Non-Volatile Random Access Memory (NVRAM), the end address of the PSP in the NVRAM, the block address of the SEV data block in the PSP, and the end address of the data block. Then, it iterates through the address information in each block of the entire Flash chip and compares it with the defined address information. When the comparison results match, the address information of the Flash chip is marked with a data type. During AMD server upgrades, the data is updated according to the marked data type. This ensures that the structure and data type of the FV layout are fixed before and after the upgrade, avoiding data type changes after the layout structure is refreshed during server upgrades, which could affect the server upgrade effect and guarantee the upgrade quality of AMD servers.

[0065] The AMD server upgrade method, apparatus, electronic device, and non-volatile readable storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0066] The first embodiment of this application relates to an AMD server upgrade method, such as... Figure 1 As shown, it includes:

[0067] Step 101: Traverse the block structure of the AMD server to obtain multiple block address information;

[0068] Step 102: Match multiple block address information according to multiple pre-set basic address information to obtain block address matching results;

[0069] Step 103: When the block address matching result is that the block address information is consistent with the basic address information, the block address information is type-marked according to the basic address information to obtain the data type marking information corresponding to the block address information;

[0070] Step 104: Upgrade the AMD server based on the block address information and data type tagging information to obtain the AMD server upgrade result.

[0071] Specifically, in the AMD server upgrade method provided in this application, when entering the system upgrade BIOS, the block structure of the AMD server to be upgraded is first traversed in a loop, for example, traversing the address information in each block of the Flash chip to obtain multiple block address information.

[0072] Then, the block address information is matched against the pre-set basic address information. When a block address matches a basic address, it is marked according to the data type of the basic address. For example, after traversing all block structures of the AMD server to obtain multiple block address information, each block address is matched against multiple basic address information. When a block address matches a basic address, it is marked according to the data type of that basic address, thus obtaining the data type tag information corresponding to that block address.

[0073] Finally, the AMD server is upgraded based on the multiple block address information and corresponding data type marker information obtained after traversing all block structures, resulting in the AMD server upgrade result.

[0074] It should be emphasized that this application does not impose specific restrictions on the server model and is applicable to all AMD general-purpose computer system products that have undergone upgrades and recovery due to changes in FV layout caused by changes in the SEV data of the PSP.

[0075] The technical solution provided in this application obtains block address information and matches it with a pre-set basic address. The corresponding block address information is marked, and these marking results are referenced during server upgrades. This ensures that the structure and data types of the FV layout do not change before and after the upgrade, avoiding the problem of data type changes in the FV layout due to structure refresh during server upgrades. It also avoids recovery issues during AMD server upgrades and ensures the upgrade effect of AMD servers.

[0076] Based on the above implementation methods, such as Figure 2 As shown, the AMD server is equipped with a basic input / output system chip and a flash chip. The basic address information includes chip lookup and calibration basic address information. In the AMD server upgrade method provided in this application, before step 101, it also includes:

[0077] Step 105: Perform initialization actions on the basic input / output system chip and determine the calibration address and first end address of the Flash chip;

[0078] Step 106: Set the chip to find the calibration basic address information based on the calibration address and the first end address.

[0079] Specifically, in the AMD server upgrade method provided in this application, the basic address information includes chip calibration basic address information. Before matching the block address information with the basic address information, the BIOS is first initialized, and the address information of the entire Flash chip is confirmed through "FLASH_DEVICE_BASE_ADDRESS", including the calibration address and the first end address, etc. For example, the address information for finding chip calibration information is "ROMSIG_BASE", the end block address for chip calibration is "AMD_ROMSIG_BLOCK_END", and the calibration address for finding chip blocks is "AMD_ROMSIG_BLOCK_ADDRES", etc., thereby completing the pre-setting of the chip calibration basic address information.

[0080] After traversing all block structures of the AMD server and obtaining multiple block address information, each block address information is matched with the chip's calibration base address information. When a block address information corresponds to the chip's calibration base address information, the block address data is marked with a data type according to the data type of the chip's calibration base address information.

[0081] Based on the above implementation, since the technical solution provided in this application pre-sets the address information for finding chip calibration information, after traversing and obtaining multiple block address information of the chip, it can avoid the change of the address information for finding chip calibration information before and after the server upgrade by matching and marking, thus ensuring the server upgrade effect.

[0082] Based on the above implementation methods, such as Figure 3 As shown, the Flash chip includes non-volatile random access memory (NRAM), which is equipped with a platform security processor. The basic address information also includes the basic address information of the platform security processor in the NRAM. In the AMD server upgrade method provided in this application, after step 106 and before step 101, it further includes:

[0083] Step 107: Obtain the second block address and the second end address of the platform security processor in the non-volatile random access memory;

[0084] Step 108: Set the basic address information of the platform security processor in the non-volatile random access memory according to the second block address and the second end address.

[0085] Specifically, in the AMD server upgrade method provided in this application, the FLASH chip includes NVRAM, and the basic address information also includes the basic address information of the platform security processor in the non-volatile random access memory. Before matching the block address information with the basic address information, the block address of the PSP in the NVRAM, "AMD_PSP_NVRAM_BLOCK_ADDRESS", and the end address of the PSP in the NVRAM, "AMD_PSP_NVRAM_BLOCK_END", are obtained, and the basic address information of the platform security processor in the non-volatile random access memory is set according to the address information.

[0086] After traversing all block structures of the AMD server to obtain multiple block address information, each block address information is matched with the basic address information of the platform security processor in non-volatile random access memory. When a block address information corresponds to the basic address information of the platform security processor in non-volatile random access memory, the block address data is marked with a data type according to the data type of the basic address information of the platform security processor in non-volatile random access memory.

[0087] Based on the above implementation, since the technical solution provided in this application pre-sets the address information of the platform security processor in the non-volatile random access memory, after traversing and obtaining multiple block address information of the chip, it can avoid changes in the basic address information of the platform security processor in the non-volatile random access memory before and after the server upgrade by matching and marking, thus ensuring the server upgrade effect.

[0088] Based on the above implementation methods, such as Figure 4 As shown, the basic address information also includes the basic address information of the platform security processor repair block. In the AMD server upgrade method provided in this application, after step 108 and before step 101, it also includes:

[0089] Step 109: Set the repair block address and repair block end address in the platform security processor;

[0090] Step 110: Determine the basic address information of the platform security processor repair block based on the repair block address and the repair block end address.

[0091] Specifically, in the AMD server upgrade method provided in this application, the basic address information also includes the basic address information of the platform security processor repair block. Before matching the block address information with the basic address information, the repair block address "PSP_FIXED_BLOCK_ADDRESS" and the repair block end address "PSP_FIXED_BLOCK_End" are obtained, and the basic address information of the platform security processor repair block is set according to the address information.

[0092] After traversing all block structures of the AMD server and obtaining multiple block address information, each block address information is matched with the basic address information of the platform security processor repair block. When a block address information corresponds to the basic address information of the platform security processor repair block, the block address data is marked with a data type according to the data type of the basic address information of the platform security processor repair block.

[0093] Based on the above implementation method, since the technical solution provided in this application pre-sets the basic address information of the platform security processor repair block, after traversing and obtaining multiple block address information of the chip, it can avoid the change of the basic address information of the platform security processor repair block before and after the server upgrade by matching and marking, thus ensuring the server upgrade effect.

[0094] Based on the above implementation methods, such as Figure 5 As shown, the basic address information also includes the basic address information of the platform security processor data block. In the AMD server upgrade method provided in this application, after step 108 and before step 101, it also includes:

[0095] Step 111: Set the data block address and data block end address in the platform security processor;

[0096] Step 112: Determine the basic address information of the platform security processor data block based on the data block address and the data block end address.

[0097] Specifically, in the AMD server upgrade method provided in this application, the basic address information also includes the basic address information of the platform security processor data block. Before matching the block address information with the basic address information, the data block address "PSP_SEV_DATA_BLOCK_ADDRESS" and the data block end address "PSP_SEV_DATA_BLOCK_END" are obtained, and the basic address information of the platform security processor data block is set according to the address information.

[0098] After traversing all block structures of the AMD server and obtaining multiple block address information, each block address information is matched with the basic address information of the platform security processor data block. When a block address information corresponds to the basic address information of the platform security processor data block, the block address data is marked with a data type according to the data type of the basic address information of the platform security processor data block.

[0099] Based on the above implementation method, since the technical solution provided in this application pre-sets the basic address information of the platform security processor data block, after traversing and obtaining multiple block address information of the chip, it can avoid changes in the basic address information of the platform security processor data block before and after the server upgrade by matching and marking, thus ensuring the server upgrade effect.

[0100] Based on the above implementation methods, such as Figure 6 As shown, the data type marking information includes chip search calibration type marking information, platform security processor type marking information in non-volatile random access memory, platform security processor repair block marking information, and platform security processor data block marking information. In the AMD server upgrade method provided in this application, step 103 includes:

[0101] Step 131: When the block address matching result is that the block address information is consistent with the chip search calibration basic address information, mark the data type of the chip search calibration on the block address information to obtain the chip search calibration type marking information corresponding to the block address information;

[0102] Step 132: When the block address matching result is that the block address information is consistent with the basic address information of the platform security processor in the non-volatile random access memory, mark the data type of the platform security processor in the non-volatile random access memory on the block address information to obtain the type marking information of the platform security processor in the non-volatile random access memory.

[0103] Step 133: When the block address matching result is that the block address information is consistent with the basic address information of the chip platform security processor repair block, mark the data type of the platform security processor repair block on the block address information to obtain the platform security processor repair block marking information corresponding to the block address information.

[0104] Step 134: When the block address matching result is that the block address information is consistent with the basic address information of the chip platform security processor data block, mark the data type of the platform security processor data block on the block address information to obtain the platform security processor data block marking information corresponding to the block address information.

[0105] Specifically, the AMD server upgrade method provided in this application can achieve the data type marking effect of block address information in the following way:

[0106] First, the total number of blocks in the FLASH chip is obtained. Then, the entire block structure of the chip is traversed and looped, and the start address of each block is compared with the block address "PSP_SEV_DATA_BLOCK_ADDRESS" in the pre-set chip platform security processor data block basic address information. When a match is found, the start addresses of other blocks are compared with the block addresses in the chip platform security processor data block basic address information until a block address information matches the chip platform security processor data block basic address information. This block structure is then marked with a data type, for example, "PSP_FLASH_BLOCK_DESC_TYPE". In the same way, the address information of all block structures in the FLASH chip is matched with the pre-set address information at the levels "AMD_MILAN_PSP_SEV_DATA_BLOCK", "AMD_ROMSIG_BLOCK", and "AMD_MILAN_PSP_FIXED_BLOCK", and the block structures are marked, thereby achieving the effect of fixed structure and data type of FV layout.

[0107] Based on the above implementation methods, such as Figure 7 As shown, the AMD server upgrade method provided in this application includes the following steps before step 101:

[0108] Step 113: Obtain the chip information verification code of the AMD server;

[0109] Step 114: Compare the chip information verification code with the preset value to obtain the chip verification result;

[0110] Step 115: When the chip verification result shows that the chip information verification code is the same as the preset value, determine the corresponding basic address information according to the preset value.

[0111] Specifically, in the AMD server upgrade method provided in this application, before matching the block address information with the basic address information, it is also possible to verify the information based on the chip information check code of the AMD server, such as the information check code of the FLASH chip, and a preset value. Only when the chip information check code of the AMD server matches the preset value can the address information matching action be performed.

[0112] Furthermore, the MD server upgrade method provided in this application is not limited to one type of chip. It can pre-store the basic address information of multiple different chips and distinguish them through different preset values. After obtaining the chip information verification code of the AMD server that needs to be upgraded, the chip information verification code of the AMD server is compared with multiple different preset values. Based on the comparison results, a set of basic address information corresponding to the chip information verification code that needs to be upgraded is determined, and subsequent comparison actions are performed.

[0113] Based on the above embodiments, the technical solution provided in this application can also compare the chip information checksum with a preset value, and determine the basic address information of the server based on the comparison result. This avoids the waste caused by the use of unpreset chip address information for matching, thus improving server upgrade efficiency. Furthermore, this application can pre-set multiple different sets of basic address information. Different basic address information can be determined based on the chip information checksum of different AMD servers, achieving the server upgrade effect, thereby improving the versatility of the AMD server upgrade method provided in this application.

[0114] Based on the above implementation methods, such as Figure 8 As shown, this application also provides an example of an AMD server upgrade process:

[0115] First, start the BIOS. After the BIOS boots up, set the following basic address information in sequence: FLASH_DEVICE_BASE_ADDRES address and ROMSIG_BASE flag; AMD_PSP_NVRAM_BLOCK_ADDRESS address and AMD_PSP_NVRAM_BLOCK_END address; PSP_FIXED_BLOCK_ADDRESS address and PSP_FIXED_BLOCK_End address; PSP_SEV_DATA_BLOCK_ADDRESS address and PSP_SEV_DATA_BLOCK_END address.

[0116] After setting the basic address information as described above, the system is accessed and the server upgrade process begins. First, the chip information checksum of the AMD server is obtained and compared with pre-defined chip information. If a mismatch is found, the server upgrade process stops. If a match is found, the entire chip's block structure is traversed, multiple block address information is obtained, and matched with pre-defined address information, such as PSP_SEV_DATA_BLOCK_ADDRESS. If a match is successful, the data type of this block structure is marked, such as PSP_SEV_DATA_BLOCK or ROMSIG_BLOCK, and the server upgrade is performed based on the marked information. If all address information fails to match, the server upgrade process stops.

[0117] The second embodiment of this application relates to an AMD server upgrade device, such as... Figure 9 As shown, it includes:

[0118] Address traversal module 201 is used to traverse the block structure of the AMD server and obtain multiple block address information;

[0119] Address matching module 202 is used to match multiple block address information according to multiple pre-set basic address information to obtain block address matching results;

[0120] Address marking module 203 is used to mark the type of block address information according to the basic address information when the block address matching result is that the block address information is consistent with the basic address information, so as to obtain the data type marking information corresponding to the block address information.

[0121] Server upgrade module 204 is used to upgrade the AMD server based on block address information and data type tag information, and obtain the AMD server upgrade result.

[0122] Based on the above embodiments, the AMD server upgrade device provided in this application further includes:

[0123] The calibration address acquisition module is used to perform initialization actions on the basic input / output system chip and determine the calibration address and first end address of the Flash chip;

[0124] The calibration address setting module is used to set the chip to find the basic calibration address information based on the calibration address and the first end address.

[0125] Based on the above embodiments, the AMD server upgrade device provided in this application further includes:

[0126] The platform security processor location acquisition module is used to acquire the second block address and the second end address of the platform security processor in the non-volatile random access memory;

[0127] The platform security processor location setting module is used to set the basic address information of the platform security processor in the non-volatile random access memory according to the second block address and the second end address.

[0128] Based on the above embodiments, the AMD server upgrade device provided in this application further includes:

[0129] The repair block address acquisition module is used to set the repair block address and repair block end address in the platform security processor.

[0130] The repair block address setting module is used to determine the basic address information of the platform security processor repair block based on the repair block address and the repair block end address.

[0131] Based on the above embodiments, the AMD server upgrade device provided in this application further includes:

[0132] The data block address acquisition module is used to set the data block address and data block end address in the platform security processor.

[0133] The data block address setting module is used to determine the basic address information of the platform security processor data block based on the data block address and the data block end address.

[0134] Based on the above embodiments, the address marking module 203 in the AMD server upgrade device provided in this application includes:

[0135] The calibration type marking unit is used to mark the data type of the chip search calibration when the block address matching result is that the block address information is consistent with the chip search calibration basic address information, so as to obtain the chip search calibration type marking information corresponding to the block address information;

[0136] The location type marking unit is used to mark the data type of the platform security processor in the non-volatile random access memory when the block address matching result is that the block address information is consistent with the basic address information of the platform security processor in the non-volatile random access memory, so as to obtain the type marking information of the platform security processor in the non-volatile random access memory.

[0137] The repair type marking unit is used to mark the data type of the block address information as a platform security processor repair block when the block address matching result is consistent with the basic address information of the chip platform security processor repair block, so as to obtain the platform security processor repair block marking information corresponding to the block address information.

[0138] The data type marking unit is used to mark the data type of the platform security processor data block when the block address matching result is consistent with the basic address information of the chip platform security processor data block, so as to obtain the platform security processor data block marking information corresponding to the block address information.

[0139] Based on the above embodiments, the AMD server upgrade device provided in this application further includes:

[0140] The information verification code acquisition module is used to acquire the chip information verification code of the AMD server;

[0141] The chip verification module is used to compare the chip information verification code with a preset value to obtain the chip verification result;

[0142] The basic address information confirmation module is used to determine the corresponding basic address information based on the preset value when the chip verification result shows that the chip information check code is the same as the preset value.

[0143] The third embodiment of this application relates to an electronic device, such as... Figure 10 As shown, it includes:

[0144] At least one processor 301; and,

[0145] The memory 302 is communicatively connected to the at least one processor 301; wherein,

[0146] The memory 302 stores instructions that can be executed by the at least one processor 301, which in turn enable the at least one processor 301 to implement the AMD server upgrade method described in the first embodiment of this application.

[0147] The memory and processor are connected via a bus, which can include any number of interconnecting buses and bridges, connecting various circuits of one or more processors and memories. The bus can also connect various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and will not be described further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over the wireless medium via an antenna, which further receives data and transmits it to the processor.

[0148] The processor manages the bus and general processing, and also provides various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory is used to store data used by the processor during operation.

[0149] The fourth embodiment of this application relates to a non-volatile computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the AMD server upgrade method described in the first embodiment of this application.

[0150] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0151] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0152] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. An AMD server upgrade method, characterized in that, The method includes: Traverse the block structure of the AMD server to obtain multiple block address information; The block address information is matched based on multiple pre-set basic address information to obtain the block address matching result; When the block address matching result is that the block address information is consistent with the basic address information, the block address information is type-marked according to the basic address information to obtain the data type marking information corresponding to the block address information; The AMD server is upgraded based on the block address information and the data type tag information to obtain the AMD server upgrade result; The basic address information includes chip search calibration basic address information; the AMD server is equipped with a basic input / output system chip and a Flash chip, the Flash chip includes non-volatile random access memory, and the non-volatile random access memory is equipped with a platform security processor; the basic address information also includes the basic address information of the platform security processor in the non-volatile random access memory, the basic address information also includes the basic address information of the platform security processor repair block; the basic address information also includes the basic address information of the platform security processor data block; the data type marking information includes chip search calibration type marking information, the type marking information of the platform security processor in the non-volatile random access memory, the platform security processor repair block marking information, and the platform security processor data block marking information; when the block address matching result is that the block address information is consistent with the basic address information, the block address information is type-marked according to the basic address information to obtain the data type marking information corresponding to the block address information, including: When the block address matching result is that the block address information is consistent with the chip calibration search basic address information, the block address information is marked with the chip calibration search data type to obtain the chip calibration search type marking information corresponding to the block address information; When the block address matching result is that the block address information is consistent with the basic address information of the platform security processor in the non-volatile random access memory, the block address information is marked with the data type of the platform security processor in the non-volatile random access memory to obtain the type marking information of the platform security processor in the non-volatile random access memory. When the block address matching result is that the block address information is consistent with the basic address information of the platform security processor repair block, the block address information is marked with the data type of the platform security processor repair block to obtain the platform security processor repair block marking information corresponding to the block address information; When the block address matching result is that the block address information is consistent with the basic address information of the platform security processor data block, the block address information is marked with the data type of the platform security processor data block to obtain the platform security processor data block marking information corresponding to the block address information.

2. The method according to claim 1, characterized in that, Before traversing the block structure of the AMD server to obtain multiple block address information, the process also includes: The basic input / output system chip is initialized, and the calibration address and first end address of the Flash chip are determined. The chip is set to search for calibration basic address information based on the calibration address and the first end address.

3. The method according to claim 2, characterized in that, After setting the chip's calibration address search information based on the Flash chip's calibration address and first end address, before traversing the AMD server's block structure to obtain multiple block address information, the process further includes: Obtain the second block address and the second end address of the platform security processor in the non-volatile random access memory; The platform security processor sets the basic address information in the non-volatile random access memory according to the second block address and the second end address.

4. The method according to claim 3, characterized in that, After setting the basic address information of the platform security processor in the non-volatile random access memory according to the second block address and the second end address, and before traversing the block structure of the AMD server to obtain multiple block address information, the method further includes: The platform security processor sets the repair block address and the repair block end address; The basic address information of the platform security processor repair block is determined based on the repair block address and the repair block end address.

5. The method according to claim 4, characterized in that, After setting the basic address information of the platform security processor in the non-volatile random access memory according to the second block address and the second end address, and before traversing the block structure of the AMD server to obtain multiple block address information, the method further includes: The platform security processor sets the data block address and the data block end address; The basic address information of the platform security processor data block is determined based on the data block address and the data block end address.

6. The method according to claim 1, characterized in that, Before traversing the block structure of the AMD server to obtain multiple block address information, the process also includes: Obtain the chip information verification code of the AMD server; The chip information verification code is compared with a preset value to obtain the chip verification result; When the chip verification result shows that the chip information check code is the same as the preset value, the corresponding basic address information is determined according to the preset value.

7. An AMD server upgrade device, characterized in that, include: The block address acquisition module is used to traverse the block structure of the AMD server and obtain multiple block address information; The address matching module is used to match the multiple block address information according to multiple pre-set basic address information to obtain the block address matching result; The type marking module is used to mark the type of the block address information according to the basic address information when the block address matching result is that the block address information is consistent with the basic address information, so as to obtain the data type marking information corresponding to the block address information. The server upgrade module is used to upgrade the AMD server according to the block address information and the data type tag information, and obtain the AMD server upgrade result; The basic address information includes chip search calibration basic address information; the AMD server is equipped with a basic input / output system chip and a Flash chip, the Flash chip includes non-volatile random access memory, and the non-volatile random access memory is equipped with a platform security processor; the basic address information also includes the basic address information of the platform security processor in the non-volatile random access memory, the basic address information also includes the basic address information of the platform security processor repair block; the basic address information also includes the basic address information of the platform security processor data block; the data type marking information includes chip search calibration type marking information, the type marking information of the platform security processor in the non-volatile random access memory, the platform security processor repair block marking information, and the platform security processor data block marking information; the address marking module includes: The calibration type marking unit is used to mark the data type of the chip search calibration when the block address matching result is that the block address information is consistent with the chip search calibration basic address information, so as to obtain the chip search calibration type marking information corresponding to the block address information; The location type marking unit is used to mark the data type of the platform security processor in the non-volatile random access memory when the block address matching result is that the block address information is consistent with the basic address information of the platform security processor in the non-volatile random access memory, so as to obtain the type marking information of the platform security processor in the non-volatile random access memory. The repair type marking unit is used to mark the data type of the block address information as a platform security processor repair block when the block address matching result is consistent with the basic address information of the platform security processor repair block, so as to obtain the platform security processor repair block marking information corresponding to the block address information. The data type marking unit is used to mark the data type of the platform security processor data block when the block address matching result is that the block address information is consistent with the basic address information of the platform security processor data block, so as to obtain the platform security processor data block marking information corresponding to the block address information.

8. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the AMD server upgrade steps of the method as described in any one of claims 1-6.

9. A readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the AMD server upgrade method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Firmware upgrading method and device

    CN108762791A

  • OTA upgrading method and device for battery replacing cabinet, battery replacing equipment and storage medium

    CN110990036A