Method and device for closing access control service function, equipment and storage medium

By obtaining the bus identifier of the PCIe device without starting the BIOS and generating query instructions, the problem of restarting the server in the prior art is solved, and the method of shutting down the ACS function is realized without affecting it, improving the accuracy and efficiency.

CN119045899APending Publication Date: 2024-11-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411045010.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The prior art requires restarting the server to turn off the access control service function of PCIe devices in the BIOS. The process is cumbersome and time-consuming, affecting server performance and testing efficiency.

Method used

By obtaining the device's bus ID without starting the BIOS, generating a query command to obtain the setting value of the ACS function, and using the shutdown command to turn off the ACS function, confirming whether the function is successfully shut down through the response value, avoiding the necessity of restarting the server.

Benefits of technology

It realizes the ACS function without any impact during normal operation of the system, improves accuracy and efficiency, reduces the probability of errors, and avoids the tedious process of restarting the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045899A_ABST
    Figure CN119045899A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a method, device and equipment for closing an access control service function and a storage medium, and the method comprises the following steps: if a basic input / output system is not started, obtaining a bus identifier of first equipment; generating a first query instruction containing a bus identifier, and obtaining a first set value of an access control service function according to the first query instruction; when the first set value is not null and the first set value is not the first preset value, generating a closing instruction of the access control service function, and closing the access control service function of the first device by using the closing instruction; and generating a second query instruction containing the bus identifier, obtaining a response value of the second query instruction, and if the response value shows that the access control service function is closed, completing closing of the access control service function. The problems that the server needs to be restarted to open the BIOS, the access control service function of the equipment is closed in the BIOS, the operation of restarting the server is tedious, and a large amount of time needs to be consumed are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for closing an access control service function. Background Art

[0002] The current Internet has higher and higher requirements for server computing power. In order to improve computing power, servers have more and more demands for PCIe (high-speed serial computer expansion bus standard) resource expansion. Currently, PCIe switch expansion cards are used to connect multiple PCIe devices to the host system through a single PCIe bus. Data can be transmitted between multiple PCIe devices, allowing PCIe devices to communicate directly without going through the host processor. It has good device scalability and data exchangeability. The computing power of the server can be improved through PCIe devices, such as GPU (graphics processing unit), network card, PCIe hard disk, etc.

[0003] However, the PCIe device with switch function will enable the ACS (Access Control Service) function by default. By enabling the ACS function on the switch node, P2P (peer-to-peer) transmission can be prohibited, forcing the switch node to send access requests of all addresses to the RC (Root Complex), thereby avoiding the risks in P2P access and reducing the risk of P2P transmission. However, this will affect the performance of the PCIe device on the PCIe switch expansion card. In order not to affect the performance of the PCIe device, the ACS function of the PCIe device needs to be turned off. However, the current method of turning off the ACS function of the PCIe device requires restarting the server operating system, starting the BIOS (Basic Input Output System), and checking and modifying the PCIe device function in the BIOS. However, the server cannot be easily restarted, and the BIOS cannot be turned off to turn off the ACS function. In addition, the process of restarting the server is relatively cumbersome and requires a lot of time cost.

[0004] Therefore, the related art has the problem that the server needs to be restarted to open the BIOS, and the access control service function of the device needs to be turned off in the BIOS. The restart of the server is cumbersome and takes a lot of time. Summary of the invention

[0005] In view of this, the present invention provides a method, device, equipment and storage medium for disabling the access control service function to solve the problem that the server needs to be restarted to open the BIOS, and the access control service function of the device needs to be turned off in the BIOS, and the restart of the server is cumbersome and time-consuming.

[0006] In a first aspect, the present invention provides a method for disabling an access control service function, comprising:

[0007] Without starting the basic input and output system, obtaining a bus identifier of the first device;

[0008] Generate a first query instruction including a bus identifier, and acquire a first setting value of an access control service function according to the first query instruction;

[0009] When the first setting value is not empty and the first setting value is not the first preset value, generating a closing instruction of the access control service function, and closing the access control service function of the first device by using the closing instruction;

[0010] A second query instruction including a bus identifier is generated, and a response value of the second query instruction is obtained. If the response value indicates that the access control service function has been closed, the access control service function is closed.

[0011] The method for closing the access control service function provided in this embodiment first obtains the bus identifier of the device, and determines the specific first device through the bus identifier; then generates a first query instruction containing the bus identifier, queries the first setting value of the first device, and determines whether the first device supports the ACS function and whether the ACS function is closed through the first setting value; when it is determined that the ACS function is not closed, the ACS function is closed using the close instruction. The ACS function can be closed without BIOS, and the server operating system does not need to be restarted. The ACS function can be closed when the system is running normally and does not affect the background services and programs. Finally, the ACS function is determined by the second query instruction whether it is successfully closed, and the closure of the ACS function can be confirmed 100% with high accuracy. The problem of needing to restart the server to open the BIOS, and close the access control service function of the device in the BIOS, and restarting the server is cumbersome and time-consuming.

[0012] In some optional implementations, generating a second query instruction including a bus identifier, and obtaining a response value of the second query instruction, if the response value indicates that the access control service function has been disabled, then completing the process of disabling the access control service function includes:

[0013] regenerating a first query instruction including the bus identifier, and reacquiring a first setting value of the access control service function according to the regenerated first query instruction;

[0014] Generate a second query instruction including a bus identifier, and obtain a register attribute value of an access control service function according to the second query instruction;

[0015] If the first setting value obtained again is equal to the first preset value and the register attribute value is equal to the second preset value, it is determined that the access control service function has been turned off, and the access control service function is turned off.

[0016] In this embodiment, the register attribute value is obtained and the first setting value is obtained again. When the first setting value obtained again is equal to the first preset value and the register attribute value is equal to the second preset value, it is determined that the access control service function has been turned off. After turning off the ACS function, it is detected again whether the ACS function is successfully turned off, and the turning off of the ACS function can be 100% confirmed with high accuracy.

