Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

From: Tomi Sarvela
Date: Fri Jul 28 2017 - 09:26:31 EST


On 28/07/17 16:15, Thomas Gleixner wrote:
On Fri, 28 Jul 2017, Thomas Gleixner wrote:
On Fri, 28 Jul 2017, Tomi Sarvela wrote:
On 28/07/17 00:08, Thomas Gleixner wrote:
The patch didn't apply cleanly: can you tell exact commit or tag it has been
created against?

Linus head

I tried to hand-wrangle the changes in, but then I got compilation
errors:

Sorry, forgot to refresh the patch. Working version below.

Also, the usage of /sys/power/pm_test was not intuitive to me. Can you explain
which kind of combinations do you want to test?

This tested against just fetched 4.13.0-rc2 origin/master.

# echo freezer >/sys/power/pm_test
# echo mem >/sys/power/state

Works.

# echo devices >/sys/power/pm_test
# echo mem >/sys/power/state

Works.

# echo platform >/sys/power/pm_test
# echo mem >/sys/power/state

Works.

To reset the test stuff do:
# echo none >/sys/power/pm_test

Please try that before applying the debug patch.

Going with the suspend test, and it still leaves host dead.

root@elk:/opt/igt# ./tests/gem_exec_suspend --r basic-S3
IGT-Version: 1.19-gf1454751 (x86_64) (Linux: 4.13.0-rc2+ x86_64)
rtcwake: wakeup from "mem" using /dev/rtc0 at Fri Jul 28 13:21:27 2017

Another question. Is the machine completely dead or not?

Completely dead. Powerled is on, so host isn't shut down. Serial or network if don't give any signs of life.

Patch applies cleanly but still getting the same error:
LD vmlinux.o
kernel/irq/handle.o:(.bss+0x0): multiple definition of `irq_suspend_resume'
kernel/irq/irqdesc.o:(.bss+0x0): first defined here
kernel/irq/manage.o:(.bss+0x8): multiple definition of `irq_suspend_resume'
kernel/irq/irqdesc.o:/home/testrunner/kernel/kernel/irq/irqdesc.c:270: first defined here
kernel/irq/spurious.o:(.bss+0x0): multiple definition of `irq_suspend_resume'
kernel/irq/irqdesc.o:/home/testrunner/kernel/kernel/irq/irqdesc.c:270: first defined here
kernel/irq/resend.o:(.bss+0x0): multiple definition of `irq_suspend_resume'
kernel/irq/irqdesc.o:/home/testrunner/kernel/kernel/irq/irqdesc.c:270: first defined here
kernel/irq/chip.o:(.bss+0x0): multiple definition of `irq_suspend_resume'
kernel/irq/irqdesc.o:/home/testrunner/kernel/kernel/irq/irqdesc.c:270: first defined here
kernel/irq/dummychip.o:(.bss+0x0): multiple definition of `irq_suspend_resume'
kernel/irq/irqdesc.o:/home/testrunner/kernel/kernel/irq/irqdesc.c:270: first defined here
kernel/irq/devres.o:(.bss+0x0): multiple definition of `irq_suspend_resume'
kernel/irq/irqdesc.o:/home/testrunner/kernel/kernel/irq/irqdesc.c:270: first defined here
kernel/irq/autoprobe.o:(.bss+0x0): multiple definition of `irq_suspend_resume'
kernel/irq/irqdesc.o:/home/testrunner/kernel/kernel/irq/irqdesc.c:270: first defined here
kernel/irq/proc.o:(.bss+0x4): multiple definition of `irq_suspend_resume'
kernel/irq/irqdesc.o:/home/testrunner/kernel/kernel/irq/irqdesc.c:270: first defined here
kernel/irq/migration.o:(.bss+0x0): multiple definition of `irq_suspend_resume'
kernel/irq/irqdesc.o:/home/testrunner/kernel/kernel/irq/irqdesc.c:270: first defined here
kernel/irq/cpuhotplug.o:(.bss+0x0): multiple definition of `irq_suspend_resume'
kernel/irq/irqdesc.o:/home/testrunner/kernel/kernel/irq/irqdesc.c:270: first defined here
kernel/irq/pm.o:(.bss+0x0): multiple definition of `irq_suspend_resume'
kernel/irq/irqdesc.o:/home/testrunner/kernel/kernel/irq/irqdesc.c:270: first defined here


Best regards,

Tomi
--
Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo