Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp961735imm; Fri, 11 May 2018 08:59:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrup5pcbfVXeiOn4kzJFLqGuPunY94BqdlzTUlV99TJZnM2V2l/leU8SK1KtNxXXPI/is8K X-Received: by 2002:a62:ce4e:: with SMTP id y75-v6mr5925811pfg.175.1526054376557; Fri, 11 May 2018 08:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526054376; cv=none; d=google.com; s=arc-20160816; b=f737BYtKQmizVSFXKneD9MrsYChXMqfSKjlUW3SZwPDLpZhwVqpHNjk0dyYjwCRuXw xxepR4ycnb+Gw2WxCtdlSU61P5f+6QdJQJYwMowm/j5q3+S9mTqZFyUuJYyW4ZddyTZR +mNQfmONSgoHnnzzVsHIOX/4zOZdnblg20hbl5bu9qGHwJVpixnQap3y6G/3ANJqlmlS X7anyTnUarr0s3B1NE81ry/OQrIHFgfpEmz4/6s3khzgO0wbQSZsdf8qPGuR9ITfkA/O trwPjc1HsZCl7KUoV7FalN0sOiEJj3XoyG6CZeEJkak6VC9pZcVsk+lDNd3IZHsLBjQv xTFA== 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:arc-authentication-results; bh=n/HDMTvxyFpfFeotp/rNtn7orQw6+s+0CuVgqjxR+qk=; b=OFrgsb0USv3L9I0yNP6Omj+qIVPIPLctHi/DGiGEwCm1kPfsQS1NupksYnKVZptDBz seVUNnlzikVYbNIJ2QALyQgdJgFXP3tizqWGrBuDrvXD6NzdCEgiMsTQo5mq+9F2samo Fko2Q1vPRCOwibXI33b055pljJNM9ftKBETQuSliVUibuMPz53P8HiF6x/KV0t2KdvgF JsoSW2uCw5JoATNm4ctQHPnN7V3qR7gfiDgELvdgfq9pO0zyLtY2BEdpLtK/wm9EFZQ1 mYEmGZG9yJPgnuhbEN7JdljNUy0PSfODtFM9W6WSJZbI90s/ltuTTLs2uYBUi5Kbl5Rz 0WJw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15-v6si3811669plp.7.2018.05.11.08.59.21; Fri, 11 May 2018 08:59:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751881AbeEKP7A (ORCPT + 99 others); Fri, 11 May 2018 11:59:00 -0400 Received: from mail.skyhub.de ([5.9.137.197]:57380 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876AbeEKP67 (ORCPT ); Fri, 11 May 2018 11:58:59 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sEmBxcgP1q9S; Fri, 11 May 2018 17:58:41 +0200 (CEST) Received: from pd.tnic (p200300EC2BCAC2007194A577202112A7.dip0.t-ipconnect.de [IPv6:2003:ec:2bca:c200:7194:a577:2021:12a7]) (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 B90E91EC02AE; Fri, 11 May 2018 17:58:41 +0200 (CEST) Date: Fri, 11 May 2018 17:58:33 +0200 From: Borislav Petkov To: "Alex G." 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 Subject: Re: [RFC PATCH v4 2/3] acpi: apei: Rename ghes_severity() to ghes_cper_severity() Message-ID: <20180511155833.GE12705@pd.tnic> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <56d445b2-ace3-6ee2-9699-f2a684518de9@gmail.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: 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? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.