From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 0245B195FEC for ; Thu, 6 Mar 2025 08:49:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741250982; cv=none; b=aLSwA58otW1aw6tI0pouGU6D1Akl6mZkaZMCGLVo3yDWO6yQ34bBebMDw5oP5jQ/Zh52Btu7gyYpNlhffddG3lJHxaMcfIeHXnIIexPwQfoRfuH6pESJkLUKj3VIOojI9qlxrRvAsrHULbMoKRgT52ISauWvyufv/GNnGqVC8CU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741250982; c=relaxed/simple; bh=+JMIF5nv1JW6AAUeomgberOu7YOgUGgzWRtym6vZ8jg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rggMXV0MpmJCNszF/OW7214eaqxzKTf7+tetAckLZG7SvAPYj29uezmuTvCyi7VUQ7EGZ3J4tOuMz3OhQzYuYjOubPgefq+Poaxw5mxcmw8lQGVMLq6xEDYUuKQwMCgozFfct/dZRXZo1L6nfnNFHiVcTsO8N5guEwSnWa1noCs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=1n/7bGar; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="1n/7bGar" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-223959039f4so6220495ad.3 for ; Thu, 06 Mar 2025 00:49:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1741250980; x=1741855780; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XOTsx+ET2udwRwOl4LMvTIaV72hOacAVf21e+cPMpSk=; b=1n/7bGar67f7nv7s2bsctXJIjPlBnjDFsBuskeuLyasftc+5aQC04T+ga68F+rzSqe N8f1pYgF+sbmsy71wPEmpy3ahw8DkhsGIUd2zWV/qnVZ8tDxylG5A3zfNsPRLk6ZR1rD VPwkEGUIrCkAQ2cRzg3y17ydHocL265Y+h3c9VbiArQrO+FdZcTYVuw00/Ebw6pAgwqh DlRp1Sp05j0b8HoxBjDJF/r1RbXjhb5dbhezIxPsDlMoYNLqx/wMLh/BhGvagQJslwbz Ua8bOk2HThV0WtzaodfmaK9pnJAag0UjXxqgpAxmjoZBwVnkjRmFOh5hLuCTfp8vmXDo 184Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741250980; x=1741855780; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XOTsx+ET2udwRwOl4LMvTIaV72hOacAVf21e+cPMpSk=; b=RUkYx7yC7rS6NeO0n9+ZLh8Ui05iYNeIynBeqJuHuYgEWZX+PkYvTUwZ1xqCmslr0K Ri7qM4bz1zuwzHRjJMYiK4lVLXIj3/hYj+8mFVEn/vpaTHYLqLbRX2HLf5tiUPIKJQbY w1jC82OroqWnuqZlmbhWIMkHZqmzEAU0wCHiISHGROBCXGyUq/L/UmOvGeA0u9J/eVCu KKqaDWMCEanAX250kiXGsWv+LMhGOzl6qRGLSZecgXqRqi8CBab/Ipi2dVOZO/dD+DqN 9v9smrzmz0Sd3frS7EJXGEXBj58/edw7Y34QDOjNQJGtsGHpdBFRCFBR7vqN/L2jMFIt 8UCw== X-Forwarded-Encrypted: i=1; AJvYcCVHkKUQWMbsVSi8Rhn3lRiw3zqU0WixCi7Wxw2pn2SvEeOJwdyaAQfd19Zfaea7W4XvVj8Gfg3PJM05ELw=@vger.kernel.org X-Gm-Message-State: AOJu0YzwMKljIqZyhm/09V4KfhFgLfFwe0Zsw4ReeDddB9/7HestUdPM +wy+oVIuEDMNIEWnnNtSXjNGhwtsDWb1iLbkNPLXG8/4vuGtfapwJ1u0kfhk0Jk= X-Gm-Gg: ASbGncvHcJNNLi1ZNAruv7qYaOo4+SnApPyWzfQ1g7QF+LeRcWFot2+lSILQFCTxQeS +hpUEKPIX4QgnyjEurHsqMWB/G/W8cdAGCZy+KpS5g5aoQSOPB/djDHTBNtrFtiLEADmNxn1HzU nRszGayDWnz+4nt7dUDQ0KKlO9HXfM9MoTOSOa9vDLJm6npoJwQ8c3Ro+8Z2jM8Jp6U+zKLoRPQ +7ttKTsFXjwe6p9ZOUhyM49PIFyWUrD6IxVaT3CshAlcmKLHk0Y3e24tLOGz4RXXcR9C4AgNKlu W2yHmtXOSiqR1PUEYK4tfuiqHelE0zYv4OP816/5 X-Google-Smtp-Source: AGHT+IH1GEQtPc3doXxTnYpQvOe64EMdhiCow6f81zGlmJXK3+o6BGbwtqTdcVYdbtsYbbFP1fY7vQ== X-Received: by 2002:a05:6a00:148a:b0:736:3fa8:cf7b with SMTP id d2e1a72fcca58-73682beac25mr8907211b3a.13.1741250980111; Thu, 06 Mar 2025 00:49:40 -0800 (PST) Received: from ghost ([2601:647:6700:64d0:2536:10cf:d064:60bb]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736982077dfsm799045b3a.35.2025.03.06.00.49.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Mar 2025 00:49:39 -0800 (PST) Date: Thu, 6 Mar 2025 00:49:37 -0800 From: Charlie Jenkins To: Ignacio Encinas Rubio Cc: linux-kernel-mentees@lists.linux.dev, skhan@linuxfoundation.org, Paul Walmsley , Palmer Dabbelt , Alexandre Ghiti , linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] selftests: riscv: fix v_exec_initval_nolibc.c Message-ID: References: <20250305-fix-v_exec_initval_nolibc-v1-1-b87b60e43002@iencinas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Mar 06, 2025 at 07:31:22AM +0100, Ignacio Encinas Rubio wrote: > > > On 5/3/25 22:49, Charlie Jenkins wrote: > > On Wed, Mar 05, 2025 at 05:39:28PM +0100, Ignacio Encinas wrote: > >> Vector registers are zero initialized by the kernel. Stop accepting > >> "all ones" as a clean value. > >> > >> Note that this was not working as expected given that > >> value == 0xff > >> can be assumed to be always false by the compiler as value's range is > >> [-128, 127]. Both GCC (-Wtype-limits) and clang > >> (-Wtautological-constant-out-of-range-compare) warn about this. > > > > This check was included because the "dirty" value is an implementation > > detail that I believe is not strongly defined in the ABI. Since linux > > does always set this value to zero (currently) we can safely remove this > > check. > > Thanks for the review. Just after sending the patch I noticed it should > also remove some code that becomes useless after this change: > _prev_value_ and _first_ variables were only needed because two "clean" > values were supported. > > I'll send a v2 tomorrow. I'm guessing keeping your "Reviewed-by" and > "Tested-by" is the appropriate thing to do as the changes are very > simple. Let me know if that's not the case. > > Thanks again! Yes, those changes seem small so you can keep the tags :) - Charlie