Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4479193pxj; Tue, 22 Jun 2021 00:51:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwovUDK6DWLHguEI0PBWxUQj8NNR4KswzXkMOofLfYY8UL6qUc4ZZOQYTQ4RBz0QQbcXX9+ X-Received: by 2002:a17:906:b857:: with SMTP id ga23mr2567085ejb.296.1624348262020; Tue, 22 Jun 2021 00:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624348262; cv=none; d=google.com; s=arc-20160816; b=Ovr55jY9yY1jNmqLyPaserJxXOmwLp+8twgR2Y/HVLukQW93etLbVkjGEZ04glS7go XkiVfiWMDQJZ57bWCkDLOEDsfvLl/QQa66u7NWHcPssguIWCUUkOtYtI30X09myqnelc LRwfG77devmWC1hOeiFeD6bBkmHTPWth0GZW7T1nIfShJlluRU2cTKF1WZegfSoYm1vd ZmH5Lek7G4fUhtX+9v8v79DIvC62Xc05EbfabXeq9x4XsCmYxKVo3AjcUSYBLlK/gmo+ P4R/MJC8IggQNjPtDrAS4YSCQ6XAHRcVK25CJ1ObVOQooJ8V2xTdhmjkVeYVSkHEO6sD +RRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wOPEtWORSkQBvaG3lQj4bBkhxW56uNEUy6C8BsqWuFQ=; b=ElJYt39LTy5YDUFe/s9Pw9PUyKxXrqqRY08zyAOdl+2h3fd4xbRwcDAE3CQRjOVjRW odQ0/Dd78ingVG/93CwOLlxORDcEc/qJvPXDyJjRJ7/MZ5FaHCuRr5CHheeqJUyQrzey vLfrElfyZfOIzuVeZiSajQ9luhL2bPITv2UELPX+eCkW0xzXtSXxfWp/W8kmwzMUcFuu KizcVFFAa0E01pC2u9y3Oi14x4HLFspTRJ4cEUSOh5FBa5fgHmekoulqe/gxOTD5EjRp cWpuYI2MQzVI6k52PrawNfltp/bY5w/FIgbB/xi4cu4D3Aa9nDzj2ieKL/weajZx5xwp 9gaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jQZNEO1A; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ig2si4732361ejc.57.2021.06.22.00.50.39; Tue, 22 Jun 2021 00:51:02 -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=@linaro.org header.s=google header.b=jQZNEO1A; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229789AbhFVHwB (ORCPT + 99 others); Tue, 22 Jun 2021 03:52:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbhFVHwA (ORCPT ); Tue, 22 Jun 2021 03:52:00 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B10EDC061574 for ; Tue, 22 Jun 2021 00:49:44 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id u11so17867303ljh.2 for ; Tue, 22 Jun 2021 00:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=wOPEtWORSkQBvaG3lQj4bBkhxW56uNEUy6C8BsqWuFQ=; b=jQZNEO1AwlhsUqEwo5PX+i4dyZjplXX1aoREJE01/pbr6tgKwdX9vOhpB3bNGf461m GFwkwAn4ZRPfmaB+uRJrVP/ET3Mo7/zGwUX+fGIzNmMg/mzRYV9NlXNgrbey8ib7x2N8 eueFb7yKfUGrw+DcR1xU8kI66tzeIBg9t3NLIYLkVGhZkum1Yus6UdP5mFI2OuGjZ9qy e/7rZa+Q/VZIOnBijMjF9p2zT9ar4aRvcireDYv/AXbNXCjm7TVrBxFwF82MNH9J3KZu BXHGmotkTJOpKmmubVRoVTZck6XYvmnARVBUraI31tdy+gjiEfgpLs2ADIDqnMI/WvEE 1CLQ== 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:content-transfer-encoding; bh=wOPEtWORSkQBvaG3lQj4bBkhxW56uNEUy6C8BsqWuFQ=; b=W9e1gxY/lLuUmGjcSRg9p9UHG1ELcEtj4MZ5FzbgqZLE/I55wRwcoGI6MLn19yzVUY 4vRmQJemN8iDXcWETL643jEyS9Ga2FzmoxxKaRJAFOsdD9EoNe5WNW+I1HwxWcJnpEOH HxkBQt29HE+q8aYr/uNdilg+g6mbxfh7zKX9bk1HNaheOk3PMY4eZRvmOI1BZgs63PQk zaFucUj9ZlNws3GT3f7h8efELPN6wOfEkJmG/esitHNaIh8BvlD6ixgVhID7VStlOoIw La7Cbqcxmh6wUS3ERqrWXOjVSyw+e01P0W8NI377jhguOx2LcUZwvmn2diAnzbhnV18N O8BQ== X-Gm-Message-State: AOAM530VW6ZdLIGSZ8UofHGRhzX8dWxq2vmEfdivFGHIOpyJ+0etM6B3 wvKpMl4KL3dzKfcQ5yhtq/oLkfnP8I9c1V3c8KliJg== X-Received: by 2002:a2e:90ca:: with SMTP id o10mr2013324ljg.299.1624348182997; Tue, 22 Jun 2021 00:49:42 -0700 (PDT) MIME-Version: 1.0 References: <2ED1BDF5-BC0C-47CD-8F33-9A46C738F8CF@linux.vnet.ibm.com> In-Reply-To: <2ED1BDF5-BC0C-47CD-8F33-9A46C738F8CF@linux.vnet.ibm.com> From: Vincent Guittot Date: Tue, 22 Jun 2021 09:49:31 +0200 Message-ID: Subject: Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot To: Sachin Sant Cc: open list , Linux Next Mailing List , linuxppc-dev@lists.ozlabs.org, Odin Ugedal Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sachin, On Tue, 22 Jun 2021 at 09:39, Sachin Sant wrot= e: > > While booting 5.13.0-rc7-next-20210621 on a PowerVM LPAR following warnin= g > is seen > > [ 30.922154] ------------[ cut here ]------------ > [ 30.922201] cfs_rq->avg.load_avg || cfs_rq->avg.util_avg || cfs_rq->av= g.runnable_avg > [ 30.922219] WARNING: CPU: 6 PID: 762 at kernel/sched/fair.c:3277 updat= e_blocked_averages+0x758/0x780 > [ 30.922259] Modules linked in: pseries_rng xts vmx_crypto uio_pdrv_gen= irq uio sch_fq_codel ip_tables sd_mod t10_pi sg fuse > [ 30.922309] CPU: 6 PID: 762 Comm: augenrules Not tainted 5.13.0-rc7-ne= xt-20210621 #1 > [ 30.922329] NIP: c0000000001b27e8 LR: c0000000001b27e4 CTR: c00000000= 07cfda0 > [ 30.922344] REGS: c000000023fcb660 TRAP: 0700 Not tainted (5.13.0-r= c7-next-20210621) > [ 30.922359] MSR: 8000000000029033 CR: 4848822= 4 XER: 00000005 > [ 30.922394] CFAR: c00000000014d120 IRQMASK: 1 > GPR00: c0000000001b27e4 c000000023fcb900 c000000002a08400 = 0000000000000048 > GPR04: 00000000ffff7fff c000000023fcb5c0 0000000000000027 = c000000f6fdd7e18 > GPR08: 0000000000000023 0000000000000001 0000000000000027 = c0000000028a6650 > GPR12: 0000000000008000 c000000f6fff7680 c000000f6fe62600 = 0000000000000032 > GPR16: 00000007331a989a c000000f6fe62600 c0000000238a6800 = 0000000000000001 > GPR20: 0000000000000000 c000000002a4dfe0 0000000000000000 = 0000000000000006 > GPR24: 0000000000000000 c000000f6fe63010 0000000000000001 = c000000f6fe62680 > GPR28: 0000000000000006 c0000000238a69c0 0000000000000000 = c000000f6fe62600 > [ 30.922569] NIP [c0000000001b27e8] update_blocked_averages+0x758/0x780 > [ 30.922599] LR [c0000000001b27e4] update_blocked_averages+0x754/0x780 > [ 30.922624] Call Trace: > [ 30.922631] [c000000023fcb900] [c0000000001b27e4] update_blocked_avera= ges+0x754/0x780 (unreliable) > [ 30.922653] [c000000023fcba20] [c0000000001bd668] newidle_balance+0x25= 8/0x5c0 > [ 30.922674] [c000000023fcbab0] [c0000000001bdaac] pick_next_task_fair+= 0x7c/0x4d0 > [ 30.922692] [c000000023fcbb10] [c000000000dcd31c] __schedule+0x15c/0x1= 780 > [ 30.922708] [c000000023fcbc50] [c0000000001a5a04] do_task_dead+0x64/0x= 70 > [ 30.922726] [c000000023fcbc80] [c000000000156338] do_exit+0x848/0xcc0 > [ 30.922743] [c000000023fcbd50] [c000000000156884] do_group_exit+0x64/0= xe0 > [ 30.922758] [c000000023fcbd90] [c000000000156924] sys_exit_group+0x24/= 0x30 > [ 30.922774] [c000000023fcbdb0] [c0000000000310c0] system_call_exceptio= n+0x150/0x2d0 > [ 30.922792] [c000000023fcbe10] [c00000000000cc5c] system_call_common+0= xec/0x278 > [ 30.922808] --- interrupt: c00 at 0x7fffb3acddcc > [ 30.922821] NIP: 00007fffb3acddcc LR: 00007fffb3a27f04 CTR: 000000000= 0000000 > [ 30.922833] REGS: c000000023fcbe80 TRAP: 0c00 Not tainted (5.13.0-r= c7-next-20210621) > [ 30.922847] MSR: 800000000280f033 CR: 28444202 XER: 00000000 > [ 30.922882] IRQMASK: 0 > GPR00: 00000000000000ea 00007fffc8f21780 00007fffb3bf7100 = 0000000000000000 > GPR04: 0000000000000000 0000000155f142f0 0000000000000000 = 00007fffb3d23740 > GPR08: fffffffffbad2a87 0000000000000000 0000000000000000 = 0000000000000000 > GPR12: 0000000000000000 00007fffb3d2aeb0 0000000116be95e0 = 0000000000000032 > GPR16: 0000000000000000 00007fffc8f21cd8 000000000000002d = 0000000000000024 > GPR20: 00007fffc8f21cd4 00007fffb3bf4f98 0000000000000001 = 0000000000000001 > GPR24: 00007fffb3bf0950 0000000000000000 0000000000000000 = 0000000000000001 > GPR28: 0000000000000000 0000000000000000 00007fffb3d23ec0 = 0000000000000000 > [ 30.923023] NIP [00007fffb3acddcc] 0x7fffb3acddcc > [ 30.923035] LR [00007fffb3a27f04] 0x7fffb3a27f04 > [ 30.923045] --- interrupt: c00 > [ 30.923052] Instruction dump: > [ 30.923061] 3863be48 9be97ae6 4bf9a8f9 60000000 0fe00000 4bfff980 e921= 0070 e8610088 > [ 30.923088] 39400001 99490003 4bf9a8d9 60000000 <0fe00000> 4bfffc24 3d= 22fff5 89297ae3 > [ 30.923113] ---[ end trace ed07974d2149c499 ]=E2=80=94 > > This warning was introduced with commit 9e077b52d86a > sched/pelt: Check that *_avg are null when *_sum are Yes. That was exactly the purpose of the patch. There is one last remaining part which could generate this. I'm going to prepare a patch Thanks > > next-20210618 was good. > > Thanks > -Sachin