IP Library Granted Patent US 11,275,618
Granted Patent B2
US 11,275,618 · App. 16/475,111 · Granted Mar 15, 2022

Method, device and medium for allocating resource based on type of PCI device

Inventor: Xiuqiang Sun (Henan, CN)
Assignee: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY CO., LTD.
G06F9/5011G06F13/4022G06F13/4221G06T1/20G06T1/60G06F2213/0024
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,275,618
App. No.
16/475,111
Granted
Mar 15, 2022
Kind
B2
Abstract

A method, a device and a medium for allocating a resource based on a type of a PCI device are provided. In a case of running a BIOS program during a start-up process, information of a Switch chip captured by a PCI enumeration operation is acquired. It is determined whether the PCI device is connected to a GPU server based on the information of the Switch chip. An operation of allocating the PCI device with an IO resource is cancelled in a case that the PCI device is connected to the GPU server, and the PCI device is allocated with an IO resource and a memory resource based on a preset allocation rule in a case that the PCI device is not connected to the GPU server.

Claims (39)

1. A method for allocating a resource based on a type of a Peripheral Component Interconnect (PCI) device, comprising steps of:

acquiring information of a Switch chip captured by a PCI enumeration operation in a case of running a Basic Input/Output System (BIOS) program during a start-up process;

determining whether the PCI device is connected to a Graphics Processing Unit (GPU) server based on the information of the Switch chip; and

cancelling an operation of allocating the PCI device with an Input/Output (IO) resource in a case that the PCI device is connected to the GPU server, or allocating the PCI device with the IO resource and a memory resource according to a preset allocation rule in a case that the PCI device is not connected to the GPU server,

wherein the information of the Switch chip comprises identification (ID) information of the Switch chip and version information of the Switch chip, and

the step of determining whether the PCI device is connected to the GPU server based on the information of the Switch chip comprises:

determining whether there are the ID information of the Switch chip and the version information of the Switch chip; and

determining, in a case that there are the ID information of the Switch chip and the version information of the Switch chip, that the PCI device is connected to the GPU server.

2. The method for allocating a resource based on a type of a PCI device according to claim 1 , wherein before the step of determining whether the PCI device is connected to the GPU server based on the information of the Switch chip, the method further comprises:

acquiring a total number of connected PCI devices; and

determining whether the total number of the connected PCI devices reaches a preset value, and wherein

in a case that the total number of the connected PCI devices reaches the preset value, the step of determining whether the PCI device is connected to the GPU server based on the information of the Switch chip is performed.

3. The method for allocating a resource based on a type of a PCI device according to claim 2 , wherein the preset value is 16.

4. The method for allocating a resource based on a type of a PCI device according to claim 1 , wherein the PCI device is a TitanV graphics card.

5. A device for allocating a resource based on a type of a Peripheral Component Interconnect (PCI) device, comprising:

a first acquiring unit configured to acquire information of a Switch chip captured by a PCI enumeration operation in a case of running a Basic Input/Output System (BIOS) program during a start-up process;

a first determining unit configured to determine whether the PCI device is connected to a Graphics Processing Unit (GPU) server based on the information of the Switch chip; and

an allocating unit configured to: cancel an operation of allocating the PCI device with an Input/Output (IO) resource in a case that the first determining unit determines that the PCI device is connected to the GPU server, or allocate the PCI device with the IO resource and a memory resource according to a preset allocation rule in a case that the first determining unit determines that the PCI device is not connected to the GPU server,

wherein the information of the Switch chip comprises identification (ID) information of the Switch chip and version information of the Switch chip, and

the first determining unit is further configured to: determine whether there are the ID information of the Switch chip and the version information of the Switch chip; and determine, in a case that there are the ID information of the Switch chip and the version information of the Switch chip, that the PCI device is connected to the GPU server.

6. The device for allocating a resource based on a type of a PCI device according to claim 5 , further comprising:

a second acquiring unit configured to acquire a total number of connected PCI devices; and

a second determining unit configured to determine whether the total number of the connected PCI devices reaches a preset value, and trigger the first determining unit in a case that the total number of the connected PCI devices reaches the preset value.

7. A non-transitory computer-readable storage medium, having a computer program stored thereon, wherein

the computer program, when executed by a processor, configures the processor to perform steps of a method for allocating a resource based on a type of a Peripheral Component Interconnect (PCI) device, wherein

the method for allocating a resource based on a type of a PCI device comprises the steps of:

acquiring information of a Switch chip captured by a PCI enumeration operation in a case of running a Basic Input/Output System (BIOS) program during a start-up process;

determining whether the PCI device is connected to a Graphics Processing Unit (GPU) server based on the information of the Switch chip; and

cancelling an operation of allocating the PCI device with an Input/Output (IO) resource in a case that the PCI device is connected to the GPU server, or allocating the PCI device with the IO resource and a memory resource according to a preset allocation rule in a case that the PCI device is not connected to the GPU server,

wherein the information of the Switch chip comprises identification (ID) information of the Switch chip and version information of the Switch chip, and

the step of determining whether the PCI device is connected to the GPU server based on the information of the Switch chip comprises:

determining whether there are the ID information of the Switch chip and the version information of the Switch chip; and

determining, in a case that there are the ID information of the Switch chip and the version information of the Switch chip, that the PCI device is connected to the GPU server.

8. The non-transitory computer-readable storage medium according to claim 7 , wherein before performing the step of determining whether the PCI device is connected to the GPU server based on the information of the Switch chip, the processor is further configured to perform:

acquiring a total number of connected PCI devices; and

determining whether the total number of the connected PCI devices reaches a preset value, and wherein

in a case that the total number of the connected PCI devices reaches the preset value, the processor performs the step of determining whether the PCI device is connected to the GPU server based on the information of the Switch chip.

9. The non-transitory computer-readable storage medium according to claim 8 , wherein the preset value is 16.

10. The non-transitory computer-readable storage medium according to claim 7 , wherein the PCI device is a TitanV graphics card.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 30, 2019
From: SUN, XIUQIANG
To: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY CO., LTD.
Reel/Frame 049633/0788 →
Priority Claims (1)
CN 201810594753.8 · Jun 11, 2018 · national
Continuity (1)
Related Publication 20210357258A1 · Nov 18, 2021