From nobody Thu Jun 2 19:42:02 2022 X-Original-To: freebsd-acpi@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 2AB9D1B50F03 for ; Thu, 2 Jun 2022 19:42:40 +0000 (UTC) (envelope-from crahman@gmail.com) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LDbyR4gmFz4RCp for ; Thu, 2 Jun 2022 19:42:39 +0000 (UTC) (envelope-from crahman@gmail.com) Received: by mail-ed1-x536.google.com with SMTP id x62so7563839ede.10 for ; Thu, 02 Jun 2022 12:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=6jF7QdApcBTD+2el6Gm46/iaiKnmIN7MXglI4oV/2nE=; b=SJ5hj/ydWx+cC2xyHQ8ilFPy4PBI4PrgABlp2wnvTjCvD3hEIzssUDa71XhRIM/+IM oHiW2kdZeNZ1784GbW5DqY8efkcnY52ZXrqQphWjOQ0OKdga7NXKSHuTt7jjwm7H0/1Y kgYsrg7+pqWzeebTYUYkxp+eT3l6/IxjgKAJJxTZ76wbC/jlf4oshTo7NZA1dF/1kJKJ dKKHxhttnuTfVpQHKWBLkhbiWdCgL1b/k7akzAgb6jCRTRvW2aYD0n5mWCWiFJlZwicZ oTVMXWcooXCHBYtDA6POT97BtT4xK1mqeF4lPxUM96G+8rJrU8P9OAaKTWVC7OaNACN+ 6Qtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=6jF7QdApcBTD+2el6Gm46/iaiKnmIN7MXglI4oV/2nE=; b=1uwowCCu633pqqhtXJwDBlD66IFuwIEjKakPF3PnMG7XKh4ZAyb0dq117gH32vSzE7 OoDDCynnVT22YTXq/QGv+4htTpH2vk4cvvLo08yT18JVNMcO9q5SZ1II8G9Y9HxgI6Uz bLejV1pfXVF3UN8W5T4XzVgFuUz+Ae0Oqe7TlREkoEfDlnCcnOPmZNZ7wS3xc6+RV8W/ ie78RPOP16jMrVmz/8LFu8fMaSwqkLf3QVB2Ny52K2gr7ITaVxuRRUereAWhD7d8hOB+ l9mWRw7wRbWQDhnPvEaqZcFYHiRe5rFcL9jyqVHGFZzG+M1gp6rhFmptu52X64o80ayb umeA== X-Gm-Message-State: AOAM533I8e8x47TGRipgTyiwDiWg9qyEJEmGRjpoCy0A+yVWJtWs5yt9 7PuMabn3xDocoKUe8PqKSNYachKxpMYh2Fto4Wx0eT+zLuQ= X-Google-Smtp-Source: ABdhPJwpUFuizDUlNQf+LZ1P71vJQt9nUxmPFk6m1hdnO6+vbaV6VJAzVIFt7TrUNv/yb0MdOdjKy+rqIsKG5B9xeeI= X-Received: by 2002:a05:6402:4244:b0:42b:27aa:d4c2 with SMTP id g4-20020a056402424400b0042b27aad4c2mr7189586edb.146.1654198958441; Thu, 02 Jun 2022 12:42:38 -0700 (PDT) List-Id: ACPI and power management development List-Archive: https://lists.freebsd.org/archives/freebsd-acpi List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-acpi@freebsd.org MIME-Version: 1.0 From: Cyrus Rahman Date: Thu, 2 Jun 2022 13:42:02 -0600 Message-ID: Subject: apic_ec burst mode default To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4LDbyR4gmFz4RCp X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="SJ5hj/yd"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of crahman@gmail.com designates 2a00:1450:4864:20::536 as permitted sender) smtp.mailfrom=crahman@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-acpi@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::536:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-acpi]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N I recently installed Freebsd 13.1 on a GPD MicroPC. All worked well except that many APCI notifications did not happen, leading to problems with the power button, lid switch, and other assorted things. It turned out the problem is that the EC does not work properly on this hardware unless burst mode is on, e.g. sysctl debug.acpi.ec.burst=1 There's nothing particularly unusual about the hardware on this device, so it's likely that the problem exists on other devices. It's not at all hard to fix if one knows what the problem is, but as ACPI is a large and complex system, this is not something the average user is likely to find. It looks like in 2007 a decision was made to have burst mode off by default because it caused "the EC not to respond for some Acer and Compaq/HP laptops" (commit 675e5627d0bf8236d753e4b4e84c6193841b68ce). Perhaps it's time to turn burst mode on by default or otherwise find a way to automate a functional setting of this mode? Cyrus Rahman