Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5663204rwr; Tue, 9 May 2023 04:54:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ52xe+h+TUmQewOsyml4RN7pgmKNbO49AGMaVeDtrofzhRJAXpqNmU2gPB4H3EY8CWhG7te X-Received: by 2002:a05:6a21:998c:b0:ff:e4f8:dc3 with SMTP id ve12-20020a056a21998c00b000ffe4f80dc3mr12653960pzb.39.1683633297576; Tue, 09 May 2023 04:54:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683633297; cv=none; d=google.com; s=arc-20160816; b=pwruxaS9ZQYW43+fMAZR6xNyW+UHaXg8cV9o91fY4qgQN3LovVroVPjAR3VGGEbufq ngfmTLfrxIxhGt7U+mht6wGqKDhJGbhA8UZ/fgR1F7B3/jtSXt/Rgr+g9J3+8igsmVTw frzikVGv8i4m4h3hMuMxjHz46oamru4jC6UfmrGThd5rn15GYG+YaCUaB7oJjPhmf2x8 bPWvulAw7iB0qupGdpxEnXBHMUl7HB+ZZ0imx7qvW/Cf87yf4bX+HiSe41J8Y5a15wbd NiVI9jLVzOhD0S054RcRPQtotdrC3L49PnAyyMjfunRfz7JkhRowhLujfGf9uUzOrPmI huOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8Yd7WSTk6A3WvgJvdRI6yymyBBP0pjlKP1iKAo1Orzs=; b=QLYiFZwR9Yj5pnbcXlwZj2PTmg10rygnnNP5J/Fun3DilBZNs6HhLYhAtqqXBVosad D6+5SHBWuxTzOalinuQLoj2zWJ83KUuSuq6xlUz7Y3VQy7cHXBhRCkdqklDJgSRn5o5q MIB9h9LCS05+imcOXF3t/RW8/at0I7JudawO7OfFIWzvV+rPytKg9wWR+b/q9RGN1+dr D7XstaMlTwKPliYBIlOnT83KnDF8Zcw4WlIc/XrlufkcY0sgiWKNm2YtYx8ftCdwf8pr dd7N9QYjMHv/uPRK+nihSpbdzl0AUwXEZ0j7TC/k5I7GLP65FwdG9sSm/SSmesxL0R0d zeVQ== 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 i10-20020a636d0a000000b0053045471007si595379pgc.330.2023.05.09.04.54.45; Tue, 09 May 2023 04:54:57 -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 S235518AbjEIL0s (ORCPT + 99 others); Tue, 9 May 2023 07:26:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234625AbjEIL0r (ORCPT ); Tue, 9 May 2023 07:26:47 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E13DC1724 for ; Tue, 9 May 2023 04:26:45 -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 B783DFEC; Tue, 9 May 2023 04:27:29 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.56.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0EA063F67D; Tue, 9 May 2023 04:26:43 -0700 (PDT) Date: Tue, 9 May 2023 12:26:34 +0100 From: Mark Rutland To: Geert Uytterhoeven Cc: Marc Zyngier , Russell King , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] ARM/arm64: Mark all accessor functions inline Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 Mon, May 08, 2023 at 06:05:17PM +0200, Geert Uytterhoeven wrote: > Hi all, > > This patch series adds missing "inline" keywords to the few perf > accessors that lack them. > > BTW, I tried converting my local timing code to the new unified system. > This works fine on arm64, but broke on arm32. Is read_pmccntr() > supposed to work on arm32? I get an undefined instruction exception on > Cortex A15 and A9. That's expected. This code is for PMUv3 (which was added as part of ARMv8), and one of the things changed in PMUv3 was that PMCCNTR was expanded to 64 bits accessible via MRRC and MCRR. Previously, PMCCNTR was only 32 bits, and that's what Cortex-A9 and Cortex-A15 implement. Thanks, Mark. > Before, my custom code used "mrc p15, 0, %0, c9, > c13, 0" (as is also used in arch/arm/kernel/perf_event_v7.c), for which > there is no accessor yet. > > Thanks for your comments! > > Geert Uytterhoeven (2): > ARM: perf: Mark all accessor functions inline > arm64: perf: Mark all accessor functions inline > > arch/arm/include/asm/arm_pmuv3.h | 6 +++--- > arch/arm64/include/asm/arm_pmuv3.h | 6 +++--- > 2 files changed, 6 insertions(+), 6 deletions(-) > > -- > 2.34.1 > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds