IP Library Granted Patent US 12,282,442
Granted Patent B2
US 12,282,442 · App. 18/718,006 · Granted Apr 22, 2025

Data processing method and system, and related components

Inventor: Minggang Sun (Jiangsu, CN)
Assignee: SHENZHEN METABRAIN INTELLIGENT TECHNOLOGY CO., LTD.
G06F13/4022G06F9/547
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,282,442
App. No.
18/718,006
Granted
Apr 22, 2025
Kind
B2
Abstract

The present disclosure discloses a data processing method and system, an apparatus, and a computer-readable storage medium, which relate to the field of storage. The data processing method includes determining a root port of a peripheral component interconnect express (PCIe) switch X (PSX) based on a connection topology of a PCIe; controlling a central processing unit (CPU) corresponding to the root port to monitor a read state of memory-mapped remote procedure calls (MRPC) data using a completion timeout mechanism; and in response to the read state being a timeout state, discarding read MRPC data.

Claims (47)

1. A data processing method, comprising:

determining a root port of a peripheral component interconnect express (PCIe) switch X (PSX) based on a connection topology of a PCIe;

controlling a central processing unit (CPU) corresponding to the root port to monitor a read state of memory-mapped remote procedure calls (MRPC) data using a completion timeout mechanism; and

in response to the read state being a timeout state, discarding read MRPC data.

2. The data processing method according to claim 1 , wherein controlling the CPU corresponding to the root port to monitor the read state of the MRPC data using the completion timeout mechanism comprises:

configuring one or more registers corresponding to the completion timeout mechanism in the CPU corresponding to the root port to enable the CPU to monitor the read state of the MRPC data using the completion timeout mechanism.

3. The data processing method according to claim 2 , wherein configuring the registers corresponding to the completion timeout mechanism in the CPU corresponding to the root port comprises:

determining addresses of the registers corresponding to the completion timeout mechanism in the CPU corresponding to the root port using a PCIe specification (spec), and configuring all the registers according to the addresses.

4. The data processing method according to claim 2 , wherein configuring the registers corresponding to the completion timeout mechanism in the CPU corresponding to the root port to enable the CPU to monitor the read state of the MRPC data using the completion timeout mechanism comprises:

configuring a value of a completion timeout disable bit in a device control register to be 0;

configuring a value of completion timeout value bits in the device control register to be 0000b;

configuring a value of a completion timeout mask bit of an uncorrectable error mask register to be 0;

in response to the returned MRPC data being read, determining that a value of a completion timeout status bit in an uncorrectable error status register is 1 or 0; and

in response to the value of the completion timeout status bit being 1, determining that the read state is the timeout state, and in response to the value of the completion timeout status bit being 0, determining that the read state is a normal state.

5. The data processing method according to claim 4 , wherein configuring the registers corresponding to the completion timeout mechanism in the CPU corresponding to the root port further comprises:

in response to the CPU sending a data request to the PSX, configuring the value of the completion timeout status bit in the uncorrectable error status register to be 1.

6. The data processing method according to claim 1 , wherein after in response to the read state being the timeout state, discarding the read MRPC data, the data processing method further comprises:

controlling the CPU to resend a data request to the PSX.

7. The data processing method according to claim 1 , wherein controlling the CPU corresponding to the root port to monitor the read state of the MRPC data using the completion timeout mechanism comprises:

determining a CPU connected to the PSX according to the root port; and

controlling the CPU to monitor the read state of the MRPC data using the completion timeout mechanism.

8. The data processing method according to claim 7 , wherein controlling the CPU to monitor the read state of the MRPC data using the completion timeout mechanism comprises:

controlling the CPU to send a data request to the PSX; and

in response to the CPU not receiving a reply message related to the data request within a preset time, triggering the completion timeout mechanism of the PCIe to monitor the read state of the MRPC data.

9. The data processing method according to claim 1 , wherein the read state being the timeout state comprises:

