Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp53774lqz; Fri, 29 Mar 2024 08:19:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3pRVFaURnB1DtV6NoY2GM4S1uQwoYyEAXn8INonVmOilZkbingkAAqECIKshWNboJtORexDvBIY/PxeSxm0odKc1UVJzFAMhIMid5Hg== X-Google-Smtp-Source: AGHT+IGd3ZzDHglkaxavMnMP/3ZbvCGRLm/Hw3zBAuKQV9zD/mjXAVOtTX1BjFkVSKept9ruRj4a X-Received: by 2002:a05:6870:a11e:b0:22a:1ec7:cd9a with SMTP id m30-20020a056870a11e00b0022a1ec7cd9amr1818931oae.17.1711725556530; Fri, 29 Mar 2024 08:19:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711725556; cv=pass; d=google.com; s=arc-20160816; b=XBqB9reVhCIIliwBhNmGM2lXWUJKM/ZqyjYgerwv4Vc/AiE0WCvSBpW6Z6ksiBC1gR gc9JtBLUcTwJIddr6oDjASrsjXRdiI/T2AFHf1/aLrcnbXWY6o/ib9+M0pO8uV451x8n HldCbA5YMKODNTv2Hzl9PPDg8ckhkMZpYIsLu5m9sFC8g311k4C0+d1W2/seTrc7RHZu vE3rNyA8SQYj4UAVUAZ3e1X3jLiU/UZmipQ29Va2jJO0neUaLXJLJ3XqvnaYQ3S6/7L7 Isi4DpDrzm5mb+C+vwesou8mPcFhLq6Jzm08u4Yu/lo2TvFiY95kpdaI4R0rECvG4hwM Jlmg== 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=TtoEDyZIOtyf1NNzpmG9xc+HrwPC7aA39C/nFjVgExE=; fh=fvafrOUbCiAMDa6kL1H7C/9Jbyy8YPMSsC3/sL288dM=; b=WTPZpcz7WCpBFvSlGCyO4MZGlkvZ3QUy+gjtnH2xu83NdRTxQZ74MkFGOdNhNmSZbh mT1WimSR6hSt2mzG03BuJNUq8boIOs9w52a5+QmphrDuVDFuUvAO4YQMBRmzLysrS95E A+p7L7fhsxR8qt3xhrNvmqWEKdCGFKn5xqo/queVZvfkn7/qfh7C94hVWqrOQF3Byobi nNXXVS/4LQIsRCBZABFUV35RE85lS6IW1MtDc2QZ+omVXNq09SQdLm1cBPrDVildNZc+ S6Qlqk9/MvdGxTEuQrXjlMKiqQ1OUqnryr1dhnN1X+BnG2w5JKR+4IF8CCrNt1BnXYK6 FsmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=XjViRqzn; 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-125106-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125106-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 o20-20020a05622a009400b00430b3a87b41si3779376qtw.757.2024.03.29.08.19.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 08:19:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125106-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=@linuxfoundation.org header.s=google header.b=XjViRqzn; 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-125106-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125106-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4240E1C29357 for ; Fri, 29 Mar 2024 15:19:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92CD5101D0; Fri, 29 Mar 2024 15:01:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XjViRqzn" Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (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 02455535C6 for ; Fri, 29 Mar 2024 15:01:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711724471; cv=none; b=h40uu+3pOojZxUSMCah+ZbAjIcKE2HjMouOuI9Nsb4Qg/iT589+Rca+AlTC2VtT0shH3sVPgqDq7nff/StuWV5Bi5Yp04jEoOewYSKWPWp6fDL1kD3AbdculEPoEY+XIeUhMeK4DWUu7gkdNfzJKcDzhYF5GFTpr9I6uba4IyR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711724471; c=relaxed/simple; bh=ffdHJ38YwyVCLmNFOjiqvMFT3PDctpIMfDS+lYCox44=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hwD/dEz1O10Sh7TVWGVfblhCs52O7ttht0kqJ7n6aAhzaNqSvyjxZqLV7BOuppQ4DiMhj7JDHe4aeJ4+sv8BMhSiTuWMQ0c4OsKvQUQ5tHtCxDATcuutgJsXxWSjo/qN3Ly1DMXjtx5+GRfh1G0GTpr8nNgxYXLNXGvbJcbz+wE= 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=XjViRqzn; arc=none smtp.client-ip=209.85.166.42 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-io1-f42.google.com with SMTP id ca18e2360f4ac-7d0772bb5ffso40247339f.0 for ; Fri, 29 Mar 2024 08:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1711724469; x=1712329269; 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=TtoEDyZIOtyf1NNzpmG9xc+HrwPC7aA39C/nFjVgExE=; b=XjViRqznjIrrjk9eo96ZbLoNSR2rTPfkV84nnZA5wBh1gWdC+Jglr39tQW5zS7Q/mT I3yvyKKAFIk0/SFbnoQ1oKN2scsZuQa+lwEUUxWdE57rNArUybU7HEKr+QVRwTZUEypo Pi7TmKcgy9oc7dXbPJvLdQ4GwJvMbuq6L8O5A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711724469; x=1712329269; 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=TtoEDyZIOtyf1NNzpmG9xc+HrwPC7aA39C/nFjVgExE=; b=kqKKGTCkunpW48pymHTkO18nZ/xWWwRju86NXTk8fW+XwHOEDW1+LILi9FpVR+QwdQ 23hKFqzgDK8gLUN+v6itoJxEclLZZe1E128YkzFpFLv5k99s89PD9uYJiVOBb6D2TKES RTw1TyQkTS3Zgt3z1dVMpQeWkD4ZnpLPxJhIfURShIwdzZ/VPEZdlN4k4BqTkTLXepZO W0e8oQmwHLlYxX/rEhQ4eu6a7OD6OrEc3pVyUcR0yUp25nkunURipb9tfuY1Me+pEbSK i4+4H8X/bQUQ3JHEgnSiEdYHR6co1UOiIyjQ1aLNJ8x+iIWd75kNNVEYex0WthQCl/NC pP0g== X-Forwarded-Encrypted: i=1; AJvYcCUSXGaeMuvVdaqKaTE+OjLkLBTjv8MWelh2AONzu0ehJYf9bizyW4JKZ9CcATZRyx4PZsH0If76rQ/RIVfw1zWASEWJTZzqP940fUBU X-Gm-Message-State: AOJu0Yw8r1rLz2pU6ix7CepLdzb9jL+wND2M2ud7+FM0XKBrt59aB5eo 7UIBlk9BQQRwOQk9hu7GPqifYNxRYYWmYRL7nnge9k/pcQTZg9rusyFmqwlqd3w= X-Received: by 2002:a92:4b11:0:b0:368:aaa8:f557 with SMTP id m17-20020a924b11000000b00368aaa8f557mr2132805ilg.3.1711724469043; Fri, 29 Mar 2024 08:01:09 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id h17-20020a92d851000000b003696b5f5662sm134109ilq.49.2024.03.29.08.01.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Mar 2024 08:01:08 -0700 (PDT) Message-ID: <70698a24-3794-4621-ac74-7aaeae01a750@linuxfoundation.org> Date: Fri, 29 Mar 2024 09:01:07 -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: Ingo Molnar 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, Shuah Khan References: <20240327111720.3509180-1-usama.anjum@collabora.com> <1d6418a3-67eb-4a39-891a-7d653a26f1fc@linuxfoundation.org> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/29/24 01:36, Ingo Molnar wrote: > > * 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. I will drop it. thanks, -- Shuah