Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3679876rdb; Wed, 13 Sep 2023 22:00:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMzOoMM5Qlw8/EIOCwvbreMbEWKYSi1mQX6PWVS78H1+fbCoKYQJ+gLE4foZvMD0aB41a2 X-Received: by 2002:a17:902:9f96:b0:1bf:78d:5cd9 with SMTP id g22-20020a1709029f9600b001bf078d5cd9mr4458077plq.67.1694667602505; Wed, 13 Sep 2023 22:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694667602; cv=none; d=google.com; s=arc-20160816; b=QPhtvuQig3HDjNmOJ9gvsqgWwmi+su/3BGWTXeX+N/cROW8r7pLBk00MeUCOJ01qVy XG06uvIJgVRuLmP9h6SlWn5BPaYiJMjNOctpg1tJAku01sJEYrAVg4Fn1p9KNcqJb0Zp RZhmunYfWs95xmCbLfVLOoys6JpCckwghmk2pww7nR9B0WeI6Tgx0eP1SrxC1L5ksNeE ZRTLg0g4TFllY8mJArmc2js/lQBNUk5SeiqUiun9zR8lnz+yCfb/mOgUB+UP9GwcYM24 CL5v4WGIuqregNKs13bfX5Hw0BnjqP+G5icVDV3+qar/LptQcKJ1+sEEpzg/N9yQkaLE IL0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Mt8Xx0KsSKF+jnwY2tIudNUNMN0X0ntq43kF8edsaBA=; fh=YMR09MWn7/bapZ/GNtkbj3LKBr//gkIgVyVw48de8YU=; b=hvXEaqsA3AqCppxCyW769AaQDRKwlDvLgdrFs01Lnf2etgfIVfc4wtAziFkM19R0zC 6oDE/asgawB5ecVGNp2OO3QiSvdhXQHUd+EHAMkjiPzS0mQ/598uHuVIDNeHvKyRvoYk CI2CPmuWCFd5Qu6ZjYjyfA93BP/l1l2u1U1lJHScsTiO2nE8l5muX6DFC9gzf78UacAx CZz0DXukhPqi57QQ0lKyl0LdIGfrBUA5G2h/k4R0LziKVnV8xXKhY1T9Eqr/tfbibWKO 8mt/zqKF6SLRWxQL57H6w1bYyDMekiGe4H+KuagLRAU/LVhstIQF9CFkxIEUW+yQoSwW Loeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sBtFRPlk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id le13-20020a170902fb0d00b001c3323ff53asi861522plb.139.2023.09.13.22.00.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 22:00:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sBtFRPlk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id BCF0480218CC; Wed, 13 Sep 2023 21:59:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234654AbjINFAB (ORCPT + 99 others); Thu, 14 Sep 2023 01:00:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234391AbjINFAA (ORCPT ); Thu, 14 Sep 2023 01:00:00 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F1F01BCA for ; Wed, 13 Sep 2023 21:59:56 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0940AC433A9 for ; Thu, 14 Sep 2023 04:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694667596; bh=Rl6KtUOR7lGfXDB0ACl29fli7qsumtq8Sa3pkYraR3o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sBtFRPlktiqUqWJ+qVtOTrvRJgzAdsvLUIzHPGybTJHNovqa3e34YDzYRAPD2W6fs 10aCoKyxQ+XQEjYns8tKii8l5+PKnCmGipho2s+RKuc19K30+3kQ5Od2f/MWRSzqLh oriprnAmtCDrdqWvgABl/PRqo8RJhu6CBpA7C/Kyq6NX80dG/PR84MueSd2Os0krqw 2wOU+y/9OAEwtRx7WyxkW2o1FVnZJAl8u4YWjquECx2qX2jfNMlCJ2jqRtrNT/JIQx +55S4uS0lHZyrbEJLPHqDT5qJ5CUXmtpO8cKHx2se4GegXUnprhUdtoszmUR/WaqT5 OnUALmnm5IOqg== Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-31ad779e6b3so468450f8f.2 for ; Wed, 13 Sep 2023 21:59:55 -0700 (PDT) X-Gm-Message-State: AOJu0Yxs8CppjdWLRbxFrGQaCBqNqMnKKMJGZFzrKhsJ1ylSZPeSaZ4X 6kHdMBbBNo8P8nW+ycneqQlaV2kbMmpxb1k6j68= X-Received: by 2002:a5d:490a:0:b0:31a:d5fa:d710 with SMTP id x10-20020a5d490a000000b0031ad5fad710mr3912116wrq.2.1694667594424; Wed, 13 Sep 2023 21:59:54 -0700 (PDT) MIME-Version: 1.0 References: <20230809031023.3575407-1-songshuaishuai@tinylab.org> In-Reply-To: <20230809031023.3575407-1-songshuaishuai@tinylab.org> From: Guo Ren Date: Thu, 14 Sep 2023 12:59:41 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] riscv: mm: Update the comment of CONFIG_PAGE_OFFSET To: Song Shuai Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, ajones@ventanamicro.com, alexghiti@rivosinc.com, anup@brainfault.org, samuel@sholland.org, rppt@kernel.org, suagrfillet@gmail.com, panqinglin2020@iscas.ac.cn, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Sep 2023 21:59:59 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On Wed, Aug 9, 2023 at 11:11=E2=80=AFAM Song Shuai wrote: > > 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) Why not remove CONFIG_PAGE_OFFSET and define PAGE_OFFSET_L2 ? > #endif > /* > - * By default, CONFIG_PAGE_OFFSET value corresponds to SV48 address spac= e so > - * define the PAGE_OFFSET value for SV39. > + * By default, CONFIG_PAGE_OFFSET value corresponds to SV57 address spac= e so > + * define the PAGE_OFFSET value for SV48 and SV39. > */ > #define PAGE_OFFSET_L4 _AC(0xffffaf8000000000, UL) > #define PAGE_OFFSET_L3 _AC(0xffffffd800000000, UL) > -- > 2.20.1 > --=20 Best Regards Guo Ren