# US 2021/0279334 A1 · System on chip and operation method thereof

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

- Number: US 2021/0279334 A1
- Document ID: US20210279334A1
- Status: Published application
- Kind: A1
- Application number: 17/077,817
- Filed: 2020-10-22
- Published: 2021-09-09
- Earliest claimed: 2020-03-06
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Siheung KIM; Keunyoung PARK; Dongjin PARK
- Web page: https://patentgrep.com/patent/US20210279334A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 21/572: {Secure firmware programming, e.g. of basic input output system [BIOS]}
- G06F 9/4406: {Loading of operating system}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 12/0638: {Combination of memories, e.g. ROM and RAM such as to permit replacement or supplementing of words in one module by words in another module (address formation of the next microinstruction G06F9/26; masking faults in memories by using spares or by reconfiguring G11C29/70)}
- G06F 12/1441: {for a range}
- G06F 12/1491: {in a hierarchical protection system, e.g. privilege levels, memory rings}
- G06F 15/7807: {System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package}
- G06F 21/54: by adding security routines or objects to programs
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2212/1052: Security improvement
- G06F 2212/152: Virtualized environment, e.g. logically partitioned system
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system on chip includes a memory, a main processor that runs an operating system, and first Intellectual Properties (IPs) that perform respective processing operations. The main processor operates to copy target firmware to the memory using a firmware loader, using a hypervisor, block access of the main processor and the first IPs to the target firmware before verification of the target firmware, and using the hypervisor, grant access to the target firmware by a target IP among the first IPs that corresponds to the target firmware after the verification of the target firmware.

## Claims

### Claim 1

A method of operating a system on chip having a main processor and a plurality of first Intellectual Properties (IPs), the method comprising:
copying, by the main processor using a firmware loader, first target firmware to a memory;
blocking, by the main processor using a hypervisor, access to the first target firmware by the main processor and the plurality of first IPs;
verifying, by the main processor using a firmware verifier, the first target firmware; and
granting, by the main processor using the hypervisor, access to the first target firmware by a target IP among the plurality of first IPs based on the verification result.

### Claim 2 (depends on 1)

The method of claim 1, wherein the firmware loader and the hypervisor operate in a Rich Execution Environment (REE), and the firmware verifier operates in a Trusted Execution Environment (TEE).

### Claim 3 (depends on 1)

The method of claim 1, wherein the plurality of first IPs comprise at least one of a digital signal processor (DSP), a neural processing unit (NPU), a tensor processing unit (TPU), or an image signal processor (ISP).

### Claim 4 (depends on 1)

The method of claim 1, wherein the blocking access comprises changing, by the main processor using the hypervisor, information on the memory in a memory management unit (MMU) connected to the main processor and in memory protection units (MPUs) respectively connected to the plurality of first IPs.

### Claim 5 (depends on 4)

The method of claim 4, wherein the changing the information comprises changing, by the main processor using the hypervisor, a logical to physical (L2P) mapping table of the MMU to block access of the main processor to the first target firmware.

### Claim 6 (depends on 4)

The method of claim 4, wherein the changing the information comprises changing, by the main processor using the hypervisor, a page table of the MPUs to block access of the plurality of first IPs to the first target firmware.

### Claim 7 (depends on 6)

The method of claim 6, wherein the page table comprises address information of the memory to which the first target firmware is copied and property information corresponding to the address information.

### Claim 8 (depends on 1)

The method of claim 1, wherein the system on chip further comprises a second IP for security,
wherein the verifying comprises controlling, by the main processor using the firmware verifier, the second IP to perform a signature verification operation of the first target firmware.

### Claim 9 (depends on 1)

