Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp266487pxk; Thu, 1 Oct 2020 01:38:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQfZKRc4yOGj79rxdbX/+EmCVSbjXbk5U/LskA7EICoxlBF8kbbRZ/0HqF3pCdryZX8OQY X-Received: by 2002:a05:6402:1515:: with SMTP id f21mr7224872edw.175.1601541510818; Thu, 01 Oct 2020 01:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601541510; cv=none; d=google.com; s=arc-20160816; b=C67Di56U35BzOHOIhcrzQaHyL/ylfTU+V+sZ//FIfpAR29OJj4LH8ABzEK+ZiSc0NI tYoY84Ocw5eSUh3bkuTPrxBXkKrAo8bjdk52oo1pWA9mXLlxVtSsKA6AXjn5lXeiwgrS O5W/NTWZ25C15/7Gckn1eXAY41FMKPiN5YwSs1Ix8I/432CDIVskI5qAI/xW/XWFLqMY R0ZWBaM+8cjOgW/FzfGkIjUjIZXXXLRVQ09vUlcVwio1UlSKl83R/45kmeKjyqhwY01l LWmpAhUPmnxnTo7E3KzWQveyUaatx7IQei0kenv/pgTSctto9+K9w5FY6Doc+wEWhSSF 79vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from; bh=fm86bdn6B9U8CvIHcjA3PGSd6hdUDbgI1kTkh2Hr+bc=; b=QsFPrugd+IqooYAFlLs7hlbADv5lnoWbyxNbC+xFojpgbVy8dax4zfrpjp4Bx5eidO 76OHiaEGL6LE2Q/1XxCcCdidnz6uRwpZr05g1YViIMfo8IGuIeU6eRWVO2Y/UcyTrskN SLc/ND9D2u7GOO03ahJzKpQFYoRxmhjQ6eRPAJMibIr7gykkV+0pzHsLQJTTH80aiyjd 9LppIDK25gMyKJwQPd0+qJoS/pLxspo6HpHsWwkGhBcGEnR2dZH2sg4dZQiuYvxB3uv9 oQd2jTfVVQF4cOzZcnqBBZt56PqQjqquuue11KhiMuNAnbGs8ayK7bjcvFUjuI+EJdFR T2Jg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si3165094ejm.389.2020.10.01.01.38.06; Thu, 01 Oct 2020 01:38:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731243AbgJAIhD (ORCPT + 99 others); Thu, 1 Oct 2020 04:37:03 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2934 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725892AbgJAIhC (ORCPT ); Thu, 1 Oct 2020 04:37:02 -0400 Received: from lhreml724-chm.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id D5057208E5AF44931A9A; Thu, 1 Oct 2020 09:37:00 +0100 (IST) Received: from [127.0.0.1] (10.210.167.80) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Thu, 1 Oct 2020 09:37:00 +0100 From: John Garry Subject: Re: [PATCH] drivers/perf: hisi: Add identifier sysfs file To: Will Deacon CC: , , , , , , , Robin Murphy References: <1592399111-134786-1-git-send-email-john.garry@huawei.com> <20200714083216.GD4516@willie-the-truck> <67db3c30-5aaf-ac17-0256-950494f5ba88@huawei.com> <20200715083016.GB5683@willie-the-truck> Message-ID: Date: Thu, 1 Oct 2020 09:34:02 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20200715083016.GB5683@willie-the-truck> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.210.167.80] X-ClientProxiedBy: lhreml736-chm.china.huawei.com (10.201.108.87) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/07/2020 09:30, Will Deacon wrote: > Hi John, > > On Wed, Jul 15, 2020 at 09:23:19AM +0100, John Garry wrote: >>> On Wed, Jun 17, 2020 at 09:05:11PM +0800, John Garry wrote: >>>> To allow userspace to identify the specific implementation of the device, >>>> add an "identifier" sysfs file. >>>> >>>> Encoding is as follows: >>>> hi1620: 0x0 (aka hip08) >>>> hi1630: 0x30 >>>> >>>> Signed-off-by: John Garry >>> >>> I'm struggling a bit to track this. If you still think it's worth pursuing, >>> please could you post a series with a cover-letter describing what this is >>> for, a link to the userspace changes and then patches for all the PMU >>> drivers that need updating? >> >> There is no hi1630 userspace support yet. >> >> So what I can do is post updated userspace support (including hi1630), and >> then post kernel parts together for all drivers we could initially support. >> >> @Joakim, I'll pick your imx driver changes here, if you don't mind. >> >> There was an RFC from you for the SMMUv3 PMU as >>> well, and also some other "arm64" changes. >>> >> >> I hope to drop that RFC if an updated SMMUv3 spec helps us out. > Released SMMUv3.3 spec provides a PMCG_IIDR reg, which we can now use to identify the implementation: https://developer.arm.com/documentation/ihi0070/da/?lang=en So I'll look to put the userspace and kernel parts together for this now for review. Thanks, John