Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp798504rdb; Fri, 26 Jan 2024 10:57:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkDpPu1ACR4JV9w0hMy0priRJpt02dMSCIhnmEGxBE9x7PbNZ8jcmk/xB45VybYynsakQG X-Received: by 2002:a17:903:444:b0:1d8:aac2:740 with SMTP id iw4-20020a170903044400b001d8aac20740mr199420plb.100.1706295472247; Fri, 26 Jan 2024 10:57:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706295472; cv=pass; d=google.com; s=arc-20160816; b=vvN8/b/tw1EqirU0C53J1kheVT7qoZk2IU7DT7COWUWcYZqYnog2ToY6/rbPgWtRiL WJOtUqMgeNplkVKPSmwA8nd3mWwikLKMaY72rSPCY0qusNAm1fiGXSTUugHSn6JvCUQW k87Pbc204auX/xmfvELkbbM6YcD3rsxot8nr4CINLv68GmujYEDQgCkZru4gSZnAjvbF xV4KJ+Jrx9RqFzAl1AMuYznaMO4HXtzE42bc0yEt1PwCtu6TheVo+KFlth86mZlver+k NF3turoKJhX3ocLrCKG8BK2+TYsf4+TmH5p1FNBlZxXqujH7XdUODAS9M6/T6a4EFwYD 7RdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xhhU0pI4cvWOVs/8fChYblqpo/BatkU5qzvZCo8PM24=; fh=bnJmUYo2kkoOFHbqo/PPl4dOarF1W+nSj/XS+05tKy8=; b=I5C/vk51g3x64Z0L3aoEIbgYVURblQSVelN+W5bdlGVclevOO4kdpe1pe5p0J1fK+U /gLpsbyuBqqjUlV1uRQsEp/SFP8iZk2JuohpNeyWeuqt9rrFB3MakKGtrg/DUqS4LgM7 niCcx5gpH6WZMtDawursA7BZQRJasZ2k73yQn8fZo9uC0DGFVALx9miWrWZAZ62UCq27 180u/gpYBXvYuVzAsNnuXt5RvhMRScnbmisBcuN9UnNtr1FYk8ezwgFKJvYEg3hJrXJi qfRu4GgR6oPANdqG30R1DpcerS4ptFbD+grIo8Lqom4/wPg5pV53YQHf4CDySmScdoaz WzJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Gk6qPLPc; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-40535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n18-20020a170902d2d200b001d7690fa964si1577282plc.85.2024.01.26.10.57.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 10:57:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Gk6qPLPc; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-40535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 20097B237A2 for ; Fri, 26 Jan 2024 18:57:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15D4B2231C; Fri, 26 Jan 2024 18:57:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="Gk6qPLPc" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 779681E51E; Fri, 26 Jan 2024 18:57:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706295436; cv=none; b=UPeBlPPMgzrOqEVCoGqyrUmCLNVyRgbjYAkJIAxmriBF00hzgIq0k0ZnYCKmYov0lUEGc5ooeyI8hu1lfIAPVy3fLrxf3tFJsZmbXQSNWWY0M0gOz7fXk3uJvm5prl6bjPo9+P4TZNSKm7TsFH/2uvZT/JQCb7Rpjuu49DjtvEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706295436; c=relaxed/simple; bh=QJe1FJ1iBaalO5uoFk0dCsivP88lPhMfWnHVPQV7TEg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=V6KKfJzSR3aD5UmZRmz5Ur+FOiAxAk0SJ7NB33z8vCwgc++05ou+BK4W9nzpws7WTGPJ5k9DQm9XJUwAOMTP1bkUdIrqtOXFOrQd66nYZ7Tt1pvPqwue57VtbmSZ/lSzvPburKAubyfD4k86CCV0NJ2Lpn+fGomTlRMupFStnkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=Gk6qPLPc; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 79D1240E016C; Fri, 26 Jan 2024 18:57:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5WLNMonkyGe7; Fri, 26 Jan 2024 18:57:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1706295423; bh=xhhU0pI4cvWOVs/8fChYblqpo/BatkU5qzvZCo8PM24=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Gk6qPLPcz3QyHGb+YZrdeyar1yu/82X4/OlpJjJe/3pC3U1xpXztdO1fqU3mosVLv UlsfzXIVa55o6ZrUHl5/auceFNgMAzyq7VJiNGjV7opMRfbyum2pVY7dGgHDZjxZbr dYJq7D+T2rgLX6KsRaYGsDn23zcIXobLBMTQWhQXlMkJ1r+D6zZ7bRMEgu+tCyDjx0 XUYp/QMRJ/2x29ucUkKlG5uVKjCyBow1ySc6rHRNfGWE7/qXB2A8vA4a9wbkDgs5kK 7qHrYLRdyf/vF8e55qq27+E4zJzFin7H2ZCqCVL+f8Ht/xx1VJCrDaWKvBaA/c/Eku J7izqRGN2k8vZ36o4hGuubBn4h04D4h68ZHx4wSc1A+5ODc0YSPjL+11qXVUK0i/Ie NshSqXqMHaOSAUWnETUBy+dvVeatGrvtlsOmLdXfcLFIFn+psEC2LzzIDEeGano4gD qTUjJi0C+3YBjLqqDwRnAqUxGhkYys5dO4hm42c2dxIUjFhClEp3bCMhAor5nv7hy5 S8rXEnukgKW6CmkvaoLDq6YvPpPwsK/r+vdpnt76JfrGjqXlNebks1B3wzs0t3GUYi 69hulmUU0AXfVHHBlckzj+BBhEXYwVTVQYSlEDkjI8O9oeeFOFv9E0gHnGJ7TM7W3h /byjo3FsQMKAO3RyWAMVTD/8= Received: from zn.tnic (pd953033e.dip0.t-ipconnect.de [217.83.3.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 3E04340E0196; Fri, 26 Jan 2024 18:56:54 +0000 (UTC) Date: Fri, 26 Jan 2024 19:56:49 +0100 From: Borislav Petkov To: "Luck, Tony" Cc: Avadhut Naik , "linux-trace-kernel@vger.kernel.org" , "linux-edac@vger.kernel.org" , "rostedt@goodmis.org" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "yazen.ghannam@amd.com" , "avadnaik@amd.com" Subject: Re: [PATCH v2 0/2] Update mce_record tracepoint Message-ID: <20240126185649.GFZbQAccZphdW_0CkH@fat_crate.local> References: <20240125184857.851355-1-avadhut.naik@amd.com> <20240125185821.GDZbKvTW93APAiY1LP@fat_crate.local> <20240126102721.GCZbOJCTqTVmvgOEuM@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Fri, Jan 26, 2024 at 05:10:20PM +0000, Luck, Tony wrote: > 12 extra bytes divided by (say) 64GB (a very small server these days, may laptop has that much) > = 0.00000001746% > > We will need 57000 changes like this one before we get to 0.001% :-) You're forgetting that those 12 bytes repeat per MCE tracepoint logged. And there's other code which adds more 0.01% here and there, well, because we can. > But the key there is keeping the details of the source machine attached to > the error record. My first contact with machine check debugging is always > just the raw error record (from mcelog, rasdaemon, or console log). Yes, that is somewhat sensible reason to have the PPIN together with the MCE record. > Knowing which microcode version was loaded on a core *at the time of > the error* is critical. So is the rest of the debug info you're going to need from that machine. And yet we're not adding that to the tracepoint. > You've spent enough time with Ashok and Thomas tweaking the Linux > microcode driver to know that going back to the machine the next day > to ask about microcode version has a bunch of ways to get a wrong > answer. Huh, what does that have to do with this? IIUC, if someone changes something on the system, whether that is updating microcode or swapping a harddrive or swapping memory or whatever, that invalidates the errors reported, pretty much. You can't put it all in the trace record, you just can't. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette