Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp979884imm; Fri, 11 May 2018 09:13:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrrma6f4xfWoExKpw3VbP75MFaUC9dfg9XEdn2/tOpmx2T7HqY8rnwi+sZ/+p3mlK2WcBwQ X-Received: by 2002:a65:64c7:: with SMTP id t7-v6mr4359616pgv.274.1526055203971; Fri, 11 May 2018 09:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526055203; cv=none; d=google.com; s=arc-20160816; b=0+mBwer2WlTvd5zSIss9GO2QGbtfoANm2PtTJjpqiWBSKw6qRKIZReyKDNT5eZgfIa m/br3Qg/KGphmanwIvaPUCHGQsBKWHRIFJVc+iRrFgvBIwvB1WXAISsQso0358Myj3FV tWPEjq0hfGNzdDMiM2zP54S5+1CH6UudYaKfa9vWItMxTiFD6I8QgB4EeU7N0an5/TV/ ZNKDXEGFzQbA0NXv8VoOysS6Jnc12ouQ7LkEsoIFHJ9s4Dji9+BxzSO+7a7UxUObzWph rHrL78L+fegr1vmmbJdC+RIs3pMvYMWRMmIeSD60pMWmIRkYZuie4hL0P6MHEfbLjkRk sOcg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=068o2CK6gbBGbXmwjmp8x/ZGwd888KRF0/CiuS3Ay7g=; b=Sw90e2Zpqcgl3Qpd4/Eon6JZ3WfGzvY5tJUlELOOmyNOO21Gc2Bn0ftpURd+6TZqjB 7OUjP50ra70Sxd2PVIe9IOKIAWS488sNcllGw+sznMS1mLNhwRZthouJpO5XJz+3JnBy FIRh3/VSF5mqe2tJNB0QC7yaHwHmpiEC2p3njgcCgOtSApDFBtDlwsuVdEcSYHjOzx0B QhMmUlf8/eqQbeNJdmakWoew6Y2W8TxR4xE+DSi70oAGpbT7mhrIWJ6sFom8uzpzeRZO C5I2AGi6NXgjCprG98NgXOuTLZBBP8cyrZOBi6wJcVSSPBPFVXx20KnYlJzoflJtpanP ZC8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R4JaTV0B; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n125-v6si3603813pfn.352.2018.05.11.09.13.09; Fri, 11 May 2018 09:13:23 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=R4JaTV0B; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752020AbeEKQMa (ORCPT + 99 others); Fri, 11 May 2018 12:12:30 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:35635 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751228AbeEKQM1 (ORCPT ); Fri, 11 May 2018 12:12:27 -0400 Received: by mail-oi0-f68.google.com with SMTP id a6-v6so5177022oia.2; Fri, 11 May 2018 09:12:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=068o2CK6gbBGbXmwjmp8x/ZGwd888KRF0/CiuS3Ay7g=; b=R4JaTV0B1pTABa2ACcLE8NovBwXlhFUA85jSWdUUJMq/zyo66Q9lVK0QvV20w3VkdC mbbj6QgB916728xW16yS2DMVunXyr4ZLolof5L6eXmy7duPHthN0b4dkoggwB+9NQN/a 0g/LfG+pYHz/ySXN1UopuItmoxqUCjSrkhxbua7VPBf2keFA3F1ipeQ4KRpQRxUUGngT JLS4Sg8pLmYMSP7Ae095fY8+I6awBFjmunHez+LRFnpWvnKF3g3lsz8PDLACRBCpc1fu KZqQzHq7d28eqoSz/zu0gwnBcC+zEQngA3x16LbdYkNvzuIze1nKDPSvoZQtyDopvS2W HFAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=068o2CK6gbBGbXmwjmp8x/ZGwd888KRF0/CiuS3Ay7g=; b=BEu0AabTvT/hrtLsxUdacVcg/09GGhBPUfk2VZIoNHnxJITBBucfLwEnIswIHQZ4uB 3vQK9RTZTPNDoOJJF4mSGvoaFIeIcnCTRRs73YqhB4SG3t+g/FVFi2PzxtKdIm0wIHB+ LseYOIshde/Qo+nA5ZcJqAwn+oD+MSH6sG7IveCicQOcRtNktR8b2nV6A2WXnygqd867 7uNHS0zy9jSmO398s8VLcqPdK627VS+WEzkVhYmazu2V0l1Ihj43AZVC3KMY6+/7/l19 Mf1AnnKh9ppMf66a0E3A6+4/bMOEG3w7PTD5J28jm/MUvqkYKhf1C1sa87WvIpRfTi9U ZZVQ== X-Gm-Message-State: ALKqPwdOFnzwKIIzD4KNz5QqXvvEjSjrOecDxZAuKRYdskC7cMGUce0y kjOxtIutK1kIH0fXd1rX2WM= X-Received: by 2002:aca:aa05:: with SMTP id t5-v6mr3486779oie.225.1526055146514; Fri, 11 May 2018 09:12:26 -0700 (PDT) Received: from nuclearis2_1.gtech (c-98-201-114-184.hsd1.tx.comcast.net. [98.201.114.184]) by smtp.gmail.com with ESMTPSA id u16-v6sm2286905otd.63.2018.05.11.09.12.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 May 2018 09:12:25 -0700 (PDT) Subject: Re: [RFC PATCH v4 2/3] acpi: apei: Rename ghes_severity() to ghes_cper_severity() To: Borislav Petkov Cc: alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, "Rafael J. Wysocki" , Len Brown , Tony Luck , Mauro Carvalho Chehab , Robert Moore , Erik Schmauss , Tyler Baicar , Will Deacon , James Morse , Shiju Jose , "Jonathan (Zhixiong) Zhang" , Dongjiu Geng , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, devel@acpica.org References: <20180430212836.7807-1-mr.nuke.me@gmail.com> <20180430213358.8319-1-mr.nuke.me@gmail.com> <20180430213358.8319-2-mr.nuke.me@gmail.com> <20180511153947.GC12705@pd.tnic> <56d445b2-ace3-6ee2-9699-f2a684518de9@gmail.com> <20180511155833.GE12705@pd.tnic> From: "Alex G." Message-ID: Date: Fri, 11 May 2018 11:12:24 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180511155833.GE12705@pd.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/11/2018 10:58 AM, Borislav Petkov wrote: > On Fri, May 11, 2018 at 10:45:49AM -0500, Alex G. wrote: >> >> >> On 05/11/2018 10:39 AM, Borislav Petkov wrote: >>> On Mon, Apr 30, 2018 at 04:33:51PM -0500, Alexandru Gagniuc wrote: >>>> ghes_severity() is a misnomer in this case, as it implies the severity >>>> of the entire GHES structure. Instead, it maps one CPER value to a >>>> monotonically increasing number. >>> >>> ... as opposed to CPER severity which is something else or what is this >>> formulation trying to express? >>> >> >> CPER madness goes like this: > > Let's slow down first. Why is it a "CPER madness"? Maybe this is clear > in your head but I'm not in it. > >> 0 - Recoverable >> 1 - Fatal >> 2 - Corrected >> 3 - None > > If you're quoting this: I'm quoting ACPI 6.2, Table 18-381 Generic Error Data Entry, though I'm certain they got that from the efi spec. > enum { > CPER_SEV_RECOVERABLE, > CPER_SEV_FATAL, > CPER_SEV_CORRECTED, > CPER_SEV_INFORMATIONAL, > }; > > that last 3 is informational. > >> As you can see, the numbering was created by crackmonkeys. GHES_* is an >> internal enum that goes up in order of severity, as you'd expect. > > So what are you trying to tell me - that those CPER numbers are not > increasing?! > > Why does that even matter? Because the GHES structure uses CPER values, but all the code is written to use GHES_SEV_ values. GHES_SEV_ is a made up enum, specifically for linux. Sure, the return in ghes_sec_pcie_severity() should say GHES_SEV_RECOVERABLE, but that is a Freudian slip rather than intentional typing. Thank you for catching that :) Alex