From patchwork Mon Aug 7 07:39:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 9884575 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 49053602CC for ; Mon, 7 Aug 2017 07:40:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B26628592 for ; Mon, 7 Aug 2017 07:40:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FD9A285C4; Mon, 7 Aug 2017 07:40:06 +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=ham 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 A484428592 for ; Mon, 7 Aug 2017 07:40:05 +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=S70dLau43bSNvrrYttsgS0XfhgrKm6BZvMgVG2/jiQg=; b=gF8e95itm1cGeJbjFdGjrEXViz jrHCzbY2sPIpbgQtCarNL7unhkmPZJjIcCHzo4lbR75J0obOWAk+uknkcM1w3zLqJ4x6vKZMfUkxm bv9U+zPpp49cBHqZsiR0K0obVtxEvbHyqazzXDleCxU2gW2rCxBN1J77UdjlrzfR7zDfh88ZeKEK+ 0SEktdWGCn7VLaAhO8e4HGSrA9FA/MfyHBxNN6TfRwcNn9SDRTJYmFy92SlPkCPXGTMDGCtp4Znvo uF0LtTzly4F8cI3HH8i7f1Czomfg8JQeTC3DqnDK00Ew4XVPpNv51V2rjXt23XcijKkuM4O5UIEZm aIyKXSAA==; 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 1decdu-0000Mp-2o; Mon, 07 Aug 2017 07:40:02 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1decdo-0000IP-LV for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2017 07:39:59 +0000 Received: by mail-wm0-x241.google.com with SMTP id r77so46535wmd.2 for ; Mon, 07 Aug 2017 00:39:39 -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=Cc2sM9D5CGXCHRfBFrrGTfN77Em8njtQVltzvVJfseA=; b=C3G0hjEQkud7QXkKAAkQ+QbZQT3JHd3xhXmfU16Zepfy4BvzcZV+u77xr7b3L2xwdw 32QX6zlogsfAFk7hI/3rtSsBhpSwflI4yDl+Xx++xKg/fC9BbiOBB44NCG3NMLPpH/9o 0gFWrVW1vlY8ZmfOJoWd7iYNBnLqj5SbIKiZxKTirBVGfbUIuJ0wiLvtUk43COfyiVhU RyqBLPmA+dt5n+Jg/+lNtVOlKNe+yDsix8ZkiQFNfWOo5KA2DrIW98wjgAVe6daZYQV/ JIFCGe35JPC1inqpUl1jAUGQtv8QLL43nP9FQOqUkhWoIc3/6IChogLVHUcJcJuR/cKw Wm9A== 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=Cc2sM9D5CGXCHRfBFrrGTfN77Em8njtQVltzvVJfseA=; b=Y29EbvtXKTcNSkpVE/UJAPXSfTd5YPXt6POyIfLWNf/FQxOMN3arR+4otmP8hNEfpr MKi/kd10q63lm6N//4vH3NITRZvy6BXAbMICIPjKtoghy+fBuDXrudkdLDPYBHJtA3gd VbOcQJtgbhP8QmRQglrvFghdv03OS3JA6XheOEELESw6doeSdzWBYminJvAHgJHwS1Oy kpsk+4ucuiqO4GXChmw3YtV3GVtqBZjTVMKutdFjZuDnFcbUOlA6yrK0QIZK0LV9att5 npTCnvotUkkbOjMQ97m0t8MEub4VlXdRksBSYFelTxG6s4vgay7ogDA0+4coI4tuPU4R lAiw== X-Gm-Message-State: AHYfb5iIXFHYHoO6NTAWx1ZHY4iSdYk/PbQRUlxtk2Qu7FvdiroHyrYR zJNBF0+LPLohcf3A X-Received: by 10.28.57.4 with SMTP id g4mr15732wma.170.1502091578743; Mon, 07 Aug 2017 00:39:38 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id n22sm7315686wra.30.2017.08.07.00.39.38 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 07 Aug 2017 00:39:38 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Subject: [PATCH v2 5/6] edac: synopsys: Update ECC error message info Date: Mon, 7 Aug 2017 09:39:27 +0200 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: <91fd6532076e4c905b5a228d852bba4941c54a28.1502091561.git.michal.simek@xilinx.com> References: <91fd6532076e4c905b5a228d852bba4941c54a28.1502091561.git.michal.simek@xilinx.com> In-Reply-To: <91fd6532076e4c905b5a228d852bba4941c54a28.1502091561.git.michal.simek@xilinx.com> References: <91fd6532076e4c905b5a228d852bba4941c54a28.1502091561.git.michal.simek@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170807_003956_955471_CF8BCDB8 X-CRM114-Status: GOOD ( 10.25 ) 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 --- Changes in v2: - s/ecc/ECC/ in commit message 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 4cd9e3d8161c..24490334a4f2 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, "");