intel / ipmctl

BSD 3-Clause "New" or "Revised" License
183 stars 62 forks source link

How to get RegionID by OS build tool #141

Closed yechun1 closed 4 years ago

yechun1 commented 4 years ago

From UEFI ipmctl tool, there is RegionID. But from Linux ipmtl tool there is no RegionID, how can we got RegionID from Linux and windows ipmctl tool?

UEFI: ipmctl.efi show -region

 RegionID| SocketID | PersistentMemoryType    | Capacity    | FreeCapacity | HealthState
 0x0001  | 0x0000   | AppDirectNotInterleaved | 126.000 GiB | 126.000 GiB  | Healthy

Linux:

[root@localhost build]# ipmctl  show -region
 SocketID | ISetID             | PersistentMemoryType    | Capacity    | FreeCapacity | HealthState
 0x0000   | 0xc46eda90fa418a22 | AppDirectNotInterleaved | 126.000 GiB | 126.000 GiB  | Healthy
 0x0000   | 0x30d2da90384b8a22 | AppDirectNotInterleaved | 126.000 GiB | 126.000 GiB  | Healthy
 0x0000   | 0xfc96da9066458a22 | AppDirectNotInterleaved | 126.000 GiB | 126.000 GiB  | Healthy
 0x0000   | 0x8496da905a458a22 | AppDirectNotInterleaved | 126.000 GiB | 126.000 GiB  | Healthy
 0x0000   | 0x1ebeda9003498a22 | AppDirectNotInterleaved | 126.000 GiB | 126.000 GiB  | Healthy
 0x0000   | 0x84aada905a478a22 | AppDirectNotInterleaved | 126.000 GiB | 126.000 GiB  | Healthy
 0x0000   | 0x0c46da90ce3d8a22 | AppDirectNotInterleaved | 126.000 GiB | 126.000 GiB  | Healthy
 0x0000   | 0x2eb4da90eb488a22 | AppDirectNotInterleaved | 126.000 GiB | 126.000 GiB  | Healthy
yechun1 commented 4 years ago

Are we able to add RegionID into ShowRegionsDataSetAttribs with OS_BUILD?

StevenPontsler commented 4 years ago

The RegionID in UEFI is there to be used for working with namespaces. In OS the OS controls the namespaces so there is no use for a RegionID. In the current OS versions there is no option to have a RegionId printed out.

yechun1 commented 4 years ago

Thanks for reply.