Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp507008ima; Wed, 6 Feb 2019 03:57:10 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia052aw80tGYdaOByy9wm9r2Sb3n+Cwb0X1tlKjqvbvuwR9YrEmrZ82g429+QwdURyH96Gc X-Received: by 2002:a63:e4e:: with SMTP id 14mr9139169pgo.89.1549454230445; Wed, 06 Feb 2019 03:57:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549454230; cv=none; d=google.com; s=arc-20160816; b=jVNnBhcigZ0YqzAVdoFW882VByYhOEYrzAOzP4V6EKVc+yu0j/7qnYQUKqkIdrh/pl WV9N4sc7w7IlnVERhS2VVdEG0dh1lkboJe4HZPf1dLCf7h5kDtpOIY49Zl/UNsRVHeeC F+5TvcGoOzeU2zCbFaf/fD01e3TYq/TFaynD/jIsyKM+g+EdVYiH41Oqm8y/gY25Boyb YY+2LeQ5urMW9A3fHv/wgFdGhORFVrzlXAO0AADxvsz0ZL8n+l1zhT0a/b6qfj7wqfcW K+YRNehvZfE1ae3qR90IiwDb+cUazOfQyvTBGYReyXL1dlbXGkLOdpHFY7YwJdBySx4y aHYg== 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=yy5O3Pr9SALRtqeYzByWRj+zDpY+/atUw+smVvTqf9c=; b=W2dai7FYyzRA38cQU6zt/+SGi+S7xPGCVnJn9+hBb7O5m3CdknAvpgCip2qGT7FFk5 Rw6veK+HGRzLWJ3E1lfywsziOwFHXbgOBQv3oRTPtBjeeeTQJuMl45UW/RBq3igFZSKR H/QdVlDLx+k/rst6zgEKmw2URYT8+PGSZwerGh+jykRrUZ9/BXMG20MksZ1x+s1I+/LM Km58YWTkmrmZImhoYcm4Dz6YIs6tdiqaX3H/ymYyPsXvd+EzJwveKJUB5pLuxFib3Rr7 mkVNmKAm4YQKNwFJUroeqsaYF+obHLWHVZiA30kgj36E7MOwzYcKwaRU9IfwqXuj2CH/ 6Z6w== 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 f4si5625814pfc.234.2019.02.06.03.56.54; Wed, 06 Feb 2019 03:57:10 -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 S1730026AbfBFLod (ORCPT + 99 others); Wed, 6 Feb 2019 06:44:33 -0500 Received: from mga11.intel.com ([192.55.52.93]:65384 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727896AbfBFLod (ORCPT ); Wed, 6 Feb 2019 06:44:33 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Feb 2019 03:44:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,339,1544515200"; d="scan'208";a="120367400" Received: from cvg-ubt08.iil.intel.com ([143.185.152.136]) by fmsmga007.fm.intel.com with ESMTP; 06 Feb 2019 03:44:31 -0800 From: Vladimir Kondratiev To: Ralf Baechle , Paul Burton , James Hogan Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Kondratiev , Vladimir Kondratiev Subject: [PATCH v2] mips: cm: reprime error cause Date: Wed, 6 Feb 2019 13:44:24 +0200 Message-Id: <20190206114424.24206-1-vladimir.kondratiev@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190206113413.23566-1-vladimir.kondratiev@linux.intel.com> References: <20190206113413.23566-1-vladimir.kondratiev@linux.intel.com> 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 From: Vladimir Kondratiev 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. Original value of cm_error may be safely written back; it clears error cause and keeps other bits untouched. 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..7f3f136572de 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); } -- 2.19.1