All of lore.kernel.org
 help / color / mirror / Atom feed
* PROBLEM: Keyboard not responding after resuming from suspend/hibernate
@ 2018-08-31 18:53 Numan Demirdöğen
  2018-08-31 19:16 ` Peter Zijlstra
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Numan Demirdöğen @ 2018-08-31 18:53 UTC (permalink / raw)
  To: peterz; +Cc: mingo, linux-kernel

If I put laptop to suspend or hibernate by closing lid, power
manager or any other method and then I resume/wake up laptop, keyboard
is not responding. My laptop is a Sony Vaio VPCEH2F1E. 

Steps to produce bug:
1. Boot
2. Put laptop to sleep
3. Resume

What I expect to happen: Keyboard responds to key press.
What happens: Keyboard does not respond but mouse and trackball are
working.

git bisect point 9d659ae14b545c4296e812c70493bfdc999b5c1c as the first
bad commit.

Bad commit link:
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=9d659ae14b545c4296e812c70493bfdc999b5c1c

 Link to actual bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=195471

awk -f ver_linux
Linux korsan 4.18.5-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 24 12:48:58 UTC 2018 x86_64 GNU/Linux
GNU C               	8.2.0
GNU Make            	4.2.1
Binutils            	2.31.1
Util-linux          	2.32.1
Mount               	2.32.1
Module-init-tools   	25
E2fsprogs           	1.44.4
Jfsutils            	1.1.15
Reiserfsprogs       	3.6.27
Xfsprogs            	4.17.0
Pcmciautils         	018
Linux C Library     	2.28
Dynamic linker (ldd)	2.28
Linux C++ Library   	6.0.25
Procps              	3.3.15
Kbd                 	2.0.4
Console-tools       	2.0.4
Sh-utils            	8.29
Udev                	239
Wireless-tools      	30
Modules Loaded      	ac agpgart ahci arc4 ath ath3k ath9k ath9k_common ath9k_hw atkbd battery bluetooth bpfilter ccm cdrom cfg80211 coretemp crc16 crc32c_generic crc32c_intel crc32_pclmul crct10dif_pclmul cryptd drm drm_kms_helper ecdh_generic ehci_hcd ehci_pci evdev ext4 fb_sys_fops fscrypto fuse ghash_clmulni_intel gpio_ich hid hid_generic i2c_algo_bit i2c_i801 i8042 i915 input_leds intel_cstate intel_gtt intel_powerclamp intel_rapl intel_rapl_perf intel_uncore iptable_filter iptable_mangle iptable_nat ip_tables irqbypass iTCO_vendor_support iTCO_wdt jbd2 kvm kvm_intel led_class libahci libata libcrc32c libps2 lpc_ich mac80211 mac_hid mbcache mei mei_me mousedev msr nf_conntrack nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat nf_nat_ipv4 pcc_cpufreq psmouse rfkill rtc_cmos scsi_mod sd_mod serio serio_raw snd snd_hda_codec snd_hda_codec_conexant snd_hda_codec_generic snd_hda_codec_hdmi snd_hda_core snd_hda_intel snd_hwdep snd_pcm snd_timer sony_laptop soundcore sr_mod syscopyarea sysfillrect sysimgblt usb_common usbcore usbhid x86_pkg_temp_thermal x_tables

dmesg | grep i8042
[    0.574078] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
[    0.575936] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.576143] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.618880] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
[   11.248435] input: AlpsPS/2 ALPS GlidePoint as /devices/platform/i8042/serio1/input/input5

cat /proc/interrupts 
           CPU0       CPU1       CPU2       CPU3       
  0:          8          0          0          0   IO-APIC   2-edge      timer
  1:          0          0          0      10286   IO-APIC   1-edge      i8042
  8:          0          0          0          1   IO-APIC   8-edge      rtc0
  9:          0       9479          0          0   IO-APIC   9-fasteoi   acpi
 12:          0          0     370114          0   IO-APIC  12-edge      i8042
 16:     197457          0          0          0   IO-APIC  16-fasteoi   ehci_hcd:usb1, ath9k
 19:          0          0          0          0   IO-APIC  19-fasteoi   i801_smbus
 23:          0          0      71055          0   IO-APIC  23-fasteoi   ehci_hcd:usb2
 24:          0      74549          0          0   PCI-MSI 512000-edge      ahci[0000:00:1f.2]
 25:          0         14          0          0   PCI-MSI 360448-edge      mei_me
 26:          0          0     138870          0   PCI-MSI 32768-edge      i915
 27:          0          0          0        330   PCI-MSI 442368-edge      snd_hda_intel:card0
NMI:         24         22         25         21   Non-maskable interrupts
LOC:     534734     446934     603337     440320   Local timer interrupts
SPU:          0          0          0          0   Spurious interrupts
PMI:         24         22         25         21   Performance monitoring interrupts
IWI:         26         12      43115         22   IRQ work interrupts
RTR:          0          0          0          0   APIC ICR read retries
RES:      95282      76970      60242      46409   Rescheduling interrupts
CAL:      66746      75300      70554      69119   Function call interrupts
TLB:      50929      54528      51413      48017   TLB shootdowns
TRM:          0          0          0          0   Thermal event interrupts
THR:          0          0          0          0   Threshold APIC interrupts
DFR:          0          0          0          0   Deferred Error APIC interrupts
MCE:          0          0          0          0   Machine check exceptions
MCP:         18         19         19         19   Machine check polls
HYP:          0          0          0          0   Hypervisor callback interrupts
HRE:          0          0          0          0   Hyper-V reenlightenment interrupts
HVS:          0          0          0          0   Hyper-V stimer0 interrupts
ERR:          0
MIS:          0
PIN:          0          0          0          0   Posted-interrupt notification event
NPI:          0          0          0          0   Nested posted-interrupt event
PIW:          0          0          0          0   Posted-interrupt wakeup event

P.S: My native language is not English.

-- 
Numan Demirdöğen

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PROBLEM: Keyboard not responding after resuming from suspend/hibernate
  2018-08-31 18:53 PROBLEM: Keyboard not responding after resuming from suspend/hibernate Numan Demirdöğen
@ 2018-08-31 19:16 ` Peter Zijlstra
  2018-08-31 19:38   ` Numan Demirdöğen
  2018-09-03  8:53 ` Numan Demirdöğen
  2018-10-19  7:20 ` Fw: " Numan Demirdöğen
  2 siblings, 1 reply; 13+ messages in thread
From: Peter Zijlstra @ 2018-08-31 19:16 UTC (permalink / raw)
  To: Numan Demirdöğen; +Cc: mingo, linux-kernel, Rafael J. Wysocki

On Fri, Aug 31, 2018 at 09:53:11PM +0300, Numan Demirdöğen wrote:
> If I put laptop to suspend or hibernate by closing lid, power
> manager or any other method and then I resume/wake up laptop, keyboard
> is not responding. My laptop is a Sony Vaio VPCEH2F1E. 
> 
> Steps to produce bug:
> 1. Boot
> 2. Put laptop to sleep
> 3. Resume
> What I expect to happen: Keyboard responds to key press.
> What happens: Keyboard does not respond but mouse and trackball are
> working.
> 
> git bisect point 9d659ae14b545c4296e812c70493bfdc999b5c1c as the first
> bad commit.
> 
> Bad commit link:
> https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=9d659ae14b545c4296e812c70493bfdc999b5c1c

That doesn't make any kind of sense... if that commit had trouble (oddly
there is one another report fingering this) all the mutex locking should
be busted (and there is a _lot_ of that in the kernel).

I really wouldn't know where to begin debugging this. Suspend/resume
isn't really something I know much of, all I can say it that it works on
my laptop.

Rafael, any idea where to start looking for this?

>  Link to actual bug report:
> https://bugzilla.kernel.org/show_bug.cgi?id=195471

No, _this_ is the actual report, that is a random website you put stuff
on.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PROBLEM: Keyboard not responding after resuming from suspend/hibernate
  2018-08-31 19:16 ` Peter Zijlstra
@ 2018-08-31 19:38   ` Numan Demirdöğen
  0 siblings, 0 replies; 13+ messages in thread
From: Numan Demirdöğen @ 2018-08-31 19:38 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: mingo, linux-kernel, Rafael J. Wysocki

Fri, 31 Aug 2018 21:16:11 +0200 tarihinde
Peter Zijlstra <peterz@infradead.org> yazdı:

>On Fri, Aug 31, 2018 at 09:53:11PM +0300, Numan Demirdöğen wrote:
>> If I put laptop to suspend or hibernate by closing lid, power
>> manager or any other method and then I resume/wake up laptop,
>> keyboard is not responding. My laptop is a Sony Vaio VPCEH2F1E. 
>> 
>> Steps to produce bug:
>> 1. Boot
>> 2. Put laptop to sleep
>> 3. Resume
>> What I expect to happen: Keyboard responds to key press.
>> What happens: Keyboard does not respond but mouse and trackball are
>> working.
>> 
>> git bisect point 9d659ae14b545c4296e812c70493bfdc999b5c1c as the
>> first bad commit.
>> 
>> Bad commit link:
>> https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=9d659ae14b545c4296e812c70493bfdc999b5c1c  

Hi,

Thank you for looking into this problem!
>
>That doesn't make any kind of sense... if that commit had trouble
>(oddly there is one another report fingering this) all the mutex
>locking should be busted (and there is a _lot_ of that in the kernel).

So, should I re-run a git bisect in order to confirm whether that
commit is the culprit or not?

>I really wouldn't know where to begin debugging this. Suspend/resume
>isn't really something I know much of, all I can say it that it works
>on my laptop.
>
>Rafael, any idea where to start looking for this?
>
>>  Link to actual bug report:
>> https://bugzilla.kernel.org/show_bug.cgi?id=195471  
>
>No, _this_ is the actual report, that is a random website you put stuff
>on.

-- 
Numan Demirdöğen

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PROBLEM: Keyboard not responding after resuming from suspend/hibernate
  2018-08-31 18:53 PROBLEM: Keyboard not responding after resuming from suspend/hibernate Numan Demirdöğen
  2018-08-31 19:16 ` Peter Zijlstra
@ 2018-09-03  8:53 ` Numan Demirdöğen
  2018-09-18 18:54   ` Pavel Machek
  2018-10-19  7:20 ` Fw: " Numan Demirdöğen
  2 siblings, 1 reply; 13+ messages in thread
From: Numan Demirdöğen @ 2018-09-03  8:53 UTC (permalink / raw)
  To: peterz; +Cc: mingo, linux-kernel, rjw

Fri, 31 Aug 2018 21:51:21 +0300 tarihinde
Numan Demirdöğen <if.gnu.linux@gmail.com> yazdı:

>If I put laptop to suspend or hibernate by closing lid, power
>manager or any other method and then I resume/wake up laptop, keyboard
>is not responding. My laptop is a Sony Vaio VPCEH2F1E. 
>
>Steps to produce bug:
>1. Boot
>2. Put laptop to sleep
>3. Resume
>
>What I expect to happen: Keyboard responds to key press.
>What happens: Keyboard does not respond but mouse and trackball are
>working.
>
>git bisect point 9d659ae14b545c4296e812c70493bfdc999b5c1c as the first
>bad commit.
>
>Bad commit link:
>https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=9d659ae14b545c4296e812c70493bfdc999b5c1c
>

I tried some kernel parameters related to i8042 driver:

i8042.debug=1 i8042.reset=1	keyboard not working
i8042.debug=1 i8042.kbdreset=1	keyboard not working
i8042.debug=1 i8042.nomux=1	keyboard not working
i8042.debug=1 i8042.noaux=1	keyboard working, but touchpad not
working

On some rare occasions, keyboard responds to key press but  it remains
pressed forever even if I stop pressing it.

dmesg output after rebooting with i8042.debug=1 i8042.noaux=1
parameters:

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=/dev/sda7 rw raid=noautodetect i8042.debug=1 i8042.noaux=1
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=/dev/sda7 rw raid=noautodetect i8042.debug=1 i8042.noaux=1
[    0.580463] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
[    0.580488] i8042: [0] d1 -> i8042 (command)
[    0.580547] i8042: [0] df -> i8042 (parameter)
[    0.580605] i8042: [0] ff -> i8042 (command)
[    0.580703] i8042: [0] 20 -> i8042 (command)
[    0.580764] i8042: [0] 67 <- i8042 (return)
[    0.580819] i8042: [0] 20 -> i8042 (command)
[    0.580880] i8042: [0] 67 <- i8042 (return)
[    0.580886] i8042: [0] 60 -> i8042 (command)
[    0.580945] i8042: [0] 76 -> i8042 (parameter)
[    0.580979] i8042: [0] 60 -> i8042 (command)
[    0.581195] i8042: [0] 67 -> i8042 (parameter)
[    0.581200] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.606203] i8042: [7] f2 -> i8042 (kbd-data)
[    0.611071] i8042: [9] fa <- i8042 (interrupt, 0, 1)
[    0.612916] i8042: [9] ab <- i8042 (interrupt, 0, 1)
[    0.614775] i8042: [10] 54 <- i8042 (interrupt, 0, 1)
[    0.614785] i8042: [10] f5 -> i8042 (kbd-data)
[    0.616519] i8042: [10] fa <- i8042 (interrupt, 0, 1)
[    0.616525] i8042: [10] ed -> i8042 (kbd-data)
[    0.618267] i8042: [11] fa <- i8042 (interrupt, 0, 1)
[    0.618274] i8042: [11] 00 -> i8042 (kbd-data)
[    0.620036] i8042: [12] fa <- i8042 (interrupt, 0, 1)
[    0.620059] i8042: [12] f3 -> i8042 (kbd-data)
[    0.621871] i8042: [12] fa <- i8042 (interrupt, 0, 1)
[    0.621919] i8042: [12] 00 -> i8042 (kbd-data)
[    0.623655] i8042: [13] fa <- i8042 (interrupt, 0, 1)
[    0.623697] i8042: [13] f4 -> i8042 (kbd-data)
[    0.625453] i8042: [13] fa <- i8042 (interrupt, 0, 1)
[    0.625560] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
[   20.451122] i8042: [5961] ** <- i8042 (interrupt, 0, 1)
[   20.513500] i8042: [5980] ** <- i8042 (interrupt, 0, 1)
[   20.621249] i8042: [6012] ** <- i8042 (interrupt, 0, 1)
[   20.646198] i8042: [6019] ** <- i8042 (interrupt, 0, 1)
[   20.901351] i8042: [6096] ** <- i8042 (interrupt, 0, 1)
[   21.016251] i8042: [6130] ** <- i8042 (interrupt, 0, 1)
[   21.038582] i8042: [6137] ** <- i8042 (interrupt, 0, 1)
[   21.121771] i8042: [6162] ** <- i8042 (interrupt, 0, 1)
[   21.156715] i8042: [6173] ** <- i8042 (interrupt, 0, 1)
[   21.262759] i8042: [6204] ** <- i8042 (interrupt, 0, 1)
[   21.553194] i8042: [6291] ** <- i8042 (interrupt, 0, 1)
[   21.683803] i8042: [6331] ** <- i8042 (interrupt, 0, 1)
[   22.986045] i8042: [6721] ** <- i8042 (interrupt, 0, 1)
[   23.054660] i8042: [6742] ** <- i8042 (interrupt, 0, 1)
[   23.069845] i8042: [6746] ** <- i8042 (interrupt, 0, 1)
[   23.182136] i8042: [6780] ** <- i8042 (interrupt, 0, 1)
[   23.330160] i8042: [6825] ** <- i8042 (interrupt, 0, 1)
[   23.457594] i8042: [6863] ** <- i8042 (interrupt, 0, 1)
[   25.796205] i8042: [7564] ** <- i8042 (interrupt, 0, 1)
[   25.917439] i8042: [7601] ** <- i8042 (interrupt, 0, 1)
[   26.088318] i8042: [7652] ** <- i8042 (interrupt, 0, 1)
[   26.209582] i8042: [7688] ** <- i8042 (interrupt, 0, 1)
[   26.286913] i8042: [7712] ** <- i8042 (interrupt, 0, 1)
[   26.389433] i8042: [7742] ** <- i8042 (interrupt, 0, 1)
[   26.438691] i8042: [7757] ** <- i8042 (interrupt, 0, 1)
[   26.568241] i8042: [7796] ** <- i8042 (interrupt, 0, 1)
[   26.824402] i8042: [7873] ** <- i8042 (interrupt, 0, 1)
[   26.936696] i8042: [7907] ** <- i8042 (interrupt, 0, 1)
[   26.950851] i8042: [7911] ** <- i8042 (interrupt, 0, 1)
[   27.061062] i8042: [7944] ** <- i8042 (interrupt, 0, 1)
[   27.208063] i8042: [7988] ** <- i8042 (interrupt, 0, 1)
[   27.297467] i8042: [8015] ** <- i8042 (interrupt, 0, 1)
[   27.330314] i8042: [8025] ** <- i8042 (interrupt, 0, 1)
[   27.410375] i8042: [8049] ** <- i8042 (interrupt, 0, 1)
[   27.544863] i8042: [8089] ** <- i8042 (interrupt, 0, 1)
[   27.675444] i8042: [8128] ** <- i8042 (interrupt, 0, 1)
[   28.356760] i8042: [8333] ** <- i8042 (interrupt, 0, 1)
[   28.479062] i8042: [8369] ** <- i8042 (interrupt, 0, 1)
[   28.508559] i8042: [8378] ** <- i8042 (interrupt, 0, 1)
[   28.613285] i8042: [8409] ** <- i8042 (interrupt, 0, 1)
[   28.729994] i8042: [8444] ** <- i8042 (interrupt, 0, 1)
[   28.832510] i8042: [8475] ** <- i8042 (interrupt, 0, 1)
[   40.698088] i8042: [12035] ** <- i8042 (interrupt, 0, 1)
[   40.699985] i8042: [12035] ** <- i8042 (interrupt, 0, 1)
[   40.922791] i8042: [12102] ** <- i8042 (interrupt, 0, 1)
[   40.924653] i8042: [12103] ** <- i8042 (interrupt, 0, 1)
[   40.952840] i8042: [12111] ** <- i8042 (interrupt, 0, 1)
[   40.954699] i8042: [12112] ** <- i8042 (interrupt, 0, 1)
[   40.977819] i8042: [12119] ** <- i8042 (interrupt, 0, 1)
[   40.979724] i8042: [12119] ** <- i8042 (interrupt, 0, 1)
[   41.002735] i8042: [12126] ** <- i8042 (interrupt, 0, 1)
[   41.004598] i8042: [12127] ** <- i8042 (interrupt, 0, 1)
[   41.027718] i8042: [12134] ** <- i8042 (interrupt, 0, 1)
[   41.029578] i8042: [12134] ** <- i8042 (interrupt, 0, 1)
[   41.052662] i8042: [12141] ** <- i8042 (interrupt, 0, 1)
[   41.054506] i8042: [12142] ** <- i8042 (interrupt, 0, 1)
[   41.057850] i8042: [12143] ** <- i8042 (interrupt, 0, 1)
[   41.179495] i8042: [12179] ** <- i8042 (interrupt, 0, 1)
[   41.183089] i8042: [12180] ** <- i8042 (interrupt, 0, 1)
[   41.200876] i8042: [12186] ** <- i8042 (interrupt, 0, 1)
[   43.629878] i8042: [12914] ** <- i8042 (interrupt, 0, 1)
[   43.767772] i8042: [12956] ** <- i8042 (interrupt, 0, 1)
[   43.775446] i8042: [12958] ** <- i8042 (interrupt, 0, 1)
[   43.881105] i8042: [12990] ** <- i8042 (interrupt, 0, 1)
[   43.889816] i8042: [12992] ** <- i8042 (interrupt, 0, 1)
[   43.973641] i8042: [13018] ** <- i8042 (interrupt, 0, 1)
[   44.097788] i8042: [13055] ** <- i8042 (interrupt, 0, 1)
[   44.198245] i8042: [13085] ** <- i8042 (interrupt, 0, 1)
[   44.309915] i8042: [13118] ** <- i8042 (interrupt, 0, 1)
[   44.407663] i8042: [13148] ** <- i8042 (interrupt, 0, 1)
[   44.418704] i8042: [13151] ** <- i8042 (interrupt, 0, 1)
[   44.527887] i8042: [13184] ** <- i8042 (interrupt, 0, 1)
[   44.975360] i8042: [13318] ** <- i8042 (interrupt, 0, 1)
[   44.977214] i8042: [13319] ** <- i8042 (interrupt, 0, 1)
[   45.132347] i8042: [13365] ** <- i8042 (interrupt, 0, 1)
[   45.283080] i8042: [13410] ** <- i8042 (interrupt, 0, 1)
[   45.286627] i8042: [13411] ** <- i8042 (interrupt, 0, 1)
[   45.294125] i8042: [13414] ** <- i8042 (interrupt, 0, 1)
[   45.514934] i8042: [13480] ** <- i8042 (interrupt, 0, 1)
[   45.629938] i8042: [13514] ** <- i8042 (interrupt, 0, 1)
[   45.710391] i8042: [13539] ** <- i8042 (interrupt, 0, 1)
[   45.809808] i8042: [13568] ** <- i8042 (interrupt, 0, 1)
[   45.993201] i8042: [13623] ** <- i8042 (interrupt, 0, 1)
[   46.102365] i8042: [13656] ** <- i8042 (interrupt, 0, 1)
[   46.139350] i8042: [13667] ** <- i8042 (interrupt, 0, 1)
[   46.147078] i8042: [13670] ** <- i8042 (interrupt, 0, 1)
[   46.209070] i8042: [13688] ** <- i8042 (interrupt, 0, 1)
[   46.245462] i8042: [13699] ** <- i8042 (interrupt, 0, 1)
[   46.415310] i8042: [13750] ** <- i8042 (interrupt, 0, 1)
[   46.508491] i8042: [13778] ** <- i8042 (interrupt, 0, 1)
[   46.684645] i8042: [13831] ** <- i8042 (interrupt, 0, 1)
[   46.817341] i8042: [13871] ** <- i8042 (interrupt, 0, 1)
[   47.520560] i8042: [14082] ** <- i8042 (interrupt, 0, 1)
[   47.623106] i8042: [14113] ** <- i8042 (interrupt, 0, 1)
[   47.774244] i8042: [14158] ** <- i8042 (interrupt, 0, 1)
[   47.865339] i8042: [14185] ** <- i8042 (interrupt, 0, 1)
[   47.983203] i8042: [14221] ** <- i8042 (interrupt, 0, 1)
[   48.049337] i8042: [14241] ** <- i8042 (interrupt, 0, 1)
[   65.782899] i8042: [19564] ** <- i8042 (interrupt, 0, 1)
[   65.784769] i8042: [19564] ** <- i8042 (interrupt, 0, 1)
[   65.895180] i8042: [19598] ** <- i8042 (interrupt, 0, 1)
[   65.898724] i8042: [19599] ** <- i8042 (interrupt, 0, 1)
[   66.426408] i8042: [19757] ** <- i8042 (interrupt, 0, 1)
[   66.518531] i8042: [19785] ** <- i8042 (interrupt, 0, 1)
[   67.829899] i8042: [20178] ** <- i8042 (interrupt, 0, 1)
[   67.942845] i8042: [20212] ** <- i8042 (interrupt, 0, 1)
[   68.780070] i8042: [20463] ** <- i8042 (interrupt, 0, 1)
[   68.861152] i8042: [20488] ** <- i8042 (interrupt, 0, 1)
[   68.928317] i8042: [20508] ** <- i8042 (interrupt, 0, 1)
[   68.980304] i8042: [20523] ** <- i8042 (interrupt, 0, 1)
[   69.200039] i8042: [20589] ** <- i8042 (interrupt, 0, 1)
[   69.317098] i8042: [20624] ** <- i8042 (interrupt, 0, 1)
[   69.939160] i8042: [20811] ** <- i8042 (interrupt, 0, 1)
[   69.941014] i8042: [20812] ** <- i8042 (interrupt, 0, 1)
[   70.038940] i8042: [20841] ** <- i8042 (interrupt, 0, 1)
[   70.042502] i8042: [20842] ** <- i8042 (interrupt, 0, 1)
[   70.514038] i8042: [20984] ** <- i8042 (interrupt, 0, 1)
[   70.615527] i8042: [21014] ** <- i8042 (interrupt, 0, 1)
[   70.823843] i8042: [21077] ** <- i8042 (interrupt, 0, 1)
[   70.891404] i8042: [21097] ** <- i8042 (interrupt, 0, 1)
[   70.982494] i8042: [21124] ** <- i8042 (interrupt, 0, 1)
[   71.025021] i8042: [21137] ** <- i8042 (interrupt, 0, 1)
[   71.279152] i8042: [21213] ** <- i8042 (interrupt, 0, 1)
[   71.395184] i8042: [21248] ** <- i8042 (interrupt, 0, 1)
[   72.304285] i8042: [21521] ** <- i8042 (interrupt, 0, 1)
[   72.395370] i8042: [21548] ** <- i8042 (interrupt, 0, 1)
[   72.906181] i8042: [21701] ** <- i8042 (interrupt, 0, 1)
[   73.012754] i8042: [21733] ** <- i8042 (interrupt, 0, 1)
[   73.142146] i8042: [21772] ** <- i8042 (interrupt, 0, 1)
[   73.276810] i8042: [21813] ** <- i8042 (interrupt, 0, 1)
[   73.799126] i8042: [21969] ** <- i8042 (interrupt, 0, 1)
[   73.879180] i8042: [21993] ** <- i8042 (interrupt, 0, 1)
[   73.952579] i8042: [22015] ** <- i8042 (interrupt, 0, 1)
[   74.016994] i8042: [22035] ** <- i8042 (interrupt, 0, 1)
[   75.104800] i8042: [22361] ** <- i8042 (interrupt, 0, 1)

dmesg output after putting machine to sleep and resuming:

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=/dev/sda7 rw raid=noautodetect i8042.debug=1 i8042.noaux=1
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=/dev/sda7 rw raid=noautodetect i8042.debug=1 i8042.noaux=1
[    0.580463] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
[    0.580488] i8042: [0] d1 -> i8042 (command)
[    0.580547] i8042: [0] df -> i8042 (parameter)
[    0.580605] i8042: [0] ff -> i8042 (command)
[    0.580703] i8042: [0] 20 -> i8042 (command)
[    0.580764] i8042: [0] 67 <- i8042 (return)
[    0.580819] i8042: [0] 20 -> i8042 (command)
[    0.580880] i8042: [0] 67 <- i8042 (return)
[    0.580886] i8042: [0] 60 -> i8042 (command)
[    0.580945] i8042: [0] 76 -> i8042 (parameter)
[    0.580979] i8042: [0] 60 -> i8042 (command)
[    0.581195] i8042: [0] 67 -> i8042 (parameter)
[    0.581200] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.606203] i8042: [7] f2 -> i8042 (kbd-data)
[    0.611071] i8042: [9] fa <- i8042 (interrupt, 0, 1)
[    0.612916] i8042: [9] ab <- i8042 (interrupt, 0, 1)
[    0.614775] i8042: [10] 54 <- i8042 (interrupt, 0, 1)
[    0.614785] i8042: [10] f5 -> i8042 (kbd-data)
[    0.616519] i8042: [10] fa <- i8042 (interrupt, 0, 1)
[    0.616525] i8042: [10] ed -> i8042 (kbd-data)
[    0.618267] i8042: [11] fa <- i8042 (interrupt, 0, 1)
[    0.618274] i8042: [11] 00 -> i8042 (kbd-data)
[    0.620036] i8042: [12] fa <- i8042 (interrupt, 0, 1)
[    0.620059] i8042: [12] f3 -> i8042 (kbd-data)
[    0.621871] i8042: [12] fa <- i8042 (interrupt, 0, 1)
[    0.621919] i8042: [12] 00 -> i8042 (kbd-data)
[    0.623655] i8042: [13] fa <- i8042 (interrupt, 0, 1)
[    0.623697] i8042: [13] f4 -> i8042 (kbd-data)
[    0.625453] i8042: [13] fa <- i8042 (interrupt, 0, 1)
[    0.625560] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
[   20.451122] i8042: [5961] ** <- i8042 (interrupt, 0, 1)
[   20.513500] i8042: [5980] ** <- i8042 (interrupt, 0, 1)
[   20.621249] i8042: [6012] ** <- i8042 (interrupt, 0, 1)
[   20.646198] i8042: [6019] ** <- i8042 (interrupt, 0, 1)
[   20.901351] i8042: [6096] ** <- i8042 (interrupt, 0, 1)
[   21.016251] i8042: [6130] ** <- i8042 (interrupt, 0, 1)
[   21.038582] i8042: [6137] ** <- i8042 (interrupt, 0, 1)
[   21.121771] i8042: [6162] ** <- i8042 (interrupt, 0, 1)
[   21.156715] i8042: [6173] ** <- i8042 (interrupt, 0, 1)
[   21.262759] i8042: [6204] ** <- i8042 (interrupt, 0, 1)
[   21.553194] i8042: [6291] ** <- i8042 (interrupt, 0, 1)
[   21.683803] i8042: [6331] ** <- i8042 (interrupt, 0, 1)
[   22.986045] i8042: [6721] ** <- i8042 (interrupt, 0, 1)
[   23.054660] i8042: [6742] ** <- i8042 (interrupt, 0, 1)
[   23.069845] i8042: [6746] ** <- i8042 (interrupt, 0, 1)
[   23.182136] i8042: [6780] ** <- i8042 (interrupt, 0, 1)
[   23.330160] i8042: [6825] ** <- i8042 (interrupt, 0, 1)
[   23.457594] i8042: [6863] ** <- i8042 (interrupt, 0, 1)
[   25.796205] i8042: [7564] ** <- i8042 (interrupt, 0, 1)
[   25.917439] i8042: [7601] ** <- i8042 (interrupt, 0, 1)
[   26.088318] i8042: [7652] ** <- i8042 (interrupt, 0, 1)
[   26.209582] i8042: [7688] ** <- i8042 (interrupt, 0, 1)
[   26.286913] i8042: [7712] ** <- i8042 (interrupt, 0, 1)
[   26.389433] i8042: [7742] ** <- i8042 (interrupt, 0, 1)
[   26.438691] i8042: [7757] ** <- i8042 (interrupt, 0, 1)
[   26.568241] i8042: [7796] ** <- i8042 (interrupt, 0, 1)
[   26.824402] i8042: [7873] ** <- i8042 (interrupt, 0, 1)
[   26.936696] i8042: [7907] ** <- i8042 (interrupt, 0, 1)
[   26.950851] i8042: [7911] ** <- i8042 (interrupt, 0, 1)
[   27.061062] i8042: [7944] ** <- i8042 (interrupt, 0, 1)
[   27.208063] i8042: [7988] ** <- i8042 (interrupt, 0, 1)
[   27.297467] i8042: [8015] ** <- i8042 (interrupt, 0, 1)
[   27.330314] i8042: [8025] ** <- i8042 (interrupt, 0, 1)
[   27.410375] i8042: [8049] ** <- i8042 (interrupt, 0, 1)
[   27.544863] i8042: [8089] ** <- i8042 (interrupt, 0, 1)
[   27.675444] i8042: [8128] ** <- i8042 (interrupt, 0, 1)
[   28.356760] i8042: [8333] ** <- i8042 (interrupt, 0, 1)
[   28.479062] i8042: [8369] ** <- i8042 (interrupt, 0, 1)
[   28.508559] i8042: [8378] ** <- i8042 (interrupt, 0, 1)
[   28.613285] i8042: [8409] ** <- i8042 (interrupt, 0, 1)
[   28.729994] i8042: [8444] ** <- i8042 (interrupt, 0, 1)
[   28.832510] i8042: [8475] ** <- i8042 (interrupt, 0, 1)
[   40.698088] i8042: [12035] ** <- i8042 (interrupt, 0, 1)
[   40.699985] i8042: [12035] ** <- i8042 (interrupt, 0, 1)
[   40.922791] i8042: [12102] ** <- i8042 (interrupt, 0, 1)
[   40.924653] i8042: [12103] ** <- i8042 (interrupt, 0, 1)
[   40.952840] i8042: [12111] ** <- i8042 (interrupt, 0, 1)
[   40.954699] i8042: [12112] ** <- i8042 (interrupt, 0, 1)
[   40.977819] i8042: [12119] ** <- i8042 (interrupt, 0, 1)
[   40.979724] i8042: [12119] ** <- i8042 (interrupt, 0, 1)
[   41.002735] i8042: [12126] ** <- i8042 (interrupt, 0, 1)
[   41.004598] i8042: [12127] ** <- i8042 (interrupt, 0, 1)
[   41.027718] i8042: [12134] ** <- i8042 (interrupt, 0, 1)
[   41.029578] i8042: [12134] ** <- i8042 (interrupt, 0, 1)
[   41.052662] i8042: [12141] ** <- i8042 (interrupt, 0, 1)
[   41.054506] i8042: [12142] ** <- i8042 (interrupt, 0, 1)
[   41.057850] i8042: [12143] ** <- i8042 (interrupt, 0, 1)
[   41.179495] i8042: [12179] ** <- i8042 (interrupt, 0, 1)
[   41.183089] i8042: [12180] ** <- i8042 (interrupt, 0, 1)
[   41.200876] i8042: [12186] ** <- i8042 (interrupt, 0, 1)
[   43.629878] i8042: [12914] ** <- i8042 (interrupt, 0, 1)
[   43.767772] i8042: [12956] ** <- i8042 (interrupt, 0, 1)
[   43.775446] i8042: [12958] ** <- i8042 (interrupt, 0, 1)
[   43.881105] i8042: [12990] ** <- i8042 (interrupt, 0, 1)
[   43.889816] i8042: [12992] ** <- i8042 (interrupt, 0, 1)
[   43.973641] i8042: [13018] ** <- i8042 (interrupt, 0, 1)
[   44.097788] i8042: [13055] ** <- i8042 (interrupt, 0, 1)
[   44.198245] i8042: [13085] ** <- i8042 (interrupt, 0, 1)
[   44.309915] i8042: [13118] ** <- i8042 (interrupt, 0, 1)
[   44.407663] i8042: [13148] ** <- i8042 (interrupt, 0, 1)
[   44.418704] i8042: [13151] ** <- i8042 (interrupt, 0, 1)
[   44.527887] i8042: [13184] ** <- i8042 (interrupt, 0, 1)
[   44.975360] i8042: [13318] ** <- i8042 (interrupt, 0, 1)
[   44.977214] i8042: [13319] ** <- i8042 (interrupt, 0, 1)
[   45.132347] i8042: [13365] ** <- i8042 (interrupt, 0, 1)
[   45.283080] i8042: [13410] ** <- i8042 (interrupt, 0, 1)
[   45.286627] i8042: [13411] ** <- i8042 (interrupt, 0, 1)
[   45.294125] i8042: [13414] ** <- i8042 (interrupt, 0, 1)
[   45.514934] i8042: [13480] ** <- i8042 (interrupt, 0, 1)
[   45.629938] i8042: [13514] ** <- i8042 (interrupt, 0, 1)
[   45.710391] i8042: [13539] ** <- i8042 (interrupt, 0, 1)
[   45.809808] i8042: [13568] ** <- i8042 (interrupt, 0, 1)
[   45.993201] i8042: [13623] ** <- i8042 (interrupt, 0, 1)
[   46.102365] i8042: [13656] ** <- i8042 (interrupt, 0, 1)
[   46.139350] i8042: [13667] ** <- i8042 (interrupt, 0, 1)
[   46.147078] i8042: [13670] ** <- i8042 (interrupt, 0, 1)
[   46.209070] i8042: [13688] ** <- i8042 (interrupt, 0, 1)
[   46.245462] i8042: [13699] ** <- i8042 (interrupt, 0, 1)
[   46.415310] i8042: [13750] ** <- i8042 (interrupt, 0, 1)
[   46.508491] i8042: [13778] ** <- i8042 (interrupt, 0, 1)
[   46.684645] i8042: [13831] ** <- i8042 (interrupt, 0, 1)
[   46.817341] i8042: [13871] ** <- i8042 (interrupt, 0, 1)
[   47.520560] i8042: [14082] ** <- i8042 (interrupt, 0, 1)
[   47.623106] i8042: [14113] ** <- i8042 (interrupt, 0, 1)
[   47.774244] i8042: [14158] ** <- i8042 (interrupt, 0, 1)
[   47.865339] i8042: [14185] ** <- i8042 (interrupt, 0, 1)
[   47.983203] i8042: [14221] ** <- i8042 (interrupt, 0, 1)
[   48.049337] i8042: [14241] ** <- i8042 (interrupt, 0, 1)
[   65.782899] i8042: [19564] ** <- i8042 (interrupt, 0, 1)
[   65.784769] i8042: [19564] ** <- i8042 (interrupt, 0, 1)
[   65.895180] i8042: [19598] ** <- i8042 (interrupt, 0, 1)
[   65.898724] i8042: [19599] ** <- i8042 (interrupt, 0, 1)
[   66.426408] i8042: [19757] ** <- i8042 (interrupt, 0, 1)
[   66.518531] i8042: [19785] ** <- i8042 (interrupt, 0, 1)
[   67.829899] i8042: [20178] ** <- i8042 (interrupt, 0, 1)
[   67.942845] i8042: [20212] ** <- i8042 (interrupt, 0, 1)
[   68.780070] i8042: [20463] ** <- i8042 (interrupt, 0, 1)
[   68.861152] i8042: [20488] ** <- i8042 (interrupt, 0, 1)
[   68.928317] i8042: [20508] ** <- i8042 (interrupt, 0, 1)
[   68.980304] i8042: [20523] ** <- i8042 (interrupt, 0, 1)
[   69.200039] i8042: [20589] ** <- i8042 (interrupt, 0, 1)
[   69.317098] i8042: [20624] ** <- i8042 (interrupt, 0, 1)
[   69.939160] i8042: [20811] ** <- i8042 (interrupt, 0, 1)
[   69.941014] i8042: [20812] ** <- i8042 (interrupt, 0, 1)
[   70.038940] i8042: [20841] ** <- i8042 (interrupt, 0, 1)
[   70.042502] i8042: [20842] ** <- i8042 (interrupt, 0, 1)
[   70.514038] i8042: [20984] ** <- i8042 (interrupt, 0, 1)
[   70.615527] i8042: [21014] ** <- i8042 (interrupt, 0, 1)
[   70.823843] i8042: [21077] ** <- i8042 (interrupt, 0, 1)
[   70.891404] i8042: [21097] ** <- i8042 (interrupt, 0, 1)
[   70.982494] i8042: [21124] ** <- i8042 (interrupt, 0, 1)
[   71.025021] i8042: [21137] ** <- i8042 (interrupt, 0, 1)
[   71.279152] i8042: [21213] ** <- i8042 (interrupt, 0, 1)
[   71.395184] i8042: [21248] ** <- i8042 (interrupt, 0, 1)
[   72.304285] i8042: [21521] ** <- i8042 (interrupt, 0, 1)
[   72.395370] i8042: [21548] ** <- i8042 (interrupt, 0, 1)
[   72.906181] i8042: [21701] ** <- i8042 (interrupt, 0, 1)
[   73.012754] i8042: [21733] ** <- i8042 (interrupt, 0, 1)
[   73.142146] i8042: [21772] ** <- i8042 (interrupt, 0, 1)
[   73.276810] i8042: [21813] ** <- i8042 (interrupt, 0, 1)
[   73.799126] i8042: [21969] ** <- i8042 (interrupt, 0, 1)
[   73.879180] i8042: [21993] ** <- i8042 (interrupt, 0, 1)
[   73.952579] i8042: [22015] ** <- i8042 (interrupt, 0, 1)
[   74.016994] i8042: [22035] ** <- i8042 (interrupt, 0, 1)
[   75.104800] i8042: [22361] ** <- i8042 (interrupt, 0, 1)
[   75.166735] i8042: [22380] ** <- i8042 (interrupt, 0, 1)
[   78.241185] i8042: [23302] ** <- i8042 (interrupt, 0, 1)
[   78.371170] i8042: [23341] ** <- i8042 (interrupt, 0, 1)
[   78.382199] i8042: [23345] ** <- i8042 (interrupt, 0, 1)
[   78.499693] i8042: [23380] ** <- i8042 (interrupt, 0, 1)
[   78.507367] i8042: [23382] ** <- i8042 (interrupt, 0, 1)
[   78.618204] i8042: [23415] ** <- i8042 (interrupt, 0, 1)
[   78.738155] i8042: [23451] ** <- i8042 (interrupt, 0, 1)
[   78.835491] i8042: [23481] ** <- i8042 (interrupt, 0, 1)
[   78.928419] i8042: [23508] ** <- i8042 (interrupt, 0, 1)
[   79.058885] i8042: [23548] ** <- i8042 (interrupt, 0, 1)
[   79.070861] i8042: [23551] ** <- i8042 (interrupt, 0, 1)
[   79.187887] i8042: [23586] ** <- i8042 (interrupt, 0, 1)
[   94.293200] i8042: [28118] f6 -> i8042 (kbd-data)
[   94.294975] i8042: [28119] ** <- i8042 (interrupt, 0, 1)
[   94.294992] i8042: [28119] 60 -> i8042 (command)
[   94.295050] i8042: [28119] 74 -> i8042 (parameter)
[   94.295108] i8042: [28119] aa -> i8042 (command)
[   94.297361] i8042: [28119] 55 <- i8042 (return)
[   94.297364] i8042: [28119] 60 -> i8042 (command)
[   94.297422] i8042: [28120] 67 -> i8042 (parameter)
[   95.683201] i8042: [28535] 39 <- i8042 (flush, kbd)
[   95.683211] i8042: [28535] aa -> i8042 (command)
[   95.688789] i8042: [28536] 55 <- i8042 (return)
[   95.688798] i8042: [28536] Interrupt 1, without any data
[   95.688843] i8042: [28536] 60 -> i8042 (command)
[   95.688903] i8042: [28536] 74 -> i8042 (parameter)
[   95.688963] i8042: [28536] 60 -> i8042 (command)
[   95.689128] i8042: [28536] 65 -> i8042 (parameter)
[   95.689155] i8042: [28536] f2 -> i8042 (kbd-data)
[   95.691082] i8042: [28537] ** <- i8042 (interrupt, 0, 1)
[   95.692957] i8042: [28538] ** <- i8042 (interrupt, 0, 1)
[   95.694809] i8042: [28538] ** <- i8042 (interrupt, 0, 1)
[   95.699233] i8042: [28540] f5 -> i8042 (kbd-data)
[   95.701907] i8042: [28540] ** <- i8042 (interrupt, 0, 1)
[   95.701937] i8042: [28540] ed -> i8042 (kbd-data)
[   95.703679] i8042: [28541] ** <- i8042 (interrupt, 0, 1)
[   95.703696] i8042: [28541] 00 -> i8042 (kbd-data)
[   95.705454] i8042: [28541] ** <- i8042 (interrupt, 0, 1)
[   95.705471] i8042: [28541] f3 -> i8042 (kbd-data)
[   95.707196] i8042: [28542] ** <- i8042 (interrupt, 0, 1)
[   95.707212] i8042: [28542] 00 -> i8042 (kbd-data)
[   95.708944] i8042: [28542] ** <- i8042 (interrupt, 0, 1)
[   95.709046] i8042: [28542] f4 -> i8042 (kbd-data)
[   95.713625] i8042: [28544] ** <- i8042 (interrupt, 0, 1)
[   95.713770] i8042: [28544] ed -> i8042 (kbd-data)
[   95.715720] i8042: [28544] ** <- i8042 (interrupt, 0, 1)
[   95.715762] i8042: [28544] 00 -> i8042 (kbd-data)
[   95.717578] i8042: [28545] ** <- i8042 (interrupt, 0, 1)
[   95.717733] i8042: [28545] f3 -> i8042 (kbd-data)
[   95.719502] i8042: [28546] ** <- i8042 (interrupt, 0, 1)
[   95.719598] i8042: [28546] 00 -> i8042 (kbd-data)
[   95.721418] i8042: [28546] ** <- i8042 (interrupt, 0, 1)
[   96.272741] i8042: [28712] ** <- i8042 (interrupt, 0, 1)
[   96.285881] i8042: [28716] ** <- i8042 (interrupt, 0, 1)
[   96.756046] i8042: [28857] ** <- i8042 (interrupt, 0, 1)
[   96.845517] i8042: [28883] ** <- i8042 (interrupt, 0, 1)
[   96.897083] i8042: [28899] ** <- i8042 (interrupt, 0, 1)
[   96.978750] i8042: [28923] ** <- i8042 (interrupt, 0, 1)
[   97.286205] i8042: [29016] ** <- i8042 (interrupt, 0, 1)
[   97.418898] i8042: [29055] ** <- i8042 (interrupt, 0, 1)
[   97.716827] i8042: [29145] ** <- i8042 (interrupt, 0, 1)
[   97.771105] i8042: [29161] ** <- i8042 (interrupt, 0, 1)
[   97.826197] i8042: [29178] ** <- i8042 (interrupt, 0, 1)
[   97.874720] i8042: [29192] ** <- i8042 (interrupt, 0, 1)
[   99.301862] i8042: [29620] ** <- i8042 (interrupt, 0, 1)
[   99.417867] i8042: [29655] ** <- i8042 (interrupt, 0, 1)
[  101.947750] i8042: [30414] ** <- i8042 (interrupt, 0, 1)
[  101.949609] i8042: [30415] ** <- i8042 (interrupt, 0, 1)
[  102.051721] i8042: [30445] ** <- i8042 (interrupt, 0, 1)
[  102.055270] i8042: [30446] ** <- i8042 (interrupt, 0, 1)
[  102.318921] i8042: [30525] ** <- i8042 (interrupt, 0, 1)
[  102.320773] i8042: [30526] ** <- i8042 (interrupt, 0, 1)
[  102.461379] i8042: [30568] ** <- i8042 (interrupt, 0, 1)
[  102.464981] i8042: [30569] ** <- i8042 (interrupt, 0, 1)
[  103.642476] i8042: [30923] ** <- i8042 (interrupt, 0, 1)
[  103.644332] i8042: [30923] ** <- i8042 (interrupt, 0, 1)
[  103.782855] i8042: [30965] ** <- i8042 (interrupt, 0, 1)
[  103.786408] i8042: [30966] ** <- i8042 (interrupt, 0, 1)
[  104.798780] i8042: [31269] ** <- i8042 (interrupt, 0, 1)
[  104.908618] i8042: [31302] ** <- i8042 (interrupt, 0, 1)
[  117.919699] i8042: [35206] ** <- i8042 (interrupt, 0, 1)
[  117.921552] i8042: [35206] ** <- i8042 (interrupt, 0, 1)
[  118.059019] i8042: [35248] ** <- i8042 (interrupt, 0, 1)
[  118.062561] i8042: [35249] ** <- i8042 (interrupt, 0, 1)
[  120.058560] i8042: [35847] ** <- i8042 (interrupt, 0, 1)
[  120.173514] i8042: [35882] ** <- i8042 (interrupt, 0, 1)
[  120.511854] i8042: [35983] ** <- i8042 (interrupt, 0, 1)
[  120.587763] i8042: [36006] ** <- i8042 (interrupt, 0, 1)
[  120.737080] i8042: [36051] ** <- i8042 (interrupt, 0, 1)
[  120.746434] i8042: [36054] ** <- i8042 (interrupt, 0, 1)
[  120.999481] i8042: [36130] ** <- i8042 (interrupt, 0, 1)
[  121.096736] i8042: [36159] ** <- i8042 (interrupt, 0, 1)
[  121.302008] i8042: [36221] ** <- i8042 (interrupt, 0, 1)
[  121.432601] i8042: [36260] ** <- i8042 (interrupt, 0, 1)
[  121.767831] i8042: [36360] ** <- i8042 (interrupt, 0, 1)
[  121.872835] i8042: [36392] ** <- i8042 (interrupt, 0, 1)
[  121.888019] i8042: [36396] ** <- i8042 (interrupt, 0, 1)
[  122.097413] i8042: [36459] ** <- i8042 (interrupt, 0, 1)
[  122.105333] i8042: [36462] ** <- i8042 (interrupt, 0, 1)
[  122.466502] i8042: [36570] ** <- i8042 (interrupt, 0, 1)
[  122.592963] i8042: [36608] ** <- i8042 (interrupt, 0, 1)
[  123.208891] i8042: [36793] ** <- i8042 (interrupt, 0, 1)
[  123.295900] i8042: [36819] ** <- i8042 (interrupt, 0, 1)
[  123.753829] i8042: [36956] ** <- i8042 (interrupt, 0, 1)
[  123.883410] i8042: [36995] ** <- i8042 (interrupt, 0, 1)
[  124.028268] i8042: [37038] ** <- i8042 (interrupt, 0, 1)
[  124.131964] i8042: [37070] ** <- i8042 (interrupt, 0, 1)
[  124.339297] i8042: [37132] ** <- i8042 (interrupt, 0, 1)
[  124.497351] i8042: [37179] ** <- i8042 (interrupt, 0, 1)
[  124.508394] i8042: [37182] ** <- i8042 (interrupt, 0, 1)
[  124.629411] i8042: [37219] ** <- i8042 (interrupt, 0, 1)
[  124.703877] i8042: [37241] ** <- i8042 (interrupt, 0, 1)
[  124.761086] i8042: [37258] ** <- i8042 (interrupt, 0, 1)
[  125.430180] i8042: [37459] ** <- i8042 (interrupt, 0, 1)


-- 
Numan Demirdöğen

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PROBLEM: Keyboard not responding after resuming from suspend/hibernate
  2018-09-03  8:53 ` Numan Demirdöğen
