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=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham 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 26639C12002 for ; Wed, 21 Jul 2021 08:00:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 06E1A60FDB for ; Wed, 21 Jul 2021 08:00:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233863AbhGUHUI (ORCPT ); Wed, 21 Jul 2021 03:20:08 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:56447 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234290AbhGUHTI (ORCPT ); Wed, 21 Jul 2021 03:19:08 -0400 Received: (Authenticated sender: alex@ghiti.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id AFF95FF804; Wed, 21 Jul 2021 07:59:38 +0000 (UTC) From: Alexandre Ghiti To: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexandre Ghiti Subject: [PATCH -fixes 0/3] Fixes regarding CONFIG_PHYS_RAM_BASE Date: Wed, 21 Jul 2021 09:59:34 +0200 Message-Id: <20210721075937.696811-1-alex@ghiti.fr> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commits: 7094e6acaf7a ("riscv: Simplify xip and !xip kernel address conversion macros") 9b79878ced8f ("riscv: Remove CONFIG_PHYS_RAM_BASE_FIXED") expose CONFIG_PHYS_RAM_BASE for all kernel types whereas this value is implementation-specific, so that breaks the kernel genericity. The first patch in this patchset removes the usage of CONFIG_PHYS_RAM_BASE by introducing a new global variable that holds this value. The second patch reverts 9b79878ced8f ("riscv: Remove CONFIG_PHYS_RAM_BASE_FIXED"). The last patch is an optimization 'symmetrical' to the one introduced in the first patch: this is not a fix, then it is not necessary to pull this into -fixes. Alexandre Ghiti (3): riscv: Get rid of CONFIG_PHYS_RAM_BASE in kernel physical address conversion Revert "riscv: Remove CONFIG_PHYS_RAM_BASE_FIXED" riscv: Optimize kernel virtual address conversion macro arch/riscv/Kconfig | 6 ++++++ arch/riscv/include/asm/page.h | 9 +++++---- arch/riscv/mm/init.c | 17 ++++++++++++----- 3 files changed, 23 insertions(+), 9 deletions(-) -- 2.30.2