Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp33372lqo; Thu, 9 May 2024 11:42:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXt/FQgZKJt/FUiOgPHlm2dQtCitSEZAugkbF4Mh0RFD5n2b6g8n1KkO1FTisS6Hip79n5k+gQXWyic4s/tMvOn6Hg6kI5a+Rbwl91jWQ== X-Google-Smtp-Source: AGHT+IHeXEQzRP1AgZo8xq/kroAou/YHzJMO0m39KVRmpxDr9JHQDD6S2hnlRGibsPk1dqHiDrRZ X-Received: by 2002:a05:6358:88c:b0:192:725f:10a4 with SMTP id e5c5f4694b2df-193bb626213mr29484355d.9.1715280145863; Thu, 09 May 2024 11:42:25 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412a4daa5si1889627a12.645.2024.05.09.11.42.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 11:42:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174786-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dcnDadaH; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-174786-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174786-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 2FFB62811F7 for ; Thu, 9 May 2024 18:42:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6410E7F7D9; Thu, 9 May 2024 18:41:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dcnDadaH" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 346A27E58C; Thu, 9 May 2024 18:41:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.7 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715280093; cv=fail; b=A0fhqYZYr4yUSqtYJLK9qMYO1wagbS7/X2yS0f5dTPJyymaqMU3Gf9iZWWNjeYAzRR7HTJ8tQAV5tH+bVibfLHU2G0DXGqx5ps6EzGvAIAGYWd9JKGkQ7OQtto/DnTFv5LuKk/ohScltFO+vnvuy5PTsbVKbsOR9uGr+KBU95ss= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715280093; c=relaxed/simple; bh=5iAmVDe4Pbp6QFb/W76qvnZ7b1pTMEyGIO/VYkCC4Is=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=I9B4q9fbB+3TyoPYDo1eYKYbDsxdM5vmphOzoip5HfPpBwcpC7U28rqVCed0OhUw0iJfWzlP3ANUeMyZsjiuQY96DaBnWeqS2RgaKGU7j63gxm1x8CvljgRqRkJ0I3wNB/AY2gm8DWMChnye0nUZiFm/V9HsAMc99kMHcQzpxRY= ARC-Authentication-Results:i=2; 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=dcnDadaH; arc=fail smtp.client-ip=192.198.163.7 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=1715280091; x=1746816091; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=5iAmVDe4Pbp6QFb/W76qvnZ7b1pTMEyGIO/VYkCC4Is=; b=dcnDadaHfrBp/yPpDGhdgSYKOkernhRVtWatu/13CSzYojlc2IlOC5MJ 1lfjskdudeAEDz2N7VAUGxYqboZmtXCZ18AaD9x6kskU1668lvDNRTm2y GNzFpoi9XNaQrbK9Is+F4EAGJghgbGlF2WmhAkTl3400ToAvJzNKlZXCb Pc46zf+ct93PoLWvH3ttPI+k4csXhx2Y5ID5E2zm1qtPwQdkvJVMitemn N3UBKUkTZAxIOZwFXASwD3LZBUyyBVRTRpOCur7aNlgj0FVQ4fWXivwBS XGT5iLU8A+X6tDLAWAV9UJbqffua3PxHXnGh7u2Y/aEwDqwqeQanym6gT w==; X-CSE-ConnectionGUID: 48Y6KoyuQH6jpYogaBYhiA== X-CSE-MsgGUID: Ui931ZhNQieU3g0rwFY7lA== X-IronPort-AV: E=McAfee;i="6600,9927,11068"; a="36604127" X-IronPort-AV: E=Sophos;i="6.08,148,1712646000"; d="scan'208";a="36604127" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2024 11:41:30 -0700 X-CSE-ConnectionGUID: ydzKphvMQMqDJdzhKXv8ew== X-CSE-MsgGUID: UbitXb6URbqqUS6OyqRYTQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,148,1712646000"; d="scan'208";a="29205898" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orviesa010.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 09 May 2024 11:41:30 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 9 May 2024 11:41:29 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 9 May 2024 11:41:29 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.40) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 9 May 2024 11:41:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JQgd0qlyu+ZHQwGSh+A8qAdG/8lI/AEeNrbGAiIw6jeArLCnAfEW/hzd3NJMGj9gwdCsTv6oob4vc58qtnzkF04vnoQBQxz9r6T5iUXDIWeLmWeX5vBM2XHB37nBkwG/pY+SbCm2QeJVrm2S/Qhayy8jYff4hTNvIBxEHgYhp+6yednKtdLVvMIoEtodAF9NdsdMtJaC+a40xUX229etTVm55cbmbz38FwbNMbvJ/55S1P8dFZ/2Q7+EoltvJIXTQJVcLqMktZR1IO6dfNM2bi5i23Bz4MbT0ApRoHx8456eX5ItnqPpPlNFrU7gvvoQWe7j88quip388QP2crcvXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EyrXFBImVMkTCV8qzDbGJr7DjnzPJZSuU1roICm0Tek=; b=JCrkP0VhyKznDRERwDKj7HfkDhzes5eGtatxmoASezYnryiaf7n/acHX1PTEsSvCHFUOa6ipILtleEwvdKIMqimJoc8ULmfEXMCPQ2K+o+4cvy9F7LHX4azxFOn8vWTKJ00bEZYae+qKaGzLqFfjiOSItqaVXs0r54sx5Pp18ZOMswpQ570E3Ujy+uHSw4ZPXFwe8EJ1U56vrndvfM8mNQiHeoY4krTPkX22hQmgWLZQqbW7Ayas2dUUabk764A1es4MVmNUt4CogUhfJUKIwjx0TK5D0o2LcHRh/aKc6h2KzOdC/Occ1foFt3sm41oMImGnXiSXIb/5DTKbLay8iA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MW4PR11MB7164.namprd11.prod.outlook.com (2603:10b6:303:212::6) by MN2PR11MB4517.namprd11.prod.outlook.com (2603:10b6:208:24e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.43; Thu, 9 May 2024 18:41:27 +0000 Received: from MW4PR11MB7164.namprd11.prod.outlook.com ([fe80::a972:1395:dd49:1dc5]) by MW4PR11MB7164.namprd11.prod.outlook.com ([fe80::a972:1395:dd49:1dc5%5]) with mapi id 15.20.7544.046; Thu, 9 May 2024 18:41:26 +0000 Message-ID: <758089a4-52d5-4649-8aee-89e60044918a@intel.com> Date: Thu, 9 May 2024 11:41:23 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] x86/fpu: Extend kernel_fpu_begin_mask() to initialize AMX state To: Dave Hansen , CC: , , , , , , , , , , References: <20240430212508.105117-1-chang.seok.bae@intel.com> <20240507235344.249103-1-chang.seok.bae@intel.com> <20240507235344.249103-2-chang.seok.bae@intel.com> <7e589b35-4ff8-43fa-99dd-d3b17f56d3ea@intel.com> Content-Language: en-US From: "Chang S. Bae" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR03CA0270.namprd03.prod.outlook.com (2603:10b6:a03:3a0::35) To MW4PR11MB7164.namprd11.prod.outlook.com (2603:10b6:303:212::6) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR11MB7164:EE_|MN2PR11MB4517:EE_ X-MS-Office365-Filtering-Correlation-Id: 86a9202d-d91f-4122-cf28-08dc7057a1e9 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?dFNlUWkrUlNJSEQydytWK281ckU1VEVEeXlYZUh6K3g4VVFuaFVNdHdmWlFZ?= =?utf-8?B?cFJhaWtIRXQyQlJ0QWp1NnJkNitVZFlkVmRmSFM1WW5Db1k3NGwyVVEzZ1du?= =?utf-8?B?NEdiTVlINlRWbVJWQWwxS2h1ZERjaFFheFdpMDdGMlE5YVNHNXdzZDVXQU12?= =?utf-8?B?R2hFTVZ5cWpHUEtoMFdVSkMxTUYvSEhjdkVKVEs2alNaNmozYmpBK2kvaFVO?= =?utf-8?B?T3YrNitPRm1ZWEhjcUFSRnVTYXdOeXBKV2dENCtVOE9mQ3VLejF0ZVprcVNH?= =?utf-8?B?NWFTbjVmdEZkaksyRnVjVTk4WEsyM285YW5pUlVJQndPWlpBVGxZdklqcUZL?= =?utf-8?B?bWJXVUM2WEVUajY1d1V5bStuU0xsalI5T3ljRzcyMnlJbHhONEN6cENVaXIx?= =?utf-8?B?WnBjblZzWUpP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?utf-8?B?TmlNZEhwc215Q0g1aDhrWFFac2VJVkdiekZQL0g1dGk5ZCtZK205d3piUllW?= =?utf-8?B?KzJac1o3Ui80R0FLdGx5anNNTUFTUDRvcjg4cFNtckpSMWM5Z281VGxSVTht?= =?utf-8?B?QkhoZFhmVlE5V0kvTTE4SW9OMmVjRm5tTDZWTFFMRzA1bHdtemRMbmFlZEF3?= =?utf-8?B?NlRuOXpNSit6TlU0QkJOa1pkd3F0OUJDdG40ZU16S0tvdGFwVE9VdkdmMHBk?= =?utf-8?B?Z0Z2a2ZDa3BwSGE0c09pdjNyS0paY1hVWWZWbmw1NCtwenptQ3FORWN4Uzcx?= =?utf-8?B?SGd4bW4rdFQ0SVFVY0ltanFYQXFsZEEwVVJsTWl1M09TMXFQTkJza2dzMFZ4?= =?utf-8?B?bHNyeXNZa3dTQ3cwMVdObzVzRzNHME5kT0RUZURFQTI1bnoyVWY4ajRRPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR11MB7164.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?d0E2NmZQMVVPa21kWGx1WkFKUGdMV09iU1FZdnBWeUJnMWI4SHNnOGJkK1pX?= =?utf-8?B?U0hTYWhPRTR6eTNpRDNzdUpUVTdXRSsxYTlObkZJOEhvdE9xYVJLK1JLN3Jk?= =?utf-8?B?cHhaWk9iRXZpMkkweWtMdklCT2xMWDI5TkVITUxLTXBmQ3U5b0szb05UZnh2?= =?utf-8?B?V216N0FoOTErUWMyY0htWHU1dlFNcGQ3UDIzdld0ZVBOQmZLajFhZ3VWSU9X?= =?utf-8?B?V244RHUrQXZQdmVFQ2RSOTcvaUZKZHZ3azlMQVN0T3V2eVRMcStpYm9KcFh5?=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odUtqM0t5RDhQOXZIK3ZzNWNvRnlB?= =?utf-8?B?eXJFZ2IxQjZZZFRmUERTSGNqKzVmSGNURTBLYy9EeFRmQVFjMWkySDFSQ3Q3?= =?utf-8?B?SEE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 86a9202d-d91f-4122-cf28-08dc7057a1e9 X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB7164.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2024 18:41:26.2402 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: w6mc3xM+Yzdqf6q1xfqb9GLqXs7T3FtKUjo6zV/DoqjgxQTG6rz+vDLuOBKa0yT/WMiZqLhuof1EqYWb1i1dI3nyKc0NBH5/JrDcdJlUE1Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4517 X-OriginatorOrg: intel.com On 5/9/2024 10:36 AM, Dave Hansen wrote: > > I'd probably just do this: > > + kernel_fpu_begin(); > + // AMX *MUST* be in the init state for the wrmsr() to work. > + // But, the more in the init state, the less state the test > + // has to save and restore. Just zap everything. > + restore_fpregs_from_fpstate(&init_fpstate, > + fpu_user_cfg.max_features); > + I assume that this snippet goes to the IFS driver side. Then, we need to introduce and export a new wrapper for this. restore_fpregs_from_fpstate() and its arguments are not accessible as of now. Also, I think we should encapsulate them. If we follow this style, we could have invoked tilerelease() directly from the idle driver, right? > wrmsrl(MSR_ACTIVATE_SCAN, params->activate->data); > rdmsrl(MSR_SCAN_STATUS, status.data); > > + kernel_fpu_end();