@ 2018-09-18 18:54   ` Pavel Machek
  0 siblings, 0 replies; 13+ messages in thread
From: Pavel Machek @ 2018-09-18 18:54 UTC (permalink / raw)
  To: Numan Demirdöğen; +Cc: peterz, mingo, linux-kernel, rjw

[-- Attachment #1: Type: text/plain, Size: 1554 bytes --]

On Mon 2018-09-03 11:53:51, Numan Demirdöğen wrote:
> Fri, 31 Aug 2018 21:51:21 +0300 tarihinde
> Numan Demirdöğen <if.gnu.linux@gmail.com> yazdı:
> 
> >If I put laptop to suspend or hibernate by closing lid, power
> >manager or any other method and then I resume/wake up laptop, keyboard
> >is not responding. My laptop is a Sony Vaio VPCEH2F1E. 
> >
> >Steps to produce bug:
> >1. Boot
> >2. Put laptop to sleep
> >3. Resume
> >
> >What I expect to happen: Keyboard responds to key press.
> >What happens: Keyboard does not respond but mouse and trackball are
> >working.
> >
> >git bisect point 9d659ae14b545c4296e812c70493bfdc999b5c1c as the first
> >bad commit.
> >
> >Bad commit link:
> >https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=9d659ae14b545c4296e812c70493bfdc999b5c1c
> >
> 
> I tried some kernel parameters related to i8042 driver:
> 
> i8042.debug=1 i8042.reset=1	keyboard not working
> i8042.debug=1 i8042.kbdreset=1	keyboard not working
> i8042.debug=1 i8042.nomux=1	keyboard not working
> i8042.debug=1 i8042.noaux=1	keyboard working, but touchpad not
> working
> 
> On some rare occasions, keyboard responds to key press but  it remains
> pressed forever even if I stop pressing it.
> 
> dmesg output after rebooting with i8042.debug=1 i8042.noaux=1
> parameters:

You may want to cc linux-input people. See the maintainers.

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Fw: PROBLEM: Keyboard not responding after resuming from suspend/hibernate
  2018-08-31 18:53 PROBLEM: Keyboard not responding after resuming from suspend/hibernate Numan Demirdöğen
  2018-08-31 19:16 ` Peter Zijlstra
  2018-09-03  8:53 ` Numan Demirdöğen
@ 2018-10-19  7:20 ` Numan Demirdöğen
  2018-10-25  7:49   ` [regression, bisected] " Pavel Machek
  2 siblings, 1 reply; 13+ messages in thread
From: Numan Demirdöğen @ 2018-10-19  7:20 UTC (permalink / raw)
  To: dmitry.torokhov; +Cc: peterz, mingo, linux-kernel, linux-input

[-- Attachment #1: Type: text/plain, Size: 5844 bytes --]

On Fri, 31 Aug 2018 21:53:11 +0300
Numan Demirdöğen <if.gnu.linux@gmail.com> wrote:

>If I put laptop to suspend or hibernate by closing lid, power
>manager or any other method and then I resume/wake up laptop, keyboard
>is not responding. My laptop is a Sony Vaio VPCEH2F1E. 
>
>Steps to produce bug:
>1. Boot
>2. Put laptop to sleep
>3. Resume
>
>What I expect to happen: Keyboard responds to key press.
>What happens: Keyboard does not respond but mouse and trackball are
>working.
>
>git bisect point 9d659ae14b545c4296e812c70493bfdc999b5c1c as the first
>bad commit.
>
>Bad commit link:
>https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=9d659ae14b545c4296e812c70493bfdc999b5c1c
>
> Link to actual bug report:
>https://bugzilla.kernel.org/show_bug.cgi?id=195471
>
>awk -f ver_linux
>Linux korsan 4.18.5-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 24 12:48:58
>UTC 2018 x86_64 GNU/Linux GNU C               	8.2.0
>GNU Make            	4.2.1
>Binutils            	2.31.1
>Util-linux          	2.32.1
>Mount               	2.32.1
>Module-init-tools   	25
>E2fsprogs           	1.44.4
>Jfsutils            	1.1.15
>Reiserfsprogs       	3.6.27
>Xfsprogs            	4.17.0
>Pcmciautils         	018
>Linux C Library     	2.28
>Dynamic linker (ldd)	2.28
>Linux C++ Library   	6.0.25
>Procps              	3.3.15
>Kbd                 	2.0.4
>Console-tools       	2.0.4
>Sh-utils            	8.29
>Udev                	239
>Wireless-tools      	30
>Modules Loaded      	ac agpgart ahci arc4 ath ath3k ath9k
>ath9k_common ath9k_hw atkbd battery bluetooth bpfilter ccm cdrom
>cfg80211 coretemp crc16 crc32c_generic crc32c_intel crc32_pclmul
>crct10dif_pclmul cryptd drm drm_kms_helper ecdh_generic ehci_hcd
>ehci_pci evdev ext4 fb_sys_fops fscrypto fuse ghash_clmulni_intel
>gpio_ich hid hid_generic i2c_algo_bit i2c_i801 i8042 i915 input_leds
>intel_cstate intel_gtt intel_powerclamp intel_rapl intel_rapl_perf
>intel_uncore iptable_filter iptable_mangle iptable_nat ip_tables
>irqbypass iTCO_vendor_support iTCO_wdt jbd2 kvm kvm_intel led_class
>libahci libata libcrc32c libps2 lpc_ich mac80211 mac_hid mbcache mei
>mei_me mousedev msr nf_conntrack nf_conntrack_ipv4 nf_defrag_ipv4
>nf_nat nf_nat_ipv4 pcc_cpufreq psmouse rfkill rtc_cmos scsi_mod sd_mod
>serio serio_raw snd snd_hda_codec snd_hda_codec_conexant
>snd_hda_codec_generic snd_hda_codec_hdmi snd_hda_core snd_hda_intel
>snd_hwdep snd_pcm snd_timer sony_laptop soundcore sr_mod syscopyarea
>sysfillrect sysimgblt usb_common usbcore usbhid x86_pkg_temp_thermal
>x_tables
>
>dmesg | grep i8042
>[    0.574078] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M]
>at 0x60,0x64 irq 1,12 [    0.575936] serio: i8042 KBD port at
>0x60,0x64 irq 1 [    0.576143] serio: i8042 AUX port at 0x60,0x64 irq
>12 [    0.618880] input: AT Translated Set 2 keyboard
>as /devices/platform/i8042/serio0/input/input3 [   11.248435] input:
>AlpsPS/2 ALPS GlidePoint as /devices/platform/i8042/serio1/input/input5
>
>cat /proc/interrupts 
>           CPU0       CPU1       CPU2       CPU3       
>  0:          8          0          0          0   IO-APIC
> 2-edge      timer 1:          0          0          0      10286
> IO-APIC   1-edge      i8042 8:          0          0
> 0          1   IO-APIC   8-edge      rtc0 9:          0
> 9479          0          0   IO-APIC   9-fasteoi   acpi 12:
> 0          0     370114          0   IO-APIC  12-edge      i8042
> 16:     197457          0          0          0   IO-APIC
> 16-fasteoi   ehci_hcd:usb1, ath9k 19:          0          0
> 0          0   IO-APIC  19-fasteoi   i801_smbus 23:
> 0          0      71055          0   IO-APIC  23-fasteoi
> ehci_hcd:usb2 24:          0      74549          0          0
> PCI-MSI 512000-edge      ahci[0000:00:1f.2] 25:          0
> 14          0          0   PCI-MSI 360448-edge      mei_me
> 26:          0          0     138870          0   PCI-MSI
> 32768-edge      i915 27:          0          0          0
> 330   PCI-MSI 442368-edge      snd_hda_intel:card0
>NMI:         24         22         25         21   Non-maskable
>interrupts LOC:     534734     446934     603337     440320   Local
>timer interrupts SPU:          0          0          0          0
>Spurious interrupts PMI:         24         22         25         21
>Performance monitoring interrupts IWI:         26         12
>43115         22   IRQ work interrupts RTR:          0
>0          0          0   APIC ICR read retries RES:      95282
>76970      60242      46409   Rescheduling interrupts CAL:
>66746      75300      70554      69119   Function call interrupts
>TLB:      50929      54528      51413      48017   TLB shootdowns
>TRM:          0          0          0          0   Thermal event
>interrupts THR:          0          0          0          0
>Threshold APIC interrupts DFR:          0          0
>0          0   Deferred Error APIC interrupts MCE:          0
>0          0          0   Machine check exceptions MCP:
>18         19         19         19   Machine check polls
>HYP:          0          0          0          0   Hypervisor callback
>interrupts HRE:          0          0          0          0   Hyper-V
>reenlightenment interrupts HVS:          0          0
>0          0   Hyper-V stimer0 interrupts ERR:          0
>MIS:          0 PIN:          0          0          0          0
>Posted-interrupt notification event NPI:          0
>0          0          0   Nested posted-interrupt event PIW:
>0          0          0          0   Posted-interrupt wakeup event
>
>P.S: My native language is not English.
>

Hi,

I am forwarding this e-mail which describes a problem related to
suspend/hibernate at the advise of Pavel Machek.

-- 
Numan Demirdöğen

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [regression, bisected] Keyboard not responding after resuming from suspend/hibernate
  2018-10-19  7:20 ` Fw: " Numan Demirdöğen
