Created attachment 141071 [details] dmesg OS/Distro: Arch Linux x86_64 Sometimes this appears in dmesg: [149791.911280] [drm:hsw_disable_ips [i915]] *ERROR* Timed out waiting for IPS disable I am using the stock Arch kernel: 4.17.14-arch1-1-ARCH. Full dmesg is attached.
Created attachment 141072 [details] lspci
If you need more information, please feel free to ask.
I can't see the error "Timed out waiting for IPS disable" in dmesg anymore with drm-tip. [diego@t450 ~]$ uname -a Linux t450 4.18.0-g273ade7f #1 SMP PREEMPT Mon Aug 13 16:59:26 -03 2018 x86_64 GNU/Linux [diego@t450 ~]$ drm-tip commit 273ade7fd922e8074e5832fe5e014720aecba57c I do get frequent freezes on this laptop though, the freezes occur at random times and I cannot chvt, I can only do a hard reset at that point. I don't know if this bug is related to the freezes I get, and I have no further evidence so I will close this bug and investigate the cause of the freezes later.
I think I close this bug too soon, I went back to the stock archlinux kernel and I do not see the error straight after booting. I will be running with drm-tip kernel for a few days and try to reproduce the error.
ok, thanks. Please report failure using latest drm-tip: https://cgit.freedesktop.org/drm-tip and send dmesg with drm.debug=0x1e log_buf_len=4M from boot to failure.
After 3 days of using drm-tip, I can confirm I still get the error: [149791.911280] [drm:hsw_disable_ips [i915]] *ERROR* Timed out waiting for IPS disable I've booted with drm.debug=0x1e log_buf_len=4M and will post the dmesg the next time it happens again. Thanks.
ok, thanks.
Today is 1 week since I've started running my laptop with drm.debug=0x1e log_buf_len=4M as an attempt to get the debug output. For some reason though I wasn't able to reproduce the "IPS disable" error when running with these parameters. I am curious why I'm unable to reproduce the problem when running with these parameters, should I have waited longer?
Created attachment 141274 [details] dmesg.xz Attaching the captured dmesg in case you find something useful anyway. Please let me know if I can try something else.
So I'm having a very hard time trying to reproduce this error, as it happens very randomly. If someone knows how to reproduce this error please let me know.
I got this again with the 4.18.5-arch1-1-ARCH kernel, frustrating. [41496.594392] [drm:hsw_disable_ips [i915]] *ERROR* Timed out waiting for IPS disable
I've got another system freeze just after I rebooted without these parameters: drm.debug=0x1e log_buf_len=4M. I will try running with netconsole and see if I can get some useful logs.
I am curious if the debug low is somehow messing with timing or if there's a race somewhere, that's why I can't never get the "IPS disable" error when booting with the debug parameters.
(In reply to Diego Viola from comment #13) > I am curious if the debug low is somehow messing with timing or if there's a > race somewhere, that's why I can't never get the "IPS disable" error when > booting with the debug parameters. debug log*
Hi Diego, sounds like a timing issue. Could you try if you can reproduce the problem with the following patch? diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index ad0f0e5389d9..19c4b3ff691b 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -5081,7 +5081,7 @@ void hsw_disable_ips(const struct intel_crtc_state *crtc_state) /* wait for pcode to finish disabling IPS, which may take up to 42ms */ if (intel_wait_for_register(dev_priv, IPS_CTL, IPS_ENABLE, 0, - 42)) + 100)) DRM_ERROR("Timed out waiting for IPS disable\n"); } else { I915_WRITE(IPS_CTL, 0);
(In reply to Imre Deak from comment #15) > Hi Diego, > > sounds like a timing issue. Could you try if you can reproduce the problem > with the following patch? > > diff --git a/drivers/gpu/drm/i915/intel_display.c > b/drivers/gpu/drm/i915/intel_display.c > index ad0f0e5389d9..19c4b3ff691b 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -5081,7 +5081,7 @@ void hsw_disable_ips(const struct intel_crtc_state > *crtc_state) > /* wait for pcode to finish disabling IPS, which may take up to 42ms */ > if (intel_wait_for_register(dev_priv, > IPS_CTL, IPS_ENABLE, 0, > - 42)) > + 100)) > DRM_ERROR("Timed out waiting for IPS disable\n"); > } else { > I915_WRITE(IPS_CTL, 0); Hi Imre, Thanks for your patch. I am currently running drm-tip (4.19.0-rc1-gfd1d65ac5-dirty) with your patch applied and so far so good, no errors yet. I'll run with this for the rest of the week before confirming, but for now all is good. Thanks.
Hello, I can confirm the bug is fixed after applying Imre's patch, I no longer see the error in dmesg. Thanks.
*** Bug 107494 has been marked as a duplicate of this bug. ***
Fix in drm-tip: commit acb3ef0ee40ea657280a4a11d9f60eb2937c0dca Author: Imre Deak <imre.deak@intel.com> Date: Wed Sep 5 13:00:05 2018 +0300 drm/i915/bdw: Increase IPS disable timeout to 100ms
Thank you for fixing this bug, I appreciate it a lot.
Closing this bug as Resolved/fixed.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.