diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2017-09-05 20:35:25 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2017-09-05 20:35:25 +0000 |
commit | 40f7bccb5df5c566657897f2341466ed1d7d031f (patch) | |
tree | 90a5a5d1fc5ee861fdd3f86435f0550e7e65ae5d /sys/dev/amdtemp | |
parent | 0df3d85af4ae1f9af038c252dbeb6381cc1c5f33 (diff) | |
download | src-40f7bccb5df5c566657897f2341466ed1d7d031f.tar.gz src-40f7bccb5df5c566657897f2341466ed1d7d031f.zip |
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
Notes
Notes:
svn path=/head/; revision=323195
Diffstat (limited to 'sys/dev/amdtemp')
-rw-r--r-- | sys/dev/amdtemp/amdtemp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c index 063f736bb8e6..2080c92b8f2c 100644 --- a/sys/dev/amdtemp/amdtemp.c +++ b/sys/dev/amdtemp/amdtemp.c @@ -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); |