Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp641943lqh; Thu, 28 Mar 2024 11:42:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCDdw6xGCmAJVyrJuWrW8CUQNczbMGolpR97D+2f/wmFzsIZyz5Ruw+tgt3RciuxdImBc9FQlki043Pnz19CR8h2D89uA5I4luKFrt2A== X-Google-Smtp-Source: AGHT+IFgBfgdSz84eXnwYpoWULkNHpdPKD+GmJjTIyITcjShN2DZecNbRoCmlBX5yA142aRQMPaO X-Received: by 2002:a2e:a264:0:b0:2d4:2b05:a671 with SMTP id k4-20020a2ea264000000b002d42b05a671mr122ljm.32.1711651342760; Thu, 28 Mar 2024 11:42:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711651342; cv=pass; d=google.com; s=arc-20160816; b=HwRv/2OXvNKHrUS28uQEf0HwZdC8qOEaeI3OcFt2BoFWoRQRidD6vsKxqCsyVjd+kf zzEd4UpwBTaZglFcPbI2+YfptXnxJowtDJkqod2fPQ+QTv69dnd0HgcH5BEh2mt1h2jT t8vPRuqd6V9+HAigjfk+J2qQfyXwFCk4LQx6nnrcUmDBzBs/rCDA8pSNbeApFHwPeEKq VTkpmvKpjd2bpTF8cVlPsR5L2Dc6C594hJFHj0lyRBPTT7D/RBJVurQf4AJX9jzsd5f9 mSlVXvquSeQJgj6fthi2eYFi9jONKu6JiMlBc0nA3eN2uHd7Tvuh2GV7xXgjvf0dScyk W3Ng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=eJZy6XzF+M+z3gDLwuRgmmyGNjTRkpELLUKGZKjiEGk=; fh=zpD11cYZftzciiz2ctF8QyBc+Z7Gy2L5McN/hr7hVF8=; b=qIfGmDu0dJt+ddMxI8f8BOeXYNqtI8qUHe05BYTdecTziewmwHcHkGMy4irYir6bSB QZY2EHLhk3Prc0ypXIAlpXNkmYVy9NpD1SHYRHL8mrHK8dbLHtdXL/hCmZ5Rh6zRyEkM DpfvylWpex019ARO8awVOtVx4dF9uZjJaZJs1eR7atPvSyb0AQao8CYvZ51VcK/+wB9O LOvEOcW6sOSkp1C97KqftF5PcAFfi8An7uuhGlvOgTgx3cDXo5alDYl74Wza0OVn1wLp 7l2GzG7/ik8PoqcdZA+twMeEUOgy+tGMHifYHDEVJugjliIqjqNIdL/n7/5K8F57biSS x2jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=ewl3DB2C; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-123425-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123425-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q10-20020a50aa8a000000b0056c1a4f0179si977023edc.164.2024.03.28.11.42.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 11:42:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123425-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=ewl3DB2C; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-123425-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123425-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6CFD81F244B9 for ; Thu, 28 Mar 2024 18:42:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44C9A136E1A; Thu, 28 Mar 2024 18:42:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ewl3DB2C" Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) (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 F22B612F38C for ; Thu, 28 Mar 2024 18:42:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711651335; cv=none; b=jCuB/UvjCq6gAwuIr3eg6cgb5DAONU1wTc0QKEwZ4bjn2Zy7r7Z+G+vfEoAWycGX99zYlT4F3CZ8p0vFkpeiR14RIJ2pn2vIVmy/628dcOsHsxOytIMNNe5yBP3c1PBicjTyqx19J0hBTpLAew4IJn6YsCj+IC+pBkVvKmvOYzI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711651335; c=relaxed/simple; bh=8yTekIG0Z2yIlKq0G56+dY2VrHhUCmwbc3p0S+Eyh6o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CFeqBhmwOEgckbXw61PFAAAUGcKaP7YaMZV3MAUHov+91FtWA1caBnizKqLQx+2kjzYh4Wu7cyUPsPxnSxkbSqhTDz0ShMx+t6a2uYAWViO1uZL63Wmh6K8XgOv9RPgOT0qmUqZOCtCLwSIV0FndpOTiHpRfZNIYLh8qKC31ZsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ewl3DB2C; arc=none smtp.client-ip=209.85.166.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-il1-f169.google.com with SMTP id e9e14a558f8ab-3686ab64840so1831825ab.0 for ; Thu, 28 Mar 2024 11:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1711651333; x=1712256133; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=eJZy6XzF+M+z3gDLwuRgmmyGNjTRkpELLUKGZKjiEGk=; b=ewl3DB2Cf1VJpv+3cQWyndNa0hAxHchQouqxKlVKaOzhV2AZFOjFfs9S1a9/mQJvZe I3Hdix+hH1l8wmLe+fBTswiuA0WTfxzExqwUFEMttMWk6ZWwapet0qYDHQ0n7UfGcLB2 JbjL1H1WWPkVVsTBg4g2uaboSwi2wghT6q3+E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711651333; x=1712256133; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eJZy6XzF+M+z3gDLwuRgmmyGNjTRkpELLUKGZKjiEGk=; b=VlfnrvAPd0e8trelP+UzzX+F/PAt3lKAuW18vH/P3J8K24dlfpQFB4VnPlUSsVzPMi PZZ+HxCfwM5vGwSn+0748YIbu1yAQu5sZCWs1XL5yz3wYLKecMY9r46fktnLyhcYTI57 +wU7lXBzVGKavcbjNc3bEZQE6+QSpfqZIwDwx+0DbWelj5+uvtwGCpQROzkybLFGJPrX 0i1oakzc14cr2S6s4EO/A45JmUPCzD5Tn1mmi+BfFQfFOToRk6ROiX1Cv9uLPXO3ajoC hTp/6tJPkt02KGWjKe+jehs//N247pHQI+jIA93kCtgQCSNeGP3qlCjJuDtmclN0YGEE fhcw== X-Forwarded-Encrypted: i=1; AJvYcCU28NliSLSdXGnYl5RWNg4U1B23Ai5NFZ5QW/tLtGMM0LfJZ3IIqEoUXNVzFCGe8/2+h0c1aW99V1+FIxD0RNiRhPBqeAkc63nLIF8i X-Gm-Message-State: AOJu0YyB6wyrd2QkQRWN+Buxx3fP59fCLOyd//jkKC8K5Jh8CvaCnN4K BjeMIYeLxsj43cFhWn+ARUa1q+3n1tK02WadtfZ/zooOGXIO+zDjB7VHtxkmc2U= X-Received: by 2002:a92:d58e:0:b0:368:b289:38b9 with SMTP id a14-20020a92d58e000000b00368b28938b9mr4079695iln.3.1711651333097; Thu, 28 Mar 2024 11:42:13 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id l12-20020a92280c000000b00366c4a8990asm568855ilf.27.2024.03.28.11.42.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Mar 2024 11:42:12 -0700 (PDT) Message-ID: <1d6418a3-67eb-4a39-891a-7d653a26f1fc@linuxfoundation.org> Date: Thu, 28 Mar 2024 12:42:11 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] selftests: x86: skip the tests if prerequisites aren't fulfilled To: Muhammad Usama Anjum , Shuah Khan , "Chang S. Bae" , "Kirill A. Shutemov" , Binbin Wu , angquan yu , Ingo Molnar Cc: kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20240327111720.3509180-1-usama.anjum@collabora.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <20240327111720.3509180-1-usama.anjum@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/27/24 05:17, Muhammad Usama Anjum wrote: > Skip instead of failing when prerequisite conditions aren't fulfilled, > such as invalid xstate values etc. This patch would make the tests show > as skip when run by: > make -C tools/testing/selftests/ TARGETS=x86 run_tests > > ... > # timeout set to 45 > # selftests: x86: amx_64 > # # xstate cpuid: invalid tile data size/offset: 0/0 > ok 42 selftests: x86: amx_64 # SKIP > # timeout set to 45 > # selftests: x86: lam_64 > # # Unsupported LAM feature! > ok 43 selftests: x86: lam_64 # SKIP > ... > > In amx test, Move away from check_cpuid_xsave() and start using > arch_prctl() to find out if amx support is present or not. In the > kernels where amx isn't present, arch_prctl returns -EINVAL. Hence it is > backward compatible. > > Reviewed-by: Chang S. Bae > Acked-by: Kirill A. Shutemov > Reviewed-by: Binbin Wu > Signed-off-by: Muhammad Usama Anjum > --- > Changes since v2: > - Update the changelog > Thank you - applied to linux-kselftest next for 6.10-rc1 thanks, -- Shuah