Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp712317imj; Wed, 13 Feb 2019 16:18:08 -0800 (PST) X-Google-Smtp-Source: AHgI3IYpWf+XHDhc5F75v4BuPLOGWADLcPp+i8JwkBoOt6/XoNfKIsSzxecgnhM1y+lffV+pm7bL X-Received: by 2002:a63:515d:: with SMTP id r29mr885986pgl.350.1550103488722; Wed, 13 Feb 2019 16:18:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550103488; cv=none; d=google.com; s=arc-20160816; b=YlbfXqJ4Qy4l1Iq8TlhQ6Ir1d8DHnEZJZbR5U6khou5oZBODb+Oo0xKYW3em1J+ChK Xy6FpX/bGIPZpV6EtW/n45Ee/cXnJWlMFK5UxJtvO3+YatrzLtXRCTg/+lw+8OU2j+2S E1XrNqxHQJIC5KMRxnyW/EPVF5x1Cg2r1EzjJ1HYhm6wTu7Haz7xxTCty6puVLy8o/gp xVTBUROg1GhCJW/TdSYO5LRx5f5GUrzSPECFhG50xrnTMxRgrlbIsWM6BsgzUXKapMYb BuJOE42nN97U0mUCOV2Pk0dvwZF5Z5kn7isv0zzyiEAwdW7vOeteeXKHNU05R9jgEBAn IPbw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=883u03OnswekJi8Nahw5OMlB8puAWYzyoMxo9XugrKw=; b=Le7IEuX4Zak66b1N9intAjyN6WFOMJr7z1SA1i5nWtMXUdyobHFSLULrKfptP/xTzY vXaYtZpcapXBhiBPpMs4ER4Wh63rO/bj9ovAcipZbmpFAPq1vYahO7qAi5yJw+XixlL8 fNN0iwLA0KGW6j1ei6VXCf/uYYltQhQ/9s33QL510rVmlM0M/VUEw/jn5FZMuxDZAMpK DhtyMn0w34lmapPYd40xGMAc3dv7vVAVSSnXp5PnVQTp7jql96M2igQknXxceh1wNCia hIjJ9JJUcZmwegfuy/1wqFp6aQny8lhm6z/7dXWVCCLp9DB/qju5XIeb+bJsNbN784qv OA8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=G3O9xTfg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si724283plk.238.2019.02.13.16.17.52; Wed, 13 Feb 2019 16:18:08 -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; dkim=pass header.i=@kernel.org header.s=default header.b=G3O9xTfg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406349AbfBMSpc (ORCPT + 99 others); Wed, 13 Feb 2019 13:45:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:44154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389798AbfBMSpb (ORCPT ); Wed, 13 Feb 2019 13:45:31 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 04529222D1; Wed, 13 Feb 2019 18:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550083530; bh=qCkZdl8s58g3j2gjJNkCsszY+VooiW82dIUeFLAEak0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G3O9xTfgcUz4IEI7phVSEWEKVk5OsOEJiyLVm7FS8WNx1UblM5qwxIM4cYp43hHir hXlTwgLTy/Rw+gtq92y4YMYAGhOLajbEMeg1PhtfHQKBQ0CjZlj6RgWS8a2OxCxcdv V2KIWXQJV1gRltl2mC6R9FpHplLhwsbnWPyK58G0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vladimir Kondratiev , Paul Burton , Ralf Baechle , James Hogan , linux-mips@vger.kernel.org Subject: [PATCH 4.20 23/50] mips: cm: reprime error cause Date: Wed, 13 Feb 2019 19:38:28 +0100 Message-Id: <20190213183657.605430699@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213183655.747168774@linuxfoundation.org> References: <20190213183655.747168774@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vladimir Kondratiev commit 05dc6001af0630e200ad5ea08707187fe5537e6d upstream. 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 Signed-off-by: Paul Burton Cc: Ralf Baechle Cc: James Hogan Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org # v4.3+ Signed-off-by: Greg Kroah-Hartman --- arch/mips/kernel/mips-cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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); }