Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4144898pxb; Mon, 27 Sep 2021 10:17:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSVkWjK9WP84AFiJU5q3TyIdGmz5ixt1BFf2MqWrB4rm0As7cPRrnjWF1OefGATB2+Womj X-Received: by 2002:a17:902:b68b:b0:13a:1239:b8d9 with SMTP id c11-20020a170902b68b00b0013a1239b8d9mr931757pls.25.1632763066289; Mon, 27 Sep 2021 10:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632763066; cv=none; d=google.com; s=arc-20160816; b=ietHQZ6l6q51aJhjja4pPSBWncnQqCRlVwckBn+1vCSz2mmhuzD6ZDeg0fOCggRZoZ 85pBuXsaw/tZpYvJiRXCpFPwVJKyQXLLLw7wr9PfzftWIZ3nhB4H+40P9cJQa2Eq5F2h BMJOhDfNOyXMisENSO+o4dX0paeM8YgepXKbUj3MvzPqzRLJE+g8t6Eq4mPc8/tIaJ6T b9FlJww+4GodP7bbczZXzzs4jh7CH1WCPK3cp6X2FErTy12kG/4ksyDt6ZHy3HA/9cwA WBQ0Sck3saSVOVoMYD/tqZTfzo45hF93QBDrxBUYTs8Yq87Z+gVX1RECxrEjH7xNpoM/ 0YyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HvLWcuvZqsx1131urhCM5ooagYBgsoP7TEwmPDc9Dg8=; b=eTqA+/lTSQNBYpgevmnsXElEFtyZsRbcdtpAYOVV27lMAnuVnuTchnULmL122+kgWy SeWG17li1/z8N/usym6so0xlZbHDWri4AEyIbO3kXiMGiFd6SGPsEJhUp70s0378SF+O pAfmY9CgNEmZ/bbGDqq6jg+Z3tnnPDhFB5LtgGegENyPdj2nMMEDIMzGSHNu0krywB/W zbK0Eclb2XEhmvLUsifhT1tp6FCciRXGVTBoalc0A8uEu6Nz6bx7R+bBYEyagk9AEEOt kStHmXCtlra6GHi1JUqWm++y6PQUB8UR1QkDWG509AD8jIOFPOAG0RmBTUhO5R+WofPM uXjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="R/qyPS/K"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m24si13171430pls.262.2021.09.27.10.17.32; Mon, 27 Sep 2021 10:17:46 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b="R/qyPS/K"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236946AbhI0RQb (ORCPT + 99 others); Mon, 27 Sep 2021 13:16:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:47286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236672AbhI0RLc (ORCPT ); Mon, 27 Sep 2021 13:11:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 83A9F611C5; Mon, 27 Sep 2021 17:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632762496; bh=Jg/dchFRl2rrd7zTyH4d36yYuruokrwJB9U1vQ8Skvw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R/qyPS/K7QJG0W5+T1sM7/e6qzZSD7ctyPHBtNLoWAzqqHTZFXKclUTOUKry3kuPF Iyf/OCeyfCbMEAYNbd/PPBorwdVcxpkzaM+yBxYuJzYJj9fyvx5yLjMNq3j6o9ES+e fHhqI3vliefNmECz9VwlljcKvFS2EOsqxjmdkU/c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Brown , Catalin Marinas , Sasha Levin Subject: [PATCH 5.10 045/103] kselftest/arm64: signal: Add SVE to the set of features we can check for Date: Mon, 27 Sep 2021 19:02:17 +0200 Message-Id: <20210927170227.311035037@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210927170225.702078779@linuxfoundation.org> References: <20210927170225.702078779@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mark Brown [ Upstream commit d4e4dc4fab686c5f3f185272a19b83930664bef5 ] Allow testcases for SVE signal handling to flag the dependency and be skipped on systems without SVE support. Signed-off-by: Mark Brown Link: https://lore.kernel.org/r/20210819134245.13935-2-broonie@kernel.org Signed-off-by: Catalin Marinas Signed-off-by: Sasha Levin --- tools/testing/selftests/arm64/signal/test_signals.h | 2 ++ tools/testing/selftests/arm64/signal/test_signals_utils.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tools/testing/selftests/arm64/signal/test_signals.h b/tools/testing/selftests/arm64/signal/test_signals.h index f96baf1cef1a..ebe8694dbef0 100644 --- a/tools/testing/selftests/arm64/signal/test_signals.h +++ b/tools/testing/selftests/arm64/signal/test_signals.h @@ -33,10 +33,12 @@ */ enum { FSSBS_BIT, + FSVE_BIT, FMAX_END }; #define FEAT_SSBS (1UL << FSSBS_BIT) +#define FEAT_SVE (1UL << FSVE_BIT) /* * A descriptor used to describe and configure a test case. diff --git a/tools/testing/selftests/arm64/signal/test_signals_utils.c b/tools/testing/selftests/arm64/signal/test_signals_utils.c index 2de6e5ed5e25..6836510a522f 100644 --- a/tools/testing/selftests/arm64/signal/test_signals_utils.c +++ b/tools/testing/selftests/arm64/signal/test_signals_utils.c @@ -26,6 +26,7 @@ static int sig_copyctx = SIGTRAP; static char const *const feats_names[FMAX_END] = { " SSBS ", + " SVE ", }; #define MAX_FEATS_SZ 128 @@ -263,6 +264,8 @@ int test_init(struct tdescr *td) */ if (getauxval(AT_HWCAP) & HWCAP_SSBS) td->feats_supported |= FEAT_SSBS; + if (getauxval(AT_HWCAP) & HWCAP_SVE) + td->feats_supported |= FEAT_SVE; if (feats_ok(td)) fprintf(stderr, "Required Features: [%s] supported\n", -- 2.33.0