aboutsummaryrefslogtreecommitdiff
path: root/modules/devices
AgeCommit message (Collapse)Author
2018-10-22x86: add socket information from dmidecode, if availableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22arm: try device tree opp for cpu freqBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22devicetree: add oppv1 and clock-frequency to opp supportBurt P
I don't have any hardware to test, this is based only on the OPP kernel docs. https://www.kernel.org/doc/Documentation/devicetree/bindings/opp/opp.txt Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22devices/gpu: specify source of freq informationBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22gpu: show freq range, if availableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22devicetree: get opp-v2 freq range for gpu, if availableBurt P
* opp-v2 = operating-points-v2, frequency scaling information from device tree that can be used for cpu, gpu, etc. * adds helper function to get the opp-v2 range of frequencies for a node, dtr_get_opp_range() in dt_util.c * adds a freq range in opp-v2 property for a node in dt * reports a gpu's max clock frequency if avaiable via opp-v2 Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22don't use html in text-only outputBurt P
Fixes https://github.com/lpereira/hardinfo/issues/266 This is also needed so that vendor urls can be links where appropriate. Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-02arm: soc vendors amlogic and allwinnerBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-09-26gpu: show more dt infoBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-09-26devicetree: fix to remove gtk runtime warningBurt 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-08Free memory allocated with g_malloc() using g_free()Leandro Pereira
2018-09-08pci, gpu: fix for duplicate sections when not using EnglishBurt 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-09-08arm: some rockchip cpu namesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-09-08arm: code fix, forgotten comma(s)Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-06-03pci.c: fix memory leakBurt 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-05-27devices/pci, devices/gpu: re-enable hardinfo's vendor functionsBurt P
Now that they are working better. Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-25devices/gpu: add nvidia-specific sectionBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24devices/storage: remove file testBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24devices/storage: try `lsscsi -c` if /proc/scsi/scsi is not foundBurt P
This is a hack to address #240. The storage scanner needs work. Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24devices/usb: remove old, apparently non-functional, scan methodsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24[new] devices/gpu: graphics processorsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24devices/pci: replace old pci scanner with pci_util-based versionBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24rpi_data: show rcode of unknown piBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24rpi_data: add Raspberry Pi Model 3 B-PlusBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-17devices/usb: remove unnecessary incrementationBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-12usb: requested changesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-12usb_util.cBurt P
A set of functions for getting information for a single USB device, or a list of all devices. The only implemented method is using `lsusb`, which is slow. A method using sysfs would be much better. The existing sysfs and procfs methods in devices/usb.c do not appear to work, so it would have to be something new. devices/usb.c modified to use usb_util, but all the old code is still there. 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-10-29Fixed possible memory leak (#201)Roman Kalashnikov
Warnings, found using PVS-Studio: hardinfo/modules/devices/usb.c 397 err V773 The function was exited without releasing the 'temp' pointer. A memory leak is possible. hardinfo/modules/computer/uptime.c 33 err V773 The function was exited without releasing the 'ui' pointer. A memory leak is possible.
2017-09-04Build fix after 8913af3eLeandro Pereira
Fixes #188.
2017-09-03Conditionally compile PowerPC and ARM code while summarizing DTLeandro Pereira
Also, use properly-named variables and plug a memory leak.
2017-09-03Clean up device tree codeLeandro Pereira
- No need for a global dtr variable: just pass it around as parameters - Internal functions marked static
2017-08-28ARM: Add some mediatek SOCsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27devices/dmi: keys only need to be unique in the same groupBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: allow specifying type for dmi_chassis_type_str()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27Create dmi_util.c and move *_util.c to hardinfo/Burt P
These stand alone interfaces and are used across modules, so just make them available to any module by default. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: Add more string names, display more informationBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: dmi_chassis_type_str() maps chassis-type to stringBurt P
dmi_chassis_type_str() is moved from code in computer.c:detect_machine_type(). It makes sense to keep it with dmi, as it maps a dmi-defined value to a string. This way it can be used in both dmi.c and computer.c. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: add dmi_sysfs_root() to find path for dmi in sysfsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: empty result return NULL; don't suggest root if rootBurt P
Signed-off-by: Burt P <pburt0@gmail.com>