Received: by 10.223.176.5 with SMTP id f5csp3096114wra; Thu, 1 Feb 2018 10:41:16 -0800 (PST) X-Google-Smtp-Source: AH8x226T3Jvm70qoPqMxR7nppCsBtwgY2sJvKw+Kvv6cV4ssc5+7nPVXlvTXuzuBfnvMTPEwLZwe X-Received: by 10.99.112.81 with SMTP id a17mr21003361pgn.293.1517510476107; Thu, 01 Feb 2018 10:41:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517510476; cv=none; d=google.com; s=arc-20160816; b=TJGS8a2bafR2xg7UFdS98gEae3d+bghd6Sak7C1JgQtfhdrOvfpQ/xaeKD9Jr5WruQ hjY9dMqmL0y00RnCJn+r61i6yYMVDYKul+ylX+KCVxh48TIJYMEuK811zK9qMXluPZZ4 MLwPevU9QbrnOW4ucuK23yNzH5PpXzguLLxn+GlRZbSvnyKg3RsqIhqGN+LgItT1JKxR 8ipmKXzM1S4JgbyDFq6kspQLlOBlqOSZfRd/rYUkZX8NJzsE7Kl7tkFL0XTjME60X7d0 7ig82JxhF7AoH9mxtbNRKdiP2yGKJI0Eyoow+jzWCJdkgCCUydmdiVxZIT2RGuNjc95N TPRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:reply-to:from :subject:message-id:arc-authentication-results; bh=GA7W1VeMdfQ1G7P+od/zUwgJzTCYt2n7Bdcnc1hzzvY=; b=RGABUS2pfdt+9TOySqUERjPtRuKweKfFxYRy+RPIHaYL0s9eu1xRigtj5egbWAiiHZ Bn43JifrfvFKIvMy/VDOK6W6zwlHUf7yljWU1mtZqwH/MBcUAhXW3FO2dVCHlIZ5PJKq dL+2dqCcbG69rQEzhxlJvYNNGaEdUZAbWXwfQMWlJw/O+jZuqH0kG9oLCAi/xsa6UY17 a+ggMzbopl7/NoAB5nGg4CLc1ad0/zyMLUCnLGapFdsY3v9xwL6oTu1vm51t+aR/5ef+ E//dexbtsf6um9QWWlQB6FJaxbij94Xo3YksaVfbiXuLsbdnwWXZQTJQkq6PybBBrGQK ejcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si118352pgn.3.2018.02.01.10.41.00; Thu, 01 Feb 2018 10:41:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752768AbeBASkd (ORCPT + 99 others); Thu, 1 Feb 2018 13:40:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37126 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751988AbeBASk3 (ORCPT ); Thu, 1 Feb 2018 13:40:29 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9DDB3C05179F; Thu, 1 Feb 2018 18:40:29 +0000 (UTC) Received: from ovpn-118-33.ams2.redhat.com (unknown [10.36.118.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id BC4F9619C0; Thu, 1 Feb 2018 18:40:26 +0000 (UTC) Message-ID: <1517510422.2755.5.camel@redhat.com> Subject: Re: [PATCH] x86/microcode/intel: print previous microcode revision during early update From: Petr Oros Reply-To: poros@redhat.com To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Date: Thu, 01 Feb 2018 19:40:22 +0100 In-Reply-To: <20180126144918.7jiaezmdhjsiman5@pd.tnic> References: <20180126103451.16863-1-poros@redhat.com> <20180126104109.slxxoq4vkqytqjxd@pd.tnic> <1516967135.2801.1.camel@redhat.com> <20180126115800.bvqrzik2f3hmmiah@pd.tnic> <1516974600.2801.10.camel@redhat.com> <20180126144918.7jiaezmdhjsiman5@pd.tnic> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 01 Feb 2018 18:40:29 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Borislav Petkov píše v Pá 26. 01. 2018 v 15:49 +0100: > On Fri, Jan 26, 2018 at 02:50:00PM +0100, Petr Oros wrote: > > But what in production? Edit boot params, restart server, grep /proc/cpuinfo and > > restart again? Why i can not read it just from dmesg? > > Because you don't need the previous revision. > > You only *happen* to need it now but that is being addressed too with > the blacklisting. And when you have broken microcode, it will say: > > + pr_warn("Intel Spectre v2 broken microcode detected; disabling SPEC_CTRL\n"); > > and if you have microcode which doesn't have IBRS, there won't be > "spec_ctrl" in /proc/cpuinfo. > > I don't want people to start paying attention to microcode > revision numbers with the gazillion different revisions and > family/model/steppings out there and the crazy confusion that will ensue > from this. > We talk about dmesg log, it is place for diagnostic messages. I think, people expected gazillion numbers here. I adding only one number (microcode version) into log and only if patch is applied. This is good also for future bugs, and for example for tools like sosreport. It is really better to have microcode version ready and not try find it and try to collect after problem... Btw: with hot microcode patch is possible to get previous version from dmesg [ 0.680519] microcode: sig=0x306c3, pf=0x10, revision=0x23 Only with early it is not possible. Thanks, -Petr