Received: by 10.192.165.148 with SMTP id m20csp616143imm; Fri, 4 May 2018 16:33:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoHDcaNnaAJzajBa3JY/Yrf/sfGtWutNSEjae9hIKRNVML7Arn29RaOL5Lieg0GEY2JD8Ga X-Received: by 2002:a63:7352:: with SMTP id d18-v6mr24381592pgn.52.1525476815844; Fri, 04 May 2018 16:33:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525476815; cv=none; d=google.com; s=arc-20160816; b=e3kE7x8vU194Y9n2NFO+HIuHxD0iEQrYVazbPc8Zb6r2/vKa1LeCiOxqiv2MsDVVz7 pYqrxP158qBSwyHtolNrln6qarH8e8v4G+w8Kzdac00ppLKngGZ0rMFpZL18ZzXrMvMD quYmjqpZhw37R28L1Ckt6d65luZdHjp6N7wP7GsuFACl9hRdMaJyBJOAR8OKsBlXW3UI 8uUaoVBTlGnBhB9QCOu31szfKpzP26ixxnbWTqpGv6fJM2TBy6LQH35qhC8ZThHACBwC xJkpj1/XqvDjxDe35tqA22izm3aKfnZOoecPWHfdhHZuNJrDcnnz1Ww8iyGTljGtO4VX 9BDQ== 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=Vt5XoQf7H4fBkGncsgDH1GgrclJ1EF2ucCoS0QRWTtA=; b=TdPS6y4NbgbKOwuRCrIUPGf6LrBfUF840jDk2liHSVeU91++ReyGogSTLXVq2fCIuU rQdRSIIFBizAop3j16PfHOM95+/NcDAoEGp7NU3u9PxK9u5Jv/klU474UpTC+l8Fpbyn 1D/hKujoBKkMBNSx6PjEGtHl8fgHu+2LYjmm6ruh1va31YgNX6HTxrmM6vC2Z0n6+H85 DHNhfx2JbISc1T5uIN+Yh6CAxWgsOzFZLWmIaYtaqQUGxMMzWHdi8wwhlca7yegDYB0C qYsaCMi+pVHJNkrTxOLMRqqKB/M+V8COMO1iqaIdnWhI3XZcV6o2SSsB+gEy25P7cNT3 WTaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dVbutFAk; 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 b3-v6si17364354pli.0.2018.05.04.16.33.19; Fri, 04 May 2018 16:33:35 -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=dVbutFAk; 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 S1751789AbeEDXdH (ORCPT + 99 others); Fri, 4 May 2018 19:33:07 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:34711 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751687AbeEDXdF (ORCPT ); Fri, 4 May 2018 19:33:05 -0400 Received: by mail-ot0-f193.google.com with SMTP id i5-v6so14617367otf.1; Fri, 04 May 2018 16:33:05 -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=Vt5XoQf7H4fBkGncsgDH1GgrclJ1EF2ucCoS0QRWTtA=; b=dVbutFAk7oNIk8vIGzpAuRqZHJfKKnhp2PoU8Jo9pIgbbJBvabhFY+Opt3UAMW7XpY zu94n80l9UbrXGr4S7mflzL+93mKcsLz6SM16bkqLXuhzjHZq0PlB5uryyRPtFC/rQyl vaGVqDmxsgoQ4rSEj2m0BrQHfY0KKbphV5Oi4kDvRiM4c9YLNN8zXzZEw6d3WdyJKI4x fyrghGJYKClUOLdzz45Ll+KLCfzsbiTSDp7c2SoS1JBVLofvhsT8o6osv7UN27MMtwY4 lz/t3xZNVDcchtUsQdvM18zeLY+6V2ZesYvx+Eq94kv3GbBmnUDNsmQUqm6izb7rniYu uEtw== 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=Vt5XoQf7H4fBkGncsgDH1GgrclJ1EF2ucCoS0QRWTtA=; b=qt1QFeGHvmcQ591H4ixqHuumZmX52Cf3kVbDxntZtMobKklXCjVlEv4r0vS1TjkZt2 vQMaDhyU/gejto0j/yMEmirje0L8eRFrqgH+nrQFX7IRjGWU9VEzrv7+IzVpV5qY1HMy gE92y4ux6/ffUnoxta2ehN/5ClFdU09k1TNYdebI//zp0jeGQr+imx9YGNjIfoRlZ47X KWHxjH5Lha/z5wO72hKdoyQtrgXHdXnhkEYpd3peyIbNrUQeuOn4Ut7iyQLKHtBoSCWd sAfrAISzCRUl5N2gaVNddBMLOxLFGStzpc2/O8rmhUB+aeglATUyvvIuA+4TCx3peX8+ fJ/Q== X-Gm-Message-State: ALQs6tA0UbkQ7RRJE9eEjHQql8cT0h6Qa8NQs/GKg4SdZLoa7Zq8HL01 HhQManHQqtoGUKVxtU7sdWs= X-Received: by 2002:a9d:491d:: with SMTP id e29-v6mr18877438otf.35.1525476784979; Fri, 04 May 2018 16:33:04 -0700 (PDT) Received: from nukespec.gtech ([209.54.84.25]) by smtp.gmail.com with ESMTPSA id p72-v6sm11312443oie.33.2018.05.04.16.33.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 May 2018 16:33:04 -0700 (PDT) Subject: Re: [RFC PATCH v4 2/3] acpi: apei: Rename ghes_severity() to ghes_cper_severity() To: Shiju Jose , "bp@alien8.de" 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 , "Jonathan (Zhixiong) Zhang" , gengdongjiu , "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> <86258A5CC0A3704780874CF6004BA8A64EE2C974@FRAEML521-MBX.china.huawei.com> From: "Alex G." Message-ID: <796c5f59-ec98-0fca-a9de-012057506843@gmail.com> Date: Fri, 4 May 2018 18:33:03 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <86258A5CC0A3704780874CF6004BA8A64EE2C974@FRAEML521-MBX.china.huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed 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/04/2018 06:56 AM, Shiju Jose wrote: > Hi Alex, Hi >> -----Original Message----- >> From: Alexandru Gagniuc [mailto:mr.nuke.me@gmail.com] [snip] >> -static inline int ghes_severity(int severity) >> +static inline int ghes_cper_severity(int severity) > > [...] >> else >> ratelimit = &ratelimit_uncorrected; >> @@ -705,9 +705,8 @@ static int ghes_proc(struct ghes *ghes) >> if (rc) >> goto out; >> >> - if (ghes_severity(ghes->estatus->error_severity) >= >> GHES_SEV_PANIC) { >> + if (ghes_cper_severity(ghes->estatus->error_severity) >= >> GHES_SEV_PANIC) >> __ghes_panic(ghes); > > PCIe AER fatal errors result panic here. > I think ghes_cper_severity to be replaced with ghes_severity in the ghes_proc function as well in the patch > "acpi: apei: Do not panic() on PCIe errors reported through GHES"? Hmm. ghes_proc calls ghes_do_proc, which is not irq safe. So the entire concern we had in v1 about deferring to a less restrictive context is moot in this case. ghes_proc is related, but a little beyond the scope of this series. I'd love to fix all cases, but I'd prefer someone who has specific interests take ownership of changing ghes_proc. Alex