From nobody Wed Feb 16 14:35:36 2022 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 990DE19C20F5 for ; Wed, 16 Feb 2022 14:35:40 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JzL9774QHz3lF6; Wed, 16 Feb 2022 14:35:39 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x732.google.com with SMTP id b22so1778496qkk.12; Wed, 16 Feb 2022 06:35:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=RYjo8sYs4NbpAD2borbz45YtbIpnyYtjpCgbG636cUs=; b=dHT7SmSj+0t/WQoy1jPad7yoXE7FinrITthssiiPe5b8nEvMS9sg4Iiz2GRvZpNVCw inkdFC0hC5y7m4/gVMY/1yMBUDBbhzViHj7wWi9eiPxerYazISfi+csU/pgVYMxGDJbJ WGNO9aa6lpNS2cpOzgPQ/9FSdttJIRnH26VS9QJl8KTdBoUz+T8EB7ANJsc5ODOMJvqw pnrE9Yb+9mwO01VEKRQHTiIBXkFvcQ24XhamFOwHeXp4keUnFiWFoNdWNgRoTuSgElHk F0WDEO/bE45kOsThGWRF4xgQOD5mOCs7+4YZ7HzTM9kHGsgGBD1GGXovlgGA+3wgb1At nd1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mime-version:content-disposition; bh=RYjo8sYs4NbpAD2borbz45YtbIpnyYtjpCgbG636cUs=; b=iO9yQqULHAltBoVhjR0s3Vu1ikalVQ5YODN8/98O6RCtAgOBgbWO5qYqtOw7DT7hWM MKVKib3C1kWEQ/AlYkwbGjewUq6mw+8im2pL2/iQdNS0hTrCGHDSTrybjWuqmR2UChz6 /4M6QYg4w+6VL/2AqNNhEuXOThMsIDtbNubzpCx1ZzvcQaLjog8rQ6uzfQ1V4ny24S29 9tspmK10nAIx0e9bHWCItHitz9yLy6aICggQBjGsgIlJCSFOhfydxrnD1LyMl6B/2T2P iwFsx3xjy08eqchdndIyWRn8zz/bGnsWRBaVL58gk82gD4iqy4SzdChfdkNqM6DyzR0h 3Nng== X-Gm-Message-State: AOAM533hKELyo9jfqxvJl0f84a5R7W++jtJmPPVzwB1JB+zftDU4CmJ2 FI+1bKtqLuA7urFy8rrO2s87O1szCYU= X-Google-Smtp-Source: ABdhPJwLgN314QTureUVyjFYZ1DK2TW+mfZ8OII1sw3d5+m6lQssSaMgQWaOVh1MJsSA7xcHuuBXVQ== X-Received: by 2002:a37:b685:0:b0:608:caa9:fce9 with SMTP id g127-20020a37b685000000b00608caa9fce9mr975016qkf.566.1645022139127; Wed, 16 Feb 2022 06:35:39 -0800 (PST) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id x11sm18094155qkm.108.2022.02.16.06.35.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 06:35:38 -0800 (PST) Date: Wed, 16 Feb 2022 09:35:36 -0500 From: Mark Johnston To: freebsd-riscv@freebsd.org Cc: alc@freebsd.org, kib@freebsd.org Subject: initial riscv SV48 mode support Message-ID: List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4JzL9774QHz3lF6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=dHT7SmSj; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-2.70 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_NOT_FQDN(0.50)[]; DKIM_TRACE(0.00)[gmail.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::732:from]; MLMMJ_DEST(0.00)[freebsd-riscv]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N Hi, I added support for four-level page tables ("SV48 mode") to the riscv pmap: https://reviews.freebsd.org/D34270 (see the "stack" tab for the rest of the patches in the series). So far only the user map layout is changed. SV48 mode may be useful for applications that want a larger virtual address space than that provided by the SV39 ABI (where it's 256GB). Currently SV48 is implemented by QEMU but not by extant hardware, and the patches do not enable it by default. Any comments on or reviews of the patches would be much appreciated. Thanks, -Mark