Bug 199113 - boot/suspend/resume performance: int3403_driver_init needs over 330 ms to finish - Dell XPS 13 9370
Summary: boot/suspend/resume performance: int3403_driver_init needs over 330 ms to fin...
Status: REOPENED
Alias: None
Product: Power Management
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Zhang Rui
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-14 08:16 UTC by Paul Menzel
Modified: 2021-03-22 05:38 UTC (History)
3 users (show)

See Also:
Kernel Version: 4.16-rc4
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Output of `sudo dmesg` (121.22 KB, text/plain)
2018-03-14 08:16 UTC, Paul Menzel
Details
sudo acpidump -o 20180314–dell_xps_13_9370–acpidump.txt (1.12 MB, text/plain)
2018-03-14 08:17 UTC, Paul Menzel
Details

Description Paul Menzel 2018-03-14 08:16:36 UTC
Created attachment 274719 [details]
Output of `sudo dmesg`

[Follow up on https://marc.info/?l=linux-pm&m=152101275029263&w=2.]

Booting the Dell XPS 13 9370 with Linux 4.16-rc4+ and `initcall_debug`, shows it is shown that int3403_driver_init needs over 330 ms to run.

    [    2.524839] initcall int3403_driver_init+0x0/0x1000 [int3403_thermal] returned 0 after 333972 usecs

The time should be drastically reduced.

Please find all Linux messages attached.
Comment 1 Paul Menzel 2018-03-14 08:17:57 UTC
Created attachment 274721 [details]
sudo acpidump -o 20180314–dell_xps_13_9370–acpidump.txt
Comment 2 Zhang Rui 2018-05-08 02:24:46 UTC
there are 6 INT3403 device on this platform, and all of them are sensors.
I'm not sure which piece of the code takes such a long time.

hmmm, can you please try load the driver at runtime and check if we still need such a long time?
if yes, then please ftrace int3403_add to see where the time is spent?
Comment 3 Zhang Rui 2018-05-30 05:48:30 UTC
ping...
Comment 4 Chen Yu 2018-06-13 02:50:27 UTC
ping after another 2 weeks..
Comment 5 Paul Menzel 2018-06-13 20:40:52 UTC
Sorry for the late reply. The device is in active use. I’ll try to contact the user, but I thought your division has access to such a device. If not, it was my understanding that you could get such a device over Dell’s business channels.
Comment 6 Paul Menzel 2018-06-14 14:35:15 UTC
With Linux 4.16.12 from Debian Sid/unstable, after unloading the module `int3403_thermal`, according to `initcall_debug` the loading takes 17700 us, that means 17 ms. So no idea, why it takes so long during startup.
Comment 7 Zhang Rui 2020-07-01 15:12:00 UTC
On our Dell XPS 9370, this is what I get from dmesg with 5.8.0-rc3 kernel.

~$ dmesg | grep int3403_thermal
[    2.984549] calling  int3403_driver_init+0x0/0x1000 [int3403_thermal] @ 337
[    3.089154] initcall int3403_driver_init+0x0/0x1000 [int3403_thermal] returned 0 after 53599 usecs

@Paul Menzel, can you please confirm if the problem still exists in the latest upstream kernel?
Comment 9 Zhang Rui 2021-03-12 01:54:19 UTC
Let's close this so far as I didn't observe the problem on the ELL 9370 I can access.
please feel free to re-open it if you can still reproduce the problem with latest upstream kernel.
Comment 10 Paul Menzel 2021-03-12 07:18:37 UTC
I am going to try to get access to the device again.

For the archive, could you please add the system UEFI firmware version and the Linux kernel version you tested this with in your last comment?
Comment 11 Zhang Rui 2021-03-14 13:55:37 UTC
let me re-do the check this week and record down the necessary information.

Note You need to log in before you can comment on or make changes to this bug.