in response to a link between the CPU and the PSX being abnormal, monitoring that the read state of the MRPC data is the timeout state using the completion timeout mechanism.

10. The data processing method according to claim 4 , wherein configuring the registers corresponding to the completion timeout mechanism in the CPU corresponding to the root port further comprises:

configuring an advanced error reporting capability register of the root port.

11. The data processing method according to claim 10 , wherein determining that the value of the completion timeout status bit in the uncorrectable error status register is 1 or 0 comprises:

reading data returned by a relevant small computer system interface (SCSI) enclosure services (SES) instruction using an MRPC instruction;

configuring the advanced error reporting capability register of the root port according to a PCIe specification (spec), and reading the uncorrectable error status register; and

determining that the value of the completion timeout status bit in the uncorrectable error status register is 1 or 0.

12. The data processing method according to claim 1 , wherein discarding the read MRPC data comprises:

controlling the CPU to discard the read MRPC data.

13. The data processing method according to claim 1 , wherein after controlling the CPU corresponding to the root port to monitor the read state of the MRPC data using the completion timeout mechanism, the data processing method further comprises:

in response to the read state being a non-timeout state, controlling the CPU to parse the read MRPC data.

14. The data processing method according to claim 12 , wherein after controlling the CPU to discard the read MRPC data, the data processing method further comprises:

re-reading the MRPC data; and

in response to a value of a completion timeout status bit being 0, determining that no timeout has occurred, and reading complete MRPC data.

15. The data processing method according to claim 3 , wherein before configuring the registers corresponding to the completion timeout mechanism in the CPU corresponding to the root port, the data processing method further comprises:

obtaining the PCIe spec.

16. A data processing apparatus, comprising:

a memory for storing computer programs; and

a processor for executing the computer programs to implement the steps of the data processing method according to claim 1 .

17. A non-transitory readable storage medium storing computer programs, wherein the computer programs, when executed by a processor, cause the processor to perform the steps of the data processing method according to claim 1 .

18. The data processing method according to claim 1 , wherein the PCIe is connected to the root port in a tree-like manner.

19. The data processing method according to claim 1 , wherein the CPU manages the PSX through a global address space (GAS) and MRPC command sets.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 7, 2024
From: SUN, MINGGANG
To: SUZHOU METABRAIN INTELLIGENT TECHNOLOGY CO., LTD.
Reel/Frame 067661/0154 →
Priority Claims (1)
CN 202210447566.3 · Apr 27, 2022 · national
Continuity (1)
Related Publication 20250045229A1 · Feb 6, 2025
References Cited (20)
US 6145044A · Ogura · 2000 [cited by examiner]
US 6243781B1 · Gandhi · 2001 [cited by examiner]
US 8898206B1 · Jiang · 2014 [cited by examiner]
US 20050289306A1 · Muthrasanallur · 2005 [cited by examiner]
US 20070220495A1 · Chen · 2007 [cited by examiner]
US 20100005205A1 · Brune · 2010 [cited by examiner]
US 20130060987A1 · Bolen et al. · 2013 [cited by applicant]
US 20160098365A1 · Bshara · 2016 [cited by examiner]
US 20180246833A1 · Bai · 2018 [cited by examiner]
US 20190163469A1 · Sreenivasa · 2019 [cited by examiner]
US 20200073739A1 · Rungta · 2020 [cited by examiner]
US 20220075674A1 · Miedema · 2022 [cited by examiner]
US 20220334911A1 · Zhang · 2022 [cited by examiner]
US 20230259281A1 · Yeh · 2023 [cited by examiner]
CN 107678994A · 2018 [cited by applicant]
CN 109542669A · 2019 [cited by applicant]
CN 111143106A · 2020 [cited by applicant]
CN 112395152A · 2021 [cited by applicant]
CN 114564334A · 2022 [cited by applicant]
JP 2014197402A · 2014 [cited by applicant]