Computing resource allocation method, device, electronic device and storage medium
By judging whether the memory mapping input/output address type of a PCIE device matches the startup mode during the startup process of an electronic device, the problem of PCIE device operation errors is solved, and the compatibility and system stability of the electronic device are improved.
Patent Information
- Application Number
- CN202111073822.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-14
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2041-09-14
AI Technical Summary
When an electronic device is compatible with multiple boot modes, the memory mapping input/output address type requested by the PCIE device does not match the boot mode, resulting in an operation error.
During the startup process of the electronic device, a memory mapping input/output address allocation request of the PCIE device is obtained to determine whether its type matches the startup mode. If not, a memory space of a type matching the startup mode is allocated to the PCIE device as the memory mapping input/output address.
It avoids PCIE device operation errors and improves the startup mode compatibility and system stability of electronic devices.
Smart Images

Figure CN113791905B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and more specifically, to a computing resource allocation method, device, electronic device, and storage medium. Background Art
[0002] The startup process of an electronic device includes the hardware initialization process. During hardware initialization, an address is assigned to the PCIE device based on the address request of the peripheral device (i.e., PCIE device such as graphics card) of the central processing unit (CPU). This address is the memory mapping input / output (MMIO) address of the PCIE device, which is used for the interaction between the CPU and the PCIE device after the electronic device starts.
[0003] Electronic devices primarily boot up using the Basic Input Output System (BIOS). Currently, the most popular boot methods include the traditional BIOS (referred to as legacy) and the newer BIOS (Unified Extensible Firmware Interface, UEFI). When booting an electronic device using legacy BIOS, the MMIO addresses assigned to PCIE devices are typically below 4GB. However, when booting an electronic device using UEFI, the MMIO addresses assigned to PCIE devices are mostly above 4GB, with only a few below 4GB.
[0004] Currently, some electronic devices only support one boot mode, while others are compatible with both. When an electronic device is compatible with both boot modes, only one boot mode can be selected to boot the device. If the boot mode is legacy, and the MMIO address requested by the PCIE device during the boot process is a 64-bit address, an address larger than 4G may be allocated to the PCIE device, causing PCIE device operation errors. Summary of the Invention
[0005] The purpose of this application is to provide a computing resource allocation method, device, electronic device, and storage medium, including the following technical solutions:
[0006] A computing resource allocation method, the method comprising:
[0007] During the startup of electronic equipment,
[0008] Get the memory-mapped input / output address allocation request sent by the enumerated PCIE device;
[0009] If it is determined that the type of the memory mapping input / output address requested by the PCIE device does not match the startup mode of the electronic device, a memory space of a type that matches the startup mode of the electronic device is allocated to the PCIE device as the memory mapping input / output address of the PCIE device.
[0010] In the above method, preferably, determining that the type of the memory-mapped input / output address requested by the PCIE device does not match the startup mode of the electronic device includes:
[0011] The memory mapping input / output address type carried in the allocation request is different from the memory mapping input / output address type corresponding to the startup mode of the electronic device;
[0012] or,
[0013] The identification mark of the PCIE device determined by enumeration is located in the target device list corresponding to the startup mode.
[0014] In the above method, preferably, the identification identifier of the PCIE device includes at least one of the following:
[0015] The manufacturer identification, device identification and sub-device identification of the PCIE device.
[0016] In the above method, preferably, the type of the memory mapping input / output address requested by the PCIE device does not match the startup mode of the electronic device, including:
[0017] The memory mapped input / output address requested by the PCIE device corresponds to the first addressing space;
[0018] The startup mode of the electronic device corresponds to the second addressing space;
[0019] The first addressing space is different from the second addressing space.
[0020] The above method, preferably, wherein the first addressing space is different from the second addressing space, includes:
[0021] The first addressing space is larger than the second addressing space.
[0022] In the above method, preferably, allocating a memory space of a type matching the startup mode of the electronic device to the PCIE device includes:
[0023] According to the size of the memory mapping input / output address carried in the allocation request, a memory space of the requested size is allocated to the PCIE device in the addressing space corresponding to the startup mode of the electronic device.
[0024] The above method preferably further includes: if it is determined that the type of the memory mapping input / output address requested by the PCIE device matches the startup mode of the electronic device, allocating a memory space of a type that matches the startup mode of the electronic device to the PCIE device as the memory mapping input / output address of the PCIE device.
[0025] A computing resource allocation device, comprising:
[0026] A request acquisition module is used to obtain a memory mapping input / output address allocation request sent by an enumerated PCIE device during the startup process of the electronic device;
[0027] A request processing module is used to allocate a memory space of a type that matches the startup mode of the electronic device to the PCIE device as the memory mapping input / output address of the PCIE device if it is determined that the type of the memory mapping input / output address requested by the PCIE device does not match the startup mode of the electronic device.
[0028] An electronic device, comprising:
[0029] Memory, used to store programs;
[0030] The processor is configured to call and execute the program in the memory, and implement the various steps of the computing resource allocation method as described above by executing the program.
[0031] A readable storage medium stores a computer program thereon, wherein when the computer program is executed by a processor, the computer program implements each step of the computing resource allocation method as described in any one of the above items.
[0032] Through the above scheme, it can be seen that the present application provides a computing resource allocation method, device, electronic device and storage medium. During the electronic device startup process, a memory mapping input / output address allocation request sent by an enumerated PCIE device is obtained; if it is determined that the type of the memory mapping input / output address requested by the PCIE device does not match the startup mode of the electronic device, a memory space of a type that matches the startup mode of the electronic device is allocated to the PCIE device as the memory mapping input / output address of the PCIE device. During the electronic device startup process, if a memory mapping input / output address allocation request sent by an enumerated PCIE device is obtained, the requested memory mapping input / output address is not directly allocated to the PCIE device, but first determines whether the type of the memory mapping input / output address requested by the PCIE device matches the startup mode of the electronic device. If not, the memory space of a type that matches the startup mode of the electronic device is allocated to the PCIE device as the memory mapping input / output address of the PCIE device, thereby avoiding the problem that the type of the memory mapping input / output address requested by the PCIE device does not match the startup mode of the electronic device, resulting in an error in the operation of the PCIE device after the electronic device is started. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0034] Figure 1 A flowchart of an implementation method of the computing resource allocation method provided in an embodiment of the present application;
[0035] Figure 2 A schematic diagram of the structure of a computing resource allocation device provided in an embodiment of the present application;
[0036] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0037] The terms "first," "second," "third," "fourth," and so on (if any) in the specification, claims, and drawings are used to distinguish similar parts and are not necessarily used to describe a particular order or sequential sequence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated herein. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0039] The computing resource allocation method provided in an embodiment of the present application is used in an electronic device, which is configured with a basic input / output system and a PCIE device. During the startup process, the electronic device will send an address request to the CPU based on the peripherals of the central processing unit (CPU) (i.e., the PCIE device) to request the CPU to allocate a MIMO address to the PCIE device, so that the CPU and the PCIE device can interact after the electronic device is started.
[0040] The computing resource allocation method provided in the embodiment of the present application is used in the process of starting up an electronic device, such as Figure 1 As shown, a flowchart of an implementation method of computing resource allocation provided in an embodiment of the present application may include:
[0041] Step S101: obtaining a memory mapping input / output address allocation request sent by an enumerated PCIE device.
[0042] The process of enumerating PCIE devices by the electronic device may include: during the startup process, enumerating all buses of the electronic device, checking whether there are PCIE devices mounted on the buses, and determining the PCIE devices mounted on the buses as the enumerated PCIE devices.
[0043] PCIE devices may include but are not limited to at least one of the following: graphics card, independent sound card, independent network card, wireless network card, USB interface expansion card, disk array RAID (Redundant Arrays of Independent Disks) card, solid state drive SSD (Solid State Drives), etc.
[0044] During the startup of an electronic device, the PCIE device sends an MMIO address allocation request to the CPU.
[0045] Step S102: If it is determined that the type of the memory-mapped input / output address requested by the PCIE device does not match the startup mode of the electronic device, a memory space of a type that matches the startup mode of the electronic device is allocated to the PCIE device as the memory-mapped input / output address of the PCIE device. The MMIO address allocated to the PCIE device is the computing resource allocated to the PCIE device.
[0046] The boot mode of an electronic device may include but is not limited to at least one of the following two: a boot mode based on the traditional BIOS, i.e., the legacy boot mode; a boot mode based on the new BIOS, i.e., the UEFI boot mode. Different boot modes correspond to different types of addressing spaces. Usually, the addressing space corresponding to the UEFI boot mode is larger than the addressing space corresponding to the legacy boot mode. For example, the UEFI boot mode corresponds to a 36-bit addressing space, i.e., the addressing space size is 64G, and the legacy boot mode corresponds to a 32-bit addressing space, i.e., the addressing space size is 4G.
[0047] When the type of memory-mapped input / output address requested by the PCIE device does not match the startup mode of the electronic device, it means that after allocating the MMIO address of the requested type to the PCIE device, the electronic device may experience operation errors or PCIE device abnormalities. In this case, the PCIE device is no longer allocated the memory space of the requested type as the MMIO address. Instead, the PCIE device is allocated content space of a type that matches the startup mode of the electronic device as the MMIO address of the PCIE device.
[0048] The type of the memory space may refer to the number of address bits used for addressing. For example, the type of the memory space may be 32-bit or 36-bit. To distinguish different types of memory spaces, the memory space may be referred to as a 32-bit memory space or a 36-bit memory space.
[0049] The computing resource allocation method provided by the embodiment of the present application, during the startup process of an electronic device, if a memory mapping input / output address allocation request sent by an enumerated PCIE device is obtained, instead of directly allocating the requested memory mapping input / output address to the PCIE device, it is first determined whether the type of the memory mapping input / output address requested by the PCIE device matches the startup mode of the electronic device. If they do not match, the memory space of a type that matches the startup mode of the electronic device is allocated to the PCIE device as the memory mapping input / output address of the PCIE device, thereby avoiding the problem of PCIE device operation errors after the electronic device is started due to the mismatch between the type of the memory mapping input / output address requested by the PCIE device and the startup mode of the electronic device, improving the compatibility of the startup mode of the electronic device, and enhancing the stability of the entire system of the electronic device.
[0050] In an optional embodiment, an implementation method of determining that the type of the memory-mapped input / output address requested by the PCIE device does not match the startup mode of the electronic device may be:
[0051] If the memory mapping input / output address type carried in the allocation request is different from the memory mapping input / output address type corresponding to the startup mode of the electronic device, it is determined that the type of the memory mapping input / output address requested by the PCIE device does not match the startup mode of the electronic device; otherwise, it is determined that the type of the memory mapping input / output address requested by the PCIE device matches the startup mode of the electronic device.
[0052] The MMIO address allocation request sent by the PCIE device carries the type of the requested MMIO address. During the startup process, the startup mode is known (for example, the user-selected mode after power-on, or the default startup mode), so the MMIO address type corresponding to the startup mode is also known. Therefore, by directly comparing the type of the requested MMIO address, it can be determined that the type of the memory-mapped input / output address requested by the PCIE device does not match the startup mode of the electronic device.
[0053] In an optional embodiment, another implementation of determining that the type of the memory-mapped input / output address requested by the PCIE device does not match the startup mode of the electronic device may be:
[0054] If the identification identifier of the PCIE device determined by enumeration is located in the target device list corresponding to the startup mode, it is determined that the type of the memory mapping input / output address requested by the PCIE device does not match the startup mode of the electronic device; otherwise, it is determined that the type of the memory mapping input / output address requested by the PCIE device matches the startup mode of the electronic device.
[0055] In an embodiment of the present application, a list of PCIE devices that do not match the startup mode (i.e., the above-mentioned target device list) is pre-configured, and the target device list records the identifiers of PCIE devices whose types of requested memory mapping input / output addresses do not match the startup mode of the electronic device. Therefore, during the startup process of the electronic device, it is determined whether the type of memory mapping input / output address requested by the PCIE device matches the startup mode of the electronic device by judging whether the identification identifier of the enumerated PCIE device is located in the target device list.
[0056] In an optional embodiment, the identification identifier of the PCIE device may include at least one of the following: a manufacturer identifier, a device identifier, and a sub-device identifier of the PCIE device.
[0057] Typically, an electronic device may be configured with PCIE devices provided by multiple manufacturers. Based on this, if the types of MMIO addresses requested by all PCIE devices provided by a certain manufacturer in the electronic device do not match the startup method of the electronic device, then for the PCIE devices provided by the manufacturer, only the manufacturer's identification needs to be recorded in the target device list. If, among different PCIE devices provided by the same manufacturer, only some of the PCIE devices request MMIO addresses of a type that do not match the startup method of the electronic device, then for the PCIE devices that need to be recorded in the target device list, their device identifications need to be recorded in the target device list. In some scenarios, the device identifications of devices provided by different manufacturers may be the same. In this case, the devices cannot be distinguished by the device identification alone. Therefore, it is necessary to record their manufacturer identification and device identification in the target device list. In addition, there are some cases where the PCIE device in the electronic device may be provided by the manufacturer of the electronic device or by other manufacturers. When the manufacturer of the electronic device and the manufacturer of the PCIE device are different, the manufacturer of the electronic device may configure a new device identifier for the PCIE device provided by other manufacturers, and the device identifiers configured for the PCIE devices provided by the same manufacturer are the same. At this time, the identification identifier of the PCIE device may also include a sub-device identifier, which is the device identifier configured for the PCIE device by the manufacturer of the PCIE device.
[0058] In an optional embodiment, the mismatch between the type of the memory mapping input / output address requested by the PCIE device and the startup mode of the electronic device may include:
[0059] The memory mapped input / output address requested by the PCIE device corresponds to the first addressing space;
[0060] The startup mode of the electronic device corresponds to the second addressing space;
[0061] The first addressing space is different from the second addressing space.
[0062] Optionally, the first addressing space is larger than the second addressing space. For example, the first addressing space is a 36-bit addressing space with a specific size of 64 GB, and the second addressing space is a 32-bit addressing space with a specific size of 4 GB.
[0063] In an optional embodiment, one implementation of allocating a memory space of a type matching the startup mode of the electronic device to the PCIE device may be:
[0064] According to the size of the memory mapping input / output address carried in the allocation request, a content space of the requested size is allocated to the PCIE device in the addressing space corresponding to the startup mode of the electronic device.
[0065] For example, assuming that during the process of an electronic device being started in legacy mode, a PCIE device requests a 36-bit input / output address of 256M in size, then based on this application, a 32-bit input / output address of 256M in size is provided for the PCIE device.
[0066] In an optional embodiment, the computing resource allocation method provided in the embodiment of the present application may further include:
[0067] If it is determined that the type of the memory mapping input / output address requested by the PCIE device matches the startup mode of the electronic device, a memory space of a type matching the startup mode of the electronic device is allocated to the PCIE device as the memory mapping input / output address of the PCIE device.
[0068] For example, assuming that during the process of an electronic device being started in legacy mode, a PCIE device requests a 32-bit input / output address of 128M in size, then based on this application, the 32-bit input / output address provided for the PCIE device is 128M in size.
[0069] Corresponding to the method embodiment, the embodiment of the present application further provides a computing resource allocation device. A structural diagram of the computing resource allocation device provided in the embodiment of the present application is shown in FIG. Figure 2 As shown, this may include:
[0070] Request acquisition module 201 and request processing module 202; wherein,
[0071] The request acquisition module 201 is used to acquire a memory mapping input / output address allocation request sent by an enumerated PCIE device during the startup process of the electronic device;
[0072] The request processing module 202 is used to allocate a memory space of a type that matches the startup mode of the electronic device as the memory mapping input / output address of the PCIE device if it is determined that the type of the memory mapping input / output address requested by the PCIE device does not match the startup mode of the electronic device during the startup process of the electronic device.
[0073] The computing resource allocation device provided by the embodiment of the present application, during the startup process of an electronic device, if a memory mapping input / output address allocation request sent by an enumerated PCIE device is obtained, does not directly allocate the requested memory mapping input / output address to the PCIE device, but first determines whether the type of the memory mapping input / output address requested by the PCIE device matches the startup mode of the electronic device. If not, the memory space of a type that matches the startup mode of the electronic device is allocated to the PCIE device as the memory mapping input / output address of the PCIE device, thereby avoiding the problem of PCIE device operation errors after the electronic device is started due to the mismatch between the type of the memory mapping input / output address requested by the PCIE device and the startup mode of the electronic device, improving the compatibility of the startup mode of the electronic device, and enhancing the stability of the entire system of the electronic device.
[0074] In an optional embodiment, the type of the memory-mapped input / output address requested by the PCIE device does not match the startup mode of the electronic device, which may include:
[0075] The memory mapping input / output address type carried in the allocation request is different from the memory mapping input / output address type corresponding to the startup mode of the electronic device;
[0076] or,
[0077] The identification mark of the PCIE device determined by enumeration is located in the target device list corresponding to the startup mode.
[0078] In an optional embodiment, the identification identifier of the PCIE device includes at least one of the following:
[0079] The manufacturer identification, device identification and sub-device identification of the PCIE device.
[0080] In an optional embodiment, the type of the memory-mapped input / output address requested by the PCIE device does not match the startup mode of the electronic device, including:
[0081] The memory mapped input / output address requested by the PCIE device corresponds to the first addressing space;
[0082] The startup mode of the electronic device corresponds to the second addressing space;
[0083] The first addressing space is different from the second addressing space.
[0084] In an optional embodiment, the first addressing space is different from the second addressing space, including:
[0085] The first addressing space is larger than the second addressing space.
[0086] In an optional embodiment, when allocating a memory space of a type matching a startup mode of the electronic device to the PCIE device, the request processing module is configured to:
[0087] According to the size of the memory mapping input / output address carried in the allocation request, a memory space of the requested size is allocated to the PCIE device in the addressing space corresponding to the startup mode of the electronic device.
[0088] In an optional embodiment, the request processing module may also be used to:
[0089] If it is determined that the type of the memory mapping input / output address requested by the PCIE device matches the startup mode of the electronic device, a memory space of a type matching the startup mode of the electronic device is allocated to the PCIE device as the memory mapping input / output address of the PCIE device.
[0090] Corresponding to the method embodiment, the present application also provides an electronic device, a structural diagram of the electronic device is shown as follows: Figure 3 As shown, it may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;
[0091] In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 communicate with each other through the communication bus 4;
[0092] The processor 1 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application;
[0093] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory;
[0094] The memory 3 stores a program, and the processor 1 can call the program stored in the memory 3, and the program is used to:
[0095] During the startup of electronic equipment,
[0096] Get the memory-mapped input / output address allocation request sent by the enumerated PCIE device;
[0097] If it is determined that the type of the memory mapping input / output address requested by the PCIE device does not match the startup mode of the electronic device, a memory space of a type that matches the startup mode of the electronic device is allocated to the PCIE device as the memory mapping input / output address of the PCIE device.
[0098] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0099] An embodiment of the present application further provides a storage medium, which may store a program suitable for execution by a processor, wherein the program is used to:
[0100] During the startup of electronic equipment,
[0101] Get the memory-mapped input / output address allocation request sent by the enumerated PCIE device;
[0102] If it is determined that the type of the memory mapping input / output address requested by the PCIE device does not match the startup mode of the electronic device, a memory space of a type that matches the startup mode of the electronic device is allocated to the PCIE device as the memory mapping input / output address of the PCIE device.
[0103] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0104] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0105] In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. Furthermore, the couplings or direct couplings or communication connections shown or discussed may be indirect couplings or communication connections through interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0106] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0107] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0108] It should be understood that in the embodiments of the present application, the various embodiments and features can be combined with each other to solve the aforementioned technical problems.
[0109] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0110] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for allocating computing resources, the method comprising: During the startup of electronic equipment, Get the memory-mapped input / output address allocation request sent by the enumerated PCIE device; If it is determined that the type of the memory mapping input / output address requested by the PCIE device does not match the startup mode of the electronic device, a memory space of a type that matches the startup mode of the electronic device is allocated to the PCIE device as the memory mapping input / output address of the PCIE device.
2. The method according to claim 1, wherein determining that a type of the memory-mapped input / output address requested by the PCIE device does not match a startup mode of the electronic device comprises: The memory mapping input / output address type carried in the allocation request is different from the memory mapping input / output address type corresponding to the startup mode of the electronic device; or, The identification mark of the PCIE device determined by enumeration is located in the target device list corresponding to the startup mode.
3. The method according to claim 2, wherein the identification identifier of the PCIE device includes at least one of the following: The manufacturer identification, device identification and sub-device identification of the PCIE device.
4. The method according to claim 1, wherein the type of the memory-mapped input / output address requested by the PCIE device does not match the startup mode of the electronic device, comprising: The memory mapped input / output address requested by the PCIE device corresponds to the first addressing space; The startup mode of the electronic device corresponds to the second addressing space; The first addressing space is different from the second addressing space.
5. The method according to claim 4, wherein the first addressing space is different from the second addressing space, comprising: The first addressing space is larger than the second addressing space.
6. The method according to claim 1, allocating a memory space of a type matching a startup mode of the electronic device to the PCIE device, comprising: According to the size of the memory mapping input / output address carried in the allocation request, a memory space of the requested size is allocated to the PCIE device in the addressing space corresponding to the startup mode of the electronic device.
7. The method according to claim 1, further comprising: If it is determined that the type of the memory mapping input / output address requested by the PCIE device matches the startup mode of the electronic device, a memory space of a type matching the startup mode of the electronic device is allocated to the PCIE device as the memory mapping input / output address of the PCIE device.
8. A computing resource allocation device, comprising: A request acquisition module is used to obtain a memory mapping input / output address allocation request sent by an enumerated PCIE device during the startup process of the electronic device; A request processing module is used to allocate a memory space of a type that matches the startup mode of the electronic device to the PCIE device as the memory mapping input / output address of the PCIE device if it is determined that the type of the memory mapping input / output address requested by the PCIE device does not match the startup mode of the electronic device.
9. An electronic device comprising: Memory, used to store programs; A processor is configured to call and execute the program in the memory, and implement the various steps of the computing resource allocation method according to any one of claims 1 to 7 by executing the program.
10. A readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements the steps of the computing resource allocation method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Resource distribution method and device
CN105446813A
Memory map input and output address distribution method and device and computer system
CN105893289A