Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1214282lqe; Mon, 8 Apr 2024 02:07:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVI/371jWbk1JDWwn1agvmfzxYcaznuCKi2dijYspM3TdFdgOHNXYhR7UtEP9ABWRI2B4neatKTxrmZrELFOlIuJBXMm51FW5wHfHlWaA== X-Google-Smtp-Source: AGHT+IGk3y1jA5uDnJHOVz/OX72DGYPLQKkdWmoEvs8gQ6UCNo1q80aEo5ny2jT7Ifvoj9IxuDO8 X-Received: by 2002:a05:6a21:1a2:b0:1a3:c4d9:3e19 with SMTP id le34-20020a056a2101a200b001a3c4d93e19mr9802984pzb.40.1712567240153; Mon, 08 Apr 2024 02:07:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712567240; cv=pass; d=google.com; s=arc-20160816; b=L34PxxxVPAZcQSeUcryLwuxahuGnBTccLxd10EF2qhg1vWW3ydtImTvfKBV8YGG2CT htdQ5X+O/8FKMt8R2qvsE22agFDx88lyNC3DtCIvgNrFB7fgFD8kjTqGjiTH0iroWLaX LPuuGS2PzmAXi0xQ2BdNh7LQdAalr6RKibpdxB9+gqaCI2aJ0+URhkv7DbkuHVTRps3n jGvfC7y2beCTUQm3Iv+GrWOf3RwDs8Drks5+lt4W/dZK0mEEaDOXTgS7nrd25bjqu6eU 9wj2lA0wBQzTd13xFH/4vzf5BjgR5IBf7PPwMRhRwfax+bTlnaGclVEpkEyeAJWLWEmP T4bg== 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=akQc+U5hAZwoLZiwB/CcAXYMfBwyVM+4OQW51zKEobo=; fh=22gsRpF5H0r52Bb2eeZsT+6xCUaPLrZsj1E0yLjhOxw=; b=lBGmf3dAeGfuprbvnjDjQn3bsdNbeCfyOgC4SCBwHMBdMhh+zRBFSLVm74RnibYknx oKQ4lg2Xf5voOXvv2r73z3GC9Ga6S/aumNbbxXK9oHz/uk1E2mTftUBfnXHI0qBNTeTV V7l39LsaJRumSWzlozS4HHtqrZY+LJNd8p4anlVNuM0S+brzBF2JAT8VS1PHU+BaGUKx bG95WB7q2ueBREwJv4u841VBDZCNEAjhjSw1QjsyFm7G54MOz60VE96FirsQDnJj5l2x W7+0f4jz+BAkxXrHecL//6tHznXKkAiXt7fc1k+6YKkFkuIFosxvXOA2VDSJzSwg9vfF rcJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S8sH5GE+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-135103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cv21-20020a17090afd1500b002a01f8b865bsi8077644pjb.80.2024.04.08.02.07.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 02:07:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S8sH5GE+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-135103-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135103-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 195052840C3 for ; Mon, 8 Apr 2024 09:07:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B65E4084D; Mon, 8 Apr 2024 09:07:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="S8sH5GE+" 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 35A273FB83 for ; Mon, 8 Apr 2024 09:07:01 +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=1712567222; cv=none; b=PcnkThy2oYNgI2xH4mQGYLHkv9UJY9yJObJDUEgCE71ZiZ2KJbGfgkW/nwmIBqhdeKTRfJgC5AuwFKvaEmuXPaJPrlNE3dzu4lnm6UPeRIhW0IYIKWFBC/ngbPDmYkaCzSUk27LlGAvQCMsUs2VPVJekg/Tgu92qOQ+kVGeJ08c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712567222; c=relaxed/simple; bh=akQc+U5hAZwoLZiwB/CcAXYMfBwyVM+4OQW51zKEobo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NkUGCQLO2CXhUbVTIox1e24FxOlLjKatk5DGF7EcBUp5ECzZ2Lie4oCaEUk6jafzPhJtC/jjcdJhWEy3cUponiZBcO5YtyQ0dIe7rA5hcZ/EmrsxW7pqHipkUVatU/LbLFhddtULHnVupyKFl9lU9IwyH0EJA+8Dg+pZ4ThvJ30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=S8sH5GE+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDFE1C433C7; Mon, 8 Apr 2024 09:06:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712567221; bh=akQc+U5hAZwoLZiwB/CcAXYMfBwyVM+4OQW51zKEobo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=S8sH5GE+JsA1VWNrJMzYWSLpVutU1kiQTnwhqQ4Hy+1zE3J4QWlo0i5FgfCDgrzX8 eY9ROiD7UO9GQiQ9TCHGXw8R2cUkT8qEaO9ZjnIVDS9ZJK/y4n1gQ9+vn0EegYLMoC tc6Eup9+UFqvbF32/eR/nXfHBcsdedvaY0k13/5BZtJ0+Lu2CDY8slo7VeriKhF2SE H3ShBmFOgG6HPXpOsiGtCwnV+XfD534/sqNojdcUcJQlZJXBAmruX7fRb/phMyWIv4 /EpUfqSL2hNN9/+HXH3/afVp9dRycz++zI3hbXjj94C1+qymhRfEXJCXqAJ/ALfLZJ orKjEBzubdnMg== Date: Mon, 8 Apr 2024 10:06:55 +0100 From: Conor Dooley To: Yangyu Chen Cc: Christoph =?iso-8859-1?Q?M=FCllner?= , ajones@ventanamicro.com, alex@ghiti.fr, alistair.francis@wdc.com, Albert Ou , bjorn@kernel.org, Conor Dooley , cooper.qu@linux.alibaba.com, dbarboza@ventanamicro.com, Qingfang Deng , eric.huang@linux.alibaba.com, heiko@sntech.de, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Palmer Dabbelt , Paul Walmsley , philipp.tomsich@vrull.eu, samuel.holland@sifive.com, zhiwei_liu@linux.alibaba.com, Guo Ren Subject: Re: [PATCH v3 2/2] riscv: T-Head: Test availability bit before enabling MAE errata Message-ID: <20240408-semisweet-class-39239c279adc@spud> References: <20240407213236.2121592-3-christoph.muellner@vrull.eu> <20240408-dispersal-foster-49c4e269216e@spud> 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="Jkvao9Yo3z8s7tYF" Content-Disposition: inline In-Reply-To: --Jkvao9Yo3z8s7tYF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 08, 2024 at 04:21:24PM +0800, Yangyu Chen wrote: >=20 > So the solution might be to have some property like `xtheadmae` and test > th.sxstatus whether it has MAEE bit set when we have this in ISA string in > the DT rather than have MAE enabled for sure if `xtheadmae` exists as > discussed before. This will require changing the DT. Yeah, I think I don't mind what you propose, as long as we define in the binding that "xtheadmae" means the hardware supports it ***AND*** the bit in the CSR. That's easier on firmware and taps into the existing support in the kernel. I think it's more consistent with how we handle the standard extensions to do it that way than to assume "xtheadmae" being present means that it is enabled. > However, since the > C908, the first core released by T-Head that supports MAE with non-zero > arch_id and imp_id hasn't merged to mainline yet. It's time to add this > dt-binding and some code to probe it. I can have it tested on K230 > recently. Whatever, this patch can go first. I don't think adding something like this should block merging the initial c908 support though, can easily be follow-up work. I'll apply the k230 stuff Wednesday if nothing has come in on it by then. Cheers, Conor. --Jkvao9Yo3z8s7tYF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZhOzrwAKCRB4tDGHoIJi 0oB+AQCPgg96W0VvHOZrVatTzvKo8Ks06TKzM+xecKegEiQXkQD/YVqMa3ZG0Q+h USez/WU6aoulSTP1+1Aj3u0FXiWhUwM= =2F4L -----END PGP SIGNATURE----- --Jkvao9Yo3z8s7tYF--