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 E638DC433F5 for ; Tue, 8 Feb 2022 01:15:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KRQLQ2txOeYRDSyhaA2BCaf3/6miaO7FY+s/tag2IGs=; b=eb3inpGVn/CdK9lB4ed/7tk+I5 SOKF063hC3+d3qNcYx1aE5gyNLzMZz4EzsvQqg25geIohvqFMmRfOkD3+YNtd8RB7psseq4COu25J jIwDOrtxsU4aLGsHSM4D5dSUi9ZC75Lthcxerez/PuUJPpsVb06U9lxHt179zIJMMWMp2ioYU3n/G XA4vt7mknfvo2d7lPEeePT/5l8ltAgKiigDbw9exLvieyBXA5d10ySiOtq3bZRkI9RMdCd+vR+w1S frzVdKm262IXlJ+X1Xf0zSzzj16MB0hCtYcJF2WGx9NpvFx5IfvcNT4qPirEQ0OzpcrYDM+mtrTxK nlLz2ZOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHF4a-00C7si-SG; Tue, 08 Feb 2022 01:13:37 +0000 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHF4X-00C7rb-7F for linux-arm-kernel@lists.infradead.org; Tue, 08 Feb 2022 01:13:34 +0000 Received: by mail-io1-xd30.google.com with SMTP id n17so19270741iod.4 for ; Mon, 07 Feb 2022 17:13:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=RYJZkN72vfiiVbj4pZ257koXe7Ausm54bAvRbEl+V98=; b=haZIzlncbxoyd2fPB2xGOXiKsrOfxnr/lPN7ypNIhhz4MsgKw/NJBgAkJLfoJ/CtMt MW7pEpJ8532EQUAjy7/LlKPS5FL2B+t2xJlbI4sxYL8VJcoLfxPxttXyDz+ikTwMIRIl 3Q0ukrjB18SSROe83+h7MJKr1jLA92EiyHMdA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=RYJZkN72vfiiVbj4pZ257koXe7Ausm54bAvRbEl+V98=; b=ZdrVzOhJ+qcabHSs/zF+n/jtyih/0S6z5ibsmBh05MtZSo+MOhfaJHJtAzUb7CT+0I HVq5DIMw5TkDm8Q6yKyiIXp8azZM6Vb0JE9TOHFOHH9bUe5SQ07esVxVuFzx+VUoRFoZ A2qjiGuu3hDLbZQyZc5vr7euxEVahs3iMJqDqkNH7ObQScUltYSKocf3pK+kyn83AIV1 D8bd4/bfzwTJsZ6SrRg920kRmCapSqrDlwoqMqC0JWza5qHXnfkYviss2alOEGRPxJ6t AY7Hd7u7vVAFxrDoONhSE2chl7rOQnpmWmkqM+yemIBTWEI6d3LeBt7utnnO64EWZX9A 9B3A== X-Gm-Message-State: AOAM532hidqEdmt64WC0k1M5AoHZmMOGKtgd5pZljREq2OzfCgkmp9Hq bZ4lNjiYDNRPcrhIb6jSmbIvPmZdBWIFRQ== X-Google-Smtp-Source: ABdhPJzrOn6T1Ct/a3GViSuBzvKW/bAiwmUukcSGbeEYMWarRM7/r3VWLOorVn7oLEqSCLREWV3Xtw== X-Received: by 2002:a02:3b67:: with SMTP id i39mr1137219jaf.32.1644282812495; Mon, 07 Feb 2022 17:13:32 -0800 (PST) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id ay35sm7118896iob.3.2022.02.07.17.13.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Feb 2022 17:13:32 -0800 (PST) Subject: Re: [PATCH v11 38/40] kselftest/arm64: Add streaming SVE to SVE ptrace tests To: Mark Brown , Catalin Marinas , Will Deacon , Marc Zyngier , Shuah Khan Cc: Alan Hayward , Luis Machado , Salil Akerkar , Basant Kumar Dwivedi , Szabolcs Nagy , James Morse , Alexandru Elisei , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, kvmarm@lists.cs.columbia.edu, Shuah Khan References: <20220207152109.197566-1-broonie@kernel.org> <20220207152109.197566-39-broonie@kernel.org> From: Shuah Khan Message-ID: Date: Mon, 7 Feb 2022 18:13:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220207152109.197566-39-broonie@kernel.org> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220207_171333_296681_AA983135 X-CRM114-Status: GOOD ( 20.55 ) 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2/7/22 8:21 AM, Mark Brown wrote: > In order to allow ptrace of streaming mode SVE registers we have added a > new regset for streaming mode which in isolation offers the same ABI as > regular SVE with a different vector type. Add this to the array of regsets > we handle, together with additional tests for the interoperation of the > two regsets. > > Signed-off-by: Mark Brown > --- > tools/testing/selftests/arm64/fp/sve-ptrace.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/tools/testing/selftests/arm64/fp/sve-ptrace.c b/tools/testing/selftests/arm64/fp/sve-ptrace.c > index 4bd333768cc4..509b875cb7bb 100644 > --- a/tools/testing/selftests/arm64/fp/sve-ptrace.c > +++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c > @@ -26,6 +26,10 @@ > #define NT_ARM_SVE 0x405 > #endif > > +#ifndef NT_ARM_SSVE > +#define NT_ARM_SSVE 0x40b > +#endif > + > struct vec_type { > const char *name; > unsigned long hwcap_type; > @@ -42,6 +46,13 @@ static const struct vec_type vec_types[] = { > .regset = NT_ARM_SVE, > .prctl_set = PR_SVE_SET_VL, > }, > + { > + .name = "Streaming SVE", > + .hwcap_type = AT_HWCAP2, > + .hwcap = HWCAP2_SME, > + .regset = NT_ARM_SSVE, > + .prctl_set = PR_SME_SET_VL, > + }, > }; > > #define VL_TESTS (((SVE_VQ_MAX - SVE_VQ_MIN) + 1) * 3) > Looks good to me. Reviewed-by: Shuah Khan thanks, -- Shuah _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel