Bug#869658: linux: system freezes when dell-smm-hwmon reads fan speed

2017-09-24 Thread Ben Hutchings
On Sat, 2017-08-05 at 21:15 +0200, Carmelo C wrote:
> In my system, dell-smm-hwmon is linked to the following folder:
> 
> /sys/class/hwmon/hwmon2/
> 
> The freeze occurs only when I type the following commands:
> 
> cat /sys/class/hwmon/hwmon2/fan1_input
> cat /sys/class/hwmon/hwmon2/fan2_input
> cat /sys/class/hwmon/hwmon2/fan3_input
> 
> In these commands, the freeze does not occur:
> 
> cat /sys/class/hwmon/hwmon2/temp1_input
> cat /sys/class/hwmon/hwmon2/temp2_input
> cat /sys/class/hwmon/hwmon2/temp3_input
> cat /sys/class/hwmon/hwmon2/temp4_input
> 
> In this link, more information:
> https://bugzilla.kernel.org/show_bug.cgi?id=112021

That bug report relates to label attributes, and is fixed.  It's not
the same as this bug.

Ben.

-- 
Ben Hutchings
If the facts do not conform to your theory, they must be disposed of.



signature.asc
Description: This is a digitally signed message part


Bug#869658: linux: system freezes when dell-smm-hwmon reads fan speed

