# US 2017/0293573 A1 · Systems and methods for restricting write access to non-volatile memory

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

- Number: US 2017/0293573 A1
- Document ID: US20170293573A1
- Status: Published application
- Kind: A1
- Application number: 15/518,218
- Filed: 2014-10-31
- Published: 2017-10-12
- Earliest claimed: 2014-10-31
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Hewlett Packard Enterprise Development LP
- Inventors: Gregg B. LESARTRE; Joseph E. FOSTER; David PLAQUIN; James M. MANN
- Web page: https://patentgrep.com/patent/US20170293573A1

## CPC

- G06F 12/1433: {for a module or a part of a module}
- G06F 12/1441: {for a range}
- G06F 12/145: {the protection being virtual, e.g. for virtual blocks or segments before a translation mechanism}
- G06F 12/0238: {Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory}
- G06F 12/1081: for peripheral access to main memory, e.g. direct memory access [DMA]
- G06F 2212/7207: management of metadata or control data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for restricting write access to a non-volatile memory. The method includes receiving a request to write to a protected location in the non-volatile memory and determining whether the protected location is in a write-protected state. If the protected location is not in a write-protected state, the method includes writing data indicated by the request to the protected location. If the protected location is in a write-protected state, the method includes rejecting the request. The protected location stores a validation key to validate the contents of another portion of the non-volatile memory.

## Claims

### Claim 1

A method for restricting write access to a non-volatile memory, the method comprising:
receiving, by a media controller associated with the non-volatile memory, a request to write to a protected location in the non-volatile memory;
determining whether the protected location is in a write-protected state;
if the protected location is not in a write-protected state, writing data indicated by the request to the protected location;
if the protected location is in a write-protected state, rejecting the request;
wherein the protected location stores a validation key to validate the contents of another portion of the non-volatile memory.

### Claim 2 (depends on 1)

The method of claim 1 wherein the validation key comprises a checksum to validate the contents of the other portion.

### Claim 3 (depends on 2)

The method of claim 2 further comprising:
computing a checksum for the other portion of the non-volatile memory;
comparing the computed checksum to the validation key; and
validating the portion of the non-volatile memory if the computed checksum matches the validation key.

### Claim 4 (depends on 1)

The method of claim 1 further comprising:
redirecting read and write requests for an address or address range corresponding to the protected location to the media controller; and
passing read and write requests to addresses other than the address or address range corresponding to the protected location directly to the non-volatile memory.

### Claim 5 (depends on 1)

The method of claim 1 wherein determining whether the protected location is in a write-protected state comprises analyzing, in a register of the media controller, whether a metadata field of the data stored at the protected location indicates that the protected location is in a write-protected state.

### Claim 6

A system for restricting write access to a non-volatile memory, the system comprising:
a processing unit;
a memory module coupled to the processing unit, the memory module comprising;
a non-volatile memory; and
a media controller coupled to the non-volatile memory and the processing unit, the media controller comprising write logic to:
receive a request to write to a protected location in the non-volatile memory;
if the protected location is not in a write-protected state, write data indicated by the request to the protected location; and
if the protected location is in a write-protected state, reject the request;
wherein the protected location stores a validation key to validate the contents of another portion of the non-volatile memory.

### Claim 7 (depends on 6)

The system of claim 6 wherein the validation key comprises a checksum to validate the contents of the other portion.

### Claim 8 (depends on 7)

The system of claim 7 wherein the processing unit is to:
compute a checksum for the other portion of the non-volatile memory;
compare the computed checksum to the validation key; and
validate the portion of the non-volatile memory if the computed checksum matches the validation key.

### Claim 9 (depends on 6)

The system of claim 6 wherein the media controller is further to:
redirect read and write requests for an address or address range corresponding to the protected location to the write logic; and
pass read and write requests to addresses other than the address or address range corresponding to the protected location directly to the non-volatile memory.

### Claim 10 (depends on 6)

The system of claim 6 wherein the media controller comprises a register, the media controller further to analyze, in the register, whether a metadata field of the data stored at the protected location indicates that the protected location is in a write-protected state.

### Claim 11 (depends on 6)

The system of claim 6 wherein a portion of the non-volatile memory is not write restricted and is to be accessed by the processing unit as normal non-volatile memory.

### Claim 12

A method for restricting write access to a non-volatile memory and maintaining a log buffer, the method comprising:
receiving, by a media controller associated with the non-volatile memory, a request to write to a protected location in the non-volatile memory, the protected location comprising a base address and a next address;
if the request is to write to the protected location and the protected location is in a write-protected state, rejecting the request;
if the request is to write to the next address, writing data indicated by the request to an address indicated by a write next pointer and incrementing the write next pointer.

### Claim 13 (depends on 12)

The method of claim 12 further comprising:
receiving, by the media controller, a request to read from the protected location;
if the request is to read from the base address and the base address is in a write-protected state, returning data from the base address and setting a read next pointer to a second address in the log buffer;
if the request is to read from the next address and the address pointed to by the read next pointer is in a write-protected state, returning data from the address pointed to by the read next pointer and incrementing the read next pointer.

### Claim 14 (depends on 13)

The method of claim 13 wherein if the request is to read from the base address and the base address is not in a write-protected state or if the request is to read from the next address and the address pointed to by the read next pointer is not in a write-protected state, the method further comprises returning null data.

### Claim 15 (depends on 13)

The method of claim 13 wherein if the request is to read from the next address and the read next pointer points to the same address as the write next pointer, returning null data.
