Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp495506lqh; Thu, 28 Mar 2024 07:59:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXATwD+6Xuu4EiTx5zJjRPHAJESMO7rM/lb8GILSaPrIz2mq+gpxJsKWD9i158DM+QzPr90O/VRIp0v9xE/e4F1njpuAQTwetM1JBEHTw== X-Google-Smtp-Source: AGHT+IGHYkK+Z53HkvWO9E2unbtLpRF7w7VXu443NgG6z9t7OtqhemxDsctqv92Y4r1b+07lv4Rg X-Received: by 2002:a17:906:742:b0:a47:4b39:ba1c with SMTP id z2-20020a170906074200b00a474b39ba1cmr1571395ejb.39.1711637962648; Thu, 28 Mar 2024 07:59:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711637962; cv=pass; d=google.com; s=arc-20160816; b=w7MMaq6rD77s9DZI38pnSaldGffUvNMB0suc1XhC+OrDzSDANHUNvrD7EZg3liqaKT dfg6WopcnX/iHz0S4PZXcmkdIKUa9ytWAkFECVA9BC9uAy6Pb+4z8UkDY0AzffwUlE3j l5p7Lb9v0rA3k2TwOcJ+0xfm/w91rlnn48MBaZXVQKt8lVNm65hGUXeTyj+XUAK+l9w6 NA4iYJs/VfS3nC1sTRWWzvxfvf+XWHZuCMO40FYprmhnmk6tKdiTQdv6qNe3UZz0e8/v 2PnP2KoPE3K6lPArsqoC23vCClhSRb8uO9+KMHnkhvTKS5OEoQJoytSLUlaNj9EwQL9d E1ZQ== 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=pqcTdZsas/L2lLLi0r0tZaLc/T481Gjhve2hnITnqOg=; fh=vNnvqbrtdTWYgOhVYnMpMb6dLXXbxBEjeB0N0cuqbE0=; b=iJYACoaKG/2mIEi8XFBbZaQHqOoXp6/hkdu1/x+UZgCwsmn8Wl3ccAM/hmRbleITrG 3Nmg5zI0MFCqbvAoLvvyGFAxnggKHYYOT8m7ZvVEB4kn5pAxj7Hb0/LaltmKEjL7b+YY 6svJXscSDw5Dign5ZJy/HW4tZLtsLHqh0IFbw2Uifa3hdAT8Yfyb7Hw079beHsBron9g wdgA18AaEXlFsxNwb32y19MwLIzqbO8cvwuDMwnF1KKXcw7jnYttFLau1lqveF+xLtr6 E/TU5dAc3DK7fO1RBeMPVTzM3RHGr5ypvNgT+kcYmaDNa9m5huOGRjJh6E35VpCKBBuk 6msA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=P7J32uYm; 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-123125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123125-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT 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 1-20020a170906058100b00a474e0a08c5si819963ejn.828.2024.03.28.07.59.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 07:59:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123125-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=P7J32uYm; 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-123125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123125-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT 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 627AA1F24939 for ; Thu, 28 Mar 2024 14:59:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46D4A12EBD3; Thu, 28 Mar 2024 14:59:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="P7J32uYm" 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 D9A5C22086 for ; Thu, 28 Mar 2024 14:59:04 +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=1711637947; cv=none; b=q8/c3W0dvFXiOBEqYmWUYmgZJyYLqD58rpK6faBdJvpOlzcw8kD8Hx76KPpaVR3d1W3jZ+YuHgIsyLMbVTDUPQ+clMAmEVEdJMITp+L+heQxg7QHIpB66JZ1CixX4gOW+hYeKfzKZAcWN6QvOAIAsFZJDMoabP3X3RFOB+0Y0GQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711637947; c=relaxed/simple; bh=pqcTdZsas/L2lLLi0r0tZaLc/T481Gjhve2hnITnqOg=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HTLGv3cV7B2B1UNN0+LP5vuYt10it/Q7UePKIWFvNMplrB4og0t/MFx7ZO9IdRSApeFh2E3DMQNrIfigHSZjoNy6yovMRbe1Jic8xVlsFSx/7xOn6fqWeSJMr8alv4nbhZkNEqORrkZraggKd795EfekxGE/qdlk5Hr0X6UOJGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject 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=P7J32uYm; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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=1711637945; x=1743173945; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pqcTdZsas/L2lLLi0r0tZaLc/T481Gjhve2hnITnqOg=; b=P7J32uYmKLn+d2GvrhWvLtmV9erO0xdXjL5FkkON8gogFbxqum/WuR+p balfZv3S1DkHyukT7Qi1pyselk9lAfwrTciDsM7mSL3JU2qX4jVKTGjjM vIwX32MCW6HfsdL9R/pq3OWrw3qd59zA71aDzZaU2iLPBv8y6xAMuePPI IawtDn5WyYZ55nouOvjLftsMmRyQWOhJ5QAhgqr+tXWntQRb6T1R11e+b O1FX1oy3jl3cECkg1fLH90WajDGlJ3ZfWyykPHHuKrGuc6CjjszxQxxT2 WDRT3u8Z2UOTCJH6fbgbznw40et8nvA4ugGox8z+l5WwJUDk+fJZgBJAP A==; X-CSE-ConnectionGUID: aoxufTLkQWq9+1EyrDTJqA== X-CSE-MsgGUID: owMpyAaSQPuHzpD0jAx60Q== X-IronPort-AV: E=Sophos;i="6.07,162,1708412400"; d="asc'?scan'208";a="19071180" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 28 Mar 2024 07:58:58 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 28 Mar 2024 07:58:45 -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; Thu, 28 Mar 2024 07:58:42 -0700 Date: Thu, 28 Mar 2024 14:57:54 +0000 From: Conor Dooley To: Christoph =?iso-8859-1?Q?M=FCllner?= CC: Andrew Jones , Conor Dooley , , , 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 Subject: Re: [PATCH 2/2] riscv: T-Head: Test availability bit before enabling MAEE errata Message-ID: <20240328-issuing-crouton-3448aba81b64@wendy> References: <20240327103130.3651950-1-christoph.muellner@vrull.eu> <20240327103130.3651950-3-christoph.muellner@vrull.eu> <20240327-imperfect-washbowl-d95e57cef0ef@spud> <20240327-77a6b64153a68452d0438999@orel> 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="DnbhxEf6LbaydUMs" Content-Disposition: inline In-Reply-To: --DnbhxEf6LbaydUMs Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 28, 2024 at 03:18:22PM +0100, Christoph M=FCllner wrote: > Switching from th.mxstatus to th.sxstatus should address all mentioned co= ncerns: > * no dependency on OpenSBI changes > * no break of functionality > * no need for graceful handling of CSR read failures > * no need to differentiate between HW and emulation (assuming QEMU > accepts the emulation of th.sxstatus) Yah, th.sxstatus seems ideal here, provided it is accepted by QEMU - but if they allow th.mxstatus I would hope emulating th.sxstatus would be okay too. > Also note that DT handling would be difficult, because we need to probe b= efore > setting up the page table. IIRC the kaslr seed is also read from DT prior to calling the early alternatives stuff, so while it would be a bit more annoying than usual I do think it is possible. My (naive) hope here though is that we don't actually have to deal with this scenario though, as things like the c908 support Svpbmt as well as the maee version. For the k230 the plan is to use both Zicbom and Svpbmt rather than the non-standard T-Head alternatives: https://lore.kernel.org/all/tencent_DF5D7CD182AFDA188E0FB80E314A21038D08@qq= =2Ecom/ Cheers, Conor. --DnbhxEf6LbaydUMs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZgWFcgAKCRB4tDGHoIJi 0ln8AP9fysABFrgqy3Okgc9O+ecA2rywWKxbBMYuyaLnrMihuAEA6mmXJ/4phDg3 D6YcC7uR47skvTGO9rKNLSUVk0G0bwE= =rLay -----END PGP SIGNATURE----- --DnbhxEf6LbaydUMs--