From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D348C2AF18 for ; Thu, 18 Jul 2024 23:34:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721345664; cv=none; b=aT6Pjb3MBO0Ii/F3wQRPFZQOoW439kX3aiJGkZfMFS3U0qNj4k6sxjRwwKBKDlRNMs4lkQRHY7ACjYtCQ2kjXXQEcg20pZC1evpptQUFh1EBAOgEIahCdE93/FQjIsRi91a+kxUkUhoUbhT3fKf3HBBKhFIWNIq9UQwCZbqyr8g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721345664; c=relaxed/simple; bh=Uy508/sq/1r69twOonqkXxOzsVEWpYS/wUjciXNylJA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Yqx/NbwOI7RRXEvZ8XZpb1W+6qXJwTgPrcrDS1W+Qli6GElJyES25wrd1qsqfZ3rxaBYV6k4eejl2ZD398RywhjGs9hxaHQXAonohOais5LVb3CCDQPbd+hFSSSdU73JMSmrIq7i/hQhqS4uwhROfeHixqXddOyhGLyXsWtGm6c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=OBRwph2b; arc=none smtp.client-ip=209.85.215.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OBRwph2b" Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-75ee39f1ffbso942877a12.2 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=vger.kernel.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=OBRwph2bOZFJZqvRS5njRtYRwsLZGyu4h1LTZ9Bjx2jEh8jXmBrZ/1sPvlu4j/lUEo RhSupdWRc9u+kJ4I6AAwhuBpYTgJmmN/6WxbCrsfN3ccabPXFZvTHwE9egtdXJ6BrkAq MBxVhYA6c3tFRK2HR7vyMoKNffI9wllaFIk/bQqGLzQwtJxENgpxmSDKxT5DR74Tn5s+ vDsxZe8rr8Buv2q1luFXjP84Yh97oU6Jpr7jSBJNp3eVNfbfc227Fda+pLApIyknfwxE HX4BOw+CdETcS56vq5C04U1TEaj7UpD/umq0et8yDVT0RtI2KRqzedgPr44ZXBUdS3ZA nuGQ== 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=AAVD9Y75xGWWEHneSyDYcJkbfMs623H0WyPo1eV/yHJ9f/EOYTSvWxs1KllhIYc7H1 vLYE+xSi6KnUDjIczM5/RMCJlMDTTnwPTuiTxNK1l0PkAbley5k+lBDu3OEem1bdWimC uFA9yOW1QyIQ4tfKXqB6b9/DyG8L5XORLSjp5+fDRZgZjVy0O2AEWu9w8j6OVy4d2W8I lkpMeEyHDWLkG6V+zbRn6ehtGEzC+hrD/m+yHS0RRjB61a2Gk71M/NmcW4AFxVbOl2bm /C5ibUsQCM4iHpaO/JUjE8phcDPPAN7J+F5yqmclMBUgCKa5lyX3TKXmtVdJVYG9eoYx 3yTQ== X-Forwarded-Encrypted: i=1; AJvYcCXoZUwcpb0KIIPa0CCvKjQlvj/Mmq/ozPcoFqs+P6ian5fSWCJTQxJj+vQ5wVHKTKYRMU1gk7J9DSgahHJS23WavxeED58gFb+iRfiDhw== X-Gm-Message-State: AOJu0YzZqF4qUkL165HDVdH5V74Mr+ayl4fV/FKlHdZIo81rE9aK+C3e 9NO15PzxFfVOCRFDUIGZSqAQg45T1+t7VV7JFZR9lluq/v0B694e7jMydkm9XeQ= 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> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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