Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp27129ybj; Wed, 6 May 2020 10:45:53 -0700 (PDT) X-Google-Smtp-Source: APiQypJjdGjVn+6cOIQlxL4TuIECBSY+swbIHWoDECsEpQzIfIEHsEil3ZLNGCMh3oKxtii7YxFP X-Received: by 2002:a17:906:5601:: with SMTP id f1mr8341553ejq.152.1588787153062; Wed, 06 May 2020 10:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588787153; cv=none; d=google.com; s=arc-20160816; b=JA2Ne6F9uUDI6ltFn10f3vc2rKB+HZUa4H40F+NZ837E6CfzvyP1ixtzJVAXOoWAg6 6gTtPyKal9c4nmj+Zch7yBctcNE/3IfWW5XK7BPznbQoanEEEMLFF2VRAdn/F+GOJfZk R6o2GvvGKVG6bA59eyaTTqb7VvXC7JTpvsWOkQl12ZxYHhmsEObonwGpYl02ghpTPXZh yuuzvnfR2S9VVu9yJlUQh2kRlL2Y/8L5cKt7DrSAlLbMDqb68EkwxwvPOW2gLHFMiitc 4gBkI82sfhf2QNHBqwb6vXUP2oWwPCCpqQNhb4YVTXyAd8UwyXFN7EJw22/+KunkFe78 6/aw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ibCnGgmxvil3buYipxuDS6RQC3TFjFZep532Q9XMx+k=; b=K4Ub2ZoMmsvAdlZvtMuyILG/YSqPZCprYcP6BIeeh4i5OvLpNMvuSSPEh/rwPdKHtC vbE38FvLUVjz52n+q7fSZLZSua2yK/0V7AxuEVt/t5PH+M1HJMluA4caPE48594jwWQ6 gSBmuaZj61vcIihuRdDpBcMTVaoFZlcP7fps/79Da2cTXBmkOr8UW17xoYxg/1nwlnnp 8KwX2RbmDzFvDIjQQMIHH6flN1D8NEIwOBcxmnq6xcgq0+Pph/+kKEN5/2B8Fb+SLZ+L 9sJUVPPgCwV+t/vvZguFgKFoSM83GcHHW5JVQRfMHTGt3JDWWtr9vjoGMA/Esf4MMxWM Sy6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si1515256edy.66.2020.05.06.10.45.29; Wed, 06 May 2020 10:45:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729957AbgEFRnl (ORCPT + 99 others); Wed, 6 May 2020 13:43:41 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:60712 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729366AbgEFRna (ORCPT ); Wed, 6 May 2020 13:43:30 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id A8A1480307C2; Wed, 6 May 2020 17:43:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gy1-Mn2vu5hz; Wed, 6 May 2020 20:43:27 +0300 (MSK) From: To: Thomas Bogendoerfer , Ralf Baechle , Markos Chandras CC: Serge Semin , Serge Semin , Alexey Malahov , Paul Burton , Arnd Bergmann , Rob Herring , , , Allison Randal , Greg Kroah-Hartman , Thomas Gleixner , , Subject: [PATCH v2 04/20] mips: cm: Fix an invalid error code of INTVN_*_ERR Date: Wed, 6 May 2020 20:42:22 +0300 Message-ID: <20200506174238.15385-5-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20200506174238.15385-1-Sergey.Semin@baikalelectronics.ru> References: <20200306124807.3596F80307C2@mail.baikalelectronics.ru> <20200506174238.15385-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Serge Semin Commit 3885c2b463f6 ("MIPS: CM: Add support for reporting CM cache errors") adds cm2_causes[] array with map of error type ID and pointers to the short description string. There is a mistake in the table, since according to MIPS32 manual CM2_ERROR_TYPE = {17,18} correspond to INTVN_WR_ERR and INTVN_RD_ERR, while the table claims they have {0x17,0x18} codes. This is obviously hex-dec copy-paste bug. Moreover codes {0x18 - 0x1a} indicate L2 ECC errors. Fixes: 3885c2b463f6 ("MIPS: CM: Add support for reporting CM cache errors") Signed-off-by: Serge Semin Cc: Alexey Malahov Cc: Thomas Bogendoerfer Cc: Paul Burton Cc: Ralf Baechle Cc: Arnd Bergmann Cc: Rob Herring Cc: linux-pm@vger.kernel.org Cc: devicetree@vger.kernel.org --- arch/mips/kernel/mips-cm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/kernel/mips-cm.c b/arch/mips/kernel/mips-cm.c index cdb93ed91cde..361bfc91a0e6 100644 --- a/arch/mips/kernel/mips-cm.c +++ b/arch/mips/kernel/mips-cm.c @@ -119,9 +119,9 @@ static char *cm2_causes[32] = { "COH_RD_ERR", "MMIO_WR_ERR", "MMIO_RD_ERR", "0x07", "0x08", "0x09", "0x0a", "0x0b", "0x0c", "0x0d", "0x0e", "0x0f", - "0x10", "0x11", "0x12", "0x13", - "0x14", "0x15", "0x16", "INTVN_WR_ERR", - "INTVN_RD_ERR", "0x19", "0x1a", "0x1b", + "0x10", "INTVN_WR_ERR", "INTVN_RD_ERR", "0x13", + "0x14", "0x15", "0x16", "0x17", + "0x18", "0x19", "0x1a", "0x1b", "0x1c", "0x1d", "0x1e", "0x1f" }; -- 2.25.1