Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp111214ybg; Mon, 8 Jun 2020 17:55:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK67Csv3dIMip6vJ304qdd+1P8Gil1SacqNLaGCjgo/j2eHaP3Wuu1Wc10fKENvjjH029Q X-Received: by 2002:a17:906:4a4b:: with SMTP id a11mr14591828ejv.486.1591664122962; Mon, 08 Jun 2020 17:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591664122; cv=none; d=google.com; s=arc-20160816; b=fVFK6UyVLZvEYJK+v3BorSaHPMoN+dHey4rY7RD8fiim2+e0uxCW4KHdSShka5LMQx nqK52qoNvyQooohsEPaHnnZZBSRZY8GeRb3C8+Cl7m89KeWPyK/maRlLlarujov57WKh jYoJuovXJALkwSHVjUpqZYmWyXm6+HBL6EHo5H16nMFDEbVMaDzWexESYT0Wrrjz0/6d SQjiq87GgEYKn1RGE6gAZhlMHbTdVYcC6So2YZh+U46dit93S6eaIoOshiqGxDsMhPxP k79SS9p9fRfpsSY2hw/XvHpeAcbT4YpT0+sWhbVFFYdpYTQfgvem++hzFx1b2jiherk3 Id3A== 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 :dkim-signature; bh=9I90o8kPux67atvEDySdsRUYMDKCoYEsgUjOjPTBMA0=; b=Ej7Z10+OXveMXx2ECmZqpmP7I9CEDuy93YDVcQxUk8ASe6GOZRAmUxsu5dOWPGob6K ScKr6bKkXSPUtElTvv3ncsoBnh+yIUfdlFkJhN4uTqb1w0z1K2/xJnMMHVl/tcNzrPtQ Flz/Xy5nu2ezTK1sPjcL7juJxaatRY8Lybi2zJc4chW8rdh3bttEe9kKp2xhV0r0mXda bIpsUJserH3xeCF6jI2XXmnXttpNTpQDHmSgJ5sxAd2CpvQP+syKk3g/dBtWCkv445pH RwjM26a3WjcAO6VDcJZV7x48DvChLwYp6vOe5D1ndQ7ciOaHnLNKOdmjWcbT6m5ZKhoB 2Zrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="2MPO/xMa"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc12si10067739edb.348.2020.06.08.17.54.52; Mon, 08 Jun 2020 17:55:22 -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; dkim=pass header.i=@kernel.org header.s=default header.b="2MPO/xMa"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733277AbgFIAxE (ORCPT + 99 others); Mon, 8 Jun 2020 20:53:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:55770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbgFHXJw (ORCPT ); Mon, 8 Jun 2020 19:09:52 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A6C3C208A9; Mon, 8 Jun 2020 23:09:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591657791; bh=8M0BVirU0WrdSQ2GntXLcUZw8QqQhLkv8Jmputer5H8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2MPO/xMadygj3Oucc7Z/n43f5sfGEuxRZ5gQtpY5eOddO0RouDKD7LBQncH8/0R7A TvmrUP2B3PpZBO5ks9WnBnRdJPpEoZTOJ/h2yQsSVdoiOwypztygig4o09g1XZhp11 KzR+fmnrGAsVod9KrDmIaSawTu4E2RD88ZbFardY= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Serge Semin , Alexey Malahov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , Arnd Bergmann , Rob Herring , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Sasha Levin , linux-mips@vger.kernel.org Subject: [PATCH AUTOSEL 5.7 171/274] mips: cm: Fix an invalid error code of INTVN_*_ERR Date: Mon, 8 Jun 2020 19:04:24 -0400 Message-Id: <20200608230607.3361041-171-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200608230607.3361041-1-sashal@kernel.org> References: <20200608230607.3361041-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Serge Semin [ Upstream commit 8a0efb8b101665a843205eab3d67ab09cb2d9a8d ] 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 Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- 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