Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2466677pxb; Mon, 18 Jan 2021 20:09:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJz44Iw4y6zg5PXN4MqWvR1Wq/i5CTmUDylIzUsG1XFQaa6UqVBdyQ/6ocr7CjSaWuA5g4hA X-Received: by 2002:aa7:dc0d:: with SMTP id b13mr1903525edu.170.1611029382114; Mon, 18 Jan 2021 20:09:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611029382; cv=none; d=google.com; s=arc-20160816; b=Ps7I6+wvk4sBos+E+drlDMVjg3/gIC/ZS11xn+S5ESmtwAnTHwZIn9JjHQEvTHoSJc 7N2Dm1UiC6tFXF/hT0Xa7UbMdCMTXudEr1jbadMz8+QcbRKpZ/WSYfUn29mAxnlVew2/ QVlY6eSvvE/Tcu6hof53VxSlaUbdEJzmfG+epngP4VoO+D6EvG2VoqvCek5/uKWwCzg4 +JpNdAmrtFwc847sgOFqawwbvOpPyn5RJHUkQHIWcEM4NFOe2tJMfQalJc8rEldy3+ph 9oYSUnYZI7pcnjhj6GZBxobicc5T87qKzKPuqu57IDDKk0Nin4MKpJwIk3nMeryyzfCF 6uaQ== 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=icRNAkK0szBBjqq/5Vje/Fh2SCFts7ZENzZRRvbWGz8=; b=n57QCF1KTQTBNgKuqHrHTX1Qn+ZSxLxj1vpy8slAz9o56ZOmFR9o7UZDAzPUbiy9k6 GRxsy0RLOSq4Y+1TAl40oVgJciTWrBsdiLSI+qpsTRDKVpfZ3kfbQrOhAKFOeoq6rWC7 g3KsF8aWiGPqOasS8oKcSAQjG6X+fDOdtjjkyCMuH2nNu/BcD2vXmXedmAbrXwPn93L9 LPtAohvcl5zY6ruvqo7oI5gOHXiMMqLy3/DrR0EX+8lZYDB4znMJ21Iw6uZ5R9l7sc/P xkAfEQa3ILXVA4ClaMwI/iS7WRRUxJTYQk9V2w7hSRs5/8k30o2LGBjORJqaU4VEQ0UH K71w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=tbic5vIr; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si7720598ejy.432.2021.01.18.20.09.19; Mon, 18 Jan 2021 20:09:42 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=tbic5vIr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391457AbhARMX0 (ORCPT + 99 others); Mon, 18 Jan 2021 07:23:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391196AbhARMW2 (ORCPT ); Mon, 18 Jan 2021 07:22:28 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8DC6C061573 for ; Mon, 18 Jan 2021 04:21:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=icRNAkK0szBBjqq/5Vje/Fh2SCFts7ZENzZRRvbWGz8=; b=tbic5vIrHaPdWR83ygRvHMuxWa z0VUx/9IC9FnTQzv0B8OJ9vsmvMWn28fj7RyGYAeAsHr5UYpvbJmwkm21MgzIGrxXhrCUGWJpUaKq Aa6Ehl2Z/l2h+r61EHVdetB6eh44sPxCC1705IukbuvbBYgHZBZBKdGbmMgqnPPxyDNDiMfRgTvoq OoZVqpRJVOhHDfWWTmZe6Ju9dRN+I4/SKdCEBsTE82KMmxheZCc4GtmA1M6cQPQzC+8iRXAjP26nO Gc9moMo4MpUub6s4aCjdK7rcypZS6aAwL092JcI5+wwWPTP0My0lkWQ+z26EdrAw2VAOG3kUJwbs/ PE5LuESg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1l1TXK-00CnRY-L3; Mon, 18 Jan 2021 12:21:35 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 33C1D30015A; Mon, 18 Jan 2021 13:21:32 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1B79220290D25; Mon, 18 Jan 2021 13:21:32 +0100 (CET) Date: Mon, 18 Jan 2021 13:21:32 +0100 From: Peter Zijlstra To: Andy Lutomirski Cc: x86@kernel.org, LKML , Krzysztof Mazur , Krzysztof =?utf-8?Q?Ol=C4=99dzki?= , Arnd Bergmann Subject: Re: [PATCH 1/4] x86/fpu: Add kernel_fpu_begin_mask() to selectively initialize state Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 17, 2021 at 10:20:38PM -0800, Andy Lutomirski wrote: > - Code that wants MMX doesn't want need MXCSR or FCW initialized. > _mmx_memcpy(), for example, can run before CR4.OSFXSR gets set, and > initializing MXCSR will fail. > +#define KFPU_MMX 0 /* nothing gets initialized */ This... why is that correct?