From patchwork Mon Sep 13 12:37:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 509726 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp516809jao; Mon, 13 Sep 2021 05:43:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0aZhw2J4/jGL46eJ/tn2UhWwAJLNQCL92Hr/o3oZifUvVAwjpary2t0aZKhBSXnp+XnVr X-Received: by 2002:a17:906:8608:: with SMTP id o8mr12569574ejx.470.1631537007994; Mon, 13 Sep 2021 05:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631537007; cv=none; d=google.com; s=arc-20160816; b=TZ50onzbG8BznTmx+g0IxRvG7eSBJg1f1agq9eKDt7b03jMV7FX7+2Pw4+us2XMpje ISvM8X1HO/w/rGJAZ9UF0TQVprFCbqes4jzhyxEDhLKfLt9XWELToJqhAFBIBB0dXrhk OBw6F8pvkX0nK4m+YTwJPqFHEUuia93uQC36T7/XF4rtaa2uFQ/E7ZJjoCDW8A3omWgs Cm257QiEnozXtdhKZXGP/71/SFwrOAGvVDAKQlWLpJGzcFJrDmQtUcokeAdU154bXQVc vd0KOxtkFXBUmrOGe8tAJNY0X6rmLli1JZG4F666fZxE6PjxgtVlg+vBN03h5FtscKo/ b5QA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4d5pjRDrvsZjEfCZ2OEzgdGusEapdDka6w2K5wJkRrI=; b=g7WXZzkoLo5f8F1Os2dg1Jm8OXicSegvz8fQCgq2Rhg53vnlMzh6hV4b3In0uE9Gxp 0iU9/tM+N5ZyIRyiCuv5dzp3HsF1kJ3O2MOttpgnjq/hkELkO/pafBtfO2SXuroNRu+c Ptn1NHtJbH5tZ/xdEwIchmflRriq1nrK2DdIDlYzb1Y6PNiv7QBhqjMzwySbZjiN4iut zk7JswHqWQ1QvMshZzOfbJn9/nqOyNKUx3dpFLRWH4PTbly814hbSXdZQi5TUeuBbsbD irtHsoMKh0Rp2gCT1KqbR7MoOvCKo5rTyDM9558a+JSVBwBbVwoLiD/uMDvFx6QiEPHV blKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hsVlkaUr; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si9230418eje.454.2021.09.13.05.43.27; Mon, 13 Sep 2021 05:43:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kselftest-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=@kernel.org header.s=k20201202 header.b=hsVlkaUr; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236197AbhIMMom (ORCPT + 5 others); Mon, 13 Sep 2021 08:44:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:34332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236172AbhIMMom (ORCPT ); Mon, 13 Sep 2021 08:44:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6778160C51; Mon, 13 Sep 2021 12:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631537006; bh=034J/1+mWeQStGpdMFtVOiBVU1WdpiXGK6aJYR8cNz8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hsVlkaUrS+3ekkQW+0XLo0Cy4RXS0q0rlm3/jiNgVzKgxf8U47jTWa+ctvI5U/8O3 hJDcXgKcvAGj0PTWj1p5oBqcgHUoJwJ2RAb//xEUT8kQawZl34bgoUZJJG/x77NCNp oty8QD2pe8JGKOivjpWAPc84TpM0Uv3aMSsxlME9A9VjoE9vgl4O+MiqyjfhxsZ1mA JdptSp6kNr3mZq2gGBWUFLcezvUUjeFu3K5XEPKUBdcoy1xsjEOkejxZ/FwTMBtuSw 4brEbteyUznBM20PzpYtjS/6BiMNCvVjyJzc4cbd0c9BgEQoo0gQ2HxfK9Rpb+YFgw W9dnXfxTN4dzA== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v1 3/4] selftests: arm64: Fix and enable test for setting current VL in vec-syscfg Date: Mon, 13 Sep 2021 13:37:10 +0100 Message-Id: <20210913123711.51274-4-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210913123711.51274-1-broonie@kernel.org> References: <20210913123711.51274-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1350; h=from:subject; bh=034J/1+mWeQStGpdMFtVOiBVU1WdpiXGK6aJYR8cNz8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhP0X1FuBDgWBwg6p1HNOQXNGec+AhKNKFSyB3BGEV FVIWvTmJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYT9F9QAKCRAk1otyXVSH0K3LB/ 9KtfrwHWNbfN2vcRqvKPgp1aiw6Ai2pS1ug/5gOHZ86dac0ofWR27zcyN+2AphQM8icX+DqL+jrv/b jBee9Ef8e5vtGXZky1rfPVMsqcvk7MyP5yDCSCxtGeljYR28Gr7bM/msbHsndwhrv5LItp0U0pdZcM XO9OfQV5wp4QMwTT/A0Zca3d8jECf6H2uhcu1mLWAwlopKzkmBLi4blt4gqOEcvLYT73ZNWvNzJp2C HkKUkPaaI/0ZhPL93YUU0TrO6ejsPatNgfVUFodCOM/qy8iamPnzaUU+b+gRhTDnmuq8TKCbpA2yEk /eFChSROYjhJ20x6N+lYNnwF8/yFMl X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org We had some test code for verifying that we can write the current VL via the prctl() interface but the condition for the test was inverted which wasn't noticed as it was never actually hooked up to the array of tests we execute. Fix this. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/fp/vec-syscfg.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) -- 2.20.1 diff --git a/tools/testing/selftests/arm64/fp/vec-syscfg.c b/tools/testing/selftests/arm64/fp/vec-syscfg.c index d48d3ee1bc36..9d6ac843e651 100644 --- a/tools/testing/selftests/arm64/fp/vec-syscfg.c +++ b/tools/testing/selftests/arm64/fp/vec-syscfg.c @@ -329,12 +329,9 @@ static void prctl_set_same(struct vec_data *data) return; } - if (cur_vl != data->rdvl()) - ksft_test_result_pass("%s current VL is %d\n", - data->name, ret); - else - ksft_test_result_fail("%s prctl() VL %d but RDVL is %d\n", - data->name, ret, data->rdvl()); + ksft_test_result(cur_vl == data->rdvl(), + "%s set VL %d and have VL %d\n", + data->name, cur_vl, data->rdvl()); } /* Can we set a new VL for this process? */ @@ -555,6 +552,7 @@ static const test_type tests[] = { proc_write_max, prctl_get, + prctl_set_same, prctl_set, prctl_set_no_child, prctl_set_for_child,