mbox series

[SRU,M,v4,0/2] Dynamically determine acpi_handle_list size

Message ID 20240220041424.40762-1-ivan.hu@canonical.com
Headers show
Series Dynamically determine acpi_handle_list size | expand

Message

Ivan Hu Feb. 20, 2024, 4:14 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2049733

[Impact]
ACPI handle list will be dynamic allocated without default fixed size.

[Fix]
Currently the ACPI_MAX_HANDLES is defined fix to 10, and it is not enough for
some platforms that called ACPI _PSL method to get passive cooling device
objects. then will get the error message "Invalid passive threshold", this 
patch change the fixed size with the dynamic handle list size which fixes the
handle reference error.

[Test Case]
check the dmesg to see if there is the error message "Invalid passive threshold"

[Where problems could occur]
Only change the fixed size with the dynamic handle list size. Risk of regression
is low.

[Other Info]
Change of v2:
add the "ACPI: utils: Fix error path in acpi_evaluate_reference()" patch for
fixing the "ACPI: utils: Dynamically determine acpi_handle_list size" issue
and modify the cherrypicked to backported
Change of v3
add missing [SRU][M]
Change of v4
add missing BugLinks

Rafael J. Wysocki (2):
  ACPI: utils: Dynamically determine acpi_handle_list size
  ACPI: utils: Fix error path in acpi_evaluate_reference()

 drivers/acpi/acpi_lpss.c                      | 10 ++-
 drivers/acpi/scan.c                           |  1 +
 drivers/acpi/thermal.c                        | 29 ++++++---
 drivers/acpi/utils.c                          | 63 ++++++++++++++++++-
 .../platform/surface/surface_acpi_notify.c    | 10 ++-
 include/acpi/acpi_bus.h                       |  9 ++-
 6 files changed, 101 insertions(+), 21 deletions(-)

Comments

Manuel Diewald Feb. 20, 2024, 5:49 p.m. UTC | #1
On Tue, Feb 20, 2024 at 12:14:22PM +0800, Ivan Hu wrote:
> BugLink: https://bugs.launchpad.net/bugs/2049733
> 
> [Impact]
> ACPI handle list will be dynamic allocated without default fixed size.
> 
> [Fix]
> Currently the ACPI_MAX_HANDLES is defined fix to 10, and it is not enough for
> some platforms that called ACPI _PSL method to get passive cooling device
> objects. then will get the error message "Invalid passive threshold", this 
> patch change the fixed size with the dynamic handle list size which fixes the
> handle reference error.
> 
> [Test Case]
> check the dmesg to see if there is the error message "Invalid passive threshold"
> 
> [Where problems could occur]
> Only change the fixed size with the dynamic handle list size. Risk of regression
> is low.
> 
> [Other Info]
> Change of v2:
> add the "ACPI: utils: Fix error path in acpi_evaluate_reference()" patch for
> fixing the "ACPI: utils: Dynamically determine acpi_handle_list size" issue
> and modify the cherrypicked to backported
> Change of v3
> add missing [SRU][M]
> Change of v4
> add missing BugLinks
> 
> Rafael J. Wysocki (2):
>   ACPI: utils: Dynamically determine acpi_handle_list size
>   ACPI: utils: Fix error path in acpi_evaluate_reference()
> 
>  drivers/acpi/acpi_lpss.c                      | 10 ++-
>  drivers/acpi/scan.c                           |  1 +
>  drivers/acpi/thermal.c                        | 29 ++++++---
>  drivers/acpi/utils.c                          | 63 ++++++++++++++++++-
>  .../platform/surface/surface_acpi_notify.c    | 10 ++-
>  include/acpi/acpi_bus.h                       |  9 ++-
>  6 files changed, 101 insertions(+), 21 deletions(-)
> 
> -- 
> 2.34.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team

Considering the importance of this bug is high for mantic, should this
not also target focal and jammy? Both are affected by the same issue,
no? I feel like we should at least have a justification in the bug why
we won't SRU this for older series.

Acked-by: Manuel Diewald <manuel.diewald@canonical.com>
Tim Gardner Feb. 22, 2024, 2 p.m. UTC | #2
On 2/19/24 9:14 PM, Ivan Hu wrote:
> BugLink: https://bugs.launchpad.net/bugs/2049733
> 
> [Impact]
> ACPI handle list will be dynamic allocated without default fixed size.
> 
> [Fix]
> Currently the ACPI_MAX_HANDLES is defined fix to 10, and it is not enough for
> some platforms that called ACPI _PSL method to get passive cooling device
> objects. then will get the error message "Invalid passive threshold", this
> patch change the fixed size with the dynamic handle list size which fixes the
> handle reference error.
> 
> [Test Case]
> check the dmesg to see if there is the error message "Invalid passive threshold"
> 
> [Where problems could occur]
> Only change the fixed size with the dynamic handle list size. Risk of regression
> is low.
> 
> [Other Info]
> Change of v2:
> add the "ACPI: utils: Fix error path in acpi_evaluate_reference()" patch for
> fixing the "ACPI: utils: Dynamically determine acpi_handle_list size" issue
> and modify the cherrypicked to backported
> Change of v3
> add missing [SRU][M]
> Change of v4
> add missing BugLinks
> 
> Rafael J. Wysocki (2):
>    ACPI: utils: Dynamically determine acpi_handle_list size
>    ACPI: utils: Fix error path in acpi_evaluate_reference()
> 
>   drivers/acpi/acpi_lpss.c                      | 10 ++-
>   drivers/acpi/scan.c                           |  1 +
>   drivers/acpi/thermal.c                        | 29 ++++++---
>   drivers/acpi/utils.c                          | 63 ++++++++++++++++++-
>   .../platform/surface/surface_acpi_notify.c    | 10 ++-
>   include/acpi/acpi_bus.h                       |  9 ++-
>   6 files changed, 101 insertions(+), 21 deletions(-)
> 

You're missing a backport explanation in patch 1/2. A patch that size 
really deserves some explanation of what you had to do to make it work.