From patchwork Fri Aug 4 12:00:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 9881093 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 95C9C6031B for ; Fri, 4 Aug 2017 12:02:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73FAA289D5 for ; Fri, 4 Aug 2017 12:02:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 687EB289D7; Fri, 4 Aug 2017 12:02:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 61FB1289D5 for ; Fri, 4 Aug 2017 12:02:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Fowifu/wfwX9NGn3WoHb7ErCMNUhBFTFjzL7sgoPScg=; b=aiRGyYI9HNMCbWrQOZYWiU+4iF tlZADBSFGOwWkmDVUcEEJqfMoiy793wsq4xI920KVcWJ5Mg2fGH+6oVl4bN11DqRDnw8sQqiGE5vQ 25uP5BE9ak6g4ajsFB9pWZL18EfzrTsjVXfugDWplaiV8o/kjaV+bpcnG7U6AwQRSi65RPcMxlx+L +HwL7f7eUPR9knw1iplxej/I+v7YJedn6NTTAwN/9t5ChVQvjmMBo95FDRiNBTe90nPBSiIn68Aso I4G/oUnsE9pwXX+ck3PohqDTCGnGuZF0jkW3RnHFlg2MXxtYFVn7os3rYPPTt79bSWzbUPEZZz9pm KKOOrJDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ddbIz-00041l-8A; Fri, 04 Aug 2017 12:02:13 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ddbHj-0002d4-N5 for linux-arm-kernel@lists.infradead.org; Fri, 04 Aug 2017 12:01:18 +0000 Received: by mail-wm0-x244.google.com with SMTP id d40so5435227wma.3 for ; Fri, 04 Aug 2017 05:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=lJcIkbcN4c/el6UYdj8+hkjpOD1IE8mK+LeHChiOv4c=; b=GqDF15TThvqJRluFpD8OlUXLFWqmN5v7xm60INof0qfW50bgYwupgnX1uUEQzG+KvH urQBP/Jy8alE7AsVHpWoSphYPUagZ7KIsdBF161noaZihnBmKOKTXSo6+PskLU4WLeHw jDB+xf0RW3+s6US00dmC+Wp/adIKNsxH7tZWxPRb38U3mgdkjjbtIBenLRhdBt+eYbUj XyIwwRNR1hpIQ0gPE0VD+zpmSxG7L0N6AsDHMqCT/J3rvobokO42V2psNJLhWhNzp+EI jTM+JXCMj1E+IQNDujMz8+3y+l1ephox8LaiVpuEMNYUlIFIleovUtm4e5g4Enswzw1b xQbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=lJcIkbcN4c/el6UYdj8+hkjpOD1IE8mK+LeHChiOv4c=; b=TrKZp9+9FT7kUiGct6O/Mgp2oUcfVfnFF3hut/AChse9qaFYZB2KDXUJ0Cp9vJdx/W DC7ZVo03h7zO95D8duIQPjpQVt8jNEjq/s8iZ0lZUA7FujNcn5zXidO+Ungz6K8S/cPT hr/AuNgo2ldUl3ts3LGYv4rUOkeGJd46tHlfJZjmcwffmX56Nb339FUFbh+oK0JIpe4l 3240RBe3hbNNwWBakyuFfNZi1zKihoUVoO5dAl/d19pkwkxsVcRojn2n8SYzojaGaqzJ H2/6rJng/4ysioOylUXYZ0a+M0DZZC7k+/Qie3uhfnWaPwY+y1pQqPwfbr77ahiqPPJJ qslw== X-Gm-Message-State: AHYfb5hw086GQzlzXcr3A8pHWaX36EjfdF4T2JGd+xgtH3TGmeUQLCZG a1jbHOiBczdM2R2d X-Received: by 10.28.30.88 with SMTP id e85mr1133098wme.10.1501848033718; Fri, 04 Aug 2017 05:00:33 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id w19sm6509978wrb.49.2017.08.04.05.00.33 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 04 Aug 2017 05:00:33 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Subject: [PATCH 4/5] edac: synopsys: Update ecc error message info Date: Fri, 4 Aug 2017 14:00:26 +0200 Message-Id: <1c27213cd2dd9880c49fc0f65d9c2aa44c404db7.1501848023.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <60ff19f90adfd252cf296fe8988c614c4c3e43fd.1501848023.git.michal.simek@xilinx.com> References: <60ff19f90adfd252cf296fe8988c614c4c3e43fd.1501848023.git.michal.simek@xilinx.com> In-Reply-To: <60ff19f90adfd252cf296fe8988c614c4c3e43fd.1501848023.git.michal.simek@xilinx.com> References: <60ff19f90adfd252cf296fe8988c614c4c3e43fd.1501848023.git.michal.simek@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170804_050056_471244_8ACD2F2D X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Naga Sureshkumar Relli , Borislav Petkov , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Naga Sureshkumar Relli This patch updates the ecc error message info for zynqmp ddrc. added Block number and Bankgroup in the message info. Signed-off-by: Naga Sureshkumar Relli Signed-off-by: Michal Simek --- drivers/edac/synopsys_edac.c | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c index 546adc243bca..501ef447df37 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -418,9 +418,17 @@ static void synps_edac_handle_error(struct mem_ctl_info *mci, if (p->ce_cnt) { pinf = &p->ceinfo; - snprintf(priv->message, SYNPS_EDAC_MSG_SIZE, - "DDR ECC error type :%s Row %d Bank %d Col %d ", - "CE", pinf->row, pinf->bank, pinf->col); + if (priv->p_data->quirks == 0) + snprintf(priv->message, SYNPS_EDAC_MSG_SIZE, + "DDR ECC error type :%s Row %d Bank %d Col %d ", + "CE", pinf->row, pinf->bank, pinf->col); + else + snprintf(priv->message, SYNPS_EDAC_MSG_SIZE, + "DDR ECC error type :%s Row %d Bank %d Col %d " + "BankGroup Number %d Block Number %d", + "CE", pinf->row, pinf->bank, pinf->col, + pinf->bankgrpnr, pinf->blknr); + edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, p->ce_cnt, 0, 0, 0, 0, 0, -1, priv->message, ""); @@ -428,9 +436,16 @@ static void synps_edac_handle_error(struct mem_ctl_info *mci, if (p->ue_cnt) { pinf = &p->ueinfo; - snprintf(priv->message, SYNPS_EDAC_MSG_SIZE, - "DDR ECC error type :%s Row %d Bank %d Col %d ", - "UE", pinf->row, pinf->bank, pinf->col); + if (priv->p_data->quirks == 0) + snprintf(priv->message, SYNPS_EDAC_MSG_SIZE, + "DDR ECC error type :%s Row %d Bank %d Col %d ", + "UE", pinf->row, pinf->bank, pinf->col); + else + snprintf(priv->message, SYNPS_EDAC_MSG_SIZE, + "DDR ECC error type :%s Row %d Bank %d Col %d " + "BankGroup Number %d Block Number %d", + "UE", pinf->row, pinf->bank, pinf->col, + pinf->bankgrpnr, pinf->blknr); edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, p->ue_cnt, 0, 0, 0, 0, 0, -1, priv->message, "");