Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C973CC43334 for ; Wed, 22 Jun 2022 12:06:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FBvPvvVKrZP/9zKhrvNUPM/20FjCh7vhWaR1VisQlUM=; b=QY4xMYaqvNzauAGwbJcBqr5nIp yZxK2Lzt1g35OSoqip1Vuh7QqStf2QwVfYUaI84gWaxVwKiEfKXTvOa/waSy5smoSZE5eH8BTVT4O eFQ5KL++FVx4FuWAP4sLCxVlDyE/BCEpglsrvbwgQdHy2388iRJz2+nc26+nSKhPa5Bs5hGgRZV6p FsgoxqRMxacc3hrOn2Jo00V8nT2wGcRXH6CIwKAoMrskARfplcRudF1YS8i2iVm5QCa1FsSizFCTR 8P61WClMFOo/cC/ZICA9On/CdL1VA4bB/zzQixOuN129vpJ4T/060KWLm9eVaItWtPClUPbMDEF4L fDEOlo9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3z6V-00AHSM-9r; Wed, 22 Jun 2022 12:05:03 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3z6Q-00AHQv-Vh for linux-arm-kernel@lists.infradead.org; Wed, 22 Jun 2022 12:05:01 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 588D5618B6; Wed, 22 Jun 2022 12:04:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8030CC34114; Wed, 22 Jun 2022 12:04:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655899497; bh=e8EAdzxLtfqGiXgF7pez5fZNbLNjH8LSlQ0KnDANTX8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LJTlFeSIzawQ/SK75HhWupTBSTitRpYcwq3dd1Rz9DGcOCocfhK9Fticl9P7Irmfi YBedGMOc45XlVKxgiG+LUNES6cge5a9ueze6KWj34+c3Nzu3nuQNyaxWDVDNYwc459 V666yhUteJ9/Iosu/FaBAQLAr1I5bDOLSAoiiN29WAJXUAtX8PQCks/2zoEqqasmqo fTQ+j0TZ1FGccNKEnE8IVCDsaOZW+BX4KsNTW9M/iaCJZlmRahEjh3jdAhpXbW/MMw kQHgp+hq5S+0MrfTey1wlNzO8rpHqmNgNQRSaMzwo77Q0SlaPwrhOAVOwK+3Wm2uEF 1Qd3pzi6qwqBw== Date: Wed, 22 Jun 2022 13:04:53 +0100 From: Mark Brown To: Mark Rutland Cc: Catalin Marinas , Will Deacon , Joey Gouly , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 01/26] arm64/cpuinfo: Restore define for AIVIVT cache type Message-ID: References: <20220620124407.482398-1-broonie@kernel.org> <20220620124407.482398-2-broonie@kernel.org> MIME-Version: 1.0 In-Reply-To: X-Cookie: Truckers welcome. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220622_050459_072100_1ED7EDEC X-CRM114-Status: GOOD ( 23.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0601460603298042233==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============0601460603298042233== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Z+9ZjeaaSWfrt0zp" Content-Disposition: inline --Z+9ZjeaaSWfrt0zp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 22, 2022 at 12:09:33PM +0100, Mark Rutland wrote: > On Mon, Jun 20, 2022 at 01:43:42PM +0100, Mark Brown wrote: > > In 155433cb365ee466 ("arm64: cache: Remove support for ASID-tagged VIVT > > I-caches") we removed all the support fir AIVIVT cache types and renamed > > all references to the field to say "unknown" since support for AIVIVT > > caches was removed from the architecture. Since the correspoding removal > I'm not too keen on this, becuase architecturally AIVIVT does not exist in > ARMv8, and the real bug here is that the ARM ARM still calls this AIVIVT rather > than saying it's reserved. Yes, it's rather difficult to divine the intent of the architecture here - I was erring on the side of the name having been left there for *some* reason, though equally it could just be done that way to ensure nobody confuses things by trying to allocate what looks like a previously reserved value in future. > > -#define ICACHE_POLICY_RESERVED 1 > > +#define ICACHE_POLICY_AIVIVT 1 > How about we just delete ICACHE_POLICY_RESERVED entirely... Sure. > ... then in subsequent patches we don't need to define a bogus > ICACHE_POLICY_AIVIVT value in the scripted headers. I think if we don't have the value be the same as it is in the architecture we're going to have the next person who happens to look at this go and try to define the missing value again. I suppose we can add a comment in the text file... --Z+9ZjeaaSWfrt0zp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmKzBWQACgkQJNaLcl1U h9BRcAf/eowRqsn2wMogiSW4rzvKQRrvsGSgWeJUGNjRP3EpxX9PG/6ESK1sXC72 LfgkYjaL6HUYIKdoAO3YXNNQcJTq5pWkzvGii7RF7fCxAhijzo4p2KK+NGdUaDPu o0q6Rs8+3YXlTnx+QFsyAchKJ6qBgYTdf0LPj6CxUb8J6gHoYtmHrAEFyDwtGA5w n0VpcsfakHC5dEpDognx1ZbUsMFOZE96RPYpQA1Pfuq8g6Ko84UvU1nii5XU9fvs 8EuG6rGwVBhs06mREm96giLgOGbSpiusiRBPb2C+Lob4xkpdu293RArBw+kdVdwO MjLyjE/Je0JY3w6neX31H+eCQAcSWw== =5m+2 -----END PGP SIGNATURE----- --Z+9ZjeaaSWfrt0zp-- --===============0601460603298042233== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============0601460603298042233==--