Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp26806lqh; Thu, 30 May 2024 12:51:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVr8Qn8cAcvNaFuX1k1FuGTnoiLOERqKKPoheeXX1BNcPHxeeYlwSheUAthD5pvnFVAxRA/AeQqasj41L15hdC4RECZS+i5OrzBWtNvEg== X-Google-Smtp-Source: AGHT+IHXQsZ5F9+Wv+izm/D0W9L8OoQrKkHBOx951ceqKNCZHm3rVyGN70A3TrDFImvOLyVHC2Qp X-Received: by 2002:a17:90b:713:b0:2bd:ad66:5b14 with SMTP id 98e67ed59e1d1-2c1ab9fac1bmr3247323a91.25.1717098674154; Thu, 30 May 2024 12:51:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717098674; cv=pass; d=google.com; s=arc-20160816; b=zoqPoi6SI9PkEG7nj9Ee6O75NA4McHE5B7MO+k4Q22WSApTHYaip7g935KYE2mTxlF MlkQqfY2CN+CGTpCty3KgVSSOnzh0enIIT4raS3clymAkmQRMrOeTuVYX7MquWWXBqQJ INIiBcGmwtCXBtRur6d8EMP6J53EWsQ+BjTKSuAepTj4n6T4WRjfDdOvbWv/Fl335c0V XJn/AJfrVtCTSs0quapfJq6x6FZ6glBBnFy1D5YIeDZC0IsxWHd/4ZgI2gaoPBiXz/sN a3VZ10kCpIWWZaFPAAvVvTC29FIN72VyNkbYkBgdYEploQJtLC+AiNh/wiU1d16eyce6 +37g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=VvoNoaMLKqOGQ2QBcMOieeI8tvDx1mEhjiHb/MwrCGs=; fh=pIHrpPLcbxfvrrhv2E/0/rGXWBzANL+VUz9xL4ADlu0=; b=vnc6FGH3jgvGmlKyrBXj2Hm9/FJHKTuvV6K0iIrbaj3QAAoqytKyIsFyCN21UJi6r2 fPZQ6CCDw8JJZ5bUubJspmf445i+IBxs/u3dt3cTC+MH2Q3LppT6V/pzBLpSO+MIo5RE effjAbe/rpmuUytpAAthfuGM9EkxGp0bMh3xt3+qC4BRYHpPVB3Qrc22xMw7J+NuXcd4 6liSMbMaOECZCwsArE+UyzZqSAhY//pFrPqyQIRdvVUOqBUap6BRfA+DjPh7cP3lTYx8 oETMjBXfYc33/nyu/JaSChoOOfyaVSsZMN4dG8DHAULNyhQCJW3GLfckKHlG2KYXOGyO vzyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=F4ZrBZSt; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-195834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1a77b5e80si2055656a91.103.2024.05.30.12.51.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 12:51:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=F4ZrBZSt; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-195834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DD7372879C5 for ; Thu, 30 May 2024 19:44:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81770158A01; Thu, 30 May 2024 19:44:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="F4ZrBZSt" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4312F12E6D; Thu, 30 May 2024 19:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717098247; cv=none; b=CXCk9/+hfYk9kVxfhzMEgOOurxsGENEgMMxFldysilXI6RqCL87Ha5UGROrs6s8Y4igKsR1/EM6ThJ1qGs9U0lu0juhgVm2opwl+PWxSnG3pbv0JP9ypv4iHQGwvKmWWjibwnY2bKP6u5RK+9uVd75+sWaNfEzUGf/BFaAjxHP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717098247; c=relaxed/simple; bh=Jmwxt8bWquRc2Bo8nA6dbosFgYTM5uelPHKc3KAchq0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=XH4w2FCBZO/rbVS8+Un+L7PYLsPynHSPtxhtIUNPILW0FrMLx20Fo6/0RWRuWCHxJJIFo/ZBCGh0qZfB5Tt6uR9khZXUW/0oRDvQxNthyZY4Dj6oJMXxjAtw1PfLw7CWIqK4QFsMYICRZsiwqpvLlNvE7lcXps8APENdw35iQiM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=F4ZrBZSt; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717098246; x=1748634246; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Jmwxt8bWquRc2Bo8nA6dbosFgYTM5uelPHKc3KAchq0=; b=F4ZrBZStxB6pRcxfkqMoVKCdf/EwVIWEbGcuWllBX05fl7xizh5Hl9a6 WFDjXHKFTCTacm+qFJvw/G/ZC/4E1KLzNpMtiZ+HJJ4f1kof9eJYVsVr4 Mvc7eV/32AtAUCudt3hQ3auG7pNCy5NJ5l49BEjhuxIwgVrtu5mzby8EX VMTvddpKNV1diM7B6b90dcSwEzoRVhEQSxKenISSzywwVPGonT5HTjzyk unTNGfi6ry/7NdphxBMjCnHIyKbaQMu4giSB2pUpTJfzckrhmHIqs5dAP x3wbWfDjN95QlQSlRFqBGu7xPzoveJglWzwmKYBJpN716EkadnC4TgwqX g==; X-CSE-ConnectionGUID: F10TKrOHSbicWOallAGjDQ== X-CSE-MsgGUID: wj6iL/PRSRKqssLKXJq4ww== X-IronPort-AV: E=McAfee;i="6600,9927,11088"; a="31143988" X-IronPort-AV: E=Sophos;i="6.08,202,1712646000"; d="scan'208";a="31143988" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2024 12:44:05 -0700 X-CSE-ConnectionGUID: 1/AsBVNGRi6pdfTq65GHFQ== X-CSE-MsgGUID: Z7wdXs2VRU2fjDeKfAmLVA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,202,1712646000"; d="scan'208";a="36027619" Received: from chang-linux-3.sc.intel.com ([172.25.66.177]) by orviesa009.jf.intel.com with ESMTP; 30 May 2024 12:44:06 -0700 From: "Chang S. Bae" To: linux-kernel@vger.kernel.org Cc: x86@kernel.org, platform-driver-x86@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com, tony.luck@intel.com, ashok.raj@intel.com, jithu.joseph@intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, chang.seok.bae@intel.com Subject: [PATCH v3 0/3] x86/fpu: Allow the In-Field Scan driver to initialize FPU state Date: Thu, 30 May 2024 12:27:36 -0700 Message-Id: <20240530192739.172566-1-chang.seok.bae@intel.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This revision switches to a new approach by providing a helper to initialize user FPU states for the driver, which is considerably simpler. This approach could serve as an example for addressing similar situations from a non-critical path. I thought fpu_reset_fpregs() as the helper name. There is already one with this name. Then, I realized the existing one is a bit misaligned, so renamed it first here. Thanks to Dave for the reviews and the suggestion. Thanks, Chang The previous postings: V2: https://lore.kernel.org/all/20240507235344.249103-1-chang.seok.bae@intel.com V1: https://lore.kernel.org/all/20240430212508.105117-1-chang.seok.bae@intel.com Chang S. Bae (3): x86/fpu: Rename fpu_reset_fpregs() to fpu_reset_fpstate_regs() x86/fpu: Allow FPU users to initialize FPU state platform/x86/intel/ifs: Initialize FPU states for the scan test arch/x86/include/asm/fpu/api.h | 2 ++ arch/x86/kernel/fpu/core.c | 17 ++++++++++++++--- drivers/platform/x86/intel/ifs/ifs.h | 1 + drivers/platform/x86/intel/ifs/runtest.c | 7 +++++++ 4 files changed, 24 insertions(+), 3 deletions(-) base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 -- 2.34.1