# US 2026/0277820 A1 · Microcode program offloading method and apparatus, and related product

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0277820 A1
- Document ID: US20260277820A1
- Status: Published application
- Kind: A1
- Application number: 19/660,974
- Filed: 2026-04-28
- Published: 2026-09-17
- Earliest claimed: 2023-10-31
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xin Yao; Jianyu Jiang; Wenbin Zhu; Zhaoyan Shen; Renhai Chen; Gong Zhang
- Web page: https://patentgrep.com/patent/US20260277820A1

## CPC

- G06F 9/44594: {Unloading}
- G06F 12/10: Address translation
- G06F 8/41: Compilation
- G06F 8/61: Installation
- G06F 8/62: {Uninstallation}
- G06F 9/22: Microcontrol or microprogram arrangements
- G06F 9/445: Program loading or initiating (bootstrapping G06F9/4401; security arrangements for program loading or initiating G06F21/57)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A microcode program offloading method and a related product are disclosed. An embodiment of this application provides a first static microcode program in firmware of a DPU, and the first static microcode program is used to dynamically offload any microcode program of a host to the DPU. An association relationship between the first static microcode program and first indication information is extended. Correspondingly, the host is configured with a corresponding user-oriented first interface, and a user may trigger offloading of a microcode program through the first interface. Based on this, the host can dynamically offload a microcode program to the DPU during operation of the DPU only by including the first indication information and the to-be-offloaded microcode program in a packet. Therefore, in embodiments of this application, a microcode program can be dynamically offloaded to a DPU during operation of the DPU.

## Claims

### Claim 1

A method for offloading a microcode program offloading method, comprising:
receiving, by a data processing unit (DPU), a first packet from a host, wherein the first packet carries first indication information, microcode data, and a logical address of the microcode data in the DPU, and the microcode data is data obtained by compiling a program body of a target microcode program to be offloaded; and
executing, by the DPU, a first static microcode program in firmware of the DPU in response to the first indication information, wherein the first static microcode program is used to:
translate the logical address into a physical address, and offload the microcode data to a storage location corresponding to the physical address.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the DPU stores an association relationship between the first indication information and the first static microcode program.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the DPU stores an address translation rule, indicating a mapping relationship between a logical address and a physical address; and
the first static microcode program is used to translate the logical address into the physical address according to the address translation rule.

### Claim 4 (depends on 1)

The method according to claim 1, wherein receiving, by the DPU, the first packet from the host comprises:
receiving, by the DPU, the first packet from the host through a serial computer bus or a network port.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
receiving, by the DPU, a second packet from the host, wherein the second packet carries second indication information, a parameter required for executing the target microcode program, and the logical address;
executing, by the DPU, a second static microcode program of the firmware of the DPU in response to the second indication information, wherein the second static microcode program is used to: obtain the microcode data based on the logical address, and determine an execution result based on the microcode data and the parameter; and
returning, by the DPU, the execution result to the host.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the DPU stores an association relationship between the second indication information and the second static microcode program.

### Claim 7 (depends on 5)

The method according to claim 5, further comprising:
receiving, by the DPU, a third packet from the host, wherein the third packet carries third indication information and a user identifier of the target microcode program;
executing, by the DPU, a third static microcode program of the firmware of the DPU in response to the third indication information, wherein the third static microcode program is used to register a function identifier based on the user identifier of the target microcode program; and
returning, by the DPU, the function identifier to the host, wherein the second packet further carries the function identifier, and the third static microcode program is used to: generate a function pointer based on the function identifier and the logical address, and obtain the microcode data based on the function pointer.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the DPU stores an association relationship between the third indication information and the third static microcode program.

### Claim 9

A method for offloading a microcode program offloading method, comprising:
obtaining, by a host, an offloading request triggered by a user through a first interface of the host, wherein the offloading request carries a user identifier of a target microcode program and a program body of the target microcode program;
obtaining, by the host based on the user identifier of the target microcode program, a logical address allocated to the target microcode program; and
sending, by the host, a first packet to a data processing unit (DPU), wherein the first packet carries first indication information, microcode data, and the logical address, and the microcode data is data obtained by compiling the program body of the target microcode program,
wherein the first indication information indicates the DPU to execute a first static microcode program, to: translate the logical address into a physical address, and offload the microcode data to a storage location corresponding to the physical address.

