OpenBSD cvs log

created 2020-02-08T06:21:53Z
begin 2020-01-21T03:06:39Z
end 2020-01-21T06:37:24Z
path src/sys
commits 1

date 2020-01-21T06:37:24Z
author claudio
files src/sys/dev/pci/piixpm.c log diff annotate
src/sys/dev/pci/piixreg.h log diff annotate
message Fix support for additional I2C busses in piixpm(4) for older SB800 SMBus
controllers. Devices where SB800_PMREG_SMB0SELEN returns 0 will only use
the first port.

Also clean up the PCI_PRODUCT_AMD_HUDSON2_SMB detection a bit more.
The PCI ID 1022:780b is used by AMD Bolton FCH and AMD Family 16h
model 30h-3fh. The problem is the former uses old register layout while
the latter uses the new FCH layout. Make sure AMD Bolton FCH uses the
old code path.

Finally fix a confusion about the IRQ / SMI detection. The logic was
reversed since if the bit is 0 then SMI is used.

This should fix attaching sensors 4 times on old AMD machines.
OK kettenis@