Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2435731pxb; Sun, 17 Oct 2021 15:04:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLxNdum2KOV3p0limFs+nxqezo01L4fIRbEr9mnpWxzjNWxUtT9zr2avTUOEy+ZvxgsFKb X-Received: by 2002:a17:90b:380d:: with SMTP id mq13mr29024407pjb.131.1634508258313; Sun, 17 Oct 2021 15:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634508258; cv=none; d=google.com; s=arc-20160816; b=nDtAiJN6vyY19JJ+Yi+hUyOrUUgAhCl8EQubH4GXEFyr0oj9CCZ9o9e5aB5igldBSx JTA9Uc06siDACdR4fgxshsLGhoagucJHN/dMEP4cDXXm/nlk2d+fB1dGIatEPmuPaqpP PAs65+9ekcFm5c43J52NlCEzCkjgCw+2mez+R81mMJ6hBtRA6faNyVz1e3YWNyNR/DVN XEYirWIBVjGjC5d8YVPagOrQrwq9jeI9Nt7d2+OaHfWUyzz5fZnwn+YKzJlporn72Uv1 JAELeSm0EflFh4Pg75vhp5WpafWMnadR3zC5Kw49G/9cOAH4Adpb4gwxLEAPxt6J55QM yGHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=1a/6peZLSAD85mz3HpJfFRT3p8OOlLaLJWrrCdBU9sA=; b=m5mhO2GdZSjrlSPcionoDm+cYScT+RepGartp0Bv1m7FmUna71fPTBlgDV1nqUWWEB VKj24vp0wxyD2pFbKKgNFiUeJhoSP03xxkFCG4gIdKKFYKv9oN5A0QP+Bo0V299lEzSl ao7jH+S3rpN+OBlqKkMe2CAmjuMWl+0njC4x0EB+14OxzbeVF/PwB09XUIsGmC9e9MdD Bcg1oQKmBKIoRmZZEVvVJUD++pgPU5oBetk8xdWC3mMaIE71yvCLWifvBNy+KkKKmeAF AjmZxpSd5BYugV1tNzx7Cbr+6s26X8mKBM38VemzCtOyXkEk+ZUWyA4krEGm01qmHEqj PPhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e3mQV9Gv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si22226390pgj.290.2021.10.17.15.03.52; Sun, 17 Oct 2021 15:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e3mQV9Gv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242763AbhJOTmO (ORCPT + 99 others); Fri, 15 Oct 2021 15:42:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242750AbhJOTmO (ORCPT ); Fri, 15 Oct 2021 15:42:14 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65540C061570 for ; Fri, 15 Oct 2021 12:40:07 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id lk8-20020a17090b33c800b001a0a284fcc2so10069071pjb.2 for ; Fri, 15 Oct 2021 12:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=1a/6peZLSAD85mz3HpJfFRT3p8OOlLaLJWrrCdBU9sA=; b=e3mQV9GvtxxTsES/ruNVsn6hkp1PVZogK12qCFJREQXgexbzc2xBWXnyiq1sDF6gZ3 ySEFTeusj6kmZm5dg6klqEH91CH6aTk3oAbwNNMYkg9KhXeS60IMBFSZO+oe06Phso/i A1gDHWb7YjtZOWG283MFXHXPLEW7j0gqApLmIvX19BTVmOedMzS4bmnEHw8/EDybcut5 NkHBMogA5uf5fg1D1lBZTufjcdOs18jrCAqxDCj5efrPYGrmRiKnPLK3o0oxoUOIEz6M CjKhypphO0l2u9jnBdrFtodeLvLMDgmmcbVAk3wDDfj5lb2t/qvynBi+X8lgscAlXAKF /ENA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1a/6peZLSAD85mz3HpJfFRT3p8OOlLaLJWrrCdBU9sA=; b=2jEICRkSwlY56VK5Yu1OuFVCXp/EBHvyOs+hxn3CFIlvuswbiQ2lrtWDQieP79ePI3 2qB3bI9Ol0XbhDs6benk+31scpLQfux3wiTrIKW4PhDpRY+I0a4DVleTROrY0cQh7jbu Kx/cMluK6XgmUvJCwjqWHyBq7Eotnl0dsOosYr/5jP174uFP1Ym6xHKzivZ/9DHnP/T0 bqnMb3IHhor27SuhD/IcfJr4ulbpdLM0MoOcXeLoeDxzN6F86HVeP9xM7CGvg0Btzlf/ Haijsct5AkDE21eNPkZWOstOycsOLXJVbp5z3Wg52PTmVbglprdWTL4hB7yIuX1YtgI2 PTxQ== X-Gm-Message-State: AOAM532sc8ijBa+TiRtw2mgGL14JcW4Ut181MWB9p3ts8GMMw1rkXjj+ +vjs7VUdtjlxevkP9ZBW9mo= X-Received: by 2002:a17:90a:b391:: with SMTP id e17mr30100849pjr.137.1634326806762; Fri, 15 Oct 2021 12:40:06 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id g14sm5225415pgo.88.2021.10.15.12.40.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Oct 2021 12:40:05 -0700 (PDT) Subject: Re: [PM] bfcc1e67ff: kernel-selftests.breakpoints.step_after_suspend_test.fail To: "Rafael J. Wysocki" Cc: LKML , Linux Memory Management List , lkp@lists.01.org, lkp@intel.com, kernel test robot References: <20211014075731.GB18719@xsang-OptiPlex-9020> <51c0a15f-1941-f161-dcec-a7a9acc726f2@gmail.com> <6755cf07-fa5a-cbb7-c076-57c162a08c99@gmail.com> From: Florian Fainelli Message-ID: <20aedfba-14e3-3677-d21a-b87610095445@gmail.com> Date: Fri, 15 Oct 2021 12:40:00 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/15/21 11:45 AM, Rafael J. Wysocki wrote: > On 10/14/2021 11:55 PM, Florian Fainelli wrote: >> On 10/14/21 12:23 PM, Rafael J. Wysocki wrote: >>> On 10/14/2021 6:26 PM, Florian Fainelli wrote: >>>> On 10/14/21 12:57 AM, kernel test robot wrote: >>>>> Greeting, >>>>> >>>>> FYI, we noticed the following commit (built with gcc-9): >>>>> >>>>> commit: bfcc1e67ff1e4aa8bfe2ca57f99390fc284c799d ("PM: sleep: Do not >>>>> assume that "mem" is always present") >>>>> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git >>>>> master >>>>> >>>>> >>>>> in testcase: kernel-selftests >>>>> version: kernel-selftests-x86_64-c8c9111a-1_20210929 >>>>> with following parameters: >>>>> >>>>>      group: group-00 >>>>>      ucode: 0x11 >>>>> >>>>> test-description: The kernel contains a set of "self tests" under the >>>>> tools/testing/selftests/ directory. These are intended to be small >>>>> unit tests to exercise individual code paths in the kernel. >>>>> test-url: https://www.kernel.org/doc/Documentation/kselftest.txt >>>>> >>>>> >>>>> on test machine: 288 threads 2 sockets Intel(R) Xeon Phi(TM) CPU 7295 >>>>> @ 1.50GHz with 80G memory >>>>> >>>>> caused below changes (please refer to attached dmesg/kmsg for entire >>>>> log/backtrace): >>>>> >>>>> >>>>> >>>>> >>>>> If you fix the issue, kindly add following tag >>>>> Reported-by: kernel test robot >>>> Thanks for your report. Assuming that the code responsible for >>>> registering the suspend operations is drivers/acpi/sleep.c for your >>>> platform, and that acpi_sleep_suspend_setup() iterated over all >>>> possible >>>> sleep states, your platform must somehow be returning that >>>> ACPI_STATE_S3 >>>> is not a supported state somehow? >>>> >>>> Rafael have you ever encountered something like that? >>> Yes, there are systems with ACPI that don't support S3. >> OK and do you know what happens when we enter suspend with "mem" in >> those cases? Do we immediately return because ultimately the firmware >> does not support ACPI S3? > > "mem" should not be present in the list of available strings then, so it > should be rejected right away. Well yes, that was the purpose of the patch I submitted, but assuming that we did provide "mem" as one of the possible standby modes even though that was wrong (before patch), and the test was trying to enter ACPI S3 standby, what would have happened, would the ACPI firmware honor the request but return an error, or would it actually enter ACPI S3? In any case, I will change the test to check that this is a supported standby mode before trying it. -- Florian