Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp508414ima; Wed, 6 Feb 2019 03:58:54 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib0C8GpckTL5bV8hvb4xv8gr6S2wYGhbuKRInRyLT/LG2ZYkPH6aAqicx8Ch0akS+PQPdYx X-Received: by 2002:a17:902:7588:: with SMTP id j8mr10405490pll.215.1549454334509; Wed, 06 Feb 2019 03:58:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549454334; cv=none; d=google.com; s=arc-20160816; b=DyndOTIRqS0S1eL6tglXqhGSlM99i2l8HBd845kh/e/nNzKvppRtc93eHl4JaeMBEK Neh3Ut91G6hvSlwepbW+th36zHQQMYomdLyxsTwkb9cig6sZjAxLMkJME0Cj0V0vxW48 tMnfO86XY9X9xzyW7f2hOWPudaoG/E3UVL+FYGChXGeSkah4L4zYrBakrOqEoV+Oxj29 27mahwTYOMTZEpjFsidFunkGGQqtQEckWBDLesG0QKO9FseBFzAZoZSy7ASlIn9MNmV+ 8LASU0BHFx4IOu5CdwzVsdIyxJ5iRS8HBb+KGzgpHJhmt77vzLdrlLRoCMZ5iknSmSH6 tpGg== 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=ko7lccBngjCCNkQ2EsKOZigv/yZjNDASZc7x3qFQbnM=; b=cYyOlXcMtYA/LmoQFqBBA2b7ugHJ0CmRHMn4SDKAGJW9d/Khi1frfnD/Ye30VzkE44 b78fDapgBzQ/5doe/eFQt0BcCYO9553j1rO8h5p/oylvU0pdqGwvkQ46WkXeb3y3qsaR gEq73MaLQ542LMq8LHaCe22wcGsAO0OtpEEWjYcgwu0qT26l7xeM8tagKT0bypS6viPF 0djZkNPKWt2Cl7O/Ar6Z+CjwFtZa5vVqzM4yPSYFGFhHQDoZ5q59OndkoFBem/scwTBY Yv25ss9Qlvy7kvgYV1Z7FoPD0URUzunWFA9NszuOOWtgnP3B1IFXM9o6aylZCAjBrztq wAzg== 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 o192si5256355pgo.129.2019.02.06.03.58.38; Wed, 06 Feb 2019 03:58:54 -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 S1728685AbfBFLqX (ORCPT + 99 others); Wed, 6 Feb 2019 06:46:23 -0500 Received: from mga17.intel.com ([192.55.52.151]:38958 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727080AbfBFLqX (ORCPT ); Wed, 6 Feb 2019 06:46:23 -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 fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Feb 2019 03:46:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,339,1544515200"; d="scan'208";a="120367687" Received: from cvg-ubt08.iil.intel.com ([143.185.152.136]) by fmsmga007.fm.intel.com with ESMTP; 06 Feb 2019 03:46:21 -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 v3] mips: cm: reprime error cause Date: Wed, 6 Feb 2019 13:46:17 +0200 Message-Id: <20190206114617.24426-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 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