Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp399283pxt; Thu, 12 Aug 2021 00:44:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtxDqRv4w2JpTuFUSjDp5/EVa9ogmpU4ttNe5UL8+IVMnFLrrfW8XMdVHPoVjIWepLW0Hc X-Received: by 2002:a50:eb95:: with SMTP id y21mr3913931edr.5.1628754251417; Thu, 12 Aug 2021 00:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628754251; cv=none; d=google.com; s=arc-20160816; b=HULuwjGrngaeMnnNXfqjP1K8G5ZpI4mSp7rujV8DG7CQXlPuakWxHNsBMQqRL5bvWg Vkpgvw6u1stjQqmLY51rdWTI3aZJiqoQQggsweRqfvj/LYcXnlfmYuY/VbX/PLyd+3wB DkMhqAbSXnKiWOMcXHVncor0z1MG/JyA4Xzdj2tPVzmihIkj+E49ikVyjMVvUbiBn3lV J5iWSVHhc7DiWcngVzuE/XeGiXixCejwhGOooP/oP1l585oUrckfJdcz3D4P3RLYSrkf AlNzpLkwbHG8MdT2XY1lwUXt3PV9O0mE6GMXGhJ00WtRlVZPU4VmeKsluA4e7B+dHMnd DiGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=qamAtbGqWd2cz3VbtrXxIyEPlw8SFc6ZDxX7MvG+W3k=; b=BBPhg0ra1R6ugfTaH0JymLdBwvuBgcMOCY7fKeJJjKBu1uLQWtxRg7ewdvEekNUFf0 o6COhmnqmkNy8l+3ONb1aqYKGqtRGSo8b31Mtq+xuiV7VWBE6Xp7VBZ1U4ec8NSTCuku fu2mqLFfJnDxiOyICrI+JTrhFTNfCMDb7NOYVzSLy2VCj+DcPnTePnNm0M+gXbHRl18t ao5wpYB2ci1aK3Nxd3pX9wKtju4cLdroTeOY02O8PeKm/SdG9T32pEiSM0gEwsNbW+yF dR//KaL145jZ7bWLq+vxh3X/6wVcP2sW2TA7FlYcGr4USRFbmR5yGg7cyZG3SMTyXRll tjdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=zf+RkLQN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p21si1937411edq.94.2021.08.12.00.43.47; Thu, 12 Aug 2021 00:44:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=zf+RkLQN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234638AbhHLHS7 (ORCPT + 99 others); Thu, 12 Aug 2021 03:18:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230316AbhHLHS6 (ORCPT ); Thu, 12 Aug 2021 03:18:58 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8CC9C061765 for ; Thu, 12 Aug 2021 00:18:33 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id s22-20020a17090a1c16b0290177caeba067so13877109pjs.0 for ; Thu, 12 Aug 2021 00:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=qamAtbGqWd2cz3VbtrXxIyEPlw8SFc6ZDxX7MvG+W3k=; b=zf+RkLQNlJpLGNavfDu7X/k6Cq70FSMcrYQKDa9qkRevTCjHCGMk/Q14gYTiU0HACP AZlyi2LK8FHt0NnkU2zWLK6PxMIAckf1nnPbbHyZABELRmCPWE2W3VG+AJ/zkf4lGxvS 6V1Xw8YJJlBY1nDr+BspV0Uz9VyiiO+Vm8BUy2XglPZ0r9HMy0Xq64/gLxD/FQFKx1/w o1T2qVFNSbdUsfm/ICd87bdBZpPJpq+dnqeyZoNHK19LP0t8f1N1CVTGHQBodOum9j12 iAq4KkiEeTWJzo4ztAIVyxHxAKZS1oQXSoNR9V0w5uVjRss1lB0zwf09FJ8nrB6t8bUV l5Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=qamAtbGqWd2cz3VbtrXxIyEPlw8SFc6ZDxX7MvG+W3k=; b=ddApHeAeRTlL6Qzc655UOg/gvE+gwsP4r/ltArWi/AGqW3rz8ZJXORSlrdCxXohQbv MEXFoV2ij3YZ4Cs4EjRzaziEUB7QCaxyeqkUdX+37AMoFuPYgzBcVvgMwjXv3ENsUoeq HdhLqy+yEmVnkoIpkCGOqxRgpSUSoBYQwGr0iCkmjPKNm5xWvNwEXtjEUrYScUirFpg3 jZD5OFcFcZLsu4apfYfVyJCzFn2uCVE8ZSZt32dWxiqrMgndHNIcmp/N4gZj+QqKLhW6 rDWij80fG0V9EHgPUmROiuJcXb7tTn/U9YnNByMJawV3yoYou6EC0TfNwiL2k8WC/VNB 2XeA== X-Gm-Message-State: AOAM530/P5vxBOQby9rQcupNkVjUpDhFY6zHUK+FVj4vaC91nRhtm1Y5 6R3X3KOidjwfQKDjTlroKg0agw== X-Received: by 2002:a17:90a:5416:: with SMTP id z22mr2929072pjh.183.1628752713307; Thu, 12 Aug 2021 00:18:33 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id v20sm2305847pgi.39.2021.08.12.00.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 00:18:32 -0700 (PDT) Date: Thu, 12 Aug 2021 00:18:32 -0700 (PDT) X-Google-Original-Date: Wed, 11 Aug 2021 23:41:26 PDT (-0700) Subject: Re: [PATCH 0/5] Small cleanup for mm/init.c and address conversion macros In-Reply-To: <20210723130128.47664-1-alex@ghiti.fr> CC: Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, alex@ghiti.fr From: Palmer Dabbelt To: alex@ghiti.fr Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Jul 2021 06:01:23 PDT (-0700), alex@ghiti.fr wrote: > The first patch allows to have only one definition of the address > conversion macros for all kernel types. > > The following patches bring small cleanups to mm/init.c and the last > patch makes the size of the DTB early mapping consistent between 32-bit > and 64-bit kernels. > > Alexandre Ghiti (5) > riscv: Introduce va_kernel_pa_offset for 32-bit kernel > riscv: Get rid of map_size parameter to create_kernel_page_table > riscv: Use __maybe_unused instead of #ifdefs around variable > declarations > riscv: Simplify BUILTIN_DTB device tree mapping handling > riscv: Move early fdt mapping creation in its own function > > arch/riscv/include/asm/page.h | 15 +---- > arch/riscv/mm/init.c | 121 +++++++++++++++------------------- > 2 files changed, 54 insertions(+), 82 deletions(-) Thanks, these are on for-next. There were some minor merge conflicts, let me know if I missed anything.