Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1878381rbb; Tue, 27 Feb 2024 04:20:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXb+CtWYpI5w0Gmj5Tap0woomHug2sqzH6+tV0NUhjDT2lr8NY/IDqgrKe6PqyVwsgN07+0nm77yCjqU6POXqm3gYNMzq56JmUGIxxpxg== X-Google-Smtp-Source: AGHT+IEO4lR0socN3wZ0+mtKpfMbiTSFdeBpBTh5oaIVXDF/w9ZfnVHOcPKpVLILpCbXVSZe07Db X-Received: by 2002:a05:6402:713:b0:566:348:fc4a with SMTP id w19-20020a056402071300b005660348fc4amr3350037edx.32.1709036426376; Tue, 27 Feb 2024 04:20:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709036426; cv=pass; d=google.com; s=arc-20160816; b=lgn4MnMV7qpbG31r5c3Jjjwky5zYggpmzMvhGfbvrVpLycMH2UMm9k+ec3I+JodabA H3brs31AWJv5UozUAxgizaMFcfBThAa7blyf6HfU/7EFCnWsDRAv23Ad+Z0aY3e7yt7f cEuun3WiX8Z/7R0hU+j7sPSVq7JvmleL1cvdq+fe0Fu0VIfJJiD2TTIsx0FS0GhGzPUZ Z/6LJJa9GOaTB8Cn8pee1ofGjQBiRgFAx5oYRctrN6N0Pq8+c2LmdXiRHp7VlcLSvDcU 2ux3Sv7TJEopHbc95WJdig+z2Mg7k9GOv159rkRWf2HMdKE/3/HMNDmL4ILguDhFWU1h ditw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=77Bq2jOnqM0lJEjXQ9w5yraQAp1L7LHW/ihqVcm9RPo=; fh=SCRD73vFRrAtwTEc7FK8yGcGZc7oMWBzv1+W/m8Ye68=; b=TGjK0dhuLUdRuCEGiYsr33qpqdFS8OkhfwC9V1VX58prJOf1AJrroBRRxojmzipo/9 JqdEXL+h0+eM/nt2x7wH6UurxLbMCTs31P1DzcSb608i+mHWN84000/3bsQ9znngXcGI zh600Yys3Ilc7WjPzrjb4d/yxe4sB0nh6Q7gcf8hSqdKpKWtWkFo/SIl6o9NwDY9eY1/ WJO27XLpWpPV+XP4GLRKU5D9ktDn1X57NMMecJq6567OewLcGBE83kNebxe6ZbZ0M3k2 yAOXR2fROXx6UoRcX9muS7GhuslNxmO/QWeuJ8lGyIFeX6Z8G0VSiZthDf5OaaVaxYP9 PN/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=DboDdjeu; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-83205-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dd28-20020a056402313c00b005657cb1e3c3si679052edb.207.2024.02.27.04.20.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 04:20:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83205-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=DboDdjeu; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-83205-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 147231F21F19 for ; Tue, 27 Feb 2024 12:20:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF32B13B298; Tue, 27 Feb 2024 12:14:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="DboDdjeu" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E25F13B2A5 for ; Tue, 27 Feb 2024 12:14:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709036080; cv=none; b=ot4J4nW6bPQRu0/pnx9S/VkxSXx4duRT1nVpt4ZYV7D2Dyy0RxijHRlopDBjsHGFqzvKFFIJ70ACyIu7+RG3J721Dxu0lmXW3sBFNUe+B3AZRQDgfRmP+TohTKYh0JW2OaCPaqn+I2r5uaVMPLtPzSvdgQeDtmYJrR6NDxt17Ik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709036080; c=relaxed/simple; bh=fSrXRCpTEpQRkMIDKSjqJaiu1Qp1gr1z2GJ9vNCAs4U=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LpUrYid9/7cmxr5crch56ln9KklkJlqgAhd7rFhuSz3B2xWq/NgXQfr/K9LIw/QyqwTulBB4iM/5vmRIGp3TSDovtawW4rdZgXyzT/1mE0dYviOeAlpfLX1khs3bkmYLzC+9cjdYuPNi7VNZtxbrfjFPdcc9amgR316KcFfx9Ow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=DboDdjeu; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1709036078; x=1740572078; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fSrXRCpTEpQRkMIDKSjqJaiu1Qp1gr1z2GJ9vNCAs4U=; b=DboDdjeuC6RiJ6vEbzJGatvgfWYtudz2SgZ64FtuvTPArPUYRl02oE2k vs5ug0WTNtWHhCJMqLfNMBOyBvJyc8IbLJR+J7rcvbBTquQvKQmKHgEGv mz7R2v8Wg161vvjm2T/4xv//vESICe2FV9SooOxcrDmRatiHfEMVkoXye W3uUl7is+J//exSdhUKP7QWHjgyfi7p7FoAYQDcoyk8ro1bOyn5r8MGFa eKyF6y0DOzE7ztdQ0ZxnX++FPzCJH74s+4DmhUGbf1KmZ8Z5IWvFB52Pg PiIWlPnptLoksuSBb0vwncHIi5EnQ+IQhD8GvbzNiYGcjWL1PBkHUj/Vg w==; X-CSE-ConnectionGUID: EC6mGCUkTgeb01x5BvwdWA== X-CSE-MsgGUID: AaXkTeu7TIif8MCz6FcBNA== X-IronPort-AV: E=Sophos;i="6.06,187,1705388400"; d="asc'?scan'208";a="16882459" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 27 Feb 2024 05:14:37 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 27 Feb 2024 05:14:28 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Tue, 27 Feb 2024 05:14:28 -0700 Date: Tue, 27 Feb 2024 12:13:45 +0000 From: Conor Dooley To: Samuel Holland CC: Palmer Dabbelt , , Subject: Re: [PATCH 0/4] riscv: 64-bit NOMMU fixes and enhancements Message-ID: <20240227-footage-porridge-949a43ee8ecb@wendy> References: <20240227003630.3634533-1-samuel.holland@sifive.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CO1sGIa2Mft349oV" Content-Disposition: inline In-Reply-To: <20240227003630.3634533-1-samuel.holland@sifive.com> --CO1sGIa2Mft349oV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 26, 2024 at 04:34:45PM -0800, Samuel Holland wrote: > This series aims to improve support for NOMMU, specifically by making it > easier to test NOMMU kernels in QEMU and on various widely-available > hardware (errata permitting). After all, everything supports Svbare... >=20 > After applying this series, a NOMMU kernel based on defconfig (changing > only the three options below*) boots to userspace on QEMU when passed as > -kernel. >=20 > # CONFIG_RISCV_M_MODE is not set > # CONFIG_MMU is not set > CONFIG_NONPORTABLE=3Dy >=20 > *if you are using LLD, you must also disable BPF_SYSCALL and KALLSYMS, > because LLD bails on out-of-range references to undefined weak symbols. That's not new to these patches though, right? IIRC that's an existing issue. Cheers, Conor. >=20 >=20 > Samuel Holland (4): > riscv: Fix TASK_SIZE on 64-bit NOMMU > riscv: Fix loading 64-bit NOMMU kernels past the start of RAM > riscv: Remove MMU dependency from Zbb and Zicboz > riscv: Allow NOMMU kernels to run in S-mode >=20 > arch/riscv/Kconfig | 17 ++++++++++------- > arch/riscv/include/asm/page.h | 2 +- > arch/riscv/include/asm/pgtable.h | 2 +- > arch/riscv/mm/init.c | 2 +- > 4 files changed, 13 insertions(+), 10 deletions(-) >=20 > --=20 > 2.43.0 >=20 --CO1sGIa2Mft349oV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZd3R+QAKCRB4tDGHoIJi 0n0qAP4husn7Rq5mjuLx/yxtyV7nKMyhO3tT1JDLr71TEIcUmAD/a+xbAGs6K7dA FvSbJPEadfhLnQI2kFIU0j/68ieDFwM= =prhB -----END PGP SIGNATURE----- --CO1sGIa2Mft349oV--