### Claim 10 (depends on 9)

The method according to claim 9, further comprising:
obtaining, by the host, a calling request triggered by the user through a second interface of the host, wherein the calling request carries the user identifier of the target microcode program and a parameter required for executing the target microcode program;
determining, by the host based on the user identifier of the target microcode program, the logical address allocated to the target microcode program;
sending, by the host, a second packet to the DPU, wherein the second packet carries second indication information, the parameter, and the logical address, the second indication information indicates the DPU to execute a second static microcode program, to: obtain the microcode data based on the logical address, and determine an execution result based on the microcode data and the parameter; and
receiving, by the host, the execution result returned by the DPU.

### Claim 11 (depends on 10)

The method according to claim 10, further comprising:
obtaining, by the host, a registration request triggered by the user through a third interface of the host, wherein the registration request carries the user identifier of the target microcode program and a size of the target microcode program;
allocating, by the host, the logical address to the target microcode program based on the size of the target microcode program; and
establishing an association relationship between the user identifier and the logical address of the target microcode program.

### Claim 12 (depends on 11)

The method according to claim 11, further comprising:
sending, by the host, a third packet to the DPU, wherein the third packet carries third indication information and the user identifier of the target microcode program, the third indication information indicates the DPU to execute a third static microcode program, to register a function identifier based on the user identifier of the target microcode program; and
receiving, by the host, the function identifier returned by the DPU, wherein the second packet carries the function identifier.

### Claim 13

A data processing unit (DPU),
a processor; and
a memory storing a program, which when executed by the processor, cause the processor to:
receive a first packet from a host, wherein the first packet carries first indication information, microcode data, and a logical address of the microcode data in the DPU, and the microcode data is data obtained by compiling a program body of a target microcode program to be offloaded; and
execute a first static microcode program of firmware of the DPU in response to the first indication information, wherein the first static microcode program is used to: translate the logical address into a physical address, and offload the microcode data to a storage location corresponding to the physical address.

### Claim 14 (depends on 13)

The DPU according to claim 13, wherein the DPU stores an association relationship between the first indication information and the first static microcode program.

### Claim 15 (depends on 13)

The DPU according to claim 13, wherein the DPU stores an address translation rule, indicating a mapping relationship between a logical address and a physical address; and
the first static microcode program is used to translate the logical address into the physical address according to the address translation rule.

### Claim 16 (depends on 13)

The DPU according to claim 13, wherein receiving the first packet from the host comprises:
receiving, by the DPU, the first packet from the host through a serial computer bus or a network port.

### Claim 17 (depends on 13)

The DPU according to claim 13, wherein
the processor is further caused to:
receive a second packet from the host, wherein the second packet carries second indication information, a parameter required for executing the target microcode program, and the logical address;
execute a second static microcode program of the firmware of the DPU in response to the second indication information, to: obtain the microcode data based on the logical address, and determine an execution result based on the microcode data and the parameter; and
return the execution result to the host.

### Claim 18 (depends on 17)

The DPU according to claim 17, wherein the DPU stores an association relationship between the second indication information and the second static microcode program.

### Claim 19 (depends on 17)

The DPU according to claim 17, wherein
the processor is further caused to:
receive a third packet from the host, wherein the third packet carries third indication information and a user identifier of the target microcode program;
execute a third static microcode program of the firmware of the DPU in response to the third indication information, wherein the third static microcode program is used to register a function identifier based on the user identifier of the target microcode program; and
return the function identifier to the host, wherein
the second packet further carries the function identifier, and the third static microcode program is used to: generate a function pointer based on the function identifier and the logical address, and obtain the microcode data based on the function pointer.

### Claim 20

A host, comprising:
a processor; and
a memory storing a program, which when executed by the processor, cause the processor to:
obtain an offloading request triggered by a user through a first interface of the host, wherein the offloading request carries a user identifier of a target microcode program and a program body of the target microcode program;
obtain a logical address allocated to the target microcode program; and
send a first packet to the DPU, wherein the first packet carries first indication information, microcode data, and the logical address, and the microcode data is data obtained by compiling the program body of the target microcode program, wherein
the first indication information indicates the DPU to execute a first static microcode program, to: translate the logical address into a physical address, and offload the microcode data to a storage location corresponding to the physical address.
