Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp333042lqo; Fri, 10 May 2024 00:51:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQXcIcU7sxBrSpjocULPRx9RK+vQxEagjewDTxBOdF2fYU2B5Xv3SEpw36i9ISN+9FyJrUvSVadpWkYW82QK7VU1GW2vhjE07ukDXfDg== X-Google-Smtp-Source: AGHT+IE+FSZ3J9z7Wb5oue1MqkkWudd/AAbI8AwsEdLHGv0CDLpyfoLGHxT7YbqSuBKUL6GX3qcr X-Received: by 2002:a05:622a:64f:b0:43a:e5d9:1c31 with SMTP id d75a77b69052e-43dfdcc7ba0mr19288581cf.68.1715327474339; Fri, 10 May 2024 00:51:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715327474; cv=pass; d=google.com; s=arc-20160816; b=bLzlmMEtHKdohW3EUk/tX8w8jynF7lA4yVAOFD4xA1BqkE9TRQVKYkjIEqXVgupvy6 GwfOIAynERZbDGZYMdZlwC5M7g27f1mZ4pJdXUajViJf27r9brd5ZlgKIBsYC2Avv9ud ZlJDEfcMuONpb1h9/Kbn6HwgNWDKbCGvQ2DzIUI29lrE0s0gQLGV17S6H3xl+fACamvu qTYdqSAjx6D7z/hbTvPhHXJNxrr3uC9YhnZ0FYC4wKUheSR/4E3ehblRc9n7xL82t4Yt Q0wDOQ70wzVrssNE0UkBV+KCJard98V6KqKDNnQvDD5eZmXVBFWlCq4BUyDih86T6J77 lvzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=bIm1fAKcGzV2+29L6VoKcR07i20QYU5XtuqRPiLw9LA=; fh=N62a8FnGQdZtaSEm9sft3zRmQGetvKumNf7yV45ZpCA=; b=xm/ic9DxCAN+sc41PJNPMoNyv281CjEjMwi41N3D4XZeRohiEv18VcocOzH1sxRRFL bIj5yzwswzFH9RelS74eSFwh3SzIeOE9LJF6sRgtjAaQ65KVK/zOCkqqWzyWPm3BB2ha q+YPyBl23tsPL/X9hAAcJM5V2/pyCrvNQHN3TyEGJRT4nHhU/jbCF+iDVkIDM1oO/UDa S4ZoXPh1rLUOSr4NjNu6u7oxJcndv2mnoMuR819Yp8K5CP3VYIY+iYQ0EXtb9DZBC21S oRxQrIF2udDF5dADmnezPD07EheiJuojhxEBnUpPs7+T1/Yr5UiFNFtKdDYQRlX+O8No hNUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QvyCwmVY; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-175414-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56ad311si31207741cf.531.2024.05.10.00.51.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 00:51:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175414-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QvyCwmVY; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-175414-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 EED3E1C20D60 for ; Fri, 10 May 2024 07:51:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A75F15F30A; Fri, 10 May 2024 07:51:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QvyCwmVY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="c9xSZ0jX" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 92FEE12AAE5; Fri, 10 May 2024 07:51:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715327467; cv=none; b=aG/Js4jQyAENUAWJroXxVkmZy2uQz+/nng+f0bu47JDY7mwTqyshrQRLmOgWg9mZbuwnSInRq8cx3IW60vCbWtQHqZOwqPMRhVWMxdHTwmPGIo+53D4m20tb/OLlhfRVkqQCbzrWvWjTExefVdjJZzhJf0LSx38FcVzJc12B0l8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715327467; c=relaxed/simple; bh=VYM7fGJjhmjLymVRv/fDQo6hN8Spqtzfyzs+nbT2mX0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=cXHuvT+6tvqE0mYSbGIpDKO+M+M/3Rk43sdJ4QMvWe8bo6YQ/t8luyB7XljMcG9/xBG2QlFDTNaaRnEdyTetsXw5geWxFq2psgioMILqJk69ph0C5gTKQyDjDt/PYgX39TY1UkRKYW+No5N7g/Ay1HPXoWlTyX+2vZ2PH6z0dCY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=QvyCwmVY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=c9xSZ0jX; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1715327464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bIm1fAKcGzV2+29L6VoKcR07i20QYU5XtuqRPiLw9LA=; b=QvyCwmVYbnn0fGMU4flRLFxCJjjGSJGvR5zdOvdujP5QMKsg81ungs2dZBaEbNMxH+eiwn S5H8J8w0eF1kkdkqrK1tKWt+Cx9rO9VTz09Lqa8xZhAmY1fsqoIgWTsWyMBfLRber0D700 nHLs59eFqUdXzRzJaPgRZOLDHovX95mAFrGCO9ltHUgDefI3ABnFxA05+uaWWaezdjOr3P yAz7nOVmL4aYtTpqYoksbSJOISxA4qewPzxVt86prQxll7CPzFzjCnrm0Qd00UTYDTZ+/1 217m3a9tYn3QXcCdkViB4w3Pi98icliXINAqjQbjNslLoTVR4muYQBFdTutq+g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1715327464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bIm1fAKcGzV2+29L6VoKcR07i20QYU5XtuqRPiLw9LA=; b=c9xSZ0jXY56J3+wI1zztvYxMSeM6l3zm6SfKxC0U7J08W4MgONBNXH/ejXbs1UTNWzGYIs fUMElEUTmIX3TdCA== To: Dave Hansen , "Chang S. Bae" , linux-kernel@vger.kernel.org Cc: x86@kernel.org, platform-driver-x86@vger.kernel.org, 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 Subject: Re: [PATCH v2 1/2] x86/fpu: Extend kernel_fpu_begin_mask() to initialize AMX state In-Reply-To: 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> Date: Fri, 10 May 2024 09:51:03 +0200 Message-ID: <875xvmnlzs.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Thu, May 09 2024 at 10:36, Dave Hansen wrote: > Three lines of code: > > 1. IFS declares its need to own the FPU for a moment, like any > other kernel_fpu_begin() user. It's not a special snowflake. > It is boring. > 2. IFS zaps the FPU state > 3. IFS gives up the FPU > > Am I out of my mind? What am I missing? Why bother with _anything_ > more complicated than this? Right. Keep it simple :)