From nobody Mon Feb 9 17:23:48 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2E07EB64D0 for ; Tue, 13 Jun 2023 16:13:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243072AbjFMQNV (ORCPT ); Tue, 13 Jun 2023 12:13:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243023AbjFMQNH (ORCPT ); Tue, 13 Jun 2023 12:13:07 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9627F19B5; Tue, 13 Jun 2023 09:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686672777; x=1718208777; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VlsDfQe6xmJuoENKAKaKljnxwQolewMVS9540jaiQmg=; b=YIadR5RAi7pEJc1edHgAcgyzTJHimKJhsCb9fFYStoRmaR5G8dzlgcZS rPW6mvlPDnf3ehUKXt1rKOCFwhWqh/P9Jks1JQxB76IHr0OZuXJrPbbo5 OYqBuulkLYj8Y6r0nXUxX+mH7rjIIw4qgCWES4VClSGuJe/AOaRqT5yTw 71zQkNK6yC5rgMzYMozf6uN2wqhp6Z8505kjQNzaWhgiRbSpHX/kkzcnq t8QG7W3X+FNmvv19+7mCyxhZzd8j7103wfFoqHax1A6sUWaEpq5je5uHh nj20pbJ6kK3f0AboHL7oSrZkvK/7xFst7BQzufM8rseL5weztBu3IxvS2 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10740"; a="348038920" X-IronPort-AV: E=Sophos;i="6.00,240,1681196400"; d="scan'208";a="348038920" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2023 09:11:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10740"; a="714863579" X-IronPort-AV: E=Sophos;i="6.00,240,1681196400"; d="scan'208";a="714863579" Received: from powerlab.fi.intel.com ([10.237.71.25]) by fmsmga007.fm.intel.com with ESMTP; 13 Jun 2023 09:11:09 -0700 From: Michal Wilczynski To: linux-acpi@vger.kernel.org Cc: rafael@kernel.org, andriy.shevchenko@intel.com, artem.bityutskiy@linux.intel.com, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, lenb@kernel.org, jgross@suse.com, linux-kernel@vger.kernel.org, x86@kernel.org Subject: [PATCH v3 5/5] acpi: Remove acpi_hwp_native_thermal_lvt_osc() Date: Tue, 13 Jun 2023 19:10:34 +0300 Message-Id: <20230613161034.3496047-6-michal.wilczynski@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230613161034.3496047-1-michal.wilczynski@intel.com> References: <20230613161034.3496047-1-michal.wilczynski@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Workaround for buggy skylake BIOS is implemented in acpi_processor_osc() and acpi_hwp_native_thermal_lvt_osc() function is not called anywhere. Remove it. Suggested-by: Rafael J. Wysocki Signed-off-by: Michal Wilczynski Reviewed-by: Andy Shevchenko --- drivers/acpi/acpi_processor.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c index 8965e01406e0..1e305ad9540e 100644 --- a/drivers/acpi/acpi_processor.c +++ b/drivers/acpi/acpi_processor.c @@ -634,41 +634,6 @@ static acpi_status __init acpi_processor_osc(acpi_hand= le handle, u32 lvl, return AE_OK; } =20 -static acpi_status __init acpi_hwp_native_thermal_lvt_osc(acpi_handle hand= le, - u32 lvl, - void *context, - void **rv) -{ - u32 capbuf[2]; - struct acpi_osc_context osc_context =3D { - .uuid_str =3D sb_uuid_str, - .rev =3D 1, - .cap.length =3D 8, - .cap.pointer =3D capbuf, - }; - - if (acpi_hwp_native_thermal_lvt_set) - return AE_CTRL_TERMINATE; - - capbuf[0] =3D 0x0000; - capbuf[1] =3D 0x1000; /* set bit 12 */ - - if (ACPI_SUCCESS(acpi_run_osc(handle, &osc_context))) { - if (osc_context.ret.pointer && osc_context.ret.length > 1) { - u32 *capbuf_ret =3D osc_context.ret.pointer; - - if (capbuf_ret[1] & 0x1000) { - acpi_handle_info(handle, - "_OSC native thermal LVT Acked\n"); - acpi_hwp_native_thermal_lvt_set =3D true; - } - } - kfree(osc_context.ret.pointer); - } - - return AE_OK; -} - acpi_status __init acpi_early_processor_osc(void) { acpi_status status; --=20 2.41.0