@ 2018-10-25  7:49   ` Pavel Machek
  2018-10-28 19:06     ` Numan Demirdöğen
  0 siblings, 1 reply; 13+ messages in thread
From: Pavel Machek @ 2018-10-25  7:49 UTC (permalink / raw)
  To: Numan Demirdöğen, jason.low2, Waiman.Long, paulmck, tglx
  Cc: dmitry.torokhov, peterz, mingo, linux-kernel, linux-input

[-- Attachment #1: Type: text/plain, Size: 6682 bytes --]

Hi!

Here's problem bisected down to:

commit 9d659ae14b545c4296e812c70493bfdc999b5c1c
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Tue Aug 23 14:40:16 2016 +0200

    locking/mutex: Add lock handoff to avoid starvation

    Implement lock handoff to avoid lock starvation.

Numan, I assume revert of that patch on the 4.18 kernel still makes it
work?

Peter, any ideas?

								Pavel

On Fri 2018-10-19 10:20:31, Numan Demirdöğen wrote:
> On Fri, 31 Aug 2018 21:53:11 +0300
> Numan Demirdöğen <if.gnu.linux@gmail.com> wrote:
> 
> >If I put laptop to suspend or hibernate by closing lid, power
> >manager or any other method and then I resume/wake up laptop, keyboard
> >is not responding. My laptop is a Sony Vaio VPCEH2F1E. 
> >
> >Steps to produce bug:
> >1. Boot
> >2. Put laptop to sleep
> >3. Resume
> >
> >What I expect to happen: Keyboard responds to key press.
> >What happens: Keyboard does not respond but mouse and trackball are
> >working.
> >
> >git bisect point 9d659ae14b545c4296e812c70493bfdc999b5c1c as the first
> >bad commit.
> >
> >Bad commit link:
> >https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=9d659ae14b545c4296e812c70493bfdc999b5c1c
> >
> > Link to actual bug report:
> >https://bugzilla.kernel.org/show_bug.cgi?id=195471
> >
> >awk -f ver_linux
> >Linux korsan 4.18.5-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 24 12:48:58
> >UTC 2018 x86_64 GNU/Linux GNU C               	8.2.0
> >GNU Make            	4.2.1
> >Binutils            	2.31.1
> >Util-linux          	2.32.1
> >Mount               	2.32.1
> >Module-init-tools   	25
> >E2fsprogs           	1.44.4
> >Jfsutils            	1.1.15
> >Reiserfsprogs       	3.6.27
> >Xfsprogs            	4.17.0
> >Pcmciautils         	018
> >Linux C Library     	2.28
> >Dynamic linker (ldd)	2.28
> >Linux C++ Library   	6.0.25
> >Procps              	3.3.15
> >Kbd                 	2.0.4
> >Console-tools       	2.0.4
> >Sh-utils            	8.29
> >Udev                	239
> >Wireless-tools      	30
> >Modules Loaded      	ac agpgart ahci arc4 ath ath3k ath9k
> >ath9k_common ath9k_hw atkbd battery bluetooth bpfilter ccm cdrom
> >cfg80211 coretemp crc16 crc32c_generic crc32c_intel crc32_pclmul
> >crct10dif_pclmul cryptd drm drm_kms_helper ecdh_generic ehci_hcd
> >ehci_pci evdev ext4 fb_sys_fops fscrypto fuse ghash_clmulni_intel
> >gpio_ich hid hid_generic i2c_algo_bit i2c_i801 i8042 i915 input_leds
> >intel_cstate intel_gtt intel_powerclamp intel_rapl intel_rapl_perf
> >intel_uncore iptable_filter iptable_mangle iptable_nat ip_tables
> >irqbypass iTCO_vendor_support iTCO_wdt jbd2 kvm kvm_intel led_class
> >libahci libata libcrc32c libps2 lpc_ich mac80211 mac_hid mbcache mei
> >mei_me mousedev msr nf_conntrack nf_conntrack_ipv4 nf_defrag_ipv4
> >nf_nat nf_nat_ipv4 pcc_cpufreq psmouse rfkill rtc_cmos scsi_mod sd_mod
> >serio serio_raw snd snd_hda_codec snd_hda_codec_conexant
> >snd_hda_codec_generic snd_hda_codec_hdmi snd_hda_core snd_hda_intel
> >snd_hwdep snd_pcm snd_timer sony_laptop soundcore sr_mod syscopyarea
> >sysfillrect sysimgblt usb_common usbcore usbhid x86_pkg_temp_thermal
> >x_tables
> >
> >dmesg | grep i8042
> >[    0.574078] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M]
> >at 0x60,0x64 irq 1,12 [    0.575936] serio: i8042 KBD port at
> >0x60,0x64 irq 1 [    0.576143] serio: i8042 AUX port at 0x60,0x64 irq
> >12 [    0.618880] input: AT Translated Set 2 keyboard
> >as /devices/platform/i8042/serio0/input/input3 [   11.248435] input:
> >AlpsPS/2 ALPS GlidePoint as /devices/platform/i8042/serio1/input/input5
> >
> >cat /proc/interrupts 
> >           CPU0       CPU1       CPU2       CPU3       
> >  0:          8          0          0          0   IO-APIC
> > 2-edge      timer 1:          0          0          0      10286
> > IO-APIC   1-edge      i8042 8:          0          0
> > 0          1   IO-APIC   8-edge      rtc0 9:          0
> > 9479          0          0   IO-APIC   9-fasteoi   acpi 12:
> > 0          0     370114          0   IO-APIC  12-edge      i8042
> > 16:     197457          0          0          0   IO-APIC
> > 16-fasteoi   ehci_hcd:usb1, ath9k 19:          0          0
> > 0          0   IO-APIC  19-fasteoi   i801_smbus 23:
> > 0          0      71055          0   IO-APIC  23-fasteoi
> > ehci_hcd:usb2 24:          0      74549          0          0
> > PCI-MSI 512000-edge      ahci[0000:00:1f.2] 25:          0
> > 14          0          0   PCI-MSI 360448-edge      mei_me
> > 26:          0          0     138870          0   PCI-MSI
> > 32768-edge      i915 27:          0          0          0
> > 330   PCI-MSI 442368-edge      snd_hda_intel:card0
> >NMI:         24         22         25         21   Non-maskable
> >interrupts LOC:     534734     446934     603337     440320   Local
> >timer interrupts SPU:          0          0          0          0
> >Spurious interrupts PMI:         24         22         25         21
> >Performance monitoring interrupts IWI:         26         12
> >43115         22   IRQ work interrupts RTR:          0
> >0          0          0   APIC ICR read retries RES:      95282
> >76970      60242      46409   Rescheduling interrupts CAL:
> >66746      75300      70554      69119   Function call interrupts
> >TLB:      50929      54528      51413      48017   TLB shootdowns
> >TRM:          0          0          0          0   Thermal event
> >interrupts THR:          0          0          0          0
> >Threshold APIC interrupts DFR:          0          0
> >0          0   Deferred Error APIC interrupts MCE:          0
> >0          0          0   Machine check exceptions MCP:
> >18         19         19         19   Machine check polls
> >HYP:          0          0          0          0   Hypervisor callback
> >interrupts HRE:          0          0          0          0   Hyper-V
> >reenlightenment interrupts HVS:          0          0
> >0          0   Hyper-V stimer0 interrupts ERR:          0
> >MIS:          0 PIN:          0          0          0          0
> >Posted-interrupt notification event NPI:          0
> >0          0          0   Nested posted-interrupt event PIW:
> >0          0          0          0   Posted-interrupt wakeup event
> >
> >P.S: My native language is not English.
> >
> 
> Hi,
> 
> I am forwarding this e-mail which describes a problem related to
> suspend/hibernate at the advise of Pavel Machek.
> 



