Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1810651rbb; Tue, 27 Feb 2024 01:41:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlCWWF6LYVz/2k+rpe0UUM2ltYbNmLkO1LFvH1n84MBgan2FV4Zr/X4LPUNQA5radCT894TVk12CKjkQg996bsYJOct/ApSchPX0naSA== X-Google-Smtp-Source: AGHT+IGIcscNWGp9QFJwAfqaUEAMDznxhvrh+K00i+XGITyIIAiA++El5Zj18GhMKncRJbE+D5p3 X-Received: by 2002:a9d:6acc:0:b0:6e4:96d7:7d15 with SMTP id m12-20020a9d6acc000000b006e496d77d15mr6690430otq.9.1709026861443; Tue, 27 Feb 2024 01:41:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709026861; cv=pass; d=google.com; s=arc-20160816; b=a2qmLtjwXzkmwd5csecaUajWN7UMk2hxqeoyXL8A4YYAloeWVUAccDN00GCWkLY72x gjLgD5U+RL+MW+ALVeN6i8id6GQqW8iJiS7yp9OGsaNB2ostK5kto9H0qIx1aJEBmw4N WWl+KujJRfsMyJGlgRBLZUujUJoXOIONVxlWy03Pcp9AVmZqzzTa+iAA/hY/xcEdqB9O CNswIvumDfZsCxu3hgP0hBXzYTnJwz+HB7PpoL9YaxxuEoSE8W6ZTl5a6WdZBw/NXZqJ DXiQWw8SO/i+1KIKcB4V3pxGu3tMssUOhZkmVEYFb8whnVWYPr5kJshpSJKImbVDPO5a v8UQ== 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=BW+2yCdFtRJO1bbw4yhEE1l31O14T9/mjE553QmEOqs=; fh=hPjG2tyUzFwKfU80ef53xm8P5mdtWgoErvT0TdR/LuU=; b=ja6yAudejhIrCqCjUp3SxvJEKK98W9AYP04K03UaJWwfgZe0P0YMLU6kQv4Ft0wiXL +2Gops63JvYIaPePNHGDP3CUZ+i/mgdMtx3Cr92EbEyCR73d7ERWmH0P5K36Idy7Bddh EF6M8q3U0aJ8/kPFjCnz3qGG3DT678CBajl/KSsMHwT/IHpl6/3xB7/4RCwCO8hszNY7 U7xZJu9YsRWfRLXD19cdd3ycJ7YBT3hR8bepUGzAJoyQ/UUlO6JzUnZG7DHNWYdkLuhS iXmKny9+4gq6/xH6gHxF+OFx72pS62l4k/MB3Qcp/9eYsr/6KS0xZLnxY0ZSs1G6gZfe CcnA==; 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-82972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82972-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 t187-20020a632dc4000000b005dc5dc82729si5169391pgt.541.2024.02.27.01.41.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 01:41:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82972-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-82972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82972-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 16579281F6C for ; Tue, 27 Feb 2024 09:40:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB11D136991; Tue, 27 Feb 2024 09:39:58 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECEDD1369AE for ; Tue, 27 Feb 2024 09:39:56 +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=1709026798; cv=none; b=MPctsVtiXWAgkq6nYOrWr81VGA4WgitEMV563lYcQ2qIP6mif30Eu1wgMi5lqEFbjU5cB0HgpqFVpzSLYkT4sfe05R+0bRV9DjvxSioLDwriyA3u+MloipHDm8Uf0w84/23i00+i03rzHugmeIgdf229Af/4VqKzZGj8+khDEqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709026798; c=relaxed/simple; bh=WLikBwdKRgfqzN0Fv6VtBzyq5SN5Elqbqt34MJQaPhA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZfV+O20bG74dSuTRpjfZMs8uWdiNx+8lJKkwxXH8ZLV48B6tFDqYVXgAQfsGIGTsSSkQB1LiQMo4dUBOdWbxuBJ4iU9oVujlooSeqCE6WUrbeLHxePz8gIjqGaHA8ZmKwzWFwlzBNfIOLRWRk0zL8MQzDh8Ps5p97pikk0kOs7A= 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 5933DDA7; Tue, 27 Feb 2024 01:40:34 -0800 (PST) Received: from [10.163.48.107] (unknown [10.163.48.107]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D6BB13F762; Tue, 27 Feb 2024 01:39:53 -0800 (PST) Message-ID: <9f20e601-a5b8-48be-8364-3ea9b45d0940@arm.com> Date: Tue, 27 Feb 2024 15:09:51 +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: Determine lengths from generic perf breakpoint macros Content-Language: en-US To: Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, broonie@kernel.org, Catalin Marinas , linux-kernel@vger.kernel.org References: <20240223113102.4027779-1-anshuman.khandual@arm.com> <20240223125224.GC10641@willie-the-truck> <1901fadb-1d71-4374-be8c-00935bb27854@arm.com> <20240227090529.GA13359@willie-the-truck> From: Anshuman Khandual In-Reply-To: <20240227090529.GA13359@willie-the-truck> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/27/24 14:35, Will Deacon wrote: > On Tue, Feb 27, 2024 at 11:01:54AM +0530, Anshuman Khandual wrote: >> On 2/26/24 16:34, Mark Rutland wrote: >>> I don't think this needs to change, and can be left as-is. >> >> Fair enough, but just wondering how about deriving len_in_bytes from >> hweight_long(ARM_BREAKPOINT_LEN_*) instead ? This also drops the hard >> coding using the platform macros itself, without going to user ABI. > > Please leave this code alone. It's fine like it is and there are plenty of > other things that would actually benefit from your attention. The BRBE > series, for example. Sure, no problem, will drop this patch.