Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp12214lqm; Tue, 30 Apr 2024 11:08:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWn7k/NfWP6pLGRLwktckEmMW+z2grL6YNRPK0hDFzaDnfIrYDA5jdP/TEuhTXRFSTyVSvneuUH0y9F5cX1Ezw3F/brTVto72RKTy847A== X-Google-Smtp-Source: AGHT+IGuL+edEKt/wRknKM6BJiPRS9Q8ocUg14tgqpYgpDjT4cct2VYC7EDH+/rMXBQW6iQOs+l8 X-Received: by 2002:a05:6870:a68f:b0:22e:c787:5fa2 with SMTP id i15-20020a056870a68f00b0022ec7875fa2mr230221oam.58.1714500505976; Tue, 30 Apr 2024 11:08:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714500505; cv=pass; d=google.com; s=arc-20160816; b=dpBQcnfA/JlbLwlO7de3tXJH52byMVJArrdp//KFutXPv9ryv11j4+woMlDcHpfJMU dlBrcY7Fd7wtt0cmSdfwrtiK5eaRJfghL7njoSmtpQl9xvdqZ0auvtDlDja5b98tu8T7 dfNx6uLdNlCMUnoCAjrm0RFNF6+mDnY0poNGE/kyqG55xxJYWC95NSAWSVt2Cs9rdMkj CGbIC/0qlQCYAbOsRVAaZeBbLBg/gH1iDyYcKA5QhuSeikbfc6DjFE6yIi1eqctrH3xp kNB32Mil7Ec1EPSyIMHcAn1r5+enyqAhfdWmehdhts1DJkGFM3keVzOimXk0Cqww847i 8cgg== 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=Y7s8TMJ8qHLzbZ6gWl7cQnaOJBDIe4Dw83e3EgHGNuU=; fh=KBIbgEZocMaiM2Gas/G/dZXnKIszVIfXASJfwIRSg1M=; b=VVIgpqnHjlB4JSx1BPmoLUhDm5Qn9Dlp3w0OgCf91wL0TrEpPtEYRaXrP64UJPORf5 d3wq2Nc1OdclXmH179ADLoKSAV/uwm1QoCZxIGGx9MT5Yl7isQVH12V2wLiSuEQTy+2i SIx2KSZTkzDrlCuh7ihcZHCkugWJySdClgmfcmyn9BIyogmeINJLVqN3LSBmwna8L4sR wD1IZ03VyFUFIDxDM39pXzK09gPwV4lulI0XRSOj65Ie7+ei+LGn8H16cQtgV3Y+YozZ Gw2ctC5Ds/OUkeLdEoRa9z5qgj3rWAmtHsfsS7tr6GYyBM8F4NsSejyOBvccWV1HdQ9M +UiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=F9+CoEGz; 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-164569-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164569-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 c198-20020a6335cf000000b0060477fd5367si13461817pga.702.2024.04.30.11.08.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 11:08:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164569-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=F9+CoEGz; 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-164569-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164569-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 09BAFB2285D for ; Tue, 30 Apr 2024 18:08:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 566651836C7; Tue, 30 Apr 2024 18:06:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="F9+CoEGz" 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 91197181B9D; Tue, 30 Apr 2024 18:06:54 +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=1714500416; cv=none; b=NMsNxuklyZjXK6TEu+I7Deer4df7XPFT124d05IFZJzQ3ypWRokkbw7itDkN8xp3YOgTggDefj2k2NZ25ohTxUWkgYkr7NYVSjiZ1tJC0Jtoz72JpK2JXVLNiKtr01ZSan+kwCrTZ72Y/UaN4p6KtIJVs9WPlkpzlc/AYMOG42c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714500416; c=relaxed/simple; bh=0qsg5fAauxbEqdIcYQLN/yej9YBMwtvKQ9nkrp+Br4w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Lo9G3Fmzs2Q9MH82oojDwLPGbUJKZaAjzGj0FrTtC2o07/RXRFelGCLrSnzdm8YnlBZwN+JM931cEQsTc/TPYtVa+1UCQYve6lQemiBw7MoX07SG41PUPVY4AyukrF3HVG5XPJT/Y3t3HouL9g9yU7ctIkXXwJLXx34kDIyoZXc= 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=F9+CoEGz; 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 A5F6D40E01F6; Tue, 30 Apr 2024 18:06:52 +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 vbcD7_edTS81; Tue, 30 Apr 2024 18:06:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1714500409; bh=Y7s8TMJ8qHLzbZ6gWl7cQnaOJBDIe4Dw83e3EgHGNuU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F9+CoEGzJ/y/ehxDH3klsh9Gsv8WNJPvz9wXGF0+toT5WaIsTGcmbMtyWkNc/8/sq kRC93KCG1bKC3Bt72C28yAC+tbLXIe1cfG4NPt5elguqRn+MQs5pCfhp5bpAmY//97 5Qo3/nkSXyMLmt4f16aQqGTPnrJHqNpkH7XojNGQFhhdKEqxrOXPsfV8vjTMoRSY6m jUb1Fa9BL9DvZ9Ql/UxaanqV1P9H3dtBdF9nAN2YIgoi9lA7H5woKt6XmEU7OLlRPv 18HwqQxZWPMf36yQLVk3QnEoAun3gJigVimPcSEd7SiwLgzL17QwI579/S2mffJSjn T5iXPxSya5K3jIpJQowpMWUc4pfMygkGuNC4e3xrJETdvp76LBjr8GpyQg/R2X7Ysk 9J5qLr62N0Ci1RSA+yfhXb6V7BP1lJu7qB1YQHAAUHY/zzqriMdsaaZ1qTqJvWYdTZ x0vQ9WrjA12F5Wss86aA+YfFN8mCNx4rAB8TROpxPHfsfQxasAJNOHdLjMNoV4+pMr nNSxp1O4M40iUJ1oQIpx/X5siDyPKsVPjDooRgk/zTkLEH0oCThk8n8MTSJoQhxaKj 0Uob7rHZySNCYmUz8VQvjwUVMncOXP2a50fad4zaUZBmFM5FrSIB74vgVC2wnMES00 9nBDL1hoVW8sumhZfUUZ98EY= Received: from zn.tnic (pd953020b.dip0.t-ipconnect.de [217.83.2.11]) (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 51D3940E0187; Tue, 30 Apr 2024 18:06:41 +0000 (UTC) Date: Tue, 30 Apr 2024 20:06:35 +0200 From: Borislav Petkov To: Robert Richter , Yazen Ghannam Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, tony.luck@intel.com, x86@kernel.org, Avadhut.Naik@amd.com, John.Allen@amd.com Subject: Re: [PATCH v2 07/16] x86/mce/amd: Simplify DFR handler setup Message-ID: <20240430180635.GDZjEzK8H3xQ_uEGYn@fat_crate.local> References: <20240404151359.47970-1-yazen.ghannam@amd.com> <20240404151359.47970-8-yazen.ghannam@amd.com> <20240424190658.GHZilYUvw1KfSfVd_e@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 Mon, Apr 29, 2024 at 08:34:37PM +0200, Robert Richter wrote: > After looking a while into it I think the issue was the following: > > IBS offset was not enabled by firmware, but MCE already was (due to > earlier setup). And mce was (maybe) not on all cpus and only one cpu > per socket enabled. The IBS vector should be enabled on all cpus. Now > firmware allocated offset 1 for mce (instead of offset 0 as for > k8). This caused the hardcoded value (offset 1 for IBS) to be already > taken. Also, hardcoded values couldn't be used at all as this would > have not been worked on k8 (for mce). Another issue was to find the > next free offset as you couldn't examine just the current cpu. So even > if the offset on the current was available, another cpu might have > that offset already in use. Yet another problem was that programmed > offsets for mce and ibs overlapped each other and the kernel had to > reassign them (the ibs offset). > > I hope a remember correctly here with all details. I think you're remembering it correct because after I read this, a very very old and dormant brain cell did light up in my head and said, oh yeah, that definitely rings a bell! :-P Yazen, this is the type of mess I was talking about. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette