Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add LAM basic test cases on SRF platform #403

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions BM/lam/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2024 Intel Corporation.

CC = gcc
CFLAGS = -D_GNU_SOURCE -lpthread -m64 -O2
TARGET = lam

$(TARGET): lam.c
$(CC) $(CFLAGS) -o $@ $<

clean:
rm -f $(TARGET)
28 changes: 28 additions & 0 deletions BM/lam/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# LAM

## Description
Linear Address Masking (LAM) is a new feature in the latest Intel platform Sierra Forest.
LAM modifies the checking that is applied to 64-bit linear addresses, allowing software
to use of the untranslated address bits for metadata.
This test suite provides basic functional check to ensure LAM works properly.

## Usage
```
make
# To run a specific case
./lam -t <testcase_id>
(for example, cpuid) ./lam -t 0x80
```
Test results (PASS or FAIL) will be printed out.

## Testcase ID
| Case ID | Case Name |
| ------ | ---------------------------- |
| 0x1 | malloc |
| 0x2 | max_bits |
| 0x4 | mmap |
| 0x8 | syscall |
| 0x10 | io_uring |
| 0x20 | inherit |
| 0x40 | pasid |
| 0x80 | cpuid |
Loading
Loading