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 7F050C3DA61 for ; Thu, 18 Jul 2024 23:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/qF+1IDJjtH4yt3+dIXZUb/sL6BCvMKOBa4IWo3wL00=; b=x6OFUjfq4h3zcZuAodx0Dsz0Qq b4OoAc1WSVEcgrg4exl2za4qVC4gbOELdHA3YG55OJReJUClf1Wd3CV/ItJHoDMV46xKInV7L0YPw Isrtak33US2bHDOjUpvHVW8XfptnHH7bxJ4nShPiR+YojiJZ+tZA5UlMFc6iX+AtWAlC7dKYFsdf8 h9E1Qv6Nn+rJUnRVtIeJG7fH5KSr8WqhX/WJ+3A4eALwYdDikf6UWRTp9eboyTtJgHF0INo6qLMch GvAdjpk68MVF2FI0Yhhy8+gcx5eiDxGXTubtcoi1OyArPgR6NA9T/kAAmrjjJwPS+E78sg5ulyHeM F00FPZLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUae6-00000000zhq-0hdH; Thu, 18 Jul 2024 23:34:46 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUadi-00000000zZG-2w3Q for linux-arm-kernel@lists.infradead.org; Thu, 18 Jul 2024 23:34:24 +0000 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-71871d5e087so1007252a12.1 for ; Thu, 18 Jul 2024 16:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721345661; x=1721950461; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=/qF+1IDJjtH4yt3+dIXZUb/sL6BCvMKOBa4IWo3wL00=; b=HKWkgfQosF5IerZcYde4gdWc15UJI/pPoSGm0CPgZGUaNbzTssJEKWm2sJ4hHRbKWa fIxYKKmcBnFBwhWV1Um6GKalJHh2rfZ++Fhk8YmVBiQG9G2dVmzB5TMfroadGcOPUfuA FTyNob1PHTxgi67gxe2l0YkxuTHssLaNrbT42ISt/Kby57ySESjwgH0i2eKw8OOSwKII PuOWbuLblWUn3QbYkUh1WAvYqD5A9O53R/cFwtbtqM3WmS20LGkJHTJPsVfYa0ly/8WF YhozKDRfOhP2+IxgnouQQPHsyFo6z3tzaaToW6Ms23a8z3TybTkzb6WW3Y3RPisLbgi3 GriA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721345661; x=1721950461; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/qF+1IDJjtH4yt3+dIXZUb/sL6BCvMKOBa4IWo3wL00=; b=KDcdvMGV1QXoNFnnc1C9E6sLsOb0YJboFdXRRKvTrHv+vISKB9+oZShjlP5JL5q1un 96JnFqKmaXosurrAD2ujryz/p8JLQWrEWkK1kqxs7oA5IWxAvbeeKN3S31kz3JoXz9SU 3TOmI04brIMm4nFtRbOYicYUzZyzwvpEuV0NWr8SHIdqcl6MUDY1l7K4CTr+2g+P0lYS 0iMP2+rz5gQIIMM4uNdNb5+K5XT8yPVMpobSljcSe+xZqbJKVljepTp2n1CDkcPOoCW2 F0QBAkyH7+2CZFO9UKn6oV4xIfp5X2gP4ONade62lswHpWOodAhPffQmwmsZSxRVTwfy eESw== X-Forwarded-Encrypted: i=1; AJvYcCXjmTTniGxbjcIA4kFG4AaMMcktNcg2mTylcY0a9w18l+VOhAsvBH14R/3snaPeXyA7jxwVVh4JnG2PrZLvawuYEp1TwcNSPstgrWhIhCUzAKp+WA0= X-Gm-Message-State: AOJu0YzrrS+hLCgar5GEqI9McavGRjed8k675eQus9juhc5PIc6jIahM ibUk7UtdANE6Mv2Z0AIeesP0skL8jGPKrMWNWu+wTlzitvLeehwWQC9IOucUF1M= X-Google-Smtp-Source: AGHT+IEKbX/FsbhFnIw71MBLVcrzrP5T77uZDA6cQicktN0+nhvg+Wct/m4wkCJiaiaT9dRkb2DrPg== X-Received: by 2002:a05:6a20:918c:b0:1c3:a411:dc45 with SMTP id adf61e73a8af0-1c3fdd6b4e7mr7804327637.39.1721345661197; Thu, 18 Jul 2024 16:34:21 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:15c8:3512:f33c:2f80]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ccf7c72075sm199845a91.28.2024.07.18.16.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jul 2024 16:34:20 -0700 (PDT) From: Thiago Jung Bauermann To: Mark Brown Cc: Catalin Marinas , Will Deacon , Jonathan Corbet , Andrew Morton , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Arnd Bergmann , Oleg Nesterov , Eric Biederman , Shuah Khan , "Rick P. Edgecombe" , Deepak Gupta , Ard Biesheuvel , Szabolcs Nagy , Kees Cook , "H.J. Lu" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Florian Weimer , Christian Brauner , Ross Burton , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v9 38/39] kselftest/arm64: Add a GCS stress test In-Reply-To: <20240625-arm64-gcs-v9-38-0f634469b8f0@kernel.org> (Mark Brown's message of "Tue, 25 Jun 2024 15:58:06 +0100") References: <20240625-arm64-gcs-v9-0-0f634469b8f0@kernel.org> <20240625-arm64-gcs-v9-38-0f634469b8f0@kernel.org> Date: Thu, 18 Jul 2024 20:34:18 -0300 Message-ID: <875xt2xojp.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240718_163422_930964_D48BA8FE X-CRM114-Status: GOOD ( 13.02 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Mark Brown writes: > Add a stress test which runs one more process than we have CPUs spinning > through a very recursive function with frequent syscalls immediately prior > to return and signals being injected every 100ms. The goal is to flag up > any scheduling related issues, for example failure to ensure that barriers > are inserted when moving a GCS using task to another CPU. The test runs f= or > a configurable amount of time, defaulting to 10 seconds. > > Reviewed-by: Thiago Jung Bauermann > Signed-off-by: Mark Brown > --- > tools/testing/selftests/arm64/gcs/.gitignore | 2 + > tools/testing/selftests/arm64/gcs/Makefile | 6 +- > tools/testing/selftests/arm64/gcs/asm-offsets.h | 0 > .../selftests/arm64/gcs/gcs-stress-thread.S | 311 ++++++++++++ > tools/testing/selftests/arm64/gcs/gcs-stress.c | 532 +++++++++++++++= ++++++ > 5 files changed, 850 insertions(+), 1 deletion(-) This test fails for me, even without THP: $ sudo ./run_kselftest.sh -t arm64:gcs-stress TAP version 13 1..1 # timeout set to 45 # selftests: arm64: gcs-stress # TAP version 13 # 1..9 # # 8 CPUs, 9 GCS threads # # Will run for 10s # # Started Thread-4030 # # Started Thread-4031 # # Started Thread-4032 # # Started Thread-4033 # # Started Thread-4034 # # Started Thread-4035 # # Started Thread-4036 # # Started Thread-4037 # # Started Thread-4038 # # Waiting for 9 children # # Waiting for 9 children # # Thread-4030: Failed to enable GCS # # Thread-4031: Failed to enable GCS # # Thread-4032: Failed to enable GCS # # Thread-4033: Failed to enable GCS # # Thread-4034: Failed to enable GCS # # Thread-4035: Failed to enable GCS # # Thread-4036: Failed to enable GCS # # Thread-4038: Failed to enable GCS # # Thread-4037: Failed to enable GCS # # Sending signals, timeout remaining: 10000ms # # Sending signals, timeout remaining: 9900ms =E2=8B=AE # # Sending signals, timeout remaining: 200ms # # Sending signals, timeout remaining: 100ms # # Finishing up... # # Thread-4030 exited with error code 255 # not ok 1 Thread-4030 # # Thread-4031 exited with error code 255 # not ok 2 Thread-4031 # # Thread-4032 exited with error code 255 # not ok 3 Thread-4032 # # Thread-4033 exited with error code 255 # not ok 4 Thread-4033 # # Thread-4034 exited with error code 255 # not ok 5 Thread-4034 # # Thread-4035 exited with error code 255 # not ok 6 Thread-4035 # # Thread-4036 exited with error code 255 # not ok 7 Thread-4036 # # Thread-4037 exited with error code 255 # not ok 8 Thread-4037 # # Thread-4038 exited with error code 255 # not ok 9 Thread-4038 # # Totals: pass:0 fail:9 xfail:0 xpass:0 skip:0 error:0 ok 1 selftests: arm64: gcs-stress --=20 Thiago