Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3420152pxb; Tue, 12 Jan 2021 14:20:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDun+yuGbkpPs0B0YUzIgVjA73mNgzFeYjErqMr59/ul6CoBK5TAEk33q3Codlmt1FU3wW X-Received: by 2002:a17:906:3d62:: with SMTP id r2mr674449ejf.295.1610490056671; Tue, 12 Jan 2021 14:20:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610490056; cv=none; d=google.com; s=arc-20160816; b=djMmLKeq3f/vordVC8nQnXINkEyIXy8FdV7gemA+lq2kdaLincMJuoDVhUtzf/Ek2H /yhj37ayhUkpdXYiQ1sVvjGRgjGin/Hn5WrSyHSAE/wOdW5X5rXU8uZ4bS5sIE3IxHBG SV4Ug3QWCBrEYKymlM0Cr3UtASrCQ29uF3ifb4/hbP7EuwfHE5FvNgSPEtulLYxNfiGB wXoUjLDQxfhEbhyIdick6xzVIdKzH2h6S5LQKZbyV1RXxD2xsxbg6L092/qNurCP7qtG xoOpmkZRUgOkWrDgj4HoUC1PFvSnUsXYS4MSyacnF1tsGT8Jxc+a1Ipk57N0EA6VxNxU eV3Q== 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=hiQ2aT0sAgvveKCKw+n+ctbke87ZB3mfcJ48rJ15WaA=; b=ACkTAjvpnSBSWI/cOPL9nxw4sa4bm0lhRKoWCOXOAfUPRyU9FCzLlCqDGfYBjUhGEx XW/rkwRG4+F4jH84SKY5q+ii2rNW7+mjMQwK+znGdZtJB4VlIel7r9X61w3/wabFS0Cj 16fh3YhJa/BAbhF1n/i73HZb1s5bRb960M0X91vuXwpQGnHtejX7XUmi+G9TIakaAdAJ OLzSc8BJkVvK81AP+2am6nRnjjQ7bmhQ4GQfapj9ImsX6hcklsAACo3sHmmCCEEz4C3G ZezUopZmK2pw0gxmBFcAd4pvLFf4qvBiVR6XUGL9R7/gFtMrWfJfaI1IYqiWXPCVAwnm oBxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=NsLcVrbX; 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 k10si36515eds.206.2021.01.12.14.20.33; Tue, 12 Jan 2021 14:20:56 -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=@alien8.de header.s=dkim header.b=NsLcVrbX; 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 S2391651AbhALAZQ (ORCPT + 99 others); Mon, 11 Jan 2021 19:25:16 -0500 Received: from mail.skyhub.de ([5.9.137.197]:56758 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404235AbhALAKJ (ORCPT ); Mon, 11 Jan 2021 19:10:09 -0500 Received: from zn.tnic (p200300ec2f088f0064dd88f751605e0c.dip0.t-ipconnect.de [IPv6:2003:ec:2f08:8f00:64dd:88f7:5160:5e0c]) (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 E011C1EC04CB; Tue, 12 Jan 2021 01:09:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1610410168; 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=hiQ2aT0sAgvveKCKw+n+ctbke87ZB3mfcJ48rJ15WaA=; b=NsLcVrbXvB8OcvgEN8y1ZJhIB4cKQy1qxYzOGUW0gOgqXZBZw9fhwTrH4s3Ab8Ys9vAmKC ETk1YqW4/5NjMpkALcoZxvI+YzsxaEQZiqLmXUYShLWlgItlAbAgGMRQrg9eU3i46ENf8L bkO8j99EZtA1GiOIuXGUs0+76MEHRJ4= Date: Tue, 12 Jan 2021 01:09:23 +0100 From: Borislav Petkov To: Krzysztof Mazur Cc: Thomas Gleixner , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] x86/lib: don't use MMX before FPU initialization Message-ID: <20210112000923.GK25645@zn.tnic> References: <20201228160631.32732-1-krzysiek@podlesie.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201228160631.32732-1-krzysiek@podlesie.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 28, 2020 at 05:06:31PM +0100, Krzysztof Mazur wrote: > When enabled, the MMX 3DNow! optimized memcpy() is used very early, > even before FPU is initialized. It worked fine, but commit > 7ad816762f9bf89e940e618ea40c43138b479e10 ("x86/fpu: Reset MXCSR > to default in kernel_fpu_begin()") broke that. After that commit > the kernel crashes just after "Booting the kernel." message. Have you figured out in the meantime what exactly is causing the breakage? Does it boot if you comment out + if (boot_cpu_has(X86_FEATURE_FPU)) + asm volatile ("fninit"); in kernel_fpu_begin()? I'm guessing K7 doesn't have X86_FEATURE_XMM so the LDMXCSR won't matter... Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette