Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp857455iog; Fri, 17 Jun 2022 15:40:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t7jwpQsx6WEgieFmzfVgx8SjvPfzgCMX8xXwPb6L2cqkfKGZwLsXJRFUDyY5ihptoBldaF X-Received: by 2002:a65:588b:0:b0:3fe:4237:2ee5 with SMTP id d11-20020a65588b000000b003fe42372ee5mr10931032pgu.442.1655505650242; Fri, 17 Jun 2022 15:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655505650; cv=none; d=google.com; s=arc-20160816; b=ObnMozePN9rxKr3nVvQkxrCrRogYnZwXOVMNduvKRqvbMhUM6ZTdWZwuCmU5kgAPo9 Muri1xTR3H50nHcOxbrHAENQvVJzXaw2JuZbQBb60pfegDbotjci4upLjkabAOnk2lVp Eg1uuihZM0gqoBVLgPKtk1rWJZDcwb22zf9iq7OWxbgsiRWGJlFjdUz0gQXQFtf9g9p0 d4OHns/phvxfLjjTwHFUO5zWpdtzFyFGkOxajJbsUIjL+MpH1aJEy3nfjGdwaTume/NV 3xS568UwllkcdVzqbfQPc9BrWHZRBxvETuFZaoIrwYegPocJ7p0yZLjUh2rWFhtD6XAs O64w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=S9l9aGJ8OWlkPL90OX67eL3mtz7dIUCfETgWKj+djr0=; b=y2uHM294JkOVoRGMnND37A9Av2tHFZABFo8dW9uTl9npTV+3lCwapdJobSiXVnEujf jNOaNaVX2MmGs3lXTsfblLF7299hUscFPxuxX67cdv41CdTDbUlZL+RVXhc0hi/FQbdg zppeOkCOpZyWT8wtW5cY8f2VGksqeC5MNfRbHd1JIyZdg50t+6d+6a+0rhel2zbi+MGC ocWMNna4yzTYX/IvNlEnbkx8SuSpf73CLb84wdma03r1MrAGPrVCJmGNb8o9n7h8m8VS ggNwzkbxHekeJWM9s7jHLK4JIkHj3GW3tk5UPWmN5e4Hu249eVgkNbRd3h+9+Dd6cVzf 27UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="dTe/NxZQ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g32-20020a632020000000b003fd8437c169si7624187pgg.147.2022.06.17.15.40.38; Fri, 17 Jun 2022 15:40:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="dTe/NxZQ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245202AbiFQW3l (ORCPT + 99 others); Fri, 17 Jun 2022 18:29:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348242AbiFQW3c (ORCPT ); Fri, 17 Jun 2022 18:29:32 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F3FE62107 for ; Fri, 17 Jun 2022 15:29:31 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-101bc0d279cso2116718fac.0 for ; Fri, 17 Jun 2022 15:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=S9l9aGJ8OWlkPL90OX67eL3mtz7dIUCfETgWKj+djr0=; b=dTe/NxZQBPQAy1F7WnL23okeDwPy38Noiw8RFQrcizVeGg3jD9pD69ShC7xavkNH4l Hj9JhgoSpeDHNfyt6SFU6z4BMaCPgD8wfiDIficii6RRXnUdpr4X8TMkBCcZOCGOomdv l5kkHr4OAgQLl8oP+tZ19yjKHd4uHxaKJjVLU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=S9l9aGJ8OWlkPL90OX67eL3mtz7dIUCfETgWKj+djr0=; b=HryHfZBkmgWMvzUd89jF0bm4dP5tQU3/vxtTMbFgNRM8iNpPcOzfPKfOGdeBlSA+mO 26Yaz2W6jVm5mXqnzjlBN4iJGcFM8JXaF7FHUIdOvO5hqaMhST0nUT6FGQ2FwJLyi1dp g6wDpDCQMWkB1mLve5KwZHnq4E6l818ykn2dOUNGVv/yi+/uLTSiOHdAHvtrJTFXR1eQ Dtc72qr4LvV15vMxSSFhJRxtTwxV8d3nrMM5Yd+sUHVdw7yd/aucFSEze5o3c4MV7exk SiQLOniSd7oqKYwOR5DJiTCreDI4zjxGgyX1/dG7M8gu6dAFLWON+KrBAJ8lJFrjV4ju 7hmw== X-Gm-Message-State: AJIora/7AQmFPefFq5cjLTvj8G3QlAHAYKfhcmAUJ0OWIG2dY6k8Zl94 8BZa0Pqc3q+yJz3p9ppRlOOsWg== X-Received: by 2002:a05:6870:434d:b0:e5:9115:cb15 with SMTP id x13-20020a056870434d00b000e59115cb15mr12253484oah.53.1655504970747; Fri, 17 Jun 2022 15:29:30 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id 125-20020a4a1183000000b0035f6cf71391sm3339452ooc.43.2022.06.17.15.29.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jun 2022 15:29:30 -0700 (PDT) Subject: Re: [PATCH 2/2] selftests/x86/amx: Fix the test to avoid failure when AMX is unavailable To: "Chang S. Bae" , linux-kselftest@vger.kernel.org, shuah@kernel.org, linux-kernel@vger.kernel.org Cc: dave.hansen@linux.intel.com, tglx@linutronix.de, bp@suse.de, Shuah Khan References: <20220401221014.13556-1-chang.seok.bae@intel.com> <20220401221014.13556-3-chang.seok.bae@intel.com> <327cde12-daea-84ba-4b24-64fe12e89dea@intel.com> From: Shuah Khan Message-ID: Date: Fri, 17 Jun 2022 16:29:28 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <327cde12-daea-84ba-4b24-64fe12e89dea@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/17/22 4:21 PM, Chang S. Bae wrote: > On 6/16/2022 3:54 PM, Shuah Khan wrote: >> On 4/1/22 4:10 PM, Chang S. Bae wrote: >>> >> >> This should KSFT_SKIP for this to be reported as a skip. Returning 0 >> will be reported as a Pass. > > I think that's a good point, thanks. > > Now, along with the on-going documentation [1], this test code can be simplified like the below changes, instead of having those cpuid functions: > Simplifying is always good. Send me v2 and I will review it. thanks, -- Shuah