Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp257301rbe; Wed, 28 Feb 2024 20:41:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUfpz4Yl0OsV9vWojQ4UfaV26TjU3VY2rLmZ3o4PscbD4pvL+d9rmezmmFPvnKZfwq7LtTX7xUB3VunsqVS6iLYgq/oeYq7hyuzPzG2oQ== X-Google-Smtp-Source: AGHT+IHwa1Bq6wMt296UbTdm5vgiH/FN2I1vt67sNqvCmqC/Gqy1JgBWVWFqFIeRZf7NAj5yf6xx X-Received: by 2002:a17:90a:7543:b0:299:72d7:5b9a with SMTP id q61-20020a17090a754300b0029972d75b9amr1180374pjk.24.1709181690827; Wed, 28 Feb 2024 20:41:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709181690; cv=pass; d=google.com; s=arc-20160816; b=f1QFM+qHnhTmzOQXMZwCLK3pQ8RWd0qdDWt+KYrLc00uKTqABLSs8TPF0+jkr1c2Ho km7klaqSijOLn7LqvlOvIc+dyO3HIQZD+aN7rgjcRb7IVKI8xS7QQfLKzq3acchfCO5i tpwBv7g/96Z3LnqT7Ct+NNAI01SeduJxJdOXVYCXYr0rc7uNtArTG+GzKxhDLcC/0RPo oUfV/j6+E5XaijXxia6kEPudcjApLgTQrRXz0me0QE+eVT2rvlkWNmcI6W44q+OMBe7W bTjhDDkk8iD55ja6Gu7dB5oRbEz2RUjv8rDKU1CAkShLTjr+piqYmG8KghiPjzL/sBhH li+A== 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=A7PgBe8Pa6x/cHCg2iWKcaagZItFpsJfg9D/OBrA9B4=; fh=/qOb1pTAXEMGUus3eBHaA2/Hp3JgjN5nglw+gPkk7EA=; b=kcHFIWWg7QcoR/jfZpKTO7WjqPGFEmp5ViNFfjYwEyx2VxNBK6KrFWWZ4sVuyrGUh2 kFP/u4+IsAxzwZE3A05WJvEOTdOfiNEzw5fKqCDxGnhfWsr2FF6BSuxmpBmI3PDE5aMQ ruoH9UbOB3m5J9SPh2PtFTMcmCwSdVzQUK+6aL+nx/x1j/sRMt9smKu6ANtBFUyz2iuN YUg5/3HRRDxxH1rdWlfa59x/hrEH4nCLasJnNMQ9LwCmXU84fnNFPf0gx+PptT2g3UkO cJOi9vm9yWS1V4R1b3R8WRQrLHuqQQ7r/XpedVJ9vdBSSAfIHHxX+UKasfZ0apBw0yYF mlqw==; 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-86119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86119-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 cc11-20020a17090af10b00b0029af22780d6si2698937pjb.133.2024.02.28.20.41.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 20:41:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86119-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-86119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86119-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 83A15B22942 for ; Thu, 29 Feb 2024 04:40:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1EC938DED; Thu, 29 Feb 2024 04:40:18 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D571812 for ; Thu, 29 Feb 2024 04:40:05 +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=1709181618; cv=none; b=gHo8OUNxmts28vbe/+XGb1lfnyeuES+DX5FSQ5fdbOVfkEyOZNAsOaYQxd3XqloNFj1LeNwDLpUbLNeuZSxV+gnElDgzOYIcAXfZBYz42JzCVCKnahwSa5ZGEROOgCFwVHVJhuvXOqzY/5dgyZ6Si9GstDr4GQ5CDfw4Kyjl/iE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709181618; c=relaxed/simple; bh=146u6e05JLM9DMBEkdSeB9sjd4Z8y+TPkEBaMUYGnG8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=K6w1h0osMvaS07sPqgx3fzG7cUOcCC/NaywLwE1aTbMLlu7HtHJg4mNrIIYYeLXxZDDy3qz7bnZlUie/1t+h6nsNLxl0DerMJvmq5czoHrV0o0ilvUJy5tCVLhNbQh9HrhzEoeTl5irwp/NBs94sktI8ja0M1xWsASIamT8DNME= 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 3695B1FB; Wed, 28 Feb 2024 20:40:44 -0800 (PST) Received: from [10.163.47.238] (unknown [10.163.47.238]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 368783F762; Wed, 28 Feb 2024 20:40:02 -0800 (PST) Message-ID: Date: Thu, 29 Feb 2024 10:10:00 +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/hw_breakpoint: Define an ISS code for watchpoint exception To: Catalin Marinas Cc: linux-arm-kernel@lists.infradead.org, broonie@kernel.org, Will Deacon , Mark Rutland , linux-kernel@vger.kernel.org References: <20240223094615.3977323-1-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 2/28/24 20:59, Catalin Marinas wrote: > 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. Right, reusing existing ESR_ELx_WNR makes sense, will respin the patch.