# US 12,181,955 B1 · Systems and methods for enabling debugging

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

- Number: US 12,181,955 B1
- Document ID: US12181955B1
- Status: Granted
- Kind: B1
- Application number: 18/087,894
- Filed: 2022-12-23
- Granted: 2024-12-31
- Earliest claimed: 2022-12-23
- Assignees: Advanced Micro Devices, Inc.; ATI Technologies ULC
- Applicants: Advanced Micro Devices, Inc.; ATI Technologies ULC
- Inventors: Lu Lu; Dong Zhu; Gia Phan; James A. Ott; Nehal Patel; Zang SongGan
- Web page: https://patentgrep.com/patent/US12181955B1

## CPC

- G06F 11/0778: {Dumping, i.e. gathering error/state information after a fault for later diagnosis}
- G06F 11/0748: {in a remote unit communicating with a single-box computer node experiencing an error/fault (remote testing G06F11/2294)}
- G06F 11/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- G06F 11/3636: {by tracing the execution of the program}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method for enabling debugging can include receiving, at a peripheral device connected through an expansion socket to a base CPU platform, a scan dump instruction from a network computing device connected to the base CPU platform across a network connection and executing, by a System-on-Chip at the peripheral device in response to the scan dump instruction, a debugging procedure. The debugging procedure can include capturing a snapshot of memory of the peripheral device and transmitting the snapshot to the network computing device through memory addresses that have been assigned to memory-mapped input/output. Various other methods, systems, and computer-readable media are also disclosed.

## Claims

### Claim 1

A method for enabling debugging, the method comprising:
receiving, at a peripheral device connected through an expansion socket to a base CPU platform, a scan dump instruction from a network computing device connected to the base CPU platform across a network connection; and
executing, by a System-on-Chip at the peripheral device in response to the scan dump instruction, a debugging procedure that comprises:
capturing a snapshot of memory of the peripheral device using a control interface of the peripheral device; and
transmitting the snapshot to the network computing device through memory addresses that have been assigned to memory-mapped input/output.

### Claim 2 (depends on 1)

The method of claim 1, wherein capturing the snapshot comprises stitching flip-flops into a chain.

### Claim 3 (depends on 1)

The method of claim 1, wherein:
an operating system at the base CPU platform has experienced a failure that at least partially inhibits performance of debugging at the base CPU platform; and
the debugging procedure enables remote debugging to bypass the failure at the base CPU platform.

### Claim 4 (depends on 1)

The method of claim 1, wherein the expansion socket is formatted according to a high-speed serial computer expansion bus standard.

### Claim 5 (depends on 4)

The method of claim 4, wherein the high-speed serial computer expansion bus standard comprises Peripheral Component Interconnect Express.

### Claim 6 (depends on 1)

The method of claim 1, wherein usage of the memory addresses that have been assigned to memory-mapped input/output bypasses Joint Test Action Group port pins.

### Claim 7 (depends on 1)

The method of claim 1, wherein the peripheral device remains in mission mode throughout the capturing and transmitting of the snapshot.

### Claim 8 (depends on 1)

The method of claim 1, wherein:
the network computing device comprises a remote CPU platform; and
the network connection comprises an Ethernet connection.

### Claim 9 (depends on 1)

The method of claim 1, wherein the System-on-Chip at the peripheral device performs the capturing and the transmitting in coordination with a kernel-mode debugging driver installed on the base CPU platform.

### Claim 10 (depends on 1)

The method of claim 1, wherein the System-on-Chip flushes, in response to the scan dump instruction, a set of pending transactions in a host interface of the peripheral device.

### Claim 11

A System-on-Chip comprising:
a host interface that receives a scan dump instruction from a network computing device connected to a base CPU platform across a network connection; and
a control interface that captures, in response to the scan dump instruction, a snapshot of memory of a peripheral device that is connected to the base CPU platform through an expansion socket;
wherein the host interface further transmits the snapshot to the network computing device through memory addresses that have been assigned to memory-mapped input/output.

### Claim 12 (depends on 11)

The System-on-Chip of claim 11, wherein the control interface captures the snapshot by stitching flip-flops into a chain.

### Claim 13 (depends on 11)

The System-on-Chip of claim 11, wherein a debugging procedure enables remote debugging to bypass a failure at the base CPU platform.

### Claim 14 (depends on 11)

The System-on-Chip of claim 11, wherein the expansion socket is formatted according to a high-speed serial computer expansion bus standard.

### Claim 15 (depends on 14)

The System-on-Chip of claim 14, wherein the high-speed serial computer expansion bus standard comprises Peripheral Component Interconnect Express.

### Claim 16 (depends on 11)

The System-on-Chip of claim 11, wherein the host interface uses memory addresses that have been assigned to memory-mapped input/output such that the host interface bypasses Joint Test Action Group port pins.

### Claim 17 (depends on 11)

The System-on-Chip of claim 11, wherein the System-on-Chip is configured such that the peripheral device remains in mission mode throughout the capturing and transmitting of the snapshot.

### Claim 18 (depends on 11)

The System-on-Chip of claim 11, wherein:
the network computing device comprises a remote CPU platform; and
the network connection comprises an Ethernet connection.

### Claim 19 (depends on 11)

The System-on-Chip of claim 11, wherein the System-on-Chip performs the capturing and the transmitting in coordination with a kernel-mode debugging driver installed on the base CPU platform.

### Claim 20

A system comprising:
a base CPU platform connected to a network computing device across a network connection; and
a peripheral device connected through an expansion socket to the base CPU platform;
wherein:
the peripheral device comprises a host interface configured to receive a scan dump instruction from the network computing device;
the peripheral device comprises a control interface configured to capture, in response to the scan dump instruction, a snapshot of memory of the peripheral device; and
the host interface is further configured to transmit the snapshot to the network computing device through memory addresses that have been assigned to memory-mapped input/output.
