Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp918006lqh; Fri, 29 Mar 2024 00:36:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwpGRT444tx+o5RTpJn5ISF9wDza813Qll9GG/3DdGHePFOwlHAwbPkemOUn+6MHqSoBjAKZTsWiJzBIcjiDgV5CdS18lz6WBXXoPeQQ== X-Google-Smtp-Source: AGHT+IE4k9UuXU4ux0bc67x2AheSTL8BoXJCzMDfy7ArJiTDLarsnOGiXz5yIJiXaaIA2dlfznsj X-Received: by 2002:a0c:e303:0:b0:696:8525:5c3b with SMTP id s3-20020a0ce303000000b0069685255c3bmr1436589qvl.40.1711697782523; Fri, 29 Mar 2024 00:36:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711697782; cv=pass; d=google.com; s=arc-20160816; b=S36edfLsNzsrEeoRlJ9wZF+4bU74M8TWoXI3zKFqmUuf+vkkTigMNyhQ4B+4rXZCDI EbOG870l3Q7TqUx4CywAsnWhzv/Y5AN3ec0rmAoLgaY1E8cotFwJ4vQkZE0//9KZ3euM Bauw4ylidJUrcW73ZrSQgYPCyf+lojIFLkP5r+3A6V2nQ8xcXhdyeXOZXCcv8AJZHeLz n1dJLGLihM6ikTGZl7FvgF5AO7SdFuLJnF4UdI5Fn5PBSGBIyY2A1fsbepswLs8aQ6nd udy5HE6bhahp3u2V2N4L+AFYZ9R7zUiBhCiUha+e7lDoomv2MbpnUnU3gUvMYLtrzJWG dxzA== 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:sender:dkim-signature; bh=02I2vw7o3fgaPYQWfuiF5lp5H//jn5NlPZdLwJYApkY=; fh=jUKolJHGj49LjXS0bSsfI74kMR7mBfEUQGNLOyffh3g=; b=pmwrJMlf+H7tHjjtmPQW1jeIuLBatW6ejP7RiMRpt4C3HFI+du+pW+1HzaR7SLIjBf IvizeAf5ody9ssTEBLHhmZfuxR6r6LSnSw/R/Y0BmyG7uj0JqwRuUotHSNKT+cXCt9c0 vSKOeN/dtKrs2ShPgHz+eTM0n0HnX5CZoahNLrLiYtXzAseeAwMVELxpwUEczwpd9/li veX8n267ikWRIUZVTX1fJji73TbXfO1fE9DHn5QX/ziMiOvZqWOcEj+mwwgHlrEHo6Ns 6i4K06Fijlo/NL/FJjsmyHGAwuKzTqt3gcUpx9iKx4CfW/8dLb2i+P/CZSLeCt1y9Ad2 VxNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=e7yiiUGi; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-124250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x14-20020a0cda0e000000b0069697f3a217si3198437qvj.213.2024.03.29.00.36.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 00:36:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=e7yiiUGi; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-124250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124250-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 122F61C231FD for ; Fri, 29 Mar 2024 07:36:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCB034086D; Fri, 29 Mar 2024 07:36:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="e7yiiUGi" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 5B5E73C6BA; Fri, 29 Mar 2024 07:36:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711697776; cv=none; b=VZ96QsUMsAzDt9e9IsVlUNj+k9lRAsZiWNeO9mmBllHLAYeAcrvQq56eJloJZrSEelXsFZklMX4jVGmOmYylHiOR0uh0+qCII0+Pkiyx+xyq+W33fOCDlePQKRe+9wcfhX8Bci0WZ3mC3um8RH4yneQRfz6/C401LVHNUWulLtg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711697776; c=relaxed/simple; bh=o0M0IyJcUookuFin+xzyNuPuMIMMXKwrYyJEBdm6SJE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QFMEzbQzTZZymUi2Kzw1It4lBCGrpoQQn1738oYlziyas8I5tibQeBPG27o33C/XXN7cbx9X3JI2tZ3z+O1ZL0bBgnI01LpQtClAosI/AvM+nS/CobH1WR0U4cZmfnq3tm0F+t2VVWqGEjzecNEbyn4lX/wKQ1QymaSUJ0agBOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=e7yiiUGi; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a44ad785a44so197581666b.3; Fri, 29 Mar 2024 00:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711697773; x=1712302573; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=02I2vw7o3fgaPYQWfuiF5lp5H//jn5NlPZdLwJYApkY=; b=e7yiiUGi8fNB7VES8CzjifBgq1WubODph8HpFMbzWe6Bb0iEXl1V+G48Q+kC0LGwAU 5TkqcJdt8S5Xs6ARdXOiF9qj2ydHJx8ZXWnZ9jPqEeMMUqBBN0+F4s8lcS9OtTvq/ruh 5sbv76LoqzCxgVP9oV1R8czGLhAnGEmTyZavJrpNVT3mghQu0VDqxcU2XiZ9EepCikHO 4vzGwuf1s8ubKFumqlJ2fS3LF2cl9SrIKeXeKNNE8b01XLG6SbuP/y1j59EXiPFDBQsI OcgxxvOFXNMDMdWAUpyktvAxVCLylzyxV1G0R0rG8FWXGgcThc4tPOX2WuxIf0x0x6cr tR5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711697773; x=1712302573; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=02I2vw7o3fgaPYQWfuiF5lp5H//jn5NlPZdLwJYApkY=; b=k2Ax1m18yJLjiFNsrz750BQ8H1JxN2gx/tu0/fGYUxZ3vhU1ImcU7r9AcPaKRbRbgs aAJKsqPTTd0kCWovBS0zALMswxUGvEQvobzD8O+DOeTvOnPzibd12dRJn8/CwEr5jW5f eyh4tp/8r/hKlrZL/KTiniUQPhc+5abFAlzFJWNhnRrdf77sQ6MHyByr55MJY6HpEX+N 2nJVXIhhn/D4xRNAx50Oc9xtOYtnp4TRsuv3V/uwc6+hSDr6K7Y2290dcK5DaipDhF1P XOqdnHP0CjVXApuAS2pH7PAzBcEk2aSe7LcczkG0oY9VD8hstMJEHEnMRs01CsJCuDsV BQ+g== X-Forwarded-Encrypted: i=1; AJvYcCWTWzfjZSbxcDFYzH7V8VaO4fVsooRC0Oe2q9SpOlsR6R29RoyUEFxbabaDFaxRzXidKRBOa2U70mKGqkNQibZpMUO7ZJsuBKCwKfML5w2xe3IGMZwna6OSTYSybSPWedQGvrHM2TdJxwlG/foL X-Gm-Message-State: AOJu0Yw6Ynap/ENj+X+PSHAkdpkjaRUzkro31uGYRmcF4/I73RfCwvQF c3Y/QDZ+81p3msifFMYAM332AU2x3atIcK2eHnPodEMpzfXm8oSzWzGPJz3d+Ic= X-Received: by 2002:a17:906:3554:b0:a4e:1d55:c21 with SMTP id s20-20020a170906355400b00a4e1d550c21mr896950eja.67.1711697772462; Fri, 29 Mar 2024 00:36:12 -0700 (PDT) Received: from gmail.com (195-38-112-2.pool.digikabel.hu. [195.38.112.2]) by smtp.gmail.com with ESMTPSA id f4-20020a17090660c400b00a457a55b814sm1629825ejk.73.2024.03.29.00.36.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 00:36:11 -0700 (PDT) Sender: Ingo Molnar Date: Fri, 29 Mar 2024 08:36:09 +0100 From: Ingo Molnar To: Shuah Khan Cc: Muhammad Usama Anjum , Shuah Khan , "Chang S. Bae" , "Kirill A. Shutemov" , Binbin Wu , angquan yu , kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] selftests: x86: skip the tests if prerequisites aren't fulfilled Message-ID: References: <20240327111720.3509180-1-usama.anjum@collabora.com> <1d6418a3-67eb-4a39-891a-7d653a26f1fc@linuxfoundation.org> 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: <1d6418a3-67eb-4a39-891a-7d653a26f1fc@linuxfoundation.org> * Shuah Khan wrote: > 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 Please don't, I've applied the patch to tip:x86/cpu with a tidied up changelog. Thanks, Ingo