From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9463EC43461 for ; Tue, 15 Sep 2020 01:54:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5E6B020771 for ; Tue, 15 Sep 2020 01:54:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726143AbgIOByl (ORCPT ); Mon, 14 Sep 2020 21:54:41 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:42052 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726035AbgIOByk (ORCPT ); Mon, 14 Sep 2020 21:54:40 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id E12E2864617F7E237BD5; Tue, 15 Sep 2020 09:54:37 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.253) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Tue, 15 Sep 2020 09:54:29 +0800 From: Zhen Lei To: Thomas Gleixner , Andrew Morton , Russell King , Santosh Shilimkar , Catalin Marinas , linux-arm-kernel , linux-kernel CC: Zhen Lei , Libin , Kefeng Wang , Jianguo Chen Subject: [PATCH 0/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary Date: Tue, 15 Sep 2020 09:52:02 +0800 Message-ID: <20200915015204.2971-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.177.253] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, only support the kernels where the base of physical memory is at a 16MiB boundary. Because the add/sub instructions only contains 8bits unrotated value. But we can use one more "add/sub" instructions to handle bits 23-16, to support PHYS_OFFSET minimum aligned at 64KiB boundary. This function is required at least by some Huawei boards, such as Hi1380 board. Becuase the kernel Image is loaded at 2MiB boundary. Zhen Lei (2): ARM: fix trivial comments in head.S ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary arch/arm/Kconfig | 18 +++++++++++++++++- arch/arm/include/asm/memory.h | 16 +++++++++++++--- arch/arm/kernel/head.S | 31 ++++++++++++++++++++++--------- 3 files changed, 52 insertions(+), 13 deletions(-) -- 1.8.3