Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1728195lqe; Mon, 8 Apr 2024 20:02:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdwzVvagnBtL1bsjXrE2JMNj8qXCA/0Vs0mwa3PHkqDiJ6NNlrJpPnq+qMh0D7htLLqVgwQXXBxToV77J46QTylOwsomYJJ9ER3ZeOFg== X-Google-Smtp-Source: AGHT+IGTIGVRAlKXpJp42VXmtlckQclX1rPocyPIpEDUEdojmQlkzD8zv0rytzEJeiY3VbSZuWB2 X-Received: by 2002:a17:903:2286:b0:1e4:4ade:f504 with SMTP id b6-20020a170903228600b001e44adef504mr3363407plh.46.1712631725582; Mon, 08 Apr 2024 20:02:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712631725; cv=pass; d=google.com; s=arc-20160816; b=ZWemSwopHyi4vUgFzK0f7IzONerKIQwoNAO0J+XyjXCLnyjfPriQO9fLEwBbL6VFhl SS6+lZeqIs5R9CdwnRLS+6i9qYbA4U4qF3DXC9qRXwE9d9uFXpx1T+le7IEeB9xzXEGM 3oJSaeLy/Qw2//UGBtB8+UH5iRvolV5oSW2zWWQP66ozVK9JxXhcSXsC8Uc3H2O9Rnxy hfxWbVP/xnMX6BeUfAEl5gdFDZC2Oyyb+0bjRKeVaS8uMcpRwyInbqZHKaVS5E6njXC3 cjj2F28fOWuY8cmHw15TF7Wl9s1I50Iw3mB5AOBnloYvYaQlKIS60xR7/xfnyZbYRMWV mx2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=mMhjxCCXtqewYhIaOMBsuZj2va2Oyrp6d//G8WU88iY=; fh=cw1DAtEHCmOhCOSxt0TaLZLjN82qD/EckftKja85jag=; b=Ge13Tqo41n7TIbVAlVEvOD/FXLBLxzzMDsZnXCC8aq6h74V5dzYc+Pv2uNE4nOlBvZ FkiZnquGrQHbETJ0XRDyLaD+22cJN94Suid1Mwzj+YrXcidSOnV83PmqH/oFGhi0Ip4O Gn+Shd7Dcvu1/+WJFG0rzY1j66JBUOnTqsUyPbDHbz6G+ySvkwES0ByJdcrAmthfGABL brW7uWZbfRZrwl8YNUsX/v4vfvPLJqX9j3xqrHWnhZE7IK3o6CMfKd7QX9tTpGzcZ2Vs tisxKyM4p+upXEfQ1m0FlktK/X5YCSZ93KmkSp/5TM8gkuGGdq7clAAjifclrgC3jVOr YsXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=bOeGMoWd; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-136156-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q6-20020a170902eb8600b001e24253c115si7743858plg.335.2024.04.08.20.02.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 20:02:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136156-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=bOeGMoWd; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-136156-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D401D285110 for ; Tue, 9 Apr 2024 03:02:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 794E454773; Tue, 9 Apr 2024 03:02:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="bOeGMoWd" Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (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 0C3204EB33 for ; Tue, 9 Apr 2024 03:01:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712631720; cv=none; b=CN9vr7tX0/gSMd8USy+3HtCAZB+eN6vmNZAg+S7MqmUlp2W1yy0JQhqupEpo9CdywRnrVU4maIMyUHCRzT7slAnHGivq3dTytS6xPcZlpPzXAdliG7A+to0SnijIcSpvO+wky83/3Wl/vF7zaztuzxxtuBYCXfzOTyIOLmN7jXk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712631720; c=relaxed/simple; bh=mMhjxCCXtqewYhIaOMBsuZj2va2Oyrp6d//G8WU88iY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KBS1EdMo+cr6gH5sT62nBEbaFapUwPSVZ9kMIslH6EpkESjPHQF/ZDfalEweceBBStlfMkWmNxySmvztJcFNt5abKQWDq0YCf4Dt7g6kv0OE/wcK1UuATAqebzAK+ILiEYKm8YmIARzdemyjoyq8PI0cOaRwm1AK5/Arq7vqIR4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=bOeGMoWd; arc=none smtp.client-ip=209.85.128.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-617d25b2bc4so37873207b3.2 for ; Mon, 08 Apr 2024 20:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1712631717; x=1713236517; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mMhjxCCXtqewYhIaOMBsuZj2va2Oyrp6d//G8WU88iY=; b=bOeGMoWd3P+QV7H6RTRSVoZuylpQUOicI7k4+Wxhx/P8Rtrp063aQ5Ob2Ymyp1UuVN 90b6acp+ZetHvStVAtUWvKEhCEw04JOHkcmznG8TGfGzU56D9z+R1pJcmTsPRcyOyUYj 1rz/G1qaFXCXag5ABZD/WBdPlBf5U0ngbnlpw6UW86lU+kKovbKnIp7TcE8RX00jZ6/J ouQR0Gu6bTQdWvf3FAeSgEVTl1py2MzmPzvJmaeEueyb8Ax7M8XRMkWmlTjtJH4Kksgh TH2qY2xvb9cItHQpgbx0+2AzZZU7/3W41NpxzGtQNtI/KMQ+Mvm8XXI/hHoyOJFmq3Sj 6XHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712631717; x=1713236517; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mMhjxCCXtqewYhIaOMBsuZj2va2Oyrp6d//G8WU88iY=; b=FnnEbkbD0xY8dmLsseNJ7fEK/Sbw/o/P+Ymp+eBSa4Vl4GChVM1EoxCKdNEQgf2HyK bJ9fdJxYYLSViEffRsaGGZFhhorjBH9PTPqQbKVSU6ADo6UxIkiIoRvgfcqczPiIobtJ RFgFJJPlEaIahxZ6rcMtWKK1iMuRUjoNmm+qpq4saQVVRHHd2scBomIkXfXMwk2FME0P wAQdIAoGVjlnizADGdHhamRQKwDJpWnbuhsCrLS+i9K+Ayksj/Syj6CTjX5ezqcKkLZF vj8734BVWLfgw03qGbMzEqdiEGObUFrvi3WopUdewU7t7OZQ2i9kwvEr3Ep7wI5/7RrV qFqw== X-Forwarded-Encrypted: i=1; AJvYcCVhUqhFx1WA5ar9iecfI+74zc1bxlSqk2A2VmrkPLhgwD15pVoX3hQ5eXOK60oMVWamPCcRhhyS4Klcj6GDUN9rEVfwqNC2rWfsC/xL X-Gm-Message-State: AOJu0YxS8tgSRbXzzlwgtvIQJyKeOwQhoSsvhvPRq8c5qsXg22zJBgTw baLbGzRPVoB9eFEYxu4tH5Jy+RiCQJZzvQ35QveOjr4zT6oxYEyJ5wfaOdMGgxEPhV71F4bitlA oMSaxMxDBDLY2CrwXnYzMDSKxTPJNrG0aI9GohQ== X-Received: by 2002:a25:eb0a:0:b0:dc7:497e:cddf with SMTP id d10-20020a25eb0a000000b00dc7497ecddfmr7972914ybs.33.1712631717011; Mon, 08 Apr 2024 20:01:57 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240403-vector_sigreturn_tests-v1-1-2e68b7a3b8d7@rivosinc.com> <87bk6pof1t.fsf@all.your.base.are.belong.to.us> In-Reply-To: <87bk6pof1t.fsf@all.your.base.are.belong.to.us> From: Andy Chiu Date: Tue, 9 Apr 2024 11:01:46 +0800 Message-ID: Subject: Re: [PATCH] riscv: selftests: Add signal handling vector tests To: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= Cc: Charlie Jenkins , Shuah Khan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Vineet Gupta , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Apr 4, 2024 at 1:47=E2=80=AFPM Bj=C3=B6rn T=C3=B6pel wrote: > > Charlie Jenkins writes: > > > Add two tests to check vector save/restore when a signal is received > > during a vector routine. One test ensures that a value is not clobbered > > during signal handling. The other verifies that vector registers > > modified in the signal handler are properly reflected when the signal > > handling is complete. > > > > Signed-off-by: Charlie Jenkins > > Nice! > > Reviewed-by: Bj=C3=B6rn T=C3=B6pel Thanks! Reviewed-by: Andy Chiu Tested-by: Andy Chiu