Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3803459pxb; Mon, 9 Nov 2020 23:43:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFukPZY6qrCl/Dhc+beJIDQ3/1xfBlP51GhAw3hnAN6rPzR4bKJTiS6pcFLHWVG31T/t7H X-Received: by 2002:a50:cf45:: with SMTP id d5mr19346991edk.225.1604994220633; Mon, 09 Nov 2020 23:43:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604994220; cv=none; d=google.com; s=arc-20160816; b=YAm7bGkyMDYk330jzfxfiS95cnN/pI9X1+G0OFYdU5E3NEAV81T/xtyFit+aF/imld MtSGEXa8aZHu097DzHREd3cwmsx+0cle0/yvRb5dE5zo1H76A4FW5QX+iUsE9nkaJnUJ dUGiolQSTcOOyRNyk+2lbQzzKGxidoFS20tZ8NVfLXabCBOrEiAFd2UE9yGqiQ5rmvar Wa/5kG6PRH5d+jbQQz1ZL4xEQpAb8qYW8UV8JxofHyelYtAzwhv/6gtV5NOTJya6v5al fgEYMzqMf38otot8B8ESxvQY/Pj3nmokOg7qBsBJ83R70pH8HVek8SJIQEXgWymS3ZUI LTTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=+A/E+HuPe8v8u2I+5nMtlhsi5h/+K+qNfUiEOaq1bTk=; b=Kyvravje0WuEV4uN+BoNY2zF9ffUVkZzqWDT0VBvW3ypLW/9VZyettdY10M0eteOSp pDzlVNzIFp9i1Pd7otJus9z0GK6+lDR1Rv6RGkh0H5slzTJy6ipQtKiLcdRwC7/KvN43 CNOwwiH50Prnuyoc1ZtBdPhPt5F/JQf4dMKYmiMfPJ+KD7aT+X8g7sN272Hxs2uKzgPL 1RPA/TWr/BJi1njPbO9M6Hs9Nksf80oitnP/JRpvjx2qwcxkNSG/J+Syf1Ulme9/5u9i G6Qv/rlRhknShNHUuqS6v4vGIflFteaezmzIbJPqk8eRhG8SQN3pm5YolsOJN4ufZmfE U7jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lDUDdRM2; 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 h27si9890800ejd.668.2020.11.09.23.43.17; Mon, 09 Nov 2020 23:43:40 -0800 (PST) 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=lDUDdRM2; 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 S1727001AbgKJHl3 (ORCPT + 99 others); Tue, 10 Nov 2020 02:41:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbgKJHl2 (ORCPT ); Tue, 10 Nov 2020 02:41:28 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 764F7C0613D4 for ; Mon, 9 Nov 2020 23:41:28 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id dk16so16014486ejb.12 for ; Mon, 09 Nov 2020 23:41:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=+A/E+HuPe8v8u2I+5nMtlhsi5h/+K+qNfUiEOaq1bTk=; b=lDUDdRM2q5FQtDdjFccn5estlbFnIjXGztAxp+jUmqZa2wyTCM+MxKYmy83RbFkNSI l4jLQOBUtEmB9/vxYHCCw6AtfbBtdxCsCLLqTOAJQwK3Flh98dbXcEKr31AY7MnB3ucB PQhB1cx9fOCKIwh+dAczhL0neA/e+5Jvy9AoZs4fu/W6smABo6ikUT1ARllmOAIAT7BL rhZ2UnAW+072TKVdoUaQGDRSVzFf3DzA1mRkcZifvaIPcvaCEG0W45flQ5SlizD3RcdE k3lTIjLNSCYlA90teJA0xkLL+LIcs2Y1N2vWFN5STW5/rgAN6eQkogiupdBxeKmLZoh5 2MHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=+A/E+HuPe8v8u2I+5nMtlhsi5h/+K+qNfUiEOaq1bTk=; b=XQClWQ/ClAENcrUghsThvn2eSXmQOvR9yEbxaj2WfKNh0d8q9ikoqw/QqYZO0sLxU1 OEGTcab2QQu18Rdfe5/dZUhUgYcko7lmHi2dgfb9Pp7pwMXzrcdUVH930x5uZo7KOFs9 Zxk+k+MzjpkEzPf+fRLYKL5wcmbLg5LgZN2oA0EBqnt0ryhCXvGhyJGZhKYyYyp2IkoM keZSxL1K6vSfh9L2EyswlOJGrOexgYACvIs1rlCsV5o5h8Vh4TvzoyP1U34eI74+d7io Z+0S+1Pqjzx2XdRBDZR0sahBbtJqE7CPLHn7IBDIsmRZ7UXruDuhsVglRLo9W1F9Nakt dFyA== X-Gm-Message-State: AOAM530raySCNjrDfPmvzkZH7BgMMv5Et3l8lVPcCCGttLAfn0amho8U T9hJLgJ4BWYibau8YOsTJahPjzAOVm/nlg+5772RMdcz73/SSmYy X-Received: by 2002:a17:906:4742:: with SMTP id j2mr18476362ejs.247.1604994086125; Mon, 09 Nov 2020 23:41:26 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Tue, 10 Nov 2020 13:11:14 +0530 Message-ID: Subject: WARNING: CPU: 2 at kernel/workqueue.c:4762 workqueue_online_cpu To: open list , lkft-triage@lists.linaro.org, linux- stable , Linux PM Cc: Greg Kroah-Hartman , Sasha Levin , Tejun Heo , jiangshanlai@gmail.com, Viresh Kumar , Stephan Gerhold , Thomas Gleixner , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While running CPU hotplug testing on arm64 db410c device the following kernel warning noticed on linux stable-rc 4.19 branch. I did not bisect this problem yet. Kernel Warning log: ------------------------------ [ 290.463053] CPU1: shutdown [ 290.463107] psci: CPU1 killed (polled 0 ms) [ 290.527026] CPU2: shutdown [ 290.527072] psci: CPU2 killed (polled 0 ms) [ 290.579064] CPU3: shutdown [ 290.579098] psci: CPU3 killed (polled 0 ms) [ 290.612295] Detected VIPT I-cache on CPU1 [ 290.612361] CPU1: Booted secondary processor 0x0000000001 [0x410fd030] [ 290.684091] Detected VIPT I-cache on CPU2 [ 290.684158] CPU2: Booted secondary processor 0x0000000002 [0x410fd030] [ 290.684464] WARNING: CPU: 2 PID: 20 at /usr/src/kernel/kernel/workqueue.c:4762 workqueue_online_cpu+0x18c/0x428 [ 290.697731] Modules linked in: sch_ingress algif_hash test_bpf snd_soc_hdmi_codec crc32_ce adv7511 cec rfkill msm snd_soc_msm8916_analog snd_soc_lpass_apq8016 mdt_loader snd_soc_lpass_cpu snd_soc_msm8916_digital snd_soc_apq8016_sbc drm_kms_helper snd_soc_lpass_platform drm drm_panel_orientation_quirks fuse [last unloaded: test_bpf] [ 290.714992] CPU: 2 PID: 20 Comm: cpuhp/2 Tainted: G D 4.19.156-rc1 #1 [ 290.737221] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT) [ 290.745033] pstate: 40000005 (nZcv daif -PAN -UAO) [ 290.751718] pc : workqueue_online_cpu+0x18c/0x428 [ 290.756316] lr : workqueue_online_cpu+0x140/0x428 [ 290.761086] sp : ffff00000a90bc90 [ 290.765774] x29: ffff00000a90bc90 x28: ffff00000989bfc8 [ 290.769074] x27: ffff80003ac81a00 x26: ffff000009914a00 [ 290.774456] x25: ffff00000989c068 x24: ffff00000a90bd24 [ 290.779752] x23: 0000000000000002 x22: ffff80003fe7a4d0 [ 290.785047] x21: ffff000009914000 x20: ffff00000989bf68 [ 290.790341] x19: ffff80003fe7a1c0 x18: ffffffffffffffff [ 290.795636] x17: 0000000000000000 x16: 0000000000000000 [ 290.800932] x15: ffff00000987fa48 x14: ffff00000a69c530 [ 290.806227] x13: 0000000000000040 x12: 0000000000000228 [ 290.811522] x11: 0000000000000000 x10: ffff00000987fa48 [ 290.816816] x9 : ffff000009914000 x8 : ffff00000987fa48 [ 290.822112] x7 : ffff00000812d338 x6 : 0000000000000000 [ 290.827407] x5 : 0000000000000000 x4 : ffff80003c59ad00 [ 290.832702] x3 : ffff000009880000 x2 : 8b427f82388e4a00 [ 290.837997] x1 : 0000000000000000 x0 : 00000000ffffffea [ 290.843293] Call trace: [ 290.848588] workqueue_online_cpu+0x18c/0x428 [ 290.850762] cpuhp_invoke_callback+0xe8/0xd18 [ 290.855274] cpuhp_thread_fun+0x1a8/0x250 [ 290.859613] smpboot_thread_fn+0x1c4/0x2d0 [ 290.863606] kthread+0x150/0x168 [ 290.867600] ret_from_fork+0x10/0x1c [ 290.870983] irq event stamp: 158 [ 290.874546] hardirqs last enabled at (157): [] _raw_spin_unlock_irqrestore+0x74/0xb0 [ 290.877765] hardirqs last disabled at (158): [] __schedule+0xc0/0xbc0 [ 290.886878] softirqs last enabled at (0): [] copy_process.isra.5.part.6+0x490/0x1b20 [ 290.894861] softirqs last disabled at (0): [<0000000000000000>] (null) [ 290.904233] ---[ end trace 7a9cb6558129244f ]--- steps to reproduce: ---------------------------------- Total number of CPU[0-3] offline each CPU 1, 2 and 3 online each CPU 1, 2 and 3 echo 0 > /sys/devices/system/cpu/cpu1/online echo 0 > /sys/devices/system/cpu/cpu2/online echo 0 > /sys/devices/system/cpu/cpu3/online echo 1 > /sys/devices/system/cpu/cpu1/online echo 1 > /sys/devices/system/cpu/cpu2/online echo 1 > /sys/devices/system/cpu/cpu3/online Reported-by: Naresh Kamboju metadata: git branch: linux-4.19.y git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git describe: v4.19.155-72-g4d10cdd4ac50 kernel-config: http://snapshots.linaro.org/openembedded/lkft/lkft/sumo/dragonboard-410c/lkft/linux-stable-rc-4.19/666/config ref: https://lkft.validation.linaro.org/scheduler/job/1927553#L3876 https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-4.19.y/build/v4.19.155-72-g4d10cdd4ac50/testrun/3416766/suite/linux-log-parser/test/check-kernel-warning-1925672/log -- Linaro LKFT https://lkft.linaro.org