Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2932144pxy; Mon, 3 May 2021 11:09:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+o/l/fU2dhEqIki+Gc92xOm6TnnUPg9LLGkdvOAhBzCPyRuXb4FC+WfoBg/bIYCBUEuEB X-Received: by 2002:a63:1851:: with SMTP id 17mr19253082pgy.329.1620065382619; Mon, 03 May 2021 11:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620065382; cv=none; d=google.com; s=arc-20160816; b=P9zdti3ujcIBnUYpTHlqYTJvm7oJePROw5FDhbQC4htH9WhJbVlfyC73DqO4u9q1Te 8zot0LOuE9tJRGXxUGwIefm2iKjp7DO5ypS+zytTmCipZjqLIGIF5nEht2zPVwOPgO1a MnGPunn52yZLkddu0w6E66aLDgMBQnr1/Zhu1+WD4bisgAEle4mVjU8akHIc5s+YLrzy qZ/1OoW0RVM9DTU3+SbUIs1AanfZFZIvCofXFlQlu7c2zjqAtKmNjU0XuEP7Y5yDzpy8 Fj4KjCbgCdtvEU7e2Pzz9kUN8XjnqhKGk/m9mtJBAn38p2VAQj5adGz70SmNick8rNfo 7G7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=w/TOn6BhhAtIoEsbu/HzZYIYw9TLlFA8kuOGe+aVX+E=; b=b/ZHxZBs8lqSTGyZO2hOHIasTZ8pbTXStdgIQrbYBIx3uXuIMSbNOpL35Wxe9J1/gl MlkRCHS/GudrI/7B+zFlGouHTznp0zE5YwEz8w93+cxJmGeM+MTDD9R+BI8u3Ly9YKJl fqo33lPaKhGw2t3gGg5of7MydrI9rb2l7w8ZIdI7ZP76n8nACCIkUz6gNmrRWGnc9pu3 oBxcX5UPPKQc/DdpgjkPA7N/e+kFv0KSP5RyGw9t3BaTto2xnsg+IH5155KHkXNptuHS B6VFxlx4/XVkTDZxYDJYC6Y8JYQKvsP4HwOULCVbpABuI8GwxERcuvVu6Fa+bLzuKc74 /rSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iN/aPoUm"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si16056315pfv.271.2021.05.03.11.09.29; Mon, 03 May 2021 11:09:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iN/aPoUm"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230046AbhECO5o (ORCPT + 99 others); Mon, 3 May 2021 10:57:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:33420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbhECO5o (ORCPT ); Mon, 3 May 2021 10:57:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B8F0D6121D for ; Mon, 3 May 2021 14:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620053810; bh=w/TOn6BhhAtIoEsbu/HzZYIYw9TLlFA8kuOGe+aVX+E=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iN/aPoUmqnI8S89/QJkNgT2UTZ8psgTpF5EsDA6wcNxxINrWyDt+DpTdJ9hprs+oR MNHK9TRKEDmvFe1hM03zUnADL+btFJ9x7Y6RPWw0vWVMOP2gjSAmbcLv/E0HR4djbp SHqYuo8nX7E/evZWcNpHerJPcnsWgmk1my8MeXy06ZwvY1FbERE5j43TvbkqgZTW9E 4WC0anQ0yTAABFo69MKwMsvIFlhbv+pao2D39Gz+fwp31Vf9DxtJx2VQYb1gN8VtXn afUK9ymYign/zOxmdI7PP395z8LCuaBk/WHzSrArsW4VngzwxOxsShf1wNqdqFT3ql 90hMiHimwOFxg== Received: by mail-ed1-f43.google.com with SMTP id n25so6626149edr.5 for ; Mon, 03 May 2021 07:56:50 -0700 (PDT) X-Gm-Message-State: AOAM530q77AVhzFkA0LdFdNuPWEqE4ZReGSpnp7iwSD/967nGelnPmV5 JWD9GhRiVrL8lmbEIrfr/WT6KOPhVG4SlqEw9g== X-Received: by 2002:a05:6402:1e4:: with SMTP id i4mr20200251edy.62.1620053809168; Mon, 03 May 2021 07:56:49 -0700 (PDT) MIME-Version: 1.0 References: <20210420031511.2348977-1-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Mon, 3 May 2021 09:56:37 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 0/9] arm64 userspace counter access support To: Arnaldo Carvalho de Melo Cc: Will Deacon , Catalin Marinas , Peter Zijlstra , Ingo Molnar , Jiri Olsa , Mark Rutland , Alexander Shishkin , Honnappa Nagarahalli , Zachary.Leaf@arm.com, Raphael Gault , Jonathan Cameron , Namhyung Kim , Itaru Kitayama , linux-arm-kernel , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 30, 2021 at 1:59 PM Arnaldo Carvalho de Melo wrote: > > Em Mon, Apr 19, 2021 at 10:15:02PM -0500, Rob Herring escreveu: > > Hi all, > > > > Another version of arm64 userspace counter access support. I sent out > > the libperf bits separately and those are now applied (Thanks!), so this > > is just the arm64 bits. > > > > > > This originally resurrected Raphael's series[1] to enable userspace counter > > access on arm64. My previous versions are here[2][3][4][5][6][7]. A git > > branch is here[8]. > > Rob, please don't mix kernel patches with tools patches. The kernel > bits, if arch specific should go via the arch maintainer, core stuff to > PeterZ/Ingo/bpetkov/tglx, and tooling stuff I'll collect. Okay, perhaps MAINTAINERS should be updated to reflect that better. > > We did it on purpose to avoid any semblance of kernel/tool lockstep. > > The kernel changes should not prevent the tooling from working and the > tooling changes shouldn't require the kernel changes. > > Preexisting kernels should work with new tools and vice versa. The only issue I see here is the userspace access tests will fail if enabled in libperf for an arch but run on an older kernel without userspace access support. I could instead skip tests if cap_user_rdpmc is not set, but then how to test that it is set when it should be? I suppose checking sysfs 'rdpmc' is one option assuming we end up with the same file on Arm. Rob