Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17893790ybl; Thu, 2 Jan 2020 14:15:06 -0800 (PST) X-Google-Smtp-Source: APXvYqw23IqKVpaPmQK5dN+3LzMO0fZBpFTFjeyUZwx9D/Kraugs9+HgQ90ftMVJlaERVjLqPk5Q X-Received: by 2002:a05:6808:a8a:: with SMTP id q10mr2926891oij.66.1578003306213; Thu, 02 Jan 2020 14:15:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003306; cv=none; d=google.com; s=arc-20160816; b=vICUbgKgQhkJBsE0EbkHjB+6CP+a397GPChfgdiBrscaWv4aLrD9UoqLp2M7mfjkuN PwBvjSl2BhooGGZkAZkaZ5aJgNWzaUlMq6nZHEJpYbwFOGR+1zNqJDJJcgS0i9buB8Hq AlZvH4wkXAITUVphx98Dg14sfSYPKr3S2Ov8kJKJcS5pgeuBhQWTuHtljhML9WQhm2y6 aWhMFSQNMzTqTpQJKnv6L9LlCPalXi29L8QpM65geMcuK/9a45lg4F1TBCbz66ivj0P9 FeAzLTb29KmmHdQ9drAAJA+VarPi/RvWlysh0YVeG5KuM4q2FLqOtGeSGGkfk+cnesxd L4CQ== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6K76kvu6w34LHJi/cvAe+0ZzHibxbjf8NXzrSW93td8=; b=lpaggrwgxFMhfjU7OgX8BbxSbILoxmGRBC8iotxGCI5w9l7XSZb7IJ33Feb1r4AnhU I2XU42dV2tixoa6UusUflTLd93oLBE5a8vS/7DHXBdl1vLpEFhMfViLx2gfADw1rFVnE Syo1DZ0GMIjBQUgxStqKiiOQ76k+ZJsJV/FDpYCkHB5yNW/8/pQ58A02x2cXjdFXp8Nw HjCvmPh4vSsIQFCHp4H9uKS/4bZcSxcOyY+k7F4jfVavoi0EA0jg6ngYmlHuZb4jAryo jQ3oNACvoqp3IaVxHRgfnDahmcI2QHq+aaUA+sDUpLmrKCjlXzYMqdI5FF37sqtJf/xC nNFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dmDxazMw; 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 u127si21245423oig.71.2020.01.02.14.14.54; Thu, 02 Jan 2020 14:15:06 -0800 (PST) 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=@kernel.org header.s=default header.b=dmDxazMw; 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 S1727754AbgABWNo (ORCPT + 99 others); Thu, 2 Jan 2020 17:13:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:53626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727750AbgABWNk (ORCPT ); Thu, 2 Jan 2020 17:13:40 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F319022525; Thu, 2 Jan 2020 22:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003220; bh=3Qa0uTkqnfY4GO23SXOVCD7Sy8mhDYu9wApa37BJccE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dmDxazMwNhzkoJIXtPVDdelKgk/VP/VXqi8MyK0uUZpo9HcJJBLZX8aLO4W5myF5j fz+jcmMyIqjJVQvWw6nt6a139h/j/O1DGREuKtKYWu1A5Ay4J2Ekwo5N9YNJlkIPVn mWS/35kx+eCaF/HQVueaEcODV5A8dGMcf/MOBTxI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sam Bobroff , Michael Ellerman , Sasha Levin Subject: [PATCH 5.4 070/191] powerpc/eeh: differentiate duplicate detection message Date: Thu, 2 Jan 2020 23:05:52 +0100 Message-Id: <20200102215837.427405144@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102215829.911231638@linuxfoundation.org> References: <20200102215829.911231638@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sam Bobroff [ Upstream commit de84ffc3ccbeec3678f95a3d898fc188efa0d9c5 ] Currently when an EEH error is detected, the system log receives the same (or almost the same) message twice: EEH: PHB#0 failure detected, location: N/A EEH: PHB#0 failure detected, location: N/A or EEH: eeh_dev_check_failure: Frozen PHB#0-PE#0 detected EEH: Frozen PHB#0-PE#0 detected This looks like a bug, but in fact the messages are from different functions and mean slightly different things. So keep both but change one of the messages slightly, so that it's clear they are different: EEH: PHB#0 failure detected, location: N/A EEH: Recovering PHB#0, location: N/A or EEH: eeh_dev_check_failure: Frozen PHB#0-PE#0 detected EEH: Recovering PHB#0-PE#0 Signed-off-by: Sam Bobroff Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/43817cb6e6631b0828b9a6e266f60d1f8ca8eb22.1571288375.git.sbobroff@linux.ibm.com Signed-off-by: Sasha Levin --- arch/powerpc/kernel/eeh_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/eeh_driver.c b/arch/powerpc/kernel/eeh_driver.c index d9279d0ee9f5..c031be8d41ff 100644 --- a/arch/powerpc/kernel/eeh_driver.c +++ b/arch/powerpc/kernel/eeh_driver.c @@ -897,12 +897,12 @@ void eeh_handle_normal_event(struct eeh_pe *pe) /* Log the event */ if (pe->type & EEH_PE_PHB) { - pr_err("EEH: PHB#%x failure detected, location: %s\n", + pr_err("EEH: Recovering PHB#%x, location: %s\n", pe->phb->global_number, eeh_pe_loc_get(pe)); } else { struct eeh_pe *phb_pe = eeh_phb_pe_get(pe->phb); - pr_err("EEH: Frozen PHB#%x-PE#%x detected\n", + pr_err("EEH: Recovering PHB#%x-PE#%x\n", pe->phb->global_number, pe->addr); pr_err("EEH: PE location: %s, PHB location: %s\n", eeh_pe_loc_get(pe), eeh_pe_loc_get(phb_pe)); -- 2.20.1