From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43CA2C433B4 for ; Tue, 18 May 2021 22:20:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2392D611B0 for ; Tue, 18 May 2021 22:20:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352736AbhERWWD (ORCPT ); Tue, 18 May 2021 18:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352722AbhERWWB (ORCPT ); Tue, 18 May 2021 18:22:01 -0400 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F7DCC061573 for ; Tue, 18 May 2021 15:20:43 -0700 (PDT) Received: by mail-ot1-x335.google.com with SMTP id q7-20020a9d57870000b02902a5c2bd8c17so10044836oth.5 for ; Tue, 18 May 2021 15:20:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jODzuDp4sTac2DHZrxz2pkx069Ko9bvNGW4qcLZX5ak=; b=ZPDXs04y3cwopzpzq9a6TrwilIRv8qgiq65vbhA+foD90s8vO0isbq41OOxIqzwuGg 0TmWM50+IaGZfCmIcZ0G+RM4YZaAGV4+ZhD4OOXKC1MKcX7h5hfmBbQuPE+4pfdLx6yo zqzgrKa/kmdu/sWtlZ6+zBoaWSg0fEyqtsjPo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jODzuDp4sTac2DHZrxz2pkx069Ko9bvNGW4qcLZX5ak=; b=Nkq+pJ8gKB71PTBKCdyG8KBm9opI8C7Wx0nz0ohybFhc4EKVWOLjwsYq26/UAN6jm5 20Ct6fanqPGYGqDEKlEK0G+FlsyBIeEk0jkwLV0V0gvAxcrXGGtK1zEIKuA/U7IIYIDQ gGoQpgQhwscZZdKtrEwm/WoEZvYZGYAgVkIQZMesSiiOldREjKeT4IeXJqjn62YALkiI ZJog4Gqhcar7FdhblhnwoGgoYAvZXrO4QOSWJohnaf+R3nyAr4HmLO4Ay2oeBSYzv3au NiSSyC/hdh21lXGn103cMand7csZ0lCHDzQEQf38Q+S9WYG/9q6L2HdGD7ZXbeOwLpif a6/Q== X-Gm-Message-State: AOAM531tim0xqN7hmVrfIez6bR0nackPpxG/F8zEyBiOp6uMCZ8rZzZP Ubxdo7vTDmAPJVfjD05OYNFWlg== X-Google-Smtp-Source: ABdhPJz43mxfhCri+Uh73Va5/8oWpZ8EBkxxvRBCwU4cap3f22XiWEU0XDX0VwiU6Sfn6CFSY7I4og== X-Received: by 2002:a9d:1b24:: with SMTP id l33mr6090155otl.309.1621376442700; Tue, 18 May 2021 15:20:42 -0700 (PDT) Received: from rrangel920.bld.corp.google.com (h184-60-195-141.arvdco.broadband.dynamic.tds.net. [184.60.195.141]) by smtp.gmail.com with ESMTPSA id e22sm4084696otl.74.2021.05.18.15.20.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 15:20:42 -0700 (PDT) From: Raul E Rangel To: linux-acpi@vger.kernel.org Cc: Raul E Rangel , Erik Kaneda , Len Brown , "Rafael J. Wysocki" , Robert Moore , devel@acpica.org, linux-kernel@vger.kernel.org Subject: [PATCH] ACPI: Increase ACPI_MAX_HANDLES Date: Tue, 18 May 2021 16:20:39 -0600 Message-Id: <20210518162034.1.I7db737fa0a8e7da8247a1a614633bc0fc6455a00@changeid> X-Mailer: git-send-email 2.31.1.751.gd2f1c929bd-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org acpi_handle_list is used to store the references returned by ThermalZone._PSL. With processors supporting Hyper-threading and more cores, the previous limit is not enough for common cases. If _PSL returns more than the limit, the passive thermal threshold fails to initialize. This change increase the limit to 32, so we can support at least 16 core CPUs with Hyper-threads. I acknowledge that this change is just kicking the can down the road. Signed-off-by: Raul E Rangel --- include/acpi/acpi_bus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 37dac195adbb..fdce8e7c4718 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -13,7 +13,7 @@ #include /* TBD: Make dynamic */ -#define ACPI_MAX_HANDLES 10 +#define ACPI_MAX_HANDLES 32 struct acpi_handle_list { u32 count; acpi_handle handles[ACPI_MAX_HANDLES]; -- 2.31.1.751.gd2f1c929bd-goog