Please revert "ACPICA: AML interpreter: add region addresses in global list during initialization"
Jean Delvare
Tested-by Jean-Marc LenoirDear stable kernel team,
In stable kernel 4.19.2, the following upstream commit was included:
commit 4abb951b73ff0a8a979113ef185651aa3c8da19b
Author: Erik Schmauss Date: Wed Oct 17 14:09:35 2018 -0700
ACPICA: AML interpreter: add region addresses in global list during initialization
This commit was tagged with:
making it sound like it was fixing an actual bug. This is not the case. The commit fixes a side issue discovered while investigating bug #200011. It does NOT fix bug #200011 itself (as explicitly reported by Jean-Marc at https://bugzilla.kernel.org/show_bug.cgi?id=200011#c65 ).
It does however cause regressions, despite what the commit message says. See:
https://bugzilla.kernel.org/show_bug.cgi?id=201721
and I expect more similar regressions, as ACPI resource conflicts are very frequent.
This commit was not stable material to start with. It is intrusive, presents a risk of side effects, and does not solve an actual bug that is bothering users.
Please revert this commit from future stable kernels on all affected branches (I think only 4.18.19 and 4.19.2 are affected at the moment, but maybe other affected releases are in the works already).
Thanks,
Signature · 2 lines
Jean Delvare SUSE L3 Support
Quoted 28 lines · Jean Delvare
Dear stable kernel team,
In stable kernel 4.19.2, the following upstream commit was included:
commit
4abb951b73ff0a8a979113ef185651aa3c8da19bAuthor: Erik Schmauss Date: Wed Oct 17 14:09:35 2018 -0700ACPICA: AML interpreter: add region addresses in global list during initialization
This commit was tagged with:
Tested-by Jean-Marc LenoirCc All applicable <[email protected]>making it sound like it was fixing an actual bug. This is not the case. The commit fixes a side issue discovered while investigating bug #200011. It does NOT fix bug #200011 itself (as explicitly reported by Jean-Marc at https://bugzilla.kernel.org/show_bug.cgi?id=200011#c65 ).
It does however cause regressions, despite what the commit message says. See:
https://bugzilla.kernel.org/show_bug.cgi?id=201721
and I expect more similar regressions, as ACPI resource conflicts are very frequent.
Quoted 7 lines
This commit was not stable material to start with. It is intrusive, presents a risk of side effects, and does not solve an actual bug that is bothering users.
Please revert this commit from future stable kernels on all affected branches (I think only 4.18.19 and 4.19.2 are affected at the moment, but maybe other affected releases are in the works already).
Ok, I'll go revert this, but shouldn't it also be reverted in Linus's tree as well?
thanks,
greg k-h
Quoted 11 lines · Greg KH
Quoted 10 lines · Jean Delvare
Dear stable kernel team,
In stable kernel 4.19.2, the following upstream commit was included:
commit
4abb951b73ff0a8a979113ef185651aa3c8da19bAuthor: Erik Schmauss Date: Wed Oct 17 14:09:35 2018 -0700ACPICA: AML interpreter: add region addresses in global list during initialization
Quoted 7 lines
Quoted 4 lines
(...)
Please revert this commit from future stable kernels on all affected branches (I think only 4.18.19 and 4.19.2 are affected at the moment, but maybe other affected releases are in the works already).Ok, I'll go revert this, but shouldn't it also be reverted in Linus's tree as well?
No. As I understand it (with my limited knowledge of ACPICA), the change itself is correct. The problem is that it will detect resource conflicts which were unnoticed before, and that will prevent drivers from loading. Some of them may be addressed with driver fixes or new drivers. Others are false positives (due to bogus BIOS) which users will have to work around with acpi_resource_conflicts=lax. We have been through this before, nothing new really, but it takes years to address such problems. This just can't be done in stable kernel series.
Thanks,
Signature · 2 lines
Jean Delvare SUSE L3 Support
Quoted 20 lines · Jean Delvare
Quoted 11 lines · Greg KH
Quoted 10 lines · Jean Delvare
Dear stable kernel team,
In stable kernel 4.19.2, the following upstream commit was included:
commit
4abb951b73ff0a8a979113ef185651aa3c8da19bAuthor: Erik Schmauss Date: Wed Oct 17 14:09:35 2018 -0700ACPICA: AML interpreter: add region addresses in global list during initialization
Quoted 7 lines
Quoted 4 lines
(...)
Please revert this commit from future stable kernels on all affected branches (I think only 4.18.19 and 4.19.2 are affected at the moment, but maybe other affected releases are in the works already).Ok, I'll go revert this, but shouldn't it also be reverted in Linus's tree as well?
Quoted 8 lines
No. As I understand it (with my limited knowledge of ACPICA), the change itself is correct. The problem is that it will detect resource conflicts which were unnoticed before, and that will prevent drivers from loading. Some of them may be addressed with driver fixes or new drivers. Others are false positives (due to bogus BIOS) which users will have to work around with acpi_resource_conflicts=lax. We have been through this before, nothing new really, but it takes years to address such problems. This just can't be done in stable kernel series.
Fair enough, I have seen reports about this already. Now reverted.
thanks,
greg k-h
Quoted 11 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Tuesday, November 20, 2018 1:12 AM
To: Jean Delvare <[email protected]>
Cc: [email protected]; Guenter Roeck <[email protected]>; Schmauss, Erik <[email protected]>; Wysocki, Rafael J <[email protected]>
Subject: Re: Please revert "ACPICA: AML interpreter: add region addresses in global list during initialization"
Quoted 15 lines
Quoted 14 lines · Jean Delvare
Quoted 13 lines · Greg KH
Quoted 12 lines · Jean Delvare
Dear stable kernel team,
In stable kernel 4.19.2, the following upstream commit was included:
commit
4abb951b73ff0a8a979113ef185651aa3c8da19bAuthor: Erik Schmauss Date: Wed Oct 17 14:09:35 2018 -0700ACPICA: AML interpreter: add region addresses in global list
during initialization(...)
Hi,
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Please revert this commit from future stable kernels on all affected branches (I think only 4.18.19 and 4.19.2 are affected at the moment, but maybe other affected releases are in the works
already).
Quoted 4 lines
Quoted 3 lines
Ok, I'll go revert this, but shouldn't it also be reverted in Linus's tree as well?
Hello,
Quoted 8 lines
Quoted 8 lines
No. As I understand it (with my limited knowledge of ACPICA), the change itself is correct. The problem is that it will detect resource conflicts which were unnoticed before, and that will prevent drivers from loading. Some of them may be addressed with driver fixes or new drivers. Others are false positives (due to bogus BIOS) which users will have to work around with acpi_resource_conflicts=lax. We have been through this before, nothing new really, but it takes years to address such problems. This just can't be done in stable kernel series.
I would like to give you more context.
There was a fairly complicated change that occurred in 4.17 and we caused a regression by forgetting to add region addresses in a global list during operation region initialization. We found the regression when bug reporters tried to boot their macbook pro and asus laptop and saw that there was a difference in behavior when drivers are being loaded
So what I am trying to say is that we have been emitting these errors for a while before we caused the regression. The goal with this patch is to keep the behavior the same as kernels older than 4.17 where warnings are printed to dmesg due to resource conflicts.
Erik
Quoted 6 lines
Fair enough, I have seen reports about this already. Now reverted.
thanks,
greg k-h
Quoted 55 lines · Erik
Quoted 11 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Tuesday, November 20, 2018 1:12 AM
To: Jean Delvare <[email protected]>
Cc: [email protected]; Guenter Roeck <[email protected]>; Schmauss, Erik <[email protected]>; Wysocki, Rafael J <[email protected]>
Subject: Re: Please revert "ACPICA: AML interpreter: add region addresses in global list during initialization"Quoted 15 lines
Quoted 14 lines · Jean Delvare
Quoted 13 lines · Greg KH
Quoted 12 lines · Jean Delvare
Dear stable kernel team,
In stable kernel 4.19.2, the following upstream commit was included:
commit
4abb951b73ff0a8a979113ef185651aa3c8da19bAuthor: Erik Schmauss Date: Wed Oct 17 14:09:35 2018 -0700ACPICA: AML interpreter: add region addresses in global list
during initialization(...)
Hi,
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Please revert this commit from future stable kernels on all affected branches (I think only 4.18.19 and 4.19.2 are affected at the moment, but maybe other affected releases are in the works
already).
Quoted 4 lines
Quoted 3 lines
Ok, I'll go revert this, but shouldn't it also be reverted in Linus's tree as well?
Hello,
Quoted 8 lines
Quoted 8 lines
No. As I understand it (with my limited knowledge of ACPICA), the change itself is correct. The problem is that it will detect resource conflicts which were unnoticed before, and that will prevent drivers from loading. Some of them may be addressed with driver fixes or new drivers. Others are false positives (due to bogus BIOS) which users will have to work around with acpi_resource_conflicts=lax. We have been through this before, nothing new really, but it takes years to address such problems. This just can't be done in stable kernel series.
I would like to give you more context.
There was a fairly complicated change that occurred in 4.17 and we caused a regression by forgetting to add region addresses in a global list during operation region initialization. We found the regression when bug reporters tried to boot their macbook pro and asus laptop and saw that there was a difference in behavior when drivers are being loaded
Quoted 4 lines
So what I am trying to say is that we have been emitting these errors for a while before we caused the regression. The goal with this patch is to keep the behavior the same as kernels older than 4.17 where warnings are printed to dmesg due to resource conflicts.
Ok, so does this mean it belongs in 4.19.y? (4.18.y is about to go end-of-life in a few hours)
Or does this mean it should just stay in 4.20?
confused,
greg k-h
Quoted 71 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Wednesday, November 21, 2018 12:04 AM
To: Schmauss, Erik <[email protected]>
Cc: Jean Delvare <[email protected]>; [email protected]; Guenter Roeck <[email protected]>; Wysocki, Rafael J <[email protected]>; Moore, Robert <[email protected]>
Subject: Re: Please revert "ACPICA: AML interpreter: add region addresses in global list during initialization"Quoted 32 lines · Erik
Quoted 11 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Tuesday, November 20, 2018 1:12 AM
To: Jean Delvare <[email protected]>
Cc: [email protected]; Guenter Roeck <[email protected]>; Schmauss, Erik <[email protected]>; Wysocki, Rafael J <[email protected]>
Subject: Re: Please revert "ACPICA: AML interpreter: add region addresses in global list during initialization"Quoted 15 lines
Quoted 14 lines · Jean Delvare
Quoted 13 lines · Greg KH
Quoted 12 lines · Jean Delvare
Dear stable kernel team,
In stable kernel 4.19.2, the following upstream commit was included:
commit
4abb951b73ff0a8a979113ef185651aa3c8da19bAuthor: Erik Schmauss Date: Wed Oct 17 14:09:35 2018 -0700ACPICA: AML interpreter: add region addresses in global
list during initialization(...)
Hi,
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Please revert this commit from future stable kernels on all affected branches (I think only 4.18.19 and 4.19.2 are affected at the moment, but maybe other affected releases are in the works
Quoted 15 lines
Quoted 5 lines
already).
Quoted 4 lines
Quoted 3 lines
Ok, I'll go revert this, but shouldn't it also be reverted in Linus's tree as well?
Hello,
Quoted 8 lines
Quoted 8 lines
No. As I understand it (with my limited knowledge of ACPICA), the change itself is correct. The problem is that it will detect resource conflicts which were unnoticed before, and that will prevent drivers from loading. Some of them may be addressed with driver fixes or new drivers. Others are false positives (due to bogus BIOS) which users will have to work around with acpi_resource_conflicts=lax. We have been through this before, nothing new really, but it takes years to address such problems. This just
can't be done in stable kernel series.
Quoted 10 lines
I would like to give you more context.
There was a fairly complicated change that occurred in 4.17 and we caused a regression by forgetting to add region addresses in a global list during operation region initialization. We found the regression when bug reporters tried to boot their macbook pro and asus laptop and saw that there was a difference in behavior when drivers are being loaded
Quoted 7 lines
Quoted 4 lines
So what I am trying to say is that we have been emitting these errors for a while before we caused the regression. The goal with this patch is to keep the behavior the same as kernels older than 4.17 where warnings are printed to dmesg due to resource conflicts.
Ok, so does this mean it belongs in 4.19.y? (4.18.y is about to go end-of-life in a few hours)
Yes, it should be in 4.19.y
Erik
Quoted 6 lines
Or does this mean it should just stay in 4.20?
confused,
greg k-h
Hi Erik,
Quoted 24 lines · Erik
Quoted 10 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Tuesday, November 20, 2018 1:12 AM
To: Jean Delvare <[email protected]>
Cc: [email protected]; Guenter Roeck <[email protected]>; Schmauss, Erik <[email protected]>; Wysocki, Rafael J <[email protected]>
Subject: Re: Please revert "ACPICA: AML interpreter: add region addresses in global list during initialization"Quoted 13 lines
Quoted 12 lines · Jean Delvare
Quoted 2 lines · Greg KH
Ok, I'll go revert this, but shouldn't it also be reverted in Linus's tree as well?
No. As I understand it (with my limited knowledge of ACPICA), the change itself is correct. The problem is that it will detect resource conflicts which were unnoticed before, and that will prevent drivers from loading. Some of them may be addressed with driver fixes or new drivers. Others are false positives (due to bogus BIOS) which users will have to work around with acpi_resource_conflicts=lax. We have been through this before, nothing new really, but it takes years to address such problems. This just can't be done in stable kernel series.
Quoted 7 lines
I would like to give you more context.
There was a fairly complicated change that occurred in 4.17 and we caused a regression by forgetting to add region addresses in a global list during operation region initialization. We found the regression when bug reporters tried to boot their macbook pro and asus laptop and saw that there was a difference in behavior when drivers are being loaded
Commit 4abb951b73ff0a8a979113ef185651aa3c8da19b has no Fixes tag. Which commit introduced the regression? Can you point me to the associated bug reports?
Quoted 4 lines
So what I am trying to say is that we have been emitting these errors for a while before we caused the regression. The goal with this patch is to keep the behavior the same as kernels older than 4.17 where warnings are printed to dmesg due to resource conflicts.
Fine with me for upstream, but I still need to be convinced that it belongs to stable series. For now, the only 2 related bugs I know of are #200011 (which is NOT fixed by commit 4abb951b73ff0a8a979113ef185651aa3c8da19b) and #201721 (which is caused by that commit). 1 vs 0, revert wins. If you want me to change my mind, you must provide additional data points proving that commit 4abb951b73ff0a8a979113ef185651aa3c8da19b solves more functional regressions than it causes.
Thanks,
Signature · 2 lines
Jean Delvare SUSE L3 Support
A message that is not in the archive (sent off-list or not yet received): CF6A88132359CE47947DB4C6E1709ED53C5508FA@ORSMSX122.amr.corp.intel.com
Snip
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines · Jean Delvare
Quoted 4 lines · Greg KH
Quoted 2 lines
Ok, I'll go revert this, but shouldn't it also be reverted in Linus's tree as well?
Hi Jean and Greg,
Quoted 47 lines
Quoted 20 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
No. As I understand it (with my limited knowledge of ACPICA), the change itself is correct. The problem is that it will detect resource conflicts which were unnoticed before, and that will prevent drivers from loading. Some of them may be addressed with driver fixes or new drivers. Others are false positives (due to bogus BIOS) which users will have to work around with acpi_resource_conflicts=lax. We have been through this before, nothing new really, but it takes years to address such problems. This just
can't be done in stable kernel series.
Quoted 9 lines
I would like to give you more context.
There was a fairly complicated change that occurred in 4.17 and we caused a regression by forgetting to add region addresses in a global list during operation region initialization. We found the regression when bug reporters tried to boot their macbook pro and asus laptop and saw that there was a difference in behavior when drivers are being loaded
Quoted 3 lines
Commit
4abb951b73ff0a8a979113ef185651aa3c8da19bhas no Fixes tag. Which commit introduced the regression? Can you point me to the associated bug reports?Sorry about the missing fixed tag. It's supposed to fix
5a8361f7ecceaed64b4064000d16cb703462be49
ACPICA: Integrate package handling with module-level codeQuoted 10 lines
Quoted 5 lines
So what I am trying to say is that we have been emitting these errors for a while before we caused the regression. The goal with this patch is to keep the behavior the same as kernels older than 4.17 where warnings are printed to dmesg due to resource conflicts.
Fine with me for upstream, but I still need to be convinced that it belongs to stable series. For now, the only 2 related bugs I know of are
#200011 (which is NOT fixed by commitThis bug is kind of messy. It's like 2 bugs in 1 report. This patch fixes a part of their problem. Another part has to do with ECDT load order.
Would it help to open a separate bug report for this particular issue and close it?
I think this might be a little confusing to someone who reads the commit message.
Quoted 9 lines
Quoted 1 line
4abb951b73ff0a8a979113ef185651aa3c8da19b) and #201721 (which iscaused
I did not know about this bug report.
Quoted 4 lines
by that commit). 1 vs 0, revert wins. If you want me to change my mind, you must provide additional data points proving that commit
4abb951b73ff0a8a979113ef185651aa3c8da19bsolves more functional regressions than it causes.
Here's an additional data point from the discussion on bz201721. The user started using fancontrol during the period where resource conflict checking was unintentionally removed. If the reporter tries using fancontrol on 4.18.13, they report that fancontrol does not work. So it was basically always the case that he needed to use acpi_resource_conflicts=lax for a short period of time.
I understand that this "breaks" this machine but we shouldn't be reverting resource conflict checking for all other drivers just because of fancontrol. By removing this check, we are suppressing warnings and changing the loading behavior of other drivers as well.
Thanks,
Erik
Quoted 21 lines
If we do not have include this commit, then we are in a state where resource conflicts are not properly detected. These detections help kernels decide which drivers to load. However, I do see your point about this breaking the reporter's machine and it's possible that I may have missed something.
We should get the reporter's dmesg for older kernels.
It would be ideal to resolve this bug AND add region addresses in the global address list.
I've asked the bug reporter in #201721 for more information. We can delay this patch for now and look at the reporter's issue more carefully.Thanks for all of the information!
Erik
Quoted 5 lines
Thanks,
--
Jean Delvare
SUSE L3 Support
Hi Erik, Greg,
Quoted 11 lines · Erik
Here's an additional data point from the discussion on bz201721. The user started using fancontrol during the period where resource conflict checking was unintentionally removed. If the reporter tries using fancontrol on 4.18.13, they report that fancontrol does not work. So it was basically always the case that he needed to use acpi_resource_conflicts=lax for a short period of time.
I understand that this "breaks" this machine but we shouldn't be reverting resource conflict checking for all other drivers just because of fancontrol. By removing this check, we are suppressing warnings and changing the loading behavior of other drivers as well.
I agree. The incorrect (or at the very least incomplete and confusing) claims in bug #201721 made me think it was a regression from older versions. As it turns out that this isn't the case, my request to revert 4abb951b73ff0a8a979113ef185651aa3c8da19b from stable kernel series was incorrect. I apologize for the noise and ask Greg to undo the revert.
Thanks,
Signature · 2 lines
Jean Delvare SUSE L3 Support
Quoted 15 lines · Jean Delvare
Hi Erik, Greg,
Quoted 11 lines · Erik
Here's an additional data point from the discussion on bz201721. The user started using fancontrol during the period where resource conflict checking was unintentionally removed. If the reporter tries using fancontrol on 4.18.13, they report that fancontrol does not work. So it was basically always the case that he needed to use acpi_resource_conflicts=lax for a short period of time.
I understand that this "breaks" this machine but we shouldn't be reverting resource conflict checking for all other drivers just because of fancontrol. By removing this check, we are suppressing warnings and changing the loading behavior of other drivers as well.
Quoted 6 lines
I agree. The incorrect (or at the very least incomplete and confusing) claims in bug #201721 made me think it was a regression from older versions. As it turns out that this isn't the case, my request to revert
4abb951b73ff0a8a979113ef185651aa3c8da19bfrom stable kernel series was incorrect. I apologize for the noise and ask Greg to undo the revert.
Ok, now added back, thanks.
greg k-h