Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp248487yba; Mon, 20 May 2019 08:06:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNhv3tQWQYjRgQMPsaxVm0Np8gQ6CgLszZ3VgixFwv+NhiN/BGJj6fkc7wNm7tTimuS+y+ X-Received: by 2002:a62:1ec3:: with SMTP id e186mr34617147pfe.197.1558364768179; Mon, 20 May 2019 08:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558364768; cv=none; d=google.com; s=arc-20160816; b=P+OqstY8+kuyEZrqnn1xRPLEPc57uMcAfpoyO2yCpJS4h/2jOPs6sAu0Tot2UHugQ+ qAfCXiRuneXLP6FMwGislKE+F3FArBBnP4nh7+CHit7rTEFGhDzcMc+fbEka1AWoM3/U FDjeFLGS9ABF8yMM5b74tVuoxJxQhSh2ccrxpYW9OaP11KlJP+R04e2Nn3e9nsNaV6+V 8E5TKiSODbxWEANzR+9Ox7ZnLZTVHyw9GxZmo4i4CZxWkDmhyDWO39p0stmMpeaxnK/C Du3r7v1iTjBtQnMxitL9UxCduaFl0HjyR3tLMfgpYF/nYh2wxsq5cEEuec+/zOWDoWT4 ctbA== 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=dJM9QFvUoAMvY0spNl58SB+ph+Ja+JhZDfYiLJ4oINk=; b=D3o7M5fEjfHyk9aBdikWLsGKXuLqbJagTXYQaLlPESOInNmXJhSsKF8xoDDcw8g9lP FX4/gyVG583Sos06SBTyKQkajSbA0k13t0lFR+zI5yWfUNBObL/elZiTH5Fm+mef/jwO m11EWm7v7PxEpgvTigyprIq+um4vzxLN9AccIwWSmAuUvEA9+Qob9PRYLZexK8B4/ENw XQK5VKY2CgAUO4/QttUXjMhivusVjOb1H3uexKs22rhCYaEOAA2kR+ICPLD0R0oIGDfs tXf0spc7ij88V7uvRbeqPME3bRulYm5U4gFRejvvryn3kWPMBNXChMV34Rgkd1sL8qYU fqRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LEj1lFCv; 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 z12si11536360pgv.400.2019.05.20.08.05.53; Mon, 20 May 2019 08:06:08 -0700 (PDT) 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=LEj1lFCv; 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 S2388154AbfETMVY (ORCPT + 99 others); Mon, 20 May 2019 08:21:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:34984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388147AbfETMVW (ORCPT ); Mon, 20 May 2019 08:21:22 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 C62A8213F2; Mon, 20 May 2019 12:21:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558354882; bh=any/DlHXg37Ff7AbRPFC1GetjoVK2j3ZkSLPNafzbrk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LEj1lFCvBRj8g1BXD6J2fs6h2KSyQaRnSEPswQgEB8+Xo24s9SmBMX6Tlg37hYxwS d8ouxJ1G/ySUeabvIB6xZy6Z3cRA/I93+kvXgCz2wOF7VYqhuXpSgYnrJpPZRDnw8L tOMYm/cBTLrMXsP09LYIhVTgtTZEXhgtsLec0u90= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jean-Philippe Brucker , Will Deacon Subject: [PATCH 4.19 015/105] arm64: Clear OSDLR_EL1 on CPU boot Date: Mon, 20 May 2019 14:13:21 +0200 Message-Id: <20190520115248.079427103@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190520115247.060821231@linuxfoundation.org> References: <20190520115247.060821231@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Jean-Philippe Brucker commit 6fda41bf12615ee7c3ddac88155099b1a8cf8d00 upstream. Some firmwares may reboot CPUs with OS Double Lock set. Make sure that it is unlocked, in order to use debug exceptions. Cc: Signed-off-by: Jean-Philippe Brucker Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- arch/arm64/kernel/debug-monitors.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm64/kernel/debug-monitors.c +++ b/arch/arm64/kernel/debug-monitors.c @@ -135,6 +135,7 @@ NOKPROBE_SYMBOL(disable_debug_monitors); */ static int clear_os_lock(unsigned int cpu) { + write_sysreg(0, osdlr_el1); write_sysreg(0, oslar_el1); isb(); return 0;