From nobody Wed Nov 11 10:17:02 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jPfZl0NpDz700R2 for ; Wed, 11 Nov 2026 10:17:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jPfZk6vn9z4qJ6 for ; Wed, 11 Nov 2026 10:17:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794392223; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6ogB09hyZqoyTrQmGEIByfbAfefFLhxx6XX6wXBK6UI=; b=Ny9oy1pDv5XKnhEcpgErosWkPOkAaODJHoTYhaIkbRdK0YcfeJpMNYlmliif8TbwWoit2i Y4M+YGIJmAod0Qj0NvnxERx8xkqJz3mMz066aUf/2ldL4L1O38XMXYVtDyR3uqRH9LtnYj wexComvOCC8kgoo8hdved2buUVzZYMIIma6Z5ceg/HZc3BKATMbyf9YnvxF5Kk3NYn9OUC 6B9GPQ1M1eFpnQuKrVI2IqPePHLayhM0WtbMldFHugJA68UBfFGWf7P1N1UUcTFsvrTRVy o7miHD8In0bdrjsuDJ6pVaxqDOgP3Us9JwsKUM7pnnx0kUiwjApeHpPFFIvOjw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794392223; b=CE3HsX0wuxtgJJkBPsat8cAAncX8v1ug0eKKgXq8kQP/+uIvHFp1i15yNwuUknoAThV3oe NaHAGCQfMk/pP+djrfMHSErFsi8mAAN5+Cbj2e7Q5dEEP4a9Fa7+v5RvmH6thsTQSwueJK KdhafpwVco88U+vNjWDML+xqKD6Nzbatt4R4lwgXOKkA9znJ/5N/t5TGuoHuthQYovwMt9 59CYNS7S0oSJRBJPgFd/9WLGYZ/0xoTSkv2AHbbBvu9yfePMTqbPDitkR5r4jz1Fm0wMps Wwqq8i+YOc9GXT33f3ntRsJo1Dcdr1d5SUkFriBuCFMsCX58BijHHQoibwYbow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794392223; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6ogB09hyZqoyTrQmGEIByfbAfefFLhxx6XX6wXBK6UI=; b=fULgDKE0StnE55zO/ftRlZogjea3DUYN2+0rKgwwhtmYfTXi6V/7l/XbE8trDT6NVbMtaw RncG7YpWMCJiyOc3MO6MZNAQ5B1VdTZEBlm/WD9pH6PXw9QX3E1hAqJLZp1KyuGrMf4DPx b52ukSdkJvuDAcuQZ6YjQxrJdf8DrjsKcQ1H1HXyAgEXJ8xExm7XH3I8NzDs3KHfQ5VlKj mCqhInGyPIdsQ/vN2UuVQ4vVhqMDDNW7JNQEiQeA2yWrgME+3T3yZWuFWVibKACn1Dce8F wQRTmlUONGLh5MxcLi3GXvk1+Led7x44CZ4/lUR7Gjza415uFItQ+O8qWPTpxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jPfZk61pSz18jh for ; Wed, 11 Nov 2026 10:17:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 13ea8 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 11 Nov 2026 10:17:02 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Aymeric Wibo Subject: git: 427747fc16c9 - main - acpi_cpu: No longer disable idle during suspend List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: obiwac X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 427747fc16c9be5e4d4eb31a797d7854c4fd839f Auto-Submitted: auto-generated Date: Wed, 11 Nov 2026 10:17:02 +0000 Message-Id: <6af4409e.13ea8.25837c99@gitrepo.freebsd.org> The branch main has been updated by obiwac: URL: https://cgit.FreeBSD.org/src/commit/?id=427747fc16c9be5e4d4eb31a797d7854c4fd839f commit 427747fc16c9be5e4d4eb31a797d7854c4fd839f Author: Aymeric Wibo AuthorDate: 2026-02-25 09:39:05 +0000 Commit: Aymeric Wibo CommitDate: 2026-11-11 10:15:46 +0000 acpi_cpu: No longer disable idle during suspend This had been introduced in 3331373ce733 ("Disable CPU idle states during suspend and reenable them during resume.") to work around C-state selection logic which would skip C-states which returned immediately, considering them "broken". This workaround is incompatible with suspend-to-idle however, which requires CPUs to be in their idle states, and is no longer relevant either way since b0baaaaecf1a ("Avoid comparing negative signed to positive unsignad values.") removed the C-state skipping logic the previous change was working around. Reviewed by: olce Sponsored by: The FreeBSD Foundation Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/71 Differential Revision: https://reviews.freebsd.org/D60649 --- sys/dev/acpica/acpi_cpu.c | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index d3ac92f920ab..9a523611a7f9 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -159,8 +159,6 @@ ACPI_SERIAL_DECL(cpu, "ACPI CPU"); static int acpi_cpu_probe(device_t dev); static int acpi_cpu_attach(device_t dev); -static int acpi_cpu_suspend(device_t dev); -static int acpi_cpu_resume(device_t dev); static int acpi_pcpu_get_id(device_t dev, uint32_t acpi_id, u_int *cpu_id); static void acpi_cpu_madt_handler(ACPI_SUBTABLE_HEADER *entry, void *arg); @@ -199,8 +197,8 @@ static device_method_t acpi_cpu_methods[] = { DEVMETHOD(device_attach, acpi_cpu_attach), DEVMETHOD(device_detach, bus_generic_detach), DEVMETHOD(device_shutdown, acpi_cpu_shutdown), - DEVMETHOD(device_suspend, acpi_cpu_suspend), - DEVMETHOD(device_resume, acpi_cpu_resume), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_add_child, acpi_cpu_add_child), @@ -531,30 +529,6 @@ is_idle_disabled(struct acpi_cpu_softc *sc) } #endif -/* - * Disable any entry to the idle function during suspend and re-enable it - * during resume. - */ -static int -acpi_cpu_suspend(device_t dev) -{ - int error; - - error = bus_generic_suspend(dev); - if (error) - return (error); - disable_idle(device_get_softc(dev)); - return (0); -} - -static int -acpi_cpu_resume(device_t dev) -{ - - enable_idle(device_get_softc(dev)); - return (bus_generic_resume(dev)); -} - /* * Find the processor associated with a given ACPI ID. */