Received: by 2002:ab2:5182:0:b0:1f4:61d5:3ad4 with SMTP id x2csp39483lqi; Fri, 5 Apr 2024 09:11:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdGRV61h4pEctKD4dEg/c6onxlH/TE8ruR/uNRzc7L2vZm+3Ff1T39aHJC0RzHDGTVzsIC8o3zeXtD7U01dE5gdXD+/Bu0rZyP5b1RcA== X-Google-Smtp-Source: AGHT+IEPrV21ny0slQT5OGTtBXM04Xmenga0ey6gHU4fHMnqcPRZy7v8vicTWf/D1MufXc4RECYL X-Received: by 2002:a05:6a21:3943:b0:1a7:294c:1a6b with SMTP id ac3-20020a056a21394300b001a7294c1a6bmr2386962pzc.59.1712333477508; Fri, 05 Apr 2024 09:11:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712333477; cv=pass; d=google.com; s=arc-20160816; b=B1sylxBARi5wHmfjYZ1tMZ6DHMUGB6RFUg0jf7wzh1LbbWn5CuO6GW+HedgKSGenjA iYFIbn2zW8gXQrM+kT34NVS9L+SbS50srF2CkmVRBlEeKb3p7Z8pSzhrQcx5wZivun57 Q1shI3X335BnWDj6adbYsxBBk+fh3G3KRhA5zjeM3vsTObZl/C+GV5CJJI6HMNvGDotp MdLPV+EZeSzqC8gaqnAUWgR7oWwT3OooogD3xeGaaQnJQXsy4liLPvD8P26GSdRZTA8z 6tEzzGOH3gWYXYaxpgTPQOvepHTEoLkdvN8/h/RaJfaETM1oiqRLuTgNlmCUu+2TUuD5 qXig== 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=1TYQ2nOf7m5eWfWsRNd18xHaQuIeo9EkWggomHT0qUI=; fh=KgBrj4dRCJKtA7JuVSI2yrxexw6ilOnnZnrA7PZT3Y4=; b=X+N3291eX6S2+xnM4GRw0FMXFgRN2rOi5vLMWtjHMp0KCTiEUv/6y3nvcIUgadJ2cy ntcBCQTF7Hzm7oygU/Rk2R2IuBDFLZP7wQ76QdZNS1I+9Ke3rWs/9zpRGUIWWlUWYMsm 1JlvSolz4Q2iKHcaPIVqopplUtiFrTeUlJt/VePXr4a4i5mhTdoUJtmOSUgEi0IsciVt tI/JI5oIGTPqpOZAzF9+DbNiBuI94gkavyZmxLtyCAwujqVKm6/jwkirHQ+Mc14EQZXK sBZ3dB0FJy78ajt+yeb1zfXtHUzlnxoJbUsm7rJ9Of/ckTrBxr2Ulq3n45bjcoAhP6cV hFJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Om3T7B+X; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133297-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t16-20020a63eb10000000b005dc816b234esi1613303pgh.629.2024.04.05.09.11.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:11:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133297-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Om3T7B+X; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133297-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EFD22B2844F for ; Fri, 5 Apr 2024 15:53:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0DA616C45E; Fri, 5 Apr 2024 15:52:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Om3T7B+X" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EE248171084; Fri, 5 Apr 2024 15:52:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712332353; cv=none; b=tJILLuSavG02VEZ58XPTSus+Qg1QM7bsrpCiyHdkGS9Cucj8OC8sn6i4RnOIgTPqvY0REZuRHhRl62xUKfiVHsg0y2CulpNTnFRUEnRBUp4TQWgRk7t6Szz85pmYAdy/IMJ0wDNTeabSNXrQRr9b3idW2vGdO8MWZE4MMPOKeBA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712332353; c=relaxed/simple; bh=1TYQ2nOf7m5eWfWsRNd18xHaQuIeo9EkWggomHT0qUI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lVNJHrwVF3whS360w/NyQETjavxYRVT2DYBNoY8uWMtltLrzRtp68/XpkBZYve9gZAKAnd0grt+dP2OS62CaMSiEovjfISjmSEpu+OwDPudWgYBmgrTbzRsuee9mwjvqmgM9u0KI86AU73JsPdaZZeBMJ380D1zqGdIh1WE92cQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Om3T7B+X; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C456C433F1; Fri, 5 Apr 2024 15:52:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712332352; bh=1TYQ2nOf7m5eWfWsRNd18xHaQuIeo9EkWggomHT0qUI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Om3T7B+XSv2dLDaDtUMT1+Bj89NktWuLG9ZRiHO6pDXJCKOFbWt3CuoJPum7E3X2j TWI7MtUFfRcF7Mdq4DvRdXsYGbaMY2y8A53XSgX6Wr06fq4MvfRcCohMT/67DUID7J jn9BmSmUHZ5xj+761vczmdGa3K6e386tRbc4MsOnT11ooeZlA5p18lWpvUUq4Ljj6T Y5/S5MbstQZLh48LDyA8yYRFhk+Y3YmpoD9RevHhIJuUa7C1CecIPzSAkWhza6DnPK RlmUbsLkYrUKL8Nxk0yFvPuDgLFb64V2/yFNrQ/Zyj7TvtVGTJYWQJ3iNjxsB06OXr IxlcVyAXZ0RvQ== Date: Fri, 5 Apr 2024 16:52:27 +0100 From: Conor Dooley To: Yangyu Chen Cc: Icenowy Zheng , linux-riscv@lists.infradead.org, Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Michael Turquette , Stephen Boyd , Linus Walleij , Philipp Zabel , linux-gpio@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 10/11] riscv: dts: add initial canmv-k230 and k230-evb dts Message-ID: <20240405-election-stubble-6b7e3d530d3c@spud> References: 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="zGrM3zVsiNMs8DNg" Content-Disposition: inline In-Reply-To: --zGrM3zVsiNMs8DNg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 25, 2024 at 11:10:49AM +0800, Yangyu Chen wrote: > > On Mar 25, 2024, at 00:23, Icenowy Zheng wrote: > > =E5=9C=A8 2024-03-23=E6=98=9F=E6=9C=9F=E5=85=AD=E7=9A=84 20:12 +0800=EF= =BC=8CYangyu Chen=E5=86=99=E9=81=93=EF=BC=9A > >> - Svpbmt and T-Head MAEE both supported > >>=20 > >> T-Head C908 does support both Svpbmt and T-Head MAEE for page-based > >> memory > >> attributes and is controlled by BIT(21) on CSR.MXSTATUS. The Svpbmt > >> is used > >> here for mainline kernel support for K230. If the kernel wants to use > >> Svpbmt, the M-Mode software should unset BIT(21) of CSR.MXSTATUS > >> before > >> entering the S-Mode kernel. Otherwise, the kernel will not boot, as 0 > >> on > >> T-Head MAEE is NonCachable Memory. Once the kernel switches from bare > >> metal > >> to Sv39, It will lose dirty cache line modifications that haven't > >> been > >> written back to the memory. > >=20 > > As MXSTATUS has a S-mode read-only mirror known as SXSTATUS, maybe the > > kernel should detect SXSTATUS to decide whether to use Svpbmt or > > Xtheadpbmt (BTW Svnapot conflicts with Xtheadpbmt too). > >=20 >=20 > Thanks for this hint. I may need to change some code in the T-Head PBMT p= robe. For now, I'd rather we just focused on supporting the standard extensions on this SoC in mainline. I've applied the patches re-doing the Kconfig options just now, feel free to resend these patches whenever. Thanks, Conor. --zGrM3zVsiNMs8DNg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZhAeOgAKCRB4tDGHoIJi 0s3NAP9jV2FX5X2ERdKTaT8zG4y7prr8i8ld575p2m0u1mmbNQD/SIHdnbGSOOp0 XurrRRps4Y469JrQ/R9fmQG+RFel5AY= =Xusz -----END PGP SIGNATURE----- --zGrM3zVsiNMs8DNg--