From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2A8F8C54EBE for ; Mon, 16 Jan 2023 18:34:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XWcSAHDAiqoJvQim7fAlWfA/w4HK6Ci1Y6xi7mS7YvU=; b=CMDtvQfKvhAVJ9 DlASl5yqiUuT2gSL6yTn0YTe2xJH167aGT2KaIAp0kjasUKyBJFx2ABR0hBmujfG4TDpQsnhza4tE IYzNvD2D4umgP3FRZskzU1bnFTvvLjivnmm1nsaE6SzW/gHBjVxzzOZMO2N9iZNZcQV5238FgZGjC z3L73zqU1ZkVBwjcgtAV43vlEL3HL79+rYPU/XXgyuXJ3lTOKgTjS+OCwBM7Cu5c9aqPkXjlYf3mh MUsfsU/OHxCJP1ldgKHg5tyLfXXDvQ9/D3yXv+iAachs5cM6Hf+jqthuTNqKjEc7bMyBNSLG/sOVs MdZBlrGiT0tACgJmk3CQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHUID-00Biw2-M0; Mon, 16 Jan 2023 18:33:13 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHUIA-00BivE-PY for linux-arm-kernel@lists.infradead.org; Mon, 16 Jan 2023 18:33:12 +0000 Received: by mail-pj1-x102f.google.com with SMTP id v13-20020a17090a6b0d00b00219c3be9830so31833745pjj.4 for ; Mon, 16 Jan 2023 10:33:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YTc6GNly3oXKI3Efn3Ml3fC1lK4k/JboFhP5u7ZeAzI=; b=Ow25YtDANinHPEU0QcJeFjWGqjH92ivDrHMBEjCq7LMBUb6gXtK3B3Jk9pVGPGDHcS RyIXYiGwD/a8X47u93Mw+6DxIRzpVxenHl3wpXusCRi5prFaOVRJlZbcL92eLDaImg13 dMsopxmOSKeHoTtTaXOphA6lHuH7mUkyi9gaIHaEFKTQuh//glJSuoHl9kZmOKRRjJsq CeBqhkbKy1YHwoL68ERmtpSUdZeszCJu/0+7nz09uNt5N4A+5b16zAt6LLqOrX2AVBG9 cnUd0U+x2uRy5SRTjy4RYaJiwdsnni5n+Q3lqizIotQKGSOxjQd/2YCl6yBTPEBOXLxs WaJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YTc6GNly3oXKI3Efn3Ml3fC1lK4k/JboFhP5u7ZeAzI=; b=zJo5ZffrKkLkPcSfTKTF5eGUSjGPk5IBQWeHKgiKREV5xb8Idr/wQOxDqpvmUnfDQ8 P7IJXLmIBtMx6CWQWDeO7kZQFmlPub8Nz7POJZfnVQgv6b5yn32khHHtE0T50DK+eNfp dbfWi4vtLAtYiddngw5MH+pGDeqIkihLf1rJIj0FPGM63bJ55f0d164DK3Wks1uIGnWf n0Fzvt2nifHXQBxGeV7LjnAFhX6LOLZXr/vY602wUEtHW2FH+pfE8qqpIoNEOoEYcUGH d2UCDaf/ud1r0s5l0qpo31fdsd1NlCS+PHpdi4jeQjBUFdgoqJGa18i7uL1Qz3uerOvG fTkg== X-Gm-Message-State: AFqh2kpApESfBCSEmUpXBsmL53e0pkVsZEr37bFhFxVBZ21I3l3VfsdU g+2CBnxUK9kjFzlUxgxyx15SY2qcBf3psN+lhlo= X-Google-Smtp-Source: AMrXdXsFgNIbKxbB+QERyBKq+ZbtbDlivuCFmzXaMjt6V8SLsOAP4tKjfWhrwj0RYS5ewlnhkd1GjEnD9A+hBVq/GiQ= X-Received: by 2002:a17:902:9041:b0:194:721e:6118 with SMTP id w1-20020a170902904100b00194721e6118mr55069plz.44.1673893989013; Mon, 16 Jan 2023 10:33:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Zhouyi Zhou Date: Tue, 17 Jan 2023 02:32:57 +0800 Message-ID: Subject: Re: arm64 torture test hotplug failures (offlining causes -EBUSY) To: Joel Fernandes Cc: "moderated list:ARM/STM32 ARCHITECTURE" , Will Deacon , Marc Zyngier , Mark Rutland , Catalin Marinas , rcu , "Paul E. McKenney" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230116_103310_873293_19A9F2E1 X-CRM114-Status: GOOD ( 15.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Joel On Tue, Jan 17, 2023 at 1:27 AM Joel Fernandes wrote: > > Hello, > I am seeing -EBUSY returned a lot during torture_onoff() when running > rcutorture on arm64. This causes hotplug failure 30% of the time. I am > also seeing this in 6.1-rc kernels. I believe see this only for CPU0. > > This causes warnings in torture tests: > [ 217.582290] rcu-torture:torture_onoff task: offline 0 failed: errno -16 > [ 221.866362] rcu-torture:torture_onoff task: offline 0 failed: errno -16 > > Full kernel log here: > http://box.joelfernandes.org:9080/job/rcutorture_stable_arm/job/linux-5.15.y/7/artifact/tools/testing/selftests/rcutorture/res/2023.01.15-14.51.11/TREE04/console.log > > Any ideas on why this is happening and only for CPU 0 (presumably the > boot CPU)? I'd personally need these warnings to go away for my tests > as this causes rcutorture's tests to not cleanly pass for me. It > appears remove_cpu() -> device_offline() is what returns the error. > I guess this probably because CPU 0 is the tick_do_timer_cpu in nohz_full mode, which prevent that cpu from going offline [1]. We have discussed this topic, but there is no agreement on how to solve it yet. [1] https://lore.kernel.org/lkml/20221127175317.GF4001@paulmck-ThinkPad-P17-Gen-1/T/ Thanks Zhouyi > You can browse through all the torture test artifacts here which > contains everything (build logs, vmlinux, etc). > http://box.joelfernandes.org:9080/job/rcutorture_stable_arm/job/linux-5.15.y/7/artifact/tools/testing/selftests/rcutorture/res/2023.01.15-14.51.11/ > > Thanks for your help! > > - Joel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel