Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3393797pxu; Mon, 30 Nov 2020 01:59:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjTaNqPFT+PZk9r5zZLn7sXVNaL2NYd17ti7qLW5N48lDQTxhrLz1HzwEmRjZ+cp6xmh+G X-Received: by 2002:aa7:dd52:: with SMTP id o18mr5204289edw.177.1606730383275; Mon, 30 Nov 2020 01:59:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606730383; cv=none; d=google.com; s=arc-20160816; b=bqIXdb2nbY3OrTK9UcX+PF4csvUGucVhtcxZtrIc1y4Mwdxt8nDpuE9Ks+NIMVeJ3v OEXkbcMelY96ACHrOeELnWDETvoK0ZZjRyPZKEHZK5Xa89cQWqFnkW464XfXe2Cg/5Z3 fPhPt5IAN/eVcvHZ5BQ010ahEgdAGRHmaGUfmJIo5YxTd2s2XgACvjG3wTm2TzMmPemD 2uyX3BjRX0oGmEEwwyf4Q55ZonqJyvNFVJzI4Vyjv8iUv352fBLtiB+Cfccb+/lGLy5V J4JRYCTC/LWWyjQrBsQZ0Nwy4/H2EByF86sPeuuqchq4HrmZjnF+3I1oQl3CtGa4ooWC /9Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=FHB32nyFuoueabgachq9Ob/LubfB4I+BFlZGz9iaFm4=; b=sqJgdIzMUt40Nc2MStlDfjFlOwbIvn3xOxJfVpiulnhH2HvgL8F26DlORhjaFDu3r0 NVC64DTGhWA+yWo83vj2NqgHLhaHqD6OOedtADsSVolmIhn2lmQ1aoZUI+qlJKh+FqdH 2btekWE64HmFiaXdhfykLY6yu+8wMnhb67sLKbG24XXwEdKTz9ZCPLQzZgTRQhM6KLVZ Gdyauib9CGrR/DwsCEvE/FV6KFsGk8YwLRGAhl9fUNtn51LnW9EsBZCspauaU5GcTpkj FqAdFyhbcl4MwISuW7fFelYf7cidVNlSZQf4SsBD3LASgKy+KwgDoNIKK50WAycyWEEz JkaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="nTc/MyMD"; 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 ng3si6118213ejb.344.2020.11.30.01.59.20; Mon, 30 Nov 2020 01:59:43 -0800 (PST) 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=default header.b="nTc/MyMD"; 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 S1726817AbgK3Jz7 (ORCPT + 99 others); Mon, 30 Nov 2020 04:55:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:59180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726249AbgK3Jz7 (ORCPT ); Mon, 30 Nov 2020 04:55:59 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 073F7206D5; Mon, 30 Nov 2020 09:55:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606730118; bh=VJxe+aZIiySmBjnGlaSzQW1nZfVZVMjYsyKKXY2wN24=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nTc/MyMDZGaQb1aWyIXJO7isKzXuHw9n3D796W6lqshME6XMC6XtpUiAnp9oTN8ip cH6isvEIFEg0WYo/rfqT9aJcJliG5TrjVweoLcpc6YnZ9bX+xzWRFovsqcybXekYST b1V+2pDOrKh4pwVV+MgOPI2lm1HSsKdhW9PYoz+E= Date: Mon, 30 Nov 2020 09:55:12 +0000 From: Will Deacon To: Suzuki K Poulose Cc: Wei Li , Catalin Marinas , Mark Rutland , Anshuman Khandual , Vincenzo Frascino , Marc Zyngier , Ionela Voinescu , Ard Biesheuvel , Amit Daniel Kachhap , Vladimir Murzin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, guohanjun@huawei.com Subject: Re: [PATCH v3] drivers/perf: Add support for ARMv8.3-SPE Message-ID: <20201130095512.GA24098@willie-the-truck> References: <20201127060322.29025-1-liwei391@huawei.com> <861cf678-3e6f-7627-8d41-b9395cb6e5e0@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <861cf678-3e6f-7627-8d41-b9395cb6e5e0@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 27, 2020 at 12:03:35PM +0000, Suzuki K Poulose wrote: > On 11/27/20 6:03 AM, Wei Li wrote: > > Armv8.3 extends the SPE by adding: > > - Alignment field in the Events packet, and filtering on this event > > using PMSEVFR_EL1. > > - Support for the Scalable Vector Extension (SVE). > > > > The main additions for SVE are: > > - Recording the vector length for SVE operations in the Operation Type > > packet. It is not possible to filter on vector length. > > - Incomplete predicate and empty predicate fields in the Events packet, > > and filtering on these events using PMSEVFR_EL1. > > > > Update the check of pmsevfr for empty/partial predicated SVE and > > alignment event in SPE driver. For adaption by the version of SPE, > > expose 'pmsver' as cap attribute to userspace. > > > > Signed-off-by: Wei Li > > nit: Do we need to update the Kconfig help text too ? Right now that says : > > -- > > > tristate "Enable support for the ARMv8.2 Statistical Profiling Extension"" > .... > > help > Enable perf support for the ARMv8.2 Statistical Profiling > Extension, which provides periodic sampling of operations in I think it's ok as-is, to be honest. It identifies the version of the architecture when the feature was introduced, and I think it's only reasonable to assume that subsequent versions of the architecture might add extensions. Will