Return-Path: Received: from mail.linutronix.de (193.142.43.55:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 03 Oct 2019 01:46:57 -0000 Received: from esa1.hc3370-68.iphmx.com ([216.71.145.142]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iFqCm-0005jn-6C for speck@linutronix.de; Thu, 03 Oct 2019 03:46:57 +0200 From: Andrew Cooper Subject: [MODERATED] ucode packaging Message-ID: Date: Thu, 3 Oct 2019 02:46:41 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="IG8KGF1z5goZe9DdESGx5ps6QztIy3dXS"; protected-headers="v1" To: speck@linutronix.de List-ID: --IG8KGF1z5goZe9DdESGx5ps6QztIy3dXS Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-GB Hello, I realise this is perhaps not totally on topic, but I thought I'd solicit feedback here first before expanding to a wider audience, where some details might need to be moderated. tl;dr The MDS microcode for SandyBridge has issues, and causing fatal MCEs on previously-stable systems.=C2=A0 While I don't wish to criticise,= and am certain that Intel do their best to avoid regressions, it has to be said that newer microcode is a bit like newer software, in that has a non-zero chance of containing bugs, and the severity of bugs tends to be catastrophic far as stability goes. Anyway, customers and management have expressed concerns about the ease of rolling back microcode versions in the field, to stabilise impacted systems. Currently, /lib/firmware/$VENDOR-ucode/ contains exactly one version of any particular piece of microcode for the part.=C2=A0 Altering this eithe= r requires finding a different microcode binary, or finding a different version of the package, and typically force installing it.=C2=A0 Neither = are great options for users. It is already common to have the past $N kernels available for rollback in the face of problems, and this seems like a sensible approach to take for microcode as well. Expressing this via separate packages, as the kernel typically is, is most likely too complicated to work sensibly, but luckily ucode blobs are tiny.=C2=A0 How about a scheme whereby a single package has files in = the form of /lib/firmware/$VENDOR-ucode/FF-MM-SS-VERSION and a symlink of the latest version to FF-MM-SS, for compatibility with existing initrd generation tools? This way, if a user finds themselves in need of reverting to an older version, they can relink FF-MM-SS to an older version, rebuild their initrd and reboot.=C2=A0 This has the advantage that it will stay in effe= ct until a newer microcode package is installed, which will hopefully retract (or better yet, superseded) the problematic version. Thoughts?=C2=A0 Is there any interest from other distros for a scheme suc= h as this? Thanks in advance, ~Andrew --IG8KGF1z5goZe9DdESGx5ps6QztIy3dXS--