-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [regression, bisected] Keyboard not responding after resuming from suspend/hibernate
  2018-10-25  7:49   ` [regression, bisected] " Pavel Machek
@ 2018-10-28 19:06     ` Numan Demirdöğen
  2018-11-30 12:44         ` Numan Demirdöğen
  0 siblings, 1 reply; 13+ messages in thread
From: Numan Demirdöğen @ 2018-10-28 19:06 UTC (permalink / raw)
  To: Pavel Machek
  Cc: jason.low2, Waiman.Long, paulmck, tglx, dmitry.torokhov, peterz,
	mingo, linux-kernel, linux-input

[-- Attachment #1: Type: text/plain, Size: 9804 bytes --]

Thu, 25 Oct 2018 09:49:03 +0200 tarihinde
Pavel Machek <pavel@ucw.cz> yazdı:

> Hi!
> 
> Here's problem bisected down to:
> 
> commit 9d659ae14b545c4296e812c70493bfdc999b5c1c
> Author: Peter Zijlstra <peterz@infradead.org>
> Date:   Tue Aug 23 14:40:16 2016 +0200
> 
>     locking/mutex: Add lock handoff to avoid starvation
> 
>     Implement lock handoff to avoid lock starvation.
> 
> Numan, I assume revert of that patch on the 4.18 kernel still makes it
> work?
> 

Unfortunately, I could not revert
9d659ae14b545c4296e812c70493bfdc999b5c1c on kernels from 4.18.16 to
4.10-rc1 because there were too much conflicts, which I could not solve
as an "average Joe". I tried a3ea3d9b865c2a8f7fe455c7fa26db4b6fd066e3
which is parent of 9d659ae14b545c4296e812c70493bfdc999b5c1c and
succeeded to compile kernel.

git checkout a3ea3d9b865c2a8f7fe455c7fa26db4b6fd066e3

Then, I compiled kernel and rebooted with it. I tried a couples of
times suspending and resuming, all of the time keyboard worked as
expected.

uname -a
Linux ubuntu 4.9.0-rc2reverted+ #1 SMP Sun Oct 28 20:29:39 +03 2018
x86_64 x86_64 x86_64 GNU/Linux

awk -f ver_linux
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.

Linux ubuntu 4.9.0-rc2reverted+ #1 SMP Sun Oct 28 20:29:39 +03 2018
x86_64 x86_64 x86_64 GNU/Linux

GNU Make            	4.1
Binutils            	2.30
Util-linux          	2.31.1
Mount               	2.31.1
Module-init-tools   	24
E2fsprogs           	1.44.1
Pcmciautils         	018
Linux C Library     	2.27
Dynamic linker (ldd)	2.27
Linux C++ Library   	6.0.25
Procps              	3.3.12
Kbd                 	2.0.4
Console-tools       	2.0.4
Sh-utils            	8.28
Udev                	237
Wireless-tools      	30
Modules Loaded      	ahci arc4 ath ath9k ath9k_common ath9k_hw
autofs4 binfmt_misc ccm cfg80211 coretemp crc32_pclmul crct10dif_pclmul
cryptd drm drm_kms_helper fb_sys_fops fjes ghash_clmulni_intel hid
hid_generic i2c_algo_bit i915 input_leds intel_cstate intel_powerclamp
intel_rapl intel_rapl_perf ip6table_filter ip6_tables ip6t_REJECT
ip6t_rt iptable_filter ip_tables ipt_REJECT irqbypass kvm kvm_intel
libahci lpc_ich mac80211 mac_hid mei mei_me nf_conntrack
nf_conntrack_broadcast nf_conntrack_ftp nf_conntrack_ipv4
nf_conntrack_ipv6 nf_conntrack_netbios_ns nf_defrag_ipv4 nf_defrag_ipv6
nf_log_common nf_log_ipv4 nf_log_ipv6 nf_nat nf_nat_ftp nf_reject_ipv4
nf_reject_ipv6 psmouse sch_fq_codel serio_raw shpchp snd snd_hda_codec
snd_hda_codec_conexant snd_hda_codec_generic snd_hda_codec_hdmi
snd_hda_core snd_hda_intel snd_hwdep snd_pcm snd_rawmidi snd_seq
snd_seq_device snd_seq_midi snd_seq_midi_event snd_timer sony_laptop
soundcore syscopyarea sysfillrect sysimgblt usbhid video
x86_pkg_temp_thermal x_tables xt_addrtype xt_conntrack xt_hl xt_limit
xt_LOG xt_tcpudp

 dmesg | grep i8042
[    2.986695] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M]
 at 0x60,0x64 irq 1,12 [    2.989921] serio: i8042 KBD port at
 0x60,0x64 irq 1 [    2.989925] serio: i8042 AUX port at 0x60,0x64 irq
 12 [    3.014179] input: AT Translated Set 2 keyboard
 as /devices/platform/i8042/serio0/input/input3 [   20.297566] input:
 AlpsPS/2 ALPS GlidePoint as /devices/platform/i8042/serio1/input/input8

> Peter, any ideas?
> 
> 								Pavel
> 
> On Fri 2018-10-19 10:20:31, Numan Demirdöğen wrote:
> > On Fri, 31 Aug 2018 21:53:11 +0300
> > Numan Demirdöğen <if.gnu.linux@gmail.com> wrote:
> >   
> > >If I put laptop to suspend or hibernate by closing lid, power
> > >manager or any other method and then I resume/wake up laptop,
> > >keyboard is not responding. My laptop is a Sony Vaio VPCEH2F1E. 
> > >
> > >Steps to produce bug:
> > >1. Boot
> > >2. Put laptop to sleep
> > >3. Resume
> > >
> > >What I expect to happen: Keyboard responds to key press.
> > >What happens: Keyboard does not respond but mouse and trackball are
> > >working.
> > >
> > >git bisect point 9d659ae14b545c4296e812c70493bfdc999b5c1c as the
> > >first bad commit.
> > >
> > >Bad commit link:
> > >https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=9d659ae14b545c4296e812c70493bfdc999b5c1c
> > >
> > > Link to actual bug report:
> > >https://bugzilla.kernel.org/show_bug.cgi?id=195471
> > >
> > >awk -f ver_linux
> > >Linux korsan 4.18.5-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 24 12:48:58
> > >UTC 2018 x86_64 GNU/Linux GNU C               	8.2.0
> > >GNU Make            	4.2.1
> > >Binutils            	2.31.1
> > >Util-linux          	2.32.1
> > >Mount               	2.32.1
> > >Module-init-tools   	25
> > >E2fsprogs           	1.44.4
> > >Jfsutils            	1.1.15
> > >Reiserfsprogs       	3.6.27
> > >Xfsprogs            	4.17.0
> > >Pcmciautils         	018
> > >Linux C Library     	2.28
> > >Dynamic linker (ldd)	2.28
> > >Linux C++ Library   	6.0.25
> > >Procps              	3.3.15
> > >Kbd                 	2.0.4
> > >Console-tools       	2.0.4
> > >Sh-utils            	8.29
> > >Udev                	239
> > >Wireless-tools      	30
> > >Modules Loaded      	ac agpgart ahci arc4 ath ath3k ath9k
> > >ath9k_common ath9k_hw atkbd battery bluetooth bpfilter ccm cdrom
> > >cfg80211 coretemp crc16 crc32c_generic crc32c_intel crc32_pclmul
> > >crct10dif_pclmul cryptd drm drm_kms_helper ecdh_generic ehci_hcd
> > >ehci_pci evdev ext4 fb_sys_fops fscrypto fuse ghash_clmulni_intel
> > >gpio_ich hid hid_generic i2c_algo_bit i2c_i801 i8042 i915
> > >input_leds intel_cstate intel_gtt intel_powerclamp intel_rapl
> > >intel_rapl_perf intel_uncore iptable_filter iptable_mangle
> > >iptable_nat ip_tables irqbypass iTCO_vendor_support iTCO_wdt jbd2
> > >kvm kvm_intel led_class libahci libata libcrc32c libps2 lpc_ich
> > >mac80211 mac_hid mbcache mei mei_me mousedev msr nf_conntrack
> > >nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat nf_nat_ipv4 pcc_cpufreq
> > >psmouse rfkill rtc_cmos scsi_mod sd_mod serio serio_raw snd
> > >snd_hda_codec snd_hda_codec_conexant snd_hda_codec_generic
> > >snd_hda_codec_hdmi snd_hda_core snd_hda_intel snd_hwdep snd_pcm
> > >snd_timer sony_laptop soundcore sr_mod syscopyarea sysfillrect
> > >sysimgblt usb_common usbcore usbhid x86_pkg_temp_thermal x_tables
> > >
> > >dmesg | grep i8042
> > >[    0.574078] i8042: PNP: PS/2 Controller
> > >[PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12 [    0.575936]
> > >serio: i8042 KBD port at 0x60,0x64 irq 1 [    0.576143] serio:
> > >i8042 AUX port at 0x60,0x64 irq 12 [    0.618880] input: AT
> > >Translated Set 2 keyboard
> > >as /devices/platform/i8042/serio0/input/input3 [   11.248435]
> > >input: AlpsPS/2 ALPS GlidePoint
> > >as /devices/platform/i8042/serio1/input/input5
> > >
> > >cat /proc/interrupts 
> > >           CPU0       CPU1       CPU2       CPU3       
> > >  0:          8          0          0          0   IO-APIC
> > > 2-edge      timer 1:          0          0          0      10286
> > > IO-APIC   1-edge      i8042 8:          0          0
> > > 0          1   IO-APIC   8-edge      rtc0 9:          0
> > > 9479          0          0   IO-APIC   9-fasteoi   acpi 12:
> > > 0          0     370114          0   IO-APIC  12-edge      i8042
> > > 16:     197457          0          0          0   IO-APIC
> > > 16-fasteoi   ehci_hcd:usb1, ath9k 19:          0          0
> > > 0          0   IO-APIC  19-fasteoi   i801_smbus 23:
> > > 0          0      71055          0   IO-APIC  23-fasteoi
> > > ehci_hcd:usb2 24:          0      74549          0          0
> > > PCI-MSI 512000-edge      ahci[0000:00:1f.2] 25:          0
> > > 14          0          0   PCI-MSI 360448-edge      mei_me
> > > 26:          0          0     138870          0   PCI-MSI
> > > 32768-edge      i915 27:          0          0          0
> > > 330   PCI-MSI 442368-edge      snd_hda_intel:card0
> > >NMI:         24         22         25         21   Non-maskable
> > >interrupts LOC:     534734     446934     603337     440320   Local
> > >timer interrupts SPU:          0          0          0          0
> > >Spurious interrupts PMI:         24         22         25
> > >21 Performance monitoring interrupts IWI:         26         12
> > >43115         22   IRQ work interrupts RTR:          0
> > >0          0          0   APIC ICR read retries RES:      95282
> > >76970      60242      46409   Rescheduling interrupts CAL:
> > >66746      75300      70554      69119   Function call interrupts
> > >TLB:      50929      54528      51413      48017   TLB shootdowns
> > >TRM:          0          0          0          0   Thermal event
> > >interrupts THR:          0          0          0          0
> > >Threshold APIC interrupts DFR:          0          0
> > >0          0   Deferred Error APIC interrupts MCE:          0
> > >0          0          0   Machine check exceptions MCP:
> > >18         19         19         19   Machine check polls
> > >HYP:          0          0          0          0   Hypervisor
> > >callback interrupts HRE:          0          0          0
> > >0   Hyper-V reenlightenment interrupts HVS:          0          0
> > >0          0   Hyper-V stimer0 interrupts ERR:          0
> > >MIS:          0 PIN:          0          0          0          0
> > >Posted-interrupt notification event NPI:          0
> > >0          0          0   Nested posted-interrupt event PIW:
> > >0          0          0          0   Posted-interrupt wakeup event
> > >
> > >P.S: My native language is not English.
> > >  
> > 
> > Hi,
> > 
> > I am forwarding this e-mail which describes a problem related to
> > suspend/hibernate at the advise of Pavel Machek.
> >   

[-- Attachment #2: Dijital OpenPGP imzası --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [regression, bisected] Keyboard not responding after resuming from suspend/hibernate
  2018-10-28 19:06     ` Numan Demirdöğen
