Bug 119871 - notebook clevo N350DW i5-6500T shutdown freeze but reboot is ok !
Summary: notebook clevo N350DW i5-6500T shutdown freeze but reboot is ok !
Status: CLOSED UNREPRODUCIBLE
Alias: None
Product: Power Management
Classification: Unclassified
Component: Other (show other bugs)
Hardware: Intel Linux
: P1 blocking
Assignee: Rafael J. Wysocki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-09 13:20 UTC by ek0892
Modified: 2016-09-02 04:21 UTC (History)
6 users (show)

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


Attachments
dmesg output 4.6.2-040602-generic (including various ACPI related errors and exceptions) (67.41 KB, text/plain)
2016-06-13 17:08 UTC, olaf.freyer
Details
dmesg output 4.7.0-040700rc3-generic (including various ACPI related errors and exceptions) (66.52 KB, text/plain)
2016-06-13 17:18 UTC, olaf.freyer
Details
Dmesg Output - Linux version 4.6.3-040603-generic (77.71 KB, text/plain)
2016-06-26 11:09 UTC, Steven M
Details
dmesg output - Kernel 4.7.0 - Containing ACPI Errors (69.08 KB, text/plain)
2016-06-29 18:30 UTC, Steven M
Details
Dmesg output after bios update - 4.7.0-040700rc7-generic (67.24 KB, text/plain)
2016-08-04 20:46 UTC, Steven M
Details

Description ek0892 2016-06-09 13:20:44 UTC
notebook clevo N350DW i5-6500T shutdown freeze but reboot is ok !
Comment 1 ek0892 2016-06-09 13:36:15 UTC
reboot : system halted
Comment 2 olaf.freyer 2016-06-13 17:05:02 UTC
I basically have the same device (Schenker F516 based upon Clevo N350DW with i7-6700T) and can report that for me, this issue isn't a regression.
I've been experiencing the shutdown freeze since my first installation of ubuntu 15.10 in december 2015. I tried various ubuntu mainline kernel builds (currently at kernel 4.6.2) and each and every kernel showed the same behaviour. (Shutdown under windows 10 works just fine.)

So far I always attributes the problem to linux ACPI issues and hoped for some changes from Lv Zheng to hit stable kernel builds (and maybe fix the problem in the near future).

What information is required to help getting this issue resolved?
Comment 3 olaf.freyer 2016-06-13 17:08:14 UTC
Created attachment 219761 [details]
dmesg output 4.6.2-040602-generic (including various ACPI related errors and exceptions)
Comment 4 olaf.freyer 2016-06-13 17:18:36 UTC
Created attachment 219771 [details]
dmesg output 4.7.0-040700rc3-generic (including various ACPI related errors and exceptions)
Comment 5 olaf.freyer 2016-06-13 17:32:12 UTC
I did some more testing:
1) using the "poweroff" command with kernel 4.6.2 causes shutdown freeze (have to power off by pressing power button for 3-5 seconds)
2) using the "poweroff" command with kernel 4.7-rc3 works as intended (system powers off)
3) using poweroff option of window manager (KDE) results in shutdown freeze with bother kernel version
Comment 6 Chen Yu 2016-06-15 07:43:37 UTC
(In reply to olaf.freyer from comment #5)
> I did some more testing:
> 1) using the "poweroff" command with kernel 4.6.2 causes shutdown freeze
> (have to power off by pressing power button for 3-5 seconds)
> 2) using the "poweroff" command with kernel 4.7-rc3 works as intended
> (system powers off)
> 3) using poweroff option of window manager (KDE) results in shutdown freeze
> with bother kernel version

Do you mean 4.7-rc3 has fixed this issue?
Comment 7 ek0892 2016-06-16 06:55:09 UTC
(In reply to Chen Yu from comment #6)
> (In reply to olaf.freyer from comment #5)
> > I did some more testing:
> > 1) using the "poweroff" command with kernel 4.6.2 causes shutdown freeze
> > (have to power off by pressing power button for 3-5 seconds)
> > 2) using the "poweroff" command with kernel 4.7-rc3 works as intended
> > (system powers off)
> > 3) using poweroff option of window manager (KDE) results in shutdown freeze
> > with bother kernel version
> 
> Do you mean 4.7-rc3 has fixed this issue?

NO, it's not exact.
Comment 8 olaf.freyer 2016-06-16 14:34:27 UTC
For my device (Schenker F516 based upon Clevo N350DW with i7-6700T) the issue has been *fixed* somewhere between kernel 4.6.x and and 4.7-rc1. I'll try to bisect it to the commit that fixed it for me.

Unfortunately some not-further-specified 4.7-rcX version of the kernel has *broken* shutdown for the original reporter of this bug (that has a very similar device/configuration).
Comment 9 Steven M 2016-06-25 15:55:33 UTC
I am actually experiencing the same problem with my Clevo350DW. The shutdown is freezing as well, and I can't get any battery information. Are there any further log / informations I can attach to help ?
Comment 10 The Linux kernel's regression tracker (Thorsten Leemhuis) 2016-06-26 10:58:45 UTC
@Rafael, do you have any idea what the reasons for the freezes on shutdown are?

@Steven: FWIW, guess it would be a good idea to at least attach the output from dmesg here.
Comment 11 Steven M 2016-06-26 11:09:52 UTC
Created attachment 221171 [details]
Dmesg Output - Linux version 4.6.3-040603-generic

Here is the result of "dmesg >dmesg.txt"
Comment 12 olaf.freyer 2016-06-26 21:58:22 UTC
Steven: have you tried any of the kernel 4.7 release candidates to see if the issue has already been fixed? (For me at least the poweroff issue has been solved since 4.7-rc1.)

@Thorsten:
Bisecting to find the fixing commit has been a bumpy ride through a world where "good means bad" and "bad means good". I presume I have done something stupid/wrong cause the bisect leads me to 9797f6b0504122e4ad9ff047a3d0521ad6706386 (Merge tag 'armsoc-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc) as the first bad (which in my case means good as in "poweroff working") commit. 
Here is my git bisect log:
# bad: [1a695a905c18548062509178b98bc91e67510864] Linux 4.7-rc1
# good: [2dcd0af568b0cf583645c8a317dd12e344b1c72a] Linux 4.6
git bisect start 'v4.7-rc1' '2dcd0af568b0cf583645c8a317dd12e344b1c72a'
# bad: [7afd16f882887c9adc69cd1794f5e57777723217] Merge tag 'pci-v4.7-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
git bisect bad 7afd16f882887c9adc69cd1794f5e57777723217
# good: [a7fd20d1c476af4563e66865213474a2f9f473a4] Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
git bisect good a7fd20d1c476af4563e66865213474a2f9f473a4
# bad: [4a5219edcdae52bfb5eea0dfc2a7bd575961dad7] Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
git bisect bad 4a5219edcdae52bfb5eea0dfc2a7bd575961dad7
# good: [ec42083b98bc7a85c736a8ae1b4c045901ed259e] ARM: dts: tango4: Import watchdog node
git bisect good ec42083b98bc7a85c736a8ae1b4c045901ed259e
# good: [9896c7b57e9d67948f1f52f903efae5ec6c74321] Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
git bisect good 9896c7b57e9d67948f1f52f903efae5ec6c74321
# good: [2ec3240fd7956fe9525c336947b4473f7276f2b1] Merge tag 'armsoc-dt64' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
git bisect good 2ec3240fd7956fe9525c336947b4473f7276f2b1
# good: [2f0e234039339784ac9b3035d13e2e125844d69d] Merge tag 'tegra-for-4.7-xhci' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into next/drivers
git bisect good 2f0e234039339784ac9b3035d13e2e125844d69d
# good: [b6e3f6d543777eec632b3639a32335e2d04768b3] Merge tag 'tegra-for-4.7-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into next/defconfig
git bisect good b6e3f6d543777eec632b3639a32335e2d04768b3
# good: [b80dc598eb997bf8a7942fa0cedc1e02001825f7] Merge tag 'at91-defconfig2' of git://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91 into next/defconfig
git bisect good b80dc598eb997bf8a7942fa0cedc1e02001825f7
# good: [601bac7638fa693204dc70035d2651474704967c] ARM: mediatek: enable gpt6 on boot up to make arch timer work on mt7623
git bisect good 601bac7638fa693204dc70035d2651474704967c
# good: [182e0842b0109aa934f1fe76b96d3a79efec3912] Merge tag 'v4.6-next-soc' of https://github.com/mbgg/linux-mediatek into next/drivers
git bisect good 182e0842b0109aa934f1fe76b96d3a79efec3912
# good: [1644de03cbc05b70d0283c570b75fe9339b375b7] Merge tag 'reset-for-4.7-2' of git://git.pengutronix.de/git/pza/linux into next/drivers
git bisect good 1644de03cbc05b70d0283c570b75fe9339b375b7
# bad: [9797f6b0504122e4ad9ff047a3d0521ad6706386] Merge tag 'armsoc-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
git bisect bad 9797f6b0504122e4ad9ff047a3d0521ad6706386
# good: [0ef659a30055e5ec914b51f5294789ea2a92b08c] ARM: aspeed: adapt defconfigs for new CONFIG_PRINTK_TIME
git bisect good 0ef659a30055e5ec914b51f5294789ea2a92b08c
# first bad commit: [9797f6b0504122e4ad9ff047a3d0521ad6706386] Merge tag 'armsoc-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc

With 9797f6b0504122e4ad9ff047a3d0521ad6706386 poweroff works just fine, with either 0ef659a30055e5ec914b51f5294789ea2a92b08c or 1644de03cbc05b70d0283c570b75fe9339b375b7 the system hangs on poweroff.
Comment 13 The Linux kernel's regression tracker (Thorsten Leemhuis) 2016-06-27 21:42:05 UTC
This bug looks quite confusing (at least to me), which lessens the chances that someone will look into this and fix it. 

I'm only here because I got the impression this was a regression in 4.7-rc; but from what I gather that doesn't look like it. At least for Olaf. Steven and ek0892, how about you? Is this working in 4.6, but broken on 4.7-rc?
Comment 14 ek0892 2016-06-28 07:01:46 UTC
(In reply to Thorsten Leemhuis from comment #13)
> This bug looks quite confusing (at least to me), which lessens the chances
> that someone will look into this and fix it. 
> 
> I'm only here because I got the impression this was a regression in 4.7-rc;
> but from what I gather that doesn't look like it. At least for Olaf. Steven
> and ek0892, how about you? Is this working in 4.6, but broken on 4.7-rc?

no working in 4.6 too
Comment 15 Steven M 2016-06-28 07:05:32 UTC
(In reply to Thorsten Leemhuis from comment #13)
> This bug looks quite confusing (at least to me), which lessens the chances
> that someone will look into this and fix it. 
> 
> I'm only here because I got the impression this was a regression in 4.7-rc;
> but from what I gather that doesn't look like it. At least for Olaf. Steven
> and ek0892, how about you? Is this working in 4.6, but broken on 4.7-rc?

I have tried to install kernel 4.7 but I'm still having a freeze at shutdown. It doesn't seem to be a regression.
Comment 16 Steven M 2016-06-29 18:30:01 UTC
Created attachment 221481 [details]
dmesg output - Kernel 4.7.0 - Containing ACPI Errors

Here is the dmesg output after upgrading to 4.7.0
Comment 17 Chen Yu 2016-07-11 01:52:26 UTC
A similar issue has once been found on Mac, https://bugzilla.kernel.org/show_bug.cgi?id=103211
how about 'halt' in grub shell?
Comment 18 Steven M 2016-07-21 19:35:33 UTC
Hi, Sorry for late answer, and thank you for your interest in my problem
I tried halt in grub shell and it works well, the computer shutdowns completely !
Comment 19 Steven M 2016-07-24 15:27:05 UTC
Hi, 

I just ran acpidump and here is the result : 

Could not open table file: /sys/firmware/acpi/tables/APIC
Could not get ACPI tables, AE_ACCESS

Can somebody tell me what this means ? Can I "create" or find somewhere the missing file ?

Steven
Comment 20 Steven M 2016-07-24 15:29:38 UTC
As well, I would like to mention that I have no battery detected, and so, no battery level. Can this have a link with this ACPI problem ?
Comment 21 guydup 2016-08-01 14:25:57 UTC
Got the same notebook, clevo N350DW, no shutdown, no battery level.Reboot ok.
Bios has update to latest:
https://repo.palkeo.com/clevo-mirror/N350DVW/
For sure acpi problem
Comment 22 guydup 2016-08-03 18:08:13 UTC
I did a bios update with this bios:
https://www.linux-onlineshop.de/forum/index.php?page=Thread&threadID=245

and all works well now
Comment 23 Steven M 2016-08-04 20:43:29 UTC
Hi guydup, 
Thanks a lot, this BIOS update seems to solve the problem. 

However, output of acpidump is still : 

Could not open table file: /sys/firmware/acpi/tables/APIC
Could not get ACPI tables, AE_ACCESS

But, most of ACPI Errors disappeared in dmesg output.

I Attach a dmseg output, just in case it can help anybody to solve anything =)

Thanks a lot again for your help !
Comment 24 Steven M 2016-08-04 20:46:26 UTC
Created attachment 227591 [details]
Dmesg output after bios update - 4.7.0-040700rc7-generic
Comment 25 Zhang Rui 2016-09-02 04:21:37 UTC
Bug closed as the problem is solve after bios upgrade.

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