2017-08-09 Thread Carmelo C
Here are the attachments, which I forgot to send in the previous email...
14:53:33.184354 execve("/bin/cat", ["cat", 
"/sys/class/hwmon/hwmon2/fan1_inp"...], [/* 43 vars */]) = 0
14:53:33.185278 brk(NULL)   = 0x8059b000
14:53:33.185442 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or 
directory)
14:53:33.185579 mmap2(NULL, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77d
14:53:33.185718 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or 
directory)
14:53:33.185847 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
14:53:33.185974 fstat64(3, {st_mode=S_IFREG|0644, st_size=88243, ...}) = 0
14:53:33.186155 mmap2(NULL, 88243, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb77ba000
14:53:33.186270 close(3)= 0
14:53:33.186388 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or 
directory)
14:53:33.186538 open("/lib/i386-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
14:53:33.186669 read(3, 
"\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\203\1\0004\0\0\0"..., 512) 
= 512
14:53:33.186789 fstat64(3, {st_mode=S_IFREG|0755, st_size=1791908, ...}) = 0
14:53:33.186907 mmap2(NULL, 1800732, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7602000
14:53:33.187023 mprotect(0xb77b3000, 4096, PROT_NONE) = 0
14:53:33.187139 mmap2(0xb77b4000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b1000) = 0xb77b4000
14:53:33.187289 mmap2(0xb77b7000, 10780, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb77b7000
14:53:33.187432 close(3)= 0
14:53:33.187593 set_thread_area({entry_number:-1, base_addr:0xb77d2800, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0 (entry_number:6)
14:53:33.187894 mprotect(0xb77b4000, 8192, PROT_READ) = 0
14:53:33.188110 mprotect(0x8000e000, 4096, PROT_READ) = 0
14:53:33.188243 mprotect(0xb77fa000, 4096, PROT_READ) = 0
14:53:33.188368 munmap(0xb77ba000, 88243) = 0
14:53:33.188750 brk(NULL)   = 0x8059b000
14:53:33.188867 brk(0x805bc000) = 0x805bc000
14:53:33.189003 open("/usr/lib/locale/locale-archive", 
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
14:53:33.189161 fstat64(3, {st_mode=S_IFREG|0644, st_size=1679440, ...}) = 0
14:53:33.189294 mmap2(NULL, 1679440, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7467000
14:53:33.189439 close(3)= 0
14:53:33.189662 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), 
...}) = 0
14:53:33.189795 open("/sys/class/hwmon/hwmon2/fan1_input", 
O_RDONLY|O_LARGEFILE) = 3
14:53:33.189965 fstat64(3, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
14:53:33.190136 fadvise64_64(3, 0, 0, POSIX_FADV_SEQUENTIAL) = 0
14:53:33.190261 mmap2(NULL, 139264, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7445000
14:53:33.190385 read(3, "2837\n", 131072) = 5
14:53:35.115446 write(1, "2837\n", 5)   = 5
14:53:35.115603 read(3, "", 131072) = 0
14:53:35.115649 munmap(0xb7445000, 139264) = 0
14:53:35.115697 close(3)= 0
14:53:35.115747 close(1)= 0
14:53:35.115784 close(2)= 0
14:53:35.115827 exit_group(0)   = ?
14:53:35.115963 +++ exited with 0 +++
14:53:47.963322 execve("/bin/cat", ["cat", 
"/sys/class/hwmon/hwmon2/fan2_inp"...], [/* 43 vars */]) = 0
14:53:47.964377 brk(NULL)   = 0x80209000
14:53:47.964555 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or 
directory)
14:53:47.964697 mmap2(NULL, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77ac000
14:53:47.964831 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or 
directory)
14:53:47.964960 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
14:53:47.965090 fstat64(3, {st_mode=S_IFREG|0644, st_size=88243, ...}) = 0
14:53:47.965208 mmap2(NULL, 88243, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7796000
14:53:47.965320 close(3)= 0
14:53:47.965435 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or 
directory)
14:53:47.965577 open("/lib/i386-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
14:53:47.965705 read(3, 
"\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\203\1\0004\0\0\0"..., 512) 
= 512
14:53:47.965825 fstat64(3, {st_mode=S_IFREG|0755, st_size=1791908, ...}) = 0
14:53:47.965943 mmap2(NULL, 1800732, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb75de000
14:53:47.966108 mprotect(0xb778f000, 4096, PROT_NONE) = 0
14:53:47.966227 mmap2(0xb779, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b1000) = 0xb779
14:53:47.966381 mmap2(0xb7793000, 10780, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7793000
14:53:47.966525 close(3)= 0
14:53:47.966685 set_thread_area({entry_number:-1, base_addr:0xb77ae800, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0 (entry_number:6)
14:53:47.966955 mprotect(0xb779, 8192, P

Bug#869658: linux: system freezes when dell-smm-hwmon reads fan speed

2017-08-09 Thread Carmelo C
Package: linux-image-4.9.0-3-686-pae
Version: 4.9.30-2+deb9u3
Severity: important
Justification: linux: Debian system freezes when dell-smm-hwmon reads fan
speed

I runned the following commands, and attach their outputs:

strace -o strace_hwmon_fan1_output.txt -tt cat
/sys/class/hwmon/hwmon2/fan1_input

strace -o strace_hwmon_fan2_output.txt -tt cat
/sys/class/hwmon/hwmon2/fan2_input

strace -o strace_hwmon_fan3_output.txt -tt cat
/sys/class/hwmon/hwmon2/fan3_input

The execution times of these commands are:

fan1: 1,931609 seconds
fan2: 1,92 seconds
fan3: 1,930267 seconds

In these intervals, the temporary freeze of the Debian operating system
occurs


Bug#869658: linux: system freezes when dell-smm-hwmon reads fan speed

2017-08-05 Thread Carmelo C
In my system, dell-smm-hwmon is linked to the following folder:

/sys/class/hwmon/hwmon2/

The freeze occurs only when I type the following commands:

cat /sys/class/hwmon/hwmon2/fan1_input
cat /sys/class/hwmon/hwmon2/fan2_input
cat /sys/class/hwmon/hwmon2/fan3_input

In these commands, the freeze does not occur:

cat /sys/class/hwmon/hwmon2/temp1_input
cat /sys/class/hwmon/hwmon2/temp2_input
cat /sys/class/hwmon/hwmon2/temp3_input
cat /sys/class/hwmon/hwmon2/temp4_input

In this link, more information:
https://bugzilla.kernel.org/show_bug.cgi?id=112021


Bug#869658: linux: system freezes when dell-smm-hwmon reads fan speed

2017-07-27 Thread Carmelo C
The problem I do not think is in the bios,
I run the HWinfo32 software on windows 7 and the fan value is read
continuously and correctly (in attachment)

In Debian, I would also like to point out that three fans are detected:

Fan Processor:
fan2:
fan3:

While my Dell Studio 1537 notebook has a single fan belonging to the
component that
manages the heat dissipation of the processor and the video card.
Heatsink component: DP/N 0M139C

I also noticed that sometimes sensors show too much value for the value
fan3: 40981 RPM

dell_smm-virtual-0
Adapter: Virtual device
Processor Fan: 2837 RPM
fan2:  2833 RPM
fan3:  40981 RPM
CPU:+41.0°C
CPU:+52.0°C
Other:  +49.0°C
GPU:+57.0°C


I would also like to know what temperature should I consider ?:

dell_smm-virtual-0
acpitz-virtual-0
coretemp-isa-

I hope this bug of the "dell_smm_hwmon" module can be solved,
I would not give up reading the correct temperature and fan values.


hwinfo32_5.54_log.ods
Description: application/vnd.oasis.opendocument.spreadsheet