Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1371336pxb; Sat, 16 Oct 2021 08:17:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk5gaNh8nQ4yTeF/yeMfLisGveE2JgvodluRvCHMPFIFLbtuMfBcECTnST1xUA+Osfv9+C X-Received: by 2002:a17:90a:9291:: with SMTP id n17mr21194540pjo.243.1634397468989; Sat, 16 Oct 2021 08:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634397468; cv=none; d=google.com; s=arc-20160816; b=PbEu3AJy7a7jy8H9pkjdZl0Yby7B8gqANfUVKJZeSGtBhyeUZ9E7T1xcO04QqZH4B5 kOL1h1w6M8TsACRx/B34VQLmsGmnIWIxvKjlSOIstWAEYmzQOmYCfPLZZ0Dt1Blf+zN+ ISWM1GdgAw1NG5gXW/0+K80JzNdt3GH9yeA58VscBAK5jJX32IAXbh5EdubiaKEGep5k hRX26wDGmyCbPwSTdKVFMn9I6kyQb9i+3EH5EYcIL62ZhK2E224K+JIBLrtXxsLOA+dt T/DjvAj1/nzCsGyST7dhTYzW+8F03hgzeIvGxTYv+0U05nO/+50nQ9fbSI1X6LMleIiY sU6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GubYf2mcqcx4jKRvoVoqfVF22A6GHWoTIn0b4DKRCoA=; b=k31Qf2yGJAvG5HMtfg4MCny6qccXJ1CoWyrNJWER2O0XDojNqPS1oyfya8JsXFpVf8 FIipQfPmSl/4hBo7mzEVN6GdYDbRNLpGqeb7yQikxgRHgsvBeEcG48eS2fSg72kMqKqN Cl4PZLKYtSQMo9zI18emLX+hZKubOqLS5Q8Jqbcx1oZmTxJEn+pFNjwR09WiyuIi5r/B Z8Qrcxw10l8Zzz9tk5spEmmCxOrDSJC5cET/0gLEi7V8a5oBdYmRBOCvc9ErzA8XLCbz 99PS9AIA+fgw3HPWbeDbS58o/EmZ76V/oJSB+QqMmy4V6rITv36xKTgdjugRxAnzg4sP fy+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=RfBilr+j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w202si15153502pff.339.2021.10.16.08.17.19; Sat, 16 Oct 2021 08:17:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=RfBilr+j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240556AbhJOOmv (ORCPT + 99 others); Fri, 15 Oct 2021 10:42:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240378AbhJOOmp (ORCPT ); Fri, 15 Oct 2021 10:42:45 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69738C061570 for ; Fri, 15 Oct 2021 07:40:39 -0700 (PDT) Received: from zn.tnic (p200300ec2f0cfb008d2f1a8e7c2e2a2a.dip0.t-ipconnect.de [IPv6:2003:ec:2f0c:fb00:8d2f:1a8e:7c2e:2a2a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 8481F1EC04CB; Fri, 15 Oct 2021 16:40:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1634308837; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=GubYf2mcqcx4jKRvoVoqfVF22A6GHWoTIn0b4DKRCoA=; b=RfBilr+jwe7Zg+ufgGxd5MbQ2AUmE4nWuH2oJPhml7aEdnmXGh0ue4EMCDFIoNOG5GZZp+ 6LKrDviKLspHK06GqCvfarA7yMhRpcRkVaE6tMY/vmFQv+88hrtDpOWC4VS8+YsMJZ/Xlv wj5zsuv9Sxf1jaB9/DBIjfjcvY6XJwA= Date: Fri, 15 Oct 2021 16:40:36 +0200 From: Borislav Petkov To: Noah Goldstein Cc: tglx@linutronix.de, mingo@redhat.com, X86 ML , hpa@zytor.com, Andy Lutomirski , open list Subject: Re: [PATCH v1] x86/fpu: Remove opmask state from avx512_timestamp check Message-ID: References: <20210920053951.4093668-1-goldstein.w.n@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 14, 2021 at 10:49:25AM -0500, Noah Goldstein wrote: > Is there a cost to the change I am not seeing? The cost is having yet another macro in our crazy FPU code because apparently everything but the kitchen sink is being put into xstates. So I'd suggest you carve out that timestamp update into a separate function, i.e., something like fpu_update_avx_timestamp() or so - and add the macro in it along with the comment explaining what and why is being tracked. So that that functionality is separated out of the main flow, save_fpregs_to_fpstate() simply calls it and it doesn't get in the way of the next rewrite of the FPU code to accomodate new crap^W features. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette