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 X-Spam-Level: X-Spam-Status: No, score=-6.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F384C4338F for ; Fri, 20 Aug 2021 12:06:19 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 58A9460ED5 for ; Fri, 20 Aug 2021 12:06:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 58A9460ED5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ABjoMUxdY/rdeS5TOCTEzD93TdUrKJ75HTbDgt7pe4Q=; b=UahTgmsC6TDGfWElDt9mYjdsuZ weaumb0V+oo3t7HSS+Ulx4RmMdFeUUK75d5bBpZdLCXKj/snZuVdsOwd8EwgfK+/MF6EQXLw/KXHZ gLqsWsexrNx7J9gwnIPtIqxctI2HvdkJOBAesWhe/VELDsc/C3C2FRE4VwQrrgz4DEUobf2Sv7fSK OzGYecPmuEs5gbI/GYf9rN41zVDp3lTezh/2TpZgpfOuKt9k/Qu545CMzAUiRdmT3iEB66xn88y+0 rtoxMWSyWP2Mdf7Si8RVilYypOj0gGbbBoODdEmLUCNeiVchKPWxmjny1vcy1xPD95am77l+pV8wy JhGM675w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mH3FP-00B2sv-3I; Fri, 20 Aug 2021 12:03:43 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mH3CN-00B278-Mn for linux-arm-kernel@lists.infradead.org; Fri, 20 Aug 2021 12:00:37 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 91DFB60ED5; Fri, 20 Aug 2021 12:00:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629460835; bh=DBhyA8M0wprI9nznJtc9PSm/qiZdWgwqo8SUXRlgk4o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=apOGwUUlwEqbip7ZGvrR2iM99ZzhF9WJcemw3/VoSD75B0Bb/NzRhtq0sxcDw0+H5 LXNp3ilqtRHGPidXDQ8Gk7uNwulPKO3VCLe6ygPAw+20/3ESvg0mz2Leq5OCpWRdp9 Mo+OgRzf/8EbbfV7IwiVMZ0QNvdaEX6vKinWJw9EEVniuseAOAm0qjSdefWTW5/28m c32EWiXqFvVUAHVVYZKMPn6NhDW8nSFg45hZULe5NFGcnaOwwxWo8nC9ulhFqagMsf /5S39KgsQ0BYfAKrQ54Ahx6ptY7x1RvU+Fq3RKVjN1JrLk38bGktsNkrA8huyEF5HA BGp3yNwpa8HsA== Date: Fri, 20 Aug 2021 13:00:09 +0100 From: Mark Brown To: Amit Kachhap Cc: Catalin Marinas , Will Deacon , Shuah Khan , Boyan Karatotev , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH] kselftest/arm64: pac: Fix skipping of tests on systems without PAC Message-ID: <20210820120009.GQ4177@sirena.org.uk> References: <20210819165723.43903-1-broonie@kernel.org> <20210820105531.GP4177@sirena.org.uk> <20d96c3e-36f8-276f-ab02-daf5bc7c976f@arm.com> MIME-Version: 1.0 In-Reply-To: <20d96c3e-36f8-276f-ab02-daf5bc7c976f@arm.com> X-Cookie: She sells cshs by the cshore. User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210820_050035_822624_C873C506 X-CRM114-Status: GOOD ( 15.10 ) 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-Type: multipart/mixed; boundary="===============2127738456314461776==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============2127738456314461776== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rKoHqF+aPLVth8b2" Content-Disposition: inline --rKoHqF+aPLVth8b2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Aug 20, 2021 at 05:05:05PM +0530, Amit Kachhap wrote: > On 8/20/21 4:25 PM, Mark Brown wrote: > > On Fri, Aug 20, 2021 at 12:39:39PM +0530, Amit Kachhap wrote: > > > - ASSERT_NE(0, hwcaps & HWCAP_PACA) TH_LOG("PAUTH not enabled"); \ > > > + ASSERT_NE(0, hwcaps & HWCAP_PACA) SKIP(return, "PAUTH not enabled"); > > That's what the patch does? > Agree, I saw few other testcases where ASSERT is used along with SKIP. > (tools/testing/selftests/core/close_range_test.c) so this way > ASSERT_GENERIC_* macro will be clear. There will be just an extra > log like "hwcaps & HWCAP_PACA = 0" in this case. I'm not 100% sure I follow what you're saying here? I don't see a log message saying "hwcaps & HWCAP_PACA = 0" on non-PAC systems, or is that what you're saying you want to see? > Probably your way is consistent as other tests in arm64 also just > skips due to HWCAP mismatch. Right, we can't usefully run tests for features not present in the system - this sort of thing is the intent of the kselftest skip feature. --rKoHqF+aPLVth8b2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmEfmUgACgkQJNaLcl1U h9CcEgf/b6mcyDe/ywMRt6AADkTKURb/EaDB5lLk41XkXjmazqmwVbtE1OOen7pw T4a9856CQipmYHchVs+s1Dg6/y2IAr3/1ltoKkLiB8/G8yvQiqJZ1NiiX3NyKp16 xFbqVre8ccAk9tQib9LetAbg1UbjHKk1t5q2EuxY+s+1ksCp2/S6Y2i3DM6hvIlA GkX9YfZ98/zeZl5ZuSk2ijE9GGX46vAyNJKmTcYnyWGVaw858iMQIIml5G1EUMa0 X5uazq6j3EgkTHgI9sfalrCW0oJI8imAyEFUc3iyLJUc6ncauEnGaCvvWnPAF51O 98h8gnINIqYs3X3SfIFpQJQ6V53CkQ== =wjB3 -----END PGP SIGNATURE----- --rKoHqF+aPLVth8b2-- --===============2127738456314461776== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============2127738456314461776==--