diff options
| author | Alison Schofield <alison.schofield@intel.com> | 2026-07-24 13:37:19 -0700 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-08-05 13:20:34 -0700 |
| commit | 94d84e3d89594f6ad6dc5ed5bed05956bf146149 (patch) | |
| tree | 5204560889a436cc9581754b603b1287c35c4003 /tools/lib/python | |
| parent | 95a84b7cb4bbc5bd929adc9b1cd1282fca737662 (diff) | |
| download | linux-94d84e3d89594f6ad6dc5ed5bed05956bf146149.tar.gz linux-94d84e3d89594f6ad6dc5ed5bed05956bf146149.zip | |
cxl/test: Assign one mock memdev a full-width serial number
Mock memdev serial numbers have historically been derived from
pdev->id, leaving them single-digit. As a result they never exercised
either the decimal-vs-hex security-key lookup or unsigned formatting
of large serial numbers.
Give one mock memdev a full-width serial with bit 63 set. This mirrors
real hardware (for example, Montage devices) and provides a test
device that exposes both the hexadecimal-vs-decimal and signed-vs-
unsigned formatting differences.
pdev->id 7 is unused by the auto-region topology so the larger serial
does not affect existing tests.
This enables adding a new test case to cxl-security.sh that verify
auto-unlock using a mock device whose serial exposes both formatting
differences.
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/3e569a748fce4424b8622032fbffc298d92153b9.1784924949.git.alison.schofield@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
