Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp753465lqj; Sun, 2 Jun 2024 22:13:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXj0sIDYg/bFh86JEvUxkUYgUqpr2iD/XV4mwfddp8OU829ZKf8ggDcMAYze73r/yRzvVPy6K0eCWiO+nBoAdkqM+jfDXKRZt6b8/j8tg== X-Google-Smtp-Source: AGHT+IEf76daPYahH3MzGkHIDOEGqQE5V4sdcm84rRm5+ftabUilMfPaIbLk3w8MfieomFKw8kAE X-Received: by 2002:a62:e907:0:b0:702:4aea:96e7 with SMTP id d2e1a72fcca58-7024aea9730mr9929975b3a.2.1717391592276; Sun, 02 Jun 2024 22:13:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717391592; cv=pass; d=google.com; s=arc-20160816; b=XovMA80GGprNp8raZrTEPGMCShtfYE1SEifMg9R1XpwIqig9zYvsFzDROoscuej2Bu EWD2DOkwJuKmdxrGG/fgpkB17j/lcUAS+4csB3lGgdjujNG6D5PIrpshkp51MvzbYi1U oFu+DMZqsyzY4fMC4G3c9G3ctvogZtja1fbc+zSsvEVN2iOHiHdbn1c5r5ljHxuYkU9I PBE+VHsOneV9aFFH/n+MZ/WcRSXJkVAqFHXe58Ck8R9/sNJoxaSawcqRsx+Y2ZvV8jb0 jSAYyLwYxmwW9+I0qwHaJAEYHIDtWcHtAR1GQODP0iEQ/55plN33wB6Onu+XGjCPRnvx 4OBw== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=QV8eevYglqHPFmx8O9/h3WFmThHlIRegzcl/WeZI9/g=; fh=iYf+swgqh2934Rhdf2TubpCjMJw7iakWa0pSlM9Y/eA=; b=DjwDGuSuIoFEBt6ZthyQAhDNfLXztXQERS+DzGPohcLa6fjzTytIVFDMgSxYdjRO6g ee5YRDt3zXOrjlShI4H2XwLzwa5KLcHCAtLzv83NQ/XAvTnBjS+/3WZEDUagvJqyHZjf jY+RtK8cj3GHzTGkwa65EyD3Yk0JYQgvun1BF7PEOX1wl6qhYq0hw9ry45Fe/Uv1Nsbq NHsBWBUFFa6wTm9rXceercvcyF1LNvOsGU5MEhcTMVsuPEdZOlYucCwVLcncCReOYsVl mGpzmLVQJx7yljIkWaXARJwHSfGDZ0khYWbpqLk28ggLnqnEBw1lS86CdiN1C45bDXeB CcXQ==; 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-198607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35cb0e777si5840241a12.779.2024.06.02.22.13.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 22:13:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198607-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-198607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198607-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E332C28216A for ; Mon, 3 Jun 2024 05:13:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DABAA208D4; Mon, 3 Jun 2024 05:13:04 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C734B12B83; Mon, 3 Jun 2024 05:13:01 +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=1717391584; cv=none; b=oCxtASpHBTPTOz3/xauWJ10Hxs4nhNOHdh6mEtQwsisWy1QR1hZ1AVBYTundVnt0SP178Cjtr+jUoGUtzib5tgOtZZ85rfNP4TjP+Szafrkc1D79Hyz+sxtF/mmM+88EgJV3bwDRlJoCgyKf/QMD2Mqcf2UtAohhn1kTyuFnu4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717391584; c=relaxed/simple; bh=I4tg3RbZKDscuJkrdFyXIhahM/BAQns9/jygbqowXeg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dFPyXKZ6PC830RzyNAR16KUkDfxHHMoMyi4854YtYhX2pJEf72FwpKNWogGoa8yzd9UYFBwqT+Mxbv0J9aYSQdMBEEYNLJPtd+ZzUOBXWxXewaOy6l3g4HTbbklK2G1LctXtzxHbMu9qOuFZJXw2zNNl+wgsmy5cnR+t7Qxaung= 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 253B21042; Sun, 2 Jun 2024 22:13:25 -0700 (PDT) Received: from [10.162.40.16] (a077893.blr.arm.com [10.162.40.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4C4EC3F762; Sun, 2 Jun 2024 22:12:56 -0700 (PDT) Message-ID: Date: Mon, 3 Jun 2024 10:42:53 +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 V17 1/9] arm64/sysreg: Add BRBE registers and fields To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, will@kernel.org, catalin.marinas@arm.com, Mark Brown , James Clark , Rob Herring , Marc Zyngier , Suzuki Poulose , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , linux-perf-users@vger.kernel.org References: <20240405024639.1179064-1-anshuman.khandual@arm.com> <20240405024639.1179064-2-anshuman.khandual@arm.com> Content-Language: en-US From: Anshuman Khandual In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/21/24 18:54, Mark Rutland wrote: > On Fri, Apr 05, 2024 at 08:16:31AM +0530, Anshuman Khandual wrote: >> This adds BRBE related register definitions and various other related field >> macros there in. These will be used subsequently in a BRBE driver, which is >> being added later on. While here, this drops redundant register definitions >> from the header i.e (arch/arm64/include/asm/sysreg.h). >> >> BRBINFx_EL1_TYPE_IMPDEF_TRAP_EL3 register field value has been derived from >> latest ARM DDI 0601 ID121123, AKA 2023-12 instead of latest ARM ARM i.e ARM >> DDI 0487J.a. Please find the definition here. >> >> https://developer.arm.com/documentation/ddi0601/2023-12/ > > The K.a release of the ARM ARM has now been published, and that includes > the "0b110000 IMPLEMENTATION DEFINED exception to EL3" value, so we can > point to that now. Sure. > > With that in mind, for the commit message we can say: > > | This patch adds definitions related to the Branch Record Buffer > | Extension (BRBE) as per ARM DDI 0487K.a. These will be used by KVM and > | a BRBE driver in subsequent patches. > | > | Some existing BRBE definitions in asm/sysreg.h are replaced with > | equivalent generated definitions. Replaced the commit message wordings as suggested. > > Aside from a couple of minor issues below, this looks good to me. With > those fixed up (and the commit message above): > > Reviewed-by: Mark Rutland Thanks Mark. > > [...] > >> +Sysreg BRBIDR0_EL1 2 1 9 2 0 >> +Res0 63:16 >> +Enum 15:12 CC >> + 0b101 20_BIT >> +EndEnum > > Please pad this to the width of the field, i.e. > > 0b0101 20_bit Done. > >> +Enum 11:8 FORMAT >> + 0b0 0 >> +EndEnum > > Likewise, this should be padded to the width of the field. Done. > > As with the BRBFCR_EL1.BANK definitions, I reckon it's worth givin the > enum value a prefix, so please make this: > > 0b0000 FORMAT_0 Sure, will change as suggested.