sensors-detect: Skip graphics cards by default
PATCH 1/2 sensors-detect: Skip graphics cards by default
Don't probe I2C buses on graphics cards by default. Their drivers will typically instantiate the I2C slave devices themselves as needed, and such probes have been occasionally reported to cause serious trouble.
--- prog/detect/sensors-detect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
prog/detect/sensors-detect +2 -2
@@ -3652,8 +3652,8 @@ sub scan_i2c_adapter my ($funcs, $chip, $addr, $class, $default, $input, @not_to_scan); $class = get_pci_class($i2c_adapters[$adapter_nr]->{parent}); - if (($class & 0xff00) = 0x0400) { - # Do not probe adapters on PCI multimedia cards by default + # Do not probe adapters on multimedia and graphics cards by default + if (($class & 0xff00) = 0x0400 || ($class & 0xff00) = 0x0300) { $default = 0; } elsif ($class = 0x0c01 || $class = 0x0c05 || find_i2c_adapter_driver($i2c_adapters[$adapter_nr]->{name})) {
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 11 lines · Jean Delvare
Don't probe I2C buses on graphics cards by default. Their drivers will typically instantiate the I2C slave devices themselves as needed, and such probes have been occasionally reported to cause serious trouble.
--- prog/detect/sensors-detect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
prog/detect/sensors-detect sub scan_i2c_adapter · line 3659
Quoted 10 lines
prog/detect/sensors-detect +2
-2@@ -3652,8 +3652,8 @@ sub scan_i2c_adapter my ($funcs, $chip, $addr, $class, $default, $input, @not_to_scan); $class = get_pci_class($i2c_adapters[$adapter_nr]->{parent}); - if (($class & 0xff00) = 0x0400) { - # Do not probe adapters on PCI multimedia cards by default + # Do not probe adapters on multimedia and graphics cards by default + if (($class & 0xff00) = 0x0400 || ($class & 0xff00) = 0x0300) { $default = 0; } elsif ($class = 0x0c01 || $class = 0x0c05 || find_i2c_adapter_driver($i2c_adapters[$adapter_nr]->{name})) {
Excellent idea.
Acked-by Guenter Roeck <[email protected]>
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors