Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1095754lqa; Sun, 28 Apr 2024 19:12:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUl5O/QCJmuQyv5iTljT8VELJZZRiCWCy7YLliVCdl1lzDBTZJum8zHwMCDusQzh3XWHvs1BUztN6oe+Nl4BL52i8kJB64eUuRyKWDmZA== X-Google-Smtp-Source: AGHT+IEOwuC28WL5K05F9KdlkmeyLE++UgAJW63MreeVQcJAY/Cq7lq4bsiygccGlMblkPkFl66I X-Received: by 2002:a17:902:daca:b0:1e3:e243:1995 with SMTP id q10-20020a170902daca00b001e3e2431995mr13603672plx.1.1714356753447; Sun, 28 Apr 2024 19:12:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714356753; cv=pass; d=google.com; s=arc-20160816; b=A3gxIQRkPqHUwFaU81fwxvG8QEbV9HZ1ewa4c5zICgeuZ7898WexD58Lc1teEftm9i gBLBjchCYaGTcdgR+A8BYUvSDsWrMxfQef2351GblixwHiJEmEodg1WMWQAqXpLesT2X 5hqqdEh4j6o4ZOgiwDG7F8ko5RXxB5SzJK/L+4GS149/R4+2bFlXLEl+u999/lqBG4Zm ZTDE7WM/rtOMUlIhDOOnAxL4gaaKcjat/AUpBpR3HdBo1Bmgg6rV+QicTtHPKhMT2cfm GbSHFCLHBF9RO7lAjinDf08fSKFc2xjKFc7G0A9Kf2ooQ5OrLJsa0UF6b/6XAEs/n6dg u8SQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=fHeL7uzjUlI2BUSyxrOcYkI62yxl3D+R5i2ETjePYWA=; fh=n4cTBswTUkQQT46GKcPIzYy9JDA7NQzQ1qA+J/tAVTk=; b=bIwlY2CYy+rW1n5tbmwcSt5tyB9bv2mQJwpA0hOOexNfv1uTew4O8bmRa4LrtsL5AG z//4oF/sgM67zHDjnCkO1Juj/Fuz5gszj9FZhedO02p+AAswurq+vZGyLbR6w7Vna/W5 mcZ//m8QeD5WIS6Vkf/bXSUxPDB11GwtQXTBjO0mWEa0UmRbG4UpCz1lM/SCqJ3W3QVa ndxIdqP5zJF/fGTtufSgx/3V2IqgiJKeeioDnBGnlO/8ek/ZZpJHekK8QE3INKv3dlrS t70wJoiGDwoii0pqfjNkxBZ8VZw9qYr8MlMS39rULxvitVwh227/+YP6AxkSFi0/l78K YSHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-161678-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161678-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b10-20020a170902d50a00b001e25e66d998si19911395plg.617.2024.04.28.19.12.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 19:12:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161678-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-161678-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161678-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D57B9B20F6B for ; Mon, 29 Apr 2024 02:12:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE64510F7; Mon, 29 Apr 2024 02:12:21 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11D237EB for ; Mon, 29 Apr 2024 02:12:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714356741; cv=none; b=G3WG+ro+dxuZh3V+AjVVbbatj5yYn1T1J7tP0gK52KnRKuBTQ8LIsX6uHM4xp4pZhn+pmVDOrX7vmEAt/Tc2Hy3OBh4a26sRdkigLBIvvh8GLVxZ+wdXnUSEqSR62WDNILaDazP92lDO/LiTzW2sHR6ByVd/J0k0EJp3MfSMSF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714356741; c=relaxed/simple; bh=TjzGRrlLJm+93DR1oj1ImEevOHZ4wp09edRjCQW9RBA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Hrazjq8rv2nVdyTQ0LTuQG+bIgI00vpYIS9DHN4+k5Rz0oPAhtN7nFvU2+mpxha0iKC6XPOPA9TwvzSkuWtsXnu2PZmDaFq055W7vTbNE6cQEEmiGDiKkycMKTZ9uhYYuSdA6brAjxXqPcf09FK0CDrgeIpY+4i7W32i463+Spg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 85EE22F4; Sun, 28 Apr 2024 19:04:37 -0700 (PDT) Received: from [10.162.42.72] (a077893.blr.arm.com [10.162.42.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C04213F73F; Sun, 28 Apr 2024 19:04:08 -0700 (PDT) Message-ID: <7abe77fa-e9bb-4f50-86a8-5bae530bf068@arm.com> Date: Mon, 29 Apr 2024 07:34:05 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64/sysreg: Update ID_AA64MMFR2_EL1 register Content-Language: en-US To: Mark Brown , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, linux-kernel@vger.kernel.org References: <20240419021325.2880384-1-anshuman.khandual@arm.com> <20240419134623.GE3148@willie-the-truck> <49365864-0080-4ddd-b0cb-eef41c88b6a9@arm.com> <20240422171613.GC6223@willie-the-truck> From: Anshuman Khandual In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/23/24 10:47, Mark Brown wrote: > On Mon, Apr 22, 2024 at 06:16:13PM +0100, Will Deacon wrote: >> On Mon, Apr 22, 2024 at 08:38:40AM +0530, Anshuman Khandual wrote: > >>> This is not being used currently but will be required for upcoming >>> features. I was under the impression that register fields (atleast >>> for the ID registers) should be kept updated, with latest released >>> spec ? Besides lately arch/arm64/tools/sysreg serves as very good >>> reference for all necessary register fields. > >> Why? The linux headers aren't documenting the architecture. > > I don't know that it's something that we should be doing apropos of > nothing but if people have done updates and they're not unreasonbly > complicated to review it does seem useful to integrate them to avoid > duplicated work. There have been some issues with that around the ID > registers (which are going to be on the places most prone to this I > guess). The other problem is by not updating the individual register fields with the latest spec, it also gives an wrong impression about that field, and also might create confusion.