Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3353444pxb; Mon, 4 Apr 2022 14:25:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDhmupZ16SYyzdd93S+Qdd1nq8SpkNSuoBRM++YF5wb+NJvVqNWvZ5jyfwf9torMQVftv5 X-Received: by 2002:a17:90b:3a82:b0:1c7:bc91:a87e with SMTP id om2-20020a17090b3a8200b001c7bc91a87emr190457pjb.7.1649107522383; Mon, 04 Apr 2022 14:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649107522; cv=none; d=google.com; s=arc-20160816; b=fyw80J1ESE0xz5g7irnoH0UoxkexvEOhy+l8jeID6IIOdVlvOgo97pA3b40le2Zwgm r1EcQdJ5mqQBufpmOAqblg5HrkwdsZMLHMOf+JY7OKXCZHC1b1iQXNKYJiZdh9J2ie3G sAgFaSxIc59IdQIJkVV27hZNAEGFzNkpq8LpCKh9tpH0lz/+vdJEGmsiA6Uw/VzFSVVs OxKJUlDw1h25PMMSvjciyFipACzvahv0f0f6KjdJARpw9a9WE6DUU367nFz7Ll8+R9bU JNL8kBpQ9XmzOl/04UK3Rrhmrv6oWi7ZjG2d9fOZ6KsvM+ApFTyEUpYCuLq7CzTfc2SH Uk4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=cONfw8qisV4YLY+xZwvtAveHWTRQTy33eUM9Kbwr/qg=; b=DmFsxG1wtjqKKIilix4F6bOVLMimPG0TpWIGtMsIY0UgOB92mt71rzD1AZY/V9OJcW eEg50+TUyb3rtKE/yvaYQ+I/6QAG2say65lwJq65Hff5BHQXbLJU+J6gOHQTxhLBPwPn dtzjFQcheUrz3bNwXYh5nmU7Pe3opgF/R47D6GBzUWKwdt6MjNXgd2pHFFOtyRIq7OqH wXLjVcBCDJqJwIc/2g74nIfomIwexH7x7rgZxjUa/iEbFjrVFcKaCdVBSex3J/UQjerx NQbXbLE5nBrNX5J71qxfP0axeRVS3aR2Udkk+HIGjOGzO0nAmcELPSIc3FBFcU6RKqAT C3Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mPv+ycXn; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s65-20020a637744000000b003817d620096si13718771pgc.775.2022.04.04.14.25.07; Mon, 04 Apr 2022 14:25:22 -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=@intel.com header.s=Intel header.b=mPv+ycXn; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353330AbiDAWUj (ORCPT + 99 others); Fri, 1 Apr 2022 18:20:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349992AbiDAWUa (ORCPT ); Fri, 1 Apr 2022 18:20:30 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FC754C41F; Fri, 1 Apr 2022 15:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648851520; x=1680387520; h=from:to:cc:subject:date:message-id; bh=qT1iUcSDEtAU+xXuDjdqpSGzyO4mMVV0OZcTstB3bGQ=; b=mPv+ycXn5CMVZgHAXwkv9f0dkWxp4/F+l/vMPfzxDetILeuYow0o3LII s6X2wVe6OEpJqYmDRRI3RZcYscCYZRB5rDRphHqbA+cae4eJ1ZV+B7417 vj7Hsa5fRrTd0Er4gp0hNHEWl8797wIiiQJfh0BaZv/X1AV8a8M3JDOm7 apGIqAarvPAU4Ws6d/gPeWm2QVuow06bQ6KvGjI8jG3mgVcB8gZV9Ewvz zC5a0o5RxWGDkmn2xNlFPwlj8iRrOwLFrA7zkMY2bV0o1JFGDAf0+Cn28 tI/tJAEkEXOgLeZ4PtBUMzqnNEzW6xrhtvN4gzutkWAsCe0uN3t/LqFOi A==; X-IronPort-AV: E=McAfee;i="6200,9189,10304"; a="257822122" X-IronPort-AV: E=Sophos;i="5.90,228,1643702400"; d="scan'208";a="257822122" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2022 15:18:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,228,1643702400"; d="scan'208";a="567860534" Received: from chang-linux-3.sc.intel.com ([172.25.112.114]) by orsmga008.jf.intel.com with ESMTP; 01 Apr 2022 15:18:34 -0700 From: "Chang S. Bae" To: 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, chang.seok.bae@intel.com Subject: [PATCH 0/2] selftests/x86: AMX-related test improvements Date: Fri, 1 Apr 2022 15:10:12 -0700 Message-Id: <20220401221014.13556-1-chang.seok.bae@intel.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-4.1 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,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 A couple of test updates are included: * With this option [1,2], the kernel's altstack check becomes stringent. The x86 sigaltstack test is ignorant about this. Adjust the test now. This check was established [3] to ensure every AMX task's altstack is sufficient (regardless of that option) [4]. * The AMX test wrongly fails on non-AMX machines. Fix the code to skip the test instead. The series is available in this repository: git://github.com/intel/amx-linux.git selftest [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/x86/Kconfig#n2432 [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/kernel-parameters.txt#n5676 [3] 3aac3ebea08f ("x86/signal: Implement sigaltstack size validation") [4] 4b7ca609a33d ("x86/signal: Use fpu::__state_user_size for sigalt stack validation") Chang S. Bae (2): selftests/x86/signal: Adjust the test to the kernel's altstack check selftests/x86/amx: Fix the test to avoid failure when AMX is unavailable tools/testing/selftests/x86/amx.c | 42 +++++++++++++++++------ tools/testing/selftests/x86/sigaltstack.c | 12 ++++++- 2 files changed, 42 insertions(+), 12 deletions(-) base-commit: f443e374ae131c168a065ea1748feac6b2e76613 -- 2.17.1