Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2400747rdb; Thu, 21 Sep 2023 18:46:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3lvr7YAO8w9t0i7dMUbbLyApN88veSsMapQViauwzXRLU+U4cq2v3jn097LPyxDHyNgjr X-Received: by 2002:a17:90b:1298:b0:268:d05c:2d7e with SMTP id fw24-20020a17090b129800b00268d05c2d7emr7038478pjb.14.1695347202079; Thu, 21 Sep 2023 18:46:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695347202; cv=none; d=google.com; s=arc-20160816; b=xKn8y5qDFdOp2HYcNf2pTEP5/IEHIbTOY2wB2IvAdDLa9YCB3WCQxhE4qrTO/ZnHQK rofRDupYBwD2x36XB+ncUxgqC27miuOaRpjQ4Suoa0l935+L+E6f1qUJ1Ez8wnmSxYQR QTxp1IW92lw8PWPcqq/4eJ8ChO0XZwI6LP8U5DwNCoZwgNf0/tW3Gfa83V4cCbnPKPd2 HOWHg3H/cvIgsFP9rwHGYt1dDt26gnJ3se4FRgrSh16iaG3ag3zT2kUBzVFCnqfiWIDC 6i1iQ5MPiZvDc3FTt1kB4oA0jtTVJL35ZGNKWf0qPlzTu5zgDk9APUPA4mmA2dcTZDod Oymg== 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:date:subject:cc:to:from:dkim-signature; bh=m2P3gbJURDN3hYYSYvalNNM/sH+OvuOl053prv9M0Zo=; fh=OP4v3zel9qpkE3wSu9smtnPS+0CeE1RPPZiSp6jwiJ8=; b=vewVOKlcZRUPu9dC3A88pIX5x0uTuUXakVojWaCNsGUm1nXgZc2bn/mzxR1V1zukzT /sRqv6YRbJ3C+xUYnLDdlOoH5IiFccWMLU5Vnuk/rbva+6oc+Nxv2AX6ES3il9Qlqlds +Y7PRO+q7+vB6G6jzzs1yLzGqVBe8xwj2q3mqnYjit/hASfrummMBziTtltiaoEK5osp r9jTycazCZ8g73soOZXoK4ovI874YZNBML+JWWrnx6KJHAdO+lYTGpheQoYSvfjeKbGT Q2pQ4Gc7Xa4IlEAVG1EwAJL912CkMsq5Q800+s38JOSd6u+sQ6fcB/pdp1DUVTD8pEcm cdrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Nz11Iaph; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ip11-20020a17090b314b00b00262ca5c4c12si3166883pjb.178.2023.09.21.18.46.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 18:46:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Nz11Iaph; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C1A558299E1F; Thu, 21 Sep 2023 12:39:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230503AbjIUTjB (ORCPT + 99 others); Thu, 21 Sep 2023 15:39:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230399AbjIUTir (ORCPT ); Thu, 21 Sep 2023 15:38:47 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E52DBA0C1E for ; Thu, 21 Sep 2023 10:57:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695319055; x=1726855055; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zasYRfWXsYur9eNYrfG33BQQNdIZEYY/Xi5N1N8P2TU=; b=Nz11IaphBSMtPstlivTbQbIodZHcUlUhk1BC1OGOMtNKfeT+A3lMVjNj dhrRYNd1VoJX5w4oTDUT1hsvnKFNUQkJeK/nSN5uxJeyZ2DUaaJnNn/e3 nYcpUT/C5VBQT6B4p9rb99I2cNy+nrUCPw6LqbuibOMmgBYuvL8PNQY5k ZcZB+l/wmV3bw602hFGuB9CUw3qBxEl8odUzKhr0fmU4dx7RB5iBJj+tF PFdHqKMPKARdaDkH80/l9InSM6TUhGI72XZSitQOMbeRMVOmd3TzW9oFF tP5U8z9vuTKspv+eQLcqM565Ismum9yzaO11ckYKZsdnx0+53mP83J+p8 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="383281997" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="383281997" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 07:08:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="1077899614" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="1077899614" Received: from xiao-desktop.sh.intel.com ([10.239.46.158]) by fmsmga005.fm.intel.com with ESMTP; 21 Sep 2023 07:08:16 -0700 From: Xiao Wang To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, david@redhat.com, Xiao Wang Subject: [PATCH] riscv/mm: Fix the comment for swap pte format Date: Thu, 21 Sep 2023 22:16:52 +0800 Message-Id: <20230921141652.2657054-1-xiao.w.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Thu, 21 Sep 2023 12:39:22 -0700 (PDT) Swap type takes bits 7-11 and swap offset should start from bit 12. Signed-off-by: Xiao Wang --- arch/riscv/include/asm/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h index e05b5dc1f0cb..e94a2998e81e 100644 --- a/arch/riscv/include/asm/pgtable.h +++ b/arch/riscv/include/asm/pgtable.h @@ -812,7 +812,7 @@ extern pmd_t pmdp_collapse_flush(struct vm_area_struct *vma, * bit 5: _PAGE_PROT_NONE (zero) * bit 6: exclusive marker * bits 7 to 11: swap type - * bits 11 to XLEN-1: swap offset + * bits 12 to XLEN-1: swap offset */ #define __SWP_TYPE_SHIFT 7 #define __SWP_TYPE_BITS 5 -- 2.25.1