Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp204195ybl; Mon, 12 Aug 2019 14:40:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRXF7jb4SkKc9fCeR2hJm6jRIiUBEJpvvL7X/AYDVoGR7XqXHZNTsShAWsjyYDNo2lZVvY X-Received: by 2002:a63:184b:: with SMTP id 11mr33329242pgy.112.1565646048015; Mon, 12 Aug 2019 14:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646048; cv=none; d=google.com; s=arc-20160816; b=OHIHGAGXLDGwiCbor+WiNmAspYul0kcO2HZW3YBMnkuz6SCEwf8JEIRHsYe5SS51X2 +SxkbhMrjC0Ir6Y2ykv7lWsXUd35KRmdQFGUyVKSIsyXIps7A57MPyZv3UOCLptbE0Z6 bBW+OMhIYFC0R8Dq6PiR1rWHVC9sbe4l6SvqAoFuvzbcbCzXi9BKm2eECgpHNNEhxauB V+Ns0u8BEa6FNFRFa18GQvbLW0D4fqwxA5em6ypn/VtN7Aio2hRqf4PS2DgeBu5Q5loT fzzWhRCrnlNR5T9mC2duF16+ChIgijuu+W8VS4q3yggxhe+EWqLaB2Zx8hDZO/k6VcBl O19w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=T15PQcJHH7yU42jE/kUBJ3OwgXX/58NrUUahBWzpzL4=; b=ygBdZe0xhIyOc3Wjt+fe8bBAHzJ+cU8ciQQEQSq8oA+FkXHeU7O2N3hN1mHJxAMufk TquYedc6LlFChvnWGF0+oo9XNF2baeufMSNTO83R1Oad0zZj5kOmkZCA4ynZweT/VT1t hJ3tT+ZF+QyBj7FoYGfNrId+Y5hIaZ+doOGGtj4YbCaNT6nXIbZ2bUv3lzO/hM+KmSO7 tvJCZKB9DxWwsE6YnJfg7jVkPCp0diJu2O2RN07aJRQheRI951J5XQwrsYBDsv7LzUzd w5owih1+z3K5kLX3Rv5nmpBuP2MBzzUQV/TnaSf1yeoBb3zoy5KxOP3HrABc9JNnAfeo g71Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14si449084pjo.40.2019.08.12.14.40.32; Mon, 12 Aug 2019 14:40:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727264AbfHLVc6 (ORCPT + 99 others); Mon, 12 Aug 2019 17:32:58 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:38755 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbfHLVc5 (ORCPT ); Mon, 12 Aug 2019 17:32:57 -0400 Received: by mail-ot1-f67.google.com with SMTP id r20so14798929ota.5; Mon, 12 Aug 2019 14:32:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T15PQcJHH7yU42jE/kUBJ3OwgXX/58NrUUahBWzpzL4=; b=G2R9656/rcW0V4dhF2uQBWvIRaxHl52h+Y2tDCFsLRcOreggoyvLGqQP2FQJnzlg6c VbfLKSYwmVRQvjiFIaTx6RNOeMgR3NbVPZzZN6uEQ+Ol0Nusci3Cavg85K6JkTF5rtzY fXzIan4315aUwm+j9qmURv/gJQQCi7BI3Azdtr2ivkFfz+od+iS8i5BYccugUP1v/YLG xpOGhNujtHtiQd/W+Q8J3FeMGb/8VsqORuOmtySVBiya0J3QGSVxxd2iwADQPJaiD1N8 yEzJn4CC6xEN9O5mknqCC6wppufPDsqaw85J8f8+nZRdvinnYC6AM3Dp1PV7NO5WiLWB lEDA== X-Gm-Message-State: APjAAAVsau3izYZIyyWmQowVwO6tyVgjx3iRIVn9MCkV+jHGMkbwyeSY toHK1gzGgakwS92/pDG++jx8jlsY9hoGtybncvs= X-Received: by 2002:aca:d907:: with SMTP id q7mr840724oig.68.1565645576650; Mon, 12 Aug 2019 14:32:56 -0700 (PDT) MIME-Version: 1.0 References: <5997740.FPbUVk04hV@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Mon, 12 Aug 2019 23:32:45 +0200 Message-ID: Subject: Re: [PATCH v3 0/8] PM / ACPI: sleep: Additional changes related to suspend-to-idle To: "Bhardwaj, Rajneesh" Cc: "Rafael J. Wysocki" , Linux ACPI , Linux PM , LKML , Zhang Rui , Andy Shevchenko , Mario Limonciello , Kai-Heng Feng Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 3:55 PM Bhardwaj, Rajneesh wrote: > > Hi Rafael > > On 02-Aug-19 4:03 PM, Rafael J. Wysocki wrote: > > Hi All, > > > >>> On top of the "Simplify the suspend-to-idle control flow" patch series > >>> posted previously: > >>> > >>> https://lore.kernel.org/lkml/71085220.z6FKkvYQPX@kreacher/ > >>> > >>> sanitize the suspend-to-idle flow even further. > >>> > >>> First off, decouple EC wakeup from the LPS0 _DSM processing (patch 1). > >>> > >>> Next, reorder the code to invoke LPS0 _DSM Functions 5 and 6 in the > >>> specification-compliant order with respect to suspending and resuming > >>> devices (patch 2). > >>> > >>> Finally, rearrange lps0_device_attach() (patch 3) and add a command line > >>> switch to prevent the LPS0 _DSM from being used. > >> The v2 is because I found a (minor) bug in patch 1, decided to use a module > >> parameter instead of a kernel command line option in patch 4. Also, there > >> are 4 new patches: > >> > >> Patch 5: Switch the EC over to polling during "noirq" suspend and back > >> during "noirq" resume. > >> > >> Patch 6: Eliminate acpi_sleep_no_ec_events(). > >> > >> Patch 7: Consolidate some EC code depending on PM_SLEEP. > >> > >> Patch 8: Add EC GPE dispatching debug message. > > The v3 is just a rearranged v2 so as to move the post sensitive patch (previous patch 2) > > to the end of the series. [After applying the full series the code is the same as before.] > > > > For easier testing, the series (along with some previous patches depended on by it) > > is available in the pm-s2idle-testing branch of the linux-pm.git tree at kernel.org: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/log/?h=pm-s2idle-testing > > > > Please refer to the changelogs for details. > > > I have tested both pm-s2idle-testing and pm-s2idle-rework branches > including recently introduced commit "PM: suspend: Fix > platform_suspend_prepare_noirq()". > > Works fine for me on Ice Lake platform. > > Acked-by: Rajneesh Bhardwaj > > Tested-by: Rajneesh Bhardwaj Thanks!