The method of claim 1, wherein the granting comprises, when the verification result is a pass, changing, by the main processor using the hypervisor, information on the memory in a memory protection unit (MPU) connected to the target IP.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
when execution for the first target firmware of the target IP is completed, granting, by the main processor using the hypervisor, access to the first target firmware by the main processor to allow access to the first target firmware by the firmware loader; and
blocking, by the main processor using the hypervisor, access to the first target firmware by the target IP.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
when execution of second target firmware is requested by one of the plurality of first IPs, copying, by the main processor using the firmware loader, the second target firmware to the memory;
blocking, by the main processor using the hypervisor, access to the second target firmware by the main processor and the plurality of first IPs;
verifying, by the main processor using the firmware verifier, the second target firmware;
granting, by the main processor using the hypervisor, access to the second target firmware by the one of the plurality of first IPs that requested the execution of the second target firmware, based on the verification result of the second target firmware; and
granting, by the main processor using the hypervisor, access to the first target firmware by the main processor to allow access to the first target firmware by the firmware loader.

### Claim 12

A System on Chip (SoC) comprising:
a memory;
a main processor configured to run an operating system; and
a plurality of first Intellectual Properties (IPs) configured to perform a respective processing operation,
wherein the main processor is configured to:
copy target firmware to the memory using a firmware loader,
using a hypervisor, block access of the main processor and the plurality of first IPs to the target firmware before verification of the target firmware, and
using the hypervisor, grant access to the target firmware by a target IP among the plurality of first IPs that corresponds to the target firmware after the verification of the target firmware.

### Claim 13

(canceled)

### Claim 14 (depends on 12)

The SoC of claim 12, wherein the main processor is connected to a first memory management unit (MMU) managing an L2L mapping table and a second MMU managing an L2P mapping table to access the memory in stages,
wherein the plurality of first IPs are respectively connected to system MMUs managing an L2P mapping table and to memory protection units (MPUs) managing a page table to access the memory in stages.

### Claim 15 (depends on 14)

The SoC of claim 14, wherein the main processor grants access to the target firmware by changing, using the hypervisor, information on the memory in the second MMU and in the MPUs.

### Claim 16 (depends on 15)

The SoC of claim 15, wherein the information on the memory comprises the L2P mapping table of the MMU including physical address information of the memory to which the target firmware is copied and logical address information mapped thereto, and the page table of the MPUs including the physical address information and property information corresponding thereto.

### Claim 17 (depends on 14)

The SoC of claim 14, wherein the main processor is configured to control the first MMU and the system MMUs using a kernel.

### Claim 18 (depends on 12)

The SoC of claim 12, wherein the plurality of first IPs comprise at least one of a digital signal processor (DSP), a neural processing unit (NPU), a tensor processing unit (TPU), or an image signal processor (ISP).

### Claim 19 (depends on 12)

The SoC of claim 12, further comprising a second IP for performing verification on the target firmware,
wherein the main processor controls, using a firmware verifier, the second IP to perform a signature verification operation of the target firmware.

### Claim 20

(canceled)

### Claim 21 (depends on 19)

The SoC of claim 19, further comprising a storage device in which the target firmware, the firmware loader, the hypervisor, and the firmware verifier are stored in a form of code executable by the main processor.

### Claim 22

An operating method of a system on chip having a main processor, a plurality of Intellectual Properties (IPs), and a security system, the operating method comprising:
requesting, by a kernel executed by the main processor to a hypervisor executed by the main processor, management for loading target firmware;
changing, by the hypervisor, access permission for at least one of the main processor and the plurality of IPs to a memory area to which the target firmware is to be loaded;
loading, by the kernel, the target firmware into the memory area;
requesting, by the kernel to the hypervisor, verification of the target firmware that is loaded;
changing, by the hypervisor, access permission for at least one of the main processor and the plurality of IPs to the memory area;
requesting, by the hypervisor to the security system, verification of the target firmware that is loaded;
performing, by the security system, verification on the target firmware that is loaded;
providing, by the security system to the hypervisor, a verification result of the verification;
changing, by the hypervisor based on the verification result, access permission for at least one of the main processor and the plurality of IPs to the memory area; and executing, by the kernel, the target firmware that is loaded.
