You are not logged in.

#26 2018-05-20 15:48:12

azara
Member
Registered: 2018-05-20
Posts: 4

Re: system freeze after upgrade to linux 4.16.3-1

Same problem here on a Toshiba Z30-B laptop (i7). The freeze only appears when the internal display is in use.

Offline

#27 2018-05-26 06:17:02

stoychod
Member
Registered: 2015-02-19
Posts: 5

Re: system freeze after upgrade to linux 4.16.3-1

I think I found the reason for system freezing with 4.16*(at least in my case)! It is the new default setting of SATA Active Link Power Management - Power management - ArchWiki. I set it back to max_performance (the default setting is med_power_with_dipm since 4.16* kernels) and I haven't had a single freeze in two days with the newest kernel! It would be nice to know if ti is the chipset itself (Intel i5 Broadwell) that can't handle power saving or it is the Samsung 850 Evo SSD inside my laptop that doesn't like it and if the problem can be fixed somehow as the difference in power consumption is significant! When power saving on Powertop reports power consumption of less than 3.5W when idle and when off - about 5.5W!!! About 2W difference.. Any ideas guys?

Offline

#28 2018-05-26 08:05:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,278

Re: system freeze after upgrade to linux 4.16.3-1

Samsung SSDs are notorious for issues with the SATA Link power management, it's definitely the SSD that doesn't handle it.

Online

#29 2018-05-28 16:08:57

jolabrycol
Member
Registered: 2018-05-14
Posts: 6

Re: system freeze after upgrade to linux 4.16.3-1

The problem still persists with 4.16.11 on my side

@stoychod : I will still try the solution you indicated, with the 4.16.12 kernel.

I will keep you informed

Offline

#30 2018-05-29 17:42:54

jolabrycol
Member
Registered: 2018-05-14
Posts: 6

Re: system freeze after upgrade to linux 4.16.3-1

The problem is solved on my side since kernel 4.16.12 and the power management tip.
No crash since yesterday.
But I do not know which one solved it...

Offline

#31 2018-05-29 20:58:37

stoychod
Member
Registered: 2015-02-19
Posts: 5

Re: system freeze after upgrade to linux 4.16.3-1

jolabrycol wrote:

The problem is solved on my side since kernel 4.16.12 and the power management tip.
No crash since yesterday.
But I do not know which one solved it...

Just for you, I switched back to the default setting (I am on the same kernel) and it took about 15 min to get another crash... So I am 99.99% sure it is the new default ALPM setting(at least for me)... On top of that I recall some time ago (probably at least 2 years , had just bought the laptop and installed Arch) I had exactly the same crashes. It was driving me crazy until I figured it was some power tweak from TLP. At the time I didn't bother figuring out wich one exactly and just uninstalled it. Now I realize it must've been setting ALPM to min_power (med_power_with_dipm wasn't available ta the time as fa ras I remember)! By the way, I have been testing ALPM set to medium_power for a couple of days and no crashes so far! So you can give it a try (to get at lest some power saving). Would you mind sharing what HDD/SSD you have on your machine, by the way? As V1del suggests it is probably my SSD not being able to handle SATA power saving so I am curious about yours....

@V1del Thanks a lot, mate , good to know that...

Offline

#32 2018-05-29 21:46:50

jolabrycol
Member
Registered: 2018-05-14
Posts: 6

Re: system freeze after upgrade to linux 4.16.3-1

Thank you for the informations and for making the manipulation

HDD infos :

Model Family:     Toshiba 2.5" HDD MQ01ABD...
Device Model:     TOSHIBA MQ01ABD100
Firmware Version: AX1P4M
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    5400 rpm
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s (current: 3.0 Gb/s)

Offline

#33 2018-05-31 17:12:59

azara
Member
Registered: 2018-05-20
Posts: 4

Re: system freeze after upgrade to linux 4.16.3-1

I'd like to verify that the ALPM setting really is the culprit, but as of 4.16.11-1, the freeze is really hard to reproduce (but it's still there).

- If anyone has a tip on how to provoke ALPM-related errors, then please leave a note. My naive approach to loop "read/write --> drop caches --> sleep a few secs" did not do the trick.

