Author: cem
Date: Tue Sep 5 20:35:25 2017
New Revision: 323195
URL: https://svnweb.freebsd.org/changeset/base/323195
Log:
amdtemp(4): Do not probe not matching hostbridges
Some systems have hostbs that do not match our PCI device id criteria.
Detect and ignore these devices in probe.
PR: 218264
Sponsored by: Dell EMC Isilon
Modified:
head/sys/dev/amdtemp/amdtemp.c
Modified: head/sys/dev/amdtemp/amdtemp.c
==============================================================================
--- head/sys/dev/amdtemp/amdtemp.c Tue Sep 5 19:40:04 2017
(r323194)
+++ head/sys/dev/amdtemp/amdtemp.c Tue Sep 5 20:35:25 2017
(r323195)
@@ -207,6 +207,8 @@ amdtemp_probe(device_t dev)
if (resource_disabled("amdtemp", 0))
return (ENXIO);
+ if (!amdtemp_match(device_get_parent(dev)))
+ return (ENXIO);
family = CPUID_TO_FAMILY(cpu_id);
model = CPUID_TO_MODEL(cpu_id);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"