From patchwork Wed Aug 9 03:10:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Song Shuai X-Patchwork-Id: 133052 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2547947vqr; Tue, 8 Aug 2023 20:57:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHt/Fu0xicfguHRScYo53KTGlyCHpl42wras/avS5Z6b7QiUogNc75AFEXWQ9tXA/2HsQhp X-Received: by 2002:a05:6a20:8f0b:b0:12f:dc31:a71e with SMTP id b11-20020a056a208f0b00b0012fdc31a71emr1912400pzk.56.1691553478102; Tue, 08 Aug 2023 20:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691553478; cv=none; d=google.com; s=arc-20160816; b=XPh98SRYz/zBeez5To1D5NRcS70EecPT9pmf5wMJ+panoSCjP5Z262Zw0iNspWCcwT T6p7ihGHL9+Iy7ZLOc4JiJLjnsoEJvHUSExHXOQYnIitj4R0qwdphr6mBH8/N1sIZ0gd iUepJQzcZD44CFdlIeDAhiJu+qaTaEomUL5REh+aJCu4a7SgzMaIPilbGZylGeHEFmLT WivVMRi/6/IbWyI7+nV2PFDaf2hhZy2Nls/N3SIQFNemZSRIDLZzZ3JnBbyZE1cZy/dw jSa8/tD4lYeL998OTHUHexyTDPlT5wY5pM5mGdpudnGXtDWL+Pa9FHBz7Es7ZQw0CnhJ McjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=1ZrBke0WgMBibWYclnNaStMELJURGf8OQ+4OrBv++kA=; fh=w/zWYm2VqkF/yP2EptOqtkVoM3zWRakb5lTWWN3g6nM=; b=0R9WGJQl7G6NC3mEDfdvLalALWG/uaCpkE67FPACaqj8k1oo/E0tpvCKgycC8052d7 LCoMgIOrQgqPpXy3sIjiEm1BE8IV2c/vRI3HsmMVGlDSvYIBDkcojmjSvYbKBDybtuMK Oth6kKaa9Nxcu4lY19txTvO3PxCTBqwN8AEiBH5vSe+ljfP47tMLz0YAtTvv3MoOLqyU m0krNr3xG4RTRXa5gjG8N7rjaoZKGIdbamlxFkR9TegiQB/PZ5S1sptHIVa0RQEfUJmt sOAnC5gniuS6SGc3bQkcWW4wxESL9Fk2GdjL7JLh9LFHeLzHnHFfTeRZN54c3cc7eL2y MRXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o1-20020a056a0015c100b0068753f6a789si8544862pfu.349.2023.08.08.20.57.44; Tue, 08 Aug 2023 20:57:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229848AbjHIDL1 (ORCPT + 99 others); Tue, 8 Aug 2023 23:11:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbjHIDL0 (ORCPT ); Tue, 8 Aug 2023 23:11:26 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4088A10F7 for ; Tue, 8 Aug 2023 20:11:22 -0700 (PDT) X-QQ-mid: bizesmtpipv601t1691550655tu60 Received: from localhost.localdomain ( [255.156.107.10]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 09 Aug 2023 11:10:46 +0800 (CST) X-QQ-SSF: 01200000000000B0B000000A0000000 X-QQ-FEAT: w8KaQ9l6q4grTOwgxeVA4itTHPKxUqvpEz73M6tPxHUQ8KoVfsJ5neYQsaOtB sKqbSt0Iy2eW9k9FsiD844IrMgJ6pC+H0KApXrbpjfoxoyHhD35EO7ouoASe2znGodHCFVf UAwDL5dASfiiZxI5FnhQRWZ1g61ZbXpLDwsrex2j3aWka30tdkqaKs5FdfFnkjaj9wZZM22 PCmQjIaCFnhR8mDxc0PtsInUuntMT0xezfQqv26+OppI5TpjpUZsb8KRXoplJG3em2ScNQB vNUpGg5wt/667B0u/ysaCSVGdKH3wQIkGve6QetD4LlfpG23M3tgbCUcPFKZzc8qHYMH9OG o9XfejTFv5tfMrmZQ0= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 9490210224257605777 From: Song Shuai To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, ajones@ventanamicro.com, alexghiti@rivosinc.com, anup@brainfault.org, guoren@kernel.org, samuel@sholland.org, rppt@kernel.org, suagrfillet@gmail.com, panqinglin2020@iscas.ac.cn Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] riscv: mm: Update the comment of CONFIG_PAGE_OFFSET Date: Wed, 9 Aug 2023 11:10:23 +0800 Message-Id: <20230809031023.3575407-1-songshuaishuai@tinylab.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpipv:tinylab.org:qybglogicsvrsz:qybglogicsvrsz4a-0 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,RCVD_ILLEGAL_IP, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773722379473540965 X-GMAIL-MSGID: 1773722379473540965 From: Song Shuai Since the commit 011f09d12052 set sv57 as default for CONFIG_64BIT, the comment of CONFIG_PAGE_OFFSET should be updated too. Fixes: 011f09d12052 ("riscv: mm: Set sv57 on defaultly") Signed-off-by: Song Shuai --- arch/riscv/include/asm/page.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/include/asm/page.h b/arch/riscv/include/asm/page.h index b55ba20903ec..53c00164c042 100644 --- a/arch/riscv/include/asm/page.h +++ b/arch/riscv/include/asm/page.h @@ -33,8 +33,8 @@ #define PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL) #endif /* - * By default, CONFIG_PAGE_OFFSET value corresponds to SV48 address space so - * define the PAGE_OFFSET value for SV39. + * By default, CONFIG_PAGE_OFFSET value corresponds to SV57 address space so + * define the PAGE_OFFSET value for SV48 and SV39. */ #define PAGE_OFFSET_L4 _AC(0xffffaf8000000000, UL) #define PAGE_OFFSET_L3 _AC(0xffffffd800000000, UL)