@ 2018-11-30 12:44         ` Numan Demirdöğen
  0 siblings, 0 replies; 13+ messages in thread
From: Numan Demirdöğen @ 2018-11-30 12:44 UTC (permalink / raw)
  To: Pavel Machek
  Cc: jason.low2, Waiman.Long, paulmck, tglx, dmitry.torokhov, peterz,
	mingo, linux-kernel, linux-input, Pavel Machek, Waiman.Long,
	paulmck, tglx, dmitry.torokhov, peterz, mingo

[-- Attachment #1: Type: text/plain, Size: 1707 bytes --]

Sun, 28 Oct 2018 22:06:54 +0300 tarihinde
Numan Demirdöğen <if.gnu.linux@gmail.com> yazdı:

>Thu, 25 Oct 2018 09:49:03 +0200 tarihinde
>Pavel Machek <pavel@ucw.cz> yazdı:
>
>> Hi!
>> 
>> Here's problem bisected down to:
>> 
>> commit 9d659ae14b545c4296e812c70493bfdc999b5c1c
>> Author: Peter Zijlstra <peterz@infradead.org>
>> Date:   Tue Aug 23 14:40:16 2016 +0200
>> 
>>     locking/mutex: Add lock handoff to avoid starvation
>> 
>>     Implement lock handoff to avoid lock starvation.
>> 
>> Numan, I assume revert of that patch on the 4.18 kernel still makes
>> it work?
>>   
>
>Unfortunately, I could not revert
>9d659ae14b545c4296e812c70493bfdc999b5c1c on kernels from 4.18.16 to
>4.10-rc1 because there were too much conflicts, which I could not solve
>as an "average Joe". I tried a3ea3d9b865c2a8f7fe455c7fa26db4b6fd066e3
>which is parent of 9d659ae14b545c4296e812c70493bfdc999b5c1c and
>succeeded to compile kernel.
>
>git checkout a3ea3d9b865c2a8f7fe455c7fa26db4b6fd066e3
>
>Then, I compiled kernel and rebooted with it. I tried a couples of
>times suspending and resuming, all of the time keyboard worked as
>expected.
>

With this one line patch from Takashi Iwai, keyboard is working as
expected after resuming from suspend/hibernate.

--- a/kernel/locking/mutex.c
+++ b/kernel/locking/mutex.c
@@ -59,7 +59,7 @@ EXPORT_SYMBOL(__mutex_init);
  * Bit2 indicates handoff has been done and we're waiting for pickup.
  */
 #define MUTEX_FLAG_WAITERS	0x01
-#define MUTEX_FLAG_HANDOFF	0x02
+#define MUTEX_FLAG_HANDOFF	0x00
 #define MUTEX_FLAG_PICKUP	0x04
 
 #define MUTEX_FLAGS		0x07


Thanks in advance and regards,
-- 
Numan Demirdöğen

[-- Attachment #2: Dijital OpenPGP imzası --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [regression, bisected] Keyboard not responding after resuming from suspend/hibernate
@ 2018-11-30 12:44         ` Numan Demirdöğen
  0 siblings, 0 replies; 13+ messages in thread