[0017] In some optional implementations, obtaining a bus identifier of the first device includes:

[0018] Get the model of the first device;

[0019] Generate a third query instruction including the model number;

[0020] The bus identifier is obtained according to the third query instruction.

[0021] In this embodiment, a third query instruction including a model is generated, and a bus identifier is obtained according to the third query instruction, so as to facilitate the subsequent determination of the first device according to the bus identifier, determine whether the first device supports the ACS function, and disable the ACS function.

[0022] In some optional implementations, after acquiring the register attribute value of the access control service function according to the second query instruction, the method further includes:

[0023] If the first setting value obtained again is not equal to the first preset value or the register attribute value is not equal to the second preset value, obtaining a verification vocabulary corresponding to the closing instruction;

[0024] According to the verification vocabulary and the bus identifier, determine whether the information contained in the shutdown instruction is correct;

[0025] If correct, an alarm message is output.

[0026] In this embodiment, the information contained in the shutdown instruction is judged to be correct according to the verification vocabulary and the bus identifier, and if correct, an alarm message is output to promptly notify the user of a fault when shutting down the ACS function, so as to facilitate timely handling of the fault.

[0027] In some optional implementations, after acquiring the first setting value of the access control service function according to the first query instruction, the method further includes:

[0028] If the first setting value is empty, obtaining the bus identifier of the next first device, and executing subsequent steps starting from generating the first query instruction including the bus identifier;

[0029] If the first setting value is equal to the first preset value, the bus identifier of the next first device is obtained, and subsequent steps are executed starting from generating a first query instruction including the bus identifier.

[0030] In some optional implementations, after completing the closing of the access control service function, the method further includes:

[0031] Determine whether there is still a first device whose access control service function is to be disabled;

[0032] If it exists, the bus identifier of the first device whose access control service function is to be disabled is obtained, and subsequent steps are executed starting from generating a first query instruction including the bus identifier until all access control service functions of the first device are disabled.

[0033] In this implementation manner, if there is a first device whose access control service function is to be disabled, subsequent steps are executed starting from generating a first query instruction including a bus identifier to ensure that the ACS functions of all first devices are disabled.

[0034] In some optional embodiments, the method further comprises:

[0035] When the basic input and output system is started, a fourth query instruction is generated;

[0036] According to the fourth query instruction, obtaining a second setting value of a control register of an access control service function;

[0037] If the second setting value is equal to the third preset value, determining that the second device supports the access control service function;

[0038] Generate a control instruction, input the control instruction into a basic input and output system, and shut down the access control service function according to the basic input and output system;

[0039] After disabling the access control service function according to the basic input and output system, obtaining a bus identifier of the second device;

[0040] Generate a first query instruction including the bus identifier of the second device, and acquire a current first setting value of the access control service function according to the first query instruction including the bus identifier of the second device;

[0041] Generate a second query instruction including the bus identifier of the second device, and acquire a current register attribute value of the access control service function according to the second query instruction including the bus identifier of the second device;

[0042] If the current first setting value is equal to the first preset value and the current register attribute value is equal to the second preset value, the access control service function is closed.

[0043] In this embodiment, the ACS function is turned off according to the BIOS through the fourth query instruction and the control instruction. After the ACS function is turned off according to the BIOS, it is determined whether the ACS function is successfully turned off according to the current first setting value and the current register attribute value, ensuring that the ACS function is successfully turned off, thereby expanding the application scenario of the present application.

[0044] In a second aspect, the present invention provides a device for disabling an access control service function, comprising:

[0045] A first acquisition module, configured to acquire a bus identifier of a first device without starting a basic input / output system;

[0046] A second acquisition module, used to generate a first query instruction including a bus identifier, and acquire a first setting value of the access control service function according to the first query instruction;

[0047] a function closing module, configured to generate a closing instruction for the access control service function when the first setting value is not empty and the first setting value is not a first preset value, and to close the access control service function of the first device using the closing instruction;

[0048] The third acquisition module is used to generate a second query instruction including a bus identifier, and obtain a response value of the second query instruction. If the response value indicates that the access control service function has been closed, the access control service function is closed.

[0049] In a third aspect, the present invention provides a computer device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method of shutting down the access control service function of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0050] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for shutting down the access control service function of the above-mentioned first aspect or any corresponding embodiment thereof.

[0051] In a fifth aspect, the present invention provides a computer program product, including computer instructions, which are used to enable a computer to execute the method of shutting down the access control service function of the above-mentioned first aspect or any corresponding embodiment. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 is a flow chart of a method for disabling an access control service function according to an embodiment of the present invention;

[0054] Figure 2 is a flow chart of disabling the ACS function of a PCIe device according to an embodiment of the present invention;

[0055] Figure 3 is a structural block diagram of a device for disabling an access control service function according to an embodiment of the present invention;

[0056] Figure 4 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0058] At present, during the PCIe test process, it is necessary to turn off the ACS function of the PCIe device to prevent the ACS function from affecting the performance of the PCIe device. Turning off the ACS function is done by configuring the switch of the ACS capability register in the BIOS. The ACS function is enabled by default, and the PCIe ACS CTL is disabled by default in the BIOS. Therefore, if you want to turn off the ACS, you need to enable the PCIe ACS CTL (ACS control, ACS function control) function to enable the service, so as to realize the opening or closing of the ACS capability register. The ACS capability registers include: ACS Source Validation (ACS source validation), ACS Translation Blocking (ACS translation blocking), ACS P2P Request Redirect (ACSP2P request redirection), ACS P2P Complation Redirect (ACS P2P completion redirection), etc. Among them, these ACS capability registers are used to implement the functions specified by the ACS, for example: the function of ACS Source Validation is to prevent security vulnerabilities from occurring. A malicious device or a buggy device b may impersonate a device a and send a request identifier carrying a function that belongs to a device a to access the memory space belonging to a device a, thereby causing a security vulnerability. ACS Translation Blocking can prohibit devices from performing certain translation operations, thereby limiting the device's access to specific memory areas or devices and enhancing protection of sensitive resources. ACS P2P Request Redirect allows the system to redirect P2P requests, which means that the system can control and manage direct communications between devices to ensure that the communications comply with security policies. ACS P2P Completion Redirect allows the system to redirect these completion responses to ensure that they follow established security policies, such as returning through a specific path or checking before returning.

