Things I've tried so far:
1. Updated Intel graphics firmware to latest version available on
git.kernel.org
Things slightly improved, now I have a freeze after a hour or two
instead of a few minutes. My guess is that firmware got better at
"GPU hang" handling and recovery, but didn't fixed the bug itself.
2. Switched Xorg driver from "modesetting" to older
"xf86-video-intel".
My GPU appears to be too modern for it, I run into graphical
artifacts, xorg server couldn't recognize GPU chipset, etc, so I had
to revert back to "modesetting".
3. Tried to set "enable_guc=0" option for i915 module, which
disabled GuC offloading.
While I couldn't reproduce the issue anymore and my laptop won't
freeze even after a few hours, instead I got poor performance,
higher than usual fan noise and battery drain.
It also taints the kernel by Intel's design, so I had to revert back
to default (which functionally seems to be "enable_guc=3").
There is also an option to try official backported Intel driver
which builds out-of-tree DKMS module, but I rather look for a more
standard solution. https://dgpu-docs.intel.com/releases/releases.html
So now my questions are:
How to check if this patch was added upstream to git.kernel.org and
to which kernel version?
And how upstream kernel version correlates to kernel version from
Debian, so I can get a reference point to see what patches for i915
were added?