Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp80274imm; Mon, 21 May 2018 02:36:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrvv/xWD0Xug97mwS21TD0zceWSmKZvykp7ho8b9nFvRoeo4+LLHrjR9LQzifmrXAEXYi/G X-Received: by 2002:a62:c205:: with SMTP id l5-v6mr19228317pfg.6.1526895367329; Mon, 21 May 2018 02:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526895367; cv=none; d=google.com; s=arc-20160816; b=NA1gbIwomOEEDKwaf2nBqE5e7QFZgeR44CK9XnyH4vrUYs5sFZpnwRkNf28C7QwIRZ 3yWqvYdiYdGW/SUinfzMBE0YfbkujBElmWyz878e28ni7eYNL+m1BkkQsdoJqyJpNvYQ /TT7k3giXOEMpcPIZWLE2hIXOYtGjF/wLiCth4PNjYVEonXNpDm7JsnfFBQcWF4IF1qm 2Lb6WDFAZa0cRl7skwGnT6uO20QGdUfELXmWhyen6vqPpuPpt6JHyscG6DyEUpyolYmY tLBjuc7zdcOFq1zXcA9BCxZQKLJtPSoC2WsiGPwWVTd3OdHDsPOYe1KMpSmfu0QhZkUv xUTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=HSn+qBM0LASwfmGTxaLZ37nD617cfvHGXe3kJerl0rU=; b=yRasEx8E4ZtiZDFZgtAGN3+AXegHa+L/j2XaYFYiweWHdxrErcNCcaZlaypr3WLI9N JvLvcmTo31cxB25h1nlQV2vPi0O1XKrDi4jhPSCJIdoso5Pyau4R9+7aOcCmwTHqQD0O 5bAZ/pCMO9/TxWzqBbXz0luaLkG94gzWqoLxvG57GkLKWWxXE2hpCav9Ve++YZoixK4A ftstRllZlJIAIfNyMngd1gnG6q8ZegtjaAH3XzdtHOu6UStYqSpsgjW/Uf9uGEP079zs mBzaH8w9rwjnpq1IX9z3wLBJQUyrQkTX9I7pg6IhZdXDBgYHqiHp5baCA3G1Xx4FwSsp 7Xgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z26-v6si15092261pfl.209.2018.05.21.02.35.53; Mon, 21 May 2018 02:36:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751280AbeEUJec (ORCPT + 99 others); Mon, 21 May 2018 05:34:32 -0400 Received: from foss.arm.com ([217.140.101.70]:45608 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081AbeEUJeb (ORCPT ); Mon, 21 May 2018 05:34:31 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D88E31435; Mon, 21 May 2018 02:34:30 -0700 (PDT) Received: from [10.1.78.35] (unknown [10.1.78.35]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F23063F25D; Mon, 21 May 2018 02:34:28 -0700 (PDT) Subject: Re: [PATCH v3 4/5] ARM: perf: Allow the use of the PMUv3 driver on 32bit ARM To: Marc Zyngier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Will Deacon , Mark Rutland , Russell King , Vince Weaver , Peter Zijlstra , Stefan Wahren , Eric Anholt , Florian Fainelli References: <20180518143913.26306-1-marc.zyngier@arm.com> <20180518143913.26306-5-marc.zyngier@arm.com> From: Vladimir Murzin Message-ID: Date: Mon, 21 May 2018 10:34:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180518143913.26306-5-marc.zyngier@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/05/18 15:39, Marc Zyngier wrote: > +static inline int read_pmuver(void) > +{ > + /* PMUVers is not a signed field */ > + u32 dfr0 = read_cpuid_ext(CPUID_EXT_DFR0); > + return (dfr0 >> 24) & 0xf; > +} Should we rule out versions prior v3 here or in __armv8pmu_probe_pmu()? Thanks Vladimir