From: Numan Demirdöğen @ 2018-11-30 12:44 UTC (permalink / raw)
  Cc: jason.low2, Waiman.Long, paulmck, tglx, dmitry.torokhov, peterz,
	mingo, linux-kernel, linux-input, Pavel Machek

[-- Attachment #1: Type: text/plain, Size: 1707 bytes --]

Sun, 28 Oct 2018 22:06:54 +0300 tarihinde
Numan Demirdöğen <if.gnu.linux@gmail.com> yazdı:

>Thu, 25 Oct 2018 09:49:03 +0200 tarihinde
>Pavel Machek <pavel@ucw.cz> yazdı:
>
>> Hi!
>> 
>> Here's problem bisected down to:
>> 
>> commit 9d659ae14b545c4296e812c70493bfdc999b5c1c
>> Author: Peter Zijlstra <peterz@infradead.org>
>> Date:   Tue Aug 23 14:40:16 2016 +0200
>> 
>>     locking/mutex: Add lock handoff to avoid starvation
>> 
>>     Implement lock handoff to avoid lock starvation.
>> 
>> Numan, I assume revert of that patch on the 4.18 kernel still makes
>> it work?
>>   
>
>Unfortunately, I could not revert
>9d659ae14b545c4296e812c70493bfdc999b5c1c on kernels from 4.18.16 to
>4.10-rc1 because there were too much conflicts, which I could not solve
>as an "average Joe". I tried a3ea3d9b865c2a8f7fe455c7fa26db4b6fd066e3
>which is parent of 9d659ae14b545c4296e812c70493bfdc999b5c1c and
>succeeded to compile kernel.
>
>git checkout a3ea3d9b865c2a8f7fe455c7fa26db4b6fd066e3
>
>Then, I compiled kernel and rebooted with it. I tried a couples of
>times suspending and resuming, all of the time keyboard worked as
>expected.
>

With this one line patch from Takashi Iwai, keyboard is working as
expected after resuming from suspend/hibernate.

--- a/kernel/locking/mutex.c
+++ b/kernel/locking/mutex.c
@@ -59,7 +59,7 @@ EXPORT_SYMBOL(__mutex_init);
  * Bit2 indicates handoff has been done and we're waiting for pickup.
  */
 #define MUTEX_FLAG_WAITERS	0x01
-#define MUTEX_FLAG_HANDOFF	0x02
+#define MUTEX_FLAG_HANDOFF	0x00
 #define MUTEX_FLAG_PICKUP	0x04
 
 #define MUTEX_FLAGS		0x07


Thanks in advance and regards,
-- 
Numan Demirdöğen

[-- Attachment #2: Dijital OpenPGP imzası --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [regression, bisected] Keyboard not responding after resuming from suspend/hibernate
  2018-11-30 12:44         ` Numan Demirdöğen
  (?)
@ 2018-12-02 22:28         ` Pavel Machek
  2018-12-18  7:23           ` Numan Demirdöğen
  -1 siblings, 1 reply; 13+ messages in thread
From: Pavel Machek @ 2018-12-02 22:28 UTC (permalink / raw)
  To: Numan Demirdöğen
  Cc: jason.low2, Waiman.Long, paulmck, tglx, dmitry.torokhov, peterz,
	mingo, linux-kernel, linux-input

[-- Attachment #1: Type: text/plain, Size: 2151 bytes --]

On Fri 2018-11-30 15:44:55, Numan Demirdöğen wrote:
> Sun, 28 Oct 2018 22:06:54 +0300 tarihinde
> Numan Demirdöğen <if.gnu.linux@gmail.com> yazdı:
> 
> >Thu, 25 Oct 2018 09:49:03 +0200 tarihinde
> >Pavel Machek <pavel@ucw.cz> yazdı:
> >
> >> Hi!
> >> 
> >> Here's problem bisected down to:
> >> 
> >> commit 9d659ae14b545c4296e812c70493bfdc999b5c1c
> >> Author: Peter Zijlstra <peterz@infradead.org>
> >> Date:   Tue Aug 23 14:40:16 2016 +0200
> >> 
> >>     locking/mutex: Add lock handoff to avoid starvation
> >> 
> >>     Implement lock handoff to avoid lock starvation.
> >> 
> >> Numan, I assume revert of that patch on the 4.18 kernel still makes
> >> it work?
> >>   
> >
> >Unfortunately, I could not revert
> >9d659ae14b545c4296e812c70493bfdc999b5c1c on kernels from 4.18.16 to
> >4.10-rc1 because there were too much conflicts, which I could not solve
> >as an "average Joe". I tried a3ea3d9b865c2a8f7fe455c7fa26db4b6fd066e3
> >which is parent of 9d659ae14b545c4296e812c70493bfdc999b5c1c and
> >succeeded to compile kernel.
> >
> >git checkout a3ea3d9b865c2a8f7fe455c7fa26db4b6fd066e3
> >
> >Then, I compiled kernel and rebooted with it. I tried a couples of
> >times suspending and resuming, all of the time keyboard worked as
> >expected.
> >
> 
> With this one line patch from Takashi Iwai, keyboard is working as
> expected after resuming from suspend/hibernate.
> 
> --- a/kernel/locking/mutex.c
> +++ b/kernel/locking/mutex.c
> @@ -59,7 +59,7 @@ EXPORT_SYMBOL(__mutex_init);
>   * Bit2 indicates handoff has been done and we're waiting for pickup.
>   */
>  #define MUTEX_FLAG_WAITERS	0x01
> -#define MUTEX_FLAG_HANDOFF	0x02
> +#define MUTEX_FLAG_HANDOFF	0x00
>  #define MUTEX_FLAG_PICKUP	0x04
>  
>  #define MUTEX_FLAGS		0x07
> 
> 
> Thanks in advance and regards,

Ok. So it is a regression, and you can ask Linus to apply this
.. but... that's kind of heavy solution. Peter, do you have any other
ideas?

									Pavel



-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [regression, bisected] Keyboard not responding after resuming from suspend/hibernate
  2018-12-02 22:28         ` Pavel Machek
@ 2018-12-18  7:23           ` Numan Demirdöğen
  2019-03-14 19:54             ` Peter Zijlstra
  0 siblings, 1 reply; 13+ messages in thread
From: Numan Demirdöğen @ 2018-12-18  7:23 UTC (permalink / raw)
  To: Pavel Machek
  Cc: jason.low2, Waiman.Long, paulmck, tglx, dmitry.torokhov, peterz,
	mingo, linux-kernel, linux-input

[-- Attachment #1: Type: text/plain, Size: 2660 bytes --]

Sun, 2 Dec 2018 23:28:09 +0100 tarihinde
Pavel Machek <pavel@ucw.cz> yazdı:

>On Fri 2018-11-30 15:44:55, Numan Demirdöğen wrote:
>> Sun, 28 Oct 2018 22:06:54 +0300 tarihinde
>> Numan Demirdöğen <if.gnu.linux@gmail.com> yazdı:
>>   
>> >Thu, 25 Oct 2018 09:49:03 +0200 tarihinde
>> >Pavel Machek <pavel@ucw.cz> yazdı:
>> >  
>> >> Hi!
>> >> 
>> >> Here's problem bisected down to:
>> >> 
>> >> commit 9d659ae14b545c4296e812c70493bfdc999b5c1c
>> >> Author: Peter Zijlstra <peterz@infradead.org>
>> >> Date:   Tue Aug 23 14:40:16 2016 +0200
>> >> 
>> >>     locking/mutex: Add lock handoff to avoid starvation
>> >> 
>> >>     Implement lock handoff to avoid lock starvation.
>> >> 
>> >> Numan, I assume revert of that patch on the 4.18 kernel still
>> >> makes it work?
>> >>     
>> >
>> >Unfortunately, I could not revert
>> >9d659ae14b545c4296e812c70493bfdc999b5c1c on kernels from 4.18.16 to
>> >4.10-rc1 because there were too much conflicts, which I could not
>> >solve as an "average Joe". I tried
>> >a3ea3d9b865c2a8f7fe455c7fa26db4b6fd066e3 which is parent of
>> >9d659ae14b545c4296e812c70493bfdc999b5c1c and succeeded to compile
>> >kernel.
>> >
>> >git checkout a3ea3d9b865c2a8f7fe455c7fa26db4b6fd066e3
>> >
>> >Then, I compiled kernel and rebooted with it. I tried a couples of
>> >times suspending and resuming, all of the time keyboard worked as
>> >expected.
>> >  
>> 
>> With this one line patch from Takashi Iwai, keyboard is working as
>> expected after resuming from suspend/hibernate.
>> 
>> --- a/kernel/locking/mutex.c
>> +++ b/kernel/locking/mutex.c
>> @@ -59,7 +59,7 @@ EXPORT_SYMBOL(__mutex_init);
>>   * Bit2 indicates handoff has been done and we're waiting for
>> pickup. */
>>  #define MUTEX_FLAG_WAITERS	0x01
>> -#define MUTEX_FLAG_HANDOFF	0x02
>> +#define MUTEX_FLAG_HANDOFF	0x00
>>  #define MUTEX_FLAG_PICKUP	0x04
>>  
>>  #define MUTEX_FLAGS		0x07
>> 
>> 
>> Thanks in advance and regards,  
>
>Ok. So it is a regression, and you can ask Linus to apply this
>.. but... that's kind of heavy solution. Peter, do you have any other
>ideas?
>
>									Pavel

Hi,

I did not mention the one line patch from Takashi Iwai as a means of fix
but as a hint. Sorry for misunderstanding.

Here is a another hint from another user:

I found that passing the options i8042.reset=1 i8042.dumbkbd=1 i8042.direct=1
results in the keyboard functioning after resume. However, there is a
long delay before the keyboard or mouse will respond to input on the
lock screen.[1]

[1] https://bugzilla.kernel.org/show_bug.cgi?id=195471#c39

-- 
Numan Demirdöğen

[-- Attachment #2: Dijital OpenPGP imzası --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [regression, bisected] Keyboard not responding after resuming from suspend/hibernate
  2018-12-18  7:23           ` Numan Demirdöğen
@ 2019-03-14 19:54             ` Peter Zijlstra
  0 siblings, 0 replies; 13+ messages in thread
From: Peter Zijlstra @ 2019-03-14 19:54 UTC (permalink / raw)
  To: Numan Demirdöğen
  Cc: Pavel Machek, jason.low2, Waiman.Long, paulmck, tglx,
	dmitry.torokhov, mingo, linux-kernel, linux-input

On Tue, Dec 18, 2018 at 10:23:02AM +0300, Numan Demirdöğen wrote:
> I found that passing the options i8042.reset=1 i8042.dumbkbd=1 i8042.direct=1
> results in the keyboard functioning after resume. However, there is a
> long delay before the keyboard or mouse will respond to input on the
> lock screen.[1]

So the thing is, the mutex works, there's nothing wrong or broken about
it (or we'd have known, the kernel would crash and burn). The hand-off
stuff fixed at least one known starvation case as well.

What it does do, is change timing behaviour. But that is something that
is not guaranteed anyway.

This all smells like there's some timing dependent behaviour (aka. race
condition) in the suspend/keyboard interaction _somewhere_.

Now, I know absolutely nothing about either suspend or keyboard stuff,
so I really can't help there. The best idea is to add trace_printk()
throughout the keyboard suspend/resume code and see if there's a clue to
be had there (using remote access to dump the trace buffer after resume,
because of lack of keyboard).

Obviously that takes someone who knows how that should work ...

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-03-14 19:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-31 18:53 PROBLEM: Keyboard not responding after resuming from suspend/hibernate Numan Demirdöğen
2018-08-31 19:16 ` Peter Zijlstra
2018-08-31 19:38   ` Numan Demirdöğen
2018-09-03  8:53 ` Numan Demirdöğen
2018-09-18 18:54   ` Pavel Machek
2018-10-19  7:20 ` Fw: " Numan Demirdöğen
2018-10-25  7:49   ` [regression, bisected] " Pavel Machek
2018-10-28 19:06     ` Numan Demirdöğen
2018-11-30 12:44       ` Numan Demirdöğen
2018-11-30 12:44         ` Numan Demirdöğen
2018-12-02 22:28         ` Pavel Machek
2018-12-18  7:23           ` Numan Demirdöğen
2019-03-14 19:54             ` Peter Zijlstra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.