Bug 1212281 - [lshw] x86 cpu flags are missing "lm" and have "fpu_exception" and "x86-64"
Summary: [lshw] x86 cpu flags are missing "lm" and have "fpu_exception" and "x86-64"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: inventory
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 21.0
Assignee: beaker-dev-list
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks: 541294
TreeView+ depends on / blocked
 
Reported: 2015-04-16 05:53 UTC by Dan Callaghan
Modified: 2018-02-06 00:41 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-08-26 06:17:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Dan Callaghan 2015-04-16 05:53:04 UTC
CPU flags reported by beaker-system-scan with lshw:

[u'apic', u'clflush', u'cmov', u'cx16', u'cx8', u'de', u'fpu', u'fpu_exception', u'fxsr', u'hypervisor', u'lahf_lm', u'mca', u'mce', u'mmx', u'msr', u'mtrr', u'nx', u'pae', u'pge', u'pni', u'pse', u'pse36', u'sse', u'sse2', u'syscall', u'tsc', u'unfair_spinlock', u'wp', u'x86-64']

'lm' is missing, 'x86-64' and 'fpu_exception' are extra. Neither of these two appear in flags: field of /proc/cpuinfo therefore we need to determine if they are desirable or not.

Reproducible on any x86_64 system, including KVM guests.

Comment 3 Amit Saha 2015-04-22 06:22:29 UTC
lm - lshw explicitly renames "lm" capability to "x86-64"

solution: We could just replace x86-64  by lm in  beaker-system-scan

wp - https://forums.gentoo.org/viewtopic-t-89406-view-previous.html?sid=43c68f2c7bff03de97d0c8de7ae1f386

cpufreq - lshw lists "cpufreq" as a capability when it finds the file "/sys/devices/system/cpu/cpu%d/cpufreq/"
(https://wiki.archlinux.org/index.php/CPU_frequency_scaling)

solution: I think having the last two as flags doesn't make a lot of sense. But then having them doesn't cause any harm i believe.

Comment 4 Dan Callaghan 2015-04-22 06:31:36 UTC
(In reply to Amit Saha from comment #3)

Sounds good, let's rename x86-64 to lm and keep wp and cpufreq.

Comment 5 Amit Saha 2015-04-23 03:09:25 UTC
http://gerrit.beaker-project.org/#/c/4185/

Comment 6 Amit Saha 2015-04-28 07:00:39 UTC
Verification instructions:

1. Reserve a x86_64 box with RHEL 7 

2. Install beaker-system-scan using "yum install beaker-system-scan"

3. Run, "beaker-system-scan -d"

See that lm is present in the CpuFlags output:

{'Arch': ['x86_64'],
 'Cpu': {'CpuFlags': ['lm',
..

}

Comment 9 Dan Callaghan 2015-08-26 06:17:07 UTC
Beaker 21.0 has been released.


Note You need to log in before you can comment on or make changes to this bug.