Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp470627yba; Wed, 15 May 2019 04:42:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLJwZfhAz2zRna3XB/P35YGHyk9vGpH0nqymctJiZadDKINHE+FaPWw7BkijYKPjxEWQlf X-Received: by 2002:a17:902:b489:: with SMTP id y9mr41885217plr.70.1557920549559; Wed, 15 May 2019 04:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920549; cv=none; d=google.com; s=arc-20160816; b=WxztCrgZXt6jdOTi/MBjK1ajOy/feEfyrcYSWihoxS3I5uy2jvTu+tbZqAJF+QfdnU Um33V0zIjNTZKA85zztwdZ43q+vZwte0M1gLOh9XqlIB4/lAR5eEjCVg57ASbyvEUWBQ y/oQiuXcENwN12EKYj/bSZBUXnOHJ3HQWOttiX1/E/dL2c6vwj6DnPOblBk4pIfL81E0 gQhP8YpQ2z35oHm3qZjIssKG2QWjP0+wDKYKoUzKRqVy4CYoHK37tmPELQFvZM9pQg9f fZNrnz4aFL0XoiC6sGGbjjHh0V3B3I65xuAMRgGJ954ZE3Y1oGvjISxyXxO84m+lHhk8 CdEg== 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=0zDOceb9eBHW4gt615/ALQrhs6oekE1p7oKdN2mnx5U=; b=tqi8aMClQcqGmiYvyrciHUwR3gNOeuwzJfuy3TgkoXliTkwcafXTzxqpOzLKaTXGVY Hr5oCUghyHxp0cFUwP55occC96FUnWJU1KEfXRlfR2LaYsl374z+zxAsR8CwQSU+XCHS DXISTuoMJUXBtYYgm/V6qzjUQjTJJJD4s3Bqri7NeNZmc1mqrquzP3c26TY7qYUeUPm8 ZtCcU249IqwPe0N6rfgdo9yEmRGWxBKQ/ZxnPQ+cucU8pa1xYQoJgszWe75LXScIdVVI NKXpq4uUDrB4hDNf7JifP3x3vpsh1IB+IPfyCuWh0hIlqeWWnPS79Zgud3vzwB/rL2gB PgIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=isjvbvxM; 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 w19si1572109plq.55.2019.05.15.04.42.15; Wed, 15 May 2019 04:42:29 -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=isjvbvxM; 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 S1732546AbfEOL3X (ORCPT + 99 others); Wed, 15 May 2019 07:29:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:40560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732540AbfEOL3U (ORCPT ); Wed, 15 May 2019 07:29:20 -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 94662206BF; Wed, 15 May 2019 11:29:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919760; bh=jkLFPE0Btsk4k/1uPATuEs2Vl549eC/EjkT7x9ITssY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=isjvbvxMoYKB7k8iRGMI729XDRnT3ckbboLI3dk8iTikfxh5+UN1S+wUJik+iDjKw Jm991KcOAhCKwGfvrE6W3AjgKru4w2T0I0Bi9h86TNRCNXdhI4A/KZYqQ1oesMzWdL 8qP5xwPZmrVo0nPnhCqcpSTeZHNp7kPZgaMQQUKM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tigran Tadevosyan , Vladimir Murzin , Russell King , Sasha Levin Subject: [PATCH 5.0 084/137] ARM: 8856/1: NOMMU: Fix CCR register faulty initialization when MPU is disabled Date: Wed, 15 May 2019 12:56:05 +0200 Message-Id: <20190515090659.632659265@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090651.633556783@linuxfoundation.org> References: <20190515090651.633556783@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 [ Upstream commit c3143967807adb1357c36b68a7563fc0c4e1f615 ] When CONFIG_ARM_MPU is not defined, the base address of v7M SCB register is not initialized with correct value. This prevents enabling I/D caches when the L1 cache poilcy is applied in kernel. Fixes: 3c24121039c9da14692eb48f6e39565b28c0f3cf ("ARM: 8756/1: NOMMU: Postpone MPU activation till __after_proc_init") Signed-off-by: Tigran Tadevosyan Signed-off-by: Vladimir Murzin Signed-off-by: Russell King Signed-off-by: Sasha Levin --- arch/arm/kernel/head-nommu.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/head-nommu.S b/arch/arm/kernel/head-nommu.S index ec29de2500764..cab89479d15ef 100644 --- a/arch/arm/kernel/head-nommu.S +++ b/arch/arm/kernel/head-nommu.S @@ -133,9 +133,9 @@ __secondary_data: */ .text __after_proc_init: -#ifdef CONFIG_ARM_MPU M_CLASS(movw r12, #:lower16:BASEADDR_V7M_SCB) M_CLASS(movt r12, #:upper16:BASEADDR_V7M_SCB) +#ifdef CONFIG_ARM_MPU M_CLASS(ldr r3, [r12, 0x50]) AR_CLASS(mrc p15, 0, r3, c0, c1, 4) @ Read ID_MMFR0 and r3, r3, #(MMFR0_PMSA) @ PMSA field -- 2.20.1