Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp27774rwb; Mon, 26 Sep 2022 08:53:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6yzqrFLZZ+igk9rY8H6ii1QinByyRUClz3qjAO1fOY41+MXxvh/zsssyHZNOyfJB4/zYfU X-Received: by 2002:a17:90a:8688:b0:202:91d7:6a53 with SMTP id p8-20020a17090a868800b0020291d76a53mr37528251pjn.153.1664207634186; Mon, 26 Sep 2022 08:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664207634; cv=none; d=google.com; s=arc-20160816; b=c3e0E/7daHXwpTnJ5M84qdSOE5c56+2c+v3LAOspeZEe40WdRfmol7OIwuIHKJOMcz ToC5NvjsqTbzgB7mvaI5PmCUhj3OA++XA/hBspKrf0FQKjhWLdCwP3Hmt/ERD+MAEvnt vxxbQX2NHkKwCDabl2Azc4XLXk2TYRdmVNk18OTkAzTQ0RQb9dIggpK9j+4GFsP7hS5C a07B2xhCpR4sw/Ry+qM5INCrD1HLRS9Vbi6RU0xlWIbbjkc5sUJ/HBgvvKfl8dTxDq8G 3Nb86Gx1l4BseeU2oORbt5Mc9EkZFCYmvQkuDtsMuWxBLSaJNq0aZYT9Bga2eSaydiJI a3CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=BXQDktYrKtGUar6vOWXfdnJvBogoX7cJRj/tnhLfvcw=; b=rLhmwixhLlCMoPdY0kpC7Jg0pE2FhIPSPOhTuiQPJDHkvuEgr+UXY0uKRxWBefWOtd hCTusMX6fG39gxpLBwfExUmHW0nuLpq9R1WsdmzLzc+po6dLVqTtVeDkdE6O8fnJGRaC TdhC4J49KaowdhduhX3PHaOjpTdbnPyUEuvCnEGVDko77XmbMdrl7m9IlG8GgzwYI7B8 fvTjMo//uQwJRs5okHRP9hCtPNmdRLI1x2wxyeINEntzgpUOdg5Var6h4A7Zowpgxp3b drpxGanXO1nl0fwzlspHOvP/vgA7J9geSmKLvDDTVJxQzvN/hiXbg+29BAliRdfz86W5 bGwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=b3IwHkEB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020aa796ef000000b005397c4ad9e1si12406368pfq.134.2022.09.26.08.53.38; Mon, 26 Sep 2022 08:53:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=b3IwHkEB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233947AbiIZOz7 (ORCPT + 99 others); Mon, 26 Sep 2022 10:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235375AbiIZOyv (ORCPT ); Mon, 26 Sep 2022 10:54:51 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C991CF20; Mon, 26 Sep 2022 06:23:42 -0700 (PDT) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28QBgH7H004482; Mon, 26 Sep 2022 13:23:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=BXQDktYrKtGUar6vOWXfdnJvBogoX7cJRj/tnhLfvcw=; b=b3IwHkEBiMDLI+gPf351+sHVG4SypKBWuIW7+8YHh5M/sOAyO7/wQ1M91jXeVuFx+fpt 4rZlTf+pP10bIIYOIqPMOBlB0Pjw50eg5oo5ED3RrcgOt5UD2c53z5RX8KaJN1oxAKZj 0kA2KfMDOJkrg9G2JixwN95jVS3uVBYOtZ/5Dr/JF74tn4g3kSstlv2236dkyuFvqV4T NYfWRSS1pkllpjsRD90qr15BrgC9PSshJqWlYLzmx2pQt5wmvGo0+cDR18GjsoBsh7Io tG2P15kAsfx1k2jmAVQYI8Sd0LRqSzOkwA13sV0iN4M++ZqOqnX3njlPTwGqOH394kye xA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3ju8kh7ewf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 13:23:17 +0000 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 28QBjHGC013938; Mon, 26 Sep 2022 13:23:16 GMT Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3ju8kh7evr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 13:23:16 +0000 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 28QDKYiA019558; Mon, 26 Sep 2022 13:23:14 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma03fra.de.ibm.com with ESMTP id 3jssh91uc2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 13:23:14 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 28QDNB8n25166108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Sep 2022 13:23:12 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E2413A405B; Mon, 26 Sep 2022 13:23:11 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E787CA4054; Mon, 26 Sep 2022 13:23:10 +0000 (GMT) Received: from [9.171.20.172] (unknown [9.171.20.172]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 26 Sep 2022 13:23:10 +0000 (GMT) Message-ID: <66463973-923f-624d-3041-72ce76147b3e@linux.ibm.com> Date: Mon, 26 Sep 2022 15:23:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v3 6/6] freezer,sched: Rewrite core freezer logic Content-Language: en-US To: Peter Zijlstra Cc: bigeasy@linutronix.de, dietmar.eggemann@arm.com, ebiederm@xmission.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, mgorman@suse.de, mingo@kernel.org, oleg@redhat.com, rjw@rjwysocki.net, rostedt@goodmis.org, tj@kernel.org, vincent.guittot@linaro.org, will@kernel.org, Marc Hartmayer , Amit Shah , "virtualization@lists.linux-foundation.org" References: <20220822114649.055452969@infradead.org> <20220923072104.2013212-1-borntraeger@linux.ibm.com> <56576c3c-fe9b-59cf-95b8-158734320f24@linux.ibm.com> <436fa401-e113-0393-f47a-ed23890364d7@linux.ibm.com> <39dfc425-deff-2469-7bcb-4a0e177b31d1@linux.ibm.com> From: Christian Borntraeger In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 1K4J_YHr25GzxsqQxq58fOoRuHTWZi-n X-Proofpoint-ORIG-GUID: FLDTSIzVXSiDPenHFBzP9F4C2NZkV-k1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-26_08,2022-09-22_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 malwarescore=0 impostorscore=0 adultscore=0 mlxlogscore=999 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209260083 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 26.09.22 um 14:55 schrieb Peter Zijlstra: > Could you please test with something like the below on? I can boot that > with KVM, but obviously I didn't suffer any weirdness to begin with :/ > > --- > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 4e6a6417211f..ef9ccfc3a8c0 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -4051,6 +4051,8 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags) > unsigned long flags; > int cpu, success = 0; > > + WARN_ON_ONCE(state & TASK_FREEZABLE); > + > preempt_disable(); > if (p == current) { > /* Does not seem to trigger.