Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2040721rwd; Fri, 2 Jun 2023 04:08:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4F0Zo7nStoPuUVI3lnFn7nTcjXmHE81GR1J696Y0zpHCGfmwICi1ZaF54bGVZJrumzzFwN X-Received: by 2002:a05:6358:52d0:b0:123:2d9a:5edb with SMTP id z16-20020a05635852d000b001232d9a5edbmr9602267rwz.15.1685704094607; Fri, 02 Jun 2023 04:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685704094; cv=none; d=google.com; s=arc-20160816; b=kgx+eu18xEoxfCiDl3Svf5uOr8qxJ+dNNDE+ozAAZlgX2zz9nMbSh+iMgZrE5uTLnx 2qCLP+WtN6yBo1CypsRNJDQFF3BRCTo2c0uxxmzGdDxjlxhM+UbBH1r32l5KUMScO1CT qLe7bxP9Jtbj+IRhOeWdT+WgiVRA1jprZvRnIsccM9RBztjRQ8LyM10ehztLYZ7zv26z 0PKxRcoOJj1pCNx7SATXQXzvphCejVWnln5AYR+rnkmQ2f3uzTjnvmHa86oy4VHzQi1U Ele0iv2kAAOBHm/LFYnJDY1RjuOJHsH4WRVKXj3z1ie4HwEmOn9qRm7HNUSl9zg5xc0M XIDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=kQ9bLG5wbHlEEn8TOaNjujCWprrZFEG6UiKYeiCziQw=; b=k41mn48EgVarIWNe2UxkQylil+RQZKCAj+uMkmNaN4Yu3KGxDofFHUxysPB2BETyK4 vRNiSPNrn68MOYG9L92qXSAxIZGZ+WameQeJt2xVLh6OX71gZZtVEl9QlmJviepkisK5 b4ztmIlU7vxVV05BoTmUz/zBla7FMyta/lfvB5RMa7BdD/Ho5cUh2YgVlxmUZoyLh3mL DKpEkCNHRhKL5w5TwuIyZRKbAocq2WSR0E5GiW1unPsHiWT9t63QtkQ3BekMHB5PAwot stN1YQU+AQDoKSGNC03f1IIjRWVbLs23dB+ZX8dOs8lPHcsKFIn/ZM1ue9L4SJJvzpRh /YLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r130-20020a632b88000000b0051909d663d8si818412pgr.656.2023.06.02.04.07.59; Fri, 02 Jun 2023 04:08:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235221AbjFBKzz (ORCPT + 99 others); Fri, 2 Jun 2023 06:55:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235153AbjFBKzw (ORCPT ); Fri, 2 Jun 2023 06:55:52 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7AB98C0 for ; Fri, 2 Jun 2023 03:55:51 -0700 (PDT) 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 A951F1063; Fri, 2 Jun 2023 03:56:36 -0700 (PDT) Received: from [10.57.22.125] (unknown [10.57.22.125]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3DDB73F7BD; Fri, 2 Jun 2023 03:55:50 -0700 (PDT) Message-ID: Date: Fri, 2 Jun 2023 11:55:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.1 Subject: Re: [PATCH 4/4] perf/arm_cspmu: Decouple APMT dependency To: Robin Murphy , will@kernel.org Cc: mark.rutland@arm.com, bwicaksono@nvidia.com, ilkka@os.amperecomputing.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <3509b299b19b8bf89700c77c2bb695c740926ae7.1685619571.git.robin.murphy@arm.com> From: Suzuki K Poulose In-Reply-To: <3509b299b19b8bf89700c77c2bb695c740926ae7.1685619571.git.robin.murphy@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/06/2023 12:59, Robin Murphy wrote: > The functional paths of the driver need not care about ACPI, so abstract > the property of atomic doubleword access as its own flag (repacking the > structure for a better fit). We also do not need to go poking directly > at the APMT for standard resources which the ACPI layer has already > dealt with, so deal with the optional MMIO page and interrupt in the > normal firmware-agnostic manner. The few remaining portions of probing > that *are* APMT-specific can still easily retrieve the APMT pointer as > needed without us having to carry a duplicate copy around everywhere. > > Signed-off-by: Robin Murphy Reviewed-by: Suzuki K Poulose