aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/x86
AgeCommit message (Collapse)Author
2019-07-12Show links for vendorsLeandro Pereira
2019-07-04Plug memory leak in dmi_socket_info()Leandro Pereira
2019-07-02x86: use new dmi_* typesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-22DMI socket/module information moved from Processor to Memory DMIBurt P
As discussed in https://github.com/lpereira/hardinfo/issues/345 Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04arm/x86: include package info details in reportsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22x86: add mfgr and part to memory socket infoBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22x86: add socket information from dmidecode, if availableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-09-26arm/x86: clocks list empty when cpufreq is not availableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-09-08x86: l1tf bug flag definitionBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-29x86: CPU bug flag for speculative store bypass attackBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27x86: free urefBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27x86: fix for kernels that don't provide cache idBurt P
Use shared_cpu_list as a unique cache id, but only in the case that kernel-supplied cache id is not available. Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27x86,arm: cpu clocks list in package informationBurt P
Show actual clocks where cores or threads share a clock. Ex: x86 SMT each core has one clock shared by both threads. Ex: BCM2837 has one clock for all four cores. Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-09x86: metldown and spectre bug flagsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-09x86: increase the cpuinfo read buffer sizeBurt P
The flags list is often more than 512 bytes long these days. It was being truncated. Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-09Add Intel cpu_insecure bug workaround flagBurt P
cpu_insecure = page table isolation is being used to work around a security vulnerability in Intel x86 CPUs. Signed-off-by: Burt P <pburt0@gmail.com>
2017-12-09x86: add summary of caches to package informationBurt P
Show actual physical caches by counting only unique references from each "cpu" (hardware thread). Signed-off-by: Burt P <pburt0@gmail.com>
2017-11-29x86 CPU flags fix; show socket:core and thread in proc listBurt P
* Bug fix: Some flags are just an index, for example power management might have "[13] [14]" as flags. This looks like a new section to hardinfo shell and it truncates the CPU information there. * Show the Socket:Core and thread in the processor list, for x86 only right now. In the future, the idea is to show only one line for each core, and list the threads on that core, where currently, there is one line for each thread. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-12x86: add microcode version to reported informationBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-11Make MHz translatable in CPU listBurt P
It was kindof translatable before, but as part of a messy use-once c-format string. In this form it is re-usable elsewhere. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-11Separate processor name and description + count cores and threadsBurt P
* add cpu_procs_cores_threads() function to get counts from sysfs/topology * each platform must now provide processor_name() and processor_describe() * processor_name_default(): returns a list of unique processor->model_name * processor_describe_default(): returns "N physical; M cores; L threads" * processor_describe_by_counting_names(): returns a list of unique processor->model_name with Nx prefix (ex: "4x ARM Cortex A53 + 4x ARM Cortex A33") * x86: _name and _describe use defaults * arm: _name returns name of SOC, if available, _describe returns processor_describe_by_counting_names() * all other platforms: _name and _describe use defaults * Computer module summary now shows both name and description for CPU Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19x86: fix old bug in old bug detectionBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19x86 flag definition lookup changesBurt P
* Avoid using GHashTable * Use single flag lookup table with bug: and pm: prefixes to avoid flag name collisions Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19x86: strdup() some const strings before g_hash_table_insert()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19x86,arm,riscv: Use gettext contexts and comments for cpu flagsBurt P
* flag defintion strings are grouped into contexts: x86-flag, arm-flag, riscv-ext * a comment is included for translators so that they know what flag the string defines without looking at the source code Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Make cache type strings translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86,arm,riscv: small fixes and flag definition cosmetic tweaksBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86,arm,riscv: make flag definitions translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Move common processor stuff into cpu_util.{h,c}Burt P
* PROC_CPUINFO define used in testing * STRIFNULL(), UNKIFNULL() EMPIFNULL() macros used in reading cpuinfo * byte order, topology, and cpufreq data structures and functions that are platform independent * processor_has_flag() helper Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Add CMake options to allow testing various platform's processor.cBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Cleanup all platform's proccessor.c, use translatable labels.Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86: make cache info translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86,arm,ppc: more processor label strings translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86: remove "Has FPU"Burt P
FPU is listed in capabilities. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86,arm,ppc: code commentsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86: remove large sprintf() format string from translationBurt P
It was broken into smaller pieces by earlier commits. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86,arm,ppc: more processor info strings translatableBurt P
Additional labels made translatable and some cleanup. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86,arm,ppc: make processor info strings more easily translatedBurt P
Make some recently added info labels easy to translate. Includes the topology and frequency scaling strings. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-26arm,x86: Don't show frequency scaling information if it isn't availableBurt P
Hide Frequency Scaling section instead of showing zeroes. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-23x86: update cpuinfo flag meaningsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-23x86: add socket/core and more cpufreq informationBurt P
Copied from the recent changes for ARM. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-21Various typo fixes.Simon Quigley
2017-06-05Fallback g_strv_contains() imp when using glib<2.44Burt P
Also, some stray whitespace removed. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-04x86: frequency scaling item labels abbr. -> full namesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-04x86: clean up processor_scan()Burt P
* mixed tab/space indentation -> spaces only * move cache/family/freq/flags list processing out of main read loop and make a second pass through the processor list * make simple pm list if it isn't provided * use processor id from cpuinfo instead of counter Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-04x86: improve processor frequency informationBurt P
Use /sys/.../cpufreq/ data if available. Processor max frequency is now used for cpu_mhz. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-04g_strv_contains() requires glib>2.44, not available in current DebianBurt P
Use own _g_strv_contains(). Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-04x86: Remove unused parameter to populate_cpu_flags_list_internal()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-04-10More "feature" flags to bug workaroundsBurt P
Add some more bug "feature" flags from old kernels to the bug workaround list generated if no such list was available in /proc/cpuinfo. Also, fixes a crash if the first bug is not fdiv. Signed-off-by: Burt P <pburt0@gmail.com>
2017-04-09Older kernel support for bugs/pm flag listsBurt P
* Now the bugs list will be created from the old flags if it wasn't available. * If a flag list is empty, it will now show "Empty List" for that set. This is for the Power Management flag list that didn't exist on older kernels, or if all old bug flags were off. Signed-off-by: Burt P <pburt0@gmail.com>