Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp269934lqr; Wed, 5 Jun 2024 05:49:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXS1K1tf+8iQeQ2gS661obhjT7xSP8GO0e6aV+I4eQyJWO86yYEQ5Mx0+oO88xCakvhcBwwmjB2t8yA6X/SDyjaEyvadqJ3GKBsvrrM+g== X-Google-Smtp-Source: AGHT+IG5cs9tt4UJT2JTqHzSm2W8wfhikXhY8pmjyBdIrnGw3BpQJatGhnByBy9fH26Gtrk0fHkU X-Received: by 2002:a17:90a:ab88:b0:2c1:b92f:a15d with SMTP id 98e67ed59e1d1-2c27db116bemr2497435a91.12.1717591743831; Wed, 05 Jun 2024 05:49:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717591743; cv=pass; d=google.com; s=arc-20160816; b=VR7rpPv7pNuI+59fZ7boBcrNt+uNN5eC2tl9zwkdlVgYti2aSrDNvKyq6Jg0UOb1WF +l2B7onSADwki1/6gEBg4wTbAd49r+JfZ0QOou2QpiqFnxRF/L0ssbX/3bRT4Iv92Q6H iJHpBcevnI9pMOIDUZ16h+HYXctxIEIbhIwzlR86c0w4jTG8zTFfiZi1o9VWN8kKdsgX rB2rcbSyFdHP2tK9X1NlYyJHOhw5xyiLUBv1FBImb44MRY5wU8NjZBqwdtsxwGFbMvBI Ux6Nhhmn5zugkwrMKLbUCHJ94amftjEHw2TB42SY0qto0RViVAh5p5CdTqIE7AxI6jq3 /Y/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lTIfpfSFsSn43DnIpeFxfslFwYHO5rlTI9KcDJ8BJnY=; fh=4eLCOOdSgcieMnQ6Hy93u3HarZTfOToo6bB7DYG3/r8=; b=W8gJn6VUAz1+lZBsifYOSx4YQoKsRCbHe+zMckecp3WCHxdVuD7+/VYPsBnrUckWrQ ucBTEv6b+UMfDxAlVB0IfT843hULLjTyHky6h0oU/Y6kSDwBayPq+dqC009AAK7VAbMg MUhaJuSeNQurBR9ovm3202uht4ryWLNOBFtGOyLec0haNqM1BS/CZiIgPzGlXwFABf/c 592lCfVZ0Ut2LX4/blgabqWaiia4sYodVvJ9cPZfLGCuZ0EekuZTCjcmxOJdSpaS8W5t gQPyJehsP/taMOTePBLPVOLEn5Mfv738KntkmUb0QIjA2zQZjQYILQ2a45hw0QzfMyDo bbcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ncSZ1P/K"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2806bd615si1157573a91.101.2024.06.05.05.49.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:49:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ncSZ1P/K"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3970AB23D20 for ; Wed, 5 Jun 2024 12:27:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6015C19CCE9; Wed, 5 Jun 2024 12:00:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ncSZ1P/K" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8779119CD1E; Wed, 5 Jun 2024 12:00:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588853; cv=none; b=eZIT+QaOqUZSYmNH9e/EPkEzkaxTpe8lpQ9Hwj+U40sf0W5en9bk7iOXsE6bCx/mBsZBkWMIjY27QTClidhEPWdQeKGnj0hKrmzu9M7DqqiAXRbRk9aHuBpSta9q3It/yx1Hw/nPIdBD+VezAbZDooH01ltTFRxuxR+9nKJGg68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588853; c=relaxed/simple; bh=1x/4I1Z6zO1QJIB3Lr5KfrwttJCIjm9Pn/UxwqY09pU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NOV5+0ExWxamCyWM7T8ujMnWF/1YTarzQnWvQKrqz0ETiGSsYxtbKypDsbNC8+t0eE2SquY/M8TxQiRz6r9j0FblulHkbtmm8yA73TiODFvwuCGVafwjxRnk86BluIc5rs+TiUmSiK5a4LBBWgdjkS/VN4o2ECcdQv8qejgRmb4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ncSZ1P/K; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14EE8C3277B; Wed, 5 Jun 2024 12:00:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588853; bh=1x/4I1Z6zO1QJIB3Lr5KfrwttJCIjm9Pn/UxwqY09pU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ncSZ1P/Kc2m1Kqvl/geT4diovhDruYM1jtYyjXBRJK6EkbkLDDaza+5ubD54Mwcla E9sUfHQtt02qzGW92eVYOCPzCKcziIv751iO8Je9UZEAHmf/eArIyaxkNm8vlN2y3V dVle1Ozcp0KAF8EPUqR9Dj9In6XzYFwUUShhH0eX63AzdKB+yoqi3Ghq+OQ51G9FaG f3lFySUPbBHvF10R4GbXalZ+DZ3a1YF5n4Zj+dcmcj6hTq1aljOBVqDEd6GKDXv+KQ vf5DX5bw86ivml3rKNf010H2X6Oxcei8A3sbgExlqtBRaPZLsMPacHwGdB/6x0/gX2 3nzfDETqyzMLw== Date: Wed, 5 Jun 2024 13:00:48 +0100 From: Mark Brown To: Dev Jain Cc: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, will@kernel.org, shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, suzuki.poulose@arm.com, Anshuman.Khandual@arm.com Subject: Re: [PATCH] selftests: arm64: Fix redundancy of a testcase Message-ID: References: <20240605115448.640717-1-dev.jain@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WhGyFEmanl/izRpt" Content-Disposition: inline In-Reply-To: <20240605115448.640717-1-dev.jain@arm.com> X-Cookie: Simulated picture. --WhGyFEmanl/izRpt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 05, 2024 at 05:24:48PM +0530, Dev Jain wrote: > Currently, we are writing the same value as we read, into the TLS > register; hence, we cannot confirm updation of the register, making the > testcase "verify_tpidr_one" redundant. Fix this; while at it, do a style > change. Please don't combine unrelated changes into a single patch. > /* ...write a new value.. */ > write_iov.iov_len = sizeof(uint64_t); > - write_val[0] = read_val[0]++; > + write_val[0] = read_val[0] + 1; > ret = ptrace(PTRACE_SETREGSET, child, NT_ARM_TLS, &write_iov); > ksft_test_result(ret == 0, "write_tpidr_one\n"); This is a good fix: Reviewed-by: Mark Brown > @@ -108,7 +108,7 @@ static void test_tpidr(pid_t child) > /* Writing only TPIDR... */ > write_iov.iov_len = sizeof(uint64_t); > memcpy(write_val, read_val, sizeof(read_val)); > - write_val[0] += 1; > + ++write_val[0]; I'm less convinced that this is a good style change. --WhGyFEmanl/izRpt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmZgU28ACgkQJNaLcl1U h9DqTgf+Ly/z4a+HW3C3ySPkAGM0USl5jc+LFjhwyijiNycgjcsQQwSNAqpkXbU/ i5NIAOBMsU/3Cu84mE+ccJzmKY9mqGJXze+b0p6lCtFAFX2lEUO8mwhk6wZwlYph gaojRR2GZkNn8FFGBJFtDd676eXRpbY/PV0pAItO5Ckd5CVfICcM65NnVhzNnvav Y7PD+B9rLpBvIrH5L4kPw82W9d/24nEtG1kXQJY/X72AATiGRz9RRkldVcCzOkf1 9NzBCyf3MjWzmbn9VFYyqfQsPQU41Q8nAM2/4tjzLouG+zXASVam6Y81PT0dzlkJ i4VFYzvpDpz8y3hmNOGPkS/mr94TXA== =8QbU -----END PGP SIGNATURE----- --WhGyFEmanl/izRpt--