From patchwork Wed Sep 16 02:49:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen (ThunderTown)" X-Patchwork-Id: 11778741 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4237B14F6 for ; Wed, 16 Sep 2020 02:50:23 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0B2D2206A4 for ; Wed, 16 Sep 2020 02:50:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="0CO+ne/f" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B2D2206A4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=zcyFUQDvujzR7VrtLz/1gF6mF1/fkrJ9Leq+IT7C5WM=; b=0CO+ne/fw4tmYS1GfJgEo9DB1g UhwrvsqsT/Xs+91om+OeAVn8b8OXhUg1TYQeShWME8V5y5b+M7ST7/UllhT4c6XOMS5viea/gPdP8 iD0AahMaXzvA3G2xJnHA71KD23xAIzX17Go3s0xmowUfkxapIkjSP9u01m0yt3nDuc8wLzaz8CKLa jgGus5rJw21LV+VMgCHOih3tuTR6av6Kg/prKkhaEAAC4UESThy5QTgNHV3xBJVLg1oCrnXvspMBk d8D77r0Zxw6Eas/YwSL7BJ2xUvI1gIxtvC1YSiQAsaqZjDB/Kf9a70ts+4sK7YhitpCf8ap/eYUXb vdWmv6bA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kINWK-0003SS-Lh; Wed, 16 Sep 2020 02:50:08 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32] helo=huawei.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kINWE-0003QS-0K for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2020 02:50:02 +0000 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 92173D65FF03895370B7; Wed, 16 Sep 2020 10:49:57 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.253) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Wed, 16 Sep 2020 10:49:49 +0800 From: Zhen Lei To: Daniel Lezcano , Thomas Gleixner , Andrew Morton , Russell King , Catalin Marinas , linux-arm-kernel , linux-kernel Subject: [PATCH v3 0/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary Date: Wed, 16 Sep 2020 10:49:25 +0800 Message-ID: <20200916024927.3191-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.253] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200915_225002_317955_29FCBEF9 X-CRM114-Status: UNSURE ( 8.54 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [45.249.212.32 listed in wl.mailspike.net] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [45.249.212.32 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jianguo Chen , Kefeng Wang , Libin , Zhen Lei Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org v2 --> v3: 1. cancel send to "patches@armlinux.org.uk", the patches should have been reviewed first. 2. drop the "default n" of the configuration option ARM_PATCH_PHYS_VIRT_RADICAL. 3. remove an unnecessary cast: below (unsigned long). "t" is already unsigned long. __pv_stub((unsigned long) t, t, "sub", __PV_BITS_23_16); v1 --> v2: Nothing changed, but add mail list: patches@armlinux.org.uk v1: 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 | 17 ++++++++++++++++- arch/arm/include/asm/memory.h | 16 +++++++++++++--- arch/arm/kernel/head.S | 31 ++++++++++++++++++++++--------- 3 files changed, 51 insertions(+), 13 deletions(-)