Hi Jan, > -----Original Message----- > >> > > > > Sorry for replying later, I paid sometime to check the code again, > > and drew a table like below, I ignore two columns when numa_off=true > > and acpi_numa=1/-1. Because when numa_off = true, ACPI srat table > > will not be parsed: > > While I agree with this fact, the problem is that there are two > independent command line options driving the then single variable. > IOW numa_off and acpi_numa both turned on may still need a > representation. In fact I'm not convinced we can eliminate the > original variables. What we ought to be able to do is consolidate > their values into the one single new variable you add, before > ever evaluating anything. _Then_ I think I agree with the table. > > Jan > > > +-----------+---------+---------------+-----------+------------+-------- > --+ > > | original | col1 | col2 | col3 | col4 | col5 > | > > +-----------+---------+---------------+-----------+------------+-------- > --+ > > |numa_off |true |false |false |false |false > | > > |acpi_numa |0 |0 |1 |-1 |x > | > > |numa_fake |x |x |x |x > |fake_nodes| > > |enum state |numa_off |numa_fw_nodata |numa_fw_ok |numa_fw_bad |numa_emu > | > > +-----------+---------+---------------+-----------+------------+-------- > --+ > >
How about update the table like this: +------------+----------+----------------+----------------+------------+ | original | | | | | +------------+----------+----------------+----------------+------------+ | numa_off | true | true | true | true | | acpi_numa | 0 | 1 | -1 | x | | numa_fake | x | x | x | fake_nodes | | enum state | numa_off | numa_off | numa_off | numa_off | +------------+----------+----------------+----------------+------------+ +------------+----------------+------------+-------------+------------+ | original | | | | | +------------+----------------+------------+-------------+------------+ | numa_off | false | false | false | false | | acpi_numa | 0 | 1 | -1 | x | | numa_fake | x | x | x | fake_nodes | | enum state | numa_fw_nodata | numa_fw_ok | numa_fw_bad | numa_emu | +------------+----------------+------------+-------------+------------+ Cheers, Wei Chen > > Notes: > > The following scenarios will make acpi_numa=0: sanity check or hash computing in acpi_scan_nodes > > is failed.