frankcrawford / it87

202 stars 39 forks source link

Something is wrong with th it8625e support. #20

Open shamefulCake1 opened 4 months ago

shamefulCake1 commented 4 months ago

The $SUBJ chip seems to be supported, and there are a lot of mentions of it in the two patches-differences between this fork and the mainline.

However, even though the module loads successfully and find the chip:

[Mar30 22:34] it87: it87 driver version v1.0-154-gf40148e.20240306
[  +0.000316] it87: Found IT8625E chip at 0xa20, revision 12
[  +0.000056] it87: Beeping is supported

the sensors command does not query it:

>sensors
sensors
acpitz-acpi-0
Adapter: ACPI interface
temp1:        +27.8°C  
temp2:        +29.8°C  

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +38.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +37.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +39.0°C  (high = +100.0°C, crit = +100.0°C)

no mention of the it-8625-* anything chip.

Is there some kind of a trivial switch which should be turned on?

And I seem to be not the only one:

https://forum.manjaro.org/t/modprobe-refuses-to-load-driver/39066

frankcrawford commented 3 months ago

@shamefulCake1 sorry, I've been busy for the last month or two and haven't been checking issues.

Anyway, I think your issue is that you has is a fairly simple issue, you are probably running into ACPI blocking loading, and you can see this in the kernel messages just following the ones above.

A quick test is to try modprobe it87 ignore_resource_conflict=1

If that works, see my comments I've just added to issue #21 for a fix on boot.

A couple of other items from the link you listed, it looks like manjaro has two separate it87 packages, and most modern chips are probably only in the package based on my repo (it87-frankcrawford-dkms-git ?). However, you do seem to have loaded, so that isn't an issue.

Secondly, unfortunately sensor-detect only detects chips that are in the official kernel, not in my repo, and that is not something I am currently chasing, as I'm trying to get the official module updated first (which is a not a simple process).

shamefulCake1 commented 3 months ago

A quick test is to try modprobe it87 ignore_resource_conflict=1

No, this does not help. Of course I tried it before. Same effect: the module loads correctly, but sensors produces no additional output (even with bogus numbers).

frankcrawford commented 3 months ago

@shamefulCake1 can you run lsmod | grep it87 and make sure that the it87 module is loaded.

shamefulCake1 commented 3 months ago

Yes, it is loaded, and dmesg still says:

[763650.554094] it87: it87 driver version v1.0-156-gdcc0c5f.20240427
[763650.554197] it87: Found IT8625E chip at 0xa20, revision 12
[763650.554228] it87: Beeping is supported
frankcrawford commented 3 months ago

But the check is that the module is still loaded, hence testing with lsmod.

Secondly, can you try cat /sys/class/hwmon/hwmon*/name and see what sensors the kernel thinks exist.

frankcrawford commented 3 months ago

BTW, what are the lines just after it87 in dmesg?

shamefulCake1 commented 3 months ago
root@pi:/etc/modprobe.d# lsmod | grep it87
it87                   73728  0
hwmon_vid              16384  1 it87
2024-04-27T18:35:27+08:00|0|.024201|
root@pi:/etc/modprobe.d# cat /sys/class/hwmon/hwmon*/name
acpitz
coretemp
frankcrawford commented 3 months ago

What motherboard do you have, what distribution are you running?

shamefulCake1 commented 3 months ago

Intel NUC J3455, cpu Intel(R) Core(TM) i3-4012Y CPU @ 1.50GHz

Slackware 15.0

it87 from dkms, from this repo

frankcrawford commented 3 months ago

Hmm, unusual combination. How much do you know about the hardware itself? Do you know if Intel have actually implemented the hwmon functions of the IT8625E?

SuperIO chips (of which is one) implement many hardware low-level functions in the one chip, but nothing says that they all have to be used on every board.

Does the board have an onboard fan?

shamefulCake1 commented 3 months ago

Do you know if Intel have actually implemented the hwmon functions of the IT8625E?

No, I don't.

Does the board have an onboard fan?

Well, not in stock. This was actually a problem, since this machine used to overheat to the point of hanging the it87 watchdog function. (I.e., it hang, and even the it87 watchdog, which I am sure is present, couldn't reboot it.)

This is actually why I wanted to investigate this driver, because I thought that this would let me monitor the watchdog chip's temperature instead of the cpu temperature.

The BIOS utility has the interface for the fan control, so the motherboard might actually support a fan, it's just that the device didn't have one in stock.

frankcrawford commented 3 months ago

Can you also run sudo isadump -k 0x87,0x01,0x55,0x55 0x2e 0x2f 7 and let me see what comes up.

shamefulCake1 commented 3 months ago
isadump -k 0x87,0x01,0x55,0x55 0x2e 0x2f 7
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x2e and data register 0x2f.
Probing bank 7 using bank register 0x07.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: 00 00 00 00 00 00 00 07 00 00 00 00 00 00 00 00 
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
20: 86 25 0c 49 00 00 00 00 00 01 01 48 41 06 00 00 
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
60: 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 
70: 00 00 80 78 00 04 00 00 00 00 00 00 00 00 00 00 
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
90: ff ff ff ff ff ff ff ff 00 00 00 00 00 00 00 00 
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
b0: 00 00 00 00 00 00 00 00 00 00 00 00 c0 03 00 00 
c0: 01 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 
d0: 00 00 00 00 00 00 00 00 00 00 b0 44 00 00 00 00 
e0: 00 00 00 00 00 00 00 10 00 1d d1 dc 00 00 40 04 
f0: 00 00 00 00 00 00 0e 00 00 00 00 00 7c 00 00 00 
frankcrawford commented 3 months ago

Give me some time to analyse that to see what it is reporting.

shamefulCake1 commented 3 months ago

Absolutely. If can somehow help, just tell me.