mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
memory-id: Work-around incorrect "Number of slots"
In some BIOSes, the "Number of slots or sockets available for Memory Devices in this array" is incorrectly set to the number of memory array that's populated. Work-around this problem by outputting the number of sockets after having parsed them so that consumers of this data can carry on expecting an accurate number in this property. This fixes the number of memory slots advertised for the HP Z600. See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1686
This commit is contained in:
committed by
Luca Boccassi
parent
da637c8fca
commit
d48bf01636
@@ -1,11 +1,9 @@
|
||||
MEMORY_ARRAY_LOCATION=System Board Or Motherboard
|
||||
MEMORY_ARRAY_EC_TYPE=Multi-bit ECC
|
||||
MEMORY_ARRAY_MAX_CAPACITY=12884901888
|
||||
MEMORY_ARRAY_NUM_DEVICES=3
|
||||
MEMORY_ARRAY_LOCATION=System Board Or Motherboard
|
||||
MEMORY_ARRAY_EC_TYPE=Multi-bit ECC
|
||||
MEMORY_ARRAY_MAX_CAPACITY=12884901888
|
||||
MEMORY_ARRAY_NUM_DEVICES=3
|
||||
MEMORY_DEVICE_0_TOTAL_WIDTH=72
|
||||
MEMORY_DEVICE_0_DATA_WIDTH=64
|
||||
MEMORY_DEVICE_0_SIZE=8589934592
|
||||
@@ -92,3 +90,4 @@ MEMORY_DEVICE_6_MANUFACTURER=Not Specified
|
||||
MEMORY_DEVICE_6_SERIAL_NUMBER=Not Specified
|
||||
MEMORY_DEVICE_6_ASSET_TAG=Not Specified
|
||||
MEMORY_DEVICE_6_PART_NUMBER=Not Specified
|
||||
MEMORY_ARRAY_NUM_DEVICES=7
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
MEMORY_ARRAY_LOCATION=System Board Or Motherboard
|
||||
MEMORY_ARRAY_MAX_CAPACITY=34359738368
|
||||
MEMORY_ARRAY_NUM_DEVICES=2
|
||||
MEMORY_DEVICE_0_TOTAL_WIDTH=64
|
||||
MEMORY_DEVICE_0_DATA_WIDTH=64
|
||||
MEMORY_DEVICE_0_SIZE=4294967296
|
||||
@@ -31,3 +30,4 @@ MEMORY_DEVICE_1_ASSET_TAG=None
|
||||
MEMORY_DEVICE_1_RANK=1
|
||||
MEMORY_DEVICE_1_CONFIGURED_SPEED_MTS=2400
|
||||
MEMORY_DEVICE_1_CONFIGURED_VOLTAGE=1
|
||||
MEMORY_ARRAY_NUM_DEVICES=2
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
MEMORY_ARRAY_LOCATION=System Board Or Motherboard
|
||||
MEMORY_ARRAY_MAX_CAPACITY=68719476736
|
||||
MEMORY_ARRAY_NUM_DEVICES=4
|
||||
MEMORY_DEVICE_0_TOTAL_WIDTH=64
|
||||
MEMORY_DEVICE_0_DATA_WIDTH=64
|
||||
MEMORY_DEVICE_0_SIZE=8589934592
|
||||
@@ -65,3 +64,4 @@ MEMORY_DEVICE_3_CONFIGURED_SPEED_MTS=2400
|
||||
MEMORY_DEVICE_3_MINIMUM_VOLTAGE=1
|
||||
MEMORY_DEVICE_3_MAXIMUM_VOLTAGE=1
|
||||
MEMORY_DEVICE_3_CONFIGURED_VOLTAGE=1
|
||||
MEMORY_ARRAY_NUM_DEVICES=4
|
||||
|
||||
Reference in New Issue
Block a user