# US 2024/0394141 A1 · Memory Sparing to Improve Chip Reliability

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

- Number: US 2024/0394141 A1
- Document ID: US20240394141A1
- Status: Published application
- Kind: A1
- Application number: 18/324,431
- Filed: 2023-05-26
- Published: 2024-11-28
- Earliest claimed: 2023-05-26
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Gurushankar Rajamani; Horia Alexandru Toma; Le Wang; Spoorthy Nanjaiah; Albert Forte Magyar; Xiaoming Wang
- Web page: https://patentgrep.com/patent/US20240394141A1

## CPC

- G06F 11/1016: {Error in accessing a memory location, i.e. addressing error}
- G06F 12/0284: {Multiple user address space allocation, e.g. using different base addresses (interprocessor communication G06F15/163)}
- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G11C 29/76: {using address translation or modifications}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- 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)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

The mapping of system memory addresses to physical memory addresses is modeled as a two dimensional mapping array. Each element of the mapping array is assigned a system memory address and a physical memory address to which the system memory address is mapped. The mapping array is arranged to facilitate designation of a portion of the physical memory addresses as spareable physical memory addresses that are employed when there is a memory failure.

## Claims

### Claim 1

A method for mapping system memory addresses to physical memory addresses, comprising:
arranging a plurality of system memory addresses into a mapping array having a number of rows equal to a number of physical memory addresses in a minimum spareable entity unit, and a number of columns equal to a number of minimum spareable entity units; and
assigning, for each row of the mapping array, respective ones of the minimum spareable entity units to the columns such that no two columns are assigned the same minimum spareable entity unit, thereby mapping the system memory addresses for the row to physical memory addresses of the respective minimum spareable entity units,
wherein when one of the minimum spareable entity units becomes an unavailable minimum spareable entity unit,
designating a column of the mapping array as a remapping column for the unavailable minimum spareable entity unit, and
for each row in the mapping array, when the unavailable minimum spareable entity unit is not in the remapping column, assigning the minimum spareable entity unit for the remapping column to the column assigned the unavailable minimum spareable entity unit, thereby remapping the system memory address for the column assigned the unavailable minimum spareable entity unit to the minimum spareable entity unit for the remapping column.

### Claim 2 (depends on 1)

The method according to claim 1, wherein when one of the minimum spareable entity units becomes an unavailable minimum spareable entity unit, the method further comprises invalidating mappings of system memory addresses to physical memory addresses indicated by the remapping column prior to the minimum spareable entity unit becoming unavailable.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the minimum spareable entity units are one of channels, pseudo-channels, memory banks, or memory pages.

### Claim 4 (depends on 1)

The method according to claim 1, wherein mapping the system memory addresses for the row to respective physical memory addresses of the minimum spareable entity unit comprises, for each system memory address, mapping the system memory address to a physical memory address corresponding to the minimum spareable entity unit and an offset.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the offset corresponds to the position of the row within the mapping array.

### Claim 6 (depends on 1)

The method according to claim 1, wherein when a plurality of the minimum spareable entity units become unavailable minimum spareable entity units,
designating a plurality of columns of the mapping array as respective remapping columns for the unavailable minimum spareable entity units, and
for each row in the mapping array, for each unavailable minimum spareable entity unit that is not in the remapping columns, assigning the minimum spareable entity unit for one of the remapping columns to the column assigned the unavailable minimum spareable entity unit, thereby remapping the system memory address for the column assigned the unavailable minimum spareable entity unit to the minimum spareable entity unit for the remapping column.

### Claim 7 (depends on 6)

The method according to claim 6, wherein when a plurality of the minimum spareable entity units become unavailable minimum spareable entity units, the method further comprises invalidating mappings of system memory addresses to physical memory addresses indicated by the remapping columns prior to the minimum spareable entity units becoming unavailable.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the one of the minimum spareable entity units becomes an unavailable minimum spareable entity unit when there is a physical memory failure.

### Claim 9

A processing system comprising:
a processor; and
a memory,
wherein system memory addresses are mapped to physical memory addresses of the memory by:
arranging a plurality of system memory addresses into a mapping array having a number of rows equal to a number of physical memory addresses in a minimum spareable entity unit, and a number of columns equal to a number of minimum spareable entity units; and
assigning, for each row of the mapping array, respective ones of the minimum spareable entity units to the columns such that no two columns are assigned the same minimum spareable entity unit, thereby mapping the system memory addresses for the row to physical memory addresses of the respective minimum spareable entity units,
wherein when one of the minimum spareable entity units becomes an unavailable minimum spareable entity unit,
designating a column of the mapping array as a remapping column for the unavailable minimum spareable entity unit, and
for each row in the mapping array, when the unavailable minimum spareable entity unit is not in the remapping column, assigning the minimum spareable entity unit for the remapping column to the column assigned the unavailable minimum spareable entity unit, thereby remapping the system memory address for the column assigned the unavailable minimum spareable entity unit to the minimum spareable entity unit for the remapping column.

### Claim 10 (depends on 9)

The processing system according to claim 9, wherein the processor is an application-specific integrated circuit (ASIC) and the memory is a high bandwidth (HBW) memory.

### Claim 11 (depends on 9)

The processing system according to claim 9, wherein the memory is a high bandwidth (HBW) memory.

### Claim 12 (depends on 9)

The processing system according to claim 9, wherein when one of the minimum spareable entity units becomes an unavailable minimum spareable entity unit, the method further comprises invalidating mappings of system memory addresses to physical memory addresses indicated by the remapping column prior to the minimum spareable entity unit becoming unavailable.

### Claim 13 (depends on 9)

The processing system according to claim 9, wherein the minimum spareable entity units are one of channels, pseudo-channels, memory banks, or memory pages.

### Claim 14 (depends on 9)

The processing system according to claim 9, wherein mapping the system memory addresses for the row to respective physical memory addresses of the minimum spareable entity unit comprises, for each system memory address, mapping the system memory address to a physical memory address corresponding to the minimum spareable entity unit and an offset.

### Claim 15 (depends on 14)

The processing system according to claim 14, wherein the offset corresponds to the position of the row within the mapping array.

### Claim 16 (depends on 9)

The processing system according to claim 9, wherein when a plurality of the minimum spareable entity units become unavailable minimum spareable entity units,
designating a plurality of columns of the mapping array as respective remapping columns for the unavailable minimum spareable entity units, and
for each row in the mapping array, for each unavailable minimum spareable entity unit that is not in the remapping columns, assigning the minimum spareable entity unit for one of the remapping columns to the column assigned the unavailable minimum spareable entity unit, thereby remapping the system memory address for the column assigned the unavailable minimum spareable entity unit to the minimum spareable entity unit for the remapping column.

### Claim 17 (depends on 16)

The processing system according to claim 16, wherein when a plurality of the minimum spareable entity units become unavailable minimum spareable entity units, the method further comprises invalidating mappings of system memory addresses to physical memory addresses indicated by the remapping columns prior to the minimum spareable entity units becoming unavailable.

### Claim 18 (depends on 9)

The processing system according to claim 9, wherein the one of the minimum spareable entity units becomes an unavailable minimum spareable entity unit when there is a physical memory failure.
