Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp504439ima; Wed, 6 Feb 2019 03:53:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IYCj7jZ93UszbH5VoKcFUc5lOh13i50/LgFQUYNyy7ePaMP19xXcnYAoPTQLi2eSbYsLhd4 X-Received: by 2002:a17:902:a411:: with SMTP id p17mr10216182plq.292.1549454028204; Wed, 06 Feb 2019 03:53:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549454028; cv=none; d=google.com; s=arc-20160816; b=Ng/NAAbAZTc/4VpK848rFIyIdFzS1eUsCgsqTH8MfcWxpExjMej1V4S13ye3MPEe3X GM1/ZqZQD0bWLo5niBPU0TYMTPeLGu4cEof/SF3OR4xD7EBK+F1Iw322XMbVakac6O7t TE5/vuJsNrYTiduTgOVwi906k3X4JT063yBKAyoZf9kBIJ2u4N81OKcB7yatcmKQWI36 kRe7HiYgMgqLr64mqwGXeqlk0aoY6ngsNJ19Jf5oWgWUysaJzzApjzMGilnztll0HU3t rYBt8BgIPPMzA0tMzBs7mzr44wDGgTpUnC3Tk1iXJkOpJ0U4m8IzZtDs05DN+qj7i38V sOKw== 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 :message-id:date:subject:cc:to:from; bh=K0MOgZikZIKhIsp8Ctjrsnr3TQvKR5KHhnkB32NPPMQ=; b=0OXcHOHghfwWQRVjwFloDL4jkKMpI2GPTw8ZqNuoT5q+HQCC4MC5pK+O+5LbrmvHLF e93qTK5czjJg+fouEBOXzc2XGO5ISH77sBuESfyeeayVSIT/lE8qBs4B0DN3zS+iP+i/ /5QkInCOap3Jg35qdX4JmClgPWHoo9DKXzTymsR4E3lmVO3TAUMHjYOhK5yMtqqYSMV+ DONkkpUTLFTB7mpZlkRc7XXFJ92t0GL2AyhYJXCtpMroe5MPqeavglksXAoI7IeQok0G fv0l0qcYpoE5ZYP4XyoQd927a7psznmJntnG9xBq+DceD5NMhw5aWeuwkTP6rkQ3E/RB JK8A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l185si3316531pgd.253.2019.02.06.03.53.32; Wed, 06 Feb 2019 03:53:48 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729620AbfBFLej (ORCPT + 99 others); Wed, 6 Feb 2019 06:34:39 -0500 Received: from mga07.intel.com ([134.134.136.100]:21162 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726598AbfBFLej (ORCPT ); Wed, 6 Feb 2019 06:34:39 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Feb 2019 03:34:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,339,1544515200"; d="scan'208";a="122389185" Received: from cvg-ubt08.iil.intel.com ([143.185.152.136]) by fmsmga008.fm.intel.com with ESMTP; 06 Feb 2019 03:34:35 -0800 From: Vladimir Kondratiev To: Ralf Baechle , Paul Burton , James Hogan Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Kondratiev Subject: [PATCH] mips: cm: reprime error cause Date: Wed, 6 Feb 2019 13:34:13 +0200 Message-Id: <20190206113413.23566-1-vladimir.kondratiev@linux.intel.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Accordingly to the documentation ---cut--- The GCR_ERROR_CAUSE.ERR_TYPE field and the GCR_ERROR_MULT.ERR_TYPE fields can be cleared by either a reset or by writing the current value of GCR_ERROR_CAUSE.ERR_TYPE to the GCR_ERROR_CAUSE.ERR_TYPE register. ---cut--- Do exactly this Fixes: 3885c2b463f6 ("MIPS: CM: Add support for reporting CM cache errors") Signed-off-by: Vladimir Kondratiev --- arch/mips/kernel/mips-cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kernel/mips-cm.c b/arch/mips/kernel/mips-cm.c index 8f5bd04f320a..f54ba99dc7d9 100644 --- a/arch/mips/kernel/mips-cm.c +++ b/arch/mips/kernel/mips-cm.c @@ -457,5 +457,5 @@ void mips_cm_error_report(void) } /* reprime cause register */ - write_gcr_error_cause(0); + write_gcr_error_cause(cm_error & CM3_GCR_ERROR_CAUSE_ERRTYPE); } -- 2.19.1