# US 2025/0156347 A1 · Peer-To-Peer Communication Using Drain Buffers In Multi-Function Device

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

- Number: US 2025/0156347 A1
- Document ID: US20250156347A1
- Status: Published application
- Kind: A1
- Application number: 18/506,281
- Filed: 2023-11-10
- Published: 2025-05-15
- Earliest claimed: 2023-11-10
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Shay BENISTY
- Web page: https://patentgrep.com/patent/US20250156347A1

## CPC

- G06F 13/1673: {using buffers}
- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F 13/287: {Multiplexed DMA (G06F13/30 takes precedence)}
- G06F 13/4221: {being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus}
- G06F 13/4282: {on a serial bus, e.g. I2C bus, SPI bus (on daisy chain buses G06F13/4247)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Instead a having a system that lacks command draining, add a drain buffer to the solid state drive (SSD) to optimize command usage. By adding a drain buffer per physical function (PF) or virtual function (VF) and utilizing logic that can generate traffic, the controller is able to funnel packets to a host if the packet is not needed. The controller will change the original address of the packet to a different address. The controller will then send that packet with the different address through the host and back to the memory device. The packet will be in a different function, but the controller will know not to access the packet or ignore the packet. Ignoring the packet will act as a drain for the SSD. The controller PCIe packets draining occur in special flows, dummy traffic generation for PCIe attribute measurements, and internal events posting over the host/device interface.

## Claims

### Claim 1

A data storage device, comprising:
a memory device; and
a controller coupled to the memory device, wherein the controller is configured to:
generate traffic towards a host device;
active a direct memory access (DMA) module;
determine that a packet should be drained;
replace host address with a drain buffer address to create a modified packet;
route the modified packed to a drain buffer; and
drain the modified packet.

### Claim 2 (depends on 1)

The data storage device of claim 1, wherein the controller is configured to send the modified packet to the host device prior to the routing.

### Claim 3 (depends on 2)

The data storage device of claim 2, wherein the sending occurs over a peripheral component interconnect express (PCIe) bus.

### Claim 4 (depends on 1)

The data storage device of claim 1, wherein the packet is from a first virtual function.

### Claim 5 (depends on 4)

The data storage device of claim 4, wherein the modified packet is routed to a second virtual function different from the first virtual function.

### Claim 6 (depends on 1)

The data storage device of claim 1, wherein the controller includes at least one of the following:
one or more virtual functions disposed in a host interface module (HIM); or
one or more physical functions.

### Claim 7 (depends on 6)

The data storage device of claim 6, wherein each virtual function or physical function includes a corresponding drain buffer.

### Claim 8 (depends on 7)

The data storage device of claim 7, wherein the HIM further includes the DMA module, and wherein the DMA module includes a multiplexer.

### Claim 9 (depends on 1)

The data storage device of claim 1, wherein the controller is configured to ignore the modified packet for write access.

### Claim 10 (depends on 1)

The data storage device of claim 1, wherein the controller is configured to return all zeros for the modified packet for read access.

### Claim 11 (depends on 1)

The data storage device of claim 1, wherein the packet is for a special flow and wherein the special flow is selected from the group consisting of exception flows, abort flows, and reset flows.

### Claim 12 (depends on 1)

The data storage device of claim 1, wherein the controller is further configured to measure attributes of the modified packets.

### Claim 13 (depends on 1)

The data storage device of claim 1, wherein the controller is further configured to:
generate both regular host traffic and internal events; and
transmit the regular host traffic and internal events over an interface to the host device.

### Claim 14

A data storage device, comprising:
a memory device; and
a controller coupled to the memory device, wherein the controller is configured to:
generate one or more dummy packets for a first function;
transmit the one or more dummy packets over an interface to a host device;
reroute the one or more dummy packets to a second function; and
measure attributes of the one or more dummy packets.

### Claim 15 (depends on 14)

The data storage device of claim 14, wherein the attributes are selected from the group consisting of latency, performance, and combinations thereof.

### Claim 16 (depends on 14)

The data storage device of claim 14, wherein the first function and the second function each contain a drain buffer.

### Claim 17 (depends on 16)

The data storage device of claim 16, wherein the rerouting is to the drain buffer of the second function.

### Claim 18

A data storage device, comprising:
means to store data; and
a controller coupled to the means to store data, wherein the controller is configured to:
generate regular host traffic and internal events for a first function;
transmit the regular host traffic and internal events over an interface to a host device; and
route the internal events to a second function.

### Claim 19 (depends on 18)

The data storage device of claim 18, wherein the routing is to a drain buffer of the second function.

### Claim 20 (depends on 19)

The data storage device of claim 19, wherein the generating, transmitting, and routing are transparent to a remainder of the data storage device.
