Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp990249imm; Fri, 11 May 2018 09:22:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoriyY8/fVoACcoI+UqSfPuSGu1j/tn2EJSDuaDEKolHN2DKOOg87w9H9nR6h9TiYYm85sd X-Received: by 2002:aa7:8305:: with SMTP id t5-v6mr6151005pfm.198.1526055732702; Fri, 11 May 2018 09:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526055732; cv=none; d=google.com; s=arc-20160816; b=NZ9J9GGT4+0xLdAog7VlBV0vKVvlQLKQYeOJlYWkekG9aUkENXZCCIU4schx6oefOO ZPcDFZJWjsgqP1phvJxglI05IpxMSX58YWs4x6Scu5nivL8ZwX3j5i312vN2ZkozmbNS RSOOQKK3Cfox4kWYnaSLVm4DYTMhv+1TdhovsAMCJmacDdz3hsOWVfZrxJrxFsfFu3so cXVVMuIOQ9u0CZknP2WXico+n3VPMU7/A3Ybo+W7mscAPEEUiDz7HJyD7BALqi0lGxS9 MKyDlnKhQTFj7OyET4ouBtxS6unJvReYVdR6JOWyuj23fwAckgyu4NgJlhVcLHR5Hy/7 rMig== 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=ditcIn1fRBj9+P0Ft/Bi8dwuP7dewkjhiGilqKgiHLE=; b=lfCMlDJIrbar7beEhzFwk6uPnH0qujPS57jEM2aCkfWzRTdLN2DI+kboUAMhwp2Q8b 15EdCEH0t5YmvhK1x4Ll37QOuueZGaMgyNBjgRnQSU54H+Z2AcOHl/GKwzLyVM/7MowR +KiOz60uvOa8FYcOWiAL9O9t8Bcnjm75rHZeqrFYDGqA+w3zIRiAvC8kyRr1XBMX6Zq8 qvonn8KXzk2GrZ9QHejqjhRALu2acddpEzW/upKtdXD6Q8jXt4R4FcoM/VZEviaF0iPV UXOYVCtM8VXnMteTvSB7fn0N2ao4SPnW9gB+NaVm/Q9HmNSlpLksaI86so22zVp3WGeK BRkA== 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 a15-v6si2749498pgd.531.2018.05.11.09.21.57; Fri, 11 May 2018 09:22:12 -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 S1752062AbeEKQUH (ORCPT + 99 others); Fri, 11 May 2018 12:20:07 -0400 Received: from mail.skyhub.de ([5.9.137.197]:58154 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859AbeEKQUF (ORCPT ); Fri, 11 May 2018 12:20:05 -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 FawofPeXsXho; Fri, 11 May 2018 18:19:48 +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 34B121EC0609; Fri, 11 May 2018 18:19:42 +0200 (CEST) Date: Fri, 11 May 2018 18:19: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: <20180511161933.GG12705@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> <20180511155833.GE12705@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 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? 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. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.