Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1420452ybx; Thu, 7 Nov 2019 11:37:33 -0800 (PST) X-Google-Smtp-Source: APXvYqy2wfKeTe0FyeqfZK9UiWC5zNLt7s0Iq2GDTzcfT1zhtWi9qczWo3ZZG3N4GR72Uzo3x4Zm X-Received: by 2002:a17:906:1da1:: with SMTP id u1mr4901334ejh.275.1573155453715; Thu, 07 Nov 2019 11:37:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573155453; cv=none; d=google.com; s=arc-20160816; b=DcRBYut3yOubp7zGenZcdgFssFIXsHy+QkUuWA9NfnSThAt96Lj8zNeA4eGhbbALyS K4K+3/B5OKgT0HJa4y8hxWaUf2OwAI5HMdhf1v6RqdAwV4CWfz+2W6vK8IBJas2TkngU oga7tt2h1ovy+4ERdILemEnyTPetsdBkNoYwmm39IyXW7W2/brb1ng4HRYWj51bKGAid jrFkziEkga/pDpMV7JMbCg9UFOEsSKK2PG1K4Ctcg/Wwky8wwwdjmk7jeuId04FVaxVE CWvwB1W9KjW1v3+JIGMaKrLv+Z0L+mycZJXjnvK/N/+1GNW4lS4B1KXVP8cchfPOjaHe fyhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GenYAH9kQ7BwOZzZLD61Q4hP43MBwiw5oE3TXDHvPdQ=; b=GN8r8Iw/HPHd78z0mo4TiTq2xQpyti1szQ5P6AOWjwITZZarUz5wbfg+BfVWdcpIe+ DYYw7AzlRiVMwknJJUkNgiEChkwEB3ektZd4ezoBfGo8VZnfbe/6cS+yiUHru09bcg7y pYvVY1WWj24ns2oEDWPdq83uEuUELnZLkFsWjVxPZ6FvWgOOuRRnXH+uYuUUOVXp+S6d udlVwyeRcvYTfYGlTE77sgTkDwKZpvdhk/IBcv04Bfbalo3zrhQHwg3lNVKaqLTETgyU 8SiH3inwLl0poJ/T11jvl7AbLooFHsyzOHzKkVs8fb21YuFuOJE77OqrGi/inmDUc+J4 15AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=DnHO5zxJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cw1si2078743ejb.117.2019.11.07.11.37.10; Thu, 07 Nov 2019 11:37:33 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=DnHO5zxJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726320AbfKGTej (ORCPT + 99 others); Thu, 7 Nov 2019 14:34:39 -0500 Received: from mail.skyhub.de ([5.9.137.197]:52072 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbfKGTei (ORCPT ); Thu, 7 Nov 2019 14:34:38 -0500 Received: from zn.tnic (p200300EC2F0EAD0094343B71594E3CFE.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:ad00:9434:3b71:594e:3cfe]) (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 542881EC0CF0; Thu, 7 Nov 2019 20:34:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1573155273; 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=GenYAH9kQ7BwOZzZLD61Q4hP43MBwiw5oE3TXDHvPdQ=; b=DnHO5zxJqcw3UlGOo8wxx5KTfMQrz5Iyw78c2GbifobaR+bLZD/attNfId8h8/ht3i0LXT FKPnZ+8GMn73MhhpIPLWg9Q1v1+SxSajCe6ljfAcc0lkOfV0Si9hsAA80f3ltbbYEoM9Id 93o7HehccAlz+u3ZfmOxbzcRSxOX8nM= Date: Thu, 7 Nov 2019 20:34:29 +0100 From: Borislav Petkov To: "Ghannam, Yazen" Cc: "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 0/5] AMD64 EDAC: Check for nodes without memory, etc. Message-ID: <20191107193429.GI19501@zn.tnic> References: <20191106012448.243970-1-Yazen.Ghannam@amd.com> <20191106160607.GC28380@zn.tnic> <20191106195417.GF28380@zn.tnic> <20191107103857.GC19501@zn.tnic> <20191107154006.GF19501@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 07, 2019 at 07:20:25PM +0000, Ghannam, Yazen wrote: > Yes, that's right. But it looks like future systems will re-use PCI IDs even > across families and models. And the PCI IDs will be more closely related to > hardware capabilities than family and model. > > In any case, we can address that when we get there. I'd be fine with it if this really is the case and we don't end up having to keep adding PCI IDs like crazy again. That was a moderate PITA, AFAIR, especially for distro kernels having to constantly pick up enablement patches and people complaining about it. So you need to make sure the PCI IDs will really get reused before converting back... > > if (!ecc_en || !nb_mce_en) > > return false; > > else > > Right, I meant you can drop this else and just return true. > > > return true; I prefer the regular if-else way because it reads faster and it is straight-forward when one skims over the code. But I can drop if if you insist. :-) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette