From patchwork Sat Dec 18 08:58:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cuigaosheng X-Patchwork-Id: 12696754 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 30847C433F5 for ; Sat, 18 Dec 2021 08:59:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :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=Wi0itFTPwktdo70JGwjWh4exjznX7M1u/hUM4fa0Inc=; b=PQ0O52NgLRZuOH +h2+MuHO8faFgrse3zahIv5BnAshf9VtRjaatavvIkXVkkyCs2kd/ZHOdsVw40csELxsPO1qDSyUF 4gm8LsSsj87B4GmjaAwO4MwvD6hqMSB86C3dhl41gNruD8EUEJ6fv4uPsOEyW7If9TsccM/d9SdDp 3t12LxbhKv5w/3hw+mdnIC118KZh1UxMQHBaYt57OVGEdforBreaaQAPNJs8Kj7UeB2Jh4ncl4Alf fjgF2b+H5FWmQVXxxBwF3ScrMwC0kpAIpbXKaNxhr5DxgiHjNm72ypJLuWHYPBfwdqh/kmnSU5bQR PnGp3fh/FfPMLG/9xtDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1myVXh-00DKBV-1n; Sat, 18 Dec 2021 08:58:13 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1myVXU-00DK6r-Qz for linux-arm-kernel@lists.infradead.org; Sat, 18 Dec 2021 08:58:02 +0000 Received: from dggeme762-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4JGKRN5P1CzZcWc; Sat, 18 Dec 2021 16:54:40 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.44) by dggeme762-chm.china.huawei.com (10.3.19.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.20; Sat, 18 Dec 2021 16:57:44 +0800 From: Gaosheng Cui To: , , , , , , , , , , CC: , , , , Subject: [PATCH -next 0/3] replace open coded VA->PA calculation Date: Sat, 18 Dec 2021 16:58:40 +0800 Message-ID: <20211218085843.212497-1-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-Originating-IP: [10.67.174.44] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggeme762-chm.china.huawei.com (10.3.19.108) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211218_005801_089694_7E2544C1 X-CRM114-Status: UNSURE ( 5.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org These patches replace an open coded calculation to obtain the physical address of a far symbol with a call to the new ldr_l etc macro, and they belong to the kaslr patch set of arm32. Reference: https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/log/?h=arm-kaslr-latest Ard Biesheuvel (3): arm-soc: exynos: replace open coded VA->PA conversions arm-soc: mvebu: replace open coded VA->PA conversion arm-soc: various: replace open coded VA->PA calculation arch/arm/mach-exynos/headsmp.S | 9 +-------- arch/arm/mach-exynos/sleep.S | 26 +++++--------------------- arch/arm/mach-mvebu/coherency_ll.S | 8 +------- arch/arm/mach-spear/headsmp.S | 11 +++-------- arch/arm/plat-versatile/headsmp.S | 9 +-------- 5 files changed, 11 insertions(+), 52 deletions(-)