[0059] To start the BIOS and view and modify the PCIe ACS CTL related options, you need to restart the server's operating system. It is cumbersome to shut down the service and restart the system for some applications and large servers, and it takes a lot of time to restart the system. For operation and maintenance personnel who are not familiar with the options in the BIOS setup (settings), it is complicated to find the PCIe ACS CTL function. In the BIOS, some PCIe ACS CTL function options are BIOS hidden options, and the related options cannot be found in the regular startup to the BIOS. Therefore, the method of shutting down the ACS function through the BIOS is relatively complicated, and the environment debugging requires a lot of time cost, which is not conducive to the advancement of the test. In addition, after shutting down the ACS function using the BIOS, some OS (Operating System, operating system) drivers will load and modify some register parameters, and then modify the lspci Access Control Services capblilites (ACS capabilities) of the PCIe device in the OS, and it cannot be guaranteed that the ACS function is shut down, thereby affecting the performance of the PCIe device connected to the switch, where lspci is a tool used to display all PCIe bus devices in the system or all devices connected to the bus.

[0060] Based on the above content, an embodiment of the present invention provides a method for shutting down the access control service function. This method does not require restarting the operating system. It shuts down the ACS function when the system is running normally and does not affect background services and programs. First, the bus identifier of the device is obtained, and the specific PCIe device is determined by the bus identifier; then a first query instruction containing the bus identifier is generated to query whether the device supports the ACS function and whether the ACS function is shut down; when it is determined that the ACS function is not shut down, the ACS function is shut down using a shut down instruction; finally, a second query instruction is used to determine whether the ACS function is successfully shut down. The closure of the ACS function can be confirmed 100% with high accuracy. In addition, this method for shutting down the access control service function can be executed with one click using a script, which reduces the probability of errors in the process of shutting down the ACS function and improves accuracy.

[0061] According to an embodiment of the present invention, an embodiment of shutting down an access control service function is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer device with data processing capabilities, such as a computer, a server, etc., and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0062] In this embodiment, a method for disabling the access control service function is provided, which can be used for the above-mentioned computer device. Figure 1is a flow chart of a method for disabling an access control service function according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0063] Step S101: obtaining a bus identifier of a first device without starting a basic input / output system.

[0064] Specifically, this embodiment does not need to restart the operating system, and can turn off the ACS function when the system is running normally and does not affect background services and programs. When the basic input and output system (BIOS) is not started, the bus identifier (BUS ID) of the first device is obtained. The first device is a PCIe device, for example: a GPU, a network card, a PCIe hard disk, etc. in a server, and the server can be a server to be tested that needs to perform a PCIe performance test.

[0065] An example of a method for obtaining a bus identifier is to use the setpci tool to query the PCI device register corresponding to the first device according to the model of the first device to obtain its BUS ID, wherein setpci is a command line tool for reading and modifying PCIe device registers. An example of a bus identifier is information such as the lspci BDF (Bus / Device / Function Address) of a PCIe device. In addition, before shutting down the access control service function (ACS function), install the corresponding device driver and configuration tool for the PCIe device in the server host (HOST) system. For example, if the PCIe device does not have a GPU, you need to install the corresponding GPU driver and configuration tool and prepare for configuration.

[0066] Step S102: Generate a first query instruction including a bus identifier, and acquire a first setting value of an access control service function according to the first query instruction.

[0067] Specifically, a first query instruction including a bus identifier is generated, for example: the bus identifier is 0000:15:01.0, and the first query instruction is setpci-vs 0000:15:01.0ECAP_ACS+0x6.w, wherein this command uses the setpci tool to read a specific field value in the ECAP_ACS register of the PCIe device; the -v option indicates the use of the detailed mode, which outputs more information about the modification operation; -s specifies the location of the PCIe device to be modified; 0000:15:01.0 is the bus identifier of the first device; ECAP_ACS+0x6.w indicates the address of the register to be modified, ECAP_ACS refers to the ACS function in ECAP (Enhanced Capability Address), +0x6 indicates a position offset of 6 bytes from the base address of the ACS function, and .w indicates that a 16-bit (word) value is to be modified. The bus identifier is 0000:37:01.0, and the first query instruction is setpci-vs 0000:37:01.0ECAP_ACS+0x6.w.

[0068] According to the first query instruction, a first setting value of the access control service function is obtained in the HOST OS system. The first setting value is, for example, an ECAP_ACS return value of a PCIe device.

[0069] Step S103: when the first setting value is not empty and the first setting value is not the first preset value, generate a closing instruction of the access control service function, and use the closing instruction to close the access control service function of the first device.

[0070] Specifically, if the first setting value is not empty, it means that the first device supports the ACS function, and the next step of judgment can be performed. Determine whether the first setting value is a first preset value, such as 0000 or other preset values. If the first setting value is not empty and the first setting value is not the first preset value, it means that the first device supports the ACS function and the ACS function is turned on and needs to be turned off.

[0071] Generate a shutdown command for the access control service function. For example, if the bus identifier is 0000:15:01.0, the shutdown command is setpci-vs 0000:15:01.0ECAP_ACS+0x6.w=0000. The shutdown command is used to write 0000 to the +0x6 address in the ECAP_ACS register of the PCIe device, and .w indicates that a 16-bit value is to be modified. If the bus identifier is 0000:37:01.0, the shutdown command is setpci-vs 0000:37:01.0ECAP_ACS+0x6.w=0000.

