[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #55 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- -- Sleep log with your patch. But now system is waking up on it's own at a random time (without me waking it up). Incessant wake ups are not there any longer. Aug 18

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #50 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- Sure, in fact I had tried the same patch (bringing back function amd_gpio_irq_init) and it's call and it did help if remember correctly but I was not sure if that alone as

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #57 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- -- Output of /sys/kernel/debug/gpio before any sleep. gpiochip0: GPIOs 768-1023, parent: platform/AMDI0030:00, AMDI0030:00: WAKE_INT_MASTER_REG: 0xff00 GPIO bank0 gpio

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #60 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- You mean I turn this function on using kernel config CONFIG_DEBUG_FS - amd_gpio_dbg_show ? -- You may reply to this email to add a comment. You are receiving this mail

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #54 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- Ok will patch and report back. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #56 from Mario Limonciello (AMD) (mario.limoncie...@amd.com) --- > But now system is waking up on it's own at a random time (without me waking > it up). > Incessant wake ups are not there any longer. Can you please share

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #53 from Mario Limonciello (AMD) (mario.limoncie...@amd.com) --- Yours is similar to mine, but I'm intentionally only touching the wake related bits, not the interrupt related ones. -- You may reply to this email to add a comment.

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #61 from Mario Limonciello (AMD) (mario.limoncie...@amd.com) --- There's a line in mainline kernel: pm_pr_dbg("GPIO %d is active: 0x%x", irqnr + i, regval);

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #62 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- One thing to note though is my laptop palm rest is metallic so I am not sure if when plugged in some static electricity is causing the wakeup since sometimes when I touch

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #52 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- Created attachment 304881 --> https://bugzilla.kernel.org/attachment.cgi?id=304881=edit 6.1.40 patch 01 -- You may reply to this email to add a comment. You are

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #58 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- -- Output of /sys/kernel/debug/gpio after first sleep. gpiochip0: GPIOs 768-1023, parent: platform/AMDI0030:00, AMDI0030:00: WAKE_INT_MASTER_REG: 0xff00 GPIO bank0

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #59 from Mario Limonciello (AMD) (mario.limoncie...@amd.com) --- OK.. GPIO 52 (0x34) is different between 6.1.39 and with my patch in place. This isn't documented in _AEI at all for any specific device. So if that's the reason you

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #51 from Mario Limonciello (AMD) (mario.limoncie...@amd.com) --- OK thanks, glad it's likely the right direction. Once I've got an ack from you it works I'll post it to the mailing list. -- You may reply to this email to add a

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #49 from Mario Limonciello (AMD) (mario.limoncie...@amd.com) --- Created attachment 304880 --> https://bugzilla.kernel.org/attachment.cgi?id=304880=edit potential patch (v1) I think I understand what's going on. It seems to me

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #64 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- Below is the log when suspended using lid close. Aug 18 01:40:57 shubhra-pc [info] kernel:[ 265.998444] wlp3s0: deauthenticating from 0e:e0:dc:16:bf:74 by local choice

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #70 from Mario Limonciello (AMD) (mario.limoncie...@amd.com) --- I'm tempted to say it sounds like a hardware problem. But if you can reliably go back to 6.1.39 and stop getting the "random" wakeups from GPIO 9 I think this really

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #68 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- Also found that behavior of 6.1.40 with the full patch is similar to 6.4.4 if this help narrow down further. -- You may reply to this email to add a comment. You are

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #69 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- Log from 6.4.4 Aug 18 02:59:33 shubhra-pc [debug] kernel:[ 106.825686] amd_gpio AMDI0030:00: GPIO 0 is active: 0x100578e3 Aug 18 02:59:34 shubhra-pc [info] kernel:[

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #48 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- Yes I am just focusing on drivers/pinctrl/pinctrl-amd.c/h I think I will be able to apply the commits incrementally from 6.1.39 to 6.1.40 by 20th Aug. It could also be

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #66 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- I think you are right, pins 9 is left active on 6.1.40 but not on 6.1.39 -- You may reply to this email to add a comment. You are receiving this mail because: You are

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #67 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- I tried the full patch and pin 9 remains active there too. So something else is needed along with this patch. Aug 18 02:16:26 shubhra-pc [debug] kernel:[ 110.090437]

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #63 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- Ok I checked purely on battery the wake up is random. Below is the log when suspended using power button Aug 18 01:37:46 shubhra-pc [debug] kernel:[ 74.404335] amd_gpio

[Bug 217754] System becomes hot when put to sleep

2023-08-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217754 --- Comment #65 from Shubhra Prakash Nandi (email2shub...@gmail.com) --- This is from 6.1.39 Aug 18 01:52:02 shubhra-pc [debug] kernel:[ 55.731448] amd_gpio AMDI0030:00: GPIO 0 is active: 0x100578e3 Aug 18 01:52:03 shubhra-pc [info] kernel:[