Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2634560rbb; Wed, 28 Feb 2024 07:56:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUW6WHrEhEpqjHMMNStLWkGvN5OCEKcq6A6o1PjGJnOy7LASwcVAvCis2W+56jvSI0QsxTpmxnTe4a1ddDguXm7y/NmSi6b1TAjkRYBzA== X-Google-Smtp-Source: AGHT+IEpvPK5C3jdzE+sTPXR+CHeQ8BzrWk8c6XdeRS+s17YeFfQ9XROa//iV/LlBMcOUGVi4nSV X-Received: by 2002:a17:90a:4747:b0:29a:729a:be2c with SMTP id y7-20020a17090a474700b0029a729abe2cmr103307pjg.21.1709135772399; Wed, 28 Feb 2024 07:56:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709135772; cv=pass; d=google.com; s=arc-20160816; b=1IyedZMXhM7Caz8S7ntDAW79DgOXnm0qhroWILbFEmyw4TLKnO0fZCaxZHq9voTAQk Z46B01T9Ald76Ni4cvyIXWUp7pr4YkLKaAgXVe0nJyNKMVbRITh/bHgAgt2kOp5oR4Ni 8G761djH8asHH30MF2a2QwRUL96GXMq3+jqr4z6pVOb/6YnF5+OVL4NHRtEPaXixuaer elBetY2FmV1hBDEZBND2RDQBv2hGqa/PeyUp5Sr04sXkLGBbQevVFVlv8aEjKcekRxPT VHKDlUwrk8drGT1CQZQIC+iHLqs2rWcoOCvy34/vZ+RDnZ0f+2estBx9vZX7Zs4U3xOZ Ig8g== 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; bh=8XjbvnRx+8kCH2hMoYFCuVIcAPinYP+bkl9nuMjBGhg=; fh=xzQPicwKbhXdwnJ/qsORo8gaGmIZ8Szn2Liv3C/9rKc=; b=bj9uOXmKemXROrPHMbdGPEp36g3aa20XZwFVcqvHP5EYekKzdbORNJeSigXjlCxQjg BSwpQBSNpXwCJgM9O5A1CVvOEwyhZT6ukuYFeeh80de5j4JepsfMKmyDODXii+GSJs+v tLT3VyDGTP7XKlukLOhktcLalCtJ3DVRhtJTQyFghKzB0O9pgTO7VR7c8CbSNJ3eU/Ut drOZyFzqtieco6d0UfqAVS8fJ7vhyH7W65IZSC1YUErOZqjyuY8fDkvEBZmBSj7eCPei Mrk8JctPPIaCbMAUJw9QlH+657wTARkxj6Q96PIy4QkcXgCZmsH2ohA43UxpNCPRBmOE oSWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-85262-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85262-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. [147.75.48.161]) by mx.google.com with ESMTPS id eu16-20020a17090af95000b0029a5cacd272si1567460pjb.154.2024.02.28.07.56.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 07:56:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85262-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-85262-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85262-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 27311B23979 for ; Wed, 28 Feb 2024 15:29:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3748C15CD6C; Wed, 28 Feb 2024 15:29:44 +0000 (UTC) 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 ABF0815B969 for ; Wed, 28 Feb 2024 15:29:43 +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=1709134183; cv=none; b=gqbZO4H2CjcEVYh9cvLzaYwP23hWj9QKV80g2cPRJBEXyHgVZSJHw5Bnt7ksXIQsuBvMgbsWFyXc9ajiTS7w7vBFIcb/6p44tvQCAzxaiQxn8zZHR7kETHRX/9kQHV2gepkIUw9PX2H1Jlve7CRbg1/vC0TN4jdgXDUXmmQxogI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709134183; c=relaxed/simple; bh=DmM1/6SNlE0aFqtiXoU7/D622ujQIQV6YU/laUWpeqE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tHpP3EbTYU2wP8psq0/mma2j1dGnBc/hFYr+xLuXiNqI2M1gqrakva3BtBunGFeIg70cBlZdFQYZX4ED2y0qs83uxyMzw3RjjZytCgX3nY0SEnTZbUtcTVv+LnpAm5cutfUgNk06hQurPlI7F9mFLZpU9zN4DVrIwm4a59Tg248= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 064EEC433C7; Wed, 28 Feb 2024 15:29:41 +0000 (UTC) Date: Wed, 28 Feb 2024 15:29:39 +0000 From: Catalin Marinas To: Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, broonie@kernel.org, Will Deacon , Mark Rutland , linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64/hw_breakpoint: Define an ISS code for watchpoint exception Message-ID: References: <20240223094615.3977323-1-anshuman.khandual@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240223094615.3977323-1-anshuman.khandual@arm.com> On Fri, Feb 23, 2024 at 03:16:15PM +0530, Anshuman Khandual wrote: > diff --git a/arch/arm64/include/asm/esr.h b/arch/arm64/include/asm/esr.h > index 353fe08546cf..6c0a0b77fd2c 100644 > --- a/arch/arm64/include/asm/esr.h > +++ b/arch/arm64/include/asm/esr.h > @@ -143,6 +143,10 @@ > #define ESR_ELx_CM_SHIFT (8) > #define ESR_ELx_CM (UL(1) << ESR_ELx_CM_SHIFT) > > +/* ISS field definitions for Watchpoint exception */ > +#define ESR_ELx_WnR_SHIFT (6) > +#define ESR_ELx_WnR (UL(1) << ESR_ELx_WnR_SHIFT) We had ESR_ELx_WNR since about 2015, maybe even earlier in the form of EL1 or EL2. Only that the 'n' is uppercase. So please use that, don't add a new definition. -- Catalin