Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1034616imm; Fri, 11 May 2018 10:03:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqOUYQKCDeyCedG631KNnHXrhUqobfrjQcC+SZdwnBGZHRxKLKnmdnBw44Y1Ks56eM3ddYu X-Received: by 2002:a17:902:20eb:: with SMTP id v40-v6mr6201941plg.277.1526058229449; Fri, 11 May 2018 10:03:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526058229; cv=none; d=google.com; s=arc-20160816; b=LO7YsAD7cJxW6IsmAbjF4GJNtfytUSDCrvHb0Z78Pd2hObmCcCmYtkYvXQLRAYp3pR awdu8EE/kG68e7R1AtBShdfZKy2O3+3mO8ToOFwasLTmHeKj+6RrBjrtG2S+6aIuoE1a QcxTy6A2+p4RhOkRDS7h9eBc+AM4pKqCtzbJutoex/+wt2ijk5F4alpZf7T4ScEDr8qT QeGUWpHZgJTxlgIOSz9MYTh4/8e8vIoSqRi2FiesjceBotjcCDeeKljX2L8hO1etZk10 Z5pa9X7n+nHccm5ANyJ8Z1/xy6sQVa8yufyLknL9k+OrFeAdRm6IRebrJZ2dByLH8jKd uhuA== 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=r+YRZASIe9sR9E9UzrSdHDjwmq0y9FLYcFTUtY1j2gQ=; b=HlJ8WPGZY2HJQDn+LOOfU9gWKuqqEgVOMBTEpWk8Fg1w6LJGwYZrjNQ4EAxxmZH2zT BCORvUh6v78HodQ2aJy78n9IDPDohH8TRjoSCWZ+ye038jQsVJf07k3J2iA2JOfsGQuy VS8KPt+8LDMh/aTDG0FrzwS5MImoSUr+hiMTWPUxoGiTzwwa0GV7eR358hYfWLnwmzfA zsiGRyB/au0b9fVYlcKKb7s7Nmu25LfT85OfpB7W/gJngSH7Ty/4LBXmQAbChwf2Qj2/ FPmcmt6R0U2D6Dv2zTvvq0SP0iMelzv0/UIRLfQcU7Pk8K+WCw1nqrIfCzFd0QSgjapO 1Gmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KiTgYSr4; 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 a8-v6si3449253ple.222.2018.05.11.10.03.34; Fri, 11 May 2018 10:03:49 -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=KiTgYSr4; 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 S1751438AbeEKRD0 (ORCPT + 99 others); Fri, 11 May 2018 13:03:26 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:36809 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876AbeEKRDX (ORCPT ); Fri, 11 May 2018 13:03:23 -0400 Received: by mail-oi0-f68.google.com with SMTP id v2-v6so5310491oif.3; Fri, 11 May 2018 10:03:23 -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=r+YRZASIe9sR9E9UzrSdHDjwmq0y9FLYcFTUtY1j2gQ=; b=KiTgYSr48F6k0zihda+HWGua2GUraON6tX+bxcqJEhMfo5gl4NGwaLCl0rn7wTHC5U o4XaxV6t+a/pl+6xXG8CB/pr0ZtfZYma+w8crxrDCqgTL+EnJfDfxZSnKz5hVgV+6PGE kFsck2DjMfQeAQ2jHRPVDNacz3ouaVOvR+wxn470Qdqq6jJdBZQmv8YAHZxqtffJ+DaI ErYa7ULwxXdxLHnMqISC/4aDzWPKCyJy+S56ngkRdEa6qD0nj6B1gnerjUENoTRFXFJ5 RwkJYXnMnBSjLavvjSLtXaoIju/n7fCpjJ2f1VLd61ICrbKFfIzwLRMj8aawu08LMAsY DNog== 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=r+YRZASIe9sR9E9UzrSdHDjwmq0y9FLYcFTUtY1j2gQ=; b=EPRV1Zk5GBGB2j7O3wIGJ7LpDcgOIrOVNb5Ta32OoYNIO7cYRY75UO8PswVtGGtkeU DIg857xRQPNPRI5KXdGyAW/2H/wvfPadB5urHD3NiQpOCa6VRxOXBL0ay3Nza8RwM9MS bA1l3K0Sc7xSFBFh7iMcL7D4sw2oQZer8D55WkLL1D7cOl/eH3UkMognxOQ++AGqra1Y y45nb28W2QTCpE+nitmQ2Z+Dk0wXUCWhYybzJXUW7gu15htP+PXaQxiDQgLwK12+hi36 i35/fMKxSWEsKPHlmIbMW84MolB1+o4PiiY42Uvm+D9z84SXGIjLwgjRILikN+2jtClB MEUw== X-Gm-Message-State: ALKqPwfFxfmAA2Xx4LCTVgtaW4O0VWIHeOp0t7hvi9ptrzh10gB6n+fX U9FtgRN/Z25cKEd5hlZTZC0= X-Received: by 2002:aca:4cc:: with SMTP id 195-v6mr3798467oie.275.1526058203214; Fri, 11 May 2018 10:03:23 -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 x192-v6sm1841334oif.48.2018.05.11.10.03.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 May 2018 10:03:22 -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> <20180511161933.GG12705@pd.tnic> From: "Alex G." Message-ID: <70c2b5f2-ec54-da9c-4ab0-1ff22be9a142@gmail.com> Date: Fri, 11 May 2018 12:03:21 -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: <20180511161933.GG12705@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 11:19 AM, Borislav Petkov wrote: > On Fri, May 11, 2018 at 11:12:24AM -0500, Alex G. wrote: >> 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. > > Again, what does that even matter? I will shorten the commit message. > They're defines in both cases. The *actual* value means shit. > > Ah, I see it: > > ... > sec_sev = ghes_sec_pcie_severity(gdata); > > worst_sev = max(worst_sev, sec_sev); > > > Yeah, no, you can't do that. No apples and oranges comparisons. That was a mistake on my part. Despite my godlike ability to produce great fixes, I am, in fact, human. Alex