Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp164645lqp; Thu, 4 Apr 2024 09:33:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8ciOtZWWCyAtTfYoMV/6A4f2eYUSCQwsFkrgf5i9hnFvDOsDILXnVUwRcSJ6yOQ6ZPbYf9kO5Wo5O0oe9I+Ls2lMhTv7MkmfF1caU8Q== X-Google-Smtp-Source: AGHT+IFjUz7JS4Q/QTmIJy+8Mp9zQ8whZNij+Z+IYCiUYaI0SDZL8CA8oYA61oIk8Uwrr1vGa/la X-Received: by 2002:a05:6e02:1d84:b0:366:c68f:cf86 with SMTP id h4-20020a056e021d8400b00366c68fcf86mr3533031ila.32.1712248424504; Thu, 04 Apr 2024 09:33:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712248424; cv=pass; d=google.com; s=arc-20160816; b=naxos1zbJBfFlbs4Tqhhsx7J31FFh/iNRBkEpsUMObxg4zN06ei2XrVwPBIS71i8ir AkCV0EkDAeW3JWIUMYmiGJ8FfZegCBZ2AS0XOUuQWvT7aDm2kHidYwoOaP8NYl64ECTa z6x8lKRcyqD3wl3Y2uPyQdPbIXnw1qwIjfbCCHrMf1D91CvD7U/oTU6kn7dRprYmJ5Cx hOY+fOB9epJnfQuohCOIBhkG/U8oVpPSIGFlSb3GOm3nqmEEjzgc4OAv29a2IU2bquOy F10b1ovecTx7H3YLC7EQm43At/RmmK+ESzi10V8/Hi4bbuUA2tt2awTgtNADoqnlHgjU tXWg== 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=oygxtAYgo7ybilPD4TDbXauKq+YBViBtgvaImPWLI7Q=; fh=Fwx2gJu21iTfElKGrhApOcM6PVcUjOrwYtNEf4IzqKk=; b=P5R5AxU9uqZ8MTomy+orM+F4VS7Z6Mzki9ANgD4YPRFz0nilwBHHoI+3J0tAHLaonB MRMn3lm/V5f/fMgIx4GJjRZdw946ZBqWfmPv4GCuRsm/VFRcZJDEOCiLHZqes29bUQJq CLLfMNnhm0POyhLiXm7pyB+XCM+qjZA0w9bdWlNgssvwfk81JDZLeyPqMiWM2Gd6ltHm ybpLYoM3O6JzZiFmdte25CNKZ9Ft+cwl0iuQ030eWtx8Nr5HZZdQsIzO1I9NpUbaR98G +rRKBCsHvSoggmGIHHeoVp6CsIushubFEZuSRdJGO1J9gut1l3cm1VqIPHHbcwYSwnug Yzlg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kf4ZmMZy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131782-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e7-20020a63aa07000000b005e842910183si16208712pgf.490.2024.04.04.09.33.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 09:33:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kf4ZmMZy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131782-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 0CFA6B25E69 for ; Thu, 4 Apr 2024 16:03:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9E0312AAE1; Thu, 4 Apr 2024 16:03:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Kf4ZmMZy" 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 F15461D531 for ; Thu, 4 Apr 2024 16:03:02 +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=1712246583; cv=none; b=W//ONCRMRBxp2t8MllX+NCjrZMm7bJPu2TkF0/4MsFeVoCw8GsI8j+nIPKhiikQBOQiJ7ifnhAcdZhAe4IsYvqgJXYkI/NeaEloULbItn72xVJ6RT95QdoeyE+QYY+f5xXshSRfjJTWXTrGskloyptx4RxbClwc0X7pj+1tMdlQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712246583; c=relaxed/simple; bh=oygxtAYgo7ybilPD4TDbXauKq+YBViBtgvaImPWLI7Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HG2Czn1LNW+FDZrAqXCDGqFrByfkzkxKaUXMfZWfFnShqFDqivKo2aHHNqdZwLTFahcY1Gf7fxjvofXkdzKHbqN5RJ25yRWlLrI6TL6hVIyF4Lnm1DxbpQvuygfqXakQ3QxbNZk92S3NXz5LKpsZS/9gmDymlfDAbwSyqaeb0aU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Kf4ZmMZy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46023C433F1; Thu, 4 Apr 2024 16:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712246582; bh=oygxtAYgo7ybilPD4TDbXauKq+YBViBtgvaImPWLI7Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kf4ZmMZyEcoI29vi+4BvRfIYFMyEkLSITJ6nuExiwuz9p9HLGL9wSTeuO9kqFQpcr onSSOu7kIaM8FQmm+0F9v2c8e1scpXxOK21tRZySKPrYLj488vJBEX6eYiO2kgviiW 9zAIbOHctgAVYhN6E3prvcefWdcyqA+tmLow7aPUVD2ocaJotmPnmoMmDIuvhT/Svf +brI59zDzju6Sj6p/lkZiIwssGNY2rqoSbQcz/ZxZZYq4LX+4FPTXfYMThwAYZAunV syvtrFymcGWRUWQWrrLzEu3Gp1sYxBrtlhyQ0iFiXr/Ej/YBAiBCtiONzWuFjOxgGk BqFSPgaUfxN1A== Date: Thu, 4 Apr 2024 17:02:57 +0100 From: Conor Dooley To: Christoph =?iso-8859-1?Q?M=FCllner?= Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , Paul Walmsley , Albert Ou , Philipp Tomsich , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Daniel Henrique Barboza , Heiko Stuebner , Cooper Qu , Zhiwei Liu , Huang Tao , Alistair Francis , Andrew Jones , Qingfang Deng , Alexandre Ghiti Subject: Re: [PATCH v2 2/2] riscv: T-Head: Test availability bit before enabling MAEE errata Message-ID: <20240404-drown-wronged-bfc421e412aa@spud> References: <20240329121414.688391-1-christoph.muellner@vrull.eu> <20240329121414.688391-3-christoph.muellner@vrull.eu> 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="wpMuYirtpZPsx9jO" Content-Disposition: inline In-Reply-To: <20240329121414.688391-3-christoph.muellner@vrull.eu> --wpMuYirtpZPsx9jO Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 29, 2024 at 01:14:14PM +0100, Christoph M=FCllner wrote: > T-Head's MAEE mechanism (non-compatible equivalent of RVI's Svpbmt) > is currently assumed for all T-Head harts. However, QEMU recently > decided to drop acceptance of guests that write reserved bits in PTEs. > As MAEE uses reserved bits in PTEs and Linux applies the MAEE errata > for all T-Head harts, this broke the Linux startup on QEMU emulations > of the C906 emulation. >=20 > This patch attempts to address this issue by testing the MAEE bit > in the th.sxstatus CSR. This CSR is available in HW and can be > emulated in QEMU. >=20 > This patch also makes the MAEE probing mechanism reliable, because > a test for the right combination of mvendorid, marchid, and mimpid > is not sufficient to enable MAEE. >=20 > Signed-off-by: Christoph M=FCllner Seems ideal to me, I'm guessing the QEMU guys were okay with emulating the CSR. I don't see any screaming at the very least on the patch for it. Reviewed-by: Conor Dooley Thanks, Conor. --wpMuYirtpZPsx9jO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZg7PMQAKCRB4tDGHoIJi 0iaGAP9p8R6uT9Dq2VFAZHEcMfzw8GOIp1Ed5vkewkKknFDwcQD/dslVWUtYecpf gVVa5+8uAg5289fOiPhqPgRKomQtwwk= =NeFs -----END PGP SIGNATURE----- --wpMuYirtpZPsx9jO--