CN111709042A - ACS function control method, ACS function control device, storage medium and computer equipment - Google Patents

ACS function control method, ACS function control device, storage medium and computer equipment Download PDF

Info

Publication number
CN111709042A
CN111709042A CN202010553302.7A CN202010553302A CN111709042A CN 111709042 A CN111709042 A CN 111709042A CN 202010553302 A CN202010553302 A CN 202010553302A CN 111709042 A CN111709042 A CN 111709042A
Authority
CN
China
Prior art keywords
acs function
acs
pcie
pcie equipment
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010553302.7A
Other languages
Chinese (zh)
Other versions
CN111709042B (en
Inventor
赵美玉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tongtaiyi Information Technology Co ltd
Original Assignee
Shenzhen Tongtaiyi Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tongtaiyi Information Technology Co ltd filed Critical Shenzhen Tongtaiyi Information Technology Co ltd
Priority to CN202010553302.7A priority Critical patent/CN111709042B/en
Publication of CN111709042A publication Critical patent/CN111709042A/en
Application granted granted Critical
Publication of CN111709042B publication Critical patent/CN111709042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/85Protecting input, output or interconnection devices interconnection devices, e.g. bus-connected or in-line devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a control method, a control device, a storage medium and computer equipment of an ACS function, wherein the method is applied to PCIE equipment and comprises the following steps: BIOS power-on self-test; judging whether the PCIE equipment supports the ACS function; if yes, acquiring control instruction information, and judging whether to start an ACS function of the PCIE equipment; and if not, closing the ACS function of the PCIE equipment. Compared with the prior art, when the ACS function is not needed by the user, the ACS function of the PCIE equipment is closed through the BIOS, so that the performance of the PCIE equipment is prevented from being influenced by the ACS. In addition, the ACS function setting of the PCIE equipment is modified through the BIOS, so that the trouble that technicians change the ACS function setting of the PCIE equipment in a mode of burning firmware again is avoided, and the ACS function setting changing efficiency is greatly improved.

Description

ACS function control method, ACS function control device, storage medium and computer equipment
Technical Field
The present invention relates to the field of servers, and in particular, to a method and an apparatus for controlling ACS functions, a storage medium, and a computer device.
Background
ACS (access Control Services) is mainly used to ensure the security of PCIE (peripheral component interconnect express, high-speed serial computer extended bus standard) devices. With the comprehensive application of artificial intelligence, machine learning and deep learning, the mainstream calculation power in the application scene is currently performed by using the GPU in england, and many calculations are performed by using GPU-GPU access, that is, a large amount of Peer-to-Peer (Peer-to-Peer) access of PCIE is available. A large number of accesses is needed to optimize performance. The function of PCIE acs is originally designed for secure access to the address space, and inevitably affects the performance of P2P access, i.e., degrades the performance of PCIE devices (e.g., GPU cards). In the existing framework, as long as the device supporting the ACS function is forced to start the function, the performance of the PCIE device is reduced.
Disclosure of Invention
The main purpose of the present invention is to provide a method for controlling an ACS function, and to solve the technical problem that PCIE devices supporting the ACS function are forced to start the function, thereby reducing the performance of the PCIE devices.
The invention provides a control method of an ACS function, which is applied to PCIE equipment and comprises the following steps:
BIOS power-on self-test;
judging whether the PCIE equipment supports the ACS function;
if yes, acquiring control instruction information, and judging whether to start an ACS function of the PCIE equipment;
and if not, closing the ACS function of the PCIE equipment.
Preferably, after the step of determining whether the PCIE device supports the ACS function, the method includes:
and if not, closing the ACS function of the PCIE equipment.
Preferably, if not, after the step of turning off the ACS function of the PCIE device, the method includes:
judging whether PCIE equipment which does not support the ACS function exists at present;
if yes, the steps of judging whether the rest PCIE equipment supports the PCIE equipment with the ACS function or not and starting or closing the ACS function of the PCIE equipment according to the control instruction information are executed in a circulating mode until all the PCIE equipment in the server finish the judgment.
The present invention also provides a control device of ACS function, comprising:
the self-checking module is used for BIOS power-on self-checking;
the first judgment module is used for judging whether the PCIE equipment supports the ACS function;
the second judgment module is used for acquiring the control instruction information and judging whether to start the ACS function of the PCIE equipment if the ACS function is started;
and the first execution module is used for closing the ACS function of the PCIE equipment if the ACS function is not the same as the ACS function of the PCIE equipment.
Preferably, the control device of the ACS function further includes:
and the second execution module is used for closing the ACS function of the PCIE equipment if the ACS function is not the same as the ACS function of the PCIE equipment.
Preferably, the control device of the ACS function further includes:
the third judging module is used for judging whether PCIE equipment which does not support the ACS function exists at present;
and a third execution module, configured to, if yes, cyclically execute the step of determining whether the remaining PCIE devices support the PCIE device with the ACS function, and turn on or turn off the ACS function of the PCIE device according to the control instruction information until all the PCIE devices in the server complete the determination.
The present invention also provides a storage medium, which is a computer-readable storage medium, on which a computer program is stored, which when executed, implements the control method of the ACS function as described above.
The present invention also provides a computer device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the ACS function control method as described above.
The invention has the beneficial effects that: when the user does not need the ACS function, the ACS function of the PCIE equipment is closed through the BIOS, so that the performance of the PCIE equipment is prevented from being influenced by the ACS. In addition, the ACS function setting of the PCIE equipment is modified through the BIOS, so that the trouble that technicians change the ACS function setting of the PCIE equipment in a mode of burning firmware again is avoided, and the ACS function setting changing efficiency is greatly improved.
Drawings
FIG. 1 is a flowchart illustrating a method for controlling ACS function according to a first embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a first embodiment of an ACS function control apparatus according to the present invention;
FIG. 3 is a block diagram of an embodiment of a storage medium provided in the present application;
fig. 4 is a block diagram of an embodiment of a computer device provided in the present application.
Description of reference numerals:
1. a self-checking module; 2. a first judgment module; 3. a second judgment module; 4. a first execution module;
100. a storage medium; 200. a computer program; 300. a computer device; 400. a processor.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, the present invention provides a method for controlling an ACS function, where the method is applied to a PCIE device, and includes:
s1, BIOS power-on self-test;
s2: judging whether the PCIE equipment supports the ACS function;
s3: if yes, acquiring control instruction information, and judging whether to start an ACS function of the PCIE equipment;
s4: and if not, closing the ACS function of the PCIE equipment.
In the embodiment of the present invention, a BIOS (Basic Input Output System) performs power on self test. For example, the PICE device is a SWITCH, the model number of the SWITCH is 8796, the manufacturer is PLX, the SWITCH is plugged with a plurality of GPU cards, and P2P connection exists among the GPU cards. The operating system of the server judges whether the PCIE device (SWITCH) supports the ACS function, specifically, the operating system reads the value of the ACS control register, specifically, the operating system inputs an instruction of "lspci-vvvvv | grep" in the Linux system, reads the value in the ACSCap, and if the value in the ACSCap is "1", it indicates that the SWITCH supports the ACS function. If yes, judging whether to start the ACS function of the SWITCH according to the control instruction information input by the user. If the SWITCH is closed, the BIOS modifies the setting in the ACS control register to close the ACS function of the SWITCH, thereby avoiding the performance reduction of the SWITCH. In summary, when the user does not need the ACS function, the BIOS turns off the ACS function of the PCIE device, so as to prevent the performance of the PCIE device from being affected by the ACS. In addition, the ACS function setting of the PCIE equipment is modified through the BIOS, so that the trouble that technicians change the ACS function setting of the PCIE equipment in a mode of burning firmware again is avoided, and the ACS function setting changing efficiency is greatly improved.
In other embodiments of the present invention, there is also a third party device in communication with the BIOS. And sending a control instruction for turning on or turning off the PCIE equipment to the BIOS through the third-party equipment. Through the setting, the ACS function setting of the PCIE equipment can be modified in a diversified mode, and convenience is brought to users.
Further, after the step S2 of determining whether the PCIE device supports the ACS function, the method includes:
s21: and if not, closing the ACS function of the PCIE equipment.
In the embodiment of the present invention, if the PCIE device itself does not support the ACS function, the BIOS directly changes the value of the ACS control register and sets it to the off state. Through the setting, the situation that the next judgment is carried out and unnecessary burden is caused to an operating system is avoided.
Further, if not, after the step S4 of turning off the ACS function of the PCIE device, the method includes:
s5: judging whether PCIE equipment which does not support the ACS function exists at present;
s6: if yes, the steps of judging whether the rest PCIE equipment supports the PCIE equipment with the ACS function or not and starting or closing the ACS function of the PCIE equipment according to the control instruction information are executed in a circulating mode until all the PCIE equipment in the server finish the judgment.
In the embodiment of the present invention, the operating system may determine whether all PCIE devices in the server need to turn off the ACS function. Therefore, the performance of the PCIE equipment is improved in all directions.
Referring to fig. 2, the present invention provides a control apparatus for an ACS function, comprising:
the self-checking module 1 is used for BIOS power-on self-checking;
the first judging module 2 is configured to judge whether the PCIE device supports an ACS function;
the second judging module 3 is configured to, if yes, obtain control instruction information, and judge whether to start an ACS function of the PCIE device;
the first executing module 4 is configured to, if not, close the ACS function of the PCIE device.
In the embodiment of the present invention, a BIOS (Basic Input Output System) performs power on self test. For example, the PICE device is a SWITCH, the model number of the SWITCH is 8796, the manufacturer is PLX, the SWITCH is plugged with a plurality of GPU cards, and P2P connection exists among the GPU cards. The operating system of the server judges whether the PCIE device (SWITCH) supports the ACS function, specifically, the operating system reads the value of the ACS control register, specifically, the operating system inputs an instruction of "lspci-vvvvv | grep" in the Linux system, reads the value in the ACSCap, and if the value in the ACSCap is "1", it indicates that the SWITCH supports the ACS function. If yes, judging whether to start the ACS function of the SWITCH according to the control instruction information input by the user. If the SWITCH is closed, the BIOS modifies the setting in the ACS control register to close the ACS function of the SWITCH, thereby avoiding the performance reduction of the SWITCH. In summary, when the user does not need the ACS function, the BIOS turns off the ACS function of the PCIE device, so as to prevent the performance of the PCIE device from being affected by the ACS. In addition, the ACS function setting of the PCIE equipment is modified through the BIOS, so that the trouble that technicians change the ACS function setting of the PCIE equipment in a mode of burning firmware again is avoided, and the ACS function setting changing efficiency is greatly improved.
In other embodiments of the present invention, there is also a third party device in communication with the BIOS. And sending a control instruction for turning on or turning off the PCIE equipment to the BIOS through the third-party equipment. Through the setting, the ACS function setting of the PCIE equipment can be modified in a diversified mode, and convenience is brought to users.
Further, a control apparatus of an ACS function further includes:
and the second execution module is used for closing the ACS function of the PCIE equipment if the ACS function is not the same as the ACS function of the PCIE equipment.
In the embodiment of the present invention, if the PCIE device itself does not support the ACS function, the BIOS directly changes the value of the ACS control register and sets it to the off state. Through the setting, the situation that the next judgment is carried out and unnecessary burden is caused to an operating system is avoided.
Further, a control apparatus of an ACS function further includes:
the third judging module is used for judging whether PCIE equipment which does not support the ACS function exists at present;
and a third execution module, configured to, if yes, cyclically execute the step of determining whether the remaining PCIE devices support the PCIE device with the ACS function, and turn on or turn off the ACS function of the PCIE device according to the control instruction information until all the PCIE devices in the server complete the determination.
In the embodiment of the present invention, the operating system may determine whether all PCIE devices in the server need to turn off the ACS function. Therefore, the performance of the PCIE equipment is improved in all directions.
Referring to fig. 3, the present application also provides a storage medium 100, in which a computer program 200 is stored in the storage medium 100, which when run on a computer, causes the computer to execute the control method of the ACS function described in the above embodiment.
Referring to fig. 4, the present application also provides a computer device 300 containing instructions which, when run on the computer device 300, cause the computer device 300 to execute the control method of ACS function described in the above embodiment by means of the processor 400 provided therein.
It will be appreciated by those skilled in the art that the present invention relates to a control arrangement for ACS functions and to an apparatus as referred to above for performing one or more of the methods described in the present application. These devices may be specially designed and manufactured for the required purposes, or they may comprise known devices in general-purpose computers. These devices have stored therein computer programs or applications that are selectively activated or reconfigured. Such a computer program may be stored in a device (e.g., computer) readable medium, including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a bus. That is, a readable medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A control method for ACS function is applied to PCIE equipment, and is characterized in that the method comprises the following steps:
BIOS power-on self-test;
judging whether the PCIE equipment supports an ACS function;
if yes, acquiring control instruction information, and judging whether to start an ACS function of the PCIE equipment;
and if not, closing the ACS function of the PCIE equipment.
2. The method according to claim 1, wherein said step of determining whether the PCIE device supports an ACS function is followed by the step of:
and if not, closing the ACS function of the PCIE equipment.
3. The method according to claim 1 or 2, wherein the step of turning off the ACS function of the PCIE device after the step of turning off the ACS function if not, comprises:
judging whether PCIE equipment which does not support the ACS function exists at present;
if yes, the steps of judging whether the rest PCIE equipment supports the PCIE equipment with the ACS function or not and starting or closing the ACS function of the PCIE equipment according to the control instruction information are executed circularly until all the PCIE equipment in the server finish the judgment.
4. A control apparatus for an ACS function, comprising:
the self-checking module is used for BIOS power-on self-checking;
the first judgment module is used for judging whether the PCIE equipment supports the ACS function or not;
the second judgment module is used for acquiring control instruction information and judging whether to start the ACS function of the PCIE equipment if the ACS function is started;
and the first execution module is used for closing the ACS function of the PCIE equipment if the ACS function is not the same as the ACS function of the PCIE equipment.
5. The apparatus for controlling an ACS function according to claim 4, further comprising:
and the second execution module is used for closing the ACS function of the PCIE equipment if the ACS function of the PCIE equipment is not the same as the ACS function of the PCIE equipment.
6. A control apparatus for an ACS function according to claim 4 or 5, further comprising:
the third judging module is used for judging whether PCIE equipment which does not support the ACS function exists at present;
and a third execution module, configured to, if yes, cyclically execute the steps of determining whether the remaining PCIE devices support the PCIE devices with the ACS function, and turning on or turning off the ACS function of the PCIE devices according to the control instruction information until all the PCIE devices in the server complete the determination.
7. A storage medium, characterized in that it is a computer-readable storage medium on which a computer program is stored, which when executed, implements a method of controlling the ACS function according to any one of claims 1 to 3.
8. A computer device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing a method of controlling the ACS function as set forth in any one of claims 1 to 3 when executing the computer program.
CN202010553302.7A 2020-06-17 2020-06-17 ACS function control method and device, storage medium and computer equipment Active CN111709042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010553302.7A CN111709042B (en) 2020-06-17 2020-06-17 ACS function control method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010553302.7A CN111709042B (en) 2020-06-17 2020-06-17 ACS function control method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN111709042A true CN111709042A (en) 2020-09-25
CN111709042B CN111709042B (en) 2024-02-09

Family

ID=72541135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010553302.7A Active CN111709042B (en) 2020-06-17 2020-06-17 ACS function control method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN111709042B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893289A (en) * 2016-03-30 2016-08-24 华为技术有限公司 Memory map input and output address distribution method and device and computer system
CN110347553A (en) * 2019-07-02 2019-10-18 英业达科技有限公司 Automatically configure the BIOS and its method of PCIe slot
CN110457164A (en) * 2019-07-08 2019-11-15 华为技术有限公司 The method, apparatus and server of equipment management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893289A (en) * 2016-03-30 2016-08-24 华为技术有限公司 Memory map input and output address distribution method and device and computer system
CN110347553A (en) * 2019-07-02 2019-10-18 英业达科技有限公司 Automatically configure the BIOS and its method of PCIe slot
CN110457164A (en) * 2019-07-08 2019-11-15 华为技术有限公司 The method, apparatus and server of equipment management

Also Published As

Publication number Publication date
CN111709042B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
US9507604B2 (en) Boot method and boot system
KR101626433B1 (en) Method and system for verifying proper operation of a computing device after a system change
US11194588B2 (en) Information handling systems and method to provide secure shared memory access at OS runtime
US9740502B2 (en) Virtual bus device using management engine
TW200813837A (en) A chipset-independent method for locally and remotely updating and configuring system BIOS
US9483278B2 (en) Arrangement for secure independent operating environments in a computer
CN111414285A (en) Test method, test device and test equipment for starting function of server system
CN110569158A (en) method and device for testing abnormal power failure in SSD random scene and computer equipment
CN109800032A (en) BOOTROM multicore loading method and device
CN111475215A (en) Server starting method, device and related equipment
CN111338698A (en) Method and system for accurately booting server by BIOS (basic input output System)
US8219797B2 (en) Method and system to facilitate configuration of a hardware device in a platform
CN112732616A (en) BMC starting method, device and equipment based on SPI controller
CN106020895B (en) Application program starting method and user terminal
CN110413328B (en) PXE function enabling method and device for network card port and related equipment
CN112667442B (en) Control method, device and equipment based on nonvolatile memory device starting system
CN113901473A (en) Method, device and equipment for safely starting server and readable medium
US10198270B2 (en) Dynamic hardware configuration via firmware interface at computing device boot
CN111709042A (en) ACS function control method, ACS function control device, storage medium and computer equipment
CN109117406B (en) PCIE hot plug test method, device, terminal and storage medium
CN114185720B (en) Method, device, equipment and storage medium for dynamic hot backup of server
CN112346390B (en) Optical module control method, device, equipment and computer readable storage medium
CN115145381A (en) Method, system, storage medium and equipment for remotely resetting BMC chip
KR101118111B1 (en) Mobile communication terminal and booting method thereof
CN110096366B (en) Configuration method and device of heterogeneous memory system and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant