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 7BA11C3DA7F for ; Wed, 7 Aug 2024 22:40:42 +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=fpaMsRHZ95ToRGUxAfb1zMIumId8sRSoShxy8vDFiIM=; b=M7E0b2Pklxig5Gj+n4Kdxoi/3F zYlqyw9GKTs8AmdxFoO/jaGSJSxaXEwa4Ehc+HTOMb4XoxHGUk/jFRE+3xFdn1bnkCB+By+WsHZfh CHuu7wia8zKaEU/qak4aABeipNFVpeUZweqtVxTufz5+FSE/SwuN0yxQXKYl1g4mEag8vDtV5c2wY 64HFD4TELj4vnQZEfvry30WuCNlMvql1/QBW62il27qPb8MWk6ekBCUbPL6f/VqLiWgW/X4h7HXgA Rv9w/2DSpyKsyXDNKt1KBprXeeXnei9td3+9w+fCXsx56oMOqrbBOkjNWQhdnq2QowzoF0y0J7g3r 4pMaJnbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbpKb-00000006Tbf-2Old; Wed, 07 Aug 2024 22:40:33 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbpK2-00000006TSS-0zvm for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 22:39:59 +0000 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-70d2d7e692eso362499b3a.0 for ; Wed, 07 Aug 2024 15:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723070397; x=1723675197; 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=fpaMsRHZ95ToRGUxAfb1zMIumId8sRSoShxy8vDFiIM=; b=vB6pd2a9nOJWBHZdFrSTt6HRXbnuOP4S81qDJst/IGkYNElAlN5i3GSynSv/EuF+XN MkvBX5pJKKATS7A0xI35VFSCXZFQJo79gwI7Tknh1K5Pe+goU1iQo+FCgIley9y0k+Iw WSyXFAjhHD5SGeCns80l69ElTruIO7IF52K/n4YpdgOZ762LmwdENxmEyp/yaQUqypf+ SWno/Paj2uVapXd/sJXhIii3MH8xKdkA4ixXltvi7R1HZgVYQKSm8X3v7wmfZla86w5o jo7FgwSNyjwkrvxX0Ipu7uXXvPBrf+ckKGhvfM3FVimzMLgsdBUC3iCNbs6xmJECMEMl elcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723070397; x=1723675197; 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=fpaMsRHZ95ToRGUxAfb1zMIumId8sRSoShxy8vDFiIM=; b=TytnYizEvil6/exucC/35Q/dha98+QIdQtuJmXtY1sRAM+yudKBsLXi++T7Qt/1N6y qcABBsr0e5rfKrWERP58P5fgtXFah/MJalwpD0sj07pAsUpas6JZf9TLBVz7H26Vmg4d qCxkDOcUz1JJd5Pchwd4Iew8GHxS9F27SCauhcZqfDglA62jYo1kl9RIwsnRvzk5cNll KnB+yRtkYU3zcRc5M9PPwctaqMLleycQzChD7YZ02WOXV4E6A7JnUlHz/EXUDPIzSWSu ld6z/RR03P2eDXKNPyoHLLgfufBEze9Fzm4RXpSATqsZPLJF819ea2Trq0pKED/3z5GO M65A== X-Forwarded-Encrypted: i=1; AJvYcCWzXXHKC+gteYiGSBE4+wZEEllY1ppAK+AzSsWTte3RHp1ylXxax6PnRfU2W6CKswg0t73xkTQnl5k74WdeWDv/4kpvDSFcTmP1uYm6IVuNBNxpNE0= X-Gm-Message-State: AOJu0Yx13+Ij+3DARddmWYXxUU0YKlSzUnS3iO7Vy7lRN7HzAlnUi7Jh T0Zs6skzQJeHFrpziSKLiFQ6jseaypJhKg3t18i5Hc4rbSW2JOOiM8xJa9aLrMM= X-Google-Smtp-Source: AGHT+IESQPvEwbmsSFYakbTK2ll0Tt3rDUIt6IHjj6Copl3/ebwJm0vHuqLsOiAaukYjvG1usCbD8Q== X-Received: by 2002:a05:6a00:3cc3:b0:706:6b29:9cf0 with SMTP id d2e1a72fcca58-710cae8d2e0mr108951b3a.30.1723070397365; Wed, 07 Aug 2024 15:39:57 -0700 (PDT) Received: from localhost ([2804:14c:87d5:5261:6c30:472f:18a6:cae1]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-710cb2cc9bfsm12167b3a.137.2024.08.07.15.39.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 15:39:56 -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 v10 38/40] kselftest/arm64: Add a GCS stress test In-Reply-To: <20240801-arm64-gcs-v10-38-699e2bd2190b@kernel.org> (Mark Brown's message of "Thu, 01 Aug 2024 13:07:05 +0100") References: <20240801-arm64-gcs-v10-0-699e2bd2190b@kernel.org> <20240801-arm64-gcs-v10-38-699e2bd2190b@kernel.org> Date: Wed, 07 Aug 2024 19:39:54 -0300 Message-ID: <877ccsdkjp.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-20240807_153958_309257_24AA57EE X-CRM114-Status: GOOD ( 13.31 ) 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 | 530 +++++++++++++++= ++++++ > 5 files changed, 848 insertions(+), 1 deletion(-) Unfortunately, gcs-stress still fails on my FVP setup. I tested on an arm64 defconfig with and without THP enabled with, the same results: $ sudo ./run_kselftest.sh -t arm64:gcs-stress -o 600 TAP version 13 1..1 # overriding timeout to 600 # selftests: arm64: gcs-stress # TAP version 13 # 1..9 # # 8 CPUs, 9 GCS threads # # Will run for 10s # # Started Thread-4870 # # Started Thread-4871 # # Started Thread-4872 # # Started Thread-4873 # # Started Thread-4874 # # Started Thread-4875 # # Started Thread-4876 # # Started Thread-4877 # # Started Thread-4878 # # Waiting for 9 children # # Waiting for 9 children # # Thread-4870: Failed to enable GCS # # Thread-4871: Failed to enable GCS # # Thread-4872: Failed to enable GCS # # Thread-4873: Failed to enable GCS # # Thread-4876: Failed to enable GCS # # Thread-4875: Failed to enable GCS # # Thread-4874: Failed to enable GCS # # Thread-4878: Failed to enable GCS # # Thread-4877: Failed to enable GCS # # Sending signals, timeout remaining: 10000ms # # Sending signals, timeout remaining: 9900ms # # Sending signals, timeout remaining: 9800ms =E2=8B=AE # # Sending signals, timeout remaining: 300ms # # Sending signals, timeout remaining: 200ms # # Sending signals, timeout remaining: 100ms # # Finishing up... # # Thread-4870 exited with error code 255 # not ok 1 Thread-4870 # # Thread-4871 exited with error code 255 # not ok 2 Thread-4871 # # Thread-4872 exited with error code 255 # not ok 3 Thread-4872 # # Thread-4873 exited with error code 255 # not ok 4 Thread-4873 # # Thread-4874 exited with error code 255 # not ok 5 Thread-4874 # # Thread-4875 exited with error code 255 # not ok 6 Thread-4875 # # Thread-4876 exited with error code 255 # not ok 7 Thread-4876 # # Thread-4877 exited with error code 255 # not ok 8 Thread-4877 # # Thread-4878 exited with error code 255 # not ok 9 Thread-4878 # # Totals: pass:0 fail:9 xfail:0 xpass:0 skip:0 error:0 ok 1 selftests: arm64: gcs-stress bauermann@armv94:/var/tmp/selftests-arm64-gcs-v10$ echo $? 0 --=20 Thiago