# US 2021/0334018 A1 · Communication Method, Apparatus, Computer-Readable Storage Medium, and Chip

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

- Number: US 2021/0334018 A1
- Document ID: US20210334018A1
- Status: Published application
- Kind: A1
- Application number: 17/369,520
- Filed: 2021-07-07
- Published: 2021-10-28
- Earliest claimed: 2019-09-18
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Dongjiu Geng; Chuanlong Yang; Yan Sang; Qiangmin Lin
- Web page: https://patentgrep.com/patent/US20210334018A1

## CPC

- G06F 3/0622: {in relation to access}
- G06F 21/78: to assure secure storage of data (address-based protection against unauthorised use of memory G06F12/14; record carriers for use with machines and with at least a part designed to carry digital markings G06K19/00)
- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 9/4818: {Priority circuits therefor}
- G06F 12/1441: {for a range}
- G06F 12/1491: {in a hierarchical protection system, e.g. privilege levels, memory rings}
- G06F 21/62: Protecting access to data via a platform, e.g. using keys or access control rules
- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/1052: Security improvement
- G06F 2212/173: Vehicle or other transportation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A communication method applied to a computer system that includes a first subsystem and a second subsystem. A safety level of the first subsystem is higher than a safety level of the second subsystem. The first subsystem includes a memory access checker. The method includes the memory access checker receives a memory access request from a memory access initiator, determines, based on preconfigured memory safety level division information, whether a safety level of a memory to be accessed by the memory access initiator matches a safety level of the memory access initiator, and allows the memory access initiator to access the memory address when the safety level of the memory matches the safety level of the memory access initiator.

## Claims

### Claim 1

A method applied to a computer system, wherein the method comprises:
receiving, by a memory access checker, a memory access request from a memory access initiator, wherein the memory access request comprises a memory address of a first memory to be accessed by the memory access initiator and first safety level information of the memory access initiator, wherein the computer system comprises a first subsystem and a second subsystem, wherein a first safety level of the first subsystem is higher than a second safety level of the second subsystem, wherein the first subsystem comprises the memory access checker, and wherein a first central processing unit (CPU) core of the first subsystem, a second CPU core of the second subsystem, and the memory access checker are integrated on a chip;
determining, by the memory access checker based on preconfigured memory safety level division information, whether a third safety level of the first memory matches a fourth safety level of the memory access initiator, wherein the preconfigured memory safety level division information indicates safety levels of memories in different address segments of the computer system; and
allowing, by the memory access checker, the memory access initiator to access the first memory when the third safety level matches the fourth safety level.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
storing, by an interrupt controller of the computer system, interrupt routing configuration information configured by the first CPU core, wherein the interrupt routing configuration information indicates a third CPU core of the computer system configured to respond to an interrupt, and wherein the first subsystem and the second subsystem share the interrupt controller;
receiving, by the interrupt controller, an interrupt request from an interrupt initiator, wherein the interrupt request comprises second safety level information of the interrupt initiator;
determining, by the interrupt controller, whether a fifth safety level of the interrupt initiator matches a sixth safety level of an interrupt receiver corresponding to the interrupt initiator based on configured safety level information and the interrupt request; and
allowing, by the interrupt controller, the interrupt receiver to accept the interrupt request when the fifth safety level matches the sixth safety level.

### Claim 3 (depends on 1)

The method of claim 1, further comprising configuring, by a partition manager of the first subsystem, a seventh safety level of a device of the computer system or an eighth safety level of a second memory of the computer system based on a safety level configuration file of the computer system, wherein the safety level configuration file indicates the seventh safety level or the eighth safety level.

### Claim 4 (depends on 3)

The method of claim 3, further comprising writing, by the partition manager, third safety level information of a fourth CPU core of the computer system into a safety level configuration component corresponding to the fourth CPU core, wherein the third safety level information indicates a ninth safety level of the fourth CPU core.

### Claim 5 (depends on 3)

The method of claim 3, further comprising writing, by the partition manager, the preconfigured memory safety level division information into the memory access checker.

### Claim 6 (depends on 3)

The method of claim 3, further comprising:
starting a fifth CPU core of the first subsystem to run the partition manager on the fifth CPU core;
starting, by the partition manager, a sixth CPU core of the first subsystem;
starting, by the partition manager, a seventh CPU core of the second subsystem after starting the sixth CPU core; and
starting, by the second subsystem, an eighth CPU core of the second subsystem after starting the seventh CPU core.

### Claim 7 (depends on 1)

The method of claim 1, wherein a third memory of the second subsystem comprises a shared memory, wherein the shared memory transmits data between the first subsystem and the second subsystem, and wherein the method further comprises:
storing, by the first CPU core, first communication data of the first subsystem in the shared memory; and
initiating, by the first CPU core, a first interrupt to enable the second CPU core to read the first communication data from the shared memory after receiving the first interrupt.

### Claim 8 (depends on 1)

The method of claim 1, wherein a third memory of the second subsystem comprises a shared memory, wherein the shared memory transmits data between the first subsystem and the second subsystem, and wherein the method further comprises:
storing, by the second CPU core, second communication data of the second subsystem in the shared memory; and
initiating, by the second CPU core, a second interrupt to enable the first CPU core to read the second communication data from the shared memory after receiving the second interrupt.

### Claim 9

A computer system comprising:
a chip;
a first memory coupled to the chip and comprising a first safety level;
a first subsystem coupled to the first memory and comprising:
a memory access checker integrated on the chip and comprising:
a transceiver configured to receive a memory access request from a memory access initiator, wherein the memory access request comprises a memory address of the first memory to be accessed by the memory access initiator and first safety level information of the memory access initiator; and
a processor coupled to the transceiver and configured to:
determine, based on preconfigured memory safety level division information, whether the first safety level matches a second safety level of the memory access initiator, wherein the preconfigured memory safety level division information indicates safety levels of memories in different address segments of the computer system; and
allow the memory access initiator to access the first memory when the first safety level matches the second safety level; and
a first central processing unit (CPU) core integrated on the chip and coupled to the memory access checker; and
a second subsystem comprising a second CPU core integrated on the chip,
wherein a third safety level of the first subsystem is higher than a fourth safety level of the second subsystem.

### Claim 10 (depends on 9)

The computer system of claim 9, further comprising an input/output (IO) device located in the first subsystem or the second subsystem and configured to:
receive an access request from an access device, wherein the access request comprises second safety level information of the access device; and
allow the access device to access the IO device when a fifth safety level of the access device matches a sixth safety level of the IO device.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein the fifth safety level is higher than or equal to the sixth safety level.

### Claim 12 (depends on 9)

The computer system of claim 9, further comprising an interrupt controller coupled to the first subsystem and the second subsystem, wherein the interrupt controller is shared by the first subsystem and the second subsystem, and wherein the interrupt controller is configured to:
store interrupt routing configuration information configured by the first CPU core, wherein the interrupt routing configuration information indicates a third CPU core of the computer system configured to respond to an interrupt;
receive an interrupt request from an interrupt initiator, wherein the interrupt request comprises third safety level information of the interrupt initiator;
determine whether a seventh safety level of the interrupt initiator matches an eighth safety level of an interrupt receiver corresponding to the interrupt initiator based on configured safety level information and the interrupt request; and
allow the interrupt receiver to accept the interrupt request when the seventh safety level matches the eighth safety level.

### Claim 13 (depends on 12)

The computer system of claim 12, further comprising:
the first subsystem comprises both the interrupt initiator and the interrupt receiver;
the second subsystem comprises both the interrupt initiator and the interrupt receiver; or
the first subsystem comprises the interrupt initiator and the second subsystem comprises the interrupt receiver.

### Claim 14 (depends on 9)

The computer system of claim 9, wherein the second safety level is higher than or equal to the first safety level.

### Claim 15 (depends on 9)

The computer system of claim 9, wherein the first subsystem further comprises a partition manager configured to configure, based on a safety level configuration file of the computer system, a ninth safety level of a device of the computer system or a tenth safety level of a second memory of the computer system, and wherein the safety level configuration file indicates the ninth safety level or the tenth safety level.

### Claim 16 (depends on 15)

The computer system of claim 15, further comprising a fourth CPU core comprising fourth safety level information, wherein the partition manager is further configured to write the fourth safety level information into a safety level configuration component corresponding to the fourth CPU core, and wherein the fourth safety level information indicates an eleventh safety level of the fourth CPU core.

### Claim 17 (depends on 15)

The computer system of claim 15, wherein the partition manager is further configured to write the preconfigured memory safety level division information into the memory access checker.

### Claim 18 (depends on 15)

The computer system of claim 15, further comprising an input/output (IO) device located in the first subsystem or the second subsystem and comprising fifth safety level information, wherein the IO device is configured to receive an access request, wherein the partition manager is further configured to write the fifth safety level information into a safety level configuration and detection component corresponding to the IO device, and wherein the safety level configuration and detection component is configured to:
configure a sixth safety level for the IO device; and
detect the access request received by the IO device to determine whether a twelfth safety level of a device that initiates the access request matches the sixth safety level.

### Claim 19 (depends on 15)

The computer system of claim 15, further comprising an initial startup component configured to start a fifth CPU core of the first subsystem to run the partition manager on the fifth CPU core, wherein the partition manager is further configured to:
start a sixth CPU core of the first subsystem; and
start a seventh CPU core of the second subsystem after starting the sixth CPU core, and
wherein the second subsystem is configured to start an eighth CPU core of the second subsystem after starting the seventh CPU core.

### Claim 20 (depends on 9)

The computer system of claim 9, wherein the second subsystem further comprises a third memory, wherein the third memory comprises a shared memory that transmits data between the first subsystem and the second subsystem, wherein the first CPU core is configured to store first communication data of the first subsystem in the shared memory and initiate a first interrupt to enable the second CPU core to read the first communication data from the shared memory after receiving the first interrupt, or wherein the second CPU core is configured to store second communication data of the second subsystem in the shared memory and initiate a second interrupt to enable the first CPU core to read the second communication data from the shared memory after receiving the second interrupt.
