Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
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 BI

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
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 BI

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
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 <

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
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 To: Roland

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
>> >> Thanks. Right now I am overriding the DSDT, but I am not able to override >> the SSDT, because I have to fix and compile all the SSDT files. There >> are too many compile errors... Wanted to find the exact line which >> is responsible for the hickup. > > Have you disassembled with externs

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
>> >> Thanks. Right now I am overriding the DSDT, but I am not able to override >> the SSDT, because I have to fix and compile all the SSDT files. There >> are too many compile errors... Wanted to find the exact line which >> is responsible for the hickup. > > Have you disassembled with externs

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Peter Wu
On Wed, Aug 31, 2016 at 02:21:31PM +0200, Roland Singer wrote: > Am 31.08.2016 um 13:46 schrieb Peter Wu: > > On Wed, Aug 31, 2016 at 01:27:36PM +0200, Roland Singer wrote: > >> Am 30.08.2016 um 21:53 schrieb Peter Wu: > >>> On Mon, Aug 29, 2016 at 11:02:10AM -0500, Bjorn Helgaas wrote: >

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Peter Wu
On Wed, Aug 31, 2016 at 02:21:31PM +0200, Roland Singer wrote: > Am 31.08.2016 um 13:46 schrieb Peter Wu: > > On Wed, Aug 31, 2016 at 01:27:36PM +0200, Roland Singer wrote: > >> Am 30.08.2016 um 21:53 schrieb Peter Wu: > >>> On Mon, Aug 29, 2016 at 11:02:10AM -0500, Bjorn Helgaas wrote: >

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
Am 31.08.2016 um 13:46 schrieb Peter Wu: > On Wed, Aug 31, 2016 at 01:27:36PM +0200, Roland Singer wrote: >> Am 30.08.2016 um 21:53 schrieb Peter Wu: >>> On Mon, Aug 29, 2016 at 11:02:10AM -0500, Bjorn Helgaas wrote: [+cc linux-acpi, linux-kernel, dri-devel] Hi Roland, I

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
Am 31.08.2016 um 13:46 schrieb Peter Wu: > On Wed, Aug 31, 2016 at 01:27:36PM +0200, Roland Singer wrote: >> Am 30.08.2016 um 21:53 schrieb Peter Wu: >>> On Mon, Aug 29, 2016 at 11:02:10AM -0500, Bjorn Helgaas wrote: [+cc linux-acpi, linux-kernel, dri-devel] Hi Roland, I

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Peter Wu
On Wed, Aug 31, 2016 at 01:27:36PM +0200, Roland Singer wrote: > Am 30.08.2016 um 21:53 schrieb Peter Wu: > > On Mon, Aug 29, 2016 at 11:02:10AM -0500, Bjorn Helgaas wrote: > >> [+cc linux-acpi, linux-kernel, dri-devel] > >> > >> Hi Roland, > >> > >> I have no idea how to debug this problem. Are

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Peter Wu
On Wed, Aug 31, 2016 at 01:27:36PM +0200, Roland Singer wrote: > Am 30.08.2016 um 21:53 schrieb Peter Wu: > > On Mon, Aug 29, 2016 at 11:02:10AM -0500, Bjorn Helgaas wrote: > >> [+cc linux-acpi, linux-kernel, dri-devel] > >> > >> Hi Roland, > >> > >> I have no idea how to debug this problem. Are

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
Am 30.08.2016 um 21:53 schrieb Peter Wu: > On Mon, Aug 29, 2016 at 11:02:10AM -0500, Bjorn Helgaas wrote: >> [+cc linux-acpi, linux-kernel, dri-devel] >> >> Hi Roland, >> >> I have no idea how to debug this problem. Are you seeing something >> that suggests it may be a PCI problem? > > Yes I

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
Am 30.08.2016 um 21:53 schrieb Peter Wu: > On Mon, Aug 29, 2016 at 11:02:10AM -0500, Bjorn Helgaas wrote: >> [+cc linux-acpi, linux-kernel, dri-devel] >> >> Hi Roland, >> >> I have no idea how to debug this problem. Are you seeing something >> that suggests it may be a PCI problem? > > Yes I

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
Am 30.08.2016 um 21:21 schrieb Peter Wu: > On Tue, Aug 30, 2016 at 02:13:46PM -0400, Ilia Mirkin wrote: >> On Tue, Aug 30, 2016 at 2:02 PM, Roland Singer >> wrote: >>> I configured bbswitch to not set any states automatically... >>> So it's possible to obtain and

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
Am 30.08.2016 um 21:21 schrieb Peter Wu: > On Tue, Aug 30, 2016 at 02:13:46PM -0400, Ilia Mirkin wrote: >> On Tue, Aug 30, 2016 at 2:02 PM, Roland Singer >> wrote: >>> I configured bbswitch to not set any states automatically... >>> So it's possible to obtain and verify the GPU power state. >>>

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
Am 30.08.2016 um 20:13 schrieb Ilia Mirkin: > On Tue, Aug 30, 2016 at 2:02 PM, Roland Singer > wrote: >> I configured bbswitch to not set any states automatically... >> So it's possible to obtain and verify the GPU power state. >> >> However I removed the bbswitch

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
Am 30.08.2016 um 20:13 schrieb Ilia Mirkin: > On Tue, Aug 30, 2016 at 2:02 PM, Roland Singer > wrote: >> I configured bbswitch to not set any states automatically... >> So it's possible to obtain and verify the GPU power state. >> >> However I removed the bbswitch module and booted with nouveau.

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
Am 30.08.2016 um 20:09 schrieb Emil Velikov: > I second Ilia here. Using bbswitch in conjunction with any driver (be > that nouveau or the proprietary one) is a bad idea. > I removed bbswitch from my system and will use vgaswitcheroo to check the GPU power state from now. > (If Ilia's

Re: Kernel Freeze with American Megatrends BIOS

2016-08-31 Thread Roland Singer
Am 30.08.2016 um 20:09 schrieb Emil Velikov: > I second Ilia here. Using bbswitch in conjunction with any driver (be > that nouveau or the proprietary one) is a bad idea. > I removed bbswitch from my system and will use vgaswitcheroo to check the GPU power state from now. > (If Ilia's

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Peter Wu
On Mon, Aug 29, 2016 at 11:02:10AM -0500, Bjorn Helgaas wrote: > [+cc linux-acpi, linux-kernel, dri-devel] > > Hi Roland, > > I have no idea how to debug this problem. Are you seeing something > that suggests it may be a PCI problem? Yes I suspect there is an ACPI and/ or PCI problem, possibly

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Peter Wu
On Mon, Aug 29, 2016 at 11:02:10AM -0500, Bjorn Helgaas wrote: > [+cc linux-acpi, linux-kernel, dri-devel] > > Hi Roland, > > I have no idea how to debug this problem. Are you seeing something > that suggests it may be a PCI problem? Yes I suspect there is an ACPI and/ or PCI problem, possibly

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Peter Wu
On Tue, Aug 30, 2016 at 02:13:46PM -0400, Ilia Mirkin wrote: > On Tue, Aug 30, 2016 at 2:02 PM, Roland Singer > wrote: > > I configured bbswitch to not set any states automatically... > > So it's possible to obtain and verify the GPU power state. > > > > However I

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Peter Wu
On Tue, Aug 30, 2016 at 02:13:46PM -0400, Ilia Mirkin wrote: > On Tue, Aug 30, 2016 at 2:02 PM, Roland Singer > wrote: > > I configured bbswitch to not set any states automatically... > > So it's possible to obtain and verify the GPU power state. > > > > However I removed the bbswitch module and

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Ilia Mirkin
On Tue, Aug 30, 2016 at 2:02 PM, Roland Singer wrote: > I configured bbswitch to not set any states automatically... > So it's possible to obtain and verify the GPU power state. > > However I removed the bbswitch module and booted with nouveau. > > Kernel 4.7.2:

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Ilia Mirkin
On Tue, Aug 30, 2016 at 2:02 PM, Roland Singer wrote: > I configured bbswitch to not set any states automatically... > So it's possible to obtain and verify the GPU power state. > > However I removed the bbswitch module and booted with nouveau. > > Kernel 4.7.2: nouveau switches the discrete GPU

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Emil Velikov
On 30 August 2016 at 19:09, Emil Velikov wrote: > On 30 August 2016 at 18:37, Roland Singer wrote: >> I am running 4.7.2, but I also just tried the 4.8.0-rc4 mainline kernel. >> The result is the same. There is no difference if bbswitch of

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Emil Velikov
On 30 August 2016 at 19:09, Emil Velikov wrote: > On 30 August 2016 at 18:37, Roland Singer wrote: >> I am running 4.7.2, but I also just tried the 4.8.0-rc4 mainline kernel. >> The result is the same. There is no difference if bbswitch of acpi_call >> is used. However I noticed following: >> >>

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Emil Velikov
On 30 August 2016 at 18:37, Roland Singer wrote: > I am running 4.7.2, but I also just tried the 4.8.0-rc4 mainline kernel. > The result is the same. There is no difference if bbswitch of acpi_call > is used. However I noticed following: > > 1. The nouveau driver is

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Emil Velikov
On 30 August 2016 at 18:37, Roland Singer wrote: > I am running 4.7.2, but I also just tried the 4.8.0-rc4 mainline kernel. > The result is the same. There is no difference if bbswitch of acpi_call > is used. However I noticed following: > > 1. The nouveau driver is broken in both kernel version

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Roland Singer
I configured bbswitch to not set any states automatically... So it's possible to obtain and verify the GPU power state. However I removed the bbswitch module and booted with nouveau. Kernel 4.7.2: nouveau switches the discrete GPU off. I can't trigger the freeze, because bbswitch

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Roland Singer
I configured bbswitch to not set any states automatically... So it's possible to obtain and verify the GPU power state. However I removed the bbswitch module and booted with nouveau. Kernel 4.7.2: nouveau switches the discrete GPU off. I can't trigger the freeze, because bbswitch

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Ilia Mirkin
On Tue, Aug 30, 2016 at 1:37 PM, Roland Singer wrote: > My conclusion: > > 1. Nouveau has couple of problems with GTX 9** M Nvidia GPUs. >I would love to help here. nouveau + bbswitch will always end in tears. You're going behind the driver's back and messing

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Ilia Mirkin
On Tue, Aug 30, 2016 at 1:37 PM, Roland Singer wrote: > My conclusion: > > 1. Nouveau has couple of problems with GTX 9** M Nvidia GPUs. >I would love to help here. nouveau + bbswitch will always end in tears. You're going behind the driver's back and messing around with state it believes it

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Roland Singer
I am running 4.7.2, but I also just tried the 4.8.0-rc4 mainline kernel. The result is the same. There is no difference if bbswitch of acpi_call is used. However I noticed following: 1. The nouveau driver is broken in both kernel version and is responsible for the freezes while gathering power

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Roland Singer
I am running 4.7.2, but I also just tried the 4.8.0-rc4 mainline kernel. The result is the same. There is no difference if bbswitch of acpi_call is used. However I noticed following: 1. The nouveau driver is broken in both kernel version and is responsible for the freezes while gathering power

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Ilia Mirkin
On Tue, Aug 30, 2016 at 11:44 AM, Ilia Mirkin wrote: > On Tue, Aug 30, 2016 at 11:25 AM, Roland Singer > wrote: >> I tried these scenarios: >> >> 1. Booted the system without the bbswitch module. The nouveau module >>was loaded and is

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Ilia Mirkin
On Tue, Aug 30, 2016 at 11:44 AM, Ilia Mirkin wrote: > On Tue, Aug 30, 2016 at 11:25 AM, Roland Singer > wrote: >> I tried these scenarios: >> >> 1. Booted the system without the bbswitch module. The nouveau module >>was loaded and is responsible for the power management of the GPU. >>

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Emil Velikov
On 30 August 2016 at 16:25, Roland Singer wrote: > I tried these scenarios: > > 1. Booted the system without the bbswitch module. The nouveau module >was loaded and is responsible for the power management of the GPU. >The graphical session freezes after some

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Emil Velikov
On 30 August 2016 at 16:25, Roland Singer wrote: > I tried these scenarios: > > 1. Booted the system without the bbswitch module. The nouveau module >was loaded and is responsible for the power management of the GPU. >The graphical session freezes after some minutes... > > 2. Booted the

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Ilia Mirkin
On Tue, Aug 30, 2016 at 11:25 AM, Roland Singer wrote: > I tried these scenarios: > > 1. Booted the system without the bbswitch module. The nouveau module >was loaded and is responsible for the power management of the GPU. >The graphical session freezes after

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Ilia Mirkin
On Tue, Aug 30, 2016 at 11:25 AM, Roland Singer wrote: > I tried these scenarios: > > 1. Booted the system without the bbswitch module. The nouveau module >was loaded and is responsible for the power management of the GPU. >The graphical session freezes after some minutes... > > 2. Booted

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Roland Singer
I tried these scenarios: 1. Booted the system without the bbswitch module. The nouveau module was loaded and is responsible for the power management of the GPU. The graphical session freezes after some minutes... 2. Booted the system without bbswitch and with nouveau blacklisted.

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Roland Singer
I tried these scenarios: 1. Booted the system without the bbswitch module. The nouveau module was loaded and is responsible for the power management of the GPU. The graphical session freezes after some minutes... 2. Booted the system without bbswitch and with nouveau blacklisted.

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Emil Velikov
On 30 August 2016 at 14:06, Bjorn Helgaas wrote: > On Tue, Aug 30, 2016 at 12:08:57PM +0200, Roland Singer wrote: >> Thanks for pointing it out. >> >> Yeah that's right. The system will hang randomly a few minutes later, >> because some certain actions in the graphical user

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Emil Velikov
On 30 August 2016 at 14:06, Bjorn Helgaas wrote: > On Tue, Aug 30, 2016 at 12:08:57PM +0200, Roland Singer wrote: >> Thanks for pointing it out. >> >> Yeah that's right. The system will hang randomly a few minutes later, >> because some certain actions in the graphical user session will trigger

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Bjorn Helgaas
On Tue, Aug 30, 2016 at 12:08:57PM +0200, Roland Singer wrote: > Thanks for pointing it out. > > Yeah that's right. The system will hang randomly a few minutes later, > because some certain actions in the graphical user session will trigger > the freeze. > > I had a look at the function body of

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Bjorn Helgaas
On Tue, Aug 30, 2016 at 12:08:57PM +0200, Roland Singer wrote: > Thanks for pointing it out. > > Yeah that's right. The system will hang randomly a few minutes later, > because some certain actions in the graphical user session will trigger > the freeze. > > I had a look at the function body of

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Roland Singer
Thanks for pointing it out. Yeah that's right. The system will hang randomly a few minutes later, because some certain actions in the graphical user session will trigger the freeze. I had a look at the function body of pci_read_config_dword: #define PCI_OP_READ(size, type, len) \ int

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Roland Singer
Thanks for pointing it out. Yeah that's right. The system will hang randomly a few minutes later, because some certain actions in the graphical user session will trigger the freeze. I had a look at the function body of pci_read_config_dword: #define PCI_OP_READ(size, type, len) \ int

Re: Kernel Freeze with American Megatrends BIOS

2016-08-29 Thread Bjorn Helgaas
On Mon, Aug 29, 2016 at 09:55:56PM +0200, Roland Singer wrote: > Just tried it and the system didn't freeze. However it will freeze > after some time (few minutes while working). > > Seams to be pci_read_config_dword. Where is this exactly defined? pci_read_config_dword() is defined in

Re: Kernel Freeze with American Megatrends BIOS

2016-08-29 Thread Bjorn Helgaas
On Mon, Aug 29, 2016 at 09:55:56PM +0200, Roland Singer wrote: > Just tried it and the system didn't freeze. However it will freeze > after some time (few minutes while working). > > Seams to be pci_read_config_dword. Where is this exactly defined? pci_read_config_dword() is defined in

Re: Kernel Freeze with American Megatrends BIOS

2016-08-29 Thread Roland Singer
Just tried it and the system didn't freeze. However it will freeze after some time (few minutes while working). Seams to be pci_read_config_dword. Where is this exactly defined? Am 29.08.2016 um 21:07 schrieb Bjorn Helgaas: > On Mon, Aug 29, 2016 at 08:46:17PM +0200, Roland Singer wrote: >> Hi

Re: Kernel Freeze with American Megatrends BIOS

2016-08-29 Thread Roland Singer
Just tried it and the system didn't freeze. However it will freeze after some time (few minutes while working). Seams to be pci_read_config_dword. Where is this exactly defined? Am 29.08.2016 um 21:07 schrieb Bjorn Helgaas: > On Mon, Aug 29, 2016 at 08:46:17PM +0200, Roland Singer wrote: >> Hi

Re: Kernel Freeze with American Megatrends BIOS

2016-08-29 Thread Bjorn Helgaas
On Mon, Aug 29, 2016 at 08:46:17PM +0200, Roland Singer wrote: > Hi Bjorn, > > I am using the bbswitch kernel module to switch off/on the GPU and > to obtain the GPU power state. > Obtaining the GPU state immediately after starting the graphical user > session freezes the system. > > This code

Re: Kernel Freeze with American Megatrends BIOS

2016-08-29 Thread Bjorn Helgaas
On Mon, Aug 29, 2016 at 08:46:17PM +0200, Roland Singer wrote: > Hi Bjorn, > > I am using the bbswitch kernel module to switch off/on the GPU and > to obtain the GPU power state. > Obtaining the GPU state immediately after starting the graphical user > session freezes the system. > > This code

Re: Kernel Freeze with American Megatrends BIOS

2016-08-29 Thread Roland Singer
Hi Bjorn, I am using the bbswitch kernel module to switch off/on the GPU and to obtain the GPU power state. Obtaining the GPU state immediately after starting the graphical user session freezes the system. This code triggers something, which is responsible for the freeze. --- // Returns 1 if

Re: Kernel Freeze with American Megatrends BIOS

2016-08-29 Thread Roland Singer
Hi Bjorn, I am using the bbswitch kernel module to switch off/on the GPU and to obtain the GPU power state. Obtaining the GPU state immediately after starting the graphical user session freezes the system. This code triggers something, which is responsible for the freeze. --- // Returns 1 if

Re: Kernel Freeze with American Megatrends BIOS

2016-08-29 Thread Bjorn Helgaas
[+cc linux-acpi, linux-kernel, dri-devel] Hi Roland, I have no idea how to debug this problem. Are you seeing something that suggests it may be a PCI problem? On Tue, Aug 23, 2016 at 11:23:45AM +0200, Roland Singer wrote: > Hi, > > hope somebody can help me fix this kernel problem which

Re: Kernel Freeze with American Megatrends BIOS

2016-08-29 Thread Bjorn Helgaas
[+cc linux-acpi, linux-kernel, dri-devel] Hi Roland, I have no idea how to debug this problem. Are you seeing something that suggests it may be a PCI problem? On Tue, Aug 23, 2016 at 11:23:45AM +0200, Roland Singer wrote: > Hi, > > hope somebody can help me fix this kernel problem which