AceLan Kao,

In summary, I did not see any improvement, but perhaps some of the extended 
debugging is helpful.
I did the following steps over the course of my work day, so I might have 
missed a step, but here is the order of what I did:

I added the ubuntu kernel repo:
$ sudo add-apt-repository ppa:canonical-kernel-team/ppa

I added deb-src:
$ sudo sed -i 's/^Types:.*$/& deb-src/' 
/etc/apt/sources.list.d/canonical-kernel-team-ubuntu-ppa-noble.sources
$ sudo apt update

I then downloaded the kernel source:
$ sudo apt install build-essential
$ sudo apt source linux-image-unsigned-$(uname -r)

I extracted the source and patched it.
$ gunzip linux_6.8.0-43.43.diff.gz
$ tar -zxvf linux_6.8.0.orig.tar.gz
$ cd ~/linux-6.8
$ patch -p1 < ~/linux_6.8.0-43.43.diff

I applied your 2 patch files:
$ git apply ~/0001-usb-typec-ucsi_acpi-Add-LG-Gram-quirk.patch
$ git apply ~/0002-usb-typec-ucsi_acpi-Add-Victus-by-HP-Gaming-Laptop-1.patch

I also hand edited ucsi.c and ucsi_acpi.c, adding in the printk statements from 
the kernel.org bug 217076:
https://bugzilla.kernel.org/attachment.cgi?id=306314&action=diff#a/drivers/usb/typec/ucsi/ucsi_acpi.c_sec1

Finally, I ran make:
$ make -C /lib/modules/`uname -r`/build M=$PWD/drivers/usb/typec/ucsi/


next I ran the following series of commands to remove the running kernel 
modules and insert the new debug ones.
$ logger -t DEBUG "rmmod ucsi_acpi.ko"; sudo rmmod ucsi_acpi
$ logger -t DEBUG "rmmod typec_ucsi"; sudo rmmod typec_ucsi

$ logger -t DEBUG "insmod drivers/usb/typec/ucsi/typec_ucsi.ko"; sudo insmod 
drivers/usb/typec/ucsi/typec_ucsi.ko
$ logger -t DEBUG "echo 'file ucsi.c +p' > /proc/dynamic_debug/control"; sudo 
sh -c 'echo "file ucsi.c +p" > /proc/dynamic_debug/control'
$ logger -t DEBUG "insmod drivers/usb/typec/ucsi/ucsi_acpi.ko"; sudo insmod 
drivers/usb/typec/ucsi/ucsi_acpi.ko

I then plugged in a usb-c plantronics headset, hoping to trigger anything usb-c
The CPU is still through the roof!

I then removed the kernel modules
$ logger -t DEBUG "rmmod ucsi_acpi.ko"; sudo rmmod ucsi_acpi
$ logger -t DEBUG "rmmod typec_ucsi"; sudo rmmod typec_ucsi

Following this update I will attach a syslog which shows this event.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2073538

Title:
  kacpi_notify high cpu on interrupt gpe17

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2073538/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to