[0072] The close instruction is used to set the value in the ECAP_ACS register of the PCIe device to close the ACS function of the first device.

[0073] Step S104, generating a second query instruction including a bus identifier, and obtaining a response value of the second query instruction. If the response value indicates that the access control service function has been disabled, the access control service function is disabled.

[0074] Specifically, a second query instruction including a bus identifier is generated, and the first setting value of the first device and the register attribute value in the ACSCTL register are obtained again under the HOST OS system by using the second query instruction. According to the first setting value and the register attribute value, it is checked whether the ACS function is successfully closed. For example, if the first setting value is 0000 and the register attribute values ​​are all disable, it indicates that the ACS function is closed successfully. If the first setting value is not 0000 or any register attribute value is not disable, it indicates that the ACS function has failed to be closed and the setting needs to be rechecked.

[0075] It should be noted that the ACS function can be applied to RCs (Root Complexes), Switches (PCIe switches), Multi-Function Devices, etc. If a single-function device supports the SR-IOV (Single Root I / O Virtualization) function, the ACS can treat the device as a multi-function device and enable certain ACS functions. Therefore, the invention can be applied not only to PCIe devices on switch boards, but also to single-device performance testing that supports the SR-IOV function, and is extensible.

[0076] In addition, the method for disabling the access control service function in this embodiment can be executed with one click using a script, which reduces the probability of errors occurring during the process of disabling the ACS function and improves accuracy.

[0077] The method for closing the access control service function provided in this embodiment first obtains the bus identifier of the device, and determines the specific first device through the bus identifier; then generates a first query instruction containing the bus identifier, queries the first setting value of the first device, and determines whether the first device supports the ACS function and whether the ACS function is closed through the first setting value; when it is determined that the ACS function is not closed, the ACS function is closed using the close instruction. The ACS function can be closed without BIOS, and the server operating system does not need to be restarted. The ACS function can be closed when the system is running normally and does not affect the background services and programs. Finally, the ACS function is determined by the second query instruction whether it is successfully closed, and the closure of the ACS function can be confirmed 100% with high accuracy. The problem of needing to restart the server to open the BIOS, and close the access control service function of the device in the BIOS, and restarting the server is cumbersome and time-consuming.

[0078] In some optional implementations, generating a second query instruction including a bus identifier, and obtaining a response value of the second query instruction, if the response value indicates that the access control service function has been disabled, then completing the process of disabling the access control service function includes:

[0079] regenerating a first query instruction including the bus identifier, and reacquiring a first setting value of the access control service function according to the regenerated first query instruction;

[0080] Generate a second query instruction including a bus identifier, and obtain a register attribute value of an access control service function according to the second query instruction;

[0081] If the first setting value obtained again is equal to the first preset value and the register attribute value is equal to the second preset value, it is determined that the access control service function has been turned off, and the access control service function is turned off.

[0082] Specifically, a first query instruction including a bus identifier is generated again, for example: if the bus identifier is 0000:15:01.0, the first query instruction is setpci-vs 0000:15:01.0ECAP_ACS+0x6.w; if the bus identifier is 0000:37:01.0, the first query instruction is setpci-v-s0000:37:01.0ECAP_ACS+0x6.w. Through the first query instruction, after querying and closing the ACS service under the HOST OS, the ECAP_ACS return value of the first device is the first setting value.

[0083] Generate a second query instruction containing a bus identifier. For example, the second query instruction is: the bus identifier is 0000:15:01.0, and the first query instruction is lspci–s 0000:15:01.0–vvv|grep–I ACSCTL, where –s specifies the location of the PCI device to be viewed; 0000:15:01.0 is the BUS ID of the first device; the –vvv option indicates the use of a very detailed mode, which outputs more detailed information about the device, including the contents of the configuration space; | is a pipe symbol, which is used to use the output of the previous command as the input of the next command; grep is a command-line tool for searching for text that matches a specified pattern; the –I option indicates ignoring case, and ACSCTL is the pattern to be searched. The second query instruction uses the lspci command to view detailed information about the PCI device at bus 0000:15:01.0 in a very detailed mode, and then uses the grep command to search for the ACSCTL keyword in the output, ignoring the case difference. Determine the register attribute value of the ACS function from the detailed information of the PCI device obtained by the second query instruction. The register attribute values ​​are, for example: ACSCtl:SrcValid, TransBlk, ReqRedir, CmpltRedir, where the above register attribute values ​​are respectively the register attribute values ​​of the above ACS capability registers such as ACS Source Validation, ACS TranslationBlocking, ACS P2P Request Redirect, and ACS P2P Complation Redirect.

[0084] The first preset value is, for example, 0000 or other preset values. If the first setting value is equal to the first preset value, it means that the ACS function is successfully closed. The second preset value is, for example, disable, - or other preset values. If the acquired register attribute values ​​are all equal to the second preset value, for example, ACSCtl:SrcValid, TransBlk, ReqRedir, CmpltRedir are all equal to -, it means that the ACS function is successfully closed. If they are not all -, it is necessary to troubleshoot the self-test setting problem. It should be noted that the above two methods of judging whether the ACS function is successfully closed respectively check whether the ACS function is successfully closed from two aspects: the register result value and the device lspci attribute value. The above two methods of judging whether the ACS function is successfully closed need to be satisfied at the same time to determine that the ACS function is closed, that is, if the first setting value acquired again is equal to the first preset value and the register attribute value is equal to the second preset value, it is determined that the access control service function is closed, and the access control service function is closed.

[0085] The above process is as follows Figure 2As shown, after configuring to close the ACS function of the PCIe device, check again whether ECAP_ACS+0x6.w is set to 0000 successfully. If the setting is successful, determine whether the register attribute value of the ACSCTL of the PCIe device is disable; if so, determine whether to traverse all PCIe devices. If so, complete the closing of the access control service function and end.

[0086] In this embodiment, the register attribute value is obtained and the first setting value is obtained again. When the first setting value obtained again is equal to the first preset value and the register attribute value is equal to the second preset value, it is determined that the access control service function has been turned off. After turning off the ACS function, it is detected again whether the ACS function is successfully turned off, and the turning off of the ACS function can be 100% confirmed with high accuracy.

[0087] In some optional implementations, obtaining a bus identifier of the first device includes:

[0088] Get the model of the first device;

[0089] Generate a third query instruction including the model number;

[0090] The bus identifier is obtained according to the third query instruction.

[0091] Specifically, the model of the first device is obtained, for example, the model is: XXX.

[0092] Generate a third query instruction containing a model number, the third query instruction is, for example: lspci|grep-iE "XXX", wherein lspci is a command line tool for listing PCI device information in the system; | is a pipe symbol used to use the output of a previous command as the input of a subsequent command; grep is a command line tool for searching text for matches to a specified pattern; the -i option means ignoring case; the -E option enables extended regular expressions to make regular expressions more flexible; XXX is the model number of the first device.

[0093] In the HOST system, the third query instruction is used to obtain the bus identifier (BUSID) of the first device of this model, for example: 0000:15:01.0, 0000:37:01.0, indicating that there are two first devices of this model.

[0094] The above process is as follows Figure 2 As shown, start; enter the model of the PCIe device; view the current setting value of the ACS function of the PCIe device under the HOST OS.

[0095] In this embodiment, a third query instruction including a model is generated, and a bus identifier is obtained according to the third query instruction, so as to facilitate the subsequent determination of the first device according to the bus identifier, determine whether the first device supports the ACS function, and disable the ACS function.

[0096] In some optional implementations, after acquiring the register attribute value of the access control service function according to the second query instruction, the method further includes:

[0097] If the first setting value obtained again is not equal to the first preset value or the register attribute value is not equal to the second preset value, obtaining a verification vocabulary corresponding to the closing instruction;

[0098] According to the verification vocabulary and the bus identifier, determine whether the information contained in the shutdown instruction is correct;

[0099] If correct, an alarm message is output.

[0100] Specifically, the first preset value is, for example, 0000 or other preset values. If the first setting value obtained again is not equal to the first preset value, it means that the ACS function has failed to be turned off, and the shutdown instruction needs to be checked for self-checking setting problems.

[0101] The second preset value is, for example, disable, - or other preset values, and the register attribute value is, for example, ACSCtl:SrcValid, TransBlk, ReqRedir, CmpltRedir. If the above register attribute values ​​are not all equal to the second preset value, it means that the ACS function has failed to be turned off, and the self-check setting problem of the turn-off instruction needs to be checked.

[0102] It should be noted that the above two methods of judging whether the ACS function is successfully shut down respectively check whether the ACS function is successfully shut down from two aspects: the register result value and the device lspci attribute value. The above two methods of judging whether the ACS function is successfully shut down must be met at the same time to determine that the ACS function is shut down. If one of them is not met, it is necessary to troubleshoot the self-test setting problem of the shutdown instruction.

[0103] The process for troubleshooting self-test setup issues includes:

[0104] Get the verification vocabulary corresponding to the close command. The verification vocabulary includes the standard vocabulary of the close command, which is used to verify whether the vocabulary in the close command is correct. For example, the verification vocabulary includes: setpci, ECAP_ACS, +0x6.w, etc.

[0105] According to the verification vocabulary and bus identifier, determine whether the information contained in the close instruction is correct. For example: if the verification vocabulary contains the verification vocabulary +0x6.w, and the corresponding vocabulary in the close instruction is +0x5.w, then it is determined that the information contained in the close instruction is incorrect; if the bus identifier is 0000:15:01.0, and the bus identifier in the close instruction is 0000:16:01.0, then it is determined that the information contained in the close instruction is incorrect.

[0106] If the information contained in the closing instruction is correct but the ACS function is not successfully closed, indicating that a method for closing the access control service function fails (bug), an alarm message is output to inform the user that a method for closing the access control service function fails.

[0107] The above process is as follows Figure 2 As shown, check again whether the setting of ECAP_ACS+0x6.w to 0000 is successful. If not, check the self-test setting problem. If successful, check whether the register attribute value of ACSCTL of the PCIe device is disable. If not, check the self-test setting problem.

[0108] In this embodiment, the information contained in the shutdown instruction is judged to be correct according to the verification vocabulary and the bus identifier, and if correct, an alarm message is output to promptly notify the user of a fault when shutting down the ACS function, so as to facilitate timely handling of the fault.

[0109] In some optional implementations, after acquiring the first setting value of the access control service function according to the first query instruction, the method further includes:

[0110] If the first setting value is empty, obtaining the bus identifier of the next first device, and executing subsequent steps starting from generating the first query instruction including the bus identifier;

[0111] If the first setting value is equal to the first preset value, the bus identifier of the next first device is obtained, and subsequent steps are executed starting from generating a first query instruction including the bus identifier.

[0112] Specifically, according to the first query instruction, a first setting value of the access control service function is obtained in the HOST OS system. The first setting value is, for example, an ECAP_ACS return value of a PCIe device.

[0113] If the first setting value is not empty, it means that the first device supports the ACS function, and the next step of judgment can be performed. However, if the first setting value is empty, it means that the current first device does not support the ACS function, and there is no need to turn off the ACS function of the first device. Continue to turn off the ACS function of the next first device, obtain the bus identifier of the next first device, and re-execute steps S102 to S104. The specific content is not repeated here.

[0114] The first preset value is, for example, 0000 or other preset values. If the first setting value is not empty and the first setting value is not the first preset value, it means that the ACS function of the first device is in the on state and needs to be turned off. However, if the first setting value is equal to the first preset value, it means that the ACS function of the first device is in the off state. There is no need to turn off the ACS function of the first device. Continue to turn off the ACS function of the next first device, obtain the bus identifier of the next first device, and re-execute steps S102 to S104. The specific content will not be repeated here.

[0115] The above process is as follows Figure 2 As shown, check whether the return value of ECAP_ACS+0x6.w is empty; if it is empty, check the current setting of the ACS of the next PCIe device, and execute the current setting value of the ACS function of the PCIe device under the HOST OS and subsequent steps.

[0116] In some optional implementations, after completing the closing of the access control service function, the method further includes:

[0117] Determine whether there is still a first device whose access control service function is to be disabled;

[0118] If it exists, the bus identifier of the first device whose access control service function is to be disabled is obtained, and subsequent steps are executed starting from generating a first query instruction including the bus identifier until all access control service functions of the first device are disabled.

[0119] Specifically, after the ACS function of the current first device is turned off, it is determined whether all PCIe devices are traversed, that is, whether the ACS functions of all PCIe devices are turned off. If not, it is determined that there is still a first device whose ACS function is to be turned off.

[0120] If there is a first device whose ACS function is to be disabled, the bus identifier of the first device whose access control service function is to be disabled is obtained, and steps S102 to S104 are re-executed until the ACS functions of the first devices are all disabled. The specific contents are not repeated here.

[0121] The above process is as follows Figure 2As shown, it is determined whether to traverse all PCIe devices. If not, the current setting of the ACS of the next PCIe device is checked, and the current setting value of the ACS function of the PCIe device is checked under the HOST OS and subsequent steps are performed.

[0122] In this implementation manner, if there is a first device whose access control service function is to be disabled, subsequent steps are executed starting from generating a first query instruction including a bus identifier to ensure that the ACS functions of all first devices are disabled.

[0123] In some optional embodiments, the method further comprises:

[0124] When the basic input and output system is started, a fourth query instruction is generated;

[0125] According to the fourth query instruction, obtaining a second setting value of a control register of an access control service function;

[0126] If the second setting value is equal to the third preset value, determining that the second device supports the access control service function;

[0127] Generate a control instruction, input the control instruction into a basic input and output system, and shut down the access control service function according to the basic input and output system;

[0128] After disabling the access control service function according to the basic input and output system, obtaining a bus identifier of the second device;

[0129] Generate a first query instruction including the bus identifier of the second device, and acquire a current first setting value of the access control service function according to the first query instruction including the bus identifier of the second device;

[0130] Generate a second query instruction including the bus identifier of the second device, and acquire a current register attribute value of the access control service function according to the second query instruction including the bus identifier of the second device;

[0131] If the current first setting value is equal to the first preset value and the current register attribute value is equal to the second preset value, the access control service function is closed.

[0132] Specifically, when starting the basic input and output system (BIOS), in the BIOS, the method of this embodiment can be used to turn off the ACS function of the second device, where the second device is a PCIe device, such as a GPU, a network card, a PCIe hard disk, etc. in a server.

[0133] Generate a fourth query instruction, for example: lspci-vvvv|grep, where lspci is a command line tool for listing PCI device information in the system; the –vvvv option indicates the use of a very detailed mode, which outputs more detailed information about the device, including the content of the configuration space; | is a pipe symbol for using the output of the previous command as the input of the next command; grep is a command line tool for searching for text that matches a specified pattern. According to the fourth query instruction, the second setting value of the control register (ACSCap control register) of the ACS function is obtained.

[0134] The third preset value is, for example, 1 or other preset values. If the second setting value is equal to the third preset value, it is determined that the second device supports the ACS function.

[0135] Generate a control instruction, input the control instruction into BIOS, and use BIOS to modify the value in the ACS control register to disable the ACS function of the second device. For example, the control instruction instructs BIOS to modify the value in the ACS control register to 0000 to disable the ACS function of the second device.

[0136] After the ACS function is disabled by BIOS, some OS (Operating System) drivers will load and modify some register parameters, thereby modifying the lspci Access Control Servicescapblilites (ACS capabilities) of the PCIe device in the OS, and the ACS function cannot be guaranteed to be disabled, thereby affecting the performance of the PCIe device connected to the switch. Therefore, after the ACS function is disabled according to the BIOS, the bus ID of the second device is obtained.

[0137] Generate a first query instruction including the bus identifier of the second device, for example: the bus identifier of the second device is 0000:18:01.0, and the first query instruction is setpci-vs 0000:18:01.0ECAP_ACS+0x6.w. Through the first query instruction, after querying the BIOS under the HOST OS to turn off the ACS function, the ECAP_ACS return value of the first device is the current first setting value.

[0138] Generate a second query instruction including the bus identifier of the second device, for example: the bus identifier of the second device is 0000:18:01.0, and the second query instruction is lspci-s 0000:18:01.0-vvv|grep-I ACSCTL. Determine the current register attribute value of the ACS function from the detailed information of the PCI device obtained by the second query instruction.

[0139] The first preset value is, for example, 0000 or other preset values. If the first setting value is equal to the first preset value, it means that the ACS function is successfully turned off. The second preset value is, for example, disable, - or other preset values. If the acquired register attribute values ​​are all equal to the second preset value, it means that the ACS function is successfully turned off. If they are not all -, it is necessary to troubleshoot the self-test setting problem. It should be noted that the above two methods of determining whether the ACS function is successfully turned off need to be met at the same time to determine that the ACS function has been turned off and the ACS function is turned off.

[0140] In this embodiment, the ACS function is turned off according to the BIOS through the fourth query instruction and the control instruction. After the ACS function is turned off according to the BIOS, it is determined whether the ACS function is successfully turned off according to the current first setting value and the current register attribute value, ensuring that the ACS function is successfully turned off, thereby expanding the application scenario of the present application.

[0141] In some optional implementations, after the access control service function is turned off, if the access control service function is needed, the access control service function can be turned on through step A1.

[0142] Step A1, using an enable instruction to set a value in an ECAP_ACS register of a PCIe device to enable the ACS function of the first device.

[0143] Specifically, the principle of the opening instruction is the same as that of the closing instruction. For example, if the bus identifier is 0000:15:01.0, the opening instruction is setpci-vs 0000:15:01.0ECAP_ACS+0x6.w=1111, and 1111 is written to the +0x6 address in the ECAP_ACS register of the PCIe device, and .w indicates that a 16-bit value is to be modified, so as to realize opening the ACS function of the first device.

[0144] After the ACS function is enabled, the BIOS EDPC (Electronic Data Processing Center) function may be tested, including steps B1 to B.

[0145] Step B1, obtain PCIe device information and record it as X.

[0146] Specifically, the platform command is executed to output PCIe device related information, and is recorded as X. PCIe device related information includes socket (interface) information, PCIe core (core) information, PCIe port (port) information, and the like.

[0147] Step B2, insert an external PCIe device, obtain PCIe device information, and record it as Y.

[0148] Specifically, an external PCIe device is inserted, and the PCIe device related information is output under the current operating system and recorded as Y.

[0149] Step B3: compare X and Y, use the difference as NBIO information of the external PCIe device, and record it as parameter Z.

[0150] Step B4, confirm whether the current operating system of the server supports the BERT (Bidirectional Encoder Representations from Transformers) function.

[0151] Specifically, the BERT function is a plug-in under the OS, which will be automatically installed during the OS installation process. By reading the BIOS serial port information, determine whether the current operating system supports the BERT function. If it does, proceed to the next step.

[0152] Step B5, modify EDPC related function options under BIOS SETUP, save and restart, and enter the operating system interface.

[0153] Step B6: Use the platform debugging tool in conjunction with a preset script to input parameter Z into the first error injection command.

[0154] Specifically, input parameter Z into the first error injection command, and the serial port will keep printing information. If the error injection is successful, a success (pass) message will be displayed, and the system information module will report the "PCIe uncorrectable error log", and the transmission data link under the operating system will be interrupted and cannot be continuously output normally; if the error injection fails, a failure (fail) message will be displayed. At this time, it is necessary to continue to inject errors until the pass message is displayed to simulate the failure of the external PCIe device.

[0155] Step B7, when the external PCIe device has successfully failed, input parameter Z into the second error injection command to repair the failure of the external PCIe device.

[0156] Step B8, confirm whether the BIOS supports the EDPC function by checking the output information.

[0157] Specifically, when the external PCIe device has successfully failed, after the parameter Z is input into the second error injection command, the serial port will continue to print output information. If the device is repaired successfully, the output information will display the EDPC repair (EDPC has been repaired) information, and the system information module will report the "PCIe recovery log". The transmission data link under the operating system will be reconnected, and the data will continue to be output normally. At this time, it means that the BIOS supports the EDPC function, that is, the EDPC function verification is completed; if the device repair fails, the no EDPCrepair (EDPC has not been repaired) information will be displayed, which means that the BIOS does not support the EDPC function, that is, the EDPC function verification is completed.

[0158] In this implementation, a step of turning on the ACS function is provided, and after turning on the ACS function, the BIOS EDPC function can be tested, which enriches the functions of this application and makes turning off and on the ACS function and other applications more convenient.

[0159] In this embodiment, a device for closing the access control service function is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0160] This embodiment provides a device for disabling access control service functions, such as Figure 3 As shown, including:

[0161] A first acquisition module 301 is used to acquire a bus identifier of a first device without starting a basic input and output system;

[0162] The second acquisition module 302 is used to generate a first query instruction including a bus identifier, and acquire a first setting value of the access control service function according to the first query instruction;

[0163] The function closing module 303 is used to generate a closing instruction of the access control service function when the first setting value is not empty and the first setting value is not the first preset value, and close the access control service function of the first device by using the closing instruction;

[0164] The third acquisition module 304 is used to generate a second query instruction including a bus identifier, and obtain a response value of the second query instruction. If the response value indicates that the access control service function has been disabled, the access control service function is disabled.

[0165] In some optional implementations, the third acquisition module 304 generates a second query instruction including a bus identifier, and acquires a response value of the second query instruction. If the response value indicates that the access control service function is disabled, the access control service function is disabled, including:

[0166] regenerating a first query instruction including the bus identifier, and reacquiring a first setting value of the access control service function according to the regenerated first query instruction;

[0167] Generate a second query instruction including a bus identifier, and obtain a register attribute value of an access control service function according to the second query instruction;

[0168] If the first setting value obtained again is equal to the first preset value and the register attribute value is equal to the second preset value, it is determined that the access control service function has been turned off, and the access control service function is turned off.

[0169] In some optional implementations, the first acquisition module 301 acquires the bus identifier of the first device, including:

[0170] Get the model of the first device;

[0171] Generate a third query instruction including the model number;

[0172] The bus identifier is obtained according to the third query instruction.

[0173] In some optional implementations, after acquiring the register attribute value of the access control service function according to the second query instruction, the apparatus is used to:

[0174] If the first setting value obtained again is not equal to the first preset value or the register attribute value is not equal to the second preset value, obtaining a verification vocabulary corresponding to the closing instruction;

[0175] According to the verification vocabulary and the bus identifier, determine whether the information contained in the shutdown instruction is correct;

[0176] If correct, an alarm message is output.

[0177] In some optional implementations, after acquiring the first setting value of the access control service function according to the first query instruction, the device is further configured to:

[0178] If the first setting value is empty, obtaining the bus identifier of the next first device, and executing subsequent steps starting from generating the first query instruction including the bus identifier;

[0179] If the first setting value is equal to the first preset value, the bus identifier of the next first device is obtained, and subsequent steps are executed starting from generating a first query instruction including the bus identifier.

[0180] In some optional implementations, after completing the closing of the access control service function, the device is further used to:

[0181] Determine whether there is still a first device whose access control service function is to be disabled;

[0182] If it exists, the bus identifier of the first device whose access control service function is to be disabled is obtained, and subsequent steps are executed starting from generating a first query instruction including the bus identifier until all access control service functions of the first device are disabled.

[0183] In some optional embodiments, the device is also used for:

[0184] When the basic input and output system is started, a fourth query instruction is generated;

[0185] According to the fourth query instruction, obtaining a second setting value of a control register of an access control service function;

[0186] If the second setting value is equal to the third preset value, determining that the second device supports the access control service function;

[0187] Generate a control instruction, input the control instruction into a basic input and output system, and shut down the access control service function according to the basic input and output system;

[0188] After disabling the access control service function according to the basic input and output system, obtaining a bus identifier of the second device;

[0189] Generate a first query instruction including the bus identifier of the second device, and acquire a current first setting value of the access control service function according to the first query instruction including the bus identifier of the second device;

[0190] Generate a second query instruction including the bus identifier of the second device, and acquire a current register attribute value of the access control service function according to the second query instruction including the bus identifier of the second device;

[0191] If the current first setting value is equal to the first preset value and the current register attribute value is equal to the second preset value, the access control service function is closed.

[0192] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0193] The device for shutting down the access control service function in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0194] The embodiment of the present invention also provides a computer device having the above Figure 3 The device shown is used to turn off the access control service function.

[0195] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 4 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.

[0196] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0197] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0198] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0199] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0200] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0201] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0202] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0203] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for disabling access control service function, It is characterized in that The method comprises: Without starting the basic input and output system, obtaining a bus identifier of the first device; Generate a first query instruction including the bus identifier, and acquire a first setting value of the access control service function according to the first query instruction; In a case where the first setting value is not empty and the first setting value is not a first preset value, generating a closing instruction of the access control service function, and using the closing instruction to close the access control service function of the first device; A second query instruction including the bus identifier is generated, and a response value of the second query instruction is obtained. If the response value indicates that the access control service function has been disabled, the access control service function is disabled.

2. The method according to claim 1, It is characterized in that The generating of the second query instruction including the bus identifier and obtaining a response value of the second query instruction, and if the response value indicates that the access control service function has been disabled, then the disabled access control service function is completed, including: regenerating a first query instruction including the bus identifier, and reacquiring a first setting value of the access control service function according to the regenerated first query instruction; generating a second query instruction including the bus identifier, and acquiring a register attribute value of the access control service function according to the second query instruction; If the first setting value obtained again is equal to the first preset value and the register attribute value is equal to the second preset value, it is determined that the access control service function has been turned off, and the access control service function is turned off.

3. The method according to claim 1, It is characterized in that The obtaining the bus identifier of the first device includes: Obtaining a model of the first device; generating a third query instruction including the model; The bus identifier is acquired according to the third query instruction.

4. The method according to claim 2, It is characterized in that After acquiring the register attribute value of the access control service function according to the second query instruction, the method further includes: If the first setting value obtained again is not equal to the first preset value or the register attribute value is not equal to the second preset value, obtaining a verification vocabulary corresponding to the closing instruction; Determining whether information included in the shutdown instruction is correct according to the verification vocabulary and the bus identifier; If correct, an alarm message is output.

5. The method according to claim 1, It is characterized in that After acquiring the first setting value of the access control service function according to the first query instruction, the method further includes: If the first setting value is empty, obtaining the bus identifier of the next first device, and executing subsequent steps starting from generating the first query instruction containing the bus identifier; If the first setting value is equal to the first preset value, the bus identifier of the next first device is obtained, and subsequent steps are executed starting from generating the first query instruction containing the bus identifier.

6. The method according to claim 1, It is characterized in that After the access control service function is closed, the method further includes: Determining whether there is still a first device whose access control service function is to be disabled; If so, the bus identifier of the first device whose access control service function is to be disabled is obtained, and subsequent steps are performed starting from generating the first query instruction containing the bus identifier until the access control service functions of the first device are all disabled.

7. The method according to claim 1, It is characterized in that The method further comprises: When the basic input and output system is started, generating a fourth query instruction; According to the fourth query instruction, obtaining a second setting value of the control register of the access control service function; If the second setting value is equal to a third preset value, determining that the second device supports the access control service function; generating a control instruction, inputting the control instruction into the basic input and output system, and shutting down the access control service function according to the basic input and output system; After shutting down the access control service function according to the basic input and output system, acquiring a bus identifier of the second device; generating a first query instruction including the bus identifier of the second device, and acquiring a current first setting value of the access control service function according to the first query instruction including the bus identifier of the second device; generating a second query instruction including the bus identifier of the second device, and acquiring a current register attribute value of the access control service function according to the second query instruction including the bus identifier of the second device; If the current first setting value is equal to the first preset value and the current register attribute value is equal to the second preset value, the access control service function is closed.

8. A device for disabling access control service functions, It is characterized in that The device comprises: A first acquisition module, configured to acquire a bus identifier of a first device without starting a basic input / output system; A second acquisition module, used for generating a first query instruction including the bus identifier, and acquiring a first setting value of the access control service function according to the first query instruction; a function closing module, configured to generate a closing instruction for the access control service function when the first setting value is not empty and the first setting value is not a first preset value, and to close the access control service function of the first device using the closing instruction; The third acquisition module is used to generate a second query instruction including the bus identifier, and obtain a response value of the second query instruction. If the response value indicates that the access control service function has been closed, the access control service function is closed.

9. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for shutting down the access control service function as described in any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for disabling the access control service function according to any one of claims 1 to 7.

Citation Information

Cited By

  • Access control service setting method and electronic equipment

    CN120874096A