# US 2019/0244676 A1 · Performing error correction in computer memory

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

- Number: US 2019/0244676 A1
- Document ID: US20190244676A1
- Status: Published application
- Kind: A1
- Application number: 16/387,846
- Filed: 2019-04-18
- Published: 2019-08-08
- Earliest claimed: 2016-09-02
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: JOHN S. DODSON; MARC A. GOLLUB; WARREN E. MAULE; BRAD W. MICHAEL
- Web page: https://patentgrep.com/patent/US20190244676A1

## CPC

- G11C 29/70: {Masking faults in memories by using spares or by reconfiguring}
- G06F 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- G06F 11/1064: {in cache or content addressable memories}
- G06F 12/0871: Allocation or management of cache space
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/064: {Management of blocks}
- G06F 3/0673: {Single storage device}
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Performing error correction in computer memory including receiving a read request targeting a read address within the computer memory; accessing a mark table comprising a plurality of entries, each entry including a field specifying a region size, a field specifying a match address, and a field specifying a mark location; performing a lookup of the mark table using the read address including, for each entry in the mark table: generating a mask based on the region size stored in the entry; determining, based on the mask, whether the read address is within a memory region specified by the match address and region size stored in the entry; and if the read address is within the memory region specified by the match address and region size stored in the entry, performing error correction using the mark location stored in the entry.

## Claims

### Claim 1

A method of performing error correction in computer memory, the method comprising:
receiving a read request targeting a read address within the computer memory;
accessing a mark table comprising a plurality of entries, each entry corresponding to a detected error at a memory address in a physical location of computer memory, each entry including a field specifying a region size, a field specifying a match address, and a field specifying a mark location;
performing a lookup of the mark table using the read address including, for each entry in the mark table:
generating a mask based on the region size stored in the entry;
determining, based on the mask, whether the read address is within a memory region specified by the match address and region size stored in the entry; and
if the read address is within the memory region specified by the match address and region size stored in the entry, performing error correction using the mark location stored in the entry.

### Claim 2 (depends on 1)

The method of claim 1, wherein the mark table is stored in content addressable memory (CAM), and wherein the lookup is a CAM lookup.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating the mask based on the region size stored in the entry comprises:
accessing an entry in a mask-generation table corresponding to the region size stored in the entry; and
retrieving the mask from the entry in the mask-generation table.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining, based on the mask, whether the read address is within the memory region specified by the match address and region size stored in the entry comprises:
applying the mask to the read address and the match address to obtain a masked read address and a masked match address; and
determining whether the masked read address and the masked match address are equal.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining, based on the mask, whether the read address is within the memory region specified by the match address and region size stored in the entry comprises:
applying an XOR operation to the read address and the match address to obtain a result address;
applying the mask to the result address to obtain a masked result address; and
determining whether the masked result address is equal to zero.

### Claim 6 (depends on 1)

The method of claim 1, wherein the memory region is one selected from a group consisting of a dual in-line memory module (DIMM), a rank, a bank group, and a bank.

### Claim 7 (depends on 1)

The method of claim 1, wherein the field specifying the mark location indicates at least one of a group consisting of a chip mark and a symbol mark.

### Claim 8

An apparatus for performing error correction in computer memory, the apparatus comprising memory firmware and a mark table, the apparatus configured to carry out the steps of:
receiving, by the memory firmware, a read request targeting a read address within the computer memory;
accessing, by the memory firmware, the mark table comprising a plurality of entries, each entry corresponding to a detected error at a memory address in a physical location of computer memory, each entry including a field specifying a region size, a field specifying a match address, and a field specifying a mark location;
performing, by the memory firmware, a lookup of the mark table using the read address including, for each entry in the mark table:
generating a mask based on the region size stored in the entry;
determining, based on the mask, whether the read address is within a memory region specified by the match address and region size stored in the entry; and
if the read address is within the memory region specified by the match address and region size stored in the entry, performing error correction using the mark location stored in the entry.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the mark table is stored in content addressable memory (CAM), and wherein the lookup is a CAM lookup.

### Claim 10 (depends on 8)

The apparatus of claim 8, wherein generating the mask based on the region size stored in the entry comprises:
accessing an entry in a mask-generation table corresponding to the region size stored in the entry; and
retrieving the mask from the entry in the mask-generation table.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein determining, based on the mask, whether the read address is within the memory region specified by the match address and region size stored in the entry comprises:
applying the mask to the read address and the match address to obtain a masked read address and a masked match address; and
determining whether the masked read address and the masked match address are equal.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein determining, based on the mask, whether the read address is within the memory region specified by the match address and region size stored in the entry comprises:
applying an XOR operation to the read address and the match address to obtain a result address;
applying the mask to the result address to obtain a masked result address; and
determining whether the masked result address is equal to zero.

### Claim 13 (depends on 8)

The apparatus of claim 8, wherein the memory region is one selected from a group consisting of a dual in-line memory module (DIMM), a rank, a bank group, and a bank.

### Claim 14 (depends on 8)

The apparatus of claim 8, wherein the field specifying the mark location indicates at least one of a group consisting of a chip mark and a symbol mark.

### Claim 15

A computer program product for performing error correction in computer memory, the computer program product disposed upon a computer readable storage medium, the computer program product configured to carry out the steps of:
receiving a read request targeting a read address within the computer memory;
accessing a mark table comprising a plurality of entries, each entry corresponding to a detected error at a memory address in a physical location of computer memory, each entry including a field specifying a region size, a field specifying a match address, and a field specifying a mark location;
performing a lookup of the mark table using the read address including, for each entry in the mark table:
generating a mask based on the region size stored in the entry;
determining, based on the mask, whether the read address is within a memory region specified by the match address and region size stored in the entry; and
if the read address is within the memory region specified by the match address and region size stored in the entry, performing error correction using the mark location stored in the entry.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the mark table is stored in content addressable memory (CAM), and wherein the lookup is a CAM lookup.

### Claim 17 (depends on 15)

The computer program product of claim 15, wherein generating the mask based on the region size stored in the entry comprises:
accessing an entry in a mask-generation table corresponding to the region size stored in the entry; and
retrieving the mask from the entry in the mask-generation table.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein determining, based on the mask, whether the read address is within the memory region specified by the match address and region size stored in the entry comprises:
applying the mask to the read address and the match address to obtain a masked read address and a masked match address; and
determining whether the masked read address and the masked match address are equal.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein determining, based on the mask, whether the read address is within the memory region specified by the match address and region size stored in the entry comprises:
applying an XOR operation to the read address and the match address to obtain a result address;
applying the mask to the result address to obtain a masked result address; and
determining whether the masked result address is equal to zero.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the memory region is one selected from a group consisting of a dual in-line memory module (DIMM), a rank, a bank group, and a bank.