- My system also has a Samsung 850 EVO SSD, so that fits the picture. However, I cannot understand that the system is 100% stable when running on AC power && using external display && wired network (I double checked that link_power_management_policy is med_power_with_dipm when on AC power).

Last edited by azara (2018-05-31 18:46:58)

Offline

#34 2018-05-31 17:19:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,278

Re: system freeze after upgrade to linux 4.16.3-1

FWIW med_power_with_dpm is definitely not the default without any other configuration. It is the default of newer versions of TLP, but not from kernel config itself.

Apparently not, see below

Last edited by V1del (2018-05-31 19:34:16)

Online

#35 2018-05-31 18:38:40

novica
Member
Registered: 2013-04-29
Posts: 20

Re: system freeze after upgrade to linux 4.16.3-1

No freezes so far on 4.16.12-1

Update: yes an hour of work and it froze again.

Last edited by novica (2018-05-31 19:33:31)

Offline

#36 2018-05-31 18:40:48

azara
Member
Registered: 2018-05-20
Posts: 4

Re: system freeze after upgrade to linux 4.16.3-1

V1del wrote:

FWIW med_power_with_dpm is definitely not the default without any other configuration.

Hm, I think it is (running linux 4.16.11-1):

$ zgrep LPM /proc/config.gz
CONFIG_SATA_MOBILE_LPM_POLICY=3

"3" maps to "Medium power with Device Initiated PM enabled" acc. to kernel sources.

Am I missing something?

Offline

#37 2018-05-31 19:33:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,278

Re: system freeze after upgrade to linux 4.16.3-1

Ouh, it is! I just double checked quickly on my desktop didn't know they would do that kind of distinction, sorry for the noise.

Online

#38 2018-05-31 19:34:35

stoychod
Member
Registered: 2015-02-19
Posts: 5

Re: system freeze after upgrade to linux 4.16.3-1

azara wrote:
V1del wrote:

FWIW med_power_with_dpm is definitely not the default without any other configuration.

Hm, I think it is (running linux 4.16.11-1):

$ zgrep LPM /proc/config.gz
CONFIG_SATA_MOBILE_LPM_POLICY=3

"3" maps to "Medium power with Device Initiated PM enabled" acc. to kernel sources.

Am I missing something?

Also from ArchWiki:

Since Linux 4.15 there is a new setting called med_power_with_dipm that matches the behaviour of Windows IRST driver settings and should not cause data loss with recent SSD/HDD drives. The power saving can be significant, ranging from 1.0 to 1.5 Watts (when idle).It will become a default setting for Intel based laptops in Linux 4.16 [5]

As I mentioned earlier I've got two Intel based laptops and can confirm that without any configuration form my side the old one defaults to min_power and the new one to med_power_with_dipm and both have the:

CONFIG_SATA_MOBILE_LPM_POLICY=3

in their kernel config!
I rarely use my laptop connected to AC so I don't know if that makes any difference but I can give it a try and see if the system still crashes...

Offline

#39 2018-05-31 20:12:41

loqs
Member
Registered: 2014-03-06
Posts: 18,056

Re: system freeze after upgrade to linux 4.16.3-1

stoychod wrote:

As I mentioned earlier I've got two Intel based laptops and can confirm that without any configuration form my side the old one defaults to min_power and the new one to med_power_with_dipm and both have the:

CONFIG_SATA_MOBILE_LPM_POLICY=3

in their kernel config!

As you noted the following if must evaluate to true for mobile_lpm_policy so for the old laptop it would indicate it does not assuming both are using 4.15+

		if ((hpriv->flags & AHCI_HFLAG_IS_MOBILE) &&
		    mobile_lpm_policy >= ATA_LPM_UNKNOWN &&
		    mobile_lpm_policy <= ATA_LPM_MIN_POWER)
			ap->target_lpm_policy = mobile_lpm_policy;

Offline

#40 2018-06-08 18:54:42

Charn Xuli
Member
Registered: 2018-06-06
Posts: 6

Re: system freeze after upgrade to linux 4.16.3-1

Also seem to have the same symptoms on a Lenovo Thinkpad 11e (1st gen). Originally installed Arch on it a few days ago and have had three freezes so far.

Update: no freezes since installing linux-lts kernel a few days ago (not long enough to be sure yet, though).

Another update: Got a freeze with linux-lts, now trying stoychod's fix.

Last edited by Charn Xuli (2018-06-11 11:36:00)

Offline

#41 2018-06-12 19:22:18

Charn Xuli
Member
Registered: 2018-06-06
Posts: 6

Re: system freeze after upgrade to linux 4.16.3-1

Got another freeze after stoychod's fix. Will now cease using Arch Linux on this machine, so that I can detect whether other Linux distros have a similar problem.

Now believe the freezing was caused by a faulty SATA hard drive.

Last edited by Charn Xuli (2018-06-17 18:42:24)

Offline

#42 2018-06-13 19:33:20

azara
Member
Registered: 2018-05-20
Posts: 4

Re: system freeze after upgrade to linux 4.16.3-1

Definitely no more freeze here with ALPM set to max_performance. Thanks stoychod for the hint! My next SSD won't have a SAMSUNG tag for sure...

Last edited by azara (2018-06-13 19:33:37)

Offline

#43 2018-06-21 12:21:50

murchik
Member
Registered: 2013-05-08
Posts: 6

Re: system freeze after upgrade to linux 4.16.3-1

Have anyone tried the 4.17 kernel yet? Does it have the same issue?

Offline

#44 2018-06-21 15:30:36

HaCeMei
Member
Registered: 2013-03-24
Posts: 37

Re: system freeze after upgrade to linux 4.16.3-1

Charn Xuli wrote:

Also seem to have the same symptoms on a Lenovo Thinkpad 11e (1st gen).

Thinkpad 11e has a Intel Celeron N2940 Processor = Baytrail. There is  a well known bug. Baytrail doesn't handle c-states correctly. See:


No new thing under the sun

Offline

#45 2018-06-22 19:50:03

Charn Xuli
Member
Registered: 2018-06-06
Posts: 6

Re: system freeze after upgrade to linux 4.16.3-1

HaCeMei wrote:

Thinkpad 11e has a Intel Celeron N2940 Processor = Baytrail. There is  a well known bug.

Thanks, I obviously wasn't aware of this.

I tried installing several other linux distros on the SATA hard drive and got freezes so then tried installing Arch on a USB flash drive. After debugging the touchpad, sound and dhcpd (mostly using questions from this forum and modprobe blacklisting), everything's working perfectly (with a reasonable amount of testing time behind it, although a freeze is still possible I suppose).

Now trying the suggested fix.

Update: As identified by HaCeMei, the Lenovo Thinkpad 11e (1st gen) freezing was caused by the Baytrail bug and seemingly wasn't related to this kernel update.

Last edited by Charn Xuli (2018-07-04 12:34:13)

Offline

#46 2018-07-05 17:27:37

novica
Member
Registered: 2013-04-29
Posts: 20

Re: system freeze after upgrade to linux 4.16.3-1

azara wrote:

Definitely no more freeze here with ALPM set to max_performance.

No freezes for me as well with ALPM set to max_performance.

Offline

#47 2018-10-13 20:14:35

malcontent
Member
Registered: 2017-09-27
Posts: 12

Re: system freeze after upgrade to linux 4.16.3-1

jolabrycol wrote:

Hi
Same problem 4.16.8-1-ck-broadwell
This has been happening for a few days, especially when I'm browsing with firefox

I have the same problem with my T450, it still happens even with the latest kernel: 4.18.12-arch1-1-ARCH.

Does anyone knows if it's related to tpm? Because I see some TPM error messages in dmesg, my T450 is broadwell as well.

Last edited by malcontent (2018-10-13 20:21:40)

Offline

#48 2018-10-20 22:52:48

malcontent
Member
Registered: 2017-09-27
Posts: 12

Re: system freeze after upgrade to linux 4.16.3-1

I've tried disabling TPM on the BIOS, and while the dmesg error is gone, I still got a freeze after a week of using my laptop.

Offline

#49 2018-10-21 01:00:49

malcontent
Member
Registered: 2017-09-27
Posts: 12

Re: system freeze after upgrade to linux 4.16.3-1

Just switched /sys/class/scsi_host/host*/link_power_management_policy to max_performance, we'll see how it goes.

Offline

Board footer

Powered by FluxBB