Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1804895rbb; Tue, 27 Feb 2024 01:26:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVioX52yhbxPNOW1QEmow9hDVFMhq9rjUzb7Z7Kp1xXnu9qDnjDvr29coBgxTESqlAEzJygxf7Pj/IjjSMiVsdDXuECnGb2CJPMfe4lgw== X-Google-Smtp-Source: AGHT+IFBqcAIoScHqqYhphjulfG4HEpAvtLhyQHK78LULeieiiUMV6IJ+5DmslZcN+hLuetOFaK1 X-Received: by 2002:a05:6a00:4fd5:b0:6e5:109b:959 with SMTP id le21-20020a056a004fd500b006e5109b0959mr6832787pfb.25.1709025967939; Tue, 27 Feb 2024 01:26:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709025967; cv=pass; d=google.com; s=arc-20160816; b=vrf5zF2om70eVe85njn2WgNoXhvtNf3cR+NWezrhsClGniD7ibxGqJQB3uj3CJ6WgG oqTk1+ZtuAlA9Vp0/ychGaK9691YGOR0EVAfQxVmlEE3qvQFtuVtXjlMUoBFGkmnidck g/GkJi17GXHo9uPrYv+T+vZfyImQMK9EkrHVrQOFoLyDKDEG49H1oQ0tfNH8uD75zwMN DxBmqQD6tnjYwtNe2CWjcCcTHqF49w9GLGMR0svtXn+W3uSytfhNczlGvPSIp7C06AYa cXdp1bxnY8L2lmJ6nPJCikN027yluCZgJRI7xXJkWD7TDIOUYK3bM7bXKmKmZxeg4sx8 24OQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=znPGZ01tQ8o2pwmE4+mtJx1qiUTl0oTu61PSN8pv9iU=; fh=r1tFeL9Rt4CPIDmn/obi29PDcIJHY83SAh38hrvYAJA=; b=c0zVb+Rup1ATy59KI7Lgx9Fw6pBZ/1pvpBsK3n80RwVYDw9CjVpDB6eldpHnTwG6nZ Gvh1erJNucpBQgxs6ROyeM1iS5vde68rmZ7GAYbur5vjdOwiNC9QT+AZXYCrv6ggCs6e gBRoLRbR5FWhvkkv0bm/gDgmaC49cHG1HiEvEsDpMw0wtcvEgEdiy7wkeSuDkws2x92t 6QQvLfnmo7f1uGLzy7au7yJTVoNp58fAmlRYFMcIsbuh8rxhsbPxy8+pk4Aj2glFpyVg wdOuK5ymw8BTQfgTpRxnsEgk+7rqQh5Ccv0mZWYZ7DWLprZL8m8Ii8/aKSM8Q3oaH3G3 9w+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hg1EUzVZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-82906-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w14-20020a63160e000000b005dc93b2bc4asi5242289pgl.885.2024.02.27.01.26.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 01:26:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82906-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hg1EUzVZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-82906-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 DE0E5B27FC0 for ; Tue, 27 Feb 2024 09:05:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D39C1332AB; Tue, 27 Feb 2024 09:05:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hg1EUzVZ" 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 991FD54BCB for ; Tue, 27 Feb 2024 09:05:35 +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=1709024735; cv=none; b=XqyJYouHiZVT4+Nm+V83gMYf5FRLYzZhfi4FYCDJaE4g4oAb1hsJBzahtOpY/A2/+sUziUobhnfAvENOcrg2ImZ4jm0Ufe/gB2kBT0SXEdh7CAbvzLCLa6dNQKD4JbgcPcKqipGHGGifwC1GlP5grn+ii76/FWR9K9ZS77Y0nyk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709024735; c=relaxed/simple; bh=Am/D+g9bxO9RrGanC/9goSZgOkapPvJ6A17Yn9/q0p0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Wu+QXwkrtEYRBNcti3YJjz5PMeqPLF9FyhVpC4bXgn54Pdq5jPecTfuDQ5wafapkFPbuXy5g8AT4yQTJtrEdsPXZKgkN73mD2/4ebDpmw/uh0wTavn2W7ZHqHYy4Xx8IrdAHBUHxXz6LaNlDlEYASuyxcw53OpTwc2ujGiGZX58= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hg1EUzVZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8B83C433F1; Tue, 27 Feb 2024 09:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709024735; bh=Am/D+g9bxO9RrGanC/9goSZgOkapPvJ6A17Yn9/q0p0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hg1EUzVZ7XOEM1hsgrqJ3KvddHqLBU06Z0qzqQRfePSMjFAmw1+GDfC0QOLNPMdPZ reR6lCFjjTSru4dEFU7h0YoMTbEnZJuBclSt2b8LOmZ7Tp5u0zglnQW2mMOv7YxAlG cNB0lTFgqQowkHWZWoGuC66YDGvgyk1TgYs2/2B7GWLRpeAtgYjere1/znwxFMSwTq y1NnkbYfNlxkD1IBk7SpKYkNQDV2hx3ZPBjocY0v0P5j9OVfDKcbvH7xjcsZIpGdrU mVNwwZ2IE5QqRs5UivGlT5e9p6Y5nQuns41rsOBPK/Cov3fWEIGzZJXs+QwsfSesmT lhLfrjZ/Ae4iQ== Date: Tue, 27 Feb 2024 09:05:30 +0000 From: Will Deacon To: Anshuman Khandual Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, broonie@kernel.org, Catalin Marinas , linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64/hw_breakpoint: Determine lengths from generic perf breakpoint macros Message-ID: <20240227090529.GA13359@willie-the-truck> References: <20240223113102.4027779-1-anshuman.khandual@arm.com> <20240223125224.GC10641@willie-the-truck> <1901fadb-1d71-4374-be8c-00935bb27854@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: User-Agent: Mutt/1.10.1 (2018-07-13) 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. Will