Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1473825

Re: Kernel Freeze with American Megatrends BIOS

From Roland Singer <roland.singer@desertbit.com>
Newsgroups linux.kernel
Subject Re: Kernel Freeze with American Megatrends BIOS
Date 2016-08-31 22:20 +0200
Message-ID <sck9j-718-9@gated-at.bofh.it> (permalink)
References (4 earlier) <sccbL-1TJ-9@gated-at.bofh.it> <sccOt-2m4-11@gated-at.bofh.it> <sccYa-2pg-15@gated-at.bofh.it> <scdAR-2Rr-3@gated-at.bofh.it> <scjZD-6XP-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 08/31/16 22:06, Roland Singer wrote:
> Here is Peter Wu's reply, which was not send to the mailing list, because
> I had to resend my e-mail to him due to a failure...
> 
> 
> -------- Forwarded Message --------
> Subject: Re: Fwd: Re: Kernel Freeze with American Megatrends BIOS
> Date: Wed, 31 Aug 2016 18:08:53 +0200
> From: Peter Wu <peter@lekensteyn.nl>
> To: Roland Singer <roland.singer@desertbit.com>
> 
> On Wed, Aug 31, 2016 at 05:56:18PM +0200, Roland Singer wrote:
> 
>>> If you look at my notes.txt, you will see that _OFF always executes the
>>> same code. PGON differs. When the problem occurs, "Q0L0" somehow always
>>> reads back as non-zero and LNKS < 7.
>>>
>>
>> Oh you're Lekensteyn ^^
> 
> Yes, that's me :) I wrote bbswitch, did the Optimus and PR3 ACPI support
> in nouveau so I am fairly certain what happens behind the scenes.
> 

Awesome! Thanks for all your efforts! Great work :)


>> I don't have LNKS and no while loop after calling LKEN ?!
> 
> Yes that is what I said in
> https://www.spinics.net/lists/linux-pci/msg53694.html:
> 
> "Other affected devices have similar code, differences are small:
> No check for LNKS (avoids the infinite loop, but device is still off)"
>

Ah ok, missed that.


>> It might be, that lspci does not only power the GPU on, but triggers
>> another pci action which causes the race condition.
>> Does this have something to do with your quote about the retrain bit?
> 
> That is an interesting hypothesis. Even if you invoke `lspci -s01:00.0`
> for example, it will always probe for all devices. So maybe interaction
> with its parent device (PCI root port 00:02.0) causes issues.
> 
> However I also tested without lspci before, and the problem still
> exists. You can trigger runtime resume via (as root):
> 
>     echo > /sys/bus/pci/0000:01:00.0/power/control on
> 
> Set it to "auto" to make it sleep again.
> 

Just tried it over and over again. I don't have any problems switching the GPU power state
with bbswitch. So, switching the GPU on is just fine. There must be something else, which
does not cooperate well while switching it on (lspci)...

I can confirm,, that `lspci -s01:00.0` also freezes the system.

Trying to trigger runtime resume with `/sys/bus/pci/0000:01:00.0/power/control`
did not work for me. The GPU just stayed off.
Any hints how to get some more information?

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Kernel Freeze with American Megatrends BIOS Bjorn Helgaas <helgaas@kernel.org> - 2016-08-29 18:10 +0200
  Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-29 21:10 +0200
    Re: Kernel Freeze with American Megatrends BIOS Bjorn Helgaas <helgaas@kernel.org> - 2016-08-29 21:10 +0200
      Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-29 22:00 +0200
        Re: Kernel Freeze with American Megatrends BIOS Bjorn Helgaas <helgaas@kernel.org> - 2016-08-30 02:00 +0200
          Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-30 12:20 +0200
            Re: Kernel Freeze with American Megatrends BIOS Bjorn Helgaas <helgaas@kernel.org> - 2016-08-30 15:10 +0200
              Re: Kernel Freeze with American Megatrends BIOS Emil Velikov <emil.l.velikov@gmail.com> - 2016-08-30 16:10 +0200
                Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-30 17:30 +0200
                Re: Kernel Freeze with American Megatrends BIOS Ilia Mirkin <imirkin@alum.mit.edu> - 2016-08-30 17:50 +0200
                Re: Kernel Freeze with American Megatrends BIOS Ilia Mirkin <imirkin@alum.mit.edu> - 2016-08-30 17:50 +0200
                Re: Kernel Freeze with American Megatrends BIOS Emil Velikov <emil.l.velikov@gmail.com> - 2016-08-30 17:50 +0200
                Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-30 19:40 +0200
                Re: Kernel Freeze with American Megatrends BIOS Ilia Mirkin <imirkin@alum.mit.edu> - 2016-08-30 19:50 +0200
                Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-30 20:10 +0200
                Re: Kernel Freeze with American Megatrends BIOS Ilia Mirkin <imirkin@alum.mit.edu> - 2016-08-30 20:20 +0200
                Re: Kernel Freeze with American Megatrends BIOS Peter Wu <peter@lekensteyn.nl> - 2016-08-30 21:30 +0200
                Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-31 13:20 +0200
                Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-31 13:20 +0200
                Re: Kernel Freeze with American Megatrends BIOS Emil Velikov <emil.l.velikov@gmail.com> - 2016-08-30 20:10 +0200
                Re: Kernel Freeze with American Megatrends BIOS Emil Velikov <emil.l.velikov@gmail.com> - 2016-08-30 20:20 +0200
                Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-31 13:00 +0200
  Re: Kernel Freeze with American Megatrends BIOS Peter Wu <peter@lekensteyn.nl> - 2016-08-30 22:00 +0200
    Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-31 13:30 +0200
      Re: Kernel Freeze with American Megatrends BIOS Peter Wu <peter@lekensteyn.nl> - 2016-08-31 13:50 +0200
        Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-31 14:30 +0200
          Re: Kernel Freeze with American Megatrends BIOS Peter Wu <peter@lekensteyn.nl> - 2016-08-31 14:40 +0200
            Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-31 15:20 +0200
              Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-31 22:10 +0200
                Re: Kernel Freeze with American Megatrends BIOS Roland Singer <roland.singer@desertbit.com> - 2016-08-31 22:20 +0200

csiph-web