From owner-freebsd-arch@FreeBSD.ORG Mon May 5 16:55:31 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 34C3B679; Mon, 5 May 2014 16:55:31 +0000 (UTC) Received: from mail-qa0-x22d.google.com (mail-qa0-x22d.google.com [IPv6:2607:f8b0:400d:c00::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C794C3B7; Mon, 5 May 2014 16:55:30 +0000 (UTC) Received: by mail-qa0-f45.google.com with SMTP id hw13so6991671qab.4 for ; Mon, 05 May 2014 09:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=hJqYB5/TfZWf3v/eNWmemNQi5qdUZ01FyQLgHFnBJO4=; b=CLBbcxaVE4bMmTD/V+4f6ObYjtXVyMsrPW4HCUmFnGY14v/X7DCzzNn59SvVbvlevP HPIl2A+caO1lCJ5jLYIsnIXUcQJewc5TC2GbNJpJGDgfSDP6dZLvCBnsHWkOlx+pV+lD 1q4NPPzEQRa3xZhvjEISUegvSg7hW0saLIrGWGGqQhppgGiqoLNKkhy9zxDE8GTz3qG/ GTv5yns/mc7u6VxERepnwg70NDhIH3KKVnEeO4LrftJqgUQAwa4oY8BesQhD4hJ9khGM wAA7urNZCKCOw7hA2peJnbpxjH8R8WTF5Y+WYutMH46icLuuo1XzcxiaFRixV9AxDOu5 pMhg== MIME-Version: 1.0 X-Received: by 10.140.22.209 with SMTP id 75mr43396501qgn.4.1399308929590; Mon, 05 May 2014 09:55:29 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.191.201 with HTTP; Mon, 5 May 2014 09:55:29 -0700 (PDT) In-Reply-To: <201405051109.39345.jhb@freebsd.org> References: <201405051109.39345.jhb@freebsd.org> Date: Mon, 5 May 2014 09:55:29 -0700 X-Google-Sender-Auth: qVhb-qF-sZLD18ukIF6f5h4v3NQ Message-ID: Subject: Re: proposal: set default lid state to S3, performance/economy Cx states to Cmax From: Adrian Chadd To: John Baldwin Content-Type: text/plain; charset=UTF-8 Cc: Kevin Oberman , "freebsd-acpi@freebsd.org" , "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 May 2014 16:55:31 -0000 On 5 May 2014 08:09, John Baldwin wrote: > On Sunday, May 04, 2014 4:27:38 am Adrian Chadd wrote: >> Hi, >> >> I'd like to propose flipping a few things: >> >> * Flipping the default lid state to S3. I think ACPI suspend/resume >> seems to work well enough these days and I've not met anyone lately >> who expects the default from their laptop to be "stay awake with the >> lid shut." >> * Save chip bugs that we should add workarounds for, we should be OK >> to enter lower sleep states when idling. Flipping this may expose some >> further crazy driver, platform or timer bugs, but they again likely >> should be fixed. >> >> what do people think? > > I think the lid switch thing is premature. Even on my X220 I use a devd > hook to enable it only when i915drm is loaded as resume doesn't work until > that is done. > > I think the Cmax thing OTOH is probably more appropriate. We have several > things place that should "mostly" DTRT for picking the correct timers to > use. The one case I know of recently were some somewhat older systems where > the HPET wasn't reliable, but the system chose to use HPET instead of LAPIC > becuase the LAPIC was known to stop during C1E, etc. In this case the user > just stuck with plain old C1 and forced the LAPIC timer which worked fine. > However, it is hard to identify those cases. On modern systems I would > expect the LAPIC to work just fine, so this problem will become less and > less important as time goes on. right. I'd rather we start finding more of these sooner rather than later. :-) -a